@everymatrix/casino-header-bets-button 1.77.26 → 1.77.27
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/{CasinoHeaderBetsButton-BLVrjjzt.js → CasinoHeaderBetsButton-B5dXcpQV.js} +532 -528
- package/components/CasinoHeaderBetsButton-BZnUcTeA.cjs +3 -0
- package/components/{CasinoHeaderBetsButton-sQKnNmeM.js → CasinoHeaderBetsButton-nu6zgb7y.js} +546 -542
- package/es2015/casino-header-bets-button.cjs +1 -1
- package/es2015/casino-header-bets-button.js +1 -1
- package/esnext/casino-header-bets-button.js +1 -1
- package/package.json +1 -1
- package/components/CasinoHeaderBetsButton-D1MmRYNQ.cjs +0 -16
package/components/{CasinoHeaderBetsButton-BLVrjjzt.js → CasinoHeaderBetsButton-B5dXcpQV.js}
RENAMED
|
@@ -6,16 +6,16 @@ function tt(e) {
|
|
|
6
6
|
function Re() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function q(e) {
|
|
10
10
|
e.forEach(tt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function we(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function rt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Ot(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
21
|
function nt(e, ...t) {
|
|
@@ -27,16 +27,16 @@ function nt(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Nt(e, t, r) {
|
|
31
31
|
e.$$.on_destroy.push(nt(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function T(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
36
|
function wt(e, t, r) {
|
|
37
37
|
const n = It(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
|
-
const i =
|
|
39
|
+
const i = P("style");
|
|
40
40
|
i.id = t, i.textContent = r, Lt(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -51,7 +51,7 @@ function It(e) {
|
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
53
|
function Lt(e, t) {
|
|
54
|
-
return
|
|
54
|
+
return T(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
@@ -60,22 +60,22 @@ function Lt(e, t) {
|
|
|
60
60
|
function it(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Ie(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function P(e) {
|
|
67
67
|
return document.createElement(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Ee(e) {
|
|
70
70
|
return document.createTextNode(e);
|
|
71
71
|
}
|
|
72
72
|
function Ct() {
|
|
73
|
-
return
|
|
73
|
+
return Ee(" ");
|
|
74
74
|
}
|
|
75
75
|
function $t(e, t, r, n) {
|
|
76
76
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function $(e, t, r) {
|
|
79
79
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
80
80
|
}
|
|
81
81
|
function Rt(e) {
|
|
@@ -94,65 +94,65 @@ function Ut(e) {
|
|
|
94
94
|
}
|
|
95
95
|
), t;
|
|
96
96
|
}
|
|
97
|
-
let
|
|
98
|
-
function
|
|
99
|
-
|
|
97
|
+
let Z;
|
|
98
|
+
function z(e) {
|
|
99
|
+
Z = e;
|
|
100
100
|
}
|
|
101
101
|
function Dt() {
|
|
102
|
-
if (!
|
|
102
|
+
if (!Z)
|
|
103
103
|
throw new Error("Function called outside component initialization");
|
|
104
|
-
return
|
|
104
|
+
return Z;
|
|
105
105
|
}
|
|
106
106
|
function Gt(e) {
|
|
107
107
|
Dt().$$.on_mount.push(e);
|
|
108
108
|
}
|
|
109
|
-
const
|
|
110
|
-
let
|
|
109
|
+
const R = [], xe = [];
|
|
110
|
+
let U = [];
|
|
111
111
|
const De = [], Ft = /* @__PURE__ */ Promise.resolve();
|
|
112
|
-
let
|
|
112
|
+
let ve = !1;
|
|
113
113
|
function jt() {
|
|
114
|
-
|
|
114
|
+
ve || (ve = !0, Ft.then(w));
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
|
|
116
|
+
function _e(e) {
|
|
117
|
+
U.push(e);
|
|
118
118
|
}
|
|
119
|
-
const
|
|
120
|
-
let
|
|
121
|
-
function
|
|
122
|
-
if (
|
|
119
|
+
const ce = /* @__PURE__ */ new Set();
|
|
120
|
+
let L = 0;
|
|
121
|
+
function w() {
|
|
122
|
+
if (L !== 0)
|
|
123
123
|
return;
|
|
124
|
-
const e =
|
|
124
|
+
const e = Z;
|
|
125
125
|
do {
|
|
126
126
|
try {
|
|
127
|
-
for (;
|
|
128
|
-
const t =
|
|
129
|
-
|
|
127
|
+
for (; L < R.length; ) {
|
|
128
|
+
const t = R[L];
|
|
129
|
+
L++, z(t), kt(t.$$);
|
|
130
130
|
}
|
|
131
131
|
} catch (t) {
|
|
132
|
-
throw
|
|
132
|
+
throw R.length = 0, L = 0, t;
|
|
133
133
|
}
|
|
134
|
-
for (
|
|
135
|
-
|
|
136
|
-
for (let t = 0; t <
|
|
137
|
-
const r =
|
|
138
|
-
|
|
134
|
+
for (z(null), R.length = 0, L = 0; xe.length; )
|
|
135
|
+
xe.pop()();
|
|
136
|
+
for (let t = 0; t < U.length; t += 1) {
|
|
137
|
+
const r = U[t];
|
|
138
|
+
ce.has(r) || (ce.add(r), r());
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
} while (
|
|
140
|
+
U.length = 0;
|
|
141
|
+
} while (R.length);
|
|
142
142
|
for (; De.length; )
|
|
143
143
|
De.pop()();
|
|
144
|
-
|
|
144
|
+
ve = !1, ce.clear(), z(e);
|
|
145
145
|
}
|
|
146
146
|
function kt(e) {
|
|
147
147
|
if (e.fragment !== null) {
|
|
148
|
-
e.update(),
|
|
148
|
+
e.update(), q(e.before_update);
|
|
149
149
|
const t = e.dirty;
|
|
150
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
150
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_e);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
function Vt(e) {
|
|
154
154
|
const t = [], r = [];
|
|
155
|
-
|
|
155
|
+
U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
|
|
156
156
|
}
|
|
157
157
|
const Xt = /* @__PURE__ */ new Set();
|
|
158
158
|
function Wt(e, t) {
|
|
@@ -160,21 +160,21 @@ function Wt(e, t) {
|
|
|
160
160
|
}
|
|
161
161
|
function zt(e, t, r) {
|
|
162
162
|
const { fragment: n, after_update: i } = e.$$;
|
|
163
|
-
n && n.m(t, r),
|
|
164
|
-
const s = e.$$.on_mount.map(tt).filter(
|
|
165
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
166
|
-
}), i.forEach(
|
|
163
|
+
n && n.m(t, r), _e(() => {
|
|
164
|
+
const s = e.$$.on_mount.map(tt).filter(we);
|
|
165
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : q(s), e.$$.on_mount = [];
|
|
166
|
+
}), i.forEach(_e);
|
|
167
167
|
}
|
|
168
168
|
function Zt(e, t) {
|
|
169
169
|
const r = e.$$;
|
|
170
|
-
r.fragment !== null && (Vt(r.after_update),
|
|
170
|
+
r.fragment !== null && (Vt(r.after_update), q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
171
171
|
}
|
|
172
172
|
function Qt(e, t) {
|
|
173
|
-
e.$$.dirty[0] === -1 && (
|
|
173
|
+
e.$$.dirty[0] === -1 && (R.push(e), jt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
174
174
|
}
|
|
175
175
|
function Jt(e, t, r, n, i, s, u = null, a = [-1]) {
|
|
176
|
-
const l =
|
|
177
|
-
|
|
176
|
+
const l = Z;
|
|
177
|
+
z(e);
|
|
178
178
|
const o = e.$$ = {
|
|
179
179
|
fragment: null,
|
|
180
180
|
ctx: [],
|
|
@@ -198,18 +198,18 @@ function Jt(e, t, r, n, i, s, u = null, a = [-1]) {
|
|
|
198
198
|
};
|
|
199
199
|
u && u(o.root);
|
|
200
200
|
let h = !1;
|
|
201
|
-
if (o.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
202
|
-
const
|
|
203
|
-
return o.ctx && i(o.ctx[f], o.ctx[f] =
|
|
204
|
-
}) : [], o.update(), h = !0,
|
|
201
|
+
if (o.ctx = r ? r(e, t.props || {}, (f, c, ...g) => {
|
|
202
|
+
const d = g.length ? g[0] : c;
|
|
203
|
+
return o.ctx && i(o.ctx[f], o.ctx[f] = d) && (!o.skip_bound && o.bound[f] && o.bound[f](d), h && Qt(e, f)), c;
|
|
204
|
+
}) : [], o.update(), h = !0, q(o.before_update), o.fragment = n ? n(o.ctx) : !1, t.target) {
|
|
205
205
|
if (t.hydrate) {
|
|
206
206
|
const f = Rt(t.target);
|
|
207
|
-
o.fragment && o.fragment.l(f), f.forEach(
|
|
207
|
+
o.fragment && o.fragment.l(f), f.forEach(Ie);
|
|
208
208
|
} else
|
|
209
209
|
o.fragment && o.fragment.c();
|
|
210
|
-
t.intro && Wt(e.$$.fragment), zt(e, t.target, t.anchor),
|
|
210
|
+
t.intro && Wt(e.$$.fragment), zt(e, t.target, t.anchor), w();
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
z(l);
|
|
213
213
|
}
|
|
214
214
|
let st;
|
|
215
215
|
typeof HTMLElement == "function" && (st = class extends HTMLElement {
|
|
@@ -254,7 +254,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
|
|
|
254
254
|
let s;
|
|
255
255
|
return {
|
|
256
256
|
c: function() {
|
|
257
|
-
s =
|
|
257
|
+
s = P("slot"), i !== "default" && $(s, "name", i);
|
|
258
258
|
},
|
|
259
259
|
/**
|
|
260
260
|
* @param {HTMLElement} target
|
|
@@ -264,7 +264,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
|
|
|
264
264
|
it(l, s, o);
|
|
265
265
|
},
|
|
266
266
|
d: function(l) {
|
|
267
|
-
l &&
|
|
267
|
+
l && Ie(s);
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
270
|
};
|
|
@@ -276,7 +276,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
|
|
|
276
276
|
i in r && (t[i] = [e(i)]);
|
|
277
277
|
for (const i of this.attributes) {
|
|
278
278
|
const s = this.$$g_p(i.name);
|
|
279
|
-
s in this.$$d || (this.$$d[s] =
|
|
279
|
+
s in this.$$d || (this.$$d[s] = te(s, i.value, this.$$p_d, "toProp"));
|
|
280
280
|
}
|
|
281
281
|
for (const i in this.$$p_d)
|
|
282
282
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -294,7 +294,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
|
|
|
294
294
|
this.$$r = !0;
|
|
295
295
|
for (const i in this.$$p_d)
|
|
296
296
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
297
|
-
const s =
|
|
297
|
+
const s = te(
|
|
298
298
|
i,
|
|
299
299
|
this.$$d[i],
|
|
300
300
|
this.$$p_d,
|
|
@@ -316,7 +316,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
|
|
|
316
316
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
317
317
|
// and setting attributes through setAttribute etc, this is helpful
|
|
318
318
|
attributeChangedCallback(e, t, r) {
|
|
319
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
319
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = te(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
320
320
|
}
|
|
321
321
|
disconnectedCallback() {
|
|
322
322
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -329,7 +329,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
|
|
|
329
329
|
) || e;
|
|
330
330
|
}
|
|
331
331
|
});
|
|
332
|
-
function
|
|
332
|
+
function te(e, t, r, n) {
|
|
333
333
|
const i = r[e]?.type;
|
|
334
334
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
335
335
|
return t;
|
|
@@ -375,7 +375,7 @@ function qt(e, t, r, n, i, s) {
|
|
|
375
375
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
376
376
|
},
|
|
377
377
|
set(l) {
|
|
378
|
-
l =
|
|
378
|
+
l = te(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
381
|
}), n.forEach((a) => {
|
|
@@ -415,7 +415,7 @@ class Yt {
|
|
|
415
415
|
* @returns {() => void}
|
|
416
416
|
*/
|
|
417
417
|
$on(t, r) {
|
|
418
|
-
if (!
|
|
418
|
+
if (!we(r))
|
|
419
419
|
return H;
|
|
420
420
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
421
421
|
return n.push(r), () => {
|
|
@@ -428,7 +428,7 @@ class Yt {
|
|
|
428
428
|
* @returns {void}
|
|
429
429
|
*/
|
|
430
430
|
$set(t) {
|
|
431
|
-
this.$$set && !
|
|
431
|
+
this.$$set && !Ot(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
const Kt = "4";
|
|
@@ -456,24 +456,24 @@ function rr(e, t, r) {
|
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
const
|
|
459
|
+
const C = [];
|
|
460
460
|
function nr(e, t) {
|
|
461
461
|
return {
|
|
462
|
-
subscribe:
|
|
462
|
+
subscribe: ae(e, t).subscribe
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function ae(e, t = H) {
|
|
466
466
|
let r;
|
|
467
467
|
const n = /* @__PURE__ */ new Set();
|
|
468
468
|
function i(a) {
|
|
469
469
|
if (rt(e, a) && (e = a, r)) {
|
|
470
|
-
const l = !
|
|
470
|
+
const l = !C.length;
|
|
471
471
|
for (const o of n)
|
|
472
|
-
o[1](),
|
|
472
|
+
o[1](), C.push(o, e);
|
|
473
473
|
if (l) {
|
|
474
|
-
for (let o = 0; o <
|
|
475
|
-
|
|
476
|
-
|
|
474
|
+
for (let o = 0; o < C.length; o += 2)
|
|
475
|
+
C[o][0](C[o + 1]);
|
|
476
|
+
C.length = 0;
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
}
|
|
@@ -488,7 +488,7 @@ function se(e, t = H) {
|
|
|
488
488
|
}
|
|
489
489
|
return { set: i, update: s, subscribe: u };
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function k(e, t, r) {
|
|
492
492
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
493
493
|
if (!i.every(Boolean))
|
|
494
494
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -501,11 +501,11 @@ function j(e, t, r) {
|
|
|
501
501
|
if (h)
|
|
502
502
|
return;
|
|
503
503
|
f();
|
|
504
|
-
const
|
|
505
|
-
s ? u(
|
|
506
|
-
},
|
|
507
|
-
(
|
|
508
|
-
|
|
504
|
+
const d = t(n ? o[0] : o, u, a);
|
|
505
|
+
s ? u(d) : f = we(d) ? d : H;
|
|
506
|
+
}, g = i.map(
|
|
507
|
+
(d, E) => nt(
|
|
508
|
+
d,
|
|
509
509
|
(B) => {
|
|
510
510
|
o[E] = B, h &= ~(1 << E), l && c();
|
|
511
511
|
},
|
|
@@ -515,7 +515,7 @@ function j(e, t, r) {
|
|
|
515
515
|
)
|
|
516
516
|
);
|
|
517
517
|
return l = !0, c(), function() {
|
|
518
|
-
|
|
518
|
+
q(g), f(), l = !1;
|
|
519
519
|
};
|
|
520
520
|
});
|
|
521
521
|
}
|
|
@@ -539,19 +539,19 @@ function lr(e) {
|
|
|
539
539
|
function fr(e) {
|
|
540
540
|
return Array.isArray(e) ? [] : {};
|
|
541
541
|
}
|
|
542
|
-
function
|
|
543
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
542
|
+
function Q(e, t) {
|
|
543
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? D(fr(e), e, t) : e;
|
|
544
544
|
}
|
|
545
545
|
function cr(e, t, r) {
|
|
546
546
|
return e.concat(t).map(function(n) {
|
|
547
|
-
return
|
|
547
|
+
return Q(n, r);
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
550
|
function mr(e, t) {
|
|
551
551
|
if (!t.customMerge)
|
|
552
|
-
return
|
|
552
|
+
return D;
|
|
553
553
|
var r = t.customMerge(e);
|
|
554
|
-
return typeof r == "function" ? r :
|
|
554
|
+
return typeof r == "function" ? r : D;
|
|
555
555
|
}
|
|
556
556
|
function pr(e) {
|
|
557
557
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -574,67 +574,53 @@ function br(e, t) {
|
|
|
574
574
|
function dr(e, t, r) {
|
|
575
575
|
var n = {};
|
|
576
576
|
return r.isMergeableObject(e) && Ge(e).forEach(function(i) {
|
|
577
|
-
n[i] =
|
|
577
|
+
n[i] = Q(e[i], r);
|
|
578
578
|
}), Ge(t).forEach(function(i) {
|
|
579
|
-
br(e, i) || (ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = mr(i, r)(e[i], t[i], r) : n[i] =
|
|
579
|
+
br(e, i) || (ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = mr(i, r)(e[i], t[i], r) : n[i] = Q(t[i], r));
|
|
580
580
|
}), n;
|
|
581
581
|
}
|
|
582
|
-
function
|
|
583
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || cr, r.isMergeableObject = r.isMergeableObject || sr, r.cloneUnlessOtherwiseSpecified =
|
|
582
|
+
function D(e, t, r) {
|
|
583
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || cr, r.isMergeableObject = r.isMergeableObject || sr, r.cloneUnlessOtherwiseSpecified = Q;
|
|
584
584
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
585
|
-
return s ? n ? r.arrayMerge(e, t, r) : dr(e, t, r) :
|
|
585
|
+
return s ? n ? r.arrayMerge(e, t, r) : dr(e, t, r) : Q(t, r);
|
|
586
586
|
}
|
|
587
|
-
|
|
587
|
+
D.all = function(t, r) {
|
|
588
588
|
if (!Array.isArray(t))
|
|
589
589
|
throw new Error("first argument should be an array");
|
|
590
590
|
return t.reduce(function(n, i) {
|
|
591
|
-
return
|
|
591
|
+
return D(n, i, r);
|
|
592
592
|
}, {});
|
|
593
593
|
};
|
|
594
|
-
var gr =
|
|
595
|
-
const
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
600
|
-
purpose with or without fee is hereby granted.
|
|
601
|
-
|
|
602
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
603
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
604
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
605
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
606
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
607
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
608
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
609
|
-
***************************************************************************** */
|
|
610
|
-
var _e = function(e, t) {
|
|
611
|
-
return _e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
594
|
+
var gr = D, yr = gr;
|
|
595
|
+
const Er = /* @__PURE__ */ ir(yr);
|
|
596
|
+
var Be = function(e, t) {
|
|
597
|
+
return Be = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
612
598
|
r.__proto__ = n;
|
|
613
599
|
} || function(r, n) {
|
|
614
600
|
for (var i in n)
|
|
615
601
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
616
|
-
},
|
|
602
|
+
}, Be(e, t);
|
|
617
603
|
};
|
|
618
|
-
function
|
|
604
|
+
function ue(e, t) {
|
|
619
605
|
if (typeof t != "function" && t !== null)
|
|
620
606
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
621
|
-
|
|
607
|
+
Be(e, t);
|
|
622
608
|
function r() {
|
|
623
609
|
this.constructor = e;
|
|
624
610
|
}
|
|
625
611
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
626
612
|
}
|
|
627
|
-
var
|
|
628
|
-
return
|
|
613
|
+
var A = function() {
|
|
614
|
+
return A = Object.assign || function(t) {
|
|
629
615
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
630
616
|
r = arguments[n];
|
|
631
617
|
for (var s in r)
|
|
632
618
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
633
619
|
}
|
|
634
620
|
return t;
|
|
635
|
-
},
|
|
621
|
+
}, A.apply(this, arguments);
|
|
636
622
|
};
|
|
637
|
-
function
|
|
623
|
+
function xr(e, t) {
|
|
638
624
|
var r = {};
|
|
639
625
|
for (var n in e)
|
|
640
626
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -643,111 +629,119 @@ function Er(e, t) {
|
|
|
643
629
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
644
630
|
return r;
|
|
645
631
|
}
|
|
646
|
-
function
|
|
647
|
-
if (arguments.length === 2)
|
|
632
|
+
function me(e, t, r) {
|
|
633
|
+
if (r || arguments.length === 2)
|
|
648
634
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
649
635
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
650
|
-
return e.concat(s || t);
|
|
636
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
651
637
|
}
|
|
652
|
-
function
|
|
653
|
-
var r = t && t.cache ? t.cache :
|
|
638
|
+
function pe(e, t) {
|
|
639
|
+
var r = t && t.cache ? t.cache : Ar, n = t && t.serializer ? t.serializer : Sr, i = t && t.strategy ? t.strategy : Br;
|
|
654
640
|
return i(e, {
|
|
655
641
|
cache: r,
|
|
656
642
|
serializer: n
|
|
657
643
|
});
|
|
658
644
|
}
|
|
659
|
-
function
|
|
645
|
+
function vr(e) {
|
|
660
646
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
661
647
|
}
|
|
662
|
-
function
|
|
663
|
-
var i =
|
|
648
|
+
function _r(e, t, r, n) {
|
|
649
|
+
var i = vr(n) ? n : r(n), s = t.get(i);
|
|
664
650
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
665
651
|
}
|
|
666
|
-
function
|
|
652
|
+
function at(e, t, r) {
|
|
667
653
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
668
654
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
669
655
|
}
|
|
670
|
-
function
|
|
656
|
+
function ut(e, t, r, n, i) {
|
|
671
657
|
return r.bind(t, e, n, i);
|
|
672
658
|
}
|
|
673
|
-
function vr(e, t) {
|
|
674
|
-
var r = e.length === 1 ? at : ut;
|
|
675
|
-
return we(e, this, r, t.cache.create(), t.serializer);
|
|
676
|
-
}
|
|
677
659
|
function Br(e, t) {
|
|
678
|
-
|
|
660
|
+
var r = e.length === 1 ? _r : at;
|
|
661
|
+
return ut(e, this, r, t.cache.create(), t.serializer);
|
|
679
662
|
}
|
|
680
663
|
function Hr(e, t) {
|
|
681
|
-
return
|
|
664
|
+
return ut(e, this, at, t.cache.create(), t.serializer);
|
|
682
665
|
}
|
|
683
|
-
var
|
|
666
|
+
var Sr = function() {
|
|
684
667
|
return JSON.stringify(arguments);
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
668
|
+
}, Tr = (
|
|
669
|
+
/** @class */
|
|
670
|
+
function() {
|
|
671
|
+
function e() {
|
|
672
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
673
|
+
}
|
|
674
|
+
return e.prototype.get = function(t) {
|
|
675
|
+
return this.cache[t];
|
|
676
|
+
}, e.prototype.set = function(t, r) {
|
|
677
|
+
this.cache[t] = r;
|
|
678
|
+
}, e;
|
|
679
|
+
}()
|
|
680
|
+
), Ar = {
|
|
696
681
|
create: function() {
|
|
697
|
-
return new
|
|
682
|
+
return new Tr();
|
|
698
683
|
}
|
|
699
|
-
},
|
|
700
|
-
variadic:
|
|
701
|
-
|
|
702
|
-
|
|
684
|
+
}, be = {
|
|
685
|
+
variadic: Hr
|
|
686
|
+
}, ie = function() {
|
|
687
|
+
return ie = Object.assign || function(t) {
|
|
688
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
689
|
+
r = arguments[n];
|
|
690
|
+
for (var s in r)
|
|
691
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
692
|
+
}
|
|
693
|
+
return t;
|
|
694
|
+
}, ie.apply(this, arguments);
|
|
695
|
+
};
|
|
696
|
+
var p;
|
|
703
697
|
(function(e) {
|
|
704
698
|
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";
|
|
705
699
|
})(p || (p = {}));
|
|
706
|
-
var
|
|
700
|
+
var y;
|
|
707
701
|
(function(e) {
|
|
708
702
|
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";
|
|
709
|
-
})(
|
|
710
|
-
var
|
|
703
|
+
})(y || (y = {}));
|
|
704
|
+
var G;
|
|
711
705
|
(function(e) {
|
|
712
706
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
713
|
-
})(
|
|
707
|
+
})(G || (G = {}));
|
|
714
708
|
function Fe(e) {
|
|
715
|
-
return e.type ===
|
|
709
|
+
return e.type === y.literal;
|
|
716
710
|
}
|
|
717
|
-
function
|
|
718
|
-
return e.type ===
|
|
711
|
+
function Pr(e) {
|
|
712
|
+
return e.type === y.argument;
|
|
719
713
|
}
|
|
720
714
|
function ht(e) {
|
|
721
|
-
return e.type ===
|
|
715
|
+
return e.type === y.number;
|
|
722
716
|
}
|
|
723
717
|
function lt(e) {
|
|
724
|
-
return e.type ===
|
|
718
|
+
return e.type === y.date;
|
|
725
719
|
}
|
|
726
720
|
function ft(e) {
|
|
727
|
-
return e.type ===
|
|
721
|
+
return e.type === y.time;
|
|
728
722
|
}
|
|
729
723
|
function ct(e) {
|
|
730
|
-
return e.type ===
|
|
724
|
+
return e.type === y.select;
|
|
731
725
|
}
|
|
732
726
|
function mt(e) {
|
|
733
|
-
return e.type ===
|
|
727
|
+
return e.type === y.plural;
|
|
734
728
|
}
|
|
735
729
|
function Mr(e) {
|
|
736
|
-
return e.type ===
|
|
730
|
+
return e.type === y.pound;
|
|
737
731
|
}
|
|
738
732
|
function pt(e) {
|
|
739
|
-
return e.type ===
|
|
733
|
+
return e.type === y.tag;
|
|
740
734
|
}
|
|
741
735
|
function bt(e) {
|
|
742
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
736
|
+
return !!(e && typeof e == "object" && e.type === G.number);
|
|
743
737
|
}
|
|
744
|
-
function
|
|
745
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
738
|
+
function He(e) {
|
|
739
|
+
return !!(e && typeof e == "object" && e.type === G.dateTime);
|
|
746
740
|
}
|
|
747
|
-
var dt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
741
|
+
var dt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Or = /(?:[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;
|
|
748
742
|
function Nr(e) {
|
|
749
743
|
var t = {};
|
|
750
|
-
return e.replace(
|
|
744
|
+
return e.replace(Or, function(r) {
|
|
751
745
|
var n = r.length;
|
|
752
746
|
switch (r[0]) {
|
|
753
747
|
case "G":
|
|
@@ -836,11 +830,21 @@ function Nr(e) {
|
|
|
836
830
|
return "";
|
|
837
831
|
}), t;
|
|
838
832
|
}
|
|
839
|
-
var
|
|
840
|
-
function
|
|
833
|
+
var x = function() {
|
|
834
|
+
return x = Object.assign || function(t) {
|
|
835
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
836
|
+
r = arguments[n];
|
|
837
|
+
for (var s in r)
|
|
838
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
839
|
+
}
|
|
840
|
+
return t;
|
|
841
|
+
}, x.apply(this, arguments);
|
|
842
|
+
};
|
|
843
|
+
var wr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
844
|
+
function Ir(e) {
|
|
841
845
|
if (e.length === 0)
|
|
842
846
|
throw new Error("Number skeleton cannot be empty");
|
|
843
|
-
for (var t = e.split(
|
|
847
|
+
for (var t = e.split(wr).filter(function(c) {
|
|
844
848
|
return c.length > 0;
|
|
845
849
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
846
850
|
var s = i[n], u = s.split("/");
|
|
@@ -855,17 +859,17 @@ function wr(e) {
|
|
|
855
859
|
}
|
|
856
860
|
return r;
|
|
857
861
|
}
|
|
858
|
-
function
|
|
862
|
+
function Lr(e) {
|
|
859
863
|
return e.replace(/^(.*?)-/, "");
|
|
860
864
|
}
|
|
861
|
-
var je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
865
|
+
var je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gt = /^(@+)?(\+|#+)?[rs]?$/g, Cr = /(\*)(0+)|(#+)(0+)|(0+)/g, yt = /^(0+)$/;
|
|
862
866
|
function ke(e) {
|
|
863
867
|
var t = {};
|
|
864
868
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(gt, function(r, n, i) {
|
|
865
869
|
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)), "";
|
|
866
870
|
}), t;
|
|
867
871
|
}
|
|
868
|
-
function
|
|
872
|
+
function Et(e) {
|
|
869
873
|
switch (e) {
|
|
870
874
|
case "sign-auto":
|
|
871
875
|
return {
|
|
@@ -905,7 +909,7 @@ function xt(e) {
|
|
|
905
909
|
};
|
|
906
910
|
}
|
|
907
911
|
}
|
|
908
|
-
function
|
|
912
|
+
function $r(e) {
|
|
909
913
|
var t;
|
|
910
914
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
911
915
|
notation: "engineering"
|
|
@@ -920,10 +924,10 @@ function Cr(e) {
|
|
|
920
924
|
return t;
|
|
921
925
|
}
|
|
922
926
|
function Ve(e) {
|
|
923
|
-
var t = {}, r =
|
|
927
|
+
var t = {}, r = Et(e);
|
|
924
928
|
return r || t;
|
|
925
929
|
}
|
|
926
|
-
function
|
|
930
|
+
function Rr(e) {
|
|
927
931
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
928
932
|
var i = n[r];
|
|
929
933
|
switch (i.stem) {
|
|
@@ -947,7 +951,7 @@ function $r(e) {
|
|
|
947
951
|
continue;
|
|
948
952
|
case "measure-unit":
|
|
949
953
|
case "unit":
|
|
950
|
-
t.style = "unit", t.unit =
|
|
954
|
+
t.style = "unit", t.unit = Lr(i.options[0]);
|
|
951
955
|
continue;
|
|
952
956
|
case "compact-short":
|
|
953
957
|
case "K":
|
|
@@ -958,13 +962,13 @@ function $r(e) {
|
|
|
958
962
|
t.notation = "compact", t.compactDisplay = "long";
|
|
959
963
|
continue;
|
|
960
964
|
case "scientific":
|
|
961
|
-
t =
|
|
962
|
-
return
|
|
965
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, o) {
|
|
966
|
+
return x(x({}, l), Ve(o));
|
|
963
967
|
}, {}));
|
|
964
968
|
continue;
|
|
965
969
|
case "engineering":
|
|
966
|
-
t =
|
|
967
|
-
return
|
|
970
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, o) {
|
|
971
|
+
return x(x({}, l), Ve(o));
|
|
968
972
|
}, {}));
|
|
969
973
|
continue;
|
|
970
974
|
case "notation-simple":
|
|
@@ -1009,13 +1013,13 @@ function $r(e) {
|
|
|
1009
1013
|
case "integer-width":
|
|
1010
1014
|
if (i.options.length > 1)
|
|
1011
1015
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1012
|
-
i.options[0].replace(
|
|
1016
|
+
i.options[0].replace(Cr, function(l, o, h, f, c, g) {
|
|
1013
1017
|
if (o)
|
|
1014
1018
|
t.minimumIntegerDigits = h.length;
|
|
1015
1019
|
else {
|
|
1016
1020
|
if (f && c)
|
|
1017
1021
|
throw new Error("We currently do not support maximum integer digits");
|
|
1018
|
-
if (
|
|
1022
|
+
if (g)
|
|
1019
1023
|
throw new Error("We currently do not support exact integer digits");
|
|
1020
1024
|
}
|
|
1021
1025
|
return "";
|
|
@@ -1029,25 +1033,25 @@ function $r(e) {
|
|
|
1029
1033
|
if (je.test(i.stem)) {
|
|
1030
1034
|
if (i.options.length > 1)
|
|
1031
1035
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1032
|
-
i.stem.replace(je, function(l, o, h, f, c,
|
|
1033
|
-
return h === "*" ? t.minimumFractionDigits = o.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1036
|
+
i.stem.replace(je, function(l, o, h, f, c, g) {
|
|
1037
|
+
return h === "*" ? t.minimumFractionDigits = o.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && g ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + g.length) : (t.minimumFractionDigits = o.length, t.maximumFractionDigits = o.length), "";
|
|
1034
1038
|
});
|
|
1035
1039
|
var s = i.options[0];
|
|
1036
|
-
s === "w" ? t =
|
|
1040
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), ke(s)));
|
|
1037
1041
|
continue;
|
|
1038
1042
|
}
|
|
1039
1043
|
if (gt.test(i.stem)) {
|
|
1040
|
-
t =
|
|
1044
|
+
t = x(x({}, t), ke(i.stem));
|
|
1041
1045
|
continue;
|
|
1042
1046
|
}
|
|
1043
|
-
var u =
|
|
1044
|
-
u && (t =
|
|
1045
|
-
var a =
|
|
1046
|
-
a && (t =
|
|
1047
|
+
var u = Et(i.stem);
|
|
1048
|
+
u && (t = x(x({}, t), u));
|
|
1049
|
+
var a = $r(i.stem);
|
|
1050
|
+
a && (t = x(x({}, t), a));
|
|
1047
1051
|
}
|
|
1048
1052
|
return t;
|
|
1049
1053
|
}
|
|
1050
|
-
var
|
|
1054
|
+
var ee = {
|
|
1051
1055
|
"001": [
|
|
1052
1056
|
"H",
|
|
1053
1057
|
"h"
|
|
@@ -2462,13 +2466,13 @@ var K = {
|
|
|
2462
2466
|
"h"
|
|
2463
2467
|
]
|
|
2464
2468
|
};
|
|
2465
|
-
function
|
|
2469
|
+
function Ur(e, t) {
|
|
2466
2470
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2467
2471
|
var i = e.charAt(n);
|
|
2468
2472
|
if (i === "j") {
|
|
2469
2473
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2470
2474
|
s++, n++;
|
|
2471
|
-
var u = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", o =
|
|
2475
|
+
var u = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", o = Dr(t);
|
|
2472
2476
|
for ((o == "H" || o == "k") && (a = 0); a-- > 0; )
|
|
2473
2477
|
r += l;
|
|
2474
2478
|
for (; u-- > 0; )
|
|
@@ -2478,7 +2482,7 @@ function Rr(e, t) {
|
|
|
2478
2482
|
}
|
|
2479
2483
|
return r;
|
|
2480
2484
|
}
|
|
2481
|
-
function
|
|
2485
|
+
function Dr(e) {
|
|
2482
2486
|
var t = e.hourCycle;
|
|
2483
2487
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2484
2488
|
e.hourCycles && // @ts-ignore
|
|
@@ -2497,23 +2501,23 @@ function Ur(e) {
|
|
|
2497
2501
|
}
|
|
2498
2502
|
var r = e.language, n;
|
|
2499
2503
|
r !== "root" && (n = e.maximize().region);
|
|
2500
|
-
var i =
|
|
2504
|
+
var i = ee[n || ""] || ee[r || ""] || ee["".concat(r, "-001")] || ee["001"];
|
|
2501
2505
|
return i[0];
|
|
2502
2506
|
}
|
|
2503
|
-
var
|
|
2507
|
+
var de, Gr = new RegExp("^".concat(dt.source, "*")), Fr = new RegExp("".concat(dt.source, "*$"));
|
|
2504
2508
|
function b(e, t) {
|
|
2505
2509
|
return { start: e, end: t };
|
|
2506
2510
|
}
|
|
2507
|
-
var
|
|
2511
|
+
var jr = !!String.prototype.startsWith && "_a".startsWith("a", 1), kr = !!String.fromCodePoint, Vr = !!Object.fromEntries, Xr = !!String.prototype.codePointAt, Wr = !!String.prototype.trimStart, zr = !!String.prototype.trimEnd, Zr = !!Number.isSafeInteger, Qr = Zr ? Number.isSafeInteger : function(e) {
|
|
2508
2512
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2509
|
-
},
|
|
2513
|
+
}, Se = !0;
|
|
2510
2514
|
try {
|
|
2511
|
-
var
|
|
2512
|
-
|
|
2515
|
+
var Jr = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2516
|
+
Se = ((de = Jr.exec("a")) === null || de === void 0 ? void 0 : de[0]) === "a";
|
|
2513
2517
|
} catch {
|
|
2514
|
-
|
|
2518
|
+
Se = !1;
|
|
2515
2519
|
}
|
|
2516
|
-
var Xe =
|
|
2520
|
+
var Xe = jr ? (
|
|
2517
2521
|
// Native
|
|
2518
2522
|
function(t, r, n) {
|
|
2519
2523
|
return t.startsWith(r, n);
|
|
@@ -2523,7 +2527,7 @@ var Xe = Fr ? (
|
|
|
2523
2527
|
function(t, r, n) {
|
|
2524
2528
|
return t.slice(n, n + r.length) === r;
|
|
2525
2529
|
}
|
|
2526
|
-
),
|
|
2530
|
+
), Te = kr ? String.fromCodePoint : (
|
|
2527
2531
|
// IE11
|
|
2528
2532
|
function() {
|
|
2529
2533
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2537,7 +2541,7 @@ var Xe = Fr ? (
|
|
|
2537
2541
|
}
|
|
2538
2542
|
), We = (
|
|
2539
2543
|
// native
|
|
2540
|
-
|
|
2544
|
+
Vr ? Object.fromEntries : (
|
|
2541
2545
|
// Ponyfill
|
|
2542
2546
|
function(t) {
|
|
2543
2547
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2547,7 +2551,7 @@ var Xe = Fr ? (
|
|
|
2547
2551
|
return r;
|
|
2548
2552
|
}
|
|
2549
2553
|
)
|
|
2550
|
-
),
|
|
2554
|
+
), xt = Xr ? (
|
|
2551
2555
|
// Native
|
|
2552
2556
|
function(t, r) {
|
|
2553
2557
|
return t.codePointAt(r);
|
|
@@ -2561,7 +2565,7 @@ var Xe = Fr ? (
|
|
|
2561
2565
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2562
2566
|
}
|
|
2563
2567
|
}
|
|
2564
|
-
),
|
|
2568
|
+
), qr = Wr ? (
|
|
2565
2569
|
// Native
|
|
2566
2570
|
function(t) {
|
|
2567
2571
|
return t.trimStart();
|
|
@@ -2569,9 +2573,9 @@ var Xe = Fr ? (
|
|
|
2569
2573
|
) : (
|
|
2570
2574
|
// Ponyfill
|
|
2571
2575
|
function(t) {
|
|
2572
|
-
return t.replace(
|
|
2576
|
+
return t.replace(Gr, "");
|
|
2573
2577
|
}
|
|
2574
|
-
),
|
|
2578
|
+
), Yr = zr ? (
|
|
2575
2579
|
// Native
|
|
2576
2580
|
function(t) {
|
|
2577
2581
|
return t.trimEnd();
|
|
@@ -2579,32 +2583,32 @@ var Xe = Fr ? (
|
|
|
2579
2583
|
) : (
|
|
2580
2584
|
// Ponyfill
|
|
2581
2585
|
function(t) {
|
|
2582
|
-
return t.replace(
|
|
2586
|
+
return t.replace(Fr, "");
|
|
2583
2587
|
}
|
|
2584
2588
|
);
|
|
2585
|
-
function
|
|
2589
|
+
function vt(e, t) {
|
|
2586
2590
|
return new RegExp(e, t);
|
|
2587
2591
|
}
|
|
2588
|
-
var
|
|
2589
|
-
if (
|
|
2590
|
-
var ze =
|
|
2591
|
-
|
|
2592
|
+
var Ae;
|
|
2593
|
+
if (Se) {
|
|
2594
|
+
var ze = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2595
|
+
Ae = function(t, r) {
|
|
2592
2596
|
var n;
|
|
2593
2597
|
ze.lastIndex = r;
|
|
2594
2598
|
var i = ze.exec(t);
|
|
2595
2599
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2596
2600
|
};
|
|
2597
2601
|
} else
|
|
2598
|
-
|
|
2602
|
+
Ae = function(t, r) {
|
|
2599
2603
|
for (var n = []; ; ) {
|
|
2600
|
-
var i =
|
|
2601
|
-
if (i === void 0 ||
|
|
2604
|
+
var i = xt(t, r);
|
|
2605
|
+
if (i === void 0 || _t(i) || rn(i))
|
|
2602
2606
|
break;
|
|
2603
2607
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2604
2608
|
}
|
|
2605
|
-
return
|
|
2609
|
+
return Te.apply(void 0, n);
|
|
2606
2610
|
};
|
|
2607
|
-
var
|
|
2611
|
+
var Kr = (
|
|
2608
2612
|
/** @class */
|
|
2609
2613
|
function() {
|
|
2610
2614
|
function e(t, r) {
|
|
@@ -2628,14 +2632,14 @@ var Yr = (
|
|
|
2628
2632
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2629
2633
|
var a = this.clonePosition();
|
|
2630
2634
|
this.bump(), i.push({
|
|
2631
|
-
type:
|
|
2635
|
+
type: y.pound,
|
|
2632
2636
|
location: b(a, this.clonePosition())
|
|
2633
2637
|
});
|
|
2634
2638
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2635
2639
|
if (n)
|
|
2636
2640
|
break;
|
|
2637
2641
|
return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2638
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2642
|
+
} else if (s === 60 && !this.ignoreTag && Pe(this.peek() || 0)) {
|
|
2639
2643
|
var u = this.parseTag(t, r);
|
|
2640
2644
|
if (u.err)
|
|
2641
2645
|
return u;
|
|
@@ -2656,7 +2660,7 @@ var Yr = (
|
|
|
2656
2660
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2657
2661
|
return {
|
|
2658
2662
|
val: {
|
|
2659
|
-
type:
|
|
2663
|
+
type: y.literal,
|
|
2660
2664
|
value: "<".concat(i, "/>"),
|
|
2661
2665
|
location: b(n, this.clonePosition())
|
|
2662
2666
|
},
|
|
@@ -2668,12 +2672,12 @@ var Yr = (
|
|
|
2668
2672
|
return s;
|
|
2669
2673
|
var u = s.val, a = this.clonePosition();
|
|
2670
2674
|
if (this.bumpIf("</")) {
|
|
2671
|
-
if (this.isEOF() || !
|
|
2675
|
+
if (this.isEOF() || !Pe(this.char()))
|
|
2672
2676
|
return this.error(p.INVALID_TAG, b(a, this.clonePosition()));
|
|
2673
2677
|
var l = this.clonePosition(), o = this.parseTagName();
|
|
2674
2678
|
return i !== o ? this.error(p.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2675
2679
|
val: {
|
|
2676
|
-
type:
|
|
2680
|
+
type: y.tag,
|
|
2677
2681
|
value: i,
|
|
2678
2682
|
children: u,
|
|
2679
2683
|
location: b(n, this.clonePosition())
|
|
@@ -2686,7 +2690,7 @@ var Yr = (
|
|
|
2686
2690
|
return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
|
|
2687
2691
|
}, e.prototype.parseTagName = function() {
|
|
2688
2692
|
var t = this.offset();
|
|
2689
|
-
for (this.bump(); !this.isEOF() &&
|
|
2693
|
+
for (this.bump(); !this.isEOF() && tn(this.char()); )
|
|
2690
2694
|
this.bump();
|
|
2691
2695
|
return this.message.slice(t, this.offset());
|
|
2692
2696
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2710,12 +2714,12 @@ var Yr = (
|
|
|
2710
2714
|
}
|
|
2711
2715
|
var l = b(n, this.clonePosition());
|
|
2712
2716
|
return {
|
|
2713
|
-
val: { type:
|
|
2717
|
+
val: { type: y.literal, value: i, location: l },
|
|
2714
2718
|
err: null
|
|
2715
2719
|
};
|
|
2716
2720
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2717
2721
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2718
|
-
!
|
|
2722
|
+
!en(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2719
2723
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2720
2724
|
if (this.isEOF() || this.char() !== 39)
|
|
2721
2725
|
return null;
|
|
@@ -2749,12 +2753,12 @@ var Yr = (
|
|
|
2749
2753
|
r.push(n);
|
|
2750
2754
|
this.bump();
|
|
2751
2755
|
}
|
|
2752
|
-
return
|
|
2756
|
+
return Te.apply(void 0, r);
|
|
2753
2757
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2754
2758
|
if (this.isEOF())
|
|
2755
2759
|
return null;
|
|
2756
2760
|
var n = this.char();
|
|
2757
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2761
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Te(n));
|
|
2758
2762
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2759
2763
|
var n = this.clonePosition();
|
|
2760
2764
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2770,7 +2774,7 @@ var Yr = (
|
|
|
2770
2774
|
case 125:
|
|
2771
2775
|
return this.bump(), {
|
|
2772
2776
|
val: {
|
|
2773
|
-
type:
|
|
2777
|
+
type: y.argument,
|
|
2774
2778
|
// value does not include the opening and closing braces.
|
|
2775
2779
|
value: i,
|
|
2776
2780
|
location: b(n, this.clonePosition())
|
|
@@ -2783,7 +2787,7 @@ var Yr = (
|
|
|
2783
2787
|
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2784
2788
|
}
|
|
2785
2789
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2786
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2790
|
+
var t = this.clonePosition(), r = this.offset(), n = Ae(this.message, r), i = r + n.length;
|
|
2787
2791
|
this.bumpTo(i);
|
|
2788
2792
|
var s = this.clonePosition(), u = b(t, s);
|
|
2789
2793
|
return { value: n, location: u };
|
|
@@ -2802,35 +2806,35 @@ var Yr = (
|
|
|
2802
2806
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2803
2807
|
if (f.err)
|
|
2804
2808
|
return f;
|
|
2805
|
-
var c =
|
|
2809
|
+
var c = Yr(f.val);
|
|
2806
2810
|
if (c.length === 0)
|
|
2807
2811
|
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2808
|
-
var
|
|
2809
|
-
o = { style: c, styleLocation:
|
|
2812
|
+
var g = b(h, this.clonePosition());
|
|
2813
|
+
o = { style: c, styleLocation: g };
|
|
2810
2814
|
}
|
|
2811
|
-
var
|
|
2812
|
-
if (
|
|
2813
|
-
return
|
|
2815
|
+
var d = this.tryParseArgumentClose(i);
|
|
2816
|
+
if (d.err)
|
|
2817
|
+
return d;
|
|
2814
2818
|
var E = b(i, this.clonePosition());
|
|
2815
2819
|
if (o && Xe(o?.style, "::", 0)) {
|
|
2816
|
-
var B =
|
|
2820
|
+
var B = qr(o.style.slice(2));
|
|
2817
2821
|
if (a === "number") {
|
|
2818
2822
|
var f = this.parseNumberSkeletonFromString(B, o.styleLocation);
|
|
2819
2823
|
return f.err ? f : {
|
|
2820
|
-
val: { type:
|
|
2824
|
+
val: { type: y.number, value: n, location: E, style: f.val },
|
|
2821
2825
|
err: null
|
|
2822
2826
|
};
|
|
2823
2827
|
} else {
|
|
2824
2828
|
if (B.length === 0)
|
|
2825
2829
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, E);
|
|
2826
|
-
var
|
|
2827
|
-
this.locale && (
|
|
2830
|
+
var O = B;
|
|
2831
|
+
this.locale && (O = Ur(B, this.locale));
|
|
2828
2832
|
var c = {
|
|
2829
|
-
type:
|
|
2830
|
-
pattern:
|
|
2833
|
+
type: G.dateTime,
|
|
2834
|
+
pattern: O,
|
|
2831
2835
|
location: o.styleLocation,
|
|
2832
|
-
parsedOptions: this.shouldParseSkeletons ? Nr(
|
|
2833
|
-
}, m = a === "date" ?
|
|
2836
|
+
parsedOptions: this.shouldParseSkeletons ? Nr(O) : {}
|
|
2837
|
+
}, m = a === "date" ? y.date : y.time;
|
|
2834
2838
|
return {
|
|
2835
2839
|
val: { type: m, value: n, location: E, style: c },
|
|
2836
2840
|
err: null
|
|
@@ -2839,7 +2843,7 @@ var Yr = (
|
|
|
2839
2843
|
}
|
|
2840
2844
|
return {
|
|
2841
2845
|
val: {
|
|
2842
|
-
type: a === "number" ?
|
|
2846
|
+
type: a === "number" ? y.number : a === "date" ? y.date : y.time,
|
|
2843
2847
|
value: n,
|
|
2844
2848
|
location: E,
|
|
2845
2849
|
style: (s = o?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2850,40 +2854,40 @@ var Yr = (
|
|
|
2850
2854
|
case "plural":
|
|
2851
2855
|
case "selectordinal":
|
|
2852
2856
|
case "select": {
|
|
2853
|
-
var
|
|
2857
|
+
var v = this.clonePosition();
|
|
2854
2858
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2855
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
2859
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v, ie({}, v)));
|
|
2856
2860
|
this.bumpSpace();
|
|
2857
|
-
var
|
|
2858
|
-
if (a !== "select" &&
|
|
2861
|
+
var S = this.parseIdentifierIfPossible(), N = 0;
|
|
2862
|
+
if (a !== "select" && S.value === "offset") {
|
|
2859
2863
|
if (!this.bumpIf(":"))
|
|
2860
2864
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2861
2865
|
this.bumpSpace();
|
|
2862
2866
|
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2863
2867
|
if (f.err)
|
|
2864
2868
|
return f;
|
|
2865
|
-
this.bumpSpace(),
|
|
2869
|
+
this.bumpSpace(), S = this.parseIdentifierIfPossible(), N = f.val;
|
|
2866
2870
|
}
|
|
2867
|
-
var
|
|
2868
|
-
if (
|
|
2869
|
-
return
|
|
2870
|
-
var
|
|
2871
|
-
if (
|
|
2872
|
-
return
|
|
2871
|
+
var K = this.tryParsePluralOrSelectOptions(t, a, r, S);
|
|
2872
|
+
if (K.err)
|
|
2873
|
+
return K;
|
|
2874
|
+
var d = this.tryParseArgumentClose(i);
|
|
2875
|
+
if (d.err)
|
|
2876
|
+
return d;
|
|
2873
2877
|
var $e = b(i, this.clonePosition());
|
|
2874
2878
|
return a === "select" ? {
|
|
2875
2879
|
val: {
|
|
2876
|
-
type:
|
|
2880
|
+
type: y.select,
|
|
2877
2881
|
value: n,
|
|
2878
|
-
options: We(
|
|
2882
|
+
options: We(K.val),
|
|
2879
2883
|
location: $e
|
|
2880
2884
|
},
|
|
2881
2885
|
err: null
|
|
2882
2886
|
} : {
|
|
2883
2887
|
val: {
|
|
2884
|
-
type:
|
|
2888
|
+
type: y.plural,
|
|
2885
2889
|
value: n,
|
|
2886
|
-
options: We(
|
|
2890
|
+
options: We(K.val),
|
|
2887
2891
|
offset: N,
|
|
2888
2892
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2889
2893
|
location: $e
|
|
@@ -2934,16 +2938,16 @@ var Yr = (
|
|
|
2934
2938
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2935
2939
|
var n = [];
|
|
2936
2940
|
try {
|
|
2937
|
-
n =
|
|
2941
|
+
n = Ir(t);
|
|
2938
2942
|
} catch {
|
|
2939
2943
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
2940
2944
|
}
|
|
2941
2945
|
return {
|
|
2942
2946
|
val: {
|
|
2943
|
-
type:
|
|
2947
|
+
type: G.number,
|
|
2944
2948
|
tokens: n,
|
|
2945
2949
|
location: r,
|
|
2946
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2950
|
+
parsedOptions: this.shouldParseSkeletons ? Rr(n) : {}
|
|
2947
2951
|
},
|
|
2948
2952
|
err: null
|
|
2949
2953
|
};
|
|
@@ -2962,20 +2966,20 @@ var Yr = (
|
|
|
2962
2966
|
if (l.has(o))
|
|
2963
2967
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2964
2968
|
o === "other" && (u = !0), this.bumpSpace();
|
|
2965
|
-
var
|
|
2969
|
+
var g = this.clonePosition();
|
|
2966
2970
|
if (!this.bumpIf("{"))
|
|
2967
2971
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
2968
|
-
var
|
|
2969
|
-
if (
|
|
2970
|
-
return
|
|
2971
|
-
var E = this.tryParseArgumentClose(
|
|
2972
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
2973
|
+
if (d.err)
|
|
2974
|
+
return d;
|
|
2975
|
+
var E = this.tryParseArgumentClose(g);
|
|
2972
2976
|
if (E.err)
|
|
2973
2977
|
return E;
|
|
2974
2978
|
a.push([
|
|
2975
2979
|
o,
|
|
2976
2980
|
{
|
|
2977
|
-
value:
|
|
2978
|
-
location: b(
|
|
2981
|
+
value: d.val,
|
|
2982
|
+
location: b(g, this.clonePosition())
|
|
2979
2983
|
}
|
|
2980
2984
|
]), l.add(o), this.bumpSpace(), s = this.parseIdentifierIfPossible(), o = s.value, h = s.location;
|
|
2981
2985
|
}
|
|
@@ -2991,7 +2995,7 @@ var Yr = (
|
|
|
2991
2995
|
break;
|
|
2992
2996
|
}
|
|
2993
2997
|
var l = b(i, this.clonePosition());
|
|
2994
|
-
return s ? (u *= n,
|
|
2998
|
+
return s ? (u *= n, Qr(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2995
2999
|
}, e.prototype.offset = function() {
|
|
2996
3000
|
return this.position.offset;
|
|
2997
3001
|
}, e.prototype.isEOF = function() {
|
|
@@ -3006,7 +3010,7 @@ var Yr = (
|
|
|
3006
3010
|
var t = this.position.offset;
|
|
3007
3011
|
if (t >= this.message.length)
|
|
3008
3012
|
throw Error("out of bound");
|
|
3009
|
-
var r =
|
|
3013
|
+
var r = xt(this.message, t);
|
|
3010
3014
|
if (r === void 0)
|
|
3011
3015
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3012
3016
|
return r;
|
|
@@ -3047,7 +3051,7 @@ var Yr = (
|
|
|
3047
3051
|
break;
|
|
3048
3052
|
}
|
|
3049
3053
|
}, e.prototype.bumpSpace = function() {
|
|
3050
|
-
for (; !this.isEOF() &&
|
|
3054
|
+
for (; !this.isEOF() && _t(this.char()); )
|
|
3051
3055
|
this.bump();
|
|
3052
3056
|
}, e.prototype.peek = function() {
|
|
3053
3057
|
if (this.isEOF())
|
|
@@ -3057,47 +3061,47 @@ var Yr = (
|
|
|
3057
3061
|
}, e;
|
|
3058
3062
|
}()
|
|
3059
3063
|
);
|
|
3060
|
-
function
|
|
3064
|
+
function Pe(e) {
|
|
3061
3065
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3062
3066
|
}
|
|
3063
|
-
function Kr(e) {
|
|
3064
|
-
return Se(e) || e === 47;
|
|
3065
|
-
}
|
|
3066
3067
|
function en(e) {
|
|
3068
|
+
return Pe(e) || e === 47;
|
|
3069
|
+
}
|
|
3070
|
+
function tn(e) {
|
|
3067
3071
|
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;
|
|
3068
3072
|
}
|
|
3069
|
-
function
|
|
3073
|
+
function _t(e) {
|
|
3070
3074
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3071
3075
|
}
|
|
3072
|
-
function
|
|
3076
|
+
function rn(e) {
|
|
3073
3077
|
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;
|
|
3074
3078
|
}
|
|
3075
|
-
function
|
|
3079
|
+
function Me(e) {
|
|
3076
3080
|
e.forEach(function(t) {
|
|
3077
3081
|
if (delete t.location, ct(t) || mt(t))
|
|
3078
3082
|
for (var r in t.options)
|
|
3079
|
-
delete t.options[r].location,
|
|
3083
|
+
delete t.options[r].location, Me(t.options[r].value);
|
|
3080
3084
|
else
|
|
3081
|
-
ht(t) && bt(t.style) || (lt(t) || ft(t)) &&
|
|
3085
|
+
ht(t) && bt(t.style) || (lt(t) || ft(t)) && He(t.style) ? delete t.style.location : pt(t) && Me(t.children);
|
|
3082
3086
|
});
|
|
3083
3087
|
}
|
|
3084
|
-
function
|
|
3085
|
-
t === void 0 && (t = {}), t =
|
|
3086
|
-
var r = new
|
|
3088
|
+
function nn(e, t) {
|
|
3089
|
+
t === void 0 && (t = {}), t = ie({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3090
|
+
var r = new Kr(e, t).parse();
|
|
3087
3091
|
if (r.err) {
|
|
3088
3092
|
var n = SyntaxError(p[r.err.kind]);
|
|
3089
3093
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3090
3094
|
}
|
|
3091
|
-
return t?.captureLocation ||
|
|
3095
|
+
return t?.captureLocation || Me(r.val), r.val;
|
|
3092
3096
|
}
|
|
3093
|
-
var
|
|
3097
|
+
var F;
|
|
3094
3098
|
(function(e) {
|
|
3095
3099
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3096
|
-
})(
|
|
3097
|
-
var
|
|
3100
|
+
})(F || (F = {}));
|
|
3101
|
+
var he = (
|
|
3098
3102
|
/** @class */
|
|
3099
3103
|
function(e) {
|
|
3100
|
-
|
|
3104
|
+
ue(t, e);
|
|
3101
3105
|
function t(r, n, i) {
|
|
3102
3106
|
var s = e.call(this, r) || this;
|
|
3103
3107
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3109,48 +3113,48 @@ var ae = (
|
|
|
3109
3113
|
), Ze = (
|
|
3110
3114
|
/** @class */
|
|
3111
3115
|
function(e) {
|
|
3112
|
-
|
|
3116
|
+
ue(t, e);
|
|
3113
3117
|
function t(r, n, i, s) {
|
|
3114
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3118
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), F.INVALID_VALUE, s) || this;
|
|
3115
3119
|
}
|
|
3116
3120
|
return t;
|
|
3117
|
-
}(
|
|
3118
|
-
),
|
|
3121
|
+
}(he)
|
|
3122
|
+
), sn = (
|
|
3119
3123
|
/** @class */
|
|
3120
3124
|
function(e) {
|
|
3121
|
-
|
|
3125
|
+
ue(t, e);
|
|
3122
3126
|
function t(r, n, i) {
|
|
3123
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3127
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), F.INVALID_VALUE, i) || this;
|
|
3124
3128
|
}
|
|
3125
3129
|
return t;
|
|
3126
|
-
}(
|
|
3127
|
-
),
|
|
3130
|
+
}(he)
|
|
3131
|
+
), on = (
|
|
3128
3132
|
/** @class */
|
|
3129
3133
|
function(e) {
|
|
3130
|
-
|
|
3134
|
+
ue(t, e);
|
|
3131
3135
|
function t(r, n) {
|
|
3132
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3136
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), F.MISSING_VALUE, n) || this;
|
|
3133
3137
|
}
|
|
3134
3138
|
return t;
|
|
3135
|
-
}(
|
|
3136
|
-
),
|
|
3139
|
+
}(he)
|
|
3140
|
+
), _;
|
|
3137
3141
|
(function(e) {
|
|
3138
3142
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3139
|
-
})(
|
|
3140
|
-
function
|
|
3143
|
+
})(_ || (_ = {}));
|
|
3144
|
+
function an(e) {
|
|
3141
3145
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3142
3146
|
var n = t[t.length - 1];
|
|
3143
|
-
return !n || n.type !==
|
|
3147
|
+
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
|
3144
3148
|
}, []);
|
|
3145
3149
|
}
|
|
3146
|
-
function
|
|
3150
|
+
function un(e) {
|
|
3147
3151
|
return typeof e == "function";
|
|
3148
3152
|
}
|
|
3149
|
-
function
|
|
3153
|
+
function re(e, t, r, n, i, s, u) {
|
|
3150
3154
|
if (e.length === 1 && Fe(e[0]))
|
|
3151
3155
|
return [
|
|
3152
3156
|
{
|
|
3153
|
-
type:
|
|
3157
|
+
type: _.literal,
|
|
3154
3158
|
value: e[0].value
|
|
3155
3159
|
}
|
|
3156
3160
|
];
|
|
@@ -3158,103 +3162,103 @@ function te(e, t, r, n, i, s, u) {
|
|
|
3158
3162
|
var h = o[l];
|
|
3159
3163
|
if (Fe(h)) {
|
|
3160
3164
|
a.push({
|
|
3161
|
-
type:
|
|
3165
|
+
type: _.literal,
|
|
3162
3166
|
value: h.value
|
|
3163
3167
|
});
|
|
3164
3168
|
continue;
|
|
3165
3169
|
}
|
|
3166
3170
|
if (Mr(h)) {
|
|
3167
3171
|
typeof s == "number" && a.push({
|
|
3168
|
-
type:
|
|
3172
|
+
type: _.literal,
|
|
3169
3173
|
value: r.getNumberFormat(t).format(s)
|
|
3170
3174
|
});
|
|
3171
3175
|
continue;
|
|
3172
3176
|
}
|
|
3173
3177
|
var f = h.value;
|
|
3174
3178
|
if (!(i && f in i))
|
|
3175
|
-
throw new
|
|
3179
|
+
throw new on(f, u);
|
|
3176
3180
|
var c = i[f];
|
|
3177
|
-
if (
|
|
3181
|
+
if (Pr(h)) {
|
|
3178
3182
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3179
|
-
type: typeof c == "string" ?
|
|
3183
|
+
type: typeof c == "string" ? _.literal : _.object,
|
|
3180
3184
|
value: c
|
|
3181
3185
|
});
|
|
3182
3186
|
continue;
|
|
3183
3187
|
}
|
|
3184
3188
|
if (lt(h)) {
|
|
3185
|
-
var
|
|
3189
|
+
var g = typeof h.style == "string" ? n.date[h.style] : He(h.style) ? h.style.parsedOptions : void 0;
|
|
3186
3190
|
a.push({
|
|
3187
|
-
type:
|
|
3188
|
-
value: r.getDateTimeFormat(t,
|
|
3191
|
+
type: _.literal,
|
|
3192
|
+
value: r.getDateTimeFormat(t, g).format(c)
|
|
3189
3193
|
});
|
|
3190
3194
|
continue;
|
|
3191
3195
|
}
|
|
3192
3196
|
if (ft(h)) {
|
|
3193
|
-
var
|
|
3197
|
+
var g = typeof h.style == "string" ? n.time[h.style] : He(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3194
3198
|
a.push({
|
|
3195
|
-
type:
|
|
3196
|
-
value: r.getDateTimeFormat(t,
|
|
3199
|
+
type: _.literal,
|
|
3200
|
+
value: r.getDateTimeFormat(t, g).format(c)
|
|
3197
3201
|
});
|
|
3198
3202
|
continue;
|
|
3199
3203
|
}
|
|
3200
3204
|
if (ht(h)) {
|
|
3201
|
-
var
|
|
3202
|
-
|
|
3203
|
-
type:
|
|
3204
|
-
value: r.getNumberFormat(t,
|
|
3205
|
+
var g = typeof h.style == "string" ? n.number[h.style] : bt(h.style) ? h.style.parsedOptions : void 0;
|
|
3206
|
+
g && g.scale && (c = c * (g.scale || 1)), a.push({
|
|
3207
|
+
type: _.literal,
|
|
3208
|
+
value: r.getNumberFormat(t, g).format(c)
|
|
3205
3209
|
});
|
|
3206
3210
|
continue;
|
|
3207
3211
|
}
|
|
3208
3212
|
if (pt(h)) {
|
|
3209
|
-
var
|
|
3210
|
-
if (!
|
|
3211
|
-
throw new
|
|
3212
|
-
var
|
|
3213
|
+
var d = h.children, E = h.value, B = i[E];
|
|
3214
|
+
if (!un(B))
|
|
3215
|
+
throw new sn(E, "function", u);
|
|
3216
|
+
var O = re(d, t, r, n, i, s), m = B(O.map(function(N) {
|
|
3213
3217
|
return N.value;
|
|
3214
3218
|
}));
|
|
3215
3219
|
Array.isArray(m) || (m = [m]), a.push.apply(a, m.map(function(N) {
|
|
3216
3220
|
return {
|
|
3217
|
-
type: typeof N == "string" ?
|
|
3221
|
+
type: typeof N == "string" ? _.literal : _.object,
|
|
3218
3222
|
value: N
|
|
3219
3223
|
};
|
|
3220
3224
|
}));
|
|
3221
3225
|
}
|
|
3222
3226
|
if (ct(h)) {
|
|
3223
|
-
var
|
|
3224
|
-
if (!
|
|
3227
|
+
var v = h.options[c] || h.options.other;
|
|
3228
|
+
if (!v)
|
|
3225
3229
|
throw new Ze(h.value, c, Object.keys(h.options), u);
|
|
3226
|
-
a.push.apply(a,
|
|
3230
|
+
a.push.apply(a, re(v.value, t, r, n, i));
|
|
3227
3231
|
continue;
|
|
3228
3232
|
}
|
|
3229
3233
|
if (mt(h)) {
|
|
3230
|
-
var
|
|
3231
|
-
if (!
|
|
3234
|
+
var v = h.options["=".concat(c)];
|
|
3235
|
+
if (!v) {
|
|
3232
3236
|
if (!Intl.PluralRules)
|
|
3233
|
-
throw new
|
|
3237
|
+
throw new he(`Intl.PluralRules is not available in this environment.
|
|
3234
3238
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3235
|
-
`,
|
|
3236
|
-
var
|
|
3237
|
-
|
|
3239
|
+
`, F.MISSING_INTL_API, u);
|
|
3240
|
+
var S = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3241
|
+
v = h.options[S] || h.options.other;
|
|
3238
3242
|
}
|
|
3239
|
-
if (!
|
|
3243
|
+
if (!v)
|
|
3240
3244
|
throw new Ze(h.value, c, Object.keys(h.options), u);
|
|
3241
|
-
a.push.apply(a,
|
|
3245
|
+
a.push.apply(a, re(v.value, t, r, n, i, c - (h.offset || 0)));
|
|
3242
3246
|
continue;
|
|
3243
3247
|
}
|
|
3244
3248
|
}
|
|
3245
|
-
return
|
|
3249
|
+
return an(a);
|
|
3246
3250
|
}
|
|
3247
|
-
function
|
|
3248
|
-
return t ?
|
|
3249
|
-
return r[n] =
|
|
3251
|
+
function hn(e, t) {
|
|
3252
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3253
|
+
return r[n] = A(A({}, e[n]), t[n] || {}), r;
|
|
3250
3254
|
}, {})) : e;
|
|
3251
3255
|
}
|
|
3252
|
-
function
|
|
3256
|
+
function ln(e, t) {
|
|
3253
3257
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3254
|
-
return r[n] =
|
|
3255
|
-
},
|
|
3258
|
+
return r[n] = hn(e[n], t[n]), r;
|
|
3259
|
+
}, A({}, e)) : e;
|
|
3256
3260
|
}
|
|
3257
|
-
function
|
|
3261
|
+
function ge(e) {
|
|
3258
3262
|
return {
|
|
3259
3263
|
create: function() {
|
|
3260
3264
|
return {
|
|
@@ -3268,39 +3272,39 @@ function be(e) {
|
|
|
3268
3272
|
}
|
|
3269
3273
|
};
|
|
3270
3274
|
}
|
|
3271
|
-
function
|
|
3275
|
+
function fn(e) {
|
|
3272
3276
|
return e === void 0 && (e = {
|
|
3273
3277
|
number: {},
|
|
3274
3278
|
dateTime: {},
|
|
3275
3279
|
pluralRules: {}
|
|
3276
3280
|
}), {
|
|
3277
|
-
getNumberFormat:
|
|
3281
|
+
getNumberFormat: pe(function() {
|
|
3278
3282
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3279
3283
|
r[n] = arguments[n];
|
|
3280
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3284
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, me([void 0], r, !1)))();
|
|
3281
3285
|
}, {
|
|
3282
|
-
cache:
|
|
3283
|
-
strategy:
|
|
3286
|
+
cache: ge(e.number),
|
|
3287
|
+
strategy: be.variadic
|
|
3284
3288
|
}),
|
|
3285
|
-
getDateTimeFormat:
|
|
3289
|
+
getDateTimeFormat: pe(function() {
|
|
3286
3290
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3287
3291
|
r[n] = arguments[n];
|
|
3288
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3292
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, me([void 0], r, !1)))();
|
|
3289
3293
|
}, {
|
|
3290
|
-
cache:
|
|
3291
|
-
strategy:
|
|
3294
|
+
cache: ge(e.dateTime),
|
|
3295
|
+
strategy: be.variadic
|
|
3292
3296
|
}),
|
|
3293
|
-
getPluralRules:
|
|
3297
|
+
getPluralRules: pe(function() {
|
|
3294
3298
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3295
3299
|
r[n] = arguments[n];
|
|
3296
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3300
|
+
return new ((t = Intl.PluralRules).bind.apply(t, me([void 0], r, !1)))();
|
|
3297
3301
|
}, {
|
|
3298
|
-
cache:
|
|
3299
|
-
strategy:
|
|
3302
|
+
cache: ge(e.pluralRules),
|
|
3303
|
+
strategy: be.variadic
|
|
3300
3304
|
})
|
|
3301
3305
|
};
|
|
3302
3306
|
}
|
|
3303
|
-
var
|
|
3307
|
+
var cn = (
|
|
3304
3308
|
/** @class */
|
|
3305
3309
|
function() {
|
|
3306
3310
|
function e(t, r, n, i) {
|
|
@@ -3315,11 +3319,11 @@ var fn = (
|
|
|
3315
3319
|
if (o.length === 1)
|
|
3316
3320
|
return o[0].value;
|
|
3317
3321
|
var h = o.reduce(function(f, c) {
|
|
3318
|
-
return !f.length || c.type !==
|
|
3322
|
+
return !f.length || c.type !== _.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3319
3323
|
}, []);
|
|
3320
3324
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3321
3325
|
}, this.formatToParts = function(l) {
|
|
3322
|
-
return
|
|
3326
|
+
return re(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3323
3327
|
}, this.resolvedOptions = function() {
|
|
3324
3328
|
var l;
|
|
3325
3329
|
return {
|
|
@@ -3332,13 +3336,13 @@ var fn = (
|
|
|
3332
3336
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3333
3337
|
var u = i || {};
|
|
3334
3338
|
u.formatters;
|
|
3335
|
-
var a =
|
|
3336
|
-
this.ast = e.__parse(t,
|
|
3339
|
+
var a = xr(u, ["formatters"]);
|
|
3340
|
+
this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
|
|
3337
3341
|
} else
|
|
3338
3342
|
this.ast = t;
|
|
3339
3343
|
if (!Array.isArray(this.ast))
|
|
3340
3344
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3341
|
-
this.formats =
|
|
3345
|
+
this.formats = ln(e.formats, n), this.formatters = i && i.formatters || fn(this.formatterCache);
|
|
3342
3346
|
}
|
|
3343
3347
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3344
3348
|
get: function() {
|
|
@@ -3351,7 +3355,7 @@ var fn = (
|
|
|
3351
3355
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3352
3356
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3353
3357
|
}
|
|
3354
|
-
}, e.__parse =
|
|
3358
|
+
}, e.__parse = nn, e.formats = {
|
|
3355
3359
|
number: {
|
|
3356
3360
|
integer: {
|
|
3357
3361
|
maximumFractionDigits: 0
|
|
@@ -3412,7 +3416,7 @@ var fn = (
|
|
|
3412
3416
|
}, e;
|
|
3413
3417
|
}()
|
|
3414
3418
|
);
|
|
3415
|
-
function
|
|
3419
|
+
function mn(e, t) {
|
|
3416
3420
|
if (t == null)
|
|
3417
3421
|
return;
|
|
3418
3422
|
if (t in e)
|
|
@@ -3433,92 +3437,92 @@ function cn(e, t) {
|
|
|
3433
3437
|
n = void 0;
|
|
3434
3438
|
return n;
|
|
3435
3439
|
}
|
|
3436
|
-
const M = {},
|
|
3440
|
+
const M = {}, pn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Bt = (e, t) => {
|
|
3437
3441
|
if (t == null)
|
|
3438
3442
|
return;
|
|
3439
3443
|
if (t in M && e in M[t])
|
|
3440
3444
|
return M[t][e];
|
|
3441
|
-
const r =
|
|
3445
|
+
const r = le(t);
|
|
3442
3446
|
for (let n = 0; n < r.length; n++) {
|
|
3443
|
-
const i = r[n], s =
|
|
3447
|
+
const i = r[n], s = dn(i, e);
|
|
3444
3448
|
if (s)
|
|
3445
|
-
return
|
|
3449
|
+
return pn(e, t, s);
|
|
3446
3450
|
}
|
|
3447
3451
|
};
|
|
3448
3452
|
let Le;
|
|
3449
|
-
const
|
|
3450
|
-
function
|
|
3453
|
+
const Y = ae({});
|
|
3454
|
+
function bn(e) {
|
|
3451
3455
|
return Le[e] || null;
|
|
3452
3456
|
}
|
|
3453
3457
|
function Ht(e) {
|
|
3454
3458
|
return e in Le;
|
|
3455
3459
|
}
|
|
3456
|
-
function
|
|
3460
|
+
function dn(e, t) {
|
|
3457
3461
|
if (!Ht(e))
|
|
3458
3462
|
return null;
|
|
3459
|
-
const r =
|
|
3460
|
-
return
|
|
3463
|
+
const r = bn(e);
|
|
3464
|
+
return mn(r, t);
|
|
3461
3465
|
}
|
|
3462
|
-
function
|
|
3466
|
+
function gn(e) {
|
|
3463
3467
|
if (e == null)
|
|
3464
3468
|
return;
|
|
3465
|
-
const t =
|
|
3469
|
+
const t = le(e);
|
|
3466
3470
|
for (let r = 0; r < t.length; r++) {
|
|
3467
3471
|
const n = t[r];
|
|
3468
3472
|
if (Ht(n))
|
|
3469
3473
|
return n;
|
|
3470
3474
|
}
|
|
3471
3475
|
}
|
|
3472
|
-
function
|
|
3473
|
-
delete M[e],
|
|
3476
|
+
function St(e, ...t) {
|
|
3477
|
+
delete M[e], Y.update((r) => (r[e] = Er.all([r[e] || {}, ...t]), r));
|
|
3474
3478
|
}
|
|
3475
|
-
|
|
3476
|
-
[
|
|
3479
|
+
k(
|
|
3480
|
+
[Y],
|
|
3477
3481
|
([e]) => Object.keys(e)
|
|
3478
3482
|
);
|
|
3479
|
-
|
|
3480
|
-
const
|
|
3481
|
-
function
|
|
3482
|
-
|
|
3483
|
+
Y.subscribe((e) => Le = e);
|
|
3484
|
+
const ne = {};
|
|
3485
|
+
function yn(e, t) {
|
|
3486
|
+
ne[e].delete(t), ne[e].size === 0 && delete ne[e];
|
|
3483
3487
|
}
|
|
3484
|
-
function
|
|
3485
|
-
return
|
|
3488
|
+
function Tt(e) {
|
|
3489
|
+
return ne[e];
|
|
3486
3490
|
}
|
|
3487
|
-
function
|
|
3488
|
-
return
|
|
3489
|
-
const r =
|
|
3491
|
+
function En(e) {
|
|
3492
|
+
return le(e).map((t) => {
|
|
3493
|
+
const r = Tt(t);
|
|
3490
3494
|
return [t, r ? [...r] : []];
|
|
3491
3495
|
}).filter(([, t]) => t.length > 0);
|
|
3492
3496
|
}
|
|
3493
|
-
function
|
|
3494
|
-
return e == null ? !1 :
|
|
3497
|
+
function Oe(e) {
|
|
3498
|
+
return e == null ? !1 : le(e).some(
|
|
3495
3499
|
(t) => {
|
|
3496
3500
|
var r;
|
|
3497
|
-
return (r =
|
|
3501
|
+
return (r = Tt(t)) == null ? void 0 : r.size;
|
|
3498
3502
|
}
|
|
3499
3503
|
);
|
|
3500
3504
|
}
|
|
3501
3505
|
function xn(e, t) {
|
|
3502
3506
|
return Promise.all(
|
|
3503
|
-
t.map((n) => (
|
|
3504
|
-
).then((n) =>
|
|
3507
|
+
t.map((n) => (yn(e, n), n().then((i) => i.default || i)))
|
|
3508
|
+
).then((n) => St(e, ...n));
|
|
3505
3509
|
}
|
|
3506
|
-
const
|
|
3510
|
+
const W = {};
|
|
3507
3511
|
function At(e) {
|
|
3508
|
-
if (!
|
|
3509
|
-
return e in
|
|
3510
|
-
const t =
|
|
3511
|
-
return
|
|
3512
|
+
if (!Oe(e))
|
|
3513
|
+
return e in W ? W[e] : Promise.resolve();
|
|
3514
|
+
const t = En(e);
|
|
3515
|
+
return W[e] = Promise.all(
|
|
3512
3516
|
t.map(
|
|
3513
3517
|
([r, n]) => xn(r, n)
|
|
3514
3518
|
)
|
|
3515
3519
|
).then(() => {
|
|
3516
|
-
if (
|
|
3520
|
+
if (Oe(e))
|
|
3517
3521
|
return At(e);
|
|
3518
|
-
delete
|
|
3519
|
-
}),
|
|
3522
|
+
delete W[e];
|
|
3523
|
+
}), W[e];
|
|
3520
3524
|
}
|
|
3521
|
-
const
|
|
3525
|
+
const vn = {
|
|
3522
3526
|
number: {
|
|
3523
3527
|
scientific: { notation: "scientific" },
|
|
3524
3528
|
engineering: { notation: "engineering" },
|
|
@@ -3550,138 +3554,138 @@ const En = {
|
|
|
3550
3554
|
}, _n = {
|
|
3551
3555
|
fallbackLocale: null,
|
|
3552
3556
|
loadingDelay: 200,
|
|
3553
|
-
formats:
|
|
3557
|
+
formats: vn,
|
|
3554
3558
|
warnOnMissingMessages: !0,
|
|
3555
3559
|
handleMissingMessage: void 0,
|
|
3556
3560
|
ignoreTag: !0
|
|
3557
|
-
},
|
|
3558
|
-
function
|
|
3559
|
-
return
|
|
3561
|
+
}, Bn = _n;
|
|
3562
|
+
function j() {
|
|
3563
|
+
return Bn;
|
|
3560
3564
|
}
|
|
3561
|
-
const
|
|
3562
|
-
var
|
|
3565
|
+
const ye = ae(!1);
|
|
3566
|
+
var Hn = Object.defineProperty, Sn = Object.defineProperties, Tn = Object.getOwnPropertyDescriptors, Qe = Object.getOwnPropertySymbols, An = Object.prototype.hasOwnProperty, Pn = Object.prototype.propertyIsEnumerable, Je = (e, t, r) => t in e ? Hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mn = (e, t) => {
|
|
3563
3567
|
for (var r in t || (t = {}))
|
|
3564
|
-
|
|
3568
|
+
An.call(t, r) && Je(e, r, t[r]);
|
|
3565
3569
|
if (Qe)
|
|
3566
3570
|
for (var r of Qe(t))
|
|
3567
|
-
|
|
3571
|
+
Pn.call(t, r) && Je(e, r, t[r]);
|
|
3568
3572
|
return e;
|
|
3569
|
-
},
|
|
3570
|
-
let
|
|
3571
|
-
const
|
|
3573
|
+
}, On = (e, t) => Sn(e, Tn(t));
|
|
3574
|
+
let Ne;
|
|
3575
|
+
const se = ae(null);
|
|
3572
3576
|
function qe(e) {
|
|
3573
3577
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3574
3578
|
}
|
|
3575
|
-
function
|
|
3579
|
+
function le(e, t = j().fallbackLocale) {
|
|
3576
3580
|
const r = qe(e);
|
|
3577
3581
|
return t ? [.../* @__PURE__ */ new Set([...r, ...qe(t)])] : r;
|
|
3578
3582
|
}
|
|
3579
|
-
function
|
|
3580
|
-
return
|
|
3583
|
+
function I() {
|
|
3584
|
+
return Ne ?? void 0;
|
|
3581
3585
|
}
|
|
3582
|
-
|
|
3583
|
-
|
|
3586
|
+
se.subscribe((e) => {
|
|
3587
|
+
Ne = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3584
3588
|
});
|
|
3585
3589
|
const Nn = (e) => {
|
|
3586
|
-
if (e &&
|
|
3587
|
-
const { loadingDelay: t } =
|
|
3590
|
+
if (e && gn(e) && Oe(e)) {
|
|
3591
|
+
const { loadingDelay: t } = j();
|
|
3588
3592
|
let r;
|
|
3589
|
-
return typeof window < "u" &&
|
|
3590
|
-
() =>
|
|
3593
|
+
return typeof window < "u" && I() != null && t ? r = window.setTimeout(
|
|
3594
|
+
() => ye.set(!0),
|
|
3591
3595
|
t
|
|
3592
|
-
) :
|
|
3593
|
-
|
|
3596
|
+
) : ye.set(!0), At(e).then(() => {
|
|
3597
|
+
se.set(e);
|
|
3594
3598
|
}).finally(() => {
|
|
3595
|
-
clearTimeout(r),
|
|
3599
|
+
clearTimeout(r), ye.set(!1);
|
|
3596
3600
|
});
|
|
3597
3601
|
}
|
|
3598
|
-
return
|
|
3599
|
-
},
|
|
3602
|
+
return se.set(e);
|
|
3603
|
+
}, V = On(Mn({}, se), {
|
|
3600
3604
|
set: Nn
|
|
3601
|
-
}),
|
|
3605
|
+
}), fe = (e) => {
|
|
3602
3606
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3603
3607
|
return (n) => {
|
|
3604
3608
|
const i = JSON.stringify(n);
|
|
3605
3609
|
return i in t ? t[i] : t[i] = e(n);
|
|
3606
3610
|
};
|
|
3607
3611
|
};
|
|
3608
|
-
var
|
|
3612
|
+
var wn = Object.defineProperty, oe = Object.getOwnPropertySymbols, Pt = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, Ye = (e, t, r) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ce = (e, t) => {
|
|
3609
3613
|
for (var r in t || (t = {}))
|
|
3610
|
-
|
|
3611
|
-
if (
|
|
3612
|
-
for (var r of
|
|
3613
|
-
|
|
3614
|
+
Pt.call(t, r) && Ye(e, r, t[r]);
|
|
3615
|
+
if (oe)
|
|
3616
|
+
for (var r of oe(t))
|
|
3617
|
+
Mt.call(t, r) && Ye(e, r, t[r]);
|
|
3614
3618
|
return e;
|
|
3615
|
-
},
|
|
3619
|
+
}, X = (e, t) => {
|
|
3616
3620
|
var r = {};
|
|
3617
3621
|
for (var n in e)
|
|
3618
|
-
|
|
3619
|
-
if (e != null &&
|
|
3620
|
-
for (var n of
|
|
3621
|
-
t.indexOf(n) < 0 &&
|
|
3622
|
+
Pt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3623
|
+
if (e != null && oe)
|
|
3624
|
+
for (var n of oe(e))
|
|
3625
|
+
t.indexOf(n) < 0 && Mt.call(e, n) && (r[n] = e[n]);
|
|
3622
3626
|
return r;
|
|
3623
3627
|
};
|
|
3624
|
-
const
|
|
3625
|
-
const { formats: r } =
|
|
3628
|
+
const J = (e, t) => {
|
|
3629
|
+
const { formats: r } = j();
|
|
3626
3630
|
if (e in r && t in r[e])
|
|
3627
3631
|
return r[e][t];
|
|
3628
3632
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3629
|
-
},
|
|
3633
|
+
}, In = fe(
|
|
3630
3634
|
(e) => {
|
|
3631
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3635
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
3632
3636
|
if (r == null)
|
|
3633
3637
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3634
|
-
return n && (i =
|
|
3638
|
+
return n && (i = J("number", n)), new Intl.NumberFormat(r, i);
|
|
3635
3639
|
}
|
|
3636
|
-
),
|
|
3640
|
+
), Ln = fe(
|
|
3637
3641
|
(e) => {
|
|
3638
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3642
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
3639
3643
|
if (r == null)
|
|
3640
3644
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3641
|
-
return n ? i =
|
|
3645
|
+
return n ? i = J("date", n) : Object.keys(i).length === 0 && (i = J("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3642
3646
|
}
|
|
3643
|
-
),
|
|
3647
|
+
), Cn = fe(
|
|
3644
3648
|
(e) => {
|
|
3645
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3649
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
3646
3650
|
if (r == null)
|
|
3647
3651
|
throw new Error(
|
|
3648
3652
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3649
3653
|
);
|
|
3650
|
-
return n ? i =
|
|
3654
|
+
return n ? i = J("time", n) : Object.keys(i).length === 0 && (i = J("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3651
3655
|
}
|
|
3652
|
-
),
|
|
3653
|
-
var t = e, {
|
|
3654
|
-
locale: r = w()
|
|
3655
|
-
} = t, n = V(t, [
|
|
3656
|
-
"locale"
|
|
3657
|
-
]);
|
|
3658
|
-
return wn(Ce({ locale: r }, n));
|
|
3659
|
-
}, $n = (e = {}) => {
|
|
3656
|
+
), $n = (e = {}) => {
|
|
3660
3657
|
var t = e, {
|
|
3661
|
-
locale: r =
|
|
3662
|
-
} = t, n =
|
|
3658
|
+
locale: r = I()
|
|
3659
|
+
} = t, n = X(t, [
|
|
3663
3660
|
"locale"
|
|
3664
3661
|
]);
|
|
3665
3662
|
return In(Ce({ locale: r }, n));
|
|
3666
3663
|
}, Rn = (e = {}) => {
|
|
3667
3664
|
var t = e, {
|
|
3668
|
-
locale: r =
|
|
3669
|
-
} = t, n =
|
|
3665
|
+
locale: r = I()
|
|
3666
|
+
} = t, n = X(t, [
|
|
3670
3667
|
"locale"
|
|
3671
3668
|
]);
|
|
3672
3669
|
return Ln(Ce({ locale: r }, n));
|
|
3673
|
-
}, Un =
|
|
3670
|
+
}, Un = (e = {}) => {
|
|
3671
|
+
var t = e, {
|
|
3672
|
+
locale: r = I()
|
|
3673
|
+
} = t, n = X(t, [
|
|
3674
|
+
"locale"
|
|
3675
|
+
]);
|
|
3676
|
+
return Cn(Ce({ locale: r }, n));
|
|
3677
|
+
}, Dn = fe(
|
|
3674
3678
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3675
|
-
(e, t =
|
|
3676
|
-
ignoreTag:
|
|
3679
|
+
(e, t = I()) => new cn(e, t, j().formats, {
|
|
3680
|
+
ignoreTag: j().ignoreTag
|
|
3677
3681
|
})
|
|
3678
|
-
),
|
|
3682
|
+
), Gn = (e, t = {}) => {
|
|
3679
3683
|
var r, n, i, s;
|
|
3680
3684
|
let u = t;
|
|
3681
3685
|
typeof e == "object" && (u = e, e = u.id);
|
|
3682
3686
|
const {
|
|
3683
3687
|
values: a,
|
|
3684
|
-
locale: l =
|
|
3688
|
+
locale: l = I(),
|
|
3685
3689
|
default: o
|
|
3686
3690
|
} = u;
|
|
3687
3691
|
if (l == null)
|
|
@@ -3690,7 +3694,7 @@ const Q = (e, t) => {
|
|
|
3690
3694
|
);
|
|
3691
3695
|
let h = Bt(e, l);
|
|
3692
3696
|
if (!h)
|
|
3693
|
-
h = (s = (i = (n = (r =
|
|
3697
|
+
h = (s = (i = (n = (r = j()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: o })) != null ? i : o) != null ? s : e;
|
|
3694
3698
|
else if (typeof h != "string")
|
|
3695
3699
|
return console.warn(
|
|
3696
3700
|
`[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.`
|
|
@@ -3699,7 +3703,7 @@ const Q = (e, t) => {
|
|
|
3699
3703
|
return h;
|
|
3700
3704
|
let f = h;
|
|
3701
3705
|
try {
|
|
3702
|
-
f =
|
|
3706
|
+
f = Dn(h, l).format(a);
|
|
3703
3707
|
} catch (c) {
|
|
3704
3708
|
c instanceof Error && console.warn(
|
|
3705
3709
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3707,16 +3711,16 @@ const Q = (e, t) => {
|
|
|
3707
3711
|
);
|
|
3708
3712
|
}
|
|
3709
3713
|
return f;
|
|
3710
|
-
},
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3714
|
+
}, Fn = (e, t) => Un(t).format(e), jn = (e, t) => Rn(t).format(e), kn = (e, t) => $n(t).format(e), Vn = (e, t = I()) => Bt(e, t), Xn = k([V, Y], () => Gn);
|
|
3715
|
+
k([V], () => Fn);
|
|
3716
|
+
k([V], () => jn);
|
|
3717
|
+
k([V], () => kn);
|
|
3718
|
+
k([V, Y], () => Vn);
|
|
3715
3719
|
function Ke(e, t) {
|
|
3716
|
-
|
|
3720
|
+
St(e, t);
|
|
3717
3721
|
}
|
|
3718
|
-
function
|
|
3719
|
-
|
|
3722
|
+
function Wn(e) {
|
|
3723
|
+
V.set(e);
|
|
3720
3724
|
}
|
|
3721
3725
|
const et = {
|
|
3722
3726
|
en: {
|
|
@@ -3759,92 +3763,92 @@ const et = {
|
|
|
3759
3763
|
betsButtonString: "My Bets"
|
|
3760
3764
|
}
|
|
3761
3765
|
};
|
|
3762
|
-
function
|
|
3766
|
+
function zn(e) {
|
|
3763
3767
|
wt(e, "svelte-ikpaqv", '.MyBetsButton{cursor:pointer}@container (min-width:991px){.MyBetsButton{margin:0 5px}}.MyBetsButton .MyBetsButtonWrapper{display:flex;align-content:center;justify-content:center;flex-direction:column;background-color:transparent;border:none;width:100%;min-width:60px}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonCount{margin:auto}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonCount .MyBetsCountNumber{background-color:var(--emw--button-contrast-background, #FD2839);height:21px;display:flex;justify-content:center;align-items:center;border-radius:100%;width:22px}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonCount .MyBetsCountNumber p{margin:0;font-size:12px;font-weight:500;color:var(--emw--color-white, #FFFFFF);font-family:var(--emw--font-family, "Roboto")}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonTitle{margin-top:5px;text-align:center}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonTitle p{margin:0;font-size:12px;text-transform:uppercase;font-weight:500;color:var(--emw--color-white, #FFFFFF);font-family:var(--emw--font-family, "Roboto")}');
|
|
3764
3768
|
}
|
|
3765
|
-
function
|
|
3769
|
+
function Zn(e) {
|
|
3766
3770
|
let t, r, n, i, s, u, a, l, o, h = (
|
|
3767
3771
|
/*$_*/
|
|
3768
3772
|
e[2]("betsButtonString") + ""
|
|
3769
|
-
), f, c,
|
|
3773
|
+
), f, c, g;
|
|
3770
3774
|
return {
|
|
3771
3775
|
c() {
|
|
3772
|
-
t =
|
|
3776
|
+
t = P("div"), r = P("button"), n = P("div"), i = P("span"), s = P("p"), u = Ee(
|
|
3773
3777
|
/*betsData*/
|
|
3774
3778
|
e[1]
|
|
3775
|
-
), a = Ct(), l =
|
|
3779
|
+
), a = Ct(), l = P("div"), o = P("p"), f = Ee(h), $(i, "class", "MyBetsCountNumber"), $(n, "class", "MyBetsButtonCount"), $(l, "class", "MyBetsButtonTitle"), $(r, "class", "MyBetsButtonWrapper"), $(t, "class", "MyBetsButton");
|
|
3776
3780
|
},
|
|
3777
|
-
m(
|
|
3778
|
-
it(
|
|
3781
|
+
m(d, E) {
|
|
3782
|
+
it(d, t, E), T(t, r), T(r, n), T(n, i), T(i, s), T(s, u), T(r, a), T(r, l), T(l, o), T(o, f), e[10](t), c || (g = $t(
|
|
3779
3783
|
r,
|
|
3780
3784
|
"click",
|
|
3781
3785
|
/*click_handler*/
|
|
3782
3786
|
e[9]
|
|
3783
3787
|
), c = !0);
|
|
3784
3788
|
},
|
|
3785
|
-
p(
|
|
3789
|
+
p(d, [E]) {
|
|
3786
3790
|
E & /*betsData*/
|
|
3787
3791
|
2 && Ue(
|
|
3788
3792
|
u,
|
|
3789
3793
|
/*betsData*/
|
|
3790
|
-
|
|
3794
|
+
d[1]
|
|
3791
3795
|
), E & /*$_*/
|
|
3792
3796
|
4 && h !== (h = /*$_*/
|
|
3793
|
-
|
|
3797
|
+
d[2]("betsButtonString") + "") && Ue(f, h);
|
|
3794
3798
|
},
|
|
3795
3799
|
i: H,
|
|
3796
3800
|
o: H,
|
|
3797
|
-
d(
|
|
3798
|
-
|
|
3801
|
+
d(d) {
|
|
3802
|
+
d && Ie(t), e[10](null), c = !1, g();
|
|
3799
3803
|
}
|
|
3800
3804
|
};
|
|
3801
3805
|
}
|
|
3802
|
-
function
|
|
3806
|
+
function Qn(e, t, r) {
|
|
3803
3807
|
let n;
|
|
3804
|
-
|
|
3808
|
+
Nt(e, Xn, (m) => r(2, n = m));
|
|
3805
3809
|
let { lang: i = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: a } = t, { translationurl: l = "" } = t, o, h = 0;
|
|
3806
3810
|
const f = () => {
|
|
3807
|
-
fetch(l).then((
|
|
3808
|
-
Object.keys(
|
|
3809
|
-
Ke(
|
|
3811
|
+
fetch(l).then((v) => v.json()).then((v) => {
|
|
3812
|
+
Object.keys(v).forEach((S) => {
|
|
3813
|
+
Ke(S, v[S]);
|
|
3810
3814
|
});
|
|
3811
|
-
}).catch((
|
|
3812
|
-
console.log(
|
|
3815
|
+
}).catch((v) => {
|
|
3816
|
+
console.log(v);
|
|
3813
3817
|
});
|
|
3814
3818
|
}, c = () => {
|
|
3815
|
-
|
|
3816
|
-
},
|
|
3819
|
+
Wn(i);
|
|
3820
|
+
}, g = (m, v) => {
|
|
3817
3821
|
o.dispatchEvent(new CustomEvent(
|
|
3818
3822
|
m,
|
|
3819
3823
|
{
|
|
3820
|
-
detail:
|
|
3824
|
+
detail: v,
|
|
3821
3825
|
composed: !0,
|
|
3822
3826
|
bubbles: !0
|
|
3823
3827
|
// propagate across the shadow DOM
|
|
3824
3828
|
}
|
|
3825
3829
|
));
|
|
3826
|
-
},
|
|
3830
|
+
}, d = () => {
|
|
3827
3831
|
window.postMessage({ type: "OMFE:getBetslipSelectionsCount" }, "*");
|
|
3828
3832
|
}, E = (m) => {
|
|
3829
|
-
const { type:
|
|
3833
|
+
const { type: v, payload: S } = m.data;
|
|
3830
3834
|
if (m.data)
|
|
3831
|
-
switch (
|
|
3835
|
+
switch (v) {
|
|
3832
3836
|
case "OMFE:betslipSelectionsCount":
|
|
3833
|
-
r(1, h =
|
|
3837
|
+
r(1, h = S.count), localStorage.setItem("OMFE:betSlipCount", h.toString());
|
|
3834
3838
|
break;
|
|
3835
3839
|
}
|
|
3836
3840
|
};
|
|
3837
3841
|
Gt(() => {
|
|
3838
3842
|
const m = localStorage.getItem("OMFE:betSlipCount");
|
|
3839
|
-
return r(1, h = m !== null ? Number(m) : 0),
|
|
3843
|
+
return r(1, h = m !== null ? Number(m) : 0), d(), window.addEventListener("message", E, !1), () => {
|
|
3840
3844
|
window.removeEventListener("message", E);
|
|
3841
3845
|
};
|
|
3842
3846
|
}), Object.keys(et).forEach((m) => {
|
|
3843
3847
|
Ke(m, et[m]);
|
|
3844
3848
|
});
|
|
3845
|
-
const B = (m) =>
|
|
3846
|
-
function
|
|
3847
|
-
|
|
3849
|
+
const B = (m) => g("betslipClick", {});
|
|
3850
|
+
function O(m) {
|
|
3851
|
+
xe[m ? "unshift" : "push"](() => {
|
|
3848
3852
|
o = m, r(0, o);
|
|
3849
3853
|
});
|
|
3850
3854
|
}
|
|
@@ -3861,23 +3865,23 @@ function Zn(e, t, r) {
|
|
|
3861
3865
|
o,
|
|
3862
3866
|
h,
|
|
3863
3867
|
n,
|
|
3864
|
-
|
|
3868
|
+
g,
|
|
3865
3869
|
i,
|
|
3866
3870
|
s,
|
|
3867
3871
|
u,
|
|
3868
3872
|
a,
|
|
3869
3873
|
l,
|
|
3870
3874
|
B,
|
|
3871
|
-
|
|
3875
|
+
O
|
|
3872
3876
|
];
|
|
3873
3877
|
}
|
|
3874
|
-
class
|
|
3878
|
+
class Jn extends Yt {
|
|
3875
3879
|
constructor(t) {
|
|
3876
3880
|
super(), Jt(
|
|
3877
3881
|
this,
|
|
3878
3882
|
t,
|
|
3883
|
+
Qn,
|
|
3879
3884
|
Zn,
|
|
3880
|
-
zn,
|
|
3881
3885
|
rt,
|
|
3882
3886
|
{
|
|
3883
3887
|
lang: 4,
|
|
@@ -3886,41 +3890,41 @@ class Qn extends Yt {
|
|
|
3886
3890
|
mbsource: 7,
|
|
3887
3891
|
translationurl: 8
|
|
3888
3892
|
},
|
|
3889
|
-
|
|
3893
|
+
zn
|
|
3890
3894
|
);
|
|
3891
3895
|
}
|
|
3892
3896
|
get lang() {
|
|
3893
3897
|
return this.$$.ctx[4];
|
|
3894
3898
|
}
|
|
3895
3899
|
set lang(t) {
|
|
3896
|
-
this.$$set({ lang: t }),
|
|
3900
|
+
this.$$set({ lang: t }), w();
|
|
3897
3901
|
}
|
|
3898
3902
|
get clientstyling() {
|
|
3899
3903
|
return this.$$.ctx[5];
|
|
3900
3904
|
}
|
|
3901
3905
|
set clientstyling(t) {
|
|
3902
|
-
this.$$set({ clientstyling: t }),
|
|
3906
|
+
this.$$set({ clientstyling: t }), w();
|
|
3903
3907
|
}
|
|
3904
3908
|
get clientstylingurl() {
|
|
3905
3909
|
return this.$$.ctx[6];
|
|
3906
3910
|
}
|
|
3907
3911
|
set clientstylingurl(t) {
|
|
3908
|
-
this.$$set({ clientstylingurl: t }),
|
|
3912
|
+
this.$$set({ clientstylingurl: t }), w();
|
|
3909
3913
|
}
|
|
3910
3914
|
get mbsource() {
|
|
3911
3915
|
return this.$$.ctx[7];
|
|
3912
3916
|
}
|
|
3913
3917
|
set mbsource(t) {
|
|
3914
|
-
this.$$set({ mbsource: t }),
|
|
3918
|
+
this.$$set({ mbsource: t }), w();
|
|
3915
3919
|
}
|
|
3916
3920
|
get translationurl() {
|
|
3917
3921
|
return this.$$.ctx[8];
|
|
3918
3922
|
}
|
|
3919
3923
|
set translationurl(t) {
|
|
3920
|
-
this.$$set({ translationurl: t }),
|
|
3924
|
+
this.$$set({ translationurl: t }), w();
|
|
3921
3925
|
}
|
|
3922
3926
|
}
|
|
3923
|
-
qt(
|
|
3927
|
+
qt(Jn, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
3924
3928
|
export {
|
|
3925
|
-
|
|
3929
|
+
Jn as C
|
|
3926
3930
|
};
|