@moneyto/components 0.0.13 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Styles-BlozloOq.js +2287 -0
- package/dist/{api-Aa0lPCOo.js → api-IpW7K_i5.js} +412 -409
- package/dist/calculator.js +1535 -1520
- package/dist/country-list.js +48 -46
- package/dist/{google-play-DwU6F6by.js → google-play-C27Sopj3.js} +193 -175
- package/dist/mobile-apps.js +420 -415
- package/package.json +1 -1
- package/dist/Styles-Dmz3r-1B.js +0 -2100
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var q = (e, t, s) =>
|
|
4
|
-
import {
|
|
1
|
+
var _t = Object.defineProperty;
|
|
2
|
+
var Ct = (e, t, s) => t in e ? _t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
|
+
var q = (e, t, s) => Ct(e, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
+
import { y as St, Y as Rt, j as X, Z as Nt, _ as ft, z as ht, $ as kt, a0 as F, a1 as pt, U as bt, G as Q, a2 as K, a3 as $, a4 as j, a5 as It, a6 as z, C as R, a7 as dt, a8 as Lt, a9 as Gt, aa as Ot, ab as Pt, A as Bt, I as Ut, ac as Ft, M as w, O as wt, F as Dt, ad as Ht, ae as Kt, af as jt, ag as tt, ah as D, D as G, ai as Wt } from "./Styles-BlozloOq.js";
|
|
5
5
|
let H = null;
|
|
6
|
-
function
|
|
6
|
+
function ta(e, t) {
|
|
7
7
|
return t;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function xt(e, t, s, n) {
|
|
10
10
|
for (var o = [], r = t.length, c = 0; c < r; c++)
|
|
11
11
|
Gt(t[c].e, o, !0);
|
|
12
12
|
var u = r > 0 && o.length === 0 && s !== null;
|
|
@@ -19,17 +19,17 @@ function Wt(e, t, s, n) {
|
|
|
19
19
|
Ot(d), d.append(
|
|
20
20
|
/** @type {Element} */
|
|
21
21
|
s
|
|
22
|
-
), n.clear(),
|
|
22
|
+
), n.clear(), S(e, t[0].prev, t[r - 1].next);
|
|
23
23
|
}
|
|
24
24
|
Pt(o, () => {
|
|
25
25
|
for (var f = 0; f < r; f++) {
|
|
26
|
-
var
|
|
27
|
-
u || (n.delete(
|
|
26
|
+
var g = t[f];
|
|
27
|
+
u || (n.delete(g.k), S(e, g.prev, g.next)), Bt(g.e, !u);
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
var c = e, u = { items: /* @__PURE__ */ new Map(), first: null }, d = (t &
|
|
31
|
+
function ea(e, t, s, n, o, r = null) {
|
|
32
|
+
var c = e, u = { flags: t, items: /* @__PURE__ */ new Map(), first: null }, d = (t & dt) !== 0;
|
|
33
33
|
if (d) {
|
|
34
34
|
var f = (
|
|
35
35
|
/** @type {Element} */
|
|
@@ -41,36 +41,33 @@ function ta(e, t, s, n, o, r = null) {
|
|
|
41
41
|
) : f.appendChild(Rt());
|
|
42
42
|
}
|
|
43
43
|
R && Dt();
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
return Ht(
|
|
44
|
+
var g = null, y = !1, p = Nt(() => {
|
|
45
|
+
var A = s();
|
|
46
|
+
return Ht(A) ? A : A == null ? [] : pt(A);
|
|
47
47
|
});
|
|
48
|
-
|
|
49
|
-
var
|
|
50
|
-
if (
|
|
48
|
+
St(() => {
|
|
49
|
+
var A = X(p), m = A.length;
|
|
50
|
+
if (y && m === 0)
|
|
51
51
|
return;
|
|
52
|
-
|
|
53
|
-
let
|
|
52
|
+
y = m === 0;
|
|
53
|
+
let E = !1;
|
|
54
54
|
if (R) {
|
|
55
|
-
var h = (
|
|
56
|
-
|
|
57
|
-
c.data === Kt
|
|
58
|
-
);
|
|
59
|
-
h !== (p === 0) && (c = tt(), w(c), D(!1), A = !0);
|
|
55
|
+
var h = Kt(c) === jt;
|
|
56
|
+
h !== (m === 0) && (c = tt(), w(c), D(!1), E = !0);
|
|
60
57
|
}
|
|
61
58
|
if (R) {
|
|
62
|
-
for (var
|
|
59
|
+
for (var v = null, M, a = 0; a < m; a++) {
|
|
63
60
|
if (G.nodeType === 8 && /** @type {Comment} */
|
|
64
|
-
G.data ===
|
|
61
|
+
G.data === Wt) {
|
|
65
62
|
c = /** @type {Comment} */
|
|
66
|
-
G,
|
|
63
|
+
G, E = !0, D(!1);
|
|
67
64
|
break;
|
|
68
65
|
}
|
|
69
|
-
var i =
|
|
70
|
-
|
|
66
|
+
var i = A[a], l = n(i, a);
|
|
67
|
+
M = mt(
|
|
71
68
|
G,
|
|
72
69
|
u,
|
|
73
|
-
|
|
70
|
+
v,
|
|
74
71
|
null,
|
|
75
72
|
i,
|
|
76
73
|
l,
|
|
@@ -78,97 +75,97 @@ function ta(e, t, s, n, o, r = null) {
|
|
|
78
75
|
o,
|
|
79
76
|
t,
|
|
80
77
|
s
|
|
81
|
-
), u.items.set(l,
|
|
78
|
+
), u.items.set(l, M), v = M;
|
|
82
79
|
}
|
|
83
|
-
|
|
80
|
+
m > 0 && w(tt());
|
|
84
81
|
}
|
|
85
|
-
R ||
|
|
86
|
-
|
|
87
|
-
})),
|
|
82
|
+
R || Yt(A, u, c, o, t, n, s), r !== null && (m === 0 ? g ? ft(g) : g = ht(() => r(c)) : g !== null && kt(g, () => {
|
|
83
|
+
g = null;
|
|
84
|
+
})), E && D(!0), X(p);
|
|
88
85
|
}), R && (c = G);
|
|
89
86
|
}
|
|
90
|
-
function
|
|
87
|
+
function Yt(e, t, s, n, o, r, c) {
|
|
91
88
|
var x, Y, Z, V;
|
|
92
|
-
var u = (o & Lt) !== 0, d = (o & (K | j)) !== 0, f = e.length,
|
|
89
|
+
var u = (o & Lt) !== 0, d = (o & (K | j)) !== 0, f = e.length, g = t.items, y = t.first, p = y, A, m = null, E, h = [], v = [], M, a, i, l;
|
|
93
90
|
if (u)
|
|
94
91
|
for (l = 0; l < f; l += 1)
|
|
95
|
-
|
|
92
|
+
M = e[l], a = r(M, l), i = g.get(a), i !== void 0 && ((x = i.a) == null || x.measure(), (E ?? (E = /* @__PURE__ */ new Set())).add(i));
|
|
96
93
|
for (l = 0; l < f; l += 1) {
|
|
97
|
-
if (
|
|
98
|
-
var
|
|
94
|
+
if (M = e[l], a = r(M, l), i = g.get(a), i === void 0) {
|
|
95
|
+
var _ = p ? (
|
|
99
96
|
/** @type {TemplateNode} */
|
|
100
|
-
|
|
97
|
+
p.e.nodes_start
|
|
101
98
|
) : s;
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
m = mt(
|
|
100
|
+
_,
|
|
104
101
|
t,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
102
|
+
m,
|
|
103
|
+
m === null ? t.first : m.next,
|
|
104
|
+
M,
|
|
108
105
|
a,
|
|
109
106
|
l,
|
|
110
107
|
n,
|
|
111
108
|
o,
|
|
112
109
|
c
|
|
113
|
-
),
|
|
110
|
+
), g.set(a, m), h = [], v = [], p = m.next;
|
|
114
111
|
continue;
|
|
115
112
|
}
|
|
116
|
-
if (d &&
|
|
117
|
-
if (
|
|
118
|
-
if (h.length <
|
|
119
|
-
var
|
|
120
|
-
|
|
113
|
+
if (d && Zt(i, M, l, o), (i.e.f & F) !== 0 && (ft(i.e), u && ((Y = i.a) == null || Y.unfix(), (E ?? (E = /* @__PURE__ */ new Set())).delete(i))), i !== p) {
|
|
114
|
+
if (A !== void 0 && A.has(i)) {
|
|
115
|
+
if (h.length < v.length) {
|
|
116
|
+
var C = v[0], T;
|
|
117
|
+
m = C.prev;
|
|
121
118
|
var W = h[0], B = h[h.length - 1];
|
|
122
|
-
for (
|
|
123
|
-
et(h[
|
|
124
|
-
for (
|
|
125
|
-
|
|
126
|
-
|
|
119
|
+
for (T = 0; T < h.length; T += 1)
|
|
120
|
+
et(h[T], C, s);
|
|
121
|
+
for (T = 0; T < v.length; T += 1)
|
|
122
|
+
A.delete(v[T]);
|
|
123
|
+
S(t, W.prev, B.next), S(t, m, W), S(t, B, C), p = C, m = B, l -= 1, h = [], v = [];
|
|
127
124
|
} else
|
|
128
|
-
|
|
125
|
+
A.delete(i), et(i, p, s), S(t, i.prev, i.next), S(t, i, m === null ? t.first : m.next), S(t, m, i), m = i;
|
|
129
126
|
continue;
|
|
130
127
|
}
|
|
131
|
-
for (h = [],
|
|
132
|
-
|
|
133
|
-
if (
|
|
128
|
+
for (h = [], v = []; p !== null && p.k !== a; )
|
|
129
|
+
(p.e.f & F) === 0 && (A ?? (A = /* @__PURE__ */ new Set())).add(p), v.push(p), p = p.next;
|
|
130
|
+
if (p === null)
|
|
134
131
|
continue;
|
|
135
|
-
i =
|
|
132
|
+
i = p;
|
|
136
133
|
}
|
|
137
|
-
h.push(i),
|
|
134
|
+
h.push(i), m = i, p = i.next;
|
|
138
135
|
}
|
|
139
|
-
if (
|
|
140
|
-
for (var L =
|
|
141
|
-
|
|
136
|
+
if (p !== null || A !== void 0) {
|
|
137
|
+
for (var L = A === void 0 ? [] : pt(A); p !== null; )
|
|
138
|
+
(p.e.f & F) === 0 && L.push(p), p = p.next;
|
|
142
139
|
var U = L.length;
|
|
143
140
|
if (U > 0) {
|
|
144
|
-
var
|
|
141
|
+
var Mt = (o & dt) !== 0 && f === 0 ? s : null;
|
|
145
142
|
if (u) {
|
|
146
143
|
for (l = 0; l < U; l += 1)
|
|
147
144
|
(Z = L[l].a) == null || Z.measure();
|
|
148
145
|
for (l = 0; l < U; l += 1)
|
|
149
146
|
(V = L[l].a) == null || V.fix();
|
|
150
147
|
}
|
|
151
|
-
|
|
148
|
+
xt(t, L, Mt, g);
|
|
152
149
|
}
|
|
153
150
|
}
|
|
154
151
|
u && bt(() => {
|
|
155
152
|
var J;
|
|
156
|
-
if (
|
|
157
|
-
for (i of
|
|
153
|
+
if (E !== void 0)
|
|
154
|
+
for (i of E)
|
|
158
155
|
(J = i.a) == null || J.apply();
|
|
159
|
-
}), Q.first = t.first && t.first.e, Q.last =
|
|
156
|
+
}), Q.first = t.first && t.first.e, Q.last = m && m.e;
|
|
160
157
|
}
|
|
161
|
-
function
|
|
162
|
-
n & K && $(e.v, t), n & j ? $(
|
|
158
|
+
function Zt(e, t, s, n) {
|
|
159
|
+
(n & K) !== 0 && $(e.v, t), (n & j) !== 0 ? $(
|
|
163
160
|
/** @type {Value<number>} */
|
|
164
161
|
e.i,
|
|
165
162
|
s
|
|
166
163
|
) : e.i = s;
|
|
167
164
|
}
|
|
168
165
|
function mt(e, t, s, n, o, r, c, u, d, f) {
|
|
169
|
-
var
|
|
170
|
-
i:
|
|
171
|
-
v:
|
|
166
|
+
var g = H, y = (d & K) !== 0, p = (d & Ft) === 0, A = y ? p ? It(o) : z(o) : o, m = (d & j) === 0 ? c : z(c), E = {
|
|
167
|
+
i: m,
|
|
168
|
+
v: A,
|
|
172
169
|
k: r,
|
|
173
170
|
a: null,
|
|
174
171
|
// @ts-expect-error
|
|
@@ -176,11 +173,11 @@ function mt(e, t, s, n, o, r, c, u, d, f) {
|
|
|
176
173
|
prev: s,
|
|
177
174
|
next: n
|
|
178
175
|
};
|
|
179
|
-
H =
|
|
176
|
+
H = E;
|
|
180
177
|
try {
|
|
181
|
-
return
|
|
178
|
+
return E.e = ht(() => u(e, A, m, f), R), E.e.prev = s && s.e, E.e.next = n && n.e, s === null ? t.first = E : (s.next = E, s.e.next = E.e), n !== null && (n.prev = E, n.e.prev = E.e), E;
|
|
182
179
|
} finally {
|
|
183
|
-
H =
|
|
180
|
+
H = g;
|
|
184
181
|
}
|
|
185
182
|
}
|
|
186
183
|
function et(e, t, s) {
|
|
@@ -201,286 +198,286 @@ function et(e, t, s) {
|
|
|
201
198
|
o.before(r), r = c;
|
|
202
199
|
}
|
|
203
200
|
}
|
|
204
|
-
function
|
|
201
|
+
function S(e, t, s) {
|
|
205
202
|
t === null ? e.first = s : (t.next = s, t.e.next = s && s.e), s !== null && (s.prev = t, s.e.prev = t && t.e);
|
|
206
203
|
}
|
|
207
|
-
function
|
|
204
|
+
function Vt(e) {
|
|
208
205
|
return String.fromCodePoint(e.toLowerCase().charCodeAt(0) + 127365);
|
|
209
206
|
}
|
|
210
|
-
function
|
|
207
|
+
function Jt(e) {
|
|
211
208
|
return e.split("-").pop().toUpperCase();
|
|
212
209
|
}
|
|
213
|
-
function
|
|
210
|
+
function sa(e) {
|
|
214
211
|
if (!e)
|
|
215
212
|
throw new Error("countryCode is required");
|
|
216
|
-
return Array.from(
|
|
213
|
+
return Array.from(Jt(e)).map(Vt).join("");
|
|
217
214
|
}
|
|
218
|
-
const
|
|
219
|
-
AND:
|
|
220
|
-
ARE:
|
|
221
|
-
AFG:
|
|
222
|
-
ATG:
|
|
223
|
-
AIA:
|
|
224
|
-
ALB:
|
|
225
|
-
ARM:
|
|
226
|
-
AGO:
|
|
227
|
-
ATA:
|
|
228
|
-
ARG:
|
|
229
|
-
ASM:
|
|
230
|
-
AUT:
|
|
231
|
-
AUS:
|
|
232
|
-
ABW:
|
|
233
|
-
ALA:
|
|
234
|
-
AZE:
|
|
235
|
-
BIH:
|
|
236
|
-
BRB:
|
|
237
|
-
BGD:
|
|
215
|
+
const qt = "AD", Xt = "AE", Qt = "AF", $t = "AG", zt = "AI", te = "AL", ee = "AM", se = "AO", ne = "AQ", oe = "AR", re = "AS", ae = "AT", ie = "AU", ce = "AW", le = "AX", ue = "AZ", fe = "BA", he = "BB", pe = "BD", de = "BE", me = "BF", Ae = "BG", Ee = "BH", ge = "BI", ve = "BJ", ye = "BL", Te = "BM", Me = "BN", _e = "BO", Ce = "BQ", Se = "BR", Re = "BS", Ne = "BT", ke = "BV", be = "BW", Ie = "BY", Le = "BZ", Ge = "CA", Oe = "CC", Pe = "CD", Be = "CF", Ue = "CG", Fe = "CH", we = "CI", De = "CK", He = "CL", Ke = "CM", je = "CN", We = "CO", xe = "CR", Ye = "CU", Ze = "CV", Ve = "CW", Je = "CX", qe = "CY", Xe = "CZ", Qe = "DE", $e = "DJ", ze = "DK", ts = "DM", es = "DO", ss = "DZ", ns = "EC", os = "EE", rs = "EG", as = "EH", is = "ER", cs = "ES", ls = "ET", us = "FI", fs = "FJ", hs = "FK", ps = "FM", ds = "FO", ms = "FR", As = "GA", Es = "GB", gs = "GD", vs = "GE", ys = "GF", Ts = "GG", Ms = "GH", _s = "GI", Cs = "GL", Ss = "GM", Rs = "GN", Ns = "GP", ks = "GQ", bs = "GR", Is = "GS", Ls = "GT", Gs = "GU", Os = "GW", Ps = "GY", Bs = "HK", Us = "HM", Fs = "HN", ws = "HR", Ds = "HT", Hs = "HU", Ks = "ID", js = "IE", Ws = "IL", xs = "IM", Ys = "IN", Zs = "IO", Vs = "IQ", Js = "IR", qs = "IS", Xs = "IT", Qs = "JE", $s = "JM", zs = "JO", tn = "JP", en = "KE", sn = "KG", nn = "KH", on = "KI", rn = "KM", an = "KN", cn = "KP", ln = "KR", un = "KW", fn = "KY", hn = "KZ", pn = "LA", dn = "LB", mn = "LC", An = "LI", En = "LK", gn = "LR", vn = "LS", yn = "LT", Tn = "LU", Mn = "LV", _n = "LY", Cn = "MA", Sn = "MC", Rn = "MD", Nn = "ME", kn = "MF", bn = "MG", In = "MH", Ln = "MK", Gn = "ML", On = "MM", Pn = "MN", Bn = "MO", Un = "MP", Fn = "MQ", wn = "MR", Dn = "MS", Hn = "MT", Kn = "MU", jn = "MV", Wn = "MW", xn = "MX", Yn = "MY", Zn = "MZ", Vn = "NA", Jn = "NC", qn = "NE", Xn = "NF", Qn = "NG", $n = "NI", zn = "NL", to = "NO", eo = "NP", so = "NR", no = "NU", oo = "NZ", ro = "OM", ao = "PA", io = "PE", co = "PF", lo = "PG", uo = "PH", fo = "PK", ho = "PL", po = "PM", mo = "PN", Ao = "PR", Eo = "PS", go = "PT", vo = "PW", yo = "PY", To = "QA", Mo = "RE", _o = "RO", Co = "RS", So = "RU", Ro = "RW", No = "SA", ko = "SB", bo = "SC", Io = "SD", Lo = "SE", Go = "SG", Oo = "SH", Po = "SI", Bo = "SJ", Uo = "SK", Fo = "SL", wo = "SM", Do = "SN", Ho = "SO", Ko = "SR", jo = "SS", Wo = "ST", xo = "SV", Yo = "SX", Zo = "SY", Vo = "SZ", Jo = "TC", qo = "TD", Xo = "TF", Qo = "TG", $o = "TH", zo = "TJ", tr = "TK", er = "TL", sr = "TM", nr = "TN", or = "TO", rr = "TR", ar = "TT", ir = "TV", cr = "TW", lr = "TZ", ur = "UA", fr = "UG", hr = "UM", pr = "US", dr = "UY", mr = "UZ", Ar = "VA", Er = "VC", gr = "VE", vr = "VG", yr = "VI", Tr = "VN", Mr = "VU", _r = "WF", Cr = "WS", Sr = "XK", Rr = "YE", Nr = "YT", kr = "ZA", br = "ZM", Ir = "ZW", na = {
|
|
216
|
+
AND: qt,
|
|
217
|
+
ARE: Xt,
|
|
218
|
+
AFG: Qt,
|
|
219
|
+
ATG: $t,
|
|
220
|
+
AIA: zt,
|
|
221
|
+
ALB: te,
|
|
222
|
+
ARM: ee,
|
|
223
|
+
AGO: se,
|
|
224
|
+
ATA: ne,
|
|
225
|
+
ARG: oe,
|
|
226
|
+
ASM: re,
|
|
227
|
+
AUT: ae,
|
|
228
|
+
AUS: ie,
|
|
229
|
+
ABW: ce,
|
|
230
|
+
ALA: le,
|
|
231
|
+
AZE: ue,
|
|
232
|
+
BIH: fe,
|
|
233
|
+
BRB: he,
|
|
234
|
+
BGD: pe,
|
|
238
235
|
BEL: de,
|
|
239
|
-
BFA:
|
|
240
|
-
BGR:
|
|
241
|
-
BHR:
|
|
242
|
-
BDI:
|
|
243
|
-
BEN:
|
|
236
|
+
BFA: me,
|
|
237
|
+
BGR: Ae,
|
|
238
|
+
BHR: Ee,
|
|
239
|
+
BDI: ge,
|
|
240
|
+
BEN: ve,
|
|
244
241
|
BLM: ye,
|
|
245
242
|
BMU: Te,
|
|
246
243
|
BRN: Me,
|
|
247
|
-
BOL:
|
|
244
|
+
BOL: _e,
|
|
248
245
|
BES: Ce,
|
|
249
246
|
BRA: Se,
|
|
250
|
-
BHS:
|
|
251
|
-
BTN:
|
|
252
|
-
BVT:
|
|
253
|
-
BWA:
|
|
254
|
-
BLR:
|
|
255
|
-
BLZ:
|
|
256
|
-
CAN:
|
|
257
|
-
CCK:
|
|
258
|
-
COD:
|
|
259
|
-
CAF:
|
|
260
|
-
COG:
|
|
261
|
-
CHE:
|
|
262
|
-
CIV:
|
|
263
|
-
COK:
|
|
264
|
-
CHL:
|
|
265
|
-
CMR:
|
|
266
|
-
CHN:
|
|
267
|
-
COL:
|
|
268
|
-
CRI:
|
|
269
|
-
CUB:
|
|
270
|
-
CPV:
|
|
271
|
-
CUW:
|
|
272
|
-
CXR:
|
|
273
|
-
CYP:
|
|
274
|
-
CZE:
|
|
275
|
-
DEU:
|
|
276
|
-
DJI:
|
|
277
|
-
DNK:
|
|
278
|
-
DMA:
|
|
279
|
-
DOM:
|
|
280
|
-
DZA:
|
|
281
|
-
ECU:
|
|
282
|
-
EST:
|
|
283
|
-
EGY:
|
|
284
|
-
ESH:
|
|
285
|
-
ERI:
|
|
286
|
-
ESP:
|
|
287
|
-
ETH:
|
|
288
|
-
FIN:
|
|
289
|
-
FJI:
|
|
290
|
-
FLK:
|
|
291
|
-
FSM:
|
|
247
|
+
BHS: Re,
|
|
248
|
+
BTN: Ne,
|
|
249
|
+
BVT: ke,
|
|
250
|
+
BWA: be,
|
|
251
|
+
BLR: Ie,
|
|
252
|
+
BLZ: Le,
|
|
253
|
+
CAN: Ge,
|
|
254
|
+
CCK: Oe,
|
|
255
|
+
COD: Pe,
|
|
256
|
+
CAF: Be,
|
|
257
|
+
COG: Ue,
|
|
258
|
+
CHE: Fe,
|
|
259
|
+
CIV: we,
|
|
260
|
+
COK: De,
|
|
261
|
+
CHL: He,
|
|
262
|
+
CMR: Ke,
|
|
263
|
+
CHN: je,
|
|
264
|
+
COL: We,
|
|
265
|
+
CRI: xe,
|
|
266
|
+
CUB: Ye,
|
|
267
|
+
CPV: Ze,
|
|
268
|
+
CUW: Ve,
|
|
269
|
+
CXR: Je,
|
|
270
|
+
CYP: qe,
|
|
271
|
+
CZE: Xe,
|
|
272
|
+
DEU: Qe,
|
|
273
|
+
DJI: $e,
|
|
274
|
+
DNK: ze,
|
|
275
|
+
DMA: ts,
|
|
276
|
+
DOM: es,
|
|
277
|
+
DZA: ss,
|
|
278
|
+
ECU: ns,
|
|
279
|
+
EST: os,
|
|
280
|
+
EGY: rs,
|
|
281
|
+
ESH: as,
|
|
282
|
+
ERI: is,
|
|
283
|
+
ESP: cs,
|
|
284
|
+
ETH: ls,
|
|
285
|
+
FIN: us,
|
|
286
|
+
FJI: fs,
|
|
287
|
+
FLK: hs,
|
|
288
|
+
FSM: ps,
|
|
292
289
|
FRO: ds,
|
|
293
|
-
FRA:
|
|
294
|
-
GAB:
|
|
295
|
-
GBR:
|
|
296
|
-
GRD:
|
|
297
|
-
GEO:
|
|
290
|
+
FRA: ms,
|
|
291
|
+
GAB: As,
|
|
292
|
+
GBR: Es,
|
|
293
|
+
GRD: gs,
|
|
294
|
+
GEO: vs,
|
|
298
295
|
GUF: ys,
|
|
299
296
|
GGY: Ts,
|
|
300
297
|
GHA: Ms,
|
|
301
|
-
GIB:
|
|
298
|
+
GIB: _s,
|
|
302
299
|
GRL: Cs,
|
|
303
300
|
GMB: Ss,
|
|
304
|
-
GIN:
|
|
305
|
-
GLP:
|
|
306
|
-
GNQ:
|
|
307
|
-
GRC:
|
|
308
|
-
SGS:
|
|
309
|
-
GTM:
|
|
310
|
-
GUM:
|
|
311
|
-
GNB:
|
|
312
|
-
GUY:
|
|
313
|
-
HKG:
|
|
314
|
-
HMD:
|
|
315
|
-
HND:
|
|
316
|
-
HRV:
|
|
317
|
-
HTI:
|
|
318
|
-
HUN:
|
|
319
|
-
IDN:
|
|
320
|
-
IRL:
|
|
321
|
-
ISR:
|
|
322
|
-
IMN:
|
|
323
|
-
IND:
|
|
324
|
-
IOT:
|
|
325
|
-
IRQ:
|
|
326
|
-
IRN:
|
|
327
|
-
ISL:
|
|
328
|
-
ITA:
|
|
329
|
-
JEY:
|
|
330
|
-
JAM:
|
|
331
|
-
JOR:
|
|
332
|
-
JPN:
|
|
333
|
-
KEN:
|
|
334
|
-
KGZ:
|
|
335
|
-
KHM:
|
|
336
|
-
KIR:
|
|
337
|
-
COM:
|
|
338
|
-
KNA:
|
|
339
|
-
PRK:
|
|
340
|
-
KOR:
|
|
341
|
-
KWT:
|
|
342
|
-
CYM:
|
|
343
|
-
KAZ:
|
|
344
|
-
LAO:
|
|
301
|
+
GIN: Rs,
|
|
302
|
+
GLP: Ns,
|
|
303
|
+
GNQ: ks,
|
|
304
|
+
GRC: bs,
|
|
305
|
+
SGS: Is,
|
|
306
|
+
GTM: Ls,
|
|
307
|
+
GUM: Gs,
|
|
308
|
+
GNB: Os,
|
|
309
|
+
GUY: Ps,
|
|
310
|
+
HKG: Bs,
|
|
311
|
+
HMD: Us,
|
|
312
|
+
HND: Fs,
|
|
313
|
+
HRV: ws,
|
|
314
|
+
HTI: Ds,
|
|
315
|
+
HUN: Hs,
|
|
316
|
+
IDN: Ks,
|
|
317
|
+
IRL: js,
|
|
318
|
+
ISR: Ws,
|
|
319
|
+
IMN: xs,
|
|
320
|
+
IND: Ys,
|
|
321
|
+
IOT: Zs,
|
|
322
|
+
IRQ: Vs,
|
|
323
|
+
IRN: Js,
|
|
324
|
+
ISL: qs,
|
|
325
|
+
ITA: Xs,
|
|
326
|
+
JEY: Qs,
|
|
327
|
+
JAM: $s,
|
|
328
|
+
JOR: zs,
|
|
329
|
+
JPN: tn,
|
|
330
|
+
KEN: en,
|
|
331
|
+
KGZ: sn,
|
|
332
|
+
KHM: nn,
|
|
333
|
+
KIR: on,
|
|
334
|
+
COM: rn,
|
|
335
|
+
KNA: an,
|
|
336
|
+
PRK: cn,
|
|
337
|
+
KOR: ln,
|
|
338
|
+
KWT: un,
|
|
339
|
+
CYM: fn,
|
|
340
|
+
KAZ: hn,
|
|
341
|
+
LAO: pn,
|
|
345
342
|
LBN: dn,
|
|
346
|
-
LCA:
|
|
347
|
-
LIE:
|
|
348
|
-
LKA:
|
|
349
|
-
LBR:
|
|
350
|
-
LSO:
|
|
343
|
+
LCA: mn,
|
|
344
|
+
LIE: An,
|
|
345
|
+
LKA: En,
|
|
346
|
+
LBR: gn,
|
|
347
|
+
LSO: vn,
|
|
351
348
|
LTU: yn,
|
|
352
349
|
LUX: Tn,
|
|
353
350
|
LVA: Mn,
|
|
354
|
-
LBY:
|
|
351
|
+
LBY: _n,
|
|
355
352
|
MAR: Cn,
|
|
356
353
|
MCO: Sn,
|
|
357
|
-
MDA:
|
|
358
|
-
MNE:
|
|
359
|
-
MAF:
|
|
360
|
-
MDG:
|
|
361
|
-
MHL:
|
|
362
|
-
MKD:
|
|
363
|
-
MLI:
|
|
364
|
-
MMR:
|
|
365
|
-
MNG:
|
|
366
|
-
MAC:
|
|
367
|
-
MNP:
|
|
368
|
-
MTQ:
|
|
369
|
-
MRT:
|
|
370
|
-
MSR:
|
|
371
|
-
MLT:
|
|
372
|
-
MUS:
|
|
373
|
-
MDV:
|
|
374
|
-
MWI:
|
|
375
|
-
MEX:
|
|
376
|
-
MYS:
|
|
377
|
-
MOZ:
|
|
378
|
-
NAM:
|
|
379
|
-
NCL:
|
|
380
|
-
NER:
|
|
381
|
-
NFK:
|
|
382
|
-
NGA:
|
|
383
|
-
NIC:
|
|
384
|
-
NLD:
|
|
385
|
-
NOR:
|
|
386
|
-
NPL:
|
|
387
|
-
NRU:
|
|
388
|
-
NIU:
|
|
389
|
-
NZL:
|
|
390
|
-
OMN:
|
|
391
|
-
PAN:
|
|
392
|
-
PER:
|
|
393
|
-
PYF:
|
|
394
|
-
PNG:
|
|
395
|
-
PHL:
|
|
396
|
-
PAK:
|
|
397
|
-
POL:
|
|
398
|
-
SPM:
|
|
399
|
-
PCN:
|
|
400
|
-
PRI:
|
|
401
|
-
PSE:
|
|
402
|
-
PRT:
|
|
403
|
-
PLW:
|
|
354
|
+
MDA: Rn,
|
|
355
|
+
MNE: Nn,
|
|
356
|
+
MAF: kn,
|
|
357
|
+
MDG: bn,
|
|
358
|
+
MHL: In,
|
|
359
|
+
MKD: Ln,
|
|
360
|
+
MLI: Gn,
|
|
361
|
+
MMR: On,
|
|
362
|
+
MNG: Pn,
|
|
363
|
+
MAC: Bn,
|
|
364
|
+
MNP: Un,
|
|
365
|
+
MTQ: Fn,
|
|
366
|
+
MRT: wn,
|
|
367
|
+
MSR: Dn,
|
|
368
|
+
MLT: Hn,
|
|
369
|
+
MUS: Kn,
|
|
370
|
+
MDV: jn,
|
|
371
|
+
MWI: Wn,
|
|
372
|
+
MEX: xn,
|
|
373
|
+
MYS: Yn,
|
|
374
|
+
MOZ: Zn,
|
|
375
|
+
NAM: Vn,
|
|
376
|
+
NCL: Jn,
|
|
377
|
+
NER: qn,
|
|
378
|
+
NFK: Xn,
|
|
379
|
+
NGA: Qn,
|
|
380
|
+
NIC: $n,
|
|
381
|
+
NLD: zn,
|
|
382
|
+
NOR: to,
|
|
383
|
+
NPL: eo,
|
|
384
|
+
NRU: so,
|
|
385
|
+
NIU: no,
|
|
386
|
+
NZL: oo,
|
|
387
|
+
OMN: ro,
|
|
388
|
+
PAN: ao,
|
|
389
|
+
PER: io,
|
|
390
|
+
PYF: co,
|
|
391
|
+
PNG: lo,
|
|
392
|
+
PHL: uo,
|
|
393
|
+
PAK: fo,
|
|
394
|
+
POL: ho,
|
|
395
|
+
SPM: po,
|
|
396
|
+
PCN: mo,
|
|
397
|
+
PRI: Ao,
|
|
398
|
+
PSE: Eo,
|
|
399
|
+
PRT: go,
|
|
400
|
+
PLW: vo,
|
|
404
401
|
PRY: yo,
|
|
405
402
|
QAT: To,
|
|
406
403
|
REU: Mo,
|
|
407
|
-
ROU:
|
|
404
|
+
ROU: _o,
|
|
408
405
|
SRB: Co,
|
|
409
406
|
RUS: So,
|
|
410
|
-
RWA:
|
|
411
|
-
SAU:
|
|
412
|
-
SLB:
|
|
413
|
-
SYC:
|
|
414
|
-
SDN:
|
|
415
|
-
SWE:
|
|
416
|
-
SGP:
|
|
417
|
-
SHN:
|
|
418
|
-
SVN:
|
|
419
|
-
SJM:
|
|
420
|
-
SVK:
|
|
421
|
-
SLE:
|
|
422
|
-
SMR:
|
|
423
|
-
SEN:
|
|
424
|
-
SOM:
|
|
425
|
-
SUR:
|
|
426
|
-
SSD:
|
|
427
|
-
STP:
|
|
428
|
-
SLV:
|
|
429
|
-
SXM:
|
|
430
|
-
SYR:
|
|
431
|
-
SWZ:
|
|
432
|
-
TCA:
|
|
433
|
-
TCD:
|
|
434
|
-
ATF:
|
|
435
|
-
TGO:
|
|
436
|
-
THA:
|
|
437
|
-
TJK:
|
|
438
|
-
TKL:
|
|
439
|
-
TLS:
|
|
440
|
-
TKM:
|
|
441
|
-
TUN:
|
|
442
|
-
TON:
|
|
443
|
-
TUR:
|
|
444
|
-
TTO:
|
|
445
|
-
TUV:
|
|
446
|
-
TWN:
|
|
447
|
-
TZA:
|
|
448
|
-
UKR:
|
|
449
|
-
UGA:
|
|
450
|
-
UMI:
|
|
451
|
-
USA:
|
|
407
|
+
RWA: Ro,
|
|
408
|
+
SAU: No,
|
|
409
|
+
SLB: ko,
|
|
410
|
+
SYC: bo,
|
|
411
|
+
SDN: Io,
|
|
412
|
+
SWE: Lo,
|
|
413
|
+
SGP: Go,
|
|
414
|
+
SHN: Oo,
|
|
415
|
+
SVN: Po,
|
|
416
|
+
SJM: Bo,
|
|
417
|
+
SVK: Uo,
|
|
418
|
+
SLE: Fo,
|
|
419
|
+
SMR: wo,
|
|
420
|
+
SEN: Do,
|
|
421
|
+
SOM: Ho,
|
|
422
|
+
SUR: Ko,
|
|
423
|
+
SSD: jo,
|
|
424
|
+
STP: Wo,
|
|
425
|
+
SLV: xo,
|
|
426
|
+
SXM: Yo,
|
|
427
|
+
SYR: Zo,
|
|
428
|
+
SWZ: Vo,
|
|
429
|
+
TCA: Jo,
|
|
430
|
+
TCD: qo,
|
|
431
|
+
ATF: Xo,
|
|
432
|
+
TGO: Qo,
|
|
433
|
+
THA: $o,
|
|
434
|
+
TJK: zo,
|
|
435
|
+
TKL: tr,
|
|
436
|
+
TLS: er,
|
|
437
|
+
TKM: sr,
|
|
438
|
+
TUN: nr,
|
|
439
|
+
TON: or,
|
|
440
|
+
TUR: rr,
|
|
441
|
+
TTO: ar,
|
|
442
|
+
TUV: ir,
|
|
443
|
+
TWN: cr,
|
|
444
|
+
TZA: lr,
|
|
445
|
+
UKR: ur,
|
|
446
|
+
UGA: fr,
|
|
447
|
+
UMI: hr,
|
|
448
|
+
USA: pr,
|
|
452
449
|
URY: dr,
|
|
453
|
-
UZB:
|
|
454
|
-
VAT:
|
|
455
|
-
VCT:
|
|
456
|
-
VEN:
|
|
457
|
-
VGB:
|
|
450
|
+
UZB: mr,
|
|
451
|
+
VAT: Ar,
|
|
452
|
+
VCT: Er,
|
|
453
|
+
VEN: gr,
|
|
454
|
+
VGB: vr,
|
|
458
455
|
VIR: yr,
|
|
459
456
|
VNM: Tr,
|
|
460
457
|
VUT: Mr,
|
|
461
|
-
WLF:
|
|
458
|
+
WLF: _r,
|
|
462
459
|
WSM: Cr,
|
|
463
460
|
XKX: Sr,
|
|
464
|
-
YEM:
|
|
465
|
-
MYT:
|
|
466
|
-
ZAF:
|
|
467
|
-
ZMB:
|
|
468
|
-
ZWE:
|
|
469
|
-
},
|
|
470
|
-
function
|
|
461
|
+
YEM: Rr,
|
|
462
|
+
MYT: Nr,
|
|
463
|
+
ZAF: kr,
|
|
464
|
+
ZMB: br,
|
|
465
|
+
ZWE: Ir
|
|
466
|
+
}, Lr = '"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif';
|
|
467
|
+
function Gr() {
|
|
471
468
|
const e = document.createElement("canvas");
|
|
472
469
|
e.width = e.height = 1;
|
|
473
470
|
const t = e.getContext("2d", { willReadFrequently: !0 });
|
|
474
|
-
return t.textBaseline = "top", t.font = `100px ${
|
|
471
|
+
return t.textBaseline = "top", t.font = `100px ${Lr}`, t.scale(0.01, 0.01), t;
|
|
475
472
|
}
|
|
476
473
|
function st(e, t, s) {
|
|
477
474
|
return e.clearRect(0, 0, 100, 100), e.fillStyle = s, e.fillText(t, 0, 0), e.getImageData(0, 0, 1, 1).data.join(",");
|
|
478
475
|
}
|
|
479
476
|
function nt(e) {
|
|
480
|
-
const t =
|
|
477
|
+
const t = Gr(), s = st(t, e, "#fff"), n = st(t, e, "#000");
|
|
481
478
|
return n === s && !n.startsWith("0,0,0,");
|
|
482
479
|
}
|
|
483
|
-
function
|
|
480
|
+
function oa(e = "Twemoji Country Flags", t = "https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2") {
|
|
484
481
|
if (typeof window < "u" && nt("😊") && !nt("🇨🇭")) {
|
|
485
482
|
const s = document.createElement("style");
|
|
486
483
|
return s.textContent = `@font-face {
|
|
@@ -493,7 +490,7 @@ function na(e = "Twemoji Country Flags", t = "https://cdn.jsdelivr.net/npm/count
|
|
|
493
490
|
}
|
|
494
491
|
return !1;
|
|
495
492
|
}
|
|
496
|
-
var
|
|
493
|
+
var Or = Object.defineProperty, Pr = (e, t, s) => t in e ? Or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, O = (e, t, s) => Pr(e, typeof t != "symbol" ? t + "" : t, s);
|
|
497
494
|
const ot = {
|
|
498
495
|
"#": { pattern: /[0-9]/ },
|
|
499
496
|
"@": { pattern: /[a-zA-Z]/ },
|
|
@@ -505,19 +502,19 @@ const ot = {
|
|
|
505
502
|
maximumFractionDigits: t,
|
|
506
503
|
roundingMode: "trunc"
|
|
507
504
|
});
|
|
508
|
-
},
|
|
505
|
+
}, Br = (e, t = !0, s) => {
|
|
509
506
|
var n, o, r, c;
|
|
510
507
|
const u = ((n = s.number) == null ? void 0 : n.unsigned) !== !0 && e.startsWith("-") ? "-" : "", d = ((o = s.number) == null ? void 0 : o.fraction) ?? 0;
|
|
511
508
|
let f = at(0, d, s);
|
|
512
|
-
const
|
|
513
|
-
if (Number.isNaN(parseFloat(
|
|
514
|
-
const
|
|
515
|
-
if (
|
|
516
|
-
const h =
|
|
509
|
+
const g = f.formatToParts(1000.12), y = ((r = g.find((h) => h.type === "group")) == null ? void 0 : r.value) ?? " ", p = ((c = g.find((h) => h.type === "decimal")) == null ? void 0 : c.value) ?? ".", A = rt(e, y, p);
|
|
510
|
+
if (Number.isNaN(parseFloat(A))) return u;
|
|
511
|
+
const m = A.split(".");
|
|
512
|
+
if (m[1] != null && m[1].length >= 1) {
|
|
513
|
+
const h = m[1].length <= d ? m[1].length : d;
|
|
517
514
|
f = at(h, d, s);
|
|
518
515
|
}
|
|
519
|
-
let
|
|
520
|
-
return t ? d > 0 &&
|
|
516
|
+
let E = f.format(parseFloat(A));
|
|
517
|
+
return t ? d > 0 && A.endsWith(".") && !A.slice(0, -1).includes(".") && (E += p) : E = rt(E, y, p), u + E;
|
|
521
518
|
};
|
|
522
519
|
class At {
|
|
523
520
|
constructor(t = {}) {
|
|
@@ -567,34 +564,34 @@ class At {
|
|
|
567
564
|
}), { mask: s.join(""), escaped: n };
|
|
568
565
|
}
|
|
569
566
|
process(t, s, n = !0) {
|
|
570
|
-
if (this.opts.number != null) return
|
|
567
|
+
if (this.opts.number != null) return Br(t, n, this.opts);
|
|
571
568
|
if (s == null) return t;
|
|
572
569
|
const o = `v=${t},mr=${s},m=${n ? 1 : 0}`;
|
|
573
570
|
if (this.memo.has(o)) return this.memo.get(o);
|
|
574
|
-
const { mask: r, escaped: c } = this.escapeMask(s), u = [], d = this.opts.tokens != null ? this.opts.tokens : {}, f = this.isReversed() ? -1 : 1,
|
|
575
|
-
let
|
|
576
|
-
for (;
|
|
577
|
-
const a = r.charAt(h), i = d[a], l = (i == null ? void 0 : i.transform) != null ? i.transform(t.charAt(
|
|
578
|
-
if (!c.includes(h) && i != null ? (l.match(i.pattern) != null ? (u[
|
|
579
|
-
for (;
|
|
571
|
+
const { mask: r, escaped: c } = this.escapeMask(s), u = [], d = this.opts.tokens != null ? this.opts.tokens : {}, f = this.isReversed() ? -1 : 1, g = this.isReversed() ? "unshift" : "push", y = this.isReversed() ? 0 : r.length - 1, p = this.isReversed() ? () => h > -1 && v > -1 : () => h < r.length && v < t.length, A = (a) => !this.isReversed() && a <= y || this.isReversed() && a >= y;
|
|
572
|
+
let m, E = -1, h = this.isReversed() ? r.length - 1 : 0, v = this.isReversed() ? t.length - 1 : 0, M = !1;
|
|
573
|
+
for (; p(); ) {
|
|
574
|
+
const a = r.charAt(h), i = d[a], l = (i == null ? void 0 : i.transform) != null ? i.transform(t.charAt(v)) : t.charAt(v);
|
|
575
|
+
if (!c.includes(h) && i != null ? (l.match(i.pattern) != null ? (u[g](l), i.repeated ? (E === -1 ? E = h : h === y && h !== E && (h = E - f), y === E && (h -= f)) : i.multiple && (M = !0, h -= f), h += f) : i.multiple ? M && (h += f, v -= f, M = !1) : l === m ? m = void 0 : i.optional && (h += f, v -= f), v += f) : (n && !this.isEager() && u[g](a), l === a && !this.isEager() ? v += f : m = a, this.isEager() || (h += f)), this.isEager())
|
|
576
|
+
for (; A(h) && (d[r.charAt(h)] == null || c.includes(h)); ) {
|
|
580
577
|
if (n) {
|
|
581
|
-
if (u[
|
|
582
|
-
h += f,
|
|
578
|
+
if (u[g](r.charAt(h)), t.charAt(v) === r.charAt(h)) {
|
|
579
|
+
h += f, v += f;
|
|
583
580
|
continue;
|
|
584
581
|
}
|
|
585
|
-
} else r.charAt(h) === t.charAt(
|
|
582
|
+
} else r.charAt(h) === t.charAt(v) && (v += f);
|
|
586
583
|
h += f;
|
|
587
584
|
}
|
|
588
585
|
}
|
|
589
586
|
return this.memo.set(o, u.join("")), this.memo.get(o);
|
|
590
587
|
}
|
|
591
588
|
}
|
|
592
|
-
const Et = (e) => JSON.parse(e.replaceAll("'", '"')),
|
|
589
|
+
const Et = (e) => JSON.parse(e.replaceAll("'", '"')), Ur = (e, t = {}) => {
|
|
593
590
|
const s = { ...t };
|
|
594
|
-
e.dataset.maska != null && e.dataset.maska !== "" && (s.mask =
|
|
591
|
+
e.dataset.maska != null && e.dataset.maska !== "" && (s.mask = Fr(e.dataset.maska)), e.dataset.maskaEager != null && (s.eager = P(e.dataset.maskaEager)), e.dataset.maskaReversed != null && (s.reversed = P(e.dataset.maskaReversed)), e.dataset.maskaTokensReplace != null && (s.tokensReplace = P(e.dataset.maskaTokensReplace)), e.dataset.maskaTokens != null && (s.tokens = wr(e.dataset.maskaTokens));
|
|
595
592
|
const n = {};
|
|
596
593
|
return e.dataset.maskaNumberLocale != null && (n.locale = e.dataset.maskaNumberLocale), e.dataset.maskaNumberFraction != null && (n.fraction = parseInt(e.dataset.maskaNumberFraction)), e.dataset.maskaNumberUnsigned != null && (n.unsigned = P(e.dataset.maskaNumberUnsigned)), (e.dataset.maskaNumber != null || Object.values(n).length > 0) && (s.number = n), s;
|
|
597
|
-
}, P = (e) => e !== "" ? !!JSON.parse(e) : !0,
|
|
594
|
+
}, P = (e) => e !== "" ? !!JSON.parse(e) : !0, Fr = (e) => e.startsWith("[") && e.endsWith("]") ? Et(e) : e, wr = (e) => {
|
|
598
595
|
if (e.startsWith("{") && e.endsWith("}"))
|
|
599
596
|
return Et(e);
|
|
600
597
|
const t = {};
|
|
@@ -608,12 +605,14 @@ const Et = (e) => JSON.parse(e.replaceAll("'", '"')), Br = (e, t = {}) => {
|
|
|
608
605
|
};
|
|
609
606
|
}), t;
|
|
610
607
|
};
|
|
611
|
-
class
|
|
608
|
+
class ra {
|
|
612
609
|
constructor(t, s = {}) {
|
|
613
610
|
O(this, "items", /* @__PURE__ */ new Map()), O(this, "eventAbortController"), O(this, "onInput", (n) => {
|
|
614
611
|
if (n instanceof CustomEvent && n.type === "input" && !n.isTrusted && !n.bubbles)
|
|
615
612
|
return;
|
|
616
|
-
const o = n.target, r = this.items.get(o)
|
|
613
|
+
const o = n.target, r = this.items.get(o);
|
|
614
|
+
if (r === void 0) return;
|
|
615
|
+
const c = "inputType" in n && n.inputType.startsWith("delete"), u = r.isEager(), d = c && u && r.unmasked(o.value) === "" ? "" : o.value;
|
|
617
616
|
this.fixCursor(o, c, () => this.setValue(o, d));
|
|
618
617
|
}), this.options = s, this.eventAbortController = new AbortController(), this.init(this.getInputs(t));
|
|
619
618
|
}
|
|
@@ -621,7 +620,8 @@ class oa {
|
|
|
621
620
|
this.options = { ...t }, this.init(Array.from(this.items.keys()));
|
|
622
621
|
}
|
|
623
622
|
updateValue(t) {
|
|
624
|
-
|
|
623
|
+
var s;
|
|
624
|
+
t.value !== "" && t.value !== ((s = this.processInput(t)) == null ? void 0 : s.masked) && this.setValue(t, t.value);
|
|
625
625
|
}
|
|
626
626
|
destroy() {
|
|
627
627
|
this.eventAbortController.abort(), this.items.clear();
|
|
@@ -633,7 +633,7 @@ class oa {
|
|
|
633
633
|
const { signal: r } = this.eventAbortController;
|
|
634
634
|
n.addEventListener("input", this.onInput, { capture: !0, signal: r });
|
|
635
635
|
}
|
|
636
|
-
const o = new At(
|
|
636
|
+
const o = new At(Ur(n, s));
|
|
637
637
|
this.items.set(n, o), queueMicrotask(() => this.updateValue(n)), n.selectionStart === null && o.isEager() && console.warn("Maska: input of `%s` type is not supported", n.type);
|
|
638
638
|
}
|
|
639
639
|
}
|
|
@@ -645,18 +645,21 @@ class oa {
|
|
|
645
645
|
return r;
|
|
646
646
|
}
|
|
647
647
|
fixCursor(t, s, n) {
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
648
|
+
var o, r;
|
|
649
|
+
const c = t.selectionStart, u = t.value;
|
|
650
|
+
if (n(), c === null || c === u.length && !s) return;
|
|
651
|
+
const d = t.value, f = u.slice(0, c), g = d.slice(0, c), y = (o = this.processInput(t, f)) == null ? void 0 : o.unmasked, p = (r = this.processInput(t, g)) == null ? void 0 : r.unmasked;
|
|
652
|
+
if (y === void 0 || p === void 0) return;
|
|
653
|
+
let A = c;
|
|
654
|
+
f !== g && (A += s ? d.length - u.length : y.length - p.length), t.setSelectionRange(A, A);
|
|
653
655
|
}
|
|
654
656
|
setValue(t, s) {
|
|
655
657
|
const n = this.processInput(t, s);
|
|
656
|
-
t.value = n.masked, this.options.onMaska != null && (Array.isArray(this.options.onMaska) ? this.options.onMaska.forEach((o) => o(n)) : this.options.onMaska(n)), t.dispatchEvent(new CustomEvent("maska", { detail: n })), t.dispatchEvent(new CustomEvent("input", { detail: n.masked }));
|
|
658
|
+
n !== void 0 && (t.value = n.masked, this.options.onMaska != null && (Array.isArray(this.options.onMaska) ? this.options.onMaska.forEach((o) => o(n)) : this.options.onMaska(n)), t.dispatchEvent(new CustomEvent("maska", { detail: n })), t.dispatchEvent(new CustomEvent("input", { detail: n.masked })));
|
|
657
659
|
}
|
|
658
660
|
processInput(t, s) {
|
|
659
661
|
const n = this.items.get(t);
|
|
662
|
+
if (n === void 0) return;
|
|
660
663
|
let o = s ?? t.value;
|
|
661
664
|
this.options.preProcess != null && (o = this.options.preProcess(o));
|
|
662
665
|
let r = n.masked(o);
|
|
@@ -667,7 +670,7 @@ class oa {
|
|
|
667
670
|
};
|
|
668
671
|
}
|
|
669
672
|
}
|
|
670
|
-
const
|
|
673
|
+
const Dr = "application/json", gt = "Content-Type", b = Symbol(), vt = Symbol();
|
|
671
674
|
function it(e = {}) {
|
|
672
675
|
var t;
|
|
673
676
|
const s = e instanceof Array ? Object.fromEntries(e) : e;
|
|
@@ -703,49 +706,49 @@ const N = function(e, t, s = !1) {
|
|
|
703
706
|
return s && o ? new o(...n) : o;
|
|
704
707
|
}
|
|
705
708
|
};
|
|
706
|
-
function
|
|
709
|
+
function Hr(e, t = !1) {
|
|
707
710
|
I.options = t ? e : N(I.options, e);
|
|
708
711
|
}
|
|
709
|
-
function
|
|
712
|
+
function Kr(e, t = !1) {
|
|
710
713
|
I.polyfills = t ? e : N(I.polyfills, e);
|
|
711
714
|
}
|
|
712
|
-
function
|
|
715
|
+
function jr(e) {
|
|
713
716
|
I.errorType = e;
|
|
714
717
|
}
|
|
715
|
-
const
|
|
716
|
-
class
|
|
718
|
+
const Wr = (e) => (t) => e.reduceRight((s, n) => n(s), t) || t;
|
|
719
|
+
class yt extends Error {
|
|
717
720
|
}
|
|
718
|
-
const
|
|
721
|
+
const xr = (e) => {
|
|
719
722
|
const t = /* @__PURE__ */ Object.create(null);
|
|
720
723
|
e = e._addons.reduce((a, i) => i.beforeRequest && i.beforeRequest(a, e._options, t) || a, e);
|
|
721
|
-
const { _url: s, _options: n, _config: o, _catchers: r, _resolvers: c, _middlewares: u, _addons: d } = e, f = new Map(r),
|
|
722
|
-
let
|
|
723
|
-
const
|
|
724
|
+
const { _url: s, _options: n, _config: o, _catchers: r, _resolvers: c, _middlewares: u, _addons: d } = e, f = new Map(r), g = N(o.options, n);
|
|
725
|
+
let y = s;
|
|
726
|
+
const p = Wr(u)((a, i) => (y = a, o.polyfill("fetch")(a, i)))(s, g), A = new Error(), m = p.catch((a) => {
|
|
724
727
|
throw { [b]: a };
|
|
725
728
|
}).then((a) => {
|
|
726
729
|
var i;
|
|
727
730
|
if (!a.ok) {
|
|
728
|
-
const l = new
|
|
729
|
-
if (l.cause =
|
|
730
|
-
CAUSE: ` +
|
|
731
|
+
const l = new yt();
|
|
732
|
+
if (l.cause = A, l.stack = l.stack + `
|
|
733
|
+
CAUSE: ` + A.stack, l.response = a, l.status = a.status, l.url = y, a.type === "opaque")
|
|
731
734
|
throw l;
|
|
732
|
-
const
|
|
733
|
-
return (o.errorType ?
|
|
734
|
-
throw l.message = typeof
|
|
735
|
+
const _ = o.errorType === "json" || ((i = a.headers.get("Content-Type")) === null || i === void 0 ? void 0 : i.split(";")[0]) === "application/json";
|
|
736
|
+
return (o.errorType ? _ ? a.text() : a[o.errorType]() : Promise.resolve(a.body)).then((T) => {
|
|
737
|
+
throw l.message = typeof T == "string" ? T : a.statusText, T && (_ && typeof T == "string" ? (l.text = T, l.json = JSON.parse(T)) : l[o.errorType] = T), l;
|
|
735
738
|
});
|
|
736
739
|
}
|
|
737
740
|
return a;
|
|
738
|
-
}),
|
|
739
|
-
const l = Object.prototype.hasOwnProperty.call(i, b),
|
|
740
|
-
if (
|
|
741
|
-
return
|
|
742
|
-
const
|
|
743
|
-
if (
|
|
744
|
-
return
|
|
745
|
-
throw
|
|
746
|
-
}), h = (a) => (i) => /* If a callback is provided, then callback with the body result otherwise return the parsed body itself. */
|
|
741
|
+
}), E = (a) => a.catch((i) => {
|
|
742
|
+
const l = Object.prototype.hasOwnProperty.call(i, b), _ = l ? i[b] : i, C = (_ == null ? void 0 : _.status) && f.get(_.status) || f.get(_ == null ? void 0 : _.name) || l && f.has(b) && f.get(b);
|
|
743
|
+
if (C)
|
|
744
|
+
return C(_, e);
|
|
745
|
+
const T = f.get(vt);
|
|
746
|
+
if (T)
|
|
747
|
+
return T(_, e);
|
|
748
|
+
throw _;
|
|
749
|
+
}), h = (a) => (i) => /* If a callback is provided, then callback with the body result otherwise return the parsed body itself. */ E(a ? m.then((l) => l && l[a]()).then((l) => i ? i(l) : l) : m.then((l) => i ? i(l) : l)), v = {
|
|
747
750
|
_wretchReq: e,
|
|
748
|
-
_fetchReq:
|
|
751
|
+
_fetchReq: p,
|
|
749
752
|
_sharedState: t,
|
|
750
753
|
res: h(null),
|
|
751
754
|
json: h("json"),
|
|
@@ -777,12 +780,12 @@ CAUSE: ` + g.stack, l.response = a, l.status = a.status, l.url = T, a.type === "
|
|
|
777
780
|
fetchError(a) {
|
|
778
781
|
return this.error(b, a);
|
|
779
782
|
}
|
|
780
|
-
},
|
|
783
|
+
}, M = d.reduce((a, i) => ({
|
|
781
784
|
...a,
|
|
782
785
|
...typeof i.resolver == "function" ? i.resolver(a) : i.resolver
|
|
783
|
-
}),
|
|
784
|
-
return c.reduce((a, i) => i(a, e),
|
|
785
|
-
},
|
|
786
|
+
}), v);
|
|
787
|
+
return c.reduce((a, i) => i(a, e), M);
|
|
788
|
+
}, Yr = {
|
|
786
789
|
_url: "",
|
|
787
790
|
_options: {},
|
|
788
791
|
_config: I,
|
|
@@ -842,7 +845,7 @@ CAUSE: ` + g.stack, l.response = a, l.status = a.status, l.url = T, a.type === "
|
|
|
842
845
|
return s.set(e, t), { ...this, _catchers: s };
|
|
843
846
|
},
|
|
844
847
|
catcherFallback(e) {
|
|
845
|
-
return this.catcher(
|
|
848
|
+
return this.catcher(vt, e);
|
|
846
849
|
},
|
|
847
850
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
848
851
|
resolve(e, t = !1) {
|
|
@@ -863,7 +866,7 @@ CAUSE: ` + g.stack, l.response = a, l.status = a.status, l.url = T, a.type === "
|
|
|
863
866
|
fetch(e = this._options.method, t = "", s = null) {
|
|
864
867
|
let n = this.url(t).options({ method: e });
|
|
865
868
|
const o = it(n._options.headers), r = this._config.polyfill("FormData", !1), c = typeof s == "object" && !(r && s instanceof r) && (!n._options.headers || !o || ct(o));
|
|
866
|
-
return n = s ? c ? n.json(s, o) : n.body(s) : n,
|
|
869
|
+
return n = s ? c ? n.json(s, o) : n.body(s) : n, xr(n._deferred.reduce((u, d) => d(u, u._url, u._options), n));
|
|
867
870
|
},
|
|
868
871
|
get(e = "") {
|
|
869
872
|
return this.fetch("GET", e);
|
|
@@ -891,18 +894,18 @@ CAUSE: ` + g.stack, l.response = a, l.status = a.status, l.url = T, a.type === "
|
|
|
891
894
|
},
|
|
892
895
|
json(e, t) {
|
|
893
896
|
const s = it(this._options.headers);
|
|
894
|
-
return this.content(t || ct(s) && s ||
|
|
897
|
+
return this.content(t || ct(s) && s || Dr).body(JSON.stringify(e));
|
|
895
898
|
}
|
|
896
899
|
};
|
|
897
900
|
function k(e = "", t = {}) {
|
|
898
|
-
return { ...
|
|
901
|
+
return { ...Yr, _url: e, _options: t };
|
|
899
902
|
}
|
|
900
903
|
k.default = k;
|
|
901
|
-
k.options =
|
|
902
|
-
k.errorType =
|
|
903
|
-
k.polyfills =
|
|
904
|
-
k.WretchError =
|
|
905
|
-
const
|
|
904
|
+
k.options = Hr;
|
|
905
|
+
k.errorType = jr;
|
|
906
|
+
k.polyfills = Kr;
|
|
907
|
+
k.WretchError = yt;
|
|
908
|
+
const Zr = () => ({
|
|
906
909
|
beforeRequest(e, t, s) {
|
|
907
910
|
const n = e._config.polyfill("AbortController", !1, !0);
|
|
908
911
|
!t.signal && n && (t.signal = n.signal);
|
|
@@ -935,26 +938,26 @@ const Yr = () => ({
|
|
|
935
938
|
}
|
|
936
939
|
}
|
|
937
940
|
});
|
|
938
|
-
function
|
|
941
|
+
function Tt(e, t = !1, s, n = s.polyfill("FormData", !0, !0), o = []) {
|
|
939
942
|
return Object.entries(e).forEach(([r, c]) => {
|
|
940
943
|
let u = o.reduce((d, f) => d ? `${d}[${f}]` : f, null);
|
|
941
944
|
if (u = u ? `${u}[${r}]` : r, c instanceof Array || globalThis.FileList && c instanceof FileList)
|
|
942
945
|
for (const d of c)
|
|
943
946
|
n.append(u, d);
|
|
944
|
-
else t && typeof c == "object" && (!(t instanceof Array) || !t.includes(r)) ? c !== null &&
|
|
947
|
+
else t && typeof c == "object" && (!(t instanceof Array) || !t.includes(r)) ? c !== null && Tt(c, t, s, n, [...o, r]) : n.append(u, c);
|
|
945
948
|
}), n;
|
|
946
949
|
}
|
|
947
|
-
const
|
|
950
|
+
const Vr = {
|
|
948
951
|
wretch: {
|
|
949
952
|
formData(e, t = !1) {
|
|
950
|
-
return this.body(
|
|
953
|
+
return this.body(Tt(e, t, this._config));
|
|
951
954
|
}
|
|
952
955
|
}
|
|
953
956
|
};
|
|
954
957
|
function lt(e) {
|
|
955
958
|
return typeof e < "u" ? e : "";
|
|
956
959
|
}
|
|
957
|
-
const
|
|
960
|
+
const Jr = (e, t, s, n, o) => {
|
|
958
961
|
let r;
|
|
959
962
|
if (typeof t == "string")
|
|
960
963
|
r = t;
|
|
@@ -964,8 +967,8 @@ const Vr = (e, t, s, n, o) => {
|
|
|
964
967
|
const f = t[d];
|
|
965
968
|
if (!(n && f == null))
|
|
966
969
|
if (t[d] instanceof Array)
|
|
967
|
-
for (const
|
|
968
|
-
u.append(d, lt(
|
|
970
|
+
for (const g of f)
|
|
971
|
+
u.append(d, lt(g));
|
|
969
972
|
else
|
|
970
973
|
u.append(d, lt(f));
|
|
971
974
|
}
|
|
@@ -973,29 +976,29 @@ const Vr = (e, t, s, n, o) => {
|
|
|
973
976
|
}
|
|
974
977
|
const c = e.split("?");
|
|
975
978
|
return r ? s || c.length < 2 ? c[0] + "?" + r : e + "&" + r : s ? c[0] : e;
|
|
976
|
-
},
|
|
979
|
+
}, qr = {
|
|
977
980
|
wretch: {
|
|
978
981
|
query(e, t = !1, s = !1) {
|
|
979
|
-
return { ...this, _url:
|
|
982
|
+
return { ...this, _url: Jr(this._url, e, t, s, this._config) };
|
|
980
983
|
}
|
|
981
984
|
}
|
|
982
|
-
},
|
|
985
|
+
}, Xr = {
|
|
983
986
|
number: {
|
|
984
987
|
locale: "uk",
|
|
985
988
|
fraction: 2,
|
|
986
989
|
unsigned: !0
|
|
987
990
|
}
|
|
988
|
-
},
|
|
991
|
+
}, aa = {
|
|
989
992
|
number: {
|
|
990
993
|
locale: "uk",
|
|
991
994
|
fraction: 0,
|
|
992
995
|
unsigned: !0
|
|
993
996
|
}
|
|
994
|
-
},
|
|
997
|
+
}, ia = (e) => {
|
|
995
998
|
const t = e.split(",");
|
|
996
999
|
return t.length > 1 && t[1].length === 1 ? e.padEnd(e.length + 1, "0") : e;
|
|
997
|
-
},
|
|
998
|
-
class
|
|
1000
|
+
}, Qr = (e) => new At(Xr).unmasked(e), ut = Symbol("aborted");
|
|
1001
|
+
class ca {
|
|
999
1002
|
constructor(t) {
|
|
1000
1003
|
q(this, "abort");
|
|
1001
1004
|
this.version = t;
|
|
@@ -1014,7 +1017,7 @@ class ia {
|
|
|
1014
1017
|
const n = t.isReceive ? t.payoutAmount : t.sendAmount, o = new URLSearchParams(window.location.search), r = {
|
|
1015
1018
|
country: t.country,
|
|
1016
1019
|
method: t.payoutType,
|
|
1017
|
-
amount:
|
|
1020
|
+
amount: Qr(n),
|
|
1018
1021
|
currency: t.payoutCurrency,
|
|
1019
1022
|
send_currency: t.sendCurrency,
|
|
1020
1023
|
is_receive: t.isReceive ? 1 : 0,
|
|
@@ -1035,23 +1038,23 @@ class ia {
|
|
|
1035
1038
|
}
|
|
1036
1039
|
}
|
|
1037
1040
|
makeRequest() {
|
|
1038
|
-
let t = k().errorType("json").addon(
|
|
1041
|
+
let t = k().errorType("json").addon(Zr()).addon(Vr).addon(qr).resolve((s) => s.json());
|
|
1039
1042
|
return this.version && (t = t.query({ api_version: this.version })), t;
|
|
1040
1043
|
}
|
|
1041
1044
|
}
|
|
1042
1045
|
export {
|
|
1043
|
-
|
|
1046
|
+
ca as A,
|
|
1044
1047
|
At as F,
|
|
1045
|
-
|
|
1046
|
-
|
|
1048
|
+
ra as V,
|
|
1049
|
+
na as a,
|
|
1047
1050
|
H as b,
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1051
|
+
sa as c,
|
|
1052
|
+
aa as d,
|
|
1053
|
+
ea as e,
|
|
1054
|
+
oa as f,
|
|
1055
|
+
Xr as g,
|
|
1053
1056
|
ut as h,
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
+
ta as i,
|
|
1058
|
+
Qr as j,
|
|
1059
|
+
ia as p
|
|
1057
1060
|
};
|