cdn.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  1. (() => {
  2. var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(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);}var __defProp = Object.defineProperty;
  3. var __export = function __export(target, all) {
  4. for (var name in all)
  5. __defProp(target, name, {
  6. get: all[name],
  7. enumerable: true,
  8. configurable: true,
  9. set: function set(newValue) {return all[name] = function () {return newValue;};}
  10. });
  11. };
  12. // lib/locale/lt/_lib/formatDistance.js
  13. function special(number) {
  14. return number % 10 === 0 || number > 10 && number < 20;
  15. }
  16. function forms(key) {
  17. return translations[key].split("_");
  18. }
  19. var translations = {
  20. xseconds_other: "sekund\u0117_sekund\u017Ei\u0173_sekundes",
  21. xminutes_one: "minut\u0117_minut\u0117s_minut\u0119",
  22. xminutes_other: "minut\u0117s_minu\u010Di\u0173_minutes",
  23. xhours_one: "valanda_valandos_valand\u0105",
  24. xhours_other: "valandos_valand\u0173_valandas",
  25. xdays_one: "diena_dienos_dien\u0105",
  26. xdays_other: "dienos_dien\u0173_dienas",
  27. xweeks_one: "savait\u0117_savait\u0117s_savait\u0119",
  28. xweeks_other: "savait\u0117s_savai\u010Di\u0173_savaites",
  29. xmonths_one: "m\u0117nuo_m\u0117nesio_m\u0117nes\u012F",
  30. xmonths_other: "m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",
  31. xyears_one: "metai_met\u0173_metus",
  32. xyears_other: "metai_met\u0173_metus",
  33. about: "apie",
  34. over: "daugiau nei",
  35. almost: "beveik",
  36. lessthan: "ma\u017Eiau nei"
  37. };
  38. var translateSeconds = function translateSeconds(_number, addSuffix, _key, isFuture) {
  39. if (!addSuffix) {
  40. return "kelios sekund\u0117s";
  41. } else {
  42. return isFuture ? "keli\u0173 sekund\u017Ei\u0173" : "kelias sekundes";
  43. }
  44. };
  45. var translateSingular = function translateSingular(_number, addSuffix, key, isFuture) {
  46. return !addSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2];
  47. };
  48. var translate = function translate(number, addSuffix, key, isFuture) {
  49. var result = number + " ";
  50. if (number === 1) {
  51. return result + translateSingular(number, addSuffix, key, isFuture);
  52. } else if (!addSuffix) {
  53. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  54. } else {
  55. if (isFuture) {
  56. return result + forms(key)[1];
  57. } else {
  58. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  59. }
  60. }
  61. };
  62. var formatDistanceLocale = {
  63. lessThanXSeconds: {
  64. one: translateSeconds,
  65. other: translate
  66. },
  67. xSeconds: {
  68. one: translateSeconds,
  69. other: translate
  70. },
  71. halfAMinute: "pus\u0117 minut\u0117s",
  72. lessThanXMinutes: {
  73. one: translateSingular,
  74. other: translate
  75. },
  76. xMinutes: {
  77. one: translateSingular,
  78. other: translate
  79. },
  80. aboutXHours: {
  81. one: translateSingular,
  82. other: translate
  83. },
  84. xHours: {
  85. one: translateSingular,
  86. other: translate
  87. },
  88. xDays: {
  89. one: translateSingular,
  90. other: translate
  91. },
  92. aboutXWeeks: {
  93. one: translateSingular,
  94. other: translate
  95. },
  96. xWeeks: {
  97. one: translateSingular,
  98. other: translate
  99. },
  100. aboutXMonths: {
  101. one: translateSingular,
  102. other: translate
  103. },
  104. xMonths: {
  105. one: translateSingular,
  106. other: translate
  107. },
  108. aboutXYears: {
  109. one: translateSingular,
  110. other: translate
  111. },
  112. xYears: {
  113. one: translateSingular,
  114. other: translate
  115. },
  116. overXYears: {
  117. one: translateSingular,
  118. other: translate
  119. },
  120. almostXYears: {
  121. one: translateSingular,
  122. other: translate
  123. }
  124. };
  125. var formatDistance = function formatDistance(token, count, options) {
  126. var adverb = token.match(/about|over|almost|lessthan/i);
  127. var unit = adverb ? token.replace(adverb[0], "") : token;
  128. var isFuture = (options === null || options === void 0 ? void 0 : options.comparison) !== undefined && options.comparison > 0;
  129. var result;
  130. var tokenValue = formatDistanceLocale[token];
  131. if (typeof tokenValue === "string") {
  132. result = tokenValue;
  133. } else if (count === 1) {
  134. result = tokenValue.one(count, (options === null || options === void 0 ? void 0 : options.addSuffix) === true, unit.toLowerCase() + "_one", isFuture);
  135. } else {
  136. result = tokenValue.other(count, (options === null || options === void 0 ? void 0 : options.addSuffix) === true, unit.toLowerCase() + "_other", isFuture);
  137. }
  138. if (adverb) {
  139. var key = adverb[0].toLowerCase();
  140. result = translations[key] + " " + result;
  141. }
  142. if (options !== null && options !== void 0 && options.addSuffix) {
  143. if (options.comparison && options.comparison > 0) {
  144. return "po " + result;
  145. } else {
  146. return "prie\u0161 " + result;
  147. }
  148. }
  149. return result;
  150. };
  151. // lib/locale/_lib/buildFormatLongFn.js
  152. function buildFormatLongFn(args) {
  153. return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  154. var width = options.width ? String(options.width) : args.defaultWidth;
  155. var format = args.formats[width] || args.formats[args.defaultWidth];
  156. return format;
  157. };
  158. }
  159. // lib/locale/lt/_lib/formatLong.js
  160. var dateFormats = {
  161. full: "y 'm'. MMMM d 'd'., EEEE",
  162. long: "y 'm'. MMMM d 'd'.",
  163. medium: "y-MM-dd",
  164. short: "y-MM-dd"
  165. };
  166. var timeFormats = {
  167. full: "HH:mm:ss zzzz",
  168. long: "HH:mm:ss z",
  169. medium: "HH:mm:ss",
  170. short: "HH:mm"
  171. };
  172. var dateTimeFormats = {
  173. full: "{{date}} {{time}}",
  174. long: "{{date}} {{time}}",
  175. medium: "{{date}} {{time}}",
  176. short: "{{date}} {{time}}"
  177. };
  178. var formatLong = {
  179. date: buildFormatLongFn({
  180. formats: dateFormats,
  181. defaultWidth: "full"
  182. }),
  183. time: buildFormatLongFn({
  184. formats: timeFormats,
  185. defaultWidth: "full"
  186. }),
  187. dateTime: buildFormatLongFn({
  188. formats: dateTimeFormats,
  189. defaultWidth: "full"
  190. })
  191. };
  192. // lib/locale/lt/_lib/formatRelative.js
  193. var formatRelativeLocale = {
  194. lastWeek: "'Pra\u0117jus\u012F' eeee p",
  195. yesterday: "'Vakar' p",
  196. today: "'\u0160iandien' p",
  197. tomorrow: "'Rytoj' p",
  198. nextWeek: "eeee p",
  199. other: "P"
  200. };
  201. var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];};
  202. // lib/locale/_lib/buildLocalizeFn.js
  203. function buildLocalizeFn(args) {
  204. return function (value, options) {
  205. var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone";
  206. var valuesArray;
  207. if (context === "formatting" && args.formattingValues) {
  208. var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
  209. var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
  210. valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
  211. } else {
  212. var _defaultWidth = args.defaultWidth;
  213. var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
  214. valuesArray = args.values[_width] || args.values[_defaultWidth];
  215. }
  216. var index = args.argumentCallback ? args.argumentCallback(value) : value;
  217. return valuesArray[index];
  218. };
  219. }
  220. // lib/locale/lt/_lib/localize.js
  221. var eraValues = {
  222. narrow: ["pr. Kr.", "po Kr."],
  223. abbreviated: ["pr. Kr.", "po Kr."],
  224. wide: ["prie\u0161 Krist\u0173", "po Kristaus"]
  225. };
  226. var quarterValues = {
  227. narrow: ["1", "2", "3", "4"],
  228. abbreviated: ["I ketv.", "II ketv.", "III ketv.", "IV ketv."],
  229. wide: ["I ketvirtis", "II ketvirtis", "III ketvirtis", "IV ketvirtis"]
  230. };
  231. var formattingQuarterValues = {
  232. narrow: ["1", "2", "3", "4"],
  233. abbreviated: ["I k.", "II k.", "III k.", "IV k."],
  234. wide: ["I ketvirtis", "II ketvirtis", "III ketvirtis", "IV ketvirtis"]
  235. };
  236. var monthValues = {
  237. narrow: ["S", "V", "K", "B", "G", "B", "L", "R", "R", "S", "L", "G"],
  238. abbreviated: [
  239. "saus.",
  240. "vas.",
  241. "kov.",
  242. "bal.",
  243. "geg.",
  244. "bir\u017E.",
  245. "liep.",
  246. "rugp.",
  247. "rugs.",
  248. "spal.",
  249. "lapkr.",
  250. "gruod."],
  251. wide: [
  252. "sausis",
  253. "vasaris",
  254. "kovas",
  255. "balandis",
  256. "gegu\u017E\u0117",
  257. "bir\u017Eelis",
  258. "liepa",
  259. "rugpj\u016Btis",
  260. "rugs\u0117jis",
  261. "spalis",
  262. "lapkritis",
  263. "gruodis"]
  264. };
  265. var formattingMonthValues = {
  266. narrow: ["S", "V", "K", "B", "G", "B", "L", "R", "R", "S", "L", "G"],
  267. abbreviated: [
  268. "saus.",
  269. "vas.",
  270. "kov.",
  271. "bal.",
  272. "geg.",
  273. "bir\u017E.",
  274. "liep.",
  275. "rugp.",
  276. "rugs.",
  277. "spal.",
  278. "lapkr.",
  279. "gruod."],
  280. wide: [
  281. "sausio",
  282. "vasario",
  283. "kovo",
  284. "baland\u017Eio",
  285. "gegu\u017E\u0117s",
  286. "bir\u017Eelio",
  287. "liepos",
  288. "rugpj\u016B\u010Dio",
  289. "rugs\u0117jo",
  290. "spalio",
  291. "lapkri\u010Dio",
  292. "gruod\u017Eio"]
  293. };
  294. var dayValues = {
  295. narrow: ["S", "P", "A", "T", "K", "P", "\u0160"],
  296. short: ["Sk", "Pr", "An", "Tr", "Kt", "Pn", "\u0160t"],
  297. abbreviated: ["sk", "pr", "an", "tr", "kt", "pn", "\u0161t"],
  298. wide: [
  299. "sekmadienis",
  300. "pirmadienis",
  301. "antradienis",
  302. "tre\u010Diadienis",
  303. "ketvirtadienis",
  304. "penktadienis",
  305. "\u0161e\u0161tadienis"]
  306. };
  307. var formattingDayValues = {
  308. narrow: ["S", "P", "A", "T", "K", "P", "\u0160"],
  309. short: ["Sk", "Pr", "An", "Tr", "Kt", "Pn", "\u0160t"],
  310. abbreviated: ["sk", "pr", "an", "tr", "kt", "pn", "\u0161t"],
  311. wide: [
  312. "sekmadien\u012F",
  313. "pirmadien\u012F",
  314. "antradien\u012F",
  315. "tre\u010Diadien\u012F",
  316. "ketvirtadien\u012F",
  317. "penktadien\u012F",
  318. "\u0161e\u0161tadien\u012F"]
  319. };
  320. var dayPeriodValues = {
  321. narrow: {
  322. am: "pr. p.",
  323. pm: "pop.",
  324. midnight: "vidurnaktis",
  325. noon: "vidurdienis",
  326. morning: "rytas",
  327. afternoon: "diena",
  328. evening: "vakaras",
  329. night: "naktis"
  330. },
  331. abbreviated: {
  332. am: "prie\u0161piet",
  333. pm: "popiet",
  334. midnight: "vidurnaktis",
  335. noon: "vidurdienis",
  336. morning: "rytas",
  337. afternoon: "diena",
  338. evening: "vakaras",
  339. night: "naktis"
  340. },
  341. wide: {
  342. am: "prie\u0161piet",
  343. pm: "popiet",
  344. midnight: "vidurnaktis",
  345. noon: "vidurdienis",
  346. morning: "rytas",
  347. afternoon: "diena",
  348. evening: "vakaras",
  349. night: "naktis"
  350. }
  351. };
  352. var formattingDayPeriodValues = {
  353. narrow: {
  354. am: "pr. p.",
  355. pm: "pop.",
  356. midnight: "vidurnaktis",
  357. noon: "perpiet",
  358. morning: "rytas",
  359. afternoon: "popiet\u0117",
  360. evening: "vakaras",
  361. night: "naktis"
  362. },
  363. abbreviated: {
  364. am: "prie\u0161piet",
  365. pm: "popiet",
  366. midnight: "vidurnaktis",
  367. noon: "perpiet",
  368. morning: "rytas",
  369. afternoon: "popiet\u0117",
  370. evening: "vakaras",
  371. night: "naktis"
  372. },
  373. wide: {
  374. am: "prie\u0161piet",
  375. pm: "popiet",
  376. midnight: "vidurnaktis",
  377. noon: "perpiet",
  378. morning: "rytas",
  379. afternoon: "popiet\u0117",
  380. evening: "vakaras",
  381. night: "naktis"
  382. }
  383. };
  384. var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
  385. var number = Number(dirtyNumber);
  386. return number + "-oji";
  387. };
  388. var localize = {
  389. ordinalNumber: ordinalNumber,
  390. era: buildLocalizeFn({
  391. values: eraValues,
  392. defaultWidth: "wide"
  393. }),
  394. quarter: buildLocalizeFn({
  395. values: quarterValues,
  396. defaultWidth: "wide",
  397. formattingValues: formattingQuarterValues,
  398. defaultFormattingWidth: "wide",
  399. argumentCallback: function argumentCallback(quarter) {return quarter - 1;}
  400. }),
  401. month: buildLocalizeFn({
  402. values: monthValues,
  403. defaultWidth: "wide",
  404. formattingValues: formattingMonthValues,
  405. defaultFormattingWidth: "wide"
  406. }),
  407. day: buildLocalizeFn({
  408. values: dayValues,
  409. defaultWidth: "wide",
  410. formattingValues: formattingDayValues,
  411. defaultFormattingWidth: "wide"
  412. }),
  413. dayPeriod: buildLocalizeFn({
  414. values: dayPeriodValues,
  415. defaultWidth: "wide",
  416. formattingValues: formattingDayPeriodValues,
  417. defaultFormattingWidth: "wide"
  418. })
  419. };
  420. // lib/locale/_lib/buildMatchFn.js
  421. function buildMatchFn(args) {
  422. return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  423. var width = options.width;
  424. var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
  425. var matchResult = string.match(matchPattern);
  426. if (!matchResult) {
  427. return null;
  428. }
  429. var matchedString = matchResult[0];
  430. var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
  431. var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);});
  432. var value;
  433. value = args.valueCallback ? args.valueCallback(key) : key;
  434. value = options.valueCallback ? options.valueCallback(value) : value;
  435. var rest = string.slice(matchedString.length);
  436. return { value: value, rest: rest };
  437. };
  438. }
  439. function findKey(object, predicate) {
  440. for (var key in object) {
  441. if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
  442. return key;
  443. }
  444. }
  445. return;
  446. }
  447. function findIndex(array, predicate) {
  448. for (var key = 0; key < array.length; key++) {
  449. if (predicate(array[key])) {
  450. return key;
  451. }
  452. }
  453. return;
  454. }
  455. // lib/locale/_lib/buildMatchPatternFn.js
  456. function buildMatchPatternFn(args) {
  457. return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  458. var matchResult = string.match(args.matchPattern);
  459. if (!matchResult)
  460. return null;
  461. var matchedString = matchResult[0];
  462. var parseResult = string.match(args.parsePattern);
  463. if (!parseResult)
  464. return null;
  465. var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
  466. value = options.valueCallback ? options.valueCallback(value) : value;
  467. var rest = string.slice(matchedString.length);
  468. return { value: value, rest: rest };
  469. };
  470. }
  471. // lib/locale/lt/_lib/match.js
  472. var matchOrdinalNumberPattern = /^(\d+)(-oji)?/i;
  473. var parseOrdinalNumberPattern = /\d+/i;
  474. var matchEraPatterns = {
  475. narrow: /^p(r|o)\.?\s?(kr\.?|me)/i,
  476. abbreviated: /^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i,
  477. wide: /^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i
  478. };
  479. var parseEraPatterns = {
  480. wide: [/prieš/i, /(po|mūsų)/i],
  481. any: [/^pr/i, /^(po|m)/i]
  482. };
  483. var matchQuarterPatterns = {
  484. narrow: /^([1234])/i,
  485. abbreviated: /^(I|II|III|IV)\s?ketv?\.?/i,
  486. wide: /^(I|II|III|IV)\s?ketvirtis/i
  487. };
  488. var parseQuarterPatterns = {
  489. narrow: [/1/i, /2/i, /3/i, /4/i],
  490. any: [/I$/i, /II$/i, /III/i, /IV/i]
  491. };
  492. var matchMonthPatterns = {
  493. narrow: /^[svkbglr]/i,
  494. abbreviated: /^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i,
  495. wide: /^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i
  496. };
  497. var parseMonthPatterns = {
  498. narrow: [
  499. /^s/i,
  500. /^v/i,
  501. /^k/i,
  502. /^b/i,
  503. /^g/i,
  504. /^b/i,
  505. /^l/i,
  506. /^r/i,
  507. /^r/i,
  508. /^s/i,
  509. /^l/i,
  510. /^g/i],
  511. any: [
  512. /^saus/i,
  513. /^vas/i,
  514. /^kov/i,
  515. /^bal/i,
  516. /^geg/i,
  517. /^birž/i,
  518. /^liep/i,
  519. /^rugp/i,
  520. /^rugs/i,
  521. /^spal/i,
  522. /^lapkr/i,
  523. /^gruod/i]
  524. };
  525. var matchDayPatterns = {
  526. narrow: /^[spatkš]/i,
  527. short: /^(sk|pr|an|tr|kt|pn|št)/i,
  528. abbreviated: /^(sk|pr|an|tr|kt|pn|št)/i,
  529. wide: /^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i
  530. };
  531. var parseDayPatterns = {
  532. narrow: [/^s/i, /^p/i, /^a/i, /^t/i, /^k/i, /^p/i, /^š/i],
  533. wide: [/^se/i, /^pi/i, /^an/i, /^tr/i, /^ke/i, /^pe/i, /^še/i],
  534. any: [/^sk/i, /^pr/i, /^an/i, /^tr/i, /^kt/i, /^pn/i, /^št/i]
  535. };
  536. var matchDayPeriodPatterns = {
  537. narrow: /^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i,
  538. any: /^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i
  539. };
  540. var parseDayPeriodPatterns = {
  541. narrow: {
  542. am: /^pr/i,
  543. pm: /^pop./i,
  544. midnight: /^vidurnaktis/i,
  545. noon: /^(vidurdienis|perp)/i,
  546. morning: /rytas/i,
  547. afternoon: /(die|popietė)/i,
  548. evening: /vakaras/i,
  549. night: /naktis/i
  550. },
  551. any: {
  552. am: /^pr/i,
  553. pm: /^popiet$/i,
  554. midnight: /^vidurnaktis/i,
  555. noon: /^(vidurdienis|perp)/i,
  556. morning: /rytas/i,
  557. afternoon: /(die|popietė)/i,
  558. evening: /vakaras/i,
  559. night: /naktis/i
  560. }
  561. };
  562. var match = {
  563. ordinalNumber: buildMatchPatternFn({
  564. matchPattern: matchOrdinalNumberPattern,
  565. parsePattern: parseOrdinalNumberPattern,
  566. valueCallback: function valueCallback(value) {return parseInt(value, 10);}
  567. }),
  568. era: buildMatchFn({
  569. matchPatterns: matchEraPatterns,
  570. defaultMatchWidth: "wide",
  571. parsePatterns: parseEraPatterns,
  572. defaultParseWidth: "any"
  573. }),
  574. quarter: buildMatchFn({
  575. matchPatterns: matchQuarterPatterns,
  576. defaultMatchWidth: "wide",
  577. parsePatterns: parseQuarterPatterns,
  578. defaultParseWidth: "any",
  579. valueCallback: function valueCallback(index) {return index + 1;}
  580. }),
  581. month: buildMatchFn({
  582. matchPatterns: matchMonthPatterns,
  583. defaultMatchWidth: "wide",
  584. parsePatterns: parseMonthPatterns,
  585. defaultParseWidth: "any"
  586. }),
  587. day: buildMatchFn({
  588. matchPatterns: matchDayPatterns,
  589. defaultMatchWidth: "wide",
  590. parsePatterns: parseDayPatterns,
  591. defaultParseWidth: "any"
  592. }),
  593. dayPeriod: buildMatchFn({
  594. matchPatterns: matchDayPeriodPatterns,
  595. defaultMatchWidth: "any",
  596. parsePatterns: parseDayPeriodPatterns,
  597. defaultParseWidth: "any"
  598. })
  599. };
  600. // lib/locale/lt.js
  601. var lt = {
  602. code: "lt",
  603. formatDistance: formatDistance,
  604. formatLong: formatLong,
  605. formatRelative: formatRelative,
  606. localize: localize,
  607. match: match,
  608. options: {
  609. weekStartsOn: 1,
  610. firstWeekContainsDate: 4
  611. }
  612. };
  613. // lib/locale/lt/cdn.js
  614. window.dateFns = _objectSpread(_objectSpread({},
  615. window.dateFns), {}, {
  616. locale: _objectSpread(_objectSpread({}, (_window$dateFns =
  617. window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, {
  618. lt: lt }) });
  619. //# debugId=27AFBC133550450364756E2164756E21
  620. //# sourceMappingURL=cdn.js.map
  621. })();