{"ast":null,"code":"const formatDistanceLocale = {\n  lessThanXSeconds: {\n    one: \"mens d’una segonda\",\n    other: \"mens de {{count}} segondas\"\n  },\n  xSeconds: {\n    one: \"1 segonda\",\n    other: \"{{count}} segondas\"\n  },\n  halfAMinute: \"30 segondas\",\n  lessThanXMinutes: {\n    one: \"mens d’una minuta\",\n    other: \"mens de {{count}} minutas\"\n  },\n  xMinutes: {\n    one: \"1 minuta\",\n    other: \"{{count}} minutas\"\n  },\n  aboutXHours: {\n    one: \"environ 1 ora\",\n    other: \"environ {{count}} oras\"\n  },\n  xHours: {\n    one: \"1 ora\",\n    other: \"{{count}} oras\"\n  },\n  xDays: {\n    one: \"1 jorn\",\n    other: \"{{count}} jorns\"\n  },\n  aboutXWeeks: {\n    one: \"environ 1 setmana\",\n    other: \"environ {{count}} setmanas\"\n  },\n  xWeeks: {\n    one: \"1 setmana\",\n    other: \"{{count}} setmanas\"\n  },\n  aboutXMonths: {\n    one: \"environ 1 mes\",\n    other: \"environ {{count}} meses\"\n  },\n  xMonths: {\n    one: \"1 mes\",\n    other: \"{{count}} meses\"\n  },\n  aboutXYears: {\n    one: \"environ 1 an\",\n    other: \"environ {{count}} ans\"\n  },\n  xYears: {\n    one: \"1 an\",\n    other: \"{{count}} ans\"\n  },\n  overXYears: {\n    one: \"mai d’un an\",\n    other: \"mai de {{count}} ans\"\n  },\n  almostXYears: {\n    one: \"gaireben un an\",\n    other: \"gaireben {{count}} ans\"\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}}\", String(count));\n  }\n  if (options?.addSuffix) {\n    if (options.comparison && options.comparison > 0) {\n      return \"d’aquí \" + result;\n    } else {\n      return \"fa \" + result;\n    }\n  }\n  return result;\n};","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}