cdn.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768
  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/cs/_lib/formatDistance.js
  13. var formatDistanceLocale = {
  14. lessThanXSeconds: {
  15. one: {
  16. regular: "m\xE9n\u011B ne\u017E 1 sekunda",
  17. past: "p\u0159ed m\xE9n\u011B ne\u017E 1 sekundou",
  18. future: "za m\xE9n\u011B ne\u017E 1 sekundu"
  19. },
  20. few: {
  21. regular: "m\xE9n\u011B ne\u017E {{count}} sekundy",
  22. past: "p\u0159ed m\xE9n\u011B ne\u017E {{count}} sekundami",
  23. future: "za m\xE9n\u011B ne\u017E {{count}} sekundy"
  24. },
  25. many: {
  26. regular: "m\xE9n\u011B ne\u017E {{count}} sekund",
  27. past: "p\u0159ed m\xE9n\u011B ne\u017E {{count}} sekundami",
  28. future: "za m\xE9n\u011B ne\u017E {{count}} sekund"
  29. }
  30. },
  31. xSeconds: {
  32. one: {
  33. regular: "1 sekunda",
  34. past: "p\u0159ed 1 sekundou",
  35. future: "za 1 sekundu"
  36. },
  37. few: {
  38. regular: "{{count}} sekundy",
  39. past: "p\u0159ed {{count}} sekundami",
  40. future: "za {{count}} sekundy"
  41. },
  42. many: {
  43. regular: "{{count}} sekund",
  44. past: "p\u0159ed {{count}} sekundami",
  45. future: "za {{count}} sekund"
  46. }
  47. },
  48. halfAMinute: {
  49. type: "other",
  50. other: {
  51. regular: "p\u016Fl minuty",
  52. past: "p\u0159ed p\u016Fl minutou",
  53. future: "za p\u016Fl minuty"
  54. }
  55. },
  56. lessThanXMinutes: {
  57. one: {
  58. regular: "m\xE9n\u011B ne\u017E 1 minuta",
  59. past: "p\u0159ed m\xE9n\u011B ne\u017E 1 minutou",
  60. future: "za m\xE9n\u011B ne\u017E 1 minutu"
  61. },
  62. few: {
  63. regular: "m\xE9n\u011B ne\u017E {{count}} minuty",
  64. past: "p\u0159ed m\xE9n\u011B ne\u017E {{count}} minutami",
  65. future: "za m\xE9n\u011B ne\u017E {{count}} minuty"
  66. },
  67. many: {
  68. regular: "m\xE9n\u011B ne\u017E {{count}} minut",
  69. past: "p\u0159ed m\xE9n\u011B ne\u017E {{count}} minutami",
  70. future: "za m\xE9n\u011B ne\u017E {{count}} minut"
  71. }
  72. },
  73. xMinutes: {
  74. one: {
  75. regular: "1 minuta",
  76. past: "p\u0159ed 1 minutou",
  77. future: "za 1 minutu"
  78. },
  79. few: {
  80. regular: "{{count}} minuty",
  81. past: "p\u0159ed {{count}} minutami",
  82. future: "za {{count}} minuty"
  83. },
  84. many: {
  85. regular: "{{count}} minut",
  86. past: "p\u0159ed {{count}} minutami",
  87. future: "za {{count}} minut"
  88. }
  89. },
  90. aboutXHours: {
  91. one: {
  92. regular: "p\u0159ibli\u017En\u011B 1 hodina",
  93. past: "p\u0159ibli\u017En\u011B p\u0159ed 1 hodinou",
  94. future: "p\u0159ibli\u017En\u011B za 1 hodinu"
  95. },
  96. few: {
  97. regular: "p\u0159ibli\u017En\u011B {{count}} hodiny",
  98. past: "p\u0159ibli\u017En\u011B p\u0159ed {{count}} hodinami",
  99. future: "p\u0159ibli\u017En\u011B za {{count}} hodiny"
  100. },
  101. many: {
  102. regular: "p\u0159ibli\u017En\u011B {{count}} hodin",
  103. past: "p\u0159ibli\u017En\u011B p\u0159ed {{count}} hodinami",
  104. future: "p\u0159ibli\u017En\u011B za {{count}} hodin"
  105. }
  106. },
  107. xHours: {
  108. one: {
  109. regular: "1 hodina",
  110. past: "p\u0159ed 1 hodinou",
  111. future: "za 1 hodinu"
  112. },
  113. few: {
  114. regular: "{{count}} hodiny",
  115. past: "p\u0159ed {{count}} hodinami",
  116. future: "za {{count}} hodiny"
  117. },
  118. many: {
  119. regular: "{{count}} hodin",
  120. past: "p\u0159ed {{count}} hodinami",
  121. future: "za {{count}} hodin"
  122. }
  123. },
  124. xDays: {
  125. one: {
  126. regular: "1 den",
  127. past: "p\u0159ed 1 dnem",
  128. future: "za 1 den"
  129. },
  130. few: {
  131. regular: "{{count}} dny",
  132. past: "p\u0159ed {{count}} dny",
  133. future: "za {{count}} dny"
  134. },
  135. many: {
  136. regular: "{{count}} dn\xED",
  137. past: "p\u0159ed {{count}} dny",
  138. future: "za {{count}} dn\xED"
  139. }
  140. },
  141. aboutXWeeks: {
  142. one: {
  143. regular: "p\u0159ibli\u017En\u011B 1 t\xFDden",
  144. past: "p\u0159ibli\u017En\u011B p\u0159ed 1 t\xFDdnem",
  145. future: "p\u0159ibli\u017En\u011B za 1 t\xFDden"
  146. },
  147. few: {
  148. regular: "p\u0159ibli\u017En\u011B {{count}} t\xFDdny",
  149. past: "p\u0159ibli\u017En\u011B p\u0159ed {{count}} t\xFDdny",
  150. future: "p\u0159ibli\u017En\u011B za {{count}} t\xFDdny"
  151. },
  152. many: {
  153. regular: "p\u0159ibli\u017En\u011B {{count}} t\xFDdn\u016F",
  154. past: "p\u0159ibli\u017En\u011B p\u0159ed {{count}} t\xFDdny",
  155. future: "p\u0159ibli\u017En\u011B za {{count}} t\xFDdn\u016F"
  156. }
  157. },
  158. xWeeks: {
  159. one: {
  160. regular: "1 t\xFDden",
  161. past: "p\u0159ed 1 t\xFDdnem",
  162. future: "za 1 t\xFDden"
  163. },
  164. few: {
  165. regular: "{{count}} t\xFDdny",
  166. past: "p\u0159ed {{count}} t\xFDdny",
  167. future: "za {{count}} t\xFDdny"
  168. },
  169. many: {
  170. regular: "{{count}} t\xFDdn\u016F",
  171. past: "p\u0159ed {{count}} t\xFDdny",
  172. future: "za {{count}} t\xFDdn\u016F"
  173. }
  174. },
  175. aboutXMonths: {
  176. one: {
  177. regular: "p\u0159ibli\u017En\u011B 1 m\u011Bs\xEDc",
  178. past: "p\u0159ibli\u017En\u011B p\u0159ed 1 m\u011Bs\xEDcem",
  179. future: "p\u0159ibli\u017En\u011B za 1 m\u011Bs\xEDc"
  180. },
  181. few: {
  182. regular: "p\u0159ibli\u017En\u011B {{count}} m\u011Bs\xEDce",
  183. past: "p\u0159ibli\u017En\u011B p\u0159ed {{count}} m\u011Bs\xEDci",
  184. future: "p\u0159ibli\u017En\u011B za {{count}} m\u011Bs\xEDce"
  185. },
  186. many: {
  187. regular: "p\u0159ibli\u017En\u011B {{count}} m\u011Bs\xEDc\u016F",
  188. past: "p\u0159ibli\u017En\u011B p\u0159ed {{count}} m\u011Bs\xEDci",
  189. future: "p\u0159ibli\u017En\u011B za {{count}} m\u011Bs\xEDc\u016F"
  190. }
  191. },
  192. xMonths: {
  193. one: {
  194. regular: "1 m\u011Bs\xEDc",
  195. past: "p\u0159ed 1 m\u011Bs\xEDcem",
  196. future: "za 1 m\u011Bs\xEDc"
  197. },
  198. few: {
  199. regular: "{{count}} m\u011Bs\xEDce",
  200. past: "p\u0159ed {{count}} m\u011Bs\xEDci",
  201. future: "za {{count}} m\u011Bs\xEDce"
  202. },
  203. many: {
  204. regular: "{{count}} m\u011Bs\xEDc\u016F",
  205. past: "p\u0159ed {{count}} m\u011Bs\xEDci",
  206. future: "za {{count}} m\u011Bs\xEDc\u016F"
  207. }
  208. },
  209. aboutXYears: {
  210. one: {
  211. regular: "p\u0159ibli\u017En\u011B 1 rok",
  212. past: "p\u0159ibli\u017En\u011B p\u0159ed 1 rokem",
  213. future: "p\u0159ibli\u017En\u011B za 1 rok"
  214. },
  215. few: {
  216. regular: "p\u0159ibli\u017En\u011B {{count}} roky",
  217. past: "p\u0159ibli\u017En\u011B p\u0159ed {{count}} roky",
  218. future: "p\u0159ibli\u017En\u011B za {{count}} roky"
  219. },
  220. many: {
  221. regular: "p\u0159ibli\u017En\u011B {{count}} rok\u016F",
  222. past: "p\u0159ibli\u017En\u011B p\u0159ed {{count}} roky",
  223. future: "p\u0159ibli\u017En\u011B za {{count}} rok\u016F"
  224. }
  225. },
  226. xYears: {
  227. one: {
  228. regular: "1 rok",
  229. past: "p\u0159ed 1 rokem",
  230. future: "za 1 rok"
  231. },
  232. few: {
  233. regular: "{{count}} roky",
  234. past: "p\u0159ed {{count}} roky",
  235. future: "za {{count}} roky"
  236. },
  237. many: {
  238. regular: "{{count}} rok\u016F",
  239. past: "p\u0159ed {{count}} roky",
  240. future: "za {{count}} rok\u016F"
  241. }
  242. },
  243. overXYears: {
  244. one: {
  245. regular: "v\xEDce ne\u017E 1 rok",
  246. past: "p\u0159ed v\xEDce ne\u017E 1 rokem",
  247. future: "za v\xEDce ne\u017E 1 rok"
  248. },
  249. few: {
  250. regular: "v\xEDce ne\u017E {{count}} roky",
  251. past: "p\u0159ed v\xEDce ne\u017E {{count}} roky",
  252. future: "za v\xEDce ne\u017E {{count}} roky"
  253. },
  254. many: {
  255. regular: "v\xEDce ne\u017E {{count}} rok\u016F",
  256. past: "p\u0159ed v\xEDce ne\u017E {{count}} roky",
  257. future: "za v\xEDce ne\u017E {{count}} rok\u016F"
  258. }
  259. },
  260. almostXYears: {
  261. one: {
  262. regular: "skoro 1 rok",
  263. past: "skoro p\u0159ed 1 rokem",
  264. future: "skoro za 1 rok"
  265. },
  266. few: {
  267. regular: "skoro {{count}} roky",
  268. past: "skoro p\u0159ed {{count}} roky",
  269. future: "skoro za {{count}} roky"
  270. },
  271. many: {
  272. regular: "skoro {{count}} rok\u016F",
  273. past: "skoro p\u0159ed {{count}} roky",
  274. future: "skoro za {{count}} rok\u016F"
  275. }
  276. }
  277. };
  278. var formatDistance = function formatDistance(token, count, options) {
  279. var pluralResult;
  280. var tokenValue = formatDistanceLocale[token];
  281. if (tokenValue.type === "other") {
  282. pluralResult = tokenValue.other;
  283. } else if (count === 1) {
  284. pluralResult = tokenValue.one;
  285. } else if (count > 1 && count < 5) {
  286. pluralResult = tokenValue.few;
  287. } else {
  288. pluralResult = tokenValue.many;
  289. }
  290. var suffixExist = (options === null || options === void 0 ? void 0 : options.addSuffix) === true;
  291. var comparison = options === null || options === void 0 ? void 0 : options.comparison;
  292. var timeResult;
  293. if (suffixExist && comparison === -1) {
  294. timeResult = pluralResult.past;
  295. } else if (suffixExist && comparison === 1) {
  296. timeResult = pluralResult.future;
  297. } else {
  298. timeResult = pluralResult.regular;
  299. }
  300. return timeResult.replace("{{count}}", String(count));
  301. };
  302. // lib/locale/_lib/buildFormatLongFn.js
  303. function buildFormatLongFn(args) {
  304. return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  305. var width = options.width ? String(options.width) : args.defaultWidth;
  306. var format = args.formats[width] || args.formats[args.defaultWidth];
  307. return format;
  308. };
  309. }
  310. // lib/locale/cs/_lib/formatLong.js
  311. var dateFormats = {
  312. full: "EEEE, d. MMMM yyyy",
  313. long: "d. MMMM yyyy",
  314. medium: "d. M. yyyy",
  315. short: "dd.MM.yyyy"
  316. };
  317. var timeFormats = {
  318. full: "H:mm:ss zzzz",
  319. long: "H:mm:ss z",
  320. medium: "H:mm:ss",
  321. short: "H:mm"
  322. };
  323. var dateTimeFormats = {
  324. full: "{{date}} 'v' {{time}}",
  325. long: "{{date}} 'v' {{time}}",
  326. medium: "{{date}}, {{time}}",
  327. short: "{{date}}, {{time}}"
  328. };
  329. var formatLong = {
  330. date: buildFormatLongFn({
  331. formats: dateFormats,
  332. defaultWidth: "full"
  333. }),
  334. time: buildFormatLongFn({
  335. formats: timeFormats,
  336. defaultWidth: "full"
  337. }),
  338. dateTime: buildFormatLongFn({
  339. formats: dateTimeFormats,
  340. defaultWidth: "full"
  341. })
  342. };
  343. // lib/locale/cs/_lib/formatRelative.js
  344. var accusativeWeekdays = [
  345. "ned\u011Bli",
  346. "pond\u011Bl\xED",
  347. "\xFAter\xFD",
  348. "st\u0159edu",
  349. "\u010Dtvrtek",
  350. "p\xE1tek",
  351. "sobotu"];
  352. var formatRelativeLocale = {
  353. lastWeek: "'posledn\xED' eeee 've' p",
  354. yesterday: "'v\u010Dera v' p",
  355. today: "'dnes v' p",
  356. tomorrow: "'z\xEDtra v' p",
  357. nextWeek: function nextWeek(date) {
  358. var day = date.getDay();
  359. return "'v " + accusativeWeekdays[day] + " o' p";
  360. },
  361. other: "P"
  362. };
  363. var formatRelative = function formatRelative(token, date) {
  364. var format = formatRelativeLocale[token];
  365. if (typeof format === "function") {
  366. return format(date);
  367. }
  368. return format;
  369. };
  370. // lib/locale/_lib/buildLocalizeFn.js
  371. function buildLocalizeFn(args) {
  372. return function (value, options) {
  373. var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone";
  374. var valuesArray;
  375. if (context === "formatting" && args.formattingValues) {
  376. var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
  377. var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
  378. valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
  379. } else {
  380. var _defaultWidth = args.defaultWidth;
  381. var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
  382. valuesArray = args.values[_width] || args.values[_defaultWidth];
  383. }
  384. var index = args.argumentCallback ? args.argumentCallback(value) : value;
  385. return valuesArray[index];
  386. };
  387. }
  388. // lib/locale/cs/_lib/localize.js
  389. var eraValues = {
  390. narrow: ["p\u0159. n. l.", "n. l."],
  391. abbreviated: ["p\u0159. n. l.", "n. l."],
  392. wide: ["p\u0159ed na\u0161\xEDm letopo\u010Dtem", "na\u0161eho letopo\u010Dtu"]
  393. };
  394. var quarterValues = {
  395. narrow: ["1", "2", "3", "4"],
  396. abbreviated: ["1. \u010Dtvrtlet\xED", "2. \u010Dtvrtlet\xED", "3. \u010Dtvrtlet\xED", "4. \u010Dtvrtlet\xED"],
  397. wide: ["1. \u010Dtvrtlet\xED", "2. \u010Dtvrtlet\xED", "3. \u010Dtvrtlet\xED", "4. \u010Dtvrtlet\xED"]
  398. };
  399. var monthValues = {
  400. narrow: ["L", "\xDA", "B", "D", "K", "\u010C", "\u010C", "S", "Z", "\u0158", "L", "P"],
  401. abbreviated: [
  402. "led",
  403. "\xFAno",
  404. "b\u0159e",
  405. "dub",
  406. "kv\u011B",
  407. "\u010Dvn",
  408. "\u010Dvc",
  409. "srp",
  410. "z\xE1\u0159",
  411. "\u0159\xEDj",
  412. "lis",
  413. "pro"],
  414. wide: [
  415. "leden",
  416. "\xFAnor",
  417. "b\u0159ezen",
  418. "duben",
  419. "kv\u011Bten",
  420. "\u010Derven",
  421. "\u010Dervenec",
  422. "srpen",
  423. "z\xE1\u0159\xED",
  424. "\u0159\xEDjen",
  425. "listopad",
  426. "prosinec"]
  427. };
  428. var formattingMonthValues = {
  429. narrow: ["L", "\xDA", "B", "D", "K", "\u010C", "\u010C", "S", "Z", "\u0158", "L", "P"],
  430. abbreviated: [
  431. "led",
  432. "\xFAno",
  433. "b\u0159e",
  434. "dub",
  435. "kv\u011B",
  436. "\u010Dvn",
  437. "\u010Dvc",
  438. "srp",
  439. "z\xE1\u0159",
  440. "\u0159\xEDj",
  441. "lis",
  442. "pro"],
  443. wide: [
  444. "ledna",
  445. "\xFAnora",
  446. "b\u0159ezna",
  447. "dubna",
  448. "kv\u011Btna",
  449. "\u010Dervna",
  450. "\u010Dervence",
  451. "srpna",
  452. "z\xE1\u0159\xED",
  453. "\u0159\xEDjna",
  454. "listopadu",
  455. "prosince"]
  456. };
  457. var dayValues = {
  458. narrow: ["ne", "po", "\xFAt", "st", "\u010Dt", "p\xE1", "so"],
  459. short: ["ne", "po", "\xFAt", "st", "\u010Dt", "p\xE1", "so"],
  460. abbreviated: ["ned", "pon", "\xFAte", "st\u0159", "\u010Dtv", "p\xE1t", "sob"],
  461. wide: ["ned\u011Ble", "pond\u011Bl\xED", "\xFAter\xFD", "st\u0159eda", "\u010Dtvrtek", "p\xE1tek", "sobota"]
  462. };
  463. var dayPeriodValues = {
  464. narrow: {
  465. am: "dop.",
  466. pm: "odp.",
  467. midnight: "p\u016Flnoc",
  468. noon: "poledne",
  469. morning: "r\xE1no",
  470. afternoon: "odpoledne",
  471. evening: "ve\u010Der",
  472. night: "noc"
  473. },
  474. abbreviated: {
  475. am: "dop.",
  476. pm: "odp.",
  477. midnight: "p\u016Flnoc",
  478. noon: "poledne",
  479. morning: "r\xE1no",
  480. afternoon: "odpoledne",
  481. evening: "ve\u010Der",
  482. night: "noc"
  483. },
  484. wide: {
  485. am: "dopoledne",
  486. pm: "odpoledne",
  487. midnight: "p\u016Flnoc",
  488. noon: "poledne",
  489. morning: "r\xE1no",
  490. afternoon: "odpoledne",
  491. evening: "ve\u010Der",
  492. night: "noc"
  493. }
  494. };
  495. var formattingDayPeriodValues = {
  496. narrow: {
  497. am: "dop.",
  498. pm: "odp.",
  499. midnight: "p\u016Flnoc",
  500. noon: "poledne",
  501. morning: "r\xE1no",
  502. afternoon: "odpoledne",
  503. evening: "ve\u010Der",
  504. night: "noc"
  505. },
  506. abbreviated: {
  507. am: "dop.",
  508. pm: "odp.",
  509. midnight: "p\u016Flnoc",
  510. noon: "poledne",
  511. morning: "r\xE1no",
  512. afternoon: "odpoledne",
  513. evening: "ve\u010Der",
  514. night: "noc"
  515. },
  516. wide: {
  517. am: "dopoledne",
  518. pm: "odpoledne",
  519. midnight: "p\u016Flnoc",
  520. noon: "poledne",
  521. morning: "r\xE1no",
  522. afternoon: "odpoledne",
  523. evening: "ve\u010Der",
  524. night: "noc"
  525. }
  526. };
  527. var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
  528. var number = Number(dirtyNumber);
  529. return number + ".";
  530. };
  531. var localize = {
  532. ordinalNumber: ordinalNumber,
  533. era: buildLocalizeFn({
  534. values: eraValues,
  535. defaultWidth: "wide"
  536. }),
  537. quarter: buildLocalizeFn({
  538. values: quarterValues,
  539. defaultWidth: "wide",
  540. argumentCallback: function argumentCallback(quarter) {return quarter - 1;}
  541. }),
  542. month: buildLocalizeFn({
  543. values: monthValues,
  544. defaultWidth: "wide",
  545. formattingValues: formattingMonthValues,
  546. defaultFormattingWidth: "wide"
  547. }),
  548. day: buildLocalizeFn({
  549. values: dayValues,
  550. defaultWidth: "wide"
  551. }),
  552. dayPeriod: buildLocalizeFn({
  553. values: dayPeriodValues,
  554. defaultWidth: "wide",
  555. formattingValues: formattingDayPeriodValues,
  556. defaultFormattingWidth: "wide"
  557. })
  558. };
  559. // lib/locale/_lib/buildMatchFn.js
  560. function buildMatchFn(args) {
  561. return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  562. var width = options.width;
  563. var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
  564. var matchResult = string.match(matchPattern);
  565. if (!matchResult) {
  566. return null;
  567. }
  568. var matchedString = matchResult[0];
  569. var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
  570. var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);});
  571. var value;
  572. value = args.valueCallback ? args.valueCallback(key) : key;
  573. value = options.valueCallback ? options.valueCallback(value) : value;
  574. var rest = string.slice(matchedString.length);
  575. return { value: value, rest: rest };
  576. };
  577. }
  578. function findKey(object, predicate) {
  579. for (var key in object) {
  580. if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
  581. return key;
  582. }
  583. }
  584. return;
  585. }
  586. function findIndex(array, predicate) {
  587. for (var key = 0; key < array.length; key++) {
  588. if (predicate(array[key])) {
  589. return key;
  590. }
  591. }
  592. return;
  593. }
  594. // lib/locale/_lib/buildMatchPatternFn.js
  595. function buildMatchPatternFn(args) {
  596. return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  597. var matchResult = string.match(args.matchPattern);
  598. if (!matchResult)
  599. return null;
  600. var matchedString = matchResult[0];
  601. var parseResult = string.match(args.parsePattern);
  602. if (!parseResult)
  603. return null;
  604. var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
  605. value = options.valueCallback ? options.valueCallback(value) : value;
  606. var rest = string.slice(matchedString.length);
  607. return { value: value, rest: rest };
  608. };
  609. }
  610. // lib/locale/cs/_lib/match.js
  611. var matchOrdinalNumberPattern = /^(\d+)\.?/i;
  612. var parseOrdinalNumberPattern = /\d+/i;
  613. var matchEraPatterns = {
  614. narrow: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,
  615. abbreviated: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,
  616. wide: /^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i
  617. };
  618. var parseEraPatterns = {
  619. any: [/^p[řr]/i, /^(po|n)/i]
  620. };
  621. var matchQuarterPatterns = {
  622. narrow: /^[1234]/i,
  623. abbreviated: /^[1234]\. [čc]tvrtlet[íi]/i,
  624. wide: /^[1234]\. [čc]tvrtlet[íi]/i
  625. };
  626. var parseQuarterPatterns = {
  627. any: [/1/i, /2/i, /3/i, /4/i]
  628. };
  629. var matchMonthPatterns = {
  630. narrow: /^[lúubdkčcszřrlp]/i,
  631. abbreviated: /^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,
  632. wide: /^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i
  633. };
  634. var parseMonthPatterns = {
  635. narrow: [
  636. /^l/i,
  637. /^[úu]/i,
  638. /^b/i,
  639. /^d/i,
  640. /^k/i,
  641. /^[čc]/i,
  642. /^[čc]/i,
  643. /^s/i,
  644. /^z/i,
  645. /^[řr]/i,
  646. /^l/i,
  647. /^p/i],
  648. any: [
  649. /^led/i,
  650. /^[úu]n/i,
  651. /^b[řr]e/i,
  652. /^dub/i,
  653. /^kv[ěe]/i,
  654. /^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,
  655. /^[čc]vc|[čc]erven(ec|ce)/i,
  656. /^srp/i,
  657. /^z[áa][řr]/i,
  658. /^[řr][íi]j/i,
  659. /^lis/i,
  660. /^pro/i]
  661. };
  662. var matchDayPatterns = {
  663. narrow: /^[npuúsčps]/i,
  664. short: /^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,
  665. abbreviated: /^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,
  666. wide: /^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i
  667. };
  668. var parseDayPatterns = {
  669. narrow: [/^n/i, /^p/i, /^[úu]/i, /^s/i, /^[čc]/i, /^p/i, /^s/i],
  670. any: [/^ne/i, /^po/i, /^[úu]t/i, /^st/i, /^[čc]t/i, /^p[áa]/i, /^so/i]
  671. };
  672. var matchDayPeriodPatterns = {
  673. any: /^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i
  674. };
  675. var parseDayPeriodPatterns = {
  676. any: {
  677. am: /^dop/i,
  678. pm: /^odp/i,
  679. midnight: /^p[ůu]lnoc/i,
  680. noon: /^poledne/i,
  681. morning: /r[áa]no/i,
  682. afternoon: /odpoledne/i,
  683. evening: /ve[čc]er/i,
  684. night: /noc/i
  685. }
  686. };
  687. var match = {
  688. ordinalNumber: buildMatchPatternFn({
  689. matchPattern: matchOrdinalNumberPattern,
  690. parsePattern: parseOrdinalNumberPattern,
  691. valueCallback: function valueCallback(value) {return parseInt(value, 10);}
  692. }),
  693. era: buildMatchFn({
  694. matchPatterns: matchEraPatterns,
  695. defaultMatchWidth: "wide",
  696. parsePatterns: parseEraPatterns,
  697. defaultParseWidth: "any"
  698. }),
  699. quarter: buildMatchFn({
  700. matchPatterns: matchQuarterPatterns,
  701. defaultMatchWidth: "wide",
  702. parsePatterns: parseQuarterPatterns,
  703. defaultParseWidth: "any",
  704. valueCallback: function valueCallback(index) {return index + 1;}
  705. }),
  706. month: buildMatchFn({
  707. matchPatterns: matchMonthPatterns,
  708. defaultMatchWidth: "wide",
  709. parsePatterns: parseMonthPatterns,
  710. defaultParseWidth: "any"
  711. }),
  712. day: buildMatchFn({
  713. matchPatterns: matchDayPatterns,
  714. defaultMatchWidth: "wide",
  715. parsePatterns: parseDayPatterns,
  716. defaultParseWidth: "any"
  717. }),
  718. dayPeriod: buildMatchFn({
  719. matchPatterns: matchDayPeriodPatterns,
  720. defaultMatchWidth: "any",
  721. parsePatterns: parseDayPeriodPatterns,
  722. defaultParseWidth: "any"
  723. })
  724. };
  725. // lib/locale/cs.js
  726. var cs = {
  727. code: "cs",
  728. formatDistance: formatDistance,
  729. formatLong: formatLong,
  730. formatRelative: formatRelative,
  731. localize: localize,
  732. match: match,
  733. options: {
  734. weekStartsOn: 1,
  735. firstWeekContainsDate: 4
  736. }
  737. };
  738. // lib/locale/cs/cdn.js
  739. window.dateFns = _objectSpread(_objectSpread({},
  740. window.dateFns), {}, {
  741. locale: _objectSpread(_objectSpread({}, (_window$dateFns =
  742. window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, {
  743. cs: cs }) });
  744. //# debugId=07F73D6D5ED0258E64756E2164756E21
  745. //# sourceMappingURL=cdn.js.map
  746. })();