@everymatrix/player-consents 1.91.0 → 1.91.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/{GeneralAnimationLoading-CPi_DlR6.js → GeneralAnimationLoading-B7KMbgFV.js} +1 -1
- package/components/{GeneralAnimationLoading-DzajruUC.cjs → GeneralAnimationLoading-JPj0loA2.cjs} +1 -1
- package/components/{GeneralAnimationLoading-DvwHUxLh.js → GeneralAnimationLoading-lTLzF5jR.js} +1 -1
- package/components/{PlayerConsents-BMrF_TLX.cjs → PlayerConsents-BF1ZnaYS.cjs} +2 -2
- package/components/{PlayerConsents-C93YUnq0.js → PlayerConsents-Duni8Aqx.js} +507 -479
- package/components/{PlayerConsents-DbvM4WQo.js → PlayerConsents-fBCiFHc1.js} +588 -560
- package/es2015/player-consents.cjs +1 -1
- package/es2015/player-consents.js +1 -1
- package/esnext/player-consents.js +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ function ht(e) {
|
|
|
15
15
|
function dt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Wr(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
21
|
function Zt(e, ...t) {
|
|
@@ -27,20 +27,20 @@ function Zt(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Zr(e, t, r) {
|
|
31
31
|
e.$$.on_destroy.push(Zt(t, r));
|
|
32
32
|
}
|
|
33
33
|
function x(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function Jr(e, t, r) {
|
|
37
|
+
const n = Qr(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
|
-
const i =
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
39
|
+
const i = T("style");
|
|
40
|
+
i.id = t, i.textContent = r, Yr(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Qr(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,7 +50,7 @@ function Jr(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Yr(e, t) {
|
|
54
54
|
return x(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
@@ -67,7 +67,7 @@ function mt(e, t) {
|
|
|
67
67
|
for (let r = 0; r < e.length; r += 1)
|
|
68
68
|
e[r] && e[r].d(t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function T(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
73
|
function Ke(e) {
|
|
@@ -79,7 +79,7 @@ function Y(e) {
|
|
|
79
79
|
function G() {
|
|
80
80
|
return Y(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Kr() {
|
|
83
83
|
return Y("");
|
|
84
84
|
}
|
|
85
85
|
function be(e, t, r, n) {
|
|
@@ -92,7 +92,7 @@ function Q(e, t, r) {
|
|
|
92
92
|
const n = t.toLowerCase();
|
|
93
93
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : k(e, t, r);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function en(e) {
|
|
96
96
|
return Array.from(e.childNodes);
|
|
97
97
|
}
|
|
98
98
|
function Se(e, t) {
|
|
@@ -133,7 +133,7 @@ class Jt {
|
|
|
133
133
|
this.e || (this.is_svg ? this.e = Ke(
|
|
134
134
|
/** @type {keyof SVGElementTagNameMap} */
|
|
135
135
|
r.nodeName
|
|
136
|
-
) : this.e =
|
|
136
|
+
) : this.e = T(
|
|
137
137
|
/** @type {keyof HTMLElementTagNameMap} */
|
|
138
138
|
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
|
139
139
|
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
|
@@ -169,7 +169,7 @@ class Jt {
|
|
|
169
169
|
this.n.forEach(O);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function tn(e) {
|
|
173
173
|
const t = {};
|
|
174
174
|
return e.childNodes.forEach(
|
|
175
175
|
/** @param {Element} node */
|
|
@@ -182,20 +182,20 @@ let ke;
|
|
|
182
182
|
function ve(e) {
|
|
183
183
|
ke = e;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function rn() {
|
|
186
186
|
if (!ke)
|
|
187
187
|
throw new Error("Function called outside component initialization");
|
|
188
188
|
return ke;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
|
|
190
|
+
function nn(e) {
|
|
191
|
+
rn().$$.on_mount.push(e);
|
|
192
192
|
}
|
|
193
193
|
const re = [], Le = [];
|
|
194
194
|
let ie = [];
|
|
195
|
-
const bt = [],
|
|
195
|
+
const bt = [], on = /* @__PURE__ */ Promise.resolve();
|
|
196
196
|
let et = !1;
|
|
197
|
-
function
|
|
198
|
-
et || (et = !0,
|
|
197
|
+
function an() {
|
|
198
|
+
et || (et = !0, on.then(V));
|
|
199
199
|
}
|
|
200
200
|
function tt(e) {
|
|
201
201
|
ie.push(e);
|
|
@@ -210,7 +210,7 @@ function V() {
|
|
|
210
210
|
try {
|
|
211
211
|
for (; ee < re.length; ) {
|
|
212
212
|
const t = re[ee];
|
|
213
|
-
ee++, ve(t),
|
|
213
|
+
ee++, ve(t), sn(t.$$);
|
|
214
214
|
}
|
|
215
215
|
} catch (t) {
|
|
216
216
|
throw re.length = 0, ee = 0, t;
|
|
@@ -227,40 +227,40 @@ function V() {
|
|
|
227
227
|
bt.pop()();
|
|
228
228
|
et = !1, Xe.clear(), ve(e);
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function sn(e) {
|
|
231
231
|
if (e.fragment !== null) {
|
|
232
232
|
e.update(), ue(e.before_update);
|
|
233
233
|
const t = e.dirty;
|
|
234
234
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(tt);
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function ln(e) {
|
|
238
238
|
const t = [], r = [];
|
|
239
239
|
ie.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ie = t;
|
|
240
240
|
}
|
|
241
|
-
const
|
|
242
|
-
function
|
|
243
|
-
e && e.i && (
|
|
241
|
+
const cn = /* @__PURE__ */ new Set();
|
|
242
|
+
function un(e, t) {
|
|
243
|
+
e && e.i && (cn.delete(e), e.i(t));
|
|
244
244
|
}
|
|
245
245
|
function oe(e) {
|
|
246
246
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function hn(e, t, r) {
|
|
249
249
|
const { fragment: n, after_update: i } = e.$$;
|
|
250
250
|
n && n.m(t, r), tt(() => {
|
|
251
251
|
const o = e.$$.on_mount.map(Wt).filter(ht);
|
|
252
252
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ue(o), e.$$.on_mount = [];
|
|
253
253
|
}), i.forEach(tt);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function dn(e, t) {
|
|
256
256
|
const r = e.$$;
|
|
257
|
-
r.fragment !== null && (
|
|
257
|
+
r.fragment !== null && (ln(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
258
258
|
}
|
|
259
|
-
function
|
|
260
|
-
e.$$.dirty[0] === -1 && (re.push(e),
|
|
259
|
+
function mn(e, t) {
|
|
260
|
+
e.$$.dirty[0] === -1 && (re.push(e), an(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
261
261
|
}
|
|
262
262
|
function Qt(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
263
|
-
const
|
|
263
|
+
const h = ke;
|
|
264
264
|
ve(e);
|
|
265
265
|
const l = e.$$ = {
|
|
266
266
|
fragment: null,
|
|
@@ -276,27 +276,27 @@ function Qt(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
276
276
|
on_disconnect: [],
|
|
277
277
|
before_update: [],
|
|
278
278
|
after_update: [],
|
|
279
|
-
context: new Map(t.context || (
|
|
279
|
+
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
280
280
|
// everything else
|
|
281
281
|
callbacks: vt(),
|
|
282
282
|
dirty: s,
|
|
283
283
|
skip_bound: !1,
|
|
284
|
-
root: t.target ||
|
|
284
|
+
root: t.target || h.$$.root
|
|
285
285
|
};
|
|
286
286
|
a && a(l.root);
|
|
287
287
|
let c = !1;
|
|
288
288
|
if (l.ctx = r ? r(e, t.props || {}, (d, m, ...y) => {
|
|
289
289
|
const g = y.length ? y[0] : m;
|
|
290
|
-
return l.ctx && i(l.ctx[d], l.ctx[d] = g) && (!l.skip_bound && l.bound[d] && l.bound[d](g), c &&
|
|
290
|
+
return l.ctx && i(l.ctx[d], l.ctx[d] = g) && (!l.skip_bound && l.bound[d] && l.bound[d](g), c && mn(e, d)), m;
|
|
291
291
|
}) : [], l.update(), c = !0, ue(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
292
292
|
if (t.hydrate) {
|
|
293
|
-
const d =
|
|
293
|
+
const d = en(t.target);
|
|
294
294
|
l.fragment && l.fragment.l(d), d.forEach(O);
|
|
295
295
|
} else
|
|
296
296
|
l.fragment && l.fragment.c();
|
|
297
|
-
t.intro &&
|
|
297
|
+
t.intro && un(e.$$.fragment), hn(e, t.target, t.anchor), V();
|
|
298
298
|
}
|
|
299
|
-
ve(
|
|
299
|
+
ve(h);
|
|
300
300
|
}
|
|
301
301
|
let Yt;
|
|
302
302
|
typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
@@ -341,24 +341,24 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
341
341
|
let o;
|
|
342
342
|
return {
|
|
343
343
|
c: function() {
|
|
344
|
-
o =
|
|
344
|
+
o = T("slot"), i !== "default" && k(o, "name", i);
|
|
345
345
|
},
|
|
346
346
|
/**
|
|
347
347
|
* @param {HTMLElement} target
|
|
348
348
|
* @param {HTMLElement} [anchor]
|
|
349
349
|
*/
|
|
350
|
-
m: function(
|
|
351
|
-
L(
|
|
350
|
+
m: function(h, l) {
|
|
351
|
+
L(h, o, l);
|
|
352
352
|
},
|
|
353
|
-
d: function(
|
|
354
|
-
|
|
353
|
+
d: function(h) {
|
|
354
|
+
h && O(o);
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
357
|
};
|
|
358
358
|
};
|
|
359
359
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
360
360
|
return;
|
|
361
|
-
const t = {}, r =
|
|
361
|
+
const t = {}, r = tn(this);
|
|
362
362
|
for (const i of this.$$s)
|
|
363
363
|
i in r && (t[i] = [e(i)]);
|
|
364
364
|
for (const i of this.attributes) {
|
|
@@ -461,8 +461,8 @@ function Kt(e, t, r, n, i, o) {
|
|
|
461
461
|
get() {
|
|
462
462
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
463
463
|
},
|
|
464
|
-
set(
|
|
465
|
-
|
|
464
|
+
set(h) {
|
|
465
|
+
h = Be(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
|
|
466
466
|
}
|
|
467
467
|
});
|
|
468
468
|
}), n.forEach((s) => {
|
|
@@ -493,7 +493,7 @@ class er {
|
|
|
493
493
|
$$set = void 0;
|
|
494
494
|
/** @returns {void} */
|
|
495
495
|
$destroy() {
|
|
496
|
-
|
|
496
|
+
dn(this, 1), this.$destroy = F;
|
|
497
497
|
}
|
|
498
498
|
/**
|
|
499
499
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -515,19 +515,19 @@ class er {
|
|
|
515
515
|
* @returns {void}
|
|
516
516
|
*/
|
|
517
517
|
$set(t) {
|
|
518
|
-
this.$$set && !
|
|
518
|
+
this.$$set && !Wr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
const
|
|
522
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
521
|
+
const fn = "4";
|
|
522
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fn);
|
|
523
523
|
const ne = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
524
|
-
function
|
|
524
|
+
function pn(e, t) {
|
|
525
525
|
if (e) {
|
|
526
526
|
const r = document.createElement("style");
|
|
527
527
|
r.innerHTML = t, e.appendChild(r);
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function gn(e, t) {
|
|
531
531
|
if (!e || !t)
|
|
532
532
|
return;
|
|
533
533
|
const r = new URL(t);
|
|
@@ -538,12 +538,12 @@ function pn(e, t) {
|
|
|
538
538
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
539
539
|
});
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function _n(e, t, r, n = !1) {
|
|
542
542
|
if (!window.emMessageBus)
|
|
543
543
|
return;
|
|
544
544
|
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
545
|
-
return r =
|
|
546
|
-
window[ne] || (window[ne] = {}), r =
|
|
545
|
+
return r = yn(e, t), r;
|
|
546
|
+
window[ne] || (window[ne] = {}), r = vn(e, t);
|
|
547
547
|
const o = r.unsubscribe.bind(r), a = () => {
|
|
548
548
|
if (window[ne][t]) {
|
|
549
549
|
const s = window[ne][t];
|
|
@@ -553,13 +553,13 @@ function gn(e, t, r, n = !1) {
|
|
|
553
553
|
};
|
|
554
554
|
return r.unsubscribe = a, r;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function yn(e, t) {
|
|
557
557
|
const r = document.createElement("style");
|
|
558
558
|
return window.emMessageBus.subscribe(t, (n) => {
|
|
559
559
|
e && (r.innerHTML = n, e.appendChild(r));
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function vn(e, t) {
|
|
563
563
|
return window.emMessageBus.subscribe(t, (r) => {
|
|
564
564
|
if (!e)
|
|
565
565
|
return;
|
|
@@ -574,7 +574,7 @@ function yn(e, t) {
|
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
576
|
const te = [];
|
|
577
|
-
function
|
|
577
|
+
function bn(e, t) {
|
|
578
578
|
return {
|
|
579
579
|
subscribe: Ue(e, t).subscribe
|
|
580
580
|
};
|
|
@@ -584,10 +584,10 @@ function Ue(e, t = F) {
|
|
|
584
584
|
const n = /* @__PURE__ */ new Set();
|
|
585
585
|
function i(s) {
|
|
586
586
|
if (dt(e, s) && (e = s, r)) {
|
|
587
|
-
const
|
|
587
|
+
const h = !te.length;
|
|
588
588
|
for (const l of n)
|
|
589
589
|
l[1](), te.push(l, e);
|
|
590
|
-
if (
|
|
590
|
+
if (h) {
|
|
591
591
|
for (let l = 0; l < te.length; l += 2)
|
|
592
592
|
te[l][0](te[l + 1]);
|
|
593
593
|
te.length = 0;
|
|
@@ -597,8 +597,8 @@ function Ue(e, t = F) {
|
|
|
597
597
|
function o(s) {
|
|
598
598
|
i(s(e));
|
|
599
599
|
}
|
|
600
|
-
function a(s,
|
|
601
|
-
const l = [s,
|
|
600
|
+
function a(s, h = F) {
|
|
601
|
+
const l = [s, h];
|
|
602
602
|
return n.add(l), n.size === 1 && (r = t(i, o) || F), s(e), () => {
|
|
603
603
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
604
604
|
};
|
|
@@ -610,8 +610,8 @@ function he(e, t, r) {
|
|
|
610
610
|
if (!i.every(Boolean))
|
|
611
611
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
612
612
|
const o = t.length < 2;
|
|
613
|
-
return
|
|
614
|
-
let
|
|
613
|
+
return bn(r, (a, s) => {
|
|
614
|
+
let h = !1;
|
|
615
615
|
const l = [];
|
|
616
616
|
let c = 0, d = F;
|
|
617
617
|
const m = () => {
|
|
@@ -621,62 +621,62 @@ function he(e, t, r) {
|
|
|
621
621
|
const g = t(n ? l[0] : l, a, s);
|
|
622
622
|
o ? a(g) : d = ht(g) ? g : F;
|
|
623
623
|
}, y = i.map(
|
|
624
|
-
(g,
|
|
624
|
+
(g, p) => Zt(
|
|
625
625
|
g,
|
|
626
626
|
(S) => {
|
|
627
|
-
l[
|
|
627
|
+
l[p] = S, c &= ~(1 << p), h && m();
|
|
628
628
|
},
|
|
629
629
|
() => {
|
|
630
|
-
c |= 1 <<
|
|
630
|
+
c |= 1 << p;
|
|
631
631
|
}
|
|
632
632
|
)
|
|
633
633
|
);
|
|
634
|
-
return
|
|
635
|
-
ue(y), d(),
|
|
634
|
+
return h = !0, m(), function() {
|
|
635
|
+
ue(y), d(), h = !1;
|
|
636
636
|
};
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function kn(e) {
|
|
640
640
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
641
641
|
}
|
|
642
|
-
var
|
|
643
|
-
return
|
|
642
|
+
var En = function(t) {
|
|
643
|
+
return Cn(t) && !Sn(t);
|
|
644
644
|
};
|
|
645
|
-
function
|
|
645
|
+
function Cn(e) {
|
|
646
646
|
return !!e && typeof e == "object";
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Sn(e) {
|
|
649
649
|
var t = Object.prototype.toString.call(e);
|
|
650
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
651
|
-
}
|
|
652
|
-
var Sn = typeof Symbol == "function" && Symbol.for, xn = Sn ? Symbol.for("react.element") : 60103;
|
|
653
|
-
function wn(e) {
|
|
654
|
-
return e.$$typeof === xn;
|
|
650
|
+
return t === "[object RegExp]" || t === "[object Date]" || Tn(e);
|
|
655
651
|
}
|
|
652
|
+
var xn = typeof Symbol == "function" && Symbol.for, wn = xn ? Symbol.for("react.element") : 60103;
|
|
656
653
|
function Tn(e) {
|
|
654
|
+
return e.$$typeof === wn;
|
|
655
|
+
}
|
|
656
|
+
function Mn(e) {
|
|
657
657
|
return Array.isArray(e) ? [] : {};
|
|
658
658
|
}
|
|
659
659
|
function Ee(e, t) {
|
|
660
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? ae(
|
|
660
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ae(Mn(e), e, t) : e;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Nn(e, t, r) {
|
|
663
663
|
return e.concat(t).map(function(n) {
|
|
664
664
|
return Ee(n, r);
|
|
665
665
|
});
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function An(e, t) {
|
|
668
668
|
if (!t.customMerge)
|
|
669
669
|
return ae;
|
|
670
670
|
var r = t.customMerge(e);
|
|
671
671
|
return typeof r == "function" ? r : ae;
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function Hn(e) {
|
|
674
674
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
675
675
|
return Object.propertyIsEnumerable.call(e, t);
|
|
676
676
|
}) : [];
|
|
677
677
|
}
|
|
678
678
|
function kt(e) {
|
|
679
|
-
return Object.keys(e).concat(
|
|
679
|
+
return Object.keys(e).concat(Hn(e));
|
|
680
680
|
}
|
|
681
681
|
function tr(e, t) {
|
|
682
682
|
try {
|
|
@@ -685,21 +685,21 @@ function tr(e, t) {
|
|
|
685
685
|
return !1;
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function Pn(e, t) {
|
|
689
689
|
return tr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function Bn(e, t, r) {
|
|
692
692
|
var n = {};
|
|
693
693
|
return r.isMergeableObject(e) && kt(e).forEach(function(i) {
|
|
694
694
|
n[i] = Ee(e[i], r);
|
|
695
695
|
}), kt(t).forEach(function(i) {
|
|
696
|
-
|
|
696
|
+
Pn(e, i) || (tr(e, i) && r.isMergeableObject(t[i]) ? n[i] = An(i, r)(e[i], t[i], r) : n[i] = Ee(t[i], r));
|
|
697
697
|
}), n;
|
|
698
698
|
}
|
|
699
699
|
function ae(e, t, r) {
|
|
700
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
700
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Nn, r.isMergeableObject = r.isMergeableObject || En, r.cloneUnlessOtherwiseSpecified = Ee;
|
|
701
701
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
702
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
702
|
+
return o ? n ? r.arrayMerge(e, t, r) : Bn(e, t, r) : Ee(t, r);
|
|
703
703
|
}
|
|
704
704
|
ae.all = function(t, r) {
|
|
705
705
|
if (!Array.isArray(t))
|
|
@@ -708,8 +708,8 @@ ae.all = function(t, r) {
|
|
|
708
708
|
return ae(n, i, r);
|
|
709
709
|
}, {});
|
|
710
710
|
};
|
|
711
|
-
var
|
|
712
|
-
const
|
|
711
|
+
var On = ae, zn = On;
|
|
712
|
+
const Ln = /* @__PURE__ */ kn(zn);
|
|
713
713
|
var rt = function(e, t) {
|
|
714
714
|
return rt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
715
715
|
r.__proto__ = n;
|
|
@@ -737,7 +737,7 @@ var q = function() {
|
|
|
737
737
|
return t;
|
|
738
738
|
}, q.apply(this, arguments);
|
|
739
739
|
};
|
|
740
|
-
function
|
|
740
|
+
function jn(e, t) {
|
|
741
741
|
var r = {};
|
|
742
742
|
for (var n in e)
|
|
743
743
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -753,17 +753,17 @@ function qe(e, t, r) {
|
|
|
753
753
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
754
754
|
}
|
|
755
755
|
function We(e, t) {
|
|
756
|
-
var r = t && t.cache ? t.cache :
|
|
756
|
+
var r = t && t.cache ? t.cache : $n, n = t && t.serializer ? t.serializer : Gn, i = t && t.strategy ? t.strategy : Un;
|
|
757
757
|
return i(e, {
|
|
758
758
|
cache: r,
|
|
759
759
|
serializer: n
|
|
760
760
|
});
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function In(e) {
|
|
763
763
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
764
764
|
}
|
|
765
|
-
function
|
|
766
|
-
var i =
|
|
765
|
+
function Rn(e, t, r, n) {
|
|
766
|
+
var i = In(n) ? n : r(n), o = t.get(i);
|
|
767
767
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
768
768
|
}
|
|
769
769
|
function rr(e, t, r) {
|
|
@@ -773,16 +773,16 @@ function rr(e, t, r) {
|
|
|
773
773
|
function nr(e, t, r, n, i) {
|
|
774
774
|
return r.bind(t, e, n, i);
|
|
775
775
|
}
|
|
776
|
-
function
|
|
777
|
-
var r = e.length === 1 ?
|
|
776
|
+
function Un(e, t) {
|
|
777
|
+
var r = e.length === 1 ? Rn : rr;
|
|
778
778
|
return nr(e, this, r, t.cache.create(), t.serializer);
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function Dn(e, t) {
|
|
781
781
|
return nr(e, this, rr, t.cache.create(), t.serializer);
|
|
782
782
|
}
|
|
783
|
-
var
|
|
783
|
+
var Gn = function() {
|
|
784
784
|
return JSON.stringify(arguments);
|
|
785
|
-
},
|
|
785
|
+
}, Fn = (
|
|
786
786
|
/** @class */
|
|
787
787
|
function() {
|
|
788
788
|
function e() {
|
|
@@ -794,12 +794,12 @@ var Dn = function() {
|
|
|
794
794
|
this.cache[t] = r;
|
|
795
795
|
}, e;
|
|
796
796
|
}()
|
|
797
|
-
),
|
|
797
|
+
), $n = {
|
|
798
798
|
create: function() {
|
|
799
|
-
return new
|
|
799
|
+
return new Fn();
|
|
800
800
|
}
|
|
801
801
|
}, Ze = {
|
|
802
|
-
variadic:
|
|
802
|
+
variadic: Dn
|
|
803
803
|
}, je = function() {
|
|
804
804
|
return je = Object.assign || function(t) {
|
|
805
805
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
@@ -825,7 +825,7 @@ var se;
|
|
|
825
825
|
function Et(e) {
|
|
826
826
|
return e.type === P.literal;
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function Vn(e) {
|
|
829
829
|
return e.type === P.argument;
|
|
830
830
|
}
|
|
831
831
|
function ir(e) {
|
|
@@ -843,7 +843,7 @@ function sr(e) {
|
|
|
843
843
|
function lr(e) {
|
|
844
844
|
return e.type === P.plural;
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function Xn(e) {
|
|
847
847
|
return e.type === P.pound;
|
|
848
848
|
}
|
|
849
849
|
function cr(e) {
|
|
@@ -855,10 +855,10 @@ function ur(e) {
|
|
|
855
855
|
function nt(e) {
|
|
856
856
|
return !!(e && typeof e == "object" && e.type === se.dateTime);
|
|
857
857
|
}
|
|
858
|
-
var hr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
859
|
-
function
|
|
858
|
+
var hr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, qn = /(?:[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;
|
|
859
|
+
function Wn(e) {
|
|
860
860
|
var t = {};
|
|
861
|
-
return e.replace(
|
|
861
|
+
return e.replace(qn, function(r) {
|
|
862
862
|
var n = r.length;
|
|
863
863
|
switch (r[0]) {
|
|
864
864
|
case "G":
|
|
@@ -957,29 +957,29 @@ var B = function() {
|
|
|
957
957
|
return t;
|
|
958
958
|
}, B.apply(this, arguments);
|
|
959
959
|
};
|
|
960
|
-
var
|
|
961
|
-
function
|
|
960
|
+
var Zn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
961
|
+
function Jn(e) {
|
|
962
962
|
if (e.length === 0)
|
|
963
963
|
throw new Error("Number skeleton cannot be empty");
|
|
964
|
-
for (var t = e.split(
|
|
964
|
+
for (var t = e.split(Zn).filter(function(m) {
|
|
965
965
|
return m.length > 0;
|
|
966
966
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
967
967
|
var o = i[n], a = o.split("/");
|
|
968
968
|
if (a.length === 0)
|
|
969
969
|
throw new Error("Invalid number skeleton");
|
|
970
|
-
for (var s = a[0],
|
|
970
|
+
for (var s = a[0], h = a.slice(1), l = 0, c = h; l < c.length; l++) {
|
|
971
971
|
var d = c[l];
|
|
972
972
|
if (d.length === 0)
|
|
973
973
|
throw new Error("Invalid number skeleton");
|
|
974
974
|
}
|
|
975
|
-
r.push({ stem: s, options:
|
|
975
|
+
r.push({ stem: s, options: h });
|
|
976
976
|
}
|
|
977
977
|
return r;
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function Qn(e) {
|
|
980
980
|
return e.replace(/^(.*?)-/, "");
|
|
981
981
|
}
|
|
982
|
-
var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, dr = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
982
|
+
var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, dr = /^(@+)?(\+|#+)?[rs]?$/g, Yn = /(\*)(0+)|(#+)(0+)|(0+)/g, mr = /^(0+)$/;
|
|
983
983
|
function St(e) {
|
|
984
984
|
var t = {};
|
|
985
985
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(dr, function(r, n, i) {
|
|
@@ -1026,7 +1026,7 @@ function fr(e) {
|
|
|
1026
1026
|
};
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function Kn(e) {
|
|
1030
1030
|
var t;
|
|
1031
1031
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1032
1032
|
notation: "engineering"
|
|
@@ -1044,7 +1044,7 @@ function xt(e) {
|
|
|
1044
1044
|
var t = {}, r = fr(e);
|
|
1045
1045
|
return r || t;
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function ei(e) {
|
|
1048
1048
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1049
1049
|
var i = n[r];
|
|
1050
1050
|
switch (i.stem) {
|
|
@@ -1068,7 +1068,7 @@ function Kn(e) {
|
|
|
1068
1068
|
continue;
|
|
1069
1069
|
case "measure-unit":
|
|
1070
1070
|
case "unit":
|
|
1071
|
-
t.style = "unit", t.unit =
|
|
1071
|
+
t.style = "unit", t.unit = Qn(i.options[0]);
|
|
1072
1072
|
continue;
|
|
1073
1073
|
case "compact-short":
|
|
1074
1074
|
case "K":
|
|
@@ -1079,13 +1079,13 @@ function Kn(e) {
|
|
|
1079
1079
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1080
1080
|
continue;
|
|
1081
1081
|
case "scientific":
|
|
1082
|
-
t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
1083
|
-
return B(B({},
|
|
1082
|
+
t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
|
1083
|
+
return B(B({}, h), xt(l));
|
|
1084
1084
|
}, {}));
|
|
1085
1085
|
continue;
|
|
1086
1086
|
case "engineering":
|
|
1087
|
-
t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
1088
|
-
return B(B({},
|
|
1087
|
+
t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
|
1088
|
+
return B(B({}, h), xt(l));
|
|
1089
1089
|
}, {}));
|
|
1090
1090
|
continue;
|
|
1091
1091
|
case "notation-simple":
|
|
@@ -1130,7 +1130,7 @@ function Kn(e) {
|
|
|
1130
1130
|
case "integer-width":
|
|
1131
1131
|
if (i.options.length > 1)
|
|
1132
1132
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1133
|
-
i.options[0].replace(
|
|
1133
|
+
i.options[0].replace(Yn, function(h, l, c, d, m, y) {
|
|
1134
1134
|
if (l)
|
|
1135
1135
|
t.minimumIntegerDigits = c.length;
|
|
1136
1136
|
else {
|
|
@@ -1150,7 +1150,7 @@ function Kn(e) {
|
|
|
1150
1150
|
if (Ct.test(i.stem)) {
|
|
1151
1151
|
if (i.options.length > 1)
|
|
1152
1152
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1153
|
-
i.stem.replace(Ct, function(
|
|
1153
|
+
i.stem.replace(Ct, function(h, l, c, d, m, y) {
|
|
1154
1154
|
return c === "*" ? t.minimumFractionDigits = l.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && y ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1155
1155
|
});
|
|
1156
1156
|
var o = i.options[0];
|
|
@@ -1163,7 +1163,7 @@ function Kn(e) {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
var a = fr(i.stem);
|
|
1165
1165
|
a && (t = B(B({}, t), a));
|
|
1166
|
-
var s =
|
|
1166
|
+
var s = Kn(i.stem);
|
|
1167
1167
|
s && (t = B(B({}, t), s));
|
|
1168
1168
|
}
|
|
1169
1169
|
return t;
|
|
@@ -2583,15 +2583,15 @@ var Pe = {
|
|
|
2583
2583
|
"h"
|
|
2584
2584
|
]
|
|
2585
2585
|
};
|
|
2586
|
-
function
|
|
2586
|
+
function ti(e, t) {
|
|
2587
2587
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2588
2588
|
var i = e.charAt(n);
|
|
2589
2589
|
if (i === "j") {
|
|
2590
2590
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2591
2591
|
o++, n++;
|
|
2592
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1),
|
|
2592
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = ri(t);
|
|
2593
2593
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
2594
|
-
r +=
|
|
2594
|
+
r += h;
|
|
2595
2595
|
for (; a-- > 0; )
|
|
2596
2596
|
r = l + r;
|
|
2597
2597
|
} else
|
|
@@ -2599,7 +2599,7 @@ function ei(e, t) {
|
|
|
2599
2599
|
}
|
|
2600
2600
|
return r;
|
|
2601
2601
|
}
|
|
2602
|
-
function
|
|
2602
|
+
function ri(e) {
|
|
2603
2603
|
var t = e.hourCycle;
|
|
2604
2604
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2605
2605
|
e.hourCycles && // @ts-ignore
|
|
@@ -2621,20 +2621,20 @@ function ti(e) {
|
|
|
2621
2621
|
var i = Pe[n || ""] || Pe[r || ""] || Pe["".concat(r, "-001")] || Pe["001"];
|
|
2622
2622
|
return i[0];
|
|
2623
2623
|
}
|
|
2624
|
-
var Je,
|
|
2624
|
+
var Je, ni = new RegExp("^".concat(hr.source, "*")), ii = new RegExp("".concat(hr.source, "*$"));
|
|
2625
2625
|
function A(e, t) {
|
|
2626
2626
|
return { start: e, end: t };
|
|
2627
2627
|
}
|
|
2628
|
-
var
|
|
2628
|
+
var oi = !!String.prototype.startsWith && "_a".startsWith("a", 1), ai = !!String.fromCodePoint, si = !!Object.fromEntries, li = !!String.prototype.codePointAt, ci = !!String.prototype.trimStart, ui = !!String.prototype.trimEnd, hi = !!Number.isSafeInteger, di = hi ? Number.isSafeInteger : function(e) {
|
|
2629
2629
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2630
2630
|
}, it = !0;
|
|
2631
2631
|
try {
|
|
2632
|
-
var
|
|
2633
|
-
it = ((Je =
|
|
2632
|
+
var mi = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2633
|
+
it = ((Je = mi.exec("a")) === null || Je === void 0 ? void 0 : Je[0]) === "a";
|
|
2634
2634
|
} catch {
|
|
2635
2635
|
it = !1;
|
|
2636
2636
|
}
|
|
2637
|
-
var wt =
|
|
2637
|
+
var wt = oi ? (
|
|
2638
2638
|
// Native
|
|
2639
2639
|
function(t, r, n) {
|
|
2640
2640
|
return t.startsWith(r, n);
|
|
@@ -2644,7 +2644,7 @@ var wt = ii ? (
|
|
|
2644
2644
|
function(t, r, n) {
|
|
2645
2645
|
return t.slice(n, n + r.length) === r;
|
|
2646
2646
|
}
|
|
2647
|
-
), ot =
|
|
2647
|
+
), ot = ai ? String.fromCodePoint : (
|
|
2648
2648
|
// IE11
|
|
2649
2649
|
function() {
|
|
2650
2650
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2658,7 +2658,7 @@ var wt = ii ? (
|
|
|
2658
2658
|
}
|
|
2659
2659
|
), Tt = (
|
|
2660
2660
|
// native
|
|
2661
|
-
|
|
2661
|
+
si ? Object.fromEntries : (
|
|
2662
2662
|
// Ponyfill
|
|
2663
2663
|
function(t) {
|
|
2664
2664
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2668,7 +2668,7 @@ var wt = ii ? (
|
|
|
2668
2668
|
return r;
|
|
2669
2669
|
}
|
|
2670
2670
|
)
|
|
2671
|
-
), pr =
|
|
2671
|
+
), pr = li ? (
|
|
2672
2672
|
// Native
|
|
2673
2673
|
function(t, r) {
|
|
2674
2674
|
return t.codePointAt(r);
|
|
@@ -2682,7 +2682,7 @@ var wt = ii ? (
|
|
|
2682
2682
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2683
2683
|
}
|
|
2684
2684
|
}
|
|
2685
|
-
),
|
|
2685
|
+
), fi = ci ? (
|
|
2686
2686
|
// Native
|
|
2687
2687
|
function(t) {
|
|
2688
2688
|
return t.trimStart();
|
|
@@ -2690,9 +2690,9 @@ var wt = ii ? (
|
|
|
2690
2690
|
) : (
|
|
2691
2691
|
// Ponyfill
|
|
2692
2692
|
function(t) {
|
|
2693
|
-
return t.replace(
|
|
2693
|
+
return t.replace(ni, "");
|
|
2694
2694
|
}
|
|
2695
|
-
),
|
|
2695
|
+
), pi = ui ? (
|
|
2696
2696
|
// Native
|
|
2697
2697
|
function(t) {
|
|
2698
2698
|
return t.trimEnd();
|
|
@@ -2700,7 +2700,7 @@ var wt = ii ? (
|
|
|
2700
2700
|
) : (
|
|
2701
2701
|
// Ponyfill
|
|
2702
2702
|
function(t) {
|
|
2703
|
-
return t.replace(
|
|
2703
|
+
return t.replace(ii, "");
|
|
2704
2704
|
}
|
|
2705
2705
|
);
|
|
2706
2706
|
function gr(e, t) {
|
|
@@ -2719,13 +2719,13 @@ if (it) {
|
|
|
2719
2719
|
at = function(t, r) {
|
|
2720
2720
|
for (var n = []; ; ) {
|
|
2721
2721
|
var i = pr(t, r);
|
|
2722
|
-
if (i === void 0 || _r(i) ||
|
|
2722
|
+
if (i === void 0 || _r(i) || vi(i))
|
|
2723
2723
|
break;
|
|
2724
2724
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2725
2725
|
}
|
|
2726
2726
|
return ot.apply(void 0, n);
|
|
2727
2727
|
};
|
|
2728
|
-
var
|
|
2728
|
+
var gi = (
|
|
2729
2729
|
/** @class */
|
|
2730
2730
|
function() {
|
|
2731
2731
|
function e(t, r) {
|
|
@@ -2791,8 +2791,8 @@ var pi = (
|
|
|
2791
2791
|
if (this.bumpIf("</")) {
|
|
2792
2792
|
if (this.isEOF() || !st(this.char()))
|
|
2793
2793
|
return this.error(N.INVALID_TAG, A(s, this.clonePosition()));
|
|
2794
|
-
var
|
|
2795
|
-
return i !== l ? this.error(N.UNMATCHED_CLOSING_TAG, A(
|
|
2794
|
+
var h = this.clonePosition(), l = this.parseTagName();
|
|
2795
|
+
return i !== l ? this.error(N.UNMATCHED_CLOSING_TAG, A(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2796
2796
|
val: {
|
|
2797
2797
|
type: P.tag,
|
|
2798
2798
|
value: i,
|
|
@@ -2807,7 +2807,7 @@ var pi = (
|
|
|
2807
2807
|
return this.error(N.INVALID_TAG, A(n, this.clonePosition()));
|
|
2808
2808
|
}, e.prototype.parseTagName = function() {
|
|
2809
2809
|
var t = this.offset();
|
|
2810
|
-
for (this.bump(); !this.isEOF() &&
|
|
2810
|
+
for (this.bump(); !this.isEOF() && yi(this.char()); )
|
|
2811
2811
|
this.bump();
|
|
2812
2812
|
return this.message.slice(t, this.offset());
|
|
2813
2813
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2829,14 +2829,14 @@ var pi = (
|
|
|
2829
2829
|
}
|
|
2830
2830
|
break;
|
|
2831
2831
|
}
|
|
2832
|
-
var
|
|
2832
|
+
var h = A(n, this.clonePosition());
|
|
2833
2833
|
return {
|
|
2834
|
-
val: { type: P.literal, value: i, location:
|
|
2834
|
+
val: { type: P.literal, value: i, location: h },
|
|
2835
2835
|
err: null
|
|
2836
2836
|
};
|
|
2837
2837
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2838
2838
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2839
|
-
!
|
|
2839
|
+
!_i(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2840
2840
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2841
2841
|
if (this.isEOF() || this.char() !== 39)
|
|
2842
2842
|
return null;
|
|
@@ -2909,10 +2909,10 @@ var pi = (
|
|
|
2909
2909
|
var o = this.clonePosition(), a = A(t, o);
|
|
2910
2910
|
return { value: n, location: a };
|
|
2911
2911
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2912
|
-
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value,
|
|
2912
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2913
2913
|
switch (s) {
|
|
2914
2914
|
case "":
|
|
2915
|
-
return this.error(N.EXPECT_ARGUMENT_TYPE, A(a,
|
|
2915
|
+
return this.error(N.EXPECT_ARGUMENT_TYPE, A(a, h));
|
|
2916
2916
|
case "number":
|
|
2917
2917
|
case "date":
|
|
2918
2918
|
case "time": {
|
|
@@ -2923,7 +2923,7 @@ var pi = (
|
|
|
2923
2923
|
var c = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
2924
2924
|
if (d.err)
|
|
2925
2925
|
return d;
|
|
2926
|
-
var m =
|
|
2926
|
+
var m = pi(d.val);
|
|
2927
2927
|
if (m.length === 0)
|
|
2928
2928
|
return this.error(N.EXPECT_ARGUMENT_STYLE, A(this.clonePosition(), this.clonePosition()));
|
|
2929
2929
|
var y = A(c, this.clonePosition());
|
|
@@ -2932,28 +2932,28 @@ var pi = (
|
|
|
2932
2932
|
var g = this.tryParseArgumentClose(i);
|
|
2933
2933
|
if (g.err)
|
|
2934
2934
|
return g;
|
|
2935
|
-
var
|
|
2935
|
+
var p = A(i, this.clonePosition());
|
|
2936
2936
|
if (l && wt(l?.style, "::", 0)) {
|
|
2937
|
-
var S =
|
|
2937
|
+
var S = fi(l.style.slice(2));
|
|
2938
2938
|
if (s === "number") {
|
|
2939
2939
|
var d = this.parseNumberSkeletonFromString(S, l.styleLocation);
|
|
2940
2940
|
return d.err ? d : {
|
|
2941
|
-
val: { type: P.number, value: n, location:
|
|
2941
|
+
val: { type: P.number, value: n, location: p, style: d.val },
|
|
2942
2942
|
err: null
|
|
2943
2943
|
};
|
|
2944
2944
|
} else {
|
|
2945
2945
|
if (S.length === 0)
|
|
2946
|
-
return this.error(N.EXPECT_DATE_TIME_SKELETON,
|
|
2946
|
+
return this.error(N.EXPECT_DATE_TIME_SKELETON, p);
|
|
2947
2947
|
var _ = S;
|
|
2948
|
-
this.locale && (_ =
|
|
2948
|
+
this.locale && (_ = ti(S, this.locale));
|
|
2949
2949
|
var m = {
|
|
2950
2950
|
type: se.dateTime,
|
|
2951
2951
|
pattern: _,
|
|
2952
2952
|
location: l.styleLocation,
|
|
2953
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2953
|
+
parsedOptions: this.shouldParseSkeletons ? Wn(_) : {}
|
|
2954
2954
|
}, v = s === "date" ? P.date : P.time;
|
|
2955
2955
|
return {
|
|
2956
|
-
val: { type: v, value: n, location:
|
|
2956
|
+
val: { type: v, value: n, location: p, style: m },
|
|
2957
2957
|
err: null
|
|
2958
2958
|
};
|
|
2959
2959
|
}
|
|
@@ -2962,7 +2962,7 @@ var pi = (
|
|
|
2962
2962
|
val: {
|
|
2963
2963
|
type: s === "number" ? P.number : s === "date" ? P.date : P.time,
|
|
2964
2964
|
value: n,
|
|
2965
|
-
location:
|
|
2965
|
+
location: p,
|
|
2966
2966
|
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
2967
2967
|
},
|
|
2968
2968
|
err: null
|
|
@@ -3013,7 +3013,7 @@ var pi = (
|
|
|
3013
3013
|
};
|
|
3014
3014
|
}
|
|
3015
3015
|
default:
|
|
3016
|
-
return this.error(N.INVALID_ARGUMENT_TYPE, A(a,
|
|
3016
|
+
return this.error(N.INVALID_ARGUMENT_TYPE, A(a, h));
|
|
3017
3017
|
}
|
|
3018
3018
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3019
3019
|
return this.isEOF() || this.char() !== 125 ? this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE, A(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3055,7 +3055,7 @@ var pi = (
|
|
|
3055
3055
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3056
3056
|
var n = [];
|
|
3057
3057
|
try {
|
|
3058
|
-
n =
|
|
3058
|
+
n = Jn(t);
|
|
3059
3059
|
} catch {
|
|
3060
3060
|
return this.error(N.INVALID_NUMBER_SKELETON, r);
|
|
3061
3061
|
}
|
|
@@ -3064,12 +3064,12 @@ var pi = (
|
|
|
3064
3064
|
type: se.number,
|
|
3065
3065
|
tokens: n,
|
|
3066
3066
|
location: r,
|
|
3067
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3067
|
+
parsedOptions: this.shouldParseSkeletons ? ei(n) : {}
|
|
3068
3068
|
},
|
|
3069
3069
|
err: null
|
|
3070
3070
|
};
|
|
3071
3071
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3072
|
-
for (var o, a = !1, s = [],
|
|
3072
|
+
for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
|
|
3073
3073
|
if (l.length === 0) {
|
|
3074
3074
|
var d = this.clonePosition();
|
|
3075
3075
|
if (r !== "select" && this.bumpIf("=")) {
|
|
@@ -3080,7 +3080,7 @@ var pi = (
|
|
|
3080
3080
|
} else
|
|
3081
3081
|
break;
|
|
3082
3082
|
}
|
|
3083
|
-
if (
|
|
3083
|
+
if (h.has(l))
|
|
3084
3084
|
return this.error(r === "select" ? N.DUPLICATE_SELECT_ARGUMENT_SELECTOR : N.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3085
3085
|
l === "other" && (a = !0), this.bumpSpace();
|
|
3086
3086
|
var y = this.clonePosition();
|
|
@@ -3089,16 +3089,16 @@ var pi = (
|
|
|
3089
3089
|
var g = this.parseMessage(t + 1, r, n);
|
|
3090
3090
|
if (g.err)
|
|
3091
3091
|
return g;
|
|
3092
|
-
var
|
|
3093
|
-
if (
|
|
3094
|
-
return
|
|
3092
|
+
var p = this.tryParseArgumentClose(y);
|
|
3093
|
+
if (p.err)
|
|
3094
|
+
return p;
|
|
3095
3095
|
s.push([
|
|
3096
3096
|
l,
|
|
3097
3097
|
{
|
|
3098
3098
|
value: g.val,
|
|
3099
3099
|
location: A(y, this.clonePosition())
|
|
3100
3100
|
}
|
|
3101
|
-
]),
|
|
3101
|
+
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
|
|
3102
3102
|
}
|
|
3103
3103
|
return s.length === 0 ? this.error(r === "select" ? N.EXPECT_SELECT_ARGUMENT_SELECTOR : N.EXPECT_PLURAL_ARGUMENT_SELECTOR, A(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(N.MISSING_OTHER_CLAUSE, A(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3104
3104
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -3111,8 +3111,8 @@ var pi = (
|
|
|
3111
3111
|
else
|
|
3112
3112
|
break;
|
|
3113
3113
|
}
|
|
3114
|
-
var
|
|
3115
|
-
return o ? (a *= n,
|
|
3114
|
+
var h = A(i, this.clonePosition());
|
|
3115
|
+
return o ? (a *= n, di(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3116
3116
|
}, e.prototype.offset = function() {
|
|
3117
3117
|
return this.position.offset;
|
|
3118
3118
|
}, e.prototype.isEOF = function() {
|
|
@@ -3181,16 +3181,16 @@ var pi = (
|
|
|
3181
3181
|
function st(e) {
|
|
3182
3182
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3183
3183
|
}
|
|
3184
|
-
function
|
|
3184
|
+
function _i(e) {
|
|
3185
3185
|
return st(e) || e === 47;
|
|
3186
3186
|
}
|
|
3187
|
-
function
|
|
3187
|
+
function yi(e) {
|
|
3188
3188
|
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;
|
|
3189
3189
|
}
|
|
3190
3190
|
function _r(e) {
|
|
3191
3191
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3192
3192
|
}
|
|
3193
|
-
function
|
|
3193
|
+
function vi(e) {
|
|
3194
3194
|
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;
|
|
3195
3195
|
}
|
|
3196
3196
|
function lt(e) {
|
|
@@ -3202,9 +3202,9 @@ function lt(e) {
|
|
|
3202
3202
|
ir(t) && ur(t.style) || (or(t) || ar(t)) && nt(t.style) ? delete t.style.location : cr(t) && lt(t.children);
|
|
3203
3203
|
});
|
|
3204
3204
|
}
|
|
3205
|
-
function
|
|
3205
|
+
function bi(e, t) {
|
|
3206
3206
|
t === void 0 && (t = {}), t = je({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3207
|
-
var r = new
|
|
3207
|
+
var r = new gi(e, t).parse();
|
|
3208
3208
|
if (r.err) {
|
|
3209
3209
|
var n = SyntaxError(N[r.err.kind]);
|
|
3210
3210
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3236,7 +3236,7 @@ var Ge = (
|
|
|
3236
3236
|
}
|
|
3237
3237
|
return t;
|
|
3238
3238
|
}(Ge)
|
|
3239
|
-
),
|
|
3239
|
+
), ki = (
|
|
3240
3240
|
/** @class */
|
|
3241
3241
|
function(e) {
|
|
3242
3242
|
De(t, e);
|
|
@@ -3245,7 +3245,7 @@ var Ge = (
|
|
|
3245
3245
|
}
|
|
3246
3246
|
return t;
|
|
3247
3247
|
}(Ge)
|
|
3248
|
-
),
|
|
3248
|
+
), Ei = (
|
|
3249
3249
|
/** @class */
|
|
3250
3250
|
function(e) {
|
|
3251
3251
|
De(t, e);
|
|
@@ -3258,13 +3258,13 @@ var Ge = (
|
|
|
3258
3258
|
(function(e) {
|
|
3259
3259
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3260
3260
|
})(D || (D = {}));
|
|
3261
|
-
function
|
|
3261
|
+
function Ci(e) {
|
|
3262
3262
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3263
3263
|
var n = t[t.length - 1];
|
|
3264
3264
|
return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
|
|
3265
3265
|
}, []);
|
|
3266
3266
|
}
|
|
3267
|
-
function
|
|
3267
|
+
function Si(e) {
|
|
3268
3268
|
return typeof e == "function";
|
|
3269
3269
|
}
|
|
3270
3270
|
function Oe(e, t, r, n, i, o, a) {
|
|
@@ -3275,8 +3275,8 @@ function Oe(e, t, r, n, i, o, a) {
|
|
|
3275
3275
|
value: e[0].value
|
|
3276
3276
|
}
|
|
3277
3277
|
];
|
|
3278
|
-
for (var s = [],
|
|
3279
|
-
var c = l[
|
|
3278
|
+
for (var s = [], h = 0, l = e; h < l.length; h++) {
|
|
3279
|
+
var c = l[h];
|
|
3280
3280
|
if (Et(c)) {
|
|
3281
3281
|
s.push({
|
|
3282
3282
|
type: D.literal,
|
|
@@ -3284,7 +3284,7 @@ function Oe(e, t, r, n, i, o, a) {
|
|
|
3284
3284
|
});
|
|
3285
3285
|
continue;
|
|
3286
3286
|
}
|
|
3287
|
-
if (
|
|
3287
|
+
if (Xn(c)) {
|
|
3288
3288
|
typeof o == "number" && s.push({
|
|
3289
3289
|
type: D.literal,
|
|
3290
3290
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3293,9 +3293,9 @@ function Oe(e, t, r, n, i, o, a) {
|
|
|
3293
3293
|
}
|
|
3294
3294
|
var d = c.value;
|
|
3295
3295
|
if (!(i && d in i))
|
|
3296
|
-
throw new
|
|
3296
|
+
throw new Ei(d, a);
|
|
3297
3297
|
var m = i[d];
|
|
3298
|
-
if (
|
|
3298
|
+
if (Vn(c)) {
|
|
3299
3299
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
|
|
3300
3300
|
type: typeof m == "string" ? D.literal : D.object,
|
|
3301
3301
|
value: m
|
|
@@ -3327,9 +3327,9 @@ function Oe(e, t, r, n, i, o, a) {
|
|
|
3327
3327
|
continue;
|
|
3328
3328
|
}
|
|
3329
3329
|
if (cr(c)) {
|
|
3330
|
-
var g = c.children,
|
|
3331
|
-
if (!
|
|
3332
|
-
throw new
|
|
3330
|
+
var g = c.children, p = c.value, S = i[p];
|
|
3331
|
+
if (!Si(S))
|
|
3332
|
+
throw new ki(p, "function", a);
|
|
3333
3333
|
var _ = Oe(g, t, r, n, i, o), v = S(_.map(function(E) {
|
|
3334
3334
|
return E.value;
|
|
3335
3335
|
}));
|
|
@@ -3363,16 +3363,16 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3363
3363
|
continue;
|
|
3364
3364
|
}
|
|
3365
3365
|
}
|
|
3366
|
-
return
|
|
3366
|
+
return Ci(s);
|
|
3367
3367
|
}
|
|
3368
|
-
function
|
|
3368
|
+
function xi(e, t) {
|
|
3369
3369
|
return t ? q(q(q({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3370
3370
|
return r[n] = q(q({}, e[n]), t[n] || {}), r;
|
|
3371
3371
|
}, {})) : e;
|
|
3372
3372
|
}
|
|
3373
|
-
function
|
|
3373
|
+
function wi(e, t) {
|
|
3374
3374
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3375
|
-
return r[n] =
|
|
3375
|
+
return r[n] = xi(e[n], t[n]), r;
|
|
3376
3376
|
}, q({}, e)) : e;
|
|
3377
3377
|
}
|
|
3378
3378
|
function Qe(e) {
|
|
@@ -3389,7 +3389,7 @@ function Qe(e) {
|
|
|
3389
3389
|
}
|
|
3390
3390
|
};
|
|
3391
3391
|
}
|
|
3392
|
-
function
|
|
3392
|
+
function Ti(e) {
|
|
3393
3393
|
return e === void 0 && (e = {
|
|
3394
3394
|
number: {},
|
|
3395
3395
|
dateTime: {},
|
|
@@ -3421,7 +3421,7 @@ function wi(e) {
|
|
|
3421
3421
|
})
|
|
3422
3422
|
};
|
|
3423
3423
|
}
|
|
3424
|
-
var
|
|
3424
|
+
var Mi = (
|
|
3425
3425
|
/** @class */
|
|
3426
3426
|
function() {
|
|
3427
3427
|
function e(t, r, n, i) {
|
|
@@ -3431,20 +3431,20 @@ var Ti = (
|
|
|
3431
3431
|
number: {},
|
|
3432
3432
|
dateTime: {},
|
|
3433
3433
|
pluralRules: {}
|
|
3434
|
-
}, this.format = function(
|
|
3435
|
-
var l = o.formatToParts(
|
|
3434
|
+
}, this.format = function(h) {
|
|
3435
|
+
var l = o.formatToParts(h);
|
|
3436
3436
|
if (l.length === 1)
|
|
3437
3437
|
return l[0].value;
|
|
3438
3438
|
var c = l.reduce(function(d, m) {
|
|
3439
3439
|
return !d.length || m.type !== D.literal || typeof d[d.length - 1] != "string" ? d.push(m.value) : d[d.length - 1] += m.value, d;
|
|
3440
3440
|
}, []);
|
|
3441
3441
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3442
|
-
}, this.formatToParts = function(
|
|
3443
|
-
return Oe(o.ast, o.locales, o.formatters, o.formats,
|
|
3442
|
+
}, this.formatToParts = function(h) {
|
|
3443
|
+
return Oe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3444
3444
|
}, this.resolvedOptions = function() {
|
|
3445
|
-
var
|
|
3445
|
+
var h;
|
|
3446
3446
|
return {
|
|
3447
|
-
locale: ((
|
|
3447
|
+
locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3448
3448
|
};
|
|
3449
3449
|
}, this.getAst = function() {
|
|
3450
3450
|
return o.ast;
|
|
@@ -3453,13 +3453,13 @@ var Ti = (
|
|
|
3453
3453
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3454
3454
|
var a = i || {};
|
|
3455
3455
|
a.formatters;
|
|
3456
|
-
var s =
|
|
3456
|
+
var s = jn(a, ["formatters"]);
|
|
3457
3457
|
this.ast = e.__parse(t, q(q({}, s), { locale: this.resolvedLocale }));
|
|
3458
3458
|
} else
|
|
3459
3459
|
this.ast = t;
|
|
3460
3460
|
if (!Array.isArray(this.ast))
|
|
3461
3461
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3462
|
-
this.formats =
|
|
3462
|
+
this.formats = wi(e.formats, n), this.formatters = i && i.formatters || Ti(this.formatterCache);
|
|
3463
3463
|
}
|
|
3464
3464
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3465
3465
|
get: function() {
|
|
@@ -3472,7 +3472,7 @@ var Ti = (
|
|
|
3472
3472
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3473
3473
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3474
3474
|
}
|
|
3475
|
-
}, e.__parse =
|
|
3475
|
+
}, e.__parse = bi, e.formats = {
|
|
3476
3476
|
number: {
|
|
3477
3477
|
integer: {
|
|
3478
3478
|
maximumFractionDigits: 0
|
|
@@ -3533,7 +3533,7 @@ var Ti = (
|
|
|
3533
3533
|
}, e;
|
|
3534
3534
|
}()
|
|
3535
3535
|
);
|
|
3536
|
-
function
|
|
3536
|
+
function Ni(e, t) {
|
|
3537
3537
|
if (t == null)
|
|
3538
3538
|
return;
|
|
3539
3539
|
if (t in e)
|
|
@@ -3554,33 +3554,33 @@ function Mi(e, t) {
|
|
|
3554
3554
|
n = void 0;
|
|
3555
3555
|
return n;
|
|
3556
3556
|
}
|
|
3557
|
-
const J = {},
|
|
3557
|
+
const J = {}, Ai = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r), yr = (e, t) => {
|
|
3558
3558
|
if (t == null)
|
|
3559
3559
|
return;
|
|
3560
3560
|
if (t in J && e in J[t])
|
|
3561
3561
|
return J[t][e];
|
|
3562
3562
|
const r = Fe(t);
|
|
3563
3563
|
for (let n = 0; n < r.length; n++) {
|
|
3564
|
-
const i = r[n], o =
|
|
3564
|
+
const i = r[n], o = Pi(i, e);
|
|
3565
3565
|
if (o)
|
|
3566
|
-
return
|
|
3566
|
+
return Ai(e, t, o);
|
|
3567
3567
|
}
|
|
3568
3568
|
};
|
|
3569
3569
|
let ft;
|
|
3570
3570
|
const xe = Ue({});
|
|
3571
|
-
function
|
|
3571
|
+
function Hi(e) {
|
|
3572
3572
|
return ft[e] || null;
|
|
3573
3573
|
}
|
|
3574
3574
|
function vr(e) {
|
|
3575
3575
|
return e in ft;
|
|
3576
3576
|
}
|
|
3577
|
-
function
|
|
3577
|
+
function Pi(e, t) {
|
|
3578
3578
|
if (!vr(e))
|
|
3579
3579
|
return null;
|
|
3580
|
-
const r =
|
|
3581
|
-
return
|
|
3580
|
+
const r = Hi(e);
|
|
3581
|
+
return Ni(r, t);
|
|
3582
3582
|
}
|
|
3583
|
-
function
|
|
3583
|
+
function Bi(e) {
|
|
3584
3584
|
if (e == null)
|
|
3585
3585
|
return;
|
|
3586
3586
|
const t = Fe(e);
|
|
@@ -3591,7 +3591,7 @@ function Pi(e) {
|
|
|
3591
3591
|
}
|
|
3592
3592
|
}
|
|
3593
3593
|
function br(e, ...t) {
|
|
3594
|
-
delete J[e], xe.update((r) => (r[e] =
|
|
3594
|
+
delete J[e], xe.update((r) => (r[e] = Ln.all([r[e] || {}, ...t]), r));
|
|
3595
3595
|
}
|
|
3596
3596
|
he(
|
|
3597
3597
|
[xe],
|
|
@@ -3599,13 +3599,13 @@ he(
|
|
|
3599
3599
|
);
|
|
3600
3600
|
xe.subscribe((e) => ft = e);
|
|
3601
3601
|
const ze = {};
|
|
3602
|
-
function
|
|
3602
|
+
function Oi(e, t) {
|
|
3603
3603
|
ze[e].delete(t), ze[e].size === 0 && delete ze[e];
|
|
3604
3604
|
}
|
|
3605
3605
|
function kr(e) {
|
|
3606
3606
|
return ze[e];
|
|
3607
3607
|
}
|
|
3608
|
-
function
|
|
3608
|
+
function zi(e) {
|
|
3609
3609
|
return Fe(e).map((t) => {
|
|
3610
3610
|
const r = kr(t);
|
|
3611
3611
|
return [t, r ? [...r] : []];
|
|
@@ -3619,19 +3619,19 @@ function ct(e) {
|
|
|
3619
3619
|
}
|
|
3620
3620
|
);
|
|
3621
3621
|
}
|
|
3622
|
-
function
|
|
3622
|
+
function Li(e, t) {
|
|
3623
3623
|
return Promise.all(
|
|
3624
|
-
t.map((n) => (
|
|
3624
|
+
t.map((n) => (Oi(e, n), n().then((i) => i.default || i)))
|
|
3625
3625
|
).then((n) => br(e, ...n));
|
|
3626
3626
|
}
|
|
3627
3627
|
const ye = {};
|
|
3628
3628
|
function Er(e) {
|
|
3629
3629
|
if (!ct(e))
|
|
3630
3630
|
return e in ye ? ye[e] : Promise.resolve();
|
|
3631
|
-
const t =
|
|
3631
|
+
const t = zi(e);
|
|
3632
3632
|
return ye[e] = Promise.all(
|
|
3633
3633
|
t.map(
|
|
3634
|
-
([r, n]) =>
|
|
3634
|
+
([r, n]) => Li(r, n)
|
|
3635
3635
|
)
|
|
3636
3636
|
).then(() => {
|
|
3637
3637
|
if (ct(e))
|
|
@@ -3639,7 +3639,7 @@ function Er(e) {
|
|
|
3639
3639
|
delete ye[e];
|
|
3640
3640
|
}), ye[e];
|
|
3641
3641
|
}
|
|
3642
|
-
const
|
|
3642
|
+
const ji = {
|
|
3643
3643
|
number: {
|
|
3644
3644
|
scientific: { notation: "scientific" },
|
|
3645
3645
|
engineering: { notation: "engineering" },
|
|
@@ -3668,26 +3668,26 @@ const Li = {
|
|
|
3668
3668
|
timeZoneName: "short"
|
|
3669
3669
|
}
|
|
3670
3670
|
}
|
|
3671
|
-
},
|
|
3671
|
+
}, Ii = {
|
|
3672
3672
|
fallbackLocale: null,
|
|
3673
3673
|
loadingDelay: 200,
|
|
3674
|
-
formats:
|
|
3674
|
+
formats: ji,
|
|
3675
3675
|
warnOnMissingMessages: !0,
|
|
3676
3676
|
handleMissingMessage: void 0,
|
|
3677
3677
|
ignoreTag: !0
|
|
3678
|
-
},
|
|
3678
|
+
}, Ri = Ii;
|
|
3679
3679
|
function ce() {
|
|
3680
|
-
return
|
|
3680
|
+
return Ri;
|
|
3681
3681
|
}
|
|
3682
3682
|
const Ye = Ue(!1);
|
|
3683
|
-
var
|
|
3683
|
+
var Ui = Object.defineProperty, Di = Object.defineProperties, Gi = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, Fi = Object.prototype.hasOwnProperty, $i = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? Ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Vi = (e, t) => {
|
|
3684
3684
|
for (var r in t || (t = {}))
|
|
3685
|
-
|
|
3685
|
+
Fi.call(t, r) && Ht(e, r, t[r]);
|
|
3686
3686
|
if (At)
|
|
3687
3687
|
for (var r of At(t))
|
|
3688
|
-
|
|
3688
|
+
$i.call(t, r) && Ht(e, r, t[r]);
|
|
3689
3689
|
return e;
|
|
3690
|
-
},
|
|
3690
|
+
}, Xi = (e, t) => Di(e, Gi(t));
|
|
3691
3691
|
let ut;
|
|
3692
3692
|
const Ie = Ue(null);
|
|
3693
3693
|
function Pt(e) {
|
|
@@ -3703,8 +3703,8 @@ function K() {
|
|
|
3703
3703
|
Ie.subscribe((e) => {
|
|
3704
3704
|
ut = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3705
3705
|
});
|
|
3706
|
-
const
|
|
3707
|
-
if (e &&
|
|
3706
|
+
const qi = (e) => {
|
|
3707
|
+
if (e && Bi(e) && ct(e)) {
|
|
3708
3708
|
const { loadingDelay: t } = ce();
|
|
3709
3709
|
let r;
|
|
3710
3710
|
return typeof window < "u" && K() != null && t ? r = window.setTimeout(
|
|
@@ -3717,8 +3717,8 @@ const Xi = (e) => {
|
|
|
3717
3717
|
});
|
|
3718
3718
|
}
|
|
3719
3719
|
return Ie.set(e);
|
|
3720
|
-
}, de = Vi(
|
|
3721
|
-
set:
|
|
3720
|
+
}, de = Xi(Vi({}, Ie), {
|
|
3721
|
+
set: qi
|
|
3722
3722
|
}), $e = (e) => {
|
|
3723
3723
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3724
3724
|
return (n) => {
|
|
@@ -3726,7 +3726,7 @@ const Xi = (e) => {
|
|
|
3726
3726
|
return i in t ? t[i] : t[i] = e(n);
|
|
3727
3727
|
};
|
|
3728
3728
|
};
|
|
3729
|
-
var
|
|
3729
|
+
var Wi = Object.defineProperty, Re = Object.getOwnPropertySymbols, Cr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pt = (e, t) => {
|
|
3730
3730
|
for (var r in t || (t = {}))
|
|
3731
3731
|
Cr.call(t, r) && Bt(e, r, t[r]);
|
|
3732
3732
|
if (Re)
|
|
@@ -3747,21 +3747,21 @@ const Ce = (e, t) => {
|
|
|
3747
3747
|
if (e in r && t in r[e])
|
|
3748
3748
|
return r[e][t];
|
|
3749
3749
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3750
|
-
},
|
|
3750
|
+
}, Zi = $e(
|
|
3751
3751
|
(e) => {
|
|
3752
3752
|
var t = e, { locale: r, format: n } = t, i = me(t, ["locale", "format"]);
|
|
3753
3753
|
if (r == null)
|
|
3754
3754
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3755
3755
|
return n && (i = Ce("number", n)), new Intl.NumberFormat(r, i);
|
|
3756
3756
|
}
|
|
3757
|
-
),
|
|
3757
|
+
), Ji = $e(
|
|
3758
3758
|
(e) => {
|
|
3759
3759
|
var t = e, { locale: r, format: n } = t, i = me(t, ["locale", "format"]);
|
|
3760
3760
|
if (r == null)
|
|
3761
3761
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3762
3762
|
return n ? i = Ce("date", n) : Object.keys(i).length === 0 && (i = Ce("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3763
3763
|
}
|
|
3764
|
-
),
|
|
3764
|
+
), Qi = $e(
|
|
3765
3765
|
(e) => {
|
|
3766
3766
|
var t = e, { locale: r, format: n } = t, i = me(t, ["locale", "format"]);
|
|
3767
3767
|
if (r == null)
|
|
@@ -3770,48 +3770,48 @@ const Ce = (e, t) => {
|
|
|
3770
3770
|
);
|
|
3771
3771
|
return n ? i = Ce("time", n) : Object.keys(i).length === 0 && (i = Ce("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3772
3772
|
}
|
|
3773
|
-
),
|
|
3773
|
+
), Yi = (e = {}) => {
|
|
3774
3774
|
var t = e, {
|
|
3775
3775
|
locale: r = K()
|
|
3776
3776
|
} = t, n = me(t, [
|
|
3777
3777
|
"locale"
|
|
3778
3778
|
]);
|
|
3779
|
-
return
|
|
3780
|
-
},
|
|
3779
|
+
return Zi(pt({ locale: r }, n));
|
|
3780
|
+
}, Ki = (e = {}) => {
|
|
3781
3781
|
var t = e, {
|
|
3782
3782
|
locale: r = K()
|
|
3783
3783
|
} = t, n = me(t, [
|
|
3784
3784
|
"locale"
|
|
3785
3785
|
]);
|
|
3786
|
-
return
|
|
3787
|
-
},
|
|
3786
|
+
return Ji(pt({ locale: r }, n));
|
|
3787
|
+
}, eo = (e = {}) => {
|
|
3788
3788
|
var t = e, {
|
|
3789
3789
|
locale: r = K()
|
|
3790
3790
|
} = t, n = me(t, [
|
|
3791
3791
|
"locale"
|
|
3792
3792
|
]);
|
|
3793
|
-
return
|
|
3794
|
-
},
|
|
3793
|
+
return Qi(pt({ locale: r }, n));
|
|
3794
|
+
}, to = $e(
|
|
3795
3795
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3796
|
-
(e, t = K()) => new
|
|
3796
|
+
(e, t = K()) => new Mi(e, t, ce().formats, {
|
|
3797
3797
|
ignoreTag: ce().ignoreTag
|
|
3798
3798
|
})
|
|
3799
|
-
),
|
|
3799
|
+
), ro = (e, t = {}) => {
|
|
3800
3800
|
var r, n, i, o;
|
|
3801
3801
|
let a = t;
|
|
3802
3802
|
typeof e == "object" && (a = e, e = a.id);
|
|
3803
3803
|
const {
|
|
3804
3804
|
values: s,
|
|
3805
|
-
locale:
|
|
3805
|
+
locale: h = K(),
|
|
3806
3806
|
default: l
|
|
3807
3807
|
} = a;
|
|
3808
|
-
if (
|
|
3808
|
+
if (h == null)
|
|
3809
3809
|
throw new Error(
|
|
3810
3810
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3811
3811
|
);
|
|
3812
|
-
let c = yr(e,
|
|
3812
|
+
let c = yr(e, h);
|
|
3813
3813
|
if (!c)
|
|
3814
|
-
c = (o = (i = (n = (r = ce()).handleMissingMessage) == null ? void 0 : n.call(r, { locale:
|
|
3814
|
+
c = (o = (i = (n = (r = ce()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
3815
3815
|
else if (typeof c != "string")
|
|
3816
3816
|
return console.warn(
|
|
3817
3817
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3820,7 +3820,7 @@ const Ce = (e, t) => {
|
|
|
3820
3820
|
return c;
|
|
3821
3821
|
let d = c;
|
|
3822
3822
|
try {
|
|
3823
|
-
d =
|
|
3823
|
+
d = to(c, h).format(s);
|
|
3824
3824
|
} catch (m) {
|
|
3825
3825
|
m instanceof Error && console.warn(
|
|
3826
3826
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3828,15 +3828,15 @@ const Ce = (e, t) => {
|
|
|
3828
3828
|
);
|
|
3829
3829
|
}
|
|
3830
3830
|
return d;
|
|
3831
|
-
},
|
|
3832
|
-
he([de], () => ro);
|
|
3831
|
+
}, no = (e, t) => eo(t).format(e), io = (e, t) => Ki(t).format(e), oo = (e, t) => Yi(t).format(e), ao = (e, t = K()) => yr(e, t), so = he([de, xe], () => ro);
|
|
3833
3832
|
he([de], () => no);
|
|
3834
3833
|
he([de], () => io);
|
|
3835
|
-
he([de
|
|
3834
|
+
he([de], () => oo);
|
|
3835
|
+
he([de, xe], () => ao);
|
|
3836
3836
|
function Ot(e, t) {
|
|
3837
3837
|
br(e, t);
|
|
3838
3838
|
}
|
|
3839
|
-
function
|
|
3839
|
+
function lo(e) {
|
|
3840
3840
|
de.set(e);
|
|
3841
3841
|
}
|
|
3842
3842
|
const zt = {
|
|
@@ -4411,11 +4411,11 @@ if (typeof window < "u") {
|
|
|
4411
4411
|
}
|
|
4412
4412
|
};
|
|
4413
4413
|
};
|
|
4414
|
-
customElements.define = e(customElements.define), import("./GeneralAnimationLoading-
|
|
4414
|
+
customElements.define = e(customElements.define), import("./GeneralAnimationLoading-B7KMbgFV.js").then(({ default: t }) => {
|
|
4415
4415
|
!customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
|
|
4416
4416
|
});
|
|
4417
4417
|
}
|
|
4418
|
-
function
|
|
4418
|
+
function co(e) {
|
|
4419
4419
|
let t, r;
|
|
4420
4420
|
return {
|
|
4421
4421
|
c() {
|
|
@@ -4432,28 +4432,28 @@ function lo(e) {
|
|
|
4432
4432
|
}
|
|
4433
4433
|
};
|
|
4434
4434
|
}
|
|
4435
|
-
class
|
|
4435
|
+
class uo extends er {
|
|
4436
4436
|
constructor(t) {
|
|
4437
|
-
super(), Qt(this, t, null,
|
|
4437
|
+
super(), Qt(this, t, null, co, dt, {});
|
|
4438
4438
|
}
|
|
4439
4439
|
}
|
|
4440
|
-
customElements.define("circle-exclamation-icon", Kt(
|
|
4441
|
-
function
|
|
4442
|
-
|
|
4440
|
+
customElements.define("circle-exclamation-icon", Kt(uo, {}, [], [], !0));
|
|
4441
|
+
function ho(e) {
|
|
4442
|
+
Jr(e, "svelte-etk3ty", '.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}');
|
|
4443
4443
|
}
|
|
4444
4444
|
function Lt(e, t, r) {
|
|
4445
4445
|
const n = e.slice();
|
|
4446
|
-
return n[
|
|
4446
|
+
return n[65] = t[r], n;
|
|
4447
4447
|
}
|
|
4448
4448
|
function jt(e, t, r) {
|
|
4449
4449
|
const n = e.slice();
|
|
4450
|
-
return n[
|
|
4450
|
+
return n[62] = t[r], n[63] = t, n[64] = r, n;
|
|
4451
4451
|
}
|
|
4452
4452
|
function It(e, t, r) {
|
|
4453
4453
|
const n = e.slice();
|
|
4454
|
-
return n[
|
|
4454
|
+
return n[65] = t[r], n;
|
|
4455
4455
|
}
|
|
4456
|
-
function
|
|
4456
|
+
function mo(e) {
|
|
4457
4457
|
let t, r, n = oe(
|
|
4458
4458
|
/*playerConsents*/
|
|
4459
4459
|
e[9]
|
|
@@ -4462,7 +4462,7 @@ function ho(e) {
|
|
|
4462
4462
|
i[o] = Rt(Lt(e, n, o));
|
|
4463
4463
|
return {
|
|
4464
4464
|
c() {
|
|
4465
|
-
t =
|
|
4465
|
+
t = T("div"), r = T("form");
|
|
4466
4466
|
for (let o = 0; o < i.length; o += 1)
|
|
4467
4467
|
i[o].c();
|
|
4468
4468
|
k(r, "class", "checkbox svelte-etk3ty"), k(t, "class", "legacyStyle");
|
|
@@ -4471,19 +4471,19 @@ function ho(e) {
|
|
|
4471
4471
|
L(o, t, a), x(t, r);
|
|
4472
4472
|
for (let s = 0; s < i.length; s += 1)
|
|
4473
4473
|
i[s] && i[s].m(r, null);
|
|
4474
|
-
e[
|
|
4474
|
+
e[32](r);
|
|
4475
4475
|
},
|
|
4476
4476
|
p(o, a) {
|
|
4477
|
-
if (a[0] & /*playerConsents,
|
|
4478
|
-
|
|
4477
|
+
if (a[0] & /*playerConsents, translate, handleInput*/
|
|
4478
|
+
1180160) {
|
|
4479
4479
|
n = oe(
|
|
4480
4480
|
/*playerConsents*/
|
|
4481
4481
|
o[9]
|
|
4482
4482
|
);
|
|
4483
4483
|
let s;
|
|
4484
4484
|
for (s = 0; s < n.length; s += 1) {
|
|
4485
|
-
const
|
|
4486
|
-
i[s] ? i[s].p(
|
|
4485
|
+
const h = Lt(o, n, s);
|
|
4486
|
+
i[s] ? i[s].p(h, a) : (i[s] = Rt(h), i[s].c(), i[s].m(r, null));
|
|
4487
4487
|
}
|
|
4488
4488
|
for (; s < i.length; s += 1)
|
|
4489
4489
|
i[s].d(1);
|
|
@@ -4491,11 +4491,11 @@ function ho(e) {
|
|
|
4491
4491
|
}
|
|
4492
4492
|
},
|
|
4493
4493
|
d(o) {
|
|
4494
|
-
o && O(t), mt(i, o), e[
|
|
4494
|
+
o && O(t), mt(i, o), e[32](null);
|
|
4495
4495
|
}
|
|
4496
4496
|
};
|
|
4497
4497
|
}
|
|
4498
|
-
function
|
|
4498
|
+
function fo(e) {
|
|
4499
4499
|
let t = (
|
|
4500
4500
|
/*$_*/
|
|
4501
4501
|
e[16]("title") || /*$_*/
|
|
@@ -4503,12 +4503,12 @@ function mo(e) {
|
|
|
4503
4503
|
), r, n, i, o = (
|
|
4504
4504
|
/*$_*/
|
|
4505
4505
|
(e[16]("saveButtonContent") || "Save Consents") + ""
|
|
4506
|
-
), a, s,
|
|
4506
|
+
), a, s, h, l, c, d = t && Ut(e), m = oe(
|
|
4507
4507
|
/*consentsCategories*/
|
|
4508
4508
|
e[8]
|
|
4509
4509
|
), y = [];
|
|
4510
|
-
for (let
|
|
4511
|
-
y[
|
|
4510
|
+
for (let p = 0; p < m.length; p += 1)
|
|
4511
|
+
y[p] = Xt(jt(e, m, p));
|
|
4512
4512
|
let g = (
|
|
4513
4513
|
/*errorMessage*/
|
|
4514
4514
|
e[6] && qt(e)
|
|
@@ -4516,35 +4516,35 @@ function mo(e) {
|
|
|
4516
4516
|
return {
|
|
4517
4517
|
c() {
|
|
4518
4518
|
d && d.c(), r = G();
|
|
4519
|
-
for (let
|
|
4520
|
-
y[
|
|
4521
|
-
n = G(), i =
|
|
4519
|
+
for (let p = 0; p < y.length; p += 1)
|
|
4520
|
+
y[p].c();
|
|
4521
|
+
n = G(), i = T("button"), s = G(), g && g.c(), h = Kr(), k(i, "class", "SaveConsentsButton svelte-etk3ty"), i.disabled = a = !/*isValid*/
|
|
4522
4522
|
e[14];
|
|
4523
4523
|
},
|
|
4524
|
-
m(
|
|
4525
|
-
d && d.m(
|
|
4524
|
+
m(p, S) {
|
|
4525
|
+
d && d.m(p, S), L(p, r, S);
|
|
4526
4526
|
for (let _ = 0; _ < y.length; _ += 1)
|
|
4527
|
-
y[_] && y[_].m(
|
|
4528
|
-
L(
|
|
4527
|
+
y[_] && y[_].m(p, S);
|
|
4528
|
+
L(p, n, S), L(p, i, S), i.innerHTML = o, L(p, s, S), g && g.m(p, S), L(p, h, S), l || (c = be(
|
|
4529
4529
|
i,
|
|
4530
4530
|
"click",
|
|
4531
4531
|
/*saveChanges*/
|
|
4532
|
-
e[
|
|
4532
|
+
e[18]
|
|
4533
4533
|
), l = !0);
|
|
4534
4534
|
},
|
|
4535
|
-
p(
|
|
4535
|
+
p(p, S) {
|
|
4536
4536
|
if (S[0] & /*$_*/
|
|
4537
4537
|
65536 && (t = /*$_*/
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4538
|
+
p[16]("title") || /*$_*/
|
|
4539
|
+
p[16]("description")), t ? d ? d.p(p, S) : (d = Ut(p), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), S[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, translate, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
|
|
4540
|
+
1719056) {
|
|
4541
4541
|
m = oe(
|
|
4542
4542
|
/*consentsCategories*/
|
|
4543
|
-
|
|
4543
|
+
p[8]
|
|
4544
4544
|
);
|
|
4545
4545
|
let _;
|
|
4546
4546
|
for (_ = 0; _ < m.length; _ += 1) {
|
|
4547
|
-
const v = jt(
|
|
4547
|
+
const v = jt(p, m, _);
|
|
4548
4548
|
y[_] ? y[_].p(v, S) : (y[_] = Xt(v), y[_].c(), y[_].m(n.parentNode, n));
|
|
4549
4549
|
}
|
|
4550
4550
|
for (; _ < y.length; _ += 1)
|
|
@@ -4553,21 +4553,21 @@ function mo(e) {
|
|
|
4553
4553
|
}
|
|
4554
4554
|
S[0] & /*$_*/
|
|
4555
4555
|
65536 && o !== (o = /*$_*/
|
|
4556
|
-
(
|
|
4556
|
+
(p[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), S[0] & /*isValid*/
|
|
4557
4557
|
16384 && a !== (a = !/*isValid*/
|
|
4558
|
-
|
|
4559
|
-
|
|
4558
|
+
p[14]) && (i.disabled = a), /*errorMessage*/
|
|
4559
|
+
p[6] ? g ? g.p(p, S) : (g = qt(p), g.c(), g.m(h.parentNode, h)) : g && (g.d(1), g = null);
|
|
4560
4560
|
},
|
|
4561
|
-
d(
|
|
4562
|
-
|
|
4561
|
+
d(p) {
|
|
4562
|
+
p && (O(r), O(n), O(i), O(s), O(h)), d && d.d(p), mt(y, p), g && g.d(p), l = !1, c();
|
|
4563
4563
|
}
|
|
4564
4564
|
};
|
|
4565
4565
|
}
|
|
4566
|
-
function
|
|
4566
|
+
function po(e) {
|
|
4567
4567
|
let t, r, n;
|
|
4568
4568
|
return {
|
|
4569
4569
|
c() {
|
|
4570
|
-
t =
|
|
4570
|
+
t = T("div"), r = T("strong"), n = Y(
|
|
4571
4571
|
/*fatalError*/
|
|
4572
4572
|
e[7]
|
|
4573
4573
|
), k(r, "class", "ErrorMessage svelte-etk3ty"), k(t, "class", "ContainerCenter svelte-etk3ty");
|
|
@@ -4588,11 +4588,11 @@ function fo(e) {
|
|
|
4588
4588
|
}
|
|
4589
4589
|
};
|
|
4590
4590
|
}
|
|
4591
|
-
function
|
|
4591
|
+
function go(e) {
|
|
4592
4592
|
let t;
|
|
4593
4593
|
return {
|
|
4594
4594
|
c() {
|
|
4595
|
-
t =
|
|
4595
|
+
t = T("general-animation-loading"), Q(
|
|
4596
4596
|
t,
|
|
4597
4597
|
"clientstyling",
|
|
4598
4598
|
/*clientstyling*/
|
|
@@ -4639,55 +4639,61 @@ function po(e) {
|
|
|
4639
4639
|
};
|
|
4640
4640
|
}
|
|
4641
4641
|
function Rt(e) {
|
|
4642
|
-
let t, r, n, i, o, a, s,
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4642
|
+
let t, r, n, i, o, a, s, h, l = (
|
|
4643
|
+
/*translate*/
|
|
4644
|
+
e[17](
|
|
4645
|
+
`${/*consent*/
|
|
4646
|
+
e[65].tagCode}__description`,
|
|
4647
|
+
/*consent*/
|
|
4648
|
+
e[65].friendlyName
|
|
4649
|
+
) + ""
|
|
4647
4650
|
), c = (
|
|
4648
4651
|
/*consent*/
|
|
4649
|
-
e[
|
|
4650
|
-
), d, m, y, g,
|
|
4652
|
+
e[65].mustAccept ? " *" : ""
|
|
4653
|
+
), d, m, y, g, p, S, _, v, C;
|
|
4651
4654
|
function H(...E) {
|
|
4652
4655
|
return (
|
|
4653
4656
|
/*input_handler_1*/
|
|
4654
|
-
e[
|
|
4657
|
+
e[31](
|
|
4655
4658
|
/*consent*/
|
|
4656
|
-
e[
|
|
4659
|
+
e[65],
|
|
4657
4660
|
...E
|
|
4658
4661
|
)
|
|
4659
4662
|
);
|
|
4660
4663
|
}
|
|
4661
4664
|
return {
|
|
4662
4665
|
c() {
|
|
4663
|
-
t =
|
|
4664
|
-
e[
|
|
4665
|
-
e[
|
|
4666
|
-
e[
|
|
4667
|
-
e[
|
|
4668
|
-
e[
|
|
4666
|
+
t = T("div"), r = T("input"), o = G(), a = T("label"), s = T("div"), h = new Jt(!1), d = Y(c), y = G(), g = T("small"), S = G(), k(r, "class", "checkbox__input svelte-etk3ty"), k(r, "type", "checkbox"), r.checked = n = /*consent*/
|
|
4667
|
+
e[65].status === "1", k(r, "id", i = `${/*consent*/
|
|
4668
|
+
e[65].tagCode}__input`), h.a = d, k(s, "class", "checkbox__label-text svelte-etk3ty"), k(a, "class", "checkbox__label svelte-etk3ty"), k(a, "for", m = `${/*consent*/
|
|
4669
|
+
e[65].tagCode}__input`), k(g, "class", "checkbox__error-message svelte-etk3ty"), k(g, "id", p = "checkBoxError__" + /*consent*/
|
|
4670
|
+
e[65].tagCode), k(t, "class", _ = "checkbox__wrapper " + /*consent*/
|
|
4671
|
+
e[65].tagCode + "__input svelte-etk3ty");
|
|
4669
4672
|
},
|
|
4670
4673
|
m(E, z) {
|
|
4671
|
-
L(E, t, z), x(t, r), x(t, o), x(t, a), x(a, s),
|
|
4674
|
+
L(E, t, z), x(t, r), x(t, o), x(t, a), x(a, s), h.m(l, s), x(s, d), x(t, y), x(t, g), x(t, S), v || (C = be(r, "input", H), v = !0);
|
|
4672
4675
|
},
|
|
4673
4676
|
p(E, z) {
|
|
4674
4677
|
e = E, z[0] & /*playerConsents*/
|
|
4675
4678
|
512 && n !== (n = /*consent*/
|
|
4676
|
-
e[
|
|
4679
|
+
e[65].status === "1") && (r.checked = n), z[0] & /*playerConsents*/
|
|
4677
4680
|
512 && i !== (i = `${/*consent*/
|
|
4678
|
-
e[
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4681
|
+
e[65].tagCode}__input`) && k(r, "id", i), z[0] & /*playerConsents*/
|
|
4682
|
+
512 && l !== (l = /*translate*/
|
|
4683
|
+
e[17](
|
|
4684
|
+
`${/*consent*/
|
|
4685
|
+
e[65].tagCode}__description`,
|
|
4686
|
+
/*consent*/
|
|
4687
|
+
e[65].friendlyName
|
|
4688
|
+
) + "") && h.p(l), z[0] & /*playerConsents*/
|
|
4683
4689
|
512 && c !== (c = /*consent*/
|
|
4684
|
-
e[
|
|
4690
|
+
e[65].mustAccept ? " *" : "") && Se(d, c), z[0] & /*playerConsents*/
|
|
4685
4691
|
512 && m !== (m = `${/*consent*/
|
|
4686
|
-
e[
|
|
4687
|
-
512 &&
|
|
4688
|
-
e[
|
|
4692
|
+
e[65].tagCode}__input`) && k(a, "for", m), z[0] & /*playerConsents*/
|
|
4693
|
+
512 && p !== (p = "checkBoxError__" + /*consent*/
|
|
4694
|
+
e[65].tagCode) && k(g, "id", p), z[0] & /*playerConsents*/
|
|
4689
4695
|
512 && _ !== (_ = "checkbox__wrapper " + /*consent*/
|
|
4690
|
-
e[
|
|
4696
|
+
e[65].tagCode + "__input svelte-etk3ty") && k(t, "class", _);
|
|
4691
4697
|
},
|
|
4692
4698
|
d(E) {
|
|
4693
4699
|
E && O(t), v = !1, C();
|
|
@@ -4704,17 +4710,17 @@ function Ut(e) {
|
|
|
4704
4710
|
), o = r && Dt(e), a = i && Gt(e);
|
|
4705
4711
|
return {
|
|
4706
4712
|
c() {
|
|
4707
|
-
t =
|
|
4713
|
+
t = T("div"), o && o.c(), n = G(), a && a.c(), k(t, "class", "PlayerConsentsHeader svelte-etk3ty");
|
|
4708
4714
|
},
|
|
4709
|
-
m(s,
|
|
4710
|
-
L(s, t,
|
|
4715
|
+
m(s, h) {
|
|
4716
|
+
L(s, t, h), o && o.m(t, null), x(t, n), a && a.m(t, null);
|
|
4711
4717
|
},
|
|
4712
|
-
p(s,
|
|
4713
|
-
|
|
4718
|
+
p(s, h) {
|
|
4719
|
+
h[0] & /*$_*/
|
|
4714
4720
|
65536 && (r = /*$_*/
|
|
4715
|
-
s[16]("title")), r ? o ? o.p(s,
|
|
4721
|
+
s[16]("title")), r ? o ? o.p(s, h) : (o = Dt(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), h[0] & /*$_*/
|
|
4716
4722
|
65536 && (i = /*$_*/
|
|
4717
|
-
s[16]("description")), i ? a ? a.p(s,
|
|
4723
|
+
s[16]("description")), i ? a ? a.p(s, h) : (a = Gt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4718
4724
|
},
|
|
4719
4725
|
d(s) {
|
|
4720
4726
|
s && O(t), o && o.d(), a && a.d();
|
|
@@ -4728,7 +4734,7 @@ function Dt(e) {
|
|
|
4728
4734
|
), n;
|
|
4729
4735
|
return {
|
|
4730
4736
|
c() {
|
|
4731
|
-
t =
|
|
4737
|
+
t = T("h2"), n = Y(r), k(t, "class", "PlayerConsentsTitle");
|
|
4732
4738
|
},
|
|
4733
4739
|
m(i, o) {
|
|
4734
4740
|
L(i, t, o), x(t, n);
|
|
@@ -4750,7 +4756,7 @@ function Gt(e) {
|
|
|
4750
4756
|
), n;
|
|
4751
4757
|
return {
|
|
4752
4758
|
c() {
|
|
4753
|
-
t =
|
|
4759
|
+
t = T("p"), n = Y(r), k(t, "class", "PlayerConsentsDescription");
|
|
4754
4760
|
},
|
|
4755
4761
|
m(i, o) {
|
|
4756
4762
|
L(i, t, o), x(t, n);
|
|
@@ -4769,7 +4775,7 @@ function Ft(e) {
|
|
|
4769
4775
|
let t;
|
|
4770
4776
|
return {
|
|
4771
4777
|
c() {
|
|
4772
|
-
t =
|
|
4778
|
+
t = T("sup"), t.textContent = "*", k(t, "class", "ConsentRequired svelte-etk3ty");
|
|
4773
4779
|
},
|
|
4774
4780
|
m(r, n) {
|
|
4775
4781
|
L(r, t, n);
|
|
@@ -4781,24 +4787,30 @@ function Ft(e) {
|
|
|
4781
4787
|
}
|
|
4782
4788
|
function $t(e) {
|
|
4783
4789
|
let t, r = (
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4790
|
+
/*translate*/
|
|
4791
|
+
e[17](
|
|
4792
|
+
`${/*consent*/
|
|
4793
|
+
e[65].tagCode}__description`,
|
|
4794
|
+
/*consent*/
|
|
4795
|
+
e[65].description
|
|
4796
|
+
) + ""
|
|
4788
4797
|
);
|
|
4789
4798
|
return {
|
|
4790
4799
|
c() {
|
|
4791
|
-
t =
|
|
4800
|
+
t = T("p"), k(t, "class", "ConsentDescription svelte-etk3ty");
|
|
4792
4801
|
},
|
|
4793
4802
|
m(n, i) {
|
|
4794
4803
|
L(n, t, i), t.innerHTML = r;
|
|
4795
4804
|
},
|
|
4796
4805
|
p(n, i) {
|
|
4797
|
-
i[0] &
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4806
|
+
i[0] & /*playerConsents, consentsCategories*/
|
|
4807
|
+
768 && r !== (r = /*translate*/
|
|
4808
|
+
n[17](
|
|
4809
|
+
`${/*consent*/
|
|
4810
|
+
n[65].tagCode}__description`,
|
|
4811
|
+
/*consent*/
|
|
4812
|
+
n[65].description
|
|
4813
|
+
) + "") && (t.innerHTML = r);
|
|
4802
4814
|
},
|
|
4803
4815
|
d(n) {
|
|
4804
4816
|
n && O(t);
|
|
@@ -4807,13 +4819,16 @@ function $t(e) {
|
|
|
4807
4819
|
}
|
|
4808
4820
|
function Vt(e) {
|
|
4809
4821
|
let t, r, n, i, o = (
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4822
|
+
/*translate*/
|
|
4823
|
+
e[17](
|
|
4824
|
+
`${/*consent*/
|
|
4825
|
+
e[65].tagCode}__name`,
|
|
4826
|
+
/*consent*/
|
|
4827
|
+
e[65].friendlyName
|
|
4828
|
+
) + ""
|
|
4829
|
+
), a, s, h, l, c, d, m, y, g, p, S, _ = (
|
|
4815
4830
|
/*consent*/
|
|
4816
|
-
e[
|
|
4831
|
+
e[65].mustAccept === !0 && Ft()
|
|
4817
4832
|
), v = (
|
|
4818
4833
|
/*displayconsentdescription*/
|
|
4819
4834
|
e[4] === "true" && $t(e)
|
|
@@ -4821,83 +4836,89 @@ function Vt(e) {
|
|
|
4821
4836
|
function C(...H) {
|
|
4822
4837
|
return (
|
|
4823
4838
|
/*input_handler*/
|
|
4824
|
-
e[
|
|
4839
|
+
e[30](
|
|
4825
4840
|
/*consent*/
|
|
4826
|
-
e[
|
|
4841
|
+
e[65],
|
|
4827
4842
|
...H
|
|
4828
4843
|
)
|
|
4829
4844
|
);
|
|
4830
4845
|
}
|
|
4831
4846
|
return {
|
|
4832
4847
|
c() {
|
|
4833
|
-
t =
|
|
4834
|
-
e[
|
|
4848
|
+
t = T("div"), r = T("div"), n = T("h4"), i = new Jt(!1), a = G(), _ && _.c(), s = G(), v && v.c(), h = G(), l = T("label"), c = T("input"), y = G(), g = T("span"), i.a = a, k(n, "class", "ConsentName svelte-etk3ty"), k(r, "class", "ConsentContent"), k(c, "type", "checkbox"), c.disabled = d = /*consent*/
|
|
4849
|
+
e[65].mustAccept === !0 && /*initialConsentsState*/
|
|
4835
4850
|
e[12][
|
|
4836
4851
|
/*consent*/
|
|
4837
|
-
e[
|
|
4852
|
+
e[65].tagCode
|
|
4838
4853
|
] === !0, c.checked = m = /*consentsState*/
|
|
4839
4854
|
e[13][
|
|
4840
4855
|
/*consent*/
|
|
4841
|
-
e[
|
|
4856
|
+
e[65].tagCode
|
|
4842
4857
|
], k(c, "class", "svelte-etk3ty"), k(g, "class", "Slider Round svelte-etk3ty"), k(l, "class", "ToggleSwitch svelte-etk3ty"), k(t, "class", "ConsentItem svelte-etk3ty");
|
|
4843
4858
|
},
|
|
4844
4859
|
m(H, E) {
|
|
4845
|
-
L(H, t, E), x(t, r), x(r, n), i.m(o, n), x(n, a), _ && _.m(n, null), x(r, s), v && v.m(r, null), x(t,
|
|
4860
|
+
L(H, t, E), x(t, r), x(r, n), i.m(o, n), x(n, a), _ && _.m(n, null), x(r, s), v && v.m(r, null), x(t, h), x(t, l), x(l, c), x(l, y), x(l, g), p || (S = be(c, "input", C), p = !0);
|
|
4846
4861
|
},
|
|
4847
4862
|
p(H, E) {
|
|
4848
|
-
e = H, E[0] &
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4863
|
+
e = H, E[0] & /*playerConsents, consentsCategories*/
|
|
4864
|
+
768 && o !== (o = /*translate*/
|
|
4865
|
+
e[17](
|
|
4866
|
+
`${/*consent*/
|
|
4867
|
+
e[65].tagCode}__name`,
|
|
4868
|
+
/*consent*/
|
|
4869
|
+
e[65].friendlyName
|
|
4870
|
+
) + "") && i.p(o), /*consent*/
|
|
4871
|
+
e[65].mustAccept === !0 ? _ || (_ = Ft(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
|
|
4854
4872
|
e[4] === "true" ? v ? v.p(e, E) : (v = $t(e), v.c(), v.m(r, null)) : v && (v.d(1), v = null), E[0] & /*playerConsents, consentsCategories, initialConsentsState*/
|
|
4855
4873
|
4864 && d !== (d = /*consent*/
|
|
4856
|
-
e[
|
|
4874
|
+
e[65].mustAccept === !0 && /*initialConsentsState*/
|
|
4857
4875
|
e[12][
|
|
4858
4876
|
/*consent*/
|
|
4859
|
-
e[
|
|
4877
|
+
e[65].tagCode
|
|
4860
4878
|
] === !0) && (c.disabled = d), E[0] & /*consentsState, playerConsents, consentsCategories*/
|
|
4861
4879
|
8960 && m !== (m = /*consentsState*/
|
|
4862
4880
|
e[13][
|
|
4863
4881
|
/*consent*/
|
|
4864
|
-
e[
|
|
4882
|
+
e[65].tagCode
|
|
4865
4883
|
]) && (c.checked = m);
|
|
4866
4884
|
},
|
|
4867
4885
|
d(H) {
|
|
4868
|
-
H && O(t), _ && _.d(), v && v.d(),
|
|
4886
|
+
H && O(t), _ && _.d(), v && v.d(), p = !1, S();
|
|
4869
4887
|
}
|
|
4870
4888
|
};
|
|
4871
4889
|
}
|
|
4872
4890
|
function Xt(e) {
|
|
4873
4891
|
let t, r, n, i = (
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4892
|
+
/*translate*/
|
|
4893
|
+
e[17](
|
|
4894
|
+
`${/*category*/
|
|
4895
|
+
e[62].categoryTagCode}__category`,
|
|
4896
|
+
/*category*/
|
|
4897
|
+
e[62].friendlyName
|
|
4898
|
+
) + ""
|
|
4899
|
+
), o, a, s, h, l, c, d, m, y;
|
|
4879
4900
|
function g() {
|
|
4880
|
-
e[
|
|
4901
|
+
e[27].call(
|
|
4881
4902
|
s,
|
|
4882
4903
|
/*category*/
|
|
4883
|
-
e[
|
|
4904
|
+
e[62]
|
|
4884
4905
|
);
|
|
4885
4906
|
}
|
|
4886
|
-
function
|
|
4907
|
+
function p() {
|
|
4887
4908
|
return (
|
|
4888
4909
|
/*change_handler*/
|
|
4889
|
-
e[
|
|
4910
|
+
e[28](
|
|
4890
4911
|
/*category*/
|
|
4891
|
-
e[
|
|
4912
|
+
e[62]
|
|
4892
4913
|
)
|
|
4893
4914
|
);
|
|
4894
4915
|
}
|
|
4895
4916
|
function S(...C) {
|
|
4896
4917
|
return (
|
|
4897
4918
|
/*func*/
|
|
4898
|
-
e[
|
|
4919
|
+
e[29](
|
|
4899
4920
|
/*category*/
|
|
4900
|
-
e[
|
|
4921
|
+
e[62],
|
|
4901
4922
|
...C
|
|
4902
4923
|
)
|
|
4903
4924
|
);
|
|
@@ -4910,7 +4931,7 @@ function Xt(e) {
|
|
|
4910
4931
|
v[C] = Vt(It(e, _, C));
|
|
4911
4932
|
return {
|
|
4912
4933
|
c() {
|
|
4913
|
-
t =
|
|
4934
|
+
t = T("div"), r = T("div"), n = T("h3"), o = G(), a = T("label"), s = T("input"), h = G(), l = T("span"), c = G(), d = T("div");
|
|
4914
4935
|
for (let C = 0; C < v.length; C += 1)
|
|
4915
4936
|
v[C].c();
|
|
4916
4937
|
k(s, "type", "checkbox"), k(s, "class", "svelte-etk3ty"), k(l, "class", "Slider Round svelte-etk3ty"), k(a, "class", "ToggleSwitch Big svelte-etk3ty"), k(r, "class", "AccordionHeader svelte-etk3ty"), k(d, "class", "AccordionContent svelte-etk3ty"), k(t, "class", "AccordionItem svelte-etk3ty");
|
|
@@ -4919,27 +4940,30 @@ function Xt(e) {
|
|
|
4919
4940
|
L(C, t, H), x(t, r), x(r, n), n.innerHTML = i, x(r, o), x(r, a), x(a, s), s.checked = /*categoryToggle*/
|
|
4920
4941
|
e[11][
|
|
4921
4942
|
/*category*/
|
|
4922
|
-
e[
|
|
4923
|
-
], x(a,
|
|
4943
|
+
e[62].categoryTagCode
|
|
4944
|
+
], x(a, h), x(a, l), x(t, c), x(t, d);
|
|
4924
4945
|
for (let E = 0; E < v.length; E += 1)
|
|
4925
4946
|
v[E] && v[E].m(d, null);
|
|
4926
4947
|
m || (y = [
|
|
4927
4948
|
be(s, "change", g),
|
|
4928
|
-
be(s, "change",
|
|
4949
|
+
be(s, "change", p)
|
|
4929
4950
|
], m = !0);
|
|
4930
4951
|
},
|
|
4931
4952
|
p(C, H) {
|
|
4932
|
-
if (e = C, H[0] &
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4953
|
+
if (e = C, H[0] & /*consentsCategories*/
|
|
4954
|
+
256 && i !== (i = /*translate*/
|
|
4955
|
+
e[17](
|
|
4956
|
+
`${/*category*/
|
|
4957
|
+
e[62].categoryTagCode}__category`,
|
|
4958
|
+
/*category*/
|
|
4959
|
+
e[62].friendlyName
|
|
4960
|
+
) + "") && (n.innerHTML = i), H[0] & /*categoryToggle, consentsCategories*/
|
|
4937
4961
|
2304 && (s.checked = /*categoryToggle*/
|
|
4938
4962
|
e[11][
|
|
4939
4963
|
/*category*/
|
|
4940
|
-
e[
|
|
4941
|
-
]), H[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput,
|
|
4942
|
-
|
|
4964
|
+
e[62].categoryTagCode
|
|
4965
|
+
]), H[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, translate, displayconsentdescription*/
|
|
4966
|
+
1192720) {
|
|
4943
4967
|
_ = oe(
|
|
4944
4968
|
/*playerConsents*/
|
|
4945
4969
|
e[9].filter(S)
|
|
@@ -4963,7 +4987,7 @@ function qt(e) {
|
|
|
4963
4987
|
let t, r, n, i, o;
|
|
4964
4988
|
return {
|
|
4965
4989
|
c() {
|
|
4966
|
-
t =
|
|
4990
|
+
t = T("div"), r = T("circle-exclamation-icon"), n = G(), i = T("strong"), o = Y(
|
|
4967
4991
|
/*errorMessage*/
|
|
4968
4992
|
e[6]
|
|
4969
4993
|
), Q(r, "class", "svelte-etk3ty"), k(i, "class", "ErrorMessage svelte-etk3ty"), k(t, "class", "ConsentErrorContainer svelte-etk3ty");
|
|
@@ -4984,35 +5008,35 @@ function qt(e) {
|
|
|
4984
5008
|
}
|
|
4985
5009
|
};
|
|
4986
5010
|
}
|
|
4987
|
-
function
|
|
5011
|
+
function _o(e) {
|
|
4988
5012
|
let t, r;
|
|
4989
5013
|
function n(a, s) {
|
|
4990
5014
|
if (
|
|
4991
5015
|
/*isLoading*/
|
|
4992
5016
|
a[10]
|
|
4993
5017
|
)
|
|
4994
|
-
return
|
|
5018
|
+
return go;
|
|
4995
5019
|
if (
|
|
4996
5020
|
/*fatalError*/
|
|
4997
5021
|
a[7]
|
|
4998
5022
|
)
|
|
4999
|
-
return
|
|
5023
|
+
return po;
|
|
5000
5024
|
if (
|
|
5001
5025
|
/*session*/
|
|
5002
5026
|
a[0]
|
|
5003
5027
|
)
|
|
5004
|
-
return
|
|
5028
|
+
return fo;
|
|
5005
5029
|
if (!/*session*/
|
|
5006
5030
|
a[0])
|
|
5007
|
-
return
|
|
5031
|
+
return mo;
|
|
5008
5032
|
}
|
|
5009
5033
|
let i = n(e), o = i && i(e);
|
|
5010
5034
|
return {
|
|
5011
5035
|
c() {
|
|
5012
|
-
t =
|
|
5036
|
+
t = T("div"), r = T("div"), o && o.c(), k(r, "class", "ConsentsContainer svelte-etk3ty"), k(t, "class", "" + " svelte-etk3ty");
|
|
5013
5037
|
},
|
|
5014
5038
|
m(a, s) {
|
|
5015
|
-
L(a, t, s), x(t, r), o && o.m(r, null), e[
|
|
5039
|
+
L(a, t, s), x(t, r), o && o.m(r, null), e[33](r);
|
|
5016
5040
|
},
|
|
5017
5041
|
p(a, s) {
|
|
5018
5042
|
i === (i = n(a)) && o ? o.p(a, s) : (o && o.d(1), o = i && i(a), o && (o.c(), o.m(r, null)));
|
|
@@ -5020,80 +5044,83 @@ function go(e) {
|
|
|
5020
5044
|
i: F,
|
|
5021
5045
|
o: F,
|
|
5022
5046
|
d(a) {
|
|
5023
|
-
a && O(t), o && o.d(), e[
|
|
5047
|
+
a && O(t), o && o.d(), e[33](null);
|
|
5024
5048
|
}
|
|
5025
5049
|
};
|
|
5026
5050
|
}
|
|
5027
|
-
function
|
|
5051
|
+
function yo(e, t, r) {
|
|
5028
5052
|
let n;
|
|
5029
|
-
|
|
5030
|
-
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl:
|
|
5053
|
+
Zr(e, so, (u) => r(16, n = u));
|
|
5054
|
+
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: l } = t, { lang: c = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl: m = "" } = t, { modalconsents: y = "false" } = t, g, p, S = !1, _ = !1, v = "", C = "", H = "", E = "", z = [], W = [], j = [], fe = !0, we = !0, $ = {}, Te = {}, Z = {}, U = {}, pe, Me, R = {
|
|
5031
5055
|
none: { key: "0", value: "None" },
|
|
5032
5056
|
accepted: { key: "1", value: "Accepted" },
|
|
5033
5057
|
expired: { key: "2", value: "Expired" },
|
|
5034
5058
|
denied: { key: "3", value: "Denied" },
|
|
5035
5059
|
suspended: { key: "4", value: "Suspended" }
|
|
5036
5060
|
}, Ne = !1;
|
|
5037
|
-
Object.keys(zt).forEach((
|
|
5038
|
-
Ot(
|
|
5061
|
+
Object.keys(zt).forEach((u) => {
|
|
5062
|
+
Ot(u, zt[u]);
|
|
5039
5063
|
});
|
|
5040
5064
|
const xr = () => {
|
|
5041
|
-
|
|
5065
|
+
lo(c);
|
|
5042
5066
|
}, wr = () => {
|
|
5043
|
-
let
|
|
5044
|
-
fetch(
|
|
5045
|
-
Object.keys(
|
|
5046
|
-
Ot(
|
|
5067
|
+
let u = new URL(m);
|
|
5068
|
+
fetch(u.href).then((f) => f.json()).then((f) => {
|
|
5069
|
+
Object.keys(f).forEach((w) => {
|
|
5070
|
+
Ot(w, f[w]);
|
|
5047
5071
|
});
|
|
5048
|
-
}).catch((
|
|
5049
|
-
console.log(
|
|
5072
|
+
}).catch((f) => {
|
|
5073
|
+
console.log(f);
|
|
5050
5074
|
});
|
|
5051
|
-
}, Tr = () => {
|
|
5075
|
+
}, Tr = (u, f) => {
|
|
5076
|
+
const w = n(u);
|
|
5077
|
+
return w !== u ? w : f;
|
|
5078
|
+
}, Mr = () => {
|
|
5052
5079
|
i && (v = i, _ = !0), o && (C = o);
|
|
5053
|
-
}, Ae = (
|
|
5054
|
-
|
|
5055
|
-
}, ge = async (
|
|
5080
|
+
}, Ae = (u, f = !1) => {
|
|
5081
|
+
f ? r(7, E = u) : (Or(), r(6, H = u));
|
|
5082
|
+
}, ge = async (u, f, w, b = !1) => {
|
|
5056
5083
|
try {
|
|
5057
|
-
const
|
|
5058
|
-
if (!
|
|
5059
|
-
throw new Error(n(
|
|
5060
|
-
const I = await
|
|
5084
|
+
const M = await fetch(u, w);
|
|
5085
|
+
if (!M.ok)
|
|
5086
|
+
throw new Error(n(f));
|
|
5087
|
+
const I = await M.json();
|
|
5061
5088
|
return _ ? I : I.filter((X) => X.showOnRegister === !0);
|
|
5062
|
-
} catch (
|
|
5089
|
+
} catch (M) {
|
|
5063
5090
|
throw Ae(
|
|
5064
|
-
|
|
5091
|
+
M instanceof TypeError ? n(f) : M.message,
|
|
5065
5092
|
b
|
|
5066
|
-
),
|
|
5093
|
+
), M;
|
|
5067
5094
|
}
|
|
5068
|
-
},
|
|
5095
|
+
}, Nr = async () => {
|
|
5069
5096
|
try {
|
|
5070
|
-
let
|
|
5071
|
-
if (_ ? [
|
|
5072
|
-
let b = j.find((
|
|
5097
|
+
let u = [], f = [];
|
|
5098
|
+
if (_ ? [u, f] = await gt() : u = await gt(), r(10, fe = !1), W = [...u], r(8, z = Hr(W).sort((w, b) => w.categoryTagCode.localeCompare(b.categoryTagCode))), r(11, $ = Pr(z)), Te = { ...$ }, r(9, j = [...f]), W.forEach((w) => {
|
|
5099
|
+
let b = j.find((M) => M.tagCode === w.tagCode);
|
|
5073
5100
|
b || (b = {
|
|
5074
|
-
...
|
|
5101
|
+
...w,
|
|
5075
5102
|
status: R.denied.value
|
|
5076
|
-
}, j.push(b)), b.description =
|
|
5103
|
+
}, j.push(b)), b.description = w.description, b.orderNumber = w.orderNumber;
|
|
5077
5104
|
}), y === "true") {
|
|
5078
|
-
if (r(9, j = j.filter((
|
|
5105
|
+
if (r(9, j = j.filter((w) => w.status === R.expired.value)), j.length !== 0)
|
|
5079
5106
|
return;
|
|
5080
5107
|
Ae(n("wrongModalConfig"), !0);
|
|
5081
5108
|
}
|
|
5082
|
-
|
|
5083
|
-
} catch (
|
|
5109
|
+
Br();
|
|
5110
|
+
} catch (u) {
|
|
5084
5111
|
throw r(10, fe = !1), Ae(
|
|
5085
|
-
|
|
5112
|
+
u instanceof TypeError ? n("invalidUrl") : u.message,
|
|
5086
5113
|
!0
|
|
5087
|
-
),
|
|
5114
|
+
), u;
|
|
5088
5115
|
}
|
|
5089
5116
|
}, gt = async () => {
|
|
5090
|
-
const
|
|
5091
|
-
if (
|
|
5092
|
-
return await ge(
|
|
5093
|
-
const
|
|
5117
|
+
const u = new URL(`${a}/api/v1/gm/consents`);
|
|
5118
|
+
if (u.searchParams.append("Status", "Active"), !_)
|
|
5119
|
+
return await ge(u.href, "fetchConsentsError", { method: "GET" }, !0);
|
|
5120
|
+
const f = new URL(`${a}/api/v1/gm/user-consents/${C}`);
|
|
5094
5121
|
return await Promise.all([
|
|
5095
|
-
ge(
|
|
5096
|
-
ge(
|
|
5122
|
+
ge(u.href, "fetchConsentsError", { method: "GET" }, !0),
|
|
5123
|
+
ge(f.href, "fetchPlayerConsentsError", {
|
|
5097
5124
|
method: "GET",
|
|
5098
5125
|
headers: {
|
|
5099
5126
|
"X-SessionId": v,
|
|
@@ -5101,66 +5128,66 @@ function _o(e, t, r) {
|
|
|
5101
5128
|
}
|
|
5102
5129
|
})
|
|
5103
5130
|
]);
|
|
5104
|
-
},
|
|
5131
|
+
}, Ar = () => {
|
|
5105
5132
|
Ne = !1;
|
|
5106
|
-
const
|
|
5133
|
+
const u = new URL(`${a}/api/v2/gm/legislation/consents`), f = {
|
|
5107
5134
|
"Content-Type": "application/json",
|
|
5108
5135
|
Accept: "application/json"
|
|
5109
|
-
},
|
|
5110
|
-
fetch(
|
|
5136
|
+
}, w = { method: "GET", headers: f };
|
|
5137
|
+
fetch(u.href, w).then((b) => b.ok ? b.json() : (Ne = !0, b.json().then((M) => (console.error(M), He(M))))).then((b) => {
|
|
5111
5138
|
if (!Ne) {
|
|
5112
5139
|
if (W = b, localStorage.getItem("playerConsents")) {
|
|
5113
5140
|
try {
|
|
5114
5141
|
r(9, j = JSON.parse(localStorage.getItem("playerConsents")));
|
|
5115
|
-
} catch (
|
|
5116
|
-
return console.error(
|
|
5142
|
+
} catch (M) {
|
|
5143
|
+
return console.error(M), He(M);
|
|
5117
5144
|
}
|
|
5118
5145
|
return;
|
|
5119
5146
|
}
|
|
5120
|
-
return r(9, j = W.map((
|
|
5121
|
-
id:
|
|
5147
|
+
return r(9, j = W.map((M) => ({
|
|
5148
|
+
id: M.id,
|
|
5122
5149
|
status: R.denied.key,
|
|
5123
|
-
friendlyName:
|
|
5124
|
-
tagCode:
|
|
5150
|
+
friendlyName: M.friendlyName,
|
|
5151
|
+
tagCode: M.tagCode,
|
|
5125
5152
|
selected: null,
|
|
5126
|
-
mustAccept:
|
|
5153
|
+
mustAccept: M.mustAccept
|
|
5127
5154
|
}))), localStorage.setItem("playerConsents", JSON.stringify(j)), j;
|
|
5128
5155
|
}
|
|
5129
5156
|
}).catch((b) => (console.error(b), He(b))).finally(() => {
|
|
5130
5157
|
r(10, fe = !1);
|
|
5131
5158
|
});
|
|
5132
|
-
},
|
|
5133
|
-
const
|
|
5134
|
-
return
|
|
5135
|
-
|
|
5136
|
-
}), Array.from(
|
|
5137
|
-
},
|
|
5138
|
-
const
|
|
5139
|
-
if (
|
|
5140
|
-
const
|
|
5141
|
-
(b,
|
|
5159
|
+
}, Hr = (u) => {
|
|
5160
|
+
const f = /* @__PURE__ */ new Map();
|
|
5161
|
+
return u.forEach((w) => {
|
|
5162
|
+
f.has(w.category.categoryTagCode) || f.set(w.category.categoryTagCode, w.category);
|
|
5163
|
+
}), Array.from(f.values());
|
|
5164
|
+
}, Pr = (u) => {
|
|
5165
|
+
const f = localStorage.getItem("categoryToggle" + C);
|
|
5166
|
+
if (f === null) {
|
|
5167
|
+
const w = u.reduce(
|
|
5168
|
+
(b, M) => (b[M.categoryTagCode] = !1, b),
|
|
5142
5169
|
{}
|
|
5143
5170
|
);
|
|
5144
|
-
return localStorage.setItem("categoryToggle" + C, JSON.stringify(
|
|
5171
|
+
return localStorage.setItem("categoryToggle" + C, JSON.stringify(w)), w;
|
|
5145
5172
|
} else
|
|
5146
|
-
return JSON.parse(
|
|
5147
|
-
}, Pr = () => {
|
|
5148
|
-
j.forEach((h) => {
|
|
5149
|
-
r(12, Z[h.tagCode] = h.status === R.accepted.value, Z);
|
|
5150
|
-
}), r(13, U = { ...Z });
|
|
5173
|
+
return JSON.parse(f);
|
|
5151
5174
|
}, Br = () => {
|
|
5175
|
+
j.forEach((u) => {
|
|
5176
|
+
r(12, Z[u.tagCode] = u.status === R.accepted.value, Z);
|
|
5177
|
+
}), r(13, U = { ...Z });
|
|
5178
|
+
}, Or = () => {
|
|
5152
5179
|
r(13, U = { ...Z }), r(11, $ = { ...Te });
|
|
5153
|
-
},
|
|
5180
|
+
}, zr = async () => {
|
|
5154
5181
|
if (!we)
|
|
5155
5182
|
return;
|
|
5156
5183
|
we = !1;
|
|
5157
|
-
const
|
|
5184
|
+
const u = [], f = [];
|
|
5158
5185
|
if (Object.keys(U).forEach((b) => {
|
|
5159
|
-
const
|
|
5160
|
-
U[b] !== Z[b] && (
|
|
5186
|
+
const M = j.find((I) => I.tagCode === b);
|
|
5187
|
+
U[b] !== Z[b] && (M ? u.push({
|
|
5161
5188
|
tagCode: b,
|
|
5162
5189
|
status: U[b] ? R.accepted.value : R.denied.value
|
|
5163
|
-
}) :
|
|
5190
|
+
}) : f.push({
|
|
5164
5191
|
tagCode: b,
|
|
5165
5192
|
status: U[b] ? R.accepted.value : R.denied.value
|
|
5166
5193
|
}));
|
|
@@ -5168,38 +5195,38 @@ function _o(e, t, r) {
|
|
|
5168
5195
|
localStorage.setItem("categoryToggle" + C, JSON.stringify($)), Te = { ...$ }, window.postMessage(
|
|
5169
5196
|
{
|
|
5170
5197
|
type: "NewPlayerConsentData",
|
|
5171
|
-
data: JSON.stringify(
|
|
5198
|
+
data: JSON.stringify(f)
|
|
5172
5199
|
},
|
|
5173
5200
|
window.location.href
|
|
5174
5201
|
), we = !0;
|
|
5175
5202
|
return;
|
|
5176
5203
|
}
|
|
5177
|
-
const
|
|
5204
|
+
const w = new URL(`${a}/api/v1/gm/user-consents/${C}`);
|
|
5178
5205
|
try {
|
|
5179
5206
|
const b = await Promise.allSettled([
|
|
5180
|
-
|
|
5207
|
+
f.length > 0 && ge(w.href, "updateConsentsError", {
|
|
5181
5208
|
method: "POST",
|
|
5182
5209
|
headers: {
|
|
5183
5210
|
"X-SessionId": v,
|
|
5184
5211
|
"Content-Type": "application/json"
|
|
5185
5212
|
},
|
|
5186
|
-
body: JSON.stringify({ userConsents:
|
|
5213
|
+
body: JSON.stringify({ userConsents: f })
|
|
5187
5214
|
}),
|
|
5188
|
-
|
|
5215
|
+
u.length > 0 && ge(w.href, "updateConsentsError", {
|
|
5189
5216
|
method: "PATCH",
|
|
5190
5217
|
headers: {
|
|
5191
5218
|
"X-SessionId": v,
|
|
5192
5219
|
"Content-Type": "application/json"
|
|
5193
5220
|
},
|
|
5194
|
-
body: JSON.stringify({ userConsents:
|
|
5221
|
+
body: JSON.stringify({ userConsents: u })
|
|
5195
5222
|
})
|
|
5196
5223
|
]);
|
|
5197
|
-
b.forEach((
|
|
5198
|
-
if (
|
|
5199
|
-
const X = I <
|
|
5224
|
+
b.forEach((M, I) => {
|
|
5225
|
+
if (M.status === "rejected" || M.value.ok === !1) {
|
|
5226
|
+
const X = I < f.length ? f[I] : u[I - f.length];
|
|
5200
5227
|
r(13, U[X.tagCode] = Z[X.tagCode], U);
|
|
5201
5228
|
}
|
|
5202
|
-
}), b.every((
|
|
5229
|
+
}), b.every((M) => M.status === "fulfilled") && (localStorage.setItem("categoryToggle" + C, JSON.stringify($)), Te = { ...$ }, window.postMessage(
|
|
5203
5230
|
{
|
|
5204
5231
|
type: "PlayerConsentUpdated",
|
|
5205
5232
|
success: !0
|
|
@@ -5217,107 +5244,107 @@ function _o(e, t, r) {
|
|
|
5217
5244
|
} finally {
|
|
5218
5245
|
we = !0, r(14, pe = !1);
|
|
5219
5246
|
}
|
|
5220
|
-
},
|
|
5221
|
-
const
|
|
5247
|
+
}, Lr = (u) => {
|
|
5248
|
+
const f = new URL(`${a}/api/v2/gm/legislation/consents`), w = {
|
|
5222
5249
|
"Content-Type": "application/json",
|
|
5223
5250
|
Accept: "application/json"
|
|
5224
5251
|
}, b = {
|
|
5225
5252
|
playerConsents: j,
|
|
5226
|
-
registrationId:
|
|
5227
|
-
},
|
|
5253
|
+
registrationId: u
|
|
5254
|
+
}, M = {
|
|
5228
5255
|
method: "POST",
|
|
5229
5256
|
body: JSON.stringify(b),
|
|
5230
|
-
headers:
|
|
5257
|
+
headers: w
|
|
5231
5258
|
};
|
|
5232
|
-
fetch(
|
|
5259
|
+
fetch(f.href, M).then((I) => {
|
|
5233
5260
|
I.ok || (Ne = !0);
|
|
5234
5261
|
}).catch((I) => (console.error(I), He(I))).finally(() => {
|
|
5235
5262
|
r(10, fe = !1);
|
|
5236
5263
|
});
|
|
5237
|
-
}, _t = (
|
|
5238
|
-
j.filter((
|
|
5239
|
-
|
|
5264
|
+
}, _t = (u) => {
|
|
5265
|
+
j.filter((f) => f.category.categoryTagCode === u).forEach((f) => {
|
|
5266
|
+
f.status = f.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, U[f.tagCode] = $[u] || !1, U);
|
|
5240
5267
|
}), r(14, pe = yt());
|
|
5241
|
-
}, Ve = (
|
|
5242
|
-
const b = j.find((X) => X.id ===
|
|
5268
|
+
}, Ve = (u, f, w) => {
|
|
5269
|
+
const b = j.find((X) => X.id === w), M = f ? "value" : "key";
|
|
5243
5270
|
let I;
|
|
5244
|
-
if (!
|
|
5271
|
+
if (!f && b.mustAccept) {
|
|
5245
5272
|
const X = Array.from(Me.children);
|
|
5246
5273
|
for (const _e of X)
|
|
5247
|
-
if (I = Array.from(_e.children).find((
|
|
5274
|
+
if (I = Array.from(_e.children).find((qr) => qr.getAttribute("id") === `checkBoxError__${b.tagCode}`), I)
|
|
5248
5275
|
break;
|
|
5249
5276
|
}
|
|
5250
|
-
if (b.status === R.accepted[
|
|
5277
|
+
if (b.status === R.accepted[M] ? (b.status = R.denied[M], I && (I.innerHTML = n("requiredError"))) : (b.status = R.accepted[M], I && (I.innerHTML = "")), f) {
|
|
5251
5278
|
r(13, U[b.tagCode] = !U[b.tagCode], U);
|
|
5252
|
-
const X = j.filter((_e) => _e.category.categoryTagCode ===
|
|
5253
|
-
r(11, $[
|
|
5279
|
+
const X = j.filter((_e) => _e.category.categoryTagCode === f.categoryTagCode).every((_e) => _e.status !== R.denied.value);
|
|
5280
|
+
r(11, $[f.categoryTagCode] = X, $);
|
|
5254
5281
|
}
|
|
5255
|
-
|
|
5256
|
-
},
|
|
5257
|
-
let
|
|
5282
|
+
jr();
|
|
5283
|
+
}, jr = ((u, f) => {
|
|
5284
|
+
let w;
|
|
5258
5285
|
return function(...b) {
|
|
5259
|
-
const
|
|
5260
|
-
clearTimeout(
|
|
5286
|
+
const M = this;
|
|
5287
|
+
clearTimeout(w), w = setTimeout(
|
|
5261
5288
|
() => {
|
|
5262
|
-
|
|
5289
|
+
u.apply(M, b);
|
|
5263
5290
|
},
|
|
5264
|
-
|
|
5291
|
+
f
|
|
5265
5292
|
);
|
|
5266
5293
|
};
|
|
5267
|
-
})(() =>
|
|
5294
|
+
})(() => Ir(), 500), Ir = () => {
|
|
5268
5295
|
r(14, pe = yt()), i || (window.postMessage({ type: "isConsentsValid", isValid: pe }), localStorage.setItem("playerConsents", JSON.stringify(j)));
|
|
5269
|
-
}, yt = () => j.filter((
|
|
5296
|
+
}, yt = () => j.filter((f) => j.some((w) => f.tagCode === w.tagCode && w.mustAccept && (f.status === R.denied.key || f.status === R.denied.value))).length === 0, He = (u) => {
|
|
5270
5297
|
window.postMessage(
|
|
5271
5298
|
{
|
|
5272
5299
|
type: "WidgetNotification",
|
|
5273
|
-
data: { type: "error", message:
|
|
5300
|
+
data: { type: "error", message: u }
|
|
5274
5301
|
},
|
|
5275
5302
|
window.location.href
|
|
5276
5303
|
);
|
|
5277
|
-
},
|
|
5278
|
-
|
|
5304
|
+
}, Rr = (u) => {
|
|
5305
|
+
u.data && u.data.type !== "setUpPlayerConsents" || Lr(u.data.registerid);
|
|
5279
5306
|
};
|
|
5280
|
-
|
|
5307
|
+
nn(() => {
|
|
5281
5308
|
setTimeout(
|
|
5282
5309
|
() => {
|
|
5283
|
-
r(
|
|
5310
|
+
r(26, S = !0);
|
|
5284
5311
|
},
|
|
5285
5312
|
50
|
|
5286
5313
|
);
|
|
5287
|
-
const
|
|
5288
|
-
return window.addEventListener("message",
|
|
5289
|
-
window.removeEventListener("message",
|
|
5314
|
+
const u = (f) => Rr(f);
|
|
5315
|
+
return window.addEventListener("message", u), () => {
|
|
5316
|
+
window.removeEventListener("message", u);
|
|
5290
5317
|
};
|
|
5291
5318
|
});
|
|
5292
|
-
function
|
|
5293
|
-
$[
|
|
5319
|
+
function Ur(u) {
|
|
5320
|
+
$[u.categoryTagCode] = this.checked, r(11, $);
|
|
5294
5321
|
}
|
|
5295
|
-
const
|
|
5296
|
-
function
|
|
5297
|
-
Le[
|
|
5298
|
-
Me =
|
|
5322
|
+
const Dr = (u) => _t(u.categoryTagCode), Gr = (u, f) => f.category.categoryTagCode === u.categoryTagCode, Fr = (u, f) => Ve(f, u.category, u.id), $r = (u, f) => Ve(f, null, u.id);
|
|
5323
|
+
function Vr(u) {
|
|
5324
|
+
Le[u ? "unshift" : "push"](() => {
|
|
5325
|
+
Me = u, r(15, Me);
|
|
5299
5326
|
});
|
|
5300
5327
|
}
|
|
5301
|
-
function
|
|
5302
|
-
Le[
|
|
5303
|
-
g =
|
|
5328
|
+
function Xr(u) {
|
|
5329
|
+
Le[u ? "unshift" : "push"](() => {
|
|
5330
|
+
g = u, r(5, g);
|
|
5304
5331
|
});
|
|
5305
5332
|
}
|
|
5306
|
-
return e.$$set = (
|
|
5307
|
-
"session" in
|
|
5333
|
+
return e.$$set = (u) => {
|
|
5334
|
+
"session" in u && r(0, i = u.session), "userid" in u && r(21, o = u.userid), "endpoint" in u && r(22, a = u.endpoint), "clientstyling" in u && r(1, s = u.clientstyling), "clientstylingurl" in u && r(2, h = u.clientstylingurl), "mbsource" in u && r(3, l = u.mbsource), "lang" in u && r(23, c = u.lang), "displayconsentdescription" in u && r(4, d = u.displayconsentdescription), "translationurl" in u && r(24, m = u.translationurl), "modalconsents" in u && r(25, y = u.modalconsents);
|
|
5308
5335
|
}, e.$$.update = () => {
|
|
5309
5336
|
e.$$.dirty[0] & /*isMounted, session*/
|
|
5310
|
-
|
|
5311
|
-
1 && (i ||
|
|
5312
|
-
34 && s && g &&
|
|
5313
|
-
36 &&
|
|
5314
|
-
40 && g &&
|
|
5315
|
-
|
|
5316
|
-
|
|
5337
|
+
67108865 && S && i && (Mr(), Nr()), e.$$.dirty[0] & /*session*/
|
|
5338
|
+
1 && (i || Ar()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5339
|
+
34 && s && g && pn(g, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5340
|
+
36 && h && g && gn(g, h), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
5341
|
+
40 && g && _n(g, `${l}.Style`, p), e.$$.dirty[0] & /*lang*/
|
|
5342
|
+
8388608 && c && xr(), e.$$.dirty[0] & /*translationurl*/
|
|
5343
|
+
16777216 && m && wr();
|
|
5317
5344
|
}, [
|
|
5318
5345
|
i,
|
|
5319
5346
|
s,
|
|
5320
|
-
|
|
5347
|
+
h,
|
|
5321
5348
|
l,
|
|
5322
5349
|
d,
|
|
5323
5350
|
g,
|
|
@@ -5332,7 +5359,8 @@ function _o(e, t, r) {
|
|
|
5332
5359
|
pe,
|
|
5333
5360
|
Me,
|
|
5334
5361
|
n,
|
|
5335
|
-
|
|
5362
|
+
Tr,
|
|
5363
|
+
zr,
|
|
5336
5364
|
_t,
|
|
5337
5365
|
Ve,
|
|
5338
5366
|
o,
|
|
@@ -5341,36 +5369,36 @@ function _o(e, t, r) {
|
|
|
5341
5369
|
m,
|
|
5342
5370
|
y,
|
|
5343
5371
|
S,
|
|
5344
|
-
Rr,
|
|
5345
5372
|
Ur,
|
|
5346
5373
|
Dr,
|
|
5347
5374
|
Gr,
|
|
5348
5375
|
Fr,
|
|
5349
5376
|
$r,
|
|
5350
|
-
Vr
|
|
5377
|
+
Vr,
|
|
5378
|
+
Xr
|
|
5351
5379
|
];
|
|
5352
5380
|
}
|
|
5353
|
-
class
|
|
5381
|
+
class vo extends er {
|
|
5354
5382
|
constructor(t) {
|
|
5355
5383
|
super(), Qt(
|
|
5356
5384
|
this,
|
|
5357
5385
|
t,
|
|
5386
|
+
yo,
|
|
5358
5387
|
_o,
|
|
5359
|
-
go,
|
|
5360
5388
|
dt,
|
|
5361
5389
|
{
|
|
5362
5390
|
session: 0,
|
|
5363
|
-
userid:
|
|
5364
|
-
endpoint:
|
|
5391
|
+
userid: 21,
|
|
5392
|
+
endpoint: 22,
|
|
5365
5393
|
clientstyling: 1,
|
|
5366
5394
|
clientstylingurl: 2,
|
|
5367
5395
|
mbsource: 3,
|
|
5368
|
-
lang:
|
|
5396
|
+
lang: 23,
|
|
5369
5397
|
displayconsentdescription: 4,
|
|
5370
|
-
translationurl:
|
|
5371
|
-
modalconsents:
|
|
5398
|
+
translationurl: 24,
|
|
5399
|
+
modalconsents: 25
|
|
5372
5400
|
},
|
|
5373
|
-
|
|
5401
|
+
ho,
|
|
5374
5402
|
[-1, -1, -1]
|
|
5375
5403
|
);
|
|
5376
5404
|
}
|
|
@@ -5381,13 +5409,13 @@ class yo extends er {
|
|
|
5381
5409
|
this.$$set({ session: t }), V();
|
|
5382
5410
|
}
|
|
5383
5411
|
get userid() {
|
|
5384
|
-
return this.$$.ctx[
|
|
5412
|
+
return this.$$.ctx[21];
|
|
5385
5413
|
}
|
|
5386
5414
|
set userid(t) {
|
|
5387
5415
|
this.$$set({ userid: t }), V();
|
|
5388
5416
|
}
|
|
5389
5417
|
get endpoint() {
|
|
5390
|
-
return this.$$.ctx[
|
|
5418
|
+
return this.$$.ctx[22];
|
|
5391
5419
|
}
|
|
5392
5420
|
set endpoint(t) {
|
|
5393
5421
|
this.$$set({ endpoint: t }), V();
|
|
@@ -5411,7 +5439,7 @@ class yo extends er {
|
|
|
5411
5439
|
this.$$set({ mbsource: t }), V();
|
|
5412
5440
|
}
|
|
5413
5441
|
get lang() {
|
|
5414
|
-
return this.$$.ctx[
|
|
5442
|
+
return this.$$.ctx[23];
|
|
5415
5443
|
}
|
|
5416
5444
|
set lang(t) {
|
|
5417
5445
|
this.$$set({ lang: t }), V();
|
|
@@ -5423,34 +5451,34 @@ class yo extends er {
|
|
|
5423
5451
|
this.$$set({ displayconsentdescription: t }), V();
|
|
5424
5452
|
}
|
|
5425
5453
|
get translationurl() {
|
|
5426
|
-
return this.$$.ctx[
|
|
5454
|
+
return this.$$.ctx[24];
|
|
5427
5455
|
}
|
|
5428
5456
|
set translationurl(t) {
|
|
5429
5457
|
this.$$set({ translationurl: t }), V();
|
|
5430
5458
|
}
|
|
5431
5459
|
get modalconsents() {
|
|
5432
|
-
return this.$$.ctx[
|
|
5460
|
+
return this.$$.ctx[25];
|
|
5433
5461
|
}
|
|
5434
5462
|
set modalconsents(t) {
|
|
5435
5463
|
this.$$set({ modalconsents: t }), V();
|
|
5436
5464
|
}
|
|
5437
5465
|
}
|
|
5438
|
-
Kt(
|
|
5466
|
+
Kt(vo, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
|
|
5439
5467
|
export {
|
|
5440
|
-
|
|
5468
|
+
vo as P,
|
|
5441
5469
|
er as S,
|
|
5442
|
-
|
|
5470
|
+
Jr as a,
|
|
5443
5471
|
L as b,
|
|
5444
5472
|
Kt as c,
|
|
5445
5473
|
O as d,
|
|
5446
|
-
|
|
5474
|
+
T as e,
|
|
5447
5475
|
V as f,
|
|
5448
5476
|
Le as g,
|
|
5449
|
-
|
|
5477
|
+
pn as h,
|
|
5450
5478
|
Qt as i,
|
|
5451
|
-
|
|
5452
|
-
|
|
5479
|
+
gn as j,
|
|
5480
|
+
_n as k,
|
|
5453
5481
|
F as n,
|
|
5454
|
-
|
|
5482
|
+
nn as o,
|
|
5455
5483
|
dt as s
|
|
5456
5484
|
};
|