const Xn = (e, t) => e === t, M = Symbol("solid-proxy"), Jn = typeof Proxy == "function", He = Symbol("solid-track"), De = {
equals: Xn
};
let Ae = null, en = sn;
const oe = 1, Ge = 2, tn = {
owned: null,
cleanups: null,
context: null,
owner: null
}, rt = {};
var P = null;
let at = null, Qn = null, T = null, R = null, $ = null, Qe = 0;
function Pe(e, t) {
const n = T, r = P, a = e.length === 0, i = t === void 0 ? r : t, o = a ? tn : {
owned: null,
cleanups: null,
context: i ? i.context : null,
owner: i
}, s = a ? e : () => e(() => G(() => Le(o)));
P = o, T = null;
try {
return le(s, !0);
} finally {
T = n, P = r;
}
}
function z(e, t) {
t = t ? Object.assign({}, De, t) : De;
const n = {
value: e,
observers: null,
observerSlots: null,
comparator: t.equals || void 0
}, r = (a) => (typeof a == "function" && (a = a(n.value)), on(n, a));
return [an.bind(n), r];
}
function nn(e, t, n) {
const r = Ne(e, t, !0, oe);
Ce(r);
}
function D(e, t, n) {
const r = Ne(e, t, !1, oe);
Ce(r);
}
function $e(e, t, n) {
en = lr;
const r = Ne(e, t, !1, oe);
(!n || !n.render) && (r.user = !0), $ ? $.push(r) : Ce(r);
}
function k(e, t, n) {
n = n ? Object.assign({}, De, n) : De;
const r = Ne(e, t, !0, 0);
return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, Ce(r), an.bind(r);
}
function $n(e) {
return e && typeof e == "object" && "then" in e;
}
function er(e, t, n) {
let r, a, i;
typeof t == "function" ? (r = e, a = t, i = {}) : (r = !0, a = e, i = t || {});
let o = null, s = rt, l = !1, c = "initialValue" in i, u = typeof r == "function" && k(r);
const d = /* @__PURE__ */ new Set(), [h, f] = (i.storage || z)(i.initialValue), [w, y] = z(void 0), [v, S] = z(void 0, {
equals: !1
}), [A, E] = z(c ? "ready" : "unresolved");
function I(B, F, N, ge) {
return o === B && (o = null, ge !== void 0 && (c = !0), (B === s || F === s) && i.onHydrated && queueMicrotask(
() => i.onHydrated(ge, {
value: F
})
), s = rt, V(F, N)), F;
}
function V(B, F) {
le(() => {
F === void 0 && f(() => B), E(F !== void 0 ? "errored" : c ? "ready" : "unresolved"), y(F);
for (const N of d.keys()) N.decrement();
d.clear();
}, !1);
}
function te() {
const B = ir, F = h(), N = w();
if (N !== void 0 && !o) throw N;
return T && T.user, F;
}
function pe(B = !0) {
if (B !== !1 && l) return;
l = !1;
const F = u ? u() : r;
if (F == null || F === !1) {
I(o, G(h));
return;
}
const N = s !== rt ? s : G(
() => a(F, {
value: h(),
refetching: B
})
);
return $n(N) ? (o = N, "value" in N ? (N.status === "success" ? I(o, N.value, void 0, F) : I(o, void 0, dt(N.value), F), N) : (l = !0, queueMicrotask(() => l = !1), le(() => {
E(c ? "refreshing" : "pending"), S();
}, !1), N.then(
(ge) => I(N, ge, void 0, F),
(ge) => I(N, void 0, dt(ge), F)
))) : (I(o, N, void 0, F), N);
}
return Object.defineProperties(te, {
state: {
get: () => A()
},
error: {
get: () => w()
},
loading: {
get() {
const B = A();
return B === "pending" || B === "refreshing";
}
},
latest: {
get() {
if (!c) return te();
const B = w();
if (B && !o) throw B;
return h();
}
}
}), u ? nn(() => pe(!1)) : pe(!1), [
te,
{
refetch: pe,
mutate: f
}
];
}
function ke(e) {
return le(e, !1);
}
function G(e) {
if (T === null) return e();
const t = T;
T = null;
try {
return e();
} finally {
T = t;
}
}
function et(e) {
$e(() => G(e));
}
function be(e) {
return P === null || (P.cleanups === null ? P.cleanups = [e] : P.cleanups.push(e)), e;
}
function tr(e, t) {
Ae || (Ae = Symbol("error")), P = Ne(void 0, void 0, !0), P.context = {
...P.context,
[Ae]: [t]
};
try {
return e();
} catch (n) {
Me(n);
} finally {
P = P.owner;
}
}
function Te() {
return T;
}
function nr() {
return P;
}
function rr(e, t) {
const n = P, r = T;
P = e, T = null;
try {
return le(t, !0);
} catch (a) {
Me(a);
} finally {
P = n, T = r;
}
}
const [Wo, Uo] = /* @__PURE__ */ z(!1);
function ar(e, t) {
const n = Symbol("context");
return {
id: n,
Provider: cr(n),
defaultValue: e
};
}
function rn(e) {
const t = k(e), n = k(() => ht(t()));
return n.toArray = () => {
const r = n();
return Array.isArray(r) ? r : r != null ? [r] : [];
}, n;
}
let ir;
function an() {
if (this.sources && this.state)
if (this.state === oe) Ce(this);
else {
const e = R;
R = null, le(() => qe(this), !1), R = e;
}
if (T) {
const e = this.observers ? this.observers.length : 0;
T.sources ? (T.sources.push(this), T.sourceSlots.push(e)) : (T.sources = [this], T.sourceSlots = [e]), this.observers ? (this.observers.push(T), this.observerSlots.push(T.sources.length - 1)) : (this.observers = [T], this.observerSlots = [T.sources.length - 1]);
}
return this.value;
}
function on(e, t, n) {
let r = e.value;
return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && le(() => {
for (let a = 0; a < e.observers.length; a += 1) {
const i = e.observers[a], o = at && at.running;
o && at.disposed.has(i), (o ? !i.tState : !i.state) && (i.pure ? R.push(i) : $.push(i), i.observers && ln(i)), o || (i.state = oe);
}
if (R.length > 1e6)
throw R = [], new Error();
}, !1)), t;
}
function Ce(e) {
if (!e.fn) return;
Le(e);
const t = Qe;
or(
e,
e.value,
t
);
}
function or(e, t, n) {
let r;
const a = P, i = T;
T = P = e;
try {
r = e.fn(t);
} catch (o) {
return e.pure && (e.state = oe, e.owned && e.owned.forEach(Le), e.owned = null), e.updatedAt = n + 1, Me(o);
} finally {
T = i, P = a;
}
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? on(e, r) : e.value = r, e.updatedAt = n);
}
function Ne(e, t, n, r = oe, a) {
const i = {
fn: e,
state: r,
updatedAt: null,
owned: null,
sources: null,
sourceSlots: null,
cleanups: null,
value: t,
owner: P,
context: P ? P.context : null,
pure: n
};
return P === null || P !== tn && (P.owned ? P.owned.push(i) : P.owned = [i]), i;
}
function je(e) {
if (e.state === 0) return;
if (e.state === Ge) return qe(e);
if (e.suspense && G(e.suspense.inFallback)) return e.suspense.effects.push(e);
const t = [e];
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < Qe); )
e.state && t.push(e);
for (let n = t.length - 1; n >= 0; n--)
if (e = t[n], e.state === oe)
Ce(e);
else if (e.state === Ge) {
const r = R;
R = null, le(() => qe(e, t[0]), !1), R = r;
}
}
function le(e, t) {
if (R) return e();
let n = !1;
t || (R = []), $ ? n = !0 : $ = [], Qe++;
try {
const r = e();
return sr(n), r;
} catch (r) {
n || ($ = null), R = null, Me(r);
}
}
function sr(e) {
if (R && (sn(R), R = null), e) return;
const t = $;
$ = null, t.length && le(() => en(t), !1);
}
function sn(e) {
for (let t = 0; t < e.length; t++) je(e[t]);
}
function lr(e) {
let t, n = 0;
for (t = 0; t < e.length; t++) {
const r = e[t];
r.user ? e[n++] = r : je(r);
}
for (t = 0; t < n; t++) je(e[t]);
}
function qe(e, t) {
e.state = 0;
for (let n = 0; n < e.sources.length; n += 1) {
const r = e.sources[n];
if (r.sources) {
const a = r.state;
a === oe ? r !== t && (!r.updatedAt || r.updatedAt < Qe) && je(r) : a === Ge && qe(r, t);
}
}
}
function ln(e) {
for (let t = 0; t < e.observers.length; t += 1) {
const n = e.observers[t];
n.state || (n.state = Ge, n.pure ? R.push(n) : $.push(n), n.observers && ln(n));
}
}
function Le(e) {
let t;
if (e.sources)
for (; e.sources.length; ) {
const n = e.sources.pop(), r = e.sourceSlots.pop(), a = n.observers;
if (a && a.length) {
const i = a.pop(), o = n.observerSlots.pop();
r < a.length && (i.sourceSlots[o] = r, a[r] = i, n.observerSlots[r] = o);
}
}
if (e.tOwned) {
for (t = e.tOwned.length - 1; t >= 0; t--) Le(e.tOwned[t]);
delete e.tOwned;
}
if (e.owned) {
for (t = e.owned.length - 1; t >= 0; t--) Le(e.owned[t]);
e.owned = null;
}
if (e.cleanups) {
for (t = e.cleanups.length - 1; t >= 0; t--) e.cleanups[t]();
e.cleanups = null;
}
e.state = 0;
}
function dt(e) {
return e instanceof Error ? e : new Error(typeof e == "string" ? e : "Unknown error", {
cause: e
});
}
function Ht(e, t, n) {
try {
for (const r of t) r(e);
} catch (r) {
Me(r, n && n.owner || null);
}
}
function Me(e, t = P) {
const n = Ae && t && t.context && t.context[Ae], r = dt(e);
if (!n) throw r;
$ ? $.push({
fn() {
Ht(r, n, t);
},
state: oe
}) : Ht(r, n, t);
}
function ht(e) {
if (typeof e == "function" && !e.length) return ht(e());
if (Array.isArray(e)) {
const t = [];
for (let n = 0; n < e.length; n++) {
const r = ht(e[n]);
Array.isArray(r) ? t.push.apply(t, r) : t.push(r);
}
return t;
}
return e;
}
function cr(e, t) {
return function(r) {
let a;
return D(
() => a = G(() => (P.context = {
...P.context,
[e]: r.value
}, rn(() => r.children))),
void 0
), a;
};
}
const ur = Symbol("fallback");
function Tt(e) {
for (let t = 0; t < e.length; t++) e[t]();
}
function dr(e, t, n = {}) {
let r = [], a = [], i = [], o = 0, s = t.length > 1 ? [] : null;
return be(() => Tt(i)), () => {
let l = e() || [], c = l.length, u, d;
return l[He], G(() => {
let f, w, y, v, S, A, E, I, V;
if (c === 0)
o !== 0 && (Tt(i), i = [], r = [], a = [], o = 0, s && (s = [])), n.fallback && (r = [ur], a[0] = Pe((te) => (i[0] = te, n.fallback())), o = 1);
else if (o === 0) {
for (a = new Array(c), d = 0; d < c; d++)
r[d] = l[d], a[d] = Pe(h);
o = c;
} else {
for (y = new Array(c), v = new Array(c), s && (S = new Array(c)), A = 0, E = Math.min(o, c); A < E && r[A] === l[A]; A++) ;
for (E = o - 1, I = c - 1; E >= A && I >= A && r[E] === l[I]; E--, I--)
y[I] = a[E], v[I] = i[E], s && (S[I] = s[E]);
for (f = /* @__PURE__ */ new Map(), w = new Array(I + 1), d = I; d >= A; d--)
V = l[d], u = f.get(V), w[d] = u === void 0 ? -1 : u, f.set(V, d);
for (u = A; u <= E; u++)
V = r[u], d = f.get(V), d !== void 0 && d !== -1 ? (y[d] = a[u], v[d] = i[u], s && (S[d] = s[u]), d = w[d], f.set(V, d)) : i[u]();
for (d = A; d < c; d++)
d in y ? (a[d] = y[d], i[d] = v[d], s && (s[d] = S[d], s[d](d))) : a[d] = Pe(h);
a = a.slice(0, o = c), r = l.slice(0);
}
return a;
});
function h(f) {
if (i[d] = f, s) {
const [w, y] = z(d);
return s[d] = y, t(l[d], w);
}
return t(l[d]);
}
};
}
function m(e, t) {
return G(() => e(t || {}));
}
function Re() {
return !0;
}
const hr = {
get(e, t, n) {
return t === M ? n : e.get(t);
},
has(e, t) {
return t === M ? !0 : e.has(t);
},
set: Re,
deleteProperty: Re,
getOwnPropertyDescriptor(e, t) {
return {
configurable: !0,
enumerable: !0,
get() {
return e.get(t);
},
set: Re,
deleteProperty: Re
};
},
ownKeys(e) {
return e.keys();
}
};
function it(e) {
return (e = typeof e == "function" ? e() : e) ? e : {};
}
function mr() {
for (let e = 0, t = this.length; e < t; ++e) {
const n = this[e]();
if (n !== void 0) return n;
}
}
function J(...e) {
let t = !1;
for (let o = 0; o < e.length; o++) {
const s = e[o];
t = t || !!s && M in s, e[o] = typeof s == "function" ? (t = !0, k(s)) : s;
}
if (Jn && t)
return new Proxy(
{
get(o) {
for (let s = e.length - 1; s >= 0; s--) {
const l = it(e[s])[o];
if (l !== void 0) return l;
}
},
has(o) {
for (let s = e.length - 1; s >= 0; s--)
if (o in it(e[s])) return !0;
return !1;
},
keys() {
const o = [];
for (let s = 0; s < e.length; s++)
o.push(...Object.keys(it(e[s])));
return [...new Set(o)];
}
},
hr
);
const n = {}, r = /* @__PURE__ */ Object.create(null);
for (let o = e.length - 1; o >= 0; o--) {
const s = e[o];
if (!s) continue;
const l = Object.getOwnPropertyNames(s);
for (let c = l.length - 1; c >= 0; c--) {
const u = l[c];
if (u === "__proto__" || u === "constructor") continue;
const d = Object.getOwnPropertyDescriptor(s, u);
if (!r[u])
r[u] = d.get ? {
enumerable: !0,
configurable: !0,
get: mr.bind(n[u] = [d.get.bind(s)])
} : d.value !== void 0 ? d : void 0;
else {
const h = n[u];
h && (d.get ? h.push(d.get.bind(s)) : d.value !== void 0 && h.push(() => d.value));
}
}
}
const a = {}, i = Object.keys(r);
for (let o = i.length - 1; o >= 0; o--) {
const s = i[o], l = r[s];
l && l.get ? Object.defineProperty(a, s, l) : a[s] = l ? l.value : void 0;
}
return a;
}
const cn = (e) => `Stale read from <${e}>.`;
function tt(e) {
const t = "fallback" in e && {
fallback: () => e.fallback
};
return k(dr(() => e.each, e.children, t || void 0));
}
function q(e) {
const t = e.keyed, n = k(() => e.when, void 0, void 0), r = t ? n : k(n, void 0, {
equals: (a, i) => !a == !i
});
return k(
() => {
const a = r();
if (a) {
const i = e.children;
return typeof i == "function" && i.length > 0 ? G(
() => i(
t ? a : () => {
if (!G(r)) throw cn("Show");
return n();
}
)
) : i;
}
return e.fallback;
},
void 0,
void 0
);
}
function un(e) {
const t = rn(() => e.children), n = k(() => {
const r = t(), a = Array.isArray(r) ? r : [r];
let i = () => {
};
for (let o = 0; o < a.length; o++) {
const s = o, l = a[o], c = i, u = k(
() => c() ? void 0 : l.when,
void 0,
void 0
), d = l.keyed ? u : k(u, void 0, {
equals: (h, f) => !h == !f
});
i = () => c() || (d() ? [s, u, l] : void 0);
}
return i;
});
return k(
() => {
const r = n()();
if (!r) return e.fallback;
const [a, i, o] = r, s = o.children;
return typeof s == "function" && s.length > 0 ? G(
() => s(
o.keyed ? i() : () => {
var c;
if (((c = G(n)()) == null ? void 0 : c[0]) !== a) throw cn("Match");
return i();
}
)
) : s;
},
void 0,
void 0
);
}
function mt(e) {
return e;
}
let Be;
function fr(e) {
let t;
const [n, r] = z(t, void 0);
return Be || (Be = /* @__PURE__ */ new Set()), Be.add(r), be(() => Be.delete(r)), k(
() => {
let a;
if (a = n()) {
const i = e.fallback;
return typeof i == "function" && i.length ? G(() => i(a, () => r())) : i;
}
return tr(() => e.children, r);
},
void 0,
void 0
);
}
function pr(e, t, n) {
let r = n.length, a = t.length, i = r, o = 0, s = 0, l = t[a - 1].nextSibling, c = null;
for (; o < a || s < i; ) {
if (t[o] === n[s]) {
o++, s++;
continue;
}
for (; t[a - 1] === n[i - 1]; )
a--, i--;
if (a === o) {
const u = i < r ? s ? n[s - 1].nextSibling : n[i - s] : l;
for (; s < i; ) e.insertBefore(n[s++], u);
} else if (i === s)
for (; o < a; )
(!c || !c.has(t[o])) && t[o].remove(), o++;
else if (t[o] === n[i - 1] && n[s] === t[a - 1]) {
const u = t[--a].nextSibling;
e.insertBefore(n[s++], t[o++].nextSibling), e.insertBefore(n[--i], u), t[a] = n[i];
} else {
if (!c) {
c = /* @__PURE__ */ new Map();
let d = s;
for (; d < i; ) c.set(n[d], d++);
}
const u = c.get(t[o]);
if (u != null)
if (s < u && u < i) {
let d = o, h = 1, f;
for (; ++d < a && d < i && !((f = c.get(t[d])) == null || f !== u + h); )
h++;
if (h > u - s) {
const w = t[o];
for (; s < u; ) e.insertBefore(n[s++], w);
} else e.replaceChild(n[s++], t[o++]);
} else o++;
else t[o++].remove();
}
}
}
const Lt = "_$DX_DELEGATE";
function b(e, t, n, r) {
let a;
const i = () => {
const s = r ? document.createElementNS("http://www.w3.org/1998/Math/MathML", "template") : document.createElement("template");
return s.innerHTML = e, n ? s.content.firstChild.firstChild : r ? s.firstChild : s.content.firstChild;
}, o = t ? () => G(() => document.importNode(a || (a = i()), !0)) : () => (a || (a = i())).cloneNode(!0);
return o.cloneNode = o, o;
}
function dn(e, t = window.document) {
const n = t[Lt] || (t[Lt] = /* @__PURE__ */ new Set());
for (let r = 0, a = e.length; r < a; r++) {
const i = e[r];
n.has(i) || (n.add(i), t.addEventListener(i, _r));
}
}
function O(e, t, n) {
n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
}
function K(e, t) {
t == null ? e.removeAttribute("class") : e.className = t;
}
function It(e, t, n, r) {
Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
}
function gr(e, t, n) {
return G(() => e(t, n));
}
function _(e, t, n, r) {
if (n !== void 0 && !r && (r = []), typeof t != "function") return Ke(e, t, r, n);
D((a) => Ke(e, t(), a, n), r);
}
function _r(e) {
let t = e.target;
const n = `$$${e.type}`, r = e.target, a = e.currentTarget, i = (l) => Object.defineProperty(e, "target", {
configurable: !0,
value: l
}), o = () => {
const l = t[n];
if (l && !t.disabled) {
const c = t[`${n}Data`];
if (c !== void 0 ? l.call(t, c, e) : l.call(t, e), e.cancelBubble) return;
}
return t.host && typeof t.host != "string" && !t.host._$host && t.contains(e.target) && i(t.host), !0;
}, s = () => {
for (; o() && (t = t._$host || t.parentNode || t.host); ) ;
};
if (Object.defineProperty(e, "currentTarget", {
configurable: !0,
get() {
return t || document;
}
}), e.composedPath) {
const l = e.composedPath();
i(l[0]);
for (let c = 0; c < l.length - 2 && (t = l[c], !!o()); c++) {
if (t._$host) {
t = t._$host, s();
break;
}
if (t.parentNode === a)
break;
}
} else s();
i(r);
}
function Ke(e, t, n, r, a) {
for (; typeof n == "function"; ) n = n();
if (t === n) return n;
const i = typeof t, o = r !== void 0;
if (e = o && n[0] && n[0].parentNode || e, i === "string" || i === "number") {
if (i === "number" && (t = t.toString(), t === n))
return n;
if (o) {
let s = n[0];
s && s.nodeType === 3 ? s.data !== t && (s.data = t) : s = document.createTextNode(t), n = _e(e, n, r, s);
} else
n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
} else if (t == null || i === "boolean")
n = _e(e, n, r);
else {
if (i === "function")
return D(() => {
let s = t();
for (; typeof s == "function"; ) s = s();
n = Ke(e, s, n, r);
}), () => n;
if (Array.isArray(t)) {
const s = [], l = n && Array.isArray(n);
if (ft(s, t, n, a))
return D(() => n = Ke(e, s, n, r, !0)), () => n;
if (s.length === 0) {
if (n = _e(e, n, r), o) return n;
} else l ? n.length === 0 ? Ot(e, s, r) : pr(e, n, s) : (n && _e(e), Ot(e, s));
n = s;
} else if (t.nodeType) {
if (Array.isArray(n)) {
if (o) return n = _e(e, n, r, t);
_e(e, n, null, t);
} else n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
n = t;
}
}
return n;
}
function ft(e, t, n, r) {
let a = !1;
for (let i = 0, o = t.length; i < o; i++) {
let s = t[i], l = n && n[e.length], c;
if (!(s == null || s === !0 || s === !1)) if ((c = typeof s) == "object" && s.nodeType)
e.push(s);
else if (Array.isArray(s))
a = ft(e, s, l) || a;
else if (c === "function")
if (r) {
for (; typeof s == "function"; ) s = s();
a = ft(
e,
Array.isArray(s) ? s : [s],
Array.isArray(l) ? l : [l]
) || a;
} else
e.push(s), a = !0;
else {
const u = String(s);
l && l.nodeType === 3 && l.data === u ? e.push(l) : e.push(document.createTextNode(u));
}
}
return a;
}
function Ot(e, t, n = null) {
for (let r = 0, a = t.length; r < a; r++) e.insertBefore(t[r], n);
}
function _e(e, t, n, r) {
if (n === void 0) return e.textContent = "";
const a = r || document.createTextNode("");
if (t.length) {
let i = !1;
for (let o = t.length - 1; o >= 0; o--) {
const s = t[o];
if (a !== s) {
const l = s.parentNode === e;
!i && !o ? l ? e.replaceChild(a, s) : e.insertBefore(a, n) : l && s.remove();
} else i = !0;
}
} else e.insertBefore(a, n);
return [a];
}
const yr = "http://www.w3.org/2000/svg";
function br(e, t = !1) {
return t ? document.createElementNS(yr, e) : document.createElement(e);
}
function wr(e) {
const { useShadow: t } = e, n = document.createTextNode(""), r = () => e.mount || document.body, a = nr();
let i;
return $e(
() => {
i || (i = rr(a, () => k(() => e.children)));
const o = r();
if (o instanceof HTMLHeadElement) {
const [s, l] = z(!1), c = () => l(!0);
Pe((u) => _(o, () => s() ? u() : i(), null)), be(c);
} else {
const s = br(e.isSVG ? "g" : "div", e.isSVG), l = t && s.attachShadow ? s.attachShadow({
mode: "open"
}) : s;
Object.defineProperty(s, "_$host", {
get() {
return n.parentNode;
},
configurable: !0
}), _(l, i), o.appendChild(s), e.ref && e.ref(s), be(() => o.removeChild(s));
}
},
void 0,
{
render: !0
}
), n;
}
function vr(e) {
return Object.keys(e).reduce((n, r) => {
const a = e[r];
return n[r] = Object.assign({}, a), mn(a.value) && !Ar(a.value) && !Array.isArray(a.value) && (n[r].value = Object.assign({}, a.value)), Array.isArray(a.value) && (n[r].value = a.value.slice(0)), n;
}, {});
}
function xr(e) {
return e ? Object.keys(e).reduce((n, r) => {
const a = e[r];
return n[r] = mn(a) && "value" in a ? a : {
value: a
}, n[r].attribute || (n[r].attribute = Sr(r)), n[r].parse = "parse" in n[r] ? n[r].parse : typeof n[r].value != "string", n;
}, {}) : {};
}
function Cr(e) {
return Object.keys(e).reduce((n, r) => (n[r] = e[r].value, n), {});
}
function Er(e, t) {
const n = vr(t);
return Object.keys(t).forEach((a) => {
const i = n[a], o = e.getAttribute(i.attribute), s = e[a];
o != null && (i.value = i.parse ? hn(o) : o), s != null && (i.value = Array.isArray(s) ? s.slice(0) : s), i.reflect && Ft(e, i.attribute, i.value, !!i.parse), Object.defineProperty(e, a, {
get() {
return i.value;
},
set(l) {
const c = i.value;
i.value = l, i.reflect && Ft(this, i.attribute, i.value, !!i.parse);
for (let u = 0, d = this.__propertyChangedCallbacks.length; u < d; u++)
this.__propertyChangedCallbacks[u](a, l, c);
},
enumerable: !0,
configurable: !0
});
}), n;
}
function hn(e) {
if (e)
try {
return JSON.parse(e);
} catch {
return e;
}
}
function Ft(e, t, n, r) {
if (n == null || n === !1) return e.removeAttribute(t);
let a = r ? JSON.stringify(n) : n;
e.__updating[t] = !0, a === "true" && (a = ""), e.setAttribute(t, a), Promise.resolve().then(() => delete e.__updating[t]);
}
function Sr(e) {
return e.replace(/\.?([A-Z]+)/g, (t, n) => "-" + n.toLowerCase()).replace("_", "-").replace(/^-/, "");
}
function mn(e) {
return e != null && (typeof e == "object" || typeof e == "function");
}
function Ar(e) {
return Object.prototype.toString.call(e) === "[object Function]";
}
function Pr(e) {
return typeof e == "function" && e.toString().indexOf("class") === 0;
}
let ot;
function kr(e, t) {
const n = Object.keys(t);
return class extends e {
static get observedAttributes() {
return n.map((a) => t[a].attribute);
}
constructor() {
super(), this.__initialized = !1, this.__released = !1, this.__releaseCallbacks = [], this.__propertyChangedCallbacks = [], this.__updating = {}, this.props = {};
}
connectedCallback() {
if (this.__initialized) return;
this.__releaseCallbacks = [], this.__propertyChangedCallbacks = [], this.__updating = {}, this.props = Er(this, t);
const a = Cr(this.props), i = this.Component, o = ot;
try {
ot = this, this.__initialized = !0, Pr(i) ? new i(a, {
element: this
}) : i(a, {
element: this
});
} finally {
ot = o;
}
}
async disconnectedCallback() {
if (await Promise.resolve(), this.isConnected) return;
this.__propertyChangedCallbacks.length = 0;
let a = null;
for (; a = this.__releaseCallbacks.pop(); ) a(this);
delete this.__initialized, this.__released = !0;
}
attributeChangedCallback(a, i, o) {
if (this.__initialized && !this.__updating[a] && (a = this.lookupProp(a), a in t)) {
if (o == null && !this[a]) return;
this[a] = t[a].parse ? hn(o) : o;
}
}
lookupProp(a) {
if (t)
return n.find((i) => a === i || a === t[i].attribute);
}
get renderRoot() {
return this.shadowRoot || this.attachShadow({
mode: "open"
});
}
addReleaseCallback(a) {
this.__releaseCallbacks.push(a);
}
addPropertyChangedCallback(a) {
this.__propertyChangedCallbacks.push(a);
}
};
}
function Hr(e, t = {}, n = {}) {
const {
BaseElement: r = HTMLElement,
extension: a,
customElements: i = window.customElements
} = n;
return (o) => {
if (!e) throw new Error("tag is required to register a Component");
let s = i.get(e);
return s ? (s.prototype.Component = o, s) : (s = kr(r, xr(t)), s.prototype.Component = o, s.prototype.registeredTag = e, i.define(e, s, a), s);
};
}
function Tr(e) {
const t = Object.keys(e), n = {};
for (let r = 0; r < t.length; r++) {
const [a, i] = z(e[t[r]]);
Object.defineProperty(n, t[r], {
get: a,
set(o) {
i(() => o);
}
});
}
return n;
}
function Lr(e) {
if (e.assignedSlot && e.assignedSlot._$owner) return e.assignedSlot._$owner;
let t = e.parentNode;
for (; t && !t._$owner && !(t.assignedSlot && t.assignedSlot._$owner); )
t = t.parentNode;
return t && t.assignedSlot ? t.assignedSlot._$owner : e._$owner;
}
function Ir(e) {
return (t, n) => {
const { element: r } = n;
return Pe((a) => {
const i = Tr(t);
r.addPropertyChangedCallback((s, l) => i[s] = l), r.addReleaseCallback(() => {
r.renderRoot.textContent = "", a();
});
const o = e(i, n);
return _(r.renderRoot, o);
}, Lr(r));
};
}
function fn(e, t, n) {
return arguments.length === 2 && (n = t, t = {}), Hr(e, t)(Ir(n));
}
const pn = '*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:Poppins,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.right-0{right:0}.top-0{top:0}.top-\\[5vh\\]{top:5vh}.z-\\[2147483646\\]{z-index:2147483646}.z-\\[2147483647\\]{z-index:2147483647}.float-right{float:right}.m-0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-bottom:auto;margin-top:auto}.mb-4{margin-bottom:calc(var(--srem)*1)}.ml-5{margin-left:calc(var(--srem)*1.25)}.mt-1{margin-top:calc(var(--srem)*.25)}.mt-3{margin-top:calc(var(--srem)*.75)}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.h-10{height:calc(var(--srem)*2.5)}.max-h-\\[95vh\\]{max-height:95vh}.max-h-\\[calc\\(70vh-2rem\\)\\]{max-height:calc(70vh - 2rem)}.w-auto{width:auto}.w-full{width:100%}.min-w-\\[100px\\]{min-width:100px}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.-translate-y-16{--tw-translate-y:calc(var(--srem)*4*-1)}.-translate-y-16,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.gap-1{gap:calc(var(--srem)*.25)}.gap-4{gap:calc(var(--srem)*1)}.gap-6{gap:calc(var(--srem)*1.5)}.gap-9{gap:calc(var(--srem)*2.25)}.self-center{align-self:center}.self-baseline{align-self:baseline}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.rounded-3xl{border-radius:calc(var(--srem)*1.5)}.rounded-full{border-radius:9999px}.rounded-b-xl{border-bottom-left-radius:calc(var(--srem)*.75);border-bottom-right-radius:calc(var(--srem)*.75)}.border{border-width:1px}.border-0{border-width:0}.border-none{border-style:none}.bg-black\\/50{background-color:#00000080}.bg-sp-primary-blue{--tw-bg-opacity:1;background-color:rgb(86 102 240/var(--tw-bg-opacity,1))}.bg-sp-primary-pink{--tw-bg-opacity:1;background-color:rgb(249 220 222/var(--tw-bg-opacity,1))}.bg-sp-white-1{--tw-bg-opacity:1;background-color:rgb(246 247 251/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-0{padding:0}.p-1{padding:calc(var(--srem)*.25)}.p-2{padding:calc(var(--srem)*.5)}.p-4{padding:calc(var(--srem)*1)}.px-1{padding-left:calc(var(--srem)*.25);padding-right:calc(var(--srem)*.25)}.px-20{padding-left:calc(var(--srem)*5);padding-right:calc(var(--srem)*5)}.px-4{padding-left:calc(var(--srem)*1);padding-right:calc(var(--srem)*1)}.py-2{padding-bottom:calc(var(--srem)*.5);padding-top:calc(var(--srem)*.5)}.py-2\\.5{padding-bottom:calc(var(--srem)*.625);padding-top:calc(var(--srem)*.625)}.py-4{padding-bottom:calc(var(--srem)*1);padding-top:calc(var(--srem)*1)}.pb-0{padding-bottom:0}.pb-16{padding-bottom:calc(var(--srem)*4)}.pb-3{padding-bottom:calc(var(--srem)*.75)}.pt-6{padding-top:calc(var(--srem)*1.5)}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-poppins{font-family:Poppins}.font-sans{font-family:Poppins,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text{font-size:calc(var(--srem)*1)}.text-2xs{font-size:calc(var(--srem)*.7);line-height:calc(var(--srem)*1)}.text-\\[11px\\]{font-size:11px}.text-\\[19px\\]{font-size:19px}.text-sm{font-size:calc(var(--srem)*.875);line-height:calc(var(--srem)*1.25)}.text-xs{font-size:calc(var(--srem)*.75);line-height:calc(var(--srem)*1)}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.lowercase{text-transform:lowercase}.leading-4{line-height:calc(var(--srem)*1)}.leading-6{line-height:calc(var(--srem)*1.5)}.leading-8{line-height:calc(var(--srem)*2)}.leading-\\[21px\\]{line-height:21px}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-sp-light-gray-1{--tw-text-opacity:1;color:rgb(117 121 135/var(--tw-text-opacity,1))}.text-sp-light-gray-2{--tw-text-opacity:1;color:rgb(166 169 178/var(--tw-text-opacity,1))}.text-sp-primary-gray{--tw-text-opacity:1;color:rgb(74 77 90/var(--tw-text-opacity,1))}.text-sp-white-2{--tw-text-opacity:1;color:rgb(209 211 216/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-none{transition-property:none}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}:host,:root{--srem:14px;--sp-primary-gray:#4a4d5a;--sp-primary-blue:#5666f0;--sp-light-gray-1:#757987;--bg-white:#fff;--bg-transparent:transparent;--bg-gradient-logo:linear-gradient(90deg,#fae0e6 27.08%,#bbe4ff);--sp-white-1:#f6f7fb}.hover\\:bg-sp-blue-1:hover{--tw-bg-opacity:1;background-color:rgb(70 74 229/var(--tw-bg-opacity,1))}.hover\\:bg-sp-pink-1:hover{--tw-bg-opacity:1;background-color:rgb(251 210 212/var(--tw-bg-opacity,1))}.hover\\:text-sp-primary-blue:hover{--tw-text-opacity:1;color:rgb(86 102 240/var(--tw-text-opacity,1))}@media (min-width:361px){.min-\\[361px\\]\\:w-auto{width:auto}}@media (min-width:450px){.min-\\[450px\\]\\:max-w-sp-modal{max-width:min(80vw,375px)}}';
var pt = function(e, t) {
return pt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
n.__proto__ = r;
} || function(n, r) {
for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (n[a] = r[a]);
}, pt(e, t);
};
function ee(e, t) {
if (typeof t != "function" && t !== null)
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
pt(e, t);
function n() {
this.constructor = e;
}
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
}
var p = function() {
return p = Object.assign || function(t) {
for (var n, r = 1, a = arguments.length; r < a; r++) {
n = arguments[r];
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
}
return t;
}, p.apply(this, arguments);
};
function Or(e, t) {
var n = {};
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
if (e != null && typeof Object.getOwnPropertySymbols == "function")
for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
t.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (n[r[a]] = e[r[a]]);
return n;
}
function j(e, t, n) {
if (n || arguments.length === 2) for (var r = 0, a = t.length, i; r < a; r++)
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
return e.concat(i || Array.prototype.slice.call(t));
}
function U(e, t) {
var n = t && t.cache ? t.cache : Br, r = t && t.serializer ? t.serializer : Rr, a = t && t.strategy ? t.strategy : Mr;
return a(e, {
cache: n,
serializer: r
});
}
function Fr(e) {
return e == null || typeof e == "number" || typeof e == "boolean";
}
function Nr(e, t, n, r) {
var a = Fr(r) ? r : n(r), i = t.get(a);
return typeof i > "u" && (i = e.call(this, r), t.set(a, i)), i;
}
function gn(e, t, n) {
var r = Array.prototype.slice.call(arguments, 3), a = n(r), i = t.get(a);
return typeof i > "u" && (i = e.apply(this, r), t.set(a, i)), i;
}
function _n(e, t, n, r, a) {
return n.bind(t, e, r, a);
}
function Mr(e, t) {
var n = e.length === 1 ? Nr : gn;
return _n(e, this, n, t.cache.create(), t.serializer);
}
function Vr(e, t) {
return _n(e, this, gn, t.cache.create(), t.serializer);
}
var Rr = function() {
return JSON.stringify(arguments);
};
function Et() {
this.cache = /* @__PURE__ */ Object.create(null);
}
Et.prototype.get = function(e) {
return this.cache[e];
};
Et.prototype.set = function(e, t) {
this.cache[e] = t;
};
var Br = {
create: function() {
return new Et();
}
}, Z = {
variadic: Vr
}, x;
(function(e) {
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
})(x || (x = {}));
var L;
(function(e) {
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
})(L || (L = {}));
var we;
(function(e) {
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
})(we || (we = {}));
function Nt(e) {
return e.type === L.literal;
}
function Wr(e) {
return e.type === L.argument;
}
function yn(e) {
return e.type === L.number;
}
function bn(e) {
return e.type === L.date;
}
function wn(e) {
return e.type === L.time;
}
function vn(e) {
return e.type === L.select;
}
function xn(e) {
return e.type === L.plural;
}
function Ur(e) {
return e.type === L.pound;
}
function Cn(e) {
return e.type === L.tag;
}
function En(e) {
return !!(e && typeof e == "object" && e.type === we.number);
}
function gt(e) {
return !!(e && typeof e == "object" && e.type === we.dateTime);
}
var Sn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
function Yr(e) {
var t = {};
return e.replace(Zr, function(n) {
var r = n.length;
switch (n[0]) {
// Era
case "G":
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
break;
// Year
case "y":
t.year = r === 2 ? "2-digit" : "numeric";
break;
case "Y":
case "u":
case "U":
case "r":
throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
// Quarter
case "q":
case "Q":
throw new RangeError("`q/Q` (quarter) patterns are not supported");
// Month
case "M":
case "L":
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
break;
// Week
case "w":
case "W":
throw new RangeError("`w/W` (week) patterns are not supported");
case "d":
t.day = ["numeric", "2-digit"][r - 1];
break;
case "D":
case "F":
case "g":
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
// Weekday
case "E":
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
break;
case "e":
if (r < 4)
throw new RangeError("`e..eee` (weekday) patterns are not supported");
t.weekday = ["short", "long", "narrow", "short"][r - 4];
break;
case "c":
if (r < 4)
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
t.weekday = ["short", "long", "narrow", "short"][r - 4];
break;
// Period
case "a":
t.hour12 = !0;
break;
case "b":
// am, pm, noon, midnight
case "B":
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
// Hour
case "h":
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
break;
case "H":
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
break;
case "K":
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
break;
case "k":
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
break;
case "j":
case "J":
case "C":
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
// Minute
case "m":
t.minute = ["numeric", "2-digit"][r - 1];
break;
// Second
case "s":
t.second = ["numeric", "2-digit"][r - 1];
break;
case "S":
case "A":
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
// Zone
case "z":
t.timeZoneName = r < 4 ? "short" : "long";
break;
case "Z":
// 1..3, 4, 5: The ISO8601 varios formats
case "O":
// 1, 4: milliseconds in day short, long
case "v":
// 1, 4: generic non-location format
case "V":
// 1, 2, 3, 4: time zone ID or city
case "X":
// 1, 2, 3, 4: The ISO8601 varios formats
case "x":
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
}
return "";
}), t;
}
var zr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
function Dr(e) {
if (e.length === 0)
throw new Error("Number skeleton cannot be empty");
for (var t = e.split(zr).filter(function(h) {
return h.length > 0;
}), n = [], r = 0, a = t; r < a.length; r++) {
var i = a[r], o = i.split("/");
if (o.length === 0)
throw new Error("Invalid number skeleton");
for (var s = o[0], l = o.slice(1), c = 0, u = l; c < u.length; c++) {
var d = u[c];
if (d.length === 0)
throw new Error("Invalid number skeleton");
}
n.push({ stem: s, options: l });
}
return n;
}
function Gr(e) {
return e.replace(/^(.*?)-/, "");
}
var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, An = /^(@+)?(\+|#+)?[rs]?$/g, jr = /(\*)(0+)|(#+)(0+)|(0+)/g, Pn = /^(0+)$/;
function Vt(e) {
var t = {};
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(An, function(n, r, a) {
return typeof a != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : a === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof a == "string" ? a.length : 0)), "";
}), t;
}
function kn(e) {
switch (e) {
case "sign-auto":
return {
signDisplay: "auto"
};
case "sign-accounting":
case "()":
return {
currencySign: "accounting"
};
case "sign-always":
case "+!":
return {
signDisplay: "always"
};
case "sign-accounting-always":
case "()!":
return {
signDisplay: "always",
currencySign: "accounting"
};
case "sign-except-zero":
case "+?":
return {
signDisplay: "exceptZero"
};
case "sign-accounting-except-zero":
case "()?":
return {
signDisplay: "exceptZero",
currencySign: "accounting"
};
case "sign-never":
case "+_":
return {
signDisplay: "never"
};
}
}
function qr(e) {
var t;
if (e[0] === "E" && e[1] === "E" ? (t = {
notation: "engineering"
}, e = e.slice(2)) : e[0] === "E" && (t = {
notation: "scientific"
}, e = e.slice(1)), t) {
var n = e.slice(0, 2);
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Pn.test(e))
throw new Error("Malformed concise eng/scientific notation");
t.minimumIntegerDigits = e.length;
}
return t;
}
function Rt(e) {
var t = {}, n = kn(e);
return n || t;
}
function Kr(e) {
for (var t = {}, n = 0, r = e; n < r.length; n++) {
var a = r[n];
switch (a.stem) {
case "percent":
case "%":
t.style = "percent";
continue;
case "%x100":
t.style = "percent", t.scale = 100;
continue;
case "currency":
t.style = "currency", t.currency = a.options[0];
continue;
case "group-off":
case ",_":
t.useGrouping = !1;
continue;
case "precision-integer":
case ".":
t.maximumFractionDigits = 0;
continue;
case "measure-unit":
case "unit":
t.style = "unit", t.unit = Gr(a.options[0]);
continue;
case "compact-short":
case "K":
t.notation = "compact", t.compactDisplay = "short";
continue;
case "compact-long":
case "KK":
t.notation = "compact", t.compactDisplay = "long";
continue;
case "scientific":
t = p(p(p({}, t), { notation: "scientific" }), a.options.reduce(function(l, c) {
return p(p({}, l), Rt(c));
}, {}));
continue;
case "engineering":
t = p(p(p({}, t), { notation: "engineering" }), a.options.reduce(function(l, c) {
return p(p({}, l), Rt(c));
}, {}));
continue;
case "notation-simple":
t.notation = "standard";
continue;
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
case "unit-width-narrow":
t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
continue;
case "unit-width-short":
t.currencyDisplay = "code", t.unitDisplay = "short";
continue;
case "unit-width-full-name":
t.currencyDisplay = "name", t.unitDisplay = "long";
continue;
case "unit-width-iso-code":
t.currencyDisplay = "symbol";
continue;
case "scale":
t.scale = parseFloat(a.options[0]);
continue;
case "rounding-mode-floor":
t.roundingMode = "floor";
continue;
case "rounding-mode-ceiling":
t.roundingMode = "ceil";
continue;
case "rounding-mode-down":
t.roundingMode = "trunc";
continue;
case "rounding-mode-up":
t.roundingMode = "expand";
continue;
case "rounding-mode-half-even":
t.roundingMode = "halfEven";
continue;
case "rounding-mode-half-down":
t.roundingMode = "halfTrunc";
continue;
case "rounding-mode-half-up":
t.roundingMode = "halfExpand";
continue;
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
case "integer-width":
if (a.options.length > 1)
throw new RangeError("integer-width stems only accept a single optional option");
a.options[0].replace(jr, function(l, c, u, d, h, f) {
if (c)
t.minimumIntegerDigits = u.length;
else {
if (d && h)
throw new Error("We currently do not support maximum integer digits");
if (f)
throw new Error("We currently do not support exact integer digits");
}
return "";
});
continue;
}
if (Pn.test(a.stem)) {
t.minimumIntegerDigits = a.stem.length;
continue;
}
if (Mt.test(a.stem)) {
if (a.options.length > 1)
throw new RangeError("Fraction-precision stems only accept a single optional option");
a.stem.replace(Mt, function(l, c, u, d, h, f) {
return u === "*" ? t.minimumFractionDigits = c.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : h && f ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + f.length) : (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length), "";
});
var i = a.options[0];
i === "w" ? t = p(p({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = p(p({}, t), Vt(i)));
continue;
}
if (An.test(a.stem)) {
t = p(p({}, t), Vt(a.stem));
continue;
}
var o = kn(a.stem);
o && (t = p(p({}, t), o));
var s = qr(a.stem);
s && (t = p(p({}, t), s));
}
return t;
}
var We = {
"001": [
"H",
"h"
],
419: [
"h",
"H",
"hB",
"hb"
],
AC: [
"H",
"h",
"hb",
"hB"
],
AD: [
"H",
"hB"
],
AE: [
"h",
"hB",
"hb",
"H"
],
AF: [
"H",
"hb",
"hB",
"h"
],
AG: [
"h",
"hb",
"H",
"hB"
],
AI: [
"H",
"h",
"hb",
"hB"
],
AL: [
"h",
"H",
"hB"
],
AM: [
"H",
"hB"
],
AO: [
"H",
"hB"
],
AR: [
"h",
"H",
"hB",
"hb"
],
AS: [
"h",
"H"
],
AT: [
"H",
"hB"
],
AU: [
"h",
"hb",
"H",
"hB"
],
AW: [
"H",
"hB"
],
AX: [
"H"
],
AZ: [
"H",
"hB",
"h"
],
BA: [
"H",
"hB",
"h"
],
BB: [
"h",
"hb",
"H",
"hB"
],
BD: [
"h",
"hB",
"H"
],
BE: [
"H",
"hB"
],
BF: [
"H",
"hB"
],
BG: [
"H",
"hB",
"h"
],
BH: [
"h",
"hB",
"hb",
"H"
],
BI: [
"H",
"h"
],
BJ: [
"H",
"hB"
],
BL: [
"H",
"hB"
],
BM: [
"h",
"hb",
"H",
"hB"
],
BN: [
"hb",
"hB",
"h",
"H"
],
BO: [
"h",
"H",
"hB",
"hb"
],
BQ: [
"H"
],
BR: [
"H",
"hB"
],
BS: [
"h",
"hb",
"H",
"hB"
],
BT: [
"h",
"H"
],
BW: [
"H",
"h",
"hb",
"hB"
],
BY: [
"H",
"h"
],
BZ: [
"H",
"h",
"hb",
"hB"
],
CA: [
"h",
"hb",
"H",
"hB"
],
CC: [
"H",
"h",
"hb",
"hB"
],
CD: [
"hB",
"H"
],
CF: [
"H",
"h",
"hB"
],
CG: [
"H",
"hB"
],
CH: [
"H",
"hB",
"h"
],
CI: [
"H",
"hB"
],
CK: [
"H",
"h",
"hb",
"hB"
],
CL: [
"h",
"H",
"hB",
"hb"
],
CM: [
"H",
"h",
"hB"
],
CN: [
"H",
"hB",
"hb",
"h"
],
CO: [
"h",
"H",
"hB",
"hb"
],
CP: [
"H"
],
CR: [
"h",
"H",
"hB",
"hb"
],
CU: [
"h",
"H",
"hB",
"hb"
],
CV: [
"H",
"hB"
],
CW: [
"H",
"hB"
],
CX: [
"H",
"h",
"hb",
"hB"
],
CY: [
"h",
"H",
"hb",
"hB"
],
CZ: [
"H"
],
DE: [
"H",
"hB"
],
DG: [
"H",
"h",
"hb",
"hB"
],
DJ: [
"h",
"H"
],
DK: [
"H"
],
DM: [
"h",
"hb",
"H",
"hB"
],
DO: [
"h",
"H",
"hB",
"hb"
],
DZ: [
"h",
"hB",
"hb",
"H"
],
EA: [
"H",
"h",
"hB",
"hb"
],
EC: [
"h",
"H",
"hB",
"hb"
],
EE: [
"H",
"hB"
],
EG: [
"h",
"hB",
"hb",
"H"
],
EH: [
"h",
"hB",
"hb",
"H"
],
ER: [
"h",
"H"
],
ES: [
"H",
"hB",
"h",
"hb"
],
ET: [
"hB",
"hb",
"h",
"H"
],
FI: [
"H"
],
FJ: [
"h",
"hb",
"H",
"hB"
],
FK: [
"H",
"h",
"hb",
"hB"
],
FM: [
"h",
"hb",
"H",
"hB"
],
FO: [
"H",
"h"
],
FR: [
"H",
"hB"
],
GA: [
"H",
"hB"
],
GB: [
"H",
"h",
"hb",
"hB"
],
GD: [
"h",
"hb",
"H",
"hB"
],
GE: [
"H",
"hB",
"h"
],
GF: [
"H",
"hB"
],
GG: [
"H",
"h",
"hb",
"hB"
],
GH: [
"h",
"H"
],
GI: [
"H",
"h",
"hb",
"hB"
],
GL: [
"H",
"h"
],
GM: [
"h",
"hb",
"H",
"hB"
],
GN: [
"H",
"hB"
],
GP: [
"H",
"hB"
],
GQ: [
"H",
"hB",
"h",
"hb"
],
GR: [
"h",
"H",
"hb",
"hB"
],
GT: [
"h",
"H",
"hB",
"hb"
],
GU: [
"h",
"hb",
"H",
"hB"
],
GW: [
"H",
"hB"
],
GY: [
"h",
"hb",
"H",
"hB"
],
HK: [
"h",
"hB",
"hb",
"H"
],
HN: [
"h",
"H",
"hB",
"hb"
],
HR: [
"H",
"hB"
],
HU: [
"H",
"h"
],
IC: [
"H",
"h",
"hB",
"hb"
],
ID: [
"H"
],
IE: [
"H",
"h",
"hb",
"hB"
],
IL: [
"H",
"hB"
],
IM: [
"H",
"h",
"hb",
"hB"
],
IN: [
"h",
"H"
],
IO: [
"H",
"h",
"hb",
"hB"
],
IQ: [
"h",
"hB",
"hb",
"H"
],
IR: [
"hB",
"H"
],
IS: [
"H"
],
IT: [
"H",
"hB"
],
JE: [
"H",
"h",
"hb",
"hB"
],
JM: [
"h",
"hb",
"H",
"hB"
],
JO: [
"h",
"hB",
"hb",
"H"
],
JP: [
"H",
"K",
"h"
],
KE: [
"hB",
"hb",
"H",
"h"
],
KG: [
"H",
"h",
"hB",
"hb"
],
KH: [
"hB",
"h",
"H",
"hb"
],
KI: [
"h",
"hb",
"H",
"hB"
],
KM: [
"H",
"h",
"hB",
"hb"
],
KN: [
"h",
"hb",
"H",
"hB"
],
KP: [
"h",
"H",
"hB",
"hb"
],
KR: [
"h",
"H",
"hB",
"hb"
],
KW: [
"h",
"hB",
"hb",
"H"
],
KY: [
"h",
"hb",
"H",
"hB"
],
KZ: [
"H",
"hB"
],
LA: [
"H",
"hb",
"hB",
"h"
],
LB: [
"h",
"hB",
"hb",
"H"
],
LC: [
"h",
"hb",
"H",
"hB"
],
LI: [
"H",
"hB",
"h"
],
LK: [
"H",
"h",
"hB",
"hb"
],
LR: [
"h",
"hb",
"H",
"hB"
],
LS: [
"h",
"H"
],
LT: [
"H",
"h",
"hb",
"hB"
],
LU: [
"H",
"h",
"hB"
],
LV: [
"H",
"hB",
"hb",
"h"
],
LY: [
"h",
"hB",
"hb",
"H"
],
MA: [
"H",
"h",
"hB",
"hb"
],
MC: [
"H",
"hB"
],
MD: [
"H",
"hB"
],
ME: [
"H",
"hB",
"h"
],
MF: [
"H",
"hB"
],
MG: [
"H",
"h"
],
MH: [
"h",
"hb",
"H",
"hB"
],
MK: [
"H",
"h",
"hb",
"hB"
],
ML: [
"H"
],
MM: [
"hB",
"hb",
"H",
"h"
],
MN: [
"H",
"h",
"hb",
"hB"
],
MO: [
"h",
"hB",
"hb",
"H"
],
MP: [
"h",
"hb",
"H",
"hB"
],
MQ: [
"H",
"hB"
],
MR: [
"h",
"hB",
"hb",
"H"
],
MS: [
"H",
"h",
"hb",
"hB"
],
MT: [
"H",
"h"
],
MU: [
"H",
"h"
],
MV: [
"H",
"h"
],
MW: [
"h",
"hb",
"H",
"hB"
],
MX: [
"h",
"H",
"hB",
"hb"
],
MY: [
"hb",
"hB",
"h",
"H"
],
MZ: [
"H",
"hB"
],
NA: [
"h",
"H",
"hB",
"hb"
],
NC: [
"H",
"hB"
],
NE: [
"H"
],
NF: [
"H",
"h",
"hb",
"hB"
],
NG: [
"H",
"h",
"hb",
"hB"
],
NI: [
"h",
"H",
"hB",
"hb"
],
NL: [
"H",
"hB"
],
NO: [
"H",
"h"
],
NP: [
"H",
"h",
"hB"
],
NR: [
"H",
"h",
"hb",
"hB"
],
NU: [
"H",
"h",
"hb",
"hB"
],
NZ: [
"h",
"hb",
"H",
"hB"
],
OM: [
"h",
"hB",
"hb",
"H"
],
PA: [
"h",
"H",
"hB",
"hb"
],
PE: [
"h",
"H",
"hB",
"hb"
],
PF: [
"H",
"h",
"hB"
],
PG: [
"h",
"H"
],
PH: [
"h",
"hB",
"hb",
"H"
],
PK: [
"h",
"hB",
"H"
],
PL: [
"H",
"h"
],
PM: [
"H",
"hB"
],
PN: [
"H",
"h",
"hb",
"hB"
],
PR: [
"h",
"H",
"hB",
"hb"
],
PS: [
"h",
"hB",
"hb",
"H"
],
PT: [
"H",
"hB"
],
PW: [
"h",
"H"
],
PY: [
"h",
"H",
"hB",
"hb"
],
QA: [
"h",
"hB",
"hb",
"H"
],
RE: [
"H",
"hB"
],
RO: [
"H",
"hB"
],
RS: [
"H",
"hB",
"h"
],
RU: [
"H"
],
RW: [
"H",
"h"
],
SA: [
"h",
"hB",
"hb",
"H"
],
SB: [
"h",
"hb",
"H",
"hB"
],
SC: [
"H",
"h",
"hB"
],
SD: [
"h",
"hB",
"hb",
"H"
],
SE: [
"H"
],
SG: [
"h",
"hb",
"H",
"hB"
],
SH: [
"H",
"h",
"hb",
"hB"
],
SI: [
"H",
"hB"
],
SJ: [
"H"
],
SK: [
"H"
],
SL: [
"h",
"hb",
"H",
"hB"
],
SM: [
"H",
"h",
"hB"
],
SN: [
"H",
"h",
"hB"
],
SO: [
"h",
"H"
],
SR: [
"H",
"hB"
],
SS: [
"h",
"hb",
"H",
"hB"
],
ST: [
"H",
"hB"
],
SV: [
"h",
"H",
"hB",
"hb"
],
SX: [
"H",
"h",
"hb",
"hB"
],
SY: [
"h",
"hB",
"hb",
"H"
],
SZ: [
"h",
"hb",
"H",
"hB"
],
TA: [
"H",
"h",
"hb",
"hB"
],
TC: [
"h",
"hb",
"H",
"hB"
],
TD: [
"h",
"H",
"hB"
],
TF: [
"H",
"h",
"hB"
],
TG: [
"H",
"hB"
],
TH: [
"H",
"h"
],
TJ: [
"H",
"h"
],
TL: [
"H",
"hB",
"hb",
"h"
],
TM: [
"H",
"h"
],
TN: [
"h",
"hB",
"hb",
"H"
],
TO: [
"h",
"H"
],
TR: [
"H",
"hB"
],
TT: [
"h",
"hb",
"H",
"hB"
],
TW: [
"hB",
"hb",
"h",
"H"
],
TZ: [
"hB",
"hb",
"H",
"h"
],
UA: [
"H",
"hB",
"h"
],
UG: [
"hB",
"hb",
"H",
"h"
],
UM: [
"h",
"hb",
"H",
"hB"
],
US: [
"h",
"hb",
"H",
"hB"
],
UY: [
"h",
"H",
"hB",
"hb"
],
UZ: [
"H",
"hB",
"h"
],
VA: [
"H",
"h",
"hB"
],
VC: [
"h",
"hb",
"H",
"hB"
],
VE: [
"h",
"H",
"hB",
"hb"
],
VG: [
"h",
"hb",
"H",
"hB"
],
VI: [
"h",
"hb",
"H",
"hB"
],
VN: [
"H",
"h"
],
VU: [
"h",
"H"
],
WF: [
"H",
"hB"
],
WS: [
"h",
"H"
],
XK: [
"H",
"hB",
"h"
],
YE: [
"h",
"hB",
"hb",
"H"
],
YT: [
"H",
"hB"
],
ZA: [
"H",
"h",
"hb",
"hB"
],
ZM: [
"h",
"hb",
"H",
"hB"
],
ZW: [
"H",
"h"
],
"af-ZA": [
"H",
"h",
"hB",
"hb"
],
"ar-001": [
"h",
"hB",
"hb",
"H"
],
"ca-ES": [
"H",
"h",
"hB"
],
"en-001": [
"h",
"hb",
"H",
"hB"
],
"en-HK": [
"h",
"hb",
"H",
"hB"
],
"en-IL": [
"H",
"h",
"hb",
"hB"
],
"en-MY": [
"h",
"hb",
"H",
"hB"
],
"es-BR": [
"H",
"h",
"hB",
"hb"
],
"es-ES": [
"H",
"h",
"hB",
"hb"
],
"es-GQ": [
"H",
"h",
"hB",
"hb"
],
"fr-CA": [
"H",
"h",
"hB"
],
"gl-ES": [
"H",
"h",
"hB"
],
"gu-IN": [
"hB",
"hb",
"h",
"H"
],
"hi-IN": [
"hB",
"h",
"H"
],
"it-CH": [
"H",
"h",
"hB"
],
"it-IT": [
"H",
"h",
"hB"
],
"kn-IN": [
"hB",
"h",
"H"
],
"ml-IN": [
"hB",
"h",
"H"
],
"mr-IN": [
"hB",
"hb",
"h",
"H"
],
"pa-IN": [
"hB",
"hb",
"h",
"H"
],
"ta-IN": [
"hB",
"h",
"hb",
"H"
],
"te-IN": [
"hB",
"h",
"H"
],
"zu-ZA": [
"H",
"hB",
"hb",
"h"
]
};
function Xr(e, t) {
for (var n = "", r = 0; r < e.length; r++) {
var a = e.charAt(r);
if (a === "j") {
for (var i = 0; r + 1 < e.length && e.charAt(r + 1) === a; )
i++, r++;
var o = 1 + (i & 1), s = i < 2 ? 1 : 3 + (i >> 1), l = "a", c = Jr(t);
for ((c == "H" || c == "k") && (s = 0); s-- > 0; )
n += l;
for (; o-- > 0; )
n = c + n;
} else a === "J" ? n += "H" : n += a;
}
return n;
}
function Jr(e) {
var t = e.hourCycle;
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
e.hourCycles && // @ts-ignore
e.hourCycles.length && (t = e.hourCycles[0]), t)
switch (t) {
case "h24":
return "k";
case "h23":
return "H";
case "h12":
return "h";
case "h11":
return "K";
default:
throw new Error("Invalid hourCycle");
}
var n = e.language, r;
n !== "root" && (r = e.maximize().region);
var a = We[r || ""] || We[n || ""] || We["".concat(n, "-001")] || We["001"];
return a[0];
}
var st, Qr = new RegExp("^".concat(Sn.source, "*")), $r = new RegExp("".concat(Sn.source, "*$"));
function C(e, t) {
return { start: e, end: t };
}
var ea = !!String.prototype.startsWith && "_a".startsWith("a", 1), ta = !!String.fromCodePoint, na = !!Object.fromEntries, ra = !!String.prototype.codePointAt, aa = !!String.prototype.trimStart, ia = !!String.prototype.trimEnd, oa = !!Number.isSafeInteger, sa = oa ? Number.isSafeInteger : function(e) {
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
}, _t = !0;
try {
var la = Tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
_t = ((st = la.exec("a")) === null || st === void 0 ? void 0 : st[0]) === "a";
} catch {
_t = !1;
}
var Bt = ea ? (
// Native
function(t, n, r) {
return t.startsWith(n, r);
}
) : (
// For IE11
function(t, n, r) {
return t.slice(r, r + n.length) === n;
}
), yt = ta ? String.fromCodePoint : (
// IE11
function() {
for (var t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
for (var r = "", a = t.length, i = 0, o; a > i; ) {
if (o = t[i++], o > 1114111)
throw RangeError(o + " is not a valid code point");
r += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
}
return r;
}
), Wt = (
// native
na ? Object.fromEntries : (
// Ponyfill
function(t) {
for (var n = {}, r = 0, a = t; r < a.length; r++) {
var i = a[r], o = i[0], s = i[1];
n[o] = s;
}
return n;
}
)
), Hn = ra ? (
// Native
function(t, n) {
return t.codePointAt(n);
}
) : (
// IE 11
function(t, n) {
var r = t.length;
if (!(n < 0 || n >= r)) {
var a = t.charCodeAt(n), i;
return a < 55296 || a > 56319 || n + 1 === r || (i = t.charCodeAt(n + 1)) < 56320 || i > 57343 ? a : (a - 55296 << 10) + (i - 56320) + 65536;
}
}
), ca = aa ? (
// Native
function(t) {
return t.trimStart();
}
) : (
// Ponyfill
function(t) {
return t.replace(Qr, "");
}
), ua = ia ? (
// Native
function(t) {
return t.trimEnd();
}
) : (
// Ponyfill
function(t) {
return t.replace($r, "");
}
);
function Tn(e, t) {
return new RegExp(e, t);
}
var bt;
if (_t) {
var Ut = Tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
bt = function(t, n) {
var r;
Ut.lastIndex = n;
var a = Ut.exec(t);
return (r = a[1]) !== null && r !== void 0 ? r : "";
};
} else
bt = function(t, n) {
for (var r = []; ; ) {
var a = Hn(t, n);
if (a === void 0 || Ln(a) || fa(a))
break;
r.push(a), n += a >= 65536 ? 2 : 1;
}
return yt.apply(void 0, r);
};
var da = (
/** @class */
function() {
function e(t, n) {
n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
}
return e.prototype.parse = function() {
if (this.offset() !== 0)
throw Error("parser can only be used once");
return this.parseMessage(0, "", !1);
}, e.prototype.parseMessage = function(t, n, r) {
for (var a = []; !this.isEOF(); ) {
var i = this.char();
if (i === 123) {
var o = this.parseArgument(t, r);
if (o.err)
return o;
a.push(o.val);
} else {
if (i === 125 && t > 0)
break;
if (i === 35 && (n === "plural" || n === "selectordinal")) {
var s = this.clonePosition();
this.bump(), a.push({
type: L.pound,
location: C(s, this.clonePosition())
});
} else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
if (r)
break;
return this.error(x.UNMATCHED_CLOSING_TAG, C(this.clonePosition(), this.clonePosition()));
} else if (i === 60 && !this.ignoreTag && wt(this.peek() || 0)) {
var o = this.parseTag(t, n);
if (o.err)
return o;
a.push(o.val);
} else {
var o = this.parseLiteral(t, n);
if (o.err)
return o;
a.push(o.val);
}
}
}
return { val: a, err: null };
}, e.prototype.parseTag = function(t, n) {
var r = this.clonePosition();
this.bump();
var a = this.parseTagName();
if (this.bumpSpace(), this.bumpIf("/>"))
return {
val: {
type: L.literal,
value: "<".concat(a, "/>"),
location: C(r, this.clonePosition())
},
err: null
};
if (this.bumpIf(">")) {
var i = this.parseMessage(t + 1, n, !0);
if (i.err)
return i;
var o = i.val, s = this.clonePosition();
if (this.bumpIf("")) {
if (this.isEOF() || !wt(this.char()))
return this.error(x.INVALID_TAG, C(s, this.clonePosition()));
var l = this.clonePosition(), c = this.parseTagName();
return a !== c ? this.error(x.UNMATCHED_CLOSING_TAG, C(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
val: {
type: L.tag,
value: a,
children: o,
location: C(r, this.clonePosition())
},
err: null
} : this.error(x.INVALID_TAG, C(s, this.clonePosition())));
} else
return this.error(x.UNCLOSED_TAG, C(r, this.clonePosition()));
} else
return this.error(x.INVALID_TAG, C(r, this.clonePosition()));
}, e.prototype.parseTagName = function() {
var t = this.offset();
for (this.bump(); !this.isEOF() && ma(this.char()); )
this.bump();
return this.message.slice(t, this.offset());
}, e.prototype.parseLiteral = function(t, n) {
for (var r = this.clonePosition(), a = ""; ; ) {
var i = this.tryParseQuote(n);
if (i) {
a += i;
continue;
}
var o = this.tryParseUnquoted(t, n);
if (o) {
a += o;
continue;
}
var s = this.tryParseLeftAngleBracket();
if (s) {
a += s;
continue;
}
break;
}
var l = C(r, this.clonePosition());
return {
val: { type: L.literal, value: a, location: l },
err: null
};
}, e.prototype.tryParseLeftAngleBracket = function() {
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
!ha(this.peek() || 0)) ? (this.bump(), "<") : null;
}, e.prototype.tryParseQuote = function(t) {
if (this.isEOF() || this.char() !== 39)
return null;
switch (this.peek()) {
case 39:
return this.bump(), this.bump(), "'";
// '{', '<', '>', '}'
case 123:
case 60:
case 62:
case 125:
break;
case 35:
if (t === "plural" || t === "selectordinal")
break;
return null;
default:
return null;
}
this.bump();
var n = [this.char()];
for (this.bump(); !this.isEOF(); ) {
var r = this.char();
if (r === 39)
if (this.peek() === 39)
n.push(39), this.bump();
else {
this.bump();
break;
}
else
n.push(r);
this.bump();
}
return yt.apply(void 0, n);
}, e.prototype.tryParseUnquoted = function(t, n) {
if (this.isEOF())
return null;
var r = this.char();
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), yt(r));
}, e.prototype.parseArgument = function(t, n) {
var r = this.clonePosition();
if (this.bump(), this.bumpSpace(), this.isEOF())
return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, C(r, this.clonePosition()));
if (this.char() === 125)
return this.bump(), this.error(x.EMPTY_ARGUMENT, C(r, this.clonePosition()));
var a = this.parseIdentifierIfPossible().value;
if (!a)
return this.error(x.MALFORMED_ARGUMENT, C(r, this.clonePosition()));
if (this.bumpSpace(), this.isEOF())
return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, C(r, this.clonePosition()));
switch (this.char()) {
// Simple argument: `{name}`
case 125:
return this.bump(), {
val: {
type: L.argument,
// value does not include the opening and closing braces.
value: a,
location: C(r, this.clonePosition())
},
err: null
};
// Argument with options: `{name, format, ...}`
case 44:
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, C(r, this.clonePosition())) : this.parseArgumentOptions(t, n, a, r);
default:
return this.error(x.MALFORMED_ARGUMENT, C(r, this.clonePosition()));
}
}, e.prototype.parseIdentifierIfPossible = function() {
var t = this.clonePosition(), n = this.offset(), r = bt(this.message, n), a = n + r.length;
this.bumpTo(a);
var i = this.clonePosition(), o = C(t, i);
return { value: r, location: o };
}, e.prototype.parseArgumentOptions = function(t, n, r, a) {
var i, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
switch (s) {
case "":
return this.error(x.EXPECT_ARGUMENT_TYPE, C(o, l));
case "number":
case "date":
case "time": {
this.bumpSpace();
var c = null;
if (this.bumpIf(",")) {
this.bumpSpace();
var u = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
if (d.err)
return d;
var h = ua(d.val);
if (h.length === 0)
return this.error(x.EXPECT_ARGUMENT_STYLE, C(this.clonePosition(), this.clonePosition()));
var f = C(u, this.clonePosition());
c = { style: h, styleLocation: f };
}
var w = this.tryParseArgumentClose(a);
if (w.err)
return w;
var y = C(a, this.clonePosition());
if (c && Bt(c == null ? void 0 : c.style, "::", 0)) {
var v = ca(c.style.slice(2));
if (s === "number") {
var d = this.parseNumberSkeletonFromString(v, c.styleLocation);
return d.err ? d : {
val: { type: L.number, value: r, location: y, style: d.val },
err: null
};
} else {
if (v.length === 0)
return this.error(x.EXPECT_DATE_TIME_SKELETON, y);
var S = v;
this.locale && (S = Xr(v, this.locale));
var h = {
type: we.dateTime,
pattern: S,
location: c.styleLocation,
parsedOptions: this.shouldParseSkeletons ? Yr(S) : {}
}, A = s === "date" ? L.date : L.time;
return {
val: { type: A, value: r, location: y, style: h },
err: null
};
}
}
return {
val: {
type: s === "number" ? L.number : s === "date" ? L.date : L.time,
value: r,
location: y,
style: (i = c == null ? void 0 : c.style) !== null && i !== void 0 ? i : null
},
err: null
};
}
case "plural":
case "selectordinal":
case "select": {
var E = this.clonePosition();
if (this.bumpSpace(), !this.bumpIf(","))
return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, C(E, p({}, E)));
this.bumpSpace();
var I = this.parseIdentifierIfPossible(), V = 0;
if (s !== "select" && I.value === "offset") {
if (!this.bumpIf(":"))
return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, C(this.clonePosition(), this.clonePosition()));
this.bumpSpace();
var d = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
if (d.err)
return d;
this.bumpSpace(), I = this.parseIdentifierIfPossible(), V = d.val;
}
var te = this.tryParsePluralOrSelectOptions(t, s, n, I);
if (te.err)
return te;
var w = this.tryParseArgumentClose(a);
if (w.err)
return w;
var pe = C(a, this.clonePosition());
return s === "select" ? {
val: {
type: L.select,
value: r,
options: Wt(te.val),
location: pe
},
err: null
} : {
val: {
type: L.plural,
value: r,
options: Wt(te.val),
offset: V,
pluralType: s === "plural" ? "cardinal" : "ordinal",
location: pe
},
err: null
};
}
default:
return this.error(x.INVALID_ARGUMENT_TYPE, C(o, l));
}
}, e.prototype.tryParseArgumentClose = function(t) {
return this.isEOF() || this.char() !== 125 ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, C(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
var r = this.char();
switch (r) {
case 39: {
this.bump();
var a = this.clonePosition();
if (!this.bumpUntil("'"))
return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, C(a, this.clonePosition()));
this.bump();
break;
}
case 123: {
t += 1, this.bump();
break;
}
case 125: {
if (t > 0)
t -= 1;
else
return {
val: this.message.slice(n.offset, this.offset()),
err: null
};
break;
}
default:
this.bump();
break;
}
}
return {
val: this.message.slice(n.offset, this.offset()),
err: null
};
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
var r = [];
try {
r = Dr(t);
} catch {
return this.error(x.INVALID_NUMBER_SKELETON, n);
}
return {
val: {
type: we.number,
tokens: r,
location: n,
parsedOptions: this.shouldParseSkeletons ? Kr(r) : {}
},
err: null
};
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, a) {
for (var i, o = !1, s = [], l = /* @__PURE__ */ new Set(), c = a.value, u = a.location; ; ) {
if (c.length === 0) {
var d = this.clonePosition();
if (n !== "select" && this.bumpIf("=")) {
var h = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR, x.INVALID_PLURAL_ARGUMENT_SELECTOR);
if (h.err)
return h;
u = C(d, this.clonePosition()), c = this.message.slice(d.offset, this.offset());
} else
break;
}
if (l.has(c))
return this.error(n === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
c === "other" && (o = !0), this.bumpSpace();
var f = this.clonePosition();
if (!this.bumpIf("{"))
return this.error(n === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, C(this.clonePosition(), this.clonePosition()));
var w = this.parseMessage(t + 1, n, r);
if (w.err)
return w;
var y = this.tryParseArgumentClose(f);
if (y.err)
return y;
s.push([
c,
{
value: w.val,
location: C(f, this.clonePosition())
}
]), l.add(c), this.bumpSpace(), i = this.parseIdentifierIfPossible(), c = i.value, u = i.location;
}
return s.length === 0 ? this.error(n === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, C(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(x.MISSING_OTHER_CLAUSE, C(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
}, e.prototype.tryParseDecimalInteger = function(t, n) {
var r = 1, a = this.clonePosition();
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
for (var i = !1, o = 0; !this.isEOF(); ) {
var s = this.char();
if (s >= 48 && s <= 57)
i = !0, o = o * 10 + (s - 48), this.bump();
else
break;
}
var l = C(a, this.clonePosition());
return i ? (o *= r, sa(o) ? { val: o, err: null } : this.error(n, l)) : this.error(t, l);
}, e.prototype.offset = function() {
return this.position.offset;
}, e.prototype.isEOF = function() {
return this.offset() === this.message.length;
}, e.prototype.clonePosition = function() {
return {
offset: this.position.offset,
line: this.position.line,
column: this.position.column
};
}, e.prototype.char = function() {
var t = this.position.offset;
if (t >= this.message.length)
throw Error("out of bound");
var n = Hn(this.message, t);
if (n === void 0)
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
return n;
}, e.prototype.error = function(t, n) {
return {
val: null,
err: {
kind: t,
message: this.message,
location: n
}
};
}, e.prototype.bump = function() {
if (!this.isEOF()) {
var t = this.char();
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
}
}, e.prototype.bumpIf = function(t) {
if (Bt(this.message, t, this.offset())) {
for (var n = 0; n < t.length; n++)
this.bump();
return !0;
}
return !1;
}, e.prototype.bumpUntil = function(t) {
var n = this.offset(), r = this.message.indexOf(t, n);
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
}, e.prototype.bumpTo = function(t) {
if (this.offset() > t)
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
for (t = Math.min(t, this.message.length); ; ) {
var n = this.offset();
if (n === t)
break;
if (n > t)
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
if (this.bump(), this.isEOF())
break;
}
}, e.prototype.bumpSpace = function() {
for (; !this.isEOF() && Ln(this.char()); )
this.bump();
}, e.prototype.peek = function() {
if (this.isEOF())
return null;
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
return r ?? null;
}, e;
}()
);
function wt(e) {
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
}
function ha(e) {
return wt(e) || e === 47;
}
function ma(e) {
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
}
function Ln(e) {
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
}
function fa(e) {
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
}
function vt(e) {
e.forEach(function(t) {
if (delete t.location, vn(t) || xn(t))
for (var n in t.options)
delete t.options[n].location, vt(t.options[n].value);
else yn(t) && En(t.style) || (bn(t) || wn(t)) && gt(t.style) ? delete t.style.location : Cn(t) && vt(t.children);
});
}
function pa(e, t) {
t === void 0 && (t = {}), t = p({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
var n = new da(e, t).parse();
if (n.err) {
var r = SyntaxError(x[n.err.kind]);
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
}
return t != null && t.captureLocation || vt(n.val), n.val;
}
var ie;
(function(e) {
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
})(ie || (ie = {}));
var ce = (
/** @class */
function(e) {
ee(t, e);
function t(n, r, a) {
var i = e.call(this, n) || this;
return i.code = r, i.originalMessage = a, i;
}
return t.prototype.toString = function() {
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
}, t;
}(Error)
), Zt = (
/** @class */
function(e) {
ee(t, e);
function t(n, r, a, i) {
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(a).join('", "'), '"'), ie.INVALID_VALUE, i) || this;
}
return t;
}(ce)
), ga = (
/** @class */
function(e) {
ee(t, e);
function t(n, r, a) {
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ie.INVALID_VALUE, a) || this;
}
return t;
}(ce)
), _a = (
/** @class */
function(e) {
ee(t, e);
function t(n, r) {
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ie.MISSING_VALUE, r) || this;
}
return t;
}(ce)
), W;
(function(e) {
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
})(W || (W = {}));
function ya(e) {
return e.length < 2 ? e : e.reduce(function(t, n) {
var r = t[t.length - 1];
return !r || r.type !== W.literal || n.type !== W.literal ? t.push(n) : r.value += n.value, t;
}, []);
}
function ba(e) {
return typeof e == "function";
}
function Ze(e, t, n, r, a, i, o) {
if (e.length === 1 && Nt(e[0]))
return [
{
type: W.literal,
value: e[0].value
}
];
for (var s = [], l = 0, c = e; l < c.length; l++) {
var u = c[l];
if (Nt(u)) {
s.push({
type: W.literal,
value: u.value
});
continue;
}
if (Ur(u)) {
typeof i == "number" && s.push({
type: W.literal,
value: n.getNumberFormat(t).format(i)
});
continue;
}
var d = u.value;
if (!(a && d in a))
throw new _a(d, o);
var h = a[d];
if (Wr(u)) {
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), s.push({
type: typeof h == "string" ? W.literal : W.object,
value: h
});
continue;
}
if (bn(u)) {
var f = typeof u.style == "string" ? r.date[u.style] : gt(u.style) ? u.style.parsedOptions : void 0;
s.push({
type: W.literal,
value: n.getDateTimeFormat(t, f).format(h)
});
continue;
}
if (wn(u)) {
var f = typeof u.style == "string" ? r.time[u.style] : gt(u.style) ? u.style.parsedOptions : r.time.medium;
s.push({
type: W.literal,
value: n.getDateTimeFormat(t, f).format(h)
});
continue;
}
if (yn(u)) {
var f = typeof u.style == "string" ? r.number[u.style] : En(u.style) ? u.style.parsedOptions : void 0;
f && f.scale && (h = h * (f.scale || 1)), s.push({
type: W.literal,
value: n.getNumberFormat(t, f).format(h)
});
continue;
}
if (Cn(u)) {
var w = u.children, y = u.value, v = a[y];
if (!ba(v))
throw new ga(y, "function", o);
var S = Ze(w, t, n, r, a, i), A = v(S.map(function(V) {
return V.value;
}));
Array.isArray(A) || (A = [A]), s.push.apply(s, A.map(function(V) {
return {
type: typeof V == "string" ? W.literal : W.object,
value: V
};
}));
}
if (vn(u)) {
var E = u.options[h] || u.options.other;
if (!E)
throw new Zt(u.value, h, Object.keys(u.options), o);
s.push.apply(s, Ze(E.value, t, n, r, a));
continue;
}
if (xn(u)) {
var E = u.options["=".concat(h)];
if (!E) {
if (!Intl.PluralRules)
throw new ce(`Intl.PluralRules is not available in this environment.
Try polyfilling it using "@formatjs/intl-pluralrules"
`, ie.MISSING_INTL_API, o);
var I = n.getPluralRules(t, { type: u.pluralType }).select(h - (u.offset || 0));
E = u.options[I] || u.options.other;
}
if (!E)
throw new Zt(u.value, h, Object.keys(u.options), o);
s.push.apply(s, Ze(E.value, t, n, r, a, h - (u.offset || 0)));
continue;
}
}
return ya(s);
}
function wa(e, t) {
return t ? p(p(p({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
return n[r] = p(p({}, e[r]), t[r] || {}), n;
}, {})) : e;
}
function va(e, t) {
return t ? Object.keys(e).reduce(function(n, r) {
return n[r] = wa(e[r], t[r]), n;
}, p({}, e)) : e;
}
function lt(e) {
return {
create: function() {
return {
get: function(t) {
return e[t];
},
set: function(t, n) {
e[t] = n;
}
};
}
};
}
function xa(e) {
return e === void 0 && (e = {
number: {},
dateTime: {},
pluralRules: {}
}), {
getNumberFormat: U(function() {
for (var t, n = [], r = 0; r < arguments.length; r++)
n[r] = arguments[r];
return new ((t = Intl.NumberFormat).bind.apply(t, j([void 0], n, !1)))();
}, {
cache: lt(e.number),
strategy: Z.variadic
}),
getDateTimeFormat: U(function() {
for (var t, n = [], r = 0; r < arguments.length; r++)
n[r] = arguments[r];
return new ((t = Intl.DateTimeFormat).bind.apply(t, j([void 0], n, !1)))();
}, {
cache: lt(e.dateTime),
strategy: Z.variadic
}),
getPluralRules: U(function() {
for (var t, n = [], r = 0; r < arguments.length; r++)
n[r] = arguments[r];
return new ((t = Intl.PluralRules).bind.apply(t, j([void 0], n, !1)))();
}, {
cache: lt(e.pluralRules),
strategy: Z.variadic
})
};
}
var In = (
/** @class */
function() {
function e(t, n, r, a) {
n === void 0 && (n = e.defaultLocale);
var i = this;
if (this.formatterCache = {
number: {},
dateTime: {},
pluralRules: {}
}, this.format = function(l) {
var c = i.formatToParts(l);
if (c.length === 1)
return c[0].value;
var u = c.reduce(function(d, h) {
return !d.length || h.type !== W.literal || typeof d[d.length - 1] != "string" ? d.push(h.value) : d[d.length - 1] += h.value, d;
}, []);
return u.length <= 1 ? u[0] || "" : u;
}, this.formatToParts = function(l) {
return Ze(i.ast, i.locales, i.formatters, i.formats, l, void 0, i.message);
}, this.resolvedOptions = function() {
var l;
return {
locale: ((l = i.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(i.locales)[0]
};
}, this.getAst = function() {
return i.ast;
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
if (this.message = t, !e.__parse)
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
var o = a || {};
o.formatters;
var s = Or(o, ["formatters"]);
this.ast = e.__parse(t, p(p({}, s), { locale: this.resolvedLocale }));
} else
this.ast = t;
if (!Array.isArray(this.ast))
throw new TypeError("A message must be provided as a String or AST.");
this.formats = va(e.formats, r), this.formatters = a && a.formatters || xa(this.formatterCache);
}
return Object.defineProperty(e, "defaultLocale", {
get: function() {
return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
},
enumerable: !1,
configurable: !0
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
if (!(typeof Intl.Locale > "u")) {
var n = Intl.NumberFormat.supportedLocalesOf(t);
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
}
}, e.__parse = pa, e.formats = {
number: {
integer: {
maximumFractionDigits: 0
},
currency: {
style: "currency"
},
percent: {
style: "percent"
}
},
date: {
short: {
month: "numeric",
day: "numeric",
year: "2-digit"
},
medium: {
month: "short",
day: "numeric",
year: "numeric"
},
long: {
month: "long",
day: "numeric",
year: "numeric"
},
full: {
weekday: "long",
month: "long",
day: "numeric",
year: "numeric"
}
},
time: {
short: {
hour: "numeric",
minute: "numeric"
},
medium: {
hour: "numeric",
minute: "numeric",
second: "numeric"
},
long: {
hour: "numeric",
minute: "numeric",
second: "numeric",
timeZoneName: "short"
},
full: {
hour: "numeric",
minute: "numeric",
second: "numeric",
timeZoneName: "short"
}
}
}, e;
}()
), de;
(function(e) {
e.FORMAT_ERROR = "FORMAT_ERROR", e.UNSUPPORTED_FORMATTER = "UNSUPPORTED_FORMATTER", e.INVALID_CONFIG = "INVALID_CONFIG", e.MISSING_DATA = "MISSING_DATA", e.MISSING_TRANSLATION = "MISSING_TRANSLATION";
})(de || (de = {}));
var Ve = (
/** @class */
function(e) {
ee(t, e);
function t(n, r, a) {
var i = this, o = a ? a instanceof Error ? a : new Error(String(a)) : void 0;
return i = e.call(this, "[@formatjs/intl Error ".concat(n, "] ").concat(r, `
`).concat(o ? `
`.concat(o.message, `
`).concat(o.stack) : "")) || this, i.code = n, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(i, t), i;
}
return t;
}(Error)
), Ca = (
/** @class */
function(e) {
ee(t, e);
function t(n, r) {
return e.call(this, de.UNSUPPORTED_FORMATTER, n, r) || this;
}
return t;
}(Ve)
), Ea = (
/** @class */
function(e) {
ee(t, e);
function t(n, r) {
return e.call(this, de.INVALID_CONFIG, n, r) || this;
}
return t;
}(Ve)
), Yt = (
/** @class */
function(e) {
ee(t, e);
function t(n, r) {
return e.call(this, de.MISSING_DATA, n, r) || this;
}
return t;
}(Ve)
), Q = (
/** @class */
function(e) {
ee(t, e);
function t(n, r, a) {
var i = e.call(this, de.FORMAT_ERROR, "".concat(n, `
Locale: `).concat(r, `
`), a) || this;
return i.locale = r, i;
}
return t;
}(Ve)
), ct = (
/** @class */
function(e) {
ee(t, e);
function t(n, r, a, i) {
var o = e.call(this, "".concat(n, `
MessageID: `).concat(a == null ? void 0 : a.id, `
Default Message: `).concat(a == null ? void 0 : a.defaultMessage, `
Description: `).concat(a == null ? void 0 : a.description, `
`), r, i) || this;
return o.descriptor = a, o.locale = r, o;
}
return t;
}(Q)
), Sa = (
/** @class */
function(e) {
ee(t, e);
function t(n, r) {
var a = e.call(this, de.MISSING_TRANSLATION, 'Missing message: "'.concat(n.id, '" for locale "').concat(r, '", using ').concat(n.defaultMessage ? "default message (".concat(typeof n.defaultMessage == "string" ? n.defaultMessage : n.defaultMessage.map(function(i) {
var o;
return (o = i.value) !== null && o !== void 0 ? o : JSON.stringify(i);
}).join(), ")") : "id", " as fallback.")) || this;
return a.descriptor = n, a;
}
return t;
}(Ve)
);
function fe(e, t, n) {
return n === void 0 && (n = {}), t.reduce(function(r, a) {
return a in e ? r[a] = e[a] : a in n && (r[a] = n[a]), r;
}, {});
}
var Aa = function(e) {
process.env.NODE_ENV !== "production" && console.error(e);
}, Pa = function(e) {
process.env.NODE_ENV !== "production" && console.warn(e);
}, On = {
formats: {},
messages: {},
timeZone: void 0,
defaultLocale: "en",
defaultFormats: {},
fallbackOnEmptyString: !0,
onError: Aa,
onWarn: Pa
};
function Fn() {
return {
dateTime: {},
number: {},
message: {},
relativeTime: {},
pluralRules: {},
list: {},
displayNames: {}
};
}
function ue(e) {
return {
create: function() {
return {
get: function(t) {
return e[t];
},
set: function(t, n) {
e[t] = n;
}
};
}
};
}
function ka(e) {
e === void 0 && (e = Fn());
var t = Intl.RelativeTimeFormat, n = Intl.ListFormat, r = Intl.DisplayNames, a = U(function() {
for (var s, l = [], c = 0; c < arguments.length; c++)
l[c] = arguments[c];
return new ((s = Intl.DateTimeFormat).bind.apply(s, j([void 0], l, !1)))();
}, {
cache: ue(e.dateTime),
strategy: Z.variadic
}), i = U(function() {
for (var s, l = [], c = 0; c < arguments.length; c++)
l[c] = arguments[c];
return new ((s = Intl.NumberFormat).bind.apply(s, j([void 0], l, !1)))();
}, {
cache: ue(e.number),
strategy: Z.variadic
}), o = U(function() {
for (var s, l = [], c = 0; c < arguments.length; c++)
l[c] = arguments[c];
return new ((s = Intl.PluralRules).bind.apply(s, j([void 0], l, !1)))();
}, {
cache: ue(e.pluralRules),
strategy: Z.variadic
});
return {
getDateTimeFormat: a,
getNumberFormat: i,
getMessageFormat: U(function(s, l, c, u) {
return new In(s, l, c, p({ formatters: {
getNumberFormat: i,
getDateTimeFormat: a,
getPluralRules: o
} }, u || {}));
}, {
cache: ue(e.message),
strategy: Z.variadic
}),
getRelativeTimeFormat: U(function() {
for (var s = [], l = 0; l < arguments.length; l++)
s[l] = arguments[l];
return new (t.bind.apply(t, j([void 0], s, !1)))();
}, {
cache: ue(e.relativeTime),
strategy: Z.variadic
}),
getPluralRules: o,
getListFormat: U(function() {
for (var s = [], l = 0; l < arguments.length; l++)
s[l] = arguments[l];
return new (n.bind.apply(n, j([void 0], s, !1)))();
}, {
cache: ue(e.list),
strategy: Z.variadic
}),
getDisplayNames: U(function() {
for (var s = [], l = 0; l < arguments.length; l++)
s[l] = arguments[l];
return new (r.bind.apply(r, j([void 0], s, !1)))();
}, {
cache: ue(e.displayNames),
strategy: Z.variadic
})
};
}
function St(e, t, n, r) {
var a = e && e[t], i;
if (a && (i = a[n]), i)
return i;
r(new Ca("No ".concat(t, " format named: ").concat(n)));
}
function Ha(e, t, n) {
if (n === void 0 && (n = Error), !e)
throw new n(t);
}
U(function() {
for (var e, t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
return new ((e = Intl.NumberFormat).bind.apply(e, j([void 0], t, !1)))();
}, {
strategy: Z.variadic
});
U(function() {
for (var e, t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
return new ((e = Intl.DateTimeFormat).bind.apply(e, j([void 0], t, !1)))();
}, {
strategy: Z.variadic
});
U(function() {
for (var e, t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
return new ((e = Intl.PluralRules).bind.apply(e, j([void 0], t, !1)))();
}, {
strategy: Z.variadic
});
U(function() {
for (var e, t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
return new ((e = Intl.Locale).bind.apply(e, j([void 0], t, !1)))();
}, {
strategy: Z.variadic
});
U(function() {
for (var e, t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
return new ((e = Intl.ListFormat).bind.apply(e, j([void 0], t, !1)))();
}, {
strategy: Z.variadic
});
function Ue(e, t) {
return Object.keys(e).reduce(function(n, r) {
return n[r] = p({ timeZone: t }, e[r]), n;
}, {});
}
function zt(e, t) {
var n = Object.keys(p(p({}, e), t));
return n.reduce(function(r, a) {
return r[a] = p(p({}, e[a] || {}), t[a] || {}), r;
}, {});
}
function Dt(e, t) {
if (!t)
return e;
var n = In.formats;
return p(p(p({}, n), e), { date: zt(Ue(n.date, t), Ue(e.date || {}, t)), time: zt(Ue(n.time, t), Ue(e.time || {}, t)) });
}
var Gt = function(e, t, n, r, a) {
var i = e.locale, o = e.formats, s = e.messages, l = e.defaultLocale, c = e.defaultFormats, u = e.fallbackOnEmptyString, d = e.onError, h = e.timeZone, f = e.defaultRichTextElements;
n === void 0 && (n = { id: "" });
var w = n.id, y = n.defaultMessage;
Ha(!!w, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
var v = String(w), S = (
// In case messages is Object.create(null)
// e.g import('foo.json') from webpack)
// See https://github.com/formatjs/formatjs/issues/1914
s && Object.prototype.hasOwnProperty.call(s, v) && s[v]
);
if (Array.isArray(S) && S.length === 1 && S[0].type === L.literal)
return S[0].value;
if (!r && S && typeof S == "string" && !f)
return S.replace(/'\{(.*?)\}'/gi, "{$1}");
if (r = p(p({}, f), r || {}), o = Dt(o, h), c = Dt(c, h), !S) {
if (u === !1 && S === "")
return S;
if ((!y || i && i.toLowerCase() !== l.toLowerCase()) && d(new Sa(n, i)), y)
try {
var A = t.getMessageFormat(y, l, c, a);
return A.format(r);
} catch (E) {
return d(new ct('Error formatting default message for: "'.concat(v, '", rendering default message verbatim'), i, n, E)), typeof y == "string" ? y : v;
}
return v;
}
try {
var A = t.getMessageFormat(S, i, o, p({ formatters: t }, a || {}));
return A.format(r);
} catch (E) {
d(new ct('Error formatting message: "'.concat(v, '", using ').concat(y ? "default message" : "id", " as fallback."), i, n, E));
}
if (y)
try {
var A = t.getMessageFormat(y, l, c, a);
return A.format(r);
} catch (E) {
d(new ct('Error formatting the default message for: "'.concat(v, '", rendering message verbatim'), i, n, E));
}
return typeof S == "string" ? S : typeof y == "string" ? y : v;
}, Nn = [
"formatMatcher",
"timeZone",
"hour12",
"weekday",
"era",
"year",
"month",
"day",
"hour",
"minute",
"second",
"timeZoneName",
"hourCycle",
"dateStyle",
"timeStyle",
"calendar",
// 'dayPeriod',
"numberingSystem",
"fractionalSecondDigits"
];
function nt(e, t, n, r) {
var a = e.locale, i = e.formats, o = e.onError, s = e.timeZone;
r === void 0 && (r = {});
var l = r.format, c = p(p({}, s && { timeZone: s }), l && St(i, t, l, o)), u = fe(r, Nn, c);
return t === "time" && !u.hour && !u.minute && !u.second && !u.timeStyle && !u.dateStyle && (u = p(p({}, u), { hour: "numeric", minute: "numeric" })), n(a, u);
}
function Ta(e, t) {
for (var n = [], r = 2; r < arguments.length; r++)
n[r - 2] = arguments[r];
var a = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
try {
return nt(e, "date", t, o).format(s);
} catch (l) {
e.onError(new Q("Error formatting date.", e.locale, l));
}
return String(s);
}
function La(e, t) {
for (var n = [], r = 2; r < arguments.length; r++)
n[r - 2] = arguments[r];
var a = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
try {
return nt(e, "time", t, o).format(s);
} catch (l) {
e.onError(new Q("Error formatting time.", e.locale, l));
}
return String(s);
}
function Ia(e, t) {
for (var n = [], r = 2; r < arguments.length; r++)
n[r - 2] = arguments[r];
var a = n[0], i = n[1], o = n[2], s = o === void 0 ? {} : o, l = e.timeZone, c = e.locale, u = e.onError, d = fe(s, Nn, l ? { timeZone: l } : {});
try {
return t(c, d).formatRange(a, i);
} catch (h) {
u(new Q("Error formatting date time range.", e.locale, h));
}
return String(a);
}
function Oa(e, t) {
for (var n = [], r = 2; r < arguments.length; r++)
n[r - 2] = arguments[r];
var a = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
try {
return nt(e, "date", t, o).formatToParts(s);
} catch (l) {
e.onError(new Q("Error formatting date.", e.locale, l));
}
return [];
}
function Fa(e, t) {
for (var n = [], r = 2; r < arguments.length; r++)
n[r - 2] = arguments[r];
var a = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
try {
return nt(e, "time", t, o).formatToParts(s);
} catch (l) {
e.onError(new Q("Error formatting time.", e.locale, l));
}
return [];
}
var Na = [
"style",
"type",
"fallback",
"languageDisplay"
];
function Ma(e, t, n, r) {
var a = e.locale, i = e.onError, o = Intl.DisplayNames;
o || i(new ce(`Intl.DisplayNames is not available in this environment.
Try polyfilling it using "@formatjs/intl-displaynames"
`, ie.MISSING_INTL_API));
var s = fe(r, Na);
try {
return t(a, s).of(n);
} catch (l) {
i(new Q("Error formatting display name.", a, l));
}
}
var Va = [
"type",
"style"
], jt = Date.now();
function Ra(e) {
return "".concat(jt, "_").concat(e, "_").concat(jt);
}
function Ba(e, t, n, r) {
r === void 0 && (r = {});
var a = Mn(e, t, n, r).reduce(function(i, o) {
var s = o.value;
return typeof s != "string" ? i.push(s) : typeof i[i.length - 1] == "string" ? i[i.length - 1] += s : i.push(s), i;
}, []);
return a.length === 1 ? a[0] : a.length === 0 ? "" : a;
}
function Mn(e, t, n, r) {
var a = e.locale, i = e.onError;
r === void 0 && (r = {});
var o = Intl.ListFormat;
o || i(new ce(`Intl.ListFormat is not available in this environment.
Try polyfilling it using "@formatjs/intl-listformat"
`, ie.MISSING_INTL_API));
var s = fe(r, Va);
try {
var l = {}, c = n.map(function(u, d) {
if (typeof u == "object") {
var h = Ra(d);
return l[h] = u, h;
}
return String(u);
});
return t(a, s).formatToParts(c).map(function(u) {
return u.type === "literal" ? u : p(p({}, u), { value: l[u.value] || u.value });
});
} catch (u) {
i(new Q("Error formatting list.", a, u));
}
return n;
}
var Wa = ["type"];
function Ua(e, t, n, r) {
var a = e.locale, i = e.onError;
r === void 0 && (r = {}), Intl.PluralRules || i(new ce(`Intl.PluralRules is not available in this environment.
Try polyfilling it using "@formatjs/intl-pluralrules"
`, ie.MISSING_INTL_API));
var o = fe(r, Wa);
try {
return t(a, o).select(n);
} catch (s) {
i(new Q("Error formatting plural.", a, s));
}
return "other";
}
var Za = ["numeric", "style"];
function Ya(e, t, n) {
var r = e.locale, a = e.formats, i = e.onError;
n === void 0 && (n = {});
var o = n.format, s = !!o && St(a, "relative", o, i) || {}, l = fe(n, Za, s);
return t(r, l);
}
function za(e, t, n, r, a) {
a === void 0 && (a = {}), r || (r = "second");
var i = Intl.RelativeTimeFormat;
i || e.onError(new ce(`Intl.RelativeTimeFormat is not available in this environment.
Try polyfilling it using "@formatjs/intl-relativetimeformat"
`, ie.MISSING_INTL_API));
try {
return Ya(e, t, a).format(n, r);
} catch (o) {
e.onError(new Q("Error formatting relative time.", e.locale, o));
}
return String(n);
}
var Da = [
"style",
"currency",
"unit",
"unitDisplay",
"useGrouping",
"minimumIntegerDigits",
"minimumFractionDigits",
"maximumFractionDigits",
"minimumSignificantDigits",
"maximumSignificantDigits",
// ES2020 NumberFormat
"compactDisplay",
"currencyDisplay",
"currencySign",
"notation",
"signDisplay",
"unit",
"unitDisplay",
"numberingSystem",
// ES2023 NumberFormat
"trailingZeroDisplay",
"roundingPriority",
"roundingIncrement",
"roundingMode"
];
function Vn(e, t, n) {
var r = e.locale, a = e.formats, i = e.onError;
n === void 0 && (n = {});
var o = n.format, s = o && St(a, "number", o, i) || {}, l = fe(n, Da, s);
return t(r, l);
}
function Ga(e, t, n, r) {
r === void 0 && (r = {});
try {
return Vn(e, t, r).format(n);
} catch (a) {
e.onError(new Q("Error formatting number.", e.locale, a));
}
return String(n);
}
function ja(e, t, n, r) {
r === void 0 && (r = {});
try {
return Vn(e, t, r).formatToParts(n);
} catch (a) {
e.onError(new Q("Error formatting number.", e.locale, a));
}
return [];
}
function qa(e) {
var t = e ? e[Object.keys(e)[0]] : void 0;
return typeof t == "string";
}
function Ka(e) {
e.onWarn && e.defaultRichTextElements && qa(e.messages || {}) && e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
For more details see https://formatjs.io/docs/getting-started/message-distribution`);
}
function qt(e, t) {
var n = ka(t), r = p(p({}, On), e), a = r.locale, i = r.defaultLocale, o = r.onError;
return a ? !Intl.NumberFormat.supportedLocalesOf(a).length && o ? o(new Yt('Missing locale data for locale: "'.concat(a, '" in Intl.NumberFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(a).length && o && o(new Yt('Missing locale data for locale: "'.concat(a, '" in Intl.DateTimeFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (o && o(new Ea('"locale" was not configured, using "'.concat(i, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), r.locale = r.defaultLocale || "en"), Ka(r), p(p({}, r), {
formatters: n,
formatNumber: Ga.bind(null, r, n.getNumberFormat),
formatNumberToParts: ja.bind(null, r, n.getNumberFormat),
formatRelativeTime: za.bind(null, r, n.getRelativeTimeFormat),
formatDate: Ta.bind(null, r, n.getDateTimeFormat),
formatDateToParts: Oa.bind(null, r, n.getDateTimeFormat),
formatTime: La.bind(null, r, n.getDateTimeFormat),
formatDateTimeRange: Ia.bind(null, r, n.getDateTimeFormat),
formatTimeToParts: Fa.bind(null, r, n.getDateTimeFormat),
formatPlural: Ua.bind(null, r, n.getPluralRules),
// @ts-expect-error TODO: will get to this later
formatMessage: Gt.bind(null, r, n),
// @ts-expect-error TODO: will get to this later
$t: Gt.bind(null, r, n),
formatList: Ba.bind(null, r, n.getListFormat),
formatListToParts: Mn.bind(null, r, n.getListFormat),
formatDisplayName: Ma.bind(null, r, n.getDisplayNames)
});
}
const Ie = Symbol("store-raw"), ne = Symbol("store-node"), X = Symbol("store-has"), Rn = Symbol("store-self");
function Bn(e) {
let t = e[M];
if (!t && (Object.defineProperty(e, M, {
value: t = new Proxy(e, Ja)
}), !Array.isArray(e))) {
const n = Object.keys(e), r = Object.getOwnPropertyDescriptors(e);
for (let a = 0, i = n.length; a < i; a++) {
const o = n[a];
r[o].get && Object.defineProperty(e, o, {
enumerable: r[o].enumerable,
get: r[o].get.bind(t)
});
}
}
return t;
}
function Oe(e) {
let t;
return e != null && typeof e == "object" && (e[M] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
}
function he(e, t = /* @__PURE__ */ new Set()) {
let n, r, a, i;
if (n = e != null && e[Ie]) return n;
if (!Oe(e) || t.has(e)) return e;
if (Array.isArray(e)) {
Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
for (let o = 0, s = e.length; o < s; o++)
a = e[o], (r = he(a, t)) !== a && (e[o] = r);
} else {
Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
const o = Object.keys(e), s = Object.getOwnPropertyDescriptors(e);
for (let l = 0, c = o.length; l < c; l++)
i = o[l], !s[i].get && (a = e[i], (r = he(a, t)) !== a && (e[i] = r));
}
return e;
}
function ve(e, t) {
let n = e[t];
return n || Object.defineProperty(e, t, {
value: n = /* @__PURE__ */ Object.create(null)
}), n;
}
function me(e, t, n) {
if (e[t]) return e[t];
const [r, a] = z(n, {
equals: !1,
internal: !0
});
return r.$ = a, e[t] = r;
}
function Xa(e, t) {
const n = Reflect.getOwnPropertyDescriptor(e, t);
return !n || n.get || !n.configurable || t === M || t === ne || (delete n.value, delete n.writable, n.get = () => e[M][t]), n;
}
function At(e) {
Te() && me(ve(e, ne), Rn)();
}
function Wn(e) {
return At(e), Reflect.ownKeys(e);
}
const Ja = {
get(e, t, n) {
if (t === Ie) return e;
if (t === M) return n;
if (t === He)
return At(e), n;
const r = ve(e, ne), a = r[t];
let i = a ? a() : e[t];
if (t === ne || t === X || t === "__proto__") return i;
if (!a) {
const o = Object.getOwnPropertyDescriptor(e, t);
Te() && (typeof i != "function" || e.hasOwnProperty(t)) && !(o && o.get) && (i = me(r, t, i)());
}
return Oe(i) ? Bn(i) : i;
},
has(e, t) {
return t === Ie || t === M || t === He || t === ne || t === X || t === "__proto__" ? !0 : (Te() && me(ve(e, X), t)(), t in e);
},
set() {
return !0;
},
deleteProperty() {
return !0;
},
ownKeys: Wn,
getOwnPropertyDescriptor: Xa
};
function xe(e, t, n, r = !1) {
if (!r && e[t] === n) return;
const a = e[t], i = e.length;
n === void 0 ? (delete e[t], e[X] && e[X][t] && a !== void 0 && e[X][t].$()) : (e[t] = n, e[X] && e[X][t] && a === void 0 && e[X][t].$());
let o = ve(e, ne), s;
if ((s = me(o, t, a)) && s.$(() => n), Array.isArray(e) && e.length !== i) {
for (let l = e.length; l < i; l++) (s = o[l]) && s.$();
(s = me(o, "length", i)) && s.$(e.length);
}
(s = o[Rn]) && s.$();
}
function Un(e, t) {
const n = Object.keys(t);
for (let r = 0; r < n.length; r += 1) {
const a = n[r];
xe(e, a, t[a]);
}
}
function Qa(e, t) {
if (typeof t == "function" && (t = t(e)), t = he(t), Array.isArray(t)) {
if (e === t) return;
let n = 0, r = t.length;
for (; n < r; n++) {
const a = t[n];
e[n] !== a && xe(e, n, a);
}
xe(e, "length", r);
} else Un(e, t);
}
function Se(e, t, n = []) {
let r, a = e;
if (t.length > 1) {
r = t.shift();
const o = typeof r, s = Array.isArray(e);
if (Array.isArray(r)) {
for (let l = 0; l < r.length; l++)
Se(e, [r[l]].concat(t), n);
return;
} else if (s && o === "function") {
for (let l = 0; l < e.length; l++)
r(e[l], l) && Se(e, [l].concat(t), n);
return;
} else if (s && o === "object") {
const { from: l = 0, to: c = e.length - 1, by: u = 1 } = r;
for (let d = l; d <= c; d += u)
Se(e, [d].concat(t), n);
return;
} else if (t.length > 1) {
Se(e[r], t, [r].concat(n));
return;
}
a = e[r], n = [r].concat(n);
}
let i = t[0];
typeof i == "function" && (i = i(a, n), i === a) || r === void 0 && i == null || (i = he(i), r === void 0 || Oe(a) && Oe(i) && !Array.isArray(i) ? Un(a, i) : xe(e, r, i));
}
function $a(...[e, t]) {
const n = he(e || {}), r = Array.isArray(n), a = Bn(n);
function i(...o) {
ke(() => {
r && o.length === 1 ? Qa(n, o[0]) : Se(n, o);
});
}
return [a, i];
}
function ei(e, t) {
const n = Reflect.getOwnPropertyDescriptor(e, t);
return !n || n.get || n.set || !n.configurable || t === M || t === ne || (delete n.value, delete n.writable, n.get = () => e[M][t], n.set = (r) => e[M][t] = r), n;
}
const ti = {
get(e, t, n) {
if (t === Ie) return e;
if (t === M) return n;
if (t === He)
return At(e), n;
const r = ve(e, ne), a = r[t];
let i = a ? a() : e[t];
if (t === ne || t === X || t === "__proto__") return i;
if (!a) {
const o = Object.getOwnPropertyDescriptor(e, t), s = typeof i == "function";
if (Te() && (!s || e.hasOwnProperty(t)) && !(o && o.get))
i = me(r, t, i)();
else if (i != null && s && i === Array.prototype[t])
return (...l) => ke(() => Array.prototype[t].apply(n, l));
}
return Oe(i) ? Zn(i) : i;
},
has(e, t) {
return t === Ie || t === M || t === He || t === ne || t === X || t === "__proto__" ? !0 : (Te() && me(ve(e, X), t)(), t in e);
},
set(e, t, n) {
return ke(() => xe(e, t, he(n))), !0;
},
deleteProperty(e, t) {
return ke(() => xe(e, t, void 0, !0)), !0;
},
ownKeys: Wn,
getOwnPropertyDescriptor: ei
};
function Zn(e) {
let t = e[M];
if (!t) {
Object.defineProperty(e, M, {
value: t = new Proxy(e, ti)
});
const n = Object.keys(e), r = Object.getOwnPropertyDescriptors(e), a = Object.getPrototypeOf(e), i = a !== null && e !== null && typeof e == "object" && !Array.isArray(e) && a !== Object.prototype;
if (i) {
const o = Object.getOwnPropertyDescriptors(a);
n.push(...Object.keys(o)), Object.assign(r, o);
}
for (let o = 0, s = n.length; o < s; o++) {
const l = n[o];
if (!(i && l === "constructor")) {
if (r[l].get) {
const c = r[l].get.bind(t);
Object.defineProperty(e, l, {
get: c,
configurable: !0
});
}
if (r[l].set) {
const c = r[l].set;
Object.defineProperty(e, l, {
set: (d) => ke(() => c.call(t, d)),
configurable: !0
});
}
}
}
}
return t;
}
function ni(e, t) {
const n = he(e || {});
return Zn(n);
}
function Kt(e) {
return J(On, {
locale: e.locale,
timeZone: e.timeZone,
fallbackOnEmptyString: e.fallbackOnEmptyString,
formats: e.formats,
messages: e.messages,
defaultLocale: e.defaultLocale,
defaultFormats: e.defaultFormats,
defaultRichTextElements: e.defaultRichTextElements,
onError: e.onError,
onWarn: e.onWarn
});
}
const ye = (e) => {
var t;
return ((t = {}.toString.call(e).match(/\s([A-Za-z]+)/)) == null ? void 0 : t[1].toLowerCase()) ?? "";
}, ri = {
// @ts-ignore
nullish(e) {
return e == null;
},
// @ts-ignore
string(e) {
return ye(e) === "string";
},
// @ts-ignore
number(e) {
return ye(e) === "number";
},
// @ts-ignore
bool(e) {
return ye(e) === "boolean";
},
// @ts-ignore
object(e) {
return ye(e) === "object";
},
// @ts-ignore
array(e) {
return Array.isArray(e);
},
// @ts-ignore
date(e) {
return ye(e) === "date";
},
// @ts-ignore
function(e) {
return ye(e) === "function";
}
}, ai = ar(), ii = (e) => {
if (ri.nullish(e.locale))
throw new ReferenceError('[solid-intl]: expects a "locale" which was not configured. See https://formatjs.io/docs/react-intl/api#intlshape for more details');
const t = ni(Fn()), [n, r] = $a(qt(Kt(e), t));
return nn(() => {
r(qt(Kt(e), t));
}), m(ai.Provider, {
value: n,
get children() {
return e.children;
}
});
};
var se = /* @__PURE__ */ ((e) => (e.EN = "en", e.IT = "it", e.PT = "pt", e.DE = "de", e.FR = "fr", e.ES = "es", e))(se || {});
const re = "en", ut = {
en: {
// Product widget
"product_widget:pay_in_3": 'Pay in 3 installments of {{installmentAmount}} with',
"product_widget:pay_in_4": 'Pay in 4{{feeStar}} installments of {{installmentAmount}} with',
"product_widget:pay_in_3_pay_in_4": 'Pay in 3 or 4{{feeStar}} installments of {{installmentAmount}} with',
"product_widget:pay_in_4_service_fee_single": "*A service fee of up to {{feeAmount}} may apply.",
"product_widget:pay_in_4_service_fee_single_no_amount": "*A service fee may apply.",
"product_widget:learn_more": "Learn more",
"product_widget:no_interest": "Interest-free.",
// Product widget no installments
"product_widget:pay_in_3_no_installments": "Pay in 3 installments with",
"product_widget:pay_in_4_no_installments": "Pay in 4{{feeStar}} installments with",
"product_widget:pay_in_3_pay_in_4_no_installments": "Pay in 3 or 4{{feeStar}} installments with",
"product_widget:pay_in_3_pay_in_4_pay_now_checkout": 'Pay in 3 or 4 installments or now, starting from {{installmentAmount}}.Interest-free.',
"product_widget:pay_in_3_pay_now_checkout": 'Pay in 3 installments or now, starting from {{installmentAmount}}.Interest-free.',
"product_widget:pay_in_4_pay_now_checkout": 'Pay in 4 installments or now, starting from {{installmentAmount}}.Interest-free.',
"product_widget:pay_in_3_pay_in_4_pay_later": 'Pay in 3 or 4 installments or later, starting from {{installmentAmount}}.Interest-free.',
"product_widget:pay_in_3_pay_later": 'Pay in 3 installments or later, starting from {{installmentAmount}}.Interest-free.',
"product_widget:pay_in_4_pay_later": 'Pay in 3 installments or later, starting from {{installmentAmount}}.Interest-free.',
"product_widget:pay_now_checkout_pay_later": "Pay now or later",
"product_widget:pay_in_3_pay_now_checkout_pay_later": 'Pay in 3 installments, starting from {{installmentAmount}}.Interest-free.',
"product_widget:pay_in_4_pay_now_checkout_pay_later": 'Pay in 4 installments, starting from {{installmentAmount}}.Interest-free.',
"product_widget:pay_in_3_pay_in_4_pay_now_checkout_pay_later": 'Pay in 3 or 4 installments, starting from {{installmentAmount}}.Interest-free.',
"product_widget:pay_now_checkout": "Pay now with",
"product_widget:pay_later": "Pay later",
// Checkout widget
"checkout_widget:pay_in_3": 'Pay in 3 installments of {{installmentAmount}} without interest.',
"checkout_widget:pay_in_4": 'Pay in 4{{feeStar}} installments of {{installmentAmount}} without interest.',
"checkout_widget:pay_now_checkout": "Fast checkout with your account.",
"checkout_widget:pay_later": "Pay later without interest.",
"checkout_widget:accepted_methods": "We accept all major payment methods, including prepaid cards.",
// Checkout widget no installments
"checkout_widget:pay_in_3_no_installments": "Pay in 3 installments without interest.",
"checkout_widget:pay_in_4_no_installments": "Pay in 4{{feeStar}} installments without interest.",
// Checkout Title
"checkout_title:pay_in_3": "Pay in 3 installments",
"checkout_title:pay_in_4": "Pay in 4 installments",
"checkout_title:pay_in_3_pay_in_4": "Pay in 3 or 4 installments",
// Info card
"product_widget:pay_in_3_label": "Pay in 3 installments",
"product_widget:pay_in_4_label": "Pay in 4 installments",
"product_widget:pay_now_checkout_label": "Pay now",
"product_widget:later_label": "Pay later",
"how_to_card:information_1": 'Choose Scalapay at Checkout.',
"how_to_card:information_2": 'Create an account in 2 mins and enter a payment method. ',
"how_to_card:information_3": 'Pay only the first installment and receive your order immediately.',
"how_to_card:information_3:travel": 'Pay only the first installment and confirm your reservation right away.',
"how_to_card:information_4": 'Enjoy your purchase and take your time to settle the remaining installments.',
"how_to_card:information_4:travel": 'Enjoy your experience and take your time to settle the remaining installments.',
// Modal
"modal:terms_and_conditions": 'Installments will be automatically charged to the payment method used. In some cases, the first installment may be higher than the remaining ones.
See full T&Cs at www.scalapay.com.',
"modal:installments_card_title": "How it works?",
"modal:close_button": "Close",
// Installment summary
"installment_summary:total": 'Total: {{total}} {{asterisk}} {{fee}} ',
"installment_summary:pay_now": "Today",
"installment_summary:days-prefix": "",
"installment_summary:days": "days",
"installment_summary:monthly_plural": "{{numberOfInstallments}} months",
"installment_summary:weekly_plural": "{{numberOfInstallments}} weeks",
"installment_summary:daily_plural": "{{numberOfInstallments}} days",
"installment_summary:monthly_single": "month",
"installment_summary:weekly_single": "week",
"installment_summary:daily_single": "day",
"installment_summary:service_fee": '* A service fee of up to {{fee}} may apply only on the first installment',
// Learn more modal
"learn_more_modal:title": "What you love in easy installments. Interest-free."
},
it: {
// Product widget
"product_widget:pay_in_3": 'Paga in 3 rate da {{installmentAmount}} con',
"product_widget:pay_in_4": 'Paga in 4{{feeStar}} rate da {{installmentAmount}} con',
"product_widget:pay_in_3_pay_in_4": 'Paga in 3 o 4{{feeStar}} rate da {{installmentAmount}} con',
"product_widget:pay_in_4_service_fee_single": "*Si applica una commissione di servizio di {{feeAmount}}.",
"product_widget:pay_in_4_service_fee_single_no_amount": "*Si applica una commissione di servizio.",
"product_widget:learn_more": "Scopri di più",
"product_widget:no_interest": "Senza interessi.",
// Product widget no installments
"product_widget:pay_in_3_no_installments": "Paga in 3 rate con",
"product_widget:pay_in_4_no_installments": "Paga in 4{{feeStar}} rate con",
"product_widget:pay_in_3_pay_in_4_no_installments": "Paga in 3 o 4{{feeStar}} rate con",
"product_widget:pay_now_checkout": "Paga ora con",
"product_widget:pay_later": "Paga più tardi",
"product_widget:pay_in_3_pay_in_4_pay_now_checkout": 'Paga in 3 o 4 rate, a partire da {{installmentAmount}}. Senza interessi.',
"product_widget:pay_in_3_pay_now_checkout": 'Paga in 3 rate, a partire da {{installmentAmount}}. Senza interessi.',
"product_widget:pay_in_4_pay_now_checkout": 'Paga in 4 rate, a partire da {{installmentAmount}}. Senza interessi.',
"product_widget:pay_in_3_pay_in_4_pay_later": 'Paga in 3 o 4 rate, a partire da {{installmentAmount}}. Senza interessi.',
"product_widget:pay_in_3_pay_later": 'Paga in 3 rate, a partire da {{installmentAmount}}. Senza interessi.',
"product_widget:pay_in_4_pay_later": 'Paga in 4 rate, a partire da {{installmentAmount}}. Senza interessi.',
"product_widget:pay_now_checkout_pay_later": "Paga ora o più tardi",
"product_widget:pay_in_3_pay_now_checkout_pay_later": 'Paga in 3 rate, a partire da {{installmentAmount}}. Senza interessi.',
"product_widget:pay_in_4_pay_now_checkout_pay_later": 'Paga in 4 rate, a partire da {{installmentAmount}}. Senza interessi.',
"product_widget:pay_in_3_pay_in_4_pay_now_checkout_pay_later": 'Paga in 3 o 4 rate, a partire da {{installmentAmount}}. Senza interessi.',
// Checkout widget
"checkout_widget:pay_in_3": "Paga in 3 rate di {{installmentAmount}} senza interessi.",
"checkout_widget:pay_in_4": "Paga in 4{{feeStar}} rate di {{installmentAmount}} senza interessi.",
"checkout_widget:pay_now_checkout": "Pagamento rapido con il tuo account.",
"checkout_widget:pay_later": "Paga dopo senza interessi.",
"checkout_widget:accepted_methods": "Accettiamo tutti i principali metodi di pagamento, incluse le carte prepagate.",
// Checkout widget no installments
"checkout_widget:pay_in_3_no_installments": "Paga in 3 rate senza interessi.",
"checkout_widget:pay_in_4_no_installments": "Paga in 4{{feeStar}} rate senza interessi.",
// Checkout Title
"checkout_title:pay_in_3": "Paga in 3 rate",
"checkout_title:pay_in_4": "Paga in 4 rate",
"checkout_title:pay_in_3_pay_in_4": "Paga in 3 o 4 rate",
// Info card
"product_widget:pay_in_3_label": "Paga in 3 rate",
"product_widget:pay_in_4_label": "Paga in 4 rate",
"product_widget:pay_now_checkout_label": "Paga ora",
"product_widget:later_label": "Paga dopo",
"how_to_card:information_1": "Scegli Scalapay al momento del checkout.",
"how_to_card:information_2": "Crea un account in 2 minuti e aggiungi un metodo di pagamento.",
"how_to_card:information_3": "Paga solo la prima rata e ricevi subito il tuo ordine.",
"how_to_card:information_3:travel": "Paga solo la prima rata e conferma subito la tua prenotazione.",
"how_to_card:information_4": "Goditi il tuo acquisto e prenditi il tuo tempo per pagare le rate rimanenti.",
"how_to_card:information_4:travel": "Goditi la tua esperienza e prenditi il tuo tempo per pagare le rate rimanenti.",
// Modal
"modal:terms_and_conditions": 'Le rate verranno addebitate automaticamente sul metodo di pagamento utilizzato. In alcuni casi, la prima rata potrebbe essere superiore alle restanti.
Leggi tutti i Termini e Condizioni su www.scalapay.com.',
"modal:installments_card_title": "Come funziona?",
"modal:close_button": "Chiudi",
// Installment summary
"installment_summary:total": "Totale: {{total}} {{asterisk}} {{fee}}",
"installment_summary:pay_now": "Oggi",
"installment_summary:days-prefix": "",
"installment_summary:days": "giorni",
"installment_summary:monthly_plural": "{{numberOfInstallments}} mesi",
"installment_summary:weekly_plural": "{{numberOfInstallments}} settimane",
"installment_summary:daily_plural": "{{numberOfInstallments}} giorni",
"installment_summary:monthly_single": "mese",
"installment_summary:weekly_single": "settimana",
"installment_summary:daily_single": "giorno",
"installment_summary:service_fee": "* Si applica una commissione di {{fee}} solo sulla prima rata",
// Learn more modal
"learn_more_modal:title": "Quello che ami in comode rate. Senza interessi."
},
pt: {
// Product widget
"product_widget:pay_in_3": 'Paga em 3 prestações de {{installmentAmount}} com',
"product_widget:pay_in_4": 'Paga em 4 prestações de {{installmentAmount}} com',
"product_widget:pay_in_3_pay_in_4": 'Paga em 3 ou 4 prestações de {{installmentAmount}} com',
"product_widget:pay_in_4_service_fee_single": "",
"product_widget:pay_in_4_service_fee_single_no_amount": "",
"product_widget:learn_more": "Saber mais",
"product_widget:no_interest": "Sem juros.",
// Product widget no installments
"product_widget:pay_in_3_no_installments": "Paga em 3 prestações com",
"product_widget:pay_in_4_no_installments": "Paga em 4 prestações com",
"product_widget:pay_in_3_pay_in_4_no_installments": "Paga em 3 ou 4 prestações com",
"product_widget:pay_now_checkout": "Paga agora com",
"product_widget:pay_later": "Paga depois",
"product_widget:pay_in_3_pay_in_4_pay_now_checkout": 'Paga em 3 ou 4 prestações, a partir de {{installmentAmount}}. Sem juros.',
"product_widget:pay_in_3_pay_now_checkout": 'Paga em 3 prestações, a partir de {{installmentAmount}}. Sem juros.',
"product_widget:pay_in_4_pay_now_checkout": 'Paga em 4 prestações, a partir de {{installmentAmount}}. Sem juros.',
"product_widget:pay_in_3_pay_in_4_pay_later": 'Paga em 3 ou 4 prestações, a partir de {{installmentAmount}}. Sem juros.',
"product_widget:pay_in_3_pay_later": 'Paga em 3 prestações, a partir de {{installmentAmount}}. Sem juros.',
"product_widget:pay_in_4_pay_later": 'Paga em 4 prestações, a partir de {{installmentAmount}}. Sem juros.',
"product_widget:pay_now_checkout_pay_later": "Paga agora ou depois",
"product_widget:pay_in_3_pay_now_checkout_pay_later": 'Paga em 3 prestações, a partir de {{installmentAmount}}. Sem juros.',
"product_widget:pay_in_4_pay_now_checkout_pay_later": 'Paga em 4 prestações, a partir de {{installmentAmount}}. Sem juros.',
"product_widget:pay_in_3_pay_in_4_pay_now_checkout_pay_later": 'Paga em 3 ou 4 prestações, a partir de {{installmentAmount}}. Sem juros.',
// Checkout widget
"checkout_widget:pay_in_3": "Paga em 3 prestações de {{installmentAmount}} sem juros.",
"checkout_widget:pay_in_4": "Paga em 4 prestações de {{installmentAmount}} sem juros.",
"checkout_widget:pay_now_checkout": "Checkout rápido com a tua conta.",
"checkout_widget:pay_later": "Paga depois sem juros.",
"checkout_widget:accepted_methods": "Aceitamos todos os principais métodos de pagamento.",
// Checkout widget no installments
"checkout_widget:pay_in_3_no_installments": "Paga em 3 prestações sem juros.",
"checkout_widget:pay_in_4_no_installments": "Paga em 4 prestações sem juros.",
// Checkout Title
"checkout_title:pay_in_3": "Paga em 3 prestações",
"checkout_title:pay_in_4": "Paga em 4 prestações",
"checkout_title:pay_in_3_pay_in_4": "Paga em 3 ou 4 prestações",
// Info card
"product_widget:pay_in_3_label": "Paga em 3 prestações",
"product_widget:pay_in_4_label": "Paga em 4 prestações",
"product_widget:pay_now_checkout_label": "Paga agora",
"product_widget:later_label": "Paga depois",
"how_to_card:information_1": "No momento do pagamento, seleciona a Scalapay.",
"how_to_card:information_2": "Cria uma conta em 2 minutos e adiciona um cartão bancário.",
"how_to_card:information_3": "Paga apenas a primeira prestação e recebe o teu pedido imediatamente.",
"how_to_card:information_3:travel": "Paga apenas a primeira prestação e recebe o teu pedido imediatamente.",
"how_to_card:information_4": "Aproveita a tua compra e paga ao teu ritmo as restantes prestações.",
"how_to_card:information_4:travel": "Aproveita a tua experiência e paga ao teu ritmo as restantes prestações.",
// Modal
"modal:terms_and_conditions": 'As prestações serão cobradas automaticamente de acordo com o cartão bancário utilizado. Em alguns casos, a primeira prestação pode ser superior às restantes.
Consulta os T&Cs completos em www.scalapay.com.',
"modal:installments_card_title": "Como funciona?",
"modal:close_button": "Fechar",
// Installment summary
"installment_summary:total": "Total: {{total}} {{asterisk}} {{fee}}",
"installment_summary:pay_now": "Hoje",
"installment_summary:days-prefix": "Em",
"installment_summary:days": "dias",
"installment_summary:monthly_plural": "{{numberOfInstallments}} meses",
"installment_summary:weekly_plural": "{{numberOfInstallments}} semanas",
"installment_summary:daily_plural": "{{numberOfInstallments}} dias",
"installment_summary:monthly_single": "mês",
"installment_summary:weekly_single": "semana",
"installment_summary:daily_single": "dia",
"installment_summary:service_fee": "",
// Learn more modal
"learn_more_modal:title": "O que gosta em prestações fáceis. Sem juros."
},
de: {
// Product widget
"product_widget:pay_in_3": 'Zahle in 3 bequemen Raten à {{installmentAmount}} mit',
"product_widget:pay_in_4": 'Zahle in 4 bequemen Raten à {{installmentAmount}} mit',
"product_widget:pay_in_3_pay_in_4": 'Zahle in 3 oder 4 Raten à {{installmentAmount}} mit',
"product_widget:pay_in_4_service_fee_single": "",
"product_widget:pay_in_4_service_fee_single_no_amount": "",
"product_widget:learn_more": "Mehr erfahren",
"product_widget:no_interest": "Zinsfrei.",
// Product widget no installments
"product_widget:pay_in_3_no_installments": "Zahle in 3 bequemen Raten mit",
"product_widget:pay_in_4_no_installments": "Zahle in 4 bequemen Raten mit",
"product_widget:pay_in_3_pay_in_4_no_installments": "Zahle in 3 oder 4 Raten mit",
"product_widget:pay_now_checkout": "Jetzt bezahlen mit",
"product_widget:pay_later": "Später bezahlen",
"product_widget:pay_in_3_pay_in_4_pay_now_checkout": 'Zahlen Sie in 3 oder 4 Raten, beginnend ab {{installmentAmount}}. Zinsfrei.',
"product_widget:pay_in_3_pay_now_checkout": 'Zahlen Sie in 3 Raten, beginnend ab {{installmentAmount}}. Zinsfrei.',
"product_widget:pay_in_4_pay_now_checkout": 'Zahlen Sie in 4 Raten, beginnend ab {{installmentAmount}}. Zinsfrei.',
"product_widget:pay_in_3_pay_in_4_pay_later": 'Zahlen Sie in 3 oder 4 Raten, beginnend ab {{installmentAmount}}. Zinsfrei.',
"product_widget:pay_in_3_pay_later": 'Zahlen Sie in 3 Raten, beginnend ab {{installmentAmount}}. Zinsfrei.',
"product_widget:pay_in_4_pay_later": 'Zahlen Sie in 4 Raten, beginnend ab {{installmentAmount}}. Zinsfrei.',
"product_widget:pay_now_checkout_pay_later": "Jetzt oder später bezahlen",
"product_widget:pay_in_3_pay_now_checkout_pay_later": 'Zahlen Sie in 3 Raten, beginnend ab {{installmentAmount}}. Zinsfrei.',
"product_widget:pay_in_4_pay_now_checkout_pay_later": 'Zahlen Sie in 4 Raten, beginnend ab {{installmentAmount}}. Zinsfrei.',
"product_widget:pay_in_3_pay_in_4_pay_now_checkout_pay_later": 'Zahlen Sie in 3 oder 4 Raten, beginnend ab {{installmentAmount}}. Zinsfrei.',
// Checkout widget
"checkout_widget:pay_in_3": "Zahle in 3 Raten von {{installmentAmount}} zinsfrei.",
"checkout_widget:pay_in_4": "Zahle in 4 Raten von {{installmentAmount}} zinsfrei.",
"checkout_widget:pay_now_checkout": "Schneller Checkout mit deinem Konto.",
"checkout_widget:pay_later": "Später zahlen ohne Zinsen.",
"checkout_widget:accepted_methods": "Wir akzeptieren alle gängigen Zahlungsmethoden, einschließlich Prepaid-Karten.",
// Checkout widget no installments
"checkout_widget:pay_in_3_no_installments": "Zahle in 3 Raten zinsfrei.",
"checkout_widget:pay_in_4_no_installments": "Zahle in 4 Raten zinsfrei.",
// Checkout Title
"checkout_title:pay_in_3": "Zahle in 3 Raten",
"checkout_title:pay_in_4": "Zahle in 4 Raten",
"checkout_title:pay_in_3_pay_in_4": "Zahle in 3 oder 4 Raten",
// Info card
"product_widget:pay_in_3_label": "Zahle in 3 Raten",
"product_widget:pay_in_4_label": "Zahle in 4 Raten",
"product_widget:pay_now_checkout_label": "Jetzt zahlen",
"product_widget:later_label": "Später zahlen",
"how_to_card:information_1": "Wähle Scalapay beim Checkout.",
"how_to_card:information_2": "Erstelle in 2 Minuten ein Konto und füge eine Zahlungsmethode hinzu.",
"how_to_card:information_3": "Bezahle nur die erste Rate und erhalte deine Bestellung sofort.",
"how_to_card:information_3:travel": "Bezahle nur die erste Rate und bestätigen Sie Ihre Reservierung sofort.",
"how_to_card:information_4": "Genieße deinen Einkauf und lass dir Zeit, um die restlichen Raten zu bezahlen.",
"how_to_card:information_4:travel": "Genießen Sie Ihr Erlebnis und nehmen Sie sich Zeit, die restlichen Raten zu zahlen.",
// Modal
"modal:terms_and_conditions": 'Die Raten werden automatisch mit der verwendeten Zahlungsmethode verrechnet. In einigen Fällen kann die erste Rate höher sein als die weiteren.
Siehe vollständige AGB unter www.scalapay.com.',
"modal:installments_card_title": "Wie funktioniert es?",
"modal:close_button": "Schließen",
// Installment summary
"installment_summary:total": "Gesamt: {{total}} {{asterisk}} {{fee}}",
"installment_summary:pay_now": "Heute",
"installment_summary:days-prefix": "",
"installment_summary:days": "Tage",
"installment_summary:monthly_plural": "{{numberOfInstallments}} Monate",
"installment_summary:weekly_plural": "{{numberOfInstallments}} Wochen",
"installment_summary:daily_plural": "{{numberOfInstallments}} Tage",
"installment_summary:monthly_single": "Monat",
"installment_summary:weekly_single": "Woche",
"installment_summary:daily_single": "Tag",
"installment_summary:service_fee": "",
// Learn more modal
"learn_more_modal:title": "Was Sie lieben, in einfachen Raten. Zinslos."
},
fr: {
// Product widget
"product_widget:pay_in_3": 'Payez en 3 fois {{installmentAmount}} avec',
"product_widget:pay_in_4": 'Payez en 4{{feeStar}} fois {{installmentAmount}} avec',
"product_widget:pay_in_3_pay_in_4": 'Payez en 3 ou 4{{feeStar}} fois {{installmentAmount}} avec',
"product_widget:pay_in_4_service_fee_single": "*Des frais de service de {{feeAmount}} s'appliquent.",
"product_widget:pay_in_4_service_fee_single_no_amount": "*Des frais de service s'appliquent.",
"product_widget:learn_more": "En savoir plus",
"product_widget:no_interest": "Sans intérêts.",
// Product widget no installments
"product_widget:pay_in_3_no_installments": "Payez en 3 fois avec",
"product_widget:pay_in_4_no_installments": "Payez en 4{{feeStar}} fois avec",
"product_widget:pay_in_3_pay_in_4_no_installments": "Payez en 3 ou 4{{feeStar}} fois avec",
"product_widget:pay_now_checkout": "Payez maintenant avec",
"product_widget:pay_later": "Payez plus tard",
"product_widget:pay_in_3_pay_in_4_pay_now_checkout": 'Payez en 3 ou 4 fois, à partir de {{installmentAmount}}. Sans intérêts.',
"product_widget:pay_in_3_pay_now_checkout": 'Payez en 3 fois, à partir de {{installmentAmount}}. Sans intérêts.',
"product_widget:pay_in_4_pay_now_checkout": 'Payez en 4 fois, à partir de {{installmentAmount}}. Sans intérêts.',
"product_widget:pay_in_3_pay_in_4_pay_later": 'Payez en 3 ou 4 fois, à partir de {{installmentAmount}}. Sans intérêts.',
"product_widget:pay_in_3_pay_later": 'Payez en 3 fois, à partir de {{installmentAmount}}. Sans intérêts.',
"product_widget:pay_in_4_pay_later": 'Payez en 4 fois, à partir de {{installmentAmount}}. Sans intérêts.',
"product_widget:pay_now_checkout_pay_later": "Payez maintenant ou plus tard",
"product_widget:pay_in_3_pay_now_checkout_pay_later": 'Payez en 3 fois, à partir de {{installmentAmount}}. Sans intérêts.',
"product_widget:pay_in_4_pay_now_checkout_pay_later": 'Payez en 4 fois, à partir de {{installmentAmount}}. Sans intérêts.',
"product_widget:pay_in_3_pay_in_4_pay_now_checkout_pay_later": 'Payez en 3 ou 4 fois, à partir de {{installmentAmount}}. Sans intérêts.',
// Checkout widget
"checkout_widget:pay_in_3": "Payez en 3 fois {{installmentAmount}} sans intérêts.",
"checkout_widget:pay_in_4": "Payez en 4{{feeStar}} fois {{installmentAmount}} sans intérêts.",
"checkout_widget:pay_now_checkout": "Paiement rapide avec votre compte.",
"checkout_widget:pay_later": "Payez plus tard sans intérêt.",
"checkout_widget:accepted_methods": "Nous acceptons tous les principaux moyens de paiement, y compris les cartes prépayées.",
// Checkout widget no installments
"checkout_widget:pay_in_3_no_installments": "Payez en 3 fois sans intérêts.",
"checkout_widget:pay_in_4_no_installments": "Payez en 4{{feeStar}} fois sans intérêts.",
// Checkout Title
"checkout_title:pay_in_3": "Payez en 3 fois",
"checkout_title:pay_in_4": "Payez en 4 fois",
"checkout_title:pay_in_3_pay_in_4": "Payez en 3 ou 4 fois",
// Info card
"product_widget:pay_in_3_label": "Payez en 3 fois",
"product_widget:pay_in_4_label": "Payez en 4 fois",
"product_widget:pay_now_checkout_label": "Payez maintenant",
"product_widget:later_label": "Payez plus tard",
"how_to_card:information_1": "Choisissez Scalapay au moment de régler.",
"how_to_card:information_2": "Créez un compte en 2 minutes et ajoutez un moyen de paiement.",
"how_to_card:information_3": "Payez seulement la première mensualité et recevez votre commande immédiatement.",
"how_to_card:information_3:travel": "Payez seulement le premier versement et confirmez votre réservation.",
"how_to_card:information_4": "Profitez de votre achat et prenez votre temps pour régler les mensualités restantes.",
"how_to_card:information_4:travel": "Profitez de votre expérience et prenez le temps de régler les mensualités restantes.",
// Modal
"modal:terms_and_conditions": 'Les versements seront automatiquement débités de la méthode de paiement utilisée. Dans certains cas, le premier versement peut être plus élevé que les autres.
Voir les T&C complets sur www.scalapay.com.',
"modal:installments_card_title": "Comment ça marche ?",
"modal:close_button": "Fermer",
// Installment summary
"installment_summary:total": "Total : {{total}} {{asterisk}} {{fee}}",
"installment_summary:pay_now": "Aujourd'hui",
"installment_summary:days-prefix": "",
"installment_summary:days": "jours",
"installment_summary:monthly_plural": "{{numberOfInstallments}} mois",
"installment_summary:weekly_plural": "{{numberOfInstallments}} semaines",
"installment_summary:daily_plural": "{{numberOfInstallments}} jours",
"installment_summary:monthly_single": "mois",
"installment_summary:weekly_single": "semaine",
"installment_summary:daily_single": "jour",
"installment_summary:service_fee": "* Des frais de service de {{fee}} sont prélevés que sur le premier versement.",
// Learn more modal
"learn_more_modal:title": "Ce que vous aimez en fois faciles. Sans intérêt."
},
es: {
// Product widget
"product_widget:pay_in_3": 'Paga en 3 plazos de {{installmentAmount}} con',
"product_widget:pay_in_4": 'Paga en 4{{feeStar}} plazos de {{installmentAmount}} con',
"product_widget:pay_in_3_pay_in_4": 'Paga en 3 o 4{{feeStar}} plazos de {{installmentAmount}} con',
"product_widget:pay_in_4_service_fee_single": "*Se aplica una comisión de servicio de {{feeAmount}}.",
"product_widget:pay_in_4_service_fee_single_no_amount": "*Se aplica una comisión de servicio.",
"product_widget:learn_more": "Descubre más",
"product_widget:no_interest": "Sin intereses.",
// Product widget no installments
"product_widget:pay_in_3_no_installments": "Paga en 3 plazos con",
"product_widget:pay_in_4_no_installments": "Paga en 4{{feeStar}} plazos con",
"product_widget:pay_in_3_pay_in_4_no_installments": "Paga en 3 o 4{{feeStar}} plazos con",
"product_widget:pay_now_checkout": "Paga ahora con",
"product_widget:pay_later": "Paga más tarde",
"product_widget:pay_in_3_pay_in_4_pay_now_checkout": 'Paga en 3 o 4 plazos, a partir de {{installmentAmount}}. Sin intereses.',
"product_widget:pay_in_3_pay_now_checkout": 'Paga en 3 plazos, a partir de {{installmentAmount}}. Sin intereses.',
"product_widget:pay_in_4_pay_now_checkout": 'Paga en 4 plazos, a partir de {{installmentAmount}}. Sin intereses.',
"product_widget:pay_in_3_pay_in_4_pay_later": 'Paga en 3 o 4 plazos, a partir de {{installmentAmount}}. Sin intereses.',
"product_widget:pay_in_3_pay_later": 'Paga en 3 plazos, a partir de {{installmentAmount}}. Sin intereses.',
"product_widget:pay_in_4_pay_later": 'Paga en 4 plazos, a partir de {{installmentAmount}}. Sin intereses.',
"product_widget:pay_now_checkout_pay_later": "Paga ahora o más tarde",
"product_widget:pay_in_3_pay_now_checkout_pay_later": 'Paga en 3 plazos, a partir de {{installmentAmount}}. Sin intereses.',
"product_widget:pay_in_4_pay_now_checkout_pay_later": 'Paga en 4 plazos, a partir de {{installmentAmount}}. Sin intereses.',
"product_widget:pay_in_3_pay_in_4_pay_now_checkout_pay_later": 'Paga en 3 o 4 plazos, a partir de {{installmentAmount}}. Sin intereses.',
// Checkout widget
"checkout_widget:pay_in_3": "Paga en 3 plazos de {{installmentAmount}} sin intereses.",
"checkout_widget:pay_in_4": "Paga en 4{{feeStar}} plazos de {{installmentAmount}} sin intereses.",
"checkout_widget:pay_now_checkout": "Pago rápido con tu cuenta.",
"checkout_widget:pay_later": "Paga después sin intereses.",
"checkout_widget:accepted_methods": "Aceptamos todos los métodos de pago principales, incluidas las tarjetas prepago.",
// Checkout widget no installments
"checkout_widget:pay_in_3_no_installments": "Paga en 3 plazos sin intereses.",
"checkout_widget:pay_in_4_no_installments": "Paga en 4{{feeStar}} plazos sin intereses.",
// Checkout Title
"checkout_title:pay_in_3": "Paga en 3 plazos",
"checkout_title:pay_in_4": "Paga en 4 plazos",
"checkout_title:pay_in_3_pay_in_4": "Paga en 3 o 4 plazos",
// Info card
"product_widget:pay_in_3_label": "Paga en 3 plazos",
"product_widget:pay_in_4_label": "Paga en 4 plazos",
"product_widget:pay_now_checkout_label": "Pagar ahora",
"product_widget:later_label": "Paga después",
"how_to_card:information_1": "Elige Scalapay al momento de pagar.",
"how_to_card:information_2": "Crea una cuenta en 2 minutos y añade un método de pago.",
"how_to_card:information_3": "Paga solo el primer plazo y recibe tu pedido de inmediato.",
"how_to_card:information_3:travel": "Paga solo el primer plazo y confirme tu reserva ahora.",
"how_to_card:information_4": " y tómate tu tiempo para pagar los plazos restantes.",
"how_to_card:information_4:travel": "Disfrute de su experiencia y tómate tu tiempo para pagar los plazos restantes.",
// Modal
"modal:terms_and_conditions": 'Los plazos se cargarán automáticamente al método de pago utilizado. En algunos casos, el primer plazo puede ser superior a los restantes.
Consulta los T&C completos en www.scalapay.com.',
"modal:installments_card_title": "¿Cómo funciona?",
"modal:close_button": "Cerrar",
// Installment summary
"installment_summary:total": "Total: {{total}} {{asterisk}} {{fee}}",
"installment_summary:pay_now": "Hoy",
"installment_summary:days-prefix": "",
"installment_summary:days": "días",
"installment_summary:monthly_plural": "{{numberOfInstallments}} meses",
"installment_summary:weekly_plural": "{{numberOfInstallments}} semanas",
"installment_summary:daily_plural": "{{numberOfInstallments}} días",
"installment_summary:monthly_single": "mes",
"installment_summary:weekly_single": "semana",
"installment_summary:daily_single": "día",
"installment_summary:service_fee": "* Sólo se cobra una tarifa de servicio de {{fee}} en el primer plazo",
// Learn more modal
"learn_more_modal:title": "Lo que te gusta en cómodos plazos. Sin intereses."
}
}, H = (e, t, n = {}) => (e in ut || (e = re), t in ut[e] ? Object.keys(n).reduce((a, i) => {
const o = new RegExp(`{{(${i})}}`, "gi");
return a.replace(o, n[i] || `{{${i}}}`);
}, ut[e][t]).replace(/{{.*?}}/g, "") : t);
var Pt = /* @__PURE__ */ ((e) => (e.ONLINE = "online", e.OFFLINE = "offline", e))(Pt || {}), g = /* @__PURE__ */ ((e) => (e.PAY_IN_THREE = "pay-in-3", e.PAY_IN_FOUR = "pay-in-4", e.PAY_NOW_CHECKOUT = "pay-now-checkout", e.PAY_LATER = "later", e.PAY_IN_X = "pay-in-x", e))(g || {});
const oi = 60, si = 120, Xt = {
euro: {
symbol: "€",
code: "EUR"
}
}, li = {
it: {
position: "after",
display: "symbol"
},
en: {
position: "before",
display: "symbol"
}
}, Jt = [
g.PAY_IN_THREE,
g.PAY_IN_FOUR,
g.PAY_NOW_CHECKOUT,
g.PAY_LATER,
g.PAY_IN_X
], ci = (e) => e.sort(
(t, n) => Jt.indexOf(t.product) - Jt.indexOf(n.product)
), Ye = (e, t) => e ? (e = ((r, a) => r.replace(new RegExp(`^[${a}]+|[${a}]+$`, "g"), ""))(e.replace(/[^0-9,.]/g, ""), ",. "), t === "." && (e = e.replace(/,/g, "")), t === "," && (e = e.replace(/[.]/g, "")), parseFloat(
parseFloat(
e.replace(/[.,](?=.*[.,])/g, "").replace(/,/, ".")
).toFixed(2)
) * 100) : null, ui = (e) => {
const t = new Set(Object.values(se));
if (typeof e != "string") return re;
const n = e.toLowerCase().trim();
if (t.has(n)) return n;
if (n.length > 2 && n.indexOf("-") === 2) {
const r = n.slice(0, 2);
return t.has(r) ? r : re;
}
return re;
}, ae = (e, t = re, n, r) => {
const a = li[t], i = n || (a == null ? void 0 : a.display) || "symbol", o = r || (a == null ? void 0 : a.position) || "after", s = i === "code" ? " " : "", l = new Intl.NumberFormat(t, {
style: "currency",
currency: "EUR",
currencyDisplay: "code"
}).format(e / 100).replace("EUR", "").trim(), c = Xt.euro[i] || Xt.euro.code;
return o === "before" ? `${c}${s}${l}` : `${l}${s}${c}`;
}, di = (e) => e <= 499 ? null : Math.round(e * 0.01), hi = (e) => e <= 499 ? null : e <= 999 ? 9 : e <= 1999 ? 18 : e <= 3499 ? 35 : e <= 4999 ? 60 : e <= 6499 ? 90 : e <= 7999 ? 120 : e <= 9499 ? 140 : e <= 10999 ? 170 : e <= 12499 ? 200 : e <= 13999 ? 230 : e <= 15999 ? 260 : e <= 17999 ? 290 : e <= 19999 ? 330 : e <= 34999 ? 360 : e <= 49999 ? 650 : e <= 64999 ? 920 : e <= 79999 ? 1200 : e <= 99999 ? 1480 : e <= 149999 ? 1850 : e <= 199999 ? 2770 : e <= 499999 ? 3700 : null, mi = (e) => e <= 499 ? null : e <= 999 ? 6 : e <= 1999 ? 12 : e <= 3499 ? 25 : e <= 4999 ? 40 : e <= 6499 ? 60 : e <= 7999 ? 80 : e <= 9499 ? 100 : e <= 10999 ? 110 : e <= 12499 ? 130 : e <= 13999 ? 150 : e <= 15999 ? 170 : e <= 17999 ? 200 : e <= 19999 ? 220 : e <= 34999 ? 250 : e <= 49999 ? 430 : e <= 64999 ? 620 : e <= 79999 ? 800 : e <= 99999 ? 990 : e <= 149999 ? 1230 : e <= 199999 ? 1850 : e <= 499999 ? 2400 : null, Yn = (e, t, n, r = "v1") => {
switch (r) {
case "v1":
default:
if (n === se.ES)
return di(e);
if ([
se.IT,
se.FR,
se.EN
].includes(n)) {
if (t === 4)
return hi(e);
if (t === 3)
return mi(e);
}
return 0;
}
}, fi = (e) => {
switch (e) {
case "monthly":
return 30;
case "daily":
return 1;
case "weekly":
return 7;
default:
return null;
}
}, pi = (e, t, n, r) => {
const a = n && Yn(e, t, r) || 0, i = e / t, o = e + a;
return { installmentAmount: i, total: o, splitFee: a };
}, gi = ({
installmentAmount: e,
total: t,
splitFee: n = 0
}, r, a, i, o) => {
const s = ae(
e,
a,
i,
o
), l = ae(
t,
a,
i,
o
);
let c;
return r && (c = ae(
n,
a,
i,
o
)), {
installmentAmount: s,
total: l,
splitFee: c
};
}, _i = (e, t) => {
const n = fi(e.frequencyType);
return n !== null ? n * (e.number * t) : 0;
};
var yi = /* @__PURE__ */ b('