{"ast":null,"code":"const formatDistanceLocale = {\n  lessThanXSeconds: {\n    one: \"meno di un secondo\",\n    other: \"meno di {{count}} secondi\"\n  },\n  xSeconds: {\n    one: \"un secondo\",\n    other: \"{{count}} secondi\"\n  },\n  halfAMinute: \"alcuni secondi\",\n  lessThanXMinutes: {\n    one: \"meno di un minuto\",\n    other: \"meno di {{count}} minuti\"\n  },\n  xMinutes: {\n    one: \"un minuto\",\n    other: \"{{count}} minuti\"\n  },\n  aboutXHours: {\n    one: \"circa un'ora\",\n    other: \"circa {{count}} ore\"\n  },\n  xHours: {\n    one: \"un'ora\",\n    other: \"{{count}} ore\"\n  },\n  xDays: {\n    one: \"un giorno\",\n    other: \"{{count}} giorni\"\n  },\n  aboutXWeeks: {\n    one: \"circa una settimana\",\n    other: \"circa {{count}} settimane\"\n  },\n  xWeeks: {\n    one: \"una settimana\",\n    other: \"{{count}} settimane\"\n  },\n  aboutXMonths: {\n    one: \"circa un mese\",\n    other: \"circa {{count}} mesi\"\n  },\n  xMonths: {\n    one: \"un mese\",\n    other: \"{{count}} mesi\"\n  },\n  aboutXYears: {\n    one: \"circa un anno\",\n    other: \"circa {{count}} anni\"\n  },\n  xYears: {\n    one: \"un anno\",\n    other: \"{{count}} anni\"\n  },\n  overXYears: {\n    one: \"più di un anno\",\n    other: \"più di {{count}} anni\"\n  },\n  almostXYears: {\n    one: \"quasi un anno\",\n    other: \"quasi {{count}} anni\"\n  }\n};\nexport const formatDistance = (token, count, options) => {\n  let result;\n  const tokenValue = formatDistanceLocale[token];\n  if (typeof tokenValue === \"string\") {\n    result = tokenValue;\n  } else if (count === 1) {\n    result = tokenValue.one;\n  } else {\n    result = tokenValue.other.replace(\"{{count}}\", count.toString());\n  }\n  if (options?.addSuffix) {\n    if (options.comparison && options.comparison > 0) {\n      return \"tra \" + result;\n    } else {\n      return result + \" fa\";\n    }\n  }\n  return result;\n};","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}