@formatjs/intl-pluralrules 7.0.2 → 7.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/locale-data/af.js +8 -30
  2. package/locale-data/ak.js +8 -19
  3. package/locale-data/am.js +8 -20
  4. package/locale-data/an.js +8 -19
  5. package/locale-data/ar.js +8 -35
  6. package/locale-data/ars.js +8 -35
  7. package/locale-data/as.js +8 -28
  8. package/locale-data/asa.js +8 -19
  9. package/locale-data/ast.js +8 -20
  10. package/locale-data/az.js +8 -34
  11. package/locale-data/bal.js +8 -21
  12. package/locale-data/be.js +8 -33
  13. package/locale-data/bem.js +8 -19
  14. package/locale-data/bez.js +8 -19
  15. package/locale-data/bg.js +8 -34
  16. package/locale-data/bho.js +8 -19
  17. package/locale-data/blo.js +8 -28
  18. package/locale-data/bm.js +8 -8
  19. package/locale-data/bn.js +8 -28
  20. package/locale-data/bo.js +8 -8
  21. package/locale-data/br.js +8 -33
  22. package/locale-data/brx.js +8 -19
  23. package/locale-data/bs.js +8 -31
  24. package/locale-data/ca.js +8 -38
  25. package/locale-data/ce.js +8 -19
  26. package/locale-data/ceb.js +8 -29
  27. package/locale-data/cgg.js +8 -19
  28. package/locale-data/chr.js +8 -19
  29. package/locale-data/ckb.js +8 -19
  30. package/locale-data/cs.js +8 -24
  31. package/locale-data/csw.js +8 -19
  32. package/locale-data/cv.js +8 -21
  33. package/locale-data/cy.js +8 -37
  34. package/locale-data/da.js +8 -22
  35. package/locale-data/de.js +8 -20
  36. package/locale-data/doi.js +8 -20
  37. package/locale-data/dsb.js +8 -33
  38. package/locale-data/dv.js +8 -19
  39. package/locale-data/dz.js +8 -8
  40. package/locale-data/ee.js +8 -19
  41. package/locale-data/el.js +8 -19
  42. package/locale-data/en.js +8 -35
  43. package/locale-data/eo.js +8 -19
  44. package/locale-data/es.js +8 -34
  45. package/locale-data/et.js +8 -20
  46. package/locale-data/eu.js +8 -19
  47. package/locale-data/fa.js +8 -20
  48. package/locale-data/ff.js +8 -19
  49. package/locale-data/fi.js +8 -20
  50. package/locale-data/fil.js +8 -32
  51. package/locale-data/fo.js +8 -19
  52. package/locale-data/fr.js +8 -34
  53. package/locale-data/fur.js +8 -19
  54. package/locale-data/fy.js +8 -20
  55. package/locale-data/ga.js +8 -27
  56. package/locale-data/gd.js +8 -29
  57. package/locale-data/gl.js +8 -31
  58. package/locale-data/gsw.js +8 -19
  59. package/locale-data/gu.js +8 -28
  60. package/locale-data/guw.js +8 -19
  61. package/locale-data/gv.js +8 -34
  62. package/locale-data/ha.js +8 -19
  63. package/locale-data/haw.js +8 -19
  64. package/locale-data/he.js +8 -22
  65. package/locale-data/hi.js +8 -28
  66. package/locale-data/hnj.js +8 -8
  67. package/locale-data/hr.js +8 -31
  68. package/locale-data/hsb.js +8 -33
  69. package/locale-data/hu.js +8 -21
  70. package/locale-data/hy.js +8 -22
  71. package/locale-data/ia.js +8 -20
  72. package/locale-data/id.js +8 -8
  73. package/locale-data/ie.js +8 -20
  74. package/locale-data/ig.js +8 -8
  75. package/locale-data/ii.js +8 -8
  76. package/locale-data/io.js +8 -20
  77. package/locale-data/is.js +8 -29
  78. package/locale-data/it.js +8 -34
  79. package/locale-data/iu.js +8 -21
  80. package/locale-data/ja.js +8 -8
  81. package/locale-data/jbo.js +8 -8
  82. package/locale-data/jgo.js +8 -19
  83. package/locale-data/jmc.js +8 -19
  84. package/locale-data/jv.js +8 -8
  85. package/locale-data/jw.js +8 -8
  86. package/locale-data/ka.js +8 -32
  87. package/locale-data/kab.js +8 -19
  88. package/locale-data/kaj.js +8 -19
  89. package/locale-data/kcg.js +8 -19
  90. package/locale-data/kde.js +8 -8
  91. package/locale-data/kea.js +8 -8
  92. package/locale-data/kk.js +8 -29
  93. package/locale-data/kkj.js +8 -19
  94. package/locale-data/kl.js +8 -19
  95. package/locale-data/km.js +8 -8
  96. package/locale-data/kn.js +8 -20
  97. package/locale-data/ko.js +8 -8
  98. package/locale-data/kok-Latn.js +8 -26
  99. package/locale-data/kok.js +8 -26
  100. package/locale-data/ks.js +8 -19
  101. package/locale-data/ksb.js +8 -19
  102. package/locale-data/ksh.js +8 -21
  103. package/locale-data/ku.js +8 -19
  104. package/locale-data/kw.js +8 -39
  105. package/locale-data/ky.js +8 -19
  106. package/locale-data/lag.js +8 -22
  107. package/locale-data/lb.js +8 -19
  108. package/locale-data/lg.js +8 -19
  109. package/locale-data/lij.js +8 -23
  110. package/locale-data/lkt.js +8 -8
  111. package/locale-data/lld.js +8 -34
  112. package/locale-data/ln.js +8 -19
  113. package/locale-data/lo.js +8 -19
  114. package/locale-data/lt.js +8 -33
  115. package/locale-data/lv.js +8 -31
  116. package/locale-data/mas.js +8 -19
  117. package/locale-data/mg.js +8 -19
  118. package/locale-data/mgo.js +8 -19
  119. package/locale-data/mk.js +8 -35
  120. package/locale-data/ml.js +8 -19
  121. package/locale-data/mn.js +8 -19
  122. package/locale-data/mo.js +8 -33
  123. package/locale-data/mr.js +8 -25
  124. package/locale-data/ms.js +8 -19
  125. package/locale-data/mt.js +8 -33
  126. package/locale-data/my.js +8 -8
  127. package/locale-data/nah.js +8 -19
  128. package/locale-data/naq.js +8 -21
  129. package/locale-data/nb.js +8 -19
  130. package/locale-data/nd.js +8 -19
  131. package/locale-data/ne.js +8 -21
  132. package/locale-data/nl.js +8 -20
  133. package/locale-data/nn.js +8 -19
  134. package/locale-data/nnh.js +8 -19
  135. package/locale-data/no.js +8 -19
  136. package/locale-data/nqo.js +8 -8
  137. package/locale-data/nr.js +8 -19
  138. package/locale-data/nso.js +8 -19
  139. package/locale-data/ny.js +8 -19
  140. package/locale-data/nyn.js +8 -19
  141. package/locale-data/om.js +8 -19
  142. package/locale-data/or.js +8 -27
  143. package/locale-data/os.js +8 -19
  144. package/locale-data/osa.js +8 -8
  145. package/locale-data/pa.js +8 -19
  146. package/locale-data/pap.js +8 -19
  147. package/locale-data/pcm.js +8 -20
  148. package/locale-data/pl.js +8 -32
  149. package/locale-data/prg.js +8 -31
  150. package/locale-data/ps.js +8 -19
  151. package/locale-data/pt-PT.js +8 -31
  152. package/locale-data/pt.js +8 -31
  153. package/locale-data/rm.js +8 -19
  154. package/locale-data/ro.js +8 -33
  155. package/locale-data/rof.js +8 -19
  156. package/locale-data/ru.js +8 -32
  157. package/locale-data/rwk.js +8 -19
  158. package/locale-data/sah.js +8 -8
  159. package/locale-data/saq.js +8 -19
  160. package/locale-data/sat.js +8 -21
  161. package/locale-data/sc.js +8 -23
  162. package/locale-data/scn.js +8 -34
  163. package/locale-data/sd.js +8 -19
  164. package/locale-data/sdh.js +8 -19
  165. package/locale-data/se.js +8 -21
  166. package/locale-data/seh.js +8 -19
  167. package/locale-data/ses.js +8 -8
  168. package/locale-data/sg.js +8 -8
  169. package/locale-data/sgs.js +8 -35
  170. package/locale-data/sh.js +8 -31
  171. package/locale-data/shi.js +8 -22
  172. package/locale-data/si.js +8 -22
  173. package/locale-data/sk.js +8 -24
  174. package/locale-data/sl.js +8 -32
  175. package/locale-data/sma.js +8 -21
  176. package/locale-data/smi.js +8 -21
  177. package/locale-data/smj.js +8 -21
  178. package/locale-data/smn.js +8 -21
  179. package/locale-data/sms.js +8 -21
  180. package/locale-data/sn.js +8 -19
  181. package/locale-data/so.js +8 -19
  182. package/locale-data/sq.js +8 -31
  183. package/locale-data/sr.js +8 -31
  184. package/locale-data/ss.js +8 -19
  185. package/locale-data/ssy.js +8 -19
  186. package/locale-data/st.js +8 -19
  187. package/locale-data/su.js +8 -8
  188. package/locale-data/sv.js +8 -31
  189. package/locale-data/sw.js +8 -20
  190. package/locale-data/syr.js +8 -19
  191. package/locale-data/ta.js +8 -19
  192. package/locale-data/te.js +8 -19
  193. package/locale-data/teo.js +8 -19
  194. package/locale-data/tg.js +8 -20
  195. package/locale-data/th.js +8 -8
  196. package/locale-data/ti.js +8 -19
  197. package/locale-data/tig.js +8 -19
  198. package/locale-data/tk.js +8 -29
  199. package/locale-data/tl.js +8 -32
  200. package/locale-data/tn.js +8 -19
  201. package/locale-data/to.js +8 -8
  202. package/locale-data/tpi.js +8 -8
  203. package/locale-data/tr.js +8 -19
  204. package/locale-data/ts.js +8 -19
  205. package/locale-data/tzm.js +8 -19
  206. package/locale-data/ug.js +8 -19
  207. package/locale-data/uk.js +8 -35
  208. package/locale-data/und.js +8 -8
  209. package/locale-data/ur.js +8 -20
  210. package/locale-data/uz.js +8 -19
  211. package/locale-data/ve.js +8 -19
  212. package/locale-data/vec.js +8 -34
  213. package/locale-data/vi.js +8 -22
  214. package/locale-data/vo.js +8 -19
  215. package/locale-data/vun.js +8 -19
  216. package/locale-data/wa.js +8 -19
  217. package/locale-data/wae.js +8 -19
  218. package/locale-data/wo.js +8 -8
  219. package/locale-data/xh.js +8 -19
  220. package/locale-data/xog.js +8 -19
  221. package/locale-data/yi.js +8 -20
  222. package/locale-data/yo.js +8 -8
  223. package/locale-data/yue.js +8 -8
  224. package/locale-data/zh.js +8 -8
  225. package/locale-data/zu.js +8 -20
  226. package/package.json +7 -1
package/locale-data/cs.js CHANGED
@@ -1,7 +1,12 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["few","many","one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
3
+ ;(function (data) {
4
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
5
+ Intl.PluralRules.__addLocaleData(data)
6
+ } else {
7
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
8
+ }
9
+ })({"data":{"categories":{"cardinal":["few","many","one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
5
10
  const numStr = String(num);
6
11
  const parts = numStr.split(".");
7
12
  const integerPart = parts[0];
@@ -19,25 +24,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
19
24
  return "many";
20
25
  }
21
26
  return "other";
22
- },"pluralRanges":{"cardinal":{"few_few":"few","few_many":"many","few_other":"other","many_few":"few","many_many":"many","many_one":"one","many_other":"other","one_few":"few","one_many":"many","one_other":"other","other_few":"few","other_many":"many","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"cs"})
23
- } else {
24
- (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["few","many","one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
25
- const numStr = String(num);
26
- const parts = numStr.split(".");
27
- const integerPart = parts[0];
28
- const decimalPart = parts[1] || "";
29
- const i = Math.floor(Math.abs(parseFloat(integerPart)));
30
- const v = decimalPart.length;
31
- if (isOrdinal) {
32
- }
33
- else {
34
- if (i === 1 && v === 0)
35
- return "one";
36
- if ((i >= 2 && i <= 4) && v === 0)
37
- return "few";
38
- if (v !== 0)
39
- return "many";
40
- }
41
- return "other";
42
- },"pluralRanges":{"cardinal":{"few_few":"few","few_many":"many","few_other":"other","many_few":"few","many_many":"many","many_one":"one","many_other":"other","one_few":"few","one_many":"many","one_other":"other","other_few":"few","other_many":"many","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"cs"})
43
- }
27
+ },"pluralRanges":{"cardinal":{"few_few":"few","few_many":"many","few_other":"other","many_few":"few","many_many":"many","many_one":"one","many_other":"other","one_few":"few","one_many":"many","one_other":"other","other_few":"few","other_many":"many","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"cs"});
@@ -1,7 +1,12 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
3
+ ;(function (data) {
4
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
5
+ Intl.PluralRules.__addLocaleData(data)
6
+ } else {
7
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
8
+ }
9
+ })({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
5
10
  const numStr = String(num);
6
11
  const parts = numStr.split(".");
7
12
  const integerPart = parts[0];
@@ -14,20 +19,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
14
19
  return "one";
15
20
  }
16
21
  return "other";
17
- }},"locale":"csw"})
18
- } else {
19
- (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
20
- const numStr = String(num);
21
- const parts = numStr.split(".");
22
- const integerPart = parts[0];
23
- const decimalPart = parts[1] || "";
24
- const n = Math.abs(parseFloat(numStr));
25
- if (isOrdinal) {
26
- }
27
- else {
28
- if ((!/[1-9]/.test(decimalPart) && (n >= 0 && n <= 1)))
29
- return "one";
30
- }
31
- return "other";
32
- }},"locale":"csw"})
33
- }
22
+ }},"locale":"csw"});
package/locale-data/cv.js CHANGED
@@ -1,7 +1,12 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other","zero"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
3
+ ;(function (data) {
4
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
5
+ Intl.PluralRules.__addLocaleData(data)
6
+ } else {
7
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
8
+ }
9
+ })({"data":{"categories":{"cardinal":["one","other","zero"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
5
10
  const numStr = String(num);
6
11
  const parts = numStr.split(".");
7
12
  const integerPart = parts[0];
@@ -16,22 +21,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
16
21
  return "one";
17
22
  }
18
23
  return "other";
19
- }},"locale":"cv"})
20
- } else {
21
- (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other","zero"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
22
- const numStr = String(num);
23
- const parts = numStr.split(".");
24
- const integerPart = parts[0];
25
- const decimalPart = parts[1] || "";
26
- const n = Math.abs(parseFloat(numStr));
27
- if (isOrdinal) {
28
- }
29
- else {
30
- if ((!/[1-9]/.test(decimalPart) && n === 0))
31
- return "zero";
32
- if ((!/[1-9]/.test(decimalPart) && n === 1))
33
- return "one";
34
- }
35
- return "other";
36
- }},"locale":"cv"})
37
- }
24
+ }},"locale":"cv"});
package/locale-data/cy.js CHANGED
@@ -1,7 +1,12 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["few","many","one","other","two","zero"],"ordinal":["few","many","one","other","two","zero"]},"fn":function(num, isOrdinal, exponent = 0) {
3
+ ;(function (data) {
4
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
5
+ Intl.PluralRules.__addLocaleData(data)
6
+ } else {
7
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
8
+ }
9
+ })({"data":{"categories":{"cardinal":["few","many","one","other","two","zero"],"ordinal":["few","many","one","other","two","zero"]},"fn":function(num, isOrdinal, exponent = 0) {
5
10
  const numStr = String(num);
6
11
  const parts = numStr.split(".");
7
12
  const integerPart = parts[0];
@@ -32,38 +37,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
32
37
  return "many";
33
38
  }
34
39
  return "other";
35
- },"pluralRanges":{"cardinal":{"few_many":"many","few_other":"other","many_other":"other","one_few":"few","one_many":"many","one_other":"other","one_two":"two","other_few":"few","other_many":"many","other_one":"one","other_other":"other","other_two":"two","two_few":"few","two_many":"many","two_other":"other","zero_few":"few","zero_many":"many","zero_one":"one","zero_other":"other","zero_two":"two"},"ordinal":{}}},"locale":"cy"})
36
- } else {
37
- (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["few","many","one","other","two","zero"],"ordinal":["few","many","one","other","two","zero"]},"fn":function(num, isOrdinal, exponent = 0) {
38
- const numStr = String(num);
39
- const parts = numStr.split(".");
40
- const integerPart = parts[0];
41
- const decimalPart = parts[1] || "";
42
- const n = Math.abs(parseFloat(numStr));
43
- if (isOrdinal) {
44
- if ((!/[1-9]/.test(decimalPart) && (((n === 0 || n === 7) || n === 8) || n === 9)))
45
- return "zero";
46
- if ((!/[1-9]/.test(decimalPart) && n === 1))
47
- return "one";
48
- if ((!/[1-9]/.test(decimalPart) && n === 2))
49
- return "two";
50
- if ((!/[1-9]/.test(decimalPart) && (n === 3 || n === 4)))
51
- return "few";
52
- if ((!/[1-9]/.test(decimalPart) && (n === 5 || n === 6)))
53
- return "many";
54
- }
55
- else {
56
- if ((!/[1-9]/.test(decimalPart) && n === 0))
57
- return "zero";
58
- if ((!/[1-9]/.test(decimalPart) && n === 1))
59
- return "one";
60
- if ((!/[1-9]/.test(decimalPart) && n === 2))
61
- return "two";
62
- if ((!/[1-9]/.test(decimalPart) && n === 3))
63
- return "few";
64
- if ((!/[1-9]/.test(decimalPart) && n === 6))
65
- return "many";
66
- }
67
- return "other";
68
- },"pluralRanges":{"cardinal":{"few_many":"many","few_other":"other","many_other":"other","one_few":"few","one_many":"many","one_other":"other","one_two":"two","other_few":"few","other_many":"many","other_one":"one","other_other":"other","other_two":"two","two_few":"few","two_many":"many","two_other":"other","zero_few":"few","zero_many":"many","zero_one":"one","zero_other":"other","zero_two":"two"},"ordinal":{}}},"locale":"cy"})
69
- }
40
+ },"pluralRanges":{"cardinal":{"few_many":"many","few_other":"other","many_other":"other","one_few":"few","one_many":"many","one_other":"other","one_two":"two","other_few":"few","other_many":"many","other_one":"one","other_other":"other","other_two":"two","two_few":"few","two_many":"many","two_other":"other","zero_few":"few","zero_many":"many","zero_one":"one","zero_other":"other","zero_two":"two"},"ordinal":{}}},"locale":"cy"});
package/locale-data/da.js CHANGED
@@ -1,7 +1,12 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
3
+ ;(function (data) {
4
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
5
+ Intl.PluralRules.__addLocaleData(data)
6
+ } else {
7
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
8
+ }
9
+ })({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
5
10
  const numStr = String(num);
6
11
  const parts = numStr.split(".");
7
12
  const integerPart = parts[0];
@@ -17,23 +22,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
17
22
  return "one";
18
23
  }
19
24
  return "other";
20
- },"pluralRanges":{"cardinal":{"one_one":"one","one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"da"})
21
- } else {
22
- (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
23
- const numStr = String(num);
24
- const parts = numStr.split(".");
25
- const integerPart = parts[0];
26
- const decimalPart = parts[1] || "";
27
- const n = Math.abs(parseFloat(numStr));
28
- const i = Math.floor(Math.abs(parseFloat(integerPart)));
29
- const w = decimalPart.replace(/0+$/, "").length;
30
- const t = w > 0 ? parseInt(decimalPart.replace(/0+$/, ""), 10) : 0;
31
- if (isOrdinal) {
32
- }
33
- else {
34
- if ((!/[1-9]/.test(decimalPart) && n === 1) || t !== 0 && (i === 0 || i === 1))
35
- return "one";
36
- }
37
- return "other";
38
- },"pluralRanges":{"cardinal":{"one_one":"one","one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"da"})
39
- }
25
+ },"pluralRanges":{"cardinal":{"one_one":"one","one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"da"});
package/locale-data/de.js CHANGED
@@ -1,7 +1,12 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
3
+ ;(function (data) {
4
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
5
+ Intl.PluralRules.__addLocaleData(data)
6
+ } else {
7
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
8
+ }
9
+ })({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
5
10
  const numStr = String(num);
6
11
  const parts = numStr.split(".");
7
12
  const integerPart = parts[0];
@@ -15,21 +20,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
15
20
  return "one";
16
21
  }
17
22
  return "other";
18
- },"pluralRanges":{"cardinal":{"one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"de"})
19
- } else {
20
- (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
21
- const numStr = String(num);
22
- const parts = numStr.split(".");
23
- const integerPart = parts[0];
24
- const decimalPart = parts[1] || "";
25
- const i = Math.floor(Math.abs(parseFloat(integerPart)));
26
- const v = decimalPart.length;
27
- if (isOrdinal) {
28
- }
29
- else {
30
- if (i === 1 && v === 0)
31
- return "one";
32
- }
33
- return "other";
34
- },"pluralRanges":{"cardinal":{"one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"de"})
35
- }
23
+ },"pluralRanges":{"cardinal":{"one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"de"});
@@ -1,7 +1,12 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
3
+ ;(function (data) {
4
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
5
+ Intl.PluralRules.__addLocaleData(data)
6
+ } else {
7
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
8
+ }
9
+ })({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
5
10
  const numStr = String(num);
6
11
  const parts = numStr.split(".");
7
12
  const integerPart = parts[0];
@@ -15,21 +20,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
15
20
  return "one";
16
21
  }
17
22
  return "other";
18
- }},"locale":"doi"})
19
- } else {
20
- (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
21
- const numStr = String(num);
22
- const parts = numStr.split(".");
23
- const integerPart = parts[0];
24
- const decimalPart = parts[1] || "";
25
- const n = Math.abs(parseFloat(numStr));
26
- const i = Math.floor(Math.abs(parseFloat(integerPart)));
27
- if (isOrdinal) {
28
- }
29
- else {
30
- if (i === 0 || (!/[1-9]/.test(decimalPart) && n === 1))
31
- return "one";
32
- }
33
- return "other";
34
- }},"locale":"doi"})
35
- }
23
+ }},"locale":"doi"});
@@ -1,7 +1,12 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["few","one","other","two"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
3
+ ;(function (data) {
4
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
5
+ Intl.PluralRules.__addLocaleData(data)
6
+ } else {
7
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
8
+ }
9
+ })({"data":{"categories":{"cardinal":["few","one","other","two"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
5
10
  function modDigits(digits, divisor) {
6
11
  let value = 0;
7
12
  for (let index = 0; index < digits.length; index++) {
@@ -28,34 +33,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
28
33
  return "few";
29
34
  }
30
35
  return "other";
31
- }},"locale":"dsb"})
32
- } else {
33
- (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["few","one","other","two"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
34
- function modDigits(digits, divisor) {
35
- let value = 0;
36
- for (let index = 0; index < digits.length; index++) {
37
- const digit = digits.charCodeAt(index) - 48;
38
- if (digit >= 0 && digit <= 9) value = (value * 10 + digit) % divisor;
39
- }
40
- return value;
41
- }
42
- const numStr = String(num);
43
- const parts = numStr.split(".");
44
- const integerPart = parts[0];
45
- const decimalPart = parts[1] || "";
46
- const i = Math.floor(Math.abs(parseFloat(integerPart)));
47
- const v = decimalPart.length;
48
- const f = v > 0 ? parseInt(decimalPart, 10) : 0;
49
- if (isOrdinal) {
50
- }
51
- else {
52
- if (v === 0 && modDigits(integerPart, 100) === 1 || modDigits(decimalPart, 100) === 1)
53
- return "one";
54
- if (v === 0 && modDigits(integerPart, 100) === 2 || modDigits(decimalPart, 100) === 2)
55
- return "two";
56
- if (v === 0 && (modDigits(integerPart, 100) >= 3 && modDigits(integerPart, 100) <= 4) || (modDigits(decimalPart, 100) >= 3 && modDigits(decimalPart, 100) <= 4))
57
- return "few";
58
- }
59
- return "other";
60
- }},"locale":"dsb"})
61
- }
36
+ }},"locale":"dsb"});
package/locale-data/dv.js CHANGED
@@ -1,7 +1,12 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
3
+ ;(function (data) {
4
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
5
+ Intl.PluralRules.__addLocaleData(data)
6
+ } else {
7
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
8
+ }
9
+ })({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
5
10
  const numStr = String(num);
6
11
  const parts = numStr.split(".");
7
12
  const integerPart = parts[0];
@@ -14,20 +19,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
14
19
  return "one";
15
20
  }
16
21
  return "other";
17
- }},"locale":"dv"})
18
- } else {
19
- (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
20
- const numStr = String(num);
21
- const parts = numStr.split(".");
22
- const integerPart = parts[0];
23
- const decimalPart = parts[1] || "";
24
- const n = Math.abs(parseFloat(numStr));
25
- if (isOrdinal) {
26
- }
27
- else {
28
- if ((!/[1-9]/.test(decimalPart) && n === 1))
29
- return "one";
30
- }
31
- return "other";
32
- }},"locale":"dv"})
33
- }
22
+ }},"locale":"dv"});
package/locale-data/dz.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
3
+ ;(function (data) {
4
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
5
+ Intl.PluralRules.__addLocaleData(data)
6
+ } else {
7
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
8
+ }
9
+ })({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
5
10
  return "other";
6
- }},"locale":"dz"})
7
- } else {
8
- (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
9
- return "other";
10
- }},"locale":"dz"})
11
- }
11
+ }},"locale":"dz"});
package/locale-data/ee.js CHANGED
@@ -1,7 +1,12 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
3
+ ;(function (data) {
4
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
5
+ Intl.PluralRules.__addLocaleData(data)
6
+ } else {
7
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
8
+ }
9
+ })({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
5
10
  const numStr = String(num);
6
11
  const parts = numStr.split(".");
7
12
  const integerPart = parts[0];
@@ -14,20 +19,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
14
19
  return "one";
15
20
  }
16
21
  return "other";
17
- }},"locale":"ee"})
18
- } else {
19
- (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
20
- const numStr = String(num);
21
- const parts = numStr.split(".");
22
- const integerPart = parts[0];
23
- const decimalPart = parts[1] || "";
24
- const n = Math.abs(parseFloat(numStr));
25
- if (isOrdinal) {
26
- }
27
- else {
28
- if ((!/[1-9]/.test(decimalPart) && n === 1))
29
- return "one";
30
- }
31
- return "other";
32
- }},"locale":"ee"})
33
- }
22
+ }},"locale":"ee"});
package/locale-data/el.js CHANGED
@@ -1,7 +1,12 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
3
+ ;(function (data) {
4
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
5
+ Intl.PluralRules.__addLocaleData(data)
6
+ } else {
7
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
8
+ }
9
+ })({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
5
10
  const numStr = String(num);
6
11
  const parts = numStr.split(".");
7
12
  const integerPart = parts[0];
@@ -14,20 +19,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
14
19
  return "one";
15
20
  }
16
21
  return "other";
17
- },"pluralRanges":{"cardinal":{"one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"el"})
18
- } else {
19
- (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
20
- const numStr = String(num);
21
- const parts = numStr.split(".");
22
- const integerPart = parts[0];
23
- const decimalPart = parts[1] || "";
24
- const n = Math.abs(parseFloat(numStr));
25
- if (isOrdinal) {
26
- }
27
- else {
28
- if ((!/[1-9]/.test(decimalPart) && n === 1))
29
- return "one";
30
- }
31
- return "other";
32
- },"pluralRanges":{"cardinal":{"one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"el"})
33
- }
22
+ },"pluralRanges":{"cardinal":{"one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"el"});
package/locale-data/en.js CHANGED
@@ -1,7 +1,12 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["few","one","other","two"]},"fn":function(num, isOrdinal, exponent = 0) {
3
+ ;(function (data) {
4
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
5
+ Intl.PluralRules.__addLocaleData(data)
6
+ } else {
7
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
8
+ }
9
+ })({"data":{"categories":{"cardinal":["one","other"],"ordinal":["few","one","other","two"]},"fn":function(num, isOrdinal, exponent = 0) {
5
10
  function modDigits(digits, divisor) {
6
11
  let value = 0;
7
12
  for (let index = 0; index < digits.length; index++) {
@@ -30,36 +35,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
30
35
  return "one";
31
36
  }
32
37
  return "other";
33
- },"pluralRanges":{"cardinal":{"one_other":"other","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"en"})
34
- } else {
35
- (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["few","one","other","two"]},"fn":function(num, isOrdinal, exponent = 0) {
36
- function modDigits(digits, divisor) {
37
- let value = 0;
38
- for (let index = 0; index < digits.length; index++) {
39
- const digit = digits.charCodeAt(index) - 48;
40
- if (digit >= 0 && digit <= 9) value = (value * 10 + digit) % divisor;
41
- }
42
- return value;
43
- }
44
- const numStr = String(num);
45
- const parts = numStr.split(".");
46
- const integerPart = parts[0];
47
- const decimalPart = parts[1] || "";
48
- const n = Math.abs(parseFloat(numStr));
49
- const i = Math.floor(Math.abs(parseFloat(integerPart)));
50
- const v = decimalPart.length;
51
- if (isOrdinal) {
52
- if ((!/[1-9]/.test(decimalPart) && modDigits(integerPart, 10) === 1) && (/[1-9]/.test(decimalPart) || modDigits(integerPart, 100) !== 11))
53
- return "one";
54
- if ((!/[1-9]/.test(decimalPart) && modDigits(integerPart, 10) === 2) && (/[1-9]/.test(decimalPart) || modDigits(integerPart, 100) !== 12))
55
- return "two";
56
- if ((!/[1-9]/.test(decimalPart) && modDigits(integerPart, 10) === 3) && (/[1-9]/.test(decimalPart) || modDigits(integerPart, 100) !== 13))
57
- return "few";
58
- }
59
- else {
60
- if (i === 1 && v === 0)
61
- return "one";
62
- }
63
- return "other";
64
- },"pluralRanges":{"cardinal":{"one_other":"other","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"en"})
65
- }
38
+ },"pluralRanges":{"cardinal":{"one_other":"other","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"en"});
package/locale-data/eo.js CHANGED
@@ -1,7 +1,12 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
3
+ ;(function (data) {
4
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
5
+ Intl.PluralRules.__addLocaleData(data)
6
+ } else {
7
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
8
+ }
9
+ })({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
5
10
  const numStr = String(num);
6
11
  const parts = numStr.split(".");
7
12
  const integerPart = parts[0];
@@ -14,20 +19,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
14
19
  return "one";
15
20
  }
16
21
  return "other";
17
- }},"locale":"eo"})
18
- } else {
19
- (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
20
- const numStr = String(num);
21
- const parts = numStr.split(".");
22
- const integerPart = parts[0];
23
- const decimalPart = parts[1] || "";
24
- const n = Math.abs(parseFloat(numStr));
25
- if (isOrdinal) {
26
- }
27
- else {
28
- if ((!/[1-9]/.test(decimalPart) && n === 1))
29
- return "one";
30
- }
31
- return "other";
32
- }},"locale":"eo"})
33
- }
22
+ }},"locale":"eo"});
package/locale-data/es.js CHANGED
@@ -1,7 +1,12 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["many","one","other"],"ordinal":["one","other"]},"compactExponents":{"short":{"3":3,"4":3,"5":3,"6":6,"7":6,"8":6,"9":6,"10":9,"11":9,"12":12,"13":12,"14":12},"long":{"3":3,"4":3,"5":3,"6":6,"7":6,"8":6,"9":9,"10":9,"11":9,"12":12,"13":12,"14":12}},"fn":function(num, isOrdinal, exponent = 0) {
3
+ ;(function (data) {
4
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
5
+ Intl.PluralRules.__addLocaleData(data)
6
+ } else {
7
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
8
+ }
9
+ })({"data":{"categories":{"cardinal":["many","one","other"],"ordinal":["one","other"]},"compactExponents":{"short":{"3":3,"4":3,"5":3,"6":6,"7":6,"8":6,"9":6,"10":9,"11":9,"12":12,"13":12,"14":12},"long":{"3":3,"4":3,"5":3,"6":6,"7":6,"8":6,"9":9,"10":9,"11":9,"12":12,"13":12,"14":12}},"fn":function(num, isOrdinal, exponent = 0) {
5
10
  function modDigits(digits, divisor) {
6
11
  let value = 0;
7
12
  for (let index = 0; index < digits.length; index++) {
@@ -29,35 +34,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
29
34
  return "many";
30
35
  }
31
36
  return "other";
32
- },"pluralRanges":{"cardinal":{"one_other":"other","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"es"})
33
- } else {
34
- (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["many","one","other"],"ordinal":["one","other"]},"compactExponents":{"short":{"3":3,"4":3,"5":3,"6":6,"7":6,"8":6,"9":6,"10":9,"11":9,"12":12,"13":12,"14":12},"long":{"3":3,"4":3,"5":3,"6":6,"7":6,"8":6,"9":9,"10":9,"11":9,"12":12,"13":12,"14":12}},"fn":function(num, isOrdinal, exponent = 0) {
35
- function modDigits(digits, divisor) {
36
- let value = 0;
37
- for (let index = 0; index < digits.length; index++) {
38
- const digit = digits.charCodeAt(index) - 48;
39
- if (digit >= 0 && digit <= 9) value = (value * 10 + digit) % divisor;
40
- }
41
- return value;
42
- }
43
- const numStr = String(num);
44
- const parts = numStr.split(".");
45
- const integerPart = parts[0];
46
- const decimalPart = parts[1] || "";
47
- const n = Math.abs(parseFloat(numStr));
48
- const i = Math.floor(Math.abs(parseFloat(integerPart)));
49
- const v = decimalPart.length;
50
- const e = exponent;
51
- if (isOrdinal) {
52
- if ((!/[1-9]/.test(decimalPart) && (modDigits(integerPart, 10) === 1 || modDigits(integerPart, 10) === 3)) && (/[1-9]/.test(decimalPart) || modDigits(integerPart, 100) !== 11))
53
- return "one";
54
- }
55
- else {
56
- if ((!/[1-9]/.test(decimalPart) && n === 1))
57
- return "one";
58
- if (e === 0 && i !== 0 && modDigits(integerPart, 1000000) === 0 && v === 0 || (e < 0 || e > 5))
59
- return "many";
60
- }
61
- return "other";
62
- },"pluralRanges":{"cardinal":{"one_other":"other","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"es"})
63
- }
37
+ },"pluralRanges":{"cardinal":{"one_other":"other","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"es"});