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;

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

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

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

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

View File

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

2
node_modules/date-fns/locale/sl/_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/sl/_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, 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",
}),
});

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

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

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;

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

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

View File

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

2
node_modules/date-fns/locale/sl/_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/sl/_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;

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

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

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

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

2
node_modules/date-fns/locale/sl/_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/sl/_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;

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

@@ -0,0 +1,160 @@
"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 = {
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",
}),
});

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

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