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