@everymatrix/casino-wagering-bonus-slider-controller 1.76.3 → 1.76.4
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/{CasinoWageringBonusSliderController-hZHGn1s4.js → CasinoWageringBonusSliderController-COqaqM1s.js} +976 -941
- package/components/CasinoWageringBonusSliderController-CUQavC0b.cjs +24 -0
- package/components/{CasinoWageringBonusSliderController-Ce63HRkN.js → CasinoWageringBonusSliderController-CaAsnuT0.js} +988 -953
- package/components/{GeneralIconProgressBar-JveRAlQZ.js → GeneralIconProgressBar-B8zRBib0.js} +7 -7
- package/components/{GeneralIconProgressBar-C93dgW39.cjs → GeneralIconProgressBar-BT1bPgAi.cjs} +1 -1
- package/components/{GeneralIconProgressBar-BEf4840D.js → GeneralIconProgressBar-C8rT7lWP.js} +9 -9
- package/es2015/casino-wagering-bonus-slider-controller.cjs +1 -1
- package/es2015/casino-wagering-bonus-slider-controller.js +1 -1
- package/esnext/casino-wagering-bonus-slider-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoWageringBonusSliderController-BP410C6M.cjs +0 -24
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function se() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function $r(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function dr() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function Ae(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach($r);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ur(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Gr(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Sn(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function jr(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,20 +27,20 @@ function Fr(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Tn(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(jr(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function $(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function Hn(e, t, r) {
|
|
37
|
+
const n = An(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
39
|
const i = W("style");
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
i.id = t, i.textContent = r, Bn(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function An(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,8 +50,8 @@ function wn(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
53
|
+
function Bn(e, t) {
|
|
54
|
+
return $(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
@@ -63,7 +63,7 @@ function be(e, t, r) {
|
|
|
63
63
|
function ue(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function In(e, t) {
|
|
67
67
|
for (let r = 0; r < e.length; r += 1)
|
|
68
68
|
e[r] && e[r].d(t);
|
|
69
69
|
}
|
|
@@ -73,11 +73,11 @@ function W(e) {
|
|
|
73
73
|
function pt(e) {
|
|
74
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function St(e) {
|
|
77
77
|
return document.createTextNode(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function ye() {
|
|
80
|
+
return St(" ");
|
|
81
81
|
}
|
|
82
82
|
function He(e, t, r, n) {
|
|
83
83
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
@@ -89,14 +89,14 @@ function re(e, t, r) {
|
|
|
89
89
|
const n = t.toLowerCase();
|
|
90
90
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : E(e, t, r);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Ln(e) {
|
|
93
93
|
return Array.from(e.childNodes);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function lr(e, t) {
|
|
96
96
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
97
97
|
t);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function On(e) {
|
|
100
100
|
const t = {};
|
|
101
101
|
return e.childNodes.forEach(
|
|
102
102
|
/** @param {Element} node */
|
|
@@ -105,90 +105,90 @@ function An(e) {
|
|
|
105
105
|
}
|
|
106
106
|
), t;
|
|
107
107
|
}
|
|
108
|
-
let
|
|
109
|
-
function
|
|
110
|
-
|
|
108
|
+
let rt;
|
|
109
|
+
function et(e) {
|
|
110
|
+
rt = e;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
if (!
|
|
112
|
+
function Cn() {
|
|
113
|
+
if (!rt)
|
|
114
114
|
throw new Error("Function called outside component initialization");
|
|
115
|
-
return
|
|
115
|
+
return rt;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
|
|
117
|
+
function Pn(e) {
|
|
118
|
+
Cn().$$.on_mount.push(e);
|
|
119
119
|
}
|
|
120
|
-
const Me = [],
|
|
120
|
+
const Me = [], tt = [];
|
|
121
121
|
let Re = [];
|
|
122
|
-
const
|
|
123
|
-
let
|
|
124
|
-
function
|
|
125
|
-
|
|
122
|
+
const pr = [], Nn = /* @__PURE__ */ Promise.resolve();
|
|
123
|
+
let kt = !1;
|
|
124
|
+
function Mn() {
|
|
125
|
+
kt || (kt = !0, Nn.then(oe));
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Xt(e) {
|
|
128
128
|
Re.push(e);
|
|
129
129
|
}
|
|
130
|
-
const
|
|
130
|
+
const Rt = /* @__PURE__ */ new Set();
|
|
131
131
|
let Pe = 0;
|
|
132
132
|
function oe() {
|
|
133
133
|
if (Pe !== 0)
|
|
134
134
|
return;
|
|
135
|
-
const e =
|
|
135
|
+
const e = rt;
|
|
136
136
|
do {
|
|
137
137
|
try {
|
|
138
138
|
for (; Pe < Me.length; ) {
|
|
139
139
|
const t = Me[Pe];
|
|
140
|
-
Pe++,
|
|
140
|
+
Pe++, et(t), Rn(t.$$);
|
|
141
141
|
}
|
|
142
142
|
} catch (t) {
|
|
143
143
|
throw Me.length = 0, Pe = 0, t;
|
|
144
144
|
}
|
|
145
|
-
for (
|
|
146
|
-
|
|
145
|
+
for (et(null), Me.length = 0, Pe = 0; tt.length; )
|
|
146
|
+
tt.pop()();
|
|
147
147
|
for (let t = 0; t < Re.length; t += 1) {
|
|
148
148
|
const r = Re[t];
|
|
149
|
-
|
|
149
|
+
Rt.has(r) || (Rt.add(r), r());
|
|
150
150
|
}
|
|
151
151
|
Re.length = 0;
|
|
152
152
|
} while (Me.length);
|
|
153
|
-
for (;
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
for (; pr.length; )
|
|
154
|
+
pr.pop()();
|
|
155
|
+
kt = !1, Rt.clear(), et(e);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Rn(e) {
|
|
158
158
|
if (e.fragment !== null) {
|
|
159
159
|
e.update(), Ae(e.before_update);
|
|
160
160
|
const t = e.dirty;
|
|
161
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
161
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xt);
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Dn(e) {
|
|
165
165
|
const t = [], r = [];
|
|
166
166
|
Re.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Re = t;
|
|
167
167
|
}
|
|
168
|
-
const
|
|
169
|
-
function
|
|
170
|
-
e && e.i && (
|
|
168
|
+
const Fn = /* @__PURE__ */ new Set();
|
|
169
|
+
function Un(e, t) {
|
|
170
|
+
e && e.i && (Fn.delete(e), e.i(t));
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function gr(e) {
|
|
173
173
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function $n(e, t, r) {
|
|
176
176
|
const { fragment: n, after_update: i } = e.$$;
|
|
177
|
-
n && n.m(t, r),
|
|
178
|
-
const o = e.$$.on_mount.map(
|
|
177
|
+
n && n.m(t, r), Xt(() => {
|
|
178
|
+
const o = e.$$.on_mount.map($r).filter(ur);
|
|
179
179
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ae(o), e.$$.on_mount = [];
|
|
180
|
-
}), i.forEach(
|
|
180
|
+
}), i.forEach(Xt);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Gn(e, t) {
|
|
183
183
|
const r = e.$$;
|
|
184
|
-
r.fragment !== null && (
|
|
184
|
+
r.fragment !== null && (Dn(r.after_update), Ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
e.$$.dirty[0] === -1 && (Me.push(e),
|
|
186
|
+
function jn(e, t) {
|
|
187
|
+
e.$$.dirty[0] === -1 && (Me.push(e), Mn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
const h =
|
|
191
|
-
|
|
189
|
+
function Wn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
190
|
+
const h = rt;
|
|
191
|
+
et(e);
|
|
192
192
|
const l = e.$$ = {
|
|
193
193
|
fragment: null,
|
|
194
194
|
ctx: [],
|
|
@@ -196,7 +196,7 @@ function Un(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
196
196
|
props: o,
|
|
197
197
|
update: se,
|
|
198
198
|
not_equal: i,
|
|
199
|
-
bound:
|
|
199
|
+
bound: dr(),
|
|
200
200
|
// lifecycle
|
|
201
201
|
on_mount: [],
|
|
202
202
|
on_destroy: [],
|
|
@@ -205,28 +205,28 @@ function Un(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
205
205
|
after_update: [],
|
|
206
206
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
207
207
|
// everything else
|
|
208
|
-
callbacks:
|
|
208
|
+
callbacks: dr(),
|
|
209
209
|
dirty: a,
|
|
210
210
|
skip_bound: !1,
|
|
211
211
|
root: t.target || h.$$.root
|
|
212
212
|
};
|
|
213
213
|
s && s(l.root);
|
|
214
214
|
let f = !1;
|
|
215
|
-
if (l.ctx = r ? r(e, t.props || {}, (p,
|
|
216
|
-
const H = y.length ? y[0] :
|
|
217
|
-
return l.ctx && i(l.ctx[p], l.ctx[p] = H) && (!l.skip_bound && l.bound[p] && l.bound[p](H), f &&
|
|
215
|
+
if (l.ctx = r ? r(e, t.props || {}, (p, m, ...y) => {
|
|
216
|
+
const H = y.length ? y[0] : m;
|
|
217
|
+
return l.ctx && i(l.ctx[p], l.ctx[p] = H) && (!l.skip_bound && l.bound[p] && l.bound[p](H), f && jn(e, p)), m;
|
|
218
218
|
}) : [], l.update(), f = !0, Ae(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
219
219
|
if (t.hydrate) {
|
|
220
|
-
const p =
|
|
220
|
+
const p = Ln(t.target);
|
|
221
221
|
l.fragment && l.fragment.l(p), p.forEach(ue);
|
|
222
222
|
} else
|
|
223
223
|
l.fragment && l.fragment.c();
|
|
224
|
-
t.intro &&
|
|
224
|
+
t.intro && Un(e.$$.fragment), $n(e, t.target, t.anchor), oe();
|
|
225
225
|
}
|
|
226
|
-
|
|
226
|
+
et(h);
|
|
227
227
|
}
|
|
228
|
-
let
|
|
229
|
-
typeof HTMLElement == "function" && (
|
|
228
|
+
let Wr;
|
|
229
|
+
typeof HTMLElement == "function" && (Wr = class extends HTMLElement {
|
|
230
230
|
/** The Svelte component constructor */
|
|
231
231
|
$$ctor;
|
|
232
232
|
/** Slots */
|
|
@@ -285,12 +285,12 @@ typeof HTMLElement == "function" && (Ur = class extends HTMLElement {
|
|
|
285
285
|
};
|
|
286
286
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
287
287
|
return;
|
|
288
|
-
const t = {}, r =
|
|
288
|
+
const t = {}, r = On(this);
|
|
289
289
|
for (const i of this.$$s)
|
|
290
290
|
i in r && (t[i] = [e(i)]);
|
|
291
291
|
for (const i of this.attributes) {
|
|
292
292
|
const o = this.$$g_p(i.name);
|
|
293
|
-
o in this.$$d || (this.$$d[o] =
|
|
293
|
+
o in this.$$d || (this.$$d[o] = vt(o, i.value, this.$$p_d, "toProp"));
|
|
294
294
|
}
|
|
295
295
|
for (const i in this.$$p_d)
|
|
296
296
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -308,7 +308,7 @@ typeof HTMLElement == "function" && (Ur = class extends HTMLElement {
|
|
|
308
308
|
this.$$r = !0;
|
|
309
309
|
for (const i in this.$$p_d)
|
|
310
310
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
311
|
-
const o =
|
|
311
|
+
const o = vt(
|
|
312
312
|
i,
|
|
313
313
|
this.$$d[i],
|
|
314
314
|
this.$$p_d,
|
|
@@ -330,7 +330,7 @@ typeof HTMLElement == "function" && (Ur = class extends HTMLElement {
|
|
|
330
330
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
331
331
|
// and setting attributes through setAttribute etc, this is helpful
|
|
332
332
|
attributeChangedCallback(e, t, r) {
|
|
333
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
333
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = vt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
334
334
|
}
|
|
335
335
|
disconnectedCallback() {
|
|
336
336
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -343,7 +343,7 @@ typeof HTMLElement == "function" && (Ur = class extends HTMLElement {
|
|
|
343
343
|
) || e;
|
|
344
344
|
}
|
|
345
345
|
});
|
|
346
|
-
function
|
|
346
|
+
function vt(e, t, r, n) {
|
|
347
347
|
const i = r[e]?.type;
|
|
348
348
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
349
349
|
return t;
|
|
@@ -372,8 +372,8 @@ function bt(e, t, r, n) {
|
|
|
372
372
|
return t;
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
-
function
|
|
376
|
-
let s = class extends
|
|
375
|
+
function kn(e, t, r, n, i, o) {
|
|
376
|
+
let s = class extends Wr {
|
|
377
377
|
constructor() {
|
|
378
378
|
super(e, r, i), this.$$p_d = t;
|
|
379
379
|
}
|
|
@@ -389,7 +389,7 @@ function $n(e, t, r, n, i, o) {
|
|
|
389
389
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
390
390
|
},
|
|
391
391
|
set(h) {
|
|
392
|
-
h =
|
|
392
|
+
h = vt(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
395
|
}), n.forEach((a) => {
|
|
@@ -401,7 +401,7 @@ function $n(e, t, r, n, i, o) {
|
|
|
401
401
|
}), e.element = /** @type {any} */
|
|
402
402
|
s, s;
|
|
403
403
|
}
|
|
404
|
-
class
|
|
404
|
+
class Xn {
|
|
405
405
|
/**
|
|
406
406
|
* ### PRIVATE API
|
|
407
407
|
*
|
|
@@ -420,7 +420,7 @@ class Gn {
|
|
|
420
420
|
$$set = void 0;
|
|
421
421
|
/** @returns {void} */
|
|
422
422
|
$destroy() {
|
|
423
|
-
|
|
423
|
+
Gn(this, 1), this.$destroy = se;
|
|
424
424
|
}
|
|
425
425
|
/**
|
|
426
426
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -429,7 +429,7 @@ class Gn {
|
|
|
429
429
|
* @returns {() => void}
|
|
430
430
|
*/
|
|
431
431
|
$on(t, r) {
|
|
432
|
-
if (!
|
|
432
|
+
if (!ur(r))
|
|
433
433
|
return se;
|
|
434
434
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
435
435
|
return n.push(r), () => {
|
|
@@ -442,11 +442,11 @@ class Gn {
|
|
|
442
442
|
* @returns {void}
|
|
443
443
|
*/
|
|
444
444
|
$set(t) {
|
|
445
|
-
this.$$set && !
|
|
445
|
+
this.$$set && !Sn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
const
|
|
449
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
448
|
+
const Vn = "4";
|
|
449
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Vn);
|
|
450
450
|
/*! *****************************************************************************
|
|
451
451
|
Copyright (c) Microsoft Corporation.
|
|
452
452
|
|
|
@@ -461,43 +461,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
461
461
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
462
462
|
PERFORMANCE OF THIS SOFTWARE.
|
|
463
463
|
***************************************************************************** */
|
|
464
|
-
var
|
|
465
|
-
return
|
|
464
|
+
var Vt = function(e, t) {
|
|
465
|
+
return Vt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
466
466
|
r.__proto__ = n;
|
|
467
467
|
} || function(r, n) {
|
|
468
468
|
for (var i in n)
|
|
469
469
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
470
|
-
},
|
|
470
|
+
}, Vt(e, t);
|
|
471
471
|
};
|
|
472
|
-
function
|
|
472
|
+
function ot(e, t) {
|
|
473
473
|
if (typeof t != "function" && t !== null)
|
|
474
474
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
475
|
-
|
|
475
|
+
Vt(e, t);
|
|
476
476
|
function r() {
|
|
477
477
|
this.constructor = e;
|
|
478
478
|
}
|
|
479
479
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
480
480
|
}
|
|
481
|
-
|
|
482
|
-
return U = Object.assign || function(t) {
|
|
483
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
484
|
-
r = arguments[n];
|
|
485
|
-
for (var o in r)
|
|
486
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
487
|
-
}
|
|
488
|
-
return t;
|
|
489
|
-
}, U.apply(this, arguments);
|
|
490
|
-
};
|
|
491
|
-
function Wn(e, t) {
|
|
492
|
-
var r = {};
|
|
493
|
-
for (var n in e)
|
|
494
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
495
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
496
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
497
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
498
|
-
return r;
|
|
499
|
-
}
|
|
500
|
-
function kt(e) {
|
|
481
|
+
function zt(e) {
|
|
501
482
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
502
483
|
if (r)
|
|
503
484
|
return r.call(e);
|
|
@@ -509,7 +490,7 @@ function kt(e) {
|
|
|
509
490
|
};
|
|
510
491
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
511
492
|
}
|
|
512
|
-
function
|
|
493
|
+
function Zt(e, t) {
|
|
513
494
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
514
495
|
if (!r)
|
|
515
496
|
return e;
|
|
@@ -529,22 +510,22 @@ function Xt(e, t) {
|
|
|
529
510
|
}
|
|
530
511
|
return o;
|
|
531
512
|
}
|
|
532
|
-
function
|
|
533
|
-
if (
|
|
513
|
+
function qt(e, t, r) {
|
|
514
|
+
if (arguments.length === 2)
|
|
534
515
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
535
516
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
536
517
|
return e.concat(o || t);
|
|
537
518
|
}
|
|
538
|
-
function
|
|
519
|
+
function _e(e) {
|
|
539
520
|
return typeof e == "function";
|
|
540
521
|
}
|
|
541
|
-
function
|
|
522
|
+
function kr(e) {
|
|
542
523
|
var t = function(n) {
|
|
543
524
|
Error.call(n), n.stack = new Error().stack;
|
|
544
525
|
}, r = e(t);
|
|
545
526
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
546
527
|
}
|
|
547
|
-
var
|
|
528
|
+
var Dt = kr(function(e) {
|
|
548
529
|
return function(r) {
|
|
549
530
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
550
531
|
` + r.map(function(n, i) {
|
|
@@ -553,13 +534,13 @@ var Mt = $r(function(e) {
|
|
|
553
534
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
554
535
|
};
|
|
555
536
|
});
|
|
556
|
-
function
|
|
537
|
+
function Yt(e, t) {
|
|
557
538
|
if (e) {
|
|
558
539
|
var r = e.indexOf(t);
|
|
559
540
|
0 <= r && e.splice(r, 1);
|
|
560
541
|
}
|
|
561
542
|
}
|
|
562
|
-
var
|
|
543
|
+
var Tt = function() {
|
|
563
544
|
function e(t) {
|
|
564
545
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
565
546
|
}
|
|
@@ -571,7 +552,7 @@ var St = function() {
|
|
|
571
552
|
if (s)
|
|
572
553
|
if (this._parentage = null, Array.isArray(s))
|
|
573
554
|
try {
|
|
574
|
-
for (var a =
|
|
555
|
+
for (var a = zt(s), h = a.next(); !h.done; h = a.next()) {
|
|
575
556
|
var l = h.value;
|
|
576
557
|
l.remove(this);
|
|
577
558
|
}
|
|
@@ -588,29 +569,29 @@ var St = function() {
|
|
|
588
569
|
else
|
|
589
570
|
s.remove(this);
|
|
590
571
|
var f = this.initialTeardown;
|
|
591
|
-
if (
|
|
572
|
+
if (_e(f))
|
|
592
573
|
try {
|
|
593
574
|
f();
|
|
594
575
|
} catch (w) {
|
|
595
|
-
o = w instanceof
|
|
576
|
+
o = w instanceof Dt ? w.errors : [w];
|
|
596
577
|
}
|
|
597
578
|
var p = this._finalizers;
|
|
598
579
|
if (p) {
|
|
599
580
|
this._finalizers = null;
|
|
600
581
|
try {
|
|
601
|
-
for (var
|
|
582
|
+
for (var m = zt(p), y = m.next(); !y.done; y = m.next()) {
|
|
602
583
|
var H = y.value;
|
|
603
584
|
try {
|
|
604
|
-
|
|
585
|
+
mr(H);
|
|
605
586
|
} catch (w) {
|
|
606
|
-
o = o ?? [], w instanceof
|
|
587
|
+
o = o ?? [], w instanceof Dt ? o = qt(qt([], Zt(o)), Zt(w.errors)) : o.push(w);
|
|
607
588
|
}
|
|
608
589
|
}
|
|
609
590
|
} catch (w) {
|
|
610
591
|
n = { error: w };
|
|
611
592
|
} finally {
|
|
612
593
|
try {
|
|
613
|
-
y && !y.done && (i =
|
|
594
|
+
y && !y.done && (i = m.return) && i.call(m);
|
|
614
595
|
} finally {
|
|
615
596
|
if (n)
|
|
616
597
|
throw n.error;
|
|
@@ -618,13 +599,13 @@ var St = function() {
|
|
|
618
599
|
}
|
|
619
600
|
}
|
|
620
601
|
if (o)
|
|
621
|
-
throw new
|
|
602
|
+
throw new Dt(o);
|
|
622
603
|
}
|
|
623
604
|
}, e.prototype.add = function(t) {
|
|
624
605
|
var r;
|
|
625
606
|
if (t && t !== this)
|
|
626
607
|
if (this.closed)
|
|
627
|
-
|
|
608
|
+
mr(t);
|
|
628
609
|
else {
|
|
629
610
|
if (t instanceof e) {
|
|
630
611
|
if (t.closed || t._hasParent(this))
|
|
@@ -641,56 +622,52 @@ var St = function() {
|
|
|
641
622
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
642
623
|
}, e.prototype._removeParent = function(t) {
|
|
643
624
|
var r = this._parentage;
|
|
644
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
625
|
+
r === t ? this._parentage = null : Array.isArray(r) && Yt(r, t);
|
|
645
626
|
}, e.prototype.remove = function(t) {
|
|
646
627
|
var r = this._finalizers;
|
|
647
|
-
r &&
|
|
628
|
+
r && Yt(r, t), t instanceof e && t._removeParent(this);
|
|
648
629
|
}, e.EMPTY = function() {
|
|
649
630
|
var t = new e();
|
|
650
631
|
return t.closed = !0, t;
|
|
651
632
|
}(), e;
|
|
652
|
-
}(),
|
|
653
|
-
function
|
|
654
|
-
return e instanceof
|
|
655
|
-
}
|
|
656
|
-
function
|
|
657
|
-
|
|
658
|
-
}
|
|
659
|
-
var
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
Promise: void 0,
|
|
663
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
664
|
-
useDeprecatedNextContext: !1
|
|
665
|
-
}, Xn = {
|
|
633
|
+
}(), Xr = Tt.EMPTY;
|
|
634
|
+
function Vr(e) {
|
|
635
|
+
return e instanceof Tt || e && "closed" in e && _e(e.remove) && _e(e.add) && _e(e.unsubscribe);
|
|
636
|
+
}
|
|
637
|
+
function mr(e) {
|
|
638
|
+
_e(e) ? e() : e.unsubscribe();
|
|
639
|
+
}
|
|
640
|
+
var zn = {
|
|
641
|
+
Promise: void 0
|
|
642
|
+
}, Zn = {
|
|
666
643
|
setTimeout: function(e, t) {
|
|
667
644
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
668
645
|
r[n - 2] = arguments[n];
|
|
669
|
-
return setTimeout.apply(void 0,
|
|
646
|
+
return setTimeout.apply(void 0, qt([e, t], Zt(r)));
|
|
670
647
|
},
|
|
671
648
|
clearTimeout: function(e) {
|
|
672
649
|
return clearTimeout(e);
|
|
673
650
|
},
|
|
674
651
|
delegate: void 0
|
|
675
652
|
};
|
|
676
|
-
function
|
|
677
|
-
|
|
653
|
+
function qn(e) {
|
|
654
|
+
Zn.setTimeout(function() {
|
|
678
655
|
throw e;
|
|
679
656
|
});
|
|
680
657
|
}
|
|
681
|
-
function
|
|
658
|
+
function vr() {
|
|
682
659
|
}
|
|
683
|
-
function
|
|
660
|
+
function bt(e) {
|
|
684
661
|
e();
|
|
685
662
|
}
|
|
686
|
-
var
|
|
687
|
-
|
|
663
|
+
var zr = function(e) {
|
|
664
|
+
ot(t, e);
|
|
688
665
|
function t(r) {
|
|
689
666
|
var n = e.call(this) || this;
|
|
690
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
667
|
+
return n.isStopped = !1, r ? (n.destination = r, Vr(r) && r.add(n)) : n.destination = Jn, n;
|
|
691
668
|
}
|
|
692
669
|
return t.create = function(r, n, i) {
|
|
693
|
-
return new
|
|
670
|
+
return new Qt(r, n, i);
|
|
694
671
|
}, t.prototype.next = function(r) {
|
|
695
672
|
this.isStopped || this._next(r);
|
|
696
673
|
}, t.prototype.error = function(r) {
|
|
@@ -714,7 +691,7 @@ var Wr = function(e) {
|
|
|
714
691
|
this.unsubscribe();
|
|
715
692
|
}
|
|
716
693
|
}, t;
|
|
717
|
-
}(
|
|
694
|
+
}(Tt), Yn = function() {
|
|
718
695
|
function e(t) {
|
|
719
696
|
this.partialObserver = t;
|
|
720
697
|
}
|
|
@@ -724,7 +701,7 @@ var Wr = function(e) {
|
|
|
724
701
|
try {
|
|
725
702
|
r.next(t);
|
|
726
703
|
} catch (n) {
|
|
727
|
-
|
|
704
|
+
gt(n);
|
|
728
705
|
}
|
|
729
706
|
}, e.prototype.error = function(t) {
|
|
730
707
|
var r = this.partialObserver;
|
|
@@ -732,56 +709,56 @@ var Wr = function(e) {
|
|
|
732
709
|
try {
|
|
733
710
|
r.error(t);
|
|
734
711
|
} catch (n) {
|
|
735
|
-
|
|
712
|
+
gt(n);
|
|
736
713
|
}
|
|
737
714
|
else
|
|
738
|
-
|
|
715
|
+
gt(t);
|
|
739
716
|
}, e.prototype.complete = function() {
|
|
740
717
|
var t = this.partialObserver;
|
|
741
718
|
if (t.complete)
|
|
742
719
|
try {
|
|
743
720
|
t.complete();
|
|
744
721
|
} catch (r) {
|
|
745
|
-
|
|
722
|
+
gt(r);
|
|
746
723
|
}
|
|
747
724
|
}, e;
|
|
748
|
-
}(),
|
|
749
|
-
|
|
725
|
+
}(), Qt = function(e) {
|
|
726
|
+
ot(t, e);
|
|
750
727
|
function t(r, n, i) {
|
|
751
728
|
var o = e.call(this) || this, s;
|
|
752
|
-
return
|
|
729
|
+
return _e(r) || !r ? s = {
|
|
753
730
|
next: r ?? void 0,
|
|
754
731
|
error: n ?? void 0,
|
|
755
732
|
complete: i ?? void 0
|
|
756
|
-
} : s = r, o.destination = new
|
|
733
|
+
} : s = r, o.destination = new Yn(s), o;
|
|
757
734
|
}
|
|
758
735
|
return t;
|
|
759
|
-
}(
|
|
760
|
-
function
|
|
761
|
-
|
|
736
|
+
}(zr);
|
|
737
|
+
function gt(e) {
|
|
738
|
+
qn(e);
|
|
762
739
|
}
|
|
763
|
-
function
|
|
740
|
+
function Qn(e) {
|
|
764
741
|
throw e;
|
|
765
742
|
}
|
|
766
|
-
var
|
|
743
|
+
var Jn = {
|
|
767
744
|
closed: !0,
|
|
768
|
-
next:
|
|
769
|
-
error:
|
|
770
|
-
complete:
|
|
771
|
-
},
|
|
745
|
+
next: vr,
|
|
746
|
+
error: Qn,
|
|
747
|
+
complete: vr
|
|
748
|
+
}, Kn = function() {
|
|
772
749
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
773
750
|
}();
|
|
774
|
-
function
|
|
751
|
+
function ei(e) {
|
|
775
752
|
return e;
|
|
776
753
|
}
|
|
777
|
-
function
|
|
778
|
-
return e.length === 0 ?
|
|
754
|
+
function ti(e) {
|
|
755
|
+
return e.length === 0 ? ei : e.length === 1 ? e[0] : function(r) {
|
|
779
756
|
return e.reduce(function(n, i) {
|
|
780
757
|
return i(n);
|
|
781
758
|
}, r);
|
|
782
759
|
};
|
|
783
760
|
}
|
|
784
|
-
var
|
|
761
|
+
var br = function() {
|
|
785
762
|
function e(t) {
|
|
786
763
|
t && (this._subscribe = t);
|
|
787
764
|
}
|
|
@@ -789,8 +766,8 @@ var pr = function() {
|
|
|
789
766
|
var r = new e();
|
|
790
767
|
return r.source = this, r.operator = t, r;
|
|
791
768
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
792
|
-
var i = this, o =
|
|
793
|
-
return
|
|
769
|
+
var i = this, o = ni(t) ? t : new Qt(t, r, n);
|
|
770
|
+
return bt(function() {
|
|
794
771
|
var s = i, a = s.operator, h = s.source;
|
|
795
772
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
796
773
|
}), o;
|
|
@@ -802,8 +779,8 @@ var pr = function() {
|
|
|
802
779
|
}
|
|
803
780
|
}, e.prototype.forEach = function(t, r) {
|
|
804
781
|
var n = this;
|
|
805
|
-
return r =
|
|
806
|
-
var s = new
|
|
782
|
+
return r = yr(r), new r(function(i, o) {
|
|
783
|
+
var s = new Qt({
|
|
807
784
|
next: function(a) {
|
|
808
785
|
try {
|
|
809
786
|
t(a);
|
|
@@ -819,15 +796,15 @@ var pr = function() {
|
|
|
819
796
|
}, e.prototype._subscribe = function(t) {
|
|
820
797
|
var r;
|
|
821
798
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
822
|
-
}, e.prototype[
|
|
799
|
+
}, e.prototype[Kn] = function() {
|
|
823
800
|
return this;
|
|
824
801
|
}, e.prototype.pipe = function() {
|
|
825
802
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
826
803
|
t[r] = arguments[r];
|
|
827
|
-
return
|
|
804
|
+
return ti(t)(this);
|
|
828
805
|
}, e.prototype.toPromise = function(t) {
|
|
829
806
|
var r = this;
|
|
830
|
-
return t =
|
|
807
|
+
return t = yr(t), new t(function(n, i) {
|
|
831
808
|
var o;
|
|
832
809
|
r.subscribe(function(s) {
|
|
833
810
|
return o = s;
|
|
@@ -841,40 +818,40 @@ var pr = function() {
|
|
|
841
818
|
return new e(t);
|
|
842
819
|
}, e;
|
|
843
820
|
}();
|
|
844
|
-
function
|
|
821
|
+
function yr(e) {
|
|
845
822
|
var t;
|
|
846
|
-
return (t = e ??
|
|
823
|
+
return (t = e ?? zn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
847
824
|
}
|
|
848
|
-
function
|
|
849
|
-
return e &&
|
|
825
|
+
function ri(e) {
|
|
826
|
+
return e && _e(e.next) && _e(e.error) && _e(e.complete);
|
|
850
827
|
}
|
|
851
|
-
function
|
|
852
|
-
return e && e instanceof
|
|
828
|
+
function ni(e) {
|
|
829
|
+
return e && e instanceof zr || ri(e) && Vr(e);
|
|
853
830
|
}
|
|
854
|
-
var
|
|
831
|
+
var ii = kr(function(e) {
|
|
855
832
|
return function() {
|
|
856
833
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
857
834
|
};
|
|
858
|
-
}),
|
|
859
|
-
|
|
835
|
+
}), Zr = function(e) {
|
|
836
|
+
ot(t, e);
|
|
860
837
|
function t() {
|
|
861
838
|
var r = e.call(this) || this;
|
|
862
839
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
863
840
|
}
|
|
864
841
|
return t.prototype.lift = function(r) {
|
|
865
|
-
var n = new
|
|
842
|
+
var n = new _r(this, this);
|
|
866
843
|
return n.operator = r, n;
|
|
867
844
|
}, t.prototype._throwIfClosed = function() {
|
|
868
845
|
if (this.closed)
|
|
869
|
-
throw new
|
|
846
|
+
throw new ii();
|
|
870
847
|
}, t.prototype.next = function(r) {
|
|
871
848
|
var n = this;
|
|
872
|
-
|
|
849
|
+
bt(function() {
|
|
873
850
|
var i, o;
|
|
874
851
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
875
852
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
876
853
|
try {
|
|
877
|
-
for (var s =
|
|
854
|
+
for (var s = zt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
878
855
|
var h = a.value;
|
|
879
856
|
h.next(r);
|
|
880
857
|
}
|
|
@@ -892,7 +869,7 @@ var ti = $r(function(e) {
|
|
|
892
869
|
});
|
|
893
870
|
}, t.prototype.error = function(r) {
|
|
894
871
|
var n = this;
|
|
895
|
-
|
|
872
|
+
bt(function() {
|
|
896
873
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
897
874
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
898
875
|
for (var i = n.observers; i.length; )
|
|
@@ -901,7 +878,7 @@ var ti = $r(function(e) {
|
|
|
901
878
|
});
|
|
902
879
|
}, t.prototype.complete = function() {
|
|
903
880
|
var r = this;
|
|
904
|
-
|
|
881
|
+
bt(function() {
|
|
905
882
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
906
883
|
r.isStopped = !0;
|
|
907
884
|
for (var n = r.observers; n.length; )
|
|
@@ -923,20 +900,20 @@ var ti = $r(function(e) {
|
|
|
923
900
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
924
901
|
}, t.prototype._innerSubscribe = function(r) {
|
|
925
902
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
926
|
-
return o || s ?
|
|
927
|
-
n.currentObservers = null,
|
|
903
|
+
return o || s ? Xr : (this.currentObservers = null, a.push(r), new Tt(function() {
|
|
904
|
+
n.currentObservers = null, Yt(a, r);
|
|
928
905
|
}));
|
|
929
906
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
930
907
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
931
908
|
i ? r.error(o) : s && r.complete();
|
|
932
909
|
}, t.prototype.asObservable = function() {
|
|
933
|
-
var r = new
|
|
910
|
+
var r = new br();
|
|
934
911
|
return r.source = this, r;
|
|
935
912
|
}, t.create = function(r, n) {
|
|
936
|
-
return new
|
|
913
|
+
return new _r(r, n);
|
|
937
914
|
}, t;
|
|
938
|
-
}(
|
|
939
|
-
|
|
915
|
+
}(br), _r = function(e) {
|
|
916
|
+
ot(t, e);
|
|
940
917
|
function t(r, n) {
|
|
941
918
|
var i = e.call(this) || this;
|
|
942
919
|
return i.destination = r, i.source = n, i;
|
|
@@ -952,17 +929,17 @@ var ti = $r(function(e) {
|
|
|
952
929
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
953
930
|
}, t.prototype._subscribe = function(r) {
|
|
954
931
|
var n, i;
|
|
955
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
932
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Xr;
|
|
956
933
|
}, t;
|
|
957
|
-
}(
|
|
934
|
+
}(Zr), qr = {
|
|
958
935
|
now: function() {
|
|
959
|
-
return (
|
|
936
|
+
return (qr.delegate || Date).now();
|
|
960
937
|
},
|
|
961
938
|
delegate: void 0
|
|
962
|
-
},
|
|
963
|
-
|
|
939
|
+
}, oi = function(e) {
|
|
940
|
+
ot(t, e);
|
|
964
941
|
function t(r, n, i) {
|
|
965
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
942
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = qr);
|
|
966
943
|
var o = e.call(this) || this;
|
|
967
944
|
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;
|
|
968
945
|
}
|
|
@@ -982,24 +959,24 @@ var ti = $r(function(e) {
|
|
|
982
959
|
l && o.splice(0, l + 1);
|
|
983
960
|
}
|
|
984
961
|
}, t;
|
|
985
|
-
}(
|
|
986
|
-
const
|
|
987
|
-
if (
|
|
988
|
-
const r = new
|
|
989
|
-
|
|
962
|
+
}(Zr);
|
|
963
|
+
const Er = [], xr = {}, si = (e, t = 0) => {
|
|
964
|
+
if (Er.indexOf(e) == -1) {
|
|
965
|
+
const r = new oi(t);
|
|
966
|
+
xr[e] = r, Er.push(e);
|
|
990
967
|
}
|
|
991
|
-
return
|
|
968
|
+
return xr[e];
|
|
992
969
|
}, Ne = [];
|
|
993
|
-
function
|
|
970
|
+
function ai(e, t) {
|
|
994
971
|
return {
|
|
995
|
-
subscribe:
|
|
972
|
+
subscribe: Ht(e, t).subscribe
|
|
996
973
|
};
|
|
997
974
|
}
|
|
998
|
-
function
|
|
975
|
+
function Ht(e, t = se) {
|
|
999
976
|
let r;
|
|
1000
977
|
const n = /* @__PURE__ */ new Set();
|
|
1001
978
|
function i(a) {
|
|
1002
|
-
if (
|
|
979
|
+
if (Gr(e, a) && (e = a, r)) {
|
|
1003
980
|
const h = !Ne.length;
|
|
1004
981
|
for (const l of n)
|
|
1005
982
|
l[1](), Ne.push(l, e);
|
|
@@ -1021,146 +998,185 @@ function Tt(e, t = se) {
|
|
|
1021
998
|
}
|
|
1022
999
|
return { set: i, update: o, subscribe: s };
|
|
1023
1000
|
}
|
|
1024
|
-
function
|
|
1001
|
+
function Ge(e, t, r) {
|
|
1025
1002
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1026
1003
|
if (!i.every(Boolean))
|
|
1027
1004
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1028
1005
|
const o = t.length < 2;
|
|
1029
|
-
return
|
|
1006
|
+
return ai(r, (s, a) => {
|
|
1030
1007
|
let h = !1;
|
|
1031
1008
|
const l = [];
|
|
1032
1009
|
let f = 0, p = se;
|
|
1033
|
-
const
|
|
1010
|
+
const m = () => {
|
|
1034
1011
|
if (f)
|
|
1035
1012
|
return;
|
|
1036
1013
|
p();
|
|
1037
1014
|
const H = t(n ? l[0] : l, s, a);
|
|
1038
|
-
o ? s(H) : p =
|
|
1015
|
+
o ? s(H) : p = ur(H) ? H : se;
|
|
1039
1016
|
}, y = i.map(
|
|
1040
|
-
(H, w) =>
|
|
1017
|
+
(H, w) => jr(
|
|
1041
1018
|
H,
|
|
1042
1019
|
(C) => {
|
|
1043
|
-
l[w] = C, f &= ~(1 << w), h &&
|
|
1020
|
+
l[w] = C, f &= ~(1 << w), h && m();
|
|
1044
1021
|
},
|
|
1045
1022
|
() => {
|
|
1046
1023
|
f |= 1 << w;
|
|
1047
1024
|
}
|
|
1048
1025
|
)
|
|
1049
1026
|
);
|
|
1050
|
-
return h = !0,
|
|
1027
|
+
return h = !0, m(), function() {
|
|
1051
1028
|
Ae(y), p(), h = !1;
|
|
1052
1029
|
};
|
|
1053
1030
|
});
|
|
1054
1031
|
}
|
|
1055
|
-
var
|
|
1056
|
-
function
|
|
1032
|
+
var ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1033
|
+
function li(e) {
|
|
1057
1034
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1058
1035
|
}
|
|
1059
|
-
var
|
|
1060
|
-
return
|
|
1036
|
+
var hi = function(t) {
|
|
1037
|
+
return fi(t) && !ci(t);
|
|
1061
1038
|
};
|
|
1062
|
-
function
|
|
1039
|
+
function fi(e) {
|
|
1063
1040
|
return !!e && typeof e == "object";
|
|
1064
1041
|
}
|
|
1065
|
-
function
|
|
1042
|
+
function ci(e) {
|
|
1066
1043
|
var t = Object.prototype.toString.call(e);
|
|
1067
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1044
|
+
return t === "[object RegExp]" || t === "[object Date]" || gi(e);
|
|
1068
1045
|
}
|
|
1069
|
-
var
|
|
1070
|
-
function
|
|
1071
|
-
return e.$$typeof ===
|
|
1046
|
+
var di = typeof Symbol == "function" && Symbol.for, pi = di ? Symbol.for("react.element") : 60103;
|
|
1047
|
+
function gi(e) {
|
|
1048
|
+
return e.$$typeof === pi;
|
|
1072
1049
|
}
|
|
1073
|
-
function
|
|
1050
|
+
function mi(e) {
|
|
1074
1051
|
return Array.isArray(e) ? [] : {};
|
|
1075
1052
|
}
|
|
1076
|
-
function
|
|
1077
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1053
|
+
function nt(e, t) {
|
|
1054
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? De(mi(e), e, t) : e;
|
|
1078
1055
|
}
|
|
1079
|
-
function
|
|
1056
|
+
function vi(e, t, r) {
|
|
1080
1057
|
return e.concat(t).map(function(n) {
|
|
1081
|
-
return
|
|
1058
|
+
return nt(n, r);
|
|
1082
1059
|
});
|
|
1083
1060
|
}
|
|
1084
|
-
function
|
|
1061
|
+
function bi(e, t) {
|
|
1085
1062
|
if (!t.customMerge)
|
|
1086
|
-
return
|
|
1063
|
+
return De;
|
|
1087
1064
|
var r = t.customMerge(e);
|
|
1088
|
-
return typeof r == "function" ? r :
|
|
1065
|
+
return typeof r == "function" ? r : De;
|
|
1089
1066
|
}
|
|
1090
|
-
function
|
|
1067
|
+
function yi(e) {
|
|
1091
1068
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1092
1069
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1093
1070
|
}) : [];
|
|
1094
1071
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return Object.keys(e).concat(
|
|
1072
|
+
function wr(e) {
|
|
1073
|
+
return Object.keys(e).concat(yi(e));
|
|
1097
1074
|
}
|
|
1098
|
-
function
|
|
1075
|
+
function Yr(e, t) {
|
|
1099
1076
|
try {
|
|
1100
1077
|
return t in e;
|
|
1101
1078
|
} catch {
|
|
1102
1079
|
return !1;
|
|
1103
1080
|
}
|
|
1104
1081
|
}
|
|
1105
|
-
function
|
|
1106
|
-
return
|
|
1082
|
+
function _i(e, t) {
|
|
1083
|
+
return Yr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1107
1084
|
}
|
|
1108
|
-
function
|
|
1085
|
+
function Ei(e, t, r) {
|
|
1109
1086
|
var n = {};
|
|
1110
|
-
return r.isMergeableObject(e) &&
|
|
1111
|
-
n[i] =
|
|
1112
|
-
}),
|
|
1113
|
-
|
|
1087
|
+
return r.isMergeableObject(e) && wr(e).forEach(function(i) {
|
|
1088
|
+
n[i] = nt(e[i], r);
|
|
1089
|
+
}), wr(t).forEach(function(i) {
|
|
1090
|
+
_i(e, i) || (Yr(e, i) && r.isMergeableObject(t[i]) ? n[i] = bi(i, r)(e[i], t[i], r) : n[i] = nt(t[i], r));
|
|
1114
1091
|
}), n;
|
|
1115
1092
|
}
|
|
1116
|
-
function
|
|
1117
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1093
|
+
function De(e, t, r) {
|
|
1094
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || vi, r.isMergeableObject = r.isMergeableObject || hi, r.cloneUnlessOtherwiseSpecified = nt;
|
|
1118
1095
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1119
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1096
|
+
return o ? n ? r.arrayMerge(e, t, r) : Ei(e, t, r) : nt(t, r);
|
|
1120
1097
|
}
|
|
1121
|
-
|
|
1098
|
+
De.all = function(t, r) {
|
|
1122
1099
|
if (!Array.isArray(t))
|
|
1123
1100
|
throw new Error("first argument should be an array");
|
|
1124
1101
|
return t.reduce(function(n, i) {
|
|
1125
|
-
return
|
|
1102
|
+
return De(n, i, r);
|
|
1126
1103
|
}, {});
|
|
1127
1104
|
};
|
|
1128
|
-
var
|
|
1129
|
-
const
|
|
1130
|
-
function
|
|
1131
|
-
|
|
1105
|
+
var xi = De, wi = xi;
|
|
1106
|
+
const Si = /* @__PURE__ */ li(wi);
|
|
1107
|
+
var Jt = function(e, t) {
|
|
1108
|
+
return Jt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1109
|
+
r.__proto__ = n;
|
|
1110
|
+
} || function(r, n) {
|
|
1111
|
+
for (var i in n)
|
|
1112
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1113
|
+
}, Jt(e, t);
|
|
1114
|
+
};
|
|
1115
|
+
function At(e, t) {
|
|
1116
|
+
if (typeof t != "function" && t !== null)
|
|
1117
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1118
|
+
Jt(e, t);
|
|
1119
|
+
function r() {
|
|
1120
|
+
this.constructor = e;
|
|
1121
|
+
}
|
|
1122
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1123
|
+
}
|
|
1124
|
+
var le = function() {
|
|
1125
|
+
return le = Object.assign || function(t) {
|
|
1126
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1127
|
+
r = arguments[n];
|
|
1128
|
+
for (var o in r)
|
|
1129
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1130
|
+
}
|
|
1131
|
+
return t;
|
|
1132
|
+
}, le.apply(this, arguments);
|
|
1133
|
+
};
|
|
1134
|
+
function Ti(e, t) {
|
|
1135
|
+
var r = {};
|
|
1136
|
+
for (var n in e)
|
|
1137
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1138
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1139
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1140
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1141
|
+
return r;
|
|
1142
|
+
}
|
|
1143
|
+
function Ft(e, t, r) {
|
|
1144
|
+
if (r || arguments.length === 2)
|
|
1145
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1146
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1147
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1148
|
+
}
|
|
1149
|
+
function Ut(e, t) {
|
|
1150
|
+
var r = t && t.cache ? t.cache : Ci, n = t && t.serializer ? t.serializer : Li, i = t && t.strategy ? t.strategy : Bi;
|
|
1132
1151
|
return i(e, {
|
|
1133
1152
|
cache: r,
|
|
1134
1153
|
serializer: n
|
|
1135
1154
|
});
|
|
1136
1155
|
}
|
|
1137
|
-
function
|
|
1156
|
+
function Hi(e) {
|
|
1138
1157
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1139
1158
|
}
|
|
1140
|
-
function
|
|
1141
|
-
var i =
|
|
1159
|
+
function Ai(e, t, r, n) {
|
|
1160
|
+
var i = Hi(n) ? n : r(n), o = t.get(i);
|
|
1142
1161
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1143
1162
|
}
|
|
1144
|
-
function
|
|
1163
|
+
function Qr(e, t, r) {
|
|
1145
1164
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1146
1165
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1147
1166
|
}
|
|
1148
|
-
function
|
|
1167
|
+
function Jr(e, t, r, n, i) {
|
|
1149
1168
|
return r.bind(t, e, n, i);
|
|
1150
1169
|
}
|
|
1151
|
-
function
|
|
1152
|
-
var r = e.length === 1 ?
|
|
1153
|
-
return
|
|
1170
|
+
function Bi(e, t) {
|
|
1171
|
+
var r = e.length === 1 ? Ai : Qr;
|
|
1172
|
+
return Jr(e, this, r, t.cache.create(), t.serializer);
|
|
1154
1173
|
}
|
|
1155
|
-
function
|
|
1156
|
-
return
|
|
1174
|
+
function Ii(e, t) {
|
|
1175
|
+
return Jr(e, this, Qr, t.cache.create(), t.serializer);
|
|
1157
1176
|
}
|
|
1158
|
-
function
|
|
1159
|
-
return or(e, this, zr, t.cache.create(), t.serializer);
|
|
1160
|
-
}
|
|
1161
|
-
var Hi = function() {
|
|
1177
|
+
var Li = function() {
|
|
1162
1178
|
return JSON.stringify(arguments);
|
|
1163
|
-
},
|
|
1179
|
+
}, Oi = (
|
|
1164
1180
|
/** @class */
|
|
1165
1181
|
function() {
|
|
1166
1182
|
function e() {
|
|
@@ -1172,62 +1188,71 @@ var Hi = function() {
|
|
|
1172
1188
|
this.cache[t] = r;
|
|
1173
1189
|
}, e;
|
|
1174
1190
|
}()
|
|
1175
|
-
),
|
|
1191
|
+
), Ci = {
|
|
1176
1192
|
create: function() {
|
|
1177
|
-
return new
|
|
1193
|
+
return new Oi();
|
|
1178
1194
|
}
|
|
1179
|
-
},
|
|
1180
|
-
variadic:
|
|
1181
|
-
|
|
1182
|
-
|
|
1195
|
+
}, $t = {
|
|
1196
|
+
variadic: Ii
|
|
1197
|
+
}, Et = function() {
|
|
1198
|
+
return Et = Object.assign || function(t) {
|
|
1199
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1200
|
+
r = arguments[n];
|
|
1201
|
+
for (var o in r)
|
|
1202
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1203
|
+
}
|
|
1204
|
+
return t;
|
|
1205
|
+
}, Et.apply(this, arguments);
|
|
1206
|
+
};
|
|
1207
|
+
var N;
|
|
1183
1208
|
(function(e) {
|
|
1184
1209
|
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";
|
|
1185
1210
|
})(N || (N = {}));
|
|
1186
|
-
var
|
|
1211
|
+
var G;
|
|
1187
1212
|
(function(e) {
|
|
1188
1213
|
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";
|
|
1189
|
-
})(
|
|
1190
|
-
var
|
|
1214
|
+
})(G || (G = {}));
|
|
1215
|
+
var Fe;
|
|
1191
1216
|
(function(e) {
|
|
1192
1217
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1193
|
-
})(
|
|
1194
|
-
function
|
|
1195
|
-
return e.type ===
|
|
1218
|
+
})(Fe || (Fe = {}));
|
|
1219
|
+
function Sr(e) {
|
|
1220
|
+
return e.type === G.literal;
|
|
1196
1221
|
}
|
|
1197
|
-
function
|
|
1198
|
-
return e.type ===
|
|
1222
|
+
function Pi(e) {
|
|
1223
|
+
return e.type === G.argument;
|
|
1199
1224
|
}
|
|
1200
|
-
function
|
|
1201
|
-
return e.type ===
|
|
1225
|
+
function Kr(e) {
|
|
1226
|
+
return e.type === G.number;
|
|
1202
1227
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return e.type ===
|
|
1228
|
+
function en(e) {
|
|
1229
|
+
return e.type === G.date;
|
|
1205
1230
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return e.type ===
|
|
1231
|
+
function tn(e) {
|
|
1232
|
+
return e.type === G.time;
|
|
1208
1233
|
}
|
|
1209
|
-
function
|
|
1210
|
-
return e.type ===
|
|
1234
|
+
function rn(e) {
|
|
1235
|
+
return e.type === G.select;
|
|
1211
1236
|
}
|
|
1212
|
-
function
|
|
1213
|
-
return e.type ===
|
|
1237
|
+
function nn(e) {
|
|
1238
|
+
return e.type === G.plural;
|
|
1214
1239
|
}
|
|
1215
|
-
function
|
|
1216
|
-
return e.type ===
|
|
1240
|
+
function Ni(e) {
|
|
1241
|
+
return e.type === G.pound;
|
|
1217
1242
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return e.type ===
|
|
1243
|
+
function on(e) {
|
|
1244
|
+
return e.type === G.tag;
|
|
1220
1245
|
}
|
|
1221
|
-
function
|
|
1222
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1246
|
+
function sn(e) {
|
|
1247
|
+
return !!(e && typeof e == "object" && e.type === Fe.number);
|
|
1223
1248
|
}
|
|
1224
|
-
function
|
|
1225
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1249
|
+
function Kt(e) {
|
|
1250
|
+
return !!(e && typeof e == "object" && e.type === Fe.dateTime);
|
|
1226
1251
|
}
|
|
1227
|
-
var
|
|
1228
|
-
function
|
|
1252
|
+
var an = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Mi = /(?:[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;
|
|
1253
|
+
function Ri(e) {
|
|
1229
1254
|
var t = {};
|
|
1230
|
-
return e.replace(
|
|
1255
|
+
return e.replace(Mi, function(r) {
|
|
1231
1256
|
var n = r.length;
|
|
1232
1257
|
switch (r[0]) {
|
|
1233
1258
|
case "G":
|
|
@@ -1316,12 +1341,22 @@ function Ci(e) {
|
|
|
1316
1341
|
return "";
|
|
1317
1342
|
}), t;
|
|
1318
1343
|
}
|
|
1319
|
-
var
|
|
1320
|
-
function
|
|
1344
|
+
var j = function() {
|
|
1345
|
+
return j = Object.assign || function(t) {
|
|
1346
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1347
|
+
r = arguments[n];
|
|
1348
|
+
for (var o in r)
|
|
1349
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1350
|
+
}
|
|
1351
|
+
return t;
|
|
1352
|
+
}, j.apply(this, arguments);
|
|
1353
|
+
};
|
|
1354
|
+
var Di = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1355
|
+
function Fi(e) {
|
|
1321
1356
|
if (e.length === 0)
|
|
1322
1357
|
throw new Error("Number skeleton cannot be empty");
|
|
1323
|
-
for (var t = e.split(
|
|
1324
|
-
return
|
|
1358
|
+
for (var t = e.split(Di).filter(function(m) {
|
|
1359
|
+
return m.length > 0;
|
|
1325
1360
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1326
1361
|
var o = i[n], s = o.split("/");
|
|
1327
1362
|
if (s.length === 0)
|
|
@@ -1335,17 +1370,17 @@ function Ni(e) {
|
|
|
1335
1370
|
}
|
|
1336
1371
|
return r;
|
|
1337
1372
|
}
|
|
1338
|
-
function
|
|
1373
|
+
function Ui(e) {
|
|
1339
1374
|
return e.replace(/^(.*?)-/, "");
|
|
1340
1375
|
}
|
|
1341
|
-
var
|
|
1342
|
-
function
|
|
1376
|
+
var Tr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, un = /^(@+)?(\+|#+)?[rs]?$/g, $i = /(\*)(0+)|(#+)(0+)|(0+)/g, ln = /^(0+)$/;
|
|
1377
|
+
function Hr(e) {
|
|
1343
1378
|
var t = {};
|
|
1344
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1379
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(un, function(r, n, i) {
|
|
1345
1380
|
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)), "";
|
|
1346
1381
|
}), t;
|
|
1347
1382
|
}
|
|
1348
|
-
function
|
|
1383
|
+
function hn(e) {
|
|
1349
1384
|
switch (e) {
|
|
1350
1385
|
case "sign-auto":
|
|
1351
1386
|
return {
|
|
@@ -1385,7 +1420,7 @@ function sn(e) {
|
|
|
1385
1420
|
};
|
|
1386
1421
|
}
|
|
1387
1422
|
}
|
|
1388
|
-
function
|
|
1423
|
+
function Gi(e) {
|
|
1389
1424
|
var t;
|
|
1390
1425
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1391
1426
|
notation: "engineering"
|
|
@@ -1393,17 +1428,17 @@ function Di(e) {
|
|
|
1393
1428
|
notation: "scientific"
|
|
1394
1429
|
}, e = e.slice(1)), t) {
|
|
1395
1430
|
var r = e.slice(0, 2);
|
|
1396
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1431
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ln.test(e))
|
|
1397
1432
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1398
1433
|
t.minimumIntegerDigits = e.length;
|
|
1399
1434
|
}
|
|
1400
1435
|
return t;
|
|
1401
1436
|
}
|
|
1402
|
-
function
|
|
1403
|
-
var t = {}, r =
|
|
1437
|
+
function Ar(e) {
|
|
1438
|
+
var t = {}, r = hn(e);
|
|
1404
1439
|
return r || t;
|
|
1405
1440
|
}
|
|
1406
|
-
function
|
|
1441
|
+
function ji(e) {
|
|
1407
1442
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1408
1443
|
var i = n[r];
|
|
1409
1444
|
switch (i.stem) {
|
|
@@ -1427,7 +1462,7 @@ function Fi(e) {
|
|
|
1427
1462
|
continue;
|
|
1428
1463
|
case "measure-unit":
|
|
1429
1464
|
case "unit":
|
|
1430
|
-
t.style = "unit", t.unit =
|
|
1465
|
+
t.style = "unit", t.unit = Ui(i.options[0]);
|
|
1431
1466
|
continue;
|
|
1432
1467
|
case "compact-short":
|
|
1433
1468
|
case "K":
|
|
@@ -1438,13 +1473,13 @@ function Fi(e) {
|
|
|
1438
1473
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1439
1474
|
continue;
|
|
1440
1475
|
case "scientific":
|
|
1441
|
-
t =
|
|
1442
|
-
return
|
|
1476
|
+
t = j(j(j({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
|
1477
|
+
return j(j({}, h), Ar(l));
|
|
1443
1478
|
}, {}));
|
|
1444
1479
|
continue;
|
|
1445
1480
|
case "engineering":
|
|
1446
|
-
t =
|
|
1447
|
-
return
|
|
1481
|
+
t = j(j(j({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
|
1482
|
+
return j(j({}, h), Ar(l));
|
|
1448
1483
|
}, {}));
|
|
1449
1484
|
continue;
|
|
1450
1485
|
case "notation-simple":
|
|
@@ -1489,11 +1524,11 @@ function Fi(e) {
|
|
|
1489
1524
|
case "integer-width":
|
|
1490
1525
|
if (i.options.length > 1)
|
|
1491
1526
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1492
|
-
i.options[0].replace(
|
|
1527
|
+
i.options[0].replace($i, function(h, l, f, p, m, y) {
|
|
1493
1528
|
if (l)
|
|
1494
1529
|
t.minimumIntegerDigits = f.length;
|
|
1495
1530
|
else {
|
|
1496
|
-
if (p &&
|
|
1531
|
+
if (p && m)
|
|
1497
1532
|
throw new Error("We currently do not support maximum integer digits");
|
|
1498
1533
|
if (y)
|
|
1499
1534
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1502,32 +1537,32 @@ function Fi(e) {
|
|
|
1502
1537
|
});
|
|
1503
1538
|
continue;
|
|
1504
1539
|
}
|
|
1505
|
-
if (
|
|
1540
|
+
if (ln.test(i.stem)) {
|
|
1506
1541
|
t.minimumIntegerDigits = i.stem.length;
|
|
1507
1542
|
continue;
|
|
1508
1543
|
}
|
|
1509
|
-
if (
|
|
1544
|
+
if (Tr.test(i.stem)) {
|
|
1510
1545
|
if (i.options.length > 1)
|
|
1511
1546
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1512
|
-
i.stem.replace(
|
|
1513
|
-
return f === "*" ? t.minimumFractionDigits = l.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length :
|
|
1547
|
+
i.stem.replace(Tr, function(h, l, f, p, m, y) {
|
|
1548
|
+
return f === "*" ? t.minimumFractionDigits = l.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length : m && y ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1514
1549
|
});
|
|
1515
1550
|
var o = i.options[0];
|
|
1516
|
-
o === "w" ? t =
|
|
1551
|
+
o === "w" ? t = j(j({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = j(j({}, t), Hr(o)));
|
|
1517
1552
|
continue;
|
|
1518
1553
|
}
|
|
1519
|
-
if (
|
|
1520
|
-
t =
|
|
1554
|
+
if (un.test(i.stem)) {
|
|
1555
|
+
t = j(j({}, t), Hr(i.stem));
|
|
1521
1556
|
continue;
|
|
1522
1557
|
}
|
|
1523
|
-
var s =
|
|
1524
|
-
s && (t =
|
|
1525
|
-
var a =
|
|
1526
|
-
a && (t =
|
|
1558
|
+
var s = hn(i.stem);
|
|
1559
|
+
s && (t = j(j({}, t), s));
|
|
1560
|
+
var a = Gi(i.stem);
|
|
1561
|
+
a && (t = j(j({}, t), a));
|
|
1527
1562
|
}
|
|
1528
1563
|
return t;
|
|
1529
1564
|
}
|
|
1530
|
-
var
|
|
1565
|
+
var mt = {
|
|
1531
1566
|
"001": [
|
|
1532
1567
|
"H",
|
|
1533
1568
|
"h"
|
|
@@ -2942,13 +2977,13 @@ var gt = {
|
|
|
2942
2977
|
"h"
|
|
2943
2978
|
]
|
|
2944
2979
|
};
|
|
2945
|
-
function
|
|
2980
|
+
function Wi(e, t) {
|
|
2946
2981
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2947
2982
|
var i = e.charAt(n);
|
|
2948
2983
|
if (i === "j") {
|
|
2949
2984
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2950
2985
|
o++, n++;
|
|
2951
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l =
|
|
2986
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = ki(t);
|
|
2952
2987
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2953
2988
|
r += h;
|
|
2954
2989
|
for (; s-- > 0; )
|
|
@@ -2958,7 +2993,7 @@ function Ui(e, t) {
|
|
|
2958
2993
|
}
|
|
2959
2994
|
return r;
|
|
2960
2995
|
}
|
|
2961
|
-
function
|
|
2996
|
+
function ki(e) {
|
|
2962
2997
|
var t = e.hourCycle;
|
|
2963
2998
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2964
2999
|
e.hourCycles && // @ts-ignore
|
|
@@ -2977,23 +3012,23 @@ function $i(e) {
|
|
|
2977
3012
|
}
|
|
2978
3013
|
var r = e.language, n;
|
|
2979
3014
|
r !== "root" && (n = e.maximize().region);
|
|
2980
|
-
var i =
|
|
3015
|
+
var i = mt[n || ""] || mt[r || ""] || mt["".concat(r, "-001")] || mt["001"];
|
|
2981
3016
|
return i[0];
|
|
2982
3017
|
}
|
|
2983
|
-
var
|
|
3018
|
+
var Gt, Xi = new RegExp("^".concat(an.source, "*")), Vi = new RegExp("".concat(an.source, "*$"));
|
|
2984
3019
|
function R(e, t) {
|
|
2985
3020
|
return { start: e, end: t };
|
|
2986
3021
|
}
|
|
2987
|
-
var
|
|
3022
|
+
var zi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Zi = !!String.fromCodePoint, qi = !!Object.fromEntries, Yi = !!String.prototype.codePointAt, Qi = !!String.prototype.trimStart, Ji = !!String.prototype.trimEnd, Ki = !!Number.isSafeInteger, eo = Ki ? Number.isSafeInteger : function(e) {
|
|
2988
3023
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2989
|
-
},
|
|
3024
|
+
}, er = !0;
|
|
2990
3025
|
try {
|
|
2991
|
-
var
|
|
2992
|
-
|
|
3026
|
+
var to = cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3027
|
+
er = ((Gt = to.exec("a")) === null || Gt === void 0 ? void 0 : Gt[0]) === "a";
|
|
2993
3028
|
} catch {
|
|
2994
|
-
|
|
3029
|
+
er = !1;
|
|
2995
3030
|
}
|
|
2996
|
-
var
|
|
3031
|
+
var Br = zi ? (
|
|
2997
3032
|
// Native
|
|
2998
3033
|
function(t, r, n) {
|
|
2999
3034
|
return t.startsWith(r, n);
|
|
@@ -3003,7 +3038,7 @@ var Sr = Wi ? (
|
|
|
3003
3038
|
function(t, r, n) {
|
|
3004
3039
|
return t.slice(n, n + r.length) === r;
|
|
3005
3040
|
}
|
|
3006
|
-
),
|
|
3041
|
+
), tr = Zi ? String.fromCodePoint : (
|
|
3007
3042
|
// IE11
|
|
3008
3043
|
function() {
|
|
3009
3044
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3015,9 +3050,9 @@ var Sr = Wi ? (
|
|
|
3015
3050
|
}
|
|
3016
3051
|
return n;
|
|
3017
3052
|
}
|
|
3018
|
-
),
|
|
3053
|
+
), Ir = (
|
|
3019
3054
|
// native
|
|
3020
|
-
|
|
3055
|
+
qi ? Object.fromEntries : (
|
|
3021
3056
|
// Ponyfill
|
|
3022
3057
|
function(t) {
|
|
3023
3058
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3027,7 +3062,7 @@ var Sr = Wi ? (
|
|
|
3027
3062
|
return r;
|
|
3028
3063
|
}
|
|
3029
3064
|
)
|
|
3030
|
-
),
|
|
3065
|
+
), fn = Yi ? (
|
|
3031
3066
|
// Native
|
|
3032
3067
|
function(t, r) {
|
|
3033
3068
|
return t.codePointAt(r);
|
|
@@ -3041,7 +3076,7 @@ var Sr = Wi ? (
|
|
|
3041
3076
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3042
3077
|
}
|
|
3043
3078
|
}
|
|
3044
|
-
),
|
|
3079
|
+
), ro = Qi ? (
|
|
3045
3080
|
// Native
|
|
3046
3081
|
function(t) {
|
|
3047
3082
|
return t.trimStart();
|
|
@@ -3049,9 +3084,9 @@ var Sr = Wi ? (
|
|
|
3049
3084
|
) : (
|
|
3050
3085
|
// Ponyfill
|
|
3051
3086
|
function(t) {
|
|
3052
|
-
return t.replace(
|
|
3087
|
+
return t.replace(Xi, "");
|
|
3053
3088
|
}
|
|
3054
|
-
),
|
|
3089
|
+
), no = Ji ? (
|
|
3055
3090
|
// Native
|
|
3056
3091
|
function(t) {
|
|
3057
3092
|
return t.trimEnd();
|
|
@@ -3059,32 +3094,32 @@ var Sr = Wi ? (
|
|
|
3059
3094
|
) : (
|
|
3060
3095
|
// Ponyfill
|
|
3061
3096
|
function(t) {
|
|
3062
|
-
return t.replace(
|
|
3097
|
+
return t.replace(Vi, "");
|
|
3063
3098
|
}
|
|
3064
3099
|
);
|
|
3065
|
-
function
|
|
3100
|
+
function cn(e, t) {
|
|
3066
3101
|
return new RegExp(e, t);
|
|
3067
3102
|
}
|
|
3068
|
-
var
|
|
3069
|
-
if (
|
|
3070
|
-
var
|
|
3071
|
-
|
|
3103
|
+
var rr;
|
|
3104
|
+
if (er) {
|
|
3105
|
+
var Lr = cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3106
|
+
rr = function(t, r) {
|
|
3072
3107
|
var n;
|
|
3073
|
-
|
|
3074
|
-
var i =
|
|
3108
|
+
Lr.lastIndex = r;
|
|
3109
|
+
var i = Lr.exec(t);
|
|
3075
3110
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3076
3111
|
};
|
|
3077
3112
|
} else
|
|
3078
|
-
|
|
3113
|
+
rr = function(t, r) {
|
|
3079
3114
|
for (var n = []; ; ) {
|
|
3080
|
-
var i =
|
|
3081
|
-
if (i === void 0 ||
|
|
3115
|
+
var i = fn(t, r);
|
|
3116
|
+
if (i === void 0 || dn(i) || ao(i))
|
|
3082
3117
|
break;
|
|
3083
3118
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3084
3119
|
}
|
|
3085
|
-
return
|
|
3120
|
+
return tr.apply(void 0, n);
|
|
3086
3121
|
};
|
|
3087
|
-
var
|
|
3122
|
+
var io = (
|
|
3088
3123
|
/** @class */
|
|
3089
3124
|
function() {
|
|
3090
3125
|
function e(t, r) {
|
|
@@ -3108,14 +3143,14 @@ var eo = (
|
|
|
3108
3143
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3109
3144
|
var a = this.clonePosition();
|
|
3110
3145
|
this.bump(), i.push({
|
|
3111
|
-
type:
|
|
3146
|
+
type: G.pound,
|
|
3112
3147
|
location: R(a, this.clonePosition())
|
|
3113
3148
|
});
|
|
3114
3149
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3115
3150
|
if (n)
|
|
3116
3151
|
break;
|
|
3117
3152
|
return this.error(N.UNMATCHED_CLOSING_TAG, R(this.clonePosition(), this.clonePosition()));
|
|
3118
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3153
|
+
} else if (o === 60 && !this.ignoreTag && nr(this.peek() || 0)) {
|
|
3119
3154
|
var s = this.parseTag(t, r);
|
|
3120
3155
|
if (s.err)
|
|
3121
3156
|
return s;
|
|
@@ -3136,7 +3171,7 @@ var eo = (
|
|
|
3136
3171
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3137
3172
|
return {
|
|
3138
3173
|
val: {
|
|
3139
|
-
type:
|
|
3174
|
+
type: G.literal,
|
|
3140
3175
|
value: "<".concat(i, "/>"),
|
|
3141
3176
|
location: R(n, this.clonePosition())
|
|
3142
3177
|
},
|
|
@@ -3148,12 +3183,12 @@ var eo = (
|
|
|
3148
3183
|
return o;
|
|
3149
3184
|
var s = o.val, a = this.clonePosition();
|
|
3150
3185
|
if (this.bumpIf("</")) {
|
|
3151
|
-
if (this.isEOF() || !
|
|
3186
|
+
if (this.isEOF() || !nr(this.char()))
|
|
3152
3187
|
return this.error(N.INVALID_TAG, R(a, this.clonePosition()));
|
|
3153
3188
|
var h = this.clonePosition(), l = this.parseTagName();
|
|
3154
3189
|
return i !== l ? this.error(N.UNMATCHED_CLOSING_TAG, R(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3155
3190
|
val: {
|
|
3156
|
-
type:
|
|
3191
|
+
type: G.tag,
|
|
3157
3192
|
value: i,
|
|
3158
3193
|
children: s,
|
|
3159
3194
|
location: R(n, this.clonePosition())
|
|
@@ -3166,7 +3201,7 @@ var eo = (
|
|
|
3166
3201
|
return this.error(N.INVALID_TAG, R(n, this.clonePosition()));
|
|
3167
3202
|
}, e.prototype.parseTagName = function() {
|
|
3168
3203
|
var t = this.offset();
|
|
3169
|
-
for (this.bump(); !this.isEOF() &&
|
|
3204
|
+
for (this.bump(); !this.isEOF() && so(this.char()); )
|
|
3170
3205
|
this.bump();
|
|
3171
3206
|
return this.message.slice(t, this.offset());
|
|
3172
3207
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3190,12 +3225,12 @@ var eo = (
|
|
|
3190
3225
|
}
|
|
3191
3226
|
var h = R(n, this.clonePosition());
|
|
3192
3227
|
return {
|
|
3193
|
-
val: { type:
|
|
3228
|
+
val: { type: G.literal, value: i, location: h },
|
|
3194
3229
|
err: null
|
|
3195
3230
|
};
|
|
3196
3231
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3197
3232
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3198
|
-
!
|
|
3233
|
+
!oo(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3199
3234
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3200
3235
|
if (this.isEOF() || this.char() !== 39)
|
|
3201
3236
|
return null;
|
|
@@ -3229,12 +3264,12 @@ var eo = (
|
|
|
3229
3264
|
r.push(n);
|
|
3230
3265
|
this.bump();
|
|
3231
3266
|
}
|
|
3232
|
-
return
|
|
3267
|
+
return tr.apply(void 0, r);
|
|
3233
3268
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3234
3269
|
if (this.isEOF())
|
|
3235
3270
|
return null;
|
|
3236
3271
|
var n = this.char();
|
|
3237
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3272
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), tr(n));
|
|
3238
3273
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3239
3274
|
var n = this.clonePosition();
|
|
3240
3275
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3250,7 +3285,7 @@ var eo = (
|
|
|
3250
3285
|
case 125:
|
|
3251
3286
|
return this.bump(), {
|
|
3252
3287
|
val: {
|
|
3253
|
-
type:
|
|
3288
|
+
type: G.argument,
|
|
3254
3289
|
// value does not include the opening and closing braces.
|
|
3255
3290
|
value: i,
|
|
3256
3291
|
location: R(n, this.clonePosition())
|
|
@@ -3263,7 +3298,7 @@ var eo = (
|
|
|
3263
3298
|
return this.error(N.MALFORMED_ARGUMENT, R(n, this.clonePosition()));
|
|
3264
3299
|
}
|
|
3265
3300
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3266
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3301
|
+
var t = this.clonePosition(), r = this.offset(), n = rr(this.message, r), i = r + n.length;
|
|
3267
3302
|
this.bumpTo(i);
|
|
3268
3303
|
var o = this.clonePosition(), s = R(t, o);
|
|
3269
3304
|
return { value: n, location: s };
|
|
@@ -3282,44 +3317,44 @@ var eo = (
|
|
|
3282
3317
|
var f = this.clonePosition(), p = this.parseSimpleArgStyleIfPossible();
|
|
3283
3318
|
if (p.err)
|
|
3284
3319
|
return p;
|
|
3285
|
-
var
|
|
3286
|
-
if (
|
|
3320
|
+
var m = no(p.val);
|
|
3321
|
+
if (m.length === 0)
|
|
3287
3322
|
return this.error(N.EXPECT_ARGUMENT_STYLE, R(this.clonePosition(), this.clonePosition()));
|
|
3288
3323
|
var y = R(f, this.clonePosition());
|
|
3289
|
-
l = { style:
|
|
3324
|
+
l = { style: m, styleLocation: y };
|
|
3290
3325
|
}
|
|
3291
3326
|
var H = this.tryParseArgumentClose(i);
|
|
3292
3327
|
if (H.err)
|
|
3293
3328
|
return H;
|
|
3294
3329
|
var w = R(i, this.clonePosition());
|
|
3295
|
-
if (l &&
|
|
3296
|
-
var C =
|
|
3330
|
+
if (l && Br(l?.style, "::", 0)) {
|
|
3331
|
+
var C = ro(l.style.slice(2));
|
|
3297
3332
|
if (a === "number") {
|
|
3298
3333
|
var p = this.parseNumberSkeletonFromString(C, l.styleLocation);
|
|
3299
3334
|
return p.err ? p : {
|
|
3300
|
-
val: { type:
|
|
3335
|
+
val: { type: G.number, value: n, location: w, style: p.val },
|
|
3301
3336
|
err: null
|
|
3302
3337
|
};
|
|
3303
3338
|
} else {
|
|
3304
3339
|
if (C.length === 0)
|
|
3305
3340
|
return this.error(N.EXPECT_DATE_TIME_SKELETON, w);
|
|
3306
3341
|
var P = C;
|
|
3307
|
-
this.locale && (P =
|
|
3308
|
-
var
|
|
3309
|
-
type:
|
|
3342
|
+
this.locale && (P = Wi(C, this.locale));
|
|
3343
|
+
var m = {
|
|
3344
|
+
type: Fe.dateTime,
|
|
3310
3345
|
pattern: P,
|
|
3311
3346
|
location: l.styleLocation,
|
|
3312
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3313
|
-
}, I = a === "date" ?
|
|
3347
|
+
parsedOptions: this.shouldParseSkeletons ? Ri(P) : {}
|
|
3348
|
+
}, I = a === "date" ? G.date : G.time;
|
|
3314
3349
|
return {
|
|
3315
|
-
val: { type: I, value: n, location: w, style:
|
|
3350
|
+
val: { type: I, value: n, location: w, style: m },
|
|
3316
3351
|
err: null
|
|
3317
3352
|
};
|
|
3318
3353
|
}
|
|
3319
3354
|
}
|
|
3320
3355
|
return {
|
|
3321
3356
|
val: {
|
|
3322
|
-
type: a === "number" ?
|
|
3357
|
+
type: a === "number" ? G.number : a === "date" ? G.date : G.time,
|
|
3323
3358
|
value: n,
|
|
3324
3359
|
location: w,
|
|
3325
3360
|
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3332,7 +3367,7 @@ var eo = (
|
|
|
3332
3367
|
case "select": {
|
|
3333
3368
|
var B = this.clonePosition();
|
|
3334
3369
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3335
|
-
return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS, R(B,
|
|
3370
|
+
return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS, R(B, Et({}, B)));
|
|
3336
3371
|
this.bumpSpace();
|
|
3337
3372
|
var L = this.parseIdentifierIfPossible(), T = 0;
|
|
3338
3373
|
if (a !== "select" && L.value === "offset") {
|
|
@@ -3350,23 +3385,23 @@ var eo = (
|
|
|
3350
3385
|
var H = this.tryParseArgumentClose(i);
|
|
3351
3386
|
if (H.err)
|
|
3352
3387
|
return H;
|
|
3353
|
-
var
|
|
3388
|
+
var U = R(i, this.clonePosition());
|
|
3354
3389
|
return a === "select" ? {
|
|
3355
3390
|
val: {
|
|
3356
|
-
type:
|
|
3391
|
+
type: G.select,
|
|
3357
3392
|
value: n,
|
|
3358
|
-
options:
|
|
3359
|
-
location:
|
|
3393
|
+
options: Ir(M.val),
|
|
3394
|
+
location: U
|
|
3360
3395
|
},
|
|
3361
3396
|
err: null
|
|
3362
3397
|
} : {
|
|
3363
3398
|
val: {
|
|
3364
|
-
type:
|
|
3399
|
+
type: G.plural,
|
|
3365
3400
|
value: n,
|
|
3366
|
-
options:
|
|
3401
|
+
options: Ir(M.val),
|
|
3367
3402
|
offset: T,
|
|
3368
3403
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3369
|
-
location:
|
|
3404
|
+
location: U
|
|
3370
3405
|
},
|
|
3371
3406
|
err: null
|
|
3372
3407
|
};
|
|
@@ -3414,16 +3449,16 @@ var eo = (
|
|
|
3414
3449
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3415
3450
|
var n = [];
|
|
3416
3451
|
try {
|
|
3417
|
-
n =
|
|
3452
|
+
n = Fi(t);
|
|
3418
3453
|
} catch {
|
|
3419
3454
|
return this.error(N.INVALID_NUMBER_SKELETON, r);
|
|
3420
3455
|
}
|
|
3421
3456
|
return {
|
|
3422
3457
|
val: {
|
|
3423
|
-
type:
|
|
3458
|
+
type: Fe.number,
|
|
3424
3459
|
tokens: n,
|
|
3425
3460
|
location: r,
|
|
3426
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3461
|
+
parsedOptions: this.shouldParseSkeletons ? ji(n) : {}
|
|
3427
3462
|
},
|
|
3428
3463
|
err: null
|
|
3429
3464
|
};
|
|
@@ -3432,9 +3467,9 @@ var eo = (
|
|
|
3432
3467
|
if (l.length === 0) {
|
|
3433
3468
|
var p = this.clonePosition();
|
|
3434
3469
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3435
|
-
var
|
|
3436
|
-
if (
|
|
3437
|
-
return
|
|
3470
|
+
var m = this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_SELECTOR, N.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3471
|
+
if (m.err)
|
|
3472
|
+
return m;
|
|
3438
3473
|
f = R(p, this.clonePosition()), l = this.message.slice(p.offset, this.offset());
|
|
3439
3474
|
} else
|
|
3440
3475
|
break;
|
|
@@ -3471,7 +3506,7 @@ var eo = (
|
|
|
3471
3506
|
break;
|
|
3472
3507
|
}
|
|
3473
3508
|
var h = R(i, this.clonePosition());
|
|
3474
|
-
return o ? (s *= n,
|
|
3509
|
+
return o ? (s *= n, eo(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3475
3510
|
}, e.prototype.offset = function() {
|
|
3476
3511
|
return this.position.offset;
|
|
3477
3512
|
}, e.prototype.isEOF = function() {
|
|
@@ -3486,7 +3521,7 @@ var eo = (
|
|
|
3486
3521
|
var t = this.position.offset;
|
|
3487
3522
|
if (t >= this.message.length)
|
|
3488
3523
|
throw Error("out of bound");
|
|
3489
|
-
var r =
|
|
3524
|
+
var r = fn(this.message, t);
|
|
3490
3525
|
if (r === void 0)
|
|
3491
3526
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3492
3527
|
return r;
|
|
@@ -3505,7 +3540,7 @@ var eo = (
|
|
|
3505
3540
|
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);
|
|
3506
3541
|
}
|
|
3507
3542
|
}, e.prototype.bumpIf = function(t) {
|
|
3508
|
-
if (
|
|
3543
|
+
if (Br(this.message, t, this.offset())) {
|
|
3509
3544
|
for (var r = 0; r < t.length; r++)
|
|
3510
3545
|
this.bump();
|
|
3511
3546
|
return !0;
|
|
@@ -3527,7 +3562,7 @@ var eo = (
|
|
|
3527
3562
|
break;
|
|
3528
3563
|
}
|
|
3529
3564
|
}, e.prototype.bumpSpace = function() {
|
|
3530
|
-
for (; !this.isEOF() &&
|
|
3565
|
+
for (; !this.isEOF() && dn(this.char()); )
|
|
3531
3566
|
this.bump();
|
|
3532
3567
|
}, e.prototype.peek = function() {
|
|
3533
3568
|
if (this.isEOF())
|
|
@@ -3537,47 +3572,47 @@ var eo = (
|
|
|
3537
3572
|
}, e;
|
|
3538
3573
|
}()
|
|
3539
3574
|
);
|
|
3540
|
-
function
|
|
3575
|
+
function nr(e) {
|
|
3541
3576
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3542
3577
|
}
|
|
3543
|
-
function
|
|
3544
|
-
return
|
|
3578
|
+
function oo(e) {
|
|
3579
|
+
return nr(e) || e === 47;
|
|
3545
3580
|
}
|
|
3546
|
-
function
|
|
3581
|
+
function so(e) {
|
|
3547
3582
|
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;
|
|
3548
3583
|
}
|
|
3549
|
-
function
|
|
3584
|
+
function dn(e) {
|
|
3550
3585
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3551
3586
|
}
|
|
3552
|
-
function
|
|
3587
|
+
function ao(e) {
|
|
3553
3588
|
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;
|
|
3554
3589
|
}
|
|
3555
|
-
function
|
|
3590
|
+
function ir(e) {
|
|
3556
3591
|
e.forEach(function(t) {
|
|
3557
|
-
if (delete t.location,
|
|
3592
|
+
if (delete t.location, rn(t) || nn(t))
|
|
3558
3593
|
for (var r in t.options)
|
|
3559
|
-
delete t.options[r].location,
|
|
3594
|
+
delete t.options[r].location, ir(t.options[r].value);
|
|
3560
3595
|
else
|
|
3561
|
-
|
|
3596
|
+
Kr(t) && sn(t.style) || (en(t) || tn(t)) && Kt(t.style) ? delete t.style.location : on(t) && ir(t.children);
|
|
3562
3597
|
});
|
|
3563
3598
|
}
|
|
3564
|
-
function
|
|
3565
|
-
t === void 0 && (t = {}), t =
|
|
3566
|
-
var r = new
|
|
3599
|
+
function uo(e, t) {
|
|
3600
|
+
t === void 0 && (t = {}), t = Et({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3601
|
+
var r = new io(e, t).parse();
|
|
3567
3602
|
if (r.err) {
|
|
3568
3603
|
var n = SyntaxError(N[r.err.kind]);
|
|
3569
3604
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3570
3605
|
}
|
|
3571
|
-
return t?.captureLocation ||
|
|
3606
|
+
return t?.captureLocation || ir(r.val), r.val;
|
|
3572
3607
|
}
|
|
3573
|
-
var
|
|
3608
|
+
var Ue;
|
|
3574
3609
|
(function(e) {
|
|
3575
3610
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3576
|
-
})(
|
|
3577
|
-
var
|
|
3611
|
+
})(Ue || (Ue = {}));
|
|
3612
|
+
var Bt = (
|
|
3578
3613
|
/** @class */
|
|
3579
3614
|
function(e) {
|
|
3580
|
-
|
|
3615
|
+
At(t, e);
|
|
3581
3616
|
function t(r, n, i) {
|
|
3582
3617
|
var o = e.call(this, r) || this;
|
|
3583
3618
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3586,48 +3621,48 @@ var Ht = (
|
|
|
3586
3621
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3587
3622
|
}, t;
|
|
3588
3623
|
}(Error)
|
|
3589
|
-
),
|
|
3624
|
+
), Or = (
|
|
3590
3625
|
/** @class */
|
|
3591
3626
|
function(e) {
|
|
3592
|
-
|
|
3627
|
+
At(t, e);
|
|
3593
3628
|
function t(r, n, i, o) {
|
|
3594
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3629
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ue.INVALID_VALUE, o) || this;
|
|
3595
3630
|
}
|
|
3596
3631
|
return t;
|
|
3597
|
-
}(
|
|
3598
|
-
),
|
|
3632
|
+
}(Bt)
|
|
3633
|
+
), lo = (
|
|
3599
3634
|
/** @class */
|
|
3600
3635
|
function(e) {
|
|
3601
|
-
|
|
3636
|
+
At(t, e);
|
|
3602
3637
|
function t(r, n, i) {
|
|
3603
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3638
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ue.INVALID_VALUE, i) || this;
|
|
3604
3639
|
}
|
|
3605
3640
|
return t;
|
|
3606
|
-
}(
|
|
3607
|
-
),
|
|
3641
|
+
}(Bt)
|
|
3642
|
+
), ho = (
|
|
3608
3643
|
/** @class */
|
|
3609
3644
|
function(e) {
|
|
3610
|
-
|
|
3645
|
+
At(t, e);
|
|
3611
3646
|
function t(r, n) {
|
|
3612
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3647
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ue.MISSING_VALUE, n) || this;
|
|
3613
3648
|
}
|
|
3614
3649
|
return t;
|
|
3615
|
-
}(
|
|
3650
|
+
}(Bt)
|
|
3616
3651
|
), Q;
|
|
3617
3652
|
(function(e) {
|
|
3618
3653
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3619
3654
|
})(Q || (Q = {}));
|
|
3620
|
-
function
|
|
3655
|
+
function fo(e) {
|
|
3621
3656
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3622
3657
|
var n = t[t.length - 1];
|
|
3623
3658
|
return !n || n.type !== Q.literal || r.type !== Q.literal ? t.push(r) : n.value += r.value, t;
|
|
3624
3659
|
}, []);
|
|
3625
3660
|
}
|
|
3626
|
-
function
|
|
3661
|
+
function co(e) {
|
|
3627
3662
|
return typeof e == "function";
|
|
3628
3663
|
}
|
|
3629
3664
|
function yt(e, t, r, n, i, o, s) {
|
|
3630
|
-
if (e.length === 1 &&
|
|
3665
|
+
if (e.length === 1 && Sr(e[0]))
|
|
3631
3666
|
return [
|
|
3632
3667
|
{
|
|
3633
3668
|
type: Q.literal,
|
|
@@ -3636,14 +3671,14 @@ function yt(e, t, r, n, i, o, s) {
|
|
|
3636
3671
|
];
|
|
3637
3672
|
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
|
3638
3673
|
var f = l[h];
|
|
3639
|
-
if (
|
|
3674
|
+
if (Sr(f)) {
|
|
3640
3675
|
a.push({
|
|
3641
3676
|
type: Q.literal,
|
|
3642
3677
|
value: f.value
|
|
3643
3678
|
});
|
|
3644
3679
|
continue;
|
|
3645
3680
|
}
|
|
3646
|
-
if (
|
|
3681
|
+
if (Ni(f)) {
|
|
3647
3682
|
typeof o == "number" && a.push({
|
|
3648
3683
|
type: Q.literal,
|
|
3649
3684
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3652,43 +3687,43 @@ function yt(e, t, r, n, i, o, s) {
|
|
|
3652
3687
|
}
|
|
3653
3688
|
var p = f.value;
|
|
3654
3689
|
if (!(i && p in i))
|
|
3655
|
-
throw new
|
|
3656
|
-
var
|
|
3657
|
-
if (
|
|
3658
|
-
(!
|
|
3659
|
-
type: typeof
|
|
3660
|
-
value:
|
|
3690
|
+
throw new ho(p, s);
|
|
3691
|
+
var m = i[p];
|
|
3692
|
+
if (Pi(f)) {
|
|
3693
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3694
|
+
type: typeof m == "string" ? Q.literal : Q.object,
|
|
3695
|
+
value: m
|
|
3661
3696
|
});
|
|
3662
3697
|
continue;
|
|
3663
3698
|
}
|
|
3664
|
-
if (
|
|
3665
|
-
var y = typeof f.style == "string" ? n.date[f.style] :
|
|
3699
|
+
if (en(f)) {
|
|
3700
|
+
var y = typeof f.style == "string" ? n.date[f.style] : Kt(f.style) ? f.style.parsedOptions : void 0;
|
|
3666
3701
|
a.push({
|
|
3667
3702
|
type: Q.literal,
|
|
3668
|
-
value: r.getDateTimeFormat(t, y).format(
|
|
3703
|
+
value: r.getDateTimeFormat(t, y).format(m)
|
|
3669
3704
|
});
|
|
3670
3705
|
continue;
|
|
3671
3706
|
}
|
|
3672
|
-
if (
|
|
3673
|
-
var y = typeof f.style == "string" ? n.time[f.style] :
|
|
3707
|
+
if (tn(f)) {
|
|
3708
|
+
var y = typeof f.style == "string" ? n.time[f.style] : Kt(f.style) ? f.style.parsedOptions : n.time.medium;
|
|
3674
3709
|
a.push({
|
|
3675
3710
|
type: Q.literal,
|
|
3676
|
-
value: r.getDateTimeFormat(t, y).format(
|
|
3711
|
+
value: r.getDateTimeFormat(t, y).format(m)
|
|
3677
3712
|
});
|
|
3678
3713
|
continue;
|
|
3679
3714
|
}
|
|
3680
|
-
if (
|
|
3681
|
-
var y = typeof f.style == "string" ? n.number[f.style] :
|
|
3682
|
-
y && y.scale && (
|
|
3715
|
+
if (Kr(f)) {
|
|
3716
|
+
var y = typeof f.style == "string" ? n.number[f.style] : sn(f.style) ? f.style.parsedOptions : void 0;
|
|
3717
|
+
y && y.scale && (m = m * (y.scale || 1)), a.push({
|
|
3683
3718
|
type: Q.literal,
|
|
3684
|
-
value: r.getNumberFormat(t, y).format(
|
|
3719
|
+
value: r.getNumberFormat(t, y).format(m)
|
|
3685
3720
|
});
|
|
3686
3721
|
continue;
|
|
3687
3722
|
}
|
|
3688
|
-
if (
|
|
3723
|
+
if (on(f)) {
|
|
3689
3724
|
var H = f.children, w = f.value, C = i[w];
|
|
3690
|
-
if (!
|
|
3691
|
-
throw new
|
|
3725
|
+
if (!co(C))
|
|
3726
|
+
throw new lo(w, "function", s);
|
|
3692
3727
|
var P = yt(H, t, r, n, i, o), I = C(P.map(function(T) {
|
|
3693
3728
|
return T.value;
|
|
3694
3729
|
}));
|
|
@@ -3699,42 +3734,42 @@ function yt(e, t, r, n, i, o, s) {
|
|
|
3699
3734
|
};
|
|
3700
3735
|
}));
|
|
3701
3736
|
}
|
|
3702
|
-
if (
|
|
3703
|
-
var B = f.options[
|
|
3737
|
+
if (rn(f)) {
|
|
3738
|
+
var B = f.options[m] || f.options.other;
|
|
3704
3739
|
if (!B)
|
|
3705
|
-
throw new
|
|
3740
|
+
throw new Or(f.value, m, Object.keys(f.options), s);
|
|
3706
3741
|
a.push.apply(a, yt(B.value, t, r, n, i));
|
|
3707
3742
|
continue;
|
|
3708
3743
|
}
|
|
3709
|
-
if (
|
|
3710
|
-
var B = f.options["=".concat(
|
|
3744
|
+
if (nn(f)) {
|
|
3745
|
+
var B = f.options["=".concat(m)];
|
|
3711
3746
|
if (!B) {
|
|
3712
3747
|
if (!Intl.PluralRules)
|
|
3713
|
-
throw new
|
|
3748
|
+
throw new Bt(`Intl.PluralRules is not available in this environment.
|
|
3714
3749
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3715
|
-
`,
|
|
3716
|
-
var L = r.getPluralRules(t, { type: f.pluralType }).select(
|
|
3750
|
+
`, Ue.MISSING_INTL_API, s);
|
|
3751
|
+
var L = r.getPluralRules(t, { type: f.pluralType }).select(m - (f.offset || 0));
|
|
3717
3752
|
B = f.options[L] || f.options.other;
|
|
3718
3753
|
}
|
|
3719
3754
|
if (!B)
|
|
3720
|
-
throw new
|
|
3721
|
-
a.push.apply(a, yt(B.value, t, r, n, i,
|
|
3755
|
+
throw new Or(f.value, m, Object.keys(f.options), s);
|
|
3756
|
+
a.push.apply(a, yt(B.value, t, r, n, i, m - (f.offset || 0)));
|
|
3722
3757
|
continue;
|
|
3723
3758
|
}
|
|
3724
3759
|
}
|
|
3725
|
-
return
|
|
3760
|
+
return fo(a);
|
|
3726
3761
|
}
|
|
3727
|
-
function
|
|
3728
|
-
return t ?
|
|
3729
|
-
return r[n] =
|
|
3762
|
+
function po(e, t) {
|
|
3763
|
+
return t ? le(le(le({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3764
|
+
return r[n] = le(le({}, e[n]), t[n] || {}), r;
|
|
3730
3765
|
}, {})) : e;
|
|
3731
3766
|
}
|
|
3732
|
-
function
|
|
3767
|
+
function go(e, t) {
|
|
3733
3768
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3734
|
-
return r[n] =
|
|
3735
|
-
},
|
|
3769
|
+
return r[n] = po(e[n], t[n]), r;
|
|
3770
|
+
}, le({}, e)) : e;
|
|
3736
3771
|
}
|
|
3737
|
-
function
|
|
3772
|
+
function jt(e) {
|
|
3738
3773
|
return {
|
|
3739
3774
|
create: function() {
|
|
3740
3775
|
return {
|
|
@@ -3748,39 +3783,39 @@ function Ut(e) {
|
|
|
3748
3783
|
}
|
|
3749
3784
|
};
|
|
3750
3785
|
}
|
|
3751
|
-
function
|
|
3786
|
+
function mo(e) {
|
|
3752
3787
|
return e === void 0 && (e = {
|
|
3753
3788
|
number: {},
|
|
3754
3789
|
dateTime: {},
|
|
3755
3790
|
pluralRules: {}
|
|
3756
3791
|
}), {
|
|
3757
|
-
getNumberFormat:
|
|
3792
|
+
getNumberFormat: Ut(function() {
|
|
3758
3793
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3759
3794
|
r[n] = arguments[n];
|
|
3760
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3795
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ft([void 0], r, !1)))();
|
|
3761
3796
|
}, {
|
|
3762
|
-
cache:
|
|
3763
|
-
strategy:
|
|
3797
|
+
cache: jt(e.number),
|
|
3798
|
+
strategy: $t.variadic
|
|
3764
3799
|
}),
|
|
3765
|
-
getDateTimeFormat:
|
|
3800
|
+
getDateTimeFormat: Ut(function() {
|
|
3766
3801
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3767
3802
|
r[n] = arguments[n];
|
|
3768
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3803
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ft([void 0], r, !1)))();
|
|
3769
3804
|
}, {
|
|
3770
|
-
cache:
|
|
3771
|
-
strategy:
|
|
3805
|
+
cache: jt(e.dateTime),
|
|
3806
|
+
strategy: $t.variadic
|
|
3772
3807
|
}),
|
|
3773
|
-
getPluralRules:
|
|
3808
|
+
getPluralRules: Ut(function() {
|
|
3774
3809
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3775
3810
|
r[n] = arguments[n];
|
|
3776
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3811
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ft([void 0], r, !1)))();
|
|
3777
3812
|
}, {
|
|
3778
|
-
cache:
|
|
3779
|
-
strategy:
|
|
3813
|
+
cache: jt(e.pluralRules),
|
|
3814
|
+
strategy: $t.variadic
|
|
3780
3815
|
})
|
|
3781
3816
|
};
|
|
3782
3817
|
}
|
|
3783
|
-
var
|
|
3818
|
+
var vo = (
|
|
3784
3819
|
/** @class */
|
|
3785
3820
|
function() {
|
|
3786
3821
|
function e(t, r, n, i) {
|
|
@@ -3794,8 +3829,8 @@ var co = (
|
|
|
3794
3829
|
var l = o.formatToParts(h);
|
|
3795
3830
|
if (l.length === 1)
|
|
3796
3831
|
return l[0].value;
|
|
3797
|
-
var f = l.reduce(function(p,
|
|
3798
|
-
return !p.length ||
|
|
3832
|
+
var f = l.reduce(function(p, m) {
|
|
3833
|
+
return !p.length || m.type !== Q.literal || typeof p[p.length - 1] != "string" ? p.push(m.value) : p[p.length - 1] += m.value, p;
|
|
3799
3834
|
}, []);
|
|
3800
3835
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3801
3836
|
}, this.formatToParts = function(h) {
|
|
@@ -3812,13 +3847,13 @@ var co = (
|
|
|
3812
3847
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3813
3848
|
var s = i || {};
|
|
3814
3849
|
s.formatters;
|
|
3815
|
-
var a =
|
|
3816
|
-
this.ast = e.__parse(t,
|
|
3850
|
+
var a = Ti(s, ["formatters"]);
|
|
3851
|
+
this.ast = e.__parse(t, le(le({}, a), { locale: this.resolvedLocale }));
|
|
3817
3852
|
} else
|
|
3818
3853
|
this.ast = t;
|
|
3819
3854
|
if (!Array.isArray(this.ast))
|
|
3820
3855
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3821
|
-
this.formats =
|
|
3856
|
+
this.formats = go(e.formats, n), this.formatters = i && i.formatters || mo(this.formatterCache);
|
|
3822
3857
|
}
|
|
3823
3858
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3824
3859
|
get: function() {
|
|
@@ -3831,7 +3866,7 @@ var co = (
|
|
|
3831
3866
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3832
3867
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3833
3868
|
}
|
|
3834
|
-
}, e.__parse =
|
|
3869
|
+
}, e.__parse = uo, e.formats = {
|
|
3835
3870
|
number: {
|
|
3836
3871
|
integer: {
|
|
3837
3872
|
maximumFractionDigits: 0
|
|
@@ -3892,7 +3927,7 @@ var co = (
|
|
|
3892
3927
|
}, e;
|
|
3893
3928
|
}()
|
|
3894
3929
|
);
|
|
3895
|
-
function
|
|
3930
|
+
function bo(e, t) {
|
|
3896
3931
|
if (t == null)
|
|
3897
3932
|
return;
|
|
3898
3933
|
if (t in e)
|
|
@@ -3913,92 +3948,92 @@ function po(e, t) {
|
|
|
3913
3948
|
n = void 0;
|
|
3914
3949
|
return n;
|
|
3915
3950
|
}
|
|
3916
|
-
const we = {},
|
|
3951
|
+
const we = {}, yo = (e, t, r) => r && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = r), r), pn = (e, t) => {
|
|
3917
3952
|
if (t == null)
|
|
3918
3953
|
return;
|
|
3919
3954
|
if (t in we && e in we[t])
|
|
3920
3955
|
return we[t][e];
|
|
3921
|
-
const r =
|
|
3956
|
+
const r = It(t);
|
|
3922
3957
|
for (let n = 0; n < r.length; n++) {
|
|
3923
|
-
const i = r[n], o =
|
|
3958
|
+
const i = r[n], o = Eo(i, e);
|
|
3924
3959
|
if (o)
|
|
3925
|
-
return
|
|
3960
|
+
return yo(e, t, o);
|
|
3926
3961
|
}
|
|
3927
3962
|
};
|
|
3928
|
-
let
|
|
3929
|
-
const
|
|
3930
|
-
function
|
|
3931
|
-
return
|
|
3963
|
+
let hr;
|
|
3964
|
+
const je = Ht({});
|
|
3965
|
+
function _o(e) {
|
|
3966
|
+
return hr[e] || null;
|
|
3932
3967
|
}
|
|
3933
|
-
function
|
|
3934
|
-
return e in
|
|
3968
|
+
function gn(e) {
|
|
3969
|
+
return e in hr;
|
|
3935
3970
|
}
|
|
3936
|
-
function
|
|
3937
|
-
if (!
|
|
3971
|
+
function Eo(e, t) {
|
|
3972
|
+
if (!gn(e))
|
|
3938
3973
|
return null;
|
|
3939
|
-
const r =
|
|
3940
|
-
return
|
|
3974
|
+
const r = _o(e);
|
|
3975
|
+
return bo(r, t);
|
|
3941
3976
|
}
|
|
3942
|
-
function
|
|
3977
|
+
function xo(e) {
|
|
3943
3978
|
if (e == null)
|
|
3944
3979
|
return;
|
|
3945
|
-
const t =
|
|
3980
|
+
const t = It(e);
|
|
3946
3981
|
for (let r = 0; r < t.length; r++) {
|
|
3947
3982
|
const n = t[r];
|
|
3948
|
-
if (
|
|
3983
|
+
if (gn(n))
|
|
3949
3984
|
return n;
|
|
3950
3985
|
}
|
|
3951
3986
|
}
|
|
3952
|
-
function
|
|
3953
|
-
delete we[e],
|
|
3987
|
+
function mn(e, ...t) {
|
|
3988
|
+
delete we[e], je.update((r) => (r[e] = Si.all([r[e] || {}, ...t]), r));
|
|
3954
3989
|
}
|
|
3955
|
-
|
|
3956
|
-
[
|
|
3990
|
+
Ge(
|
|
3991
|
+
[je],
|
|
3957
3992
|
([e]) => Object.keys(e)
|
|
3958
3993
|
);
|
|
3959
|
-
|
|
3994
|
+
je.subscribe((e) => hr = e);
|
|
3960
3995
|
const _t = {};
|
|
3961
|
-
function
|
|
3996
|
+
function wo(e, t) {
|
|
3962
3997
|
_t[e].delete(t), _t[e].size === 0 && delete _t[e];
|
|
3963
3998
|
}
|
|
3964
|
-
function
|
|
3999
|
+
function vn(e) {
|
|
3965
4000
|
return _t[e];
|
|
3966
4001
|
}
|
|
3967
|
-
function
|
|
3968
|
-
return
|
|
3969
|
-
const r =
|
|
4002
|
+
function So(e) {
|
|
4003
|
+
return It(e).map((t) => {
|
|
4004
|
+
const r = vn(t);
|
|
3970
4005
|
return [t, r ? [...r] : []];
|
|
3971
4006
|
}).filter(([, t]) => t.length > 0);
|
|
3972
4007
|
}
|
|
3973
|
-
function
|
|
3974
|
-
return e == null ? !1 :
|
|
4008
|
+
function or(e) {
|
|
4009
|
+
return e == null ? !1 : It(e).some(
|
|
3975
4010
|
(t) => {
|
|
3976
4011
|
var r;
|
|
3977
|
-
return (r =
|
|
4012
|
+
return (r = vn(t)) == null ? void 0 : r.size;
|
|
3978
4013
|
}
|
|
3979
4014
|
);
|
|
3980
4015
|
}
|
|
3981
|
-
function
|
|
4016
|
+
function To(e, t) {
|
|
3982
4017
|
return Promise.all(
|
|
3983
|
-
t.map((n) => (
|
|
3984
|
-
).then((n) =>
|
|
3985
|
-
}
|
|
3986
|
-
const
|
|
3987
|
-
function
|
|
3988
|
-
if (!
|
|
3989
|
-
return e in
|
|
3990
|
-
const t =
|
|
3991
|
-
return
|
|
4018
|
+
t.map((n) => (wo(e, n), n().then((i) => i.default || i)))
|
|
4019
|
+
).then((n) => mn(e, ...n));
|
|
4020
|
+
}
|
|
4021
|
+
const Ke = {};
|
|
4022
|
+
function bn(e) {
|
|
4023
|
+
if (!or(e))
|
|
4024
|
+
return e in Ke ? Ke[e] : Promise.resolve();
|
|
4025
|
+
const t = So(e);
|
|
4026
|
+
return Ke[e] = Promise.all(
|
|
3992
4027
|
t.map(
|
|
3993
|
-
([r, n]) =>
|
|
4028
|
+
([r, n]) => To(r, n)
|
|
3994
4029
|
)
|
|
3995
4030
|
).then(() => {
|
|
3996
|
-
if (
|
|
3997
|
-
return
|
|
3998
|
-
delete
|
|
3999
|
-
}),
|
|
4031
|
+
if (or(e))
|
|
4032
|
+
return bn(e);
|
|
4033
|
+
delete Ke[e];
|
|
4034
|
+
}), Ke[e];
|
|
4000
4035
|
}
|
|
4001
|
-
const
|
|
4036
|
+
const Ho = {
|
|
4002
4037
|
number: {
|
|
4003
4038
|
scientific: { notation: "scientific" },
|
|
4004
4039
|
engineering: { notation: "engineering" },
|
|
@@ -4027,135 +4062,135 @@ const xo = {
|
|
|
4027
4062
|
timeZoneName: "short"
|
|
4028
4063
|
}
|
|
4029
4064
|
}
|
|
4030
|
-
},
|
|
4065
|
+
}, Ao = {
|
|
4031
4066
|
fallbackLocale: null,
|
|
4032
4067
|
loadingDelay: 200,
|
|
4033
|
-
formats:
|
|
4068
|
+
formats: Ho,
|
|
4034
4069
|
warnOnMissingMessages: !0,
|
|
4035
4070
|
handleMissingMessage: void 0,
|
|
4036
4071
|
ignoreTag: !0
|
|
4037
|
-
},
|
|
4038
|
-
function
|
|
4039
|
-
return
|
|
4040
|
-
}
|
|
4041
|
-
const
|
|
4042
|
-
var
|
|
4043
|
-
for (var r in t)
|
|
4044
|
-
|
|
4045
|
-
if (
|
|
4046
|
-
for (var r of
|
|
4047
|
-
|
|
4072
|
+
}, Bo = Ao;
|
|
4073
|
+
function $e() {
|
|
4074
|
+
return Bo;
|
|
4075
|
+
}
|
|
4076
|
+
const Wt = Ht(!1);
|
|
4077
|
+
var Io = Object.defineProperty, Lo = Object.defineProperties, Oo = Object.getOwnPropertyDescriptors, Cr = Object.getOwnPropertySymbols, Co = Object.prototype.hasOwnProperty, Po = Object.prototype.propertyIsEnumerable, Pr = (e, t, r) => t in e ? Io(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, No = (e, t) => {
|
|
4078
|
+
for (var r in t || (t = {}))
|
|
4079
|
+
Co.call(t, r) && Pr(e, r, t[r]);
|
|
4080
|
+
if (Cr)
|
|
4081
|
+
for (var r of Cr(t))
|
|
4082
|
+
Po.call(t, r) && Pr(e, r, t[r]);
|
|
4048
4083
|
return e;
|
|
4049
|
-
},
|
|
4050
|
-
let
|
|
4051
|
-
const
|
|
4052
|
-
function
|
|
4084
|
+
}, Mo = (e, t) => Lo(e, Oo(t));
|
|
4085
|
+
let sr;
|
|
4086
|
+
const xt = Ht(null);
|
|
4087
|
+
function Nr(e) {
|
|
4053
4088
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4054
4089
|
}
|
|
4055
|
-
function
|
|
4056
|
-
const r =
|
|
4057
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4090
|
+
function It(e, t = $e().fallbackLocale) {
|
|
4091
|
+
const r = Nr(e);
|
|
4092
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Nr(t)])] : r;
|
|
4058
4093
|
}
|
|
4059
4094
|
function Be() {
|
|
4060
|
-
return
|
|
4095
|
+
return sr ?? void 0;
|
|
4061
4096
|
}
|
|
4062
|
-
|
|
4063
|
-
|
|
4097
|
+
xt.subscribe((e) => {
|
|
4098
|
+
sr = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4064
4099
|
});
|
|
4065
|
-
const
|
|
4066
|
-
if (e &&
|
|
4067
|
-
const { loadingDelay: t } =
|
|
4100
|
+
const Ro = (e) => {
|
|
4101
|
+
if (e && xo(e) && or(e)) {
|
|
4102
|
+
const { loadingDelay: t } = $e();
|
|
4068
4103
|
let r;
|
|
4069
4104
|
return typeof window < "u" && Be() != null && t ? r = window.setTimeout(
|
|
4070
|
-
() =>
|
|
4105
|
+
() => Wt.set(!0),
|
|
4071
4106
|
t
|
|
4072
|
-
) :
|
|
4073
|
-
|
|
4107
|
+
) : Wt.set(!0), bn(e).then(() => {
|
|
4108
|
+
xt.set(e);
|
|
4074
4109
|
}).finally(() => {
|
|
4075
|
-
clearTimeout(r),
|
|
4110
|
+
clearTimeout(r), Wt.set(!1);
|
|
4076
4111
|
});
|
|
4077
4112
|
}
|
|
4078
|
-
return
|
|
4079
|
-
}, Se =
|
|
4080
|
-
set:
|
|
4081
|
-
}),
|
|
4113
|
+
return xt.set(e);
|
|
4114
|
+
}, Se = Mo(No({}, xt), {
|
|
4115
|
+
set: Ro
|
|
4116
|
+
}), Lt = (e) => {
|
|
4082
4117
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4083
4118
|
return (n) => {
|
|
4084
4119
|
const i = JSON.stringify(n);
|
|
4085
4120
|
return i in t ? t[i] : t[i] = e(n);
|
|
4086
4121
|
};
|
|
4087
4122
|
};
|
|
4088
|
-
var
|
|
4123
|
+
var Do = Object.defineProperty, wt = Object.getOwnPropertySymbols, yn = Object.prototype.hasOwnProperty, _n = Object.prototype.propertyIsEnumerable, Mr = (e, t, r) => t in e ? Do(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fr = (e, t) => {
|
|
4089
4124
|
for (var r in t || (t = {}))
|
|
4090
|
-
|
|
4091
|
-
if (
|
|
4092
|
-
for (var r of
|
|
4093
|
-
|
|
4125
|
+
yn.call(t, r) && Mr(e, r, t[r]);
|
|
4126
|
+
if (wt)
|
|
4127
|
+
for (var r of wt(t))
|
|
4128
|
+
_n.call(t, r) && Mr(e, r, t[r]);
|
|
4094
4129
|
return e;
|
|
4095
|
-
},
|
|
4130
|
+
}, We = (e, t) => {
|
|
4096
4131
|
var r = {};
|
|
4097
4132
|
for (var n in e)
|
|
4098
|
-
|
|
4099
|
-
if (e != null &&
|
|
4100
|
-
for (var n of
|
|
4101
|
-
t.indexOf(n) < 0 &&
|
|
4133
|
+
yn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4134
|
+
if (e != null && wt)
|
|
4135
|
+
for (var n of wt(e))
|
|
4136
|
+
t.indexOf(n) < 0 && _n.call(e, n) && (r[n] = e[n]);
|
|
4102
4137
|
return r;
|
|
4103
4138
|
};
|
|
4104
|
-
const
|
|
4105
|
-
const { formats: r } =
|
|
4139
|
+
const it = (e, t) => {
|
|
4140
|
+
const { formats: r } = $e();
|
|
4106
4141
|
if (e in r && t in r[e])
|
|
4107
4142
|
return r[e][t];
|
|
4108
4143
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4109
|
-
},
|
|
4144
|
+
}, Fo = Lt(
|
|
4110
4145
|
(e) => {
|
|
4111
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4146
|
+
var t = e, { locale: r, format: n } = t, i = We(t, ["locale", "format"]);
|
|
4112
4147
|
if (r == null)
|
|
4113
4148
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4114
|
-
return n && (i =
|
|
4149
|
+
return n && (i = it("number", n)), new Intl.NumberFormat(r, i);
|
|
4115
4150
|
}
|
|
4116
|
-
),
|
|
4151
|
+
), Uo = Lt(
|
|
4117
4152
|
(e) => {
|
|
4118
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4153
|
+
var t = e, { locale: r, format: n } = t, i = We(t, ["locale", "format"]);
|
|
4119
4154
|
if (r == null)
|
|
4120
4155
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4121
|
-
return n ? i =
|
|
4156
|
+
return n ? i = it("date", n) : Object.keys(i).length === 0 && (i = it("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4122
4157
|
}
|
|
4123
|
-
),
|
|
4158
|
+
), $o = Lt(
|
|
4124
4159
|
(e) => {
|
|
4125
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4160
|
+
var t = e, { locale: r, format: n } = t, i = We(t, ["locale", "format"]);
|
|
4126
4161
|
if (r == null)
|
|
4127
4162
|
throw new Error(
|
|
4128
4163
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4129
4164
|
);
|
|
4130
|
-
return n ? i =
|
|
4165
|
+
return n ? i = it("time", n) : Object.keys(i).length === 0 && (i = it("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4131
4166
|
}
|
|
4132
|
-
),
|
|
4167
|
+
), Go = (e = {}) => {
|
|
4133
4168
|
var t = e, {
|
|
4134
4169
|
locale: r = Be()
|
|
4135
|
-
} = t, n =
|
|
4170
|
+
} = t, n = We(t, [
|
|
4136
4171
|
"locale"
|
|
4137
4172
|
]);
|
|
4138
|
-
return
|
|
4139
|
-
},
|
|
4173
|
+
return Fo(fr({ locale: r }, n));
|
|
4174
|
+
}, jo = (e = {}) => {
|
|
4140
4175
|
var t = e, {
|
|
4141
4176
|
locale: r = Be()
|
|
4142
|
-
} = t, n =
|
|
4177
|
+
} = t, n = We(t, [
|
|
4143
4178
|
"locale"
|
|
4144
4179
|
]);
|
|
4145
|
-
return
|
|
4146
|
-
},
|
|
4180
|
+
return Uo(fr({ locale: r }, n));
|
|
4181
|
+
}, Wo = (e = {}) => {
|
|
4147
4182
|
var t = e, {
|
|
4148
4183
|
locale: r = Be()
|
|
4149
|
-
} = t, n =
|
|
4184
|
+
} = t, n = We(t, [
|
|
4150
4185
|
"locale"
|
|
4151
4186
|
]);
|
|
4152
|
-
return
|
|
4153
|
-
},
|
|
4187
|
+
return $o(fr({ locale: r }, n));
|
|
4188
|
+
}, ko = Lt(
|
|
4154
4189
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4155
|
-
(e, t = Be()) => new
|
|
4156
|
-
ignoreTag:
|
|
4190
|
+
(e, t = Be()) => new vo(e, t, $e().formats, {
|
|
4191
|
+
ignoreTag: $e().ignoreTag
|
|
4157
4192
|
})
|
|
4158
|
-
),
|
|
4193
|
+
), Xo = (e, t = {}) => {
|
|
4159
4194
|
var r, n, i, o;
|
|
4160
4195
|
let s = t;
|
|
4161
4196
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4168,9 +4203,9 @@ const ot = (e, t) => {
|
|
|
4168
4203
|
throw new Error(
|
|
4169
4204
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4170
4205
|
);
|
|
4171
|
-
let f =
|
|
4206
|
+
let f = pn(e, h);
|
|
4172
4207
|
if (!f)
|
|
4173
|
-
f = (o = (i = (n = (r =
|
|
4208
|
+
f = (o = (i = (n = (r = $e()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4174
4209
|
else if (typeof f != "string")
|
|
4175
4210
|
return console.warn(
|
|
4176
4211
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4179,22 +4214,22 @@ const ot = (e, t) => {
|
|
|
4179
4214
|
return f;
|
|
4180
4215
|
let p = f;
|
|
4181
4216
|
try {
|
|
4182
|
-
p =
|
|
4183
|
-
} catch (
|
|
4184
|
-
|
|
4217
|
+
p = ko(f, h).format(a);
|
|
4218
|
+
} catch (m) {
|
|
4219
|
+
m instanceof Error && console.warn(
|
|
4185
4220
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4186
|
-
|
|
4221
|
+
m.message
|
|
4187
4222
|
);
|
|
4188
4223
|
}
|
|
4189
4224
|
return p;
|
|
4190
|
-
},
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
window.emWidgets = { topic:
|
|
4196
|
-
const
|
|
4197
|
-
var
|
|
4225
|
+
}, Vo = (e, t) => Wo(t).format(e), zo = (e, t) => jo(t).format(e), Zo = (e, t) => Go(t).format(e), qo = (e, t = Be()) => pn(e, t), Yo = Ge([Se, je], () => Xo);
|
|
4226
|
+
Ge([Se], () => Vo);
|
|
4227
|
+
Ge([Se], () => zo);
|
|
4228
|
+
Ge([Se], () => Zo);
|
|
4229
|
+
Ge([Se, je], () => qo);
|
|
4230
|
+
window.emWidgets = { topic: si };
|
|
4231
|
+
const Qo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4232
|
+
var ar = { exports: {} };
|
|
4198
4233
|
/** @license
|
|
4199
4234
|
* eventsource.js
|
|
4200
4235
|
* Available under MIT License (MIT)
|
|
@@ -4202,27 +4237,27 @@ var rr = { exports: {} };
|
|
|
4202
4237
|
*/
|
|
4203
4238
|
(function(e, t) {
|
|
4204
4239
|
(function(r) {
|
|
4205
|
-
var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, h = r.EventSource, l = r.document, f = r.Promise, p = r.fetch,
|
|
4240
|
+
var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, h = r.EventSource, l = r.document, f = r.Promise, p = r.fetch, m = r.Response, y = r.TextDecoder, H = r.TextEncoder, w = r.AbortController;
|
|
4206
4241
|
if (typeof window < "u" && typeof l < "u" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(u) {
|
|
4207
4242
|
l.readyState = "complete";
|
|
4208
4243
|
}, !1)), o == null && a != null && (o = function() {
|
|
4209
4244
|
return new a("Microsoft.XMLHTTP");
|
|
4210
4245
|
}), Object.create == null && (Object.create = function(u) {
|
|
4211
|
-
function
|
|
4246
|
+
function v() {
|
|
4212
4247
|
}
|
|
4213
|
-
return
|
|
4248
|
+
return v.prototype = u, new v();
|
|
4214
4249
|
}), Date.now || (Date.now = function() {
|
|
4215
4250
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
4216
4251
|
}), w == null) {
|
|
4217
4252
|
var C = p;
|
|
4218
|
-
p = function(u,
|
|
4219
|
-
var
|
|
4220
|
-
return C(u, { headers:
|
|
4221
|
-
var A =
|
|
4222
|
-
return
|
|
4223
|
-
status:
|
|
4224
|
-
statusText:
|
|
4225
|
-
headers:
|
|
4253
|
+
p = function(u, v) {
|
|
4254
|
+
var b = v.signal;
|
|
4255
|
+
return C(u, { headers: v.headers, credentials: v.credentials, cache: v.cache }).then(function(g) {
|
|
4256
|
+
var A = g.body.getReader();
|
|
4257
|
+
return b._reader = A, b._aborted && b._reader.cancel(), {
|
|
4258
|
+
status: g.status,
|
|
4259
|
+
statusText: g.statusText,
|
|
4260
|
+
headers: g.headers,
|
|
4226
4261
|
body: {
|
|
4227
4262
|
getReader: function() {
|
|
4228
4263
|
return A;
|
|
@@ -4243,7 +4278,7 @@ var rr = { exports: {} };
|
|
|
4243
4278
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
4244
4279
|
}
|
|
4245
4280
|
P.prototype.decode = function(u) {
|
|
4246
|
-
function
|
|
4281
|
+
function v(x, D, _) {
|
|
4247
4282
|
if (_ === 1)
|
|
4248
4283
|
return x >= 128 >> D && x << D <= 2047;
|
|
4249
4284
|
if (_ === 2)
|
|
@@ -4252,7 +4287,7 @@ var rr = { exports: {} };
|
|
|
4252
4287
|
return x >= 65536 >> D && x << D <= 1114111;
|
|
4253
4288
|
throw new Error();
|
|
4254
4289
|
}
|
|
4255
|
-
function
|
|
4290
|
+
function b(x, D) {
|
|
4256
4291
|
if (x === 6 * 1)
|
|
4257
4292
|
return D >> 6 > 15 ? 3 : D > 31 ? 2 : 1;
|
|
4258
4293
|
if (x === 6 * 2)
|
|
@@ -4261,9 +4296,9 @@ var rr = { exports: {} };
|
|
|
4261
4296
|
return 3;
|
|
4262
4297
|
throw new Error();
|
|
4263
4298
|
}
|
|
4264
|
-
for (var
|
|
4299
|
+
for (var g = 65533, A = "", S = this.bitsNeeded, O = this.codePoint, c = 0; c < u.length; c += 1) {
|
|
4265
4300
|
var d = u[c];
|
|
4266
|
-
S !== 0 && (d < 128 || d > 191 || !
|
|
4301
|
+
S !== 0 && (d < 128 || d > 191 || !v(O << 6 | d & 63, S - 6, b(S, O))) && (S = 0, O = g, A += String.fromCharCode(O)), S === 0 ? (d >= 0 && d <= 127 ? (S = 0, O = d) : d >= 192 && d <= 223 ? (S = 6 * 1, O = d & 31) : d >= 224 && d <= 239 ? (S = 6 * 2, O = d & 15) : d >= 240 && d <= 247 ? (S = 6 * 3, O = d & 7) : (S = 0, O = g), S !== 0 && !v(O, S, b(S, O)) && (S = 0, O = g)) : (S -= 6, O = O << 6 | d & 63), S === 0 && (O <= 65535 ? A += String.fromCharCode(O) : (A += String.fromCharCode(55296 + (O - 65535 - 1 >> 10)), A += String.fromCharCode(56320 + (O - 65535 - 1 & 1023))));
|
|
4267
4302
|
}
|
|
4268
4303
|
return this.bitsNeeded = S, this.codePoint = O, A;
|
|
4269
4304
|
};
|
|
@@ -4281,74 +4316,74 @@ var rr = { exports: {} };
|
|
|
4281
4316
|
function L(u) {
|
|
4282
4317
|
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = B, this.onload = B, this.onerror = B, this.onreadystatechange = B, this._contentType = "", this._xhr = u, this._sendTimeout = 0, this._abort = B;
|
|
4283
4318
|
}
|
|
4284
|
-
L.prototype.open = function(u,
|
|
4319
|
+
L.prototype.open = function(u, v) {
|
|
4285
4320
|
this._abort(!0);
|
|
4286
|
-
var
|
|
4321
|
+
var b = this, g = this._xhr, A = 1, S = 0;
|
|
4287
4322
|
this._abort = function(_) {
|
|
4288
|
-
|
|
4323
|
+
b._sendTimeout !== 0 && (i(b._sendTimeout), b._sendTimeout = 0), (A === 1 || A === 2 || A === 3) && (A = 4, g.onload = B, g.onerror = B, g.onabort = B, g.onprogress = B, g.onreadystatechange = B, g.abort(), S !== 0 && (i(S), S = 0), _ || (b.readyState = 4, b.onabort(null), b.onreadystatechange())), A = 0;
|
|
4289
4324
|
};
|
|
4290
4325
|
var O = function() {
|
|
4291
4326
|
if (A === 1) {
|
|
4292
|
-
var _ = 0, F = "",
|
|
4293
|
-
if ("contentType" in
|
|
4294
|
-
_ = 200, F = "OK",
|
|
4327
|
+
var _ = 0, F = "", pe = void 0;
|
|
4328
|
+
if ("contentType" in g)
|
|
4329
|
+
_ = 200, F = "OK", pe = g.contentType;
|
|
4295
4330
|
else
|
|
4296
4331
|
try {
|
|
4297
|
-
_ =
|
|
4332
|
+
_ = g.status, F = g.statusText, pe = g.getResponseHeader("Content-Type");
|
|
4298
4333
|
} catch {
|
|
4299
|
-
_ = 0, F = "",
|
|
4334
|
+
_ = 0, F = "", pe = void 0;
|
|
4300
4335
|
}
|
|
4301
|
-
_ !== 0 && (A = 2,
|
|
4336
|
+
_ !== 0 && (A = 2, b.readyState = 2, b.status = _, b.statusText = F, b._contentType = pe, b.onreadystatechange());
|
|
4302
4337
|
}
|
|
4303
4338
|
}, c = function() {
|
|
4304
4339
|
if (O(), A === 2 || A === 3) {
|
|
4305
4340
|
A = 3;
|
|
4306
4341
|
var _ = "";
|
|
4307
4342
|
try {
|
|
4308
|
-
_ =
|
|
4343
|
+
_ = g.responseText;
|
|
4309
4344
|
} catch {
|
|
4310
4345
|
}
|
|
4311
|
-
|
|
4346
|
+
b.readyState = 3, b.responseText = _, b.onprogress();
|
|
4312
4347
|
}
|
|
4313
4348
|
}, d = function(_, F) {
|
|
4314
4349
|
if ((F == null || F.preventDefault == null) && (F = {
|
|
4315
4350
|
preventDefault: B
|
|
4316
4351
|
}), c(), A === 1 || A === 2 || A === 3) {
|
|
4317
|
-
if (A = 4, S !== 0 && (i(S), S = 0),
|
|
4318
|
-
|
|
4352
|
+
if (A = 4, S !== 0 && (i(S), S = 0), b.readyState = 4, _ === "load")
|
|
4353
|
+
b.onload(F);
|
|
4319
4354
|
else if (_ === "error")
|
|
4320
|
-
|
|
4355
|
+
b.onerror(F);
|
|
4321
4356
|
else if (_ === "abort")
|
|
4322
|
-
|
|
4357
|
+
b.onabort(F);
|
|
4323
4358
|
else
|
|
4324
4359
|
throw new TypeError();
|
|
4325
|
-
|
|
4360
|
+
b.onreadystatechange();
|
|
4326
4361
|
}
|
|
4327
4362
|
}, x = function(_) {
|
|
4328
|
-
|
|
4363
|
+
g != null && (g.readyState === 4 ? (!("onload" in g) || !("onerror" in g) || !("onabort" in g)) && d(g.responseText === "" ? "error" : "load", _) : g.readyState === 3 ? "onprogress" in g || c() : g.readyState === 2 && O());
|
|
4329
4364
|
}, D = function() {
|
|
4330
4365
|
S = n(function() {
|
|
4331
4366
|
D();
|
|
4332
|
-
}, 500),
|
|
4367
|
+
}, 500), g.readyState === 3 && c();
|
|
4333
4368
|
};
|
|
4334
|
-
"onload" in
|
|
4369
|
+
"onload" in g && (g.onload = function(_) {
|
|
4335
4370
|
d("load", _);
|
|
4336
|
-
}), "onerror" in
|
|
4371
|
+
}), "onerror" in g && (g.onerror = function(_) {
|
|
4337
4372
|
d("error", _);
|
|
4338
|
-
}), "onabort" in
|
|
4373
|
+
}), "onabort" in g && (g.onabort = function(_) {
|
|
4339
4374
|
d("abort", _);
|
|
4340
|
-
}), "onprogress" in
|
|
4375
|
+
}), "onprogress" in g && (g.onprogress = c), "onreadystatechange" in g && (g.onreadystatechange = function(_) {
|
|
4341
4376
|
x(_);
|
|
4342
|
-
}), ("contentType" in
|
|
4377
|
+
}), ("contentType" in g || !("ontimeout" in o.prototype)) && (v += (v.indexOf("?") === -1 ? "?" : "&") + "padding=true"), g.open(u, v, !0), "readyState" in g && (S = n(function() {
|
|
4343
4378
|
D();
|
|
4344
4379
|
}, 0));
|
|
4345
4380
|
}, L.prototype.abort = function() {
|
|
4346
4381
|
this._abort(!1);
|
|
4347
4382
|
}, L.prototype.getResponseHeader = function(u) {
|
|
4348
4383
|
return this._contentType;
|
|
4349
|
-
}, L.prototype.setRequestHeader = function(u,
|
|
4350
|
-
var
|
|
4351
|
-
"setRequestHeader" in
|
|
4384
|
+
}, L.prototype.setRequestHeader = function(u, v) {
|
|
4385
|
+
var b = this._xhr;
|
|
4386
|
+
"setRequestHeader" in b && b.setRequestHeader(u, v);
|
|
4352
4387
|
}, L.prototype.getAllResponseHeaders = function() {
|
|
4353
4388
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4354
4389
|
}, L.prototype.send = function() {
|
|
@@ -4359,48 +4394,48 @@ var rr = { exports: {} };
|
|
|
4359
4394
|
}, 4);
|
|
4360
4395
|
return;
|
|
4361
4396
|
}
|
|
4362
|
-
var
|
|
4363
|
-
"withCredentials" in
|
|
4397
|
+
var v = this._xhr;
|
|
4398
|
+
"withCredentials" in v && (v.withCredentials = this.withCredentials);
|
|
4364
4399
|
try {
|
|
4365
|
-
|
|
4366
|
-
} catch (
|
|
4367
|
-
throw
|
|
4400
|
+
v.send(void 0);
|
|
4401
|
+
} catch (b) {
|
|
4402
|
+
throw b;
|
|
4368
4403
|
}
|
|
4369
4404
|
};
|
|
4370
4405
|
function T(u) {
|
|
4371
|
-
return u.replace(/[A-Z]/g, function(
|
|
4372
|
-
return String.fromCharCode(
|
|
4406
|
+
return u.replace(/[A-Z]/g, function(v) {
|
|
4407
|
+
return String.fromCharCode(v.charCodeAt(0) + 32);
|
|
4373
4408
|
});
|
|
4374
4409
|
}
|
|
4375
4410
|
function M(u) {
|
|
4376
|
-
for (var
|
|
4377
|
-
`),
|
|
4378
|
-
var A =
|
|
4379
|
-
|
|
4411
|
+
for (var v = /* @__PURE__ */ Object.create(null), b = u.split(`\r
|
|
4412
|
+
`), g = 0; g < b.length; g += 1) {
|
|
4413
|
+
var A = b[g], S = A.split(": "), O = S.shift(), c = S.join(": ");
|
|
4414
|
+
v[T(O)] = c;
|
|
4380
4415
|
}
|
|
4381
|
-
this._map =
|
|
4416
|
+
this._map = v;
|
|
4382
4417
|
}
|
|
4383
4418
|
M.prototype.get = function(u) {
|
|
4384
4419
|
return this._map[T(u)];
|
|
4385
4420
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4386
|
-
function
|
|
4421
|
+
function U() {
|
|
4387
4422
|
}
|
|
4388
|
-
|
|
4423
|
+
U.prototype.open = function(u, v, b, g, A, S, O) {
|
|
4389
4424
|
u.open("GET", A);
|
|
4390
4425
|
var c = 0;
|
|
4391
4426
|
u.onprogress = function() {
|
|
4392
4427
|
var x = u.responseText, D = x.slice(c);
|
|
4393
|
-
c += D.length,
|
|
4428
|
+
c += D.length, b(D);
|
|
4394
4429
|
}, u.onerror = function(x) {
|
|
4395
|
-
x.preventDefault(),
|
|
4430
|
+
x.preventDefault(), g(new Error("NetworkError"));
|
|
4396
4431
|
}, u.onload = function() {
|
|
4397
|
-
|
|
4432
|
+
g(null);
|
|
4398
4433
|
}, u.onabort = function() {
|
|
4399
|
-
|
|
4434
|
+
g(null);
|
|
4400
4435
|
}, u.onreadystatechange = function() {
|
|
4401
4436
|
if (u.readyState === o.HEADERS_RECEIVED) {
|
|
4402
4437
|
var x = u.status, D = u.statusText, _ = u.getResponseHeader("Content-Type"), F = u.getAllResponseHeaders();
|
|
4403
|
-
|
|
4438
|
+
v(x, D, _, new M(F));
|
|
4404
4439
|
}
|
|
4405
4440
|
}, u.withCredentials = S;
|
|
4406
4441
|
for (var d in O)
|
|
@@ -4415,7 +4450,7 @@ var rr = { exports: {} };
|
|
|
4415
4450
|
};
|
|
4416
4451
|
function Ie() {
|
|
4417
4452
|
}
|
|
4418
|
-
Ie.prototype.open = function(u,
|
|
4453
|
+
Ie.prototype.open = function(u, v, b, g, A, S, O) {
|
|
4419
4454
|
var c = null, d = new w(), x = d.signal, D = new y();
|
|
4420
4455
|
return p(A, {
|
|
4421
4456
|
headers: O,
|
|
@@ -4423,126 +4458,126 @@ var rr = { exports: {} };
|
|
|
4423
4458
|
signal: x,
|
|
4424
4459
|
cache: "no-store"
|
|
4425
4460
|
}).then(function(_) {
|
|
4426
|
-
return c = _.body.getReader(),
|
|
4427
|
-
var
|
|
4461
|
+
return c = _.body.getReader(), v(_.status, _.statusText, _.headers.get("Content-Type"), new ae(_.headers)), new f(function(F, pe) {
|
|
4462
|
+
var Qe = function() {
|
|
4428
4463
|
c.read().then(function(K) {
|
|
4429
4464
|
if (K.done)
|
|
4430
4465
|
F(void 0);
|
|
4431
4466
|
else {
|
|
4432
4467
|
var Z = D.decode(K.value, { stream: !0 });
|
|
4433
|
-
|
|
4468
|
+
b(Z), Qe();
|
|
4434
4469
|
}
|
|
4435
4470
|
}).catch(function(K) {
|
|
4436
|
-
|
|
4471
|
+
pe(K);
|
|
4437
4472
|
});
|
|
4438
4473
|
};
|
|
4439
|
-
|
|
4474
|
+
Qe();
|
|
4440
4475
|
});
|
|
4441
4476
|
}).catch(function(_) {
|
|
4442
4477
|
if (_.name !== "AbortError")
|
|
4443
4478
|
return _;
|
|
4444
4479
|
}).then(function(_) {
|
|
4445
|
-
|
|
4480
|
+
g(_);
|
|
4446
4481
|
}), {
|
|
4447
4482
|
abort: function() {
|
|
4448
4483
|
c?.cancel(), d.abort();
|
|
4449
4484
|
}
|
|
4450
4485
|
};
|
|
4451
4486
|
};
|
|
4452
|
-
function
|
|
4487
|
+
function he() {
|
|
4453
4488
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4454
4489
|
}
|
|
4455
|
-
function
|
|
4490
|
+
function ke(u) {
|
|
4456
4491
|
n(function() {
|
|
4457
4492
|
throw u;
|
|
4458
4493
|
}, 0);
|
|
4459
4494
|
}
|
|
4460
|
-
|
|
4495
|
+
he.prototype.dispatchEvent = function(u) {
|
|
4461
4496
|
u.target = this;
|
|
4462
|
-
var
|
|
4463
|
-
if (
|
|
4464
|
-
for (var
|
|
4465
|
-
var A =
|
|
4497
|
+
var v = this._listeners[u.type];
|
|
4498
|
+
if (v != null)
|
|
4499
|
+
for (var b = v.length, g = 0; g < b; g += 1) {
|
|
4500
|
+
var A = v[g];
|
|
4466
4501
|
try {
|
|
4467
4502
|
typeof A.handleEvent == "function" ? A.handleEvent(u) : A.call(this, u);
|
|
4468
4503
|
} catch (S) {
|
|
4469
|
-
|
|
4504
|
+
ke(S);
|
|
4470
4505
|
}
|
|
4471
4506
|
}
|
|
4472
|
-
},
|
|
4507
|
+
}, he.prototype.addEventListener = function(u, v) {
|
|
4473
4508
|
u = String(u);
|
|
4474
|
-
var
|
|
4475
|
-
|
|
4476
|
-
for (var A = !1, S = 0; S <
|
|
4477
|
-
|
|
4478
|
-
A ||
|
|
4479
|
-
},
|
|
4509
|
+
var b = this._listeners, g = b[u];
|
|
4510
|
+
g == null && (g = [], b[u] = g);
|
|
4511
|
+
for (var A = !1, S = 0; S < g.length; S += 1)
|
|
4512
|
+
g[S] === v && (A = !0);
|
|
4513
|
+
A || g.push(v);
|
|
4514
|
+
}, he.prototype.removeEventListener = function(u, v) {
|
|
4480
4515
|
u = String(u);
|
|
4481
|
-
var
|
|
4482
|
-
if (
|
|
4483
|
-
for (var A = [], S = 0; S <
|
|
4484
|
-
|
|
4485
|
-
A.length === 0 ? delete
|
|
4516
|
+
var b = this._listeners, g = b[u];
|
|
4517
|
+
if (g != null) {
|
|
4518
|
+
for (var A = [], S = 0; S < g.length; S += 1)
|
|
4519
|
+
g[S] !== v && A.push(g[S]);
|
|
4520
|
+
A.length === 0 ? delete b[u] : b[u] = A;
|
|
4486
4521
|
}
|
|
4487
4522
|
};
|
|
4488
4523
|
function Ee(u) {
|
|
4489
4524
|
this.type = u, this.target = void 0;
|
|
4490
4525
|
}
|
|
4491
|
-
function st(u,
|
|
4492
|
-
Ee.call(this, u), this.data =
|
|
4526
|
+
function st(u, v) {
|
|
4527
|
+
Ee.call(this, u), this.data = v.data, this.lastEventId = v.lastEventId;
|
|
4493
4528
|
}
|
|
4494
4529
|
st.prototype = Object.create(Ee.prototype);
|
|
4495
|
-
function
|
|
4496
|
-
Ee.call(this, u), this.status =
|
|
4530
|
+
function Xe(u, v) {
|
|
4531
|
+
Ee.call(this, u), this.status = v.status, this.statusText = v.statusText, this.headers = v.headers;
|
|
4497
4532
|
}
|
|
4498
|
-
|
|
4499
|
-
function at(u,
|
|
4500
|
-
Ee.call(this, u), this.error =
|
|
4533
|
+
Xe.prototype = Object.create(Ee.prototype);
|
|
4534
|
+
function at(u, v) {
|
|
4535
|
+
Ee.call(this, u), this.error = v.error;
|
|
4501
4536
|
}
|
|
4502
4537
|
at.prototype = Object.create(Ee.prototype);
|
|
4503
|
-
var xe = -1, z = 0,
|
|
4504
|
-
var
|
|
4505
|
-
return
|
|
4538
|
+
var xe = -1, z = 0, fe = 1, ce = 2, Ve = -1, ne = 0, ze = 1, Ze = 2, ut = 3, Ot = /^text\/event\-stream(;.*)?$/i, lt = 1e3, qe = 18e6, Ye = function(u, v) {
|
|
4539
|
+
var b = u == null ? v : parseInt(u, 10);
|
|
4540
|
+
return b !== b && (b = v), Le(b);
|
|
4506
4541
|
}, Le = function(u) {
|
|
4507
|
-
return Math.min(Math.max(u, lt),
|
|
4508
|
-
},
|
|
4542
|
+
return Math.min(Math.max(u, lt), qe);
|
|
4543
|
+
}, de = function(u, v, b) {
|
|
4509
4544
|
try {
|
|
4510
|
-
typeof
|
|
4511
|
-
} catch (
|
|
4512
|
-
|
|
4545
|
+
typeof v == "function" && v.call(u, b);
|
|
4546
|
+
} catch (g) {
|
|
4547
|
+
ke(g);
|
|
4513
4548
|
}
|
|
4514
4549
|
};
|
|
4515
|
-
function J(u,
|
|
4516
|
-
|
|
4550
|
+
function J(u, v) {
|
|
4551
|
+
he.call(this), v = v || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Pt(this, u, v);
|
|
4517
4552
|
}
|
|
4518
4553
|
function ht() {
|
|
4519
4554
|
return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
|
|
4520
4555
|
}
|
|
4521
|
-
var
|
|
4522
|
-
function
|
|
4523
|
-
|
|
4524
|
-
var
|
|
4556
|
+
var Ct = p != null && m != null && "body" in m.prototype;
|
|
4557
|
+
function Pt(u, v, b) {
|
|
4558
|
+
v = String(v);
|
|
4559
|
+
var g = !!b.withCredentials, A = b.lastEventIdQueryParameterName || "lastEventId", S = Le(1e3), O = Ye(b.heartbeatTimeout, 45e3), c = "", d = S, x = !1, D = 0, _ = b.headers || {}, F = b.Transport, pe = Ct && F == null ? void 0 : new L(F != null ? new F() : ht()), Qe = F != null && typeof F != "string" ? new F() : pe == null ? new Ie() : new U(), K = void 0, Z = 0, ie = xe, Oe = "", ct = "", ge = "", dt = "", q = ne, Nt = 0, Te = 0, xn = function(X, k, ee, te) {
|
|
4525
4560
|
if (ie === z)
|
|
4526
|
-
if (X === 200 && ee != null &&
|
|
4527
|
-
ie =
|
|
4528
|
-
var Y = new
|
|
4561
|
+
if (X === 200 && ee != null && Ot.test(ee)) {
|
|
4562
|
+
ie = fe, x = Date.now(), d = S, u.readyState = fe;
|
|
4563
|
+
var Y = new Xe("open", {
|
|
4529
4564
|
status: X,
|
|
4530
4565
|
statusText: k,
|
|
4531
4566
|
headers: te
|
|
4532
4567
|
});
|
|
4533
|
-
u.dispatchEvent(Y),
|
|
4568
|
+
u.dispatchEvent(Y), de(u, u.onopen, Y);
|
|
4534
4569
|
} else {
|
|
4535
4570
|
var V = "";
|
|
4536
|
-
X !== 200 ? (k && (k = k.replace(/\s+/g, " ")), V = "EventSource's response has a status " + X + " " + k + " that is not 200. Aborting the connection.") : V = "EventSource's response has a Content-Type specifying an unsupported type: " + (ee == null ? "-" : ee.replace(/\s+/g, " ")) + ". Aborting the connection.",
|
|
4537
|
-
var Y = new
|
|
4571
|
+
X !== 200 ? (k && (k = k.replace(/\s+/g, " ")), V = "EventSource's response has a status " + X + " " + k + " that is not 200. Aborting the connection.") : V = "EventSource's response has a Content-Type specifying an unsupported type: " + (ee == null ? "-" : ee.replace(/\s+/g, " ")) + ". Aborting the connection.", Mt();
|
|
4572
|
+
var Y = new Xe("error", {
|
|
4538
4573
|
status: X,
|
|
4539
4574
|
statusText: k,
|
|
4540
4575
|
headers: te
|
|
4541
4576
|
});
|
|
4542
|
-
u.dispatchEvent(Y),
|
|
4577
|
+
u.dispatchEvent(Y), de(u, u.onerror, Y), console.error(V);
|
|
4543
4578
|
}
|
|
4544
|
-
},
|
|
4545
|
-
if (ie ===
|
|
4579
|
+
}, wn = function(X) {
|
|
4580
|
+
if (ie === fe) {
|
|
4546
4581
|
for (var k = -1, ee = 0; ee < X.length; ee += 1) {
|
|
4547
4582
|
var te = X.charCodeAt(ee);
|
|
4548
4583
|
(te === 10 || te === 13) && (k = ee);
|
|
@@ -4551,65 +4586,65 @@ var rr = { exports: {} };
|
|
|
4551
4586
|
dt = (k === -1 ? dt : "") + X.slice(k + 1), X !== "" && (x = Date.now(), D += X.length);
|
|
4552
4587
|
for (var V = 0; V < Y.length; V += 1) {
|
|
4553
4588
|
var te = Y.charCodeAt(V);
|
|
4554
|
-
if (q ===
|
|
4589
|
+
if (q === Ve && te === 10)
|
|
4555
4590
|
q = ne;
|
|
4556
|
-
else if (q ===
|
|
4591
|
+
else if (q === Ve && (q = ne), te === 13 || te === 10) {
|
|
4557
4592
|
if (q !== ne) {
|
|
4558
|
-
q ===
|
|
4559
|
-
var me = Y.slice(
|
|
4593
|
+
q === ze && (Te = V + 1);
|
|
4594
|
+
var me = Y.slice(Nt, Te - 1), ve = Y.slice(Te + (Te < V && Y.charCodeAt(Te) === 32 ? 1 : 0), V);
|
|
4560
4595
|
me === "data" ? (Oe += `
|
|
4561
|
-
`, Oe +=
|
|
4562
|
-
|
|
4596
|
+
`, Oe += ve) : me === "id" ? ct = ve : me === "event" ? ge = ve : me === "retry" ? (S = Ye(ve, S), d = S) : me === "heartbeatTimeout" && (O = Ye(ve, O), Z !== 0 && (i(Z), Z = n(function() {
|
|
4597
|
+
Je();
|
|
4563
4598
|
}, O)));
|
|
4564
4599
|
}
|
|
4565
4600
|
if (q === ne) {
|
|
4566
4601
|
if (Oe !== "") {
|
|
4567
|
-
c = ct,
|
|
4568
|
-
var Ce = new st(
|
|
4602
|
+
c = ct, ge === "" && (ge = "message");
|
|
4603
|
+
var Ce = new st(ge, {
|
|
4569
4604
|
data: Oe.slice(1),
|
|
4570
4605
|
lastEventId: ct
|
|
4571
4606
|
});
|
|
4572
|
-
if (u.dispatchEvent(Ce),
|
|
4607
|
+
if (u.dispatchEvent(Ce), ge === "open" ? de(u, u.onopen, Ce) : ge === "message" ? de(u, u.onmessage, Ce) : ge === "error" && de(u, u.onerror, Ce), ie === ce)
|
|
4573
4608
|
return;
|
|
4574
4609
|
}
|
|
4575
|
-
Oe = "",
|
|
4610
|
+
Oe = "", ge = "";
|
|
4576
4611
|
}
|
|
4577
|
-
q = te === 13 ?
|
|
4612
|
+
q = te === 13 ? Ve : ne;
|
|
4578
4613
|
} else
|
|
4579
|
-
q === ne && (
|
|
4614
|
+
q === ne && (Nt = V, q = ze), q === ze ? te === 58 && (Te = V + 1, q = Ze) : q === Ze && (q = ut);
|
|
4580
4615
|
}
|
|
4581
4616
|
}
|
|
4582
|
-
},
|
|
4583
|
-
if (ie ===
|
|
4617
|
+
}, cr = function(X) {
|
|
4618
|
+
if (ie === fe || ie === z) {
|
|
4584
4619
|
ie = xe, Z !== 0 && (i(Z), Z = 0), Z = n(function() {
|
|
4585
|
-
|
|
4620
|
+
Je();
|
|
4586
4621
|
}, d), d = Le(Math.min(S * 16, d * 2)), u.readyState = z;
|
|
4587
4622
|
var k = new at("error", { error: X });
|
|
4588
|
-
u.dispatchEvent(k),
|
|
4623
|
+
u.dispatchEvent(k), de(u, u.onerror, k), X != null && console.error(X);
|
|
4589
4624
|
}
|
|
4590
|
-
},
|
|
4591
|
-
ie =
|
|
4592
|
-
},
|
|
4625
|
+
}, Mt = function() {
|
|
4626
|
+
ie = ce, K != null && (K.abort(), K = void 0), Z !== 0 && (i(Z), Z = 0), u.readyState = ce;
|
|
4627
|
+
}, Je = function() {
|
|
4593
4628
|
if (Z = 0, ie !== xe) {
|
|
4594
4629
|
if (!x && K != null)
|
|
4595
|
-
|
|
4630
|
+
cr(new Error("No activity within " + O + " milliseconds. " + (ie === z ? "No response received." : D + " chars received.") + " Reconnecting.")), K != null && (K.abort(), K = void 0);
|
|
4596
4631
|
else {
|
|
4597
4632
|
var X = Math.max((x || Date.now()) + O - Date.now(), 1);
|
|
4598
4633
|
x = !1, Z = n(function() {
|
|
4599
|
-
|
|
4634
|
+
Je();
|
|
4600
4635
|
}, X);
|
|
4601
4636
|
}
|
|
4602
4637
|
return;
|
|
4603
4638
|
}
|
|
4604
4639
|
x = !1, D = 0, Z = n(function() {
|
|
4605
|
-
|
|
4606
|
-
}, O), ie = z, Oe = "",
|
|
4607
|
-
var k =
|
|
4608
|
-
if (
|
|
4609
|
-
var ee =
|
|
4610
|
-
k = ee === -1 ?
|
|
4611
|
-
return Ce === A ? "" :
|
|
4612
|
-
}), k += (
|
|
4640
|
+
Je();
|
|
4641
|
+
}, O), ie = z, Oe = "", ge = "", ct = c, dt = "", Nt = 0, Te = 0, q = ne;
|
|
4642
|
+
var k = v;
|
|
4643
|
+
if (v.slice(0, 5) !== "data:" && v.slice(0, 5) !== "blob:" && c !== "") {
|
|
4644
|
+
var ee = v.indexOf("?");
|
|
4645
|
+
k = ee === -1 ? v : v.slice(0, ee + 1) + v.slice(ee + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ve, Ce) {
|
|
4646
|
+
return Ce === A ? "" : ve;
|
|
4647
|
+
}), k += (v.indexOf("?") === -1 ? "?" : "&") + A + "=" + encodeURIComponent(c);
|
|
4613
4648
|
}
|
|
4614
4649
|
var te = u.withCredentials, Y = {};
|
|
4615
4650
|
Y.Accept = "text/event-stream";
|
|
@@ -4618,40 +4653,40 @@ var rr = { exports: {} };
|
|
|
4618
4653
|
for (var me in V)
|
|
4619
4654
|
Object.prototype.hasOwnProperty.call(V, me) && (Y[me] = V[me]);
|
|
4620
4655
|
try {
|
|
4621
|
-
K =
|
|
4622
|
-
} catch (
|
|
4623
|
-
throw
|
|
4656
|
+
K = Qe.open(pe, xn, wn, cr, k, te, Y);
|
|
4657
|
+
} catch (ve) {
|
|
4658
|
+
throw Mt(), ve;
|
|
4624
4659
|
}
|
|
4625
4660
|
};
|
|
4626
|
-
u.url =
|
|
4661
|
+
u.url = v, u.readyState = z, u.withCredentials = g, u.headers = _, u._close = Mt, Je();
|
|
4627
4662
|
}
|
|
4628
|
-
J.prototype = Object.create(
|
|
4663
|
+
J.prototype = Object.create(he.prototype), J.prototype.CONNECTING = z, J.prototype.OPEN = fe, J.prototype.CLOSED = ce, J.prototype.close = function() {
|
|
4629
4664
|
this._close();
|
|
4630
|
-
}, J.CONNECTING = z, J.OPEN =
|
|
4665
|
+
}, J.CONNECTING = z, J.OPEN = fe, J.CLOSED = ce, J.prototype.withCredentials = void 0;
|
|
4631
4666
|
var ft = h;
|
|
4632
4667
|
o != null && (h == null || !("withCredentials" in h.prototype)) && (ft = J), function(u) {
|
|
4633
4668
|
{
|
|
4634
|
-
var
|
|
4635
|
-
|
|
4669
|
+
var v = u(t);
|
|
4670
|
+
v !== void 0 && (e.exports = v);
|
|
4636
4671
|
}
|
|
4637
4672
|
}(function(u) {
|
|
4638
4673
|
u.EventSourcePolyfill = J, u.NativeEventSource = h, u.EventSource = ft;
|
|
4639
4674
|
});
|
|
4640
|
-
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self :
|
|
4641
|
-
})(
|
|
4642
|
-
var
|
|
4643
|
-
function
|
|
4675
|
+
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : ui : globalThis);
|
|
4676
|
+
})(ar, ar.exports);
|
|
4677
|
+
var Jo = ar.exports;
|
|
4678
|
+
function Ko({ withLocale: e, translations: t }) {
|
|
4644
4679
|
Se.subscribe((r) => {
|
|
4645
|
-
r == null && (
|
|
4680
|
+
r == null && (je.set(t), Se.set(e));
|
|
4646
4681
|
});
|
|
4647
4682
|
}
|
|
4648
|
-
function
|
|
4649
|
-
|
|
4683
|
+
function Rr(e, t) {
|
|
4684
|
+
mn(e, t);
|
|
4650
4685
|
}
|
|
4651
|
-
function
|
|
4686
|
+
function es(e) {
|
|
4652
4687
|
Se.set(e);
|
|
4653
4688
|
}
|
|
4654
|
-
const
|
|
4689
|
+
const Dr = {
|
|
4655
4690
|
en: {
|
|
4656
4691
|
wageringSlider: {
|
|
4657
4692
|
title: "- Wagering Bonus -",
|
|
@@ -4688,7 +4723,7 @@ const Pr = {
|
|
|
4688
4723
|
noWageringMsg: "You don't have any wagering bonus."
|
|
4689
4724
|
}
|
|
4690
4725
|
}
|
|
4691
|
-
},
|
|
4726
|
+
}, ts = (e) => {
|
|
4692
4727
|
const t = window.BigInt;
|
|
4693
4728
|
if (!e || e == null || e.length === 0)
|
|
4694
4729
|
return;
|
|
@@ -4703,15 +4738,15 @@ const Pr = {
|
|
|
4703
4738
|
),
|
|
4704
4739
|
maxId: r.toString()
|
|
4705
4740
|
};
|
|
4706
|
-
},
|
|
4741
|
+
}, rs = (e, t) => JSON.stringify(
|
|
4707
4742
|
e.map((r) => ({
|
|
4708
4743
|
bonusWalletID: r.id,
|
|
4709
4744
|
progressID: t[r.id] || 0
|
|
4710
4745
|
}))
|
|
4711
|
-
),
|
|
4746
|
+
), ns = (e, t) => {
|
|
4712
4747
|
let r = document.createElement("style");
|
|
4713
4748
|
r.innerHTML = t, e.appendChild(r);
|
|
4714
|
-
},
|
|
4749
|
+
}, is = (e, t) => {
|
|
4715
4750
|
let r = new URL(t), n = document.createElement("style");
|
|
4716
4751
|
fetch(r.href).then((i) => i.text()).then((i) => {
|
|
4717
4752
|
n.innerHTML = i, setTimeout(() => {
|
|
@@ -4731,64 +4766,64 @@ if (typeof window < "u") {
|
|
|
4731
4766
|
}
|
|
4732
4767
|
};
|
|
4733
4768
|
};
|
|
4734
|
-
customElements.define = e(customElements.define), import("./GeneralIconProgressBar-
|
|
4769
|
+
customElements.define = e(customElements.define), import("./GeneralIconProgressBar-B8zRBib0.js").then(({ default: t }) => {
|
|
4735
4770
|
!customElements.get("general-icon-progress-bar") && customElements.define("general-icon-progress-bar", t.element);
|
|
4736
4771
|
});
|
|
4737
4772
|
}
|
|
4738
|
-
const
|
|
4739
|
-
function
|
|
4740
|
-
|
|
4773
|
+
const En = "data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.67757%202.5647L3.72412%20-1.25356e-07L5.77067%202.5647L3.72412%205.12939L1.67757%202.5647Z'%20fill='%23FF8B03'/%3e%3crect%20x='0.468506'%20y='6.1134'%20width='6.55827'%20height='0.936896'%20fill='%23FF8B03'/%3e%3cpath%20d='M7.49512%201.42889L0.4684%205.64492H7.02667L7.49512%201.42889Z'%20fill='%23FFB82E'/%3e%3cpath%20d='M0%201.42889L7.02672%205.64492H0.468448L0%201.42889Z'%20fill='%23FFD700'/%3e%3c/svg%3e";
|
|
4774
|
+
function os(e) {
|
|
4775
|
+
Hn(e, "svelte-l28bzx", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}div{vertical-align:middle}.WageringBonusWrapper,.SliderWrapper{overflow:hidden;width:100%;height:100%;min-width:150px;min-height:92px;max-width:188px;max-height:108px}.WageringBonusWrapper{position:relative}.SliderIcon{position:absolute;top:0px;right:0;cursor:pointer}.ShowWidget{transition:all 1s ease-in-out;transform:translateX(0);display:table;opacity:1}.HiddenWidget{transition:all 1s ease-in-out;transform:translateX(100%);opacity:0}.SliderWrapper{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);box-sizing:border-box;border:1px solid #FF8364;background:linear-gradient(90deg, rgba(40, 40, 40, 0.7) 0%, #847c7c 26.06%, #847c7c 72.19%, rgba(40, 40, 40, 0.7) 100%);border-radius:4px;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);display:table}.LeftArrow,.RightArrow{padding:3px;height:100%;display:table-cell;vertical-align:middle;cursor:pointer;color:var(--emw--bonus-card-red, var(--emw--color-red, #FF8364))}.LeftArrow.Disabled,.RightArrow.Disabled{background:var(--emw--color-gray-300, #A9A8A8)}.LeftArrow{padding-right:0px}.RightArrow{padding-left:0px}.SliderCenter{height:100%;overflow:hidden}.SliderCenter .Title{font-style:normal;font-weight:700;font-size:12px;line-height:12px;text-align:center;color:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #FFD700));margin:5px auto 3px}.SliderCenter .Hidden{opacity:0;transition:opacity;animation:0.2s}.SliderCenter .WagerList{height:calc(100% - 20px);display:block;position:relative}.SliderCenter .WagerList .hiddenDiv{transform:translateX(var(--transformToValue, 100%));animation:slideOut 1s;-moz-animation:slideOut 1s;-webkit-animation:slideOut 1s;-o-animation:slideOut 1s}.SliderCenter .WagerList .shownDiv{animation:slideIn 1.5s;-moz-animation:slideIn 1.5s;-webkit-animation:slideIn 1.5s;-o-animation:slideIn 1.5s}.SliderCenter .WagerList .WageringBonusInfo{overflow:hidden;display:block;height:100%;width:100%;position:absolute;top:0}.SliderCenter .WagerList .WageringBonusInfo .trophy{display:table-cell;vertical-align:middle;padding:3px}.SliderCenter .WagerList .WageringBonusInfo .trophy img.MiniIcon{width:18px;height:18px}.SliderCenter .WagerList .WageringBonusInfo .BonusName{display:table;height:calc(100% - 25px)}.SliderCenter .WagerList .WageringBonusInfo .BonusName .gameInfo{cursor:pointer;font-style:normal;font-weight:400;font-size:11px;line-height:13px;display:table-cell;align-items:center;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));vertical-align:middle;overflow:hidden}.SliderCenter .bottom{width:100%;height:20px;vertical-align:bottom;margin-bottom:5px}.svg{height:12px}.svg img.MiniIcon{width:14px;height:14px}.restoreButton{display:table}.hideButton{transform:rotate(180deg);position:absolute;top:0px;right:2px;display:table;color:var(--emw--bonus-card-red, var(--emw--color-red, #FF8364));cursor:pointer}.NoWageringMsg{text-align:center;display:flex;align-items:center;height:100%;font-size:0.8rem;padding:10px}@keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue))}to{opacity:1;transform:translateX(0)}}@keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-moz-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 100%))}to{opacity:1;transform:translateX(0)}}@-moz-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-webkit-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-o-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-o-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}");
|
|
4741
4776
|
}
|
|
4742
|
-
function
|
|
4777
|
+
function Fr(e, t, r) {
|
|
4743
4778
|
const n = e.slice();
|
|
4744
4779
|
return n[60] = t[r], n[62] = r, n;
|
|
4745
4780
|
}
|
|
4746
|
-
function
|
|
4781
|
+
function ss(e) {
|
|
4747
4782
|
let t, r = (
|
|
4748
4783
|
/*$_*/
|
|
4749
4784
|
e[10]("wageringSlider.noWageringMsg") + ""
|
|
4750
4785
|
), n;
|
|
4751
4786
|
return {
|
|
4752
4787
|
c() {
|
|
4753
|
-
t = W("div"), n =
|
|
4788
|
+
t = W("div"), n = St(r), E(t, "class", "NoWageringMsg");
|
|
4754
4789
|
},
|
|
4755
4790
|
m(i, o) {
|
|
4756
|
-
be(i, t, o),
|
|
4791
|
+
be(i, t, o), $(t, n);
|
|
4757
4792
|
},
|
|
4758
4793
|
p(i, o) {
|
|
4759
4794
|
o[0] & /*$_*/
|
|
4760
4795
|
1024 && r !== (r = /*$_*/
|
|
4761
|
-
i[10]("wageringSlider.noWageringMsg") + "") &&
|
|
4796
|
+
i[10]("wageringSlider.noWageringMsg") + "") && lr(n, r);
|
|
4762
4797
|
},
|
|
4763
4798
|
d(i) {
|
|
4764
4799
|
i && ue(t);
|
|
4765
4800
|
}
|
|
4766
4801
|
};
|
|
4767
4802
|
}
|
|
4768
|
-
function
|
|
4803
|
+
function as(e) {
|
|
4769
4804
|
let t, r, n, i, o, s, a, h = (
|
|
4770
4805
|
/*$_*/
|
|
4771
4806
|
e[10]("wageringSlider.title") + ""
|
|
4772
|
-
), l, f, p,
|
|
4807
|
+
), l, f, p, m, y, H, w, C, P, I, B = gr(
|
|
4773
4808
|
/*wageringList*/
|
|
4774
4809
|
e[2]
|
|
4775
4810
|
), L = [];
|
|
4776
4811
|
for (let T = 0; T < B.length; T += 1)
|
|
4777
|
-
L[T] =
|
|
4812
|
+
L[T] = Ur(Fr(e, B, T));
|
|
4778
4813
|
return {
|
|
4779
4814
|
c() {
|
|
4780
|
-
t = W("div"), r = pt("svg"), n = pt("path"), o =
|
|
4815
|
+
t = W("div"), r = pt("svg"), n = pt("path"), o = ye(), s = W("div"), a = W("div"), l = St(h), f = ye(), p = W("div");
|
|
4781
4816
|
for (let T = 0; T < L.length; T += 1)
|
|
4782
4817
|
L[T].c();
|
|
4783
|
-
|
|
4818
|
+
m = ye(), y = W("div"), H = pt("svg"), w = pt("path"), E(n, "d", "M3 7L1 4L3 1"), E(n, "stroke", "currentColor"), E(n, "stroke-linecap", "round"), E(n, "stroke-linejoin", "round"), E(r, "width", "6"), E(r, "height", "14"), E(r, "viewBox", "0 0 4 8"), E(r, "fill", "none"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(t, "class", i = "LeftArrow " + /*isFirst*/
|
|
4784
4819
|
(e[5] ? "Disabled" : "")), E(t, "role", "button"), E(t, "tabindex", "0"), E(a, "class", "Title Top"), E(p, "class", "WagerList"), E(s, "class", "SliderCenter"), E(w, "d", "M1 1L3 4L1 7"), E(w, "stroke", "currentColor"), E(w, "stroke-linecap", "round"), E(w, "stroke-linejoin", "round"), E(H, "width", "6"), E(H, "height", "14"), E(H, "viewBox", "0 0 4 8"), E(H, "fill", "none"), E(H, "xmlns", "http://www.w3.org/2000/svg"), E(y, "class", C = "RightArrow " + /*isLast*/
|
|
4785
4820
|
(e[6] ? "Disabled" : "")), E(y, "role", "button"), E(y, "tabindex", "0");
|
|
4786
4821
|
},
|
|
4787
4822
|
m(T, M) {
|
|
4788
|
-
be(T, t, M),
|
|
4789
|
-
for (let
|
|
4790
|
-
L[
|
|
4791
|
-
be(T,
|
|
4823
|
+
be(T, t, M), $(t, r), $(r, n), be(T, o, M), be(T, s, M), $(s, a), $(a, l), $(s, f), $(s, p);
|
|
4824
|
+
for (let U = 0; U < L.length; U += 1)
|
|
4825
|
+
L[U] && L[U].m(p, null);
|
|
4826
|
+
be(T, m, M), be(T, y, M), $(y, H), $(H, w), P || (I = [
|
|
4792
4827
|
He(
|
|
4793
4828
|
t,
|
|
4794
4829
|
"click",
|
|
@@ -4820,19 +4855,19 @@ function ns(e) {
|
|
|
4820
4855
|
32 && i !== (i = "LeftArrow " + /*isFirst*/
|
|
4821
4856
|
(T[5] ? "Disabled" : "")) && E(t, "class", i), M[0] & /*$_*/
|
|
4822
4857
|
1024 && h !== (h = /*$_*/
|
|
4823
|
-
T[10]("wageringSlider.title") + "") &&
|
|
4858
|
+
T[10]("wageringSlider.title") + "") && lr(l, h), M[0] & /*currentWagerIdx, hiddenDivClass, wageringList, progressfractiondigit, onWagingBonusTitleClick*/
|
|
4824
4859
|
16909) {
|
|
4825
|
-
B =
|
|
4860
|
+
B = gr(
|
|
4826
4861
|
/*wageringList*/
|
|
4827
4862
|
T[2]
|
|
4828
4863
|
);
|
|
4829
|
-
let
|
|
4830
|
-
for (
|
|
4831
|
-
const ae =
|
|
4832
|
-
L[
|
|
4864
|
+
let U;
|
|
4865
|
+
for (U = 0; U < B.length; U += 1) {
|
|
4866
|
+
const ae = Fr(T, B, U);
|
|
4867
|
+
L[U] ? L[U].p(ae, M) : (L[U] = Ur(ae), L[U].c(), L[U].m(p, null));
|
|
4833
4868
|
}
|
|
4834
|
-
for (;
|
|
4835
|
-
L[
|
|
4869
|
+
for (; U < L.length; U += 1)
|
|
4870
|
+
L[U].d(1);
|
|
4836
4871
|
L.length = B.length;
|
|
4837
4872
|
}
|
|
4838
4873
|
M[0] & /*isLast*/
|
|
@@ -4840,15 +4875,15 @@ function ns(e) {
|
|
|
4840
4875
|
(T[6] ? "Disabled" : "")) && E(y, "class", C);
|
|
4841
4876
|
},
|
|
4842
4877
|
d(T) {
|
|
4843
|
-
T && (ue(t), ue(o), ue(s), ue(
|
|
4878
|
+
T && (ue(t), ue(o), ue(s), ue(m), ue(y)), In(L, T), P = !1, Ae(I);
|
|
4844
4879
|
}
|
|
4845
4880
|
};
|
|
4846
4881
|
}
|
|
4847
|
-
function
|
|
4882
|
+
function Ur(e) {
|
|
4848
4883
|
let t, r, n, i, o, s = (
|
|
4849
4884
|
/*wagerInfo*/
|
|
4850
4885
|
e[60].title + ""
|
|
4851
|
-
), a, h, l, f, p,
|
|
4886
|
+
), a, h, l, f, p, m, y, H, w, C, P, I, B;
|
|
4852
4887
|
function L() {
|
|
4853
4888
|
return (
|
|
4854
4889
|
/*click_handler_2*/
|
|
@@ -4860,8 +4895,8 @@ function Mr(e) {
|
|
|
4860
4895
|
}
|
|
4861
4896
|
return {
|
|
4862
4897
|
c() {
|
|
4863
|
-
t = W("div"), r = W("div"), n = W("div"), n.innerHTML = `<img alt="crown" class="MiniIcon" src="${
|
|
4864
|
-
e[60].currentStep), re(f, "status",
|
|
4898
|
+
t = W("div"), r = W("div"), n = W("div"), n.innerHTML = `<img alt="crown" class="MiniIcon" src="${En}"/>`, i = ye(), o = W("div"), a = St(s), h = ye(), l = W("div"), f = W("general-icon-progress-bar"), C = ye(), E(n, "class", "trophy"), E(o, "class", "gameInfo"), E(o, "role", "button"), E(o, "tabindex", "0"), E(r, "class", "BonusName"), re(f, "currentstep", p = /*wagerInfo*/
|
|
4899
|
+
e[60].currentStep), re(f, "status", m = /*wagerInfo*/
|
|
4865
4900
|
e[60].status), re(f, "triggerreset", y = /*wagerInfo*/
|
|
4866
4901
|
e[60].triggerreset), re(f, "total", H = /*wagerInfo*/
|
|
4867
4902
|
e[60].levelIncrement), re(
|
|
@@ -4878,16 +4913,16 @@ function Mr(e) {
|
|
|
4878
4913
|
) : "shownDiv"));
|
|
4879
4914
|
},
|
|
4880
4915
|
m(T, M) {
|
|
4881
|
-
be(T, t, M),
|
|
4916
|
+
be(T, t, M), $(t, r), $(r, n), $(r, i), $(r, o), $(o, a), $(t, h), $(t, l), $(l, f), $(t, C), I || (B = He(o, "click", L), I = !0);
|
|
4882
4917
|
},
|
|
4883
4918
|
p(T, M) {
|
|
4884
4919
|
e = T, M[0] & /*wageringList*/
|
|
4885
4920
|
4 && s !== (s = /*wagerInfo*/
|
|
4886
|
-
e[60].title + "") &&
|
|
4921
|
+
e[60].title + "") && lr(a, s), M[0] & /*wageringList*/
|
|
4887
4922
|
4 && p !== (p = /*wagerInfo*/
|
|
4888
4923
|
e[60].currentStep) && re(f, "currentstep", p), M[0] & /*wageringList*/
|
|
4889
|
-
4 &&
|
|
4890
|
-
e[60].status) && re(f, "status",
|
|
4924
|
+
4 && m !== (m = /*wagerInfo*/
|
|
4925
|
+
e[60].status) && re(f, "status", m), M[0] & /*wageringList*/
|
|
4891
4926
|
4 && y !== (y = /*wagerInfo*/
|
|
4892
4927
|
e[60].triggerreset) && re(f, "triggerreset", y), M[0] & /*wageringList*/
|
|
4893
4928
|
4 && H !== (H = /*wagerInfo*/
|
|
@@ -4912,31 +4947,31 @@ function Mr(e) {
|
|
|
4912
4947
|
}
|
|
4913
4948
|
};
|
|
4914
4949
|
}
|
|
4915
|
-
function
|
|
4916
|
-
let t, r, n, i, o, s, a, h, l, f, p,
|
|
4950
|
+
function us(e) {
|
|
4951
|
+
let t, r, n, i, o, s, a, h, l, f, p, m, y;
|
|
4917
4952
|
function H(P, I) {
|
|
4918
4953
|
if (
|
|
4919
4954
|
/*wageringList*/
|
|
4920
4955
|
P[2] && /*wageringList*/
|
|
4921
4956
|
P[2].length > 0
|
|
4922
4957
|
)
|
|
4923
|
-
return
|
|
4958
|
+
return as;
|
|
4924
4959
|
if (
|
|
4925
4960
|
/*wageringList*/
|
|
4926
4961
|
P[2] && /*wageringList*/
|
|
4927
4962
|
P[2].length == 0
|
|
4928
4963
|
)
|
|
4929
|
-
return
|
|
4964
|
+
return ss;
|
|
4930
4965
|
}
|
|
4931
4966
|
let w = H(e), C = w && w(e);
|
|
4932
4967
|
return {
|
|
4933
4968
|
c() {
|
|
4934
|
-
t = W("div"), r = W("div"), n = W("div"), n.innerHTML = '<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>', i =
|
|
4969
|
+
t = W("div"), r = W("div"), n = W("div"), n.innerHTML = '<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>', i = ye(), C && C.c(), s = ye(), a = W("section"), h = W("div"), h.innerHTML = `<img alt="crown" part="Icon" class="MiniIcon" src="${En}"/>`, l = ye(), f = W("div"), f.innerHTML = '<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>', E(n, "class", "hideButton"), E(n, "role", "button"), E(n, "tabindex", "0"), E(r, "class", o = "SliderWrapper " + /*isIconMode*/
|
|
4935
4970
|
(e[8] ? "HiddenWidget" : "ShowWidget")), E(h, "class", "svg"), E(h, "part", "AnimatorIconWrapper"), E(f, "class", "restoreButton"), E(f, "part", "RestoreButton"), E(a, "id", "animator"), E(a, "class", p = "SliderIcon " + /*isIconMode*/
|
|
4936
4971
|
(e[8] ? "ShowWidget" : "HiddenWidget")), E(a, "role", "button"), E(a, "tabindex", "0"), E(t, "class", "WageringBonusWrapper");
|
|
4937
4972
|
},
|
|
4938
4973
|
m(P, I) {
|
|
4939
|
-
be(P, t, I),
|
|
4974
|
+
be(P, t, I), $(t, r), $(r, n), $(r, i), C && C.m(r, null), e[30](r), $(t, s), $(t, a), $(a, h), $(a, l), $(a, f), e[31](a), e[33](t), m || (y = [
|
|
4940
4975
|
He(
|
|
4941
4976
|
n,
|
|
4942
4977
|
"click",
|
|
@@ -4949,7 +4984,7 @@ function is(e) {
|
|
|
4949
4984
|
/*click_handler_4*/
|
|
4950
4985
|
e[32]
|
|
4951
4986
|
)
|
|
4952
|
-
],
|
|
4987
|
+
], m = !0);
|
|
4953
4988
|
},
|
|
4954
4989
|
p(P, I) {
|
|
4955
4990
|
w === (w = H(P)) && C ? C.p(P, I) : (C && C.d(1), C = w && w(P), C && (C.c(), C.m(r, null))), I[0] & /*isIconMode*/
|
|
@@ -4961,30 +4996,30 @@ function is(e) {
|
|
|
4961
4996
|
i: se,
|
|
4962
4997
|
o: se,
|
|
4963
4998
|
d(P) {
|
|
4964
|
-
P && ue(t), C && C.d(), e[30](null), e[31](null), e[33](null),
|
|
4999
|
+
P && ue(t), C && C.d(), e[30](null), e[31](null), e[33](null), m = !1, Ae(y);
|
|
4965
5000
|
}
|
|
4966
5001
|
};
|
|
4967
5002
|
}
|
|
4968
|
-
function
|
|
5003
|
+
function ls(e, t, r) {
|
|
4969
5004
|
let n;
|
|
4970
|
-
|
|
4971
|
-
let { endpoint: i } = t, { session: o } = t, { lang: s = "en" } = t, { numberofrecords: a = "5" } = t, { looptime: h = "5" } = t, { translationurl: l = "" } = t, { progressfractiondigit: f = "1" } = t, { clientstyling: p = "" } = t, { clientstylingurl:
|
|
4972
|
-
|
|
5005
|
+
Tn(e, Yo, (c) => r(10, n = c));
|
|
5006
|
+
let { endpoint: i } = t, { session: o } = t, { lang: s = "en" } = t, { numberofrecords: a = "5" } = t, { looptime: h = "5" } = t, { translationurl: l = "" } = t, { progressfractiondigit: f = "1" } = t, { clientstyling: p = "" } = t, { clientstylingurl: m = "" } = t, y, H = window.navigator.userAgent, w = !0, C = !1, P, I, B = 0, L, T, M, U = null, ae = null, Ie = !1, he = "Hidden", ke = {};
|
|
5007
|
+
Ko({ withLocale: "en", translations: {} });
|
|
4973
5008
|
const Ee = () => {
|
|
4974
5009
|
fetch(l).then((d) => d.json()).then((d) => {
|
|
4975
5010
|
Object.keys(d).forEach((x) => {
|
|
4976
|
-
|
|
5011
|
+
Rr(x, d[x]);
|
|
4977
5012
|
});
|
|
4978
5013
|
}).catch((d) => {
|
|
4979
5014
|
console.error(d);
|
|
4980
5015
|
});
|
|
4981
5016
|
};
|
|
4982
|
-
Object.keys(
|
|
4983
|
-
|
|
5017
|
+
Object.keys(Dr).forEach((c) => {
|
|
5018
|
+
Rr(c, Dr[c]);
|
|
4984
5019
|
});
|
|
4985
5020
|
const st = () => {
|
|
4986
|
-
|
|
4987
|
-
},
|
|
5021
|
+
es(s);
|
|
5022
|
+
}, Xe = (c) => {
|
|
4988
5023
|
let d = 0;
|
|
4989
5024
|
for (let _ of c.levels || []) {
|
|
4990
5025
|
let F = _.maxRepeats || 1;
|
|
@@ -5007,16 +5042,16 @@ function os(e, t, r) {
|
|
|
5007
5042
|
}, at = (c) => {
|
|
5008
5043
|
let d = [];
|
|
5009
5044
|
for (let x of c.items)
|
|
5010
|
-
d.push(
|
|
5045
|
+
d.push(Xe(x));
|
|
5011
5046
|
r(3, B = 0), r(2, I = d);
|
|
5012
5047
|
}, xe = () => {
|
|
5013
5048
|
h != "0" && (clearInterval(P), P = setInterval(
|
|
5014
5049
|
() => {
|
|
5015
5050
|
if (I) {
|
|
5016
|
-
r(9,
|
|
5051
|
+
r(9, he = "hiddenDiv");
|
|
5017
5052
|
let c = B + 1;
|
|
5018
5053
|
if (c >= I.length) {
|
|
5019
|
-
|
|
5054
|
+
ce();
|
|
5020
5055
|
return;
|
|
5021
5056
|
}
|
|
5022
5057
|
r(3, B = c), z(B);
|
|
@@ -5025,22 +5060,22 @@ function os(e, t, r) {
|
|
|
5025
5060
|
Number(h) * 1e3
|
|
5026
5061
|
));
|
|
5027
5062
|
}, z = (c) => {
|
|
5028
|
-
if (r(9,
|
|
5063
|
+
if (r(9, he = "hiddenDiv"), c > 0 && C || c < 0 && w)
|
|
5029
5064
|
return;
|
|
5030
5065
|
xe(), T.style.setProperty("--transformFromValue", c > 0 ? "100%" : "-100%"), T.style.setProperty("--transformToValue", c > 0 ? "-100%" : "100%");
|
|
5031
5066
|
let d = B + c;
|
|
5032
5067
|
d = d < 0 ? 0 : d, d = d == I.length ? I.length - 1 : d, r(3, B = d);
|
|
5033
|
-
}, he = () => {
|
|
5034
|
-
r(8, Ie = !1), r(3, B = 0), xe();
|
|
5035
5068
|
}, fe = () => {
|
|
5069
|
+
r(8, Ie = !1), r(3, B = 0), xe();
|
|
5070
|
+
}, ce = () => {
|
|
5036
5071
|
r(8, Ie = !0), clearInterval(P), window.postMessage({ type: "onWagingBonusSliderHide" }, window.location.href);
|
|
5037
|
-
},
|
|
5072
|
+
}, Ve = (c) => {
|
|
5038
5073
|
I.forEach((d) => {
|
|
5039
5074
|
let x = c[d.bonusWalletID];
|
|
5040
5075
|
if (!x)
|
|
5041
5076
|
return;
|
|
5042
|
-
const { maxIdObj: D, maxId: _ } =
|
|
5043
|
-
|
|
5077
|
+
const { maxIdObj: D, maxId: _ } = ts(x);
|
|
5078
|
+
ke[d.id] = _;
|
|
5044
5079
|
let F = D;
|
|
5045
5080
|
d.status = F.status, F.levelIncrement == 0 && (F.levelIncrement = 1, F.gap == 0), d.gap = F.gap, d.levelIncrement = F.levelIncrement, d.currentStep = d.levelIncrement - d.gap, d.triggerreset += 1;
|
|
5046
5081
|
}), r(2, I);
|
|
@@ -5052,33 +5087,33 @@ function os(e, t, r) {
|
|
|
5052
5087
|
let x = JSON.parse(d);
|
|
5053
5088
|
if (!x || !x.items)
|
|
5054
5089
|
return;
|
|
5055
|
-
x.messageType === "WageringProgressUpdate" &&
|
|
5090
|
+
x.messageType === "WageringProgressUpdate" && Ve(x.items);
|
|
5056
5091
|
} catch (x) {
|
|
5057
5092
|
console.log(x);
|
|
5058
5093
|
}
|
|
5059
|
-
},
|
|
5094
|
+
}, ze = (c) => {
|
|
5060
5095
|
if (!c || c == "false" || c == "undefined")
|
|
5061
5096
|
return !0;
|
|
5062
|
-
},
|
|
5097
|
+
}, Ze = () => {
|
|
5063
5098
|
L && (L.removeEventListener("message", ne), L.close());
|
|
5064
5099
|
}, ut = () => {
|
|
5065
|
-
if (
|
|
5100
|
+
if (ze(o))
|
|
5066
5101
|
return;
|
|
5067
|
-
|
|
5068
|
-
let c = `${i}/v1/bonus/wagering/updates?walletFilter=${
|
|
5069
|
-
L = new
|
|
5102
|
+
Ze();
|
|
5103
|
+
let c = `${i}/v1/bonus/wagering/updates?walletFilter=${rs(I, ke)}&XSessionId=${o}`;
|
|
5104
|
+
L = new Jo.EventSourcePolyfill(
|
|
5070
5105
|
c,
|
|
5071
5106
|
{
|
|
5072
5107
|
headers: { accept: "text/event-stream" }
|
|
5073
5108
|
}
|
|
5074
5109
|
), typeof L < "u" && L.addEventListener("message", ne), L.onerror = () => ut();
|
|
5075
|
-
},
|
|
5110
|
+
}, Ot = (c) => {
|
|
5076
5111
|
if (!i || !o)
|
|
5077
5112
|
return;
|
|
5078
5113
|
let d = new URL(`${c}/v1/bonus/granted`), x = new Headers();
|
|
5079
|
-
d.searchParams.append("language", s), d.searchParams.append("platform",
|
|
5114
|
+
d.searchParams.append("language", s), d.searchParams.append("platform", Qo(H)), d.searchParams.append("status", "active"), d.searchParams.append("type", "wagering"), d.searchParams.append("pagination", `limit=${a},offset=0`), o && x.append("X-SessionID", o), fetch(d, { method: "GET", headers: x }).then((_) => _.json()).then((_) => {
|
|
5080
5115
|
if (d.searchParams.toString(), r(2, I = []), _.items && at(_), _.errorMessage && console.error(_.errorMessage), !I || I.length == 0) {
|
|
5081
|
-
r(2, I = [...I]),
|
|
5116
|
+
r(2, I = [...I]), Ze();
|
|
5082
5117
|
return;
|
|
5083
5118
|
}
|
|
5084
5119
|
ut();
|
|
@@ -5091,54 +5126,54 @@ function os(e, t, r) {
|
|
|
5091
5126
|
},
|
|
5092
5127
|
window.location.href
|
|
5093
5128
|
);
|
|
5094
|
-
},
|
|
5129
|
+
}, qe = (c) => {
|
|
5095
5130
|
parseInt(h) > 0 && (c ? clearInterval(P) : xe());
|
|
5096
|
-
},
|
|
5097
|
-
const d =
|
|
5098
|
-
|
|
5099
|
-
},
|
|
5100
|
-
if (
|
|
5131
|
+
}, Ye = (c) => c.touches || c.originalEvent.touches, Le = (c) => {
|
|
5132
|
+
const d = Ye(c)[0];
|
|
5133
|
+
U = d.clientX, ae = d.clientY;
|
|
5134
|
+
}, de = (c) => {
|
|
5135
|
+
if (!U || !ae)
|
|
5101
5136
|
return;
|
|
5102
|
-
let d = c.touches[0].clientX, x = c.touches[0].clientY, D =
|
|
5103
|
-
Math.abs(D) > Math.abs(_) && (D > 0 ? z(1) : z(-1)),
|
|
5137
|
+
let d = c.touches[0].clientX, x = c.touches[0].clientY, D = U - d, _ = ae - x;
|
|
5138
|
+
Math.abs(D) > Math.abs(_) && (D > 0 ? z(1) : z(-1)), U = null, ae = null;
|
|
5104
5139
|
}, J = () => {
|
|
5105
|
-
T.addEventListener("touchstart", Le, { passive: !0 }), T.addEventListener("touchmove",
|
|
5140
|
+
T.addEventListener("touchstart", Le, { passive: !0 }), T.addEventListener("touchmove", de, { passive: !0 });
|
|
5106
5141
|
}, ht = (c) => {
|
|
5107
5142
|
c.data && c.data.type;
|
|
5108
5143
|
};
|
|
5109
|
-
|
|
5110
|
-
window.removeEventListener("message", ht, !1), T.removeEventListener("touchstart", Le), T.removeEventListener("touchmove",
|
|
5144
|
+
Pn(() => (xe(), window.addEventListener("message", ht, !1), () => {
|
|
5145
|
+
window.removeEventListener("message", ht, !1), T.removeEventListener("touchstart", Le), T.removeEventListener("touchmove", de);
|
|
5111
5146
|
}));
|
|
5112
|
-
const
|
|
5113
|
-
|
|
5114
|
-
},
|
|
5115
|
-
|
|
5147
|
+
const Ct = () => {
|
|
5148
|
+
ce();
|
|
5149
|
+
}, Pt = () => z(-1), ft = () => {
|
|
5150
|
+
qe(!0);
|
|
5116
5151
|
}, u = () => {
|
|
5117
|
-
|
|
5118
|
-
},
|
|
5119
|
-
function
|
|
5120
|
-
|
|
5152
|
+
qe(!1);
|
|
5153
|
+
}, v = (c) => lt(c.bonusWalletID), b = () => z(1);
|
|
5154
|
+
function g(c) {
|
|
5155
|
+
tt[c ? "unshift" : "push"](() => {
|
|
5121
5156
|
T = c, r(4, T);
|
|
5122
5157
|
});
|
|
5123
5158
|
}
|
|
5124
5159
|
function A(c) {
|
|
5125
|
-
|
|
5160
|
+
tt[c ? "unshift" : "push"](() => {
|
|
5126
5161
|
M = c, r(7, M);
|
|
5127
5162
|
});
|
|
5128
5163
|
}
|
|
5129
|
-
const S = () =>
|
|
5164
|
+
const S = () => fe();
|
|
5130
5165
|
function O(c) {
|
|
5131
|
-
|
|
5166
|
+
tt[c ? "unshift" : "push"](() => {
|
|
5132
5167
|
y = c, r(1, y);
|
|
5133
5168
|
});
|
|
5134
5169
|
}
|
|
5135
5170
|
return e.$$set = (c) => {
|
|
5136
|
-
"endpoint" in c && r(16, i = c.endpoint), "session" in c && r(17, o = c.session), "lang" in c && r(18, s = c.lang), "numberofrecords" in c && r(19, a = c.numberofrecords), "looptime" in c && r(20, h = c.looptime), "translationurl" in c && r(21, l = c.translationurl), "progressfractiondigit" in c && r(0, f = c.progressfractiondigit), "clientstyling" in c && r(22, p = c.clientstyling), "clientstylingurl" in c && r(23,
|
|
5171
|
+
"endpoint" in c && r(16, i = c.endpoint), "session" in c && r(17, o = c.session), "lang" in c && r(18, s = c.lang), "numberofrecords" in c && r(19, a = c.numberofrecords), "looptime" in c && r(20, h = c.looptime), "translationurl" in c && r(21, l = c.translationurl), "progressfractiondigit" in c && r(0, f = c.progressfractiondigit), "clientstyling" in c && r(22, p = c.clientstyling), "clientstylingurl" in c && r(23, m = c.clientstylingurl);
|
|
5137
5172
|
}, e.$$.update = () => {
|
|
5138
5173
|
e.$$.dirty[0] & /*customStylingContainer, clientstyling*/
|
|
5139
|
-
4194306 && y && p &&
|
|
5140
|
-
8388610 && y &&
|
|
5141
|
-
458752 && s && i && o &&
|
|
5174
|
+
4194306 && y && p && ns(y, p), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
|
|
5175
|
+
8388610 && y && m && is(y, m), e.$$.dirty[0] & /*lang, endpoint, session*/
|
|
5176
|
+
458752 && s && i && o && Ot(i), e.$$.dirty[0] & /*lang*/
|
|
5142
5177
|
262144 && s && st(), e.$$.dirty[0] & /*wagerSlider*/
|
|
5143
5178
|
16 && T && J(), e.$$.dirty[0] & /*translationurl*/
|
|
5144
5179
|
2097152 && l && Ee(), e.$$.dirty[0] & /*currentWagerIdx*/
|
|
@@ -5154,13 +5189,13 @@ function os(e, t, r) {
|
|
|
5154
5189
|
C,
|
|
5155
5190
|
M,
|
|
5156
5191
|
Ie,
|
|
5157
|
-
|
|
5192
|
+
he,
|
|
5158
5193
|
n,
|
|
5159
5194
|
z,
|
|
5160
|
-
he,
|
|
5161
5195
|
fe,
|
|
5196
|
+
ce,
|
|
5162
5197
|
lt,
|
|
5163
|
-
|
|
5198
|
+
qe,
|
|
5164
5199
|
i,
|
|
5165
5200
|
o,
|
|
5166
5201
|
s,
|
|
@@ -5168,27 +5203,27 @@ function os(e, t, r) {
|
|
|
5168
5203
|
h,
|
|
5169
5204
|
l,
|
|
5170
5205
|
p,
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5206
|
+
m,
|
|
5207
|
+
Ct,
|
|
5208
|
+
Pt,
|
|
5174
5209
|
ft,
|
|
5175
5210
|
u,
|
|
5176
|
-
b,
|
|
5177
5211
|
v,
|
|
5178
|
-
|
|
5212
|
+
b,
|
|
5213
|
+
g,
|
|
5179
5214
|
A,
|
|
5180
5215
|
S,
|
|
5181
5216
|
O
|
|
5182
5217
|
];
|
|
5183
5218
|
}
|
|
5184
|
-
class
|
|
5219
|
+
class hs extends Xn {
|
|
5185
5220
|
constructor(t) {
|
|
5186
|
-
super(),
|
|
5221
|
+
super(), Wn(
|
|
5187
5222
|
this,
|
|
5188
5223
|
t,
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5224
|
+
ls,
|
|
5225
|
+
us,
|
|
5226
|
+
Gr,
|
|
5192
5227
|
{
|
|
5193
5228
|
endpoint: 16,
|
|
5194
5229
|
session: 17,
|
|
@@ -5200,7 +5235,7 @@ class ss extends Gn {
|
|
|
5200
5235
|
clientstyling: 22,
|
|
5201
5236
|
clientstylingurl: 23
|
|
5202
5237
|
},
|
|
5203
|
-
|
|
5238
|
+
os,
|
|
5204
5239
|
[-1, -1, -1]
|
|
5205
5240
|
);
|
|
5206
5241
|
}
|
|
@@ -5259,27 +5294,27 @@ class ss extends Gn {
|
|
|
5259
5294
|
this.$$set({ clientstylingurl: t }), oe();
|
|
5260
5295
|
}
|
|
5261
5296
|
}
|
|
5262
|
-
|
|
5297
|
+
kn(hs, { endpoint: {}, session: {}, lang: {}, numberofrecords: {}, looptime: {}, translationurl: {}, progressfractiondigit: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
5263
5298
|
export {
|
|
5264
5299
|
Se as $,
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5300
|
+
hs as C,
|
|
5301
|
+
Xn as S,
|
|
5302
|
+
je as a,
|
|
5303
|
+
mn as b,
|
|
5304
|
+
kn as c,
|
|
5305
|
+
Hn as d,
|
|
5306
|
+
ue as e,
|
|
5272
5307
|
oe as f,
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5308
|
+
lr as g,
|
|
5309
|
+
E as h,
|
|
5310
|
+
Wn as i,
|
|
5311
|
+
be as j,
|
|
5312
|
+
$ as k,
|
|
5313
|
+
W as l,
|
|
5314
|
+
Tn as m,
|
|
5280
5315
|
se as n,
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5316
|
+
tt as o,
|
|
5317
|
+
Yo as p,
|
|
5318
|
+
Gr as s,
|
|
5319
|
+
St as t
|
|
5285
5320
|
};
|