Initial commit: Crypto trader application

This commit is contained in:
2025-12-25 20:20:40 -05:00
commit 07a04c1bb8
47895 changed files with 2042266 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
export declare const formatDistance: FormatDistanceFn;
+2
View File
@@ -0,0 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
export declare const formatDistance: FormatDistanceFn;
+203
View File
@@ -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;
+199
View File
@@ -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;
};
+2
View File
@@ -0,0 +1,2 @@
import type { FormatLong } from "../../types.js";
export declare const formatLong: FormatLong;
+2
View File
@@ -0,0 +1,2 @@
import type { FormatLong } from "../../types.js";
export declare const formatLong: FormatLong;
+46
View File
@@ -0,0 +1,46 @@
"use strict";
exports.formatLong = void 0;
var _index = require("../../_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}}",
};
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",
}),
});
+44
View File
@@ -0,0 +1,44 @@
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.mjs";
// 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",
}),
};
+2
View File
@@ -0,0 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
export declare const formatRelative: FormatRelativeFn;
+2
View File
@@ -0,0 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
export declare const formatRelative: FormatRelativeFn;
+17
View File
@@ -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;
+13
View File
@@ -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];
+2
View File
@@ -0,0 +1,2 @@
import type { Localize } from "../../types.js";
export declare const localize: Localize;
+2
View File
@@ -0,0 +1,2 @@
import type { Localize } from "../../types.js";
export declare const localize: Localize;
+175
View File
@@ -0,0 +1,175 @@
"use strict";
exports.localize = void 0;
var _index = require("../../_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 + "వ";
};
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",
}),
});
+173
View File
@@ -0,0 +1,173 @@
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.mjs";
// 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",
}),
};
+2
View File
@@ -0,0 +1,2 @@
import type { Match } from "../../types.js";
export declare const match: Match;
+2
View File
@@ -0,0 +1,2 @@
import type { Match } from "../../types.js";
export declare const match: Match;
+137
View File
@@ -0,0 +1,137 @@
"use strict";
exports.match = void 0;
var _index = require("../../_lib/buildMatchFn.js");
var _index2 = require("../../_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,
},
};
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",
}),
});
+134
View File
@@ -0,0 +1,134 @@
import { buildMatchFn } from "../../_lib/buildMatchFn.mjs";
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.mjs";
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",
}),
};
+611
View File
@@ -0,0 +1,611 @@
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(obj, key, value) {key = _toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : String(i);}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}(function (_window$dateFns) {var __defProp = Object.defineProperty;
var __export = function __export(target, all) {
for (var name in all)
__defProp(target, name, {
get: all[name],
enumerable: true,
configurable: true,
set: function set(newValue) {return all[name] = function () {return newValue;};}
});
};
// lib/locale/te/_lib/formatDistance.mjs
var formatDistanceLocale = {
lessThanXSeconds: {
standalone: {
one: "\u0C38\u0C46\u0C15\u0C28\u0C41 \u0C15\u0C28\u0C4D\u0C28\u0C3E \u0C24\u0C15\u0C4D\u0C15\u0C41\u0C35",
other: "{{count}} \u0C38\u0C46\u0C15\u0C28\u0C4D\u0C32 \u0C15\u0C28\u0C4D\u0C28\u0C3E \u0C24\u0C15\u0C4D\u0C15\u0C41\u0C35"
},
withPreposition: {
one: "\u0C38\u0C46\u0C15\u0C28\u0C41",
other: "{{count}} \u0C38\u0C46\u0C15\u0C28\u0C4D\u0C32"
}
},
xSeconds: {
standalone: {
one: "\u0C12\u0C15 \u0C38\u0C46\u0C15\u0C28\u0C41",
other: "{{count}} \u0C38\u0C46\u0C15\u0C28\u0C4D\u0C32"
},
withPreposition: {
one: "\u0C12\u0C15 \u0C38\u0C46\u0C15\u0C28\u0C41",
other: "{{count}} \u0C38\u0C46\u0C15\u0C28\u0C4D\u0C32"
}
},
halfAMinute: {
standalone: "\u0C05\u0C30 \u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C02",
withPreposition: "\u0C05\u0C30 \u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C02"
},
lessThanXMinutes: {
standalone: {
one: "\u0C12\u0C15 \u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C02 \u0C15\u0C28\u0C4D\u0C28\u0C3E \u0C24\u0C15\u0C4D\u0C15\u0C41\u0C35",
other: "{{count}} \u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C3E\u0C32 \u0C15\u0C28\u0C4D\u0C28\u0C3E \u0C24\u0C15\u0C4D\u0C15\u0C41\u0C35"
},
withPreposition: {
one: "\u0C12\u0C15 \u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C02",
other: "{{count}} \u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C3E\u0C32"
}
},
xMinutes: {
standalone: {
one: "\u0C12\u0C15 \u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C02",
other: "{{count}} \u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C3E\u0C32\u0C41"
},
withPreposition: {
one: "\u0C12\u0C15 \u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C02",
other: "{{count}} \u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C3E\u0C32"
}
},
aboutXHours: {
standalone: {
one: "\u0C38\u0C41\u0C2E\u0C3E\u0C30\u0C41 \u0C12\u0C15 \u0C17\u0C02\u0C1F",
other: "\u0C38\u0C41\u0C2E\u0C3E\u0C30\u0C41 {{count}} \u0C17\u0C02\u0C1F\u0C32\u0C41"
},
withPreposition: {
one: "\u0C38\u0C41\u0C2E\u0C3E\u0C30\u0C41 \u0C12\u0C15 \u0C17\u0C02\u0C1F",
other: "\u0C38\u0C41\u0C2E\u0C3E\u0C30\u0C41 {{count}} \u0C17\u0C02\u0C1F\u0C32"
}
},
xHours: {
standalone: {
one: "\u0C12\u0C15 \u0C17\u0C02\u0C1F",
other: "{{count}} \u0C17\u0C02\u0C1F\u0C32\u0C41"
},
withPreposition: {
one: "\u0C12\u0C15 \u0C17\u0C02\u0C1F",
other: "{{count}} \u0C17\u0C02\u0C1F\u0C32"
}
},
xDays: {
standalone: {
one: "\u0C12\u0C15 \u0C30\u0C4B\u0C1C\u0C41",
other: "{{count}} \u0C30\u0C4B\u0C1C\u0C41\u0C32\u0C41"
},
withPreposition: {
one: "\u0C12\u0C15 \u0C30\u0C4B\u0C1C\u0C41",
other: "{{count}} \u0C30\u0C4B\u0C1C\u0C41\u0C32"
}
},
aboutXWeeks: {
standalone: {
one: "\u0C38\u0C41\u0C2E\u0C3E\u0C30\u0C41 \u0C12\u0C15 \u0C35\u0C3E\u0C30\u0C02",
other: "\u0C38\u0C41\u0C2E\u0C3E\u0C30\u0C41 {{count}} \u0C35\u0C3E\u0C30\u0C3E\u0C32\u0C41"
},
withPreposition: {
one: "\u0C38\u0C41\u0C2E\u0C3E\u0C30\u0C41 \u0C12\u0C15 \u0C35\u0C3E\u0C30\u0C02",
other: "\u0C38\u0C41\u0C2E\u0C3E\u0C30\u0C41 {{count}} \u0C35\u0C3E\u0C30\u0C3E\u0C32\u0C32"
}
},
xWeeks: {
standalone: {
one: "\u0C12\u0C15 \u0C35\u0C3E\u0C30\u0C02",
other: "{{count}} \u0C35\u0C3E\u0C30\u0C3E\u0C32\u0C41"
},
withPreposition: {
one: "\u0C12\u0C15 \u0C35\u0C3E\u0C30\u0C02",
other: "{{count}} \u0C35\u0C3E\u0C30\u0C3E\u0C32\u0C32"
}
},
aboutXMonths: {
standalone: {
one: "\u0C38\u0C41\u0C2E\u0C3E\u0C30\u0C41 \u0C12\u0C15 \u0C28\u0C46\u0C32",
other: "\u0C38\u0C41\u0C2E\u0C3E\u0C30\u0C41 {{count}} \u0C28\u0C46\u0C32\u0C32\u0C41"
},
withPreposition: {
one: "\u0C38\u0C41\u0C2E\u0C3E\u0C30\u0C41 \u0C12\u0C15 \u0C28\u0C46\u0C32",
other: "\u0C38\u0C41\u0C2E\u0C3E\u0C30\u0C41 {{count}} \u0C28\u0C46\u0C32\u0C32"
}
},
xMonths: {
standalone: {
one: "\u0C12\u0C15 \u0C28\u0C46\u0C32",
other: "{{count}} \u0C28\u0C46\u0C32\u0C32\u0C41"
},
withPreposition: {
one: "\u0C12\u0C15 \u0C28\u0C46\u0C32",
other: "{{count}} \u0C28\u0C46\u0C32\u0C32"
}
},
aboutXYears: {
standalone: {
one: "\u0C38\u0C41\u0C2E\u0C3E\u0C30\u0C41 \u0C12\u0C15 \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C02",
other: "\u0C38\u0C41\u0C2E\u0C3E\u0C30\u0C41 {{count}} \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C3E\u0C32\u0C41"
},
withPreposition: {
one: "\u0C38\u0C41\u0C2E\u0C3E\u0C30\u0C41 \u0C12\u0C15 \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C02",
other: "\u0C38\u0C41\u0C2E\u0C3E\u0C30\u0C41 {{count}} \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C3E\u0C32"
}
},
xYears: {
standalone: {
one: "\u0C12\u0C15 \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C02",
other: "{{count}} \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C3E\u0C32\u0C41"
},
withPreposition: {
one: "\u0C12\u0C15 \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C02",
other: "{{count}} \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C3E\u0C32"
}
},
overXYears: {
standalone: {
one: "\u0C12\u0C15 \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C02 \u0C2A\u0C48\u0C17\u0C3E",
other: "{{count}} \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C3E\u0C32\u0C15\u0C41 \u0C2A\u0C48\u0C17\u0C3E"
},
withPreposition: {
one: "\u0C12\u0C15 \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C02",
other: "{{count}} \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C3E\u0C32"
}
},
almostXYears: {
standalone: {
one: "\u0C26\u0C3E\u0C26\u0C3E\u0C2A\u0C41 \u0C12\u0C15 \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C02",
other: "\u0C26\u0C3E\u0C26\u0C3E\u0C2A\u0C41 {{count}} \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C3E\u0C32\u0C41"
},
withPreposition: {
one: "\u0C26\u0C3E\u0C26\u0C3E\u0C2A\u0C41 \u0C12\u0C15 \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C02",
other: "\u0C26\u0C3E\u0C26\u0C3E\u0C2A\u0C41 {{count}} \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C3E\u0C32"
}
}
};
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 + "\u0C32\u0C4B";
} else {
return result + " \u0C15\u0C4D\u0C30\u0C3F\u0C24\u0C02";
}
}
return result;
};
// lib/locale/_lib/buildFormatLongFn.mjs
function buildFormatLongFn(args) {
return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var width = options.width ? String(options.width) : args.defaultWidth;
var format = args.formats[width] || args.formats[args.defaultWidth];
return format;
};
}
// lib/locale/te/_lib/formatLong.mjs
var dateFormats = {
full: "d, MMMM y, EEEE",
long: "d MMMM, y",
medium: "d MMM, y",
short: "dd-MM-yy"
};
var timeFormats = {
full: "h:mm:ss a zzzz",
long: "h:mm:ss a z",
medium: "h:mm:ss a",
short: "h:mm a"
};
var dateTimeFormats = {
full: "{{date}} {{time}}'\u0C15\u0C3F'",
long: "{{date}} {{time}}'\u0C15\u0C3F'",
medium: "{{date}} {{time}}",
short: "{{date}} {{time}}"
};
var formatLong = {
date: buildFormatLongFn({
formats: dateFormats,
defaultWidth: "full"
}),
time: buildFormatLongFn({
formats: timeFormats,
defaultWidth: "full"
}),
dateTime: buildFormatLongFn({
formats: dateTimeFormats,
defaultWidth: "full"
})
};
// lib/locale/te/_lib/formatRelative.mjs
var formatRelativeLocale = {
lastWeek: "'\u0C17\u0C24' eeee p",
yesterday: "'\u0C28\u0C3F\u0C28\u0C4D\u0C28' p",
today: "'\u0C08 \u0C30\u0C4B\u0C1C\u0C41' p",
tomorrow: "'\u0C30\u0C47\u0C2A\u0C41' p",
nextWeek: "'\u0C24\u0C26\u0C41\u0C2A\u0C30\u0C3F' eeee p",
other: "P"
};
var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];};
// lib/locale/_lib/buildLocalizeFn.mjs
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];
};
}
// lib/locale/te/_lib/localize.mjs
var eraValues = {
narrow: ["\u0C15\u0C4D\u0C30\u0C40.\u0C2A\u0C42.", "\u0C15\u0C4D\u0C30\u0C40.\u0C36."],
abbreviated: ["\u0C15\u0C4D\u0C30\u0C40.\u0C2A\u0C42.", "\u0C15\u0C4D\u0C30\u0C40.\u0C36."],
wide: ["\u0C15\u0C4D\u0C30\u0C40\u0C38\u0C4D\u0C24\u0C41 \u0C2A\u0C42\u0C30\u0C4D\u0C35\u0C02", "\u0C15\u0C4D\u0C30\u0C40\u0C38\u0C4D\u0C24\u0C41\u0C36\u0C15\u0C02"]
};
var quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["\u0C24\u0C4D\u0C30\u0C481", "\u0C24\u0C4D\u0C30\u0C482", "\u0C24\u0C4D\u0C30\u0C483", "\u0C24\u0C4D\u0C30\u0C484"],
wide: ["1\u0C35 \u0C24\u0C4D\u0C30\u0C48\u0C2E\u0C3E\u0C38\u0C3F\u0C15\u0C02", "2\u0C35 \u0C24\u0C4D\u0C30\u0C48\u0C2E\u0C3E\u0C38\u0C3F\u0C15\u0C02", "3\u0C35 \u0C24\u0C4D\u0C30\u0C48\u0C2E\u0C3E\u0C38\u0C3F\u0C15\u0C02", "4\u0C35 \u0C24\u0C4D\u0C30\u0C48\u0C2E\u0C3E\u0C38\u0C3F\u0C15\u0C02"]
};
var monthValues = {
narrow: ["\u0C1C", "\u0C2B\u0C3F", "\u0C2E\u0C3E", "\u0C0F", "\u0C2E\u0C47", "\u0C1C\u0C42", "\u0C1C\u0C41", "\u0C06", "\u0C38\u0C46", "\u0C05", "\u0C28", "\u0C21\u0C3F"],
abbreviated: [
"\u0C1C\u0C28",
"\u0C2B\u0C3F\u0C2C\u0C4D\u0C30",
"\u0C2E\u0C3E\u0C30\u0C4D\u0C1A\u0C3F",
"\u0C0F\u0C2A\u0C4D\u0C30\u0C3F",
"\u0C2E\u0C47",
"\u0C1C\u0C42\u0C28\u0C4D",
"\u0C1C\u0C41\u0C32\u0C48",
"\u0C06\u0C17",
"\u0C38\u0C46\u0C2A\u0C4D\u0C1F\u0C46\u0C02",
"\u0C05\u0C15\u0C4D\u0C1F\u0C4B",
"\u0C28\u0C35\u0C02",
"\u0C21\u0C3F\u0C38\u0C46\u0C02"],
wide: [
"\u0C1C\u0C28\u0C35\u0C30\u0C3F",
"\u0C2B\u0C3F\u0C2C\u0C4D\u0C30\u0C35\u0C30\u0C3F",
"\u0C2E\u0C3E\u0C30\u0C4D\u0C1A\u0C3F",
"\u0C0F\u0C2A\u0C4D\u0C30\u0C3F\u0C32\u0C4D",
"\u0C2E\u0C47",
"\u0C1C\u0C42\u0C28\u0C4D",
"\u0C1C\u0C41\u0C32\u0C48",
"\u0C06\u0C17\u0C38\u0C4D\u0C1F\u0C41",
"\u0C38\u0C46\u0C2A\u0C4D\u0C1F\u0C46\u0C02\u0C2C\u0C30\u0C4D",
"\u0C05\u0C15\u0C4D\u0C1F\u0C4B\u0C2C\u0C30\u0C4D",
"\u0C28\u0C35\u0C02\u0C2C\u0C30\u0C4D",
"\u0C21\u0C3F\u0C38\u0C46\u0C02\u0C2C\u0C30\u0C4D"]
};
var dayValues = {
narrow: ["\u0C06", "\u0C38\u0C4B", "\u0C2E", "\u0C2C\u0C41", "\u0C17\u0C41", "\u0C36\u0C41", "\u0C36"],
short: ["\u0C06\u0C26\u0C3F", "\u0C38\u0C4B\u0C2E", "\u0C2E\u0C02\u0C17\u0C33", "\u0C2C\u0C41\u0C27", "\u0C17\u0C41\u0C30\u0C41", "\u0C36\u0C41\u0C15\u0C4D\u0C30", "\u0C36\u0C28\u0C3F"],
abbreviated: ["\u0C06\u0C26\u0C3F", "\u0C38\u0C4B\u0C2E", "\u0C2E\u0C02\u0C17\u0C33", "\u0C2C\u0C41\u0C27", "\u0C17\u0C41\u0C30\u0C41", "\u0C36\u0C41\u0C15\u0C4D\u0C30", "\u0C36\u0C28\u0C3F"],
wide: [
"\u0C06\u0C26\u0C3F\u0C35\u0C3E\u0C30\u0C02",
"\u0C38\u0C4B\u0C2E\u0C35\u0C3E\u0C30\u0C02",
"\u0C2E\u0C02\u0C17\u0C33\u0C35\u0C3E\u0C30\u0C02",
"\u0C2C\u0C41\u0C27\u0C35\u0C3E\u0C30\u0C02",
"\u0C17\u0C41\u0C30\u0C41\u0C35\u0C3E\u0C30\u0C02",
"\u0C36\u0C41\u0C15\u0C4D\u0C30\u0C35\u0C3E\u0C30\u0C02",
"\u0C36\u0C28\u0C3F\u0C35\u0C3E\u0C30\u0C02"]
};
var dayPeriodValues = {
narrow: {
am: "\u0C2A\u0C42\u0C30\u0C4D\u0C35\u0C3E\u0C39\u0C4D\u0C28\u0C02",
pm: "\u0C05\u0C2A\u0C30\u0C3E\u0C39\u0C4D\u0C28\u0C02",
midnight: "\u0C05\u0C30\u0C4D\u0C27\u0C30\u0C3E\u0C24\u0C4D\u0C30\u0C3F",
noon: "\u0C2E\u0C3F\u0C1F\u0C4D\u0C1F\u0C2E\u0C27\u0C4D\u0C2F\u0C3E\u0C39\u0C4D\u0C28\u0C02",
morning: "\u0C09\u0C26\u0C2F\u0C02",
afternoon: "\u0C2E\u0C27\u0C4D\u0C2F\u0C3E\u0C39\u0C4D\u0C28\u0C02",
evening: "\u0C38\u0C3E\u0C2F\u0C02\u0C24\u0C4D\u0C30\u0C02",
night: "\u0C30\u0C3E\u0C24\u0C4D\u0C30\u0C3F"
},
abbreviated: {
am: "\u0C2A\u0C42\u0C30\u0C4D\u0C35\u0C3E\u0C39\u0C4D\u0C28\u0C02",
pm: "\u0C05\u0C2A\u0C30\u0C3E\u0C39\u0C4D\u0C28\u0C02",
midnight: "\u0C05\u0C30\u0C4D\u0C27\u0C30\u0C3E\u0C24\u0C4D\u0C30\u0C3F",
noon: "\u0C2E\u0C3F\u0C1F\u0C4D\u0C1F\u0C2E\u0C27\u0C4D\u0C2F\u0C3E\u0C39\u0C4D\u0C28\u0C02",
morning: "\u0C09\u0C26\u0C2F\u0C02",
afternoon: "\u0C2E\u0C27\u0C4D\u0C2F\u0C3E\u0C39\u0C4D\u0C28\u0C02",
evening: "\u0C38\u0C3E\u0C2F\u0C02\u0C24\u0C4D\u0C30\u0C02",
night: "\u0C30\u0C3E\u0C24\u0C4D\u0C30\u0C3F"
},
wide: {
am: "\u0C2A\u0C42\u0C30\u0C4D\u0C35\u0C3E\u0C39\u0C4D\u0C28\u0C02",
pm: "\u0C05\u0C2A\u0C30\u0C3E\u0C39\u0C4D\u0C28\u0C02",
midnight: "\u0C05\u0C30\u0C4D\u0C27\u0C30\u0C3E\u0C24\u0C4D\u0C30\u0C3F",
noon: "\u0C2E\u0C3F\u0C1F\u0C4D\u0C1F\u0C2E\u0C27\u0C4D\u0C2F\u0C3E\u0C39\u0C4D\u0C28\u0C02",
morning: "\u0C09\u0C26\u0C2F\u0C02",
afternoon: "\u0C2E\u0C27\u0C4D\u0C2F\u0C3E\u0C39\u0C4D\u0C28\u0C02",
evening: "\u0C38\u0C3E\u0C2F\u0C02\u0C24\u0C4D\u0C30\u0C02",
night: "\u0C30\u0C3E\u0C24\u0C4D\u0C30\u0C3F"
}
};
var formattingDayPeriodValues = {
narrow: {
am: "\u0C2A\u0C42\u0C30\u0C4D\u0C35\u0C3E\u0C39\u0C4D\u0C28\u0C02",
pm: "\u0C05\u0C2A\u0C30\u0C3E\u0C39\u0C4D\u0C28\u0C02",
midnight: "\u0C05\u0C30\u0C4D\u0C27\u0C30\u0C3E\u0C24\u0C4D\u0C30\u0C3F",
noon: "\u0C2E\u0C3F\u0C1F\u0C4D\u0C1F\u0C2E\u0C27\u0C4D\u0C2F\u0C3E\u0C39\u0C4D\u0C28\u0C02",
morning: "\u0C09\u0C26\u0C2F\u0C02",
afternoon: "\u0C2E\u0C27\u0C4D\u0C2F\u0C3E\u0C39\u0C4D\u0C28\u0C02",
evening: "\u0C38\u0C3E\u0C2F\u0C02\u0C24\u0C4D\u0C30\u0C02",
night: "\u0C30\u0C3E\u0C24\u0C4D\u0C30\u0C3F"
},
abbreviated: {
am: "\u0C2A\u0C42\u0C30\u0C4D\u0C35\u0C3E\u0C39\u0C4D\u0C28\u0C02",
pm: "\u0C05\u0C2A\u0C30\u0C3E\u0C39\u0C4D\u0C28\u0C02",
midnight: "\u0C05\u0C30\u0C4D\u0C27\u0C30\u0C3E\u0C24\u0C4D\u0C30\u0C3F",
noon: "\u0C2E\u0C3F\u0C1F\u0C4D\u0C1F\u0C2E\u0C27\u0C4D\u0C2F\u0C3E\u0C39\u0C4D\u0C28\u0C02",
morning: "\u0C09\u0C26\u0C2F\u0C02",
afternoon: "\u0C2E\u0C27\u0C4D\u0C2F\u0C3E\u0C39\u0C4D\u0C28\u0C02",
evening: "\u0C38\u0C3E\u0C2F\u0C02\u0C24\u0C4D\u0C30\u0C02",
night: "\u0C30\u0C3E\u0C24\u0C4D\u0C30\u0C3F"
},
wide: {
am: "\u0C2A\u0C42\u0C30\u0C4D\u0C35\u0C3E\u0C39\u0C4D\u0C28\u0C02",
pm: "\u0C05\u0C2A\u0C30\u0C3E\u0C39\u0C4D\u0C28\u0C02",
midnight: "\u0C05\u0C30\u0C4D\u0C27\u0C30\u0C3E\u0C24\u0C4D\u0C30\u0C3F",
noon: "\u0C2E\u0C3F\u0C1F\u0C4D\u0C1F\u0C2E\u0C27\u0C4D\u0C2F\u0C3E\u0C39\u0C4D\u0C28\u0C02",
morning: "\u0C09\u0C26\u0C2F\u0C02",
afternoon: "\u0C2E\u0C27\u0C4D\u0C2F\u0C3E\u0C39\u0C4D\u0C28\u0C02",
evening: "\u0C38\u0C3E\u0C2F\u0C02\u0C24\u0C4D\u0C30\u0C02",
night: "\u0C30\u0C3E\u0C24\u0C4D\u0C30\u0C3F"
}
};
var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
var number = Number(dirtyNumber);
return number + "\u0C35";
};
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"
})
};
// lib/locale/_lib/buildMatchFn.mjs
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 };
};
}
var findKey = function findKey(object, predicate) {
for (var key in object) {
if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
return key;
}
}
return;
};
var findIndex = function findIndex(array, predicate) {
for (var key = 0; key < array.length; key++) {
if (predicate(array[key])) {
return key;
}
}
return;
};
// lib/locale/_lib/buildMatchPatternFn.mjs
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 };
};
}
// lib/locale/te/_lib/match.mjs
var matchOrdinalNumberPattern = /^(\d+)(వ)?/i;
var parseOrdinalNumberPattern = /\d+/i;
var matchEraPatterns = {
narrow: /^(క్రీ\.పూ\.|క్రీ\.శ\.)/i,
abbreviated: /^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i,
wide: /^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i
};
var parseEraPatterns = {
any: [/^(పూ|శ)/i, /^సా/i]
};
var matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^త్రై[1234]/i,
wide: /^[1234](వ)? త్రైమాసికం/i
};
var parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i]
};
var matchMonthPatterns = {
narrow: /^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i,
abbreviated: /^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i,
wide: /^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i
};
var 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]
};
var matchDayPatterns = {
narrow: /^(ఆ|సో|మ|బు|గు|శు|శ)/i,
short: /^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,
abbreviated: /^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,
wide: /^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i
};
var parseDayPatterns = {
narrow: [/^ఆ/i, /^సో/i, /^మ/i, /^బు/i, /^గు/i, /^శు/i, /^శ/i],
any: [/^ఆది/i, /^సోమ/i, /^మం/i, /^బుధ/i, /^గురు/i, /^శుక్ర/i, /^శని/i]
};
var matchDayPeriodPatterns = {
narrow: /^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i,
any: /^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i
};
var parseDayPeriodPatterns = {
any: {
am: /^పూర్వాహ్నం/i,
pm: /^అపరాహ్నం/i,
midnight: /^అర్ధ/i,
noon: /^మిట్ట/i,
morning: /ఉదయం/i,
afternoon: /మధ్యాహ్నం/i,
evening: /సాయంత్రం/i,
night: /రాత్రి/i
}
};
var match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: function valueCallback(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 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"
})
};
// lib/locale/te.mjs
var te = {
code: "te",
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
options: {
weekStartsOn: 0,
firstWeekContainsDate: 1
}
};
// lib/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 }) });
//# debugId=09058E5C8E5C8F2964756e2164756e21
})();
//# sourceMappingURL=cdn.js.map
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long