@everymatrix/player-consents 1.60.2 → 1.61.0
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/{PlayerConsents-BWMye2VK.js → PlayerConsents-B3_LsAQT.js} +565 -565
- package/components/{PlayerConsents-BKe-jM8Z.js → PlayerConsents-C6gW9Qxa.js} +581 -581
- package/components/{PlayerConsents-CHapKEQ3.cjs → PlayerConsents-DENip2_x.cjs} +3 -3
- 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
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as
|
|
1
|
+
import { n as X, s as Je, a as Mr, r as Ht, i as Nr, c as Pt, S as Bt, b as zt, d as j, e as L, f as w, g as rt, h as k, j as V, k as Ar, l as A, m as Hr, o as Pr, p as nt, q as J, t as pe, u as ge, v as K, w as Qe, x as he, y as q, z as Br, H as Ot, A as zr, B as Or, C as Ir, D as jr } from "./GeneralAnimationLoading-ZTNd0X9B.js";
|
|
2
2
|
const Y = [];
|
|
3
3
|
function Lr(e, t) {
|
|
4
4
|
return {
|
|
5
5
|
subscribe: Me(e, t).subscribe
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
function Me(e, t =
|
|
8
|
+
function Me(e, t = X) {
|
|
9
9
|
let r;
|
|
10
10
|
const n = /* @__PURE__ */ new Set();
|
|
11
11
|
function i(s) {
|
|
@@ -23,9 +23,9 @@ function Me(e, t = q) {
|
|
|
23
23
|
function o(s) {
|
|
24
24
|
i(s(e));
|
|
25
25
|
}
|
|
26
|
-
function a(s, h =
|
|
26
|
+
function a(s, h = X) {
|
|
27
27
|
const u = [s, h];
|
|
28
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
28
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || X), s(e), () => {
|
|
29
29
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
30
30
|
};
|
|
31
31
|
}
|
|
@@ -39,26 +39,26 @@ function ne(e, t, r) {
|
|
|
39
39
|
return Lr(r, (a, s) => {
|
|
40
40
|
let h = !1;
|
|
41
41
|
const u = [];
|
|
42
|
-
let l = 0, d =
|
|
43
|
-
const
|
|
42
|
+
let l = 0, d = X;
|
|
43
|
+
const m = () => {
|
|
44
44
|
if (l)
|
|
45
45
|
return;
|
|
46
46
|
d();
|
|
47
47
|
const f = t(n ? u[0] : u, a, s);
|
|
48
|
-
o ? a(f) : d =
|
|
49
|
-
},
|
|
50
|
-
(f,
|
|
48
|
+
o ? a(f) : d = Nr(f) ? f : X;
|
|
49
|
+
}, b = i.map(
|
|
50
|
+
(f, p) => Mr(
|
|
51
51
|
f,
|
|
52
52
|
(C) => {
|
|
53
|
-
u[
|
|
53
|
+
u[p] = C, l &= ~(1 << p), h && m();
|
|
54
54
|
},
|
|
55
55
|
() => {
|
|
56
|
-
l |= 1 <<
|
|
56
|
+
l |= 1 << p;
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
59
|
);
|
|
60
|
-
return h = !0,
|
|
61
|
-
|
|
60
|
+
return h = !0, m(), function() {
|
|
61
|
+
Ht(b), d(), h = !1;
|
|
62
62
|
};
|
|
63
63
|
});
|
|
64
64
|
}
|
|
@@ -66,24 +66,24 @@ function Rr(e) {
|
|
|
66
66
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
67
67
|
}
|
|
68
68
|
var Ur = function(t) {
|
|
69
|
-
return Dr(t) && !
|
|
69
|
+
return Dr(t) && !qr(t);
|
|
70
70
|
};
|
|
71
71
|
function Dr(e) {
|
|
72
72
|
return !!e && typeof e == "object";
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function qr(e) {
|
|
75
75
|
var t = Object.prototype.toString.call(e);
|
|
76
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
76
|
+
return t === "[object RegExp]" || t === "[object Date]" || Vr(e);
|
|
77
77
|
}
|
|
78
|
-
var
|
|
79
|
-
function
|
|
80
|
-
return e.$$typeof ===
|
|
78
|
+
var Gr = typeof Symbol == "function" && Symbol.for, Fr = Gr ? Symbol.for("react.element") : 60103;
|
|
79
|
+
function Vr(e) {
|
|
80
|
+
return e.$$typeof === Fr;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Xr(e) {
|
|
83
83
|
return Array.isArray(e) ? [] : {};
|
|
84
84
|
}
|
|
85
85
|
function de(e, t) {
|
|
86
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? $(
|
|
86
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? $(Xr(e), e, t) : e;
|
|
87
87
|
}
|
|
88
88
|
function Wr(e, t, r) {
|
|
89
89
|
return e.concat(t).map(function(n) {
|
|
@@ -158,7 +158,7 @@ var Ue = function(e, t) {
|
|
|
158
158
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
159
159
|
}, Ue(e, t);
|
|
160
160
|
};
|
|
161
|
-
function
|
|
161
|
+
function Ne(e, t) {
|
|
162
162
|
if (typeof t != "function" && t !== null)
|
|
163
163
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
164
164
|
Ue(e, t);
|
|
@@ -167,15 +167,15 @@ function we(e, t) {
|
|
|
167
167
|
}
|
|
168
168
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
169
169
|
}
|
|
170
|
-
var
|
|
171
|
-
return
|
|
170
|
+
var H = function() {
|
|
171
|
+
return H = Object.assign || function(t) {
|
|
172
172
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
173
173
|
r = arguments[n];
|
|
174
174
|
for (var o in r)
|
|
175
175
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
176
176
|
}
|
|
177
177
|
return t;
|
|
178
|
-
},
|
|
178
|
+
}, H.apply(this, arguments);
|
|
179
179
|
};
|
|
180
180
|
function tn(e, t) {
|
|
181
181
|
var r = {};
|
|
@@ -186,7 +186,7 @@ function tn(e, t) {
|
|
|
186
186
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
187
187
|
return r;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function ze(e, t, r) {
|
|
190
190
|
if (arguments.length === 2)
|
|
191
191
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
192
192
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
@@ -244,49 +244,49 @@ var sn = function() {
|
|
|
244
244
|
(function(e) {
|
|
245
245
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
246
246
|
})(M || (M = {}));
|
|
247
|
-
var
|
|
247
|
+
var B;
|
|
248
248
|
(function(e) {
|
|
249
249
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
250
|
-
})(
|
|
250
|
+
})(B || (B = {}));
|
|
251
251
|
var ee;
|
|
252
252
|
(function(e) {
|
|
253
253
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
254
254
|
})(ee || (ee = {}));
|
|
255
255
|
function ot(e) {
|
|
256
|
-
return e.type ===
|
|
256
|
+
return e.type === B.literal;
|
|
257
257
|
}
|
|
258
258
|
function un(e) {
|
|
259
|
-
return e.type ===
|
|
259
|
+
return e.type === B.argument;
|
|
260
260
|
}
|
|
261
261
|
function Rt(e) {
|
|
262
|
-
return e.type ===
|
|
262
|
+
return e.type === B.number;
|
|
263
263
|
}
|
|
264
264
|
function Ut(e) {
|
|
265
|
-
return e.type ===
|
|
265
|
+
return e.type === B.date;
|
|
266
266
|
}
|
|
267
267
|
function Dt(e) {
|
|
268
|
-
return e.type ===
|
|
268
|
+
return e.type === B.time;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
return e.type ===
|
|
270
|
+
function qt(e) {
|
|
271
|
+
return e.type === B.select;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
return e.type ===
|
|
273
|
+
function Gt(e) {
|
|
274
|
+
return e.type === B.plural;
|
|
275
275
|
}
|
|
276
276
|
function hn(e) {
|
|
277
|
-
return e.type ===
|
|
277
|
+
return e.type === B.pound;
|
|
278
278
|
}
|
|
279
|
-
function
|
|
280
|
-
return e.type ===
|
|
279
|
+
function Ft(e) {
|
|
280
|
+
return e.type === B.tag;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function Vt(e) {
|
|
283
283
|
return !!(e && typeof e == "object" && e.type === ee.number);
|
|
284
284
|
}
|
|
285
285
|
function De(e) {
|
|
286
286
|
return !!(e && typeof e == "object" && e.type === ee.dateTime);
|
|
287
287
|
}
|
|
288
|
-
var
|
|
289
|
-
function
|
|
288
|
+
var Xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, dn = /(?:[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;
|
|
289
|
+
function mn(e) {
|
|
290
290
|
var t = {};
|
|
291
291
|
return e.replace(dn, function(r) {
|
|
292
292
|
var n = r.length;
|
|
@@ -377,12 +377,12 @@ function gn(e) {
|
|
|
377
377
|
return "";
|
|
378
378
|
}), t;
|
|
379
379
|
}
|
|
380
|
-
var
|
|
381
|
-
function
|
|
380
|
+
var pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
381
|
+
function gn(e) {
|
|
382
382
|
if (e.length === 0)
|
|
383
383
|
throw new Error("Number skeleton cannot be empty");
|
|
384
|
-
for (var t = e.split(
|
|
385
|
-
return
|
|
384
|
+
for (var t = e.split(pn).filter(function(m) {
|
|
385
|
+
return m.length > 0;
|
|
386
386
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
387
387
|
var o = i[n], a = o.split("/");
|
|
388
388
|
if (a.length === 0)
|
|
@@ -446,7 +446,7 @@ function Jt(e) {
|
|
|
446
446
|
};
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function vn(e) {
|
|
450
450
|
var t;
|
|
451
451
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
452
452
|
notation: "engineering"
|
|
@@ -464,7 +464,7 @@ function lt(e) {
|
|
|
464
464
|
var t = {}, r = Jt(e);
|
|
465
465
|
return r || t;
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function bn(e) {
|
|
468
468
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
469
469
|
var i = n[r];
|
|
470
470
|
switch (i.stem) {
|
|
@@ -499,13 +499,13 @@ function vn(e) {
|
|
|
499
499
|
t.notation = "compact", t.compactDisplay = "long";
|
|
500
500
|
continue;
|
|
501
501
|
case "scientific":
|
|
502
|
-
t =
|
|
503
|
-
return
|
|
502
|
+
t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
503
|
+
return H(H({}, h), lt(u));
|
|
504
504
|
}, {}));
|
|
505
505
|
continue;
|
|
506
506
|
case "engineering":
|
|
507
|
-
t =
|
|
508
|
-
return
|
|
507
|
+
t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
508
|
+
return H(H({}, h), lt(u));
|
|
509
509
|
}, {}));
|
|
510
510
|
continue;
|
|
511
511
|
case "notation-simple":
|
|
@@ -550,13 +550,13 @@ function vn(e) {
|
|
|
550
550
|
case "integer-width":
|
|
551
551
|
if (i.options.length > 1)
|
|
552
552
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
553
|
-
i.options[0].replace(_n, function(h, u, l, d,
|
|
553
|
+
i.options[0].replace(_n, function(h, u, l, d, m, b) {
|
|
554
554
|
if (u)
|
|
555
555
|
t.minimumIntegerDigits = l.length;
|
|
556
556
|
else {
|
|
557
|
-
if (d &&
|
|
557
|
+
if (d && m)
|
|
558
558
|
throw new Error("We currently do not support maximum integer digits");
|
|
559
|
-
if (
|
|
559
|
+
if (b)
|
|
560
560
|
throw new Error("We currently do not support exact integer digits");
|
|
561
561
|
}
|
|
562
562
|
return "";
|
|
@@ -570,21 +570,21 @@ function vn(e) {
|
|
|
570
570
|
if (at.test(i.stem)) {
|
|
571
571
|
if (i.options.length > 1)
|
|
572
572
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
573
|
-
i.stem.replace(at, function(h, u, l, d,
|
|
574
|
-
return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length :
|
|
573
|
+
i.stem.replace(at, function(h, u, l, d, m, b) {
|
|
574
|
+
return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && b ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
575
575
|
});
|
|
576
576
|
var o = i.options[0];
|
|
577
|
-
o === "w" ? t =
|
|
577
|
+
o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t), st(o)));
|
|
578
578
|
continue;
|
|
579
579
|
}
|
|
580
580
|
if (Wt.test(i.stem)) {
|
|
581
|
-
t =
|
|
581
|
+
t = H(H({}, t), st(i.stem));
|
|
582
582
|
continue;
|
|
583
583
|
}
|
|
584
584
|
var a = Jt(i.stem);
|
|
585
|
-
a && (t =
|
|
586
|
-
var s =
|
|
587
|
-
s && (t =
|
|
585
|
+
a && (t = H(H({}, t), a));
|
|
586
|
+
var s = vn(i.stem);
|
|
587
|
+
s && (t = H(H({}, t), s));
|
|
588
588
|
}
|
|
589
589
|
return t;
|
|
590
590
|
}
|
|
@@ -2009,7 +2009,7 @@ function yn(e, t) {
|
|
|
2009
2009
|
if (i === "j") {
|
|
2010
2010
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2011
2011
|
o++, n++;
|
|
2012
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2012
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = En(t);
|
|
2013
2013
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2014
2014
|
r += h;
|
|
2015
2015
|
for (; a-- > 0; )
|
|
@@ -2019,7 +2019,7 @@ function yn(e, t) {
|
|
|
2019
2019
|
}
|
|
2020
2020
|
return r;
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function En(e) {
|
|
2023
2023
|
var t = e.hourCycle;
|
|
2024
2024
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2025
2025
|
e.hourCycles && // @ts-ignore
|
|
@@ -2041,20 +2041,20 @@ function kn(e) {
|
|
|
2041
2041
|
var i = Ce[n || ""] || Ce[r || ""] || Ce["".concat(r, "-001")] || Ce["001"];
|
|
2042
2042
|
return i[0];
|
|
2043
2043
|
}
|
|
2044
|
-
var je,
|
|
2045
|
-
function
|
|
2044
|
+
var je, kn = new RegExp("^".concat(Xt.source, "*")), Cn = new RegExp("".concat(Xt.source, "*$"));
|
|
2045
|
+
function N(e, t) {
|
|
2046
2046
|
return { start: e, end: t };
|
|
2047
2047
|
}
|
|
2048
|
-
var
|
|
2048
|
+
var wn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Sn = !!String.fromCodePoint, xn = !!Object.fromEntries, Tn = !!String.prototype.codePointAt, Mn = !!String.prototype.trimStart, Nn = !!String.prototype.trimEnd, An = !!Number.isSafeInteger, Hn = An ? Number.isSafeInteger : function(e) {
|
|
2049
2049
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2050
|
-
},
|
|
2050
|
+
}, qe = !0;
|
|
2051
2051
|
try {
|
|
2052
|
-
var
|
|
2053
|
-
|
|
2052
|
+
var Pn = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2053
|
+
qe = ((je = Pn.exec("a")) === null || je === void 0 ? void 0 : je[0]) === "a";
|
|
2054
2054
|
} catch {
|
|
2055
|
-
|
|
2055
|
+
qe = !1;
|
|
2056
2056
|
}
|
|
2057
|
-
var ct =
|
|
2057
|
+
var ct = wn ? (
|
|
2058
2058
|
// Native
|
|
2059
2059
|
function(t, r, n) {
|
|
2060
2060
|
return t.startsWith(r, n);
|
|
@@ -2064,7 +2064,7 @@ var ct = Sn ? (
|
|
|
2064
2064
|
function(t, r, n) {
|
|
2065
2065
|
return t.slice(n, n + r.length) === r;
|
|
2066
2066
|
}
|
|
2067
|
-
),
|
|
2067
|
+
), Ge = Sn ? String.fromCodePoint : (
|
|
2068
2068
|
// IE11
|
|
2069
2069
|
function() {
|
|
2070
2070
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2078,7 +2078,7 @@ var ct = Sn ? (
|
|
|
2078
2078
|
}
|
|
2079
2079
|
), ut = (
|
|
2080
2080
|
// native
|
|
2081
|
-
|
|
2081
|
+
xn ? Object.fromEntries : (
|
|
2082
2082
|
// Ponyfill
|
|
2083
2083
|
function(t) {
|
|
2084
2084
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2102,7 +2102,7 @@ var ct = Sn ? (
|
|
|
2102
2102
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
|
-
),
|
|
2105
|
+
), Bn = Mn ? (
|
|
2106
2106
|
// Native
|
|
2107
2107
|
function(t) {
|
|
2108
2108
|
return t.trimStart();
|
|
@@ -2110,9 +2110,9 @@ var ct = Sn ? (
|
|
|
2110
2110
|
) : (
|
|
2111
2111
|
// Ponyfill
|
|
2112
2112
|
function(t) {
|
|
2113
|
-
return t.replace(
|
|
2113
|
+
return t.replace(kn, "");
|
|
2114
2114
|
}
|
|
2115
|
-
),
|
|
2115
|
+
), zn = Nn ? (
|
|
2116
2116
|
// Native
|
|
2117
2117
|
function(t) {
|
|
2118
2118
|
return t.trimEnd();
|
|
@@ -2126,24 +2126,24 @@ var ct = Sn ? (
|
|
|
2126
2126
|
function Yt(e, t) {
|
|
2127
2127
|
return new RegExp(e, t);
|
|
2128
2128
|
}
|
|
2129
|
-
var
|
|
2130
|
-
if (
|
|
2129
|
+
var Fe;
|
|
2130
|
+
if (qe) {
|
|
2131
2131
|
var ht = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2132
|
-
|
|
2132
|
+
Fe = function(t, r) {
|
|
2133
2133
|
var n;
|
|
2134
2134
|
ht.lastIndex = r;
|
|
2135
2135
|
var i = ht.exec(t);
|
|
2136
2136
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2137
2137
|
};
|
|
2138
2138
|
} else
|
|
2139
|
-
|
|
2139
|
+
Fe = function(t, r) {
|
|
2140
2140
|
for (var n = []; ; ) {
|
|
2141
2141
|
var i = Qt(t, r);
|
|
2142
2142
|
if (i === void 0 || Kt(i) || Ln(i))
|
|
2143
2143
|
break;
|
|
2144
2144
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2145
2145
|
}
|
|
2146
|
-
return
|
|
2146
|
+
return Ge.apply(void 0, n);
|
|
2147
2147
|
};
|
|
2148
2148
|
var On = (
|
|
2149
2149
|
/** @class */
|
|
@@ -2169,14 +2169,14 @@ var On = (
|
|
|
2169
2169
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2170
2170
|
var s = this.clonePosition();
|
|
2171
2171
|
this.bump(), i.push({
|
|
2172
|
-
type:
|
|
2173
|
-
location:
|
|
2172
|
+
type: B.pound,
|
|
2173
|
+
location: N(s, this.clonePosition())
|
|
2174
2174
|
});
|
|
2175
2175
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2176
2176
|
if (n)
|
|
2177
2177
|
break;
|
|
2178
|
-
return this.error(M.UNMATCHED_CLOSING_TAG,
|
|
2179
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2178
|
+
return this.error(M.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
|
|
2179
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
2180
2180
|
var a = this.parseTag(t, r);
|
|
2181
2181
|
if (a.err)
|
|
2182
2182
|
return a;
|
|
@@ -2197,9 +2197,9 @@ var On = (
|
|
|
2197
2197
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2198
2198
|
return {
|
|
2199
2199
|
val: {
|
|
2200
|
-
type:
|
|
2200
|
+
type: B.literal,
|
|
2201
2201
|
value: "<".concat(i, "/>"),
|
|
2202
|
-
location:
|
|
2202
|
+
location: N(n, this.clonePosition())
|
|
2203
2203
|
},
|
|
2204
2204
|
err: null
|
|
2205
2205
|
};
|
|
@@ -2209,22 +2209,22 @@ var On = (
|
|
|
2209
2209
|
return o;
|
|
2210
2210
|
var a = o.val, s = this.clonePosition();
|
|
2211
2211
|
if (this.bumpIf("</")) {
|
|
2212
|
-
if (this.isEOF() || !
|
|
2213
|
-
return this.error(M.INVALID_TAG,
|
|
2212
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
2213
|
+
return this.error(M.INVALID_TAG, N(s, this.clonePosition()));
|
|
2214
2214
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2215
|
-
return i !== u ? this.error(M.UNMATCHED_CLOSING_TAG,
|
|
2215
|
+
return i !== u ? this.error(M.UNMATCHED_CLOSING_TAG, N(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2216
2216
|
val: {
|
|
2217
|
-
type:
|
|
2217
|
+
type: B.tag,
|
|
2218
2218
|
value: i,
|
|
2219
2219
|
children: a,
|
|
2220
|
-
location:
|
|
2220
|
+
location: N(n, this.clonePosition())
|
|
2221
2221
|
},
|
|
2222
2222
|
err: null
|
|
2223
|
-
} : this.error(M.INVALID_TAG,
|
|
2223
|
+
} : this.error(M.INVALID_TAG, N(s, this.clonePosition())));
|
|
2224
2224
|
} else
|
|
2225
|
-
return this.error(M.UNCLOSED_TAG,
|
|
2225
|
+
return this.error(M.UNCLOSED_TAG, N(n, this.clonePosition()));
|
|
2226
2226
|
} else
|
|
2227
|
-
return this.error(M.INVALID_TAG,
|
|
2227
|
+
return this.error(M.INVALID_TAG, N(n, this.clonePosition()));
|
|
2228
2228
|
}, e.prototype.parseTagName = function() {
|
|
2229
2229
|
var t = this.offset();
|
|
2230
2230
|
for (this.bump(); !this.isEOF() && jn(this.char()); )
|
|
@@ -2249,9 +2249,9 @@ var On = (
|
|
|
2249
2249
|
}
|
|
2250
2250
|
break;
|
|
2251
2251
|
}
|
|
2252
|
-
var h =
|
|
2252
|
+
var h = N(n, this.clonePosition());
|
|
2253
2253
|
return {
|
|
2254
|
-
val: { type:
|
|
2254
|
+
val: { type: B.literal, value: i, location: h },
|
|
2255
2255
|
err: null
|
|
2256
2256
|
};
|
|
2257
2257
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2290,49 +2290,49 @@ var On = (
|
|
|
2290
2290
|
r.push(n);
|
|
2291
2291
|
this.bump();
|
|
2292
2292
|
}
|
|
2293
|
-
return
|
|
2293
|
+
return Ge.apply(void 0, r);
|
|
2294
2294
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2295
2295
|
if (this.isEOF())
|
|
2296
2296
|
return null;
|
|
2297
2297
|
var n = this.char();
|
|
2298
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2298
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
2299
2299
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2300
2300
|
var n = this.clonePosition();
|
|
2301
2301
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2302
|
-
return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2302
|
+
return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition()));
|
|
2303
2303
|
if (this.char() === 125)
|
|
2304
|
-
return this.bump(), this.error(M.EMPTY_ARGUMENT,
|
|
2304
|
+
return this.bump(), this.error(M.EMPTY_ARGUMENT, N(n, this.clonePosition()));
|
|
2305
2305
|
var i = this.parseIdentifierIfPossible().value;
|
|
2306
2306
|
if (!i)
|
|
2307
|
-
return this.error(M.MALFORMED_ARGUMENT,
|
|
2307
|
+
return this.error(M.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
|
|
2308
2308
|
if (this.bumpSpace(), this.isEOF())
|
|
2309
|
-
return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2309
|
+
return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition()));
|
|
2310
2310
|
switch (this.char()) {
|
|
2311
2311
|
case 125:
|
|
2312
2312
|
return this.bump(), {
|
|
2313
2313
|
val: {
|
|
2314
|
-
type:
|
|
2314
|
+
type: B.argument,
|
|
2315
2315
|
// value does not include the opening and closing braces.
|
|
2316
2316
|
value: i,
|
|
2317
|
-
location:
|
|
2317
|
+
location: N(n, this.clonePosition())
|
|
2318
2318
|
},
|
|
2319
2319
|
err: null
|
|
2320
2320
|
};
|
|
2321
2321
|
case 44:
|
|
2322
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2322
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2323
2323
|
default:
|
|
2324
|
-
return this.error(M.MALFORMED_ARGUMENT,
|
|
2324
|
+
return this.error(M.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
|
|
2325
2325
|
}
|
|
2326
2326
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2327
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2327
|
+
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
2328
2328
|
this.bumpTo(i);
|
|
2329
|
-
var o = this.clonePosition(), a =
|
|
2329
|
+
var o = this.clonePosition(), a = N(t, o);
|
|
2330
2330
|
return { value: n, location: a };
|
|
2331
2331
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2332
2332
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2333
2333
|
switch (s) {
|
|
2334
2334
|
case "":
|
|
2335
|
-
return this.error(M.EXPECT_ARGUMENT_TYPE,
|
|
2335
|
+
return this.error(M.EXPECT_ARGUMENT_TYPE, N(a, h));
|
|
2336
2336
|
case "number":
|
|
2337
2337
|
case "date":
|
|
2338
2338
|
case "time": {
|
|
@@ -2343,46 +2343,46 @@ var On = (
|
|
|
2343
2343
|
var l = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
2344
2344
|
if (d.err)
|
|
2345
2345
|
return d;
|
|
2346
|
-
var
|
|
2347
|
-
if (
|
|
2348
|
-
return this.error(M.EXPECT_ARGUMENT_STYLE,
|
|
2349
|
-
var
|
|
2350
|
-
u = { style:
|
|
2346
|
+
var m = zn(d.val);
|
|
2347
|
+
if (m.length === 0)
|
|
2348
|
+
return this.error(M.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
|
|
2349
|
+
var b = N(l, this.clonePosition());
|
|
2350
|
+
u = { style: m, styleLocation: b };
|
|
2351
2351
|
}
|
|
2352
2352
|
var f = this.tryParseArgumentClose(i);
|
|
2353
2353
|
if (f.err)
|
|
2354
2354
|
return f;
|
|
2355
|
-
var
|
|
2355
|
+
var p = N(i, this.clonePosition());
|
|
2356
2356
|
if (u && ct(u?.style, "::", 0)) {
|
|
2357
|
-
var C =
|
|
2357
|
+
var C = Bn(u.style.slice(2));
|
|
2358
2358
|
if (s === "number") {
|
|
2359
2359
|
var d = this.parseNumberSkeletonFromString(C, u.styleLocation);
|
|
2360
2360
|
return d.err ? d : {
|
|
2361
|
-
val: { type:
|
|
2361
|
+
val: { type: B.number, value: n, location: p, style: d.val },
|
|
2362
2362
|
err: null
|
|
2363
2363
|
};
|
|
2364
2364
|
} else {
|
|
2365
2365
|
if (C.length === 0)
|
|
2366
|
-
return this.error(M.EXPECT_DATE_TIME_SKELETON,
|
|
2366
|
+
return this.error(M.EXPECT_DATE_TIME_SKELETON, p);
|
|
2367
2367
|
var _ = C;
|
|
2368
2368
|
this.locale && (_ = yn(C, this.locale));
|
|
2369
|
-
var
|
|
2369
|
+
var m = {
|
|
2370
2370
|
type: ee.dateTime,
|
|
2371
2371
|
pattern: _,
|
|
2372
2372
|
location: u.styleLocation,
|
|
2373
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2374
|
-
},
|
|
2373
|
+
parsedOptions: this.shouldParseSkeletons ? mn(_) : {}
|
|
2374
|
+
}, v = s === "date" ? B.date : B.time;
|
|
2375
2375
|
return {
|
|
2376
|
-
val: { type:
|
|
2376
|
+
val: { type: v, value: n, location: p, style: m },
|
|
2377
2377
|
err: null
|
|
2378
2378
|
};
|
|
2379
2379
|
}
|
|
2380
2380
|
}
|
|
2381
2381
|
return {
|
|
2382
2382
|
val: {
|
|
2383
|
-
type: s === "number" ?
|
|
2383
|
+
type: s === "number" ? B.number : s === "date" ? B.date : B.time,
|
|
2384
2384
|
value: n,
|
|
2385
|
-
location:
|
|
2385
|
+
location: p,
|
|
2386
2386
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
2387
2387
|
},
|
|
2388
2388
|
err: null
|
|
@@ -2391,41 +2391,41 @@ var On = (
|
|
|
2391
2391
|
case "plural":
|
|
2392
2392
|
case "selectordinal":
|
|
2393
2393
|
case "select": {
|
|
2394
|
-
var
|
|
2394
|
+
var S = this.clonePosition();
|
|
2395
2395
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2396
|
-
return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2396
|
+
return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS, N(S, H({}, S)));
|
|
2397
2397
|
this.bumpSpace();
|
|
2398
|
-
var
|
|
2399
|
-
if (s !== "select" &&
|
|
2398
|
+
var P = this.parseIdentifierIfPossible(), E = 0;
|
|
2399
|
+
if (s !== "select" && P.value === "offset") {
|
|
2400
2400
|
if (!this.bumpIf(":"))
|
|
2401
|
-
return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2401
|
+
return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
|
|
2402
2402
|
this.bumpSpace();
|
|
2403
2403
|
var d = this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2404
2404
|
if (d.err)
|
|
2405
2405
|
return d;
|
|
2406
|
-
this.bumpSpace(),
|
|
2406
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), E = d.val;
|
|
2407
2407
|
}
|
|
2408
|
-
var
|
|
2409
|
-
if (
|
|
2410
|
-
return
|
|
2408
|
+
var z = this.tryParsePluralOrSelectOptions(t, s, r, P);
|
|
2409
|
+
if (z.err)
|
|
2410
|
+
return z;
|
|
2411
2411
|
var f = this.tryParseArgumentClose(i);
|
|
2412
2412
|
if (f.err)
|
|
2413
2413
|
return f;
|
|
2414
|
-
var O =
|
|
2414
|
+
var O = N(i, this.clonePosition());
|
|
2415
2415
|
return s === "select" ? {
|
|
2416
2416
|
val: {
|
|
2417
|
-
type:
|
|
2417
|
+
type: B.select,
|
|
2418
2418
|
value: n,
|
|
2419
|
-
options: ut(
|
|
2419
|
+
options: ut(z.val),
|
|
2420
2420
|
location: O
|
|
2421
2421
|
},
|
|
2422
2422
|
err: null
|
|
2423
2423
|
} : {
|
|
2424
2424
|
val: {
|
|
2425
|
-
type:
|
|
2425
|
+
type: B.plural,
|
|
2426
2426
|
value: n,
|
|
2427
|
-
options: ut(
|
|
2428
|
-
offset:
|
|
2427
|
+
options: ut(z.val),
|
|
2428
|
+
offset: E,
|
|
2429
2429
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2430
2430
|
location: O
|
|
2431
2431
|
},
|
|
@@ -2433,10 +2433,10 @@ var On = (
|
|
|
2433
2433
|
};
|
|
2434
2434
|
}
|
|
2435
2435
|
default:
|
|
2436
|
-
return this.error(M.INVALID_ARGUMENT_TYPE,
|
|
2436
|
+
return this.error(M.INVALID_ARGUMENT_TYPE, N(a, h));
|
|
2437
2437
|
}
|
|
2438
2438
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2439
|
-
return this.isEOF() || this.char() !== 125 ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2439
|
+
return this.isEOF() || this.char() !== 125 ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, N(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2440
2440
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2441
2441
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2442
2442
|
var n = this.char();
|
|
@@ -2445,7 +2445,7 @@ var On = (
|
|
|
2445
2445
|
this.bump();
|
|
2446
2446
|
var i = this.clonePosition();
|
|
2447
2447
|
if (!this.bumpUntil("'"))
|
|
2448
|
-
return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2448
|
+
return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, N(i, this.clonePosition()));
|
|
2449
2449
|
this.bump();
|
|
2450
2450
|
break;
|
|
2451
2451
|
}
|
|
@@ -2475,7 +2475,7 @@ var On = (
|
|
|
2475
2475
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2476
2476
|
var n = [];
|
|
2477
2477
|
try {
|
|
2478
|
-
n =
|
|
2478
|
+
n = gn(t);
|
|
2479
2479
|
} catch {
|
|
2480
2480
|
return this.error(M.INVALID_NUMBER_SKELETON, r);
|
|
2481
2481
|
}
|
|
@@ -2484,7 +2484,7 @@ var On = (
|
|
|
2484
2484
|
type: ee.number,
|
|
2485
2485
|
tokens: n,
|
|
2486
2486
|
location: r,
|
|
2487
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2487
|
+
parsedOptions: this.shouldParseSkeletons ? bn(n) : {}
|
|
2488
2488
|
},
|
|
2489
2489
|
err: null
|
|
2490
2490
|
};
|
|
@@ -2493,34 +2493,34 @@ var On = (
|
|
|
2493
2493
|
if (u.length === 0) {
|
|
2494
2494
|
var d = this.clonePosition();
|
|
2495
2495
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2496
|
-
var
|
|
2497
|
-
if (
|
|
2498
|
-
return
|
|
2499
|
-
l =
|
|
2496
|
+
var m = this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR, M.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2497
|
+
if (m.err)
|
|
2498
|
+
return m;
|
|
2499
|
+
l = N(d, this.clonePosition()), u = this.message.slice(d.offset, this.offset());
|
|
2500
2500
|
} else
|
|
2501
2501
|
break;
|
|
2502
2502
|
}
|
|
2503
2503
|
if (h.has(u))
|
|
2504
2504
|
return this.error(r === "select" ? M.DUPLICATE_SELECT_ARGUMENT_SELECTOR : M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2505
2505
|
u === "other" && (a = !0), this.bumpSpace();
|
|
2506
|
-
var
|
|
2506
|
+
var b = this.clonePosition();
|
|
2507
2507
|
if (!this.bumpIf("{"))
|
|
2508
|
-
return this.error(r === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2508
|
+
return this.error(r === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
|
|
2509
2509
|
var f = this.parseMessage(t + 1, r, n);
|
|
2510
2510
|
if (f.err)
|
|
2511
2511
|
return f;
|
|
2512
|
-
var
|
|
2513
|
-
if (
|
|
2514
|
-
return
|
|
2512
|
+
var p = this.tryParseArgumentClose(b);
|
|
2513
|
+
if (p.err)
|
|
2514
|
+
return p;
|
|
2515
2515
|
s.push([
|
|
2516
2516
|
u,
|
|
2517
2517
|
{
|
|
2518
2518
|
value: f.val,
|
|
2519
|
-
location:
|
|
2519
|
+
location: N(b, this.clonePosition())
|
|
2520
2520
|
}
|
|
2521
2521
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
2522
2522
|
}
|
|
2523
|
-
return s.length === 0 ? this.error(r === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR : M.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
2523
|
+
return s.length === 0 ? this.error(r === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR : M.EXPECT_PLURAL_ARGUMENT_SELECTOR, N(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(M.MISSING_OTHER_CLAUSE, N(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2524
2524
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2525
2525
|
var n = 1, i = this.clonePosition();
|
|
2526
2526
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -2531,8 +2531,8 @@ var On = (
|
|
|
2531
2531
|
else
|
|
2532
2532
|
break;
|
|
2533
2533
|
}
|
|
2534
|
-
var h =
|
|
2535
|
-
return o ? (a *= n,
|
|
2534
|
+
var h = N(i, this.clonePosition());
|
|
2535
|
+
return o ? (a *= n, Hn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2536
2536
|
}, e.prototype.offset = function() {
|
|
2537
2537
|
return this.position.offset;
|
|
2538
2538
|
}, e.prototype.isEOF = function() {
|
|
@@ -2598,11 +2598,11 @@ var On = (
|
|
|
2598
2598
|
}, e;
|
|
2599
2599
|
}()
|
|
2600
2600
|
);
|
|
2601
|
-
function
|
|
2601
|
+
function Ve(e) {
|
|
2602
2602
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
2603
2603
|
}
|
|
2604
2604
|
function In(e) {
|
|
2605
|
-
return
|
|
2605
|
+
return Ve(e) || e === 47;
|
|
2606
2606
|
}
|
|
2607
2607
|
function jn(e) {
|
|
2608
2608
|
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;
|
|
@@ -2613,32 +2613,32 @@ function Kt(e) {
|
|
|
2613
2613
|
function Ln(e) {
|
|
2614
2614
|
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;
|
|
2615
2615
|
}
|
|
2616
|
-
function
|
|
2616
|
+
function Xe(e) {
|
|
2617
2617
|
e.forEach(function(t) {
|
|
2618
|
-
if (delete t.location,
|
|
2618
|
+
if (delete t.location, qt(t) || Gt(t))
|
|
2619
2619
|
for (var r in t.options)
|
|
2620
|
-
delete t.options[r].location,
|
|
2620
|
+
delete t.options[r].location, Xe(t.options[r].value);
|
|
2621
2621
|
else
|
|
2622
|
-
Rt(t) &&
|
|
2622
|
+
Rt(t) && Vt(t.style) || (Ut(t) || Dt(t)) && De(t.style) ? delete t.style.location : Ft(t) && Xe(t.children);
|
|
2623
2623
|
});
|
|
2624
2624
|
}
|
|
2625
2625
|
function Rn(e, t) {
|
|
2626
|
-
t === void 0 && (t = {}), t =
|
|
2626
|
+
t === void 0 && (t = {}), t = H({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
2627
2627
|
var r = new On(e, t).parse();
|
|
2628
2628
|
if (r.err) {
|
|
2629
2629
|
var n = SyntaxError(M[r.err.kind]);
|
|
2630
2630
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
2631
2631
|
}
|
|
2632
|
-
return t?.captureLocation ||
|
|
2632
|
+
return t?.captureLocation || Xe(r.val), r.val;
|
|
2633
2633
|
}
|
|
2634
2634
|
var te;
|
|
2635
2635
|
(function(e) {
|
|
2636
2636
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
2637
2637
|
})(te || (te = {}));
|
|
2638
|
-
var
|
|
2638
|
+
var Ae = (
|
|
2639
2639
|
/** @class */
|
|
2640
2640
|
function(e) {
|
|
2641
|
-
|
|
2641
|
+
Ne(t, e);
|
|
2642
2642
|
function t(r, n, i) {
|
|
2643
2643
|
var o = e.call(this, r) || this;
|
|
2644
2644
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -2650,44 +2650,44 @@ var Ne = (
|
|
|
2650
2650
|
), dt = (
|
|
2651
2651
|
/** @class */
|
|
2652
2652
|
function(e) {
|
|
2653
|
-
|
|
2653
|
+
Ne(t, e);
|
|
2654
2654
|
function t(r, n, i, o) {
|
|
2655
2655
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, o) || this;
|
|
2656
2656
|
}
|
|
2657
2657
|
return t;
|
|
2658
|
-
}(
|
|
2658
|
+
}(Ae)
|
|
2659
2659
|
), Un = (
|
|
2660
2660
|
/** @class */
|
|
2661
2661
|
function(e) {
|
|
2662
|
-
|
|
2662
|
+
Ne(t, e);
|
|
2663
2663
|
function t(r, n, i) {
|
|
2664
2664
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
|
|
2665
2665
|
}
|
|
2666
2666
|
return t;
|
|
2667
|
-
}(
|
|
2667
|
+
}(Ae)
|
|
2668
2668
|
), Dn = (
|
|
2669
2669
|
/** @class */
|
|
2670
2670
|
function(e) {
|
|
2671
|
-
|
|
2671
|
+
Ne(t, e);
|
|
2672
2672
|
function t(r, n) {
|
|
2673
2673
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
|
|
2674
2674
|
}
|
|
2675
2675
|
return t;
|
|
2676
|
-
}(
|
|
2676
|
+
}(Ae)
|
|
2677
2677
|
), D;
|
|
2678
2678
|
(function(e) {
|
|
2679
2679
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
2680
2680
|
})(D || (D = {}));
|
|
2681
|
-
function
|
|
2681
|
+
function qn(e) {
|
|
2682
2682
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
2683
2683
|
var n = t[t.length - 1];
|
|
2684
2684
|
return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
|
|
2685
2685
|
}, []);
|
|
2686
2686
|
}
|
|
2687
|
-
function
|
|
2687
|
+
function Gn(e) {
|
|
2688
2688
|
return typeof e == "function";
|
|
2689
2689
|
}
|
|
2690
|
-
function
|
|
2690
|
+
function we(e, t, r, n, i, o, a) {
|
|
2691
2691
|
if (e.length === 1 && ot(e[0]))
|
|
2692
2692
|
return [
|
|
2693
2693
|
{
|
|
@@ -2714,86 +2714,86 @@ function Se(e, t, r, n, i, o, a) {
|
|
|
2714
2714
|
var d = l.value;
|
|
2715
2715
|
if (!(i && d in i))
|
|
2716
2716
|
throw new Dn(d, a);
|
|
2717
|
-
var
|
|
2717
|
+
var m = i[d];
|
|
2718
2718
|
if (un(l)) {
|
|
2719
|
-
(!
|
|
2720
|
-
type: typeof
|
|
2721
|
-
value:
|
|
2719
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
|
|
2720
|
+
type: typeof m == "string" ? D.literal : D.object,
|
|
2721
|
+
value: m
|
|
2722
2722
|
});
|
|
2723
2723
|
continue;
|
|
2724
2724
|
}
|
|
2725
2725
|
if (Ut(l)) {
|
|
2726
|
-
var
|
|
2726
|
+
var b = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
2727
2727
|
s.push({
|
|
2728
2728
|
type: D.literal,
|
|
2729
|
-
value: r.getDateTimeFormat(t,
|
|
2729
|
+
value: r.getDateTimeFormat(t, b).format(m)
|
|
2730
2730
|
});
|
|
2731
2731
|
continue;
|
|
2732
2732
|
}
|
|
2733
2733
|
if (Dt(l)) {
|
|
2734
|
-
var
|
|
2734
|
+
var b = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
2735
2735
|
s.push({
|
|
2736
2736
|
type: D.literal,
|
|
2737
|
-
value: r.getDateTimeFormat(t,
|
|
2737
|
+
value: r.getDateTimeFormat(t, b).format(m)
|
|
2738
2738
|
});
|
|
2739
2739
|
continue;
|
|
2740
2740
|
}
|
|
2741
2741
|
if (Rt(l)) {
|
|
2742
|
-
var
|
|
2743
|
-
|
|
2742
|
+
var b = typeof l.style == "string" ? n.number[l.style] : Vt(l.style) ? l.style.parsedOptions : void 0;
|
|
2743
|
+
b && b.scale && (m = m * (b.scale || 1)), s.push({
|
|
2744
2744
|
type: D.literal,
|
|
2745
|
-
value: r.getNumberFormat(t,
|
|
2745
|
+
value: r.getNumberFormat(t, b).format(m)
|
|
2746
2746
|
});
|
|
2747
2747
|
continue;
|
|
2748
2748
|
}
|
|
2749
|
-
if (
|
|
2750
|
-
var f = l.children,
|
|
2751
|
-
if (!
|
|
2752
|
-
throw new Un(
|
|
2753
|
-
var _ =
|
|
2754
|
-
return
|
|
2749
|
+
if (Ft(l)) {
|
|
2750
|
+
var f = l.children, p = l.value, C = i[p];
|
|
2751
|
+
if (!Gn(C))
|
|
2752
|
+
throw new Un(p, "function", a);
|
|
2753
|
+
var _ = we(f, t, r, n, i, o), v = C(_.map(function(E) {
|
|
2754
|
+
return E.value;
|
|
2755
2755
|
}));
|
|
2756
|
-
Array.isArray(
|
|
2756
|
+
Array.isArray(v) || (v = [v]), s.push.apply(s, v.map(function(E) {
|
|
2757
2757
|
return {
|
|
2758
|
-
type: typeof
|
|
2759
|
-
value:
|
|
2758
|
+
type: typeof E == "string" ? D.literal : D.object,
|
|
2759
|
+
value: E
|
|
2760
2760
|
};
|
|
2761
2761
|
}));
|
|
2762
2762
|
}
|
|
2763
|
-
if (
|
|
2764
|
-
var
|
|
2765
|
-
if (!
|
|
2766
|
-
throw new dt(l.value,
|
|
2767
|
-
s.push.apply(s,
|
|
2763
|
+
if (qt(l)) {
|
|
2764
|
+
var S = l.options[m] || l.options.other;
|
|
2765
|
+
if (!S)
|
|
2766
|
+
throw new dt(l.value, m, Object.keys(l.options), a);
|
|
2767
|
+
s.push.apply(s, we(S.value, t, r, n, i));
|
|
2768
2768
|
continue;
|
|
2769
2769
|
}
|
|
2770
|
-
if (
|
|
2771
|
-
var
|
|
2772
|
-
if (!
|
|
2770
|
+
if (Gt(l)) {
|
|
2771
|
+
var S = l.options["=".concat(m)];
|
|
2772
|
+
if (!S) {
|
|
2773
2773
|
if (!Intl.PluralRules)
|
|
2774
|
-
throw new
|
|
2774
|
+
throw new Ae(`Intl.PluralRules is not available in this environment.
|
|
2775
2775
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
2776
2776
|
`, te.MISSING_INTL_API, a);
|
|
2777
|
-
var
|
|
2778
|
-
|
|
2777
|
+
var P = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
|
|
2778
|
+
S = l.options[P] || l.options.other;
|
|
2779
2779
|
}
|
|
2780
|
-
if (!
|
|
2781
|
-
throw new dt(l.value,
|
|
2782
|
-
s.push.apply(s,
|
|
2780
|
+
if (!S)
|
|
2781
|
+
throw new dt(l.value, m, Object.keys(l.options), a);
|
|
2782
|
+
s.push.apply(s, we(S.value, t, r, n, i, m - (l.offset || 0)));
|
|
2783
2783
|
continue;
|
|
2784
2784
|
}
|
|
2785
2785
|
}
|
|
2786
|
-
return
|
|
2786
|
+
return qn(s);
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2789
|
-
return t ?
|
|
2790
|
-
return r[n] =
|
|
2788
|
+
function Fn(e, t) {
|
|
2789
|
+
return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
2790
|
+
return r[n] = H(H({}, e[n]), t[n] || {}), r;
|
|
2791
2791
|
}, {})) : e;
|
|
2792
2792
|
}
|
|
2793
|
-
function
|
|
2793
|
+
function Vn(e, t) {
|
|
2794
2794
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
2795
|
-
return r[n] =
|
|
2796
|
-
},
|
|
2795
|
+
return r[n] = Fn(e[n], t[n]), r;
|
|
2796
|
+
}, H({}, e)) : e;
|
|
2797
2797
|
}
|
|
2798
2798
|
function Le(e) {
|
|
2799
2799
|
return {
|
|
@@ -2809,7 +2809,7 @@ function Le(e) {
|
|
|
2809
2809
|
}
|
|
2810
2810
|
};
|
|
2811
2811
|
}
|
|
2812
|
-
function
|
|
2812
|
+
function Xn(e) {
|
|
2813
2813
|
return e === void 0 && (e = {
|
|
2814
2814
|
number: {},
|
|
2815
2815
|
dateTime: {},
|
|
@@ -2818,7 +2818,7 @@ function qn(e) {
|
|
|
2818
2818
|
getNumberFormat: Oe(function() {
|
|
2819
2819
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2820
2820
|
r[n] = arguments[n];
|
|
2821
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
2821
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ze([void 0], r, !1)))();
|
|
2822
2822
|
}, {
|
|
2823
2823
|
cache: Le(e.number),
|
|
2824
2824
|
strategy: Ie.variadic
|
|
@@ -2826,7 +2826,7 @@ function qn(e) {
|
|
|
2826
2826
|
getDateTimeFormat: Oe(function() {
|
|
2827
2827
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2828
2828
|
r[n] = arguments[n];
|
|
2829
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
2829
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ze([void 0], r, !1)))();
|
|
2830
2830
|
}, {
|
|
2831
2831
|
cache: Le(e.dateTime),
|
|
2832
2832
|
strategy: Ie.variadic
|
|
@@ -2834,7 +2834,7 @@ function qn(e) {
|
|
|
2834
2834
|
getPluralRules: Oe(function() {
|
|
2835
2835
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2836
2836
|
r[n] = arguments[n];
|
|
2837
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
2837
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ze([void 0], r, !1)))();
|
|
2838
2838
|
}, {
|
|
2839
2839
|
cache: Le(e.pluralRules),
|
|
2840
2840
|
strategy: Ie.variadic
|
|
@@ -2855,12 +2855,12 @@ var Wn = (
|
|
|
2855
2855
|
var u = o.formatToParts(h);
|
|
2856
2856
|
if (u.length === 1)
|
|
2857
2857
|
return u[0].value;
|
|
2858
|
-
var l = u.reduce(function(d,
|
|
2859
|
-
return !d.length ||
|
|
2858
|
+
var l = u.reduce(function(d, m) {
|
|
2859
|
+
return !d.length || m.type !== D.literal || typeof d[d.length - 1] != "string" ? d.push(m.value) : d[d.length - 1] += m.value, d;
|
|
2860
2860
|
}, []);
|
|
2861
2861
|
return l.length <= 1 ? l[0] || "" : l;
|
|
2862
2862
|
}, this.formatToParts = function(h) {
|
|
2863
|
-
return
|
|
2863
|
+
return we(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
2864
2864
|
}, this.resolvedOptions = function() {
|
|
2865
2865
|
var h;
|
|
2866
2866
|
return {
|
|
@@ -2874,12 +2874,12 @@ var Wn = (
|
|
|
2874
2874
|
var a = i || {};
|
|
2875
2875
|
a.formatters;
|
|
2876
2876
|
var s = tn(a, ["formatters"]);
|
|
2877
|
-
this.ast = e.__parse(t,
|
|
2877
|
+
this.ast = e.__parse(t, H(H({}, s), { locale: this.resolvedLocale }));
|
|
2878
2878
|
} else
|
|
2879
2879
|
this.ast = t;
|
|
2880
2880
|
if (!Array.isArray(this.ast))
|
|
2881
2881
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
2882
|
-
this.formats =
|
|
2882
|
+
this.formats = Vn(e.formats, n), this.formatters = i && i.formatters || Xn(this.formatterCache);
|
|
2883
2883
|
}
|
|
2884
2884
|
return Object.defineProperty(e, "defaultLocale", {
|
|
2885
2885
|
get: function() {
|
|
@@ -2979,7 +2979,7 @@ const Z = {}, Jn = (e, t, r) => r && (t in Z || (Z[t] = {}), e in Z[t] || (Z[t][
|
|
|
2979
2979
|
return;
|
|
2980
2980
|
if (t in Z && e in Z[t])
|
|
2981
2981
|
return Z[t][e];
|
|
2982
|
-
const r =
|
|
2982
|
+
const r = He(t);
|
|
2983
2983
|
for (let n = 0; n < r.length; n++) {
|
|
2984
2984
|
const i = r[n], o = Yn(i, e);
|
|
2985
2985
|
if (o)
|
|
@@ -3003,7 +3003,7 @@ function Yn(e, t) {
|
|
|
3003
3003
|
function Kn(e) {
|
|
3004
3004
|
if (e == null)
|
|
3005
3005
|
return;
|
|
3006
|
-
const t =
|
|
3006
|
+
const t = He(e);
|
|
3007
3007
|
for (let r = 0; r < t.length; r++) {
|
|
3008
3008
|
const n = t[r];
|
|
3009
3009
|
if (er(n))
|
|
@@ -3018,21 +3018,21 @@ ne(
|
|
|
3018
3018
|
([e]) => Object.keys(e)
|
|
3019
3019
|
);
|
|
3020
3020
|
fe.subscribe((e) => Ye = e);
|
|
3021
|
-
const
|
|
3021
|
+
const Se = {};
|
|
3022
3022
|
function $n(e, t) {
|
|
3023
|
-
|
|
3023
|
+
Se[e].delete(t), Se[e].size === 0 && delete Se[e];
|
|
3024
3024
|
}
|
|
3025
3025
|
function rr(e) {
|
|
3026
|
-
return
|
|
3026
|
+
return Se[e];
|
|
3027
3027
|
}
|
|
3028
3028
|
function ei(e) {
|
|
3029
|
-
return
|
|
3029
|
+
return He(e).map((t) => {
|
|
3030
3030
|
const r = rr(t);
|
|
3031
3031
|
return [t, r ? [...r] : []];
|
|
3032
3032
|
}).filter(([, t]) => t.length > 0);
|
|
3033
3033
|
}
|
|
3034
3034
|
function We(e) {
|
|
3035
|
-
return e == null ? !1 :
|
|
3035
|
+
return e == null ? !1 : He(e).some(
|
|
3036
3036
|
(t) => {
|
|
3037
3037
|
var r;
|
|
3038
3038
|
return (r = rr(t)) == null ? void 0 : r.size;
|
|
@@ -3100,27 +3100,27 @@ function re() {
|
|
|
3100
3100
|
return ii;
|
|
3101
3101
|
}
|
|
3102
3102
|
const Re = Me(!1);
|
|
3103
|
-
var oi = Object.defineProperty, ai = Object.defineProperties, si = Object.getOwnPropertyDescriptors,
|
|
3103
|
+
var oi = Object.defineProperty, ai = Object.defineProperties, si = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, ci = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ui = (e, t) => {
|
|
3104
3104
|
for (var r in t || (t = {}))
|
|
3105
|
-
li.call(t, r) &&
|
|
3106
|
-
if (
|
|
3107
|
-
for (var r of
|
|
3108
|
-
ci.call(t, r) &&
|
|
3105
|
+
li.call(t, r) && pt(e, r, t[r]);
|
|
3106
|
+
if (mt)
|
|
3107
|
+
for (var r of mt(t))
|
|
3108
|
+
ci.call(t, r) && pt(e, r, t[r]);
|
|
3109
3109
|
return e;
|
|
3110
3110
|
}, hi = (e, t) => ai(e, si(t));
|
|
3111
3111
|
let Ze;
|
|
3112
|
-
const
|
|
3113
|
-
function
|
|
3112
|
+
const xe = Me(null);
|
|
3113
|
+
function gt(e) {
|
|
3114
3114
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3115
3115
|
}
|
|
3116
|
-
function
|
|
3117
|
-
const r =
|
|
3118
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3116
|
+
function He(e, t = re().fallbackLocale) {
|
|
3117
|
+
const r = gt(e);
|
|
3118
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
|
|
3119
3119
|
}
|
|
3120
3120
|
function Q() {
|
|
3121
3121
|
return Ze ?? void 0;
|
|
3122
3122
|
}
|
|
3123
|
-
|
|
3123
|
+
xe.subscribe((e) => {
|
|
3124
3124
|
Ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3125
3125
|
});
|
|
3126
3126
|
const di = (e) => {
|
|
@@ -3131,22 +3131,22 @@ const di = (e) => {
|
|
|
3131
3131
|
() => Re.set(!0),
|
|
3132
3132
|
t
|
|
3133
3133
|
) : Re.set(!0), nr(e).then(() => {
|
|
3134
|
-
|
|
3134
|
+
xe.set(e);
|
|
3135
3135
|
}).finally(() => {
|
|
3136
3136
|
clearTimeout(r), Re.set(!1);
|
|
3137
3137
|
});
|
|
3138
3138
|
}
|
|
3139
|
-
return
|
|
3140
|
-
}, ie = hi(ui({},
|
|
3139
|
+
return xe.set(e);
|
|
3140
|
+
}, ie = hi(ui({}, xe), {
|
|
3141
3141
|
set: di
|
|
3142
|
-
}),
|
|
3142
|
+
}), Pe = (e) => {
|
|
3143
3143
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3144
3144
|
return (n) => {
|
|
3145
3145
|
const i = JSON.stringify(n);
|
|
3146
3146
|
return i in t ? t[i] : t[i] = e(n);
|
|
3147
3147
|
};
|
|
3148
3148
|
};
|
|
3149
|
-
var
|
|
3149
|
+
var mi = Object.defineProperty, Te = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
3150
3150
|
for (var r in t || (t = {}))
|
|
3151
3151
|
ir.call(t, r) && ft(e, r, t[r]);
|
|
3152
3152
|
if (Te)
|
|
@@ -3162,33 +3162,33 @@ var gi = Object.defineProperty, Te = Object.getOwnPropertySymbols, ir = Object.p
|
|
|
3162
3162
|
t.indexOf(n) < 0 && or.call(e, n) && (r[n] = e[n]);
|
|
3163
3163
|
return r;
|
|
3164
3164
|
};
|
|
3165
|
-
const
|
|
3165
|
+
const me = (e, t) => {
|
|
3166
3166
|
const { formats: r } = re();
|
|
3167
3167
|
if (e in r && t in r[e])
|
|
3168
3168
|
return r[e][t];
|
|
3169
3169
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3170
|
-
},
|
|
3170
|
+
}, pi = Pe(
|
|
3171
3171
|
(e) => {
|
|
3172
3172
|
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3173
3173
|
if (r == null)
|
|
3174
3174
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3175
|
-
return n && (i =
|
|
3175
|
+
return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
|
|
3176
3176
|
}
|
|
3177
|
-
),
|
|
3177
|
+
), gi = Pe(
|
|
3178
3178
|
(e) => {
|
|
3179
3179
|
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3180
3180
|
if (r == null)
|
|
3181
3181
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3182
|
-
return n ? i =
|
|
3182
|
+
return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3183
3183
|
}
|
|
3184
|
-
), fi =
|
|
3184
|
+
), fi = Pe(
|
|
3185
3185
|
(e) => {
|
|
3186
3186
|
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3187
3187
|
if (r == null)
|
|
3188
3188
|
throw new Error(
|
|
3189
3189
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3190
3190
|
);
|
|
3191
|
-
return n ? i =
|
|
3191
|
+
return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3192
3192
|
}
|
|
3193
3193
|
), _i = (e = {}) => {
|
|
3194
3194
|
var t = e, {
|
|
@@ -3196,27 +3196,27 @@ const ge = (e, t) => {
|
|
|
3196
3196
|
} = t, n = oe(t, [
|
|
3197
3197
|
"locale"
|
|
3198
3198
|
]);
|
|
3199
|
-
return
|
|
3200
|
-
},
|
|
3199
|
+
return pi(Ke({ locale: r }, n));
|
|
3200
|
+
}, vi = (e = {}) => {
|
|
3201
3201
|
var t = e, {
|
|
3202
3202
|
locale: r = Q()
|
|
3203
3203
|
} = t, n = oe(t, [
|
|
3204
3204
|
"locale"
|
|
3205
3205
|
]);
|
|
3206
|
-
return
|
|
3207
|
-
},
|
|
3206
|
+
return gi(Ke({ locale: r }, n));
|
|
3207
|
+
}, bi = (e = {}) => {
|
|
3208
3208
|
var t = e, {
|
|
3209
3209
|
locale: r = Q()
|
|
3210
3210
|
} = t, n = oe(t, [
|
|
3211
3211
|
"locale"
|
|
3212
3212
|
]);
|
|
3213
3213
|
return fi(Ke({ locale: r }, n));
|
|
3214
|
-
}, yi =
|
|
3214
|
+
}, yi = Pe(
|
|
3215
3215
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3216
3216
|
(e, t = Q()) => new Wn(e, t, re().formats, {
|
|
3217
3217
|
ignoreTag: re().ignoreTag
|
|
3218
3218
|
})
|
|
3219
|
-
),
|
|
3219
|
+
), Ei = (e, t = {}) => {
|
|
3220
3220
|
var r, n, i, o;
|
|
3221
3221
|
let a = t;
|
|
3222
3222
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -3241,25 +3241,25 @@ const ge = (e, t) => {
|
|
|
3241
3241
|
let d = l;
|
|
3242
3242
|
try {
|
|
3243
3243
|
d = yi(l, h).format(s);
|
|
3244
|
-
} catch (
|
|
3245
|
-
|
|
3244
|
+
} catch (m) {
|
|
3245
|
+
m instanceof Error && console.warn(
|
|
3246
3246
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3247
|
-
|
|
3247
|
+
m.message
|
|
3248
3248
|
);
|
|
3249
3249
|
}
|
|
3250
3250
|
return d;
|
|
3251
|
-
},
|
|
3252
|
-
ne([ie], () =>
|
|
3251
|
+
}, ki = (e, t) => bi(t).format(e), Ci = (e, t) => vi(t).format(e), wi = (e, t) => _i(t).format(e), Si = (e, t = Q()) => $t(e, t), xi = ne([ie, fe], () => Ei);
|
|
3252
|
+
ne([ie], () => ki);
|
|
3253
3253
|
ne([ie], () => Ci);
|
|
3254
|
-
ne([ie], () =>
|
|
3255
|
-
ne([ie, fe], () =>
|
|
3254
|
+
ne([ie], () => wi);
|
|
3255
|
+
ne([ie, fe], () => Si);
|
|
3256
3256
|
function _t(e, t) {
|
|
3257
3257
|
tr(e, t);
|
|
3258
3258
|
}
|
|
3259
3259
|
function Ti(e) {
|
|
3260
3260
|
ie.set(e);
|
|
3261
3261
|
}
|
|
3262
|
-
const
|
|
3262
|
+
const vt = {
|
|
3263
3263
|
en: {
|
|
3264
3264
|
invalidUrl: "Failed to construct 'URL': Invalid URL",
|
|
3265
3265
|
fetchConsentsError: "Error: Could not fetch consents.",
|
|
@@ -3839,29 +3839,29 @@ function Mi(e) {
|
|
|
3839
3839
|
let t, r;
|
|
3840
3840
|
return {
|
|
3841
3841
|
c() {
|
|
3842
|
-
t = rt("svg"), r = rt("path"),
|
|
3842
|
+
t = rt("svg"), r = rt("path"), k(r, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), k(t, "xmlns", "http://www.w3.org/2000/svg"), k(t, "viewBox", "0 0 512 512");
|
|
3843
3843
|
},
|
|
3844
3844
|
m(n, i) {
|
|
3845
|
-
L(n, t, i),
|
|
3845
|
+
L(n, t, i), w(t, r);
|
|
3846
3846
|
},
|
|
3847
|
-
p:
|
|
3848
|
-
i:
|
|
3849
|
-
o:
|
|
3847
|
+
p: X,
|
|
3848
|
+
i: X,
|
|
3849
|
+
o: X,
|
|
3850
3850
|
d(n) {
|
|
3851
3851
|
n && j(t);
|
|
3852
3852
|
}
|
|
3853
3853
|
};
|
|
3854
3854
|
}
|
|
3855
|
-
class
|
|
3855
|
+
class Ni extends Bt {
|
|
3856
3856
|
constructor(t) {
|
|
3857
|
-
super(),
|
|
3857
|
+
super(), zt(this, t, null, Mi, Je, {});
|
|
3858
3858
|
}
|
|
3859
3859
|
}
|
|
3860
|
-
customElements.define("circle-exclamation-icon",
|
|
3861
|
-
function
|
|
3862
|
-
|
|
3860
|
+
customElements.define("circle-exclamation-icon", Pt(Ni, {}, [], [], !0));
|
|
3861
|
+
function Ai(e) {
|
|
3862
|
+
Ar(e, "svelte-1w14oq2", '.DisplayNone.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:none}.ContainerCenter.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{margin-bottom:30px}.AccordionHeader.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{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-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{margin-bottom:10px}.AccordionContent.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:block;padding:10px 0}.AccordionContent.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2:last-of-type{padding-bottom:0}.ConsentItem.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2:last-of-type{margin-bottom:0}.ConsentItem.svelte-1w14oq2 .ConsentName.svelte-1w14oq2.svelte-1w14oq2{margin:0}.ConsentItem.svelte-1w14oq2 .ConsentDescription.svelte-1w14oq2.svelte-1w14oq2{font-size:0.8rem}.ToggleSwitch.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{width:53px;height:30px}.ToggleSwitch.Big.svelte-1w14oq2 .Slider.svelte-1w14oq2.svelte-1w14oq2:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-1w14oq2 input.svelte-1w14oq2:checked+.Slider.svelte-1w14oq2:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2.svelte-1w14oq2{opacity:0;width:0;height:0}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:checked+.Slider.svelte-1w14oq2{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:disabled+.Slider.svelte-1w14oq2{opacity:0.1}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:checked+.Slider.svelte-1w14oq2:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:focus+.Slider.svelte-1w14oq2{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1w14oq2 .Slider.svelte-1w14oq2.svelte-1w14oq2{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-1w14oq2 .Slider.svelte-1w14oq2.svelte-1w14oq2: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-1w14oq2 .Slider.Round.svelte-1w14oq2.svelte-1w14oq2{border-radius:34px}.ToggleSwitch.svelte-1w14oq2 .Slider.Round.svelte-1w14oq2.svelte-1w14oq2:before{border-radius:50%}.SaveConsentsButton.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{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, 50px);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-1w14oq2.svelte-1w14oq2.svelte-1w14oq2:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-1w14oq2 circle-exclamation-icon.svelte-1w14oq2.svelte-1w14oq2{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox.svelte-1w14oq2.svelte-1w14oq2{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__wrapper.svelte-1w14oq2.svelte-1w14oq2{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-1w14oq2.svelte-1w14oq2{position:relative}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__input.svelte-1w14oq2.svelte-1w14oq2{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));width:46px}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__label.svelte-1w14oq2.svelte-1w14oq2{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-1w14oq2 .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-1w14oq2.svelte-1w14oq2{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__error-message.svelte-1w14oq2.svelte-1w14oq2{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-1w14oq2.svelte-1w14oq2{width:16px;height:auto}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__tooltip.svelte-1w14oq2.svelte-1w14oq2{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-1w14oq2 .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-1w14oq2.svelte-1w14oq2{opacity:1}');
|
|
3863
3863
|
}
|
|
3864
|
-
function
|
|
3864
|
+
function bt(e, t, r) {
|
|
3865
3865
|
const n = e.slice();
|
|
3866
3866
|
return n[64] = t[r], n;
|
|
3867
3867
|
}
|
|
@@ -3869,26 +3869,26 @@ function yt(e, t, r) {
|
|
|
3869
3869
|
const n = e.slice();
|
|
3870
3870
|
return n[61] = t[r], n[62] = t, n[63] = r, n;
|
|
3871
3871
|
}
|
|
3872
|
-
function
|
|
3872
|
+
function Et(e, t, r) {
|
|
3873
3873
|
const n = e.slice();
|
|
3874
3874
|
return n[64] = t[r], n;
|
|
3875
3875
|
}
|
|
3876
|
-
function
|
|
3876
|
+
function Hi(e) {
|
|
3877
3877
|
let t, r, n = K(
|
|
3878
3878
|
/*playerConsents*/
|
|
3879
3879
|
e[9]
|
|
3880
3880
|
), i = [];
|
|
3881
3881
|
for (let o = 0; o < n.length; o += 1)
|
|
3882
|
-
i[o] =
|
|
3882
|
+
i[o] = kt(bt(e, n, o));
|
|
3883
3883
|
return {
|
|
3884
3884
|
c() {
|
|
3885
|
-
t =
|
|
3885
|
+
t = A("div"), r = A("form");
|
|
3886
3886
|
for (let o = 0; o < i.length; o += 1)
|
|
3887
3887
|
i[o].c();
|
|
3888
|
-
|
|
3888
|
+
k(r, "class", "checkbox svelte-1w14oq2"), k(t, "class", "legacyStyle");
|
|
3889
3889
|
},
|
|
3890
3890
|
m(o, a) {
|
|
3891
|
-
L(o, t, a),
|
|
3891
|
+
L(o, t, a), w(t, r);
|
|
3892
3892
|
for (let s = 0; s < i.length; s += 1)
|
|
3893
3893
|
i[s] && i[s].m(r, null);
|
|
3894
3894
|
e[31](r);
|
|
@@ -3902,8 +3902,8 @@ function Ai(e) {
|
|
|
3902
3902
|
);
|
|
3903
3903
|
let s;
|
|
3904
3904
|
for (s = 0; s < n.length; s += 1) {
|
|
3905
|
-
const h =
|
|
3906
|
-
i[s] ? i[s].p(h, a) : (i[s] =
|
|
3905
|
+
const h = bt(o, n, s);
|
|
3906
|
+
i[s] ? i[s].p(h, a) : (i[s] = kt(h), i[s].c(), i[s].m(r, null));
|
|
3907
3907
|
}
|
|
3908
3908
|
for (; s < i.length; s += 1)
|
|
3909
3909
|
i[s].d(1);
|
|
@@ -3915,7 +3915,7 @@ function Ai(e) {
|
|
|
3915
3915
|
}
|
|
3916
3916
|
};
|
|
3917
3917
|
}
|
|
3918
|
-
function
|
|
3918
|
+
function Pi(e) {
|
|
3919
3919
|
let t = (
|
|
3920
3920
|
/*$_*/
|
|
3921
3921
|
e[16]("title") || /*$_*/
|
|
@@ -3923,81 +3923,81 @@ function Hi(e) {
|
|
|
3923
3923
|
), r, n, i, o = (
|
|
3924
3924
|
/*$_*/
|
|
3925
3925
|
(e[16]("saveButtonContent") || "Save Consents") + ""
|
|
3926
|
-
), a, s, h, u, l, d = t && Ct(e),
|
|
3926
|
+
), a, s, h, u, l, d = t && Ct(e), m = K(
|
|
3927
3927
|
/*consentsCategories*/
|
|
3928
3928
|
e[8]
|
|
3929
|
-
),
|
|
3930
|
-
for (let
|
|
3931
|
-
|
|
3929
|
+
), b = [];
|
|
3930
|
+
for (let p = 0; p < m.length; p += 1)
|
|
3931
|
+
b[p] = Nt(yt(e, m, p));
|
|
3932
3932
|
let f = (
|
|
3933
3933
|
/*errorMessage*/
|
|
3934
|
-
e[6] &&
|
|
3934
|
+
e[6] && At(e)
|
|
3935
3935
|
);
|
|
3936
3936
|
return {
|
|
3937
3937
|
c() {
|
|
3938
|
-
d && d.c(), r =
|
|
3939
|
-
for (let
|
|
3940
|
-
|
|
3941
|
-
n =
|
|
3938
|
+
d && d.c(), r = q();
|
|
3939
|
+
for (let p = 0; p < b.length; p += 1)
|
|
3940
|
+
b[p].c();
|
|
3941
|
+
n = q(), i = A("button"), s = q(), f && f.c(), h = Br(), k(i, "class", "SaveConsentsButton svelte-1w14oq2"), i.disabled = a = !/*isValid*/
|
|
3942
3942
|
e[14];
|
|
3943
3943
|
},
|
|
3944
|
-
m(
|
|
3945
|
-
d && d.m(
|
|
3946
|
-
for (let _ = 0; _ <
|
|
3947
|
-
|
|
3948
|
-
L(
|
|
3944
|
+
m(p, C) {
|
|
3945
|
+
d && d.m(p, C), L(p, r, C);
|
|
3946
|
+
for (let _ = 0; _ < b.length; _ += 1)
|
|
3947
|
+
b[_] && b[_].m(p, C);
|
|
3948
|
+
L(p, n, C), L(p, i, C), i.innerHTML = o, L(p, s, C), f && f.m(p, C), L(p, h, C), u || (l = he(
|
|
3949
3949
|
i,
|
|
3950
3950
|
"click",
|
|
3951
3951
|
/*saveChanges*/
|
|
3952
3952
|
e[17]
|
|
3953
3953
|
), u = !0);
|
|
3954
3954
|
},
|
|
3955
|
-
p(
|
|
3955
|
+
p(p, C) {
|
|
3956
3956
|
if (C[0] & /*$_*/
|
|
3957
3957
|
65536 && (t = /*$_*/
|
|
3958
|
-
|
|
3959
|
-
|
|
3958
|
+
p[16]("title") || /*$_*/
|
|
3959
|
+
p[16]("description")), t ? d ? d.p(p, C) : (d = Ct(p), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), C[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
|
|
3960
3960
|
867088) {
|
|
3961
|
-
|
|
3961
|
+
m = K(
|
|
3962
3962
|
/*consentsCategories*/
|
|
3963
|
-
|
|
3963
|
+
p[8]
|
|
3964
3964
|
);
|
|
3965
3965
|
let _;
|
|
3966
|
-
for (_ = 0; _ <
|
|
3967
|
-
const
|
|
3968
|
-
|
|
3966
|
+
for (_ = 0; _ < m.length; _ += 1) {
|
|
3967
|
+
const v = yt(p, m, _);
|
|
3968
|
+
b[_] ? b[_].p(v, C) : (b[_] = Nt(v), b[_].c(), b[_].m(n.parentNode, n));
|
|
3969
3969
|
}
|
|
3970
|
-
for (; _ <
|
|
3971
|
-
|
|
3972
|
-
|
|
3970
|
+
for (; _ < b.length; _ += 1)
|
|
3971
|
+
b[_].d(1);
|
|
3972
|
+
b.length = m.length;
|
|
3973
3973
|
}
|
|
3974
3974
|
C[0] & /*$_*/
|
|
3975
3975
|
65536 && o !== (o = /*$_*/
|
|
3976
|
-
(
|
|
3976
|
+
(p[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), C[0] & /*isValid*/
|
|
3977
3977
|
16384 && a !== (a = !/*isValid*/
|
|
3978
|
-
|
|
3979
|
-
|
|
3978
|
+
p[14]) && (i.disabled = a), /*errorMessage*/
|
|
3979
|
+
p[6] ? f ? f.p(p, C) : (f = At(p), f.c(), f.m(h.parentNode, h)) : f && (f.d(1), f = null);
|
|
3980
3980
|
},
|
|
3981
|
-
d(
|
|
3982
|
-
|
|
3981
|
+
d(p) {
|
|
3982
|
+
p && (j(r), j(n), j(i), j(s), j(h)), d && d.d(p), Qe(b, p), f && f.d(p), u = !1, l();
|
|
3983
3983
|
}
|
|
3984
3984
|
};
|
|
3985
3985
|
}
|
|
3986
|
-
function
|
|
3986
|
+
function Bi(e) {
|
|
3987
3987
|
let t, r, n;
|
|
3988
3988
|
return {
|
|
3989
3989
|
c() {
|
|
3990
|
-
t =
|
|
3990
|
+
t = A("div"), r = A("strong"), n = ge(
|
|
3991
3991
|
/*fatalError*/
|
|
3992
3992
|
e[7]
|
|
3993
|
-
),
|
|
3993
|
+
), k(r, "class", "ErrorMessage svelte-1w14oq2"), k(t, "class", "ContainerCenter svelte-1w14oq2");
|
|
3994
3994
|
},
|
|
3995
3995
|
m(i, o) {
|
|
3996
|
-
L(i, t, o),
|
|
3996
|
+
L(i, t, o), w(t, r), w(r, n);
|
|
3997
3997
|
},
|
|
3998
3998
|
p(i, o) {
|
|
3999
3999
|
o[0] & /*fatalError*/
|
|
4000
|
-
128 &&
|
|
4000
|
+
128 && pe(
|
|
4001
4001
|
n,
|
|
4002
4002
|
/*fatalError*/
|
|
4003
4003
|
i[7]
|
|
@@ -4008,11 +4008,11 @@ function Pi(e) {
|
|
|
4008
4008
|
}
|
|
4009
4009
|
};
|
|
4010
4010
|
}
|
|
4011
|
-
function
|
|
4011
|
+
function zi(e) {
|
|
4012
4012
|
let t;
|
|
4013
4013
|
return {
|
|
4014
4014
|
c() {
|
|
4015
|
-
t =
|
|
4015
|
+
t = A("general-animation-loading"), J(
|
|
4016
4016
|
t,
|
|
4017
4017
|
"clientstyling",
|
|
4018
4018
|
/*clientstyling*/
|
|
@@ -4058,7 +4058,7 @@ function Bi(e) {
|
|
|
4058
4058
|
}
|
|
4059
4059
|
};
|
|
4060
4060
|
}
|
|
4061
|
-
function
|
|
4061
|
+
function kt(e) {
|
|
4062
4062
|
let t, r, n, i, o, a, s, h, u = (
|
|
4063
4063
|
/*$_*/
|
|
4064
4064
|
(e[16](`${/*consent*/
|
|
@@ -4067,50 +4067,50 @@ function Et(e) {
|
|
|
4067
4067
|
), l = (
|
|
4068
4068
|
/*consent*/
|
|
4069
4069
|
e[64].mustAccept ? " *" : ""
|
|
4070
|
-
), d,
|
|
4071
|
-
function
|
|
4070
|
+
), d, m, b, f, p, C, _, v, S;
|
|
4071
|
+
function P(...E) {
|
|
4072
4072
|
return (
|
|
4073
4073
|
/*input_handler_1*/
|
|
4074
4074
|
e[30](
|
|
4075
4075
|
/*consent*/
|
|
4076
4076
|
e[64],
|
|
4077
|
-
...
|
|
4077
|
+
...E
|
|
4078
4078
|
)
|
|
4079
4079
|
);
|
|
4080
4080
|
}
|
|
4081
4081
|
return {
|
|
4082
4082
|
c() {
|
|
4083
|
-
t =
|
|
4084
|
-
e[64].status === "1",
|
|
4085
|
-
e[64].tagCode}__input`), h.a = d,
|
|
4086
|
-
e[64].tagCode}__input`),
|
|
4087
|
-
e[64].tagCode),
|
|
4088
|
-
e[64].tagCode + "__input svelte-
|
|
4083
|
+
t = A("div"), r = A("input"), o = q(), a = A("label"), s = A("div"), h = new Ot(!1), d = ge(l), b = q(), f = A("small"), C = q(), k(r, "class", "checkbox__input svelte-1w14oq2"), k(r, "type", "checkbox"), r.checked = n = /*consent*/
|
|
4084
|
+
e[64].status === "1", k(r, "id", i = `${/*consent*/
|
|
4085
|
+
e[64].tagCode}__input`), h.a = d, k(s, "class", "checkbox__label-text svelte-1w14oq2"), k(a, "class", "checkbox__label svelte-1w14oq2"), k(a, "for", m = `${/*consent*/
|
|
4086
|
+
e[64].tagCode}__input`), k(f, "class", "checkbox__error-message svelte-1w14oq2"), k(f, "id", p = "checkBoxError__" + /*consent*/
|
|
4087
|
+
e[64].tagCode), k(t, "class", _ = "checkbox__wrapper " + /*consent*/
|
|
4088
|
+
e[64].tagCode + "__input svelte-1w14oq2");
|
|
4089
4089
|
},
|
|
4090
|
-
m(
|
|
4091
|
-
L(
|
|
4090
|
+
m(E, z) {
|
|
4091
|
+
L(E, t, z), w(t, r), w(t, o), w(t, a), w(a, s), h.m(u, s), w(s, d), w(t, b), w(t, f), w(t, C), v || (S = he(r, "input", P), v = !0);
|
|
4092
4092
|
},
|
|
4093
|
-
p(
|
|
4094
|
-
e =
|
|
4093
|
+
p(E, z) {
|
|
4094
|
+
e = E, z[0] & /*playerConsents*/
|
|
4095
4095
|
512 && n !== (n = /*consent*/
|
|
4096
|
-
e[64].status === "1") && (r.checked = n),
|
|
4096
|
+
e[64].status === "1") && (r.checked = n), z[0] & /*playerConsents*/
|
|
4097
4097
|
512 && i !== (i = `${/*consent*/
|
|
4098
|
-
e[64].tagCode}__input`) &&
|
|
4098
|
+
e[64].tagCode}__input`) && k(r, "id", i), z[0] & /*$_, playerConsents*/
|
|
4099
4099
|
66048 && u !== (u = /*$_*/
|
|
4100
4100
|
(e[16](`${/*consent*/
|
|
4101
4101
|
e[64].tagCode}__description`) || /*consent*/
|
|
4102
|
-
e[64].tagCode) + "") && h.p(u),
|
|
4102
|
+
e[64].tagCode) + "") && h.p(u), z[0] & /*playerConsents*/
|
|
4103
4103
|
512 && l !== (l = /*consent*/
|
|
4104
|
-
e[64].mustAccept ? " *" : "") &&
|
|
4105
|
-
512 &&
|
|
4106
|
-
e[64].tagCode}__input`) &&
|
|
4107
|
-
512 &&
|
|
4108
|
-
e[64].tagCode) &&
|
|
4104
|
+
e[64].mustAccept ? " *" : "") && pe(d, l), z[0] & /*playerConsents*/
|
|
4105
|
+
512 && m !== (m = `${/*consent*/
|
|
4106
|
+
e[64].tagCode}__input`) && k(a, "for", m), z[0] & /*playerConsents*/
|
|
4107
|
+
512 && p !== (p = "checkBoxError__" + /*consent*/
|
|
4108
|
+
e[64].tagCode) && k(f, "id", p), z[0] & /*playerConsents*/
|
|
4109
4109
|
512 && _ !== (_ = "checkbox__wrapper " + /*consent*/
|
|
4110
|
-
e[64].tagCode + "__input svelte-
|
|
4110
|
+
e[64].tagCode + "__input svelte-1w14oq2") && k(t, "class", _);
|
|
4111
4111
|
},
|
|
4112
|
-
d(
|
|
4113
|
-
|
|
4112
|
+
d(E) {
|
|
4113
|
+
E && j(t), v = !1, S();
|
|
4114
4114
|
}
|
|
4115
4115
|
};
|
|
4116
4116
|
}
|
|
@@ -4121,75 +4121,75 @@ function Ct(e) {
|
|
|
4121
4121
|
), n, i = (
|
|
4122
4122
|
/*$_*/
|
|
4123
4123
|
e[16]("description")
|
|
4124
|
-
), o = r &&
|
|
4124
|
+
), o = r && wt(e), a = i && St(e);
|
|
4125
4125
|
return {
|
|
4126
4126
|
c() {
|
|
4127
|
-
t =
|
|
4127
|
+
t = A("div"), o && o.c(), n = q(), a && a.c(), k(t, "class", "PlayerConsentsHeader svelte-1w14oq2");
|
|
4128
4128
|
},
|
|
4129
4129
|
m(s, h) {
|
|
4130
|
-
L(s, t, h), o && o.m(t, null),
|
|
4130
|
+
L(s, t, h), o && o.m(t, null), w(t, n), a && a.m(t, null);
|
|
4131
4131
|
},
|
|
4132
4132
|
p(s, h) {
|
|
4133
4133
|
h[0] & /*$_*/
|
|
4134
4134
|
65536 && (r = /*$_*/
|
|
4135
|
-
s[16]("title")), r ? o ? o.p(s, h) : (o =
|
|
4135
|
+
s[16]("title")), r ? o ? o.p(s, h) : (o = wt(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), h[0] & /*$_*/
|
|
4136
4136
|
65536 && (i = /*$_*/
|
|
4137
|
-
s[16]("description")), i ? a ? a.p(s, h) : (a =
|
|
4137
|
+
s[16]("description")), i ? a ? a.p(s, h) : (a = St(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4138
4138
|
},
|
|
4139
4139
|
d(s) {
|
|
4140
4140
|
s && j(t), o && o.d(), a && a.d();
|
|
4141
4141
|
}
|
|
4142
4142
|
};
|
|
4143
4143
|
}
|
|
4144
|
-
function
|
|
4144
|
+
function wt(e) {
|
|
4145
4145
|
let t, r = (
|
|
4146
4146
|
/*$_*/
|
|
4147
4147
|
e[16]("title") + ""
|
|
4148
4148
|
), n;
|
|
4149
4149
|
return {
|
|
4150
4150
|
c() {
|
|
4151
|
-
t =
|
|
4151
|
+
t = A("h2"), n = ge(r), k(t, "class", "PlayerConsentsTitle");
|
|
4152
4152
|
},
|
|
4153
4153
|
m(i, o) {
|
|
4154
|
-
L(i, t, o),
|
|
4154
|
+
L(i, t, o), w(t, n);
|
|
4155
4155
|
},
|
|
4156
4156
|
p(i, o) {
|
|
4157
4157
|
o[0] & /*$_*/
|
|
4158
4158
|
65536 && r !== (r = /*$_*/
|
|
4159
|
-
i[16]("title") + "") &&
|
|
4159
|
+
i[16]("title") + "") && pe(n, r);
|
|
4160
4160
|
},
|
|
4161
4161
|
d(i) {
|
|
4162
4162
|
i && j(t);
|
|
4163
4163
|
}
|
|
4164
4164
|
};
|
|
4165
4165
|
}
|
|
4166
|
-
function
|
|
4166
|
+
function St(e) {
|
|
4167
4167
|
let t, r = (
|
|
4168
4168
|
/*$_*/
|
|
4169
4169
|
e[16]("description") + ""
|
|
4170
4170
|
), n;
|
|
4171
4171
|
return {
|
|
4172
4172
|
c() {
|
|
4173
|
-
t =
|
|
4173
|
+
t = A("p"), n = ge(r), k(t, "class", "PlayerConsentsDescription");
|
|
4174
4174
|
},
|
|
4175
4175
|
m(i, o) {
|
|
4176
|
-
L(i, t, o),
|
|
4176
|
+
L(i, t, o), w(t, n);
|
|
4177
4177
|
},
|
|
4178
4178
|
p(i, o) {
|
|
4179
4179
|
o[0] & /*$_*/
|
|
4180
4180
|
65536 && r !== (r = /*$_*/
|
|
4181
|
-
i[16]("description") + "") &&
|
|
4181
|
+
i[16]("description") + "") && pe(n, r);
|
|
4182
4182
|
},
|
|
4183
4183
|
d(i) {
|
|
4184
4184
|
i && j(t);
|
|
4185
4185
|
}
|
|
4186
4186
|
};
|
|
4187
4187
|
}
|
|
4188
|
-
function
|
|
4188
|
+
function xt(e) {
|
|
4189
4189
|
let t;
|
|
4190
4190
|
return {
|
|
4191
4191
|
c() {
|
|
4192
|
-
t =
|
|
4192
|
+
t = A("sup"), t.textContent = "*", k(t, "class", "ConsentRequired svelte-1w14oq2");
|
|
4193
4193
|
},
|
|
4194
4194
|
m(r, n) {
|
|
4195
4195
|
L(r, t, n);
|
|
@@ -4208,7 +4208,7 @@ function Tt(e) {
|
|
|
4208
4208
|
);
|
|
4209
4209
|
return {
|
|
4210
4210
|
c() {
|
|
4211
|
-
t =
|
|
4211
|
+
t = A("p"), k(t, "class", "ConsentDescription svelte-1w14oq2");
|
|
4212
4212
|
},
|
|
4213
4213
|
m(n, i) {
|
|
4214
4214
|
L(n, t, i), t.innerHTML = r;
|
|
@@ -4231,71 +4231,71 @@ function Mt(e) {
|
|
|
4231
4231
|
(e[16](`${/*consent*/
|
|
4232
4232
|
e[64].tagCode}__name`) || /*consent*/
|
|
4233
4233
|
e[64].friendlyName) + ""
|
|
4234
|
-
), a, s, h, u, l, d,
|
|
4234
|
+
), a, s, h, u, l, d, m, b, f, p, C, _ = (
|
|
4235
4235
|
/*consent*/
|
|
4236
|
-
e[64].mustAccept === !0 &&
|
|
4237
|
-
),
|
|
4236
|
+
e[64].mustAccept === !0 && xt()
|
|
4237
|
+
), v = (
|
|
4238
4238
|
/*displayconsentdescription*/
|
|
4239
4239
|
e[4] === "true" && Tt(e)
|
|
4240
4240
|
);
|
|
4241
|
-
function
|
|
4241
|
+
function S(...P) {
|
|
4242
4242
|
return (
|
|
4243
4243
|
/*input_handler*/
|
|
4244
4244
|
e[29](
|
|
4245
4245
|
/*consent*/
|
|
4246
4246
|
e[64],
|
|
4247
|
-
...
|
|
4247
|
+
...P
|
|
4248
4248
|
)
|
|
4249
4249
|
);
|
|
4250
4250
|
}
|
|
4251
4251
|
return {
|
|
4252
4252
|
c() {
|
|
4253
|
-
t =
|
|
4253
|
+
t = A("div"), r = A("div"), n = A("h4"), i = new Ot(!1), a = q(), _ && _.c(), s = q(), v && v.c(), h = q(), u = A("label"), l = A("input"), b = q(), f = A("span"), i.a = a, k(n, "class", "ConsentName svelte-1w14oq2"), k(r, "class", "ConsentContent"), k(l, "type", "checkbox"), l.disabled = d = /*consent*/
|
|
4254
4254
|
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4255
4255
|
e[12][
|
|
4256
4256
|
/*consent*/
|
|
4257
4257
|
e[64].tagCode
|
|
4258
|
-
] === !0, l.checked =
|
|
4258
|
+
] === !0, l.checked = m = /*consentsState*/
|
|
4259
4259
|
e[13][
|
|
4260
4260
|
/*consent*/
|
|
4261
4261
|
e[64].tagCode
|
|
4262
|
-
],
|
|
4262
|
+
], k(l, "class", "svelte-1w14oq2"), k(f, "class", "Slider Round svelte-1w14oq2"), k(u, "class", "ToggleSwitch svelte-1w14oq2"), k(t, "class", "ConsentItem svelte-1w14oq2");
|
|
4263
4263
|
},
|
|
4264
|
-
m(
|
|
4265
|
-
L(
|
|
4264
|
+
m(P, E) {
|
|
4265
|
+
L(P, t, E), w(t, r), w(r, n), i.m(o, n), w(n, a), _ && _.m(n, null), w(r, s), v && v.m(r, null), w(t, h), w(t, u), w(u, l), w(u, b), w(u, f), p || (C = he(l, "input", S), p = !0);
|
|
4266
4266
|
},
|
|
4267
|
-
p(
|
|
4268
|
-
e =
|
|
4267
|
+
p(P, E) {
|
|
4268
|
+
e = P, E[0] & /*$_, playerConsents, consentsCategories*/
|
|
4269
4269
|
66304 && o !== (o = /*$_*/
|
|
4270
4270
|
(e[16](`${/*consent*/
|
|
4271
4271
|
e[64].tagCode}__name`) || /*consent*/
|
|
4272
4272
|
e[64].friendlyName) + "") && i.p(o), /*consent*/
|
|
4273
|
-
e[64].mustAccept === !0 ? _ || (_ =
|
|
4274
|
-
e[4] === "true" ?
|
|
4273
|
+
e[64].mustAccept === !0 ? _ || (_ = xt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
|
|
4274
|
+
e[4] === "true" ? v ? v.p(e, E) : (v = Tt(e), v.c(), v.m(r, null)) : v && (v.d(1), v = null), E[0] & /*playerConsents, consentsCategories, initialConsentsState*/
|
|
4275
4275
|
4864 && d !== (d = /*consent*/
|
|
4276
4276
|
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4277
4277
|
e[12][
|
|
4278
4278
|
/*consent*/
|
|
4279
4279
|
e[64].tagCode
|
|
4280
|
-
] === !0) && (l.disabled = d),
|
|
4281
|
-
8960 &&
|
|
4280
|
+
] === !0) && (l.disabled = d), E[0] & /*consentsState, playerConsents, consentsCategories*/
|
|
4281
|
+
8960 && m !== (m = /*consentsState*/
|
|
4282
4282
|
e[13][
|
|
4283
4283
|
/*consent*/
|
|
4284
4284
|
e[64].tagCode
|
|
4285
|
-
]) && (l.checked =
|
|
4285
|
+
]) && (l.checked = m);
|
|
4286
4286
|
},
|
|
4287
|
-
d(
|
|
4288
|
-
|
|
4287
|
+
d(P) {
|
|
4288
|
+
P && j(t), _ && _.d(), v && v.d(), p = !1, C();
|
|
4289
4289
|
}
|
|
4290
4290
|
};
|
|
4291
4291
|
}
|
|
4292
|
-
function
|
|
4292
|
+
function Nt(e) {
|
|
4293
4293
|
let t, r, n, i = (
|
|
4294
4294
|
/*$_*/
|
|
4295
4295
|
(e[16](`${/*category*/
|
|
4296
4296
|
e[61].categoryTagCode}__category`) || /*category*/
|
|
4297
4297
|
e[61].friendlyName) + ""
|
|
4298
|
-
), o, a, s, h, u, l, d,
|
|
4298
|
+
), o, a, s, h, u, l, d, m, b;
|
|
4299
4299
|
function f() {
|
|
4300
4300
|
e[26].call(
|
|
4301
4301
|
s,
|
|
@@ -4303,7 +4303,7 @@ function wt(e) {
|
|
|
4303
4303
|
e[61]
|
|
4304
4304
|
);
|
|
4305
4305
|
}
|
|
4306
|
-
function
|
|
4306
|
+
function p() {
|
|
4307
4307
|
return (
|
|
4308
4308
|
/*change_handler*/
|
|
4309
4309
|
e[27](
|
|
@@ -4312,88 +4312,88 @@ function wt(e) {
|
|
|
4312
4312
|
)
|
|
4313
4313
|
);
|
|
4314
4314
|
}
|
|
4315
|
-
function C(...
|
|
4315
|
+
function C(...S) {
|
|
4316
4316
|
return (
|
|
4317
4317
|
/*func*/
|
|
4318
4318
|
e[28](
|
|
4319
4319
|
/*category*/
|
|
4320
4320
|
e[61],
|
|
4321
|
-
...
|
|
4321
|
+
...S
|
|
4322
4322
|
)
|
|
4323
4323
|
);
|
|
4324
4324
|
}
|
|
4325
4325
|
let _ = K(
|
|
4326
4326
|
/*playerConsents*/
|
|
4327
4327
|
e[9].filter(C)
|
|
4328
|
-
),
|
|
4329
|
-
for (let
|
|
4330
|
-
|
|
4328
|
+
), v = [];
|
|
4329
|
+
for (let S = 0; S < _.length; S += 1)
|
|
4330
|
+
v[S] = Mt(Et(e, _, S));
|
|
4331
4331
|
return {
|
|
4332
4332
|
c() {
|
|
4333
|
-
t =
|
|
4334
|
-
for (let
|
|
4335
|
-
|
|
4336
|
-
|
|
4333
|
+
t = A("div"), r = A("div"), n = A("h3"), o = q(), a = A("label"), s = A("input"), h = q(), u = A("span"), l = q(), d = A("div");
|
|
4334
|
+
for (let S = 0; S < v.length; S += 1)
|
|
4335
|
+
v[S].c();
|
|
4336
|
+
k(s, "type", "checkbox"), k(s, "class", "svelte-1w14oq2"), k(u, "class", "Slider Round svelte-1w14oq2"), k(a, "class", "ToggleSwitch Big svelte-1w14oq2"), k(r, "class", "AccordionHeader svelte-1w14oq2"), k(d, "class", "AccordionContent svelte-1w14oq2"), k(t, "class", "AccordionItem svelte-1w14oq2");
|
|
4337
4337
|
},
|
|
4338
|
-
m(
|
|
4339
|
-
L(
|
|
4338
|
+
m(S, P) {
|
|
4339
|
+
L(S, t, P), w(t, r), w(r, n), n.innerHTML = i, w(r, o), w(r, a), w(a, s), s.checked = /*categoryToggle*/
|
|
4340
4340
|
e[11][
|
|
4341
4341
|
/*category*/
|
|
4342
4342
|
e[61].categoryTagCode
|
|
4343
|
-
],
|
|
4344
|
-
for (let
|
|
4345
|
-
|
|
4346
|
-
|
|
4343
|
+
], w(a, h), w(a, u), w(t, l), w(t, d);
|
|
4344
|
+
for (let E = 0; E < v.length; E += 1)
|
|
4345
|
+
v[E] && v[E].m(d, null);
|
|
4346
|
+
m || (b = [
|
|
4347
4347
|
he(s, "change", f),
|
|
4348
|
-
he(s, "change",
|
|
4349
|
-
],
|
|
4348
|
+
he(s, "change", p)
|
|
4349
|
+
], m = !0);
|
|
4350
4350
|
},
|
|
4351
|
-
p(
|
|
4352
|
-
if (e =
|
|
4351
|
+
p(S, P) {
|
|
4352
|
+
if (e = S, P[0] & /*$_, consentsCategories*/
|
|
4353
4353
|
65792 && i !== (i = /*$_*/
|
|
4354
4354
|
(e[16](`${/*category*/
|
|
4355
4355
|
e[61].categoryTagCode}__category`) || /*category*/
|
|
4356
|
-
e[61].friendlyName) + "") && (n.innerHTML = i),
|
|
4356
|
+
e[61].friendlyName) + "") && (n.innerHTML = i), P[0] & /*categoryToggle, consentsCategories*/
|
|
4357
4357
|
2304 && (s.checked = /*categoryToggle*/
|
|
4358
4358
|
e[11][
|
|
4359
4359
|
/*category*/
|
|
4360
4360
|
e[61].categoryTagCode
|
|
4361
|
-
]),
|
|
4361
|
+
]), P[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription*/
|
|
4362
4362
|
602896) {
|
|
4363
4363
|
_ = K(
|
|
4364
4364
|
/*playerConsents*/
|
|
4365
4365
|
e[9].filter(C)
|
|
4366
4366
|
);
|
|
4367
|
-
let
|
|
4368
|
-
for (
|
|
4369
|
-
const
|
|
4370
|
-
|
|
4367
|
+
let E;
|
|
4368
|
+
for (E = 0; E < _.length; E += 1) {
|
|
4369
|
+
const z = Et(e, _, E);
|
|
4370
|
+
v[E] ? v[E].p(z, P) : (v[E] = Mt(z), v[E].c(), v[E].m(d, null));
|
|
4371
4371
|
}
|
|
4372
|
-
for (;
|
|
4373
|
-
|
|
4374
|
-
|
|
4372
|
+
for (; E < v.length; E += 1)
|
|
4373
|
+
v[E].d(1);
|
|
4374
|
+
v.length = _.length;
|
|
4375
4375
|
}
|
|
4376
4376
|
},
|
|
4377
|
-
d(
|
|
4378
|
-
|
|
4377
|
+
d(S) {
|
|
4378
|
+
S && j(t), Qe(v, S), m = !1, Ht(b);
|
|
4379
4379
|
}
|
|
4380
4380
|
};
|
|
4381
4381
|
}
|
|
4382
|
-
function
|
|
4382
|
+
function At(e) {
|
|
4383
4383
|
let t, r, n, i, o;
|
|
4384
4384
|
return {
|
|
4385
4385
|
c() {
|
|
4386
|
-
t =
|
|
4386
|
+
t = A("div"), r = A("circle-exclamation-icon"), n = q(), i = A("strong"), o = ge(
|
|
4387
4387
|
/*errorMessage*/
|
|
4388
4388
|
e[6]
|
|
4389
|
-
), J(r, "class", "svelte-
|
|
4389
|
+
), J(r, "class", "svelte-1w14oq2"), k(i, "class", "ErrorMessage svelte-1w14oq2"), k(t, "class", "ConsentErrorContainer svelte-1w14oq2");
|
|
4390
4390
|
},
|
|
4391
4391
|
m(a, s) {
|
|
4392
|
-
L(a, t, s),
|
|
4392
|
+
L(a, t, s), w(t, r), w(t, n), w(t, i), w(i, o);
|
|
4393
4393
|
},
|
|
4394
4394
|
p(a, s) {
|
|
4395
4395
|
s[0] & /*errorMessage*/
|
|
4396
|
-
64 &&
|
|
4396
|
+
64 && pe(
|
|
4397
4397
|
o,
|
|
4398
4398
|
/*errorMessage*/
|
|
4399
4399
|
a[6]
|
|
@@ -4411,34 +4411,34 @@ function Oi(e) {
|
|
|
4411
4411
|
/*isLoading*/
|
|
4412
4412
|
a[10]
|
|
4413
4413
|
)
|
|
4414
|
-
return
|
|
4414
|
+
return zi;
|
|
4415
4415
|
if (
|
|
4416
4416
|
/*fatalError*/
|
|
4417
4417
|
a[7]
|
|
4418
4418
|
)
|
|
4419
|
-
return
|
|
4419
|
+
return Bi;
|
|
4420
4420
|
if (
|
|
4421
4421
|
/*session*/
|
|
4422
4422
|
a[0]
|
|
4423
4423
|
)
|
|
4424
|
-
return
|
|
4424
|
+
return Pi;
|
|
4425
4425
|
if (!/*session*/
|
|
4426
4426
|
a[0])
|
|
4427
|
-
return
|
|
4427
|
+
return Hi;
|
|
4428
4428
|
}
|
|
4429
4429
|
let i = n(e), o = i && i(e);
|
|
4430
4430
|
return {
|
|
4431
4431
|
c() {
|
|
4432
|
-
t =
|
|
4432
|
+
t = A("div"), r = A("div"), o && o.c(), k(r, "class", "ConsentsContainer svelte-1w14oq2"), k(t, "class", zr("") + " svelte-1w14oq2");
|
|
4433
4433
|
},
|
|
4434
4434
|
m(a, s) {
|
|
4435
|
-
L(a, t, s),
|
|
4435
|
+
L(a, t, s), w(t, r), o && o.m(r, null), e[32](r);
|
|
4436
4436
|
},
|
|
4437
4437
|
p(a, s) {
|
|
4438
4438
|
i === (i = n(a)) && o ? o.p(a, s) : (o && o.d(1), o = i && i(a), o && (o.c(), o.m(r, null)));
|
|
4439
4439
|
},
|
|
4440
|
-
i:
|
|
4441
|
-
o:
|
|
4440
|
+
i: X,
|
|
4441
|
+
o: X,
|
|
4442
4442
|
d(a) {
|
|
4443
4443
|
a && j(t), o && o.d(), e[32](null);
|
|
4444
4444
|
}
|
|
@@ -4446,62 +4446,62 @@ function Oi(e) {
|
|
|
4446
4446
|
}
|
|
4447
4447
|
function Ii(e, t, r) {
|
|
4448
4448
|
let n;
|
|
4449
|
-
|
|
4450
|
-
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl:
|
|
4449
|
+
Hr(e, xi, (c) => r(16, n = c));
|
|
4450
|
+
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl: m = "" } = t, { modalconsents: b = "false" } = t, f, p = !1, C = !1, _ = "", v = "", S = "", P = "", E = [], z = [], O = [], ae = !0, _e = !0, G = {}, ve = {}, W = {}, U = {}, se, be, R = {
|
|
4451
4451
|
none: { key: "0", value: "None" },
|
|
4452
4452
|
accepted: { key: "1", value: "Accepted" },
|
|
4453
4453
|
expired: { key: "2", value: "Expired" },
|
|
4454
4454
|
denied: { key: "3", value: "Denied" },
|
|
4455
4455
|
suspended: { key: "4", value: "Suspended" }
|
|
4456
4456
|
}, ye = !1;
|
|
4457
|
-
Object.keys(
|
|
4458
|
-
_t(c,
|
|
4457
|
+
Object.keys(vt).forEach((c) => {
|
|
4458
|
+
_t(c, vt[c]);
|
|
4459
4459
|
});
|
|
4460
4460
|
const ar = () => {
|
|
4461
4461
|
Ti(l);
|
|
4462
4462
|
}, sr = () => {
|
|
4463
|
-
let c = new URL(
|
|
4464
|
-
fetch(c.href).then((
|
|
4465
|
-
Object.keys(
|
|
4466
|
-
_t(T,
|
|
4463
|
+
let c = new URL(m);
|
|
4464
|
+
fetch(c.href).then((g) => g.json()).then((g) => {
|
|
4465
|
+
Object.keys(g).forEach((T) => {
|
|
4466
|
+
_t(T, g[T]);
|
|
4467
4467
|
});
|
|
4468
|
-
}).catch((
|
|
4469
|
-
console.log(
|
|
4468
|
+
}).catch((g) => {
|
|
4469
|
+
console.log(g);
|
|
4470
4470
|
});
|
|
4471
4471
|
}, lr = () => {
|
|
4472
|
-
i && (_ = i, C = !0), o && (
|
|
4473
|
-
},
|
|
4474
|
-
|
|
4475
|
-
}, le = async (c,
|
|
4472
|
+
i && (_ = i, C = !0), o && (v = o);
|
|
4473
|
+
}, Ee = (c, g = !1) => {
|
|
4474
|
+
g ? r(7, P = c) : (pr(), r(6, S = c));
|
|
4475
|
+
}, le = async (c, g, T, y = !1) => {
|
|
4476
4476
|
try {
|
|
4477
|
-
const
|
|
4478
|
-
if (!
|
|
4479
|
-
throw new Error(n(
|
|
4480
|
-
const I = await
|
|
4481
|
-
return C ? I : I.filter((
|
|
4482
|
-
} catch (
|
|
4483
|
-
throw
|
|
4484
|
-
|
|
4477
|
+
const x = await fetch(c, T);
|
|
4478
|
+
if (!x.ok)
|
|
4479
|
+
throw new Error(n(g));
|
|
4480
|
+
const I = await x.json();
|
|
4481
|
+
return C ? I : I.filter((F) => F.showOnRegister === !0);
|
|
4482
|
+
} catch (x) {
|
|
4483
|
+
throw Ee(
|
|
4484
|
+
x instanceof TypeError ? n(g) : x.message,
|
|
4485
4485
|
y
|
|
4486
|
-
),
|
|
4486
|
+
), x;
|
|
4487
4487
|
}
|
|
4488
4488
|
}, cr = async () => {
|
|
4489
4489
|
try {
|
|
4490
|
-
let c = [],
|
|
4491
|
-
if (C ? [c,
|
|
4492
|
-
let y = O.find((
|
|
4490
|
+
let c = [], g = [];
|
|
4491
|
+
if (C ? [c, g] = await $e() : c = await $e(), r(10, ae = !1), z = [...c], r(8, E = hr(z).sort((T, y) => T.categoryTagCode.localeCompare(y.categoryTagCode))), r(11, G = dr(E)), ve = { ...G }, r(9, O = [...g]), z.forEach((T) => {
|
|
4492
|
+
let y = O.find((x) => x.tagCode === T.tagCode);
|
|
4493
4493
|
y || (y = {
|
|
4494
4494
|
...T,
|
|
4495
4495
|
status: R.denied.value
|
|
4496
4496
|
}, O.push(y)), y.description = T.description, y.orderNumber = T.orderNumber;
|
|
4497
|
-
}),
|
|
4497
|
+
}), b === "true") {
|
|
4498
4498
|
if (r(9, O = O.filter((T) => T.status === R.expired.value)), O.length !== 0)
|
|
4499
4499
|
return;
|
|
4500
|
-
|
|
4500
|
+
Ee(n("wrongModalConfig"), !0);
|
|
4501
4501
|
}
|
|
4502
|
-
|
|
4502
|
+
mr();
|
|
4503
4503
|
} catch (c) {
|
|
4504
|
-
throw r(10, ae = !1),
|
|
4504
|
+
throw r(10, ae = !1), Ee(
|
|
4505
4505
|
c instanceof TypeError ? n("invalidUrl") : c.message,
|
|
4506
4506
|
!0
|
|
4507
4507
|
), c;
|
|
@@ -4510,10 +4510,10 @@ function Ii(e, t, r) {
|
|
|
4510
4510
|
const c = new URL(`${a}/api/v1/gm/consents`);
|
|
4511
4511
|
if (c.searchParams.append("Status", "Active"), !C)
|
|
4512
4512
|
return await le(c.href, "fetchConsentsError", { method: "GET" }, !0);
|
|
4513
|
-
const
|
|
4513
|
+
const g = new URL(`${a}/api/v1/gm/user-consents/${v}`);
|
|
4514
4514
|
return await Promise.all([
|
|
4515
4515
|
le(c.href, "fetchConsentsError", { method: "GET" }, !0),
|
|
4516
|
-
le(
|
|
4516
|
+
le(g.href, "fetchPlayerConsentsError", {
|
|
4517
4517
|
method: "GET",
|
|
4518
4518
|
headers: {
|
|
4519
4519
|
"X-SessionId": _,
|
|
@@ -4523,87 +4523,87 @@ function Ii(e, t, r) {
|
|
|
4523
4523
|
]);
|
|
4524
4524
|
}, ur = () => {
|
|
4525
4525
|
ye = !1;
|
|
4526
|
-
const c = new URL(`${a}/api/v2/gm/legislation/consents`),
|
|
4526
|
+
const c = new URL(`${a}/api/v2/gm/legislation/consents`), g = {
|
|
4527
4527
|
"Content-Type": "application/json",
|
|
4528
4528
|
Accept: "application/json"
|
|
4529
|
-
}, T = { method: "GET", headers:
|
|
4530
|
-
fetch(c.href, T).then((y) => y.ok ? y.json() : (ye = !0, y.json().then((
|
|
4529
|
+
}, T = { method: "GET", headers: g };
|
|
4530
|
+
fetch(c.href, T).then((y) => y.ok ? y.json() : (ye = !0, y.json().then((x) => (console.error(x), ke(x))))).then((y) => {
|
|
4531
4531
|
if (!ye) {
|
|
4532
|
-
if (
|
|
4532
|
+
if (z = y, localStorage.getItem("playerConsents")) {
|
|
4533
4533
|
try {
|
|
4534
4534
|
r(9, O = JSON.parse(localStorage.getItem("playerConsents")));
|
|
4535
|
-
} catch (
|
|
4536
|
-
return console.error(
|
|
4535
|
+
} catch (x) {
|
|
4536
|
+
return console.error(x), ke(x);
|
|
4537
4537
|
}
|
|
4538
4538
|
return;
|
|
4539
4539
|
}
|
|
4540
|
-
return r(9, O =
|
|
4541
|
-
id:
|
|
4540
|
+
return r(9, O = z.map((x) => ({
|
|
4541
|
+
id: x.id,
|
|
4542
4542
|
status: R.denied.key,
|
|
4543
|
-
friendlyName:
|
|
4544
|
-
tagCode:
|
|
4543
|
+
friendlyName: x.friendlyName,
|
|
4544
|
+
tagCode: x.tagCode,
|
|
4545
4545
|
selected: null,
|
|
4546
|
-
mustAccept:
|
|
4546
|
+
mustAccept: x.mustAccept
|
|
4547
4547
|
}))), localStorage.setItem("playerConsents", JSON.stringify(O)), O;
|
|
4548
4548
|
}
|
|
4549
|
-
}).catch((y) => (console.error(y),
|
|
4549
|
+
}).catch((y) => (console.error(y), ke(y))).finally(() => {
|
|
4550
4550
|
r(10, ae = !1);
|
|
4551
4551
|
});
|
|
4552
4552
|
}, hr = (c) => {
|
|
4553
|
-
const
|
|
4553
|
+
const g = /* @__PURE__ */ new Map();
|
|
4554
4554
|
return c.forEach((T) => {
|
|
4555
|
-
|
|
4556
|
-
}), Array.from(
|
|
4555
|
+
g.has(T.category.categoryTagCode) || g.set(T.category.categoryTagCode, T.category);
|
|
4556
|
+
}), Array.from(g.values());
|
|
4557
4557
|
}, dr = (c) => {
|
|
4558
|
-
const
|
|
4559
|
-
if (
|
|
4558
|
+
const g = localStorage.getItem("categoryToggle" + v);
|
|
4559
|
+
if (g === null) {
|
|
4560
4560
|
const T = c.reduce(
|
|
4561
|
-
(y,
|
|
4561
|
+
(y, x) => (y[x.categoryTagCode] = !1, y),
|
|
4562
4562
|
{}
|
|
4563
4563
|
);
|
|
4564
|
-
return localStorage.setItem("categoryToggle" +
|
|
4564
|
+
return localStorage.setItem("categoryToggle" + v, JSON.stringify(T)), T;
|
|
4565
4565
|
} else
|
|
4566
|
-
return JSON.parse(
|
|
4567
|
-
},
|
|
4566
|
+
return JSON.parse(g);
|
|
4567
|
+
}, mr = () => {
|
|
4568
4568
|
O.forEach((c) => {
|
|
4569
4569
|
r(12, W[c.tagCode] = c.status === R.accepted.value, W);
|
|
4570
4570
|
}), r(13, U = { ...W });
|
|
4571
|
-
},
|
|
4572
|
-
r(13, U = { ...W }), r(11,
|
|
4573
|
-
},
|
|
4571
|
+
}, pr = () => {
|
|
4572
|
+
r(13, U = { ...W }), r(11, G = { ...ve });
|
|
4573
|
+
}, gr = async () => {
|
|
4574
4574
|
if (!_e)
|
|
4575
4575
|
return;
|
|
4576
4576
|
_e = !1;
|
|
4577
|
-
const c = [],
|
|
4577
|
+
const c = [], g = [];
|
|
4578
4578
|
if (Object.keys(U).forEach((y) => {
|
|
4579
|
-
const
|
|
4580
|
-
U[y] !== W[y] && (
|
|
4579
|
+
const x = O.find((I) => I.tagCode === y);
|
|
4580
|
+
U[y] !== W[y] && (x ? c.push({
|
|
4581
4581
|
tagCode: y,
|
|
4582
4582
|
status: U[y] ? R.accepted.value : R.denied.value
|
|
4583
|
-
}) :
|
|
4583
|
+
}) : g.push({
|
|
4584
4584
|
tagCode: y,
|
|
4585
4585
|
status: U[y] ? R.accepted.value : R.denied.value
|
|
4586
4586
|
}));
|
|
4587
4587
|
}), !C) {
|
|
4588
|
-
localStorage.setItem("categoryToggle" +
|
|
4588
|
+
localStorage.setItem("categoryToggle" + v, JSON.stringify(G)), ve = { ...G }, window.postMessage(
|
|
4589
4589
|
{
|
|
4590
4590
|
type: "NewPlayerConsentData",
|
|
4591
|
-
data: JSON.stringify(
|
|
4591
|
+
data: JSON.stringify(g)
|
|
4592
4592
|
},
|
|
4593
4593
|
window.location.href
|
|
4594
4594
|
), _e = !0;
|
|
4595
4595
|
return;
|
|
4596
4596
|
}
|
|
4597
|
-
const T = new URL(`${a}/api/v1/gm/user-consents/${
|
|
4597
|
+
const T = new URL(`${a}/api/v1/gm/user-consents/${v}`);
|
|
4598
4598
|
try {
|
|
4599
4599
|
const y = await Promise.allSettled([
|
|
4600
|
-
|
|
4600
|
+
g.length > 0 && le(T.href, "updateConsentsError", {
|
|
4601
4601
|
method: "POST",
|
|
4602
4602
|
headers: {
|
|
4603
4603
|
"X-SessionId": _,
|
|
4604
4604
|
"Content-Type": "application/json"
|
|
4605
4605
|
},
|
|
4606
|
-
body: JSON.stringify({ userConsents:
|
|
4606
|
+
body: JSON.stringify({ userConsents: g })
|
|
4607
4607
|
}),
|
|
4608
4608
|
c.length > 0 && le(T.href, "updateConsentsError", {
|
|
4609
4609
|
method: "PATCH",
|
|
@@ -4614,12 +4614,12 @@ function Ii(e, t, r) {
|
|
|
4614
4614
|
body: JSON.stringify({ userConsents: c })
|
|
4615
4615
|
})
|
|
4616
4616
|
]);
|
|
4617
|
-
y.forEach((
|
|
4618
|
-
if (
|
|
4619
|
-
const
|
|
4620
|
-
r(13, U[
|
|
4617
|
+
y.forEach((x, I) => {
|
|
4618
|
+
if (x.status === "rejected" || x.value.ok === !1) {
|
|
4619
|
+
const F = I < g.length ? g[I] : c[I - g.length];
|
|
4620
|
+
r(13, U[F.tagCode] = W[F.tagCode], U);
|
|
4621
4621
|
}
|
|
4622
|
-
}), y.every((
|
|
4622
|
+
}), y.every((x) => x.status === "fulfilled") && (localStorage.setItem("categoryToggle" + v, JSON.stringify(G)), ve = { ...G }, window.postMessage(
|
|
4623
4623
|
{
|
|
4624
4624
|
type: "PlayerConsentUpdated",
|
|
4625
4625
|
success: !0
|
|
@@ -4627,7 +4627,7 @@ function Ii(e, t, r) {
|
|
|
4627
4627
|
window.location.href
|
|
4628
4628
|
), r(12, W = { ...U }));
|
|
4629
4629
|
} catch (y) {
|
|
4630
|
-
|
|
4630
|
+
Ee(y instanceof TypeError ? n("saveChangesError") : y.message), window.postMessage(
|
|
4631
4631
|
{
|
|
4632
4632
|
type: "PlayerConsentUpdated",
|
|
4633
4633
|
success: !1
|
|
@@ -4638,55 +4638,55 @@ function Ii(e, t, r) {
|
|
|
4638
4638
|
_e = !0, r(14, se = !1);
|
|
4639
4639
|
}
|
|
4640
4640
|
}, fr = (c) => {
|
|
4641
|
-
const
|
|
4641
|
+
const g = new URL(`${a}/api/v2/gm/legislation/consents`), T = {
|
|
4642
4642
|
"Content-Type": "application/json",
|
|
4643
4643
|
Accept: "application/json"
|
|
4644
4644
|
}, y = {
|
|
4645
4645
|
playerConsents: O,
|
|
4646
4646
|
registrationId: c
|
|
4647
|
-
},
|
|
4647
|
+
}, x = {
|
|
4648
4648
|
method: "POST",
|
|
4649
4649
|
body: JSON.stringify(y),
|
|
4650
4650
|
headers: T
|
|
4651
4651
|
};
|
|
4652
|
-
fetch(
|
|
4652
|
+
fetch(g.href, x).then((I) => {
|
|
4653
4653
|
I.ok || (ye = !0);
|
|
4654
|
-
}).catch((I) => (console.error(I),
|
|
4654
|
+
}).catch((I) => (console.error(I), ke(I))).finally(() => {
|
|
4655
4655
|
r(10, ae = !1);
|
|
4656
4656
|
});
|
|
4657
4657
|
}, et = (c) => {
|
|
4658
|
-
O.filter((
|
|
4659
|
-
|
|
4658
|
+
O.filter((g) => g.category.categoryTagCode === c).forEach((g) => {
|
|
4659
|
+
g.status = g.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, U[g.tagCode] = G[c] || !1, U);
|
|
4660
4660
|
}), r(14, se = tt());
|
|
4661
|
-
},
|
|
4662
|
-
const y = O.find((
|
|
4661
|
+
}, Be = (c, g, T) => {
|
|
4662
|
+
const y = O.find((F) => F.id === T), x = g ? "value" : "key";
|
|
4663
4663
|
let I;
|
|
4664
|
-
if (!
|
|
4665
|
-
const
|
|
4666
|
-
for (const ce of
|
|
4664
|
+
if (!g && y.mustAccept) {
|
|
4665
|
+
const F = Array.from(be.children);
|
|
4666
|
+
for (const ce of F)
|
|
4667
4667
|
if (I = Array.from(ce.children).find((Tr) => Tr.getAttribute("id") === `checkBoxError__${y.tagCode}`), I)
|
|
4668
4668
|
break;
|
|
4669
4669
|
}
|
|
4670
|
-
if (y.status === R.accepted[
|
|
4670
|
+
if (y.status === R.accepted[x] ? (y.status = R.denied[x], I && (I.innerHTML = n("requiredError"))) : (y.status = R.accepted[x], I && (I.innerHTML = "")), g) {
|
|
4671
4671
|
r(13, U[y.tagCode] = !U[y.tagCode], U);
|
|
4672
|
-
const
|
|
4673
|
-
r(11,
|
|
4672
|
+
const F = O.filter((ce) => ce.category.categoryTagCode === g.categoryTagCode).every((ce) => ce.status !== R.denied.value);
|
|
4673
|
+
r(11, G[g.categoryTagCode] = F, G);
|
|
4674
4674
|
}
|
|
4675
4675
|
_r();
|
|
4676
|
-
}, _r = ((c,
|
|
4676
|
+
}, _r = ((c, g) => {
|
|
4677
4677
|
let T;
|
|
4678
4678
|
return function(...y) {
|
|
4679
|
-
const
|
|
4679
|
+
const x = this;
|
|
4680
4680
|
clearTimeout(T), T = setTimeout(
|
|
4681
4681
|
() => {
|
|
4682
|
-
c.apply(
|
|
4682
|
+
c.apply(x, y);
|
|
4683
4683
|
},
|
|
4684
|
-
|
|
4684
|
+
g
|
|
4685
4685
|
);
|
|
4686
4686
|
};
|
|
4687
|
-
})(() =>
|
|
4687
|
+
})(() => vr(), 500), vr = () => {
|
|
4688
4688
|
r(14, se = tt()), i || (window.postMessage({ type: "isConsentsValid", isValid: se }), localStorage.setItem("playerConsents", JSON.stringify(O)));
|
|
4689
|
-
}, tt = () => O.filter((
|
|
4689
|
+
}, tt = () => O.filter((g) => O.some((T) => g.tagCode === T.tagCode && T.mustAccept && (g.status === R.denied.key || g.status === R.denied.value))).length === 0, ke = (c) => {
|
|
4690
4690
|
window.postMessage(
|
|
4691
4691
|
{
|
|
4692
4692
|
type: "WidgetNotification",
|
|
@@ -4694,46 +4694,46 @@ function Ii(e, t, r) {
|
|
|
4694
4694
|
},
|
|
4695
4695
|
window.location.href
|
|
4696
4696
|
);
|
|
4697
|
-
},
|
|
4697
|
+
}, br = (c) => {
|
|
4698
4698
|
c.data && c.data.type !== "setUpPlayerConsents" || fr(c.data.registerid);
|
|
4699
4699
|
};
|
|
4700
|
-
|
|
4700
|
+
Pr(() => {
|
|
4701
4701
|
setTimeout(
|
|
4702
4702
|
() => {
|
|
4703
|
-
r(25,
|
|
4703
|
+
r(25, p = !0);
|
|
4704
4704
|
},
|
|
4705
4705
|
50
|
|
4706
4706
|
);
|
|
4707
|
-
const c = (
|
|
4707
|
+
const c = (g) => br(g);
|
|
4708
4708
|
return window.addEventListener("message", c), () => {
|
|
4709
4709
|
window.removeEventListener("message", c);
|
|
4710
4710
|
};
|
|
4711
4711
|
});
|
|
4712
4712
|
function yr(c) {
|
|
4713
|
-
|
|
4713
|
+
G[c.categoryTagCode] = this.checked, r(11, G);
|
|
4714
4714
|
}
|
|
4715
|
-
const
|
|
4716
|
-
function
|
|
4715
|
+
const Er = (c) => et(c.categoryTagCode), kr = (c, g) => g.category.categoryTagCode === c.categoryTagCode, Cr = (c, g) => Be(g, c.category, c.id), wr = (c, g) => Be(g, null, c.id);
|
|
4716
|
+
function Sr(c) {
|
|
4717
4717
|
nt[c ? "unshift" : "push"](() => {
|
|
4718
|
-
|
|
4718
|
+
be = c, r(15, be);
|
|
4719
4719
|
});
|
|
4720
4720
|
}
|
|
4721
|
-
function
|
|
4721
|
+
function xr(c) {
|
|
4722
4722
|
nt[c ? "unshift" : "push"](() => {
|
|
4723
4723
|
f = c, r(5, f);
|
|
4724
4724
|
});
|
|
4725
4725
|
}
|
|
4726
4726
|
return e.$$set = (c) => {
|
|
4727
|
-
"session" in c && r(0, i = c.session), "userid" in c && r(20, o = c.userid), "endpoint" in c && r(21, a = c.endpoint), "clientstyling" in c && r(1, s = c.clientstyling), "clientstylingurl" in c && r(2, h = c.clientstylingurl), "mbsource" in c && r(3, u = c.mbsource), "lang" in c && r(22, l = c.lang), "displayconsentdescription" in c && r(4, d = c.displayconsentdescription), "translationurl" in c && r(23,
|
|
4727
|
+
"session" in c && r(0, i = c.session), "userid" in c && r(20, o = c.userid), "endpoint" in c && r(21, a = c.endpoint), "clientstyling" in c && r(1, s = c.clientstyling), "clientstylingurl" in c && r(2, h = c.clientstylingurl), "mbsource" in c && r(3, u = c.mbsource), "lang" in c && r(22, l = c.lang), "displayconsentdescription" in c && r(4, d = c.displayconsentdescription), "translationurl" in c && r(23, m = c.translationurl), "modalconsents" in c && r(24, b = c.modalconsents);
|
|
4728
4728
|
}, e.$$.update = () => {
|
|
4729
4729
|
e.$$.dirty[0] & /*isMounted, session*/
|
|
4730
|
-
33554433 &&
|
|
4730
|
+
33554433 && p && i && (lr(), cr()), e.$$.dirty[0] & /*session*/
|
|
4731
4731
|
1 && (i || ur()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4732
4732
|
34 && s && f && Or(f, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4733
4733
|
36 && h && f && Ir(f, h), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4734
4734
|
40 && f && jr(f, `${u}.Style`), e.$$.dirty[0] & /*lang*/
|
|
4735
4735
|
4194304 && l && ar(), e.$$.dirty[0] & /*translationurl*/
|
|
4736
|
-
8388608 &&
|
|
4736
|
+
8388608 && m && sr();
|
|
4737
4737
|
}, [
|
|
4738
4738
|
i,
|
|
4739
4739
|
s,
|
|
@@ -4741,38 +4741,38 @@ function Ii(e, t, r) {
|
|
|
4741
4741
|
u,
|
|
4742
4742
|
d,
|
|
4743
4743
|
f,
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4744
|
+
S,
|
|
4745
|
+
P,
|
|
4746
|
+
E,
|
|
4747
4747
|
O,
|
|
4748
4748
|
ae,
|
|
4749
|
-
|
|
4749
|
+
G,
|
|
4750
4750
|
W,
|
|
4751
4751
|
U,
|
|
4752
4752
|
se,
|
|
4753
|
-
|
|
4753
|
+
be,
|
|
4754
4754
|
n,
|
|
4755
|
-
|
|
4755
|
+
gr,
|
|
4756
4756
|
et,
|
|
4757
|
-
|
|
4757
|
+
Be,
|
|
4758
4758
|
o,
|
|
4759
4759
|
a,
|
|
4760
4760
|
l,
|
|
4761
|
-
g,
|
|
4762
|
-
v,
|
|
4763
4761
|
m,
|
|
4762
|
+
b,
|
|
4763
|
+
p,
|
|
4764
4764
|
yr,
|
|
4765
|
-
kr,
|
|
4766
4765
|
Er,
|
|
4766
|
+
kr,
|
|
4767
4767
|
Cr,
|
|
4768
|
+
wr,
|
|
4768
4769
|
Sr,
|
|
4769
|
-
xr
|
|
4770
|
-
zr
|
|
4770
|
+
xr
|
|
4771
4771
|
];
|
|
4772
4772
|
}
|
|
4773
|
-
class ji extends
|
|
4773
|
+
class ji extends Bt {
|
|
4774
4774
|
constructor(t) {
|
|
4775
|
-
super(),
|
|
4775
|
+
super(), zt(
|
|
4776
4776
|
this,
|
|
4777
4777
|
t,
|
|
4778
4778
|
Ii,
|
|
@@ -4790,7 +4790,7 @@ class ji extends Pt {
|
|
|
4790
4790
|
translationurl: 23,
|
|
4791
4791
|
modalconsents: 24
|
|
4792
4792
|
},
|
|
4793
|
-
|
|
4793
|
+
Ai,
|
|
4794
4794
|
[-1, -1, -1]
|
|
4795
4795
|
);
|
|
4796
4796
|
}
|
|
@@ -4798,64 +4798,64 @@ class ji extends Pt {
|
|
|
4798
4798
|
return this.$$.ctx[0];
|
|
4799
4799
|
}
|
|
4800
4800
|
set session(t) {
|
|
4801
|
-
this.$$set({ session: t }),
|
|
4801
|
+
this.$$set({ session: t }), V();
|
|
4802
4802
|
}
|
|
4803
4803
|
get userid() {
|
|
4804
4804
|
return this.$$.ctx[20];
|
|
4805
4805
|
}
|
|
4806
4806
|
set userid(t) {
|
|
4807
|
-
this.$$set({ userid: t }),
|
|
4807
|
+
this.$$set({ userid: t }), V();
|
|
4808
4808
|
}
|
|
4809
4809
|
get endpoint() {
|
|
4810
4810
|
return this.$$.ctx[21];
|
|
4811
4811
|
}
|
|
4812
4812
|
set endpoint(t) {
|
|
4813
|
-
this.$$set({ endpoint: t }),
|
|
4813
|
+
this.$$set({ endpoint: t }), V();
|
|
4814
4814
|
}
|
|
4815
4815
|
get clientstyling() {
|
|
4816
4816
|
return this.$$.ctx[1];
|
|
4817
4817
|
}
|
|
4818
4818
|
set clientstyling(t) {
|
|
4819
|
-
this.$$set({ clientstyling: t }),
|
|
4819
|
+
this.$$set({ clientstyling: t }), V();
|
|
4820
4820
|
}
|
|
4821
4821
|
get clientstylingurl() {
|
|
4822
4822
|
return this.$$.ctx[2];
|
|
4823
4823
|
}
|
|
4824
4824
|
set clientstylingurl(t) {
|
|
4825
|
-
this.$$set({ clientstylingurl: t }),
|
|
4825
|
+
this.$$set({ clientstylingurl: t }), V();
|
|
4826
4826
|
}
|
|
4827
4827
|
get mbsource() {
|
|
4828
4828
|
return this.$$.ctx[3];
|
|
4829
4829
|
}
|
|
4830
4830
|
set mbsource(t) {
|
|
4831
|
-
this.$$set({ mbsource: t }),
|
|
4831
|
+
this.$$set({ mbsource: t }), V();
|
|
4832
4832
|
}
|
|
4833
4833
|
get lang() {
|
|
4834
4834
|
return this.$$.ctx[22];
|
|
4835
4835
|
}
|
|
4836
4836
|
set lang(t) {
|
|
4837
|
-
this.$$set({ lang: t }),
|
|
4837
|
+
this.$$set({ lang: t }), V();
|
|
4838
4838
|
}
|
|
4839
4839
|
get displayconsentdescription() {
|
|
4840
4840
|
return this.$$.ctx[4];
|
|
4841
4841
|
}
|
|
4842
4842
|
set displayconsentdescription(t) {
|
|
4843
|
-
this.$$set({ displayconsentdescription: t }),
|
|
4843
|
+
this.$$set({ displayconsentdescription: t }), V();
|
|
4844
4844
|
}
|
|
4845
4845
|
get translationurl() {
|
|
4846
4846
|
return this.$$.ctx[23];
|
|
4847
4847
|
}
|
|
4848
4848
|
set translationurl(t) {
|
|
4849
|
-
this.$$set({ translationurl: t }),
|
|
4849
|
+
this.$$set({ translationurl: t }), V();
|
|
4850
4850
|
}
|
|
4851
4851
|
get modalconsents() {
|
|
4852
4852
|
return this.$$.ctx[24];
|
|
4853
4853
|
}
|
|
4854
4854
|
set modalconsents(t) {
|
|
4855
|
-
this.$$set({ modalconsents: t }),
|
|
4855
|
+
this.$$set({ modalconsents: t }), V();
|
|
4856
4856
|
}
|
|
4857
4857
|
}
|
|
4858
|
-
|
|
4858
|
+
Pt(ji, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
|
|
4859
4859
|
export {
|
|
4860
4860
|
ji as P
|
|
4861
4861
|
};
|