@everymatrix/casino-tournaments-thumbnail-games 1.86.2 → 1.86.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/{CasinoTournamentsThumbnailGames-Ck0JK0i_.js → CasinoTournamentsThumbnailGames-BOJ-mBz1.js} +749 -770
- package/components/CasinoTournamentsThumbnailGames-CyuoEaxu.cjs +18 -0
- package/components/{CasinoTournamentsThumbnailGames-F0mlkU4B.js → CasinoTournamentsThumbnailGames-DvKm0C8Y.js} +791 -812
- package/es2015/casino-tournaments-thumbnail-games.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-games.js +1 -1
- package/esnext/casino-tournaments-thumbnail-games.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-DvplcHtm.js +558 -0
- package/stencil/index-97d17652-ILzgTtTR.cjs +1 -0
- package/stencil/index-97d17652-p-iQtjus.js +542 -0
- package/stencil/{ui-image-BX-FBhad.cjs → ui-image-BDXyFHck.cjs} +1 -1
- package/stencil/{ui-image-CP8Lp7fB.js → ui-image-Cc8wLmDe.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-BKRtoUuG.js → ui-image-b7b48fe5-CBB2FKRZ.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-MC0x5ZQd.cjs → ui-image-b7b48fe5-DjCO-ZF4.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-HA45CrsG.js → ui-image-b7b48fe5-rCWcyktd.js} +1 -1
- package/stencil/{ui-image-Ch-GHki1.js → ui-image-wH6lu7wS.js} +1 -1
- package/stencil/{ui-image_2-CmVho0dS.js → ui-image_2-BESQEo1l.js} +2 -2
- package/stencil/{ui-image_2-Daq38JGa.js → ui-image_2-BfZmduAK.js} +2 -2
- package/stencil/{ui-image_2-CyqE6j_W.cjs → ui-image_2-ZFidgTXM.cjs} +1 -1
- package/components/CasinoTournamentsThumbnailGames-CqSvghVB.cjs +0 -18
- package/stencil/index-97d17652-B6BYeRne.js +0 -542
- package/stencil/index-97d17652-BOr4KAqq.js +0 -558
- package/stencil/index-97d17652-zTl06Vn9.cjs +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
1
|
+
import "../stencil/ui-image-wH6lu7wS.js";
|
|
2
2
|
function G() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function Ft(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function ct() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
e.forEach(
|
|
10
|
+
function ae(e) {
|
|
11
|
+
e.forEach(Ft);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Pe(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function jt(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
19
|
let be;
|
|
20
|
-
function
|
|
20
|
+
function ft(e, t) {
|
|
21
21
|
return e === t ? !0 : (be || (be = document.createElement("a")), be.href = t, e === be.href);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Pr(e) {
|
|
24
24
|
return Object.keys(e).length === 0;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function kt(e, ...t) {
|
|
27
27
|
if (e == null) {
|
|
28
28
|
for (const n of t)
|
|
29
29
|
n(void 0);
|
|
@@ -32,20 +32,20 @@ function Xt(e, ...t) {
|
|
|
32
32
|
const r = e.subscribe(...t);
|
|
33
33
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
e.$$.on_destroy.push(
|
|
35
|
+
function Ar(e, t, r) {
|
|
36
|
+
e.$$.on_destroy.push(kt(t, r));
|
|
37
37
|
}
|
|
38
38
|
function x(e, t) {
|
|
39
39
|
e.appendChild(t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
const n =
|
|
41
|
+
function Or(e, t, r) {
|
|
42
|
+
const n = Nr(e);
|
|
43
43
|
if (!n.getElementById(t)) {
|
|
44
|
-
const i =
|
|
45
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
const i = P("style");
|
|
45
|
+
i.id = t, i.textContent = r, Cr(n, i);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Nr(e) {
|
|
49
49
|
if (!e)
|
|
50
50
|
return document;
|
|
51
51
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -55,39 +55,39 @@ function Cr(e) {
|
|
|
55
55
|
t
|
|
56
56
|
) : e.ownerDocument;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Cr(e, t) {
|
|
59
59
|
return x(
|
|
60
60
|
/** @type {Document} */
|
|
61
61
|
e.head || e,
|
|
62
62
|
t
|
|
63
63
|
), t.sheet;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function D(e, t, r) {
|
|
66
66
|
e.insertBefore(t, r || null);
|
|
67
67
|
}
|
|
68
68
|
function $(e) {
|
|
69
69
|
e.parentNode && e.parentNode.removeChild(e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Vt(e, t) {
|
|
72
72
|
for (let r = 0; r < e.length; r += 1)
|
|
73
73
|
e[r] && e[r].d(t);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function P(e) {
|
|
76
76
|
return document.createElement(e);
|
|
77
77
|
}
|
|
78
78
|
function ge(e) {
|
|
79
79
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function U(e) {
|
|
82
82
|
return document.createTextNode(e);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function F() {
|
|
85
|
+
return U(" ");
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return
|
|
87
|
+
function Ir() {
|
|
88
|
+
return U("");
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function je(e, t, r, n) {
|
|
91
91
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
92
92
|
}
|
|
93
93
|
function v(e, t, r) {
|
|
@@ -97,14 +97,14 @@ function O(e, t, r) {
|
|
|
97
97
|
const n = t.toLowerCase();
|
|
98
98
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : v(e, t, r);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Lr(e) {
|
|
101
101
|
return Array.from(e.childNodes);
|
|
102
102
|
}
|
|
103
103
|
function W(e, t) {
|
|
104
104
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
105
105
|
t);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Mr(e) {
|
|
108
108
|
const t = {};
|
|
109
109
|
return e.childNodes.forEach(
|
|
110
110
|
/** @param {Element} node */
|
|
@@ -113,93 +113,93 @@ function Rr(e) {
|
|
|
113
113
|
}
|
|
114
114
|
), t;
|
|
115
115
|
}
|
|
116
|
-
let
|
|
117
|
-
function
|
|
118
|
-
|
|
116
|
+
let me;
|
|
117
|
+
function fe(e) {
|
|
118
|
+
me = e;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
if (!
|
|
120
|
+
function Xt() {
|
|
121
|
+
if (!me)
|
|
122
122
|
throw new Error("Function called outside component initialization");
|
|
123
|
-
return
|
|
123
|
+
return me;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
125
|
+
function Rr(e) {
|
|
126
|
+
Xt().$$.on_mount.push(e);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
|
|
128
|
+
function Gr(e) {
|
|
129
|
+
Xt().$$.on_destroy.push(e);
|
|
130
130
|
}
|
|
131
131
|
const ee = [], Te = [];
|
|
132
132
|
let te = [];
|
|
133
|
-
const
|
|
134
|
-
let
|
|
135
|
-
function
|
|
136
|
-
|
|
133
|
+
const mt = [], $r = /* @__PURE__ */ Promise.resolve();
|
|
134
|
+
let ke = !1;
|
|
135
|
+
function Ur() {
|
|
136
|
+
ke || (ke = !0, $r.then(Q));
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Ve(e) {
|
|
139
139
|
te.push(e);
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const Le = /* @__PURE__ */ new Set();
|
|
142
142
|
let Y = 0;
|
|
143
143
|
function Q() {
|
|
144
144
|
if (Y !== 0)
|
|
145
145
|
return;
|
|
146
|
-
const e =
|
|
146
|
+
const e = me;
|
|
147
147
|
do {
|
|
148
148
|
try {
|
|
149
149
|
for (; Y < ee.length; ) {
|
|
150
150
|
const t = ee[Y];
|
|
151
|
-
Y++,
|
|
151
|
+
Y++, fe(t), Dr(t.$$);
|
|
152
152
|
}
|
|
153
153
|
} catch (t) {
|
|
154
154
|
throw ee.length = 0, Y = 0, t;
|
|
155
155
|
}
|
|
156
|
-
for (
|
|
156
|
+
for (fe(null), ee.length = 0, Y = 0; Te.length; )
|
|
157
157
|
Te.pop()();
|
|
158
158
|
for (let t = 0; t < te.length; t += 1) {
|
|
159
159
|
const r = te[t];
|
|
160
|
-
|
|
160
|
+
Le.has(r) || (Le.add(r), r());
|
|
161
161
|
}
|
|
162
162
|
te.length = 0;
|
|
163
163
|
} while (ee.length);
|
|
164
|
-
for (;
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
for (; mt.length; )
|
|
165
|
+
mt.pop()();
|
|
166
|
+
ke = !1, Le.clear(), fe(e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Dr(e) {
|
|
169
169
|
if (e.fragment !== null) {
|
|
170
|
-
e.update(),
|
|
170
|
+
e.update(), ae(e.before_update);
|
|
171
171
|
const t = e.dirty;
|
|
172
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
172
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Fr(e) {
|
|
176
176
|
const t = [], r = [];
|
|
177
177
|
te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), te = t;
|
|
178
178
|
}
|
|
179
|
-
const
|
|
180
|
-
function
|
|
181
|
-
e && e.i && (
|
|
179
|
+
const jr = /* @__PURE__ */ new Set();
|
|
180
|
+
function kr(e, t) {
|
|
181
|
+
e && e.i && (jr.delete(e), e.i(t));
|
|
182
182
|
}
|
|
183
183
|
function Se(e) {
|
|
184
184
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Vr(e, t, r) {
|
|
187
187
|
const { fragment: n, after_update: i } = e.$$;
|
|
188
|
-
n && n.m(t, r),
|
|
189
|
-
const o = e.$$.on_mount.map(
|
|
190
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
191
|
-
}), i.forEach(
|
|
188
|
+
n && n.m(t, r), Ve(() => {
|
|
189
|
+
const o = e.$$.on_mount.map(Ft).filter(Pe);
|
|
190
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ae(o), e.$$.on_mount = [];
|
|
191
|
+
}), i.forEach(Ve);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Xr(e, t) {
|
|
194
194
|
const r = e.$$;
|
|
195
|
-
r.fragment !== null && (
|
|
195
|
+
r.fragment !== null && (Fr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
e.$$.dirty[0] === -1 && (ee.push(e),
|
|
197
|
+
function Wr(e, t) {
|
|
198
|
+
e.$$.dirty[0] === -1 && (ee.push(e), Ur(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
const l =
|
|
202
|
-
|
|
200
|
+
function zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
201
|
+
const l = me;
|
|
202
|
+
fe(e);
|
|
203
203
|
const u = e.$$ = {
|
|
204
204
|
fragment: null,
|
|
205
205
|
ctx: [],
|
|
@@ -207,7 +207,7 @@ function Zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
207
207
|
props: o,
|
|
208
208
|
update: G,
|
|
209
209
|
not_equal: i,
|
|
210
|
-
bound:
|
|
210
|
+
bound: ct(),
|
|
211
211
|
// lifecycle
|
|
212
212
|
on_mount: [],
|
|
213
213
|
on_destroy: [],
|
|
@@ -216,7 +216,7 @@ function Zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
216
216
|
after_update: [],
|
|
217
217
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
218
218
|
// everything else
|
|
219
|
-
callbacks:
|
|
219
|
+
callbacks: ct(),
|
|
220
220
|
dirty: a,
|
|
221
221
|
skip_bound: !1,
|
|
222
222
|
root: t.target || l.$$.root
|
|
@@ -225,19 +225,19 @@ function Zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
225
225
|
let h = !1;
|
|
226
226
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
227
227
|
const b = d.length ? d[0] : c;
|
|
228
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h &&
|
|
229
|
-
}) : [], u.update(), h = !0,
|
|
228
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h && Wr(e, f)), c;
|
|
229
|
+
}) : [], u.update(), h = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
230
230
|
if (t.hydrate) {
|
|
231
|
-
const f =
|
|
231
|
+
const f = Lr(t.target);
|
|
232
232
|
u.fragment && u.fragment.l(f), f.forEach($);
|
|
233
233
|
} else
|
|
234
234
|
u.fragment && u.fragment.c();
|
|
235
|
-
t.intro &&
|
|
235
|
+
t.intro && kr(e.$$.fragment), Vr(e, t.target, t.anchor), Q();
|
|
236
236
|
}
|
|
237
|
-
|
|
237
|
+
fe(l);
|
|
238
238
|
}
|
|
239
|
-
let
|
|
240
|
-
typeof HTMLElement == "function" && (
|
|
239
|
+
let Wt;
|
|
240
|
+
typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
241
241
|
/** The Svelte component constructor */
|
|
242
242
|
$$ctor;
|
|
243
243
|
/** Slots */
|
|
@@ -279,14 +279,14 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
279
279
|
let o;
|
|
280
280
|
return {
|
|
281
281
|
c: function() {
|
|
282
|
-
o =
|
|
282
|
+
o = P("slot"), i !== "default" && v(o, "name", i);
|
|
283
283
|
},
|
|
284
284
|
/**
|
|
285
285
|
* @param {HTMLElement} target
|
|
286
286
|
* @param {HTMLElement} [anchor]
|
|
287
287
|
*/
|
|
288
288
|
m: function(l, u) {
|
|
289
|
-
|
|
289
|
+
D(l, o, u);
|
|
290
290
|
},
|
|
291
291
|
d: function(l) {
|
|
292
292
|
l && $(o);
|
|
@@ -296,7 +296,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
296
296
|
};
|
|
297
297
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
298
298
|
return;
|
|
299
|
-
const t = {}, r =
|
|
299
|
+
const t = {}, r = Mr(this);
|
|
300
300
|
for (const i of this.$$s)
|
|
301
301
|
i in r && (t[i] = [e(i)]);
|
|
302
302
|
for (const i of this.attributes) {
|
|
@@ -383,8 +383,8 @@ function _e(e, t, r, n) {
|
|
|
383
383
|
return t;
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
let s = class extends
|
|
386
|
+
function Zr(e, t, r, n, i, o) {
|
|
387
|
+
let s = class extends Wt {
|
|
388
388
|
constructor() {
|
|
389
389
|
super(e, r, i), this.$$p_d = t;
|
|
390
390
|
}
|
|
@@ -412,7 +412,7 @@ function Qr(e, t, r, n, i, o) {
|
|
|
412
412
|
}), e.element = /** @type {any} */
|
|
413
413
|
s, s;
|
|
414
414
|
}
|
|
415
|
-
class
|
|
415
|
+
class Qr {
|
|
416
416
|
/**
|
|
417
417
|
* ### PRIVATE API
|
|
418
418
|
*
|
|
@@ -431,7 +431,7 @@ class Jr {
|
|
|
431
431
|
$$set = void 0;
|
|
432
432
|
/** @returns {void} */
|
|
433
433
|
$destroy() {
|
|
434
|
-
|
|
434
|
+
Xr(this, 1), this.$destroy = G;
|
|
435
435
|
}
|
|
436
436
|
/**
|
|
437
437
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -440,7 +440,7 @@ class Jr {
|
|
|
440
440
|
* @returns {() => void}
|
|
441
441
|
*/
|
|
442
442
|
$on(t, r) {
|
|
443
|
-
if (!
|
|
443
|
+
if (!Pe(r))
|
|
444
444
|
return G;
|
|
445
445
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
446
446
|
return n.push(r), () => {
|
|
@@ -453,18 +453,18 @@ class Jr {
|
|
|
453
453
|
* @returns {void}
|
|
454
454
|
*/
|
|
455
455
|
$set(t) {
|
|
456
|
-
this.$$set && !
|
|
456
|
+
this.$$set && !Pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
const
|
|
460
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
461
|
-
function
|
|
459
|
+
const Jr = "4";
|
|
460
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Jr);
|
|
461
|
+
function qr(e, t) {
|
|
462
462
|
if (e) {
|
|
463
463
|
const r = document.createElement("style");
|
|
464
464
|
r.innerHTML = t, e.appendChild(r);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function Yr(e, t) {
|
|
468
468
|
if (!e || !t)
|
|
469
469
|
return;
|
|
470
470
|
const r = new URL(t);
|
|
@@ -475,7 +475,7 @@ function Kr(e, t) {
|
|
|
475
475
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
476
476
|
});
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function Kr(e, t, r) {
|
|
479
479
|
if (window.emMessageBus) {
|
|
480
480
|
const n = document.createElement("style");
|
|
481
481
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -497,24 +497,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
497
497
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
498
498
|
PERFORMANCE OF THIS SOFTWARE.
|
|
499
499
|
***************************************************************************** */
|
|
500
|
-
var
|
|
501
|
-
return
|
|
500
|
+
var Xe = function(e, t) {
|
|
501
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
502
502
|
r.__proto__ = n;
|
|
503
503
|
} || function(r, n) {
|
|
504
504
|
for (var i in n)
|
|
505
505
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
506
|
-
},
|
|
506
|
+
}, Xe(e, t);
|
|
507
507
|
};
|
|
508
|
-
function
|
|
508
|
+
function k(e, t) {
|
|
509
509
|
if (typeof t != "function" && t !== null)
|
|
510
510
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
511
|
-
|
|
511
|
+
Xe(e, t);
|
|
512
512
|
function r() {
|
|
513
513
|
this.constructor = e;
|
|
514
514
|
}
|
|
515
515
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
var T = function() {
|
|
518
|
+
return T = Object.assign || function(t) {
|
|
519
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
520
|
+
r = arguments[n];
|
|
521
|
+
for (var o in r)
|
|
522
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
523
|
+
}
|
|
524
|
+
return t;
|
|
525
|
+
}, T.apply(this, arguments);
|
|
526
|
+
};
|
|
527
|
+
function en(e, t) {
|
|
528
|
+
var r = {};
|
|
529
|
+
for (var n in e)
|
|
530
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
531
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
532
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
533
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
534
|
+
return r;
|
|
535
|
+
}
|
|
536
|
+
function We(e) {
|
|
518
537
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
519
538
|
if (r)
|
|
520
539
|
return r.call(e);
|
|
@@ -526,7 +545,7 @@ function Ze(e) {
|
|
|
526
545
|
};
|
|
527
546
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
528
547
|
}
|
|
529
|
-
function
|
|
548
|
+
function ze(e, t) {
|
|
530
549
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
531
550
|
if (!r)
|
|
532
551
|
return e;
|
|
@@ -546,22 +565,22 @@ function Qe(e, t) {
|
|
|
546
565
|
}
|
|
547
566
|
return o;
|
|
548
567
|
}
|
|
549
|
-
function
|
|
550
|
-
if (arguments.length === 2)
|
|
568
|
+
function re(e, t, r) {
|
|
569
|
+
if (r || arguments.length === 2)
|
|
551
570
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
552
571
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
553
572
|
return e.concat(o || t);
|
|
554
573
|
}
|
|
555
|
-
function
|
|
574
|
+
function j(e) {
|
|
556
575
|
return typeof e == "function";
|
|
557
576
|
}
|
|
558
|
-
function
|
|
577
|
+
function zt(e) {
|
|
559
578
|
var t = function(n) {
|
|
560
579
|
Error.call(n), n.stack = new Error().stack;
|
|
561
580
|
}, r = e(t);
|
|
562
581
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
563
582
|
}
|
|
564
|
-
var
|
|
583
|
+
var Me = zt(function(e) {
|
|
565
584
|
return function(r) {
|
|
566
585
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
567
586
|
` + r.map(function(n, i) {
|
|
@@ -570,13 +589,13 @@ var Ge = Qt(function(e) {
|
|
|
570
589
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
571
590
|
};
|
|
572
591
|
});
|
|
573
|
-
function
|
|
592
|
+
function Ze(e, t) {
|
|
574
593
|
if (e) {
|
|
575
594
|
var r = e.indexOf(t);
|
|
576
595
|
0 <= r && e.splice(r, 1);
|
|
577
596
|
}
|
|
578
597
|
}
|
|
579
|
-
var
|
|
598
|
+
var Ae = function() {
|
|
580
599
|
function e(t) {
|
|
581
600
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
582
601
|
}
|
|
@@ -588,7 +607,7 @@ var Oe = function() {
|
|
|
588
607
|
if (s)
|
|
589
608
|
if (this._parentage = null, Array.isArray(s))
|
|
590
609
|
try {
|
|
591
|
-
for (var a =
|
|
610
|
+
for (var a = We(s), l = a.next(); !l.done; l = a.next()) {
|
|
592
611
|
var u = l.value;
|
|
593
612
|
u.remove(this);
|
|
594
613
|
}
|
|
@@ -605,22 +624,22 @@ var Oe = function() {
|
|
|
605
624
|
else
|
|
606
625
|
s.remove(this);
|
|
607
626
|
var h = this.initialTeardown;
|
|
608
|
-
if (
|
|
627
|
+
if (j(h))
|
|
609
628
|
try {
|
|
610
629
|
h();
|
|
611
630
|
} catch (g) {
|
|
612
|
-
o = g instanceof
|
|
631
|
+
o = g instanceof Me ? g.errors : [g];
|
|
613
632
|
}
|
|
614
633
|
var f = this._finalizers;
|
|
615
634
|
if (f) {
|
|
616
635
|
this._finalizers = null;
|
|
617
636
|
try {
|
|
618
|
-
for (var c =
|
|
637
|
+
for (var c = We(f), d = c.next(); !d.done; d = c.next()) {
|
|
619
638
|
var b = d.value;
|
|
620
639
|
try {
|
|
621
|
-
|
|
640
|
+
pt(b);
|
|
622
641
|
} catch (g) {
|
|
623
|
-
o = o ?? [], g instanceof
|
|
642
|
+
o = o ?? [], g instanceof Me ? o = re(re([], ze(o)), ze(g.errors)) : o.push(g);
|
|
624
643
|
}
|
|
625
644
|
}
|
|
626
645
|
} catch (g) {
|
|
@@ -635,13 +654,13 @@ var Oe = function() {
|
|
|
635
654
|
}
|
|
636
655
|
}
|
|
637
656
|
if (o)
|
|
638
|
-
throw new
|
|
657
|
+
throw new Me(o);
|
|
639
658
|
}
|
|
640
659
|
}, e.prototype.add = function(t) {
|
|
641
660
|
var r;
|
|
642
661
|
if (t && t !== this)
|
|
643
662
|
if (this.closed)
|
|
644
|
-
|
|
663
|
+
pt(t);
|
|
645
664
|
else {
|
|
646
665
|
if (t instanceof e) {
|
|
647
666
|
if (t.closed || t._hasParent(this))
|
|
@@ -658,52 +677,56 @@ var Oe = function() {
|
|
|
658
677
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
659
678
|
}, e.prototype._removeParent = function(t) {
|
|
660
679
|
var r = this._parentage;
|
|
661
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
680
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ze(r, t);
|
|
662
681
|
}, e.prototype.remove = function(t) {
|
|
663
682
|
var r = this._finalizers;
|
|
664
|
-
r &&
|
|
683
|
+
r && Ze(r, t), t instanceof e && t._removeParent(this);
|
|
665
684
|
}, e.EMPTY = function() {
|
|
666
685
|
var t = new e();
|
|
667
686
|
return t.closed = !0, t;
|
|
668
687
|
}(), e;
|
|
669
|
-
}(),
|
|
670
|
-
function
|
|
671
|
-
return e instanceof
|
|
672
|
-
}
|
|
673
|
-
function
|
|
674
|
-
|
|
675
|
-
}
|
|
676
|
-
var
|
|
677
|
-
|
|
678
|
-
|
|
688
|
+
}(), Zt = Ae.EMPTY;
|
|
689
|
+
function Qt(e) {
|
|
690
|
+
return e instanceof Ae || e && "closed" in e && j(e.remove) && j(e.add) && j(e.unsubscribe);
|
|
691
|
+
}
|
|
692
|
+
function pt(e) {
|
|
693
|
+
j(e) ? e() : e.unsubscribe();
|
|
694
|
+
}
|
|
695
|
+
var Jt = {
|
|
696
|
+
onUnhandledError: null,
|
|
697
|
+
onStoppedNotification: null,
|
|
698
|
+
Promise: void 0,
|
|
699
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
700
|
+
useDeprecatedNextContext: !1
|
|
701
|
+
}, tn = {
|
|
679
702
|
setTimeout: function(e, t) {
|
|
680
703
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
681
704
|
r[n - 2] = arguments[n];
|
|
682
|
-
return setTimeout.apply(void 0,
|
|
705
|
+
return setTimeout.apply(void 0, re([e, t], ze(r)));
|
|
683
706
|
},
|
|
684
707
|
clearTimeout: function(e) {
|
|
685
708
|
return clearTimeout(e);
|
|
686
709
|
},
|
|
687
710
|
delegate: void 0
|
|
688
711
|
};
|
|
689
|
-
function
|
|
690
|
-
|
|
712
|
+
function rn(e) {
|
|
713
|
+
tn.setTimeout(function() {
|
|
691
714
|
throw e;
|
|
692
715
|
});
|
|
693
716
|
}
|
|
694
|
-
function
|
|
717
|
+
function dt() {
|
|
695
718
|
}
|
|
696
719
|
function Ee(e) {
|
|
697
720
|
e();
|
|
698
721
|
}
|
|
699
|
-
var
|
|
700
|
-
|
|
722
|
+
var qt = function(e) {
|
|
723
|
+
k(t, e);
|
|
701
724
|
function t(r) {
|
|
702
725
|
var n = e.call(this) || this;
|
|
703
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
726
|
+
return n.isStopped = !1, r ? (n.destination = r, Qt(r) && r.add(n)) : n.destination = an, n;
|
|
704
727
|
}
|
|
705
728
|
return t.create = function(r, n, i) {
|
|
706
|
-
return new
|
|
729
|
+
return new Qe(r, n, i);
|
|
707
730
|
}, t.prototype.next = function(r) {
|
|
708
731
|
this.isStopped || this._next(r);
|
|
709
732
|
}, t.prototype.error = function(r) {
|
|
@@ -727,7 +750,11 @@ var Yt = function(e) {
|
|
|
727
750
|
this.unsubscribe();
|
|
728
751
|
}
|
|
729
752
|
}, t;
|
|
730
|
-
}(
|
|
753
|
+
}(Ae), nn = Function.prototype.bind;
|
|
754
|
+
function Re(e, t) {
|
|
755
|
+
return nn.call(e, t);
|
|
756
|
+
}
|
|
757
|
+
var on = function() {
|
|
731
758
|
function e(t) {
|
|
732
759
|
this.partialObserver = t;
|
|
733
760
|
}
|
|
@@ -758,29 +785,41 @@ var Yt = function(e) {
|
|
|
758
785
|
ve(r);
|
|
759
786
|
}
|
|
760
787
|
}, e;
|
|
761
|
-
}(),
|
|
762
|
-
|
|
788
|
+
}(), Qe = function(e) {
|
|
789
|
+
k(t, e);
|
|
763
790
|
function t(r, n, i) {
|
|
764
791
|
var o = e.call(this) || this, s;
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
792
|
+
if (j(r) || !r)
|
|
793
|
+
s = {
|
|
794
|
+
next: r ?? void 0,
|
|
795
|
+
error: n ?? void 0,
|
|
796
|
+
complete: i ?? void 0
|
|
797
|
+
};
|
|
798
|
+
else {
|
|
799
|
+
var a;
|
|
800
|
+
o && Jt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
801
|
+
return o.unsubscribe();
|
|
802
|
+
}, s = {
|
|
803
|
+
next: r.next && Re(r.next, a),
|
|
804
|
+
error: r.error && Re(r.error, a),
|
|
805
|
+
complete: r.complete && Re(r.complete, a)
|
|
806
|
+
}) : s = r;
|
|
807
|
+
}
|
|
808
|
+
return o.destination = new on(s), o;
|
|
770
809
|
}
|
|
771
810
|
return t;
|
|
772
|
-
}(
|
|
811
|
+
}(qt);
|
|
773
812
|
function ve(e) {
|
|
774
|
-
|
|
813
|
+
rn(e);
|
|
775
814
|
}
|
|
776
815
|
function sn(e) {
|
|
777
816
|
throw e;
|
|
778
817
|
}
|
|
779
818
|
var an = {
|
|
780
819
|
closed: !0,
|
|
781
|
-
next:
|
|
820
|
+
next: dt,
|
|
782
821
|
error: sn,
|
|
783
|
-
complete:
|
|
822
|
+
complete: dt
|
|
784
823
|
}, un = function() {
|
|
785
824
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
786
825
|
}();
|
|
@@ -794,7 +833,7 @@ function hn(e) {
|
|
|
794
833
|
}, r);
|
|
795
834
|
};
|
|
796
835
|
}
|
|
797
|
-
var
|
|
836
|
+
var bt = function() {
|
|
798
837
|
function e(t) {
|
|
799
838
|
t && (this._subscribe = t);
|
|
800
839
|
}
|
|
@@ -802,7 +841,7 @@ var vt = function() {
|
|
|
802
841
|
var r = new e();
|
|
803
842
|
return r.source = this, r.operator = t, r;
|
|
804
843
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
805
|
-
var i = this, o = fn(t) ? t : new
|
|
844
|
+
var i = this, o = fn(t) ? t : new Qe(t, r, n);
|
|
806
845
|
return Ee(function() {
|
|
807
846
|
var s = i, a = s.operator, l = s.source;
|
|
808
847
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -815,8 +854,8 @@ var vt = function() {
|
|
|
815
854
|
}
|
|
816
855
|
}, e.prototype.forEach = function(t, r) {
|
|
817
856
|
var n = this;
|
|
818
|
-
return r =
|
|
819
|
-
var s = new
|
|
857
|
+
return r = gt(r), new r(function(i, o) {
|
|
858
|
+
var s = new Qe({
|
|
820
859
|
next: function(a) {
|
|
821
860
|
try {
|
|
822
861
|
t(a);
|
|
@@ -840,7 +879,7 @@ var vt = function() {
|
|
|
840
879
|
return hn(t)(this);
|
|
841
880
|
}, e.prototype.toPromise = function(t) {
|
|
842
881
|
var r = this;
|
|
843
|
-
return t =
|
|
882
|
+
return t = gt(t), new t(function(n, i) {
|
|
844
883
|
var o;
|
|
845
884
|
r.subscribe(function(s) {
|
|
846
885
|
return o = s;
|
|
@@ -854,32 +893,32 @@ var vt = function() {
|
|
|
854
893
|
return new e(t);
|
|
855
894
|
}, e;
|
|
856
895
|
}();
|
|
857
|
-
function
|
|
896
|
+
function gt(e) {
|
|
858
897
|
var t;
|
|
859
|
-
return (t = e ??
|
|
898
|
+
return (t = e ?? Jt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
860
899
|
}
|
|
861
900
|
function cn(e) {
|
|
862
|
-
return e &&
|
|
901
|
+
return e && j(e.next) && j(e.error) && j(e.complete);
|
|
863
902
|
}
|
|
864
903
|
function fn(e) {
|
|
865
|
-
return e && e instanceof
|
|
904
|
+
return e && e instanceof qt || cn(e) && Qt(e);
|
|
866
905
|
}
|
|
867
|
-
var
|
|
906
|
+
var mn = zt(function(e) {
|
|
868
907
|
return function() {
|
|
869
908
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
870
909
|
};
|
|
871
|
-
}),
|
|
872
|
-
|
|
910
|
+
}), Yt = function(e) {
|
|
911
|
+
k(t, e);
|
|
873
912
|
function t() {
|
|
874
913
|
var r = e.call(this) || this;
|
|
875
914
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
876
915
|
}
|
|
877
916
|
return t.prototype.lift = function(r) {
|
|
878
|
-
var n = new
|
|
917
|
+
var n = new vt(this, this);
|
|
879
918
|
return n.operator = r, n;
|
|
880
919
|
}, t.prototype._throwIfClosed = function() {
|
|
881
920
|
if (this.closed)
|
|
882
|
-
throw new
|
|
921
|
+
throw new mn();
|
|
883
922
|
}, t.prototype.next = function(r) {
|
|
884
923
|
var n = this;
|
|
885
924
|
Ee(function() {
|
|
@@ -887,7 +926,7 @@ var pn = Qt(function(e) {
|
|
|
887
926
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
888
927
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
889
928
|
try {
|
|
890
|
-
for (var s =
|
|
929
|
+
for (var s = We(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
891
930
|
var l = a.value;
|
|
892
931
|
l.next(r);
|
|
893
932
|
}
|
|
@@ -936,20 +975,20 @@ var pn = Qt(function(e) {
|
|
|
936
975
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
937
976
|
}, t.prototype._innerSubscribe = function(r) {
|
|
938
977
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
939
|
-
return o || s ?
|
|
940
|
-
n.currentObservers = null,
|
|
978
|
+
return o || s ? Zt : (this.currentObservers = null, a.push(r), new Ae(function() {
|
|
979
|
+
n.currentObservers = null, Ze(a, r);
|
|
941
980
|
}));
|
|
942
981
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
943
982
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
944
983
|
i ? r.error(o) : s && r.complete();
|
|
945
984
|
}, t.prototype.asObservable = function() {
|
|
946
|
-
var r = new
|
|
985
|
+
var r = new bt();
|
|
947
986
|
return r.source = this, r;
|
|
948
987
|
}, t.create = function(r, n) {
|
|
949
|
-
return new
|
|
988
|
+
return new vt(r, n);
|
|
950
989
|
}, t;
|
|
951
|
-
}(
|
|
952
|
-
|
|
990
|
+
}(bt), vt = function(e) {
|
|
991
|
+
k(t, e);
|
|
953
992
|
function t(r, n) {
|
|
954
993
|
var i = e.call(this) || this;
|
|
955
994
|
return i.destination = r, i.source = n, i;
|
|
@@ -965,17 +1004,17 @@ var pn = Qt(function(e) {
|
|
|
965
1004
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
966
1005
|
}, t.prototype._subscribe = function(r) {
|
|
967
1006
|
var n, i;
|
|
968
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1007
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Zt;
|
|
969
1008
|
}, t;
|
|
970
|
-
}(
|
|
1009
|
+
}(Yt), Kt = {
|
|
971
1010
|
now: function() {
|
|
972
|
-
return (
|
|
1011
|
+
return (Kt.delegate || Date).now();
|
|
973
1012
|
},
|
|
974
1013
|
delegate: void 0
|
|
975
|
-
},
|
|
976
|
-
|
|
1014
|
+
}, pn = function(e) {
|
|
1015
|
+
k(t, e);
|
|
977
1016
|
function t(r, n, i) {
|
|
978
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1017
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Kt);
|
|
979
1018
|
var o = e.call(this) || this;
|
|
980
1019
|
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;
|
|
981
1020
|
}
|
|
@@ -995,24 +1034,24 @@ var pn = Qt(function(e) {
|
|
|
995
1034
|
u && o.splice(0, u + 1);
|
|
996
1035
|
}
|
|
997
1036
|
}, t;
|
|
998
|
-
}(
|
|
999
|
-
const
|
|
1000
|
-
if (
|
|
1001
|
-
const r = new
|
|
1002
|
-
|
|
1037
|
+
}(Yt);
|
|
1038
|
+
const yt = [], _t = {}, dn = (e, t = 0) => {
|
|
1039
|
+
if (yt.indexOf(e) == -1) {
|
|
1040
|
+
const r = new pn(t);
|
|
1041
|
+
_t[e] = r, yt.push(e);
|
|
1003
1042
|
}
|
|
1004
|
-
return
|
|
1043
|
+
return _t[e];
|
|
1005
1044
|
}, K = [];
|
|
1006
1045
|
function bn(e, t) {
|
|
1007
1046
|
return {
|
|
1008
|
-
subscribe:
|
|
1047
|
+
subscribe: Oe(e, t).subscribe
|
|
1009
1048
|
};
|
|
1010
1049
|
}
|
|
1011
|
-
function
|
|
1050
|
+
function Oe(e, t = G) {
|
|
1012
1051
|
let r;
|
|
1013
1052
|
const n = /* @__PURE__ */ new Set();
|
|
1014
1053
|
function i(a) {
|
|
1015
|
-
if (
|
|
1054
|
+
if (jt(e, a) && (e = a, r)) {
|
|
1016
1055
|
const l = !K.length;
|
|
1017
1056
|
for (const u of n)
|
|
1018
1057
|
u[1](), K.push(u, e);
|
|
@@ -1034,7 +1073,7 @@ function Ne(e, t = G) {
|
|
|
1034
1073
|
}
|
|
1035
1074
|
return { set: i, update: o, subscribe: s };
|
|
1036
1075
|
}
|
|
1037
|
-
function
|
|
1076
|
+
function ue(e, t, r) {
|
|
1038
1077
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1039
1078
|
if (!i.every(Boolean))
|
|
1040
1079
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1048,12 +1087,12 @@ function ae(e, t, r) {
|
|
|
1048
1087
|
return;
|
|
1049
1088
|
f();
|
|
1050
1089
|
const b = t(n ? u[0] : u, s, a);
|
|
1051
|
-
o ? s(b) : f =
|
|
1090
|
+
o ? s(b) : f = Pe(b) ? b : G;
|
|
1052
1091
|
}, d = i.map(
|
|
1053
|
-
(b, g) =>
|
|
1092
|
+
(b, g) => kt(
|
|
1054
1093
|
b,
|
|
1055
|
-
(
|
|
1056
|
-
u[g] =
|
|
1094
|
+
(S) => {
|
|
1095
|
+
u[g] = S, h &= ~(1 << g), l && c();
|
|
1057
1096
|
},
|
|
1058
1097
|
() => {
|
|
1059
1098
|
h |= 1 << g;
|
|
@@ -1061,7 +1100,7 @@ function ae(e, t, r) {
|
|
|
1061
1100
|
)
|
|
1062
1101
|
);
|
|
1063
1102
|
return l = !0, c(), function() {
|
|
1064
|
-
|
|
1103
|
+
ae(d), f(), l = !1;
|
|
1065
1104
|
};
|
|
1066
1105
|
});
|
|
1067
1106
|
}
|
|
@@ -1086,7 +1125,7 @@ function Tn(e) {
|
|
|
1086
1125
|
return Array.isArray(e) ? [] : {};
|
|
1087
1126
|
}
|
|
1088
1127
|
function pe(e, t) {
|
|
1089
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1128
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ne(Tn(e), e, t) : e;
|
|
1090
1129
|
}
|
|
1091
1130
|
function Sn(e, t, r) {
|
|
1092
1131
|
return e.concat(t).map(function(n) {
|
|
@@ -1095,199 +1134,149 @@ function Sn(e, t, r) {
|
|
|
1095
1134
|
}
|
|
1096
1135
|
function Hn(e, t) {
|
|
1097
1136
|
if (!t.customMerge)
|
|
1098
|
-
return
|
|
1137
|
+
return ne;
|
|
1099
1138
|
var r = t.customMerge(e);
|
|
1100
|
-
return typeof r == "function" ? r :
|
|
1139
|
+
return typeof r == "function" ? r : ne;
|
|
1101
1140
|
}
|
|
1102
|
-
function
|
|
1141
|
+
function Bn(e) {
|
|
1103
1142
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1104
1143
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1105
1144
|
}) : [];
|
|
1106
1145
|
}
|
|
1107
|
-
function
|
|
1108
|
-
return Object.keys(e).concat(
|
|
1146
|
+
function Et(e) {
|
|
1147
|
+
return Object.keys(e).concat(Bn(e));
|
|
1109
1148
|
}
|
|
1110
|
-
function
|
|
1149
|
+
function er(e, t) {
|
|
1111
1150
|
try {
|
|
1112
1151
|
return t in e;
|
|
1113
1152
|
} catch {
|
|
1114
1153
|
return !1;
|
|
1115
1154
|
}
|
|
1116
1155
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return
|
|
1156
|
+
function Pn(e, t) {
|
|
1157
|
+
return er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1119
1158
|
}
|
|
1120
1159
|
function An(e, t, r) {
|
|
1121
1160
|
var n = {};
|
|
1122
|
-
return r.isMergeableObject(e) &&
|
|
1161
|
+
return r.isMergeableObject(e) && Et(e).forEach(function(i) {
|
|
1123
1162
|
n[i] = pe(e[i], r);
|
|
1124
|
-
}),
|
|
1125
|
-
|
|
1163
|
+
}), Et(t).forEach(function(i) {
|
|
1164
|
+
Pn(e, i) || (er(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hn(i, r)(e[i], t[i], r) : n[i] = pe(t[i], r));
|
|
1126
1165
|
}), n;
|
|
1127
1166
|
}
|
|
1128
|
-
function
|
|
1167
|
+
function ne(e, t, r) {
|
|
1129
1168
|
r = r || {}, r.arrayMerge = r.arrayMerge || Sn, r.isMergeableObject = r.isMergeableObject || vn, r.cloneUnlessOtherwiseSpecified = pe;
|
|
1130
1169
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1131
1170
|
return o ? n ? r.arrayMerge(e, t, r) : An(e, t, r) : pe(t, r);
|
|
1132
1171
|
}
|
|
1133
|
-
|
|
1172
|
+
ne.all = function(t, r) {
|
|
1134
1173
|
if (!Array.isArray(t))
|
|
1135
1174
|
throw new Error("first argument should be an array");
|
|
1136
1175
|
return t.reduce(function(n, i) {
|
|
1137
|
-
return
|
|
1176
|
+
return ne(n, i, r);
|
|
1138
1177
|
}, {});
|
|
1139
1178
|
};
|
|
1140
|
-
var On =
|
|
1179
|
+
var On = ne, Nn = On;
|
|
1141
1180
|
const Cn = /* @__PURE__ */ gn(Nn);
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
r.__proto__ = n;
|
|
1145
|
-
} || function(r, n) {
|
|
1146
|
-
for (var i in n)
|
|
1147
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1148
|
-
}, Ke(e, t);
|
|
1149
|
-
};
|
|
1150
|
-
function Ce(e, t) {
|
|
1151
|
-
if (typeof t != "function" && t !== null)
|
|
1152
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1153
|
-
Ke(e, t);
|
|
1154
|
-
function r() {
|
|
1155
|
-
this.constructor = e;
|
|
1156
|
-
}
|
|
1157
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1158
|
-
}
|
|
1159
|
-
var U = function() {
|
|
1160
|
-
return U = Object.assign || function(t) {
|
|
1161
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1162
|
-
r = arguments[n];
|
|
1163
|
-
for (var o in r)
|
|
1164
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1165
|
-
}
|
|
1166
|
-
return t;
|
|
1167
|
-
}, U.apply(this, arguments);
|
|
1168
|
-
};
|
|
1169
|
-
function In(e, t) {
|
|
1170
|
-
var r = {};
|
|
1171
|
-
for (var n in e)
|
|
1172
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1173
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1174
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1175
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1176
|
-
return r;
|
|
1177
|
-
}
|
|
1178
|
-
function $e(e, t, r) {
|
|
1179
|
-
if (r || arguments.length === 2)
|
|
1180
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1181
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1182
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1183
|
-
}
|
|
1184
|
-
function Ue(e, t) {
|
|
1185
|
-
var r = t && t.cache ? t.cache : Dn, n = t && t.serializer ? t.serializer : $n, i = t && t.strategy ? t.strategy : Rn;
|
|
1181
|
+
function Ge(e, t) {
|
|
1182
|
+
var r = t && t.cache ? t.cache : $n, n = t && t.serializer ? t.serializer : Gn, i = t && t.strategy ? t.strategy : Ln;
|
|
1186
1183
|
return i(e, {
|
|
1187
1184
|
cache: r,
|
|
1188
1185
|
serializer: n
|
|
1189
1186
|
});
|
|
1190
1187
|
}
|
|
1191
|
-
function
|
|
1188
|
+
function In(e) {
|
|
1192
1189
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1193
1190
|
}
|
|
1194
|
-
function
|
|
1195
|
-
var i =
|
|
1191
|
+
function tr(e, t, r, n) {
|
|
1192
|
+
var i = In(n) ? n : r(n), o = t.get(i);
|
|
1196
1193
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1197
1194
|
}
|
|
1198
1195
|
function rr(e, t, r) {
|
|
1199
1196
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1200
1197
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1201
1198
|
}
|
|
1202
|
-
function
|
|
1199
|
+
function ot(e, t, r, n, i) {
|
|
1203
1200
|
return r.bind(t, e, n, i);
|
|
1204
1201
|
}
|
|
1205
|
-
function
|
|
1206
|
-
var r = e.length === 1 ?
|
|
1207
|
-
return
|
|
1202
|
+
function Ln(e, t) {
|
|
1203
|
+
var r = e.length === 1 ? tr : rr;
|
|
1204
|
+
return ot(e, this, r, t.cache.create(), t.serializer);
|
|
1205
|
+
}
|
|
1206
|
+
function Mn(e, t) {
|
|
1207
|
+
return ot(e, this, rr, t.cache.create(), t.serializer);
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1210
|
-
return
|
|
1209
|
+
function Rn(e, t) {
|
|
1210
|
+
return ot(e, this, tr, t.cache.create(), t.serializer);
|
|
1211
1211
|
}
|
|
1212
|
-
var
|
|
1212
|
+
var Gn = function() {
|
|
1213
1213
|
return JSON.stringify(arguments);
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
}()
|
|
1226
|
-
), Dn = {
|
|
1214
|
+
};
|
|
1215
|
+
function st() {
|
|
1216
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1217
|
+
}
|
|
1218
|
+
st.prototype.get = function(e) {
|
|
1219
|
+
return this.cache[e];
|
|
1220
|
+
};
|
|
1221
|
+
st.prototype.set = function(e, t) {
|
|
1222
|
+
this.cache[e] = t;
|
|
1223
|
+
};
|
|
1224
|
+
var $n = {
|
|
1227
1225
|
create: function() {
|
|
1228
|
-
return new
|
|
1226
|
+
return new st();
|
|
1229
1227
|
}
|
|
1230
|
-
},
|
|
1231
|
-
variadic:
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1235
|
-
r = arguments[n];
|
|
1236
|
-
for (var o in r)
|
|
1237
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1238
|
-
}
|
|
1239
|
-
return t;
|
|
1240
|
-
}, He.apply(this, arguments);
|
|
1241
|
-
};
|
|
1242
|
-
var y;
|
|
1228
|
+
}, $e = {
|
|
1229
|
+
variadic: Mn,
|
|
1230
|
+
monadic: Rn
|
|
1231
|
+
}, y;
|
|
1243
1232
|
(function(e) {
|
|
1244
1233
|
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";
|
|
1245
1234
|
})(y || (y = {}));
|
|
1246
|
-
var
|
|
1235
|
+
var H;
|
|
1247
1236
|
(function(e) {
|
|
1248
1237
|
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";
|
|
1249
|
-
})(
|
|
1250
|
-
var
|
|
1238
|
+
})(H || (H = {}));
|
|
1239
|
+
var ie;
|
|
1251
1240
|
(function(e) {
|
|
1252
1241
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1253
|
-
})(
|
|
1254
|
-
function
|
|
1255
|
-
return e.type ===
|
|
1242
|
+
})(ie || (ie = {}));
|
|
1243
|
+
function xt(e) {
|
|
1244
|
+
return e.type === H.literal;
|
|
1245
|
+
}
|
|
1246
|
+
function Un(e) {
|
|
1247
|
+
return e.type === H.argument;
|
|
1256
1248
|
}
|
|
1257
|
-
function
|
|
1258
|
-
return e.type ===
|
|
1249
|
+
function nr(e) {
|
|
1250
|
+
return e.type === H.number;
|
|
1259
1251
|
}
|
|
1260
1252
|
function ir(e) {
|
|
1261
|
-
return e.type ===
|
|
1253
|
+
return e.type === H.date;
|
|
1262
1254
|
}
|
|
1263
1255
|
function or(e) {
|
|
1264
|
-
return e.type ===
|
|
1256
|
+
return e.type === H.time;
|
|
1265
1257
|
}
|
|
1266
1258
|
function sr(e) {
|
|
1267
|
-
return e.type ===
|
|
1259
|
+
return e.type === H.select;
|
|
1268
1260
|
}
|
|
1269
1261
|
function ar(e) {
|
|
1270
|
-
return e.type ===
|
|
1262
|
+
return e.type === H.plural;
|
|
1271
1263
|
}
|
|
1272
|
-
function
|
|
1273
|
-
return e.type ===
|
|
1264
|
+
function Dn(e) {
|
|
1265
|
+
return e.type === H.pound;
|
|
1274
1266
|
}
|
|
1275
|
-
function
|
|
1276
|
-
return e.type ===
|
|
1267
|
+
function ur(e) {
|
|
1268
|
+
return e.type === H.tag;
|
|
1277
1269
|
}
|
|
1278
1270
|
function lr(e) {
|
|
1279
|
-
return e.type ===
|
|
1271
|
+
return !!(e && typeof e == "object" && e.type === ie.number);
|
|
1280
1272
|
}
|
|
1281
|
-
function
|
|
1282
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1273
|
+
function Je(e) {
|
|
1274
|
+
return !!(e && typeof e == "object" && e.type === ie.dateTime);
|
|
1283
1275
|
}
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
}
|
|
1287
|
-
var cr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, kn = /(?:[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;
|
|
1288
|
-
function Vn(e) {
|
|
1276
|
+
var hr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Fn = /(?:[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;
|
|
1277
|
+
function jn(e) {
|
|
1289
1278
|
var t = {};
|
|
1290
|
-
return e.replace(
|
|
1279
|
+
return e.replace(Fn, function(r) {
|
|
1291
1280
|
var n = r.length;
|
|
1292
1281
|
switch (r[0]) {
|
|
1293
1282
|
case "G":
|
|
@@ -1376,21 +1365,11 @@ function Vn(e) {
|
|
|
1376
1365
|
return "";
|
|
1377
1366
|
}), t;
|
|
1378
1367
|
}
|
|
1379
|
-
var
|
|
1380
|
-
|
|
1381
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1382
|
-
r = arguments[n];
|
|
1383
|
-
for (var o in r)
|
|
1384
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1385
|
-
}
|
|
1386
|
-
return t;
|
|
1387
|
-
}, P.apply(this, arguments);
|
|
1388
|
-
};
|
|
1389
|
-
var Xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1390
|
-
function Wn(e) {
|
|
1368
|
+
var kn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1369
|
+
function Vn(e) {
|
|
1391
1370
|
if (e.length === 0)
|
|
1392
1371
|
throw new Error("Number skeleton cannot be empty");
|
|
1393
|
-
for (var t = e.split(
|
|
1372
|
+
for (var t = e.split(kn).filter(function(c) {
|
|
1394
1373
|
return c.length > 0;
|
|
1395
1374
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1396
1375
|
var o = i[n], s = o.split("/");
|
|
@@ -1405,13 +1384,13 @@ function Wn(e) {
|
|
|
1405
1384
|
}
|
|
1406
1385
|
return r;
|
|
1407
1386
|
}
|
|
1408
|
-
function
|
|
1387
|
+
function Xn(e) {
|
|
1409
1388
|
return e.replace(/^(.*?)-/, "");
|
|
1410
1389
|
}
|
|
1411
|
-
var
|
|
1412
|
-
function
|
|
1390
|
+
var wt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, cr = /^(@+)?(\+|#+)?[rs]?$/g, Wn = /(\*)(0+)|(#+)(0+)|(0+)/g, fr = /^(0+)$/;
|
|
1391
|
+
function Tt(e) {
|
|
1413
1392
|
var t = {};
|
|
1414
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1393
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(cr, function(r, n, i) {
|
|
1415
1394
|
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)), "";
|
|
1416
1395
|
}), t;
|
|
1417
1396
|
}
|
|
@@ -1455,7 +1434,7 @@ function mr(e) {
|
|
|
1455
1434
|
};
|
|
1456
1435
|
}
|
|
1457
1436
|
}
|
|
1458
|
-
function
|
|
1437
|
+
function zn(e) {
|
|
1459
1438
|
var t;
|
|
1460
1439
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1461
1440
|
notation: "engineering"
|
|
@@ -1463,17 +1442,17 @@ function Qn(e) {
|
|
|
1463
1442
|
notation: "scientific"
|
|
1464
1443
|
}, e = e.slice(1)), t) {
|
|
1465
1444
|
var r = e.slice(0, 2);
|
|
1466
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1445
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !fr.test(e))
|
|
1467
1446
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1468
1447
|
t.minimumIntegerDigits = e.length;
|
|
1469
1448
|
}
|
|
1470
1449
|
return t;
|
|
1471
1450
|
}
|
|
1472
|
-
function
|
|
1451
|
+
function St(e) {
|
|
1473
1452
|
var t = {}, r = mr(e);
|
|
1474
1453
|
return r || t;
|
|
1475
1454
|
}
|
|
1476
|
-
function
|
|
1455
|
+
function Zn(e) {
|
|
1477
1456
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1478
1457
|
var i = n[r];
|
|
1479
1458
|
switch (i.stem) {
|
|
@@ -1497,7 +1476,7 @@ function Jn(e) {
|
|
|
1497
1476
|
continue;
|
|
1498
1477
|
case "measure-unit":
|
|
1499
1478
|
case "unit":
|
|
1500
|
-
t.style = "unit", t.unit =
|
|
1479
|
+
t.style = "unit", t.unit = Xn(i.options[0]);
|
|
1501
1480
|
continue;
|
|
1502
1481
|
case "compact-short":
|
|
1503
1482
|
case "K":
|
|
@@ -1508,13 +1487,13 @@ function Jn(e) {
|
|
|
1508
1487
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1509
1488
|
continue;
|
|
1510
1489
|
case "scientific":
|
|
1511
|
-
t =
|
|
1512
|
-
return
|
|
1490
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1491
|
+
return T(T({}, l), St(u));
|
|
1513
1492
|
}, {}));
|
|
1514
1493
|
continue;
|
|
1515
1494
|
case "engineering":
|
|
1516
|
-
t =
|
|
1517
|
-
return
|
|
1495
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1496
|
+
return T(T({}, l), St(u));
|
|
1518
1497
|
}, {}));
|
|
1519
1498
|
continue;
|
|
1520
1499
|
case "notation-simple":
|
|
@@ -1559,7 +1538,7 @@ function Jn(e) {
|
|
|
1559
1538
|
case "integer-width":
|
|
1560
1539
|
if (i.options.length > 1)
|
|
1561
1540
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1562
|
-
i.options[0].replace(
|
|
1541
|
+
i.options[0].replace(Wn, function(l, u, h, f, c, d) {
|
|
1563
1542
|
if (u)
|
|
1564
1543
|
t.minimumIntegerDigits = h.length;
|
|
1565
1544
|
else {
|
|
@@ -1572,28 +1551,28 @@ function Jn(e) {
|
|
|
1572
1551
|
});
|
|
1573
1552
|
continue;
|
|
1574
1553
|
}
|
|
1575
|
-
if (
|
|
1554
|
+
if (fr.test(i.stem)) {
|
|
1576
1555
|
t.minimumIntegerDigits = i.stem.length;
|
|
1577
1556
|
continue;
|
|
1578
1557
|
}
|
|
1579
|
-
if (
|
|
1558
|
+
if (wt.test(i.stem)) {
|
|
1580
1559
|
if (i.options.length > 1)
|
|
1581
1560
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1582
|
-
i.stem.replace(
|
|
1561
|
+
i.stem.replace(wt, function(l, u, h, f, c, d) {
|
|
1583
1562
|
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1584
1563
|
});
|
|
1585
1564
|
var o = i.options[0];
|
|
1586
|
-
o === "w" ? t =
|
|
1565
|
+
o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), Tt(o)));
|
|
1587
1566
|
continue;
|
|
1588
1567
|
}
|
|
1589
|
-
if (
|
|
1590
|
-
t =
|
|
1568
|
+
if (cr.test(i.stem)) {
|
|
1569
|
+
t = T(T({}, t), Tt(i.stem));
|
|
1591
1570
|
continue;
|
|
1592
1571
|
}
|
|
1593
1572
|
var s = mr(i.stem);
|
|
1594
|
-
s && (t =
|
|
1595
|
-
var a =
|
|
1596
|
-
a && (t =
|
|
1573
|
+
s && (t = T(T({}, t), s));
|
|
1574
|
+
var a = zn(i.stem);
|
|
1575
|
+
a && (t = T(T({}, t), a));
|
|
1597
1576
|
}
|
|
1598
1577
|
return t;
|
|
1599
1578
|
}
|
|
@@ -3012,13 +2991,13 @@ var ye = {
|
|
|
3012
2991
|
"h"
|
|
3013
2992
|
]
|
|
3014
2993
|
};
|
|
3015
|
-
function
|
|
2994
|
+
function Qn(e, t) {
|
|
3016
2995
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3017
2996
|
var i = e.charAt(n);
|
|
3018
2997
|
if (i === "j") {
|
|
3019
2998
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3020
2999
|
o++, n++;
|
|
3021
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3000
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Jn(t);
|
|
3022
3001
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3023
3002
|
r += l;
|
|
3024
3003
|
for (; s-- > 0; )
|
|
@@ -3028,7 +3007,7 @@ function qn(e, t) {
|
|
|
3028
3007
|
}
|
|
3029
3008
|
return r;
|
|
3030
3009
|
}
|
|
3031
|
-
function
|
|
3010
|
+
function Jn(e) {
|
|
3032
3011
|
var t = e.hourCycle;
|
|
3033
3012
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3034
3013
|
e.hourCycles && // @ts-ignore
|
|
@@ -3050,20 +3029,20 @@ function Yn(e) {
|
|
|
3050
3029
|
var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
|
|
3051
3030
|
return i[0];
|
|
3052
3031
|
}
|
|
3053
|
-
var
|
|
3032
|
+
var Ue, qn = new RegExp("^".concat(hr.source, "*")), Yn = new RegExp("".concat(hr.source, "*$"));
|
|
3054
3033
|
function E(e, t) {
|
|
3055
3034
|
return { start: e, end: t };
|
|
3056
3035
|
}
|
|
3057
|
-
var
|
|
3036
|
+
var Kn = !!String.prototype.startsWith && "_a".startsWith("a", 1), ei = !!String.fromCodePoint, ti = !!Object.fromEntries, ri = !!String.prototype.codePointAt, ni = !!String.prototype.trimStart, ii = !!String.prototype.trimEnd, oi = !!Number.isSafeInteger, si = oi ? Number.isSafeInteger : function(e) {
|
|
3058
3037
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3059
|
-
},
|
|
3038
|
+
}, qe = !0;
|
|
3060
3039
|
try {
|
|
3061
|
-
var
|
|
3062
|
-
|
|
3040
|
+
var ai = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3041
|
+
qe = ((Ue = ai.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
|
|
3063
3042
|
} catch {
|
|
3064
|
-
|
|
3043
|
+
qe = !1;
|
|
3065
3044
|
}
|
|
3066
|
-
var
|
|
3045
|
+
var Ht = Kn ? (
|
|
3067
3046
|
// Native
|
|
3068
3047
|
function(t, r, n) {
|
|
3069
3048
|
return t.startsWith(r, n);
|
|
@@ -3073,7 +3052,7 @@ var Bt = ti ? (
|
|
|
3073
3052
|
function(t, r, n) {
|
|
3074
3053
|
return t.slice(n, n + r.length) === r;
|
|
3075
3054
|
}
|
|
3076
|
-
),
|
|
3055
|
+
), Ye = ei ? String.fromCodePoint : (
|
|
3077
3056
|
// IE11
|
|
3078
3057
|
function() {
|
|
3079
3058
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3085,9 +3064,9 @@ var Bt = ti ? (
|
|
|
3085
3064
|
}
|
|
3086
3065
|
return n;
|
|
3087
3066
|
}
|
|
3088
|
-
),
|
|
3067
|
+
), Bt = (
|
|
3089
3068
|
// native
|
|
3090
|
-
|
|
3069
|
+
ti ? Object.fromEntries : (
|
|
3091
3070
|
// Ponyfill
|
|
3092
3071
|
function(t) {
|
|
3093
3072
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3097,7 +3076,7 @@ var Bt = ti ? (
|
|
|
3097
3076
|
return r;
|
|
3098
3077
|
}
|
|
3099
3078
|
)
|
|
3100
|
-
),
|
|
3079
|
+
), pr = ri ? (
|
|
3101
3080
|
// Native
|
|
3102
3081
|
function(t, r) {
|
|
3103
3082
|
return t.codePointAt(r);
|
|
@@ -3111,7 +3090,7 @@ var Bt = ti ? (
|
|
|
3111
3090
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3112
3091
|
}
|
|
3113
3092
|
}
|
|
3114
|
-
),
|
|
3093
|
+
), ui = ni ? (
|
|
3115
3094
|
// Native
|
|
3116
3095
|
function(t) {
|
|
3117
3096
|
return t.trimStart();
|
|
@@ -3119,9 +3098,9 @@ var Bt = ti ? (
|
|
|
3119
3098
|
) : (
|
|
3120
3099
|
// Ponyfill
|
|
3121
3100
|
function(t) {
|
|
3122
|
-
return t.replace(
|
|
3101
|
+
return t.replace(qn, "");
|
|
3123
3102
|
}
|
|
3124
|
-
),
|
|
3103
|
+
), li = ii ? (
|
|
3125
3104
|
// Native
|
|
3126
3105
|
function(t) {
|
|
3127
3106
|
return t.trimEnd();
|
|
@@ -3129,32 +3108,32 @@ var Bt = ti ? (
|
|
|
3129
3108
|
) : (
|
|
3130
3109
|
// Ponyfill
|
|
3131
3110
|
function(t) {
|
|
3132
|
-
return t.replace(
|
|
3111
|
+
return t.replace(Yn, "");
|
|
3133
3112
|
}
|
|
3134
3113
|
);
|
|
3135
|
-
function
|
|
3114
|
+
function dr(e, t) {
|
|
3136
3115
|
return new RegExp(e, t);
|
|
3137
3116
|
}
|
|
3138
|
-
var
|
|
3139
|
-
if (
|
|
3140
|
-
var
|
|
3141
|
-
|
|
3117
|
+
var Ke;
|
|
3118
|
+
if (qe) {
|
|
3119
|
+
var Pt = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3120
|
+
Ke = function(t, r) {
|
|
3142
3121
|
var n;
|
|
3143
|
-
|
|
3144
|
-
var i =
|
|
3122
|
+
Pt.lastIndex = r;
|
|
3123
|
+
var i = Pt.exec(t);
|
|
3145
3124
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3146
3125
|
};
|
|
3147
3126
|
} else
|
|
3148
|
-
|
|
3127
|
+
Ke = function(t, r) {
|
|
3149
3128
|
for (var n = []; ; ) {
|
|
3150
|
-
var i =
|
|
3151
|
-
if (i === void 0 ||
|
|
3129
|
+
var i = pr(t, r);
|
|
3130
|
+
if (i === void 0 || br(i) || mi(i))
|
|
3152
3131
|
break;
|
|
3153
3132
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3154
3133
|
}
|
|
3155
|
-
return
|
|
3134
|
+
return Ye.apply(void 0, n);
|
|
3156
3135
|
};
|
|
3157
|
-
var
|
|
3136
|
+
var hi = (
|
|
3158
3137
|
/** @class */
|
|
3159
3138
|
function() {
|
|
3160
3139
|
function e(t, r) {
|
|
@@ -3178,14 +3157,14 @@ var fi = (
|
|
|
3178
3157
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3179
3158
|
var a = this.clonePosition();
|
|
3180
3159
|
this.bump(), i.push({
|
|
3181
|
-
type:
|
|
3160
|
+
type: H.pound,
|
|
3182
3161
|
location: E(a, this.clonePosition())
|
|
3183
3162
|
});
|
|
3184
3163
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3185
3164
|
if (n)
|
|
3186
3165
|
break;
|
|
3187
3166
|
return this.error(y.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3188
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3167
|
+
} else if (o === 60 && !this.ignoreTag && et(this.peek() || 0)) {
|
|
3189
3168
|
var s = this.parseTag(t, r);
|
|
3190
3169
|
if (s.err)
|
|
3191
3170
|
return s;
|
|
@@ -3206,7 +3185,7 @@ var fi = (
|
|
|
3206
3185
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3207
3186
|
return {
|
|
3208
3187
|
val: {
|
|
3209
|
-
type:
|
|
3188
|
+
type: H.literal,
|
|
3210
3189
|
value: "<".concat(i, "/>"),
|
|
3211
3190
|
location: E(n, this.clonePosition())
|
|
3212
3191
|
},
|
|
@@ -3218,12 +3197,12 @@ var fi = (
|
|
|
3218
3197
|
return o;
|
|
3219
3198
|
var s = o.val, a = this.clonePosition();
|
|
3220
3199
|
if (this.bumpIf("</")) {
|
|
3221
|
-
if (this.isEOF() || !
|
|
3200
|
+
if (this.isEOF() || !et(this.char()))
|
|
3222
3201
|
return this.error(y.INVALID_TAG, E(a, this.clonePosition()));
|
|
3223
3202
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3224
3203
|
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3225
3204
|
val: {
|
|
3226
|
-
type:
|
|
3205
|
+
type: H.tag,
|
|
3227
3206
|
value: i,
|
|
3228
3207
|
children: s,
|
|
3229
3208
|
location: E(n, this.clonePosition())
|
|
@@ -3236,7 +3215,7 @@ var fi = (
|
|
|
3236
3215
|
return this.error(y.INVALID_TAG, E(n, this.clonePosition()));
|
|
3237
3216
|
}, e.prototype.parseTagName = function() {
|
|
3238
3217
|
var t = this.offset();
|
|
3239
|
-
for (this.bump(); !this.isEOF() &&
|
|
3218
|
+
for (this.bump(); !this.isEOF() && fi(this.char()); )
|
|
3240
3219
|
this.bump();
|
|
3241
3220
|
return this.message.slice(t, this.offset());
|
|
3242
3221
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3260,12 +3239,12 @@ var fi = (
|
|
|
3260
3239
|
}
|
|
3261
3240
|
var l = E(n, this.clonePosition());
|
|
3262
3241
|
return {
|
|
3263
|
-
val: { type:
|
|
3242
|
+
val: { type: H.literal, value: i, location: l },
|
|
3264
3243
|
err: null
|
|
3265
3244
|
};
|
|
3266
3245
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3267
3246
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3268
|
-
!
|
|
3247
|
+
!ci(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3269
3248
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3270
3249
|
if (this.isEOF() || this.char() !== 39)
|
|
3271
3250
|
return null;
|
|
@@ -3299,12 +3278,12 @@ var fi = (
|
|
|
3299
3278
|
r.push(n);
|
|
3300
3279
|
this.bump();
|
|
3301
3280
|
}
|
|
3302
|
-
return
|
|
3281
|
+
return Ye.apply(void 0, r);
|
|
3303
3282
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3304
3283
|
if (this.isEOF())
|
|
3305
3284
|
return null;
|
|
3306
3285
|
var n = this.char();
|
|
3307
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3286
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ye(n));
|
|
3308
3287
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3309
3288
|
var n = this.clonePosition();
|
|
3310
3289
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3320,7 +3299,7 @@ var fi = (
|
|
|
3320
3299
|
case 125:
|
|
3321
3300
|
return this.bump(), {
|
|
3322
3301
|
val: {
|
|
3323
|
-
type:
|
|
3302
|
+
type: H.argument,
|
|
3324
3303
|
// value does not include the opening and closing braces.
|
|
3325
3304
|
value: i,
|
|
3326
3305
|
location: E(n, this.clonePosition())
|
|
@@ -3333,7 +3312,7 @@ var fi = (
|
|
|
3333
3312
|
return this.error(y.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3334
3313
|
}
|
|
3335
3314
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3336
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3315
|
+
var t = this.clonePosition(), r = this.offset(), n = Ke(this.message, r), i = r + n.length;
|
|
3337
3316
|
this.bumpTo(i);
|
|
3338
3317
|
var o = this.clonePosition(), s = E(t, o);
|
|
3339
3318
|
return { value: n, location: s };
|
|
@@ -3352,7 +3331,7 @@ var fi = (
|
|
|
3352
3331
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3353
3332
|
if (f.err)
|
|
3354
3333
|
return f;
|
|
3355
|
-
var c =
|
|
3334
|
+
var c = li(f.val);
|
|
3356
3335
|
if (c.length === 0)
|
|
3357
3336
|
return this.error(y.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3358
3337
|
var d = E(h, this.clonePosition());
|
|
@@ -3362,25 +3341,25 @@ var fi = (
|
|
|
3362
3341
|
if (b.err)
|
|
3363
3342
|
return b;
|
|
3364
3343
|
var g = E(i, this.clonePosition());
|
|
3365
|
-
if (u &&
|
|
3366
|
-
var
|
|
3344
|
+
if (u && Ht(u?.style, "::", 0)) {
|
|
3345
|
+
var S = ui(u.style.slice(2));
|
|
3367
3346
|
if (a === "number") {
|
|
3368
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3347
|
+
var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3369
3348
|
return f.err ? f : {
|
|
3370
|
-
val: { type:
|
|
3349
|
+
val: { type: H.number, value: n, location: g, style: f.val },
|
|
3371
3350
|
err: null
|
|
3372
3351
|
};
|
|
3373
3352
|
} else {
|
|
3374
|
-
if (
|
|
3353
|
+
if (S.length === 0)
|
|
3375
3354
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
3376
|
-
var A =
|
|
3377
|
-
this.locale && (A =
|
|
3355
|
+
var A = S;
|
|
3356
|
+
this.locale && (A = Qn(S, this.locale));
|
|
3378
3357
|
var c = {
|
|
3379
|
-
type:
|
|
3358
|
+
type: ie.dateTime,
|
|
3380
3359
|
pattern: A,
|
|
3381
3360
|
location: u.styleLocation,
|
|
3382
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3383
|
-
}, _ = a === "date" ?
|
|
3361
|
+
parsedOptions: this.shouldParseSkeletons ? jn(A) : {}
|
|
3362
|
+
}, _ = a === "date" ? H.date : H.time;
|
|
3384
3363
|
return {
|
|
3385
3364
|
val: { type: _, value: n, location: g, style: c },
|
|
3386
3365
|
err: null
|
|
@@ -3389,7 +3368,7 @@ var fi = (
|
|
|
3389
3368
|
}
|
|
3390
3369
|
return {
|
|
3391
3370
|
val: {
|
|
3392
|
-
type: a === "number" ?
|
|
3371
|
+
type: a === "number" ? H.number : a === "date" ? H.date : H.time,
|
|
3393
3372
|
value: n,
|
|
3394
3373
|
location: g,
|
|
3395
3374
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3400,21 +3379,21 @@ var fi = (
|
|
|
3400
3379
|
case "plural":
|
|
3401
3380
|
case "selectordinal":
|
|
3402
3381
|
case "select": {
|
|
3403
|
-
var
|
|
3382
|
+
var p = this.clonePosition();
|
|
3404
3383
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3405
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, E(
|
|
3384
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, E(p, T({}, p)));
|
|
3406
3385
|
this.bumpSpace();
|
|
3407
|
-
var
|
|
3408
|
-
if (a !== "select" &&
|
|
3386
|
+
var B = this.parseIdentifierIfPossible(), w = 0;
|
|
3387
|
+
if (a !== "select" && B.value === "offset") {
|
|
3409
3388
|
if (!this.bumpIf(":"))
|
|
3410
3389
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
3411
3390
|
this.bumpSpace();
|
|
3412
3391
|
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3413
3392
|
if (f.err)
|
|
3414
3393
|
return f;
|
|
3415
|
-
this.bumpSpace(),
|
|
3394
|
+
this.bumpSpace(), B = this.parseIdentifierIfPossible(), w = f.val;
|
|
3416
3395
|
}
|
|
3417
|
-
var I = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3396
|
+
var I = this.tryParsePluralOrSelectOptions(t, a, r, B);
|
|
3418
3397
|
if (I.err)
|
|
3419
3398
|
return I;
|
|
3420
3399
|
var b = this.tryParseArgumentClose(i);
|
|
@@ -3423,17 +3402,17 @@ var fi = (
|
|
|
3423
3402
|
var M = E(i, this.clonePosition());
|
|
3424
3403
|
return a === "select" ? {
|
|
3425
3404
|
val: {
|
|
3426
|
-
type:
|
|
3405
|
+
type: H.select,
|
|
3427
3406
|
value: n,
|
|
3428
|
-
options:
|
|
3407
|
+
options: Bt(I.val),
|
|
3429
3408
|
location: M
|
|
3430
3409
|
},
|
|
3431
3410
|
err: null
|
|
3432
3411
|
} : {
|
|
3433
3412
|
val: {
|
|
3434
|
-
type:
|
|
3413
|
+
type: H.plural,
|
|
3435
3414
|
value: n,
|
|
3436
|
-
options:
|
|
3415
|
+
options: Bt(I.val),
|
|
3437
3416
|
offset: w,
|
|
3438
3417
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3439
3418
|
location: M
|
|
@@ -3484,16 +3463,16 @@ var fi = (
|
|
|
3484
3463
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3485
3464
|
var n = [];
|
|
3486
3465
|
try {
|
|
3487
|
-
n =
|
|
3466
|
+
n = Vn(t);
|
|
3488
3467
|
} catch {
|
|
3489
3468
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3490
3469
|
}
|
|
3491
3470
|
return {
|
|
3492
3471
|
val: {
|
|
3493
|
-
type:
|
|
3472
|
+
type: ie.number,
|
|
3494
3473
|
tokens: n,
|
|
3495
3474
|
location: r,
|
|
3496
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3475
|
+
parsedOptions: this.shouldParseSkeletons ? Zn(n) : {}
|
|
3497
3476
|
},
|
|
3498
3477
|
err: null
|
|
3499
3478
|
};
|
|
@@ -3541,7 +3520,7 @@ var fi = (
|
|
|
3541
3520
|
break;
|
|
3542
3521
|
}
|
|
3543
3522
|
var l = E(i, this.clonePosition());
|
|
3544
|
-
return o ? (s *= n,
|
|
3523
|
+
return o ? (s *= n, si(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3545
3524
|
}, e.prototype.offset = function() {
|
|
3546
3525
|
return this.position.offset;
|
|
3547
3526
|
}, e.prototype.isEOF = function() {
|
|
@@ -3556,7 +3535,7 @@ var fi = (
|
|
|
3556
3535
|
var t = this.position.offset;
|
|
3557
3536
|
if (t >= this.message.length)
|
|
3558
3537
|
throw Error("out of bound");
|
|
3559
|
-
var r =
|
|
3538
|
+
var r = pr(this.message, t);
|
|
3560
3539
|
if (r === void 0)
|
|
3561
3540
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3562
3541
|
return r;
|
|
@@ -3575,7 +3554,7 @@ var fi = (
|
|
|
3575
3554
|
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);
|
|
3576
3555
|
}
|
|
3577
3556
|
}, e.prototype.bumpIf = function(t) {
|
|
3578
|
-
if (
|
|
3557
|
+
if (Ht(this.message, t, this.offset())) {
|
|
3579
3558
|
for (var r = 0; r < t.length; r++)
|
|
3580
3559
|
this.bump();
|
|
3581
3560
|
return !0;
|
|
@@ -3597,7 +3576,7 @@ var fi = (
|
|
|
3597
3576
|
break;
|
|
3598
3577
|
}
|
|
3599
3578
|
}, e.prototype.bumpSpace = function() {
|
|
3600
|
-
for (; !this.isEOF() &&
|
|
3579
|
+
for (; !this.isEOF() && br(this.char()); )
|
|
3601
3580
|
this.bump();
|
|
3602
3581
|
}, e.prototype.peek = function() {
|
|
3603
3582
|
if (this.isEOF())
|
|
@@ -3607,47 +3586,47 @@ var fi = (
|
|
|
3607
3586
|
}, e;
|
|
3608
3587
|
}()
|
|
3609
3588
|
);
|
|
3610
|
-
function
|
|
3589
|
+
function et(e) {
|
|
3611
3590
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3612
3591
|
}
|
|
3613
|
-
function
|
|
3614
|
-
return
|
|
3592
|
+
function ci(e) {
|
|
3593
|
+
return et(e) || e === 47;
|
|
3615
3594
|
}
|
|
3616
|
-
function
|
|
3595
|
+
function fi(e) {
|
|
3617
3596
|
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;
|
|
3618
3597
|
}
|
|
3619
|
-
function
|
|
3598
|
+
function br(e) {
|
|
3620
3599
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3621
3600
|
}
|
|
3622
|
-
function
|
|
3601
|
+
function mi(e) {
|
|
3623
3602
|
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;
|
|
3624
3603
|
}
|
|
3625
|
-
function
|
|
3604
|
+
function tt(e) {
|
|
3626
3605
|
e.forEach(function(t) {
|
|
3627
|
-
if (delete t.location,
|
|
3606
|
+
if (delete t.location, sr(t) || ar(t))
|
|
3628
3607
|
for (var r in t.options)
|
|
3629
|
-
delete t.options[r].location,
|
|
3608
|
+
delete t.options[r].location, tt(t.options[r].value);
|
|
3630
3609
|
else
|
|
3631
|
-
|
|
3610
|
+
nr(t) && lr(t.style) || (ir(t) || or(t)) && Je(t.style) ? delete t.style.location : ur(t) && tt(t.children);
|
|
3632
3611
|
});
|
|
3633
3612
|
}
|
|
3634
|
-
function
|
|
3635
|
-
t === void 0 && (t = {}), t =
|
|
3636
|
-
var r = new
|
|
3613
|
+
function pi(e, t) {
|
|
3614
|
+
t === void 0 && (t = {}), t = T({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3615
|
+
var r = new hi(e, t).parse();
|
|
3637
3616
|
if (r.err) {
|
|
3638
3617
|
var n = SyntaxError(y[r.err.kind]);
|
|
3639
3618
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3640
3619
|
}
|
|
3641
|
-
return t?.captureLocation ||
|
|
3620
|
+
return t?.captureLocation || tt(r.val), r.val;
|
|
3642
3621
|
}
|
|
3643
|
-
var
|
|
3622
|
+
var oe;
|
|
3644
3623
|
(function(e) {
|
|
3645
3624
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3646
|
-
})(
|
|
3647
|
-
var
|
|
3625
|
+
})(oe || (oe = {}));
|
|
3626
|
+
var Ne = (
|
|
3648
3627
|
/** @class */
|
|
3649
3628
|
function(e) {
|
|
3650
|
-
|
|
3629
|
+
k(t, e);
|
|
3651
3630
|
function t(r, n, i) {
|
|
3652
3631
|
var o = e.call(this, r) || this;
|
|
3653
3632
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3656,48 +3635,48 @@ var Ie = (
|
|
|
3656
3635
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3657
3636
|
}, t;
|
|
3658
3637
|
}(Error)
|
|
3659
|
-
),
|
|
3638
|
+
), At = (
|
|
3660
3639
|
/** @class */
|
|
3661
3640
|
function(e) {
|
|
3662
|
-
|
|
3641
|
+
k(t, e);
|
|
3663
3642
|
function t(r, n, i, o) {
|
|
3664
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3643
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), oe.INVALID_VALUE, o) || this;
|
|
3665
3644
|
}
|
|
3666
3645
|
return t;
|
|
3667
|
-
}(
|
|
3668
|
-
),
|
|
3646
|
+
}(Ne)
|
|
3647
|
+
), di = (
|
|
3669
3648
|
/** @class */
|
|
3670
3649
|
function(e) {
|
|
3671
|
-
|
|
3650
|
+
k(t, e);
|
|
3672
3651
|
function t(r, n, i) {
|
|
3673
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3652
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), oe.INVALID_VALUE, i) || this;
|
|
3674
3653
|
}
|
|
3675
3654
|
return t;
|
|
3676
|
-
}(
|
|
3677
|
-
),
|
|
3655
|
+
}(Ne)
|
|
3656
|
+
), bi = (
|
|
3678
3657
|
/** @class */
|
|
3679
3658
|
function(e) {
|
|
3680
|
-
|
|
3659
|
+
k(t, e);
|
|
3681
3660
|
function t(r, n) {
|
|
3682
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3661
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), oe.MISSING_VALUE, n) || this;
|
|
3683
3662
|
}
|
|
3684
3663
|
return t;
|
|
3685
|
-
}(
|
|
3664
|
+
}(Ne)
|
|
3686
3665
|
), C;
|
|
3687
3666
|
(function(e) {
|
|
3688
3667
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3689
3668
|
})(C || (C = {}));
|
|
3690
|
-
function
|
|
3669
|
+
function gi(e) {
|
|
3691
3670
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3692
3671
|
var n = t[t.length - 1];
|
|
3693
3672
|
return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
|
|
3694
3673
|
}, []);
|
|
3695
3674
|
}
|
|
3696
|
-
function
|
|
3675
|
+
function vi(e) {
|
|
3697
3676
|
return typeof e == "function";
|
|
3698
3677
|
}
|
|
3699
3678
|
function xe(e, t, r, n, i, o, s) {
|
|
3700
|
-
if (e.length === 1 &&
|
|
3679
|
+
if (e.length === 1 && xt(e[0]))
|
|
3701
3680
|
return [
|
|
3702
3681
|
{
|
|
3703
3682
|
type: C.literal,
|
|
@@ -3706,14 +3685,14 @@ function xe(e, t, r, n, i, o, s) {
|
|
|
3706
3685
|
];
|
|
3707
3686
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3708
3687
|
var h = u[l];
|
|
3709
|
-
if (
|
|
3688
|
+
if (xt(h)) {
|
|
3710
3689
|
a.push({
|
|
3711
3690
|
type: C.literal,
|
|
3712
3691
|
value: h.value
|
|
3713
3692
|
});
|
|
3714
3693
|
continue;
|
|
3715
3694
|
}
|
|
3716
|
-
if (
|
|
3695
|
+
if (Dn(h)) {
|
|
3717
3696
|
typeof o == "number" && a.push({
|
|
3718
3697
|
type: C.literal,
|
|
3719
3698
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3722,44 +3701,44 @@ function xe(e, t, r, n, i, o, s) {
|
|
|
3722
3701
|
}
|
|
3723
3702
|
var f = h.value;
|
|
3724
3703
|
if (!(i && f in i))
|
|
3725
|
-
throw new
|
|
3704
|
+
throw new bi(f, s);
|
|
3726
3705
|
var c = i[f];
|
|
3727
|
-
if (
|
|
3706
|
+
if (Un(h)) {
|
|
3728
3707
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3729
3708
|
type: typeof c == "string" ? C.literal : C.object,
|
|
3730
3709
|
value: c
|
|
3731
3710
|
});
|
|
3732
3711
|
continue;
|
|
3733
3712
|
}
|
|
3734
|
-
if (
|
|
3735
|
-
var d = typeof h.style == "string" ? n.date[h.style] :
|
|
3713
|
+
if (ir(h)) {
|
|
3714
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Je(h.style) ? h.style.parsedOptions : void 0;
|
|
3736
3715
|
a.push({
|
|
3737
3716
|
type: C.literal,
|
|
3738
3717
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3739
3718
|
});
|
|
3740
3719
|
continue;
|
|
3741
3720
|
}
|
|
3742
|
-
if (
|
|
3743
|
-
var d = typeof h.style == "string" ? n.time[h.style] :
|
|
3721
|
+
if (or(h)) {
|
|
3722
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Je(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3744
3723
|
a.push({
|
|
3745
3724
|
type: C.literal,
|
|
3746
3725
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3747
3726
|
});
|
|
3748
3727
|
continue;
|
|
3749
3728
|
}
|
|
3750
|
-
if (
|
|
3751
|
-
var d = typeof h.style == "string" ? n.number[h.style] :
|
|
3729
|
+
if (nr(h)) {
|
|
3730
|
+
var d = typeof h.style == "string" ? n.number[h.style] : lr(h.style) ? h.style.parsedOptions : void 0;
|
|
3752
3731
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
3753
3732
|
type: C.literal,
|
|
3754
3733
|
value: r.getNumberFormat(t, d).format(c)
|
|
3755
3734
|
});
|
|
3756
3735
|
continue;
|
|
3757
3736
|
}
|
|
3758
|
-
if (
|
|
3759
|
-
var b = h.children, g = h.value,
|
|
3760
|
-
if (!
|
|
3761
|
-
throw new
|
|
3762
|
-
var A = xe(b, t, r, n, i, o), _ =
|
|
3737
|
+
if (ur(h)) {
|
|
3738
|
+
var b = h.children, g = h.value, S = i[g];
|
|
3739
|
+
if (!vi(S))
|
|
3740
|
+
throw new di(g, "function", s);
|
|
3741
|
+
var A = xe(b, t, r, n, i, o), _ = S(A.map(function(w) {
|
|
3763
3742
|
return w.value;
|
|
3764
3743
|
}));
|
|
3765
3744
|
Array.isArray(_) || (_ = [_]), a.push.apply(a, _.map(function(w) {
|
|
@@ -3769,42 +3748,42 @@ function xe(e, t, r, n, i, o, s) {
|
|
|
3769
3748
|
};
|
|
3770
3749
|
}));
|
|
3771
3750
|
}
|
|
3772
|
-
if (
|
|
3773
|
-
var
|
|
3774
|
-
if (!
|
|
3775
|
-
throw new
|
|
3776
|
-
a.push.apply(a, xe(
|
|
3751
|
+
if (sr(h)) {
|
|
3752
|
+
var p = h.options[c] || h.options.other;
|
|
3753
|
+
if (!p)
|
|
3754
|
+
throw new At(h.value, c, Object.keys(h.options), s);
|
|
3755
|
+
a.push.apply(a, xe(p.value, t, r, n, i));
|
|
3777
3756
|
continue;
|
|
3778
3757
|
}
|
|
3779
|
-
if (
|
|
3780
|
-
var
|
|
3781
|
-
if (!
|
|
3758
|
+
if (ar(h)) {
|
|
3759
|
+
var p = h.options["=".concat(c)];
|
|
3760
|
+
if (!p) {
|
|
3782
3761
|
if (!Intl.PluralRules)
|
|
3783
|
-
throw new
|
|
3762
|
+
throw new Ne(`Intl.PluralRules is not available in this environment.
|
|
3784
3763
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3785
|
-
`,
|
|
3786
|
-
var
|
|
3787
|
-
|
|
3764
|
+
`, oe.MISSING_INTL_API, s);
|
|
3765
|
+
var B = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3766
|
+
p = h.options[B] || h.options.other;
|
|
3788
3767
|
}
|
|
3789
|
-
if (!
|
|
3790
|
-
throw new
|
|
3791
|
-
a.push.apply(a, xe(
|
|
3768
|
+
if (!p)
|
|
3769
|
+
throw new At(h.value, c, Object.keys(h.options), s);
|
|
3770
|
+
a.push.apply(a, xe(p.value, t, r, n, i, c - (h.offset || 0)));
|
|
3792
3771
|
continue;
|
|
3793
3772
|
}
|
|
3794
3773
|
}
|
|
3795
|
-
return
|
|
3774
|
+
return gi(a);
|
|
3796
3775
|
}
|
|
3797
|
-
function
|
|
3798
|
-
return t ?
|
|
3799
|
-
return r[n] =
|
|
3776
|
+
function yi(e, t) {
|
|
3777
|
+
return t ? T(T(T({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3778
|
+
return r[n] = T(T({}, e[n]), t[n] || {}), r;
|
|
3800
3779
|
}, {})) : e;
|
|
3801
3780
|
}
|
|
3802
|
-
function
|
|
3781
|
+
function _i(e, t) {
|
|
3803
3782
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3804
|
-
return r[n] =
|
|
3805
|
-
},
|
|
3783
|
+
return r[n] = yi(e[n], t[n]), r;
|
|
3784
|
+
}, T({}, e)) : e;
|
|
3806
3785
|
}
|
|
3807
|
-
function
|
|
3786
|
+
function De(e) {
|
|
3808
3787
|
return {
|
|
3809
3788
|
create: function() {
|
|
3810
3789
|
return {
|
|
@@ -3818,39 +3797,39 @@ function je(e) {
|
|
|
3818
3797
|
}
|
|
3819
3798
|
};
|
|
3820
3799
|
}
|
|
3821
|
-
function
|
|
3800
|
+
function Ei(e) {
|
|
3822
3801
|
return e === void 0 && (e = {
|
|
3823
3802
|
number: {},
|
|
3824
3803
|
dateTime: {},
|
|
3825
3804
|
pluralRules: {}
|
|
3826
3805
|
}), {
|
|
3827
|
-
getNumberFormat:
|
|
3806
|
+
getNumberFormat: Ge(function() {
|
|
3828
3807
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3829
3808
|
r[n] = arguments[n];
|
|
3830
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3809
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, re([void 0], r, !1)))();
|
|
3831
3810
|
}, {
|
|
3832
|
-
cache:
|
|
3833
|
-
strategy:
|
|
3811
|
+
cache: De(e.number),
|
|
3812
|
+
strategy: $e.variadic
|
|
3834
3813
|
}),
|
|
3835
|
-
getDateTimeFormat:
|
|
3814
|
+
getDateTimeFormat: Ge(function() {
|
|
3836
3815
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3837
3816
|
r[n] = arguments[n];
|
|
3838
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3817
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, re([void 0], r, !1)))();
|
|
3839
3818
|
}, {
|
|
3840
|
-
cache:
|
|
3841
|
-
strategy:
|
|
3819
|
+
cache: De(e.dateTime),
|
|
3820
|
+
strategy: $e.variadic
|
|
3842
3821
|
}),
|
|
3843
|
-
getPluralRules:
|
|
3822
|
+
getPluralRules: Ge(function() {
|
|
3844
3823
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3845
3824
|
r[n] = arguments[n];
|
|
3846
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3825
|
+
return new ((t = Intl.PluralRules).bind.apply(t, re([void 0], r, !1)))();
|
|
3847
3826
|
}, {
|
|
3848
|
-
cache:
|
|
3849
|
-
strategy:
|
|
3827
|
+
cache: De(e.pluralRules),
|
|
3828
|
+
strategy: $e.variadic
|
|
3850
3829
|
})
|
|
3851
3830
|
};
|
|
3852
3831
|
}
|
|
3853
|
-
var
|
|
3832
|
+
var xi = (
|
|
3854
3833
|
/** @class */
|
|
3855
3834
|
function() {
|
|
3856
3835
|
function e(t, r, n, i) {
|
|
@@ -3882,13 +3861,13 @@ var Ti = (
|
|
|
3882
3861
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3883
3862
|
var s = i || {};
|
|
3884
3863
|
s.formatters;
|
|
3885
|
-
var a =
|
|
3886
|
-
this.ast = e.__parse(t,
|
|
3864
|
+
var a = en(s, ["formatters"]);
|
|
3865
|
+
this.ast = e.__parse(t, T(T({}, a), { locale: this.resolvedLocale }));
|
|
3887
3866
|
} else
|
|
3888
3867
|
this.ast = t;
|
|
3889
3868
|
if (!Array.isArray(this.ast))
|
|
3890
3869
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3891
|
-
this.formats =
|
|
3870
|
+
this.formats = _i(e.formats, n), this.formatters = i && i.formatters || Ei(this.formatterCache);
|
|
3892
3871
|
}
|
|
3893
3872
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3894
3873
|
get: function() {
|
|
@@ -3901,7 +3880,7 @@ var Ti = (
|
|
|
3901
3880
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3902
3881
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3903
3882
|
}
|
|
3904
|
-
}, e.__parse =
|
|
3883
|
+
}, e.__parse = pi, e.formats = {
|
|
3905
3884
|
number: {
|
|
3906
3885
|
integer: {
|
|
3907
3886
|
maximumFractionDigits: 0
|
|
@@ -3962,7 +3941,7 @@ var Ti = (
|
|
|
3962
3941
|
}, e;
|
|
3963
3942
|
}()
|
|
3964
3943
|
);
|
|
3965
|
-
function
|
|
3944
|
+
function wi(e, t) {
|
|
3966
3945
|
if (t == null)
|
|
3967
3946
|
return;
|
|
3968
3947
|
if (t in e)
|
|
@@ -3983,92 +3962,92 @@ function Si(e, t) {
|
|
|
3983
3962
|
n = void 0;
|
|
3984
3963
|
return n;
|
|
3985
3964
|
}
|
|
3986
|
-
const X = {},
|
|
3965
|
+
const X = {}, Ti = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][e] = r), r), gr = (e, t) => {
|
|
3987
3966
|
if (t == null)
|
|
3988
3967
|
return;
|
|
3989
3968
|
if (t in X && e in X[t])
|
|
3990
3969
|
return X[t][e];
|
|
3991
|
-
const r =
|
|
3970
|
+
const r = Ce(t);
|
|
3992
3971
|
for (let n = 0; n < r.length; n++) {
|
|
3993
|
-
const i = r[n], o =
|
|
3972
|
+
const i = r[n], o = Hi(i, e);
|
|
3994
3973
|
if (o)
|
|
3995
|
-
return
|
|
3974
|
+
return Ti(e, t, o);
|
|
3996
3975
|
}
|
|
3997
3976
|
};
|
|
3998
|
-
let
|
|
3999
|
-
const
|
|
4000
|
-
function
|
|
4001
|
-
return
|
|
3977
|
+
let at;
|
|
3978
|
+
const le = Oe({});
|
|
3979
|
+
function Si(e) {
|
|
3980
|
+
return at[e] || null;
|
|
4002
3981
|
}
|
|
4003
|
-
function
|
|
4004
|
-
return e in
|
|
3982
|
+
function vr(e) {
|
|
3983
|
+
return e in at;
|
|
4005
3984
|
}
|
|
4006
|
-
function
|
|
4007
|
-
if (!
|
|
3985
|
+
function Hi(e, t) {
|
|
3986
|
+
if (!vr(e))
|
|
4008
3987
|
return null;
|
|
4009
|
-
const r =
|
|
4010
|
-
return
|
|
3988
|
+
const r = Si(e);
|
|
3989
|
+
return wi(r, t);
|
|
4011
3990
|
}
|
|
4012
|
-
function
|
|
3991
|
+
function Bi(e) {
|
|
4013
3992
|
if (e == null)
|
|
4014
3993
|
return;
|
|
4015
|
-
const t =
|
|
3994
|
+
const t = Ce(e);
|
|
4016
3995
|
for (let r = 0; r < t.length; r++) {
|
|
4017
3996
|
const n = t[r];
|
|
4018
|
-
if (
|
|
3997
|
+
if (vr(n))
|
|
4019
3998
|
return n;
|
|
4020
3999
|
}
|
|
4021
4000
|
}
|
|
4022
|
-
function
|
|
4023
|
-
delete X[e],
|
|
4001
|
+
function yr(e, ...t) {
|
|
4002
|
+
delete X[e], le.update((r) => (r[e] = Cn.all([r[e] || {}, ...t]), r));
|
|
4024
4003
|
}
|
|
4025
|
-
|
|
4026
|
-
[
|
|
4004
|
+
ue(
|
|
4005
|
+
[le],
|
|
4027
4006
|
([e]) => Object.keys(e)
|
|
4028
4007
|
);
|
|
4029
|
-
|
|
4008
|
+
le.subscribe((e) => at = e);
|
|
4030
4009
|
const we = {};
|
|
4031
|
-
function
|
|
4010
|
+
function Pi(e, t) {
|
|
4032
4011
|
we[e].delete(t), we[e].size === 0 && delete we[e];
|
|
4033
4012
|
}
|
|
4034
|
-
function
|
|
4013
|
+
function _r(e) {
|
|
4035
4014
|
return we[e];
|
|
4036
4015
|
}
|
|
4037
|
-
function
|
|
4038
|
-
return
|
|
4039
|
-
const r =
|
|
4016
|
+
function Ai(e) {
|
|
4017
|
+
return Ce(e).map((t) => {
|
|
4018
|
+
const r = _r(t);
|
|
4040
4019
|
return [t, r ? [...r] : []];
|
|
4041
4020
|
}).filter(([, t]) => t.length > 0);
|
|
4042
4021
|
}
|
|
4043
|
-
function
|
|
4044
|
-
return e == null ? !1 :
|
|
4022
|
+
function rt(e) {
|
|
4023
|
+
return e == null ? !1 : Ce(e).some(
|
|
4045
4024
|
(t) => {
|
|
4046
4025
|
var r;
|
|
4047
|
-
return (r =
|
|
4026
|
+
return (r = _r(t)) == null ? void 0 : r.size;
|
|
4048
4027
|
}
|
|
4049
4028
|
);
|
|
4050
4029
|
}
|
|
4051
|
-
function
|
|
4030
|
+
function Oi(e, t) {
|
|
4052
4031
|
return Promise.all(
|
|
4053
|
-
t.map((n) => (
|
|
4054
|
-
).then((n) =>
|
|
4055
|
-
}
|
|
4056
|
-
const
|
|
4057
|
-
function
|
|
4058
|
-
if (!
|
|
4059
|
-
return e in
|
|
4060
|
-
const t =
|
|
4061
|
-
return
|
|
4032
|
+
t.map((n) => (Pi(e, n), n().then((i) => i.default || i)))
|
|
4033
|
+
).then((n) => yr(e, ...n));
|
|
4034
|
+
}
|
|
4035
|
+
const ce = {};
|
|
4036
|
+
function Er(e) {
|
|
4037
|
+
if (!rt(e))
|
|
4038
|
+
return e in ce ? ce[e] : Promise.resolve();
|
|
4039
|
+
const t = Ai(e);
|
|
4040
|
+
return ce[e] = Promise.all(
|
|
4062
4041
|
t.map(
|
|
4063
|
-
([r, n]) =>
|
|
4042
|
+
([r, n]) => Oi(r, n)
|
|
4064
4043
|
)
|
|
4065
4044
|
).then(() => {
|
|
4066
|
-
if (
|
|
4067
|
-
return
|
|
4068
|
-
delete
|
|
4069
|
-
}),
|
|
4045
|
+
if (rt(e))
|
|
4046
|
+
return Er(e);
|
|
4047
|
+
delete ce[e];
|
|
4048
|
+
}), ce[e];
|
|
4070
4049
|
}
|
|
4071
|
-
const
|
|
4050
|
+
const Ni = {
|
|
4072
4051
|
number: {
|
|
4073
4052
|
scientific: { notation: "scientific" },
|
|
4074
4053
|
engineering: { notation: "engineering" },
|
|
@@ -4097,135 +4076,135 @@ const Ii = {
|
|
|
4097
4076
|
timeZoneName: "short"
|
|
4098
4077
|
}
|
|
4099
4078
|
}
|
|
4100
|
-
},
|
|
4079
|
+
}, Ci = {
|
|
4101
4080
|
fallbackLocale: null,
|
|
4102
4081
|
loadingDelay: 200,
|
|
4103
|
-
formats:
|
|
4082
|
+
formats: Ni,
|
|
4104
4083
|
warnOnMissingMessages: !0,
|
|
4105
4084
|
handleMissingMessage: void 0,
|
|
4106
4085
|
ignoreTag: !0
|
|
4107
|
-
},
|
|
4108
|
-
function
|
|
4109
|
-
return
|
|
4086
|
+
}, Ii = Ci;
|
|
4087
|
+
function se() {
|
|
4088
|
+
return Ii;
|
|
4110
4089
|
}
|
|
4111
|
-
const
|
|
4112
|
-
var
|
|
4090
|
+
const Fe = Oe(!1);
|
|
4091
|
+
var Li = Object.defineProperty, Mi = Object.defineProperties, Ri = Object.getOwnPropertyDescriptors, Ot = Object.getOwnPropertySymbols, Gi = Object.prototype.hasOwnProperty, $i = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? Li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ui = (e, t) => {
|
|
4113
4092
|
for (var r in t || (t = {}))
|
|
4114
|
-
|
|
4115
|
-
if (
|
|
4116
|
-
for (var r of
|
|
4117
|
-
|
|
4093
|
+
Gi.call(t, r) && Nt(e, r, t[r]);
|
|
4094
|
+
if (Ot)
|
|
4095
|
+
for (var r of Ot(t))
|
|
4096
|
+
$i.call(t, r) && Nt(e, r, t[r]);
|
|
4118
4097
|
return e;
|
|
4119
|
-
},
|
|
4120
|
-
let
|
|
4121
|
-
const
|
|
4122
|
-
function
|
|
4098
|
+
}, Di = (e, t) => Mi(e, Ri(t));
|
|
4099
|
+
let nt;
|
|
4100
|
+
const He = Oe(null);
|
|
4101
|
+
function Ct(e) {
|
|
4123
4102
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4124
4103
|
}
|
|
4125
|
-
function
|
|
4126
|
-
const r =
|
|
4127
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4104
|
+
function Ce(e, t = se().fallbackLocale) {
|
|
4105
|
+
const r = Ct(e);
|
|
4106
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ct(t)])] : r;
|
|
4128
4107
|
}
|
|
4129
4108
|
function J() {
|
|
4130
|
-
return
|
|
4109
|
+
return nt ?? void 0;
|
|
4131
4110
|
}
|
|
4132
|
-
|
|
4133
|
-
|
|
4111
|
+
He.subscribe((e) => {
|
|
4112
|
+
nt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4134
4113
|
});
|
|
4135
|
-
const
|
|
4136
|
-
if (e &&
|
|
4137
|
-
const { loadingDelay: t } =
|
|
4114
|
+
const Fi = (e) => {
|
|
4115
|
+
if (e && Bi(e) && rt(e)) {
|
|
4116
|
+
const { loadingDelay: t } = se();
|
|
4138
4117
|
let r;
|
|
4139
4118
|
return typeof window < "u" && J() != null && t ? r = window.setTimeout(
|
|
4140
|
-
() =>
|
|
4119
|
+
() => Fe.set(!0),
|
|
4141
4120
|
t
|
|
4142
|
-
) :
|
|
4143
|
-
|
|
4121
|
+
) : Fe.set(!0), Er(e).then(() => {
|
|
4122
|
+
He.set(e);
|
|
4144
4123
|
}).finally(() => {
|
|
4145
|
-
clearTimeout(r),
|
|
4124
|
+
clearTimeout(r), Fe.set(!1);
|
|
4146
4125
|
});
|
|
4147
4126
|
}
|
|
4148
|
-
return
|
|
4149
|
-
}, z =
|
|
4150
|
-
set:
|
|
4151
|
-
}),
|
|
4127
|
+
return He.set(e);
|
|
4128
|
+
}, z = Di(Ui({}, He), {
|
|
4129
|
+
set: Fi
|
|
4130
|
+
}), Ie = (e) => {
|
|
4152
4131
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4153
4132
|
return (n) => {
|
|
4154
4133
|
const i = JSON.stringify(n);
|
|
4155
4134
|
return i in t ? t[i] : t[i] = e(n);
|
|
4156
4135
|
};
|
|
4157
4136
|
};
|
|
4158
|
-
var
|
|
4137
|
+
var ji = Object.defineProperty, Be = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, wr = Object.prototype.propertyIsEnumerable, It = (e, t, r) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ut = (e, t) => {
|
|
4159
4138
|
for (var r in t || (t = {}))
|
|
4160
|
-
|
|
4139
|
+
xr.call(t, r) && It(e, r, t[r]);
|
|
4161
4140
|
if (Be)
|
|
4162
4141
|
for (var r of Be(t))
|
|
4163
|
-
|
|
4142
|
+
wr.call(t, r) && It(e, r, t[r]);
|
|
4164
4143
|
return e;
|
|
4165
|
-
},
|
|
4144
|
+
}, he = (e, t) => {
|
|
4166
4145
|
var r = {};
|
|
4167
4146
|
for (var n in e)
|
|
4168
|
-
|
|
4147
|
+
xr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4169
4148
|
if (e != null && Be)
|
|
4170
4149
|
for (var n of Be(e))
|
|
4171
|
-
t.indexOf(n) < 0 &&
|
|
4150
|
+
t.indexOf(n) < 0 && wr.call(e, n) && (r[n] = e[n]);
|
|
4172
4151
|
return r;
|
|
4173
4152
|
};
|
|
4174
|
-
const
|
|
4175
|
-
const { formats: r } =
|
|
4153
|
+
const de = (e, t) => {
|
|
4154
|
+
const { formats: r } = se();
|
|
4176
4155
|
if (e in r && t in r[e])
|
|
4177
4156
|
return r[e][t];
|
|
4178
4157
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4179
|
-
},
|
|
4158
|
+
}, ki = Ie(
|
|
4180
4159
|
(e) => {
|
|
4181
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4160
|
+
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
|
4182
4161
|
if (r == null)
|
|
4183
4162
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4184
|
-
return n && (i =
|
|
4163
|
+
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
4185
4164
|
}
|
|
4186
|
-
),
|
|
4165
|
+
), Vi = Ie(
|
|
4187
4166
|
(e) => {
|
|
4188
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4167
|
+
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
|
4189
4168
|
if (r == null)
|
|
4190
4169
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4191
|
-
return n ? i =
|
|
4170
|
+
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4192
4171
|
}
|
|
4193
|
-
),
|
|
4172
|
+
), Xi = Ie(
|
|
4194
4173
|
(e) => {
|
|
4195
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4174
|
+
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
|
4196
4175
|
if (r == null)
|
|
4197
4176
|
throw new Error(
|
|
4198
4177
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4199
4178
|
);
|
|
4200
|
-
return n ? i =
|
|
4179
|
+
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4201
4180
|
}
|
|
4202
|
-
),
|
|
4181
|
+
), Wi = (e = {}) => {
|
|
4203
4182
|
var t = e, {
|
|
4204
4183
|
locale: r = J()
|
|
4205
|
-
} = t, n =
|
|
4184
|
+
} = t, n = he(t, [
|
|
4206
4185
|
"locale"
|
|
4207
4186
|
]);
|
|
4208
|
-
return
|
|
4209
|
-
},
|
|
4187
|
+
return ki(ut({ locale: r }, n));
|
|
4188
|
+
}, zi = (e = {}) => {
|
|
4210
4189
|
var t = e, {
|
|
4211
4190
|
locale: r = J()
|
|
4212
|
-
} = t, n =
|
|
4191
|
+
} = t, n = he(t, [
|
|
4213
4192
|
"locale"
|
|
4214
4193
|
]);
|
|
4215
|
-
return
|
|
4216
|
-
},
|
|
4194
|
+
return Vi(ut({ locale: r }, n));
|
|
4195
|
+
}, Zi = (e = {}) => {
|
|
4217
4196
|
var t = e, {
|
|
4218
4197
|
locale: r = J()
|
|
4219
|
-
} = t, n =
|
|
4198
|
+
} = t, n = he(t, [
|
|
4220
4199
|
"locale"
|
|
4221
4200
|
]);
|
|
4222
|
-
return
|
|
4223
|
-
},
|
|
4201
|
+
return Xi(ut({ locale: r }, n));
|
|
4202
|
+
}, Qi = Ie(
|
|
4224
4203
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4225
|
-
(e, t = J()) => new
|
|
4226
|
-
ignoreTag:
|
|
4204
|
+
(e, t = J()) => new xi(e, t, se().formats, {
|
|
4205
|
+
ignoreTag: se().ignoreTag
|
|
4227
4206
|
})
|
|
4228
|
-
),
|
|
4207
|
+
), Ji = (e, t = {}) => {
|
|
4229
4208
|
var r, n, i, o;
|
|
4230
4209
|
let s = t;
|
|
4231
4210
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4238,9 +4217,9 @@ const me = (e, t) => {
|
|
|
4238
4217
|
throw new Error(
|
|
4239
4218
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4240
4219
|
);
|
|
4241
|
-
let h =
|
|
4220
|
+
let h = gr(e, l);
|
|
4242
4221
|
if (!h)
|
|
4243
|
-
h = (o = (i = (n = (r =
|
|
4222
|
+
h = (o = (i = (n = (r = se()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4244
4223
|
else if (typeof h != "string")
|
|
4245
4224
|
return console.warn(
|
|
4246
4225
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4249,7 +4228,7 @@ const me = (e, t) => {
|
|
|
4249
4228
|
return h;
|
|
4250
4229
|
let f = h;
|
|
4251
4230
|
try {
|
|
4252
|
-
f =
|
|
4231
|
+
f = Qi(h, l).format(a);
|
|
4253
4232
|
} catch (c) {
|
|
4254
4233
|
c instanceof Error && console.warn(
|
|
4255
4234
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4257,26 +4236,26 @@ const me = (e, t) => {
|
|
|
4257
4236
|
);
|
|
4258
4237
|
}
|
|
4259
4238
|
return f;
|
|
4260
|
-
},
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4239
|
+
}, qi = (e, t) => Zi(t).format(e), Yi = (e, t) => zi(t).format(e), Ki = (e, t) => Wi(t).format(e), eo = (e, t = J()) => gr(e, t), to = ue([z, le], () => Ji);
|
|
4240
|
+
ue([z], () => qi);
|
|
4241
|
+
ue([z], () => Yi);
|
|
4242
|
+
ue([z], () => Ki);
|
|
4243
|
+
ue([z, le], () => eo);
|
|
4265
4244
|
window.emWidgets = { topic: dn };
|
|
4266
|
-
const
|
|
4245
|
+
const ro = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4267
4246
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4268
|
-
function
|
|
4247
|
+
function no({ withLocale: e, translations: t }) {
|
|
4269
4248
|
z.subscribe((r) => {
|
|
4270
|
-
r == null && (
|
|
4249
|
+
r == null && (le.set(t), z.set(e));
|
|
4271
4250
|
});
|
|
4272
4251
|
}
|
|
4273
|
-
function
|
|
4274
|
-
|
|
4252
|
+
function Lt(e, t) {
|
|
4253
|
+
yr(e, t);
|
|
4275
4254
|
}
|
|
4276
|
-
function
|
|
4255
|
+
function io(e) {
|
|
4277
4256
|
z.set(e);
|
|
4278
4257
|
}
|
|
4279
|
-
const
|
|
4258
|
+
const Mt = {
|
|
4280
4259
|
en: {
|
|
4281
4260
|
loading: "Loading, please wait ...",
|
|
4282
4261
|
playNow: "Play Now",
|
|
@@ -4287,22 +4266,22 @@ const Gt = {
|
|
|
4287
4266
|
noMoreGames: "No more games"
|
|
4288
4267
|
}
|
|
4289
4268
|
};
|
|
4290
|
-
function
|
|
4291
|
-
|
|
4269
|
+
function oo(e) {
|
|
4270
|
+
Or(e, "svelte-h1f7fe", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.hidden{display:none}.GamesWrapper .items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px);flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.GamesWrapper .item{height:100px;margin:0 4px;display:flex;justify-content:center;align-items:center}.GamesWrapper .item ui-image img{width:135px}.GamesWrapper .PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:var(--emw--font-size-medium, 0.7rem);cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.GamesWrapper .PlayNowButton:hover{opacity:0.8}.GamesWrapper .NoGames,.GamesWrapper .LoadingGames,.GamesWrapper .SportsPage{color:var(--emw--color-gray-100, #B5B5B5);font-size:var(--emw--font-size-small, 12px);padding:30px 30px}.GamesWrapper .NoGames .LoadingGames{margin-top:var(--emw--spacing-medium, 20px)}.GamesWrapper .SportsPage .Market{margin-top:var(--emw--spacing-medium, 20px);font-size:var(--emw--font-size-small, 12px)}.TournamentsPaginationControlsArea{clear:both;margin-top:30px;display:flex;justify-content:center;width:100%}.TournamentsPaginationControlsArea.SinglePage{display:none}.TournamentsPaginationControls{background:var(--emw--color-green, transparent);width:60%;height:35px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px;cursor:pointer;width:190px}.TournamentsPaginationControls.Disabled{color:var(--emw--color-gray-100, #B5B5B5);border-color:var(--emw--color-gray-100, #B5B5B5);opacity:50%;cursor:default}.TournamentsPaginationControlsArea{justify-content:center;gap:30px}.TournamentsPaginationControlsArea .TournamentsPaginationControls{align-items:center}.TournamentsPaginationControlsArea .TournamentsPaginationControlsText{font-size:var(--emw--size-standard, 16px)}.GamesTabNav{max-width:500px;min-width:300px;width:30%}.MobileClass .GamesTabNav{width:100%}.MobileClass .GamesWrapper .GameList.items{max-height:calc(100vh - 350px);overflow-y:auto}");
|
|
4292
4271
|
}
|
|
4293
|
-
function
|
|
4272
|
+
function Rt(e, t, r) {
|
|
4294
4273
|
const n = e.slice();
|
|
4295
4274
|
return n[32] = t[r], n;
|
|
4296
4275
|
}
|
|
4297
|
-
function
|
|
4276
|
+
function Gt(e, t, r) {
|
|
4298
4277
|
const n = e.slice();
|
|
4299
4278
|
return n[32] = t[r], n[36] = r, n;
|
|
4300
4279
|
}
|
|
4301
|
-
function
|
|
4280
|
+
function $t(e) {
|
|
4302
4281
|
let t, r;
|
|
4303
4282
|
return {
|
|
4304
4283
|
c() {
|
|
4305
|
-
t =
|
|
4284
|
+
t = P("div"), r = P("casino-tournaments-tab"), O(r, "part", "TournamentGames"), O(r, "tabs", "casino,sports"), O(r, "tab", "casino"), O(r, "tid", it), O(
|
|
4306
4285
|
r,
|
|
4307
4286
|
"clientstyling",
|
|
4308
4287
|
/*clientstyling*/
|
|
@@ -4320,7 +4299,7 @@ function Dt(e) {
|
|
|
4320
4299
|
), v(t, "class", "GamesTabNav");
|
|
4321
4300
|
},
|
|
4322
4301
|
m(n, i) {
|
|
4323
|
-
|
|
4302
|
+
D(n, t, i), x(t, r);
|
|
4324
4303
|
},
|
|
4325
4304
|
p(n, i) {
|
|
4326
4305
|
i[0] & /*clientstyling*/
|
|
@@ -4348,17 +4327,17 @@ function Dt(e) {
|
|
|
4348
4327
|
}
|
|
4349
4328
|
};
|
|
4350
4329
|
}
|
|
4351
|
-
function
|
|
4330
|
+
function so(e) {
|
|
4352
4331
|
let t, r = (
|
|
4353
4332
|
/*$_*/
|
|
4354
4333
|
e[13]("noGamesAvailable") + ""
|
|
4355
4334
|
), n;
|
|
4356
4335
|
return {
|
|
4357
4336
|
c() {
|
|
4358
|
-
t =
|
|
4337
|
+
t = P("div"), n = U(r), v(t, "class", "NoGames");
|
|
4359
4338
|
},
|
|
4360
4339
|
m(i, o) {
|
|
4361
|
-
|
|
4340
|
+
D(i, t, o), x(t, n);
|
|
4362
4341
|
},
|
|
4363
4342
|
p(i, o) {
|
|
4364
4343
|
o[0] & /*$_*/
|
|
@@ -4370,17 +4349,17 @@ function uo(e) {
|
|
|
4370
4349
|
}
|
|
4371
4350
|
};
|
|
4372
4351
|
}
|
|
4373
|
-
function
|
|
4352
|
+
function ao(e) {
|
|
4374
4353
|
let t, r = (
|
|
4375
4354
|
/*$_*/
|
|
4376
4355
|
e[13]("noMoreGames") + ""
|
|
4377
4356
|
), n;
|
|
4378
4357
|
return {
|
|
4379
4358
|
c() {
|
|
4380
|
-
t =
|
|
4359
|
+
t = P("div"), n = U(r), v(t, "class", "NoGames");
|
|
4381
4360
|
},
|
|
4382
4361
|
m(i, o) {
|
|
4383
|
-
|
|
4362
|
+
D(i, t, o), x(t, n);
|
|
4384
4363
|
},
|
|
4385
4364
|
p(i, o) {
|
|
4386
4365
|
o[0] & /*$_*/
|
|
@@ -4392,17 +4371,17 @@ function lo(e) {
|
|
|
4392
4371
|
}
|
|
4393
4372
|
};
|
|
4394
4373
|
}
|
|
4395
|
-
function
|
|
4374
|
+
function uo(e) {
|
|
4396
4375
|
let t, r = (
|
|
4397
4376
|
/*$_*/
|
|
4398
4377
|
e[13]("loading") + ""
|
|
4399
4378
|
), n;
|
|
4400
4379
|
return {
|
|
4401
4380
|
c() {
|
|
4402
|
-
t =
|
|
4381
|
+
t = P("div"), n = U(r), v(t, "class", "LoadingGames");
|
|
4403
4382
|
},
|
|
4404
4383
|
m(i, o) {
|
|
4405
|
-
|
|
4384
|
+
D(i, t, o), x(t, n);
|
|
4406
4385
|
},
|
|
4407
4386
|
p(i, o) {
|
|
4408
4387
|
o[0] & /*$_*/
|
|
@@ -4414,23 +4393,23 @@ function ho(e) {
|
|
|
4414
4393
|
}
|
|
4415
4394
|
};
|
|
4416
4395
|
}
|
|
4417
|
-
function
|
|
4396
|
+
function lo(e) {
|
|
4418
4397
|
let t, r = Se(
|
|
4419
4398
|
/*casinoGames*/
|
|
4420
4399
|
e[8]
|
|
4421
4400
|
), n = [];
|
|
4422
4401
|
for (let i = 0; i < r.length; i += 1)
|
|
4423
|
-
n[i] =
|
|
4402
|
+
n[i] = Ut(Gt(e, r, i));
|
|
4424
4403
|
return {
|
|
4425
4404
|
c() {
|
|
4426
4405
|
for (let i = 0; i < n.length; i += 1)
|
|
4427
4406
|
n[i].c();
|
|
4428
|
-
t =
|
|
4407
|
+
t = Ir();
|
|
4429
4408
|
},
|
|
4430
4409
|
m(i, o) {
|
|
4431
4410
|
for (let s = 0; s < n.length; s += 1)
|
|
4432
4411
|
n[s] && n[s].m(i, o);
|
|
4433
|
-
|
|
4412
|
+
D(i, t, o);
|
|
4434
4413
|
},
|
|
4435
4414
|
p(i, o) {
|
|
4436
4415
|
if (o[0] & /*gameClicked, casinoGames, $_*/
|
|
@@ -4441,8 +4420,8 @@ function co(e) {
|
|
|
4441
4420
|
);
|
|
4442
4421
|
let s;
|
|
4443
4422
|
for (s = 0; s < r.length; s += 1) {
|
|
4444
|
-
const a =
|
|
4445
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4423
|
+
const a = Gt(i, r, s);
|
|
4424
|
+
n[s] ? n[s].p(a, o) : (n[s] = Ut(a), n[s].c(), n[s].m(t.parentNode, t));
|
|
4446
4425
|
}
|
|
4447
4426
|
for (; s < n.length; s += 1)
|
|
4448
4427
|
n[s].d(1);
|
|
@@ -4450,26 +4429,26 @@ function co(e) {
|
|
|
4450
4429
|
}
|
|
4451
4430
|
},
|
|
4452
4431
|
d(i) {
|
|
4453
|
-
i && $(t),
|
|
4432
|
+
i && $(t), Vt(n, i);
|
|
4454
4433
|
}
|
|
4455
4434
|
};
|
|
4456
4435
|
}
|
|
4457
|
-
function
|
|
4436
|
+
function Ut(e) {
|
|
4458
4437
|
let t, r, n = (
|
|
4459
4438
|
/*$_*/
|
|
4460
4439
|
e[13]("playNow") + ""
|
|
4461
4440
|
), i, o, s, a, l, u, h, f, c;
|
|
4462
4441
|
return {
|
|
4463
4442
|
c() {
|
|
4464
|
-
t =
|
|
4443
|
+
t = P("div"), r = P("span"), i = U(n), o = F(), s = P("ui-image"), h = F(), v(r, "class", "PlayNowButton"), ft(s.src, a = /*item*/
|
|
4465
4444
|
e[32].thumbnail) || O(s, "src", a), O(s, "width", "132px"), O(s, "height", "100px"), O(s, "alt", l = /*item*/
|
|
4466
4445
|
e[32].name), O(s, "title", u = /*item*/
|
|
4467
4446
|
e[32].name), v(t, "class", "item"), v(t, "id", "g_" + /*idx*/
|
|
4468
4447
|
e[36]), v(t, "role", "button"), v(t, "tabindex", "0");
|
|
4469
4448
|
},
|
|
4470
4449
|
m(d, b) {
|
|
4471
|
-
|
|
4472
|
-
|
|
4450
|
+
D(d, t, b), x(t, r), x(r, i), x(t, o), x(t, s), x(t, h), f || (c = je(t, "click", function() {
|
|
4451
|
+
Pe(
|
|
4473
4452
|
/*gameClicked*/
|
|
4474
4453
|
e[15](
|
|
4475
4454
|
/*item*/
|
|
@@ -4485,7 +4464,7 @@ function Ft(e) {
|
|
|
4485
4464
|
e = d, b[0] & /*$_*/
|
|
4486
4465
|
8192 && n !== (n = /*$_*/
|
|
4487
4466
|
e[13]("playNow") + "") && W(i, n), b[0] & /*casinoGames*/
|
|
4488
|
-
256 && !
|
|
4467
|
+
256 && !ft(s.src, a = /*item*/
|
|
4489
4468
|
e[32].thumbnail) && O(s, "src", a), b[0] & /*casinoGames*/
|
|
4490
4469
|
256 && l !== (l = /*item*/
|
|
4491
4470
|
e[32].name) && O(s, "alt", l), b[0] & /*casinoGames*/
|
|
@@ -4497,35 +4476,35 @@ function Ft(e) {
|
|
|
4497
4476
|
}
|
|
4498
4477
|
};
|
|
4499
4478
|
}
|
|
4500
|
-
function
|
|
4479
|
+
function ho(e) {
|
|
4501
4480
|
let t, r, n, i, o, s, a, l = (
|
|
4502
4481
|
/*$_*/
|
|
4503
4482
|
e[13]("previous") + ""
|
|
4504
4483
|
), u, h, f, c, d, b, g = (
|
|
4505
4484
|
/*$_*/
|
|
4506
4485
|
e[13]("next") + ""
|
|
4507
|
-
),
|
|
4486
|
+
), S, A, _, p, B, w, I, M, V, q;
|
|
4508
4487
|
return {
|
|
4509
4488
|
c() {
|
|
4510
|
-
t =
|
|
4489
|
+
t = P("div"), r = P("button"), n = ge("svg"), i = ge("path"), s = F(), a = P("span"), u = U(l), c = F(), d = P("button"), b = P("span"), S = U(g), A = F(), _ = ge("svg"), p = ge("path"), v(i, "fill", o = /*hasPreviousPage*/
|
|
4511
4490
|
e[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), v(i, "class", "a"), v(i, "d", "M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"), v(i, "transform", "translate(19.246 -6.188) rotate(90)"), v(n, "xmlns", "http://www.w3.org/2000/svg"), v(n, "width", "8"), v(n, "height", "13.992"), v(n, "viewBox", "0 0 8 13.992"), v(a, "class", "TournamentsPaginationControlsText"), v(r, "class", h = "TournamentsButton TournamentsPaginationControls " + (/*hasPreviousPage*/
|
|
4512
4491
|
e[10] ? "" : "Disabled")), r.disabled = f = /*hasPreviousPage*/
|
|
4513
|
-
!e[10], v(b, "class", "TournamentsPaginationControlsText"), v(
|
|
4514
|
-
e[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), v(
|
|
4492
|
+
!e[10], v(b, "class", "TournamentsPaginationControlsText"), v(p, "fill", B = /*hasNextPage*/
|
|
4493
|
+
e[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), v(p, "class", "a"), v(p, "d", "M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"), v(p, "transform", "translate(-11.246 20.179) rotate(-90)"), v(_, "xmlns", "http://www.w3.org/2000/svg"), v(_, "width", "8"), v(_, "height", "13.992"), v(_, "viewBox", "0 0 8 13.992"), v(d, "class", w = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
|
|
4515
4494
|
e[11] ? "" : "Disabled")), d.disabled = I = /*hasNextPage*/
|
|
4516
4495
|
!e[11], v(t, "class", M = "TournamentsPaginationControlsArea " + (!/*hasPreviousPage*/
|
|
4517
4496
|
e[10] && !/*hasNextPage*/
|
|
4518
4497
|
e[11] ? "SinglePage" : ""));
|
|
4519
4498
|
},
|
|
4520
4499
|
m(N, L) {
|
|
4521
|
-
|
|
4522
|
-
|
|
4500
|
+
D(N, t, L), x(t, r), x(r, n), x(n, i), x(r, s), x(r, a), x(a, u), x(t, c), x(t, d), x(d, b), x(b, S), x(d, A), x(d, _), x(_, p), V || (q = [
|
|
4501
|
+
je(
|
|
4523
4502
|
r,
|
|
4524
4503
|
"click",
|
|
4525
4504
|
/*gotoPage*/
|
|
4526
4505
|
e[16].bind(this, -1)
|
|
4527
4506
|
),
|
|
4528
|
-
|
|
4507
|
+
je(
|
|
4529
4508
|
d,
|
|
4530
4509
|
"click",
|
|
4531
4510
|
/*gotoPage*/
|
|
@@ -4544,9 +4523,9 @@ function fo(e) {
|
|
|
4544
4523
|
1024 && f !== (f = /*hasPreviousPage*/
|
|
4545
4524
|
!N[10]) && (r.disabled = f), L[0] & /*$_*/
|
|
4546
4525
|
8192 && g !== (g = /*$_*/
|
|
4547
|
-
N[13]("next") + "") && W(
|
|
4548
|
-
2048 &&
|
|
4549
|
-
N[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && v(
|
|
4526
|
+
N[13]("next") + "") && W(S, g), L[0] & /*hasNextPage*/
|
|
4527
|
+
2048 && B !== (B = /*hasNextPage*/
|
|
4528
|
+
N[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && v(p, "fill", B), L[0] & /*hasNextPage*/
|
|
4550
4529
|
2048 && w !== (w = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
|
|
4551
4530
|
N[11] ? "" : "Disabled")) && v(d, "class", w), L[0] & /*hasNextPage*/
|
|
4552
4531
|
2048 && I !== (I = /*hasNextPage*/
|
|
@@ -4556,11 +4535,11 @@ function fo(e) {
|
|
|
4556
4535
|
N[11] ? "SinglePage" : "")) && v(t, "class", M);
|
|
4557
4536
|
},
|
|
4558
4537
|
d(N) {
|
|
4559
|
-
N && $(t), V = !1,
|
|
4538
|
+
N && $(t), V = !1, ae(q);
|
|
4560
4539
|
}
|
|
4561
4540
|
};
|
|
4562
4541
|
}
|
|
4563
|
-
function
|
|
4542
|
+
function Dt(e) {
|
|
4564
4543
|
let t, r = (
|
|
4565
4544
|
/*item*/
|
|
4566
4545
|
e[32].rule + ""
|
|
@@ -4570,10 +4549,10 @@ function jt(e) {
|
|
|
4570
4549
|
), s;
|
|
4571
4550
|
return {
|
|
4572
4551
|
c() {
|
|
4573
|
-
t =
|
|
4552
|
+
t = P("li"), n = U(r), i = F(), s = U(o), v(t, "part", "li"), v(t, "class", "Market");
|
|
4574
4553
|
},
|
|
4575
4554
|
m(a, l) {
|
|
4576
|
-
|
|
4555
|
+
D(a, t, l), x(t, n), x(t, i), x(t, s);
|
|
4577
4556
|
},
|
|
4578
4557
|
p(a, l) {
|
|
4579
4558
|
l[0] & /*sportsRules*/
|
|
@@ -4587,37 +4566,37 @@ function jt(e) {
|
|
|
4587
4566
|
}
|
|
4588
4567
|
};
|
|
4589
4568
|
}
|
|
4590
|
-
function
|
|
4569
|
+
function co(e) {
|
|
4591
4570
|
let t, r, n, i, o, s, a, l, u, h, f, c = (
|
|
4592
4571
|
/*tournamentdetails*/
|
|
4593
4572
|
e[3] && /*tournamentdetails*/
|
|
4594
4573
|
e[3].wallet?.sports && /*tournamentdetails*/
|
|
4595
|
-
e[3].wallet?.casino &&
|
|
4574
|
+
e[3].wallet?.casino && $t(e)
|
|
4596
4575
|
);
|
|
4597
|
-
function d(
|
|
4576
|
+
function d(p, B) {
|
|
4598
4577
|
return (
|
|
4599
4578
|
/*casinoGames*/
|
|
4600
|
-
|
|
4579
|
+
p[8]?.length ? lo : (
|
|
4601
4580
|
/*isLoadingGames*/
|
|
4602
|
-
|
|
4581
|
+
p[12] ? uo : (
|
|
4603
4582
|
/*noMoreGamesWhenPagination*/
|
|
4604
|
-
|
|
4583
|
+
p[9] ? ao : so
|
|
4605
4584
|
)
|
|
4606
4585
|
)
|
|
4607
4586
|
);
|
|
4608
4587
|
}
|
|
4609
|
-
let b = d(e), g = b(e),
|
|
4610
|
-
e[14] &&
|
|
4588
|
+
let b = d(e), g = b(e), S = !/*isMobileDevice*/
|
|
4589
|
+
e[14] && ho(e), A = Se(
|
|
4611
4590
|
/*sportsRules*/
|
|
4612
4591
|
e[7]
|
|
4613
4592
|
), _ = [];
|
|
4614
|
-
for (let
|
|
4615
|
-
_[
|
|
4593
|
+
for (let p = 0; p < A.length; p += 1)
|
|
4594
|
+
_[p] = Dt(Rt(e, A, p));
|
|
4616
4595
|
return {
|
|
4617
4596
|
c() {
|
|
4618
|
-
t =
|
|
4619
|
-
for (let
|
|
4620
|
-
_[
|
|
4597
|
+
t = P("div"), c && c.c(), r = F(), n = P("div"), i = P("div"), o = P("div"), g.c(), s = F(), S && S.c(), l = F(), u = P("div"), h = P("ul");
|
|
4598
|
+
for (let p = 0; p < _.length; p += 1)
|
|
4599
|
+
_[p].c();
|
|
4621
4600
|
v(o, "class", "GameList items"), v(i, "class", a = "TabContent GamesContent " + /*activeTab*/
|
|
4622
4601
|
(e[6] != "casino" ? "hidden" : "")), v(h, "class", "SportsPage"), v(u, "class", f = "TabContent GamesContent " + /*activeTab*/
|
|
4623
4602
|
(e[6] != "sports" ? "hidden" : "")), v(n, "class", "GamesWrapper"), v(
|
|
@@ -4627,65 +4606,65 @@ function po(e) {
|
|
|
4627
4606
|
e[14] ? "MobileClass" : ""
|
|
4628
4607
|
);
|
|
4629
4608
|
},
|
|
4630
|
-
m(
|
|
4631
|
-
|
|
4609
|
+
m(p, B) {
|
|
4610
|
+
D(p, t, B), c && c.m(t, null), x(t, r), x(t, n), x(n, i), x(i, o), g.m(o, null), e[19](o), x(i, s), S && S.m(i, null), x(n, l), x(n, u), x(u, h);
|
|
4632
4611
|
for (let w = 0; w < _.length; w += 1)
|
|
4633
4612
|
_[w] && _[w].m(h, null);
|
|
4634
4613
|
e[20](t);
|
|
4635
4614
|
},
|
|
4636
|
-
p(
|
|
4615
|
+
p(p, B) {
|
|
4637
4616
|
if (/*tournamentdetails*/
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4617
|
+
p[3] && /*tournamentdetails*/
|
|
4618
|
+
p[3].wallet?.sports && /*tournamentdetails*/
|
|
4619
|
+
p[3].wallet?.casino ? c ? c.p(p, B) : (c = $t(p), c.c(), c.m(t, r)) : c && (c.d(1), c = null), b === (b = d(p)) && g ? g.p(p, B) : (g.d(1), g = b(p), g && (g.c(), g.m(o, null))), /*isMobileDevice*/
|
|
4620
|
+
p[14] || S.p(p, B), B[0] & /*activeTab*/
|
|
4642
4621
|
64 && a !== (a = "TabContent GamesContent " + /*activeTab*/
|
|
4643
|
-
(
|
|
4622
|
+
(p[6] != "casino" ? "hidden" : "")) && v(i, "class", a), B[0] & /*$_, sportsRules*/
|
|
4644
4623
|
8320) {
|
|
4645
4624
|
A = Se(
|
|
4646
4625
|
/*sportsRules*/
|
|
4647
|
-
|
|
4626
|
+
p[7]
|
|
4648
4627
|
);
|
|
4649
4628
|
let w;
|
|
4650
4629
|
for (w = 0; w < A.length; w += 1) {
|
|
4651
|
-
const I =
|
|
4652
|
-
_[w] ? _[w].p(I,
|
|
4630
|
+
const I = Rt(p, A, w);
|
|
4631
|
+
_[w] ? _[w].p(I, B) : (_[w] = Dt(I), _[w].c(), _[w].m(h, null));
|
|
4653
4632
|
}
|
|
4654
4633
|
for (; w < _.length; w += 1)
|
|
4655
4634
|
_[w].d(1);
|
|
4656
4635
|
_.length = A.length;
|
|
4657
4636
|
}
|
|
4658
|
-
|
|
4637
|
+
B[0] & /*activeTab*/
|
|
4659
4638
|
64 && f !== (f = "TabContent GamesContent " + /*activeTab*/
|
|
4660
|
-
(
|
|
4639
|
+
(p[6] != "sports" ? "hidden" : "")) && v(u, "class", f);
|
|
4661
4640
|
},
|
|
4662
4641
|
i: G,
|
|
4663
4642
|
o: G,
|
|
4664
|
-
d(
|
|
4665
|
-
|
|
4643
|
+
d(p) {
|
|
4644
|
+
p && $(t), c && c.d(), g.d(), e[19](null), S && S.d(), Vt(_, p), e[20](null);
|
|
4666
4645
|
}
|
|
4667
4646
|
};
|
|
4668
4647
|
}
|
|
4669
|
-
let
|
|
4670
|
-
function
|
|
4648
|
+
let it = "gameTab";
|
|
4649
|
+
function fo(e, t, r) {
|
|
4671
4650
|
let n;
|
|
4672
|
-
|
|
4673
|
-
let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { translationurl: a } = t, { lang: l = "en" } = t, u = "casino", h = [], f = [], c, d = window.navigator.userAgent, b, g,
|
|
4674
|
-
|
|
4675
|
-
const
|
|
4676
|
-
fetch(a).then((
|
|
4677
|
-
Object.keys(
|
|
4678
|
-
|
|
4651
|
+
Ar(e, to, (m) => r(13, n = m));
|
|
4652
|
+
let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { translationurl: a } = t, { lang: l = "en" } = t, u = "casino", h = [], f = [], c, d = window.navigator.userAgent, b, g, S, A = ro(d), _ = !1;
|
|
4653
|
+
no({ withLocale: "en", translations: {} });
|
|
4654
|
+
const p = () => {
|
|
4655
|
+
fetch(a).then((m) => m.json()).then((m) => {
|
|
4656
|
+
Object.keys(m).forEach((R) => {
|
|
4657
|
+
Lt(R, m[R]);
|
|
4679
4658
|
});
|
|
4680
|
-
}).catch((
|
|
4681
|
-
console.log(
|
|
4659
|
+
}).catch((m) => {
|
|
4660
|
+
console.log(m);
|
|
4682
4661
|
});
|
|
4683
4662
|
};
|
|
4684
|
-
Object.keys(
|
|
4685
|
-
|
|
4663
|
+
Object.keys(Mt).forEach((m) => {
|
|
4664
|
+
Lt(m, Mt[m]);
|
|
4686
4665
|
});
|
|
4687
|
-
const
|
|
4688
|
-
|
|
4666
|
+
const B = () => {
|
|
4667
|
+
io(l), setTimeout(
|
|
4689
4668
|
() => {
|
|
4690
4669
|
w();
|
|
4691
4670
|
},
|
|
@@ -4702,66 +4681,66 @@ function mo(e, t, r) {
|
|
|
4702
4681
|
},
|
|
4703
4682
|
window.location.href
|
|
4704
4683
|
);
|
|
4705
|
-
}, I = (
|
|
4684
|
+
}, I = (m) => {
|
|
4706
4685
|
window.postMessage(
|
|
4707
4686
|
{
|
|
4708
4687
|
type: "TournamentGameAction",
|
|
4709
|
-
gameId:
|
|
4710
|
-
name:
|
|
4711
|
-
launchUrl:
|
|
4688
|
+
gameId: m.id,
|
|
4689
|
+
name: m.name,
|
|
4690
|
+
launchUrl: m.launchUrl
|
|
4712
4691
|
},
|
|
4713
4692
|
window.location.href
|
|
4714
4693
|
);
|
|
4715
4694
|
};
|
|
4716
4695
|
let M = !1, V = !1, q = !1;
|
|
4717
|
-
const N = (
|
|
4718
|
-
!M &&
|
|
4696
|
+
const N = (m) => {
|
|
4697
|
+
!M && m === -1 || !V && m === 1 || (r(12, q = !0), r(8, f = []), window.postMessage(
|
|
4719
4698
|
{
|
|
4720
4699
|
type: "TournamentsLoadMoreGames",
|
|
4721
4700
|
id: c.id,
|
|
4722
|
-
isNext:
|
|
4701
|
+
isNext: m > 0
|
|
4723
4702
|
},
|
|
4724
4703
|
window.location.href
|
|
4725
4704
|
));
|
|
4726
4705
|
}, L = () => {
|
|
4727
|
-
r(8, f = c.games?.items || []), r(9, _ = !1), r(10, M = !1), r(11, V = c.games?.total > c.games?.items.length),
|
|
4728
|
-
const
|
|
4729
|
-
if (
|
|
4706
|
+
r(8, f = c.games?.items || []), r(9, _ = !1), r(10, M = !1), r(11, V = c.games?.total > c.games?.items.length), ht();
|
|
4707
|
+
const m = c.metadata?.sports?.rules;
|
|
4708
|
+
if (m) {
|
|
4730
4709
|
r(6, u = c.wallet.casino ? "casino" : "sports");
|
|
4731
4710
|
try {
|
|
4732
|
-
const R = JSON.parse(
|
|
4711
|
+
const R = JSON.parse(m);
|
|
4733
4712
|
r(7, h = R[l] || R["*"]);
|
|
4734
4713
|
} catch (R) {
|
|
4735
4714
|
console.error("Error parsing tournament rules", R);
|
|
4736
4715
|
}
|
|
4737
4716
|
}
|
|
4738
|
-
},
|
|
4739
|
-
if (!
|
|
4717
|
+
}, lt = (m) => {
|
|
4718
|
+
if (!m.data || !m.data.type)
|
|
4740
4719
|
return;
|
|
4741
|
-
const R =
|
|
4742
|
-
switch (
|
|
4720
|
+
const R = m.data.tid || "";
|
|
4721
|
+
switch (m.data.type) {
|
|
4743
4722
|
case "TournamentsTabSwitch":
|
|
4744
|
-
R ===
|
|
4723
|
+
R === it && r(6, u = m.data.tab);
|
|
4745
4724
|
break;
|
|
4746
4725
|
case "TournamentsTabListenerLoaded":
|
|
4747
4726
|
w();
|
|
4748
4727
|
break;
|
|
4749
4728
|
case "TournamentsGamesUpdate":
|
|
4750
|
-
r(3, c =
|
|
4729
|
+
r(3, c = m.data.details), L();
|
|
4751
4730
|
break;
|
|
4752
4731
|
case "TournamentsLoadedMoreGames":
|
|
4753
|
-
A ?
|
|
4732
|
+
A ? m.data.games?.items.length && (r(8, f = [...f, ...m.data.games.items]), ht()) : (r(12, q = !1), r(8, f = [...m.data.games.items]), r(11, V = m.data.hasNextPage), r(10, M = m.data.hasPreviousPage), r(9, _ = !f.length));
|
|
4754
4733
|
break;
|
|
4755
4734
|
default:
|
|
4756
|
-
console.warn(`Unhandled message type: ${
|
|
4735
|
+
console.warn(`Unhandled message type: ${m.data.type}`);
|
|
4757
4736
|
break;
|
|
4758
4737
|
}
|
|
4759
4738
|
};
|
|
4760
4739
|
let Z;
|
|
4761
|
-
const
|
|
4762
|
-
Z =
|
|
4740
|
+
const Tr = (m) => {
|
|
4741
|
+
Z = m?.lastElementChild, !(!A || S || !m || !Z) && (S = new IntersectionObserver((R) => {
|
|
4763
4742
|
R.forEach((Br) => {
|
|
4764
|
-
Br.isIntersecting && (
|
|
4743
|
+
Br.isIntersecting && (S.unobserve(Z), window.postMessage(
|
|
4765
4744
|
{
|
|
4766
4745
|
type: "TournamentsLoadMoreGames",
|
|
4767
4746
|
id: c.id,
|
|
@@ -4771,39 +4750,39 @@ function mo(e, t, r) {
|
|
|
4771
4750
|
));
|
|
4772
4751
|
});
|
|
4773
4752
|
}));
|
|
4774
|
-
},
|
|
4775
|
-
!A || !Z || !
|
|
4753
|
+
}, ht = () => {
|
|
4754
|
+
!A || !Z || !S || !f.length || (S.unobserve(Z), Z = g.lastElementChild, S.observe(Z));
|
|
4776
4755
|
};
|
|
4777
|
-
|
|
4756
|
+
Gr(() => A && S && S.disconnect()), Rr(() => (window.postMessage(
|
|
4778
4757
|
{
|
|
4779
4758
|
type: "TournamentsGamesListenerLoaded",
|
|
4780
|
-
gamesTabTid:
|
|
4759
|
+
gamesTabTid: it
|
|
4781
4760
|
},
|
|
4782
4761
|
window.location.href
|
|
4783
|
-
), window.addEventListener("message",
|
|
4784
|
-
window.removeEventListener("message",
|
|
4762
|
+
), window.addEventListener("message", lt, !1), () => {
|
|
4763
|
+
window.removeEventListener("message", lt);
|
|
4785
4764
|
}));
|
|
4786
|
-
function
|
|
4787
|
-
Te[
|
|
4788
|
-
g =
|
|
4765
|
+
function Sr(m) {
|
|
4766
|
+
Te[m ? "unshift" : "push"](() => {
|
|
4767
|
+
g = m, r(5, g);
|
|
4789
4768
|
});
|
|
4790
4769
|
}
|
|
4791
|
-
function
|
|
4792
|
-
Te[
|
|
4793
|
-
b =
|
|
4770
|
+
function Hr(m) {
|
|
4771
|
+
Te[m ? "unshift" : "push"](() => {
|
|
4772
|
+
b = m, r(4, b);
|
|
4794
4773
|
});
|
|
4795
4774
|
}
|
|
4796
|
-
return e.$$set = (
|
|
4797
|
-
"clientstyling" in
|
|
4775
|
+
return e.$$set = (m) => {
|
|
4776
|
+
"clientstyling" in m && r(0, i = m.clientstyling), "clientstylingurl" in m && r(1, o = m.clientstylingurl), "mbsource" in m && r(2, s = m.mbsource), "translationurl" in m && r(17, a = m.translationurl), "lang" in m && r(18, l = m.lang);
|
|
4798
4777
|
}, e.$$.update = () => {
|
|
4799
4778
|
e.$$.dirty[0] & /*tournamentdetails*/
|
|
4800
4779
|
8 && c && L(), e.$$.dirty[0] & /*lang*/
|
|
4801
|
-
262144 && l &&
|
|
4802
|
-
131072 && a &&
|
|
4803
|
-
17 && i && b &&
|
|
4804
|
-
18 && o && b &&
|
|
4805
|
-
20 && s && b &&
|
|
4806
|
-
32 && g &&
|
|
4780
|
+
262144 && l && B(), e.$$.dirty[0] & /*translationurl*/
|
|
4781
|
+
131072 && a && p(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4782
|
+
17 && i && b && qr(b, i), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4783
|
+
18 && o && b && Yr(b, o), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4784
|
+
20 && s && b && Kr(b, `${s}.Style`), e.$$.dirty[0] & /*gameListEle*/
|
|
4785
|
+
32 && g && Tr(g);
|
|
4807
4786
|
}, [
|
|
4808
4787
|
i,
|
|
4809
4788
|
o,
|
|
@@ -4824,18 +4803,18 @@ function mo(e, t, r) {
|
|
|
4824
4803
|
N,
|
|
4825
4804
|
a,
|
|
4826
4805
|
l,
|
|
4827
|
-
|
|
4828
|
-
|
|
4806
|
+
Sr,
|
|
4807
|
+
Hr
|
|
4829
4808
|
];
|
|
4830
4809
|
}
|
|
4831
|
-
class
|
|
4810
|
+
class mo extends Qr {
|
|
4832
4811
|
constructor(t) {
|
|
4833
|
-
super(),
|
|
4812
|
+
super(), zr(
|
|
4834
4813
|
this,
|
|
4835
4814
|
t,
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4815
|
+
fo,
|
|
4816
|
+
co,
|
|
4817
|
+
jt,
|
|
4839
4818
|
{
|
|
4840
4819
|
clientstyling: 0,
|
|
4841
4820
|
clientstylingurl: 1,
|
|
@@ -4843,7 +4822,7 @@ class bo extends Jr {
|
|
|
4843
4822
|
translationurl: 17,
|
|
4844
4823
|
lang: 18
|
|
4845
4824
|
},
|
|
4846
|
-
|
|
4825
|
+
oo,
|
|
4847
4826
|
[-1, -1]
|
|
4848
4827
|
);
|
|
4849
4828
|
}
|
|
@@ -4878,7 +4857,7 @@ class bo extends Jr {
|
|
|
4878
4857
|
this.$$set({ lang: t }), Q();
|
|
4879
4858
|
}
|
|
4880
4859
|
}
|
|
4881
|
-
|
|
4860
|
+
Zr(mo, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, lang: {} }, [], [], !0);
|
|
4882
4861
|
export {
|
|
4883
|
-
|
|
4862
|
+
mo as C
|
|
4884
4863
|
};
|