main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
export declare const formatDistance: FormatDistanceFn;

View File

@@ -0,0 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
export declare const formatDistance: FormatDistanceFn;

105
node_modules/date-fns/locale/ug/_lib/formatDistance.js generated vendored Normal file
View File

@@ -0,0 +1,105 @@
"use strict";
exports.formatDistance = void 0;
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}}", String(count));
}
if (options?.addSuffix) {
if (options.comparison && options.comparison > 0) {
return result;
} else {
return result + " بولدى";
}
}
return result;
};
exports.formatDistance = formatDistance;

101
node_modules/date-fns/locale/ug/_lib/formatDistance.mjs generated vendored Normal file
View File

@@ -0,0 +1,101 @@
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}}", String(count));
}
if (options?.addSuffix) {
if (options.comparison && options.comparison > 0) {
return result;
} else {
return result + " بولدى";
}
}
return result;
};

View File

@@ -0,0 +1,2 @@
import type { FormatLong } from "../../types.js";
export declare const formatLong: FormatLong;

2
node_modules/date-fns/locale/ug/_lib/formatLong.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import type { FormatLong } from "../../types.js";
export declare const formatLong: FormatLong;

41
node_modules/date-fns/locale/ug/_lib/formatLong.js generated vendored Normal file
View File

@@ -0,0 +1,41 @@
"use strict";
exports.formatLong = void 0;
var _index = require("../../_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}}",
};
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",
}),
});

39
node_modules/date-fns/locale/ug/_lib/formatLong.mjs generated vendored Normal file
View File

@@ -0,0 +1,39 @@
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.mjs";
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",
}),
};

View File

@@ -0,0 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
export declare const formatRelative: FormatRelativeFn;

View File

@@ -0,0 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
export declare const formatRelative: FormatRelativeFn;

15
node_modules/date-fns/locale/ug/_lib/formatRelative.js generated vendored Normal file
View File

@@ -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;

View File

@@ -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];

2
node_modules/date-fns/locale/ug/_lib/localize.d.mts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import type { Localize } from "../../types.js";
export declare const localize: Localize;

2
node_modules/date-fns/locale/ug/_lib/localize.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import type { Localize } from "../../types.js";
export declare const localize: Localize;

178
node_modules/date-fns/locale/ug/_lib/localize.js generated vendored Normal file
View File

@@ -0,0 +1,178 @@
"use strict";
exports.localize = void 0;
var _index = require("../../_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);
};
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",
}),
});

176
node_modules/date-fns/locale/ug/_lib/localize.mjs generated vendored Normal file
View File

@@ -0,0 +1,176 @@
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.mjs";
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",
}),
};

2
node_modules/date-fns/locale/ug/_lib/match.d.mts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import type { Match } from "../../types.js";
export declare const match: Match;

2
node_modules/date-fns/locale/ug/_lib/match.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import type { Match } from "../../types.js";
export declare const match: Match;

136
node_modules/date-fns/locale/ug/_lib/match.js generated vendored Normal file
View File

@@ -0,0 +1,136 @@
"use strict";
exports.match = void 0;
var _index = require("../../_lib/buildMatchFn.js");
var _index2 = require("../../_lib/buildMatchPatternFn.js");
const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
const parseOrdinalNumberPattern = /\d+/i;
const matchEraPatterns = {
narrow: /^(ب|ك)/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 = {
// 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: /^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/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",
}),
});

133
node_modules/date-fns/locale/ug/_lib/match.mjs generated vendored Normal file
View File

@@ -0,0 +1,133 @@
import { buildMatchFn } from "../../_lib/buildMatchFn.mjs";
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.mjs";
const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
const parseOrdinalNumberPattern = /\d+/i;
const matchEraPatterns = {
narrow: /^(ب|ك)/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 = {
// 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: /^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/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",
}),
};