// generated by scripts/cldr.mjs from cldr-core 48.0.0 — do not edit
//! Cardinal plural rules of CLDR, one function per distinct rule set, and the tables that
//! resolve a BCP 47 tag the way `Intl.PluralRules.supportedLocalesOf` does (see `super`).
use super::{Category, Operands};
/// One rule set: its function and the categories it has (bit `1 << Category as u8`).
pub(crate) struct Rule {
pub(crate) select: fn(&Operands) -> Category,
pub(crate) categories: u8,
}
/// `x = a..b` of the rule syntax: a whole value in the range.
fn in_range(x: f64, a: f64, b: f64) -> bool {
x.fract() == 0.0 && x >= a && x <= b
}
/// af, an, asa, az, bal, bem, bez, bg, brx, ce, cgg, chr, ckb, dv, ee, el, eo, eu, fo, fur, gsw, ha, haw, hu, jgo, jmc, ka, kaj, kcg, kk, kkj, kl, ks, ksb, ku, ky, lb, lg, mas, mgo, ml, mn, mr, nah, nb, nd, ne, nn, nnh, no, nr, ny, nyn, om, or, os, pap, ps, rm, rof, rwk, saq, sd, sdh, seh, sn, so, sq, ss, ssy, st, syr, ta, te, teo, tig, tk, tn, tr, ts, ug, uz, ve, vo, vun, wae, xh, xog
/// - one: `n = 1`
fn r_af(o: &Operands) -> Category {
if o.n == 1.0 {
return Category::One;
}
Category::Other
}
/// ak, bho, csw, guw, ln, mg, nso, pa, ti, wa
/// - one: `n = 0..1`
fn r_ak(o: &Operands) -> Category {
if in_range(o.n, 0.0, 1.0) {
return Category::One;
}
Category::Other
}
/// am, as, bn, doi, fa, gu, hi, kn, kok, kok-Latn, pcm, zu
/// - one: `i = 0 or n = 1`
fn r_am(o: &Operands) -> Category {
if matches!(o.i, 0) || o.n == 1.0 {
return Category::One;
}
Category::Other
}
/// ar, ars
/// - zero: `n = 0`
/// - one: `n = 1`
/// - two: `n = 2`
/// - few: `n % 100 = 3..10`
/// - many: `n % 100 = 11..99`
fn r_ar(o: &Operands) -> Category {
if o.n == 0.0 {
return Category::Zero;
}
if o.n == 1.0 {
return Category::One;
}
if o.n == 2.0 {
return Category::Two;
}
if in_range(o.n % 100.0, 3.0, 10.0) {
return Category::Few;
}
if in_range(o.n % 100.0, 11.0, 99.0) {
return Category::Many;
}
Category::Other
}
/// ast, de, en, et, fi, fy, gl, ia, ie, io, lij, nl, sc, sv, sw, ur, yi
/// - one: `i = 1 and v = 0`
fn r_ast(o: &Operands) -> Category {
if matches!(o.i, 1) && matches!(o.v, 0) {
return Category::One;
}
Category::Other
}
/// be
/// - one: `n % 10 = 1 and n % 100 != 11`
/// - few: `n % 10 = 2..4 and n % 100 != 12..14`
/// - many: `n % 10 = 0 or n % 10 = 5..9 or n % 100 = 11..14`
fn r_be(o: &Operands) -> Category {
if o.n % 10.0 == 1.0 && !(o.n % 100.0 == 11.0) {
return Category::One;
}
if in_range(o.n % 10.0, 2.0, 4.0) && !(in_range(o.n % 100.0, 12.0, 14.0)) {
return Category::Few;
}
if o.n % 10.0 == 0.0 || in_range(o.n % 10.0, 5.0, 9.0) || in_range(o.n % 100.0, 11.0, 14.0) {
return Category::Many;
}
Category::Other
}
/// blo, cv, ksh
/// - zero: `n = 0`
/// - one: `n = 1`
fn r_blo(o: &Operands) -> Category {
if o.n == 0.0 {
return Category::Zero;
}
if o.n == 1.0 {
return Category::One;
}
Category::Other
}
/// bm, bo, dz, hnj, id, ig, ii, ja, jbo, jv, jw, kde, kea, km, ko, lkt, lo, ms, my, nqo, osa, sah, ses, sg, su, th, to, tpi, und, vi, wo, yo, yue, zh
fn r_bm(_: &Operands) -> Category {
Category::Other
}
/// br
/// - one: `n % 10 = 1 and n % 100 != 11,71,91`
/// - two: `n % 10 = 2 and n % 100 != 12,72,92`
/// - few: `n % 10 = 3..4,9 and n % 100 != 10..19,70..79,90..99`
/// - many: `n != 0 and n % 1000000 = 0`
fn r_br(o: &Operands) -> Category {
if o.n % 10.0 == 1.0 && !(o.n % 100.0 == 11.0 || o.n % 100.0 == 71.0 || o.n % 100.0 == 91.0) {
return Category::One;
}
if o.n % 10.0 == 2.0 && !(o.n % 100.0 == 12.0 || o.n % 100.0 == 72.0 || o.n % 100.0 == 92.0) {
return Category::Two;
}
if (in_range(o.n % 10.0, 3.0, 4.0) || o.n % 10.0 == 9.0) && !(in_range(o.n % 100.0, 10.0, 19.0) || in_range(o.n % 100.0, 70.0, 79.0) || in_range(o.n % 100.0, 90.0, 99.0)) {
return Category::Few;
}
if !(o.n == 0.0) && o.n % 1000000.0 == 0.0 {
return Category::Many;
}
Category::Other
}
/// bs, hr, sh, sr
/// - one: `v = 0 and i % 10 = 1 and i % 100 != 11 or f % 10 = 1 and f % 100 != 11`
/// - few: `v = 0 and i % 10 = 2..4 and i % 100 != 12..14 or f % 10 = 2..4 and f % 100 != 12..14`
fn r_bs(o: &Operands) -> Category {
if matches!(o.v, 0) && matches!(o.i % 10, 1) && !(matches!(o.i % 100, 11)) || matches!(o.f % 10, 1) && !(matches!(o.f % 100, 11)) {
return Category::One;
}
if matches!(o.v, 0) && matches!(o.i % 10, 2..=4) && !(matches!(o.i % 100, 12..=14)) || matches!(o.f % 10, 2..=4) && !(matches!(o.f % 100, 12..=14)) {
return Category::Few;
}
Category::Other
}
/// ca, it, lld, pt-PT, scn, vec
/// - one: `i = 1 and v = 0`
/// - many: `e = 0 and i != 0 and i % 1000000 = 0 and v = 0 or e != 0..5`
fn r_ca(o: &Operands) -> Category {
if matches!(o.i, 1) && matches!(o.v, 0) {
return Category::One;
}
if matches!(o.e, 0) && !(matches!(o.i, 0)) && matches!(o.i % 1000000, 0) && matches!(o.v, 0) || !(matches!(o.e, 0..=5)) {
return Category::Many;
}
Category::Other
}
/// ceb, fil, tl
/// - one: `v = 0 and i = 1,2,3 or v = 0 and i % 10 != 4,6,9 or v != 0 and f % 10 != 4,6,9`
fn r_ceb(o: &Operands) -> Category {
if matches!(o.v, 0) && matches!(o.i, 1 | 2 | 3) || matches!(o.v, 0) && !(matches!(o.i % 10, 4 | 6 | 9)) || !(matches!(o.v, 0)) && !(matches!(o.f % 10, 4 | 6 | 9)) {
return Category::One;
}
Category::Other
}
/// cs, sk
/// - one: `i = 1 and v = 0`
/// - few: `i = 2..4 and v = 0`
/// - many: `v != 0`
fn r_cs(o: &Operands) -> Category {
if matches!(o.i, 1) && matches!(o.v, 0) {
return Category::One;
}
if matches!(o.i, 2..=4) && matches!(o.v, 0) {
return Category::Few;
}
if !(matches!(o.v, 0)) {
return Category::Many;
}
Category::Other
}
/// cy
/// - zero: `n = 0`
/// - one: `n = 1`
/// - two: `n = 2`
/// - few: `n = 3`
/// - many: `n = 6`
fn r_cy(o: &Operands) -> Category {
if o.n == 0.0 {
return Category::Zero;
}
if o.n == 1.0 {
return Category::One;
}
if o.n == 2.0 {
return Category::Two;
}
if o.n == 3.0 {
return Category::Few;
}
if o.n == 6.0 {
return Category::Many;
}
Category::Other
}
/// da
/// - one: `n = 1 or t != 0 and i = 0,1`
fn r_da(o: &Operands) -> Category {
if o.n == 1.0 || !(matches!(o.t, 0)) && matches!(o.i, 0 | 1) {
return Category::One;
}
Category::Other
}
/// dsb, hsb
/// - one: `v = 0 and i % 100 = 1 or f % 100 = 1`
/// - two: `v = 0 and i % 100 = 2 or f % 100 = 2`
/// - few: `v = 0 and i % 100 = 3..4 or f % 100 = 3..4`
fn r_dsb(o: &Operands) -> Category {
if matches!(o.v, 0) && matches!(o.i % 100, 1) || matches!(o.f % 100, 1) {
return Category::One;
}
if matches!(o.v, 0) && matches!(o.i % 100, 2) || matches!(o.f % 100, 2) {
return Category::Two;
}
if matches!(o.v, 0) && matches!(o.i % 100, 3..=4) || matches!(o.f % 100, 3..=4) {
return Category::Few;
}
Category::Other
}
/// es
/// - one: `n = 1`
/// - many: `e = 0 and i != 0 and i % 1000000 = 0 and v = 0 or e != 0..5`
fn r_es(o: &Operands) -> Category {
if o.n == 1.0 {
return Category::One;
}
if matches!(o.e, 0) && !(matches!(o.i, 0)) && matches!(o.i % 1000000, 0) && matches!(o.v, 0) || !(matches!(o.e, 0..=5)) {
return Category::Many;
}
Category::Other
}
/// ff, hy, kab
/// - one: `i = 0,1`
fn r_ff(o: &Operands) -> Category {
if matches!(o.i, 0 | 1) {
return Category::One;
}
Category::Other
}
/// fr
/// - one: `i = 0,1`
/// - many: `e = 0 and i != 0 and i % 1000000 = 0 and v = 0 or e != 0..5`
fn r_fr(o: &Operands) -> Category {
if matches!(o.i, 0 | 1) {
return Category::One;
}
if matches!(o.e, 0) && !(matches!(o.i, 0)) && matches!(o.i % 1000000, 0) && matches!(o.v, 0) || !(matches!(o.e, 0..=5)) {
return Category::Many;
}
Category::Other
}
/// ga
/// - one: `n = 1`
/// - two: `n = 2`
/// - few: `n = 3..6`
/// - many: `n = 7..10`
fn r_ga(o: &Operands) -> Category {
if o.n == 1.0 {
return Category::One;
}
if o.n == 2.0 {
return Category::Two;
}
if in_range(o.n, 3.0, 6.0) {
return Category::Few;
}
if in_range(o.n, 7.0, 10.0) {
return Category::Many;
}
Category::Other
}
/// gd
/// - one: `n = 1,11`
/// - two: `n = 2,12`
/// - few: `n = 3..10,13..19`
fn r_gd(o: &Operands) -> Category {
if o.n == 1.0 || o.n == 11.0 {
return Category::One;
}
if o.n == 2.0 || o.n == 12.0 {
return Category::Two;
}
if in_range(o.n, 3.0, 10.0) || in_range(o.n, 13.0, 19.0) {
return Category::Few;
}
Category::Other
}
/// gv
/// - one: `v = 0 and i % 10 = 1`
/// - two: `v = 0 and i % 10 = 2`
/// - few: `v = 0 and i % 100 = 0,20,40,60,80`
/// - many: `v != 0`
fn r_gv(o: &Operands) -> Category {
if matches!(o.v, 0) && matches!(o.i % 10, 1) {
return Category::One;
}
if matches!(o.v, 0) && matches!(o.i % 10, 2) {
return Category::Two;
}
if matches!(o.v, 0) && matches!(o.i % 100, 0 | 20 | 40 | 60 | 80) {
return Category::Few;
}
if !(matches!(o.v, 0)) {
return Category::Many;
}
Category::Other
}
/// he
/// - one: `i = 1 and v = 0 or i = 0 and v != 0`
/// - two: `i = 2 and v = 0`
fn r_he(o: &Operands) -> Category {
if matches!(o.i, 1) && matches!(o.v, 0) || matches!(o.i, 0) && !(matches!(o.v, 0)) {
return Category::One;
}
if matches!(o.i, 2) && matches!(o.v, 0) {
return Category::Two;
}
Category::Other
}
/// is
/// - one: `t = 0 and i % 10 = 1 and i % 100 != 11 or t % 10 = 1 and t % 100 != 11`
fn r_is(o: &Operands) -> Category {
if matches!(o.t, 0) && matches!(o.i % 10, 1) && !(matches!(o.i % 100, 11)) || matches!(o.t % 10, 1) && !(matches!(o.t % 100, 11)) {
return Category::One;
}
Category::Other
}
/// iu, naq, sat, se, sma, smi, smj, smn, sms
/// - one: `n = 1`
/// - two: `n = 2`
fn r_iu(o: &Operands) -> Category {
if o.n == 1.0 {
return Category::One;
}
if o.n == 2.0 {
return Category::Two;
}
Category::Other
}
/// kw
/// - zero: `n = 0`
/// - one: `n = 1`
/// - two: `n % 100 = 2,22,42,62,82 or n % 1000 = 0 and n % 100000 = 1000..20000,40000,60000,80000 or n != 0 and n % 1000000 = 100000`
/// - few: `n % 100 = 3,23,43,63,83`
/// - many: `n != 1 and n % 100 = 1,21,41,61,81`
fn r_kw(o: &Operands) -> Category {
if o.n == 0.0 {
return Category::Zero;
}
if o.n == 1.0 {
return Category::One;
}
if (o.n % 100.0 == 2.0 || o.n % 100.0 == 22.0 || o.n % 100.0 == 42.0 || o.n % 100.0 == 62.0 || o.n % 100.0 == 82.0) || o.n % 1000.0 == 0.0 && (in_range(o.n % 100000.0, 1000.0, 20000.0) || o.n % 100000.0 == 40000.0 || o.n % 100000.0 == 60000.0 || o.n % 100000.0 == 80000.0) || !(o.n == 0.0) && o.n % 1000000.0 == 100000.0 {
return Category::Two;
}
if o.n % 100.0 == 3.0 || o.n % 100.0 == 23.0 || o.n % 100.0 == 43.0 || o.n % 100.0 == 63.0 || o.n % 100.0 == 83.0 {
return Category::Few;
}
if !(o.n == 1.0) && (o.n % 100.0 == 1.0 || o.n % 100.0 == 21.0 || o.n % 100.0 == 41.0 || o.n % 100.0 == 61.0 || o.n % 100.0 == 81.0) {
return Category::Many;
}
Category::Other
}
/// lag
/// - zero: `n = 0`
/// - one: `i = 0,1 and n != 0`
fn r_lag(o: &Operands) -> Category {
if o.n == 0.0 {
return Category::Zero;
}
if matches!(o.i, 0 | 1) && !(o.n == 0.0) {
return Category::One;
}
Category::Other
}
/// lt
/// - one: `n % 10 = 1 and n % 100 != 11..19`
/// - few: `n % 10 = 2..9 and n % 100 != 11..19`
/// - many: `f != 0`
fn r_lt(o: &Operands) -> Category {
if o.n % 10.0 == 1.0 && !(in_range(o.n % 100.0, 11.0, 19.0)) {
return Category::One;
}
if in_range(o.n % 10.0, 2.0, 9.0) && !(in_range(o.n % 100.0, 11.0, 19.0)) {
return Category::Few;
}
if !(matches!(o.f, 0)) {
return Category::Many;
}
Category::Other
}
/// lv, prg
/// - zero: `n % 10 = 0 or n % 100 = 11..19 or v = 2 and f % 100 = 11..19`
/// - one: `n % 10 = 1 and n % 100 != 11 or v = 2 and f % 10 = 1 and f % 100 != 11 or v != 2 and f % 10 = 1`
fn r_lv(o: &Operands) -> Category {
if o.n % 10.0 == 0.0 || in_range(o.n % 100.0, 11.0, 19.0) || matches!(o.v, 2) && matches!(o.f % 100, 11..=19) {
return Category::Zero;
}
if o.n % 10.0 == 1.0 && !(o.n % 100.0 == 11.0) || matches!(o.v, 2) && matches!(o.f % 10, 1) && !(matches!(o.f % 100, 11)) || !(matches!(o.v, 2)) && matches!(o.f % 10, 1) {
return Category::One;
}
Category::Other
}
/// mk
/// - one: `v = 0 and i % 10 = 1 and i % 100 != 11 or f % 10 = 1 and f % 100 != 11`
fn r_mk(o: &Operands) -> Category {
if matches!(o.v, 0) && matches!(o.i % 10, 1) && !(matches!(o.i % 100, 11)) || matches!(o.f % 10, 1) && !(matches!(o.f % 100, 11)) {
return Category::One;
}
Category::Other
}
/// mo, ro
/// - one: `i = 1 and v = 0`
/// - few: `v != 0 or n = 0 or n != 1 and n % 100 = 1..19`
fn r_mo(o: &Operands) -> Category {
if matches!(o.i, 1) && matches!(o.v, 0) {
return Category::One;
}
if !(matches!(o.v, 0)) || o.n == 0.0 || !(o.n == 1.0) && in_range(o.n % 100.0, 1.0, 19.0) {
return Category::Few;
}
Category::Other
}
/// mt
/// - one: `n = 1`
/// - two: `n = 2`
/// - few: `n = 0 or n % 100 = 3..10`
/// - many: `n % 100 = 11..19`
fn r_mt(o: &Operands) -> Category {
if o.n == 1.0 {
return Category::One;
}
if o.n == 2.0 {
return Category::Two;
}
if o.n == 0.0 || in_range(o.n % 100.0, 3.0, 10.0) {
return Category::Few;
}
if in_range(o.n % 100.0, 11.0, 19.0) {
return Category::Many;
}
Category::Other
}
/// pl
/// - one: `i = 1 and v = 0`
/// - few: `v = 0 and i % 10 = 2..4 and i % 100 != 12..14`
/// - many: `v = 0 and i != 1 and i % 10 = 0..1 or v = 0 and i % 10 = 5..9 or v = 0 and i % 100 = 12..14`
fn r_pl(o: &Operands) -> Category {
if matches!(o.i, 1) && matches!(o.v, 0) {
return Category::One;
}
if matches!(o.v, 0) && matches!(o.i % 10, 2..=4) && !(matches!(o.i % 100, 12..=14)) {
return Category::Few;
}
if matches!(o.v, 0) && !(matches!(o.i, 1)) && matches!(o.i % 10, 0..=1) || matches!(o.v, 0) && matches!(o.i % 10, 5..=9) || matches!(o.v, 0) && matches!(o.i % 100, 12..=14) {
return Category::Many;
}
Category::Other
}
/// pt
/// - one: `i = 0..1`
/// - many: `e = 0 and i != 0 and i % 1000000 = 0 and v = 0 or e != 0..5`
fn r_pt(o: &Operands) -> Category {
if matches!(o.i, 0..=1) {
return Category::One;
}
if matches!(o.e, 0) && !(matches!(o.i, 0)) && matches!(o.i % 1000000, 0) && matches!(o.v, 0) || !(matches!(o.e, 0..=5)) {
return Category::Many;
}
Category::Other
}
/// ru, uk
/// - one: `v = 0 and i % 10 = 1 and i % 100 != 11`
/// - few: `v = 0 and i % 10 = 2..4 and i % 100 != 12..14`
/// - many: `v = 0 and i % 10 = 0 or v = 0 and i % 10 = 5..9 or v = 0 and i % 100 = 11..14`
fn r_ru(o: &Operands) -> Category {
if matches!(o.v, 0) && matches!(o.i % 10, 1) && !(matches!(o.i % 100, 11)) {
return Category::One;
}
if matches!(o.v, 0) && matches!(o.i % 10, 2..=4) && !(matches!(o.i % 100, 12..=14)) {
return Category::Few;
}
if matches!(o.v, 0) && matches!(o.i % 10, 0) || matches!(o.v, 0) && matches!(o.i % 10, 5..=9) || matches!(o.v, 0) && matches!(o.i % 100, 11..=14) {
return Category::Many;
}
Category::Other
}
/// sgs
/// - one: `n % 10 = 1 and n % 100 != 11`
/// - two: `n = 2`
/// - few: `n != 2 and n % 10 = 2..9 and n % 100 != 11..19`
/// - many: `f != 0`
fn r_sgs(o: &Operands) -> Category {
if o.n % 10.0 == 1.0 && !(o.n % 100.0 == 11.0) {
return Category::One;
}
if o.n == 2.0 {
return Category::Two;
}
if !(o.n == 2.0) && in_range(o.n % 10.0, 2.0, 9.0) && !(in_range(o.n % 100.0, 11.0, 19.0)) {
return Category::Few;
}
if !(matches!(o.f, 0)) {
return Category::Many;
}
Category::Other
}
/// shi
/// - one: `i = 0 or n = 1`
/// - few: `n = 2..10`
fn r_shi(o: &Operands) -> Category {
if matches!(o.i, 0) || o.n == 1.0 {
return Category::One;
}
if in_range(o.n, 2.0, 10.0) {
return Category::Few;
}
Category::Other
}
/// si
/// - one: `n = 0,1 or i = 0 and f = 1`
fn r_si(o: &Operands) -> Category {
if (o.n == 0.0 || o.n == 1.0) || matches!(o.i, 0) && matches!(o.f, 1) {
return Category::One;
}
Category::Other
}
/// sl
/// - one: `v = 0 and i % 100 = 1`
/// - two: `v = 0 and i % 100 = 2`
/// - few: `v = 0 and i % 100 = 3..4 or v != 0`
fn r_sl(o: &Operands) -> Category {
if matches!(o.v, 0) && matches!(o.i % 100, 1) {
return Category::One;
}
if matches!(o.v, 0) && matches!(o.i % 100, 2) {
return Category::Two;
}
if matches!(o.v, 0) && matches!(o.i % 100, 3..=4) || !(matches!(o.v, 0)) {
return Category::Few;
}
Category::Other
}
/// tzm
/// - one: `n = 0..1 or n = 11..99`
fn r_tzm(o: &Operands) -> Category {
if in_range(o.n, 0.0, 1.0) || in_range(o.n, 11.0, 99.0) {
return Category::One;
}
Category::Other
}
/// The rule sets, in the order of their first locale.
pub(crate) static RULES: [Rule; 40] = [
Rule { select: r_af, categories: 0b100010 },
Rule { select: r_ak, categories: 0b100010 },
Rule { select: r_am, categories: 0b100010 },
Rule { select: r_ar, categories: 0b111111 },
Rule { select: r_ast, categories: 0b100010 },
Rule { select: r_be, categories: 0b111010 },
Rule { select: r_blo, categories: 0b100011 },
Rule { select: r_bm, categories: 0b100000 },
Rule { select: r_br, categories: 0b111110 },
Rule { select: r_bs, categories: 0b101010 },
Rule { select: r_ca, categories: 0b110010 },
Rule { select: r_ceb, categories: 0b100010 },
Rule { select: r_cs, categories: 0b111010 },
Rule { select: r_cy, categories: 0b111111 },
Rule { select: r_da, categories: 0b100010 },
Rule { select: r_dsb, categories: 0b101110 },
Rule { select: r_es, categories: 0b110010 },
Rule { select: r_ff, categories: 0b100010 },
Rule { select: r_fr, categories: 0b110010 },
Rule { select: r_ga, categories: 0b111110 },
Rule { select: r_gd, categories: 0b101110 },
Rule { select: r_gv, categories: 0b111110 },
Rule { select: r_he, categories: 0b100110 },
Rule { select: r_is, categories: 0b100010 },
Rule { select: r_iu, categories: 0b100110 },
Rule { select: r_kw, categories: 0b111111 },
Rule { select: r_lag, categories: 0b100011 },
Rule { select: r_lt, categories: 0b111010 },
Rule { select: r_lv, categories: 0b100011 },
Rule { select: r_mk, categories: 0b100010 },
Rule { select: r_mo, categories: 0b101010 },
Rule { select: r_mt, categories: 0b111110 },
Rule { select: r_pl, categories: 0b111010 },
Rule { select: r_pt, categories: 0b110010 },
Rule { select: r_ru, categories: 0b111010 },
Rule { select: r_sgs, categories: 0b111110 },
Rule { select: r_shi, categories: 0b101010 },
Rule { select: r_si, categories: 0b100010 },
Rule { select: r_sl, categories: 0b101110 },
Rule { select: r_tzm, categories: 0b100010 },
];
/// The locales `Intl.PluralRules` supports by their own name, sorted by bytes.
pub(crate) static LOCALES: &str = "afakamanararsasasaastazbalbebembezbgbhoblobmbnbobrbrxbscacecebcggchrckbcscswcvcydadedoidsbdvdzeeeleneoeseteufafffifilfofrfurfygagdglgswguguwgvhahawhehihnjhrhsbhuhyiaidieigiiioisitiujajbojgojmcjvkakabkajkcgkdekeakkkkjklkmknkokokkok-Latnksksbkshkukwkylaglblglijlktlldlnloltlvmasmgmgomkmlmnmrmsmtmynahnaqnbndnenlnnnnhnonqonrnsonynynomorososapapappcmplprgpsptpt-PTrmrorofrurwksahsaqsatscscnsdsdhsesehsessgsgsshisiskslsmasmismjsmnsmssnsosqsrssssystsusvswsyrtateteothtitigtktntotpitrtstzmugukuruzvevecvivovunwawaewoxhxogyiyoyuezhzu";
pub(crate) static LOCALES_ENDS: [u16; 219] = [2, 4, 6, 8, 10, 13, 15, 18, 21, 23, 26, 28, 31, 34, 36, 39, 42, 44, 46, 48, 50, 53, 55, 57, 59, 62, 65, 68, 71, 73, 76, 78, 80, 82, 84, 87, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 117, 119, 121, 124, 126, 128, 130, 132, 135, 137, 140, 142, 144, 147, 149, 151, 154, 156, 159, 161, 163, 165, 167, 169, 171, 173, 175, 177, 179, 181, 183, 186, 189, 192, 194, 196, 199, 202, 205, 208, 211, 213, 216, 218, 220, 222, 224, 227, 235, 237, 240, 243, 245, 247, 249, 252, 254, 256, 259, 262, 265, 267, 269, 271, 273, 276, 278, 281, 283, 285, 287, 289, 291, 293, 295, 298, 301, 303, 305, 307, 309, 311, 314, 316, 319, 321, 324, 326, 329, 331, 333, 335, 338, 340, 343, 346, 348, 351, 353, 355, 360, 362, 364, 367, 369, 372, 375, 378, 381, 383, 386, 388, 391, 393, 396, 399, 401, 404, 407, 409, 411, 413, 416, 419, 422, 425, 428, 430, 432, 434, 436, 438, 441, 443, 445, 447, 449, 452, 454, 456, 459, 461, 463, 466, 468, 470, 472, 475, 477, 479, 482, 484, 486, 488, 490, 492, 495, 497, 499, 502, 504, 507, 509, 511, 514, 516, 518, 521, 523, 525];
/// The rule set of each of [`LOCALES`].
pub(crate) static LOCALE_RULES: [u8; 219] = [0, 1, 2, 0, 3, 3, 2, 0, 4, 0, 0, 5, 0, 0, 0, 1, 6, 7, 2, 7, 8, 0, 9, 10, 0, 11, 0, 0, 0, 12, 1, 6, 13, 14, 4, 2, 15, 0, 7, 0, 0, 4, 0, 16, 4, 0, 2, 17, 4, 11, 0, 18, 0, 4, 19, 20, 4, 0, 2, 1, 21, 0, 0, 22, 2, 7, 9, 15, 0, 17, 4, 7, 4, 7, 7, 4, 23, 10, 24, 7, 7, 0, 0, 7, 0, 17, 0, 0, 7, 7, 0, 0, 0, 7, 2, 7, 2, 2, 0, 0, 6, 0, 25, 0, 26, 0, 0, 4, 7, 10, 1, 7, 27, 28, 0, 1, 0, 29, 0, 0, 0, 7, 31, 7, 0, 24, 0, 0, 0, 4, 0, 0, 0, 7, 0, 1, 0, 0, 0, 0, 0, 7, 1, 0, 2, 32, 28, 0, 33, 10, 0, 30, 0, 34, 0, 7, 0, 24, 4, 10, 0, 0, 24, 0, 7, 7, 35, 36, 37, 12, 38, 24, 24, 24, 24, 24, 0, 0, 0, 9, 0, 0, 0, 7, 4, 4, 0, 0, 0, 0, 7, 1, 0, 0, 0, 7, 7, 0, 0, 39, 0, 34, 4, 0, 0, 10, 7, 0, 0, 1, 0, 7, 0, 0, 4, 7, 7, 7, 2];
/// Language aliases that change the rule (`iw` → `he`, `art-lojban` → `jbo`): the lowercase
/// language, or `language-variant`, sorted by bytes.
pub(crate) static ALIAS_KEYS: &str = "aa-saahoadpafrakaalbalsamharaarbargarmart-lojbanasmazeazjbambaqbccbelbenbhbihbodbosbrebulburcatceschechichvcldcmncnrcorcymczedandeudgodivdrhdrwdutdzoekkellengepoesteusewefaofasfatfinfrafrefryfucfulgazgeogerglagleglgglvgomgregujhauhbshebhinhrvhunhy-arevmdahyeiboiceidoiiiikeikuileininaindislitaiwjavjijpnjwkalkankaskatkazkhkkhmkirkmrkorkurlaolavlinlitltzluglvsmacmalmarmaymkdmlgmltmomolmonmsamyanblndenepnldnnonobnornpinyaoriormoryosspanpbuperpespltpolporprpprspusrohronrumrussagsccscrshsinslksloslvsmesnasndsomsotspasqisrcsrdsrpsswsunswaswcsweswhtamteltglthatibtirtltnftontsntsotukturtwtwiuigukrurduzbuznvenvievolwelwlnwolxhoyddyidyorzh-hakkazh-xiangzhozsmzul";
pub(crate) static ALIAS_KEYS_ENDS: [u16; 213] = [8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 48, 51, 54, 57, 60, 63, 66, 69, 72, 74, 77, 80, 83, 86, 89, 92, 95, 98, 101, 104, 107, 110, 113, 116, 119, 122, 125, 128, 131, 134, 137, 140, 143, 146, 149, 152, 155, 158, 161, 164, 167, 170, 173, 176, 179, 182, 185, 188, 191, 194, 197, 200, 203, 206, 209, 212, 215, 218, 221, 224, 227, 230, 233, 236, 239, 242, 245, 255, 258, 261, 264, 267, 270, 273, 276, 279, 281, 284, 287, 290, 293, 295, 298, 300, 303, 305, 308, 311, 314, 317, 320, 323, 326, 329, 332, 335, 338, 341, 344, 347, 350, 353, 356, 359, 362, 365, 368, 371, 374, 377, 380, 382, 385, 388, 391, 394, 397, 400, 403, 406, 409, 412, 415, 418, 421, 424, 427, 430, 433, 436, 439, 442, 445, 448, 451, 454, 457, 460, 463, 466, 469, 472, 475, 478, 481, 484, 486, 489, 492, 495, 498, 501, 504, 507, 510, 513, 516, 519, 522, 525, 528, 531, 534, 537, 540, 543, 546, 549, 552, 555, 558, 561, 564, 566, 569, 572, 575, 578, 581, 584, 586, 589, 592, 595, 598, 601, 604, 607, 610, 613, 616, 619, 622, 625, 628, 631, 634, 642, 650, 653, 656, 659];
/// The CLDR replacement of each of [`ALIAS_KEYS`].
pub(crate) static ALIAS_VALUES: &str = "ssydzafaksqsqamararanhyjboasazazbmeubalbebnbhobhobobsbrbgmycacscezhcvsyrzhsr-MEkwcycsdadedoidvmnfa-AFnldzeteleneoeteueefofaakfifrfrfyffffomkadegdgaglgvkokelguhasr-Latnhehihrhuhywhyigisioiiiuiuieidiaidisithejvyijajvklknkskakkmnkmkykukokulolvlnltlblglvmkmlmrmsmkmgmtroromnmsmynrndnenlnnnbnonenyoromorospapsfafamgplptgufa-AFpsrmrororusgsrhrsr-Latnsiskskslsesnsdsostessqscscsrsssuswsw-CDsvswtatefilthbotifilfa-AFtotntstktrakakugukuruzuzvevivocywawoxhyiyiyohakhsnzhmszu";
pub(crate) static ALIAS_VALUES_ENDS: [u16; 213] = [3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 26, 28, 30, 32, 34, 36, 39, 41, 43, 46, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 72, 74, 79, 81, 83, 85, 87, 89, 92, 94, 96, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119, 121, 123, 125, 127, 129, 131, 133, 135, 137, 139, 141, 143, 145, 147, 149, 151, 154, 156, 158, 160, 167, 169, 171, 173, 175, 178, 180, 182, 184, 186, 188, 190, 192, 194, 196, 198, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 228, 230, 232, 234, 236, 238, 240, 242, 244, 246, 248, 250, 252, 254, 256, 258, 260, 262, 264, 266, 268, 270, 272, 274, 276, 278, 280, 282, 284, 286, 288, 290, 292, 294, 296, 298, 300, 302, 304, 306, 308, 310, 312, 314, 316, 321, 323, 325, 327, 329, 331, 333, 335, 337, 344, 346, 348, 350, 352, 354, 356, 358, 360, 362, 364, 366, 368, 370, 372, 374, 376, 378, 383, 385, 387, 389, 391, 394, 396, 398, 400, 403, 408, 410, 412, 414, 416, 418, 420, 422, 424, 426, 428, 430, 432, 434, 436, 438, 440, 442, 444, 446, 448, 450, 452, 455, 458, 460, 462, 464];
/// Whether each alias applies to the bare lowercase tag (V8 passes `bh` through, not `bh-IN`).
pub(crate) static ALIAS_BARE: [bool; 213] = [true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true];
/// Region aliases onto a region a locale above has (`620` → `PT`). Sorted by bytes.
pub(crate) static REGION_ALIASES: [(&str, &str); 1] = [
("620", "PT"),
];