@everymatrix/casino-tournaments-thumbnail-games 1.86.4 → 1.86.6
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-BOJ-mBz1.js → CasinoTournamentsThumbnailGames-Ck0JK0i_.js} +770 -749
- package/components/CasinoTournamentsThumbnailGames-CqSvghVB.cjs +18 -0
- package/components/{CasinoTournamentsThumbnailGames-DvKm0C8Y.js → CasinoTournamentsThumbnailGames-F0mlkU4B.js} +812 -791
- 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-B6BYeRne.js +542 -0
- package/stencil/index-97d17652-BOr4KAqq.js +558 -0
- package/stencil/index-97d17652-zTl06Vn9.cjs +1 -0
- package/stencil/{ui-image-BDXyFHck.cjs → ui-image-BX-FBhad.cjs} +1 -1
- package/stencil/{ui-image-Cc8wLmDe.js → ui-image-CP8Lp7fB.js} +1 -1
- package/stencil/{ui-image-wH6lu7wS.js → ui-image-Ch-GHki1.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-CBB2FKRZ.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-rCWcyktd.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DjCO-ZF4.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
- package/stencil/{ui-image_2-BESQEo1l.js → ui-image_2-CmVho0dS.js} +2 -2
- package/stencil/{ui-image_2-ZFidgTXM.cjs → ui-image_2-CyqE6j_W.cjs} +1 -1
- package/stencil/{ui-image_2-BfZmduAK.js → ui-image_2-Daq38JGa.js} +2 -2
- package/components/CasinoTournamentsThumbnailGames-CyuoEaxu.cjs +0 -18
- package/stencil/index-97d17652-DvplcHtm.js +0 -558
- package/stencil/index-97d17652-ILzgTtTR.cjs +0 -1
- package/stencil/index-97d17652-p-iQtjus.js +0 -542
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Ur = Object.defineProperty, Dr = Object.defineProperties;
|
|
2
|
+
var Fr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var _t = Object.getOwnPropertySymbols;
|
|
4
|
+
var jr = Object.prototype.hasOwnProperty, kr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ue = (e, t, r) => t in e ? Ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Et = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
jr.call(t, r) && Ue(e, r, t[r]);
|
|
8
|
+
if (_t)
|
|
9
|
+
for (var r of _t(t))
|
|
10
|
+
kr.call(t, r) && Ue(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var G = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, xt = (e, t) => Dr(e, Fr(t));
|
|
13
|
+
var G = (e, t, r) => (Ue(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var wt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(l));
|
|
@@ -27,32 +27,32 @@ var Et = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-image-
|
|
30
|
+
import "../stencil/ui-image-CP8Lp7fB.js";
|
|
31
31
|
function U() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function er(e) {
|
|
34
34
|
return e();
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Tt() {
|
|
37
37
|
return /* @__PURE__ */ Object.create(null);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
e.forEach(
|
|
39
|
+
function ue(e) {
|
|
40
|
+
e.forEach(er);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Ce(e) {
|
|
43
43
|
return typeof e == "function";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function tr(e, t) {
|
|
46
46
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
47
47
|
}
|
|
48
48
|
let ye;
|
|
49
|
-
function
|
|
49
|
+
function St(e, t) {
|
|
50
50
|
return e === t ? !0 : (ye || (ye = document.createElement("a")), ye.href = t, e === ye.href);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Vr(e) {
|
|
53
53
|
return Object.keys(e).length === 0;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function rr(e, ...t) {
|
|
56
56
|
if (e == null) {
|
|
57
57
|
for (const n of t)
|
|
58
58
|
n(void 0);
|
|
@@ -61,20 +61,20 @@ function er(e, ...t) {
|
|
|
61
61
|
const r = e.subscribe(...t);
|
|
62
62
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
e.$$.on_destroy.push(
|
|
64
|
+
function Xr(e, t, r) {
|
|
65
|
+
e.$$.on_destroy.push(rr(t, r));
|
|
66
66
|
}
|
|
67
67
|
function x(e, t) {
|
|
68
68
|
e.appendChild(t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
const n =
|
|
70
|
+
function Wr(e, t, r) {
|
|
71
|
+
const n = zr(e);
|
|
72
72
|
if (!n.getElementById(t)) {
|
|
73
73
|
const i = A("style");
|
|
74
|
-
i.id = t, i.textContent = r,
|
|
74
|
+
i.id = t, i.textContent = r, Zr(n, i);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function zr(e) {
|
|
78
78
|
if (!e)
|
|
79
79
|
return document;
|
|
80
80
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -84,20 +84,20 @@ function Wr(e) {
|
|
|
84
84
|
t
|
|
85
85
|
) : e.ownerDocument;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Zr(e, t) {
|
|
88
88
|
return x(
|
|
89
89
|
/** @type {Document} */
|
|
90
90
|
e.head || e,
|
|
91
91
|
t
|
|
92
92
|
), t.sheet;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function k(e, t, r) {
|
|
95
95
|
e.insertBefore(t, r || null);
|
|
96
96
|
}
|
|
97
97
|
function D(e) {
|
|
98
98
|
e.parentNode && e.parentNode.removeChild(e);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function nr(e, t) {
|
|
101
101
|
for (let r = 0; r < e.length; r += 1)
|
|
102
102
|
e[r] && e[r].d(t);
|
|
103
103
|
}
|
|
@@ -107,16 +107,16 @@ function A(e) {
|
|
|
107
107
|
function _e(e) {
|
|
108
108
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function j(e) {
|
|
111
111
|
return document.createTextNode(e);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
return
|
|
113
|
+
function X() {
|
|
114
|
+
return j(" ");
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
return
|
|
116
|
+
function Qr() {
|
|
117
|
+
return j("");
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Ze(e, t, r, n) {
|
|
120
120
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
121
121
|
}
|
|
122
122
|
function v(e, t, r) {
|
|
@@ -126,14 +126,14 @@ function I(e, t, r) {
|
|
|
126
126
|
const n = t.toLowerCase();
|
|
127
127
|
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);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Jr(e) {
|
|
130
130
|
return Array.from(e.childNodes);
|
|
131
131
|
}
|
|
132
132
|
function Z(e, t) {
|
|
133
133
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
134
134
|
t);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function qr(e) {
|
|
137
137
|
const t = {};
|
|
138
138
|
return e.childNodes.forEach(
|
|
139
139
|
/** @param {Element} node */
|
|
@@ -142,92 +142,92 @@ function Jr(e) {
|
|
|
142
142
|
}
|
|
143
143
|
), t;
|
|
144
144
|
}
|
|
145
|
-
let
|
|
145
|
+
let me;
|
|
146
146
|
function pe(e) {
|
|
147
|
-
|
|
147
|
+
me = e;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
if (!
|
|
149
|
+
function ir() {
|
|
150
|
+
if (!me)
|
|
151
151
|
throw new Error("Function called outside component initialization");
|
|
152
|
-
return
|
|
153
|
-
}
|
|
154
|
-
function qr(e) {
|
|
155
|
-
rr().$$.on_mount.push(e);
|
|
152
|
+
return me;
|
|
156
153
|
}
|
|
157
154
|
function Yr(e) {
|
|
158
|
-
|
|
155
|
+
ir().$$.on_mount.push(e);
|
|
156
|
+
}
|
|
157
|
+
function Kr(e) {
|
|
158
|
+
ir().$$.on_destroy.push(e);
|
|
159
159
|
}
|
|
160
|
-
const re = [],
|
|
160
|
+
const re = [], Pe = [];
|
|
161
161
|
let ne = [];
|
|
162
|
-
const
|
|
163
|
-
let
|
|
164
|
-
function
|
|
165
|
-
|
|
162
|
+
const Ht = [], en = /* @__PURE__ */ Promise.resolve();
|
|
163
|
+
let Qe = !1;
|
|
164
|
+
function tn() {
|
|
165
|
+
Qe || (Qe = !0, en.then(Y));
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Je(e) {
|
|
168
168
|
ne.push(e);
|
|
169
169
|
}
|
|
170
|
-
const
|
|
170
|
+
const De = /* @__PURE__ */ new Set();
|
|
171
171
|
let ee = 0;
|
|
172
172
|
function Y() {
|
|
173
173
|
if (ee !== 0)
|
|
174
174
|
return;
|
|
175
|
-
const e =
|
|
175
|
+
const e = me;
|
|
176
176
|
do {
|
|
177
177
|
try {
|
|
178
178
|
for (; ee < re.length; ) {
|
|
179
179
|
const t = re[ee];
|
|
180
|
-
ee++, pe(t),
|
|
180
|
+
ee++, pe(t), rn(t.$$);
|
|
181
181
|
}
|
|
182
182
|
} catch (t) {
|
|
183
183
|
throw re.length = 0, ee = 0, t;
|
|
184
184
|
}
|
|
185
|
-
for (pe(null), re.length = 0, ee = 0;
|
|
186
|
-
|
|
185
|
+
for (pe(null), re.length = 0, ee = 0; Pe.length; )
|
|
186
|
+
Pe.pop()();
|
|
187
187
|
for (let t = 0; t < ne.length; t += 1) {
|
|
188
188
|
const r = ne[t];
|
|
189
|
-
|
|
189
|
+
De.has(r) || (De.add(r), r());
|
|
190
190
|
}
|
|
191
191
|
ne.length = 0;
|
|
192
192
|
} while (re.length);
|
|
193
|
-
for (;
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
for (; Ht.length; )
|
|
194
|
+
Ht.pop()();
|
|
195
|
+
Qe = !1, De.clear(), pe(e);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function rn(e) {
|
|
198
198
|
if (e.fragment !== null) {
|
|
199
|
-
e.update(),
|
|
199
|
+
e.update(), ue(e.before_update);
|
|
200
200
|
const t = e.dirty;
|
|
201
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
201
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Je);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function nn(e) {
|
|
205
205
|
const t = [], r = [];
|
|
206
206
|
ne.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ne = t;
|
|
207
207
|
}
|
|
208
|
-
const
|
|
209
|
-
function
|
|
210
|
-
e && e.i && (
|
|
208
|
+
const on = /* @__PURE__ */ new Set();
|
|
209
|
+
function sn(e, t) {
|
|
210
|
+
e && e.i && (on.delete(e), e.i(t));
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Be(e) {
|
|
213
213
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function an(e, t, r) {
|
|
216
216
|
const { fragment: n, after_update: i } = e.$$;
|
|
217
|
-
n && n.m(t, r),
|
|
218
|
-
const o = e.$$.on_mount.map(
|
|
219
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
220
|
-
}), i.forEach(
|
|
217
|
+
n && n.m(t, r), Je(() => {
|
|
218
|
+
const o = e.$$.on_mount.map(er).filter(Ce);
|
|
219
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ue(o), e.$$.on_mount = [];
|
|
220
|
+
}), i.forEach(Je);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function un(e, t) {
|
|
223
223
|
const r = e.$$;
|
|
224
|
-
r.fragment !== null && (
|
|
224
|
+
r.fragment !== null && (nn(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
e.$$.dirty[0] === -1 && (re.push(e),
|
|
226
|
+
function ln(e, t) {
|
|
227
|
+
e.$$.dirty[0] === -1 && (re.push(e), tn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
const l =
|
|
229
|
+
function hn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
230
|
+
const l = me;
|
|
231
231
|
pe(e);
|
|
232
232
|
const u = e.$$ = {
|
|
233
233
|
fragment: null,
|
|
@@ -236,7 +236,7 @@ function ln(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
236
236
|
props: o,
|
|
237
237
|
update: U,
|
|
238
238
|
not_equal: i,
|
|
239
|
-
bound:
|
|
239
|
+
bound: Tt(),
|
|
240
240
|
// lifecycle
|
|
241
241
|
on_mount: [],
|
|
242
242
|
on_destroy: [],
|
|
@@ -245,28 +245,28 @@ function ln(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
245
245
|
after_update: [],
|
|
246
246
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
247
247
|
// everything else
|
|
248
|
-
callbacks:
|
|
248
|
+
callbacks: Tt(),
|
|
249
249
|
dirty: a,
|
|
250
250
|
skip_bound: !1,
|
|
251
251
|
root: t.target || l.$$.root
|
|
252
252
|
};
|
|
253
253
|
s && s(u.root);
|
|
254
254
|
let h = !1;
|
|
255
|
-
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
256
|
-
const d =
|
|
257
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h &&
|
|
258
|
-
}) : [], u.update(), h = !0,
|
|
255
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
|
|
256
|
+
const d = m.length ? m[0] : c;
|
|
257
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h && ln(e, f)), c;
|
|
258
|
+
}) : [], u.update(), h = !0, ue(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
259
259
|
if (t.hydrate) {
|
|
260
|
-
const f =
|
|
260
|
+
const f = Jr(t.target);
|
|
261
261
|
u.fragment && u.fragment.l(f), f.forEach(D);
|
|
262
262
|
} else
|
|
263
263
|
u.fragment && u.fragment.c();
|
|
264
|
-
t.intro &&
|
|
264
|
+
t.intro && sn(e.$$.fragment), an(e, t.target, t.anchor), Y();
|
|
265
265
|
}
|
|
266
266
|
pe(l);
|
|
267
267
|
}
|
|
268
|
-
let
|
|
269
|
-
typeof HTMLElement == "function" && (
|
|
268
|
+
let or;
|
|
269
|
+
typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
270
270
|
constructor(t, r, n) {
|
|
271
271
|
super();
|
|
272
272
|
/** The Svelte component constructor */
|
|
@@ -303,7 +303,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
connectedCallback() {
|
|
306
|
-
return
|
|
306
|
+
return wt(this, null, function* () {
|
|
307
307
|
if (this.$$cn = !0, !this.$$c) {
|
|
308
308
|
let t = function(o) {
|
|
309
309
|
return () => {
|
|
@@ -317,7 +317,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
317
317
|
* @param {HTMLElement} [anchor]
|
|
318
318
|
*/
|
|
319
319
|
m: function(u, h) {
|
|
320
|
-
|
|
320
|
+
k(u, s, h);
|
|
321
321
|
},
|
|
322
322
|
d: function(u) {
|
|
323
323
|
u && D(s);
|
|
@@ -327,7 +327,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
327
327
|
};
|
|
328
328
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
329
329
|
return;
|
|
330
|
-
const r = {}, n =
|
|
330
|
+
const r = {}, n = qr(this);
|
|
331
331
|
for (const o of this.$$s)
|
|
332
332
|
o in n && (r[o] = [t(o)]);
|
|
333
333
|
for (const o of this.attributes) {
|
|
@@ -338,7 +338,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
338
338
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
339
339
|
this.$$c = new this.$$ctor({
|
|
340
340
|
target: this.shadowRoot || this,
|
|
341
|
-
props:
|
|
341
|
+
props: xt(Et({}, this.$$d), {
|
|
342
342
|
$$slots: r,
|
|
343
343
|
$$scope: {
|
|
344
344
|
ctx: []
|
|
@@ -416,8 +416,8 @@ function we(e, t, r, n) {
|
|
|
416
416
|
return t;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
let s = class extends
|
|
419
|
+
function cn(e, t, r, n, i, o) {
|
|
420
|
+
let s = class extends or {
|
|
421
421
|
constructor() {
|
|
422
422
|
super(e, r, i), this.$$p_d = t;
|
|
423
423
|
}
|
|
@@ -447,7 +447,7 @@ function hn(e, t, r, n, i, o) {
|
|
|
447
447
|
}), e.element = /** @type {any} */
|
|
448
448
|
s, s;
|
|
449
449
|
}
|
|
450
|
-
class
|
|
450
|
+
class fn {
|
|
451
451
|
constructor() {
|
|
452
452
|
/**
|
|
453
453
|
* ### PRIVATE API
|
|
@@ -468,7 +468,7 @@ class cn {
|
|
|
468
468
|
}
|
|
469
469
|
/** @returns {void} */
|
|
470
470
|
$destroy() {
|
|
471
|
-
|
|
471
|
+
un(this, 1), this.$destroy = U;
|
|
472
472
|
}
|
|
473
473
|
/**
|
|
474
474
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -477,7 +477,7 @@ class cn {
|
|
|
477
477
|
* @returns {() => void}
|
|
478
478
|
*/
|
|
479
479
|
$on(t, r) {
|
|
480
|
-
if (!
|
|
480
|
+
if (!Ce(r))
|
|
481
481
|
return U;
|
|
482
482
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
483
483
|
return n.push(r), () => {
|
|
@@ -490,18 +490,18 @@ class cn {
|
|
|
490
490
|
* @returns {void}
|
|
491
491
|
*/
|
|
492
492
|
$set(t) {
|
|
493
|
-
this.$$set && !
|
|
493
|
+
this.$$set && !Vr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
const
|
|
497
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
496
|
+
const pn = "4";
|
|
497
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pn);
|
|
498
498
|
function mn(e, t) {
|
|
499
499
|
if (e) {
|
|
500
500
|
const r = document.createElement("style");
|
|
501
501
|
r.innerHTML = t, e.appendChild(r);
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function dn(e, t) {
|
|
505
505
|
if (!e || !t)
|
|
506
506
|
return;
|
|
507
507
|
const r = new URL(t);
|
|
@@ -512,7 +512,7 @@ function pn(e, t) {
|
|
|
512
512
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function bn(e, t, r) {
|
|
516
516
|
if (window.emMessageBus) {
|
|
517
517
|
const n = document.createElement("style");
|
|
518
518
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -534,43 +534,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
534
534
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
535
535
|
PERFORMANCE OF THIS SOFTWARE.
|
|
536
536
|
***************************************************************************** */
|
|
537
|
-
var
|
|
538
|
-
return
|
|
537
|
+
var qe = function(e, t) {
|
|
538
|
+
return qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
539
539
|
r.__proto__ = n;
|
|
540
540
|
} || function(r, n) {
|
|
541
541
|
for (var i in n)
|
|
542
542
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
543
|
-
},
|
|
543
|
+
}, qe(e, t);
|
|
544
544
|
};
|
|
545
|
-
function
|
|
545
|
+
function ge(e, t) {
|
|
546
546
|
if (typeof t != "function" && t !== null)
|
|
547
547
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
548
|
-
|
|
548
|
+
qe(e, t);
|
|
549
549
|
function r() {
|
|
550
550
|
this.constructor = e;
|
|
551
551
|
}
|
|
552
552
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
553
553
|
}
|
|
554
|
-
|
|
555
|
-
return w = Object.assign || function(t) {
|
|
556
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
557
|
-
r = arguments[n];
|
|
558
|
-
for (var o in r)
|
|
559
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
560
|
-
}
|
|
561
|
-
return t;
|
|
562
|
-
}, w.apply(this, arguments);
|
|
563
|
-
};
|
|
564
|
-
function bn(e, t) {
|
|
565
|
-
var r = {};
|
|
566
|
-
for (var n in e)
|
|
567
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
568
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
569
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
570
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
571
|
-
return r;
|
|
572
|
-
}
|
|
573
|
-
function Je(e) {
|
|
554
|
+
function Ye(e) {
|
|
574
555
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
575
556
|
if (r)
|
|
576
557
|
return r.call(e);
|
|
@@ -582,7 +563,7 @@ function Je(e) {
|
|
|
582
563
|
};
|
|
583
564
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
584
565
|
}
|
|
585
|
-
function
|
|
566
|
+
function Ke(e, t) {
|
|
586
567
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
587
568
|
if (!r)
|
|
588
569
|
return e;
|
|
@@ -602,22 +583,22 @@ function qe(e, t) {
|
|
|
602
583
|
}
|
|
603
584
|
return o;
|
|
604
585
|
}
|
|
605
|
-
function
|
|
606
|
-
if (
|
|
586
|
+
function et(e, t, r) {
|
|
587
|
+
if (arguments.length === 2)
|
|
607
588
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
608
589
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
609
590
|
return e.concat(o || t);
|
|
610
591
|
}
|
|
611
|
-
function
|
|
592
|
+
function W(e) {
|
|
612
593
|
return typeof e == "function";
|
|
613
594
|
}
|
|
614
|
-
function
|
|
595
|
+
function sr(e) {
|
|
615
596
|
var t = function(n) {
|
|
616
597
|
Error.call(n), n.stack = new Error().stack;
|
|
617
598
|
}, r = e(t);
|
|
618
599
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
619
600
|
}
|
|
620
|
-
var
|
|
601
|
+
var Fe = sr(function(e) {
|
|
621
602
|
return function(r) {
|
|
622
603
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
623
604
|
` + r.map(function(n, i) {
|
|
@@ -626,13 +607,13 @@ var Ue = ir(function(e) {
|
|
|
626
607
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
627
608
|
};
|
|
628
609
|
});
|
|
629
|
-
function
|
|
610
|
+
function tt(e, t) {
|
|
630
611
|
if (e) {
|
|
631
612
|
var r = e.indexOf(t);
|
|
632
613
|
0 <= r && e.splice(r, 1);
|
|
633
614
|
}
|
|
634
615
|
}
|
|
635
|
-
var
|
|
616
|
+
var Ie = function() {
|
|
636
617
|
function e(t) {
|
|
637
618
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
638
619
|
}
|
|
@@ -644,7 +625,7 @@ var Ce = function() {
|
|
|
644
625
|
if (s)
|
|
645
626
|
if (this._parentage = null, Array.isArray(s))
|
|
646
627
|
try {
|
|
647
|
-
for (var a =
|
|
628
|
+
for (var a = Ye(s), l = a.next(); !l.done; l = a.next()) {
|
|
648
629
|
var u = l.value;
|
|
649
630
|
u.remove(this);
|
|
650
631
|
}
|
|
@@ -661,29 +642,29 @@ var Ce = function() {
|
|
|
661
642
|
else
|
|
662
643
|
s.remove(this);
|
|
663
644
|
var h = this.initialTeardown;
|
|
664
|
-
if (
|
|
645
|
+
if (W(h))
|
|
665
646
|
try {
|
|
666
647
|
h();
|
|
667
648
|
} catch (b) {
|
|
668
|
-
o = b instanceof
|
|
649
|
+
o = b instanceof Fe ? b.errors : [b];
|
|
669
650
|
}
|
|
670
651
|
var f = this._finalizers;
|
|
671
652
|
if (f) {
|
|
672
653
|
this._finalizers = null;
|
|
673
654
|
try {
|
|
674
|
-
for (var c =
|
|
675
|
-
var d =
|
|
655
|
+
for (var c = Ye(f), m = c.next(); !m.done; m = c.next()) {
|
|
656
|
+
var d = m.value;
|
|
676
657
|
try {
|
|
677
|
-
|
|
658
|
+
Pt(d);
|
|
678
659
|
} catch (b) {
|
|
679
|
-
o = o != null ? o : [], b instanceof
|
|
660
|
+
o = o != null ? o : [], b instanceof Fe ? o = et(et([], Ke(o)), Ke(b.errors)) : o.push(b);
|
|
680
661
|
}
|
|
681
662
|
}
|
|
682
663
|
} catch (b) {
|
|
683
664
|
n = { error: b };
|
|
684
665
|
} finally {
|
|
685
666
|
try {
|
|
686
|
-
|
|
667
|
+
m && !m.done && (i = c.return) && i.call(c);
|
|
687
668
|
} finally {
|
|
688
669
|
if (n)
|
|
689
670
|
throw n.error;
|
|
@@ -691,13 +672,13 @@ var Ce = function() {
|
|
|
691
672
|
}
|
|
692
673
|
}
|
|
693
674
|
if (o)
|
|
694
|
-
throw new
|
|
675
|
+
throw new Fe(o);
|
|
695
676
|
}
|
|
696
677
|
}, e.prototype.add = function(t) {
|
|
697
678
|
var r;
|
|
698
679
|
if (t && t !== this)
|
|
699
680
|
if (this.closed)
|
|
700
|
-
|
|
681
|
+
Pt(t);
|
|
701
682
|
else {
|
|
702
683
|
if (t instanceof e) {
|
|
703
684
|
if (t.closed || t._hasParent(this))
|
|
@@ -714,56 +695,52 @@ var Ce = function() {
|
|
|
714
695
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
715
696
|
}, e.prototype._removeParent = function(t) {
|
|
716
697
|
var r = this._parentage;
|
|
717
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
698
|
+
r === t ? this._parentage = null : Array.isArray(r) && tt(r, t);
|
|
718
699
|
}, e.prototype.remove = function(t) {
|
|
719
700
|
var r = this._finalizers;
|
|
720
|
-
r &&
|
|
701
|
+
r && tt(r, t), t instanceof e && t._removeParent(this);
|
|
721
702
|
}, e.EMPTY = function() {
|
|
722
703
|
var t = new e();
|
|
723
704
|
return t.closed = !0, t;
|
|
724
705
|
}(), e;
|
|
725
|
-
}(),
|
|
726
|
-
function
|
|
727
|
-
return e instanceof
|
|
728
|
-
}
|
|
729
|
-
function
|
|
730
|
-
|
|
731
|
-
}
|
|
732
|
-
var
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
Promise: void 0,
|
|
736
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
737
|
-
useDeprecatedNextContext: !1
|
|
738
|
-
}, gn = {
|
|
706
|
+
}(), ar = Ie.EMPTY;
|
|
707
|
+
function ur(e) {
|
|
708
|
+
return e instanceof Ie || e && "closed" in e && W(e.remove) && W(e.add) && W(e.unsubscribe);
|
|
709
|
+
}
|
|
710
|
+
function Pt(e) {
|
|
711
|
+
W(e) ? e() : e.unsubscribe();
|
|
712
|
+
}
|
|
713
|
+
var gn = {
|
|
714
|
+
Promise: void 0
|
|
715
|
+
}, vn = {
|
|
739
716
|
setTimeout: function(e, t) {
|
|
740
717
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
741
718
|
r[n - 2] = arguments[n];
|
|
742
|
-
return setTimeout.apply(void 0,
|
|
719
|
+
return setTimeout.apply(void 0, et([e, t], Ke(r)));
|
|
743
720
|
},
|
|
744
721
|
clearTimeout: function(e) {
|
|
745
722
|
return clearTimeout(e);
|
|
746
723
|
},
|
|
747
724
|
delegate: void 0
|
|
748
725
|
};
|
|
749
|
-
function
|
|
750
|
-
|
|
726
|
+
function yn(e) {
|
|
727
|
+
vn.setTimeout(function() {
|
|
751
728
|
throw e;
|
|
752
729
|
});
|
|
753
730
|
}
|
|
754
|
-
function
|
|
731
|
+
function Bt() {
|
|
755
732
|
}
|
|
756
733
|
function Te(e) {
|
|
757
734
|
e();
|
|
758
735
|
}
|
|
759
|
-
var
|
|
760
|
-
|
|
736
|
+
var lr = function(e) {
|
|
737
|
+
ge(t, e);
|
|
761
738
|
function t(r) {
|
|
762
739
|
var n = e.call(this) || this;
|
|
763
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
740
|
+
return n.isStopped = !1, r ? (n.destination = r, ur(r) && r.add(n)) : n.destination = xn, n;
|
|
764
741
|
}
|
|
765
742
|
return t.create = function(r, n, i) {
|
|
766
|
-
return new
|
|
743
|
+
return new rt(r, n, i);
|
|
767
744
|
}, t.prototype.next = function(r) {
|
|
768
745
|
this.isStopped || this._next(r);
|
|
769
746
|
}, t.prototype.error = function(r) {
|
|
@@ -787,11 +764,7 @@ var ur = function(e) {
|
|
|
787
764
|
this.unsubscribe();
|
|
788
765
|
}
|
|
789
766
|
}, t;
|
|
790
|
-
}(
|
|
791
|
-
function De(e, t) {
|
|
792
|
-
return yn.call(e, t);
|
|
793
|
-
}
|
|
794
|
-
var _n = function() {
|
|
767
|
+
}(Ie), _n = function() {
|
|
795
768
|
function e(t) {
|
|
796
769
|
this.partialObserver = t;
|
|
797
770
|
}
|
|
@@ -822,41 +795,29 @@ var _n = function() {
|
|
|
822
795
|
Ee(r);
|
|
823
796
|
}
|
|
824
797
|
}, e;
|
|
825
|
-
}(),
|
|
826
|
-
|
|
798
|
+
}(), rt = function(e) {
|
|
799
|
+
ge(t, e);
|
|
827
800
|
function t(r, n, i) {
|
|
828
801
|
var o = e.call(this) || this, s;
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
};
|
|
835
|
-
else {
|
|
836
|
-
var a;
|
|
837
|
-
o && ar.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
838
|
-
return o.unsubscribe();
|
|
839
|
-
}, s = {
|
|
840
|
-
next: r.next && De(r.next, a),
|
|
841
|
-
error: r.error && De(r.error, a),
|
|
842
|
-
complete: r.complete && De(r.complete, a)
|
|
843
|
-
}) : s = r;
|
|
844
|
-
}
|
|
845
|
-
return o.destination = new _n(s), o;
|
|
802
|
+
return W(r) || !r ? s = {
|
|
803
|
+
next: r != null ? r : void 0,
|
|
804
|
+
error: n != null ? n : void 0,
|
|
805
|
+
complete: i != null ? i : void 0
|
|
806
|
+
} : s = r, o.destination = new _n(s), o;
|
|
846
807
|
}
|
|
847
808
|
return t;
|
|
848
|
-
}(
|
|
809
|
+
}(lr);
|
|
849
810
|
function Ee(e) {
|
|
850
|
-
|
|
811
|
+
yn(e);
|
|
851
812
|
}
|
|
852
813
|
function En(e) {
|
|
853
814
|
throw e;
|
|
854
815
|
}
|
|
855
816
|
var xn = {
|
|
856
817
|
closed: !0,
|
|
857
|
-
next:
|
|
818
|
+
next: Bt,
|
|
858
819
|
error: En,
|
|
859
|
-
complete:
|
|
820
|
+
complete: Bt
|
|
860
821
|
}, wn = function() {
|
|
861
822
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
862
823
|
}();
|
|
@@ -870,7 +831,7 @@ function Sn(e) {
|
|
|
870
831
|
}, r);
|
|
871
832
|
};
|
|
872
833
|
}
|
|
873
|
-
var
|
|
834
|
+
var At = function() {
|
|
874
835
|
function e(t) {
|
|
875
836
|
t && (this._subscribe = t);
|
|
876
837
|
}
|
|
@@ -878,7 +839,7 @@ var Bt = function() {
|
|
|
878
839
|
var r = new e();
|
|
879
840
|
return r.source = this, r.operator = t, r;
|
|
880
841
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
881
|
-
var i = this, o =
|
|
842
|
+
var i = this, o = Pn(t) ? t : new rt(t, r, n);
|
|
882
843
|
return Te(function() {
|
|
883
844
|
var s = i, a = s.operator, l = s.source;
|
|
884
845
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -891,8 +852,8 @@ var Bt = function() {
|
|
|
891
852
|
}
|
|
892
853
|
}, e.prototype.forEach = function(t, r) {
|
|
893
854
|
var n = this;
|
|
894
|
-
return r =
|
|
895
|
-
var s = new
|
|
855
|
+
return r = Ot(r), new r(function(i, o) {
|
|
856
|
+
var s = new rt({
|
|
896
857
|
next: function(a) {
|
|
897
858
|
try {
|
|
898
859
|
t(a);
|
|
@@ -916,7 +877,7 @@ var Bt = function() {
|
|
|
916
877
|
return Sn(t)(this);
|
|
917
878
|
}, e.prototype.toPromise = function(t) {
|
|
918
879
|
var r = this;
|
|
919
|
-
return t =
|
|
880
|
+
return t = Ot(t), new t(function(n, i) {
|
|
920
881
|
var o;
|
|
921
882
|
r.subscribe(function(s) {
|
|
922
883
|
return o = s;
|
|
@@ -930,32 +891,32 @@ var Bt = function() {
|
|
|
930
891
|
return new e(t);
|
|
931
892
|
}, e;
|
|
932
893
|
}();
|
|
933
|
-
function
|
|
894
|
+
function Ot(e) {
|
|
934
895
|
var t;
|
|
935
|
-
return (t = e != null ? e :
|
|
896
|
+
return (t = e != null ? e : gn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
936
897
|
}
|
|
937
898
|
function Hn(e) {
|
|
938
|
-
return e &&
|
|
899
|
+
return e && W(e.next) && W(e.error) && W(e.complete);
|
|
939
900
|
}
|
|
940
|
-
function
|
|
941
|
-
return e && e instanceof
|
|
901
|
+
function Pn(e) {
|
|
902
|
+
return e && e instanceof lr || Hn(e) && ur(e);
|
|
942
903
|
}
|
|
943
|
-
var
|
|
904
|
+
var Bn = sr(function(e) {
|
|
944
905
|
return function() {
|
|
945
906
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
946
907
|
};
|
|
947
|
-
}),
|
|
948
|
-
|
|
908
|
+
}), hr = function(e) {
|
|
909
|
+
ge(t, e);
|
|
949
910
|
function t() {
|
|
950
911
|
var r = e.call(this) || this;
|
|
951
912
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
952
913
|
}
|
|
953
914
|
return t.prototype.lift = function(r) {
|
|
954
|
-
var n = new
|
|
915
|
+
var n = new Nt(this, this);
|
|
955
916
|
return n.operator = r, n;
|
|
956
917
|
}, t.prototype._throwIfClosed = function() {
|
|
957
918
|
if (this.closed)
|
|
958
|
-
throw new
|
|
919
|
+
throw new Bn();
|
|
959
920
|
}, t.prototype.next = function(r) {
|
|
960
921
|
var n = this;
|
|
961
922
|
Te(function() {
|
|
@@ -963,7 +924,7 @@ var Pn = ir(function(e) {
|
|
|
963
924
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
964
925
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
965
926
|
try {
|
|
966
|
-
for (var s =
|
|
927
|
+
for (var s = Ye(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
967
928
|
var l = a.value;
|
|
968
929
|
l.next(r);
|
|
969
930
|
}
|
|
@@ -1012,20 +973,20 @@ var Pn = ir(function(e) {
|
|
|
1012
973
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1013
974
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1014
975
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
1015
|
-
return o || s ?
|
|
1016
|
-
n.currentObservers = null,
|
|
976
|
+
return o || s ? ar : (this.currentObservers = null, a.push(r), new Ie(function() {
|
|
977
|
+
n.currentObservers = null, tt(a, r);
|
|
1017
978
|
}));
|
|
1018
979
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1019
980
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
1020
981
|
i ? r.error(o) : s && r.complete();
|
|
1021
982
|
}, t.prototype.asObservable = function() {
|
|
1022
|
-
var r = new
|
|
983
|
+
var r = new At();
|
|
1023
984
|
return r.source = this, r;
|
|
1024
985
|
}, t.create = function(r, n) {
|
|
1025
|
-
return new
|
|
986
|
+
return new Nt(r, n);
|
|
1026
987
|
}, t;
|
|
1027
|
-
}(
|
|
1028
|
-
|
|
988
|
+
}(At), Nt = function(e) {
|
|
989
|
+
ge(t, e);
|
|
1029
990
|
function t(r, n) {
|
|
1030
991
|
var i = e.call(this) || this;
|
|
1031
992
|
return i.destination = r, i.source = n, i;
|
|
@@ -1041,17 +1002,17 @@ var Pn = ir(function(e) {
|
|
|
1041
1002
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1042
1003
|
}, t.prototype._subscribe = function(r) {
|
|
1043
1004
|
var n, i;
|
|
1044
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1005
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : ar;
|
|
1045
1006
|
}, t;
|
|
1046
|
-
}(
|
|
1007
|
+
}(hr), cr = {
|
|
1047
1008
|
now: function() {
|
|
1048
|
-
return (
|
|
1009
|
+
return (cr.delegate || Date).now();
|
|
1049
1010
|
},
|
|
1050
1011
|
delegate: void 0
|
|
1051
1012
|
}, An = function(e) {
|
|
1052
|
-
|
|
1013
|
+
ge(t, e);
|
|
1053
1014
|
function t(r, n, i) {
|
|
1054
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1015
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = cr);
|
|
1055
1016
|
var o = e.call(this) || this;
|
|
1056
1017
|
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;
|
|
1057
1018
|
}
|
|
@@ -1071,24 +1032,24 @@ var Pn = ir(function(e) {
|
|
|
1071
1032
|
u && o.splice(0, u + 1);
|
|
1072
1033
|
}
|
|
1073
1034
|
}, t;
|
|
1074
|
-
}(
|
|
1075
|
-
const
|
|
1076
|
-
if (
|
|
1035
|
+
}(hr);
|
|
1036
|
+
const Ct = [], It = {}, On = (e, t = 0) => {
|
|
1037
|
+
if (Ct.indexOf(e) == -1) {
|
|
1077
1038
|
const r = new An(t);
|
|
1078
|
-
|
|
1039
|
+
It[e] = r, Ct.push(e);
|
|
1079
1040
|
}
|
|
1080
|
-
return
|
|
1041
|
+
return It[e];
|
|
1081
1042
|
}, te = [];
|
|
1082
1043
|
function Nn(e, t) {
|
|
1083
1044
|
return {
|
|
1084
|
-
subscribe:
|
|
1045
|
+
subscribe: Le(e, t).subscribe
|
|
1085
1046
|
};
|
|
1086
1047
|
}
|
|
1087
|
-
function
|
|
1048
|
+
function Le(e, t = U) {
|
|
1088
1049
|
let r;
|
|
1089
1050
|
const n = /* @__PURE__ */ new Set();
|
|
1090
1051
|
function i(a) {
|
|
1091
|
-
if (
|
|
1052
|
+
if (tr(e, a) && (e = a, r)) {
|
|
1092
1053
|
const l = !te.length;
|
|
1093
1054
|
for (const u of n)
|
|
1094
1055
|
u[1](), te.push(u, e);
|
|
@@ -1110,7 +1071,7 @@ function Ie(e, t = U) {
|
|
|
1110
1071
|
}
|
|
1111
1072
|
return { set: i, update: o, subscribe: s };
|
|
1112
1073
|
}
|
|
1113
|
-
function
|
|
1074
|
+
function le(e, t, r) {
|
|
1114
1075
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1115
1076
|
if (!i.every(Boolean))
|
|
1116
1077
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1124,12 +1085,12 @@ function he(e, t, r) {
|
|
|
1124
1085
|
return;
|
|
1125
1086
|
f();
|
|
1126
1087
|
const d = t(n ? u[0] : u, s, a);
|
|
1127
|
-
o ? s(d) : f =
|
|
1128
|
-
},
|
|
1129
|
-
(d, b) =>
|
|
1088
|
+
o ? s(d) : f = Ce(d) ? d : U;
|
|
1089
|
+
}, m = i.map(
|
|
1090
|
+
(d, b) => rr(
|
|
1130
1091
|
d,
|
|
1131
|
-
(
|
|
1132
|
-
u[b] =
|
|
1092
|
+
(w) => {
|
|
1093
|
+
u[b] = w, h &= ~(1 << b), l && c();
|
|
1133
1094
|
},
|
|
1134
1095
|
() => {
|
|
1135
1096
|
h |= 1 << b;
|
|
@@ -1137,7 +1098,7 @@ function he(e, t, r) {
|
|
|
1137
1098
|
)
|
|
1138
1099
|
);
|
|
1139
1100
|
return l = !0, c(), function() {
|
|
1140
|
-
|
|
1101
|
+
ue(m), f(), l = !1;
|
|
1141
1102
|
};
|
|
1142
1103
|
});
|
|
1143
1104
|
}
|
|
@@ -1161,29 +1122,29 @@ function $n(e) {
|
|
|
1161
1122
|
function Un(e) {
|
|
1162
1123
|
return Array.isArray(e) ? [] : {};
|
|
1163
1124
|
}
|
|
1164
|
-
function
|
|
1165
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1125
|
+
function de(e, t) {
|
|
1126
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ie(Un(e), e, t) : e;
|
|
1166
1127
|
}
|
|
1167
1128
|
function Dn(e, t, r) {
|
|
1168
1129
|
return e.concat(t).map(function(n) {
|
|
1169
|
-
return
|
|
1130
|
+
return de(n, r);
|
|
1170
1131
|
});
|
|
1171
1132
|
}
|
|
1172
1133
|
function Fn(e, t) {
|
|
1173
1134
|
if (!t.customMerge)
|
|
1174
|
-
return
|
|
1135
|
+
return ie;
|
|
1175
1136
|
var r = t.customMerge(e);
|
|
1176
|
-
return typeof r == "function" ? r :
|
|
1137
|
+
return typeof r == "function" ? r : ie;
|
|
1177
1138
|
}
|
|
1178
1139
|
function jn(e) {
|
|
1179
1140
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1180
1141
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1181
1142
|
}) : [];
|
|
1182
1143
|
}
|
|
1183
|
-
function
|
|
1144
|
+
function Lt(e) {
|
|
1184
1145
|
return Object.keys(e).concat(jn(e));
|
|
1185
1146
|
}
|
|
1186
|
-
function
|
|
1147
|
+
function fr(e, t) {
|
|
1187
1148
|
try {
|
|
1188
1149
|
return t in e;
|
|
1189
1150
|
} catch (r) {
|
|
@@ -1191,129 +1152,179 @@ function cr(e, t) {
|
|
|
1191
1152
|
}
|
|
1192
1153
|
}
|
|
1193
1154
|
function kn(e, t) {
|
|
1194
|
-
return
|
|
1155
|
+
return fr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1195
1156
|
}
|
|
1196
1157
|
function Vn(e, t, r) {
|
|
1197
1158
|
var n = {};
|
|
1198
|
-
return r.isMergeableObject(e) &&
|
|
1199
|
-
n[i] =
|
|
1200
|
-
}),
|
|
1201
|
-
kn(e, i) || (
|
|
1159
|
+
return r.isMergeableObject(e) && Lt(e).forEach(function(i) {
|
|
1160
|
+
n[i] = de(e[i], r);
|
|
1161
|
+
}), Lt(t).forEach(function(i) {
|
|
1162
|
+
kn(e, i) || (fr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Fn(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
|
|
1202
1163
|
}), n;
|
|
1203
1164
|
}
|
|
1204
|
-
function
|
|
1205
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Dn, r.isMergeableObject = r.isMergeableObject || In, r.cloneUnlessOtherwiseSpecified =
|
|
1165
|
+
function ie(e, t, r) {
|
|
1166
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Dn, r.isMergeableObject = r.isMergeableObject || In, r.cloneUnlessOtherwiseSpecified = de;
|
|
1206
1167
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1207
|
-
return o ? n ? r.arrayMerge(e, t, r) : Vn(e, t, r) :
|
|
1168
|
+
return o ? n ? r.arrayMerge(e, t, r) : Vn(e, t, r) : de(t, r);
|
|
1208
1169
|
}
|
|
1209
|
-
|
|
1170
|
+
ie.all = function(t, r) {
|
|
1210
1171
|
if (!Array.isArray(t))
|
|
1211
1172
|
throw new Error("first argument should be an array");
|
|
1212
1173
|
return t.reduce(function(n, i) {
|
|
1213
|
-
return
|
|
1174
|
+
return ie(n, i, r);
|
|
1214
1175
|
}, {});
|
|
1215
1176
|
};
|
|
1216
|
-
var Xn =
|
|
1177
|
+
var Xn = ie, Wn = Xn;
|
|
1217
1178
|
const zn = /* @__PURE__ */ Cn(Wn);
|
|
1218
|
-
function
|
|
1219
|
-
|
|
1179
|
+
var nt = function(e, t) {
|
|
1180
|
+
return nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1181
|
+
r.__proto__ = n;
|
|
1182
|
+
} || function(r, n) {
|
|
1183
|
+
for (var i in n)
|
|
1184
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1185
|
+
}, nt(e, t);
|
|
1186
|
+
};
|
|
1187
|
+
function Me(e, t) {
|
|
1188
|
+
if (typeof t != "function" && t !== null)
|
|
1189
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1190
|
+
nt(e, t);
|
|
1191
|
+
function r() {
|
|
1192
|
+
this.constructor = e;
|
|
1193
|
+
}
|
|
1194
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1195
|
+
}
|
|
1196
|
+
var F = function() {
|
|
1197
|
+
return F = Object.assign || function(t) {
|
|
1198
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1199
|
+
r = arguments[n];
|
|
1200
|
+
for (var o in r)
|
|
1201
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1202
|
+
}
|
|
1203
|
+
return t;
|
|
1204
|
+
}, F.apply(this, arguments);
|
|
1205
|
+
};
|
|
1206
|
+
function Zn(e, t) {
|
|
1207
|
+
var r = {};
|
|
1208
|
+
for (var n in e)
|
|
1209
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1210
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1211
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1212
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1213
|
+
return r;
|
|
1214
|
+
}
|
|
1215
|
+
function je(e, t, r) {
|
|
1216
|
+
if (r || arguments.length === 2)
|
|
1217
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1218
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1219
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1220
|
+
}
|
|
1221
|
+
function ke(e, t) {
|
|
1222
|
+
var r = t && t.cache ? t.cache : ti, n = t && t.serializer ? t.serializer : Kn, i = t && t.strategy ? t.strategy : qn;
|
|
1220
1223
|
return i(e, {
|
|
1221
1224
|
cache: r,
|
|
1222
1225
|
serializer: n
|
|
1223
1226
|
});
|
|
1224
1227
|
}
|
|
1225
|
-
function
|
|
1228
|
+
function Qn(e) {
|
|
1226
1229
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1227
1230
|
}
|
|
1228
|
-
function
|
|
1229
|
-
var i =
|
|
1231
|
+
function Jn(e, t, r, n) {
|
|
1232
|
+
var i = Qn(n) ? n : r(n), o = t.get(i);
|
|
1230
1233
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1231
1234
|
}
|
|
1232
|
-
function
|
|
1235
|
+
function pr(e, t, r) {
|
|
1233
1236
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1234
1237
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1235
1238
|
}
|
|
1236
|
-
function
|
|
1239
|
+
function mr(e, t, r, n, i) {
|
|
1237
1240
|
return r.bind(t, e, n, i);
|
|
1238
1241
|
}
|
|
1239
|
-
function Qn(e, t) {
|
|
1240
|
-
var r = e.length === 1 ? fr : mr;
|
|
1241
|
-
return lt(e, this, r, t.cache.create(), t.serializer);
|
|
1242
|
-
}
|
|
1243
|
-
function Jn(e, t) {
|
|
1244
|
-
return lt(e, this, mr, t.cache.create(), t.serializer);
|
|
1245
|
-
}
|
|
1246
1242
|
function qn(e, t) {
|
|
1247
|
-
|
|
1243
|
+
var r = e.length === 1 ? Jn : pr;
|
|
1244
|
+
return mr(e, this, r, t.cache.create(), t.serializer);
|
|
1248
1245
|
}
|
|
1249
|
-
|
|
1250
|
-
return
|
|
1251
|
-
};
|
|
1252
|
-
function ht() {
|
|
1253
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1246
|
+
function Yn(e, t) {
|
|
1247
|
+
return mr(e, this, pr, t.cache.create(), t.serializer);
|
|
1254
1248
|
}
|
|
1255
|
-
|
|
1256
|
-
return
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1249
|
+
var Kn = function() {
|
|
1250
|
+
return JSON.stringify(arguments);
|
|
1251
|
+
}, ei = (
|
|
1252
|
+
/** @class */
|
|
1253
|
+
function() {
|
|
1254
|
+
function e() {
|
|
1255
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1256
|
+
}
|
|
1257
|
+
return e.prototype.get = function(t) {
|
|
1258
|
+
return this.cache[t];
|
|
1259
|
+
}, e.prototype.set = function(t, r) {
|
|
1260
|
+
this.cache[t] = r;
|
|
1261
|
+
}, e;
|
|
1262
|
+
}()
|
|
1263
|
+
), ti = {
|
|
1262
1264
|
create: function() {
|
|
1263
|
-
return new
|
|
1265
|
+
return new ei();
|
|
1264
1266
|
}
|
|
1265
|
-
},
|
|
1266
|
-
variadic:
|
|
1267
|
-
|
|
1268
|
-
|
|
1267
|
+
}, Ve = {
|
|
1268
|
+
variadic: Yn
|
|
1269
|
+
}, Ae = function() {
|
|
1270
|
+
return Ae = Object.assign || function(t) {
|
|
1271
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1272
|
+
r = arguments[n];
|
|
1273
|
+
for (var o in r)
|
|
1274
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1275
|
+
}
|
|
1276
|
+
return t;
|
|
1277
|
+
}, Ae.apply(this, arguments);
|
|
1278
|
+
};
|
|
1279
|
+
var y;
|
|
1269
1280
|
(function(e) {
|
|
1270
1281
|
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";
|
|
1271
1282
|
})(y || (y = {}));
|
|
1272
|
-
var
|
|
1283
|
+
var T;
|
|
1273
1284
|
(function(e) {
|
|
1274
1285
|
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";
|
|
1275
|
-
})(
|
|
1276
|
-
var
|
|
1286
|
+
})(T || (T = {}));
|
|
1287
|
+
var oe;
|
|
1277
1288
|
(function(e) {
|
|
1278
1289
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1279
|
-
})(
|
|
1280
|
-
function
|
|
1281
|
-
return e.type ===
|
|
1282
|
-
}
|
|
1283
|
-
function ei(e) {
|
|
1284
|
-
return e.type === S.argument;
|
|
1290
|
+
})(oe || (oe = {}));
|
|
1291
|
+
function Mt(e) {
|
|
1292
|
+
return e.type === T.literal;
|
|
1285
1293
|
}
|
|
1286
|
-
function
|
|
1287
|
-
return e.type ===
|
|
1294
|
+
function ri(e) {
|
|
1295
|
+
return e.type === T.argument;
|
|
1288
1296
|
}
|
|
1289
1297
|
function dr(e) {
|
|
1290
|
-
return e.type ===
|
|
1298
|
+
return e.type === T.number;
|
|
1291
1299
|
}
|
|
1292
1300
|
function br(e) {
|
|
1293
|
-
return e.type ===
|
|
1301
|
+
return e.type === T.date;
|
|
1294
1302
|
}
|
|
1295
1303
|
function gr(e) {
|
|
1296
|
-
return e.type ===
|
|
1304
|
+
return e.type === T.time;
|
|
1297
1305
|
}
|
|
1298
1306
|
function vr(e) {
|
|
1299
|
-
return e.type ===
|
|
1300
|
-
}
|
|
1301
|
-
function ti(e) {
|
|
1302
|
-
return e.type === S.pound;
|
|
1307
|
+
return e.type === T.select;
|
|
1303
1308
|
}
|
|
1304
1309
|
function yr(e) {
|
|
1305
|
-
return e.type ===
|
|
1310
|
+
return e.type === T.plural;
|
|
1311
|
+
}
|
|
1312
|
+
function ni(e) {
|
|
1313
|
+
return e.type === T.pound;
|
|
1306
1314
|
}
|
|
1307
1315
|
function _r(e) {
|
|
1308
|
-
return
|
|
1316
|
+
return e.type === T.tag;
|
|
1309
1317
|
}
|
|
1310
|
-
function
|
|
1311
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1318
|
+
function Er(e) {
|
|
1319
|
+
return !!(e && typeof e == "object" && e.type === oe.number);
|
|
1312
1320
|
}
|
|
1313
|
-
|
|
1314
|
-
|
|
1321
|
+
function it(e) {
|
|
1322
|
+
return !!(e && typeof e == "object" && e.type === oe.dateTime);
|
|
1323
|
+
}
|
|
1324
|
+
var xr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ii = /(?:[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;
|
|
1325
|
+
function oi(e) {
|
|
1315
1326
|
var t = {};
|
|
1316
|
-
return e.replace(
|
|
1327
|
+
return e.replace(ii, function(r) {
|
|
1317
1328
|
var n = r.length;
|
|
1318
1329
|
switch (r[0]) {
|
|
1319
1330
|
case "G":
|
|
@@ -1402,11 +1413,21 @@ function ni(e) {
|
|
|
1402
1413
|
return "";
|
|
1403
1414
|
}), t;
|
|
1404
1415
|
}
|
|
1405
|
-
var
|
|
1406
|
-
function
|
|
1416
|
+
var B = function() {
|
|
1417
|
+
return B = Object.assign || function(t) {
|
|
1418
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1419
|
+
r = arguments[n];
|
|
1420
|
+
for (var o in r)
|
|
1421
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1422
|
+
}
|
|
1423
|
+
return t;
|
|
1424
|
+
}, B.apply(this, arguments);
|
|
1425
|
+
};
|
|
1426
|
+
var si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1427
|
+
function ai(e) {
|
|
1407
1428
|
if (e.length === 0)
|
|
1408
1429
|
throw new Error("Number skeleton cannot be empty");
|
|
1409
|
-
for (var t = e.split(
|
|
1430
|
+
for (var t = e.split(si).filter(function(c) {
|
|
1410
1431
|
return c.length > 0;
|
|
1411
1432
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1412
1433
|
var o = i[n], s = o.split("/");
|
|
@@ -1421,17 +1442,17 @@ function oi(e) {
|
|
|
1421
1442
|
}
|
|
1422
1443
|
return r;
|
|
1423
1444
|
}
|
|
1424
|
-
function
|
|
1445
|
+
function ui(e) {
|
|
1425
1446
|
return e.replace(/^(.*?)-/, "");
|
|
1426
1447
|
}
|
|
1427
|
-
var
|
|
1428
|
-
function
|
|
1448
|
+
var Rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, wr = /^(@+)?(\+|#+)?[rs]?$/g, li = /(\*)(0+)|(#+)(0+)|(0+)/g, Tr = /^(0+)$/;
|
|
1449
|
+
function Gt(e) {
|
|
1429
1450
|
var t = {};
|
|
1430
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1451
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(wr, function(r, n, i) {
|
|
1431
1452
|
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)), "";
|
|
1432
1453
|
}), t;
|
|
1433
1454
|
}
|
|
1434
|
-
function
|
|
1455
|
+
function Sr(e) {
|
|
1435
1456
|
switch (e) {
|
|
1436
1457
|
case "sign-auto":
|
|
1437
1458
|
return {
|
|
@@ -1471,7 +1492,7 @@ function Tr(e) {
|
|
|
1471
1492
|
};
|
|
1472
1493
|
}
|
|
1473
1494
|
}
|
|
1474
|
-
function
|
|
1495
|
+
function hi(e) {
|
|
1475
1496
|
var t;
|
|
1476
1497
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1477
1498
|
notation: "engineering"
|
|
@@ -1479,17 +1500,17 @@ function ui(e) {
|
|
|
1479
1500
|
notation: "scientific"
|
|
1480
1501
|
}, e = e.slice(1)), t) {
|
|
1481
1502
|
var r = e.slice(0, 2);
|
|
1482
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1503
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Tr.test(e))
|
|
1483
1504
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1484
1505
|
t.minimumIntegerDigits = e.length;
|
|
1485
1506
|
}
|
|
1486
1507
|
return t;
|
|
1487
1508
|
}
|
|
1488
|
-
function
|
|
1489
|
-
var t = {}, r =
|
|
1509
|
+
function $t(e) {
|
|
1510
|
+
var t = {}, r = Sr(e);
|
|
1490
1511
|
return r || t;
|
|
1491
1512
|
}
|
|
1492
|
-
function
|
|
1513
|
+
function ci(e) {
|
|
1493
1514
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1494
1515
|
var i = n[r];
|
|
1495
1516
|
switch (i.stem) {
|
|
@@ -1513,7 +1534,7 @@ function li(e) {
|
|
|
1513
1534
|
continue;
|
|
1514
1535
|
case "measure-unit":
|
|
1515
1536
|
case "unit":
|
|
1516
|
-
t.style = "unit", t.unit =
|
|
1537
|
+
t.style = "unit", t.unit = ui(i.options[0]);
|
|
1517
1538
|
continue;
|
|
1518
1539
|
case "compact-short":
|
|
1519
1540
|
case "K":
|
|
@@ -1524,13 +1545,13 @@ function li(e) {
|
|
|
1524
1545
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1525
1546
|
continue;
|
|
1526
1547
|
case "scientific":
|
|
1527
|
-
t =
|
|
1528
|
-
return
|
|
1548
|
+
t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1549
|
+
return B(B({}, l), $t(u));
|
|
1529
1550
|
}, {}));
|
|
1530
1551
|
continue;
|
|
1531
1552
|
case "engineering":
|
|
1532
|
-
t =
|
|
1533
|
-
return
|
|
1553
|
+
t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1554
|
+
return B(B({}, l), $t(u));
|
|
1534
1555
|
}, {}));
|
|
1535
1556
|
continue;
|
|
1536
1557
|
case "notation-simple":
|
|
@@ -1575,41 +1596,41 @@ function li(e) {
|
|
|
1575
1596
|
case "integer-width":
|
|
1576
1597
|
if (i.options.length > 1)
|
|
1577
1598
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1578
|
-
i.options[0].replace(
|
|
1599
|
+
i.options[0].replace(li, function(l, u, h, f, c, m) {
|
|
1579
1600
|
if (u)
|
|
1580
1601
|
t.minimumIntegerDigits = h.length;
|
|
1581
1602
|
else {
|
|
1582
1603
|
if (f && c)
|
|
1583
1604
|
throw new Error("We currently do not support maximum integer digits");
|
|
1584
|
-
if (
|
|
1605
|
+
if (m)
|
|
1585
1606
|
throw new Error("We currently do not support exact integer digits");
|
|
1586
1607
|
}
|
|
1587
1608
|
return "";
|
|
1588
1609
|
});
|
|
1589
1610
|
continue;
|
|
1590
1611
|
}
|
|
1591
|
-
if (
|
|
1612
|
+
if (Tr.test(i.stem)) {
|
|
1592
1613
|
t.minimumIntegerDigits = i.stem.length;
|
|
1593
1614
|
continue;
|
|
1594
1615
|
}
|
|
1595
|
-
if (
|
|
1616
|
+
if (Rt.test(i.stem)) {
|
|
1596
1617
|
if (i.options.length > 1)
|
|
1597
1618
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1598
|
-
i.stem.replace(
|
|
1599
|
-
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1619
|
+
i.stem.replace(Rt, function(l, u, h, f, c, m) {
|
|
1620
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1600
1621
|
});
|
|
1601
1622
|
var o = i.options[0];
|
|
1602
|
-
o === "w" ? t =
|
|
1623
|
+
o === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = B(B({}, t), Gt(o)));
|
|
1603
1624
|
continue;
|
|
1604
1625
|
}
|
|
1605
|
-
if (
|
|
1606
|
-
t =
|
|
1626
|
+
if (wr.test(i.stem)) {
|
|
1627
|
+
t = B(B({}, t), Gt(i.stem));
|
|
1607
1628
|
continue;
|
|
1608
1629
|
}
|
|
1609
|
-
var s =
|
|
1610
|
-
s && (t =
|
|
1611
|
-
var a =
|
|
1612
|
-
a && (t =
|
|
1630
|
+
var s = Sr(i.stem);
|
|
1631
|
+
s && (t = B(B({}, t), s));
|
|
1632
|
+
var a = hi(i.stem);
|
|
1633
|
+
a && (t = B(B({}, t), a));
|
|
1613
1634
|
}
|
|
1614
1635
|
return t;
|
|
1615
1636
|
}
|
|
@@ -3028,13 +3049,13 @@ var xe = {
|
|
|
3028
3049
|
"h"
|
|
3029
3050
|
]
|
|
3030
3051
|
};
|
|
3031
|
-
function
|
|
3052
|
+
function fi(e, t) {
|
|
3032
3053
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3033
3054
|
var i = e.charAt(n);
|
|
3034
3055
|
if (i === "j") {
|
|
3035
3056
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3036
3057
|
o++, n++;
|
|
3037
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3058
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = pi(t);
|
|
3038
3059
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3039
3060
|
r += l;
|
|
3040
3061
|
for (; s-- > 0; )
|
|
@@ -3044,7 +3065,7 @@ function hi(e, t) {
|
|
|
3044
3065
|
}
|
|
3045
3066
|
return r;
|
|
3046
3067
|
}
|
|
3047
|
-
function
|
|
3068
|
+
function pi(e) {
|
|
3048
3069
|
var t = e.hourCycle;
|
|
3049
3070
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3050
3071
|
e.hourCycles && // @ts-ignore
|
|
@@ -3066,20 +3087,20 @@ function ci(e) {
|
|
|
3066
3087
|
var i = xe[n || ""] || xe[r || ""] || xe["".concat(r, "-001")] || xe["001"];
|
|
3067
3088
|
return i[0];
|
|
3068
3089
|
}
|
|
3069
|
-
var
|
|
3090
|
+
var Xe, mi = new RegExp("^".concat(xr.source, "*")), di = new RegExp("".concat(xr.source, "*$"));
|
|
3070
3091
|
function E(e, t) {
|
|
3071
3092
|
return { start: e, end: t };
|
|
3072
3093
|
}
|
|
3073
|
-
var
|
|
3094
|
+
var bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), gi = !!String.fromCodePoint, vi = !!Object.fromEntries, yi = !!String.prototype.codePointAt, _i = !!String.prototype.trimStart, Ei = !!String.prototype.trimEnd, xi = !!Number.isSafeInteger, wi = xi ? Number.isSafeInteger : function(e) {
|
|
3074
3095
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3075
|
-
},
|
|
3096
|
+
}, ot = !0;
|
|
3076
3097
|
try {
|
|
3077
|
-
var
|
|
3078
|
-
|
|
3098
|
+
var Ti = Pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3099
|
+
ot = ((Xe = Ti.exec("a")) === null || Xe === void 0 ? void 0 : Xe[0]) === "a";
|
|
3079
3100
|
} catch (e) {
|
|
3080
|
-
|
|
3101
|
+
ot = !1;
|
|
3081
3102
|
}
|
|
3082
|
-
var
|
|
3103
|
+
var Ut = bi ? (
|
|
3083
3104
|
// Native
|
|
3084
3105
|
function(t, r, n) {
|
|
3085
3106
|
return t.startsWith(r, n);
|
|
@@ -3089,7 +3110,7 @@ var Gt = pi ? (
|
|
|
3089
3110
|
function(t, r, n) {
|
|
3090
3111
|
return t.slice(n, n + r.length) === r;
|
|
3091
3112
|
}
|
|
3092
|
-
),
|
|
3113
|
+
), st = gi ? String.fromCodePoint : (
|
|
3093
3114
|
// IE11
|
|
3094
3115
|
function() {
|
|
3095
3116
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3101,9 +3122,9 @@ var Gt = pi ? (
|
|
|
3101
3122
|
}
|
|
3102
3123
|
return n;
|
|
3103
3124
|
}
|
|
3104
|
-
),
|
|
3125
|
+
), Dt = (
|
|
3105
3126
|
// native
|
|
3106
|
-
|
|
3127
|
+
vi ? Object.fromEntries : (
|
|
3107
3128
|
// Ponyfill
|
|
3108
3129
|
function(t) {
|
|
3109
3130
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3113,7 +3134,7 @@ var Gt = pi ? (
|
|
|
3113
3134
|
return r;
|
|
3114
3135
|
}
|
|
3115
3136
|
)
|
|
3116
|
-
),
|
|
3137
|
+
), Hr = yi ? (
|
|
3117
3138
|
// Native
|
|
3118
3139
|
function(t, r) {
|
|
3119
3140
|
return t.codePointAt(r);
|
|
@@ -3127,7 +3148,7 @@ var Gt = pi ? (
|
|
|
3127
3148
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3128
3149
|
}
|
|
3129
3150
|
}
|
|
3130
|
-
),
|
|
3151
|
+
), Si = _i ? (
|
|
3131
3152
|
// Native
|
|
3132
3153
|
function(t) {
|
|
3133
3154
|
return t.trimStart();
|
|
@@ -3135,9 +3156,9 @@ var Gt = pi ? (
|
|
|
3135
3156
|
) : (
|
|
3136
3157
|
// Ponyfill
|
|
3137
3158
|
function(t) {
|
|
3138
|
-
return t.replace(
|
|
3159
|
+
return t.replace(mi, "");
|
|
3139
3160
|
}
|
|
3140
|
-
),
|
|
3161
|
+
), Hi = Ei ? (
|
|
3141
3162
|
// Native
|
|
3142
3163
|
function(t) {
|
|
3143
3164
|
return t.trimEnd();
|
|
@@ -3145,32 +3166,32 @@ var Gt = pi ? (
|
|
|
3145
3166
|
) : (
|
|
3146
3167
|
// Ponyfill
|
|
3147
3168
|
function(t) {
|
|
3148
|
-
return t.replace(
|
|
3169
|
+
return t.replace(di, "");
|
|
3149
3170
|
}
|
|
3150
3171
|
);
|
|
3151
|
-
function
|
|
3172
|
+
function Pr(e, t) {
|
|
3152
3173
|
return new RegExp(e, t);
|
|
3153
3174
|
}
|
|
3154
|
-
var
|
|
3155
|
-
if (
|
|
3156
|
-
var
|
|
3157
|
-
|
|
3175
|
+
var at;
|
|
3176
|
+
if (ot) {
|
|
3177
|
+
var Ft = Pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3178
|
+
at = function(t, r) {
|
|
3158
3179
|
var n;
|
|
3159
|
-
|
|
3160
|
-
var i =
|
|
3180
|
+
Ft.lastIndex = r;
|
|
3181
|
+
var i = Ft.exec(t);
|
|
3161
3182
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3162
3183
|
};
|
|
3163
3184
|
} else
|
|
3164
|
-
|
|
3185
|
+
at = function(t, r) {
|
|
3165
3186
|
for (var n = []; ; ) {
|
|
3166
|
-
var i =
|
|
3167
|
-
if (i === void 0 || Br(i) ||
|
|
3187
|
+
var i = Hr(t, r);
|
|
3188
|
+
if (i === void 0 || Br(i) || Oi(i))
|
|
3168
3189
|
break;
|
|
3169
3190
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3170
3191
|
}
|
|
3171
|
-
return
|
|
3192
|
+
return st.apply(void 0, n);
|
|
3172
3193
|
};
|
|
3173
|
-
var
|
|
3194
|
+
var Pi = (
|
|
3174
3195
|
/** @class */
|
|
3175
3196
|
function() {
|
|
3176
3197
|
function e(t, r) {
|
|
@@ -3194,14 +3215,14 @@ var Si = (
|
|
|
3194
3215
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3195
3216
|
var a = this.clonePosition();
|
|
3196
3217
|
this.bump(), i.push({
|
|
3197
|
-
type:
|
|
3218
|
+
type: T.pound,
|
|
3198
3219
|
location: E(a, this.clonePosition())
|
|
3199
3220
|
});
|
|
3200
3221
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3201
3222
|
if (n)
|
|
3202
3223
|
break;
|
|
3203
3224
|
return this.error(y.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3204
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3225
|
+
} else if (o === 60 && !this.ignoreTag && ut(this.peek() || 0)) {
|
|
3205
3226
|
var s = this.parseTag(t, r);
|
|
3206
3227
|
if (s.err)
|
|
3207
3228
|
return s;
|
|
@@ -3222,7 +3243,7 @@ var Si = (
|
|
|
3222
3243
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3223
3244
|
return {
|
|
3224
3245
|
val: {
|
|
3225
|
-
type:
|
|
3246
|
+
type: T.literal,
|
|
3226
3247
|
value: "<".concat(i, "/>"),
|
|
3227
3248
|
location: E(n, this.clonePosition())
|
|
3228
3249
|
},
|
|
@@ -3234,12 +3255,12 @@ var Si = (
|
|
|
3234
3255
|
return o;
|
|
3235
3256
|
var s = o.val, a = this.clonePosition();
|
|
3236
3257
|
if (this.bumpIf("</")) {
|
|
3237
|
-
if (this.isEOF() || !
|
|
3258
|
+
if (this.isEOF() || !ut(this.char()))
|
|
3238
3259
|
return this.error(y.INVALID_TAG, E(a, this.clonePosition()));
|
|
3239
3260
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3240
3261
|
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3241
3262
|
val: {
|
|
3242
|
-
type:
|
|
3263
|
+
type: T.tag,
|
|
3243
3264
|
value: i,
|
|
3244
3265
|
children: s,
|
|
3245
3266
|
location: E(n, this.clonePosition())
|
|
@@ -3252,7 +3273,7 @@ var Si = (
|
|
|
3252
3273
|
return this.error(y.INVALID_TAG, E(n, this.clonePosition()));
|
|
3253
3274
|
}, e.prototype.parseTagName = function() {
|
|
3254
3275
|
var t = this.offset();
|
|
3255
|
-
for (this.bump(); !this.isEOF() &&
|
|
3276
|
+
for (this.bump(); !this.isEOF() && Ai(this.char()); )
|
|
3256
3277
|
this.bump();
|
|
3257
3278
|
return this.message.slice(t, this.offset());
|
|
3258
3279
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3276,12 +3297,12 @@ var Si = (
|
|
|
3276
3297
|
}
|
|
3277
3298
|
var l = E(n, this.clonePosition());
|
|
3278
3299
|
return {
|
|
3279
|
-
val: { type:
|
|
3300
|
+
val: { type: T.literal, value: i, location: l },
|
|
3280
3301
|
err: null
|
|
3281
3302
|
};
|
|
3282
3303
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3283
3304
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3284
|
-
!
|
|
3305
|
+
!Bi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3285
3306
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3286
3307
|
if (this.isEOF() || this.char() !== 39)
|
|
3287
3308
|
return null;
|
|
@@ -3315,12 +3336,12 @@ var Si = (
|
|
|
3315
3336
|
r.push(n);
|
|
3316
3337
|
this.bump();
|
|
3317
3338
|
}
|
|
3318
|
-
return
|
|
3339
|
+
return st.apply(void 0, r);
|
|
3319
3340
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3320
3341
|
if (this.isEOF())
|
|
3321
3342
|
return null;
|
|
3322
3343
|
var n = this.char();
|
|
3323
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3344
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), st(n));
|
|
3324
3345
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3325
3346
|
var n = this.clonePosition();
|
|
3326
3347
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3336,7 +3357,7 @@ var Si = (
|
|
|
3336
3357
|
case 125:
|
|
3337
3358
|
return this.bump(), {
|
|
3338
3359
|
val: {
|
|
3339
|
-
type:
|
|
3360
|
+
type: T.argument,
|
|
3340
3361
|
// value does not include the opening and closing braces.
|
|
3341
3362
|
value: i,
|
|
3342
3363
|
location: E(n, this.clonePosition())
|
|
@@ -3349,7 +3370,7 @@ var Si = (
|
|
|
3349
3370
|
return this.error(y.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3350
3371
|
}
|
|
3351
3372
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3352
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3373
|
+
var t = this.clonePosition(), r = this.offset(), n = at(this.message, r), i = r + n.length;
|
|
3353
3374
|
this.bumpTo(i);
|
|
3354
3375
|
var o = this.clonePosition(), s = E(t, o);
|
|
3355
3376
|
return { value: n, location: s };
|
|
@@ -3368,35 +3389,35 @@ var Si = (
|
|
|
3368
3389
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3369
3390
|
if (f.err)
|
|
3370
3391
|
return f;
|
|
3371
|
-
var c =
|
|
3392
|
+
var c = Hi(f.val);
|
|
3372
3393
|
if (c.length === 0)
|
|
3373
3394
|
return this.error(y.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3374
|
-
var
|
|
3375
|
-
u = { style: c, styleLocation:
|
|
3395
|
+
var m = E(h, this.clonePosition());
|
|
3396
|
+
u = { style: c, styleLocation: m };
|
|
3376
3397
|
}
|
|
3377
3398
|
var d = this.tryParseArgumentClose(i);
|
|
3378
3399
|
if (d.err)
|
|
3379
3400
|
return d;
|
|
3380
3401
|
var b = E(i, this.clonePosition());
|
|
3381
|
-
if (u &&
|
|
3382
|
-
var
|
|
3402
|
+
if (u && Ut(u == null ? void 0 : u.style, "::", 0)) {
|
|
3403
|
+
var w = Si(u.style.slice(2));
|
|
3383
3404
|
if (a === "number") {
|
|
3384
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3405
|
+
var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3385
3406
|
return f.err ? f : {
|
|
3386
|
-
val: { type:
|
|
3407
|
+
val: { type: T.number, value: n, location: b, style: f.val },
|
|
3387
3408
|
err: null
|
|
3388
3409
|
};
|
|
3389
3410
|
} else {
|
|
3390
|
-
if (
|
|
3411
|
+
if (w.length === 0)
|
|
3391
3412
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
|
3392
|
-
var O =
|
|
3393
|
-
this.locale && (O =
|
|
3413
|
+
var O = w;
|
|
3414
|
+
this.locale && (O = fi(w, this.locale));
|
|
3394
3415
|
var c = {
|
|
3395
|
-
type:
|
|
3416
|
+
type: oe.dateTime,
|
|
3396
3417
|
pattern: O,
|
|
3397
3418
|
location: u.styleLocation,
|
|
3398
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3399
|
-
}, _ = a === "date" ?
|
|
3419
|
+
parsedOptions: this.shouldParseSkeletons ? oi(O) : {}
|
|
3420
|
+
}, _ = a === "date" ? T.date : T.time;
|
|
3400
3421
|
return {
|
|
3401
3422
|
val: { type: _, value: n, location: b, style: c },
|
|
3402
3423
|
err: null
|
|
@@ -3405,7 +3426,7 @@ var Si = (
|
|
|
3405
3426
|
}
|
|
3406
3427
|
return {
|
|
3407
3428
|
val: {
|
|
3408
|
-
type: a === "number" ?
|
|
3429
|
+
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
|
3409
3430
|
value: n,
|
|
3410
3431
|
location: b,
|
|
3411
3432
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -3416,9 +3437,9 @@ var Si = (
|
|
|
3416
3437
|
case "plural":
|
|
3417
3438
|
case "selectordinal":
|
|
3418
3439
|
case "select": {
|
|
3419
|
-
var
|
|
3440
|
+
var S = this.clonePosition();
|
|
3420
3441
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3421
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, E(
|
|
3442
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, E(S, Ae({}, S)));
|
|
3422
3443
|
this.bumpSpace();
|
|
3423
3444
|
var L = this.parseIdentifierIfPossible(), g = 0;
|
|
3424
3445
|
if (a !== "select" && L.value === "offset") {
|
|
@@ -3436,23 +3457,23 @@ var Si = (
|
|
|
3436
3457
|
var d = this.tryParseArgumentClose(i);
|
|
3437
3458
|
if (d.err)
|
|
3438
3459
|
return d;
|
|
3439
|
-
var
|
|
3460
|
+
var H = E(i, this.clonePosition());
|
|
3440
3461
|
return a === "select" ? {
|
|
3441
3462
|
val: {
|
|
3442
|
-
type:
|
|
3463
|
+
type: T.select,
|
|
3443
3464
|
value: n,
|
|
3444
|
-
options:
|
|
3445
|
-
location:
|
|
3465
|
+
options: Dt(P.val),
|
|
3466
|
+
location: H
|
|
3446
3467
|
},
|
|
3447
3468
|
err: null
|
|
3448
3469
|
} : {
|
|
3449
3470
|
val: {
|
|
3450
|
-
type:
|
|
3471
|
+
type: T.plural,
|
|
3451
3472
|
value: n,
|
|
3452
|
-
options:
|
|
3473
|
+
options: Dt(P.val),
|
|
3453
3474
|
offset: g,
|
|
3454
3475
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3455
|
-
location:
|
|
3476
|
+
location: H
|
|
3456
3477
|
},
|
|
3457
3478
|
err: null
|
|
3458
3479
|
};
|
|
@@ -3500,16 +3521,16 @@ var Si = (
|
|
|
3500
3521
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3501
3522
|
var n = [];
|
|
3502
3523
|
try {
|
|
3503
|
-
n =
|
|
3524
|
+
n = ai(t);
|
|
3504
3525
|
} catch (i) {
|
|
3505
3526
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3506
3527
|
}
|
|
3507
3528
|
return {
|
|
3508
3529
|
val: {
|
|
3509
|
-
type:
|
|
3530
|
+
type: oe.number,
|
|
3510
3531
|
tokens: n,
|
|
3511
3532
|
location: r,
|
|
3512
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3533
|
+
parsedOptions: this.shouldParseSkeletons ? ci(n) : {}
|
|
3513
3534
|
},
|
|
3514
3535
|
err: null
|
|
3515
3536
|
};
|
|
@@ -3528,20 +3549,20 @@ var Si = (
|
|
|
3528
3549
|
if (l.has(u))
|
|
3529
3550
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3530
3551
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3531
|
-
var
|
|
3552
|
+
var m = this.clonePosition();
|
|
3532
3553
|
if (!this.bumpIf("{"))
|
|
3533
3554
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
3534
3555
|
var d = this.parseMessage(t + 1, r, n);
|
|
3535
3556
|
if (d.err)
|
|
3536
3557
|
return d;
|
|
3537
|
-
var b = this.tryParseArgumentClose(
|
|
3558
|
+
var b = this.tryParseArgumentClose(m);
|
|
3538
3559
|
if (b.err)
|
|
3539
3560
|
return b;
|
|
3540
3561
|
a.push([
|
|
3541
3562
|
u,
|
|
3542
3563
|
{
|
|
3543
3564
|
value: d.val,
|
|
3544
|
-
location: E(
|
|
3565
|
+
location: E(m, this.clonePosition())
|
|
3545
3566
|
}
|
|
3546
3567
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3547
3568
|
}
|
|
@@ -3557,7 +3578,7 @@ var Si = (
|
|
|
3557
3578
|
break;
|
|
3558
3579
|
}
|
|
3559
3580
|
var l = E(i, this.clonePosition());
|
|
3560
|
-
return o ? (s *= n,
|
|
3581
|
+
return o ? (s *= n, wi(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3561
3582
|
}, e.prototype.offset = function() {
|
|
3562
3583
|
return this.position.offset;
|
|
3563
3584
|
}, e.prototype.isEOF = function() {
|
|
@@ -3572,7 +3593,7 @@ var Si = (
|
|
|
3572
3593
|
var t = this.position.offset;
|
|
3573
3594
|
if (t >= this.message.length)
|
|
3574
3595
|
throw Error("out of bound");
|
|
3575
|
-
var r =
|
|
3596
|
+
var r = Hr(this.message, t);
|
|
3576
3597
|
if (r === void 0)
|
|
3577
3598
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3578
3599
|
return r;
|
|
@@ -3591,7 +3612,7 @@ var Si = (
|
|
|
3591
3612
|
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);
|
|
3592
3613
|
}
|
|
3593
3614
|
}, e.prototype.bumpIf = function(t) {
|
|
3594
|
-
if (
|
|
3615
|
+
if (Ut(this.message, t, this.offset())) {
|
|
3595
3616
|
for (var r = 0; r < t.length; r++)
|
|
3596
3617
|
this.bump();
|
|
3597
3618
|
return !0;
|
|
@@ -3623,47 +3644,47 @@ var Si = (
|
|
|
3623
3644
|
}, e;
|
|
3624
3645
|
}()
|
|
3625
3646
|
);
|
|
3626
|
-
function
|
|
3647
|
+
function ut(e) {
|
|
3627
3648
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3628
3649
|
}
|
|
3629
|
-
function Hi(e) {
|
|
3630
|
-
return it(e) || e === 47;
|
|
3631
|
-
}
|
|
3632
3650
|
function Bi(e) {
|
|
3651
|
+
return ut(e) || e === 47;
|
|
3652
|
+
}
|
|
3653
|
+
function Ai(e) {
|
|
3633
3654
|
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;
|
|
3634
3655
|
}
|
|
3635
3656
|
function Br(e) {
|
|
3636
3657
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3637
3658
|
}
|
|
3638
|
-
function
|
|
3659
|
+
function Oi(e) {
|
|
3639
3660
|
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;
|
|
3640
3661
|
}
|
|
3641
|
-
function
|
|
3662
|
+
function lt(e) {
|
|
3642
3663
|
e.forEach(function(t) {
|
|
3643
|
-
if (delete t.location,
|
|
3664
|
+
if (delete t.location, vr(t) || yr(t))
|
|
3644
3665
|
for (var r in t.options)
|
|
3645
|
-
delete t.options[r].location,
|
|
3666
|
+
delete t.options[r].location, lt(t.options[r].value);
|
|
3646
3667
|
else
|
|
3647
|
-
|
|
3668
|
+
dr(t) && Er(t.style) || (br(t) || gr(t)) && it(t.style) ? delete t.style.location : _r(t) && lt(t.children);
|
|
3648
3669
|
});
|
|
3649
3670
|
}
|
|
3650
|
-
function
|
|
3651
|
-
t === void 0 && (t = {}), t =
|
|
3652
|
-
var r = new
|
|
3671
|
+
function Ni(e, t) {
|
|
3672
|
+
t === void 0 && (t = {}), t = Ae({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3673
|
+
var r = new Pi(e, t).parse();
|
|
3653
3674
|
if (r.err) {
|
|
3654
3675
|
var n = SyntaxError(y[r.err.kind]);
|
|
3655
3676
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3656
3677
|
}
|
|
3657
|
-
return t != null && t.captureLocation ||
|
|
3678
|
+
return t != null && t.captureLocation || lt(r.val), r.val;
|
|
3658
3679
|
}
|
|
3659
|
-
var
|
|
3680
|
+
var se;
|
|
3660
3681
|
(function(e) {
|
|
3661
3682
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3662
|
-
})(
|
|
3663
|
-
var
|
|
3683
|
+
})(se || (se = {}));
|
|
3684
|
+
var Re = (
|
|
3664
3685
|
/** @class */
|
|
3665
3686
|
function(e) {
|
|
3666
|
-
|
|
3687
|
+
Me(t, e);
|
|
3667
3688
|
function t(r, n, i) {
|
|
3668
3689
|
var o = e.call(this, r) || this;
|
|
3669
3690
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3672,48 +3693,48 @@ var Le = (
|
|
|
3672
3693
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3673
3694
|
}, t;
|
|
3674
3695
|
}(Error)
|
|
3675
|
-
),
|
|
3696
|
+
), jt = (
|
|
3676
3697
|
/** @class */
|
|
3677
3698
|
function(e) {
|
|
3678
|
-
|
|
3699
|
+
Me(t, e);
|
|
3679
3700
|
function t(r, n, i, o) {
|
|
3680
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3701
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), se.INVALID_VALUE, o) || this;
|
|
3681
3702
|
}
|
|
3682
3703
|
return t;
|
|
3683
|
-
}(
|
|
3684
|
-
),
|
|
3704
|
+
}(Re)
|
|
3705
|
+
), Ci = (
|
|
3685
3706
|
/** @class */
|
|
3686
3707
|
function(e) {
|
|
3687
|
-
|
|
3708
|
+
Me(t, e);
|
|
3688
3709
|
function t(r, n, i) {
|
|
3689
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3710
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), se.INVALID_VALUE, i) || this;
|
|
3690
3711
|
}
|
|
3691
3712
|
return t;
|
|
3692
|
-
}(
|
|
3693
|
-
),
|
|
3713
|
+
}(Re)
|
|
3714
|
+
), Ii = (
|
|
3694
3715
|
/** @class */
|
|
3695
3716
|
function(e) {
|
|
3696
|
-
|
|
3717
|
+
Me(t, e);
|
|
3697
3718
|
function t(r, n) {
|
|
3698
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3719
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), se.MISSING_VALUE, n) || this;
|
|
3699
3720
|
}
|
|
3700
3721
|
return t;
|
|
3701
|
-
}(
|
|
3722
|
+
}(Re)
|
|
3702
3723
|
), M;
|
|
3703
3724
|
(function(e) {
|
|
3704
3725
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3705
3726
|
})(M || (M = {}));
|
|
3706
|
-
function
|
|
3727
|
+
function Li(e) {
|
|
3707
3728
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3708
3729
|
var n = t[t.length - 1];
|
|
3709
3730
|
return !n || n.type !== M.literal || r.type !== M.literal ? t.push(r) : n.value += r.value, t;
|
|
3710
3731
|
}, []);
|
|
3711
3732
|
}
|
|
3712
|
-
function
|
|
3733
|
+
function Mi(e) {
|
|
3713
3734
|
return typeof e == "function";
|
|
3714
3735
|
}
|
|
3715
3736
|
function Se(e, t, r, n, i, o, s) {
|
|
3716
|
-
if (e.length === 1 &&
|
|
3737
|
+
if (e.length === 1 && Mt(e[0]))
|
|
3717
3738
|
return [
|
|
3718
3739
|
{
|
|
3719
3740
|
type: M.literal,
|
|
@@ -3722,14 +3743,14 @@ function Se(e, t, r, n, i, o, s) {
|
|
|
3722
3743
|
];
|
|
3723
3744
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3724
3745
|
var h = u[l];
|
|
3725
|
-
if (
|
|
3746
|
+
if (Mt(h)) {
|
|
3726
3747
|
a.push({
|
|
3727
3748
|
type: M.literal,
|
|
3728
3749
|
value: h.value
|
|
3729
3750
|
});
|
|
3730
3751
|
continue;
|
|
3731
3752
|
}
|
|
3732
|
-
if (
|
|
3753
|
+
if (ni(h)) {
|
|
3733
3754
|
typeof o == "number" && a.push({
|
|
3734
3755
|
type: M.literal,
|
|
3735
3756
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3738,44 +3759,44 @@ function Se(e, t, r, n, i, o, s) {
|
|
|
3738
3759
|
}
|
|
3739
3760
|
var f = h.value;
|
|
3740
3761
|
if (!(i && f in i))
|
|
3741
|
-
throw new
|
|
3762
|
+
throw new Ii(f, s);
|
|
3742
3763
|
var c = i[f];
|
|
3743
|
-
if (
|
|
3764
|
+
if (ri(h)) {
|
|
3744
3765
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3745
3766
|
type: typeof c == "string" ? M.literal : M.object,
|
|
3746
3767
|
value: c
|
|
3747
3768
|
});
|
|
3748
3769
|
continue;
|
|
3749
3770
|
}
|
|
3750
|
-
if (
|
|
3751
|
-
var
|
|
3771
|
+
if (br(h)) {
|
|
3772
|
+
var m = typeof h.style == "string" ? n.date[h.style] : it(h.style) ? h.style.parsedOptions : void 0;
|
|
3752
3773
|
a.push({
|
|
3753
3774
|
type: M.literal,
|
|
3754
|
-
value: r.getDateTimeFormat(t,
|
|
3775
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3755
3776
|
});
|
|
3756
3777
|
continue;
|
|
3757
3778
|
}
|
|
3758
|
-
if (
|
|
3759
|
-
var
|
|
3779
|
+
if (gr(h)) {
|
|
3780
|
+
var m = typeof h.style == "string" ? n.time[h.style] : it(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3760
3781
|
a.push({
|
|
3761
3782
|
type: M.literal,
|
|
3762
|
-
value: r.getDateTimeFormat(t,
|
|
3783
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3763
3784
|
});
|
|
3764
3785
|
continue;
|
|
3765
3786
|
}
|
|
3766
|
-
if (
|
|
3767
|
-
var
|
|
3768
|
-
|
|
3787
|
+
if (dr(h)) {
|
|
3788
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Er(h.style) ? h.style.parsedOptions : void 0;
|
|
3789
|
+
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
|
3769
3790
|
type: M.literal,
|
|
3770
|
-
value: r.getNumberFormat(t,
|
|
3791
|
+
value: r.getNumberFormat(t, m).format(c)
|
|
3771
3792
|
});
|
|
3772
3793
|
continue;
|
|
3773
3794
|
}
|
|
3774
|
-
if (
|
|
3775
|
-
var d = h.children, b = h.value,
|
|
3776
|
-
if (!
|
|
3777
|
-
throw new
|
|
3778
|
-
var O = Se(d, t, r, n, i, o), _ =
|
|
3795
|
+
if (_r(h)) {
|
|
3796
|
+
var d = h.children, b = h.value, w = i[b];
|
|
3797
|
+
if (!Mi(w))
|
|
3798
|
+
throw new Ci(b, "function", s);
|
|
3799
|
+
var O = Se(d, t, r, n, i, o), _ = w(O.map(function(g) {
|
|
3779
3800
|
return g.value;
|
|
3780
3801
|
}));
|
|
3781
3802
|
Array.isArray(_) || (_ = [_]), a.push.apply(a, _.map(function(g) {
|
|
@@ -3785,42 +3806,42 @@ function Se(e, t, r, n, i, o, s) {
|
|
|
3785
3806
|
};
|
|
3786
3807
|
}));
|
|
3787
3808
|
}
|
|
3788
|
-
if (
|
|
3789
|
-
var
|
|
3790
|
-
if (!
|
|
3791
|
-
throw new
|
|
3792
|
-
a.push.apply(a, Se(
|
|
3809
|
+
if (vr(h)) {
|
|
3810
|
+
var S = h.options[c] || h.options.other;
|
|
3811
|
+
if (!S)
|
|
3812
|
+
throw new jt(h.value, c, Object.keys(h.options), s);
|
|
3813
|
+
a.push.apply(a, Se(S.value, t, r, n, i));
|
|
3793
3814
|
continue;
|
|
3794
3815
|
}
|
|
3795
|
-
if (
|
|
3796
|
-
var
|
|
3797
|
-
if (!
|
|
3816
|
+
if (yr(h)) {
|
|
3817
|
+
var S = h.options["=".concat(c)];
|
|
3818
|
+
if (!S) {
|
|
3798
3819
|
if (!Intl.PluralRules)
|
|
3799
|
-
throw new
|
|
3820
|
+
throw new Re(`Intl.PluralRules is not available in this environment.
|
|
3800
3821
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3801
|
-
`,
|
|
3822
|
+
`, se.MISSING_INTL_API, s);
|
|
3802
3823
|
var L = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3803
|
-
|
|
3824
|
+
S = h.options[L] || h.options.other;
|
|
3804
3825
|
}
|
|
3805
|
-
if (!
|
|
3806
|
-
throw new
|
|
3807
|
-
a.push.apply(a, Se(
|
|
3826
|
+
if (!S)
|
|
3827
|
+
throw new jt(h.value, c, Object.keys(h.options), s);
|
|
3828
|
+
a.push.apply(a, Se(S.value, t, r, n, i, c - (h.offset || 0)));
|
|
3808
3829
|
continue;
|
|
3809
3830
|
}
|
|
3810
3831
|
}
|
|
3811
|
-
return
|
|
3832
|
+
return Li(a);
|
|
3812
3833
|
}
|
|
3813
|
-
function
|
|
3814
|
-
return t ?
|
|
3815
|
-
return r[n] =
|
|
3834
|
+
function Ri(e, t) {
|
|
3835
|
+
return t ? F(F(F({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3836
|
+
return r[n] = F(F({}, e[n]), t[n] || {}), r;
|
|
3816
3837
|
}, {})) : e;
|
|
3817
3838
|
}
|
|
3818
|
-
function
|
|
3839
|
+
function Gi(e, t) {
|
|
3819
3840
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3820
|
-
return r[n] =
|
|
3821
|
-
},
|
|
3841
|
+
return r[n] = Ri(e[n], t[n]), r;
|
|
3842
|
+
}, F({}, e)) : e;
|
|
3822
3843
|
}
|
|
3823
|
-
function
|
|
3844
|
+
function We(e) {
|
|
3824
3845
|
return {
|
|
3825
3846
|
create: function() {
|
|
3826
3847
|
return {
|
|
@@ -3834,39 +3855,39 @@ function Ve(e) {
|
|
|
3834
3855
|
}
|
|
3835
3856
|
};
|
|
3836
3857
|
}
|
|
3837
|
-
function
|
|
3858
|
+
function $i(e) {
|
|
3838
3859
|
return e === void 0 && (e = {
|
|
3839
3860
|
number: {},
|
|
3840
3861
|
dateTime: {},
|
|
3841
3862
|
pluralRules: {}
|
|
3842
3863
|
}), {
|
|
3843
|
-
getNumberFormat:
|
|
3864
|
+
getNumberFormat: ke(function() {
|
|
3844
3865
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3845
3866
|
r[n] = arguments[n];
|
|
3846
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3867
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, je([void 0], r, !1)))();
|
|
3847
3868
|
}, {
|
|
3848
|
-
cache:
|
|
3849
|
-
strategy:
|
|
3869
|
+
cache: We(e.number),
|
|
3870
|
+
strategy: Ve.variadic
|
|
3850
3871
|
}),
|
|
3851
|
-
getDateTimeFormat:
|
|
3872
|
+
getDateTimeFormat: ke(function() {
|
|
3852
3873
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3853
3874
|
r[n] = arguments[n];
|
|
3854
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3875
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, je([void 0], r, !1)))();
|
|
3855
3876
|
}, {
|
|
3856
|
-
cache:
|
|
3857
|
-
strategy:
|
|
3877
|
+
cache: We(e.dateTime),
|
|
3878
|
+
strategy: Ve.variadic
|
|
3858
3879
|
}),
|
|
3859
|
-
getPluralRules:
|
|
3880
|
+
getPluralRules: ke(function() {
|
|
3860
3881
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3861
3882
|
r[n] = arguments[n];
|
|
3862
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3883
|
+
return new ((t = Intl.PluralRules).bind.apply(t, je([void 0], r, !1)))();
|
|
3863
3884
|
}, {
|
|
3864
|
-
cache:
|
|
3865
|
-
strategy:
|
|
3885
|
+
cache: We(e.pluralRules),
|
|
3886
|
+
strategy: Ve.variadic
|
|
3866
3887
|
})
|
|
3867
3888
|
};
|
|
3868
3889
|
}
|
|
3869
|
-
var
|
|
3890
|
+
var Ui = (
|
|
3870
3891
|
/** @class */
|
|
3871
3892
|
function() {
|
|
3872
3893
|
function e(t, r, n, i) {
|
|
@@ -3898,13 +3919,13 @@ var Gi = (
|
|
|
3898
3919
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3899
3920
|
var s = i || {};
|
|
3900
3921
|
s.formatters;
|
|
3901
|
-
var a =
|
|
3902
|
-
this.ast = e.__parse(t,
|
|
3922
|
+
var a = Zn(s, ["formatters"]);
|
|
3923
|
+
this.ast = e.__parse(t, F(F({}, a), { locale: this.resolvedLocale }));
|
|
3903
3924
|
} else
|
|
3904
3925
|
this.ast = t;
|
|
3905
3926
|
if (!Array.isArray(this.ast))
|
|
3906
3927
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3907
|
-
this.formats =
|
|
3928
|
+
this.formats = Gi(e.formats, n), this.formatters = i && i.formatters || $i(this.formatterCache);
|
|
3908
3929
|
}
|
|
3909
3930
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3910
3931
|
get: function() {
|
|
@@ -3917,7 +3938,7 @@ var Gi = (
|
|
|
3917
3938
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3918
3939
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3919
3940
|
}
|
|
3920
|
-
}, e.__parse =
|
|
3941
|
+
}, e.__parse = Ni, e.formats = {
|
|
3921
3942
|
number: {
|
|
3922
3943
|
integer: {
|
|
3923
3944
|
maximumFractionDigits: 0
|
|
@@ -3978,7 +3999,7 @@ var Gi = (
|
|
|
3978
3999
|
}, e;
|
|
3979
4000
|
}()
|
|
3980
4001
|
);
|
|
3981
|
-
function
|
|
4002
|
+
function Di(e, t) {
|
|
3982
4003
|
if (t == null)
|
|
3983
4004
|
return;
|
|
3984
4005
|
if (t in e)
|
|
@@ -3999,92 +4020,92 @@ function $i(e, t) {
|
|
|
3999
4020
|
n = void 0;
|
|
4000
4021
|
return n;
|
|
4001
4022
|
}
|
|
4002
|
-
const z = {},
|
|
4023
|
+
const z = {}, Fi = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), Ar = (e, t) => {
|
|
4003
4024
|
if (t == null)
|
|
4004
4025
|
return;
|
|
4005
4026
|
if (t in z && e in z[t])
|
|
4006
4027
|
return z[t][e];
|
|
4007
|
-
const r =
|
|
4028
|
+
const r = Ge(t);
|
|
4008
4029
|
for (let n = 0; n < r.length; n++) {
|
|
4009
|
-
const i = r[n], o =
|
|
4030
|
+
const i = r[n], o = ki(i, e);
|
|
4010
4031
|
if (o)
|
|
4011
|
-
return
|
|
4032
|
+
return Fi(e, t, o);
|
|
4012
4033
|
}
|
|
4013
4034
|
};
|
|
4014
|
-
let
|
|
4015
|
-
const
|
|
4016
|
-
function
|
|
4017
|
-
return
|
|
4035
|
+
let pt;
|
|
4036
|
+
const he = Le({});
|
|
4037
|
+
function ji(e) {
|
|
4038
|
+
return pt[e] || null;
|
|
4018
4039
|
}
|
|
4019
|
-
function
|
|
4020
|
-
return e in
|
|
4040
|
+
function Or(e) {
|
|
4041
|
+
return e in pt;
|
|
4021
4042
|
}
|
|
4022
|
-
function
|
|
4023
|
-
if (!
|
|
4043
|
+
function ki(e, t) {
|
|
4044
|
+
if (!Or(e))
|
|
4024
4045
|
return null;
|
|
4025
|
-
const r =
|
|
4026
|
-
return
|
|
4046
|
+
const r = ji(e);
|
|
4047
|
+
return Di(r, t);
|
|
4027
4048
|
}
|
|
4028
|
-
function
|
|
4049
|
+
function Vi(e) {
|
|
4029
4050
|
if (e == null)
|
|
4030
4051
|
return;
|
|
4031
|
-
const t =
|
|
4052
|
+
const t = Ge(e);
|
|
4032
4053
|
for (let r = 0; r < t.length; r++) {
|
|
4033
4054
|
const n = t[r];
|
|
4034
|
-
if (
|
|
4055
|
+
if (Or(n))
|
|
4035
4056
|
return n;
|
|
4036
4057
|
}
|
|
4037
4058
|
}
|
|
4038
|
-
function
|
|
4039
|
-
delete z[e],
|
|
4059
|
+
function Nr(e, ...t) {
|
|
4060
|
+
delete z[e], he.update((r) => (r[e] = zn.all([r[e] || {}, ...t]), r));
|
|
4040
4061
|
}
|
|
4041
|
-
|
|
4042
|
-
[
|
|
4062
|
+
le(
|
|
4063
|
+
[he],
|
|
4043
4064
|
([e]) => Object.keys(e)
|
|
4044
4065
|
);
|
|
4045
|
-
|
|
4066
|
+
he.subscribe((e) => pt = e);
|
|
4046
4067
|
const He = {};
|
|
4047
|
-
function
|
|
4068
|
+
function Xi(e, t) {
|
|
4048
4069
|
He[e].delete(t), He[e].size === 0 && delete He[e];
|
|
4049
4070
|
}
|
|
4050
|
-
function
|
|
4071
|
+
function Cr(e) {
|
|
4051
4072
|
return He[e];
|
|
4052
4073
|
}
|
|
4053
|
-
function
|
|
4054
|
-
return
|
|
4055
|
-
const r =
|
|
4074
|
+
function Wi(e) {
|
|
4075
|
+
return Ge(e).map((t) => {
|
|
4076
|
+
const r = Cr(t);
|
|
4056
4077
|
return [t, r ? [...r] : []];
|
|
4057
4078
|
}).filter(([, t]) => t.length > 0);
|
|
4058
4079
|
}
|
|
4059
|
-
function
|
|
4060
|
-
return e == null ? !1 :
|
|
4080
|
+
function ht(e) {
|
|
4081
|
+
return e == null ? !1 : Ge(e).some(
|
|
4061
4082
|
(t) => {
|
|
4062
4083
|
var r;
|
|
4063
|
-
return (r =
|
|
4084
|
+
return (r = Cr(t)) == null ? void 0 : r.size;
|
|
4064
4085
|
}
|
|
4065
4086
|
);
|
|
4066
4087
|
}
|
|
4067
|
-
function
|
|
4088
|
+
function zi(e, t) {
|
|
4068
4089
|
return Promise.all(
|
|
4069
|
-
t.map((n) => (
|
|
4070
|
-
).then((n) =>
|
|
4071
|
-
}
|
|
4072
|
-
const
|
|
4073
|
-
function
|
|
4074
|
-
if (!
|
|
4075
|
-
return e in
|
|
4076
|
-
const t =
|
|
4077
|
-
return
|
|
4090
|
+
t.map((n) => (Xi(e, n), n().then((i) => i.default || i)))
|
|
4091
|
+
).then((n) => Nr(e, ...n));
|
|
4092
|
+
}
|
|
4093
|
+
const fe = {};
|
|
4094
|
+
function Ir(e) {
|
|
4095
|
+
if (!ht(e))
|
|
4096
|
+
return e in fe ? fe[e] : Promise.resolve();
|
|
4097
|
+
const t = Wi(e);
|
|
4098
|
+
return fe[e] = Promise.all(
|
|
4078
4099
|
t.map(
|
|
4079
|
-
([r, n]) =>
|
|
4100
|
+
([r, n]) => zi(r, n)
|
|
4080
4101
|
)
|
|
4081
4102
|
).then(() => {
|
|
4082
|
-
if (
|
|
4083
|
-
return
|
|
4084
|
-
delete
|
|
4085
|
-
}),
|
|
4103
|
+
if (ht(e))
|
|
4104
|
+
return Ir(e);
|
|
4105
|
+
delete fe[e];
|
|
4106
|
+
}), fe[e];
|
|
4086
4107
|
}
|
|
4087
|
-
const
|
|
4108
|
+
const Zi = {
|
|
4088
4109
|
number: {
|
|
4089
4110
|
scientific: { notation: "scientific" },
|
|
4090
4111
|
engineering: { notation: "engineering" },
|
|
@@ -4113,135 +4134,135 @@ const Wi = {
|
|
|
4113
4134
|
timeZoneName: "short"
|
|
4114
4135
|
}
|
|
4115
4136
|
}
|
|
4116
|
-
},
|
|
4137
|
+
}, Qi = {
|
|
4117
4138
|
fallbackLocale: null,
|
|
4118
4139
|
loadingDelay: 200,
|
|
4119
|
-
formats:
|
|
4140
|
+
formats: Zi,
|
|
4120
4141
|
warnOnMissingMessages: !0,
|
|
4121
4142
|
handleMissingMessage: void 0,
|
|
4122
4143
|
ignoreTag: !0
|
|
4123
|
-
},
|
|
4124
|
-
function
|
|
4125
|
-
return
|
|
4144
|
+
}, Ji = Qi;
|
|
4145
|
+
function ae() {
|
|
4146
|
+
return Ji;
|
|
4126
4147
|
}
|
|
4127
|
-
const
|
|
4128
|
-
var
|
|
4148
|
+
const ze = Le(!1);
|
|
4149
|
+
var qi = Object.defineProperty, Yi = Object.defineProperties, Ki = Object.getOwnPropertyDescriptors, kt = Object.getOwnPropertySymbols, eo = Object.prototype.hasOwnProperty, to = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ro = (e, t) => {
|
|
4129
4150
|
for (var r in t || (t = {}))
|
|
4130
|
-
|
|
4131
|
-
if (
|
|
4132
|
-
for (var r of
|
|
4133
|
-
|
|
4151
|
+
eo.call(t, r) && Vt(e, r, t[r]);
|
|
4152
|
+
if (kt)
|
|
4153
|
+
for (var r of kt(t))
|
|
4154
|
+
to.call(t, r) && Vt(e, r, t[r]);
|
|
4134
4155
|
return e;
|
|
4135
|
-
},
|
|
4136
|
-
let
|
|
4137
|
-
const
|
|
4138
|
-
function
|
|
4156
|
+
}, no = (e, t) => Yi(e, Ki(t));
|
|
4157
|
+
let ct;
|
|
4158
|
+
const Oe = Le(null);
|
|
4159
|
+
function Xt(e) {
|
|
4139
4160
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4140
4161
|
}
|
|
4141
|
-
function
|
|
4142
|
-
const r =
|
|
4143
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4162
|
+
function Ge(e, t = ae().fallbackLocale) {
|
|
4163
|
+
const r = Xt(e);
|
|
4164
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Xt(t)])] : r;
|
|
4144
4165
|
}
|
|
4145
4166
|
function K() {
|
|
4146
|
-
return
|
|
4167
|
+
return ct != null ? ct : void 0;
|
|
4147
4168
|
}
|
|
4148
|
-
|
|
4149
|
-
|
|
4169
|
+
Oe.subscribe((e) => {
|
|
4170
|
+
ct = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4150
4171
|
});
|
|
4151
|
-
const
|
|
4152
|
-
if (e &&
|
|
4153
|
-
const { loadingDelay: t } =
|
|
4172
|
+
const io = (e) => {
|
|
4173
|
+
if (e && Vi(e) && ht(e)) {
|
|
4174
|
+
const { loadingDelay: t } = ae();
|
|
4154
4175
|
let r;
|
|
4155
4176
|
return typeof window != "undefined" && K() != null && t ? r = window.setTimeout(
|
|
4156
|
-
() =>
|
|
4177
|
+
() => ze.set(!0),
|
|
4157
4178
|
t
|
|
4158
|
-
) :
|
|
4159
|
-
|
|
4179
|
+
) : ze.set(!0), Ir(e).then(() => {
|
|
4180
|
+
Oe.set(e);
|
|
4160
4181
|
}).finally(() => {
|
|
4161
|
-
clearTimeout(r),
|
|
4182
|
+
clearTimeout(r), ze.set(!1);
|
|
4162
4183
|
});
|
|
4163
4184
|
}
|
|
4164
|
-
return
|
|
4165
|
-
}, Q =
|
|
4166
|
-
set:
|
|
4167
|
-
}),
|
|
4185
|
+
return Oe.set(e);
|
|
4186
|
+
}, Q = no(ro({}, Oe), {
|
|
4187
|
+
set: io
|
|
4188
|
+
}), $e = (e) => {
|
|
4168
4189
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4169
4190
|
return (n) => {
|
|
4170
4191
|
const i = JSON.stringify(n);
|
|
4171
4192
|
return i in t ? t[i] : t[i] = e(n);
|
|
4172
4193
|
};
|
|
4173
4194
|
};
|
|
4174
|
-
var
|
|
4195
|
+
var oo = Object.defineProperty, Ne = Object.getOwnPropertySymbols, Lr = Object.prototype.hasOwnProperty, Mr = Object.prototype.propertyIsEnumerable, Wt = (e, t, r) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mt = (e, t) => {
|
|
4175
4196
|
for (var r in t || (t = {}))
|
|
4176
|
-
|
|
4177
|
-
if (
|
|
4178
|
-
for (var r of
|
|
4179
|
-
|
|
4197
|
+
Lr.call(t, r) && Wt(e, r, t[r]);
|
|
4198
|
+
if (Ne)
|
|
4199
|
+
for (var r of Ne(t))
|
|
4200
|
+
Mr.call(t, r) && Wt(e, r, t[r]);
|
|
4180
4201
|
return e;
|
|
4181
|
-
},
|
|
4202
|
+
}, ce = (e, t) => {
|
|
4182
4203
|
var r = {};
|
|
4183
4204
|
for (var n in e)
|
|
4184
|
-
|
|
4185
|
-
if (e != null &&
|
|
4186
|
-
for (var n of
|
|
4187
|
-
t.indexOf(n) < 0 &&
|
|
4205
|
+
Lr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4206
|
+
if (e != null && Ne)
|
|
4207
|
+
for (var n of Ne(e))
|
|
4208
|
+
t.indexOf(n) < 0 && Mr.call(e, n) && (r[n] = e[n]);
|
|
4188
4209
|
return r;
|
|
4189
4210
|
};
|
|
4190
|
-
const
|
|
4191
|
-
const { formats: r } =
|
|
4211
|
+
const be = (e, t) => {
|
|
4212
|
+
const { formats: r } = ae();
|
|
4192
4213
|
if (e in r && t in r[e])
|
|
4193
4214
|
return r[e][t];
|
|
4194
4215
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4195
|
-
},
|
|
4216
|
+
}, so = $e(
|
|
4196
4217
|
(e) => {
|
|
4197
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4218
|
+
var t = e, { locale: r, format: n } = t, i = ce(t, ["locale", "format"]);
|
|
4198
4219
|
if (r == null)
|
|
4199
4220
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4200
|
-
return n && (i =
|
|
4221
|
+
return n && (i = be("number", n)), new Intl.NumberFormat(r, i);
|
|
4201
4222
|
}
|
|
4202
|
-
),
|
|
4223
|
+
), ao = $e(
|
|
4203
4224
|
(e) => {
|
|
4204
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4225
|
+
var t = e, { locale: r, format: n } = t, i = ce(t, ["locale", "format"]);
|
|
4205
4226
|
if (r == null)
|
|
4206
4227
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4207
|
-
return n ? i =
|
|
4228
|
+
return n ? i = be("date", n) : Object.keys(i).length === 0 && (i = be("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4208
4229
|
}
|
|
4209
|
-
),
|
|
4230
|
+
), uo = $e(
|
|
4210
4231
|
(e) => {
|
|
4211
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4232
|
+
var t = e, { locale: r, format: n } = t, i = ce(t, ["locale", "format"]);
|
|
4212
4233
|
if (r == null)
|
|
4213
4234
|
throw new Error(
|
|
4214
4235
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4215
4236
|
);
|
|
4216
|
-
return n ? i =
|
|
4237
|
+
return n ? i = be("time", n) : Object.keys(i).length === 0 && (i = be("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4217
4238
|
}
|
|
4218
|
-
),
|
|
4239
|
+
), lo = (e = {}) => {
|
|
4219
4240
|
var t = e, {
|
|
4220
4241
|
locale: r = K()
|
|
4221
|
-
} = t, n =
|
|
4242
|
+
} = t, n = ce(t, [
|
|
4222
4243
|
"locale"
|
|
4223
4244
|
]);
|
|
4224
|
-
return
|
|
4225
|
-
},
|
|
4245
|
+
return so(mt({ locale: r }, n));
|
|
4246
|
+
}, ho = (e = {}) => {
|
|
4226
4247
|
var t = e, {
|
|
4227
4248
|
locale: r = K()
|
|
4228
|
-
} = t, n =
|
|
4249
|
+
} = t, n = ce(t, [
|
|
4229
4250
|
"locale"
|
|
4230
4251
|
]);
|
|
4231
|
-
return
|
|
4232
|
-
},
|
|
4252
|
+
return ao(mt({ locale: r }, n));
|
|
4253
|
+
}, co = (e = {}) => {
|
|
4233
4254
|
var t = e, {
|
|
4234
4255
|
locale: r = K()
|
|
4235
|
-
} = t, n =
|
|
4256
|
+
} = t, n = ce(t, [
|
|
4236
4257
|
"locale"
|
|
4237
4258
|
]);
|
|
4238
|
-
return
|
|
4239
|
-
},
|
|
4259
|
+
return uo(mt({ locale: r }, n));
|
|
4260
|
+
}, fo = $e(
|
|
4240
4261
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4241
|
-
(e, t = K()) => new
|
|
4242
|
-
ignoreTag:
|
|
4262
|
+
(e, t = K()) => new Ui(e, t, ae().formats, {
|
|
4263
|
+
ignoreTag: ae().ignoreTag
|
|
4243
4264
|
})
|
|
4244
|
-
),
|
|
4265
|
+
), po = (e, t = {}) => {
|
|
4245
4266
|
var r, n, i, o;
|
|
4246
4267
|
let s = t;
|
|
4247
4268
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4254,9 +4275,9 @@ const ge = (e, t) => {
|
|
|
4254
4275
|
throw new Error(
|
|
4255
4276
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4256
4277
|
);
|
|
4257
|
-
let h =
|
|
4278
|
+
let h = Ar(e, l);
|
|
4258
4279
|
if (!h)
|
|
4259
|
-
h = (o = (i = (n = (r =
|
|
4280
|
+
h = (o = (i = (n = (r = ae()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4260
4281
|
else if (typeof h != "string")
|
|
4261
4282
|
return console.warn(
|
|
4262
4283
|
`[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.`
|
|
@@ -4265,7 +4286,7 @@ const ge = (e, t) => {
|
|
|
4265
4286
|
return h;
|
|
4266
4287
|
let f = h;
|
|
4267
4288
|
try {
|
|
4268
|
-
f =
|
|
4289
|
+
f = fo(h, l).format(a);
|
|
4269
4290
|
} catch (c) {
|
|
4270
4291
|
c instanceof Error && console.warn(
|
|
4271
4292
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4273,26 +4294,26 @@ const ge = (e, t) => {
|
|
|
4273
4294
|
);
|
|
4274
4295
|
}
|
|
4275
4296
|
return f;
|
|
4276
|
-
},
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4297
|
+
}, mo = (e, t) => co(t).format(e), bo = (e, t) => ho(t).format(e), go = (e, t) => lo(t).format(e), vo = (e, t = K()) => Ar(e, t), yo = le([Q, he], () => po);
|
|
4298
|
+
le([Q], () => mo);
|
|
4299
|
+
le([Q], () => bo);
|
|
4300
|
+
le([Q], () => go);
|
|
4301
|
+
le([Q, he], () => vo);
|
|
4281
4302
|
window.emWidgets = { topic: On };
|
|
4282
|
-
const
|
|
4303
|
+
const _o = (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));
|
|
4283
4304
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4284
|
-
function
|
|
4305
|
+
function Eo({ withLocale: e, translations: t }) {
|
|
4285
4306
|
Q.subscribe((r) => {
|
|
4286
|
-
r == null && (
|
|
4307
|
+
r == null && (he.set(t), Q.set(e));
|
|
4287
4308
|
});
|
|
4288
4309
|
}
|
|
4289
|
-
function
|
|
4290
|
-
|
|
4310
|
+
function zt(e, t) {
|
|
4311
|
+
Nr(e, t);
|
|
4291
4312
|
}
|
|
4292
|
-
function
|
|
4313
|
+
function xo(e) {
|
|
4293
4314
|
Q.set(e);
|
|
4294
4315
|
}
|
|
4295
|
-
const
|
|
4316
|
+
const Zt = {
|
|
4296
4317
|
en: {
|
|
4297
4318
|
loading: "Loading, please wait ...",
|
|
4298
4319
|
playNow: "Play Now",
|
|
@@ -4303,22 +4324,22 @@ const Wt = {
|
|
|
4303
4324
|
noMoreGames: "No more games"
|
|
4304
4325
|
}
|
|
4305
4326
|
};
|
|
4306
|
-
function
|
|
4307
|
-
|
|
4327
|
+
function wo(e) {
|
|
4328
|
+
Wr(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}");
|
|
4308
4329
|
}
|
|
4309
|
-
function
|
|
4330
|
+
function Qt(e, t, r) {
|
|
4310
4331
|
const n = e.slice();
|
|
4311
4332
|
return n[32] = t[r], n;
|
|
4312
4333
|
}
|
|
4313
|
-
function
|
|
4334
|
+
function Jt(e, t, r) {
|
|
4314
4335
|
const n = e.slice();
|
|
4315
4336
|
return n[32] = t[r], n[36] = r, n;
|
|
4316
4337
|
}
|
|
4317
|
-
function
|
|
4338
|
+
function qt(e) {
|
|
4318
4339
|
let t, r;
|
|
4319
4340
|
return {
|
|
4320
4341
|
c() {
|
|
4321
|
-
t = A("div"), r = A("casino-tournaments-tab"), I(r, "part", "TournamentGames"), I(r, "tabs", "casino,sports"), I(r, "tab", "casino"), I(r, "tid",
|
|
4342
|
+
t = A("div"), r = A("casino-tournaments-tab"), I(r, "part", "TournamentGames"), I(r, "tabs", "casino,sports"), I(r, "tab", "casino"), I(r, "tid", ft), I(
|
|
4322
4343
|
r,
|
|
4323
4344
|
"clientstyling",
|
|
4324
4345
|
/*clientstyling*/
|
|
@@ -4336,7 +4357,7 @@ function Qt(e) {
|
|
|
4336
4357
|
), v(t, "class", "GamesTabNav");
|
|
4337
4358
|
},
|
|
4338
4359
|
m(n, i) {
|
|
4339
|
-
|
|
4360
|
+
k(n, t, i), x(t, r);
|
|
4340
4361
|
},
|
|
4341
4362
|
p(n, i) {
|
|
4342
4363
|
i[0] & /*clientstyling*/
|
|
@@ -4364,17 +4385,17 @@ function Qt(e) {
|
|
|
4364
4385
|
}
|
|
4365
4386
|
};
|
|
4366
4387
|
}
|
|
4367
|
-
function
|
|
4388
|
+
function To(e) {
|
|
4368
4389
|
let t, r = (
|
|
4369
4390
|
/*$_*/
|
|
4370
4391
|
e[13]("noGamesAvailable") + ""
|
|
4371
4392
|
), n;
|
|
4372
4393
|
return {
|
|
4373
4394
|
c() {
|
|
4374
|
-
t = A("div"), n =
|
|
4395
|
+
t = A("div"), n = j(r), v(t, "class", "NoGames");
|
|
4375
4396
|
},
|
|
4376
4397
|
m(i, o) {
|
|
4377
|
-
|
|
4398
|
+
k(i, t, o), x(t, n);
|
|
4378
4399
|
},
|
|
4379
4400
|
p(i, o) {
|
|
4380
4401
|
o[0] & /*$_*/
|
|
@@ -4386,17 +4407,17 @@ function xo(e) {
|
|
|
4386
4407
|
}
|
|
4387
4408
|
};
|
|
4388
4409
|
}
|
|
4389
|
-
function
|
|
4410
|
+
function So(e) {
|
|
4390
4411
|
let t, r = (
|
|
4391
4412
|
/*$_*/
|
|
4392
4413
|
e[13]("noMoreGames") + ""
|
|
4393
4414
|
), n;
|
|
4394
4415
|
return {
|
|
4395
4416
|
c() {
|
|
4396
|
-
t = A("div"), n =
|
|
4417
|
+
t = A("div"), n = j(r), v(t, "class", "NoGames");
|
|
4397
4418
|
},
|
|
4398
4419
|
m(i, o) {
|
|
4399
|
-
|
|
4420
|
+
k(i, t, o), x(t, n);
|
|
4400
4421
|
},
|
|
4401
4422
|
p(i, o) {
|
|
4402
4423
|
o[0] & /*$_*/
|
|
@@ -4408,17 +4429,17 @@ function wo(e) {
|
|
|
4408
4429
|
}
|
|
4409
4430
|
};
|
|
4410
4431
|
}
|
|
4411
|
-
function
|
|
4432
|
+
function Ho(e) {
|
|
4412
4433
|
let t, r = (
|
|
4413
4434
|
/*$_*/
|
|
4414
4435
|
e[13]("loading") + ""
|
|
4415
4436
|
), n;
|
|
4416
4437
|
return {
|
|
4417
4438
|
c() {
|
|
4418
|
-
t = A("div"), n =
|
|
4439
|
+
t = A("div"), n = j(r), v(t, "class", "LoadingGames");
|
|
4419
4440
|
},
|
|
4420
4441
|
m(i, o) {
|
|
4421
|
-
|
|
4442
|
+
k(i, t, o), x(t, n);
|
|
4422
4443
|
},
|
|
4423
4444
|
p(i, o) {
|
|
4424
4445
|
o[0] & /*$_*/
|
|
@@ -4430,35 +4451,35 @@ function To(e) {
|
|
|
4430
4451
|
}
|
|
4431
4452
|
};
|
|
4432
4453
|
}
|
|
4433
|
-
function
|
|
4434
|
-
let t, r =
|
|
4454
|
+
function Po(e) {
|
|
4455
|
+
let t, r = Be(
|
|
4435
4456
|
/*casinoGames*/
|
|
4436
4457
|
e[8]
|
|
4437
4458
|
), n = [];
|
|
4438
4459
|
for (let i = 0; i < r.length; i += 1)
|
|
4439
|
-
n[i] = Jt(
|
|
4460
|
+
n[i] = Yt(Jt(e, r, i));
|
|
4440
4461
|
return {
|
|
4441
4462
|
c() {
|
|
4442
4463
|
for (let i = 0; i < n.length; i += 1)
|
|
4443
4464
|
n[i].c();
|
|
4444
|
-
t =
|
|
4465
|
+
t = Qr();
|
|
4445
4466
|
},
|
|
4446
4467
|
m(i, o) {
|
|
4447
4468
|
for (let s = 0; s < n.length; s += 1)
|
|
4448
4469
|
n[s] && n[s].m(i, o);
|
|
4449
|
-
|
|
4470
|
+
k(i, t, o);
|
|
4450
4471
|
},
|
|
4451
4472
|
p(i, o) {
|
|
4452
4473
|
if (o[0] & /*gameClicked, casinoGames, $_*/
|
|
4453
4474
|
41216) {
|
|
4454
|
-
r =
|
|
4475
|
+
r = Be(
|
|
4455
4476
|
/*casinoGames*/
|
|
4456
4477
|
i[8]
|
|
4457
4478
|
);
|
|
4458
4479
|
let s;
|
|
4459
4480
|
for (s = 0; s < r.length; s += 1) {
|
|
4460
|
-
const a =
|
|
4461
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4481
|
+
const a = Jt(i, r, s);
|
|
4482
|
+
n[s] ? n[s].p(a, o) : (n[s] = Yt(a), n[s].c(), n[s].m(t.parentNode, t));
|
|
4462
4483
|
}
|
|
4463
4484
|
for (; s < n.length; s += 1)
|
|
4464
4485
|
n[s].d(1);
|
|
@@ -4466,26 +4487,26 @@ function So(e) {
|
|
|
4466
4487
|
}
|
|
4467
4488
|
},
|
|
4468
4489
|
d(i) {
|
|
4469
|
-
i && D(t),
|
|
4490
|
+
i && D(t), nr(n, i);
|
|
4470
4491
|
}
|
|
4471
4492
|
};
|
|
4472
4493
|
}
|
|
4473
|
-
function
|
|
4494
|
+
function Yt(e) {
|
|
4474
4495
|
let t, r, n = (
|
|
4475
4496
|
/*$_*/
|
|
4476
4497
|
e[13]("playNow") + ""
|
|
4477
4498
|
), i, o, s, a, l, u, h, f, c;
|
|
4478
4499
|
return {
|
|
4479
4500
|
c() {
|
|
4480
|
-
t = A("div"), r = A("span"), i =
|
|
4501
|
+
t = A("div"), r = A("span"), i = j(n), o = X(), s = A("ui-image"), h = X(), v(r, "class", "PlayNowButton"), St(s.src, a = /*item*/
|
|
4481
4502
|
e[32].thumbnail) || I(s, "src", a), I(s, "width", "132px"), I(s, "height", "100px"), I(s, "alt", l = /*item*/
|
|
4482
4503
|
e[32].name), I(s, "title", u = /*item*/
|
|
4483
4504
|
e[32].name), v(t, "class", "item"), v(t, "id", "g_" + /*idx*/
|
|
4484
4505
|
e[36]), v(t, "role", "button"), v(t, "tabindex", "0");
|
|
4485
4506
|
},
|
|
4486
|
-
m(
|
|
4487
|
-
|
|
4488
|
-
|
|
4507
|
+
m(m, d) {
|
|
4508
|
+
k(m, t, d), x(t, r), x(r, i), x(t, o), x(t, s), x(t, h), f || (c = Ze(t, "click", function() {
|
|
4509
|
+
Ce(
|
|
4489
4510
|
/*gameClicked*/
|
|
4490
4511
|
e[15](
|
|
4491
4512
|
/*item*/
|
|
@@ -4497,52 +4518,52 @@ function Jt(e) {
|
|
|
4497
4518
|
).apply(this, arguments);
|
|
4498
4519
|
}), f = !0);
|
|
4499
4520
|
},
|
|
4500
|
-
p(
|
|
4501
|
-
e =
|
|
4521
|
+
p(m, d) {
|
|
4522
|
+
e = m, d[0] & /*$_*/
|
|
4502
4523
|
8192 && n !== (n = /*$_*/
|
|
4503
4524
|
e[13]("playNow") + "") && Z(i, n), d[0] & /*casinoGames*/
|
|
4504
|
-
256 && !
|
|
4525
|
+
256 && !St(s.src, a = /*item*/
|
|
4505
4526
|
e[32].thumbnail) && I(s, "src", a), d[0] & /*casinoGames*/
|
|
4506
4527
|
256 && l !== (l = /*item*/
|
|
4507
4528
|
e[32].name) && I(s, "alt", l), d[0] & /*casinoGames*/
|
|
4508
4529
|
256 && u !== (u = /*item*/
|
|
4509
4530
|
e[32].name) && I(s, "title", u);
|
|
4510
4531
|
},
|
|
4511
|
-
d(
|
|
4512
|
-
|
|
4532
|
+
d(m) {
|
|
4533
|
+
m && D(t), f = !1, c();
|
|
4513
4534
|
}
|
|
4514
4535
|
};
|
|
4515
4536
|
}
|
|
4516
|
-
function
|
|
4537
|
+
function Bo(e) {
|
|
4517
4538
|
let t, r, n, i, o, s, a, l = (
|
|
4518
4539
|
/*$_*/
|
|
4519
4540
|
e[13]("previous") + ""
|
|
4520
|
-
), u, h, f, c,
|
|
4541
|
+
), u, h, f, c, m, d, b = (
|
|
4521
4542
|
/*$_*/
|
|
4522
4543
|
e[13]("next") + ""
|
|
4523
|
-
),
|
|
4544
|
+
), w, O, _, S, L, g, P, H, $, N;
|
|
4524
4545
|
return {
|
|
4525
4546
|
c() {
|
|
4526
|
-
t = A("div"), r = A("button"), n = _e("svg"), i = _e("path"), s =
|
|
4547
|
+
t = A("div"), r = A("button"), n = _e("svg"), i = _e("path"), s = X(), a = A("span"), u = j(l), c = X(), m = A("button"), d = A("span"), w = j(b), O = X(), _ = _e("svg"), S = _e("path"), v(i, "fill", o = /*hasPreviousPage*/
|
|
4527
4548
|
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*/
|
|
4528
4549
|
e[10] ? "" : "Disabled")), r.disabled = f = /*hasPreviousPage*/
|
|
4529
|
-
!e[10], v(d, "class", "TournamentsPaginationControlsText"), v(
|
|
4530
|
-
e[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), v(
|
|
4531
|
-
e[11] ? "" : "Disabled")),
|
|
4532
|
-
!e[11], v(t, "class",
|
|
4550
|
+
!e[10], v(d, "class", "TournamentsPaginationControlsText"), v(S, "fill", L = /*hasNextPage*/
|
|
4551
|
+
e[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), v(S, "class", "a"), v(S, "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(S, "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(m, "class", g = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
|
|
4552
|
+
e[11] ? "" : "Disabled")), m.disabled = P = /*hasNextPage*/
|
|
4553
|
+
!e[11], v(t, "class", H = "TournamentsPaginationControlsArea " + (!/*hasPreviousPage*/
|
|
4533
4554
|
e[10] && !/*hasNextPage*/
|
|
4534
4555
|
e[11] ? "SinglePage" : ""));
|
|
4535
4556
|
},
|
|
4536
4557
|
m(C, R) {
|
|
4537
|
-
|
|
4538
|
-
|
|
4558
|
+
k(C, t, R), x(t, r), x(r, n), x(n, i), x(r, s), x(r, a), x(a, u), x(t, c), x(t, m), x(m, d), x(d, w), x(m, O), x(m, _), x(_, S), $ || (N = [
|
|
4559
|
+
Ze(
|
|
4539
4560
|
r,
|
|
4540
4561
|
"click",
|
|
4541
4562
|
/*gotoPage*/
|
|
4542
4563
|
e[16].bind(this, -1)
|
|
4543
4564
|
),
|
|
4544
|
-
|
|
4545
|
-
|
|
4565
|
+
Ze(
|
|
4566
|
+
m,
|
|
4546
4567
|
"click",
|
|
4547
4568
|
/*gotoPage*/
|
|
4548
4569
|
e[16].bind(this, 1)
|
|
@@ -4560,23 +4581,23 @@ function Ho(e) {
|
|
|
4560
4581
|
1024 && f !== (f = /*hasPreviousPage*/
|
|
4561
4582
|
!C[10]) && (r.disabled = f), R[0] & /*$_*/
|
|
4562
4583
|
8192 && b !== (b = /*$_*/
|
|
4563
|
-
C[13]("next") + "") && Z(
|
|
4584
|
+
C[13]("next") + "") && Z(w, b), R[0] & /*hasNextPage*/
|
|
4564
4585
|
2048 && L !== (L = /*hasNextPage*/
|
|
4565
|
-
C[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && v(
|
|
4586
|
+
C[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && v(S, "fill", L), R[0] & /*hasNextPage*/
|
|
4566
4587
|
2048 && g !== (g = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
|
|
4567
|
-
C[11] ? "" : "Disabled")) && v(
|
|
4588
|
+
C[11] ? "" : "Disabled")) && v(m, "class", g), R[0] & /*hasNextPage*/
|
|
4568
4589
|
2048 && P !== (P = /*hasNextPage*/
|
|
4569
|
-
!C[11]) && (
|
|
4570
|
-
3072 &&
|
|
4590
|
+
!C[11]) && (m.disabled = P), R[0] & /*hasPreviousPage, hasNextPage*/
|
|
4591
|
+
3072 && H !== (H = "TournamentsPaginationControlsArea " + (!/*hasPreviousPage*/
|
|
4571
4592
|
C[10] && !/*hasNextPage*/
|
|
4572
|
-
C[11] ? "SinglePage" : "")) && v(t, "class",
|
|
4593
|
+
C[11] ? "SinglePage" : "")) && v(t, "class", H);
|
|
4573
4594
|
},
|
|
4574
4595
|
d(C) {
|
|
4575
|
-
C && D(t), $ = !1,
|
|
4596
|
+
C && D(t), $ = !1, ue(N);
|
|
4576
4597
|
}
|
|
4577
4598
|
};
|
|
4578
4599
|
}
|
|
4579
|
-
function
|
|
4600
|
+
function Kt(e) {
|
|
4580
4601
|
let t, r = (
|
|
4581
4602
|
/*item*/
|
|
4582
4603
|
e[32].rule + ""
|
|
@@ -4586,10 +4607,10 @@ function qt(e) {
|
|
|
4586
4607
|
), s;
|
|
4587
4608
|
return {
|
|
4588
4609
|
c() {
|
|
4589
|
-
t = A("li"), n =
|
|
4610
|
+
t = A("li"), n = j(r), i = X(), s = j(o), v(t, "part", "li"), v(t, "class", "Market");
|
|
4590
4611
|
},
|
|
4591
4612
|
m(a, l) {
|
|
4592
|
-
|
|
4613
|
+
k(a, t, l), x(t, n), x(t, i), x(t, s);
|
|
4593
4614
|
},
|
|
4594
4615
|
p(a, l) {
|
|
4595
4616
|
l[0] & /*sportsRules*/
|
|
@@ -4603,37 +4624,37 @@ function qt(e) {
|
|
|
4603
4624
|
}
|
|
4604
4625
|
};
|
|
4605
4626
|
}
|
|
4606
|
-
function
|
|
4607
|
-
var
|
|
4627
|
+
function Ao(e) {
|
|
4628
|
+
var S, L;
|
|
4608
4629
|
let t, r, n, i, o, s, a, l, u, h, f, c = (
|
|
4609
4630
|
/*tournamentdetails*/
|
|
4610
4631
|
e[3] && /*tournamentdetails*/
|
|
4611
|
-
((
|
|
4612
|
-
((L = e[3].wallet) == null ? void 0 : L.casino) &&
|
|
4632
|
+
((S = e[3].wallet) == null ? void 0 : S.sports) && /*tournamentdetails*/
|
|
4633
|
+
((L = e[3].wallet) == null ? void 0 : L.casino) && qt(e)
|
|
4613
4634
|
);
|
|
4614
|
-
function
|
|
4615
|
-
var
|
|
4635
|
+
function m(g, P) {
|
|
4636
|
+
var H;
|
|
4616
4637
|
return (
|
|
4617
4638
|
/*casinoGames*/
|
|
4618
|
-
(
|
|
4639
|
+
(H = g[8]) != null && H.length ? Po : (
|
|
4619
4640
|
/*isLoadingGames*/
|
|
4620
|
-
g[12] ?
|
|
4641
|
+
g[12] ? Ho : (
|
|
4621
4642
|
/*noMoreGamesWhenPagination*/
|
|
4622
|
-
g[9] ?
|
|
4643
|
+
g[9] ? So : To
|
|
4623
4644
|
)
|
|
4624
4645
|
)
|
|
4625
4646
|
);
|
|
4626
4647
|
}
|
|
4627
|
-
let d =
|
|
4628
|
-
e[14] &&
|
|
4648
|
+
let d = m(e), b = d(e), w = !/*isMobileDevice*/
|
|
4649
|
+
e[14] && Bo(e), O = Be(
|
|
4629
4650
|
/*sportsRules*/
|
|
4630
4651
|
e[7]
|
|
4631
4652
|
), _ = [];
|
|
4632
4653
|
for (let g = 0; g < O.length; g += 1)
|
|
4633
|
-
_[g] =
|
|
4654
|
+
_[g] = Kt(Qt(e, O, g));
|
|
4634
4655
|
return {
|
|
4635
4656
|
c() {
|
|
4636
|
-
t = A("div"), c && c.c(), r =
|
|
4657
|
+
t = A("div"), c && c.c(), r = X(), n = A("div"), i = A("div"), o = A("div"), b.c(), s = X(), w && w.c(), l = X(), u = A("div"), h = A("ul");
|
|
4637
4658
|
for (let g = 0; g < _.length; g += 1)
|
|
4638
4659
|
_[g].c();
|
|
4639
4660
|
v(o, "class", "GameList items"), v(i, "class", a = "TabContent GamesContent " + /*activeTab*/
|
|
@@ -4646,29 +4667,29 @@ function Bo(e) {
|
|
|
4646
4667
|
);
|
|
4647
4668
|
},
|
|
4648
4669
|
m(g, P) {
|
|
4649
|
-
|
|
4650
|
-
for (let
|
|
4651
|
-
_[
|
|
4670
|
+
k(g, t, P), c && c.m(t, null), x(t, r), x(t, n), x(n, i), x(i, o), b.m(o, null), e[19](o), x(i, s), w && w.m(i, null), x(n, l), x(n, u), x(u, h);
|
|
4671
|
+
for (let H = 0; H < _.length; H += 1)
|
|
4672
|
+
_[H] && _[H].m(h, null);
|
|
4652
4673
|
e[20](t);
|
|
4653
4674
|
},
|
|
4654
4675
|
p(g, P) {
|
|
4655
|
-
var
|
|
4676
|
+
var H, $;
|
|
4656
4677
|
if (/*tournamentdetails*/
|
|
4657
4678
|
g[3] && /*tournamentdetails*/
|
|
4658
|
-
((
|
|
4659
|
-
(($ = g[3].wallet) != null && $.casino) ? c ? c.p(g, P) : (c =
|
|
4660
|
-
g[14] ||
|
|
4679
|
+
((H = g[3].wallet) != null && H.sports) && /*tournamentdetails*/
|
|
4680
|
+
(($ = g[3].wallet) != null && $.casino) ? c ? c.p(g, P) : (c = qt(g), c.c(), c.m(t, r)) : c && (c.d(1), c = null), d === (d = m(g)) && b ? b.p(g, P) : (b.d(1), b = d(g), b && (b.c(), b.m(o, null))), /*isMobileDevice*/
|
|
4681
|
+
g[14] || w.p(g, P), P[0] & /*activeTab*/
|
|
4661
4682
|
64 && a !== (a = "TabContent GamesContent " + /*activeTab*/
|
|
4662
4683
|
(g[6] != "casino" ? "hidden" : "")) && v(i, "class", a), P[0] & /*$_, sportsRules*/
|
|
4663
4684
|
8320) {
|
|
4664
|
-
O =
|
|
4685
|
+
O = Be(
|
|
4665
4686
|
/*sportsRules*/
|
|
4666
4687
|
g[7]
|
|
4667
4688
|
);
|
|
4668
4689
|
let N;
|
|
4669
4690
|
for (N = 0; N < O.length; N += 1) {
|
|
4670
|
-
const C =
|
|
4671
|
-
_[N] ? _[N].p(C, P) : (_[N] =
|
|
4691
|
+
const C = Qt(g, O, N);
|
|
4692
|
+
_[N] ? _[N].p(C, P) : (_[N] = Kt(C), _[N].c(), _[N].m(h, null));
|
|
4672
4693
|
}
|
|
4673
4694
|
for (; N < _.length; N += 1)
|
|
4674
4695
|
_[N].d(1);
|
|
@@ -4681,30 +4702,30 @@ function Bo(e) {
|
|
|
4681
4702
|
i: U,
|
|
4682
4703
|
o: U,
|
|
4683
4704
|
d(g) {
|
|
4684
|
-
g && D(t), c && c.d(), b.d(), e[19](null),
|
|
4705
|
+
g && D(t), c && c.d(), b.d(), e[19](null), w && w.d(), nr(_, g), e[20](null);
|
|
4685
4706
|
}
|
|
4686
4707
|
};
|
|
4687
4708
|
}
|
|
4688
|
-
let
|
|
4689
|
-
function
|
|
4709
|
+
let ft = "gameTab";
|
|
4710
|
+
function Oo(e, t, r) {
|
|
4690
4711
|
let n;
|
|
4691
|
-
|
|
4692
|
-
let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { translationurl: a } = t, { lang: l = "en" } = t, u = "casino", h = [], f = [], c,
|
|
4693
|
-
|
|
4694
|
-
const
|
|
4695
|
-
fetch(a).then((
|
|
4696
|
-
Object.keys(
|
|
4697
|
-
|
|
4712
|
+
Xr(e, yo, (p) => r(13, n = p));
|
|
4713
|
+
let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { translationurl: a } = t, { lang: l = "en" } = t, u = "casino", h = [], f = [], c, m = window.navigator.userAgent, d, b, w, O = _o(m), _ = !1;
|
|
4714
|
+
Eo({ withLocale: "en", translations: {} });
|
|
4715
|
+
const S = () => {
|
|
4716
|
+
fetch(a).then((p) => p.json()).then((p) => {
|
|
4717
|
+
Object.keys(p).forEach((V) => {
|
|
4718
|
+
zt(V, p[V]);
|
|
4698
4719
|
});
|
|
4699
|
-
}).catch((
|
|
4700
|
-
console.log(
|
|
4720
|
+
}).catch((p) => {
|
|
4721
|
+
console.log(p);
|
|
4701
4722
|
});
|
|
4702
4723
|
};
|
|
4703
|
-
Object.keys(
|
|
4704
|
-
|
|
4724
|
+
Object.keys(Zt).forEach((p) => {
|
|
4725
|
+
zt(p, Zt[p]);
|
|
4705
4726
|
});
|
|
4706
4727
|
const L = () => {
|
|
4707
|
-
|
|
4728
|
+
xo(l), setTimeout(
|
|
4708
4729
|
() => {
|
|
4709
4730
|
g();
|
|
4710
4731
|
},
|
|
@@ -4721,68 +4742,68 @@ function Po(e, t, r) {
|
|
|
4721
4742
|
},
|
|
4722
4743
|
window.location.href
|
|
4723
4744
|
);
|
|
4724
|
-
}, P = (
|
|
4745
|
+
}, P = (p) => {
|
|
4725
4746
|
window.postMessage(
|
|
4726
4747
|
{
|
|
4727
4748
|
type: "TournamentGameAction",
|
|
4728
|
-
gameId:
|
|
4729
|
-
name:
|
|
4730
|
-
launchUrl:
|
|
4749
|
+
gameId: p.id,
|
|
4750
|
+
name: p.name,
|
|
4751
|
+
launchUrl: p.launchUrl
|
|
4731
4752
|
},
|
|
4732
4753
|
window.location.href
|
|
4733
4754
|
);
|
|
4734
4755
|
};
|
|
4735
|
-
let
|
|
4736
|
-
const C = (
|
|
4737
|
-
!
|
|
4756
|
+
let H = !1, $ = !1, N = !1;
|
|
4757
|
+
const C = (p) => {
|
|
4758
|
+
!H && p === -1 || !$ && p === 1 || (r(12, N = !0), r(8, f = []), window.postMessage(
|
|
4738
4759
|
{
|
|
4739
4760
|
type: "TournamentsLoadMoreGames",
|
|
4740
4761
|
id: c.id,
|
|
4741
|
-
isNext:
|
|
4762
|
+
isNext: p > 0
|
|
4742
4763
|
},
|
|
4743
4764
|
window.location.href
|
|
4744
4765
|
));
|
|
4745
4766
|
}, R = () => {
|
|
4746
|
-
var
|
|
4747
|
-
r(8, f = ((
|
|
4748
|
-
const
|
|
4749
|
-
if (
|
|
4767
|
+
var V, q, gt, vt, yt;
|
|
4768
|
+
r(8, f = ((V = c.games) == null ? void 0 : V.items) || []), r(9, _ = !1), r(10, H = !1), r(11, $ = ((q = c.games) == null ? void 0 : q.total) > ((gt = c.games) == null ? void 0 : gt.items.length)), bt();
|
|
4769
|
+
const p = (yt = (vt = c.metadata) == null ? void 0 : vt.sports) == null ? void 0 : yt.rules;
|
|
4770
|
+
if (p) {
|
|
4750
4771
|
r(6, u = c.wallet.casino ? "casino" : "sports");
|
|
4751
4772
|
try {
|
|
4752
|
-
const ve = JSON.parse(
|
|
4773
|
+
const ve = JSON.parse(p);
|
|
4753
4774
|
r(7, h = ve[l] || ve["*"]);
|
|
4754
4775
|
} catch (ve) {
|
|
4755
4776
|
console.error("Error parsing tournament rules", ve);
|
|
4756
4777
|
}
|
|
4757
4778
|
}
|
|
4758
|
-
},
|
|
4779
|
+
}, dt = (p) => {
|
|
4759
4780
|
var q;
|
|
4760
|
-
if (!
|
|
4781
|
+
if (!p.data || !p.data.type)
|
|
4761
4782
|
return;
|
|
4762
|
-
const
|
|
4763
|
-
switch (
|
|
4783
|
+
const V = p.data.tid || "";
|
|
4784
|
+
switch (p.data.type) {
|
|
4764
4785
|
case "TournamentsTabSwitch":
|
|
4765
|
-
|
|
4786
|
+
V === ft && r(6, u = p.data.tab);
|
|
4766
4787
|
break;
|
|
4767
4788
|
case "TournamentsTabListenerLoaded":
|
|
4768
4789
|
g();
|
|
4769
4790
|
break;
|
|
4770
4791
|
case "TournamentsGamesUpdate":
|
|
4771
|
-
r(3, c =
|
|
4792
|
+
r(3, c = p.data.details), R();
|
|
4772
4793
|
break;
|
|
4773
4794
|
case "TournamentsLoadedMoreGames":
|
|
4774
|
-
O ? (q =
|
|
4795
|
+
O ? (q = p.data.games) != null && q.items.length && (r(8, f = [...f, ...p.data.games.items]), bt()) : (r(12, N = !1), r(8, f = [...p.data.games.items]), r(11, $ = p.data.hasNextPage), r(10, H = p.data.hasPreviousPage), r(9, _ = !f.length));
|
|
4775
4796
|
break;
|
|
4776
4797
|
default:
|
|
4777
|
-
console.warn(`Unhandled message type: ${
|
|
4798
|
+
console.warn(`Unhandled message type: ${p.data.type}`);
|
|
4778
4799
|
break;
|
|
4779
4800
|
}
|
|
4780
4801
|
};
|
|
4781
4802
|
let J;
|
|
4782
|
-
const
|
|
4783
|
-
J =
|
|
4784
|
-
|
|
4785
|
-
q.isIntersecting && (
|
|
4803
|
+
const Rr = (p) => {
|
|
4804
|
+
J = p == null ? void 0 : p.lastElementChild, !(!O || w || !p || !J) && (w = new IntersectionObserver((V) => {
|
|
4805
|
+
V.forEach((q) => {
|
|
4806
|
+
q.isIntersecting && (w.unobserve(J), window.postMessage(
|
|
4786
4807
|
{
|
|
4787
4808
|
type: "TournamentsLoadMoreGames",
|
|
4788
4809
|
id: c.id,
|
|
@@ -4792,39 +4813,39 @@ function Po(e, t, r) {
|
|
|
4792
4813
|
));
|
|
4793
4814
|
});
|
|
4794
4815
|
}));
|
|
4795
|
-
},
|
|
4796
|
-
!O || !J || !
|
|
4816
|
+
}, bt = () => {
|
|
4817
|
+
!O || !J || !w || !f.length || (w.unobserve(J), J = b.lastElementChild, w.observe(J));
|
|
4797
4818
|
};
|
|
4798
|
-
|
|
4819
|
+
Kr(() => O && w && w.disconnect()), Yr(() => (window.postMessage(
|
|
4799
4820
|
{
|
|
4800
4821
|
type: "TournamentsGamesListenerLoaded",
|
|
4801
|
-
gamesTabTid:
|
|
4822
|
+
gamesTabTid: ft
|
|
4802
4823
|
},
|
|
4803
4824
|
window.location.href
|
|
4804
|
-
), window.addEventListener("message",
|
|
4805
|
-
window.removeEventListener("message",
|
|
4825
|
+
), window.addEventListener("message", dt, !1), () => {
|
|
4826
|
+
window.removeEventListener("message", dt);
|
|
4806
4827
|
}));
|
|
4807
|
-
function
|
|
4808
|
-
|
|
4809
|
-
b =
|
|
4828
|
+
function Gr(p) {
|
|
4829
|
+
Pe[p ? "unshift" : "push"](() => {
|
|
4830
|
+
b = p, r(5, b);
|
|
4810
4831
|
});
|
|
4811
4832
|
}
|
|
4812
|
-
function
|
|
4813
|
-
|
|
4814
|
-
d =
|
|
4833
|
+
function $r(p) {
|
|
4834
|
+
Pe[p ? "unshift" : "push"](() => {
|
|
4835
|
+
d = p, r(4, d);
|
|
4815
4836
|
});
|
|
4816
4837
|
}
|
|
4817
|
-
return e.$$set = (
|
|
4818
|
-
"clientstyling" in
|
|
4838
|
+
return e.$$set = (p) => {
|
|
4839
|
+
"clientstyling" in p && r(0, i = p.clientstyling), "clientstylingurl" in p && r(1, o = p.clientstylingurl), "mbsource" in p && r(2, s = p.mbsource), "translationurl" in p && r(17, a = p.translationurl), "lang" in p && r(18, l = p.lang);
|
|
4819
4840
|
}, e.$$.update = () => {
|
|
4820
4841
|
e.$$.dirty[0] & /*tournamentdetails*/
|
|
4821
4842
|
8 && c && R(), e.$$.dirty[0] & /*lang*/
|
|
4822
4843
|
262144 && l && L(), e.$$.dirty[0] & /*translationurl*/
|
|
4823
|
-
131072 && a &&
|
|
4844
|
+
131072 && a && S(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4824
4845
|
17 && i && d && mn(d, i), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4825
|
-
18 && o && d &&
|
|
4826
|
-
20 && s && d &&
|
|
4827
|
-
32 && b &&
|
|
4846
|
+
18 && o && d && dn(d, o), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4847
|
+
20 && s && d && bn(d, `${s}.Style`), e.$$.dirty[0] & /*gameListEle*/
|
|
4848
|
+
32 && b && Rr(b);
|
|
4828
4849
|
}, [
|
|
4829
4850
|
i,
|
|
4830
4851
|
o,
|
|
@@ -4836,7 +4857,7 @@ function Po(e, t, r) {
|
|
|
4836
4857
|
h,
|
|
4837
4858
|
f,
|
|
4838
4859
|
_,
|
|
4839
|
-
|
|
4860
|
+
H,
|
|
4840
4861
|
$,
|
|
4841
4862
|
N,
|
|
4842
4863
|
n,
|
|
@@ -4845,18 +4866,18 @@ function Po(e, t, r) {
|
|
|
4845
4866
|
C,
|
|
4846
4867
|
a,
|
|
4847
4868
|
l,
|
|
4848
|
-
|
|
4849
|
-
|
|
4869
|
+
Gr,
|
|
4870
|
+
$r
|
|
4850
4871
|
];
|
|
4851
4872
|
}
|
|
4852
|
-
class
|
|
4873
|
+
class No extends fn {
|
|
4853
4874
|
constructor(t) {
|
|
4854
|
-
super(),
|
|
4875
|
+
super(), hn(
|
|
4855
4876
|
this,
|
|
4856
4877
|
t,
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4878
|
+
Oo,
|
|
4879
|
+
Ao,
|
|
4880
|
+
tr,
|
|
4860
4881
|
{
|
|
4861
4882
|
clientstyling: 0,
|
|
4862
4883
|
clientstylingurl: 1,
|
|
@@ -4864,7 +4885,7 @@ class Ao extends cn {
|
|
|
4864
4885
|
translationurl: 17,
|
|
4865
4886
|
lang: 18
|
|
4866
4887
|
},
|
|
4867
|
-
|
|
4888
|
+
wo,
|
|
4868
4889
|
[-1, -1]
|
|
4869
4890
|
);
|
|
4870
4891
|
}
|
|
@@ -4899,7 +4920,7 @@ class Ao extends cn {
|
|
|
4899
4920
|
this.$$set({ lang: t }), Y();
|
|
4900
4921
|
}
|
|
4901
4922
|
}
|
|
4902
|
-
|
|
4923
|
+
cn(No, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, lang: {} }, [], [], !0);
|
|
4903
4924
|
export {
|
|
4904
|
-
|
|
4925
|
+
No as default
|
|
4905
4926
|
};
|