@everymatrix/casino-categories-providers 1.67.3 → 1.68.0
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/components/{CasinoCategories-BdJoUcfA.js → CasinoCategories-BW9C1Ea7.js} +746 -744
- package/components/{CasinoCategories-DzFeQu1u.js → CasinoCategories-COraBb47.js} +728 -726
- package/components/CasinoCategories-ZuL2uLcF.cjs +3 -0
- package/components/{CasinoCategoriesProviders-Cc3ynGka.js → CasinoCategoriesProviders-343EVVnl.js} +18 -18
- package/components/{CasinoCategoriesProviders-CjE0XNEa.cjs → CasinoCategoriesProviders-CC3sRUIE.cjs} +1 -1
- package/components/{CasinoCategoriesProviders-De5DE_xJ.js → CasinoCategoriesProviders-DvJCGTEt.js} +16 -16
- package/components/{CasinoProviders-133h61tT.js → CasinoProviders-CYMMEzB5.js} +33 -33
- package/components/{CasinoProviders-Dqq0jvih.cjs → CasinoProviders-CrOov54G.cjs} +1 -1
- package/components/{CasinoProviders-jjpHBcq_.js → CasinoProviders-yxmLGZns.js} +33 -33
- package/es2015/casino-categories-providers.cjs +1 -1
- package/es2015/casino-categories-providers.js +1 -1
- package/esnext/casino-categories-providers.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-ChRvzjAp.js → index-97d17652-BEnqZAxL.js} +186 -186
- package/stencil/index-97d17652-D5_8Vwfn.cjs +1 -0
- package/stencil/{index-97d17652-DKsTmN3Z.js → index-97d17652-WK_DbPS4.js} +175 -175
- package/stencil/{ui-image-B2ynFkLT.cjs → ui-image-CMb1eK44.cjs} +1 -1
- package/stencil/{ui-image-D7A7MInC.js → ui-image-CQQDA5b0.js} +1 -1
- package/stencil/{ui-image-D_Js9Evk.js → ui-image-CmwNU-jf.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-B43lELFk.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-CRQDt62Z.cjs → ui-image-b7b48fe5-DCck2kk1.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-DVcK_myk.js → ui-image-b7b48fe5-V9vp4faA.js} +1 -1
- package/stencil/{ui-image_2-Df0q0jE8.js → ui-image_2-B56t6kXT.js} +2 -2
- package/stencil/{ui-image_2-EP2dwjfi.js → ui-image_2-BncuYpLi.js} +2 -2
- package/stencil/{ui-image_2-CyHaM9Na.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
- package/components/CasinoCategories-CR0QyxMe.cjs +0 -16
- package/stencil/index-97d17652-qWThG1U9.cjs +0 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
1
|
+
import "../stencil/ui-image-CmwNU-jf.js";
|
|
2
2
|
function N() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function bt(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function Qe() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
e.forEach(
|
|
10
|
+
function ue(e) {
|
|
11
|
+
e.forEach(bt);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Xe(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function yt(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
|
-
let
|
|
20
|
-
function
|
|
21
|
-
return e === t ? !0 : (
|
|
19
|
+
let fe;
|
|
20
|
+
function be(e, t) {
|
|
21
|
+
return e === t ? !0 : (fe || (fe = document.createElement("a")), fe.href = t, e === fe.href);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Qt(e) {
|
|
24
24
|
return Object.keys(e).length === 0;
|
|
25
25
|
}
|
|
26
26
|
function _t(e, ...t) {
|
|
@@ -32,20 +32,20 @@ function _t(e, ...t) {
|
|
|
32
32
|
const r = e.subscribe(...t);
|
|
33
33
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function qt(e, t, r) {
|
|
36
36
|
e.$$.on_destroy.push(_t(t, r));
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function x(e, t) {
|
|
39
39
|
e.appendChild(t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
const n =
|
|
41
|
+
function Jt(e, t, r) {
|
|
42
|
+
const n = Yt(e);
|
|
43
43
|
if (!n.getElementById(t)) {
|
|
44
|
-
const i =
|
|
45
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
const i = B("style");
|
|
45
|
+
i.id = t, i.textContent = r, Kt(n, i);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Yt(e) {
|
|
49
49
|
if (!e)
|
|
50
50
|
return document;
|
|
51
51
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -55,36 +55,36 @@ function Jt(e) {
|
|
|
55
55
|
t
|
|
56
56
|
) : e.ownerDocument;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
return
|
|
58
|
+
function Kt(e, t) {
|
|
59
|
+
return x(
|
|
60
60
|
/** @type {Document} */
|
|
61
61
|
e.head || e,
|
|
62
62
|
t
|
|
63
63
|
), t.sheet;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function K(e, t, r) {
|
|
66
66
|
e.insertBefore(t, r || null);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function k(e) {
|
|
69
69
|
e.parentNode && e.parentNode.removeChild(e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function qe(e, t) {
|
|
72
72
|
for (let r = 0; r < e.length; r += 1)
|
|
73
73
|
e[r] && e[r].d(t);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function B(e) {
|
|
76
76
|
return document.createElement(e);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function D(e) {
|
|
79
79
|
return document.createTextNode(e);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
81
|
+
function U() {
|
|
82
|
+
return D(" ");
|
|
83
83
|
}
|
|
84
84
|
function di() {
|
|
85
|
-
return
|
|
85
|
+
return D("");
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Et(e, t, r, n) {
|
|
88
88
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
89
89
|
}
|
|
90
90
|
function L(e, t, r) {
|
|
@@ -94,14 +94,14 @@ function $(e, t, r) {
|
|
|
94
94
|
const n = t.toLowerCase();
|
|
95
95
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : L(e, t, r);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function er(e) {
|
|
98
98
|
return Array.from(e.childNodes);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function F(e, t) {
|
|
101
101
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
102
102
|
t);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function tr(e) {
|
|
105
105
|
const t = {};
|
|
106
106
|
return e.childNodes.forEach(
|
|
107
107
|
/** @param {Element} node */
|
|
@@ -110,90 +110,90 @@ function er(e) {
|
|
|
110
110
|
}
|
|
111
111
|
), t;
|
|
112
112
|
}
|
|
113
|
-
let
|
|
114
|
-
function
|
|
115
|
-
|
|
113
|
+
let se;
|
|
114
|
+
function ie(e) {
|
|
115
|
+
se = e;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
if (!
|
|
117
|
+
function rr() {
|
|
118
|
+
if (!se)
|
|
119
119
|
throw new Error("Function called outside component initialization");
|
|
120
|
-
return
|
|
120
|
+
return se;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
122
|
+
function nr(e) {
|
|
123
|
+
rr().$$.on_mount.push(e);
|
|
124
124
|
}
|
|
125
|
-
const
|
|
126
|
-
let
|
|
127
|
-
const
|
|
128
|
-
let
|
|
129
|
-
function
|
|
130
|
-
|
|
125
|
+
const W = [], Le = [];
|
|
126
|
+
let Z = [];
|
|
127
|
+
const Je = [], ir = /* @__PURE__ */ Promise.resolve();
|
|
128
|
+
let Ie = !1;
|
|
129
|
+
function sr() {
|
|
130
|
+
Ie || (Ie = !0, ir.then(I));
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
|
|
132
|
+
function Me(e) {
|
|
133
|
+
Z.push(e);
|
|
134
134
|
}
|
|
135
|
-
const
|
|
136
|
-
let
|
|
135
|
+
const Se = /* @__PURE__ */ new Set();
|
|
136
|
+
let X = 0;
|
|
137
137
|
function I() {
|
|
138
|
-
if (
|
|
138
|
+
if (X !== 0)
|
|
139
139
|
return;
|
|
140
|
-
const e =
|
|
140
|
+
const e = se;
|
|
141
141
|
do {
|
|
142
142
|
try {
|
|
143
|
-
for (;
|
|
144
|
-
const t =
|
|
145
|
-
|
|
143
|
+
for (; X < W.length; ) {
|
|
144
|
+
const t = W[X];
|
|
145
|
+
X++, ie(t), or(t.$$);
|
|
146
146
|
}
|
|
147
147
|
} catch (t) {
|
|
148
|
-
throw
|
|
148
|
+
throw W.length = 0, X = 0, t;
|
|
149
149
|
}
|
|
150
|
-
for (
|
|
151
|
-
|
|
152
|
-
for (let t = 0; t <
|
|
153
|
-
const r =
|
|
154
|
-
|
|
150
|
+
for (ie(null), W.length = 0, X = 0; Le.length; )
|
|
151
|
+
Le.pop()();
|
|
152
|
+
for (let t = 0; t < Z.length; t += 1) {
|
|
153
|
+
const r = Z[t];
|
|
154
|
+
Se.has(r) || (Se.add(r), r());
|
|
155
155
|
}
|
|
156
|
-
|
|
157
|
-
} while (
|
|
158
|
-
for (;
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
Z.length = 0;
|
|
157
|
+
} while (W.length);
|
|
158
|
+
for (; Je.length; )
|
|
159
|
+
Je.pop()();
|
|
160
|
+
Ie = !1, Se.clear(), ie(e);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function or(e) {
|
|
163
163
|
if (e.fragment !== null) {
|
|
164
|
-
e.update(),
|
|
164
|
+
e.update(), ue(e.before_update);
|
|
165
165
|
const t = e.dirty;
|
|
166
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
166
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function ar(e) {
|
|
170
170
|
const t = [], r = [];
|
|
171
|
-
|
|
171
|
+
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
172
172
|
}
|
|
173
|
-
const
|
|
174
|
-
function
|
|
175
|
-
e && e.i && (
|
|
173
|
+
const ur = /* @__PURE__ */ new Set();
|
|
174
|
+
function hr(e, t) {
|
|
175
|
+
e && e.i && (ur.delete(e), e.i(t));
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function ce(e) {
|
|
178
178
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function lr(e, t, r) {
|
|
181
181
|
const { fragment: n, after_update: i } = e.$$;
|
|
182
|
-
n && n.m(t, r),
|
|
183
|
-
const s = e.$$.on_mount.map(
|
|
184
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
185
|
-
}), i.forEach(
|
|
182
|
+
n && n.m(t, r), Me(() => {
|
|
183
|
+
const s = e.$$.on_mount.map(bt).filter(Xe);
|
|
184
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ue(s), e.$$.on_mount = [];
|
|
185
|
+
}), i.forEach(Me);
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function fr(e, t) {
|
|
188
188
|
const r = e.$$;
|
|
189
|
-
r.fragment !== null && (
|
|
189
|
+
r.fragment !== null && (ar(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
e.$$.dirty[0] === -1 && (
|
|
191
|
+
function cr(e, t) {
|
|
192
|
+
e.$$.dirty[0] === -1 && (W.push(e), sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
const l =
|
|
196
|
-
|
|
194
|
+
function gr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
195
|
+
const l = se;
|
|
196
|
+
ie(e);
|
|
197
197
|
const a = e.$$ = {
|
|
198
198
|
fragment: null,
|
|
199
199
|
ctx: [],
|
|
@@ -201,7 +201,7 @@ function cr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
201
201
|
props: s,
|
|
202
202
|
update: N,
|
|
203
203
|
not_equal: i,
|
|
204
|
-
bound:
|
|
204
|
+
bound: Qe(),
|
|
205
205
|
// lifecycle
|
|
206
206
|
on_mount: [],
|
|
207
207
|
on_destroy: [],
|
|
@@ -210,25 +210,25 @@ function cr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
210
210
|
after_update: [],
|
|
211
211
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
212
212
|
// everything else
|
|
213
|
-
callbacks:
|
|
213
|
+
callbacks: Qe(),
|
|
214
214
|
dirty: u,
|
|
215
215
|
skip_bound: !1,
|
|
216
216
|
root: t.target || l.$$.root
|
|
217
217
|
};
|
|
218
218
|
o && o(a.root);
|
|
219
219
|
let h = !1;
|
|
220
|
-
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...
|
|
221
|
-
const
|
|
222
|
-
return a.ctx && i(a.ctx[c], a.ctx[c] =
|
|
223
|
-
}) : [], a.update(), h = !0,
|
|
220
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
221
|
+
const d = p.length ? p[0] : f;
|
|
222
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), h && cr(e, c)), f;
|
|
223
|
+
}) : [], a.update(), h = !0, ue(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
224
224
|
if (t.hydrate) {
|
|
225
|
-
const c =
|
|
226
|
-
a.fragment && a.fragment.l(c), c.forEach(
|
|
225
|
+
const c = er(t.target);
|
|
226
|
+
a.fragment && a.fragment.l(c), c.forEach(k);
|
|
227
227
|
} else
|
|
228
228
|
a.fragment && a.fragment.c();
|
|
229
|
-
t.intro &&
|
|
229
|
+
t.intro && hr(e.$$.fragment), lr(e, t.target, t.anchor), I();
|
|
230
230
|
}
|
|
231
|
-
|
|
231
|
+
ie(l);
|
|
232
232
|
}
|
|
233
233
|
let xt;
|
|
234
234
|
typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
@@ -273,29 +273,29 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
273
273
|
let s;
|
|
274
274
|
return {
|
|
275
275
|
c: function() {
|
|
276
|
-
s =
|
|
276
|
+
s = B("slot"), i !== "default" && L(s, "name", i);
|
|
277
277
|
},
|
|
278
278
|
/**
|
|
279
279
|
* @param {HTMLElement} target
|
|
280
280
|
* @param {HTMLElement} [anchor]
|
|
281
281
|
*/
|
|
282
282
|
m: function(l, a) {
|
|
283
|
-
|
|
283
|
+
K(l, s, a);
|
|
284
284
|
},
|
|
285
285
|
d: function(l) {
|
|
286
|
-
l &&
|
|
286
|
+
l && k(s);
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
289
|
};
|
|
290
290
|
};
|
|
291
291
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
292
292
|
return;
|
|
293
|
-
const t = {}, r =
|
|
293
|
+
const t = {}, r = tr(this);
|
|
294
294
|
for (const i of this.$$s)
|
|
295
295
|
i in r && (t[i] = [e(i)]);
|
|
296
296
|
for (const i of this.attributes) {
|
|
297
297
|
const s = this.$$g_p(i.name);
|
|
298
|
-
s in this.$$d || (this.$$d[s] =
|
|
298
|
+
s in this.$$d || (this.$$d[s] = me(s, i.value, this.$$p_d, "toProp"));
|
|
299
299
|
}
|
|
300
300
|
for (const i in this.$$p_d)
|
|
301
301
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -313,7 +313,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
313
313
|
this.$$r = !0;
|
|
314
314
|
for (const i in this.$$p_d)
|
|
315
315
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
316
|
-
const s =
|
|
316
|
+
const s = me(
|
|
317
317
|
i,
|
|
318
318
|
this.$$d[i],
|
|
319
319
|
this.$$p_d,
|
|
@@ -335,7 +335,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
335
335
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
336
336
|
// and setting attributes through setAttribute etc, this is helpful
|
|
337
337
|
attributeChangedCallback(e, t, r) {
|
|
338
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
338
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = me(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
339
339
|
}
|
|
340
340
|
disconnectedCallback() {
|
|
341
341
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -348,7 +348,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
348
348
|
) || e;
|
|
349
349
|
}
|
|
350
350
|
});
|
|
351
|
-
function
|
|
351
|
+
function me(e, t, r, n) {
|
|
352
352
|
const i = r[e]?.type;
|
|
353
353
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
354
354
|
return t;
|
|
@@ -377,7 +377,7 @@ function ge(e, t, r, n) {
|
|
|
377
377
|
return t;
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function mr(e, t, r, n, i, s) {
|
|
381
381
|
let o = class extends xt {
|
|
382
382
|
constructor() {
|
|
383
383
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -394,7 +394,7 @@ function gr(e, t, r, n, i, s) {
|
|
|
394
394
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
395
395
|
},
|
|
396
396
|
set(l) {
|
|
397
|
-
l =
|
|
397
|
+
l = me(u, l, t), this.$$d[u] = l, this.$$c?.$set({ [u]: l });
|
|
398
398
|
}
|
|
399
399
|
});
|
|
400
400
|
}), n.forEach((u) => {
|
|
@@ -406,7 +406,7 @@ function gr(e, t, r, n, i, s) {
|
|
|
406
406
|
}), e.element = /** @type {any} */
|
|
407
407
|
o, o;
|
|
408
408
|
}
|
|
409
|
-
class
|
|
409
|
+
class pr {
|
|
410
410
|
/**
|
|
411
411
|
* ### PRIVATE API
|
|
412
412
|
*
|
|
@@ -425,7 +425,7 @@ class mr {
|
|
|
425
425
|
$$set = void 0;
|
|
426
426
|
/** @returns {void} */
|
|
427
427
|
$destroy() {
|
|
428
|
-
|
|
428
|
+
fr(this, 1), this.$destroy = N;
|
|
429
429
|
}
|
|
430
430
|
/**
|
|
431
431
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -434,7 +434,7 @@ class mr {
|
|
|
434
434
|
* @returns {() => void}
|
|
435
435
|
*/
|
|
436
436
|
$on(t, r) {
|
|
437
|
-
if (!
|
|
437
|
+
if (!Xe(r))
|
|
438
438
|
return N;
|
|
439
439
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
440
440
|
return n.push(r), () => {
|
|
@@ -447,29 +447,29 @@ class mr {
|
|
|
447
447
|
* @returns {void}
|
|
448
448
|
*/
|
|
449
449
|
$set(t) {
|
|
450
|
-
this.$$set && !
|
|
450
|
+
this.$$set && !Qt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
const dr = "4";
|
|
454
454
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr);
|
|
455
|
-
const
|
|
456
|
-
function
|
|
455
|
+
const z = [];
|
|
456
|
+
function br(e, t) {
|
|
457
457
|
return {
|
|
458
|
-
subscribe:
|
|
458
|
+
subscribe: xe(e, t).subscribe
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function xe(e, t = N) {
|
|
462
462
|
let r;
|
|
463
463
|
const n = /* @__PURE__ */ new Set();
|
|
464
464
|
function i(u) {
|
|
465
|
-
if (
|
|
466
|
-
const l = !
|
|
465
|
+
if (yt(e, u) && (e = u, r)) {
|
|
466
|
+
const l = !z.length;
|
|
467
467
|
for (const a of n)
|
|
468
|
-
a[1](),
|
|
468
|
+
a[1](), z.push(a, e);
|
|
469
469
|
if (l) {
|
|
470
|
-
for (let a = 0; a <
|
|
471
|
-
|
|
472
|
-
|
|
470
|
+
for (let a = 0; a < z.length; a += 2)
|
|
471
|
+
z[a][0](z[a + 1]);
|
|
472
|
+
z.length = 0;
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
}
|
|
@@ -484,12 +484,12 @@ function ye(e, t = N) {
|
|
|
484
484
|
}
|
|
485
485
|
return { set: i, update: s, subscribe: o };
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function ee(e, t, r) {
|
|
488
488
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
489
489
|
if (!i.every(Boolean))
|
|
490
490
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
491
491
|
const s = t.length < 2;
|
|
492
|
-
return
|
|
492
|
+
return br(r, (o, u) => {
|
|
493
493
|
let l = !1;
|
|
494
494
|
const a = [];
|
|
495
495
|
let h = 0, c = N;
|
|
@@ -497,11 +497,11 @@ function K(e, t, r) {
|
|
|
497
497
|
if (h)
|
|
498
498
|
return;
|
|
499
499
|
c();
|
|
500
|
-
const
|
|
501
|
-
s ? o(
|
|
502
|
-
},
|
|
503
|
-
(
|
|
504
|
-
|
|
500
|
+
const d = t(n ? a[0] : a, o, u);
|
|
501
|
+
s ? o(d) : c = Xe(d) ? d : N;
|
|
502
|
+
}, p = i.map(
|
|
503
|
+
(d, g) => _t(
|
|
504
|
+
d,
|
|
505
505
|
(E) => {
|
|
506
506
|
a[g] = E, h &= ~(1 << g), l && f();
|
|
507
507
|
},
|
|
@@ -511,126 +511,112 @@ function K(e, t, r) {
|
|
|
511
511
|
)
|
|
512
512
|
);
|
|
513
513
|
return l = !0, f(), function() {
|
|
514
|
-
|
|
514
|
+
ue(p), c(), l = !1;
|
|
515
515
|
};
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
518
|
+
function yr(e) {
|
|
519
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
520
520
|
}
|
|
521
521
|
var _r = function(t) {
|
|
522
|
-
return
|
|
522
|
+
return Er(t) && !xr(t);
|
|
523
523
|
};
|
|
524
|
-
function
|
|
524
|
+
function Er(e) {
|
|
525
525
|
return !!e && typeof e == "object";
|
|
526
526
|
}
|
|
527
527
|
function xr(e) {
|
|
528
528
|
var t = Object.prototype.toString.call(e);
|
|
529
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
530
|
-
}
|
|
531
|
-
var Er = typeof Symbol == "function" && Symbol.for, vr = Er ? Symbol.for("react.element") : 60103;
|
|
532
|
-
function Tr(e) {
|
|
533
|
-
return e.$$typeof === vr;
|
|
529
|
+
return t === "[object RegExp]" || t === "[object Date]" || Cr(e);
|
|
534
530
|
}
|
|
531
|
+
var vr = typeof Symbol == "function" && Symbol.for, Tr = vr ? Symbol.for("react.element") : 60103;
|
|
535
532
|
function Cr(e) {
|
|
533
|
+
return e.$$typeof === Tr;
|
|
534
|
+
}
|
|
535
|
+
function Hr(e) {
|
|
536
536
|
return Array.isArray(e) ? [] : {};
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
538
|
+
function oe(e, t) {
|
|
539
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(Hr(e), e, t) : e;
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Sr(e, t, r) {
|
|
542
542
|
return e.concat(t).map(function(n) {
|
|
543
|
-
return
|
|
543
|
+
return oe(n, r);
|
|
544
544
|
});
|
|
545
545
|
}
|
|
546
546
|
function Ar(e, t) {
|
|
547
547
|
if (!t.customMerge)
|
|
548
|
-
return
|
|
548
|
+
return Q;
|
|
549
549
|
var r = t.customMerge(e);
|
|
550
|
-
return typeof r == "function" ? r :
|
|
550
|
+
return typeof r == "function" ? r : Q;
|
|
551
551
|
}
|
|
552
552
|
function Br(e) {
|
|
553
553
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
554
554
|
return Object.propertyIsEnumerable.call(e, t);
|
|
555
555
|
}) : [];
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Ye(e) {
|
|
558
558
|
return Object.keys(e).concat(Br(e));
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function vt(e, t) {
|
|
561
561
|
try {
|
|
562
562
|
return t in e;
|
|
563
563
|
} catch {
|
|
564
564
|
return !1;
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
function
|
|
568
|
-
return
|
|
567
|
+
function Or(e, t) {
|
|
568
|
+
return vt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function wr(e, t, r) {
|
|
571
571
|
var n = {};
|
|
572
|
-
return r.isMergeableObject(e) &&
|
|
573
|
-
n[i] =
|
|
574
|
-
}),
|
|
575
|
-
|
|
572
|
+
return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
|
|
573
|
+
n[i] = oe(e[i], r);
|
|
574
|
+
}), Ye(t).forEach(function(i) {
|
|
575
|
+
Or(e, i) || (vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ar(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
576
576
|
}), n;
|
|
577
577
|
}
|
|
578
|
-
function
|
|
579
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
578
|
+
function Q(e, t, r) {
|
|
579
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Sr, r.isMergeableObject = r.isMergeableObject || _r, r.cloneUnlessOtherwiseSpecified = oe;
|
|
580
580
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
581
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
581
|
+
return s ? n ? r.arrayMerge(e, t, r) : wr(e, t, r) : oe(t, r);
|
|
582
582
|
}
|
|
583
|
-
|
|
583
|
+
Q.all = function(t, r) {
|
|
584
584
|
if (!Array.isArray(t))
|
|
585
585
|
throw new Error("first argument should be an array");
|
|
586
586
|
return t.reduce(function(n, i) {
|
|
587
|
-
return
|
|
587
|
+
return Q(n, i, r);
|
|
588
588
|
}, {});
|
|
589
589
|
};
|
|
590
|
-
var
|
|
591
|
-
const
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
596
|
-
purpose with or without fee is hereby granted.
|
|
597
|
-
|
|
598
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
599
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
600
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
601
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
602
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
603
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
604
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
605
|
-
***************************************************************************** */
|
|
606
|
-
var Ie = function(e, t) {
|
|
607
|
-
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
590
|
+
var Pr = Q, Nr = Pr;
|
|
591
|
+
const Lr = /* @__PURE__ */ yr(Nr);
|
|
592
|
+
var $e = function(e, t) {
|
|
593
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
608
594
|
r.__proto__ = n;
|
|
609
595
|
} || function(r, n) {
|
|
610
596
|
for (var i in n)
|
|
611
597
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
612
|
-
},
|
|
598
|
+
}, $e(e, t);
|
|
613
599
|
};
|
|
614
|
-
function
|
|
600
|
+
function ve(e, t) {
|
|
615
601
|
if (typeof t != "function" && t !== null)
|
|
616
602
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
617
|
-
|
|
603
|
+
$e(e, t);
|
|
618
604
|
function r() {
|
|
619
605
|
this.constructor = e;
|
|
620
606
|
}
|
|
621
607
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
622
608
|
}
|
|
623
|
-
var
|
|
624
|
-
return
|
|
609
|
+
var R = function() {
|
|
610
|
+
return R = Object.assign || function(t) {
|
|
625
611
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
626
612
|
r = arguments[n];
|
|
627
613
|
for (var s in r)
|
|
628
614
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
629
615
|
}
|
|
630
616
|
return t;
|
|
631
|
-
},
|
|
617
|
+
}, R.apply(this, arguments);
|
|
632
618
|
};
|
|
633
|
-
function
|
|
619
|
+
function Ir(e, t) {
|
|
634
620
|
var r = {};
|
|
635
621
|
for (var n in e)
|
|
636
622
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -639,46 +625,43 @@ function Lr(e, t) {
|
|
|
639
625
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
640
626
|
return r;
|
|
641
627
|
}
|
|
642
|
-
function
|
|
643
|
-
if (arguments.length === 2)
|
|
628
|
+
function Ae(e, t, r) {
|
|
629
|
+
if (r || arguments.length === 2)
|
|
644
630
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
645
631
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
646
|
-
return e.concat(s || t);
|
|
632
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
647
633
|
}
|
|
648
|
-
function
|
|
649
|
-
var r = t && t.cache ? t.cache :
|
|
634
|
+
function Be(e, t) {
|
|
635
|
+
var r = t && t.cache ? t.cache : Fr, n = t && t.serializer ? t.serializer : Dr, i = t && t.strategy ? t.strategy : Rr;
|
|
650
636
|
return i(e, {
|
|
651
637
|
cache: r,
|
|
652
638
|
serializer: n
|
|
653
639
|
});
|
|
654
640
|
}
|
|
655
|
-
function
|
|
641
|
+
function Mr(e) {
|
|
656
642
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
657
643
|
}
|
|
658
|
-
function
|
|
659
|
-
var i =
|
|
644
|
+
function $r(e, t, r, n) {
|
|
645
|
+
var i = Mr(n) ? n : r(n), s = t.get(i);
|
|
660
646
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
661
647
|
}
|
|
662
648
|
function Tt(e, t, r) {
|
|
663
649
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
664
650
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
665
651
|
}
|
|
666
|
-
function
|
|
652
|
+
function Ct(e, t, r, n, i) {
|
|
667
653
|
return r.bind(t, e, n, i);
|
|
668
654
|
}
|
|
669
|
-
function Mr(e, t) {
|
|
670
|
-
var r = e.length === 1 ? vt : Tt;
|
|
671
|
-
return Ve(e, this, r, t.cache.create(), t.serializer);
|
|
672
|
-
}
|
|
673
|
-
function $r(e, t) {
|
|
674
|
-
return Ve(e, this, Tt, t.cache.create(), t.serializer);
|
|
675
|
-
}
|
|
676
655
|
function Rr(e, t) {
|
|
677
|
-
|
|
656
|
+
var r = e.length === 1 ? $r : Tt;
|
|
657
|
+
return Ct(e, this, r, t.cache.create(), t.serializer);
|
|
678
658
|
}
|
|
679
|
-
|
|
659
|
+
function Ur(e, t) {
|
|
660
|
+
return Ct(e, this, Tt, t.cache.create(), t.serializer);
|
|
661
|
+
}
|
|
662
|
+
var Dr = function() {
|
|
680
663
|
return JSON.stringify(arguments);
|
|
681
|
-
},
|
|
664
|
+
}, Gr = (
|
|
682
665
|
/** @class */
|
|
683
666
|
function() {
|
|
684
667
|
function e() {
|
|
@@ -690,62 +673,71 @@ var Ur = function() {
|
|
|
690
673
|
this.cache[t] = r;
|
|
691
674
|
}, e;
|
|
692
675
|
}()
|
|
693
|
-
),
|
|
676
|
+
), Fr = {
|
|
694
677
|
create: function() {
|
|
695
|
-
return new
|
|
678
|
+
return new Gr();
|
|
696
679
|
}
|
|
697
|
-
},
|
|
698
|
-
variadic:
|
|
699
|
-
|
|
700
|
-
|
|
680
|
+
}, Oe = {
|
|
681
|
+
variadic: Ur
|
|
682
|
+
}, ye = function() {
|
|
683
|
+
return ye = Object.assign || function(t) {
|
|
684
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
685
|
+
r = arguments[n];
|
|
686
|
+
for (var s in r)
|
|
687
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
688
|
+
}
|
|
689
|
+
return t;
|
|
690
|
+
}, ye.apply(this, arguments);
|
|
691
|
+
};
|
|
692
|
+
var y;
|
|
701
693
|
(function(e) {
|
|
702
694
|
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";
|
|
703
|
-
})(
|
|
704
|
-
var
|
|
695
|
+
})(y || (y = {}));
|
|
696
|
+
var v;
|
|
705
697
|
(function(e) {
|
|
706
698
|
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";
|
|
707
|
-
})(
|
|
708
|
-
var
|
|
699
|
+
})(v || (v = {}));
|
|
700
|
+
var q;
|
|
709
701
|
(function(e) {
|
|
710
702
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
711
|
-
})(
|
|
712
|
-
function
|
|
713
|
-
return e.type ===
|
|
714
|
-
}
|
|
715
|
-
function Fr(e) {
|
|
716
|
-
return e.type === T.argument;
|
|
703
|
+
})(q || (q = {}));
|
|
704
|
+
function Ke(e) {
|
|
705
|
+
return e.type === v.literal;
|
|
717
706
|
}
|
|
718
|
-
function
|
|
719
|
-
return e.type ===
|
|
707
|
+
function jr(e) {
|
|
708
|
+
return e.type === v.argument;
|
|
720
709
|
}
|
|
721
710
|
function Ht(e) {
|
|
722
|
-
return e.type ===
|
|
711
|
+
return e.type === v.number;
|
|
712
|
+
}
|
|
713
|
+
function St(e) {
|
|
714
|
+
return e.type === v.date;
|
|
723
715
|
}
|
|
724
716
|
function At(e) {
|
|
725
|
-
return e.type ===
|
|
717
|
+
return e.type === v.time;
|
|
726
718
|
}
|
|
727
719
|
function Bt(e) {
|
|
728
|
-
return e.type ===
|
|
729
|
-
}
|
|
730
|
-
function St(e) {
|
|
731
|
-
return e.type === T.plural;
|
|
732
|
-
}
|
|
733
|
-
function jr(e) {
|
|
734
|
-
return e.type === T.pound;
|
|
720
|
+
return e.type === v.select;
|
|
735
721
|
}
|
|
736
722
|
function Ot(e) {
|
|
737
|
-
return e.type ===
|
|
723
|
+
return e.type === v.plural;
|
|
724
|
+
}
|
|
725
|
+
function kr(e) {
|
|
726
|
+
return e.type === v.pound;
|
|
738
727
|
}
|
|
739
728
|
function wt(e) {
|
|
740
|
-
return
|
|
729
|
+
return e.type === v.tag;
|
|
741
730
|
}
|
|
742
|
-
function
|
|
743
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
731
|
+
function Pt(e) {
|
|
732
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
733
|
+
}
|
|
734
|
+
function Re(e) {
|
|
735
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
744
736
|
}
|
|
745
|
-
var
|
|
746
|
-
function
|
|
737
|
+
var Nt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Vr = /(?:[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;
|
|
738
|
+
function Xr(e) {
|
|
747
739
|
var t = {};
|
|
748
|
-
return e.replace(
|
|
740
|
+
return e.replace(Vr, function(r) {
|
|
749
741
|
var n = r.length;
|
|
750
742
|
switch (r[0]) {
|
|
751
743
|
case "G":
|
|
@@ -834,11 +826,21 @@ function Vr(e) {
|
|
|
834
826
|
return "";
|
|
835
827
|
}), t;
|
|
836
828
|
}
|
|
837
|
-
var
|
|
838
|
-
function
|
|
829
|
+
var C = function() {
|
|
830
|
+
return C = Object.assign || function(t) {
|
|
831
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
832
|
+
r = arguments[n];
|
|
833
|
+
for (var s in r)
|
|
834
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
835
|
+
}
|
|
836
|
+
return t;
|
|
837
|
+
}, C.apply(this, arguments);
|
|
838
|
+
};
|
|
839
|
+
var zr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
840
|
+
function Wr(e) {
|
|
839
841
|
if (e.length === 0)
|
|
840
842
|
throw new Error("Number skeleton cannot be empty");
|
|
841
|
-
for (var t = e.split(
|
|
843
|
+
for (var t = e.split(zr).filter(function(f) {
|
|
842
844
|
return f.length > 0;
|
|
843
845
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
844
846
|
var s = i[n], o = s.split("/");
|
|
@@ -853,17 +855,17 @@ function zr(e) {
|
|
|
853
855
|
}
|
|
854
856
|
return r;
|
|
855
857
|
}
|
|
856
|
-
function
|
|
858
|
+
function Zr(e) {
|
|
857
859
|
return e.replace(/^(.*?)-/, "");
|
|
858
860
|
}
|
|
859
|
-
var
|
|
860
|
-
function
|
|
861
|
+
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Lt = /^(@+)?(\+|#+)?[rs]?$/g, Qr = /(\*)(0+)|(#+)(0+)|(0+)/g, It = /^(0+)$/;
|
|
862
|
+
function tt(e) {
|
|
861
863
|
var t = {};
|
|
862
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
864
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Lt, function(r, n, i) {
|
|
863
865
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
864
866
|
}), t;
|
|
865
867
|
}
|
|
866
|
-
function
|
|
868
|
+
function Mt(e) {
|
|
867
869
|
switch (e) {
|
|
868
870
|
case "sign-auto":
|
|
869
871
|
return {
|
|
@@ -903,7 +905,7 @@ function It(e) {
|
|
|
903
905
|
};
|
|
904
906
|
}
|
|
905
907
|
}
|
|
906
|
-
function
|
|
908
|
+
function qr(e) {
|
|
907
909
|
var t;
|
|
908
910
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
909
911
|
notation: "engineering"
|
|
@@ -911,17 +913,17 @@ function Qr(e) {
|
|
|
911
913
|
notation: "scientific"
|
|
912
914
|
}, e = e.slice(1)), t) {
|
|
913
915
|
var r = e.slice(0, 2);
|
|
914
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
916
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !It.test(e))
|
|
915
917
|
throw new Error("Malformed concise eng/scientific notation");
|
|
916
918
|
t.minimumIntegerDigits = e.length;
|
|
917
919
|
}
|
|
918
920
|
return t;
|
|
919
921
|
}
|
|
920
|
-
function
|
|
921
|
-
var t = {}, r =
|
|
922
|
+
function rt(e) {
|
|
923
|
+
var t = {}, r = Mt(e);
|
|
922
924
|
return r || t;
|
|
923
925
|
}
|
|
924
|
-
function
|
|
926
|
+
function Jr(e) {
|
|
925
927
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
926
928
|
var i = n[r];
|
|
927
929
|
switch (i.stem) {
|
|
@@ -945,7 +947,7 @@ function qr(e) {
|
|
|
945
947
|
continue;
|
|
946
948
|
case "measure-unit":
|
|
947
949
|
case "unit":
|
|
948
|
-
t.style = "unit", t.unit =
|
|
950
|
+
t.style = "unit", t.unit = Zr(i.options[0]);
|
|
949
951
|
continue;
|
|
950
952
|
case "compact-short":
|
|
951
953
|
case "K":
|
|
@@ -956,13 +958,13 @@ function qr(e) {
|
|
|
956
958
|
t.notation = "compact", t.compactDisplay = "long";
|
|
957
959
|
continue;
|
|
958
960
|
case "scientific":
|
|
959
|
-
t =
|
|
960
|
-
return
|
|
961
|
+
t = C(C(C({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
962
|
+
return C(C({}, l), rt(a));
|
|
961
963
|
}, {}));
|
|
962
964
|
continue;
|
|
963
965
|
case "engineering":
|
|
964
|
-
t =
|
|
965
|
-
return
|
|
966
|
+
t = C(C(C({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
967
|
+
return C(C({}, l), rt(a));
|
|
966
968
|
}, {}));
|
|
967
969
|
continue;
|
|
968
970
|
case "notation-simple":
|
|
@@ -1007,45 +1009,45 @@ function qr(e) {
|
|
|
1007
1009
|
case "integer-width":
|
|
1008
1010
|
if (i.options.length > 1)
|
|
1009
1011
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1010
|
-
i.options[0].replace(
|
|
1012
|
+
i.options[0].replace(Qr, function(l, a, h, c, f, p) {
|
|
1011
1013
|
if (a)
|
|
1012
1014
|
t.minimumIntegerDigits = h.length;
|
|
1013
1015
|
else {
|
|
1014
1016
|
if (c && f)
|
|
1015
1017
|
throw new Error("We currently do not support maximum integer digits");
|
|
1016
|
-
if (
|
|
1018
|
+
if (p)
|
|
1017
1019
|
throw new Error("We currently do not support exact integer digits");
|
|
1018
1020
|
}
|
|
1019
1021
|
return "";
|
|
1020
1022
|
});
|
|
1021
1023
|
continue;
|
|
1022
1024
|
}
|
|
1023
|
-
if (
|
|
1025
|
+
if (It.test(i.stem)) {
|
|
1024
1026
|
t.minimumIntegerDigits = i.stem.length;
|
|
1025
1027
|
continue;
|
|
1026
1028
|
}
|
|
1027
|
-
if (
|
|
1029
|
+
if (et.test(i.stem)) {
|
|
1028
1030
|
if (i.options.length > 1)
|
|
1029
1031
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1030
|
-
i.stem.replace(
|
|
1031
|
-
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1032
|
+
i.stem.replace(et, function(l, a, h, c, f, p) {
|
|
1033
|
+
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1032
1034
|
});
|
|
1033
1035
|
var s = i.options[0];
|
|
1034
|
-
s === "w" ? t =
|
|
1036
|
+
s === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = C(C({}, t), tt(s)));
|
|
1035
1037
|
continue;
|
|
1036
1038
|
}
|
|
1037
|
-
if (
|
|
1038
|
-
t =
|
|
1039
|
+
if (Lt.test(i.stem)) {
|
|
1040
|
+
t = C(C({}, t), tt(i.stem));
|
|
1039
1041
|
continue;
|
|
1040
1042
|
}
|
|
1041
|
-
var o =
|
|
1042
|
-
o && (t =
|
|
1043
|
-
var u =
|
|
1044
|
-
u && (t =
|
|
1043
|
+
var o = Mt(i.stem);
|
|
1044
|
+
o && (t = C(C({}, t), o));
|
|
1045
|
+
var u = qr(i.stem);
|
|
1046
|
+
u && (t = C(C({}, t), u));
|
|
1045
1047
|
}
|
|
1046
1048
|
return t;
|
|
1047
1049
|
}
|
|
1048
|
-
var
|
|
1050
|
+
var ge = {
|
|
1049
1051
|
"001": [
|
|
1050
1052
|
"H",
|
|
1051
1053
|
"h"
|
|
@@ -2460,13 +2462,13 @@ var ce = {
|
|
|
2460
2462
|
"h"
|
|
2461
2463
|
]
|
|
2462
2464
|
};
|
|
2463
|
-
function
|
|
2465
|
+
function Yr(e, t) {
|
|
2464
2466
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2465
2467
|
var i = e.charAt(n);
|
|
2466
2468
|
if (i === "j") {
|
|
2467
2469
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2468
2470
|
s++, n++;
|
|
2469
|
-
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", a =
|
|
2471
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = Kr(t);
|
|
2470
2472
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2471
2473
|
r += l;
|
|
2472
2474
|
for (; o-- > 0; )
|
|
@@ -2476,7 +2478,7 @@ function Jr(e, t) {
|
|
|
2476
2478
|
}
|
|
2477
2479
|
return r;
|
|
2478
2480
|
}
|
|
2479
|
-
function
|
|
2481
|
+
function Kr(e) {
|
|
2480
2482
|
var t = e.hourCycle;
|
|
2481
2483
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2482
2484
|
e.hourCycles && // @ts-ignore
|
|
@@ -2495,23 +2497,23 @@ function Yr(e) {
|
|
|
2495
2497
|
}
|
|
2496
2498
|
var r = e.language, n;
|
|
2497
2499
|
r !== "root" && (n = e.maximize().region);
|
|
2498
|
-
var i =
|
|
2500
|
+
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
2499
2501
|
return i[0];
|
|
2500
2502
|
}
|
|
2501
|
-
var
|
|
2502
|
-
function
|
|
2503
|
+
var we, en = new RegExp("^".concat(Nt.source, "*")), tn = new RegExp("".concat(Nt.source, "*$"));
|
|
2504
|
+
function _(e, t) {
|
|
2503
2505
|
return { start: e, end: t };
|
|
2504
2506
|
}
|
|
2505
|
-
var
|
|
2507
|
+
var rn = !!String.prototype.startsWith && "_a".startsWith("a", 1), nn = !!String.fromCodePoint, sn = !!Object.fromEntries, on = !!String.prototype.codePointAt, an = !!String.prototype.trimStart, un = !!String.prototype.trimEnd, hn = !!Number.isSafeInteger, ln = hn ? Number.isSafeInteger : function(e) {
|
|
2506
2508
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2507
|
-
},
|
|
2509
|
+
}, Ue = !0;
|
|
2508
2510
|
try {
|
|
2509
|
-
var
|
|
2510
|
-
|
|
2511
|
+
var fn = Rt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2512
|
+
Ue = ((we = fn.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
|
|
2511
2513
|
} catch {
|
|
2512
|
-
|
|
2514
|
+
Ue = !1;
|
|
2513
2515
|
}
|
|
2514
|
-
var
|
|
2516
|
+
var nt = rn ? (
|
|
2515
2517
|
// Native
|
|
2516
2518
|
function(t, r, n) {
|
|
2517
2519
|
return t.startsWith(r, n);
|
|
@@ -2521,7 +2523,7 @@ var rt = tn ? (
|
|
|
2521
2523
|
function(t, r, n) {
|
|
2522
2524
|
return t.slice(n, n + r.length) === r;
|
|
2523
2525
|
}
|
|
2524
|
-
),
|
|
2526
|
+
), De = nn ? String.fromCodePoint : (
|
|
2525
2527
|
// IE11
|
|
2526
2528
|
function() {
|
|
2527
2529
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2533,9 +2535,9 @@ var rt = tn ? (
|
|
|
2533
2535
|
}
|
|
2534
2536
|
return n;
|
|
2535
2537
|
}
|
|
2536
|
-
),
|
|
2538
|
+
), it = (
|
|
2537
2539
|
// native
|
|
2538
|
-
|
|
2540
|
+
sn ? Object.fromEntries : (
|
|
2539
2541
|
// Ponyfill
|
|
2540
2542
|
function(t) {
|
|
2541
2543
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2545,7 +2547,7 @@ var rt = tn ? (
|
|
|
2545
2547
|
return r;
|
|
2546
2548
|
}
|
|
2547
2549
|
)
|
|
2548
|
-
),
|
|
2550
|
+
), $t = on ? (
|
|
2549
2551
|
// Native
|
|
2550
2552
|
function(t, r) {
|
|
2551
2553
|
return t.codePointAt(r);
|
|
@@ -2559,7 +2561,7 @@ var rt = tn ? (
|
|
|
2559
2561
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2560
2562
|
}
|
|
2561
2563
|
}
|
|
2562
|
-
),
|
|
2564
|
+
), cn = an ? (
|
|
2563
2565
|
// Native
|
|
2564
2566
|
function(t) {
|
|
2565
2567
|
return t.trimStart();
|
|
@@ -2567,9 +2569,9 @@ var rt = tn ? (
|
|
|
2567
2569
|
) : (
|
|
2568
2570
|
// Ponyfill
|
|
2569
2571
|
function(t) {
|
|
2570
|
-
return t.replace(
|
|
2572
|
+
return t.replace(en, "");
|
|
2571
2573
|
}
|
|
2572
|
-
),
|
|
2574
|
+
), gn = un ? (
|
|
2573
2575
|
// Native
|
|
2574
2576
|
function(t) {
|
|
2575
2577
|
return t.trimEnd();
|
|
@@ -2577,32 +2579,32 @@ var rt = tn ? (
|
|
|
2577
2579
|
) : (
|
|
2578
2580
|
// Ponyfill
|
|
2579
2581
|
function(t) {
|
|
2580
|
-
return t.replace(
|
|
2582
|
+
return t.replace(tn, "");
|
|
2581
2583
|
}
|
|
2582
2584
|
);
|
|
2583
|
-
function
|
|
2585
|
+
function Rt(e, t) {
|
|
2584
2586
|
return new RegExp(e, t);
|
|
2585
2587
|
}
|
|
2586
|
-
var
|
|
2587
|
-
if (
|
|
2588
|
-
var
|
|
2589
|
-
|
|
2588
|
+
var Ge;
|
|
2589
|
+
if (Ue) {
|
|
2590
|
+
var st = Rt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2591
|
+
Ge = function(t, r) {
|
|
2590
2592
|
var n;
|
|
2591
|
-
|
|
2592
|
-
var i =
|
|
2593
|
+
st.lastIndex = r;
|
|
2594
|
+
var i = st.exec(t);
|
|
2593
2595
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2594
2596
|
};
|
|
2595
2597
|
} else
|
|
2596
|
-
|
|
2598
|
+
Ge = function(t, r) {
|
|
2597
2599
|
for (var n = []; ; ) {
|
|
2598
|
-
var i =
|
|
2599
|
-
if (i === void 0 ||
|
|
2600
|
+
var i = $t(t, r);
|
|
2601
|
+
if (i === void 0 || Ut(i) || bn(i))
|
|
2600
2602
|
break;
|
|
2601
2603
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2602
2604
|
}
|
|
2603
|
-
return
|
|
2605
|
+
return De.apply(void 0, n);
|
|
2604
2606
|
};
|
|
2605
|
-
var
|
|
2607
|
+
var mn = (
|
|
2606
2608
|
/** @class */
|
|
2607
2609
|
function() {
|
|
2608
2610
|
function e(t, r) {
|
|
@@ -2626,14 +2628,14 @@ var gn = (
|
|
|
2626
2628
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2627
2629
|
var u = this.clonePosition();
|
|
2628
2630
|
this.bump(), i.push({
|
|
2629
|
-
type:
|
|
2630
|
-
location:
|
|
2631
|
+
type: v.pound,
|
|
2632
|
+
location: _(u, this.clonePosition())
|
|
2631
2633
|
});
|
|
2632
2634
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2633
2635
|
if (n)
|
|
2634
2636
|
break;
|
|
2635
|
-
return this.error(
|
|
2636
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2637
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2638
|
+
} else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2637
2639
|
var o = this.parseTag(t, r);
|
|
2638
2640
|
if (o.err)
|
|
2639
2641
|
return o;
|
|
@@ -2654,9 +2656,9 @@ var gn = (
|
|
|
2654
2656
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2655
2657
|
return {
|
|
2656
2658
|
val: {
|
|
2657
|
-
type:
|
|
2659
|
+
type: v.literal,
|
|
2658
2660
|
value: "<".concat(i, "/>"),
|
|
2659
|
-
location:
|
|
2661
|
+
location: _(n, this.clonePosition())
|
|
2660
2662
|
},
|
|
2661
2663
|
err: null
|
|
2662
2664
|
};
|
|
@@ -2666,22 +2668,22 @@ var gn = (
|
|
|
2666
2668
|
return s;
|
|
2667
2669
|
var o = s.val, u = this.clonePosition();
|
|
2668
2670
|
if (this.bumpIf("</")) {
|
|
2669
|
-
if (this.isEOF() || !
|
|
2670
|
-
return this.error(
|
|
2671
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
2672
|
+
return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
|
|
2671
2673
|
var l = this.clonePosition(), a = this.parseTagName();
|
|
2672
|
-
return i !== a ? this.error(
|
|
2674
|
+
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2673
2675
|
val: {
|
|
2674
|
-
type:
|
|
2676
|
+
type: v.tag,
|
|
2675
2677
|
value: i,
|
|
2676
2678
|
children: o,
|
|
2677
|
-
location:
|
|
2679
|
+
location: _(n, this.clonePosition())
|
|
2678
2680
|
},
|
|
2679
2681
|
err: null
|
|
2680
|
-
} : this.error(
|
|
2682
|
+
} : this.error(y.INVALID_TAG, _(u, this.clonePosition())));
|
|
2681
2683
|
} else
|
|
2682
|
-
return this.error(
|
|
2684
|
+
return this.error(y.UNCLOSED_TAG, _(n, this.clonePosition()));
|
|
2683
2685
|
} else
|
|
2684
|
-
return this.error(
|
|
2686
|
+
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
|
2685
2687
|
}, e.prototype.parseTagName = function() {
|
|
2686
2688
|
var t = this.offset();
|
|
2687
2689
|
for (this.bump(); !this.isEOF() && dn(this.char()); )
|
|
@@ -2706,14 +2708,14 @@ var gn = (
|
|
|
2706
2708
|
}
|
|
2707
2709
|
break;
|
|
2708
2710
|
}
|
|
2709
|
-
var l =
|
|
2711
|
+
var l = _(n, this.clonePosition());
|
|
2710
2712
|
return {
|
|
2711
|
-
val: { type:
|
|
2713
|
+
val: { type: v.literal, value: i, location: l },
|
|
2712
2714
|
err: null
|
|
2713
2715
|
};
|
|
2714
2716
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2715
2717
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2716
|
-
!
|
|
2718
|
+
!pn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2717
2719
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2718
2720
|
if (this.isEOF() || this.char() !== 39)
|
|
2719
2721
|
return null;
|
|
@@ -2747,49 +2749,49 @@ var gn = (
|
|
|
2747
2749
|
r.push(n);
|
|
2748
2750
|
this.bump();
|
|
2749
2751
|
}
|
|
2750
|
-
return
|
|
2752
|
+
return De.apply(void 0, r);
|
|
2751
2753
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2752
2754
|
if (this.isEOF())
|
|
2753
2755
|
return null;
|
|
2754
2756
|
var n = this.char();
|
|
2755
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2757
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
2756
2758
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2757
2759
|
var n = this.clonePosition();
|
|
2758
2760
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2759
|
-
return this.error(
|
|
2761
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
|
|
2760
2762
|
if (this.char() === 125)
|
|
2761
|
-
return this.bump(), this.error(
|
|
2763
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, _(n, this.clonePosition()));
|
|
2762
2764
|
var i = this.parseIdentifierIfPossible().value;
|
|
2763
2765
|
if (!i)
|
|
2764
|
-
return this.error(
|
|
2766
|
+
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2765
2767
|
if (this.bumpSpace(), this.isEOF())
|
|
2766
|
-
return this.error(
|
|
2768
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
|
|
2767
2769
|
switch (this.char()) {
|
|
2768
2770
|
case 125:
|
|
2769
2771
|
return this.bump(), {
|
|
2770
2772
|
val: {
|
|
2771
|
-
type:
|
|
2773
|
+
type: v.argument,
|
|
2772
2774
|
// value does not include the opening and closing braces.
|
|
2773
2775
|
value: i,
|
|
2774
|
-
location:
|
|
2776
|
+
location: _(n, this.clonePosition())
|
|
2775
2777
|
},
|
|
2776
2778
|
err: null
|
|
2777
2779
|
};
|
|
2778
2780
|
case 44:
|
|
2779
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2781
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2780
2782
|
default:
|
|
2781
|
-
return this.error(
|
|
2783
|
+
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2782
2784
|
}
|
|
2783
2785
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2784
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2786
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
2785
2787
|
this.bumpTo(i);
|
|
2786
|
-
var s = this.clonePosition(), o =
|
|
2788
|
+
var s = this.clonePosition(), o = _(t, s);
|
|
2787
2789
|
return { value: n, location: o };
|
|
2788
2790
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2789
2791
|
var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2790
2792
|
switch (u) {
|
|
2791
2793
|
case "":
|
|
2792
|
-
return this.error(
|
|
2794
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, _(o, l));
|
|
2793
2795
|
case "number":
|
|
2794
2796
|
case "date":
|
|
2795
2797
|
case "time": {
|
|
@@ -2800,44 +2802,44 @@ var gn = (
|
|
|
2800
2802
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2801
2803
|
if (c.err)
|
|
2802
2804
|
return c;
|
|
2803
|
-
var f =
|
|
2805
|
+
var f = gn(c.val);
|
|
2804
2806
|
if (f.length === 0)
|
|
2805
|
-
return this.error(
|
|
2806
|
-
var
|
|
2807
|
-
a = { style: f, styleLocation:
|
|
2807
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2808
|
+
var p = _(h, this.clonePosition());
|
|
2809
|
+
a = { style: f, styleLocation: p };
|
|
2808
2810
|
}
|
|
2809
|
-
var
|
|
2810
|
-
if (
|
|
2811
|
-
return
|
|
2812
|
-
var g =
|
|
2813
|
-
if (a &&
|
|
2814
|
-
var E =
|
|
2811
|
+
var d = this.tryParseArgumentClose(i);
|
|
2812
|
+
if (d.err)
|
|
2813
|
+
return d;
|
|
2814
|
+
var g = _(i, this.clonePosition());
|
|
2815
|
+
if (a && nt(a?.style, "::", 0)) {
|
|
2816
|
+
var E = cn(a.style.slice(2));
|
|
2815
2817
|
if (u === "number") {
|
|
2816
2818
|
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2817
2819
|
return c.err ? c : {
|
|
2818
|
-
val: { type:
|
|
2820
|
+
val: { type: v.number, value: n, location: g, style: c.val },
|
|
2819
2821
|
err: null
|
|
2820
2822
|
};
|
|
2821
2823
|
} else {
|
|
2822
2824
|
if (E.length === 0)
|
|
2823
|
-
return this.error(
|
|
2825
|
+
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2824
2826
|
var m = E;
|
|
2825
|
-
this.locale && (m =
|
|
2827
|
+
this.locale && (m = Yr(E, this.locale));
|
|
2826
2828
|
var f = {
|
|
2827
|
-
type:
|
|
2829
|
+
type: q.dateTime,
|
|
2828
2830
|
pattern: m,
|
|
2829
2831
|
location: a.styleLocation,
|
|
2830
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2831
|
-
},
|
|
2832
|
+
parsedOptions: this.shouldParseSkeletons ? Xr(m) : {}
|
|
2833
|
+
}, T = u === "date" ? v.date : v.time;
|
|
2832
2834
|
return {
|
|
2833
|
-
val: { type:
|
|
2835
|
+
val: { type: T, value: n, location: g, style: f },
|
|
2834
2836
|
err: null
|
|
2835
2837
|
};
|
|
2836
2838
|
}
|
|
2837
2839
|
}
|
|
2838
2840
|
return {
|
|
2839
2841
|
val: {
|
|
2840
|
-
type: u === "number" ?
|
|
2842
|
+
type: u === "number" ? v.number : u === "date" ? v.date : v.time,
|
|
2841
2843
|
value: n,
|
|
2842
2844
|
location: g,
|
|
2843
2845
|
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2848,41 +2850,41 @@ var gn = (
|
|
|
2848
2850
|
case "plural":
|
|
2849
2851
|
case "selectordinal":
|
|
2850
2852
|
case "select": {
|
|
2851
|
-
var
|
|
2853
|
+
var S = this.clonePosition();
|
|
2852
2854
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2853
|
-
return this.error(
|
|
2855
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(S, ye({}, S)));
|
|
2854
2856
|
this.bumpSpace();
|
|
2855
|
-
var w = this.parseIdentifierIfPossible(),
|
|
2857
|
+
var w = this.parseIdentifierIfPossible(), A = 0;
|
|
2856
2858
|
if (u !== "select" && w.value === "offset") {
|
|
2857
2859
|
if (!this.bumpIf(":"))
|
|
2858
|
-
return this.error(
|
|
2860
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2859
2861
|
this.bumpSpace();
|
|
2860
|
-
var c = this.tryParseDecimalInteger(
|
|
2862
|
+
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2861
2863
|
if (c.err)
|
|
2862
2864
|
return c;
|
|
2863
|
-
this.bumpSpace(), w = this.parseIdentifierIfPossible(),
|
|
2865
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), A = c.val;
|
|
2864
2866
|
}
|
|
2865
2867
|
var H = this.tryParsePluralOrSelectOptions(t, u, r, w);
|
|
2866
2868
|
if (H.err)
|
|
2867
2869
|
return H;
|
|
2868
|
-
var
|
|
2869
|
-
if (
|
|
2870
|
-
return
|
|
2871
|
-
var P =
|
|
2870
|
+
var d = this.tryParseArgumentClose(i);
|
|
2871
|
+
if (d.err)
|
|
2872
|
+
return d;
|
|
2873
|
+
var P = _(i, this.clonePosition());
|
|
2872
2874
|
return u === "select" ? {
|
|
2873
2875
|
val: {
|
|
2874
|
-
type:
|
|
2876
|
+
type: v.select,
|
|
2875
2877
|
value: n,
|
|
2876
|
-
options:
|
|
2878
|
+
options: it(H.val),
|
|
2877
2879
|
location: P
|
|
2878
2880
|
},
|
|
2879
2881
|
err: null
|
|
2880
2882
|
} : {
|
|
2881
2883
|
val: {
|
|
2882
|
-
type:
|
|
2884
|
+
type: v.plural,
|
|
2883
2885
|
value: n,
|
|
2884
|
-
options:
|
|
2885
|
-
offset:
|
|
2886
|
+
options: it(H.val),
|
|
2887
|
+
offset: A,
|
|
2886
2888
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2887
2889
|
location: P
|
|
2888
2890
|
},
|
|
@@ -2890,10 +2892,10 @@ var gn = (
|
|
|
2890
2892
|
};
|
|
2891
2893
|
}
|
|
2892
2894
|
default:
|
|
2893
|
-
return this.error(
|
|
2895
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, _(o, l));
|
|
2894
2896
|
}
|
|
2895
2897
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2896
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2898
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2897
2899
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2898
2900
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2899
2901
|
var n = this.char();
|
|
@@ -2902,7 +2904,7 @@ var gn = (
|
|
|
2902
2904
|
this.bump();
|
|
2903
2905
|
var i = this.clonePosition();
|
|
2904
2906
|
if (!this.bumpUntil("'"))
|
|
2905
|
-
return this.error(
|
|
2907
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
|
|
2906
2908
|
this.bump();
|
|
2907
2909
|
break;
|
|
2908
2910
|
}
|
|
@@ -2932,16 +2934,16 @@ var gn = (
|
|
|
2932
2934
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2933
2935
|
var n = [];
|
|
2934
2936
|
try {
|
|
2935
|
-
n =
|
|
2937
|
+
n = Wr(t);
|
|
2936
2938
|
} catch {
|
|
2937
|
-
return this.error(
|
|
2939
|
+
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
2938
2940
|
}
|
|
2939
2941
|
return {
|
|
2940
2942
|
val: {
|
|
2941
|
-
type:
|
|
2943
|
+
type: q.number,
|
|
2942
2944
|
tokens: n,
|
|
2943
2945
|
location: r,
|
|
2944
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2946
|
+
parsedOptions: this.shouldParseSkeletons ? Jr(n) : {}
|
|
2945
2947
|
},
|
|
2946
2948
|
err: null
|
|
2947
2949
|
};
|
|
@@ -2950,34 +2952,34 @@ var gn = (
|
|
|
2950
2952
|
if (a.length === 0) {
|
|
2951
2953
|
var c = this.clonePosition();
|
|
2952
2954
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2953
|
-
var f = this.tryParseDecimalInteger(
|
|
2955
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2954
2956
|
if (f.err)
|
|
2955
2957
|
return f;
|
|
2956
|
-
h =
|
|
2958
|
+
h = _(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
2957
2959
|
} else
|
|
2958
2960
|
break;
|
|
2959
2961
|
}
|
|
2960
2962
|
if (l.has(a))
|
|
2961
|
-
return this.error(r === "select" ?
|
|
2963
|
+
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2962
2964
|
a === "other" && (o = !0), this.bumpSpace();
|
|
2963
|
-
var
|
|
2965
|
+
var p = this.clonePosition();
|
|
2964
2966
|
if (!this.bumpIf("{"))
|
|
2965
|
-
return this.error(r === "select" ?
|
|
2966
|
-
var
|
|
2967
|
-
if (
|
|
2968
|
-
return
|
|
2969
|
-
var g = this.tryParseArgumentClose(
|
|
2967
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
2968
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
2969
|
+
if (d.err)
|
|
2970
|
+
return d;
|
|
2971
|
+
var g = this.tryParseArgumentClose(p);
|
|
2970
2972
|
if (g.err)
|
|
2971
2973
|
return g;
|
|
2972
2974
|
u.push([
|
|
2973
2975
|
a,
|
|
2974
2976
|
{
|
|
2975
|
-
value:
|
|
2976
|
-
location:
|
|
2977
|
+
value: d.val,
|
|
2978
|
+
location: _(p, this.clonePosition())
|
|
2977
2979
|
}
|
|
2978
2980
|
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
2979
2981
|
}
|
|
2980
|
-
return u.length === 0 ? this.error(r === "select" ?
|
|
2982
|
+
return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
2981
2983
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2982
2984
|
var n = 1, i = this.clonePosition();
|
|
2983
2985
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -2988,8 +2990,8 @@ var gn = (
|
|
|
2988
2990
|
else
|
|
2989
2991
|
break;
|
|
2990
2992
|
}
|
|
2991
|
-
var l =
|
|
2992
|
-
return s ? (o *= n,
|
|
2993
|
+
var l = _(i, this.clonePosition());
|
|
2994
|
+
return s ? (o *= n, ln(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2993
2995
|
}, e.prototype.offset = function() {
|
|
2994
2996
|
return this.position.offset;
|
|
2995
2997
|
}, e.prototype.isEOF = function() {
|
|
@@ -3004,7 +3006,7 @@ var gn = (
|
|
|
3004
3006
|
var t = this.position.offset;
|
|
3005
3007
|
if (t >= this.message.length)
|
|
3006
3008
|
throw Error("out of bound");
|
|
3007
|
-
var r =
|
|
3009
|
+
var r = $t(this.message, t);
|
|
3008
3010
|
if (r === void 0)
|
|
3009
3011
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3010
3012
|
return r;
|
|
@@ -3023,7 +3025,7 @@ var gn = (
|
|
|
3023
3025
|
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);
|
|
3024
3026
|
}
|
|
3025
3027
|
}, e.prototype.bumpIf = function(t) {
|
|
3026
|
-
if (
|
|
3028
|
+
if (nt(this.message, t, this.offset())) {
|
|
3027
3029
|
for (var r = 0; r < t.length; r++)
|
|
3028
3030
|
this.bump();
|
|
3029
3031
|
return !0;
|
|
@@ -3045,7 +3047,7 @@ var gn = (
|
|
|
3045
3047
|
break;
|
|
3046
3048
|
}
|
|
3047
3049
|
}, e.prototype.bumpSpace = function() {
|
|
3048
|
-
for (; !this.isEOF() &&
|
|
3050
|
+
for (; !this.isEOF() && Ut(this.char()); )
|
|
3049
3051
|
this.bump();
|
|
3050
3052
|
}, e.prototype.peek = function() {
|
|
3051
3053
|
if (this.isEOF())
|
|
@@ -3055,47 +3057,47 @@ var gn = (
|
|
|
3055
3057
|
}, e;
|
|
3056
3058
|
}()
|
|
3057
3059
|
);
|
|
3058
|
-
function
|
|
3060
|
+
function Fe(e) {
|
|
3059
3061
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3060
3062
|
}
|
|
3061
|
-
function
|
|
3062
|
-
return
|
|
3063
|
+
function pn(e) {
|
|
3064
|
+
return Fe(e) || e === 47;
|
|
3063
3065
|
}
|
|
3064
3066
|
function dn(e) {
|
|
3065
3067
|
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;
|
|
3066
3068
|
}
|
|
3067
|
-
function
|
|
3069
|
+
function Ut(e) {
|
|
3068
3070
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3069
3071
|
}
|
|
3070
|
-
function
|
|
3072
|
+
function bn(e) {
|
|
3071
3073
|
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;
|
|
3072
3074
|
}
|
|
3073
|
-
function
|
|
3075
|
+
function je(e) {
|
|
3074
3076
|
e.forEach(function(t) {
|
|
3075
|
-
if (delete t.location, Bt(t) ||
|
|
3077
|
+
if (delete t.location, Bt(t) || Ot(t))
|
|
3076
3078
|
for (var r in t.options)
|
|
3077
|
-
delete t.options[r].location,
|
|
3079
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3078
3080
|
else
|
|
3079
|
-
|
|
3081
|
+
Ht(t) && Pt(t.style) || (St(t) || At(t)) && Re(t.style) ? delete t.style.location : wt(t) && je(t.children);
|
|
3080
3082
|
});
|
|
3081
3083
|
}
|
|
3082
|
-
function
|
|
3083
|
-
t === void 0 && (t = {}), t =
|
|
3084
|
-
var r = new
|
|
3084
|
+
function yn(e, t) {
|
|
3085
|
+
t === void 0 && (t = {}), t = ye({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3086
|
+
var r = new mn(e, t).parse();
|
|
3085
3087
|
if (r.err) {
|
|
3086
|
-
var n = SyntaxError(
|
|
3088
|
+
var n = SyntaxError(y[r.err.kind]);
|
|
3087
3089
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3088
3090
|
}
|
|
3089
|
-
return t?.captureLocation ||
|
|
3091
|
+
return t?.captureLocation || je(r.val), r.val;
|
|
3090
3092
|
}
|
|
3091
|
-
var
|
|
3093
|
+
var J;
|
|
3092
3094
|
(function(e) {
|
|
3093
3095
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3094
|
-
})(
|
|
3095
|
-
var
|
|
3096
|
+
})(J || (J = {}));
|
|
3097
|
+
var Te = (
|
|
3096
3098
|
/** @class */
|
|
3097
3099
|
function(e) {
|
|
3098
|
-
|
|
3100
|
+
ve(t, e);
|
|
3099
3101
|
function t(r, n, i) {
|
|
3100
3102
|
var s = e.call(this, r) || this;
|
|
3101
3103
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3104,33 +3106,33 @@ var Ee = (
|
|
|
3104
3106
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3105
3107
|
}, t;
|
|
3106
3108
|
}(Error)
|
|
3107
|
-
),
|
|
3109
|
+
), ot = (
|
|
3108
3110
|
/** @class */
|
|
3109
3111
|
function(e) {
|
|
3110
|
-
|
|
3112
|
+
ve(t, e);
|
|
3111
3113
|
function t(r, n, i, s) {
|
|
3112
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3114
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, s) || this;
|
|
3113
3115
|
}
|
|
3114
3116
|
return t;
|
|
3115
|
-
}(
|
|
3117
|
+
}(Te)
|
|
3116
3118
|
), _n = (
|
|
3117
3119
|
/** @class */
|
|
3118
3120
|
function(e) {
|
|
3119
|
-
|
|
3121
|
+
ve(t, e);
|
|
3120
3122
|
function t(r, n, i) {
|
|
3121
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3123
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
|
|
3122
3124
|
}
|
|
3123
3125
|
return t;
|
|
3124
|
-
}(
|
|
3125
|
-
),
|
|
3126
|
+
}(Te)
|
|
3127
|
+
), En = (
|
|
3126
3128
|
/** @class */
|
|
3127
3129
|
function(e) {
|
|
3128
|
-
|
|
3130
|
+
ve(t, e);
|
|
3129
3131
|
function t(r, n) {
|
|
3130
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3132
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
|
|
3131
3133
|
}
|
|
3132
3134
|
return t;
|
|
3133
|
-
}(
|
|
3135
|
+
}(Te)
|
|
3134
3136
|
), O;
|
|
3135
3137
|
(function(e) {
|
|
3136
3138
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -3141,11 +3143,11 @@ function xn(e) {
|
|
|
3141
3143
|
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
|
3142
3144
|
}, []);
|
|
3143
3145
|
}
|
|
3144
|
-
function
|
|
3146
|
+
function vn(e) {
|
|
3145
3147
|
return typeof e == "function";
|
|
3146
3148
|
}
|
|
3147
|
-
function
|
|
3148
|
-
if (e.length === 1 &&
|
|
3149
|
+
function pe(e, t, r, n, i, s, o) {
|
|
3150
|
+
if (e.length === 1 && Ke(e[0]))
|
|
3149
3151
|
return [
|
|
3150
3152
|
{
|
|
3151
3153
|
type: O.literal,
|
|
@@ -3154,14 +3156,14 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3154
3156
|
];
|
|
3155
3157
|
for (var u = [], l = 0, a = e; l < a.length; l++) {
|
|
3156
3158
|
var h = a[l];
|
|
3157
|
-
if (
|
|
3159
|
+
if (Ke(h)) {
|
|
3158
3160
|
u.push({
|
|
3159
3161
|
type: O.literal,
|
|
3160
3162
|
value: h.value
|
|
3161
3163
|
});
|
|
3162
3164
|
continue;
|
|
3163
3165
|
}
|
|
3164
|
-
if (
|
|
3166
|
+
if (kr(h)) {
|
|
3165
3167
|
typeof s == "number" && u.push({
|
|
3166
3168
|
type: O.literal,
|
|
3167
3169
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3170,89 +3172,89 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3170
3172
|
}
|
|
3171
3173
|
var c = h.value;
|
|
3172
3174
|
if (!(i && c in i))
|
|
3173
|
-
throw new
|
|
3175
|
+
throw new En(c, o);
|
|
3174
3176
|
var f = i[c];
|
|
3175
|
-
if (
|
|
3177
|
+
if (jr(h)) {
|
|
3176
3178
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3177
3179
|
type: typeof f == "string" ? O.literal : O.object,
|
|
3178
3180
|
value: f
|
|
3179
3181
|
});
|
|
3180
3182
|
continue;
|
|
3181
3183
|
}
|
|
3182
|
-
if (
|
|
3183
|
-
var
|
|
3184
|
+
if (St(h)) {
|
|
3185
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Re(h.style) ? h.style.parsedOptions : void 0;
|
|
3184
3186
|
u.push({
|
|
3185
3187
|
type: O.literal,
|
|
3186
|
-
value: r.getDateTimeFormat(t,
|
|
3188
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3187
3189
|
});
|
|
3188
3190
|
continue;
|
|
3189
3191
|
}
|
|
3190
3192
|
if (At(h)) {
|
|
3191
|
-
var
|
|
3193
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Re(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3192
3194
|
u.push({
|
|
3193
3195
|
type: O.literal,
|
|
3194
|
-
value: r.getDateTimeFormat(t,
|
|
3196
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3195
3197
|
});
|
|
3196
3198
|
continue;
|
|
3197
3199
|
}
|
|
3198
|
-
if (
|
|
3199
|
-
var
|
|
3200
|
-
|
|
3200
|
+
if (Ht(h)) {
|
|
3201
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Pt(h.style) ? h.style.parsedOptions : void 0;
|
|
3202
|
+
p && p.scale && (f = f * (p.scale || 1)), u.push({
|
|
3201
3203
|
type: O.literal,
|
|
3202
|
-
value: r.getNumberFormat(t,
|
|
3204
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3203
3205
|
});
|
|
3204
3206
|
continue;
|
|
3205
3207
|
}
|
|
3206
|
-
if (
|
|
3207
|
-
var
|
|
3208
|
-
if (!
|
|
3208
|
+
if (wt(h)) {
|
|
3209
|
+
var d = h.children, g = h.value, E = i[g];
|
|
3210
|
+
if (!vn(E))
|
|
3209
3211
|
throw new _n(g, "function", o);
|
|
3210
|
-
var m =
|
|
3211
|
-
return
|
|
3212
|
+
var m = pe(d, t, r, n, i, s), T = E(m.map(function(A) {
|
|
3213
|
+
return A.value;
|
|
3212
3214
|
}));
|
|
3213
|
-
Array.isArray(
|
|
3215
|
+
Array.isArray(T) || (T = [T]), u.push.apply(u, T.map(function(A) {
|
|
3214
3216
|
return {
|
|
3215
|
-
type: typeof
|
|
3216
|
-
value:
|
|
3217
|
+
type: typeof A == "string" ? O.literal : O.object,
|
|
3218
|
+
value: A
|
|
3217
3219
|
};
|
|
3218
3220
|
}));
|
|
3219
3221
|
}
|
|
3220
3222
|
if (Bt(h)) {
|
|
3221
|
-
var
|
|
3222
|
-
if (!
|
|
3223
|
-
throw new
|
|
3224
|
-
u.push.apply(u,
|
|
3223
|
+
var S = h.options[f] || h.options.other;
|
|
3224
|
+
if (!S)
|
|
3225
|
+
throw new ot(h.value, f, Object.keys(h.options), o);
|
|
3226
|
+
u.push.apply(u, pe(S.value, t, r, n, i));
|
|
3225
3227
|
continue;
|
|
3226
3228
|
}
|
|
3227
|
-
if (
|
|
3228
|
-
var
|
|
3229
|
-
if (!
|
|
3229
|
+
if (Ot(h)) {
|
|
3230
|
+
var S = h.options["=".concat(f)];
|
|
3231
|
+
if (!S) {
|
|
3230
3232
|
if (!Intl.PluralRules)
|
|
3231
|
-
throw new
|
|
3233
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3232
3234
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3233
|
-
`,
|
|
3235
|
+
`, J.MISSING_INTL_API, o);
|
|
3234
3236
|
var w = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3235
|
-
|
|
3237
|
+
S = h.options[w] || h.options.other;
|
|
3236
3238
|
}
|
|
3237
|
-
if (!
|
|
3238
|
-
throw new
|
|
3239
|
-
u.push.apply(u,
|
|
3239
|
+
if (!S)
|
|
3240
|
+
throw new ot(h.value, f, Object.keys(h.options), o);
|
|
3241
|
+
u.push.apply(u, pe(S.value, t, r, n, i, f - (h.offset || 0)));
|
|
3240
3242
|
continue;
|
|
3241
3243
|
}
|
|
3242
3244
|
}
|
|
3243
3245
|
return xn(u);
|
|
3244
3246
|
}
|
|
3245
|
-
function
|
|
3246
|
-
return t ?
|
|
3247
|
-
return r[n] =
|
|
3247
|
+
function Tn(e, t) {
|
|
3248
|
+
return t ? R(R(R({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3249
|
+
return r[n] = R(R({}, e[n]), t[n] || {}), r;
|
|
3248
3250
|
}, {})) : e;
|
|
3249
3251
|
}
|
|
3250
|
-
function
|
|
3252
|
+
function Cn(e, t) {
|
|
3251
3253
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3252
|
-
return r[n] =
|
|
3253
|
-
},
|
|
3254
|
+
return r[n] = Tn(e[n], t[n]), r;
|
|
3255
|
+
}, R({}, e)) : e;
|
|
3254
3256
|
}
|
|
3255
|
-
function
|
|
3257
|
+
function Pe(e) {
|
|
3256
3258
|
return {
|
|
3257
3259
|
create: function() {
|
|
3258
3260
|
return {
|
|
@@ -3266,39 +3268,39 @@ function Oe(e) {
|
|
|
3266
3268
|
}
|
|
3267
3269
|
};
|
|
3268
3270
|
}
|
|
3269
|
-
function
|
|
3271
|
+
function Hn(e) {
|
|
3270
3272
|
return e === void 0 && (e = {
|
|
3271
3273
|
number: {},
|
|
3272
3274
|
dateTime: {},
|
|
3273
3275
|
pluralRules: {}
|
|
3274
3276
|
}), {
|
|
3275
|
-
getNumberFormat:
|
|
3277
|
+
getNumberFormat: Be(function() {
|
|
3276
3278
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3277
3279
|
r[n] = arguments[n];
|
|
3278
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3280
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3279
3281
|
}, {
|
|
3280
|
-
cache:
|
|
3281
|
-
strategy:
|
|
3282
|
+
cache: Pe(e.number),
|
|
3283
|
+
strategy: Oe.variadic
|
|
3282
3284
|
}),
|
|
3283
|
-
getDateTimeFormat:
|
|
3285
|
+
getDateTimeFormat: Be(function() {
|
|
3284
3286
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3285
3287
|
r[n] = arguments[n];
|
|
3286
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3288
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3287
3289
|
}, {
|
|
3288
|
-
cache:
|
|
3289
|
-
strategy:
|
|
3290
|
+
cache: Pe(e.dateTime),
|
|
3291
|
+
strategy: Oe.variadic
|
|
3290
3292
|
}),
|
|
3291
|
-
getPluralRules:
|
|
3293
|
+
getPluralRules: Be(function() {
|
|
3292
3294
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3293
3295
|
r[n] = arguments[n];
|
|
3294
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3296
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3295
3297
|
}, {
|
|
3296
|
-
cache:
|
|
3297
|
-
strategy:
|
|
3298
|
+
cache: Pe(e.pluralRules),
|
|
3299
|
+
strategy: Oe.variadic
|
|
3298
3300
|
})
|
|
3299
3301
|
};
|
|
3300
3302
|
}
|
|
3301
|
-
var
|
|
3303
|
+
var Sn = (
|
|
3302
3304
|
/** @class */
|
|
3303
3305
|
function() {
|
|
3304
3306
|
function e(t, r, n, i) {
|
|
@@ -3317,7 +3319,7 @@ var Hn = (
|
|
|
3317
3319
|
}, []);
|
|
3318
3320
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3319
3321
|
}, this.formatToParts = function(l) {
|
|
3320
|
-
return
|
|
3322
|
+
return pe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3321
3323
|
}, this.resolvedOptions = function() {
|
|
3322
3324
|
var l;
|
|
3323
3325
|
return {
|
|
@@ -3330,13 +3332,13 @@ var Hn = (
|
|
|
3330
3332
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3331
3333
|
var o = i || {};
|
|
3332
3334
|
o.formatters;
|
|
3333
|
-
var u =
|
|
3334
|
-
this.ast = e.__parse(t,
|
|
3335
|
+
var u = Ir(o, ["formatters"]);
|
|
3336
|
+
this.ast = e.__parse(t, R(R({}, u), { locale: this.resolvedLocale }));
|
|
3335
3337
|
} else
|
|
3336
3338
|
this.ast = t;
|
|
3337
3339
|
if (!Array.isArray(this.ast))
|
|
3338
3340
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3339
|
-
this.formats =
|
|
3341
|
+
this.formats = Cn(e.formats, n), this.formatters = i && i.formatters || Hn(this.formatterCache);
|
|
3340
3342
|
}
|
|
3341
3343
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3342
3344
|
get: function() {
|
|
@@ -3349,7 +3351,7 @@ var Hn = (
|
|
|
3349
3351
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3350
3352
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3351
3353
|
}
|
|
3352
|
-
}, e.__parse =
|
|
3354
|
+
}, e.__parse = yn, e.formats = {
|
|
3353
3355
|
number: {
|
|
3354
3356
|
integer: {
|
|
3355
3357
|
maximumFractionDigits: 0
|
|
@@ -3431,92 +3433,92 @@ function An(e, t) {
|
|
|
3431
3433
|
n = void 0;
|
|
3432
3434
|
return n;
|
|
3433
3435
|
}
|
|
3434
|
-
const
|
|
3436
|
+
const G = {}, Bn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Dt = (e, t) => {
|
|
3435
3437
|
if (t == null)
|
|
3436
3438
|
return;
|
|
3437
|
-
if (t in
|
|
3438
|
-
return
|
|
3439
|
-
const r =
|
|
3439
|
+
if (t in G && e in G[t])
|
|
3440
|
+
return G[t][e];
|
|
3441
|
+
const r = Ce(t);
|
|
3440
3442
|
for (let n = 0; n < r.length; n++) {
|
|
3441
|
-
const i = r[n], s =
|
|
3443
|
+
const i = r[n], s = wn(i, e);
|
|
3442
3444
|
if (s)
|
|
3443
3445
|
return Bn(e, t, s);
|
|
3444
3446
|
}
|
|
3445
3447
|
};
|
|
3446
|
-
let
|
|
3447
|
-
const
|
|
3448
|
-
function
|
|
3449
|
-
return
|
|
3448
|
+
let ze;
|
|
3449
|
+
const he = xe({});
|
|
3450
|
+
function On(e) {
|
|
3451
|
+
return ze[e] || null;
|
|
3450
3452
|
}
|
|
3451
|
-
function
|
|
3452
|
-
return e in
|
|
3453
|
+
function Gt(e) {
|
|
3454
|
+
return e in ze;
|
|
3453
3455
|
}
|
|
3454
|
-
function
|
|
3455
|
-
if (!
|
|
3456
|
+
function wn(e, t) {
|
|
3457
|
+
if (!Gt(e))
|
|
3456
3458
|
return null;
|
|
3457
|
-
const r =
|
|
3459
|
+
const r = On(e);
|
|
3458
3460
|
return An(r, t);
|
|
3459
3461
|
}
|
|
3460
|
-
function
|
|
3462
|
+
function Pn(e) {
|
|
3461
3463
|
if (e == null)
|
|
3462
3464
|
return;
|
|
3463
|
-
const t =
|
|
3465
|
+
const t = Ce(e);
|
|
3464
3466
|
for (let r = 0; r < t.length; r++) {
|
|
3465
3467
|
const n = t[r];
|
|
3466
|
-
if (
|
|
3468
|
+
if (Gt(n))
|
|
3467
3469
|
return n;
|
|
3468
3470
|
}
|
|
3469
3471
|
}
|
|
3470
|
-
function
|
|
3471
|
-
delete
|
|
3472
|
+
function Ft(e, ...t) {
|
|
3473
|
+
delete G[e], he.update((r) => (r[e] = Lr.all([r[e] || {}, ...t]), r));
|
|
3472
3474
|
}
|
|
3473
|
-
|
|
3474
|
-
[
|
|
3475
|
+
ee(
|
|
3476
|
+
[he],
|
|
3475
3477
|
([e]) => Object.keys(e)
|
|
3476
3478
|
);
|
|
3477
|
-
|
|
3479
|
+
he.subscribe((e) => ze = e);
|
|
3478
3480
|
const de = {};
|
|
3479
|
-
function
|
|
3481
|
+
function Nn(e, t) {
|
|
3480
3482
|
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3481
3483
|
}
|
|
3482
|
-
function
|
|
3484
|
+
function jt(e) {
|
|
3483
3485
|
return de[e];
|
|
3484
3486
|
}
|
|
3485
|
-
function
|
|
3486
|
-
return
|
|
3487
|
-
const r =
|
|
3487
|
+
function Ln(e) {
|
|
3488
|
+
return Ce(e).map((t) => {
|
|
3489
|
+
const r = jt(t);
|
|
3488
3490
|
return [t, r ? [...r] : []];
|
|
3489
3491
|
}).filter(([, t]) => t.length > 0);
|
|
3490
3492
|
}
|
|
3491
|
-
function
|
|
3492
|
-
return e == null ? !1 :
|
|
3493
|
+
function ke(e) {
|
|
3494
|
+
return e == null ? !1 : Ce(e).some(
|
|
3493
3495
|
(t) => {
|
|
3494
3496
|
var r;
|
|
3495
|
-
return (r =
|
|
3497
|
+
return (r = jt(t)) == null ? void 0 : r.size;
|
|
3496
3498
|
}
|
|
3497
3499
|
);
|
|
3498
3500
|
}
|
|
3499
|
-
function
|
|
3501
|
+
function In(e, t) {
|
|
3500
3502
|
return Promise.all(
|
|
3501
|
-
t.map((n) => (
|
|
3502
|
-
).then((n) =>
|
|
3503
|
-
}
|
|
3504
|
-
const
|
|
3505
|
-
function
|
|
3506
|
-
if (!
|
|
3507
|
-
return e in
|
|
3508
|
-
const t =
|
|
3509
|
-
return
|
|
3503
|
+
t.map((n) => (Nn(e, n), n().then((i) => i.default || i)))
|
|
3504
|
+
).then((n) => Ft(e, ...n));
|
|
3505
|
+
}
|
|
3506
|
+
const ne = {};
|
|
3507
|
+
function kt(e) {
|
|
3508
|
+
if (!ke(e))
|
|
3509
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
3510
|
+
const t = Ln(e);
|
|
3511
|
+
return ne[e] = Promise.all(
|
|
3510
3512
|
t.map(
|
|
3511
|
-
([r, n]) =>
|
|
3513
|
+
([r, n]) => In(r, n)
|
|
3512
3514
|
)
|
|
3513
3515
|
).then(() => {
|
|
3514
|
-
if (
|
|
3515
|
-
return
|
|
3516
|
-
delete
|
|
3517
|
-
}),
|
|
3516
|
+
if (ke(e))
|
|
3517
|
+
return kt(e);
|
|
3518
|
+
delete ne[e];
|
|
3519
|
+
}), ne[e];
|
|
3518
3520
|
}
|
|
3519
|
-
const
|
|
3521
|
+
const Mn = {
|
|
3520
3522
|
number: {
|
|
3521
3523
|
scientific: { notation: "scientific" },
|
|
3522
3524
|
engineering: { notation: "engineering" },
|
|
@@ -3545,150 +3547,150 @@ const In = {
|
|
|
3545
3547
|
timeZoneName: "short"
|
|
3546
3548
|
}
|
|
3547
3549
|
}
|
|
3548
|
-
},
|
|
3550
|
+
}, $n = {
|
|
3549
3551
|
fallbackLocale: null,
|
|
3550
3552
|
loadingDelay: 200,
|
|
3551
|
-
formats:
|
|
3553
|
+
formats: Mn,
|
|
3552
3554
|
warnOnMissingMessages: !0,
|
|
3553
3555
|
handleMissingMessage: void 0,
|
|
3554
3556
|
ignoreTag: !0
|
|
3555
|
-
},
|
|
3556
|
-
function
|
|
3557
|
-
return
|
|
3558
|
-
}
|
|
3559
|
-
const
|
|
3560
|
-
var
|
|
3561
|
-
for (var r in t)
|
|
3562
|
-
|
|
3563
|
-
if (
|
|
3564
|
-
for (var r of
|
|
3565
|
-
|
|
3557
|
+
}, Rn = $n;
|
|
3558
|
+
function Y() {
|
|
3559
|
+
return Rn;
|
|
3560
|
+
}
|
|
3561
|
+
const Ne = xe(!1);
|
|
3562
|
+
var Un = Object.defineProperty, Dn = Object.defineProperties, Gn = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, Fn = Object.prototype.hasOwnProperty, jn = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? Un(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, kn = (e, t) => {
|
|
3563
|
+
for (var r in t || (t = {}))
|
|
3564
|
+
Fn.call(t, r) && ut(e, r, t[r]);
|
|
3565
|
+
if (at)
|
|
3566
|
+
for (var r of at(t))
|
|
3567
|
+
jn.call(t, r) && ut(e, r, t[r]);
|
|
3566
3568
|
return e;
|
|
3567
|
-
},
|
|
3568
|
-
let
|
|
3569
|
-
const
|
|
3570
|
-
function
|
|
3569
|
+
}, Vn = (e, t) => Dn(e, Gn(t));
|
|
3570
|
+
let Ve;
|
|
3571
|
+
const _e = xe(null);
|
|
3572
|
+
function ht(e) {
|
|
3571
3573
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3572
3574
|
}
|
|
3573
|
-
function
|
|
3574
|
-
const r =
|
|
3575
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3575
|
+
function Ce(e, t = Y().fallbackLocale) {
|
|
3576
|
+
const r = ht(e);
|
|
3577
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
|
|
3576
3578
|
}
|
|
3577
|
-
function
|
|
3578
|
-
return
|
|
3579
|
+
function V() {
|
|
3580
|
+
return Ve ?? void 0;
|
|
3579
3581
|
}
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
+
_e.subscribe((e) => {
|
|
3583
|
+
Ve = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3582
3584
|
});
|
|
3583
|
-
const
|
|
3584
|
-
if (e &&
|
|
3585
|
-
const { loadingDelay: t } =
|
|
3585
|
+
const Xn = (e) => {
|
|
3586
|
+
if (e && Pn(e) && ke(e)) {
|
|
3587
|
+
const { loadingDelay: t } = Y();
|
|
3586
3588
|
let r;
|
|
3587
|
-
return typeof window < "u" &&
|
|
3588
|
-
() =>
|
|
3589
|
+
return typeof window < "u" && V() != null && t ? r = window.setTimeout(
|
|
3590
|
+
() => Ne.set(!0),
|
|
3589
3591
|
t
|
|
3590
|
-
) :
|
|
3591
|
-
|
|
3592
|
+
) : Ne.set(!0), kt(e).then(() => {
|
|
3593
|
+
_e.set(e);
|
|
3592
3594
|
}).finally(() => {
|
|
3593
|
-
clearTimeout(r),
|
|
3595
|
+
clearTimeout(r), Ne.set(!1);
|
|
3594
3596
|
});
|
|
3595
3597
|
}
|
|
3596
|
-
return
|
|
3597
|
-
},
|
|
3598
|
-
set:
|
|
3599
|
-
}),
|
|
3598
|
+
return _e.set(e);
|
|
3599
|
+
}, te = Vn(kn({}, _e), {
|
|
3600
|
+
set: Xn
|
|
3601
|
+
}), He = (e) => {
|
|
3600
3602
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3601
3603
|
return (n) => {
|
|
3602
3604
|
const i = JSON.stringify(n);
|
|
3603
3605
|
return i in t ? t[i] : t[i] = e(n);
|
|
3604
3606
|
};
|
|
3605
3607
|
};
|
|
3606
|
-
var
|
|
3608
|
+
var zn = Object.defineProperty, Ee = Object.getOwnPropertySymbols, Vt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
|
|
3607
3609
|
for (var r in t || (t = {}))
|
|
3608
|
-
|
|
3609
|
-
if (
|
|
3610
|
-
for (var r of
|
|
3611
|
-
|
|
3610
|
+
Vt.call(t, r) && lt(e, r, t[r]);
|
|
3611
|
+
if (Ee)
|
|
3612
|
+
for (var r of Ee(t))
|
|
3613
|
+
Xt.call(t, r) && lt(e, r, t[r]);
|
|
3612
3614
|
return e;
|
|
3613
|
-
},
|
|
3615
|
+
}, re = (e, t) => {
|
|
3614
3616
|
var r = {};
|
|
3615
3617
|
for (var n in e)
|
|
3616
|
-
|
|
3617
|
-
if (e != null &&
|
|
3618
|
-
for (var n of
|
|
3619
|
-
t.indexOf(n) < 0 &&
|
|
3618
|
+
Vt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3619
|
+
if (e != null && Ee)
|
|
3620
|
+
for (var n of Ee(e))
|
|
3621
|
+
t.indexOf(n) < 0 && Xt.call(e, n) && (r[n] = e[n]);
|
|
3620
3622
|
return r;
|
|
3621
3623
|
};
|
|
3622
|
-
const
|
|
3623
|
-
const { formats: r } =
|
|
3624
|
+
const ae = (e, t) => {
|
|
3625
|
+
const { formats: r } = Y();
|
|
3624
3626
|
if (e in r && t in r[e])
|
|
3625
3627
|
return r[e][t];
|
|
3626
3628
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3627
|
-
},
|
|
3629
|
+
}, Wn = He(
|
|
3628
3630
|
(e) => {
|
|
3629
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3631
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3630
3632
|
if (r == null)
|
|
3631
3633
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3632
|
-
return n && (i =
|
|
3634
|
+
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
3633
3635
|
}
|
|
3634
|
-
),
|
|
3636
|
+
), Zn = He(
|
|
3635
3637
|
(e) => {
|
|
3636
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3638
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3637
3639
|
if (r == null)
|
|
3638
3640
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3639
|
-
return n ? i =
|
|
3641
|
+
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3640
3642
|
}
|
|
3641
|
-
),
|
|
3643
|
+
), Qn = He(
|
|
3642
3644
|
(e) => {
|
|
3643
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3645
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3644
3646
|
if (r == null)
|
|
3645
3647
|
throw new Error(
|
|
3646
3648
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3647
3649
|
);
|
|
3648
|
-
return n ? i =
|
|
3650
|
+
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3649
3651
|
}
|
|
3650
|
-
),
|
|
3652
|
+
), qn = (e = {}) => {
|
|
3651
3653
|
var t = e, {
|
|
3652
|
-
locale: r =
|
|
3653
|
-
} = t, n =
|
|
3654
|
+
locale: r = V()
|
|
3655
|
+
} = t, n = re(t, [
|
|
3654
3656
|
"locale"
|
|
3655
3657
|
]);
|
|
3656
|
-
return
|
|
3657
|
-
},
|
|
3658
|
+
return Wn(We({ locale: r }, n));
|
|
3659
|
+
}, Jn = (e = {}) => {
|
|
3658
3660
|
var t = e, {
|
|
3659
|
-
locale: r =
|
|
3660
|
-
} = t, n =
|
|
3661
|
+
locale: r = V()
|
|
3662
|
+
} = t, n = re(t, [
|
|
3661
3663
|
"locale"
|
|
3662
3664
|
]);
|
|
3663
|
-
return
|
|
3664
|
-
},
|
|
3665
|
+
return Zn(We({ locale: r }, n));
|
|
3666
|
+
}, Yn = (e = {}) => {
|
|
3665
3667
|
var t = e, {
|
|
3666
|
-
locale: r =
|
|
3667
|
-
} = t, n =
|
|
3668
|
+
locale: r = V()
|
|
3669
|
+
} = t, n = re(t, [
|
|
3668
3670
|
"locale"
|
|
3669
3671
|
]);
|
|
3670
|
-
return
|
|
3671
|
-
},
|
|
3672
|
+
return Qn(We({ locale: r }, n));
|
|
3673
|
+
}, Kn = He(
|
|
3672
3674
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3673
|
-
(e, t =
|
|
3674
|
-
ignoreTag:
|
|
3675
|
+
(e, t = V()) => new Sn(e, t, Y().formats, {
|
|
3676
|
+
ignoreTag: Y().ignoreTag
|
|
3675
3677
|
})
|
|
3676
|
-
),
|
|
3678
|
+
), ei = (e, t = {}) => {
|
|
3677
3679
|
var r, n, i, s;
|
|
3678
3680
|
let o = t;
|
|
3679
3681
|
typeof e == "object" && (o = e, e = o.id);
|
|
3680
3682
|
const {
|
|
3681
3683
|
values: u,
|
|
3682
|
-
locale: l =
|
|
3684
|
+
locale: l = V(),
|
|
3683
3685
|
default: a
|
|
3684
3686
|
} = o;
|
|
3685
3687
|
if (l == null)
|
|
3686
3688
|
throw new Error(
|
|
3687
3689
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3688
3690
|
);
|
|
3689
|
-
let h =
|
|
3691
|
+
let h = Dt(e, l);
|
|
3690
3692
|
if (!h)
|
|
3691
|
-
h = (s = (i = (n = (r =
|
|
3693
|
+
h = (s = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3692
3694
|
else if (typeof h != "string")
|
|
3693
3695
|
return console.warn(
|
|
3694
3696
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3697,7 +3699,7 @@ const oe = (e, t) => {
|
|
|
3697
3699
|
return h;
|
|
3698
3700
|
let c = h;
|
|
3699
3701
|
try {
|
|
3700
|
-
c =
|
|
3702
|
+
c = Kn(h, l).format(u);
|
|
3701
3703
|
} catch (f) {
|
|
3702
3704
|
f instanceof Error && console.warn(
|
|
3703
3705
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3705,18 +3707,18 @@ const oe = (e, t) => {
|
|
|
3705
3707
|
);
|
|
3706
3708
|
}
|
|
3707
3709
|
return c;
|
|
3708
|
-
},
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
function
|
|
3710
|
+
}, ti = (e, t) => Yn(t).format(e), ri = (e, t) => Jn(t).format(e), ni = (e, t) => qn(t).format(e), ii = (e, t = V()) => Dt(e, t), si = ee([te, he], () => ei);
|
|
3711
|
+
ee([te], () => ti);
|
|
3712
|
+
ee([te], () => ri);
|
|
3713
|
+
ee([te], () => ni);
|
|
3714
|
+
ee([te, he], () => ii);
|
|
3715
|
+
function oi(e, t) {
|
|
3714
3716
|
if (e) {
|
|
3715
3717
|
const r = document.createElement("style");
|
|
3716
3718
|
r.innerHTML = t, e.appendChild(r);
|
|
3717
3719
|
}
|
|
3718
3720
|
}
|
|
3719
|
-
function
|
|
3721
|
+
function ai(e, t) {
|
|
3720
3722
|
const r = new URL(t);
|
|
3721
3723
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3722
3724
|
const i = document.createElement("style");
|
|
@@ -3725,7 +3727,7 @@ function oi(e, t) {
|
|
|
3725
3727
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3726
3728
|
});
|
|
3727
3729
|
}
|
|
3728
|
-
function
|
|
3730
|
+
function ui(e, t, r) {
|
|
3729
3731
|
if (window.emMessageBus) {
|
|
3730
3732
|
const n = document.createElement("style");
|
|
3731
3733
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3733,13 +3735,13 @@ function ai(e, t, r) {
|
|
|
3733
3735
|
});
|
|
3734
3736
|
}
|
|
3735
3737
|
}
|
|
3736
|
-
function
|
|
3737
|
-
|
|
3738
|
+
function ft(e, t) {
|
|
3739
|
+
Ft(e, t);
|
|
3738
3740
|
}
|
|
3739
|
-
function
|
|
3740
|
-
|
|
3741
|
+
function hi(e) {
|
|
3742
|
+
te.set(e);
|
|
3741
3743
|
}
|
|
3742
|
-
const
|
|
3744
|
+
const ct = {
|
|
3743
3745
|
en: {
|
|
3744
3746
|
topCategories: "Top Categories",
|
|
3745
3747
|
otherCategories: "Other Categories",
|
|
@@ -3849,67 +3851,67 @@ const ft = {
|
|
|
3849
3851
|
games: "games"
|
|
3850
3852
|
}
|
|
3851
3853
|
};
|
|
3852
|
-
function
|
|
3853
|
-
|
|
3854
|
+
function li(e) {
|
|
3855
|
+
Jt(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
|
|
3854
3856
|
}
|
|
3855
|
-
function
|
|
3857
|
+
function gt(e, t, r) {
|
|
3856
3858
|
const n = e.slice();
|
|
3857
3859
|
return n[23] = t[r], n;
|
|
3858
3860
|
}
|
|
3859
|
-
function
|
|
3861
|
+
function mt(e, t, r) {
|
|
3860
3862
|
const n = e.slice();
|
|
3861
3863
|
return n[23] = t[r], n;
|
|
3862
3864
|
}
|
|
3863
|
-
function
|
|
3865
|
+
function fi(e) {
|
|
3864
3866
|
let t, r, n = (
|
|
3865
3867
|
/*$_*/
|
|
3866
3868
|
e[5]("topCategories") + ""
|
|
3867
3869
|
), i, s, o, u, l = (
|
|
3868
3870
|
/*$_*/
|
|
3869
3871
|
e[5]("otherCategories") + ""
|
|
3870
|
-
), a, h, c =
|
|
3872
|
+
), a, h, c = ce(
|
|
3871
3873
|
/*topCategories*/
|
|
3872
3874
|
e[3]
|
|
3873
3875
|
), f = [];
|
|
3874
3876
|
for (let g = 0; g < c.length; g += 1)
|
|
3875
|
-
f[g] = mt(
|
|
3876
|
-
let
|
|
3877
|
+
f[g] = pt(mt(e, c, g));
|
|
3878
|
+
let p = ce(
|
|
3877
3879
|
/*otherCategories*/
|
|
3878
3880
|
e[4]
|
|
3879
|
-
),
|
|
3880
|
-
for (let g = 0; g <
|
|
3881
|
-
|
|
3881
|
+
), d = [];
|
|
3882
|
+
for (let g = 0; g < p.length; g += 1)
|
|
3883
|
+
d[g] = dt(gt(e, p, g));
|
|
3882
3884
|
return {
|
|
3883
3885
|
c() {
|
|
3884
|
-
t =
|
|
3886
|
+
t = B("div"), r = B("h4"), i = D(n), s = U();
|
|
3885
3887
|
for (let g = 0; g < f.length; g += 1)
|
|
3886
3888
|
f[g].c();
|
|
3887
|
-
o =
|
|
3888
|
-
for (let g = 0; g <
|
|
3889
|
-
|
|
3889
|
+
o = U(), u = B("h4"), a = D(l), h = U();
|
|
3890
|
+
for (let g = 0; g < d.length; g += 1)
|
|
3891
|
+
d[g].c();
|
|
3890
3892
|
L(r, "class", "CategoryTitle"), L(u, "class", "CategoryTitle"), L(t, "class", "CasinoCategories");
|
|
3891
3893
|
},
|
|
3892
3894
|
m(g, E) {
|
|
3893
|
-
|
|
3895
|
+
K(g, t, E), x(t, r), x(r, i), x(t, s);
|
|
3894
3896
|
for (let m = 0; m < f.length; m += 1)
|
|
3895
3897
|
f[m] && f[m].m(t, null);
|
|
3896
|
-
|
|
3897
|
-
for (let m = 0; m <
|
|
3898
|
-
|
|
3898
|
+
x(t, o), x(t, u), x(u, a), x(t, h);
|
|
3899
|
+
for (let m = 0; m < d.length; m += 1)
|
|
3900
|
+
d[m] && d[m].m(t, null);
|
|
3899
3901
|
},
|
|
3900
3902
|
p(g, E) {
|
|
3901
3903
|
if (E & /*$_*/
|
|
3902
3904
|
32 && n !== (n = /*$_*/
|
|
3903
|
-
g[5]("topCategories") + "") &&
|
|
3905
|
+
g[5]("topCategories") + "") && F(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3904
3906
|
105) {
|
|
3905
|
-
c =
|
|
3907
|
+
c = ce(
|
|
3906
3908
|
/*topCategories*/
|
|
3907
3909
|
g[3]
|
|
3908
3910
|
);
|
|
3909
3911
|
let m;
|
|
3910
3912
|
for (m = 0; m < c.length; m += 1) {
|
|
3911
|
-
const
|
|
3912
|
-
f[m] ? f[m].p(
|
|
3913
|
+
const T = mt(g, c, m);
|
|
3914
|
+
f[m] ? f[m].p(T, E) : (f[m] = pt(T), f[m].c(), f[m].m(t, o));
|
|
3913
3915
|
}
|
|
3914
3916
|
for (; m < f.length; m += 1)
|
|
3915
3917
|
f[m].d(1);
|
|
@@ -3917,53 +3919,53 @@ function li(e) {
|
|
|
3917
3919
|
}
|
|
3918
3920
|
if (E & /*$_*/
|
|
3919
3921
|
32 && l !== (l = /*$_*/
|
|
3920
|
-
g[5]("otherCategories") + "") &&
|
|
3922
|
+
g[5]("otherCategories") + "") && F(a, l), E & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3921
3923
|
113) {
|
|
3922
|
-
|
|
3924
|
+
p = ce(
|
|
3923
3925
|
/*otherCategories*/
|
|
3924
3926
|
g[4]
|
|
3925
3927
|
);
|
|
3926
3928
|
let m;
|
|
3927
|
-
for (m = 0; m <
|
|
3928
|
-
const
|
|
3929
|
-
|
|
3929
|
+
for (m = 0; m < p.length; m += 1) {
|
|
3930
|
+
const T = gt(g, p, m);
|
|
3931
|
+
d[m] ? d[m].p(T, E) : (d[m] = dt(T), d[m].c(), d[m].m(t, null));
|
|
3930
3932
|
}
|
|
3931
|
-
for (; m <
|
|
3932
|
-
|
|
3933
|
-
|
|
3933
|
+
for (; m < d.length; m += 1)
|
|
3934
|
+
d[m].d(1);
|
|
3935
|
+
d.length = p.length;
|
|
3934
3936
|
}
|
|
3935
3937
|
},
|
|
3936
3938
|
d(g) {
|
|
3937
|
-
g &&
|
|
3939
|
+
g && k(t), qe(f, g), qe(d, g);
|
|
3938
3940
|
}
|
|
3939
3941
|
};
|
|
3940
3942
|
}
|
|
3941
|
-
function
|
|
3943
|
+
function ci(e) {
|
|
3942
3944
|
let t;
|
|
3943
3945
|
return {
|
|
3944
3946
|
c() {
|
|
3945
|
-
t =
|
|
3947
|
+
t = B("p"), t.textContent = "Loading, please wait...", L(t, "class", "Message");
|
|
3946
3948
|
},
|
|
3947
3949
|
m(r, n) {
|
|
3948
|
-
|
|
3950
|
+
K(r, t, n);
|
|
3949
3951
|
},
|
|
3950
3952
|
p: N,
|
|
3951
3953
|
d(r) {
|
|
3952
|
-
r &&
|
|
3954
|
+
r && k(t);
|
|
3953
3955
|
}
|
|
3954
3956
|
};
|
|
3955
3957
|
}
|
|
3956
|
-
function
|
|
3958
|
+
function pt(e) {
|
|
3957
3959
|
let t, r, n, i, s, o, u, l = (
|
|
3958
3960
|
/*category*/
|
|
3959
3961
|
e[23].name + ""
|
|
3960
3962
|
), a, h, c, f = (
|
|
3961
3963
|
/*category*/
|
|
3962
3964
|
e[23].games.count + ""
|
|
3963
|
-
),
|
|
3965
|
+
), p, d, g = (
|
|
3964
3966
|
/*$_*/
|
|
3965
3967
|
e[5]("games") + ""
|
|
3966
|
-
), E, m,
|
|
3968
|
+
), E, m, T, S;
|
|
3967
3969
|
function w() {
|
|
3968
3970
|
return (
|
|
3969
3971
|
/*click_handler*/
|
|
@@ -3975,33 +3977,33 @@ function mt(e) {
|
|
|
3975
3977
|
}
|
|
3976
3978
|
return {
|
|
3977
3979
|
c() {
|
|
3978
|
-
t =
|
|
3980
|
+
t = B("div"), r = B("ui-image"), s = U(), o = B("div"), u = B("p"), a = D(l), h = U(), c = B("p"), p = D(f), d = U(), E = D(g), be(r.src, n = /*category*/
|
|
3979
3981
|
e[23].icon) || $(r, "src", n), $(r, "alt", i = /*category*/
|
|
3980
3982
|
e[23].name), $(r, "class", "CategoryImage"), L(o, "class", "CategoryTextContainer"), L(t, "class", m = "Category " + /*activecategory*/
|
|
3981
3983
|
(e[0] === /*category*/
|
|
3982
3984
|
e[23].id ? "Active" : ""));
|
|
3983
3985
|
},
|
|
3984
|
-
m(
|
|
3985
|
-
|
|
3986
|
+
m(A, H) {
|
|
3987
|
+
K(A, t, H), x(t, r), x(t, s), x(t, o), x(o, u), x(u, a), x(o, h), x(o, c), x(c, p), x(c, d), x(c, E), T || (S = Et(t, "click", w), T = !0);
|
|
3986
3988
|
},
|
|
3987
|
-
p(
|
|
3988
|
-
e =
|
|
3989
|
-
8 && !
|
|
3989
|
+
p(A, H) {
|
|
3990
|
+
e = A, H & /*topCategories*/
|
|
3991
|
+
8 && !be(r.src, n = /*category*/
|
|
3990
3992
|
e[23].icon) && $(r, "src", n), H & /*topCategories*/
|
|
3991
3993
|
8 && i !== (i = /*category*/
|
|
3992
3994
|
e[23].name) && $(r, "alt", i), H & /*topCategories*/
|
|
3993
3995
|
8 && l !== (l = /*category*/
|
|
3994
|
-
e[23].name + "") &&
|
|
3996
|
+
e[23].name + "") && F(a, l), H & /*topCategories*/
|
|
3995
3997
|
8 && f !== (f = /*category*/
|
|
3996
|
-
e[23].games.count + "") &&
|
|
3998
|
+
e[23].games.count + "") && F(p, f), H & /*$_*/
|
|
3997
3999
|
32 && g !== (g = /*$_*/
|
|
3998
|
-
e[5]("games") + "") &&
|
|
4000
|
+
e[5]("games") + "") && F(E, g), H & /*activecategory, topCategories*/
|
|
3999
4001
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
4000
4002
|
(e[0] === /*category*/
|
|
4001
4003
|
e[23].id ? "Active" : "")) && L(t, "class", m);
|
|
4002
4004
|
},
|
|
4003
|
-
d(
|
|
4004
|
-
|
|
4005
|
+
d(A) {
|
|
4006
|
+
A && k(t), T = !1, S();
|
|
4005
4007
|
}
|
|
4006
4008
|
};
|
|
4007
4009
|
}
|
|
@@ -4012,11 +4014,11 @@ function dt(e) {
|
|
|
4012
4014
|
), a, h, c, f = (
|
|
4013
4015
|
/*category*/
|
|
4014
4016
|
e[23].games.count + ""
|
|
4015
|
-
),
|
|
4017
|
+
), p, d, g = (
|
|
4016
4018
|
/*$_*/
|
|
4017
4019
|
e[5]("games") + ""
|
|
4018
|
-
), E, m,
|
|
4019
|
-
function
|
|
4020
|
+
), E, m, T, S, w;
|
|
4021
|
+
function A() {
|
|
4020
4022
|
return (
|
|
4021
4023
|
/*click_handler_1*/
|
|
4022
4024
|
e[16](
|
|
@@ -4027,51 +4029,51 @@ function dt(e) {
|
|
|
4027
4029
|
}
|
|
4028
4030
|
return {
|
|
4029
4031
|
c() {
|
|
4030
|
-
t =
|
|
4032
|
+
t = B("div"), r = B("ui-image"), s = U(), o = B("div"), u = B("p"), a = D(l), h = U(), c = B("p"), p = D(f), d = U(), E = D(g), m = U(), be(r.src, n = /*category*/
|
|
4031
4033
|
e[23].icon) || $(r, "src", n), $(r, "alt", i = /*category*/
|
|
4032
|
-
e[23].name), $(r, "class", "CategoryImage"), L(o, "class", "CategoryTextContainer"), L(t, "class",
|
|
4034
|
+
e[23].name), $(r, "class", "CategoryImage"), L(o, "class", "CategoryTextContainer"), L(t, "class", T = "Category " + /*activecategory*/
|
|
4033
4035
|
(e[0] === /*category*/
|
|
4034
4036
|
e[23].id ? "Active" : ""));
|
|
4035
4037
|
},
|
|
4036
4038
|
m(H, P) {
|
|
4037
|
-
|
|
4039
|
+
K(H, t, P), x(t, r), x(t, s), x(t, o), x(o, u), x(u, a), x(o, h), x(o, c), x(c, p), x(c, d), x(c, E), x(t, m), S || (w = Et(t, "click", A), S = !0);
|
|
4038
4040
|
},
|
|
4039
4041
|
p(H, P) {
|
|
4040
4042
|
e = H, P & /*otherCategories*/
|
|
4041
|
-
16 && !
|
|
4043
|
+
16 && !be(r.src, n = /*category*/
|
|
4042
4044
|
e[23].icon) && $(r, "src", n), P & /*otherCategories*/
|
|
4043
4045
|
16 && i !== (i = /*category*/
|
|
4044
4046
|
e[23].name) && $(r, "alt", i), P & /*otherCategories*/
|
|
4045
4047
|
16 && l !== (l = /*category*/
|
|
4046
|
-
e[23].name + "") &&
|
|
4048
|
+
e[23].name + "") && F(a, l), P & /*otherCategories*/
|
|
4047
4049
|
16 && f !== (f = /*category*/
|
|
4048
|
-
e[23].games.count + "") &&
|
|
4050
|
+
e[23].games.count + "") && F(p, f), P & /*$_*/
|
|
4049
4051
|
32 && g !== (g = /*$_*/
|
|
4050
|
-
e[5]("games") + "") &&
|
|
4051
|
-
17 &&
|
|
4052
|
+
e[5]("games") + "") && F(E, g), P & /*activecategory, otherCategories*/
|
|
4053
|
+
17 && T !== (T = "Category " + /*activecategory*/
|
|
4052
4054
|
(e[0] === /*category*/
|
|
4053
|
-
e[23].id ? "Active" : "")) && L(t, "class",
|
|
4055
|
+
e[23].id ? "Active" : "")) && L(t, "class", T);
|
|
4054
4056
|
},
|
|
4055
4057
|
d(H) {
|
|
4056
|
-
H &&
|
|
4058
|
+
H && k(t), S = !1, w();
|
|
4057
4059
|
}
|
|
4058
4060
|
};
|
|
4059
4061
|
}
|
|
4060
|
-
function
|
|
4062
|
+
function gi(e) {
|
|
4061
4063
|
let t;
|
|
4062
4064
|
function r(s, o) {
|
|
4063
4065
|
return (
|
|
4064
4066
|
/*isLoading*/
|
|
4065
|
-
s[2] ?
|
|
4067
|
+
s[2] ? ci : fi
|
|
4066
4068
|
);
|
|
4067
4069
|
}
|
|
4068
4070
|
let n = r(e), i = n(e);
|
|
4069
4071
|
return {
|
|
4070
4072
|
c() {
|
|
4071
|
-
t =
|
|
4073
|
+
t = B("div"), i.c();
|
|
4072
4074
|
},
|
|
4073
4075
|
m(s, o) {
|
|
4074
|
-
|
|
4076
|
+
K(s, t, o), i.m(t, null), e[17](t);
|
|
4075
4077
|
},
|
|
4076
4078
|
p(s, [o]) {
|
|
4077
4079
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
@@ -4079,64 +4081,64 @@ function ci(e) {
|
|
|
4079
4081
|
i: N,
|
|
4080
4082
|
o: N,
|
|
4081
4083
|
d(s) {
|
|
4082
|
-
s &&
|
|
4084
|
+
s && k(t), i.d(), e[17](null);
|
|
4083
4085
|
}
|
|
4084
4086
|
};
|
|
4085
4087
|
}
|
|
4086
|
-
function
|
|
4088
|
+
function mi(e, t, r) {
|
|
4087
4089
|
let n;
|
|
4088
|
-
|
|
4089
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t,
|
|
4090
|
+
qt(e, si, (b) => r(5, n = b));
|
|
4091
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, p, d = !1;
|
|
4090
4092
|
const g = [];
|
|
4091
4093
|
let E = [], m = [];
|
|
4092
|
-
Object.keys(
|
|
4093
|
-
|
|
4094
|
+
Object.keys(ct).forEach((b) => {
|
|
4095
|
+
ft(b, ct[b]);
|
|
4094
4096
|
});
|
|
4095
|
-
const
|
|
4097
|
+
const T = () => {
|
|
4096
4098
|
fetch(c).then((M) => M.json()).then((M) => {
|
|
4097
|
-
Object.keys(M).forEach((
|
|
4098
|
-
|
|
4099
|
+
Object.keys(M).forEach((le) => {
|
|
4100
|
+
ft(le, M[le]);
|
|
4099
4101
|
});
|
|
4100
4102
|
}).catch((M) => {
|
|
4101
4103
|
console.log(M);
|
|
4102
4104
|
});
|
|
4103
|
-
},
|
|
4104
|
-
r(2,
|
|
4105
|
+
}, S = () => {
|
|
4106
|
+
r(2, d = !0);
|
|
4105
4107
|
const b = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4106
4108
|
b.searchParams.append("language", o), fetch(b).then((M) => M.json()).then((M) => {
|
|
4107
|
-
r(2,
|
|
4108
|
-
const
|
|
4109
|
+
r(2, d = !1);
|
|
4110
|
+
const le = l.split(",").map((j) => j.trim());
|
|
4109
4111
|
g.push(...M.items);
|
|
4110
|
-
const
|
|
4111
|
-
r(3, E =
|
|
4112
|
+
const Ze = g.filter((j) => !le.some((Zt) => j.flags?.indexOf(Zt) >= 0));
|
|
4113
|
+
r(3, E = Ze.filter((j) => j.isTopCategory === !0)), r(4, m = Ze.filter((j) => j.isTopCategory === !1));
|
|
4112
4114
|
});
|
|
4113
4115
|
}, w = (b) => {
|
|
4114
4116
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4115
|
-
},
|
|
4116
|
-
|
|
4117
|
+
}, A = () => {
|
|
4118
|
+
hi(o);
|
|
4117
4119
|
};
|
|
4118
|
-
|
|
4120
|
+
nr(() => () => {
|
|
4119
4121
|
});
|
|
4120
4122
|
const H = (b) => w(b.id), P = (b) => w(b.id);
|
|
4121
|
-
function
|
|
4122
|
-
|
|
4123
|
-
|
|
4123
|
+
function Wt(b) {
|
|
4124
|
+
Le[b ? "unshift" : "push"](() => {
|
|
4125
|
+
p = b, r(1, p);
|
|
4124
4126
|
});
|
|
4125
4127
|
}
|
|
4126
4128
|
return e.$$set = (b) => {
|
|
4127
4129
|
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, l = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, h = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl), "mbsource" in b && r(14, f = b.mbsource);
|
|
4128
4130
|
}, e.$$.update = () => {
|
|
4129
4131
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4130
|
-
384 && i && s &&
|
|
4131
|
-
8192 && c &&
|
|
4132
|
-
512 && o &&
|
|
4133
|
-
2050 && a &&
|
|
4134
|
-
4098 && h &&
|
|
4135
|
-
16386 && f &&
|
|
4132
|
+
384 && i && s && S(), e.$$.dirty & /*translationurl*/
|
|
4133
|
+
8192 && c && T(), e.$$.dirty & /*lang*/
|
|
4134
|
+
512 && o && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4135
|
+
2050 && a && p && oi(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4136
|
+
4098 && h && p && ai(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4137
|
+
16386 && f && p && ui(p, `${f}.Style`);
|
|
4136
4138
|
}, [
|
|
4137
4139
|
u,
|
|
4138
|
-
d,
|
|
4139
4140
|
p,
|
|
4141
|
+
d,
|
|
4140
4142
|
E,
|
|
4141
4143
|
m,
|
|
4142
4144
|
n,
|
|
@@ -4151,17 +4153,17 @@ function gi(e, t, r) {
|
|
|
4151
4153
|
f,
|
|
4152
4154
|
H,
|
|
4153
4155
|
P,
|
|
4154
|
-
|
|
4156
|
+
Wt
|
|
4155
4157
|
];
|
|
4156
4158
|
}
|
|
4157
|
-
class
|
|
4159
|
+
class zt extends pr {
|
|
4158
4160
|
constructor(t) {
|
|
4159
|
-
super(),
|
|
4161
|
+
super(), gr(
|
|
4160
4162
|
this,
|
|
4161
4163
|
t,
|
|
4164
|
+
mi,
|
|
4162
4165
|
gi,
|
|
4163
|
-
|
|
4164
|
-
bt,
|
|
4166
|
+
yt,
|
|
4165
4167
|
{
|
|
4166
4168
|
endpoint: 7,
|
|
4167
4169
|
datasource: 8,
|
|
@@ -4173,7 +4175,7 @@ class Xt extends mr {
|
|
|
4173
4175
|
translationurl: 13,
|
|
4174
4176
|
mbsource: 14
|
|
4175
4177
|
},
|
|
4176
|
-
|
|
4178
|
+
li
|
|
4177
4179
|
);
|
|
4178
4180
|
}
|
|
4179
4181
|
get endpoint() {
|
|
@@ -4231,42 +4233,42 @@ class Xt extends mr {
|
|
|
4231
4233
|
this.$$set({ mbsource: t }), I();
|
|
4232
4234
|
}
|
|
4233
4235
|
}
|
|
4234
|
-
|
|
4235
|
-
const
|
|
4236
|
+
mr(zt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4237
|
+
const bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4236
4238
|
__proto__: null,
|
|
4237
|
-
default:
|
|
4239
|
+
default: zt
|
|
4238
4240
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4239
4241
|
export {
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4242
|
+
te as $,
|
|
4243
|
+
qe as A,
|
|
4244
|
+
di as B,
|
|
4245
|
+
be as C,
|
|
4246
|
+
bi as D,
|
|
4247
|
+
pr as S,
|
|
4248
|
+
Ft as a,
|
|
4249
|
+
Jt as b,
|
|
4250
|
+
mr as c,
|
|
4251
|
+
k as d,
|
|
4252
|
+
F as e,
|
|
4251
4253
|
I as f,
|
|
4252
4254
|
L as g,
|
|
4253
4255
|
$ as h,
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4256
|
+
gr as i,
|
|
4257
|
+
K as j,
|
|
4258
|
+
x as k,
|
|
4259
|
+
Et as l,
|
|
4260
|
+
B as m,
|
|
4259
4261
|
N as n,
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4262
|
+
U as o,
|
|
4263
|
+
qt as p,
|
|
4264
|
+
nr as q,
|
|
4265
|
+
ue as r,
|
|
4266
|
+
yt as s,
|
|
4267
|
+
D as t,
|
|
4268
|
+
Le as u,
|
|
4267
4269
|
si as v,
|
|
4268
4270
|
oi as w,
|
|
4269
4271
|
ai as x,
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
+
ui as y,
|
|
4273
|
+
ce as z
|
|
4272
4274
|
};
|