cdn.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642
  1. (() => {
  2. var _window$dateFns;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 _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];return arr2;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}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);}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/it/_lib/formatDistance.js
  13. var formatDistanceLocale = {
  14. lessThanXSeconds: {
  15. one: "meno di un secondo",
  16. other: "meno di {{count}} secondi"
  17. },
  18. xSeconds: {
  19. one: "un secondo",
  20. other: "{{count}} secondi"
  21. },
  22. halfAMinute: "alcuni secondi",
  23. lessThanXMinutes: {
  24. one: "meno di un minuto",
  25. other: "meno di {{count}} minuti"
  26. },
  27. xMinutes: {
  28. one: "un minuto",
  29. other: "{{count}} minuti"
  30. },
  31. aboutXHours: {
  32. one: "circa un'ora",
  33. other: "circa {{count}} ore"
  34. },
  35. xHours: {
  36. one: "un'ora",
  37. other: "{{count}} ore"
  38. },
  39. xDays: {
  40. one: "un giorno",
  41. other: "{{count}} giorni"
  42. },
  43. aboutXWeeks: {
  44. one: "circa una settimana",
  45. other: "circa {{count}} settimane"
  46. },
  47. xWeeks: {
  48. one: "una settimana",
  49. other: "{{count}} settimane"
  50. },
  51. aboutXMonths: {
  52. one: "circa un mese",
  53. other: "circa {{count}} mesi"
  54. },
  55. xMonths: {
  56. one: "un mese",
  57. other: "{{count}} mesi"
  58. },
  59. aboutXYears: {
  60. one: "circa un anno",
  61. other: "circa {{count}} anni"
  62. },
  63. xYears: {
  64. one: "un anno",
  65. other: "{{count}} anni"
  66. },
  67. overXYears: {
  68. one: "pi\xF9 di un anno",
  69. other: "pi\xF9 di {{count}} anni"
  70. },
  71. almostXYears: {
  72. one: "quasi un anno",
  73. other: "quasi {{count}} anni"
  74. }
  75. };
  76. var formatDistance = function formatDistance(token, count, options) {
  77. var result;
  78. var tokenValue = formatDistanceLocale[token];
  79. if (typeof tokenValue === "string") {
  80. result = tokenValue;
  81. } else if (count === 1) {
  82. result = tokenValue.one;
  83. } else {
  84. result = tokenValue.other.replace("{{count}}", count.toString());
  85. }
  86. if (options !== null && options !== void 0 && options.addSuffix) {
  87. if (options.comparison && options.comparison > 0) {
  88. return "tra " + result;
  89. } else {
  90. return result + " fa";
  91. }
  92. }
  93. return result;
  94. };
  95. // lib/locale/_lib/buildFormatLongFn.js
  96. function buildFormatLongFn(args) {
  97. return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  98. var width = options.width ? String(options.width) : args.defaultWidth;
  99. var format = args.formats[width] || args.formats[args.defaultWidth];
  100. return format;
  101. };
  102. }
  103. // lib/locale/it/_lib/formatLong.js
  104. var dateFormats = {
  105. full: "EEEE d MMMM y",
  106. long: "d MMMM y",
  107. medium: "d MMM y",
  108. short: "dd/MM/y"
  109. };
  110. var timeFormats = {
  111. full: "HH:mm:ss zzzz",
  112. long: "HH:mm:ss z",
  113. medium: "HH:mm:ss",
  114. short: "HH:mm"
  115. };
  116. var dateTimeFormats = {
  117. full: "{{date}} {{time}}",
  118. long: "{{date}} {{time}}",
  119. medium: "{{date}} {{time}}",
  120. short: "{{date}} {{time}}"
  121. };
  122. var formatLong = {
  123. date: buildFormatLongFn({
  124. formats: dateFormats,
  125. defaultWidth: "full"
  126. }),
  127. time: buildFormatLongFn({
  128. formats: timeFormats,
  129. defaultWidth: "full"
  130. }),
  131. dateTime: buildFormatLongFn({
  132. formats: dateTimeFormats,
  133. defaultWidth: "full"
  134. })
  135. };
  136. // lib/constants.js
  137. var daysInWeek = 7;
  138. var daysInYear = 365.2425;
  139. var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;
  140. var minTime = -maxTime;
  141. var millisecondsInWeek = 604800000;
  142. var millisecondsInDay = 86400000;
  143. var millisecondsInMinute = 60000;
  144. var millisecondsInHour = 3600000;
  145. var millisecondsInSecond = 1000;
  146. var minutesInYear = 525600;
  147. var minutesInMonth = 43200;
  148. var minutesInDay = 1440;
  149. var minutesInHour = 60;
  150. var monthsInQuarter = 3;
  151. var monthsInYear = 12;
  152. var quartersInYear = 4;
  153. var secondsInHour = 3600;
  154. var secondsInMinute = 60;
  155. var secondsInDay = secondsInHour * 24;
  156. var secondsInWeek = secondsInDay * 7;
  157. var secondsInYear = secondsInDay * daysInYear;
  158. var secondsInMonth = secondsInYear / 12;
  159. var secondsInQuarter = secondsInMonth * 3;
  160. var constructFromSymbol = Symbol.for("constructDateFrom");
  161. // lib/constructFrom.js
  162. function constructFrom(date, value) {
  163. if (typeof date === "function")
  164. return date(value);
  165. if (date && _typeof(date) === "object" && constructFromSymbol in date)
  166. return date[constructFromSymbol](value);
  167. if (date instanceof Date)
  168. return new date.constructor(value);
  169. return new Date(value);
  170. }
  171. // lib/_lib/normalizeDates.js
  172. function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];}
  173. var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";}));
  174. return dates.map(normalize);
  175. }
  176. // lib/_lib/defaultOptions.js
  177. function getDefaultOptions() {
  178. return defaultOptions;
  179. }
  180. function setDefaultOptions(newOptions) {
  181. defaultOptions = newOptions;
  182. }
  183. var defaultOptions = {};
  184. // lib/toDate.js
  185. function toDate(argument, context) {
  186. return constructFrom(context || argument, argument);
  187. }
  188. // lib/startOfWeek.js
  189. function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions3$loca;
  190. var defaultOptions3 = getDefaultOptions();
  191. var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions3.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions3$loca = defaultOptions3.locale) === null || _defaultOptions3$loca === void 0 || (_defaultOptions3$loca = _defaultOptions3$loca.options) === null || _defaultOptions3$loca === void 0 ? void 0 : _defaultOptions3$loca.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0;
  192. var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in);
  193. var day = _date.getDay();
  194. var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
  195. _date.setDate(_date.getDate() - diff);
  196. _date.setHours(0, 0, 0, 0);
  197. return _date;
  198. }
  199. // lib/isSameWeek.js
  200. function isSameWeek(laterDate, earlierDate, options) {
  201. var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1];
  202. return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options);
  203. }
  204. // lib/locale/it/_lib/formatRelative.js
  205. function _lastWeek(day) {
  206. switch (day) {
  207. case 0:
  208. return "'domenica scorsa alle' p";
  209. default:
  210. return "'" + weekdays[day] + " scorso alle' p";
  211. }
  212. }
  213. function thisWeek(day) {
  214. return "'" + weekdays[day] + " alle' p";
  215. }
  216. function _nextWeek(day) {
  217. switch (day) {
  218. case 0:
  219. return "'domenica prossima alle' p";
  220. default:
  221. return "'" + weekdays[day] + " prossimo alle' p";
  222. }
  223. }
  224. var weekdays = [
  225. "domenica",
  226. "luned\xEC",
  227. "marted\xEC",
  228. "mercoled\xEC",
  229. "gioved\xEC",
  230. "venerd\xEC",
  231. "sabato"];
  232. var formatRelativeLocale = {
  233. lastWeek: function lastWeek(date, baseDate, options) {
  234. var day = date.getDay();
  235. if (isSameWeek(date, baseDate, options)) {
  236. return thisWeek(day);
  237. } else {
  238. return _lastWeek(day);
  239. }
  240. },
  241. yesterday: "'ieri alle' p",
  242. today: "'oggi alle' p",
  243. tomorrow: "'domani alle' p",
  244. nextWeek: function nextWeek(date, baseDate, options) {
  245. var day = date.getDay();
  246. if (isSameWeek(date, baseDate, options)) {
  247. return thisWeek(day);
  248. } else {
  249. return _nextWeek(day);
  250. }
  251. },
  252. other: "P"
  253. };
  254. var formatRelative = function formatRelative(token, date, baseDate, options) {
  255. var format = formatRelativeLocale[token];
  256. if (typeof format === "function") {
  257. return format(date, baseDate, options);
  258. }
  259. return format;
  260. };
  261. // lib/locale/_lib/buildLocalizeFn.js
  262. function buildLocalizeFn(args) {
  263. return function (value, options) {
  264. var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone";
  265. var valuesArray;
  266. if (context === "formatting" && args.formattingValues) {
  267. var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
  268. var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
  269. valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
  270. } else {
  271. var _defaultWidth = args.defaultWidth;
  272. var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
  273. valuesArray = args.values[_width] || args.values[_defaultWidth];
  274. }
  275. var index = args.argumentCallback ? args.argumentCallback(value) : value;
  276. return valuesArray[index];
  277. };
  278. }
  279. // lib/locale/it/_lib/localize.js
  280. var eraValues = {
  281. narrow: ["aC", "dC"],
  282. abbreviated: ["a.C.", "d.C."],
  283. wide: ["avanti Cristo", "dopo Cristo"]
  284. };
  285. var quarterValues = {
  286. narrow: ["1", "2", "3", "4"],
  287. abbreviated: ["T1", "T2", "T3", "T4"],
  288. wide: ["1\xBA trimestre", "2\xBA trimestre", "3\xBA trimestre", "4\xBA trimestre"]
  289. };
  290. var monthValues = {
  291. narrow: ["G", "F", "M", "A", "M", "G", "L", "A", "S", "O", "N", "D"],
  292. abbreviated: [
  293. "gen",
  294. "feb",
  295. "mar",
  296. "apr",
  297. "mag",
  298. "giu",
  299. "lug",
  300. "ago",
  301. "set",
  302. "ott",
  303. "nov",
  304. "dic"],
  305. wide: [
  306. "gennaio",
  307. "febbraio",
  308. "marzo",
  309. "aprile",
  310. "maggio",
  311. "giugno",
  312. "luglio",
  313. "agosto",
  314. "settembre",
  315. "ottobre",
  316. "novembre",
  317. "dicembre"]
  318. };
  319. var dayValues = {
  320. narrow: ["D", "L", "M", "M", "G", "V", "S"],
  321. short: ["dom", "lun", "mar", "mer", "gio", "ven", "sab"],
  322. abbreviated: ["dom", "lun", "mar", "mer", "gio", "ven", "sab"],
  323. wide: [
  324. "domenica",
  325. "luned\xEC",
  326. "marted\xEC",
  327. "mercoled\xEC",
  328. "gioved\xEC",
  329. "venerd\xEC",
  330. "sabato"]
  331. };
  332. var dayPeriodValues = {
  333. narrow: {
  334. am: "m.",
  335. pm: "p.",
  336. midnight: "mezzanotte",
  337. noon: "mezzogiorno",
  338. morning: "mattina",
  339. afternoon: "pomeriggio",
  340. evening: "sera",
  341. night: "notte"
  342. },
  343. abbreviated: {
  344. am: "AM",
  345. pm: "PM",
  346. midnight: "mezzanotte",
  347. noon: "mezzogiorno",
  348. morning: "mattina",
  349. afternoon: "pomeriggio",
  350. evening: "sera",
  351. night: "notte"
  352. },
  353. wide: {
  354. am: "AM",
  355. pm: "PM",
  356. midnight: "mezzanotte",
  357. noon: "mezzogiorno",
  358. morning: "mattina",
  359. afternoon: "pomeriggio",
  360. evening: "sera",
  361. night: "notte"
  362. }
  363. };
  364. var formattingDayPeriodValues = {
  365. narrow: {
  366. am: "m.",
  367. pm: "p.",
  368. midnight: "mezzanotte",
  369. noon: "mezzogiorno",
  370. morning: "di mattina",
  371. afternoon: "del pomeriggio",
  372. evening: "di sera",
  373. night: "di notte"
  374. },
  375. abbreviated: {
  376. am: "AM",
  377. pm: "PM",
  378. midnight: "mezzanotte",
  379. noon: "mezzogiorno",
  380. morning: "di mattina",
  381. afternoon: "del pomeriggio",
  382. evening: "di sera",
  383. night: "di notte"
  384. },
  385. wide: {
  386. am: "AM",
  387. pm: "PM",
  388. midnight: "mezzanotte",
  389. noon: "mezzogiorno",
  390. morning: "di mattina",
  391. afternoon: "del pomeriggio",
  392. evening: "di sera",
  393. night: "di notte"
  394. }
  395. };
  396. var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
  397. var number = Number(dirtyNumber);
  398. return String(number);
  399. };
  400. var localize = {
  401. ordinalNumber: ordinalNumber,
  402. era: buildLocalizeFn({
  403. values: eraValues,
  404. defaultWidth: "wide"
  405. }),
  406. quarter: buildLocalizeFn({
  407. values: quarterValues,
  408. defaultWidth: "wide",
  409. argumentCallback: function argumentCallback(quarter) {return quarter - 1;}
  410. }),
  411. month: buildLocalizeFn({
  412. values: monthValues,
  413. defaultWidth: "wide"
  414. }),
  415. day: buildLocalizeFn({
  416. values: dayValues,
  417. defaultWidth: "wide"
  418. }),
  419. dayPeriod: buildLocalizeFn({
  420. values: dayPeriodValues,
  421. defaultWidth: "wide",
  422. formattingValues: formattingDayPeriodValues,
  423. defaultFormattingWidth: "wide"
  424. })
  425. };
  426. // lib/locale/_lib/buildMatchFn.js
  427. function buildMatchFn(args) {
  428. return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  429. var width = options.width;
  430. var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
  431. var matchResult = string.match(matchPattern);
  432. if (!matchResult) {
  433. return null;
  434. }
  435. var matchedString = matchResult[0];
  436. var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
  437. var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);});
  438. var value;
  439. value = args.valueCallback ? args.valueCallback(key) : key;
  440. value = options.valueCallback ? options.valueCallback(value) : value;
  441. var rest = string.slice(matchedString.length);
  442. return { value: value, rest: rest };
  443. };
  444. }
  445. function findKey(object, predicate) {
  446. for (var key in object) {
  447. if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
  448. return key;
  449. }
  450. }
  451. return;
  452. }
  453. function findIndex(array, predicate) {
  454. for (var key = 0; key < array.length; key++) {
  455. if (predicate(array[key])) {
  456. return key;
  457. }
  458. }
  459. return;
  460. }
  461. // lib/locale/_lib/buildMatchPatternFn.js
  462. function buildMatchPatternFn(args) {
  463. return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  464. var matchResult = string.match(args.matchPattern);
  465. if (!matchResult)
  466. return null;
  467. var matchedString = matchResult[0];
  468. var parseResult = string.match(args.parsePattern);
  469. if (!parseResult)
  470. return null;
  471. var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
  472. value = options.valueCallback ? options.valueCallback(value) : value;
  473. var rest = string.slice(matchedString.length);
  474. return { value: value, rest: rest };
  475. };
  476. }
  477. // lib/locale/it/_lib/match.js
  478. var matchOrdinalNumberPattern = /^(\d+)(º)?/i;
  479. var parseOrdinalNumberPattern = /\d+/i;
  480. var matchEraPatterns = {
  481. narrow: /^(aC|dC)/i,
  482. abbreviated: /^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,
  483. wide: /^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i
  484. };
  485. var parseEraPatterns = {
  486. any: [/^a/i, /^(d|e)/i]
  487. };
  488. var matchQuarterPatterns = {
  489. narrow: /^[1234]/i,
  490. abbreviated: /^t[1234]/i,
  491. wide: /^[1234](º)? trimestre/i
  492. };
  493. var parseQuarterPatterns = {
  494. any: [/1/i, /2/i, /3/i, /4/i]
  495. };
  496. var matchMonthPatterns = {
  497. narrow: /^[gfmalsond]/i,
  498. abbreviated: /^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,
  499. wide: /^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i
  500. };
  501. var parseMonthPatterns = {
  502. narrow: [
  503. /^g/i,
  504. /^f/i,
  505. /^m/i,
  506. /^a/i,
  507. /^m/i,
  508. /^g/i,
  509. /^l/i,
  510. /^a/i,
  511. /^s/i,
  512. /^o/i,
  513. /^n/i,
  514. /^d/i],
  515. any: [
  516. /^ge/i,
  517. /^f/i,
  518. /^mar/i,
  519. /^ap/i,
  520. /^mag/i,
  521. /^gi/i,
  522. /^l/i,
  523. /^ag/i,
  524. /^s/i,
  525. /^o/i,
  526. /^n/i,
  527. /^d/i]
  528. };
  529. var matchDayPatterns = {
  530. narrow: /^[dlmgvs]/i,
  531. short: /^(do|lu|ma|me|gi|ve|sa)/i,
  532. abbreviated: /^(dom|lun|mar|mer|gio|ven|sab)/i,
  533. wide: /^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i
  534. };
  535. var parseDayPatterns = {
  536. narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^g/i, /^v/i, /^s/i],
  537. any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^g/i, /^v/i, /^s/i]
  538. };
  539. var matchDayPeriodPatterns = {
  540. narrow: /^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,
  541. any: /^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i
  542. };
  543. var parseDayPeriodPatterns = {
  544. any: {
  545. am: /^a/i,
  546. pm: /^p/i,
  547. midnight: /^mezza/i,
  548. noon: /^mezzo/i,
  549. morning: /mattina/i,
  550. afternoon: /pomeriggio/i,
  551. evening: /sera/i,
  552. night: /notte/i
  553. }
  554. };
  555. var match = {
  556. ordinalNumber: buildMatchPatternFn({
  557. matchPattern: matchOrdinalNumberPattern,
  558. parsePattern: parseOrdinalNumberPattern,
  559. valueCallback: function valueCallback(value) {return parseInt(value, 10);}
  560. }),
  561. era: buildMatchFn({
  562. matchPatterns: matchEraPatterns,
  563. defaultMatchWidth: "wide",
  564. parsePatterns: parseEraPatterns,
  565. defaultParseWidth: "any"
  566. }),
  567. quarter: buildMatchFn({
  568. matchPatterns: matchQuarterPatterns,
  569. defaultMatchWidth: "wide",
  570. parsePatterns: parseQuarterPatterns,
  571. defaultParseWidth: "any",
  572. valueCallback: function valueCallback(index) {return index + 1;}
  573. }),
  574. month: buildMatchFn({
  575. matchPatterns: matchMonthPatterns,
  576. defaultMatchWidth: "wide",
  577. parsePatterns: parseMonthPatterns,
  578. defaultParseWidth: "any"
  579. }),
  580. day: buildMatchFn({
  581. matchPatterns: matchDayPatterns,
  582. defaultMatchWidth: "wide",
  583. parsePatterns: parseDayPatterns,
  584. defaultParseWidth: "any"
  585. }),
  586. dayPeriod: buildMatchFn({
  587. matchPatterns: matchDayPeriodPatterns,
  588. defaultMatchWidth: "any",
  589. parsePatterns: parseDayPeriodPatterns,
  590. defaultParseWidth: "any"
  591. })
  592. };
  593. // lib/locale/it.js
  594. var it = {
  595. code: "it",
  596. formatDistance: formatDistance,
  597. formatLong: formatLong,
  598. formatRelative: formatRelative,
  599. localize: localize,
  600. match: match,
  601. options: {
  602. weekStartsOn: 1,
  603. firstWeekContainsDate: 4
  604. }
  605. };
  606. // lib/locale/it/cdn.js
  607. window.dateFns = _objectSpread(_objectSpread({},
  608. window.dateFns), {}, {
  609. locale: _objectSpread(_objectSpread({}, (_window$dateFns =
  610. window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, {
  611. it: it }) });
  612. //# debugId=81A22612D6569A7264756E2164756E21
  613. //# sourceMappingURL=cdn.js.map
  614. })();