@everymatrix/casino-categories-vendor-bar 1.74.3 → 1.74.5
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/CasinoCategoriesVendorBar-BayrDBfl.cjs +18 -0
- package/components/{CasinoCategoriesVendorBar-Bp-jLYV9.js → CasinoCategoriesVendorBar-Bqyy8n97.js} +814 -800
- package/components/{CasinoCategoriesVendorBar-ZLLz2FCr.js → CasinoCategoriesVendorBar-al9mcHWZ.js} +843 -829
- package/es2015/casino-categories-vendor-bar.cjs +1 -1
- package/es2015/casino-categories-vendor-bar.js +1 -1
- package/esnext/casino-categories-vendor-bar.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategoriesVendorBar-CFd37_hY.cjs +0 -18
package/components/{CasinoCategoriesVendorBar-Bp-jLYV9.js → CasinoCategoriesVendorBar-Bqyy8n97.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function D() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Vt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function ct() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function X(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(Vt);
|
|
11
11
|
}
|
|
12
12
|
function Se(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Wt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let me;
|
|
19
19
|
function Ee(e, t) {
|
|
20
20
|
return e === t ? !0 : (me || (me = document.createElement("a")), me.href = t, e === me.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Ur(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Dr(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -34,14 +34,14 @@ function Nr(e, ...t) {
|
|
|
34
34
|
function H(e, t) {
|
|
35
35
|
e.appendChild(t);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const n =
|
|
37
|
+
function $r(e, t, r) {
|
|
38
|
+
const n = kr(e);
|
|
39
39
|
if (!n.getElementById(t)) {
|
|
40
40
|
const i = S("style");
|
|
41
|
-
i.id = t, i.textContent = r,
|
|
41
|
+
i.id = t, i.textContent = r, Gr(n, i);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function kr(e) {
|
|
45
45
|
if (!e)
|
|
46
46
|
return document;
|
|
47
47
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -51,7 +51,7 @@ function Ur(e) {
|
|
|
51
51
|
t
|
|
52
52
|
) : e.ownerDocument;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Gr(e, t) {
|
|
55
55
|
return H(
|
|
56
56
|
/** @type {Document} */
|
|
57
57
|
e.head || e,
|
|
@@ -73,7 +73,7 @@ function pe(e) {
|
|
|
73
73
|
function G() {
|
|
74
74
|
return pe(" ");
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function nt() {
|
|
77
77
|
return pe("");
|
|
78
78
|
}
|
|
79
79
|
function J(e, t, r, n) {
|
|
@@ -82,14 +82,14 @@ function J(e, t, r, n) {
|
|
|
82
82
|
function E(e, t, r) {
|
|
83
83
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Fr(e) {
|
|
86
86
|
return Array.from(e.childNodes);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function it(e, t) {
|
|
89
89
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
90
90
|
t);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function jr(e) {
|
|
93
93
|
const t = {};
|
|
94
94
|
return e.childNodes.forEach(
|
|
95
95
|
/** @param {Element} node */
|
|
@@ -98,26 +98,26 @@ function kr(e) {
|
|
|
98
98
|
}
|
|
99
99
|
), t;
|
|
100
100
|
}
|
|
101
|
-
let
|
|
101
|
+
let ce;
|
|
102
102
|
function he(e) {
|
|
103
|
-
|
|
103
|
+
ce = e;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
if (!
|
|
105
|
+
function Vr() {
|
|
106
|
+
if (!ce)
|
|
107
107
|
throw new Error("Function called outside component initialization");
|
|
108
|
-
return
|
|
108
|
+
return ce;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
110
|
+
function Wr(e) {
|
|
111
|
+
Vr().$$.on_mount.push(e);
|
|
112
112
|
}
|
|
113
113
|
const q = [], K = [];
|
|
114
114
|
let ee = [];
|
|
115
|
-
const
|
|
116
|
-
let
|
|
117
|
-
function
|
|
118
|
-
|
|
115
|
+
const ft = [], Xr = /* @__PURE__ */ Promise.resolve();
|
|
116
|
+
let Fe = !1;
|
|
117
|
+
function zr() {
|
|
118
|
+
Fe || (Fe = !0, Xr.then(R));
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function je(e) {
|
|
121
121
|
ee.push(e);
|
|
122
122
|
}
|
|
123
123
|
const Le = /* @__PURE__ */ new Set();
|
|
@@ -125,12 +125,12 @@ let Q = 0;
|
|
|
125
125
|
function R() {
|
|
126
126
|
if (Q !== 0)
|
|
127
127
|
return;
|
|
128
|
-
const e =
|
|
128
|
+
const e = ce;
|
|
129
129
|
do {
|
|
130
130
|
try {
|
|
131
131
|
for (; Q < q.length; ) {
|
|
132
132
|
const t = q[Q];
|
|
133
|
-
Q++, he(t),
|
|
133
|
+
Q++, he(t), Zr(t.$$);
|
|
134
134
|
}
|
|
135
135
|
} catch (t) {
|
|
136
136
|
throw q.length = 0, Q = 0, t;
|
|
@@ -143,113 +143,113 @@ function R() {
|
|
|
143
143
|
}
|
|
144
144
|
ee.length = 0;
|
|
145
145
|
} while (q.length);
|
|
146
|
-
for (;
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
for (; ft.length; )
|
|
147
|
+
ft.pop()();
|
|
148
|
+
Fe = !1, Le.clear(), he(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Zr(e) {
|
|
151
151
|
if (e.fragment !== null) {
|
|
152
152
|
e.update(), X(e.before_update);
|
|
153
153
|
const t = e.dirty;
|
|
154
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
154
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(je);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Qr(e) {
|
|
158
158
|
const t = [], r = [];
|
|
159
159
|
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
160
160
|
}
|
|
161
|
-
const
|
|
162
|
-
function
|
|
163
|
-
e && e.i && (
|
|
161
|
+
const Yr = /* @__PURE__ */ new Set();
|
|
162
|
+
function Xt(e, t) {
|
|
163
|
+
e && e.i && (Yr.delete(e), e.i(t));
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function dt(e) {
|
|
166
166
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function qr(e, t) {
|
|
169
169
|
e.d(1), t.delete(e.key);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
let
|
|
171
|
+
function Jr(e, t, r, n, i, o, s, a, l, u, h, c) {
|
|
172
|
+
let f = e.length, m = o.length, p = f;
|
|
173
173
|
const b = {};
|
|
174
174
|
for (; p--; )
|
|
175
175
|
b[e[p].key] = p;
|
|
176
176
|
const T = [], L = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), A = [];
|
|
177
177
|
for (p = m; p--; ) {
|
|
178
|
-
const g =
|
|
178
|
+
const g = c(i, o, p), $ = r(g);
|
|
179
179
|
let k = s.get($);
|
|
180
|
-
k ? A.push(() => k.p(g, t)) : (k =
|
|
180
|
+
k ? A.push(() => k.p(g, t)) : (k = u($, g), k.c()), L.set($, T[p] = k), $ in b && P.set($, Math.abs(p - b[$]));
|
|
181
181
|
}
|
|
182
|
-
const
|
|
182
|
+
const M = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new Set();
|
|
183
183
|
function N(g) {
|
|
184
|
-
|
|
184
|
+
Xt(g, 1), g.m(a, h), s.set(g.key, g), h = g.first, m--;
|
|
185
185
|
}
|
|
186
|
-
for (;
|
|
187
|
-
const g = T[m - 1], $ = e[
|
|
188
|
-
g === $ ? (h = g.first,
|
|
186
|
+
for (; f && m; ) {
|
|
187
|
+
const g = T[m - 1], $ = e[f - 1], k = g.key, Z = $.key;
|
|
188
|
+
g === $ ? (h = g.first, f--, m--) : L.has(Z) ? !s.has(k) || M.has(k) ? N(g) : w.has(Z) ? f-- : P.get(k) > P.get(Z) ? (w.add(k), N(g)) : (M.add(Z), f--) : (l($, s), f--);
|
|
189
189
|
}
|
|
190
|
-
for (;
|
|
191
|
-
const g = e[
|
|
192
|
-
L.has(g.key) ||
|
|
190
|
+
for (; f--; ) {
|
|
191
|
+
const g = e[f];
|
|
192
|
+
L.has(g.key) || l(g, s);
|
|
193
193
|
}
|
|
194
194
|
for (; m; )
|
|
195
195
|
N(T[m - 1]);
|
|
196
196
|
return X(A), T;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Kr(e, t, r) {
|
|
199
199
|
const { fragment: n, after_update: i } = e.$$;
|
|
200
|
-
n && n.m(t, r),
|
|
201
|
-
const o = e.$$.on_mount.map(
|
|
200
|
+
n && n.m(t, r), je(() => {
|
|
201
|
+
const o = e.$$.on_mount.map(Vt).filter(Se);
|
|
202
202
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : X(o), e.$$.on_mount = [];
|
|
203
|
-
}), i.forEach(
|
|
203
|
+
}), i.forEach(je);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function en(e, t) {
|
|
206
206
|
const r = e.$$;
|
|
207
|
-
r.fragment !== null && (
|
|
207
|
+
r.fragment !== null && (Qr(r.after_update), X(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
e.$$.dirty[0] === -1 && (q.push(e),
|
|
209
|
+
function tn(e, t) {
|
|
210
|
+
e.$$.dirty[0] === -1 && (q.push(e), zr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
const
|
|
212
|
+
function rn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
213
|
+
const l = ce;
|
|
214
214
|
he(e);
|
|
215
|
-
const
|
|
215
|
+
const u = e.$$ = {
|
|
216
216
|
fragment: null,
|
|
217
217
|
ctx: [],
|
|
218
218
|
// state
|
|
219
219
|
props: o,
|
|
220
220
|
update: D,
|
|
221
221
|
not_equal: i,
|
|
222
|
-
bound:
|
|
222
|
+
bound: ct(),
|
|
223
223
|
// lifecycle
|
|
224
224
|
on_mount: [],
|
|
225
225
|
on_destroy: [],
|
|
226
226
|
on_disconnect: [],
|
|
227
227
|
before_update: [],
|
|
228
228
|
after_update: [],
|
|
229
|
-
context: new Map(t.context || (
|
|
229
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
230
230
|
// everything else
|
|
231
|
-
callbacks:
|
|
231
|
+
callbacks: ct(),
|
|
232
232
|
dirty: a,
|
|
233
233
|
skip_bound: !1,
|
|
234
|
-
root: t.target ||
|
|
234
|
+
root: t.target || l.$$.root
|
|
235
235
|
};
|
|
236
|
-
s && s(
|
|
236
|
+
s && s(u.root);
|
|
237
237
|
let h = !1;
|
|
238
|
-
if (
|
|
239
|
-
const p = m.length ? m[0] :
|
|
240
|
-
return
|
|
241
|
-
}),
|
|
238
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
239
|
+
const p = m.length ? m[0] : f;
|
|
240
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = p) && (!u.skip_bound && u.bound[c] && u.bound[c](p), h && tn(e, c)), f;
|
|
241
|
+
}) : [], u.update(), h = !0, X(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
242
242
|
if (t.hydrate) {
|
|
243
|
-
const
|
|
244
|
-
|
|
243
|
+
const c = Fr(t.target);
|
|
244
|
+
u.fragment && u.fragment.l(c), c.forEach(I);
|
|
245
245
|
} else
|
|
246
|
-
|
|
247
|
-
t.intro &&
|
|
246
|
+
u.fragment && u.fragment.c();
|
|
247
|
+
t.intro && Xt(e.$$.fragment), Kr(e, t.target, t.anchor), R();
|
|
248
248
|
}
|
|
249
|
-
he(
|
|
249
|
+
he(l);
|
|
250
250
|
}
|
|
251
|
-
let
|
|
252
|
-
typeof HTMLElement == "function" && (
|
|
251
|
+
let zt;
|
|
252
|
+
typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
253
253
|
/** The Svelte component constructor */
|
|
254
254
|
$$ctor;
|
|
255
255
|
/** Slots */
|
|
@@ -297,23 +297,23 @@ typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
|
297
297
|
* @param {HTMLElement} target
|
|
298
298
|
* @param {HTMLElement} [anchor]
|
|
299
299
|
*/
|
|
300
|
-
m: function(
|
|
301
|
-
B(
|
|
300
|
+
m: function(l, u) {
|
|
301
|
+
B(l, o, u);
|
|
302
302
|
},
|
|
303
|
-
d: function(
|
|
304
|
-
|
|
303
|
+
d: function(l) {
|
|
304
|
+
l && I(o);
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
308
|
};
|
|
309
309
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
310
310
|
return;
|
|
311
|
-
const t = {}, r =
|
|
311
|
+
const t = {}, r = jr(this);
|
|
312
312
|
for (const i of this.$$s)
|
|
313
313
|
i in r && (t[i] = [e(i)]);
|
|
314
314
|
for (const i of this.attributes) {
|
|
315
315
|
const o = this.$$g_p(i.name);
|
|
316
|
-
o in this.$$d || (this.$$d[o] =
|
|
316
|
+
o in this.$$d || (this.$$d[o] = ve(o, i.value, this.$$p_d, "toProp"));
|
|
317
317
|
}
|
|
318
318
|
for (const i in this.$$p_d)
|
|
319
319
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -331,7 +331,7 @@ typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
|
331
331
|
this.$$r = !0;
|
|
332
332
|
for (const i in this.$$p_d)
|
|
333
333
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
334
|
-
const o =
|
|
334
|
+
const o = ve(
|
|
335
335
|
i,
|
|
336
336
|
this.$$d[i],
|
|
337
337
|
this.$$p_d,
|
|
@@ -353,7 +353,7 @@ typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
|
353
353
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
354
354
|
// and setting attributes through setAttribute etc, this is helpful
|
|
355
355
|
attributeChangedCallback(e, t, r) {
|
|
356
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
356
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ve(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
357
357
|
}
|
|
358
358
|
disconnectedCallback() {
|
|
359
359
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -366,7 +366,7 @@ typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
|
366
366
|
) || e;
|
|
367
367
|
}
|
|
368
368
|
});
|
|
369
|
-
function
|
|
369
|
+
function ve(e, t, r, n) {
|
|
370
370
|
const i = r[e]?.type;
|
|
371
371
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
372
372
|
return t;
|
|
@@ -395,8 +395,8 @@ function ye(e, t, r, n) {
|
|
|
395
395
|
return t;
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
function
|
|
399
|
-
let s = class extends
|
|
398
|
+
function nn(e, t, r, n, i, o) {
|
|
399
|
+
let s = class extends zt {
|
|
400
400
|
constructor() {
|
|
401
401
|
super(e, r, i), this.$$p_d = t;
|
|
402
402
|
}
|
|
@@ -411,8 +411,8 @@ function en(e, t, r, n, i, o) {
|
|
|
411
411
|
get() {
|
|
412
412
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
413
413
|
},
|
|
414
|
-
set(
|
|
415
|
-
|
|
414
|
+
set(l) {
|
|
415
|
+
l = ve(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
416
416
|
}
|
|
417
417
|
});
|
|
418
418
|
}), n.forEach((a) => {
|
|
@@ -424,7 +424,7 @@ function en(e, t, r, n, i, o) {
|
|
|
424
424
|
}), e.element = /** @type {any} */
|
|
425
425
|
s, s;
|
|
426
426
|
}
|
|
427
|
-
class
|
|
427
|
+
class on {
|
|
428
428
|
/**
|
|
429
429
|
* ### PRIVATE API
|
|
430
430
|
*
|
|
@@ -443,7 +443,7 @@ class tn {
|
|
|
443
443
|
$$set = void 0;
|
|
444
444
|
/** @returns {void} */
|
|
445
445
|
$destroy() {
|
|
446
|
-
|
|
446
|
+
en(this, 1), this.$destroy = D;
|
|
447
447
|
}
|
|
448
448
|
/**
|
|
449
449
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -465,11 +465,11 @@ class tn {
|
|
|
465
465
|
* @returns {void}
|
|
466
466
|
*/
|
|
467
467
|
$set(t) {
|
|
468
|
-
this.$$set && !
|
|
468
|
+
this.$$set && !Ur(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
const
|
|
472
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
471
|
+
const sn = "4";
|
|
472
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(sn);
|
|
473
473
|
/*! *****************************************************************************
|
|
474
474
|
Copyright (c) Microsoft Corporation.
|
|
475
475
|
|
|
@@ -484,18 +484,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
484
484
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
485
485
|
PERFORMANCE OF THIS SOFTWARE.
|
|
486
486
|
***************************************************************************** */
|
|
487
|
-
var
|
|
488
|
-
return
|
|
487
|
+
var Ve = function(e, t) {
|
|
488
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
489
489
|
r.__proto__ = n;
|
|
490
490
|
} || function(r, n) {
|
|
491
491
|
for (var i in n)
|
|
492
492
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
493
|
-
},
|
|
493
|
+
}, Ve(e, t);
|
|
494
494
|
};
|
|
495
495
|
function j(e, t) {
|
|
496
496
|
if (typeof t != "function" && t !== null)
|
|
497
497
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
498
|
-
|
|
498
|
+
Ve(e, t);
|
|
499
499
|
function r() {
|
|
500
500
|
this.constructor = e;
|
|
501
501
|
}
|
|
@@ -511,7 +511,7 @@ var _ = function() {
|
|
|
511
511
|
return t;
|
|
512
512
|
}, _.apply(this, arguments);
|
|
513
513
|
};
|
|
514
|
-
function
|
|
514
|
+
function an(e, t) {
|
|
515
515
|
var r = {};
|
|
516
516
|
for (var n in e)
|
|
517
517
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -520,7 +520,7 @@ function nn(e, t) {
|
|
|
520
520
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
521
521
|
return r;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function We(e) {
|
|
524
524
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
525
525
|
if (r)
|
|
526
526
|
return r.call(e);
|
|
@@ -532,7 +532,7 @@ function Ve(e) {
|
|
|
532
532
|
};
|
|
533
533
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function Xe(e, t) {
|
|
536
536
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
537
537
|
if (!r)
|
|
538
538
|
return e;
|
|
@@ -561,13 +561,13 @@ function te(e, t, r) {
|
|
|
561
561
|
function F(e) {
|
|
562
562
|
return typeof e == "function";
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function Zt(e) {
|
|
565
565
|
var t = function(n) {
|
|
566
566
|
Error.call(n), n.stack = new Error().stack;
|
|
567
567
|
}, r = e(t);
|
|
568
568
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
569
569
|
}
|
|
570
|
-
var Ne =
|
|
570
|
+
var Ne = Zt(function(e) {
|
|
571
571
|
return function(r) {
|
|
572
572
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
573
573
|
` + r.map(function(n, i) {
|
|
@@ -576,7 +576,7 @@ var Ne = Xt(function(e) {
|
|
|
576
576
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
577
577
|
};
|
|
578
578
|
});
|
|
579
|
-
function
|
|
579
|
+
function ze(e, t) {
|
|
580
580
|
if (e) {
|
|
581
581
|
var r = e.indexOf(t);
|
|
582
582
|
0 <= r && e.splice(r, 1);
|
|
@@ -594,15 +594,15 @@ var Te = function() {
|
|
|
594
594
|
if (s)
|
|
595
595
|
if (this._parentage = null, Array.isArray(s))
|
|
596
596
|
try {
|
|
597
|
-
for (var a =
|
|
598
|
-
var
|
|
599
|
-
|
|
597
|
+
for (var a = We(s), l = a.next(); !l.done; l = a.next()) {
|
|
598
|
+
var u = l.value;
|
|
599
|
+
u.remove(this);
|
|
600
600
|
}
|
|
601
601
|
} catch (b) {
|
|
602
602
|
t = { error: b };
|
|
603
603
|
} finally {
|
|
604
604
|
try {
|
|
605
|
-
|
|
605
|
+
l && !l.done && (r = a.return) && r.call(a);
|
|
606
606
|
} finally {
|
|
607
607
|
if (t)
|
|
608
608
|
throw t.error;
|
|
@@ -617,23 +617,23 @@ var Te = function() {
|
|
|
617
617
|
} catch (b) {
|
|
618
618
|
o = b instanceof Ne ? b.errors : [b];
|
|
619
619
|
}
|
|
620
|
-
var
|
|
621
|
-
if (
|
|
620
|
+
var c = this._finalizers;
|
|
621
|
+
if (c) {
|
|
622
622
|
this._finalizers = null;
|
|
623
623
|
try {
|
|
624
|
-
for (var
|
|
624
|
+
for (var f = We(c), m = f.next(); !m.done; m = f.next()) {
|
|
625
625
|
var p = m.value;
|
|
626
626
|
try {
|
|
627
|
-
|
|
627
|
+
pt(p);
|
|
628
628
|
} catch (b) {
|
|
629
|
-
o = o ?? [], b instanceof Ne ? o = te(te([],
|
|
629
|
+
o = o ?? [], b instanceof Ne ? o = te(te([], Xe(o)), Xe(b.errors)) : o.push(b);
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
} catch (b) {
|
|
633
633
|
n = { error: b };
|
|
634
634
|
} finally {
|
|
635
635
|
try {
|
|
636
|
-
m && !m.done && (i =
|
|
636
|
+
m && !m.done && (i = f.return) && i.call(f);
|
|
637
637
|
} finally {
|
|
638
638
|
if (n)
|
|
639
639
|
throw n.error;
|
|
@@ -647,7 +647,7 @@ var Te = function() {
|
|
|
647
647
|
var r;
|
|
648
648
|
if (t && t !== this)
|
|
649
649
|
if (this.closed)
|
|
650
|
-
|
|
650
|
+
pt(t);
|
|
651
651
|
else {
|
|
652
652
|
if (t instanceof e) {
|
|
653
653
|
if (t.closed || t._hasParent(this))
|
|
@@ -664,56 +664,56 @@ var Te = function() {
|
|
|
664
664
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
665
665
|
}, e.prototype._removeParent = function(t) {
|
|
666
666
|
var r = this._parentage;
|
|
667
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
667
|
+
r === t ? this._parentage = null : Array.isArray(r) && ze(r, t);
|
|
668
668
|
}, e.prototype.remove = function(t) {
|
|
669
669
|
var r = this._finalizers;
|
|
670
|
-
r &&
|
|
670
|
+
r && ze(r, t), t instanceof e && t._removeParent(this);
|
|
671
671
|
}, e.EMPTY = function() {
|
|
672
672
|
var t = new e();
|
|
673
673
|
return t.closed = !0, t;
|
|
674
674
|
}(), e;
|
|
675
|
-
}(),
|
|
676
|
-
function
|
|
675
|
+
}(), Qt = Te.EMPTY;
|
|
676
|
+
function Yt(e) {
|
|
677
677
|
return e instanceof Te || e && "closed" in e && F(e.remove) && F(e.add) && F(e.unsubscribe);
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function pt(e) {
|
|
680
680
|
F(e) ? e() : e.unsubscribe();
|
|
681
681
|
}
|
|
682
|
-
var
|
|
682
|
+
var qt = {
|
|
683
683
|
onUnhandledError: null,
|
|
684
684
|
onStoppedNotification: null,
|
|
685
685
|
Promise: void 0,
|
|
686
686
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
687
687
|
useDeprecatedNextContext: !1
|
|
688
|
-
},
|
|
688
|
+
}, ln = {
|
|
689
689
|
setTimeout: function(e, t) {
|
|
690
690
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
691
691
|
r[n - 2] = arguments[n];
|
|
692
|
-
return setTimeout.apply(void 0, te([e, t],
|
|
692
|
+
return setTimeout.apply(void 0, te([e, t], Xe(r)));
|
|
693
693
|
},
|
|
694
694
|
clearTimeout: function(e) {
|
|
695
695
|
return clearTimeout(e);
|
|
696
696
|
},
|
|
697
697
|
delegate: void 0
|
|
698
698
|
};
|
|
699
|
-
function
|
|
700
|
-
|
|
699
|
+
function un(e) {
|
|
700
|
+
ln.setTimeout(function() {
|
|
701
701
|
throw e;
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function mt() {
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function ye(e) {
|
|
707
707
|
e();
|
|
708
708
|
}
|
|
709
|
-
var
|
|
709
|
+
var Jt = function(e) {
|
|
710
710
|
j(t, e);
|
|
711
711
|
function t(r) {
|
|
712
712
|
var n = e.call(this) || this;
|
|
713
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
713
|
+
return n.isStopped = !1, r ? (n.destination = r, Yt(r) && r.add(n)) : n.destination = dn, n;
|
|
714
714
|
}
|
|
715
715
|
return t.create = function(r, n, i) {
|
|
716
|
-
return new
|
|
716
|
+
return new Ze(r, n, i);
|
|
717
717
|
}, t.prototype.next = function(r) {
|
|
718
718
|
this.isStopped || this._next(r);
|
|
719
719
|
}, t.prototype.error = function(r) {
|
|
@@ -737,7 +737,11 @@ var Qt = function(e) {
|
|
|
737
737
|
this.unsubscribe();
|
|
738
738
|
}
|
|
739
739
|
}, t;
|
|
740
|
-
}(Te),
|
|
740
|
+
}(Te), hn = Function.prototype.bind;
|
|
741
|
+
function Re(e, t) {
|
|
742
|
+
return hn.call(e, t);
|
|
743
|
+
}
|
|
744
|
+
var cn = function() {
|
|
741
745
|
function e(t) {
|
|
742
746
|
this.partialObserver = t;
|
|
743
747
|
}
|
|
@@ -768,43 +772,55 @@ var Qt = function(e) {
|
|
|
768
772
|
be(r);
|
|
769
773
|
}
|
|
770
774
|
}, e;
|
|
771
|
-
}(),
|
|
775
|
+
}(), Ze = function(e) {
|
|
772
776
|
j(t, e);
|
|
773
777
|
function t(r, n, i) {
|
|
774
778
|
var o = e.call(this) || this, s;
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
779
|
+
if (F(r) || !r)
|
|
780
|
+
s = {
|
|
781
|
+
next: r ?? void 0,
|
|
782
|
+
error: n ?? void 0,
|
|
783
|
+
complete: i ?? void 0
|
|
784
|
+
};
|
|
785
|
+
else {
|
|
786
|
+
var a;
|
|
787
|
+
o && qt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
788
|
+
return o.unsubscribe();
|
|
789
|
+
}, s = {
|
|
790
|
+
next: r.next && Re(r.next, a),
|
|
791
|
+
error: r.error && Re(r.error, a),
|
|
792
|
+
complete: r.complete && Re(r.complete, a)
|
|
793
|
+
}) : s = r;
|
|
794
|
+
}
|
|
795
|
+
return o.destination = new cn(s), o;
|
|
780
796
|
}
|
|
781
797
|
return t;
|
|
782
|
-
}(
|
|
798
|
+
}(Jt);
|
|
783
799
|
function be(e) {
|
|
784
|
-
|
|
800
|
+
un(e);
|
|
785
801
|
}
|
|
786
|
-
function
|
|
802
|
+
function fn(e) {
|
|
787
803
|
throw e;
|
|
788
804
|
}
|
|
789
|
-
var
|
|
805
|
+
var dn = {
|
|
790
806
|
closed: !0,
|
|
791
|
-
next:
|
|
792
|
-
error:
|
|
793
|
-
complete:
|
|
794
|
-
},
|
|
807
|
+
next: mt,
|
|
808
|
+
error: fn,
|
|
809
|
+
complete: mt
|
|
810
|
+
}, pn = function() {
|
|
795
811
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
796
812
|
}();
|
|
797
|
-
function
|
|
813
|
+
function mn(e) {
|
|
798
814
|
return e;
|
|
799
815
|
}
|
|
800
|
-
function
|
|
801
|
-
return e.length === 0 ?
|
|
816
|
+
function bn(e) {
|
|
817
|
+
return e.length === 0 ? mn : e.length === 1 ? e[0] : function(r) {
|
|
802
818
|
return e.reduce(function(n, i) {
|
|
803
819
|
return i(n);
|
|
804
820
|
}, r);
|
|
805
821
|
};
|
|
806
822
|
}
|
|
807
|
-
var
|
|
823
|
+
var bt = function() {
|
|
808
824
|
function e(t) {
|
|
809
825
|
t && (this._subscribe = t);
|
|
810
826
|
}
|
|
@@ -812,10 +828,10 @@ var pt = function() {
|
|
|
812
828
|
var r = new e();
|
|
813
829
|
return r.source = this, r.operator = t, r;
|
|
814
830
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
815
|
-
var i = this, o =
|
|
816
|
-
return
|
|
817
|
-
var s = i, a = s.operator,
|
|
818
|
-
o.add(a ? a.call(o,
|
|
831
|
+
var i = this, o = vn(t) ? t : new Ze(t, r, n);
|
|
832
|
+
return ye(function() {
|
|
833
|
+
var s = i, a = s.operator, l = s.source;
|
|
834
|
+
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
819
835
|
}), o;
|
|
820
836
|
}, e.prototype._trySubscribe = function(t) {
|
|
821
837
|
try {
|
|
@@ -825,13 +841,13 @@ var pt = function() {
|
|
|
825
841
|
}
|
|
826
842
|
}, e.prototype.forEach = function(t, r) {
|
|
827
843
|
var n = this;
|
|
828
|
-
return r =
|
|
829
|
-
var s = new
|
|
844
|
+
return r = gt(r), new r(function(i, o) {
|
|
845
|
+
var s = new Ze({
|
|
830
846
|
next: function(a) {
|
|
831
847
|
try {
|
|
832
848
|
t(a);
|
|
833
|
-
} catch (
|
|
834
|
-
o(
|
|
849
|
+
} catch (l) {
|
|
850
|
+
o(l), s.unsubscribe();
|
|
835
851
|
}
|
|
836
852
|
},
|
|
837
853
|
error: o,
|
|
@@ -842,15 +858,15 @@ var pt = function() {
|
|
|
842
858
|
}, e.prototype._subscribe = function(t) {
|
|
843
859
|
var r;
|
|
844
860
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
845
|
-
}, e.prototype[
|
|
861
|
+
}, e.prototype[pn] = function() {
|
|
846
862
|
return this;
|
|
847
863
|
}, e.prototype.pipe = function() {
|
|
848
864
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
849
865
|
t[r] = arguments[r];
|
|
850
|
-
return
|
|
866
|
+
return bn(t)(this);
|
|
851
867
|
}, e.prototype.toPromise = function(t) {
|
|
852
868
|
var r = this;
|
|
853
|
-
return t =
|
|
869
|
+
return t = gt(t), new t(function(n, i) {
|
|
854
870
|
var o;
|
|
855
871
|
r.subscribe(function(s) {
|
|
856
872
|
return o = s;
|
|
@@ -864,45 +880,45 @@ var pt = function() {
|
|
|
864
880
|
return new e(t);
|
|
865
881
|
}, e;
|
|
866
882
|
}();
|
|
867
|
-
function
|
|
883
|
+
function gt(e) {
|
|
868
884
|
var t;
|
|
869
|
-
return (t = e ??
|
|
885
|
+
return (t = e ?? qt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
870
886
|
}
|
|
871
|
-
function
|
|
887
|
+
function gn(e) {
|
|
872
888
|
return e && F(e.next) && F(e.error) && F(e.complete);
|
|
873
889
|
}
|
|
874
|
-
function
|
|
875
|
-
return e && e instanceof
|
|
890
|
+
function vn(e) {
|
|
891
|
+
return e && e instanceof Jt || gn(e) && Yt(e);
|
|
876
892
|
}
|
|
877
|
-
var
|
|
893
|
+
var yn = Zt(function(e) {
|
|
878
894
|
return function() {
|
|
879
895
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
880
896
|
};
|
|
881
|
-
}),
|
|
897
|
+
}), Kt = function(e) {
|
|
882
898
|
j(t, e);
|
|
883
899
|
function t() {
|
|
884
900
|
var r = e.call(this) || this;
|
|
885
901
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
886
902
|
}
|
|
887
903
|
return t.prototype.lift = function(r) {
|
|
888
|
-
var n = new
|
|
904
|
+
var n = new vt(this, this);
|
|
889
905
|
return n.operator = r, n;
|
|
890
906
|
}, t.prototype._throwIfClosed = function() {
|
|
891
907
|
if (this.closed)
|
|
892
|
-
throw new
|
|
908
|
+
throw new yn();
|
|
893
909
|
}, t.prototype.next = function(r) {
|
|
894
910
|
var n = this;
|
|
895
|
-
|
|
911
|
+
ye(function() {
|
|
896
912
|
var i, o;
|
|
897
913
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
898
914
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
899
915
|
try {
|
|
900
|
-
for (var s =
|
|
901
|
-
var
|
|
902
|
-
|
|
916
|
+
for (var s = We(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
917
|
+
var l = a.value;
|
|
918
|
+
l.next(r);
|
|
903
919
|
}
|
|
904
|
-
} catch (
|
|
905
|
-
i = { error:
|
|
920
|
+
} catch (u) {
|
|
921
|
+
i = { error: u };
|
|
906
922
|
} finally {
|
|
907
923
|
try {
|
|
908
924
|
a && !a.done && (o = s.return) && o.call(s);
|
|
@@ -915,7 +931,7 @@ var bn = Xt(function(e) {
|
|
|
915
931
|
});
|
|
916
932
|
}, t.prototype.error = function(r) {
|
|
917
933
|
var n = this;
|
|
918
|
-
|
|
934
|
+
ye(function() {
|
|
919
935
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
920
936
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
921
937
|
for (var i = n.observers; i.length; )
|
|
@@ -924,7 +940,7 @@ var bn = Xt(function(e) {
|
|
|
924
940
|
});
|
|
925
941
|
}, t.prototype.complete = function() {
|
|
926
942
|
var r = this;
|
|
927
|
-
|
|
943
|
+
ye(function() {
|
|
928
944
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
929
945
|
r.isStopped = !0;
|
|
930
946
|
for (var n = r.observers; n.length; )
|
|
@@ -946,19 +962,19 @@ var bn = Xt(function(e) {
|
|
|
946
962
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
947
963
|
}, t.prototype._innerSubscribe = function(r) {
|
|
948
964
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
949
|
-
return o || s ?
|
|
950
|
-
n.currentObservers = null,
|
|
965
|
+
return o || s ? Qt : (this.currentObservers = null, a.push(r), new Te(function() {
|
|
966
|
+
n.currentObservers = null, ze(a, r);
|
|
951
967
|
}));
|
|
952
968
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
953
969
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
954
970
|
i ? r.error(o) : s && r.complete();
|
|
955
971
|
}, t.prototype.asObservable = function() {
|
|
956
|
-
var r = new
|
|
972
|
+
var r = new bt();
|
|
957
973
|
return r.source = this, r;
|
|
958
974
|
}, t.create = function(r, n) {
|
|
959
|
-
return new
|
|
975
|
+
return new vt(r, n);
|
|
960
976
|
}, t;
|
|
961
|
-
}(
|
|
977
|
+
}(bt), vt = function(e) {
|
|
962
978
|
j(t, e);
|
|
963
979
|
function t(r, n) {
|
|
964
980
|
var i = e.call(this) || this;
|
|
@@ -975,45 +991,45 @@ var bn = Xt(function(e) {
|
|
|
975
991
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
976
992
|
}, t.prototype._subscribe = function(r) {
|
|
977
993
|
var n, i;
|
|
978
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
994
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Qt;
|
|
979
995
|
}, t;
|
|
980
|
-
}(
|
|
996
|
+
}(Kt), er = {
|
|
981
997
|
now: function() {
|
|
982
|
-
return (
|
|
998
|
+
return (er.delegate || Date).now();
|
|
983
999
|
},
|
|
984
1000
|
delegate: void 0
|
|
985
|
-
},
|
|
1001
|
+
}, _n = function(e) {
|
|
986
1002
|
j(t, e);
|
|
987
1003
|
function t(r, n, i) {
|
|
988
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1004
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = er);
|
|
989
1005
|
var o = e.call(this) || this;
|
|
990
1006
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
991
1007
|
}
|
|
992
1008
|
return t.prototype.next = function(r) {
|
|
993
|
-
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider,
|
|
994
|
-
i || (o.push(r), !s && o.push(a.now() +
|
|
1009
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
|
|
1010
|
+
i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
995
1011
|
}, t.prototype._subscribe = function(r) {
|
|
996
1012
|
this._throwIfClosed(), this._trimBuffer();
|
|
997
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(),
|
|
998
|
-
r.next(a[
|
|
1013
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
|
|
1014
|
+
r.next(a[l]);
|
|
999
1015
|
return this._checkFinalizedStatuses(r), n;
|
|
1000
1016
|
}, t.prototype._trimBuffer = function() {
|
|
1001
1017
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
1002
1018
|
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
1003
|
-
for (var
|
|
1004
|
-
|
|
1005
|
-
|
|
1019
|
+
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1020
|
+
u = h;
|
|
1021
|
+
u && o.splice(0, u + 1);
|
|
1006
1022
|
}
|
|
1007
1023
|
}, t;
|
|
1008
|
-
}(
|
|
1009
|
-
const
|
|
1010
|
-
if (
|
|
1011
|
-
const r = new
|
|
1012
|
-
|
|
1024
|
+
}(Kt);
|
|
1025
|
+
const yt = [], _t = {}, xn = (e, t = 0) => {
|
|
1026
|
+
if (yt.indexOf(e) == -1) {
|
|
1027
|
+
const r = new _n(t);
|
|
1028
|
+
_t[e] = r, yt.push(e);
|
|
1013
1029
|
}
|
|
1014
|
-
return
|
|
1030
|
+
return _t[e];
|
|
1015
1031
|
}, Y = [];
|
|
1016
|
-
function
|
|
1032
|
+
function En(e, t) {
|
|
1017
1033
|
return {
|
|
1018
1034
|
subscribe: He(e, t).subscribe
|
|
1019
1035
|
};
|
|
@@ -1022,13 +1038,13 @@ function He(e, t = D) {
|
|
|
1022
1038
|
let r;
|
|
1023
1039
|
const n = /* @__PURE__ */ new Set();
|
|
1024
1040
|
function i(a) {
|
|
1025
|
-
if (
|
|
1026
|
-
const
|
|
1027
|
-
for (const
|
|
1028
|
-
|
|
1029
|
-
if (
|
|
1030
|
-
for (let
|
|
1031
|
-
Y[
|
|
1041
|
+
if (Wt(e, a) && (e = a, r)) {
|
|
1042
|
+
const l = !Y.length;
|
|
1043
|
+
for (const u of n)
|
|
1044
|
+
u[1](), Y.push(u, e);
|
|
1045
|
+
if (l) {
|
|
1046
|
+
for (let u = 0; u < Y.length; u += 2)
|
|
1047
|
+
Y[u][0](Y[u + 1]);
|
|
1032
1048
|
Y.length = 0;
|
|
1033
1049
|
}
|
|
1034
1050
|
}
|
|
@@ -1036,10 +1052,10 @@ function He(e, t = D) {
|
|
|
1036
1052
|
function o(a) {
|
|
1037
1053
|
i(a(e));
|
|
1038
1054
|
}
|
|
1039
|
-
function s(a,
|
|
1040
|
-
const
|
|
1041
|
-
return n.add(
|
|
1042
|
-
n.delete(
|
|
1055
|
+
function s(a, l = D) {
|
|
1056
|
+
const u = [a, l];
|
|
1057
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || D), a(e), () => {
|
|
1058
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1043
1059
|
};
|
|
1044
1060
|
}
|
|
1045
1061
|
return { set: i, update: o, subscribe: s };
|
|
@@ -1049,96 +1065,96 @@ function se(e, t, r) {
|
|
|
1049
1065
|
if (!i.every(Boolean))
|
|
1050
1066
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1051
1067
|
const o = t.length < 2;
|
|
1052
|
-
return
|
|
1053
|
-
let
|
|
1054
|
-
const
|
|
1055
|
-
let h = 0,
|
|
1056
|
-
const
|
|
1068
|
+
return En(r, (s, a) => {
|
|
1069
|
+
let l = !1;
|
|
1070
|
+
const u = [];
|
|
1071
|
+
let h = 0, c = D;
|
|
1072
|
+
const f = () => {
|
|
1057
1073
|
if (h)
|
|
1058
1074
|
return;
|
|
1059
|
-
|
|
1060
|
-
const p = t(n ?
|
|
1061
|
-
o ? s(p) :
|
|
1075
|
+
c();
|
|
1076
|
+
const p = t(n ? u[0] : u, s, a);
|
|
1077
|
+
o ? s(p) : c = Se(p) ? p : D;
|
|
1062
1078
|
}, m = i.map(
|
|
1063
|
-
(p, b) =>
|
|
1079
|
+
(p, b) => Dr(
|
|
1064
1080
|
p,
|
|
1065
1081
|
(T) => {
|
|
1066
|
-
|
|
1082
|
+
u[b] = T, h &= ~(1 << b), l && f();
|
|
1067
1083
|
},
|
|
1068
1084
|
() => {
|
|
1069
1085
|
h |= 1 << b;
|
|
1070
1086
|
}
|
|
1071
1087
|
)
|
|
1072
1088
|
);
|
|
1073
|
-
return
|
|
1074
|
-
X(m),
|
|
1089
|
+
return l = !0, f(), function() {
|
|
1090
|
+
X(m), c(), l = !1;
|
|
1075
1091
|
};
|
|
1076
1092
|
});
|
|
1077
1093
|
}
|
|
1078
|
-
function
|
|
1079
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1094
|
+
function Cn(e) {
|
|
1095
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1080
1096
|
}
|
|
1081
|
-
var
|
|
1082
|
-
return
|
|
1097
|
+
var wn = function(t) {
|
|
1098
|
+
return Sn(t) && !Tn(t);
|
|
1083
1099
|
};
|
|
1084
|
-
function
|
|
1100
|
+
function Sn(e) {
|
|
1085
1101
|
return !!e && typeof e == "object";
|
|
1086
1102
|
}
|
|
1087
|
-
function
|
|
1103
|
+
function Tn(e) {
|
|
1088
1104
|
var t = Object.prototype.toString.call(e);
|
|
1089
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1105
|
+
return t === "[object RegExp]" || t === "[object Date]" || In(e);
|
|
1090
1106
|
}
|
|
1091
|
-
var
|
|
1092
|
-
function
|
|
1093
|
-
return e.$$typeof ===
|
|
1107
|
+
var Hn = typeof Symbol == "function" && Symbol.for, An = Hn ? Symbol.for("react.element") : 60103;
|
|
1108
|
+
function In(e) {
|
|
1109
|
+
return e.$$typeof === An;
|
|
1094
1110
|
}
|
|
1095
|
-
function
|
|
1111
|
+
function Bn(e) {
|
|
1096
1112
|
return Array.isArray(e) ? [] : {};
|
|
1097
1113
|
}
|
|
1098
|
-
function
|
|
1099
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? re(
|
|
1114
|
+
function fe(e, t) {
|
|
1115
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? re(Bn(e), e, t) : e;
|
|
1100
1116
|
}
|
|
1101
|
-
function
|
|
1117
|
+
function Pn(e, t, r) {
|
|
1102
1118
|
return e.concat(t).map(function(n) {
|
|
1103
|
-
return
|
|
1119
|
+
return fe(n, r);
|
|
1104
1120
|
});
|
|
1105
1121
|
}
|
|
1106
|
-
function
|
|
1122
|
+
function Mn(e, t) {
|
|
1107
1123
|
if (!t.customMerge)
|
|
1108
1124
|
return re;
|
|
1109
1125
|
var r = t.customMerge(e);
|
|
1110
1126
|
return typeof r == "function" ? r : re;
|
|
1111
1127
|
}
|
|
1112
|
-
function
|
|
1128
|
+
function On(e) {
|
|
1113
1129
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1114
1130
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1115
1131
|
}) : [];
|
|
1116
1132
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return Object.keys(e).concat(
|
|
1133
|
+
function xt(e) {
|
|
1134
|
+
return Object.keys(e).concat(On(e));
|
|
1119
1135
|
}
|
|
1120
|
-
function
|
|
1136
|
+
function tr(e, t) {
|
|
1121
1137
|
try {
|
|
1122
1138
|
return t in e;
|
|
1123
1139
|
} catch {
|
|
1124
1140
|
return !1;
|
|
1125
1141
|
}
|
|
1126
1142
|
}
|
|
1127
|
-
function
|
|
1128
|
-
return
|
|
1143
|
+
function Ln(e, t) {
|
|
1144
|
+
return tr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1129
1145
|
}
|
|
1130
|
-
function
|
|
1146
|
+
function Nn(e, t, r) {
|
|
1131
1147
|
var n = {};
|
|
1132
|
-
return r.isMergeableObject(e) &&
|
|
1133
|
-
n[i] =
|
|
1134
|
-
}),
|
|
1135
|
-
|
|
1148
|
+
return r.isMergeableObject(e) && xt(e).forEach(function(i) {
|
|
1149
|
+
n[i] = fe(e[i], r);
|
|
1150
|
+
}), xt(t).forEach(function(i) {
|
|
1151
|
+
Ln(e, i) || (tr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Mn(i, r)(e[i], t[i], r) : n[i] = fe(t[i], r));
|
|
1136
1152
|
}), n;
|
|
1137
1153
|
}
|
|
1138
1154
|
function re(e, t, r) {
|
|
1139
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1155
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Pn, r.isMergeableObject = r.isMergeableObject || wn, r.cloneUnlessOtherwiseSpecified = fe;
|
|
1140
1156
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1141
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1157
|
+
return o ? n ? r.arrayMerge(e, t, r) : Nn(e, t, r) : fe(t, r);
|
|
1142
1158
|
}
|
|
1143
1159
|
re.all = function(t, r) {
|
|
1144
1160
|
if (!Array.isArray(t))
|
|
@@ -1147,64 +1163,62 @@ re.all = function(t, r) {
|
|
|
1147
1163
|
return re(n, i, r);
|
|
1148
1164
|
}, {});
|
|
1149
1165
|
};
|
|
1150
|
-
var
|
|
1151
|
-
const
|
|
1152
|
-
function
|
|
1153
|
-
var r = t && t.cache ? t.cache :
|
|
1166
|
+
var Rn = re, Un = Rn;
|
|
1167
|
+
const Dn = /* @__PURE__ */ Cn(Un);
|
|
1168
|
+
function Ue(e, t) {
|
|
1169
|
+
var r = t && t.cache ? t.cache : Vn, n = t && t.serializer ? t.serializer : jn, i = t && t.strategy ? t.strategy : kn;
|
|
1154
1170
|
return i(e, {
|
|
1155
1171
|
cache: r,
|
|
1156
1172
|
serializer: n
|
|
1157
1173
|
});
|
|
1158
1174
|
}
|
|
1159
|
-
function
|
|
1175
|
+
function $n(e) {
|
|
1160
1176
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1161
1177
|
}
|
|
1162
|
-
function
|
|
1163
|
-
var i =
|
|
1178
|
+
function rr(e, t, r, n) {
|
|
1179
|
+
var i = $n(n) ? n : r(n), o = t.get(i);
|
|
1164
1180
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1165
1181
|
}
|
|
1166
|
-
function
|
|
1182
|
+
function nr(e, t, r) {
|
|
1167
1183
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1168
1184
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1169
1185
|
}
|
|
1170
|
-
function
|
|
1186
|
+
function ot(e, t, r, n, i) {
|
|
1171
1187
|
return r.bind(t, e, n, i);
|
|
1172
1188
|
}
|
|
1173
|
-
function
|
|
1174
|
-
var r = e.length === 1 ?
|
|
1175
|
-
return
|
|
1189
|
+
function kn(e, t) {
|
|
1190
|
+
var r = e.length === 1 ? rr : nr;
|
|
1191
|
+
return ot(e, this, r, t.cache.create(), t.serializer);
|
|
1176
1192
|
}
|
|
1177
|
-
function
|
|
1178
|
-
return
|
|
1193
|
+
function Gn(e, t) {
|
|
1194
|
+
return ot(e, this, nr, t.cache.create(), t.serializer);
|
|
1179
1195
|
}
|
|
1180
|
-
function
|
|
1181
|
-
return
|
|
1196
|
+
function Fn(e, t) {
|
|
1197
|
+
return ot(e, this, rr, t.cache.create(), t.serializer);
|
|
1182
1198
|
}
|
|
1183
|
-
var
|
|
1199
|
+
var jn = function() {
|
|
1184
1200
|
return JSON.stringify(arguments);
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
}()
|
|
1197
|
-
), Fn = {
|
|
1201
|
+
};
|
|
1202
|
+
function st() {
|
|
1203
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1204
|
+
}
|
|
1205
|
+
st.prototype.get = function(e) {
|
|
1206
|
+
return this.cache[e];
|
|
1207
|
+
};
|
|
1208
|
+
st.prototype.set = function(e, t) {
|
|
1209
|
+
this.cache[e] = t;
|
|
1210
|
+
};
|
|
1211
|
+
var Vn = {
|
|
1198
1212
|
create: function() {
|
|
1199
|
-
return new
|
|
1213
|
+
return new st();
|
|
1200
1214
|
}
|
|
1201
|
-
},
|
|
1202
|
-
variadic:
|
|
1203
|
-
monadic:
|
|
1204
|
-
},
|
|
1215
|
+
}, De = {
|
|
1216
|
+
variadic: Gn,
|
|
1217
|
+
monadic: Fn
|
|
1218
|
+
}, v;
|
|
1205
1219
|
(function(e) {
|
|
1206
1220
|
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";
|
|
1207
|
-
})(
|
|
1221
|
+
})(v || (v = {}));
|
|
1208
1222
|
var C;
|
|
1209
1223
|
(function(e) {
|
|
1210
1224
|
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";
|
|
@@ -1213,43 +1227,43 @@ var ne;
|
|
|
1213
1227
|
(function(e) {
|
|
1214
1228
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1215
1229
|
})(ne || (ne = {}));
|
|
1216
|
-
function
|
|
1230
|
+
function Et(e) {
|
|
1217
1231
|
return e.type === C.literal;
|
|
1218
1232
|
}
|
|
1219
|
-
function
|
|
1233
|
+
function Wn(e) {
|
|
1220
1234
|
return e.type === C.argument;
|
|
1221
1235
|
}
|
|
1222
|
-
function
|
|
1236
|
+
function ir(e) {
|
|
1223
1237
|
return e.type === C.number;
|
|
1224
1238
|
}
|
|
1225
|
-
function
|
|
1239
|
+
function or(e) {
|
|
1226
1240
|
return e.type === C.date;
|
|
1227
1241
|
}
|
|
1228
|
-
function
|
|
1242
|
+
function sr(e) {
|
|
1229
1243
|
return e.type === C.time;
|
|
1230
1244
|
}
|
|
1231
|
-
function
|
|
1245
|
+
function ar(e) {
|
|
1232
1246
|
return e.type === C.select;
|
|
1233
1247
|
}
|
|
1234
|
-
function
|
|
1248
|
+
function lr(e) {
|
|
1235
1249
|
return e.type === C.plural;
|
|
1236
1250
|
}
|
|
1237
|
-
function
|
|
1251
|
+
function Xn(e) {
|
|
1238
1252
|
return e.type === C.pound;
|
|
1239
1253
|
}
|
|
1240
|
-
function
|
|
1254
|
+
function ur(e) {
|
|
1241
1255
|
return e.type === C.tag;
|
|
1242
1256
|
}
|
|
1243
|
-
function
|
|
1257
|
+
function hr(e) {
|
|
1244
1258
|
return !!(e && typeof e == "object" && e.type === ne.number);
|
|
1245
1259
|
}
|
|
1246
|
-
function
|
|
1260
|
+
function Qe(e) {
|
|
1247
1261
|
return !!(e && typeof e == "object" && e.type === ne.dateTime);
|
|
1248
1262
|
}
|
|
1249
|
-
var
|
|
1250
|
-
function
|
|
1263
|
+
var cr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zn = /(?:[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;
|
|
1264
|
+
function Zn(e) {
|
|
1251
1265
|
var t = {};
|
|
1252
|
-
return e.replace(
|
|
1266
|
+
return e.replace(zn, function(r) {
|
|
1253
1267
|
var n = r.length;
|
|
1254
1268
|
switch (r[0]) {
|
|
1255
1269
|
case "G":
|
|
@@ -1338,36 +1352,36 @@ function Xn(e) {
|
|
|
1338
1352
|
return "";
|
|
1339
1353
|
}), t;
|
|
1340
1354
|
}
|
|
1341
|
-
var
|
|
1342
|
-
function
|
|
1355
|
+
var Qn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1356
|
+
function Yn(e) {
|
|
1343
1357
|
if (e.length === 0)
|
|
1344
1358
|
throw new Error("Number skeleton cannot be empty");
|
|
1345
|
-
for (var t = e.split(
|
|
1346
|
-
return
|
|
1359
|
+
for (var t = e.split(Qn).filter(function(f) {
|
|
1360
|
+
return f.length > 0;
|
|
1347
1361
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1348
1362
|
var o = i[n], s = o.split("/");
|
|
1349
1363
|
if (s.length === 0)
|
|
1350
1364
|
throw new Error("Invalid number skeleton");
|
|
1351
|
-
for (var a = s[0],
|
|
1352
|
-
var
|
|
1353
|
-
if (
|
|
1365
|
+
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1366
|
+
var c = h[u];
|
|
1367
|
+
if (c.length === 0)
|
|
1354
1368
|
throw new Error("Invalid number skeleton");
|
|
1355
1369
|
}
|
|
1356
|
-
r.push({ stem: a, options:
|
|
1370
|
+
r.push({ stem: a, options: l });
|
|
1357
1371
|
}
|
|
1358
1372
|
return r;
|
|
1359
1373
|
}
|
|
1360
|
-
function
|
|
1374
|
+
function qn(e) {
|
|
1361
1375
|
return e.replace(/^(.*?)-/, "");
|
|
1362
1376
|
}
|
|
1363
|
-
var
|
|
1364
|
-
function
|
|
1377
|
+
var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, fr = /^(@+)?(\+|#+)?[rs]?$/g, Jn = /(\*)(0+)|(#+)(0+)|(0+)/g, dr = /^(0+)$/;
|
|
1378
|
+
function wt(e) {
|
|
1365
1379
|
var t = {};
|
|
1366
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1380
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(fr, function(r, n, i) {
|
|
1367
1381
|
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)), "";
|
|
1368
1382
|
}), t;
|
|
1369
1383
|
}
|
|
1370
|
-
function
|
|
1384
|
+
function pr(e) {
|
|
1371
1385
|
switch (e) {
|
|
1372
1386
|
case "sign-auto":
|
|
1373
1387
|
return {
|
|
@@ -1407,7 +1421,7 @@ function fr(e) {
|
|
|
1407
1421
|
};
|
|
1408
1422
|
}
|
|
1409
1423
|
}
|
|
1410
|
-
function
|
|
1424
|
+
function Kn(e) {
|
|
1411
1425
|
var t;
|
|
1412
1426
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1413
1427
|
notation: "engineering"
|
|
@@ -1415,17 +1429,17 @@ function qn(e) {
|
|
|
1415
1429
|
notation: "scientific"
|
|
1416
1430
|
}, e = e.slice(1)), t) {
|
|
1417
1431
|
var r = e.slice(0, 2);
|
|
1418
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1432
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !dr.test(e))
|
|
1419
1433
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1420
1434
|
t.minimumIntegerDigits = e.length;
|
|
1421
1435
|
}
|
|
1422
1436
|
return t;
|
|
1423
1437
|
}
|
|
1424
|
-
function
|
|
1425
|
-
var t = {}, r =
|
|
1438
|
+
function St(e) {
|
|
1439
|
+
var t = {}, r = pr(e);
|
|
1426
1440
|
return r || t;
|
|
1427
1441
|
}
|
|
1428
|
-
function
|
|
1442
|
+
function ei(e) {
|
|
1429
1443
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1430
1444
|
var i = n[r];
|
|
1431
1445
|
switch (i.stem) {
|
|
@@ -1449,7 +1463,7 @@ function Jn(e) {
|
|
|
1449
1463
|
continue;
|
|
1450
1464
|
case "measure-unit":
|
|
1451
1465
|
case "unit":
|
|
1452
|
-
t.style = "unit", t.unit =
|
|
1466
|
+
t.style = "unit", t.unit = qn(i.options[0]);
|
|
1453
1467
|
continue;
|
|
1454
1468
|
case "compact-short":
|
|
1455
1469
|
case "K":
|
|
@@ -1460,13 +1474,13 @@ function Jn(e) {
|
|
|
1460
1474
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1461
1475
|
continue;
|
|
1462
1476
|
case "scientific":
|
|
1463
|
-
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
1464
|
-
return _(_({},
|
|
1477
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1478
|
+
return _(_({}, l), St(u));
|
|
1465
1479
|
}, {}));
|
|
1466
1480
|
continue;
|
|
1467
1481
|
case "engineering":
|
|
1468
|
-
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
1469
|
-
return _(_({},
|
|
1482
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1483
|
+
return _(_({}, l), St(u));
|
|
1470
1484
|
}, {}));
|
|
1471
1485
|
continue;
|
|
1472
1486
|
case "notation-simple":
|
|
@@ -1511,11 +1525,11 @@ function Jn(e) {
|
|
|
1511
1525
|
case "integer-width":
|
|
1512
1526
|
if (i.options.length > 1)
|
|
1513
1527
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1514
|
-
i.options[0].replace(
|
|
1515
|
-
if (
|
|
1528
|
+
i.options[0].replace(Jn, function(l, u, h, c, f, m) {
|
|
1529
|
+
if (u)
|
|
1516
1530
|
t.minimumIntegerDigits = h.length;
|
|
1517
1531
|
else {
|
|
1518
|
-
if (
|
|
1532
|
+
if (c && f)
|
|
1519
1533
|
throw new Error("We currently do not support maximum integer digits");
|
|
1520
1534
|
if (m)
|
|
1521
1535
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1524,27 +1538,27 @@ function Jn(e) {
|
|
|
1524
1538
|
});
|
|
1525
1539
|
continue;
|
|
1526
1540
|
}
|
|
1527
|
-
if (
|
|
1541
|
+
if (dr.test(i.stem)) {
|
|
1528
1542
|
t.minimumIntegerDigits = i.stem.length;
|
|
1529
1543
|
continue;
|
|
1530
1544
|
}
|
|
1531
|
-
if (
|
|
1545
|
+
if (Ct.test(i.stem)) {
|
|
1532
1546
|
if (i.options.length > 1)
|
|
1533
1547
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1534
|
-
i.stem.replace(
|
|
1535
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1548
|
+
i.stem.replace(Ct, function(l, u, h, c, f, m) {
|
|
1549
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1536
1550
|
});
|
|
1537
1551
|
var o = i.options[0];
|
|
1538
|
-
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t),
|
|
1552
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), wt(o)));
|
|
1539
1553
|
continue;
|
|
1540
1554
|
}
|
|
1541
|
-
if (
|
|
1542
|
-
t = _(_({}, t),
|
|
1555
|
+
if (fr.test(i.stem)) {
|
|
1556
|
+
t = _(_({}, t), wt(i.stem));
|
|
1543
1557
|
continue;
|
|
1544
1558
|
}
|
|
1545
|
-
var s =
|
|
1559
|
+
var s = pr(i.stem);
|
|
1546
1560
|
s && (t = _(_({}, t), s));
|
|
1547
|
-
var a =
|
|
1561
|
+
var a = Kn(i.stem);
|
|
1548
1562
|
a && (t = _(_({}, t), a));
|
|
1549
1563
|
}
|
|
1550
1564
|
return t;
|
|
@@ -2964,23 +2978,23 @@ var ge = {
|
|
|
2964
2978
|
"h"
|
|
2965
2979
|
]
|
|
2966
2980
|
};
|
|
2967
|
-
function
|
|
2981
|
+
function ti(e, t) {
|
|
2968
2982
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2969
2983
|
var i = e.charAt(n);
|
|
2970
2984
|
if (i === "j") {
|
|
2971
2985
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2972
2986
|
o++, n++;
|
|
2973
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1),
|
|
2974
|
-
for ((
|
|
2975
|
-
r +=
|
|
2987
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = ri(t);
|
|
2988
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2989
|
+
r += l;
|
|
2976
2990
|
for (; s-- > 0; )
|
|
2977
|
-
r =
|
|
2991
|
+
r = u + r;
|
|
2978
2992
|
} else
|
|
2979
2993
|
i === "J" ? r += "H" : r += i;
|
|
2980
2994
|
}
|
|
2981
2995
|
return r;
|
|
2982
2996
|
}
|
|
2983
|
-
function
|
|
2997
|
+
function ri(e) {
|
|
2984
2998
|
var t = e.hourCycle;
|
|
2985
2999
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2986
3000
|
e.hourCycles && // @ts-ignore
|
|
@@ -3002,20 +3016,20 @@ function ei(e) {
|
|
|
3002
3016
|
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
3003
3017
|
return i[0];
|
|
3004
3018
|
}
|
|
3005
|
-
var
|
|
3006
|
-
function
|
|
3019
|
+
var $e, ni = new RegExp("^".concat(cr.source, "*")), ii = new RegExp("".concat(cr.source, "*$"));
|
|
3020
|
+
function y(e, t) {
|
|
3007
3021
|
return { start: e, end: t };
|
|
3008
3022
|
}
|
|
3009
|
-
var
|
|
3023
|
+
var oi = !!String.prototype.startsWith && "_a".startsWith("a", 1), si = !!String.fromCodePoint, ai = !!Object.fromEntries, li = !!String.prototype.codePointAt, ui = !!String.prototype.trimStart, hi = !!String.prototype.trimEnd, ci = !!Number.isSafeInteger, fi = ci ? Number.isSafeInteger : function(e) {
|
|
3010
3024
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3011
|
-
},
|
|
3025
|
+
}, Ye = !0;
|
|
3012
3026
|
try {
|
|
3013
|
-
var
|
|
3014
|
-
|
|
3027
|
+
var di = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3028
|
+
Ye = (($e = di.exec("a")) === null || $e === void 0 ? void 0 : $e[0]) === "a";
|
|
3015
3029
|
} catch {
|
|
3016
|
-
|
|
3030
|
+
Ye = !1;
|
|
3017
3031
|
}
|
|
3018
|
-
var
|
|
3032
|
+
var Tt = oi ? (
|
|
3019
3033
|
// Native
|
|
3020
3034
|
function(t, r, n) {
|
|
3021
3035
|
return t.startsWith(r, n);
|
|
@@ -3025,7 +3039,7 @@ var wt = ni ? (
|
|
|
3025
3039
|
function(t, r, n) {
|
|
3026
3040
|
return t.slice(n, n + r.length) === r;
|
|
3027
3041
|
}
|
|
3028
|
-
),
|
|
3042
|
+
), qe = si ? String.fromCodePoint : (
|
|
3029
3043
|
// IE11
|
|
3030
3044
|
function() {
|
|
3031
3045
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3037,9 +3051,9 @@ var wt = ni ? (
|
|
|
3037
3051
|
}
|
|
3038
3052
|
return n;
|
|
3039
3053
|
}
|
|
3040
|
-
),
|
|
3054
|
+
), Ht = (
|
|
3041
3055
|
// native
|
|
3042
|
-
|
|
3056
|
+
ai ? Object.fromEntries : (
|
|
3043
3057
|
// Ponyfill
|
|
3044
3058
|
function(t) {
|
|
3045
3059
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3049,7 +3063,7 @@ var wt = ni ? (
|
|
|
3049
3063
|
return r;
|
|
3050
3064
|
}
|
|
3051
3065
|
)
|
|
3052
|
-
),
|
|
3066
|
+
), mr = li ? (
|
|
3053
3067
|
// Native
|
|
3054
3068
|
function(t, r) {
|
|
3055
3069
|
return t.codePointAt(r);
|
|
@@ -3063,7 +3077,7 @@ var wt = ni ? (
|
|
|
3063
3077
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3064
3078
|
}
|
|
3065
3079
|
}
|
|
3066
|
-
),
|
|
3080
|
+
), pi = ui ? (
|
|
3067
3081
|
// Native
|
|
3068
3082
|
function(t) {
|
|
3069
3083
|
return t.trimStart();
|
|
@@ -3071,9 +3085,9 @@ var wt = ni ? (
|
|
|
3071
3085
|
) : (
|
|
3072
3086
|
// Ponyfill
|
|
3073
3087
|
function(t) {
|
|
3074
|
-
return t.replace(
|
|
3088
|
+
return t.replace(ni, "");
|
|
3075
3089
|
}
|
|
3076
|
-
),
|
|
3090
|
+
), mi = hi ? (
|
|
3077
3091
|
// Native
|
|
3078
3092
|
function(t) {
|
|
3079
3093
|
return t.trimEnd();
|
|
@@ -3081,32 +3095,32 @@ var wt = ni ? (
|
|
|
3081
3095
|
) : (
|
|
3082
3096
|
// Ponyfill
|
|
3083
3097
|
function(t) {
|
|
3084
|
-
return t.replace(
|
|
3098
|
+
return t.replace(ii, "");
|
|
3085
3099
|
}
|
|
3086
3100
|
);
|
|
3087
|
-
function
|
|
3101
|
+
function br(e, t) {
|
|
3088
3102
|
return new RegExp(e, t);
|
|
3089
3103
|
}
|
|
3090
|
-
var
|
|
3091
|
-
if (
|
|
3092
|
-
var
|
|
3093
|
-
|
|
3104
|
+
var Je;
|
|
3105
|
+
if (Ye) {
|
|
3106
|
+
var At = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3107
|
+
Je = function(t, r) {
|
|
3094
3108
|
var n;
|
|
3095
|
-
|
|
3096
|
-
var i =
|
|
3109
|
+
At.lastIndex = r;
|
|
3110
|
+
var i = At.exec(t);
|
|
3097
3111
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3098
3112
|
};
|
|
3099
3113
|
} else
|
|
3100
|
-
|
|
3114
|
+
Je = function(t, r) {
|
|
3101
3115
|
for (var n = []; ; ) {
|
|
3102
|
-
var i =
|
|
3103
|
-
if (i === void 0 ||
|
|
3116
|
+
var i = mr(t, r);
|
|
3117
|
+
if (i === void 0 || gr(i) || yi(i))
|
|
3104
3118
|
break;
|
|
3105
3119
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3106
3120
|
}
|
|
3107
|
-
return
|
|
3121
|
+
return qe.apply(void 0, n);
|
|
3108
3122
|
};
|
|
3109
|
-
var
|
|
3123
|
+
var bi = (
|
|
3110
3124
|
/** @class */
|
|
3111
3125
|
function() {
|
|
3112
3126
|
function e(t, r) {
|
|
@@ -3131,13 +3145,13 @@ var pi = (
|
|
|
3131
3145
|
var a = this.clonePosition();
|
|
3132
3146
|
this.bump(), i.push({
|
|
3133
3147
|
type: C.pound,
|
|
3134
|
-
location:
|
|
3148
|
+
location: y(a, this.clonePosition())
|
|
3135
3149
|
});
|
|
3136
3150
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3137
3151
|
if (n)
|
|
3138
3152
|
break;
|
|
3139
|
-
return this.error(
|
|
3140
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3153
|
+
return this.error(v.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3154
|
+
} else if (o === 60 && !this.ignoreTag && Ke(this.peek() || 0)) {
|
|
3141
3155
|
var s = this.parseTag(t, r);
|
|
3142
3156
|
if (s.err)
|
|
3143
3157
|
return s;
|
|
@@ -3160,7 +3174,7 @@ var pi = (
|
|
|
3160
3174
|
val: {
|
|
3161
3175
|
type: C.literal,
|
|
3162
3176
|
value: "<".concat(i, "/>"),
|
|
3163
|
-
location:
|
|
3177
|
+
location: y(n, this.clonePosition())
|
|
3164
3178
|
},
|
|
3165
3179
|
err: null
|
|
3166
3180
|
};
|
|
@@ -3170,25 +3184,25 @@ var pi = (
|
|
|
3170
3184
|
return o;
|
|
3171
3185
|
var s = o.val, a = this.clonePosition();
|
|
3172
3186
|
if (this.bumpIf("</")) {
|
|
3173
|
-
if (this.isEOF() || !
|
|
3174
|
-
return this.error(
|
|
3175
|
-
var
|
|
3176
|
-
return i !==
|
|
3187
|
+
if (this.isEOF() || !Ke(this.char()))
|
|
3188
|
+
return this.error(v.INVALID_TAG, y(a, this.clonePosition()));
|
|
3189
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
3190
|
+
return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3177
3191
|
val: {
|
|
3178
3192
|
type: C.tag,
|
|
3179
3193
|
value: i,
|
|
3180
3194
|
children: s,
|
|
3181
|
-
location:
|
|
3195
|
+
location: y(n, this.clonePosition())
|
|
3182
3196
|
},
|
|
3183
3197
|
err: null
|
|
3184
|
-
} : this.error(
|
|
3198
|
+
} : this.error(v.INVALID_TAG, y(a, this.clonePosition())));
|
|
3185
3199
|
} else
|
|
3186
|
-
return this.error(
|
|
3200
|
+
return this.error(v.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
3187
3201
|
} else
|
|
3188
|
-
return this.error(
|
|
3202
|
+
return this.error(v.INVALID_TAG, y(n, this.clonePosition()));
|
|
3189
3203
|
}, e.prototype.parseTagName = function() {
|
|
3190
3204
|
var t = this.offset();
|
|
3191
|
-
for (this.bump(); !this.isEOF() &&
|
|
3205
|
+
for (this.bump(); !this.isEOF() && vi(this.char()); )
|
|
3192
3206
|
this.bump();
|
|
3193
3207
|
return this.message.slice(t, this.offset());
|
|
3194
3208
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3210,14 +3224,14 @@ var pi = (
|
|
|
3210
3224
|
}
|
|
3211
3225
|
break;
|
|
3212
3226
|
}
|
|
3213
|
-
var
|
|
3227
|
+
var l = y(n, this.clonePosition());
|
|
3214
3228
|
return {
|
|
3215
|
-
val: { type: C.literal, value: i, location:
|
|
3229
|
+
val: { type: C.literal, value: i, location: l },
|
|
3216
3230
|
err: null
|
|
3217
3231
|
};
|
|
3218
3232
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3219
3233
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3220
|
-
!
|
|
3234
|
+
!gi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3221
3235
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3222
3236
|
if (this.isEOF() || this.char() !== 39)
|
|
3223
3237
|
return null;
|
|
@@ -3251,23 +3265,23 @@ var pi = (
|
|
|
3251
3265
|
r.push(n);
|
|
3252
3266
|
this.bump();
|
|
3253
3267
|
}
|
|
3254
|
-
return
|
|
3268
|
+
return qe.apply(void 0, r);
|
|
3255
3269
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3256
3270
|
if (this.isEOF())
|
|
3257
3271
|
return null;
|
|
3258
3272
|
var n = this.char();
|
|
3259
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3273
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qe(n));
|
|
3260
3274
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3261
3275
|
var n = this.clonePosition();
|
|
3262
3276
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3263
|
-
return this.error(
|
|
3277
|
+
return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3264
3278
|
if (this.char() === 125)
|
|
3265
|
-
return this.bump(), this.error(
|
|
3279
|
+
return this.bump(), this.error(v.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
3266
3280
|
var i = this.parseIdentifierIfPossible().value;
|
|
3267
3281
|
if (!i)
|
|
3268
|
-
return this.error(
|
|
3282
|
+
return this.error(v.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3269
3283
|
if (this.bumpSpace(), this.isEOF())
|
|
3270
|
-
return this.error(
|
|
3284
|
+
return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3271
3285
|
switch (this.char()) {
|
|
3272
3286
|
case 125:
|
|
3273
3287
|
return this.bump(), {
|
|
@@ -3275,66 +3289,66 @@ var pi = (
|
|
|
3275
3289
|
type: C.argument,
|
|
3276
3290
|
// value does not include the opening and closing braces.
|
|
3277
3291
|
value: i,
|
|
3278
|
-
location:
|
|
3292
|
+
location: y(n, this.clonePosition())
|
|
3279
3293
|
},
|
|
3280
3294
|
err: null
|
|
3281
3295
|
};
|
|
3282
3296
|
case 44:
|
|
3283
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3297
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3284
3298
|
default:
|
|
3285
|
-
return this.error(
|
|
3299
|
+
return this.error(v.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3286
3300
|
}
|
|
3287
3301
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3288
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3302
|
+
var t = this.clonePosition(), r = this.offset(), n = Je(this.message, r), i = r + n.length;
|
|
3289
3303
|
this.bumpTo(i);
|
|
3290
|
-
var o = this.clonePosition(), s =
|
|
3304
|
+
var o = this.clonePosition(), s = y(t, o);
|
|
3291
3305
|
return { value: n, location: s };
|
|
3292
3306
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3293
|
-
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
|
3307
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3294
3308
|
switch (a) {
|
|
3295
3309
|
case "":
|
|
3296
|
-
return this.error(
|
|
3310
|
+
return this.error(v.EXPECT_ARGUMENT_TYPE, y(s, l));
|
|
3297
3311
|
case "number":
|
|
3298
3312
|
case "date":
|
|
3299
3313
|
case "time": {
|
|
3300
3314
|
this.bumpSpace();
|
|
3301
|
-
var
|
|
3315
|
+
var u = null;
|
|
3302
3316
|
if (this.bumpIf(",")) {
|
|
3303
3317
|
this.bumpSpace();
|
|
3304
|
-
var h = this.clonePosition(),
|
|
3305
|
-
if (
|
|
3306
|
-
return
|
|
3307
|
-
var
|
|
3308
|
-
if (
|
|
3309
|
-
return this.error(
|
|
3310
|
-
var m =
|
|
3311
|
-
|
|
3318
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3319
|
+
if (c.err)
|
|
3320
|
+
return c;
|
|
3321
|
+
var f = mi(c.val);
|
|
3322
|
+
if (f.length === 0)
|
|
3323
|
+
return this.error(v.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3324
|
+
var m = y(h, this.clonePosition());
|
|
3325
|
+
u = { style: f, styleLocation: m };
|
|
3312
3326
|
}
|
|
3313
3327
|
var p = this.tryParseArgumentClose(i);
|
|
3314
3328
|
if (p.err)
|
|
3315
3329
|
return p;
|
|
3316
|
-
var b =
|
|
3317
|
-
if (
|
|
3318
|
-
var T =
|
|
3330
|
+
var b = y(i, this.clonePosition());
|
|
3331
|
+
if (u && Tt(u?.style, "::", 0)) {
|
|
3332
|
+
var T = pi(u.style.slice(2));
|
|
3319
3333
|
if (a === "number") {
|
|
3320
|
-
var
|
|
3321
|
-
return
|
|
3322
|
-
val: { type: C.number, value: n, location: b, style:
|
|
3334
|
+
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3335
|
+
return c.err ? c : {
|
|
3336
|
+
val: { type: C.number, value: n, location: b, style: c.val },
|
|
3323
3337
|
err: null
|
|
3324
3338
|
};
|
|
3325
3339
|
} else {
|
|
3326
3340
|
if (T.length === 0)
|
|
3327
|
-
return this.error(
|
|
3341
|
+
return this.error(v.EXPECT_DATE_TIME_SKELETON, b);
|
|
3328
3342
|
var L = T;
|
|
3329
|
-
this.locale && (L =
|
|
3330
|
-
var
|
|
3343
|
+
this.locale && (L = ti(T, this.locale));
|
|
3344
|
+
var f = {
|
|
3331
3345
|
type: ne.dateTime,
|
|
3332
3346
|
pattern: L,
|
|
3333
|
-
location:
|
|
3334
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3347
|
+
location: u.styleLocation,
|
|
3348
|
+
parsedOptions: this.shouldParseSkeletons ? Zn(L) : {}
|
|
3335
3349
|
}, P = a === "date" ? C.date : C.time;
|
|
3336
3350
|
return {
|
|
3337
|
-
val: { type: P, value: n, location: b, style:
|
|
3351
|
+
val: { type: P, value: n, location: b, style: f },
|
|
3338
3352
|
err: null
|
|
3339
3353
|
};
|
|
3340
3354
|
}
|
|
@@ -3344,7 +3358,7 @@ var pi = (
|
|
|
3344
3358
|
type: a === "number" ? C.number : a === "date" ? C.date : C.time,
|
|
3345
3359
|
value: n,
|
|
3346
3360
|
location: b,
|
|
3347
|
-
style: (o =
|
|
3361
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3348
3362
|
},
|
|
3349
3363
|
err: null
|
|
3350
3364
|
};
|
|
@@ -3354,30 +3368,30 @@ var pi = (
|
|
|
3354
3368
|
case "select": {
|
|
3355
3369
|
var A = this.clonePosition();
|
|
3356
3370
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3357
|
-
return this.error(
|
|
3371
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(A, _({}, A)));
|
|
3358
3372
|
this.bumpSpace();
|
|
3359
|
-
var
|
|
3360
|
-
if (a !== "select" &&
|
|
3373
|
+
var M = this.parseIdentifierIfPossible(), w = 0;
|
|
3374
|
+
if (a !== "select" && M.value === "offset") {
|
|
3361
3375
|
if (!this.bumpIf(":"))
|
|
3362
|
-
return this.error(
|
|
3376
|
+
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3363
3377
|
this.bumpSpace();
|
|
3364
|
-
var
|
|
3365
|
-
if (
|
|
3366
|
-
return
|
|
3367
|
-
this.bumpSpace(),
|
|
3378
|
+
var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3379
|
+
if (c.err)
|
|
3380
|
+
return c;
|
|
3381
|
+
this.bumpSpace(), M = this.parseIdentifierIfPossible(), w = c.val;
|
|
3368
3382
|
}
|
|
3369
|
-
var N = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3383
|
+
var N = this.tryParsePluralOrSelectOptions(t, a, r, M);
|
|
3370
3384
|
if (N.err)
|
|
3371
3385
|
return N;
|
|
3372
3386
|
var p = this.tryParseArgumentClose(i);
|
|
3373
3387
|
if (p.err)
|
|
3374
3388
|
return p;
|
|
3375
|
-
var g =
|
|
3389
|
+
var g = y(i, this.clonePosition());
|
|
3376
3390
|
return a === "select" ? {
|
|
3377
3391
|
val: {
|
|
3378
3392
|
type: C.select,
|
|
3379
3393
|
value: n,
|
|
3380
|
-
options:
|
|
3394
|
+
options: Ht(N.val),
|
|
3381
3395
|
location: g
|
|
3382
3396
|
},
|
|
3383
3397
|
err: null
|
|
@@ -3385,7 +3399,7 @@ var pi = (
|
|
|
3385
3399
|
val: {
|
|
3386
3400
|
type: C.plural,
|
|
3387
3401
|
value: n,
|
|
3388
|
-
options:
|
|
3402
|
+
options: Ht(N.val),
|
|
3389
3403
|
offset: w,
|
|
3390
3404
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3391
3405
|
location: g
|
|
@@ -3394,10 +3408,10 @@ var pi = (
|
|
|
3394
3408
|
};
|
|
3395
3409
|
}
|
|
3396
3410
|
default:
|
|
3397
|
-
return this.error(
|
|
3411
|
+
return this.error(v.INVALID_ARGUMENT_TYPE, y(s, l));
|
|
3398
3412
|
}
|
|
3399
3413
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3400
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3414
|
+
return this.isEOF() || this.char() !== 125 ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3401
3415
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3402
3416
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3403
3417
|
var n = this.char();
|
|
@@ -3406,7 +3420,7 @@ var pi = (
|
|
|
3406
3420
|
this.bump();
|
|
3407
3421
|
var i = this.clonePosition();
|
|
3408
3422
|
if (!this.bumpUntil("'"))
|
|
3409
|
-
return this.error(
|
|
3423
|
+
return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
3410
3424
|
this.bump();
|
|
3411
3425
|
break;
|
|
3412
3426
|
}
|
|
@@ -3436,37 +3450,37 @@ var pi = (
|
|
|
3436
3450
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3437
3451
|
var n = [];
|
|
3438
3452
|
try {
|
|
3439
|
-
n =
|
|
3453
|
+
n = Yn(t);
|
|
3440
3454
|
} catch {
|
|
3441
|
-
return this.error(
|
|
3455
|
+
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
3442
3456
|
}
|
|
3443
3457
|
return {
|
|
3444
3458
|
val: {
|
|
3445
3459
|
type: ne.number,
|
|
3446
3460
|
tokens: n,
|
|
3447
3461
|
location: r,
|
|
3448
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3462
|
+
parsedOptions: this.shouldParseSkeletons ? ei(n) : {}
|
|
3449
3463
|
},
|
|
3450
3464
|
err: null
|
|
3451
3465
|
};
|
|
3452
3466
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3453
|
-
for (var o, s = !1, a = [],
|
|
3454
|
-
if (
|
|
3455
|
-
var
|
|
3467
|
+
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3468
|
+
if (u.length === 0) {
|
|
3469
|
+
var c = this.clonePosition();
|
|
3456
3470
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3457
|
-
var
|
|
3458
|
-
if (
|
|
3459
|
-
return
|
|
3460
|
-
h =
|
|
3471
|
+
var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3472
|
+
if (f.err)
|
|
3473
|
+
return f;
|
|
3474
|
+
h = y(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3461
3475
|
} else
|
|
3462
3476
|
break;
|
|
3463
3477
|
}
|
|
3464
|
-
if (
|
|
3465
|
-
return this.error(r === "select" ?
|
|
3466
|
-
|
|
3478
|
+
if (l.has(u))
|
|
3479
|
+
return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3480
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3467
3481
|
var m = this.clonePosition();
|
|
3468
3482
|
if (!this.bumpIf("{"))
|
|
3469
|
-
return this.error(r === "select" ?
|
|
3483
|
+
return this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3470
3484
|
var p = this.parseMessage(t + 1, r, n);
|
|
3471
3485
|
if (p.err)
|
|
3472
3486
|
return p;
|
|
@@ -3474,14 +3488,14 @@ var pi = (
|
|
|
3474
3488
|
if (b.err)
|
|
3475
3489
|
return b;
|
|
3476
3490
|
a.push([
|
|
3477
|
-
|
|
3491
|
+
u,
|
|
3478
3492
|
{
|
|
3479
3493
|
value: p.val,
|
|
3480
|
-
location:
|
|
3494
|
+
location: y(m, this.clonePosition())
|
|
3481
3495
|
}
|
|
3482
|
-
]),
|
|
3496
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3483
3497
|
}
|
|
3484
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3498
|
+
return a.length === 0 ? this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(v.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3485
3499
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3486
3500
|
var n = 1, i = this.clonePosition();
|
|
3487
3501
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3492,8 +3506,8 @@ var pi = (
|
|
|
3492
3506
|
else
|
|
3493
3507
|
break;
|
|
3494
3508
|
}
|
|
3495
|
-
var
|
|
3496
|
-
return o ? (s *= n,
|
|
3509
|
+
var l = y(i, this.clonePosition());
|
|
3510
|
+
return o ? (s *= n, fi(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3497
3511
|
}, e.prototype.offset = function() {
|
|
3498
3512
|
return this.position.offset;
|
|
3499
3513
|
}, e.prototype.isEOF = function() {
|
|
@@ -3508,7 +3522,7 @@ var pi = (
|
|
|
3508
3522
|
var t = this.position.offset;
|
|
3509
3523
|
if (t >= this.message.length)
|
|
3510
3524
|
throw Error("out of bound");
|
|
3511
|
-
var r =
|
|
3525
|
+
var r = mr(this.message, t);
|
|
3512
3526
|
if (r === void 0)
|
|
3513
3527
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3514
3528
|
return r;
|
|
@@ -3527,7 +3541,7 @@ var pi = (
|
|
|
3527
3541
|
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);
|
|
3528
3542
|
}
|
|
3529
3543
|
}, e.prototype.bumpIf = function(t) {
|
|
3530
|
-
if (
|
|
3544
|
+
if (Tt(this.message, t, this.offset())) {
|
|
3531
3545
|
for (var r = 0; r < t.length; r++)
|
|
3532
3546
|
this.bump();
|
|
3533
3547
|
return !0;
|
|
@@ -3549,7 +3563,7 @@ var pi = (
|
|
|
3549
3563
|
break;
|
|
3550
3564
|
}
|
|
3551
3565
|
}, e.prototype.bumpSpace = function() {
|
|
3552
|
-
for (; !this.isEOF() &&
|
|
3566
|
+
for (; !this.isEOF() && gr(this.char()); )
|
|
3553
3567
|
this.bump();
|
|
3554
3568
|
}, e.prototype.peek = function() {
|
|
3555
3569
|
if (this.isEOF())
|
|
@@ -3559,38 +3573,38 @@ var pi = (
|
|
|
3559
3573
|
}, e;
|
|
3560
3574
|
}()
|
|
3561
3575
|
);
|
|
3562
|
-
function
|
|
3576
|
+
function Ke(e) {
|
|
3563
3577
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3564
3578
|
}
|
|
3565
|
-
function
|
|
3566
|
-
return
|
|
3579
|
+
function gi(e) {
|
|
3580
|
+
return Ke(e) || e === 47;
|
|
3567
3581
|
}
|
|
3568
|
-
function
|
|
3582
|
+
function vi(e) {
|
|
3569
3583
|
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;
|
|
3570
3584
|
}
|
|
3571
|
-
function
|
|
3585
|
+
function gr(e) {
|
|
3572
3586
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3573
3587
|
}
|
|
3574
|
-
function
|
|
3588
|
+
function yi(e) {
|
|
3575
3589
|
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;
|
|
3576
3590
|
}
|
|
3577
|
-
function
|
|
3591
|
+
function et(e) {
|
|
3578
3592
|
e.forEach(function(t) {
|
|
3579
|
-
if (delete t.location,
|
|
3593
|
+
if (delete t.location, ar(t) || lr(t))
|
|
3580
3594
|
for (var r in t.options)
|
|
3581
|
-
delete t.options[r].location,
|
|
3595
|
+
delete t.options[r].location, et(t.options[r].value);
|
|
3582
3596
|
else
|
|
3583
|
-
|
|
3597
|
+
ir(t) && hr(t.style) || (or(t) || sr(t)) && Qe(t.style) ? delete t.style.location : ur(t) && et(t.children);
|
|
3584
3598
|
});
|
|
3585
3599
|
}
|
|
3586
|
-
function
|
|
3600
|
+
function _i(e, t) {
|
|
3587
3601
|
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3588
|
-
var r = new
|
|
3602
|
+
var r = new bi(e, t).parse();
|
|
3589
3603
|
if (r.err) {
|
|
3590
|
-
var n = SyntaxError(
|
|
3604
|
+
var n = SyntaxError(v[r.err.kind]);
|
|
3591
3605
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3592
3606
|
}
|
|
3593
|
-
return t?.captureLocation ||
|
|
3607
|
+
return t?.captureLocation || et(r.val), r.val;
|
|
3594
3608
|
}
|
|
3595
3609
|
var ie;
|
|
3596
3610
|
(function(e) {
|
|
@@ -3608,7 +3622,7 @@ var Ae = (
|
|
|
3608
3622
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3609
3623
|
}, t;
|
|
3610
3624
|
}(Error)
|
|
3611
|
-
),
|
|
3625
|
+
), It = (
|
|
3612
3626
|
/** @class */
|
|
3613
3627
|
function(e) {
|
|
3614
3628
|
j(t, e);
|
|
@@ -3617,7 +3631,7 @@ var Ae = (
|
|
|
3617
3631
|
}
|
|
3618
3632
|
return t;
|
|
3619
3633
|
}(Ae)
|
|
3620
|
-
),
|
|
3634
|
+
), xi = (
|
|
3621
3635
|
/** @class */
|
|
3622
3636
|
function(e) {
|
|
3623
3637
|
j(t, e);
|
|
@@ -3626,7 +3640,7 @@ var Ae = (
|
|
|
3626
3640
|
}
|
|
3627
3641
|
return t;
|
|
3628
3642
|
}(Ae)
|
|
3629
|
-
),
|
|
3643
|
+
), Ei = (
|
|
3630
3644
|
/** @class */
|
|
3631
3645
|
function(e) {
|
|
3632
3646
|
j(t, e);
|
|
@@ -3635,128 +3649,128 @@ var Ae = (
|
|
|
3635
3649
|
}
|
|
3636
3650
|
return t;
|
|
3637
3651
|
}(Ae)
|
|
3638
|
-
),
|
|
3652
|
+
), O;
|
|
3639
3653
|
(function(e) {
|
|
3640
3654
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3641
|
-
})(
|
|
3642
|
-
function
|
|
3655
|
+
})(O || (O = {}));
|
|
3656
|
+
function Ci(e) {
|
|
3643
3657
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3644
3658
|
var n = t[t.length - 1];
|
|
3645
|
-
return !n || n.type !==
|
|
3659
|
+
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
|
3646
3660
|
}, []);
|
|
3647
3661
|
}
|
|
3648
|
-
function
|
|
3662
|
+
function wi(e) {
|
|
3649
3663
|
return typeof e == "function";
|
|
3650
3664
|
}
|
|
3651
3665
|
function _e(e, t, r, n, i, o, s) {
|
|
3652
|
-
if (e.length === 1 &&
|
|
3666
|
+
if (e.length === 1 && Et(e[0]))
|
|
3653
3667
|
return [
|
|
3654
3668
|
{
|
|
3655
|
-
type:
|
|
3669
|
+
type: O.literal,
|
|
3656
3670
|
value: e[0].value
|
|
3657
3671
|
}
|
|
3658
3672
|
];
|
|
3659
|
-
for (var a = [],
|
|
3660
|
-
var h = l
|
|
3661
|
-
if (
|
|
3673
|
+
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3674
|
+
var h = u[l];
|
|
3675
|
+
if (Et(h)) {
|
|
3662
3676
|
a.push({
|
|
3663
|
-
type:
|
|
3677
|
+
type: O.literal,
|
|
3664
3678
|
value: h.value
|
|
3665
3679
|
});
|
|
3666
3680
|
continue;
|
|
3667
3681
|
}
|
|
3668
|
-
if (
|
|
3682
|
+
if (Xn(h)) {
|
|
3669
3683
|
typeof o == "number" && a.push({
|
|
3670
|
-
type:
|
|
3684
|
+
type: O.literal,
|
|
3671
3685
|
value: r.getNumberFormat(t).format(o)
|
|
3672
3686
|
});
|
|
3673
3687
|
continue;
|
|
3674
3688
|
}
|
|
3675
|
-
var
|
|
3676
|
-
if (!(i &&
|
|
3677
|
-
throw new
|
|
3678
|
-
var
|
|
3679
|
-
if (
|
|
3680
|
-
(!
|
|
3681
|
-
type: typeof
|
|
3682
|
-
value:
|
|
3689
|
+
var c = h.value;
|
|
3690
|
+
if (!(i && c in i))
|
|
3691
|
+
throw new Ei(c, s);
|
|
3692
|
+
var f = i[c];
|
|
3693
|
+
if (Wn(h)) {
|
|
3694
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3695
|
+
type: typeof f == "string" ? O.literal : O.object,
|
|
3696
|
+
value: f
|
|
3683
3697
|
});
|
|
3684
3698
|
continue;
|
|
3685
3699
|
}
|
|
3686
|
-
if (
|
|
3687
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3700
|
+
if (or(h)) {
|
|
3701
|
+
var m = typeof h.style == "string" ? n.date[h.style] : Qe(h.style) ? h.style.parsedOptions : void 0;
|
|
3688
3702
|
a.push({
|
|
3689
|
-
type:
|
|
3690
|
-
value: r.getDateTimeFormat(t, m).format(
|
|
3703
|
+
type: O.literal,
|
|
3704
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3691
3705
|
});
|
|
3692
3706
|
continue;
|
|
3693
3707
|
}
|
|
3694
|
-
if (
|
|
3695
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3708
|
+
if (sr(h)) {
|
|
3709
|
+
var m = typeof h.style == "string" ? n.time[h.style] : Qe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3696
3710
|
a.push({
|
|
3697
|
-
type:
|
|
3698
|
-
value: r.getDateTimeFormat(t, m).format(
|
|
3711
|
+
type: O.literal,
|
|
3712
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3699
3713
|
});
|
|
3700
3714
|
continue;
|
|
3701
3715
|
}
|
|
3702
|
-
if (
|
|
3703
|
-
var m = typeof h.style == "string" ? n.number[h.style] :
|
|
3704
|
-
m && m.scale && (
|
|
3705
|
-
type:
|
|
3706
|
-
value: r.getNumberFormat(t, m).format(
|
|
3716
|
+
if (ir(h)) {
|
|
3717
|
+
var m = typeof h.style == "string" ? n.number[h.style] : hr(h.style) ? h.style.parsedOptions : void 0;
|
|
3718
|
+
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3719
|
+
type: O.literal,
|
|
3720
|
+
value: r.getNumberFormat(t, m).format(f)
|
|
3707
3721
|
});
|
|
3708
3722
|
continue;
|
|
3709
3723
|
}
|
|
3710
|
-
if (
|
|
3724
|
+
if (ur(h)) {
|
|
3711
3725
|
var p = h.children, b = h.value, T = i[b];
|
|
3712
|
-
if (!
|
|
3713
|
-
throw new
|
|
3726
|
+
if (!wi(T))
|
|
3727
|
+
throw new xi(b, "function", s);
|
|
3714
3728
|
var L = _e(p, t, r, n, i, o), P = T(L.map(function(w) {
|
|
3715
3729
|
return w.value;
|
|
3716
3730
|
}));
|
|
3717
3731
|
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(w) {
|
|
3718
3732
|
return {
|
|
3719
|
-
type: typeof w == "string" ?
|
|
3733
|
+
type: typeof w == "string" ? O.literal : O.object,
|
|
3720
3734
|
value: w
|
|
3721
3735
|
};
|
|
3722
3736
|
}));
|
|
3723
3737
|
}
|
|
3724
|
-
if (
|
|
3725
|
-
var A = h.options[
|
|
3738
|
+
if (ar(h)) {
|
|
3739
|
+
var A = h.options[f] || h.options.other;
|
|
3726
3740
|
if (!A)
|
|
3727
|
-
throw new
|
|
3741
|
+
throw new It(h.value, f, Object.keys(h.options), s);
|
|
3728
3742
|
a.push.apply(a, _e(A.value, t, r, n, i));
|
|
3729
3743
|
continue;
|
|
3730
3744
|
}
|
|
3731
|
-
if (
|
|
3732
|
-
var A = h.options["=".concat(
|
|
3745
|
+
if (lr(h)) {
|
|
3746
|
+
var A = h.options["=".concat(f)];
|
|
3733
3747
|
if (!A) {
|
|
3734
3748
|
if (!Intl.PluralRules)
|
|
3735
3749
|
throw new Ae(`Intl.PluralRules is not available in this environment.
|
|
3736
3750
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3737
3751
|
`, ie.MISSING_INTL_API, s);
|
|
3738
|
-
var
|
|
3739
|
-
A = h.options[
|
|
3752
|
+
var M = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3753
|
+
A = h.options[M] || h.options.other;
|
|
3740
3754
|
}
|
|
3741
3755
|
if (!A)
|
|
3742
|
-
throw new
|
|
3743
|
-
a.push.apply(a, _e(A.value, t, r, n, i,
|
|
3756
|
+
throw new It(h.value, f, Object.keys(h.options), s);
|
|
3757
|
+
a.push.apply(a, _e(A.value, t, r, n, i, f - (h.offset || 0)));
|
|
3744
3758
|
continue;
|
|
3745
3759
|
}
|
|
3746
3760
|
}
|
|
3747
|
-
return
|
|
3761
|
+
return Ci(a);
|
|
3748
3762
|
}
|
|
3749
|
-
function
|
|
3763
|
+
function Si(e, t) {
|
|
3750
3764
|
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3751
3765
|
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3752
3766
|
}, {})) : e;
|
|
3753
3767
|
}
|
|
3754
|
-
function
|
|
3768
|
+
function Ti(e, t) {
|
|
3755
3769
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3756
|
-
return r[n] =
|
|
3770
|
+
return r[n] = Si(e[n], t[n]), r;
|
|
3757
3771
|
}, _({}, e)) : e;
|
|
3758
3772
|
}
|
|
3759
|
-
function
|
|
3773
|
+
function ke(e) {
|
|
3760
3774
|
return {
|
|
3761
3775
|
create: function() {
|
|
3762
3776
|
return {
|
|
@@ -3770,39 +3784,39 @@ function $e(e) {
|
|
|
3770
3784
|
}
|
|
3771
3785
|
};
|
|
3772
3786
|
}
|
|
3773
|
-
function
|
|
3787
|
+
function Hi(e) {
|
|
3774
3788
|
return e === void 0 && (e = {
|
|
3775
3789
|
number: {},
|
|
3776
3790
|
dateTime: {},
|
|
3777
3791
|
pluralRules: {}
|
|
3778
3792
|
}), {
|
|
3779
|
-
getNumberFormat:
|
|
3793
|
+
getNumberFormat: Ue(function() {
|
|
3780
3794
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3781
3795
|
r[n] = arguments[n];
|
|
3782
3796
|
return new ((t = Intl.NumberFormat).bind.apply(t, te([void 0], r, !1)))();
|
|
3783
3797
|
}, {
|
|
3784
|
-
cache:
|
|
3785
|
-
strategy:
|
|
3798
|
+
cache: ke(e.number),
|
|
3799
|
+
strategy: De.variadic
|
|
3786
3800
|
}),
|
|
3787
|
-
getDateTimeFormat:
|
|
3801
|
+
getDateTimeFormat: Ue(function() {
|
|
3788
3802
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3789
3803
|
r[n] = arguments[n];
|
|
3790
3804
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, te([void 0], r, !1)))();
|
|
3791
3805
|
}, {
|
|
3792
|
-
cache:
|
|
3793
|
-
strategy:
|
|
3806
|
+
cache: ke(e.dateTime),
|
|
3807
|
+
strategy: De.variadic
|
|
3794
3808
|
}),
|
|
3795
|
-
getPluralRules:
|
|
3809
|
+
getPluralRules: Ue(function() {
|
|
3796
3810
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3797
3811
|
r[n] = arguments[n];
|
|
3798
3812
|
return new ((t = Intl.PluralRules).bind.apply(t, te([void 0], r, !1)))();
|
|
3799
3813
|
}, {
|
|
3800
|
-
cache:
|
|
3801
|
-
strategy:
|
|
3814
|
+
cache: ke(e.pluralRules),
|
|
3815
|
+
strategy: De.variadic
|
|
3802
3816
|
})
|
|
3803
3817
|
};
|
|
3804
3818
|
}
|
|
3805
|
-
var
|
|
3819
|
+
var Ai = (
|
|
3806
3820
|
/** @class */
|
|
3807
3821
|
function() {
|
|
3808
3822
|
function e(t, r, n, i) {
|
|
@@ -3812,20 +3826,20 @@ var Ti = (
|
|
|
3812
3826
|
number: {},
|
|
3813
3827
|
dateTime: {},
|
|
3814
3828
|
pluralRules: {}
|
|
3815
|
-
}, this.format = function(
|
|
3816
|
-
var
|
|
3817
|
-
if (
|
|
3818
|
-
return
|
|
3819
|
-
var h =
|
|
3820
|
-
return !
|
|
3829
|
+
}, this.format = function(l) {
|
|
3830
|
+
var u = o.formatToParts(l);
|
|
3831
|
+
if (u.length === 1)
|
|
3832
|
+
return u[0].value;
|
|
3833
|
+
var h = u.reduce(function(c, f) {
|
|
3834
|
+
return !c.length || f.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3821
3835
|
}, []);
|
|
3822
3836
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3823
|
-
}, this.formatToParts = function(
|
|
3824
|
-
return _e(o.ast, o.locales, o.formatters, o.formats,
|
|
3837
|
+
}, this.formatToParts = function(l) {
|
|
3838
|
+
return _e(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3825
3839
|
}, this.resolvedOptions = function() {
|
|
3826
|
-
var
|
|
3840
|
+
var l;
|
|
3827
3841
|
return {
|
|
3828
|
-
locale: ((
|
|
3842
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3829
3843
|
};
|
|
3830
3844
|
}, this.getAst = function() {
|
|
3831
3845
|
return o.ast;
|
|
@@ -3834,13 +3848,13 @@ var Ti = (
|
|
|
3834
3848
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3835
3849
|
var s = i || {};
|
|
3836
3850
|
s.formatters;
|
|
3837
|
-
var a =
|
|
3851
|
+
var a = an(s, ["formatters"]);
|
|
3838
3852
|
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
|
3839
3853
|
} else
|
|
3840
3854
|
this.ast = t;
|
|
3841
3855
|
if (!Array.isArray(this.ast))
|
|
3842
3856
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3843
|
-
this.formats =
|
|
3857
|
+
this.formats = Ti(e.formats, n), this.formatters = i && i.formatters || Hi(this.formatterCache);
|
|
3844
3858
|
}
|
|
3845
3859
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3846
3860
|
get: function() {
|
|
@@ -3853,7 +3867,7 @@ var Ti = (
|
|
|
3853
3867
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3854
3868
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3855
3869
|
}
|
|
3856
|
-
}, e.__parse =
|
|
3870
|
+
}, e.__parse = _i, e.formats = {
|
|
3857
3871
|
number: {
|
|
3858
3872
|
integer: {
|
|
3859
3873
|
maximumFractionDigits: 0
|
|
@@ -3914,7 +3928,7 @@ var Ti = (
|
|
|
3914
3928
|
}, e;
|
|
3915
3929
|
}()
|
|
3916
3930
|
);
|
|
3917
|
-
function
|
|
3931
|
+
function Ii(e, t) {
|
|
3918
3932
|
if (t == null)
|
|
3919
3933
|
return;
|
|
3920
3934
|
if (t in e)
|
|
@@ -3935,92 +3949,92 @@ function Hi(e, t) {
|
|
|
3935
3949
|
n = void 0;
|
|
3936
3950
|
return n;
|
|
3937
3951
|
}
|
|
3938
|
-
const V = {},
|
|
3952
|
+
const V = {}, Bi = (e, t, r) => r && (t in V || (V[t] = {}), e in V[t] || (V[t][e] = r), r), vr = (e, t) => {
|
|
3939
3953
|
if (t == null)
|
|
3940
3954
|
return;
|
|
3941
3955
|
if (t in V && e in V[t])
|
|
3942
3956
|
return V[t][e];
|
|
3943
3957
|
const r = Ie(t);
|
|
3944
3958
|
for (let n = 0; n < r.length; n++) {
|
|
3945
|
-
const i = r[n], o =
|
|
3959
|
+
const i = r[n], o = Mi(i, e);
|
|
3946
3960
|
if (o)
|
|
3947
|
-
return
|
|
3961
|
+
return Bi(e, t, o);
|
|
3948
3962
|
}
|
|
3949
3963
|
};
|
|
3950
|
-
let
|
|
3964
|
+
let at;
|
|
3951
3965
|
const ae = He({});
|
|
3952
|
-
function
|
|
3953
|
-
return
|
|
3966
|
+
function Pi(e) {
|
|
3967
|
+
return at[e] || null;
|
|
3954
3968
|
}
|
|
3955
|
-
function
|
|
3956
|
-
return e in
|
|
3969
|
+
function yr(e) {
|
|
3970
|
+
return e in at;
|
|
3957
3971
|
}
|
|
3958
|
-
function
|
|
3959
|
-
if (!
|
|
3972
|
+
function Mi(e, t) {
|
|
3973
|
+
if (!yr(e))
|
|
3960
3974
|
return null;
|
|
3961
|
-
const r =
|
|
3962
|
-
return
|
|
3975
|
+
const r = Pi(e);
|
|
3976
|
+
return Ii(r, t);
|
|
3963
3977
|
}
|
|
3964
|
-
function
|
|
3978
|
+
function Oi(e) {
|
|
3965
3979
|
if (e == null)
|
|
3966
3980
|
return;
|
|
3967
3981
|
const t = Ie(e);
|
|
3968
3982
|
for (let r = 0; r < t.length; r++) {
|
|
3969
3983
|
const n = t[r];
|
|
3970
|
-
if (
|
|
3984
|
+
if (yr(n))
|
|
3971
3985
|
return n;
|
|
3972
3986
|
}
|
|
3973
3987
|
}
|
|
3974
|
-
function
|
|
3975
|
-
delete V[e], ae.update((r) => (r[e] =
|
|
3988
|
+
function _r(e, ...t) {
|
|
3989
|
+
delete V[e], ae.update((r) => (r[e] = Dn.all([r[e] || {}, ...t]), r));
|
|
3976
3990
|
}
|
|
3977
3991
|
se(
|
|
3978
3992
|
[ae],
|
|
3979
3993
|
([e]) => Object.keys(e)
|
|
3980
3994
|
);
|
|
3981
|
-
ae.subscribe((e) =>
|
|
3995
|
+
ae.subscribe((e) => at = e);
|
|
3982
3996
|
const xe = {};
|
|
3983
|
-
function
|
|
3997
|
+
function Li(e, t) {
|
|
3984
3998
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
3985
3999
|
}
|
|
3986
|
-
function
|
|
4000
|
+
function xr(e) {
|
|
3987
4001
|
return xe[e];
|
|
3988
4002
|
}
|
|
3989
|
-
function
|
|
4003
|
+
function Ni(e) {
|
|
3990
4004
|
return Ie(e).map((t) => {
|
|
3991
|
-
const r =
|
|
4005
|
+
const r = xr(t);
|
|
3992
4006
|
return [t, r ? [...r] : []];
|
|
3993
4007
|
}).filter(([, t]) => t.length > 0);
|
|
3994
4008
|
}
|
|
3995
|
-
function
|
|
4009
|
+
function tt(e) {
|
|
3996
4010
|
return e == null ? !1 : Ie(e).some(
|
|
3997
4011
|
(t) => {
|
|
3998
4012
|
var r;
|
|
3999
|
-
return (r =
|
|
4013
|
+
return (r = xr(t)) == null ? void 0 : r.size;
|
|
4000
4014
|
}
|
|
4001
4015
|
);
|
|
4002
4016
|
}
|
|
4003
|
-
function
|
|
4017
|
+
function Ri(e, t) {
|
|
4004
4018
|
return Promise.all(
|
|
4005
|
-
t.map((n) => (
|
|
4006
|
-
).then((n) =>
|
|
4007
|
-
}
|
|
4008
|
-
const
|
|
4009
|
-
function
|
|
4010
|
-
if (!
|
|
4011
|
-
return e in
|
|
4012
|
-
const t =
|
|
4013
|
-
return
|
|
4019
|
+
t.map((n) => (Li(e, n), n().then((i) => i.default || i)))
|
|
4020
|
+
).then((n) => _r(e, ...n));
|
|
4021
|
+
}
|
|
4022
|
+
const ue = {};
|
|
4023
|
+
function Er(e) {
|
|
4024
|
+
if (!tt(e))
|
|
4025
|
+
return e in ue ? ue[e] : Promise.resolve();
|
|
4026
|
+
const t = Ni(e);
|
|
4027
|
+
return ue[e] = Promise.all(
|
|
4014
4028
|
t.map(
|
|
4015
|
-
([r, n]) =>
|
|
4029
|
+
([r, n]) => Ri(r, n)
|
|
4016
4030
|
)
|
|
4017
4031
|
).then(() => {
|
|
4018
|
-
if (
|
|
4019
|
-
return
|
|
4020
|
-
delete
|
|
4021
|
-
}),
|
|
4032
|
+
if (tt(e))
|
|
4033
|
+
return Er(e);
|
|
4034
|
+
delete ue[e];
|
|
4035
|
+
}), ue[e];
|
|
4022
4036
|
}
|
|
4023
|
-
const
|
|
4037
|
+
const Ui = {
|
|
4024
4038
|
number: {
|
|
4025
4039
|
scientific: { notation: "scientific" },
|
|
4026
4040
|
engineering: { notation: "engineering" },
|
|
@@ -4049,57 +4063,57 @@ const Ni = {
|
|
|
4049
4063
|
timeZoneName: "short"
|
|
4050
4064
|
}
|
|
4051
4065
|
}
|
|
4052
|
-
},
|
|
4066
|
+
}, Di = {
|
|
4053
4067
|
fallbackLocale: null,
|
|
4054
4068
|
loadingDelay: 200,
|
|
4055
|
-
formats:
|
|
4069
|
+
formats: Ui,
|
|
4056
4070
|
warnOnMissingMessages: !0,
|
|
4057
4071
|
handleMissingMessage: void 0,
|
|
4058
4072
|
ignoreTag: !0
|
|
4059
|
-
},
|
|
4073
|
+
}, $i = Di;
|
|
4060
4074
|
function oe() {
|
|
4061
|
-
return
|
|
4062
|
-
}
|
|
4063
|
-
const
|
|
4064
|
-
var
|
|
4065
|
-
for (var r in t)
|
|
4066
|
-
|
|
4067
|
-
if (
|
|
4068
|
-
for (var r of
|
|
4069
|
-
|
|
4075
|
+
return $i;
|
|
4076
|
+
}
|
|
4077
|
+
const Ge = He(!1);
|
|
4078
|
+
var ki = Object.defineProperty, Gi = Object.defineProperties, Fi = Object.getOwnPropertyDescriptors, Bt = Object.getOwnPropertySymbols, ji = Object.prototype.hasOwnProperty, Vi = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Wi = (e, t) => {
|
|
4079
|
+
for (var r in t || (t = {}))
|
|
4080
|
+
ji.call(t, r) && Pt(e, r, t[r]);
|
|
4081
|
+
if (Bt)
|
|
4082
|
+
for (var r of Bt(t))
|
|
4083
|
+
Vi.call(t, r) && Pt(e, r, t[r]);
|
|
4070
4084
|
return e;
|
|
4071
|
-
},
|
|
4072
|
-
let
|
|
4085
|
+
}, Xi = (e, t) => Gi(e, Fi(t));
|
|
4086
|
+
let rt;
|
|
4073
4087
|
const Ce = He(null);
|
|
4074
|
-
function
|
|
4088
|
+
function Mt(e) {
|
|
4075
4089
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4076
4090
|
}
|
|
4077
4091
|
function Ie(e, t = oe().fallbackLocale) {
|
|
4078
|
-
const r =
|
|
4079
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4092
|
+
const r = Mt(e);
|
|
4093
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Mt(t)])] : r;
|
|
4080
4094
|
}
|
|
4081
4095
|
function z() {
|
|
4082
|
-
return
|
|
4096
|
+
return rt ?? void 0;
|
|
4083
4097
|
}
|
|
4084
4098
|
Ce.subscribe((e) => {
|
|
4085
|
-
|
|
4099
|
+
rt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4086
4100
|
});
|
|
4087
|
-
const
|
|
4088
|
-
if (e &&
|
|
4101
|
+
const zi = (e) => {
|
|
4102
|
+
if (e && Oi(e) && tt(e)) {
|
|
4089
4103
|
const { loadingDelay: t } = oe();
|
|
4090
4104
|
let r;
|
|
4091
4105
|
return typeof window < "u" && z() != null && t ? r = window.setTimeout(
|
|
4092
|
-
() =>
|
|
4106
|
+
() => Ge.set(!0),
|
|
4093
4107
|
t
|
|
4094
|
-
) :
|
|
4108
|
+
) : Ge.set(!0), Er(e).then(() => {
|
|
4095
4109
|
Ce.set(e);
|
|
4096
4110
|
}).finally(() => {
|
|
4097
|
-
clearTimeout(r),
|
|
4111
|
+
clearTimeout(r), Ge.set(!1);
|
|
4098
4112
|
});
|
|
4099
4113
|
}
|
|
4100
4114
|
return Ce.set(e);
|
|
4101
|
-
}, W =
|
|
4102
|
-
set:
|
|
4115
|
+
}, W = Xi(Wi({}, Ce), {
|
|
4116
|
+
set: zi
|
|
4103
4117
|
}), Be = (e) => {
|
|
4104
4118
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4105
4119
|
return (n) => {
|
|
@@ -4107,20 +4121,20 @@ const Wi = (e) => {
|
|
|
4107
4121
|
return i in t ? t[i] : t[i] = e(n);
|
|
4108
4122
|
};
|
|
4109
4123
|
};
|
|
4110
|
-
var
|
|
4124
|
+
var Zi = Object.defineProperty, we = Object.getOwnPropertySymbols, Cr = Object.prototype.hasOwnProperty, wr = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
|
|
4111
4125
|
for (var r in t || (t = {}))
|
|
4112
|
-
|
|
4126
|
+
Cr.call(t, r) && Ot(e, r, t[r]);
|
|
4113
4127
|
if (we)
|
|
4114
4128
|
for (var r of we(t))
|
|
4115
|
-
|
|
4129
|
+
wr.call(t, r) && Ot(e, r, t[r]);
|
|
4116
4130
|
return e;
|
|
4117
|
-
},
|
|
4131
|
+
}, le = (e, t) => {
|
|
4118
4132
|
var r = {};
|
|
4119
4133
|
for (var n in e)
|
|
4120
|
-
|
|
4134
|
+
Cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4121
4135
|
if (e != null && we)
|
|
4122
4136
|
for (var n of we(e))
|
|
4123
|
-
t.indexOf(n) < 0 &&
|
|
4137
|
+
t.indexOf(n) < 0 && wr.call(e, n) && (r[n] = e[n]);
|
|
4124
4138
|
return r;
|
|
4125
4139
|
};
|
|
4126
4140
|
const de = (e, t) => {
|
|
@@ -4128,113 +4142,113 @@ const de = (e, t) => {
|
|
|
4128
4142
|
if (e in r && t in r[e])
|
|
4129
4143
|
return r[e][t];
|
|
4130
4144
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4131
|
-
},
|
|
4145
|
+
}, Qi = Be(
|
|
4132
4146
|
(e) => {
|
|
4133
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4147
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4134
4148
|
if (r == null)
|
|
4135
4149
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4136
4150
|
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
4137
4151
|
}
|
|
4138
|
-
),
|
|
4152
|
+
), Yi = Be(
|
|
4139
4153
|
(e) => {
|
|
4140
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4154
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4141
4155
|
if (r == null)
|
|
4142
4156
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4143
4157
|
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4144
4158
|
}
|
|
4145
|
-
),
|
|
4159
|
+
), qi = Be(
|
|
4146
4160
|
(e) => {
|
|
4147
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4161
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4148
4162
|
if (r == null)
|
|
4149
4163
|
throw new Error(
|
|
4150
4164
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4151
4165
|
);
|
|
4152
4166
|
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4153
4167
|
}
|
|
4154
|
-
),
|
|
4168
|
+
), Ji = (e = {}) => {
|
|
4155
4169
|
var t = e, {
|
|
4156
4170
|
locale: r = z()
|
|
4157
|
-
} = t, n =
|
|
4171
|
+
} = t, n = le(t, [
|
|
4158
4172
|
"locale"
|
|
4159
4173
|
]);
|
|
4160
|
-
return
|
|
4161
|
-
},
|
|
4174
|
+
return Qi(lt({ locale: r }, n));
|
|
4175
|
+
}, Ki = (e = {}) => {
|
|
4162
4176
|
var t = e, {
|
|
4163
4177
|
locale: r = z()
|
|
4164
|
-
} = t, n =
|
|
4178
|
+
} = t, n = le(t, [
|
|
4165
4179
|
"locale"
|
|
4166
4180
|
]);
|
|
4167
|
-
return
|
|
4168
|
-
},
|
|
4181
|
+
return Yi(lt({ locale: r }, n));
|
|
4182
|
+
}, eo = (e = {}) => {
|
|
4169
4183
|
var t = e, {
|
|
4170
4184
|
locale: r = z()
|
|
4171
|
-
} = t, n =
|
|
4185
|
+
} = t, n = le(t, [
|
|
4172
4186
|
"locale"
|
|
4173
4187
|
]);
|
|
4174
|
-
return
|
|
4175
|
-
},
|
|
4188
|
+
return qi(lt({ locale: r }, n));
|
|
4189
|
+
}, to = Be(
|
|
4176
4190
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4177
|
-
(e, t = z()) => new
|
|
4191
|
+
(e, t = z()) => new Ai(e, t, oe().formats, {
|
|
4178
4192
|
ignoreTag: oe().ignoreTag
|
|
4179
4193
|
})
|
|
4180
|
-
),
|
|
4194
|
+
), ro = (e, t = {}) => {
|
|
4181
4195
|
var r, n, i, o;
|
|
4182
4196
|
let s = t;
|
|
4183
4197
|
typeof e == "object" && (s = e, e = s.id);
|
|
4184
4198
|
const {
|
|
4185
4199
|
values: a,
|
|
4186
|
-
locale:
|
|
4187
|
-
default:
|
|
4200
|
+
locale: l = z(),
|
|
4201
|
+
default: u
|
|
4188
4202
|
} = s;
|
|
4189
|
-
if (
|
|
4203
|
+
if (l == null)
|
|
4190
4204
|
throw new Error(
|
|
4191
4205
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4192
4206
|
);
|
|
4193
|
-
let h =
|
|
4207
|
+
let h = vr(e, l);
|
|
4194
4208
|
if (!h)
|
|
4195
|
-
h = (o = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale:
|
|
4209
|
+
h = (o = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4196
4210
|
else if (typeof h != "string")
|
|
4197
4211
|
return console.warn(
|
|
4198
4212
|
`[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.`
|
|
4199
4213
|
), h;
|
|
4200
4214
|
if (!a)
|
|
4201
4215
|
return h;
|
|
4202
|
-
let
|
|
4216
|
+
let c = h;
|
|
4203
4217
|
try {
|
|
4204
|
-
|
|
4205
|
-
} catch (
|
|
4206
|
-
|
|
4218
|
+
c = to(h, l).format(a);
|
|
4219
|
+
} catch (f) {
|
|
4220
|
+
f instanceof Error && console.warn(
|
|
4207
4221
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4208
|
-
|
|
4222
|
+
f.message
|
|
4209
4223
|
);
|
|
4210
4224
|
}
|
|
4211
|
-
return
|
|
4212
|
-
},
|
|
4213
|
-
se([W, ae], () =>
|
|
4214
|
-
se([W], () => to);
|
|
4215
|
-
se([W], () => ro);
|
|
4225
|
+
return c;
|
|
4226
|
+
}, no = (e, t) => eo(t).format(e), io = (e, t) => Ki(t).format(e), oo = (e, t) => Ji(t).format(e), so = (e, t = z()) => vr(e, t);
|
|
4227
|
+
se([W, ae], () => ro);
|
|
4216
4228
|
se([W], () => no);
|
|
4217
|
-
se([W
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4229
|
+
se([W], () => io);
|
|
4230
|
+
se([W], () => oo);
|
|
4231
|
+
se([W, ae], () => so);
|
|
4232
|
+
window.emWidgets = { topic: xn };
|
|
4233
|
+
const Lt = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4234
|
+
function ao({ withLocale: e, translations: t }) {
|
|
4221
4235
|
W.subscribe((r) => {
|
|
4222
4236
|
r == null && (ae.set(t), W.set(e));
|
|
4223
4237
|
});
|
|
4224
4238
|
}
|
|
4225
|
-
function
|
|
4226
|
-
|
|
4239
|
+
function lo(e, t) {
|
|
4240
|
+
_r(e, t);
|
|
4227
4241
|
}
|
|
4228
|
-
function
|
|
4242
|
+
function uo(e) {
|
|
4229
4243
|
W.set(e);
|
|
4230
4244
|
}
|
|
4231
|
-
function
|
|
4245
|
+
function ho(e, t) {
|
|
4232
4246
|
if (e) {
|
|
4233
4247
|
const r = document.createElement("style");
|
|
4234
4248
|
r.innerHTML = t, e.appendChild(r);
|
|
4235
4249
|
}
|
|
4236
4250
|
}
|
|
4237
|
-
function
|
|
4251
|
+
function co(e, t) {
|
|
4238
4252
|
const r = new URL(t);
|
|
4239
4253
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4240
4254
|
const i = document.createElement("style");
|
|
@@ -4243,7 +4257,7 @@ function lo(e, t) {
|
|
|
4243
4257
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4244
4258
|
});
|
|
4245
4259
|
}
|
|
4246
|
-
function
|
|
4260
|
+
function fo(e, t, r) {
|
|
4247
4261
|
if (window.emMessageBus) {
|
|
4248
4262
|
const n = document.createElement("style");
|
|
4249
4263
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4251,25 +4265,25 @@ function ho(e, t, r) {
|
|
|
4251
4265
|
});
|
|
4252
4266
|
}
|
|
4253
4267
|
}
|
|
4254
|
-
function
|
|
4255
|
-
|
|
4268
|
+
function po(e) {
|
|
4269
|
+
$r(e, "svelte-14514rm", '.CasinoVendorsLoading{height:52px}p{color:var(--emw--categories-typography, var(--emw--color-white) #ffffff);text-align:center}.CasinoVendorsContainer{background:transparent;border-radius:var(--emw--border-radius-medium, 10px)}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{min-height:72px;max-height:75px;background:var(--emw--color-primary, #194127);border-radius:var(--emw--border-radius-medium, 10px);max-width:1300px;margin:0 auto}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emw--categories-typography, var(--emw--color-white, #ffffff));margin:0 auto;max-width:1300px;min-height:72px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer .CarouselItems{overflow-x:auto;overflow-y:hidden;scroll-snap-align:center}.CarouselContainer ul{align-items:center;list-style:none;padding:0;margin:0}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{align-items:center;font-size:var(--emw--font-size-medium, 15px);font-weight:500;line-height:34px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal;position:relative}.CarouselContainer ul li>a{position:relative;border-bottom:2px solid transparent}.CarouselContainer ul li.SecondaryMenu button,.CarouselContainer ul li.SecondaryMenu .ActiveImg{border-bottom:2px solid transparent;position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{cursor:pointer}.CarouselContainer ul li.SecondaryMenu:hover button,.CarouselContainer ul li.SecondaryMenu:hover .ActiveImg,.CarouselContainer ul li.SecondaryMenu.active button,.CarouselContainer ul li.SecondaryMenu.active .ActiveImg,.CarouselContainer ul li.SecondaryMenu:focus button,.CarouselContainer ul li.SecondaryMenu:focus .ActiveImg,.CarouselContainer ul li.SecondaryMenu:focus-within button,.CarouselContainer ul li.SecondaryMenu:focus-within .ActiveImg{border-bottom:2px solid var(--emw--color-green, #23b04e);position:relative}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:22px;stroke:var(--emw--categories-arrows, var(--emw--color-white, #ffffff))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center;height:100%}.CarouselContainer .CarouselItems li{text-align:left;padding:18px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems li svg,.CarouselContainer .CarouselItems li img{height:100%;margin-right:5px;position:relative;top:5px;max-height:25px;line-height:25px;font-size:var(--emw--font-size-2x-small, 11px);overflow:auto}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emw--categories-typography, var(--emw--color-white, #ffffff));text-decoration:none;white-space:nowrap;position:relative;padding-bottom:5px}.CarouselContainer .CarouselItems span{position:absolute;bottom:15px;right:-15px;background:var(--emw--pam-color-primary, var(--emw--color-primary, #23b04e));border-radius:50%;padding:3px;min-width:20px;max-width:30px;height:20px;text-align:center;display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-2x-small, 11px)}.CarouselContainer .CarouselItems .categoryImgButtonCount{top:15px;right:8px}.CarouselContainer .CarouselItems a{display:block;color:var(--emw--categories-typography, var(--emw--color-white, #ffffff));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emw--categories-contrast, var(--emw--color-background, #07072a))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:-webkit-linear-gradient(to left, var(--emw--categories-color-secondary, #194127), var(--emw--categories-color-primary, #003d5d));background:linear-gradient(to left, var(--emw--categories-color-secondary, #194127), var(--emw--categories-color-primary, #003d5d))}.CarouselContainer .CarouselItems .TouchOnly{display:none}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emw--categories-contrast, var(--emw--color-background, #07072a));color:var(--emw--categories-typography, var(--emw--color-white, #ffffff))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emw--color-white, #ffffff)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emw--color-white, #ffffff);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #ffffff)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #ffffff)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #ffffff)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #ffffff)}.CategoryIconImg{height:20px;margin:0 auto;display:block}.CarouselWrapperMobile{margin:0 10px;border-radius:10px;max-height:75px}.CarouselWrapperMobile .MobileCategoryButton{margin-top:5px}.CarouselWrapperMobile .CarouselLeftArrow,.CarouselWrapperMobile .CarouselRightArrow{display:flex;max-height:75px}.CarouselWrapperMobile .CarouselLeftArrow svg,.CarouselWrapperMobile .CarouselRightArrow svg{max-width:15px}.CarouselWrapperMobile .CarouselItems li{display:inline-flex;flex-direction:column;justify-content:center;height:inherit;gap:5px;padding:15px 25px}.CarouselWrapperMobile .CarouselItems li svg{position:unset;top:unset}.CarouselWrapperMobile .CategoryIconContainer{position:relative;height:25px}.CarouselWrapperMobile .CategoryIconContainer span{top:-5px;right:-10px}.CarouselWrapperMobile .ImageContainer{display:block;height:25px}.CarouselWrapperMobile .CarouselContainer .CarouselItems li svg,.CarouselWrapperMobile .CarouselContainer .CarouselItems li img{margin:0;top:unset;position:static;overflow:auto}');
|
|
4256
4270
|
}
|
|
4257
|
-
function
|
|
4271
|
+
function Nt(e, t, r) {
|
|
4258
4272
|
const n = e.slice();
|
|
4259
4273
|
return n[43] = t[r], n[45] = r, n;
|
|
4260
4274
|
}
|
|
4261
|
-
function
|
|
4262
|
-
let t, r, n, i, o, s, a,
|
|
4275
|
+
function mo(e) {
|
|
4276
|
+
let t, r, n, i, o, s, a, l, u, h, c, f, m, p = (
|
|
4263
4277
|
/*vendors*/
|
|
4264
|
-
e[6].length > 0 &&
|
|
4278
|
+
e[6].length > 0 && Rt(e)
|
|
4265
4279
|
);
|
|
4266
4280
|
return {
|
|
4267
4281
|
c() {
|
|
4268
|
-
t = S("div"), r = S("div"), n = S("div"), i = S("div"), i.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M15 19l-7-7 7-7"></path></svg>', o = G(), s = S("div"), a = S("ul"),
|
|
4282
|
+
t = S("div"), r = S("div"), n = S("div"), i = S("div"), i.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M15 19l-7-7 7-7"></path></svg>', o = G(), s = S("div"), a = S("ul"), l = S("li"), l.innerHTML = '<a href="#CarouselNav">Close Subs</a>', u = G(), p && p.c(), h = G(), c = S("div"), c.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M9 5l7 7-7 7"></path></svg>', E(i, "class", "CarouselLeftArrow"), E(l, "class", "TouchOnly"), E(a, "id", "CarouselNav"), E(a, "class", "CarouselItems"), E(s, "class", "CarouselNavWrap"), E(c, "class", "CarouselRightArrow"), E(n, "class", "CarouselContainer CarouselContainerMobile"), E(r, "class", "CarouselWrapper " + /*isMobile*/
|
|
4269
4283
|
(e[10] ? "CarouselWrapperMobile" : "")), E(t, "class", "CasinoVendorsContainer"), E(t, "part", "CasinoVendorsContainer");
|
|
4270
4284
|
},
|
|
4271
4285
|
m(b, T) {
|
|
4272
|
-
B(b, t, T), H(t, r), H(r, n), H(n, i), H(n, o), H(n, s), H(s, a), H(a,
|
|
4286
|
+
B(b, t, T), H(t, r), H(r, n), H(n, i), H(n, o), H(n, s), H(s, a), H(a, l), H(a, u), p && p.m(a, null), e[28](a), e[29](s), H(n, h), H(n, c), e[30](r), f || (m = [
|
|
4273
4287
|
J(
|
|
4274
4288
|
i,
|
|
4275
4289
|
"click",
|
|
@@ -4283,29 +4297,29 @@ function co(e) {
|
|
|
4283
4297
|
e[15]
|
|
4284
4298
|
),
|
|
4285
4299
|
J(
|
|
4286
|
-
|
|
4300
|
+
c,
|
|
4287
4301
|
"click",
|
|
4288
4302
|
/*scrollRight*/
|
|
4289
4303
|
e[13]
|
|
4290
4304
|
),
|
|
4291
4305
|
J(
|
|
4292
|
-
|
|
4306
|
+
c,
|
|
4293
4307
|
"keydown",
|
|
4294
4308
|
/*onScrollRightKeydown*/
|
|
4295
4309
|
e[14]
|
|
4296
4310
|
)
|
|
4297
|
-
],
|
|
4311
|
+
], f = !0);
|
|
4298
4312
|
},
|
|
4299
4313
|
p(b, T) {
|
|
4300
4314
|
/*vendors*/
|
|
4301
|
-
b[6].length > 0 ? p ? p.p(b, T) : (p =
|
|
4315
|
+
b[6].length > 0 ? p ? p.p(b, T) : (p = Rt(b), p.c(), p.m(a, null)) : p && (p.d(1), p = null);
|
|
4302
4316
|
},
|
|
4303
4317
|
d(b) {
|
|
4304
|
-
b && I(t), p && p.d(), e[28](null), e[29](null), e[30](null),
|
|
4318
|
+
b && I(t), p && p.d(), e[28](null), e[29](null), e[30](null), f = !1, X(m);
|
|
4305
4319
|
}
|
|
4306
4320
|
};
|
|
4307
4321
|
}
|
|
4308
|
-
function
|
|
4322
|
+
function bo(e) {
|
|
4309
4323
|
let t;
|
|
4310
4324
|
return {
|
|
4311
4325
|
c() {
|
|
@@ -4320,7 +4334,7 @@ function po(e) {
|
|
|
4320
4334
|
}
|
|
4321
4335
|
};
|
|
4322
4336
|
}
|
|
4323
|
-
function
|
|
4337
|
+
function go(e) {
|
|
4324
4338
|
let t;
|
|
4325
4339
|
return {
|
|
4326
4340
|
c() {
|
|
@@ -4335,8 +4349,8 @@ function mo(e) {
|
|
|
4335
4349
|
}
|
|
4336
4350
|
};
|
|
4337
4351
|
}
|
|
4338
|
-
function
|
|
4339
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
|
4352
|
+
function Rt(e) {
|
|
4353
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = dt(
|
|
4340
4354
|
/*vendors*/
|
|
4341
4355
|
e[6]
|
|
4342
4356
|
);
|
|
@@ -4345,26 +4359,26 @@ function Lt(e) {
|
|
|
4345
4359
|
s[43].id
|
|
4346
4360
|
);
|
|
4347
4361
|
for (let s = 0; s < i.length; s += 1) {
|
|
4348
|
-
let a =
|
|
4349
|
-
r.set(
|
|
4362
|
+
let a = Nt(e, i, s), l = o(a);
|
|
4363
|
+
r.set(l, t[s] = jt(l, a));
|
|
4350
4364
|
}
|
|
4351
4365
|
return {
|
|
4352
4366
|
c() {
|
|
4353
4367
|
for (let s = 0; s < t.length; s += 1)
|
|
4354
4368
|
t[s].c();
|
|
4355
|
-
n =
|
|
4369
|
+
n = nt();
|
|
4356
4370
|
},
|
|
4357
4371
|
m(s, a) {
|
|
4358
|
-
for (let
|
|
4359
|
-
t[
|
|
4372
|
+
for (let l = 0; l < t.length; l += 1)
|
|
4373
|
+
t[l] && t[l].m(s, a);
|
|
4360
4374
|
B(s, n, a);
|
|
4361
4375
|
},
|
|
4362
4376
|
p(s, a) {
|
|
4363
4377
|
a[0] & /*activevendor, vendors, handleClick, onCarouselItemKeydown, getButtonClasses, getGamesTotal, showvendorgames, showvendorname, showvendoricon, isMobile*/
|
|
4364
|
-
461903 && (i =
|
|
4378
|
+
461903 && (i = dt(
|
|
4365
4379
|
/*vendors*/
|
|
4366
4380
|
s[6]
|
|
4367
|
-
), t =
|
|
4381
|
+
), t = Jr(t, a, o, 1, s, i, r, n.parentNode, qr, jt, n, Nt));
|
|
4368
4382
|
},
|
|
4369
4383
|
d(s) {
|
|
4370
4384
|
s && I(n);
|
|
@@ -4373,18 +4387,18 @@ function Lt(e) {
|
|
|
4373
4387
|
}
|
|
4374
4388
|
};
|
|
4375
4389
|
}
|
|
4376
|
-
function
|
|
4390
|
+
function Ut(e) {
|
|
4377
4391
|
let t;
|
|
4378
4392
|
function r(o, s) {
|
|
4379
4393
|
return (
|
|
4380
4394
|
/*isMobile*/
|
|
4381
|
-
o[10] ?
|
|
4395
|
+
o[10] ? yo : vo
|
|
4382
4396
|
);
|
|
4383
4397
|
}
|
|
4384
4398
|
let i = r(e)(e);
|
|
4385
4399
|
return {
|
|
4386
4400
|
c() {
|
|
4387
|
-
i.c(), t =
|
|
4401
|
+
i.c(), t = nt();
|
|
4388
4402
|
},
|
|
4389
4403
|
m(o, s) {
|
|
4390
4404
|
i.m(o, s), B(o, t, s);
|
|
@@ -4397,37 +4411,37 @@ function Nt(e) {
|
|
|
4397
4411
|
}
|
|
4398
4412
|
};
|
|
4399
4413
|
}
|
|
4400
|
-
function
|
|
4414
|
+
function vo(e) {
|
|
4401
4415
|
let t, r, n, i, o, s = (
|
|
4402
4416
|
/*showvendorname*/
|
|
4403
|
-
e[2] === "false" &&
|
|
4417
|
+
e[2] === "false" && Dt()
|
|
4404
4418
|
);
|
|
4405
4419
|
return {
|
|
4406
4420
|
c() {
|
|
4407
|
-
t = S("img"), i = G(), s && s.c(), o =
|
|
4421
|
+
t = S("img"), i = G(), s && s.c(), o = nt(), Ee(t.src, r = /*vendor*/
|
|
4408
4422
|
e[43].logo) || E(t, "src", r), E(t, "alt", n = /*vendor*/
|
|
4409
4423
|
e[43].displayName);
|
|
4410
4424
|
},
|
|
4411
|
-
m(a,
|
|
4412
|
-
B(a, t,
|
|
4425
|
+
m(a, l) {
|
|
4426
|
+
B(a, t, l), B(a, i, l), s && s.m(a, l), B(a, o, l);
|
|
4413
4427
|
},
|
|
4414
|
-
p(a,
|
|
4415
|
-
|
|
4428
|
+
p(a, l) {
|
|
4429
|
+
l[0] & /*vendors*/
|
|
4416
4430
|
64 && !Ee(t.src, r = /*vendor*/
|
|
4417
|
-
a[43].logo) && E(t, "src", r),
|
|
4431
|
+
a[43].logo) && E(t, "src", r), l[0] & /*vendors*/
|
|
4418
4432
|
64 && n !== (n = /*vendor*/
|
|
4419
4433
|
a[43].displayName) && E(t, "alt", n), /*showvendorname*/
|
|
4420
|
-
a[2] === "false" ? s || (s =
|
|
4434
|
+
a[2] === "false" ? s || (s = Dt(), s.c(), s.m(o.parentNode, o)) : s && (s.d(1), s = null);
|
|
4421
4435
|
},
|
|
4422
4436
|
d(a) {
|
|
4423
4437
|
a && (I(t), I(i), I(o)), s && s.d(a);
|
|
4424
4438
|
}
|
|
4425
4439
|
};
|
|
4426
4440
|
}
|
|
4427
|
-
function
|
|
4441
|
+
function yo(e) {
|
|
4428
4442
|
let t, r, n, i, o, s = (
|
|
4429
4443
|
/*showvendorname*/
|
|
4430
|
-
e[2] === "false" &&
|
|
4444
|
+
e[2] === "false" && $t()
|
|
4431
4445
|
);
|
|
4432
4446
|
return {
|
|
4433
4447
|
c() {
|
|
@@ -4435,23 +4449,23 @@ function go(e) {
|
|
|
4435
4449
|
e[43].logo) || E(r, "src", n), E(r, "alt", i = /*vendor*/
|
|
4436
4450
|
e[43].displayName), E(t, "class", "ImageContainer");
|
|
4437
4451
|
},
|
|
4438
|
-
m(a,
|
|
4439
|
-
B(a, t,
|
|
4452
|
+
m(a, l) {
|
|
4453
|
+
B(a, t, l), H(t, r), H(t, o), s && s.m(t, null);
|
|
4440
4454
|
},
|
|
4441
|
-
p(a,
|
|
4442
|
-
|
|
4455
|
+
p(a, l) {
|
|
4456
|
+
l[0] & /*vendors*/
|
|
4443
4457
|
64 && !Ee(r.src, n = /*vendor*/
|
|
4444
|
-
a[43].logo) && E(r, "src", n),
|
|
4458
|
+
a[43].logo) && E(r, "src", n), l[0] & /*vendors*/
|
|
4445
4459
|
64 && i !== (i = /*vendor*/
|
|
4446
4460
|
a[43].displayName) && E(r, "alt", i), /*showvendorname*/
|
|
4447
|
-
a[2] === "false" ? s || (s =
|
|
4461
|
+
a[2] === "false" ? s || (s = $t(), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4448
4462
|
},
|
|
4449
4463
|
d(a) {
|
|
4450
4464
|
a && I(t), s && s.d();
|
|
4451
4465
|
}
|
|
4452
4466
|
};
|
|
4453
4467
|
}
|
|
4454
|
-
function
|
|
4468
|
+
function Dt(e) {
|
|
4455
4469
|
let t;
|
|
4456
4470
|
return {
|
|
4457
4471
|
c() {
|
|
@@ -4465,7 +4479,7 @@ function Rt(e) {
|
|
|
4465
4479
|
}
|
|
4466
4480
|
};
|
|
4467
4481
|
}
|
|
4468
|
-
function
|
|
4482
|
+
function $t(e) {
|
|
4469
4483
|
let t;
|
|
4470
4484
|
return {
|
|
4471
4485
|
c() {
|
|
@@ -4479,7 +4493,7 @@ function Ut(e) {
|
|
|
4479
4493
|
}
|
|
4480
4494
|
};
|
|
4481
4495
|
}
|
|
4482
|
-
function
|
|
4496
|
+
function kt(e) {
|
|
4483
4497
|
let t, r = (
|
|
4484
4498
|
/*getGamesTotal*/
|
|
4485
4499
|
e[18](
|
|
@@ -4500,21 +4514,21 @@ function Dt(e) {
|
|
|
4500
4514
|
i[18](
|
|
4501
4515
|
/*vendor*/
|
|
4502
4516
|
i[43]?.games.total
|
|
4503
|
-
) + "") &&
|
|
4517
|
+
) + "") && it(n, r);
|
|
4504
4518
|
},
|
|
4505
4519
|
d(i) {
|
|
4506
4520
|
i && I(t);
|
|
4507
4521
|
}
|
|
4508
4522
|
};
|
|
4509
4523
|
}
|
|
4510
|
-
function
|
|
4524
|
+
function Gt(e) {
|
|
4511
4525
|
let t, r = (
|
|
4512
4526
|
/*vendor*/
|
|
4513
4527
|
e[43].displayName + ""
|
|
4514
4528
|
), n, i, o = (
|
|
4515
4529
|
/*showvendorgames*/
|
|
4516
4530
|
e[3] !== "false" && /*vendor*/
|
|
4517
|
-
e[43]?.games.total &&
|
|
4531
|
+
e[43]?.games.total && Ft(e)
|
|
4518
4532
|
);
|
|
4519
4533
|
return {
|
|
4520
4534
|
c() {
|
|
@@ -4531,16 +4545,16 @@ function $t(e) {
|
|
|
4531
4545
|
p(s, a) {
|
|
4532
4546
|
a[0] & /*vendors*/
|
|
4533
4547
|
64 && r !== (r = /*vendor*/
|
|
4534
|
-
s[43].displayName + "") &&
|
|
4548
|
+
s[43].displayName + "") && it(n, r), /*showvendorgames*/
|
|
4535
4549
|
s[3] !== "false" && /*vendor*/
|
|
4536
|
-
s[43]?.games.total ? o ? o.p(s, a) : (o =
|
|
4550
|
+
s[43]?.games.total ? o ? o.p(s, a) : (o = Ft(s), o.c(), o.m(t, null)) : o && (o.d(1), o = null);
|
|
4537
4551
|
},
|
|
4538
4552
|
d(s) {
|
|
4539
4553
|
s && I(t), o && o.d();
|
|
4540
4554
|
}
|
|
4541
4555
|
};
|
|
4542
4556
|
}
|
|
4543
|
-
function
|
|
4557
|
+
function Ft(e) {
|
|
4544
4558
|
let t, r = (
|
|
4545
4559
|
/*getGamesTotal*/
|
|
4546
4560
|
e[18](
|
|
@@ -4561,28 +4575,28 @@ function kt(e) {
|
|
|
4561
4575
|
i[18](
|
|
4562
4576
|
/*vendor*/
|
|
4563
4577
|
i[43]?.games.total
|
|
4564
|
-
) + "") &&
|
|
4578
|
+
) + "") && it(n, r);
|
|
4565
4579
|
},
|
|
4566
4580
|
d(i) {
|
|
4567
4581
|
i && I(t);
|
|
4568
4582
|
}
|
|
4569
4583
|
};
|
|
4570
4584
|
}
|
|
4571
|
-
function
|
|
4572
|
-
let r, n, i, o, s, a,
|
|
4585
|
+
function jt(e, t) {
|
|
4586
|
+
let r, n, i, o, s, a, l, u = (
|
|
4573
4587
|
/*showvendoricon*/
|
|
4574
|
-
t[1] !== "false" &&
|
|
4588
|
+
t[1] !== "false" && Ut(t)
|
|
4575
4589
|
), h = (
|
|
4576
4590
|
/*showvendoricon*/
|
|
4577
4591
|
t[1] == "true" && /*showvendorgames*/
|
|
4578
4592
|
t[3] !== "false" && /*showvendorname*/
|
|
4579
4593
|
t[2] == "false" && /*vendor*/
|
|
4580
|
-
t[43]?.games?.total &&
|
|
4581
|
-
),
|
|
4594
|
+
t[43]?.games?.total && kt(t)
|
|
4595
|
+
), c = (
|
|
4582
4596
|
/*showvendorname*/
|
|
4583
|
-
t[2] !== "false" &&
|
|
4597
|
+
t[2] !== "false" && Gt(t)
|
|
4584
4598
|
);
|
|
4585
|
-
function
|
|
4599
|
+
function f(...m) {
|
|
4586
4600
|
return (
|
|
4587
4601
|
/*click_handler*/
|
|
4588
4602
|
t[27](
|
|
@@ -4598,7 +4612,7 @@ function Gt(e, t) {
|
|
|
4598
4612
|
key: e,
|
|
4599
4613
|
first: null,
|
|
4600
4614
|
c() {
|
|
4601
|
-
r = S("li"),
|
|
4615
|
+
r = S("li"), u && u.c(), n = G(), h && h.c(), i = G(), c && c.c(), o = G(), E(r, "class", s = "CarouselItem " + (String(
|
|
4602
4616
|
/*activevendor*/
|
|
4603
4617
|
t[0]
|
|
4604
4618
|
) == String(
|
|
@@ -4607,8 +4621,8 @@ function Gt(e, t) {
|
|
|
4607
4621
|
) ? "active" : "") + " SecondaryMenu"), this.first = r;
|
|
4608
4622
|
},
|
|
4609
4623
|
m(m, p) {
|
|
4610
|
-
B(m, r, p),
|
|
4611
|
-
J(r, "click",
|
|
4624
|
+
B(m, r, p), u && u.m(r, null), H(r, n), h && h.m(r, null), H(r, i), c && c.m(r, null), H(r, o), a || (l = [
|
|
4625
|
+
J(r, "click", f),
|
|
4612
4626
|
J(r, "keydown", function() {
|
|
4613
4627
|
Se(
|
|
4614
4628
|
/*onCarouselItemKeydown*/
|
|
@@ -4629,12 +4643,12 @@ function Gt(e, t) {
|
|
|
4629
4643
|
},
|
|
4630
4644
|
p(m, p) {
|
|
4631
4645
|
t = m, /*showvendoricon*/
|
|
4632
|
-
t[1] !== "false" ?
|
|
4646
|
+
t[1] !== "false" ? u ? u.p(t, p) : (u = Ut(t), u.c(), u.m(r, n)) : u && (u.d(1), u = null), /*showvendoricon*/
|
|
4633
4647
|
t[1] == "true" && /*showvendorgames*/
|
|
4634
4648
|
t[3] !== "false" && /*showvendorname*/
|
|
4635
4649
|
t[2] == "false" && /*vendor*/
|
|
4636
|
-
t[43]?.games?.total ? h ? h.p(t, p) : (h =
|
|
4637
|
-
t[2] !== "false" ?
|
|
4650
|
+
t[43]?.games?.total ? h ? h.p(t, p) : (h = kt(t), h.c(), h.m(r, i)) : h && (h.d(1), h = null), /*showvendorname*/
|
|
4651
|
+
t[2] !== "false" ? c ? c.p(t, p) : (c = Gt(t), c.c(), c.m(r, o)) : c && (c.d(1), c = null), p[0] & /*activevendor, vendors*/
|
|
4638
4652
|
65 && s !== (s = "CarouselItem " + (String(
|
|
4639
4653
|
/*activevendor*/
|
|
4640
4654
|
t[0]
|
|
@@ -4644,18 +4658,18 @@ function Gt(e, t) {
|
|
|
4644
4658
|
) ? "active" : "") + " SecondaryMenu") && E(r, "class", s);
|
|
4645
4659
|
},
|
|
4646
4660
|
d(m) {
|
|
4647
|
-
m && I(r),
|
|
4661
|
+
m && I(r), u && u.d(), h && h.d(), c && c.d(), a = !1, X(l);
|
|
4648
4662
|
}
|
|
4649
4663
|
};
|
|
4650
4664
|
}
|
|
4651
|
-
function
|
|
4665
|
+
function _o(e) {
|
|
4652
4666
|
let t;
|
|
4653
4667
|
function r(o, s) {
|
|
4654
4668
|
return (
|
|
4655
4669
|
/*isLoading*/
|
|
4656
|
-
o[5] ?
|
|
4670
|
+
o[5] ? go : (
|
|
4657
4671
|
/*hasErrors*/
|
|
4658
|
-
o[7] ?
|
|
4672
|
+
o[7] ? bo : mo
|
|
4659
4673
|
)
|
|
4660
4674
|
);
|
|
4661
4675
|
}
|
|
@@ -4677,47 +4691,47 @@ function yo(e) {
|
|
|
4677
4691
|
}
|
|
4678
4692
|
};
|
|
4679
4693
|
}
|
|
4680
|
-
function
|
|
4681
|
-
|
|
4682
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { lang: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { actionevent:
|
|
4694
|
+
function xo(e, t, r) {
|
|
4695
|
+
ao({ withLocale: "en", translations: {} });
|
|
4696
|
+
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { lang: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { actionevent: l = "defaultevent" } = t, { translationurl: u = "" } = t, { showvendoricon: h = "true" } = t, { showvendorname: c = "false" } = t, { showvendorgames: f = "false" } = t, { activevendor: m = "0" } = t, { mbsource: p } = t, b = window.navigator.userAgent, T = Lt(b) !== "PC", L = !0, P, A = [], M = !1, w, N, g;
|
|
4683
4697
|
const $ = () => {
|
|
4684
|
-
fetch(
|
|
4698
|
+
fetch(u).then((x) => x.json()).then((x) => {
|
|
4685
4699
|
Object.keys(x).forEach((U) => {
|
|
4686
|
-
|
|
4700
|
+
lo(U, x[U]);
|
|
4687
4701
|
});
|
|
4688
4702
|
}).catch((x) => {
|
|
4689
4703
|
console.log(x);
|
|
4690
4704
|
});
|
|
4691
4705
|
}, k = () => {
|
|
4692
|
-
|
|
4693
|
-
}, Z = () => (n || (P = "Endpoint is missing! Please provide a valid endpointURL.", r(7,
|
|
4706
|
+
uo(o);
|
|
4707
|
+
}, Z = () => (n || (P = "Endpoint is missing! Please provide a valid endpointURL.", r(7, M = !0), r(5, L = !1), console.error(P)), (!o || o.length < 2) && (P = "Language is missing! Please provide a valid language (alpha2code)", r(7, M = !0), r(5, L = !1), console.error(P)), M), Sr = () => {
|
|
4694
4708
|
if (!Z()) {
|
|
4695
4709
|
let d = new URL(`${n}/v1/casino/vendors`);
|
|
4696
|
-
d.searchParams.append("datasource", i), d.searchParams.append("language", o), d.searchParams.append("platform",
|
|
4710
|
+
d.searchParams.append("datasource", i), d.searchParams.append("language", o), d.searchParams.append("platform", Lt(b)), fetch(d).then((x) => x.json()).then(
|
|
4697
4711
|
(x) => {
|
|
4698
|
-
let U = x.items.filter((
|
|
4712
|
+
let U = x.items.filter((Oe) => Oe.games.total > 0);
|
|
4699
4713
|
r(6, A = []), r(6, A = A.concat(U)), r(5, L = !1);
|
|
4700
4714
|
},
|
|
4701
4715
|
(x) => {
|
|
4702
|
-
r(7,
|
|
4716
|
+
r(7, M = !0), console.error("There was an error while fetching the vendors", x);
|
|
4703
4717
|
}
|
|
4704
4718
|
).catch((x) => {
|
|
4705
|
-
r(7,
|
|
4719
|
+
r(7, M = !0), console.error("There was an error while fetching the vendors", x);
|
|
4706
4720
|
});
|
|
4707
4721
|
}
|
|
4708
4722
|
};
|
|
4709
|
-
|
|
4723
|
+
Wr(() => ("ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
|
4710
4724
|
() => {
|
|
4711
|
-
g && g.addEventListener("scroll",
|
|
4725
|
+
g && g.addEventListener("scroll", Me);
|
|
4712
4726
|
},
|
|
4713
4727
|
500
|
|
4714
4728
|
), () => {
|
|
4715
|
-
N.removeEventListener("scroll",
|
|
4729
|
+
N.removeEventListener("scroll", Me);
|
|
4716
4730
|
}));
|
|
4717
4731
|
let Pe = (d, x) => {
|
|
4718
|
-
|
|
4732
|
+
Me(), r(0, m = d.id), window.postMessage(
|
|
4719
4733
|
{
|
|
4720
|
-
type:
|
|
4734
|
+
type: l,
|
|
4721
4735
|
itemId: d.id,
|
|
4722
4736
|
index: x,
|
|
4723
4737
|
item: d,
|
|
@@ -4727,7 +4741,7 @@ function vo(e, t, r) {
|
|
|
4727
4741
|
},
|
|
4728
4742
|
window.location.href
|
|
4729
4743
|
);
|
|
4730
|
-
},
|
|
4744
|
+
}, ut = () => {
|
|
4731
4745
|
const d = g.scrollLeft;
|
|
4732
4746
|
if (d > 0) {
|
|
4733
4747
|
const x = Math.min(250, d);
|
|
@@ -4736,105 +4750,105 @@ function vo(e, t, r) {
|
|
|
4736
4750
|
behavior: "smooth"
|
|
4737
4751
|
});
|
|
4738
4752
|
}
|
|
4739
|
-
},
|
|
4753
|
+
}, ht = () => {
|
|
4740
4754
|
const d = g.scrollLeft, x = g.scrollWidth, U = g.clientWidth;
|
|
4741
4755
|
if (d + U < x) {
|
|
4742
|
-
const
|
|
4743
|
-
g.scrollBy({ left:
|
|
4756
|
+
const Oe = x - (d + U), Rr = Math.min(250, Oe);
|
|
4757
|
+
g.scrollBy({ left: Rr, behavior: "smooth" });
|
|
4744
4758
|
}
|
|
4745
4759
|
};
|
|
4746
|
-
const
|
|
4760
|
+
const Me = () => {
|
|
4747
4761
|
const d = N.querySelectorAll(".DropDown");
|
|
4748
4762
|
document.activeElement.blur(), g.classList.add("isScrolling");
|
|
4749
4763
|
for (let x = 0; x < d.length; x++)
|
|
4750
4764
|
d[x].style.transform = "translateX(-" + g.scrollLeft + "px)";
|
|
4751
4765
|
g.classList.remove("isScrolling");
|
|
4752
|
-
},
|
|
4766
|
+
}, Tr = (d) => {
|
|
4767
|
+
(d.key === "Enter" || d.key === " ") && (ht(), d.preventDefault());
|
|
4768
|
+
}, Hr = (d) => {
|
|
4753
4769
|
(d.key === "Enter" || d.key === " ") && (ut(), d.preventDefault());
|
|
4754
|
-
},
|
|
4755
|
-
(d.key === "Enter" || d.key === " ") && (at(), d.preventDefault());
|
|
4756
|
-
}, Sr = (d, x) => (U) => {
|
|
4770
|
+
}, Ar = (d, x) => (U) => {
|
|
4757
4771
|
(U.key === "Enter" || U.key === " ") && (Pe(d, x), U.preventDefault());
|
|
4758
|
-
},
|
|
4759
|
-
if (T &&
|
|
4772
|
+
}, Ir = () => {
|
|
4773
|
+
if (T && c === "true" && h === "false")
|
|
4760
4774
|
return "MobileCategoryButton";
|
|
4761
|
-
},
|
|
4775
|
+
}, Br = (d) => d > 1e3 ? "999+" : d, Pr = (d, x, U) => {
|
|
4762
4776
|
Pe(d, x), U.preventDefault();
|
|
4763
4777
|
};
|
|
4764
|
-
function
|
|
4778
|
+
function Mr(d) {
|
|
4765
4779
|
K[d ? "unshift" : "push"](() => {
|
|
4766
4780
|
N = d, r(8, N);
|
|
4767
4781
|
});
|
|
4768
4782
|
}
|
|
4769
|
-
function
|
|
4783
|
+
function Or(d) {
|
|
4770
4784
|
K[d ? "unshift" : "push"](() => {
|
|
4771
4785
|
g = d, r(9, g);
|
|
4772
4786
|
});
|
|
4773
4787
|
}
|
|
4774
|
-
function
|
|
4788
|
+
function Lr(d) {
|
|
4775
4789
|
K[d ? "unshift" : "push"](() => {
|
|
4776
4790
|
w = d, r(4, w);
|
|
4777
4791
|
});
|
|
4778
4792
|
}
|
|
4779
|
-
function
|
|
4793
|
+
function Nr(d) {
|
|
4780
4794
|
K[d ? "unshift" : "push"](() => {
|
|
4781
4795
|
w = d, r(4, w);
|
|
4782
4796
|
});
|
|
4783
4797
|
}
|
|
4784
4798
|
return e.$$set = (d) => {
|
|
4785
|
-
"endpoint" in d && r(19, n = d.endpoint), "datasource" in d && r(20, i = d.datasource), "lang" in d && r(21, o = d.lang), "clientstyling" in d && r(22, s = d.clientstyling), "clientstylingurl" in d && r(23, a = d.clientstylingurl), "actionevent" in d && r(24,
|
|
4799
|
+
"endpoint" in d && r(19, n = d.endpoint), "datasource" in d && r(20, i = d.datasource), "lang" in d && r(21, o = d.lang), "clientstyling" in d && r(22, s = d.clientstyling), "clientstylingurl" in d && r(23, a = d.clientstylingurl), "actionevent" in d && r(24, l = d.actionevent), "translationurl" in d && r(25, u = d.translationurl), "showvendoricon" in d && r(1, h = d.showvendoricon), "showvendorname" in d && r(2, c = d.showvendorname), "showvendorgames" in d && r(3, f = d.showvendorgames), "activevendor" in d && r(0, m = d.activevendor), "mbsource" in d && r(26, p = d.mbsource);
|
|
4786
4800
|
}, e.$$.update = () => {
|
|
4787
4801
|
e.$$.dirty[0] & /*endpoint, lang*/
|
|
4788
|
-
2621440 && n && o &&
|
|
4789
|
-
33554432 &&
|
|
4802
|
+
2621440 && n && o && Sr(), e.$$.dirty[0] & /*translationurl*/
|
|
4803
|
+
33554432 && u && $(), e.$$.dirty[0] & /*activevendor*/
|
|
4790
4804
|
1, e.$$.dirty[0] & /*lang*/
|
|
4791
4805
|
2097152 && o && k(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4792
|
-
4194320 && s && w &&
|
|
4793
|
-
8388624 && a && w &&
|
|
4794
|
-
67108880 && p && w &&
|
|
4806
|
+
4194320 && s && w && ho(w, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4807
|
+
8388624 && a && w && co(w, a), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4808
|
+
67108880 && p && w && fo(w, `${p}.Style`);
|
|
4795
4809
|
}, [
|
|
4796
4810
|
m,
|
|
4797
4811
|
h,
|
|
4798
|
-
f,
|
|
4799
4812
|
c,
|
|
4813
|
+
f,
|
|
4800
4814
|
w,
|
|
4801
4815
|
L,
|
|
4802
4816
|
A,
|
|
4803
|
-
|
|
4817
|
+
M,
|
|
4804
4818
|
N,
|
|
4805
4819
|
g,
|
|
4806
4820
|
T,
|
|
4807
4821
|
Pe,
|
|
4808
|
-
at,
|
|
4809
4822
|
ut,
|
|
4810
|
-
|
|
4811
|
-
wr,
|
|
4812
|
-
Sr,
|
|
4823
|
+
ht,
|
|
4813
4824
|
Tr,
|
|
4814
4825
|
Hr,
|
|
4826
|
+
Ar,
|
|
4827
|
+
Ir,
|
|
4828
|
+
Br,
|
|
4815
4829
|
n,
|
|
4816
4830
|
i,
|
|
4817
4831
|
o,
|
|
4818
4832
|
s,
|
|
4819
4833
|
a,
|
|
4820
|
-
u,
|
|
4821
4834
|
l,
|
|
4835
|
+
u,
|
|
4822
4836
|
p,
|
|
4823
|
-
Ar,
|
|
4824
|
-
Ir,
|
|
4825
|
-
Br,
|
|
4826
4837
|
Pr,
|
|
4827
|
-
|
|
4838
|
+
Mr,
|
|
4839
|
+
Or,
|
|
4840
|
+
Lr,
|
|
4841
|
+
Nr
|
|
4828
4842
|
];
|
|
4829
4843
|
}
|
|
4830
|
-
class
|
|
4844
|
+
class Eo extends on {
|
|
4831
4845
|
constructor(t) {
|
|
4832
|
-
super(),
|
|
4846
|
+
super(), rn(
|
|
4833
4847
|
this,
|
|
4834
4848
|
t,
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4849
|
+
xo,
|
|
4850
|
+
_o,
|
|
4851
|
+
Wt,
|
|
4838
4852
|
{
|
|
4839
4853
|
endpoint: 19,
|
|
4840
4854
|
datasource: 20,
|
|
@@ -4849,7 +4863,7 @@ class _o extends tn {
|
|
|
4849
4863
|
activevendor: 0,
|
|
4850
4864
|
mbsource: 26
|
|
4851
4865
|
},
|
|
4852
|
-
|
|
4866
|
+
po,
|
|
4853
4867
|
[-1, -1]
|
|
4854
4868
|
);
|
|
4855
4869
|
}
|
|
@@ -4926,7 +4940,7 @@ class _o extends tn {
|
|
|
4926
4940
|
this.$$set({ mbsource: t }), R();
|
|
4927
4941
|
}
|
|
4928
4942
|
}
|
|
4929
|
-
|
|
4943
|
+
nn(Eo, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, actionevent: {}, translationurl: {}, showvendoricon: {}, showvendorname: {}, showvendorgames: {}, activevendor: {}, mbsource: {} }, [], [], !0);
|
|
4930
4944
|
export {
|
|
4931
|
-
|
|
4945
|
+
Eo as C
|
|
4932
4946
|
};
|