@everymatrix/player-consents 1.59.2 → 1.60.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-DAjj2l81.cjs → PlayerConsents-Dl0Aiebh.cjs} +3 -3
- package/components/{PlayerConsents-Bvhxca3p.js → PlayerConsents-Dn3kBlLt.js} +551 -551
- package/components/{PlayerConsents-f416QJ42.js → PlayerConsents-be8DpBFC.js} +545 -545
- package/es2015/player-consents.cjs +1 -1
- package/es2015/player-consents.js +1 -1
- package/esnext/player-consents.js +1 -1
- package/package.json +2 -2
|
@@ -26,14 +26,14 @@ var de = (e, t, r) => new Promise((n, i) => {
|
|
|
26
26
|
}, s = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, a);
|
|
27
27
|
s((r = r.apply(e, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import { n as
|
|
29
|
+
import { n as q, s as Dr, r as Rt, a as Ke, i as Gr, c as Ut, S as Dt, b as Gt, d as ut, e as k, f as j, g as x, h as L, j as X, k as Fr, l as N, m as Vr, o as Xr, p as qr, q as Wr, t as ht, u as Zr, v as Jr, w as ee, x as $e, y as G, z as Qr, A as me, B as _e, C as be, D as Y, H as Ft } from "./GeneralAnimationLoading-kMKGPw5f.js";
|
|
30
30
|
const $ = [];
|
|
31
31
|
function Yr(e, t) {
|
|
32
32
|
return {
|
|
33
|
-
subscribe:
|
|
33
|
+
subscribe: Ae(e, t).subscribe
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Ae(e, t = q) {
|
|
37
37
|
let r;
|
|
38
38
|
const n = /* @__PURE__ */ new Set();
|
|
39
39
|
function i(s) {
|
|
@@ -51,9 +51,9 @@ function He(e, t = X) {
|
|
|
51
51
|
function o(s) {
|
|
52
52
|
i(s(e));
|
|
53
53
|
}
|
|
54
|
-
function a(s, h =
|
|
54
|
+
function a(s, h = q) {
|
|
55
55
|
const u = [s, h];
|
|
56
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
56
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || q), s(e), () => {
|
|
57
57
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
58
58
|
};
|
|
59
59
|
}
|
|
@@ -67,25 +67,25 @@ function oe(e, t, r) {
|
|
|
67
67
|
return Yr(r, (a, s) => {
|
|
68
68
|
let h = !1;
|
|
69
69
|
const u = [];
|
|
70
|
-
let l = 0, d =
|
|
71
|
-
const
|
|
70
|
+
let l = 0, d = q;
|
|
71
|
+
const g = () => {
|
|
72
72
|
if (l)
|
|
73
73
|
return;
|
|
74
74
|
d();
|
|
75
75
|
const f = t(n ? u[0] : u, a, s);
|
|
76
|
-
o ? a(f) : d =
|
|
76
|
+
o ? a(f) : d = Gr(f) ? f : q;
|
|
77
77
|
}, b = i.map(
|
|
78
|
-
(f,
|
|
78
|
+
(f, m) => Dr(
|
|
79
79
|
f,
|
|
80
80
|
(S) => {
|
|
81
|
-
u[
|
|
81
|
+
u[m] = S, l &= ~(1 << m), h && g();
|
|
82
82
|
},
|
|
83
83
|
() => {
|
|
84
|
-
l |= 1 <<
|
|
84
|
+
l |= 1 << m;
|
|
85
85
|
}
|
|
86
86
|
)
|
|
87
87
|
);
|
|
88
|
-
return h = !0,
|
|
88
|
+
return h = !0, g(), function() {
|
|
89
89
|
Rt(b), d(), h = !1;
|
|
90
90
|
};
|
|
91
91
|
});
|
|
@@ -132,7 +132,7 @@ function cn(e) {
|
|
|
132
132
|
function dt(e) {
|
|
133
133
|
return Object.keys(e).concat(cn(e));
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Vt(e, t) {
|
|
136
136
|
try {
|
|
137
137
|
return t in e;
|
|
138
138
|
} catch (r) {
|
|
@@ -140,14 +140,14 @@ function Ft(e, t) {
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
function un(e, t) {
|
|
143
|
-
return
|
|
143
|
+
return Vt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
144
144
|
}
|
|
145
145
|
function hn(e, t, r) {
|
|
146
146
|
var n = {};
|
|
147
147
|
return r.isMergeableObject(e) && dt(e).forEach(function(i) {
|
|
148
148
|
n[i] = pe(e[i], r);
|
|
149
149
|
}), dt(t).forEach(function(i) {
|
|
150
|
-
un(e, i) || (
|
|
150
|
+
un(e, i) || (Vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = ln(i, r)(e[i], t[i], r) : n[i] = pe(t[i], r));
|
|
151
151
|
}), n;
|
|
152
152
|
}
|
|
153
153
|
function te(e, t, r) {
|
|
@@ -162,8 +162,8 @@ te.all = function(t, r) {
|
|
|
162
162
|
return te(n, i, r);
|
|
163
163
|
}, {});
|
|
164
164
|
};
|
|
165
|
-
var dn = te,
|
|
166
|
-
const
|
|
165
|
+
var dn = te, gn = dn;
|
|
166
|
+
const mn = /* @__PURE__ */ Kr(gn);
|
|
167
167
|
/*! *****************************************************************************
|
|
168
168
|
Copyright (c) Microsoft Corporation.
|
|
169
169
|
|
|
@@ -178,32 +178,32 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
178
178
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
179
179
|
PERFORMANCE OF THIS SOFTWARE.
|
|
180
180
|
***************************************************************************** */
|
|
181
|
-
var
|
|
182
|
-
return
|
|
181
|
+
var Fe = function(e, t) {
|
|
182
|
+
return Fe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
183
183
|
r.__proto__ = n;
|
|
184
184
|
} || function(r, n) {
|
|
185
185
|
for (var i in n)
|
|
186
186
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
187
|
-
},
|
|
187
|
+
}, Fe(e, t);
|
|
188
188
|
};
|
|
189
|
-
function
|
|
189
|
+
function He(e, t) {
|
|
190
190
|
if (typeof t != "function" && t !== null)
|
|
191
191
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
192
|
-
|
|
192
|
+
Fe(e, t);
|
|
193
193
|
function r() {
|
|
194
194
|
this.constructor = e;
|
|
195
195
|
}
|
|
196
196
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
197
197
|
}
|
|
198
|
-
var
|
|
199
|
-
return
|
|
198
|
+
var A = function() {
|
|
199
|
+
return A = Object.assign || function(t) {
|
|
200
200
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
201
201
|
r = arguments[n];
|
|
202
202
|
for (var o in r)
|
|
203
203
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
204
204
|
}
|
|
205
205
|
return t;
|
|
206
|
-
},
|
|
206
|
+
}, A.apply(this, arguments);
|
|
207
207
|
};
|
|
208
208
|
function pn(e, t) {
|
|
209
209
|
var r = {};
|
|
@@ -221,7 +221,7 @@ function je(e, t, r) {
|
|
|
221
221
|
return e.concat(o || t);
|
|
222
222
|
}
|
|
223
223
|
function Le(e, t) {
|
|
224
|
-
var r = t && t.cache ? t.cache :
|
|
224
|
+
var r = t && t.cache ? t.cache : kn, n = t && t.serializer ? t.serializer : vn, i = t && t.strategy ? t.strategy : _n;
|
|
225
225
|
return i(e, {
|
|
226
226
|
cache: r,
|
|
227
227
|
serializer: n
|
|
@@ -230,11 +230,11 @@ function Le(e, t) {
|
|
|
230
230
|
function fn(e) {
|
|
231
231
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Xt(e, t, r, n) {
|
|
234
234
|
var i = fn(n) ? n : r(n), o = t.get(i);
|
|
235
235
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function qt(e, t, r) {
|
|
238
238
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
239
239
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
240
240
|
}
|
|
@@ -242,16 +242,16 @@ function et(e, t, r, n, i) {
|
|
|
242
242
|
return r.bind(t, e, n, i);
|
|
243
243
|
}
|
|
244
244
|
function _n(e, t) {
|
|
245
|
-
var r = e.length === 1 ?
|
|
245
|
+
var r = e.length === 1 ? Xt : qt;
|
|
246
246
|
return et(e, this, r, t.cache.create(), t.serializer);
|
|
247
247
|
}
|
|
248
248
|
function bn(e, t) {
|
|
249
|
-
return et(e, this,
|
|
249
|
+
return et(e, this, qt, t.cache.create(), t.serializer);
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
return et(e, this,
|
|
251
|
+
function yn(e, t) {
|
|
252
|
+
return et(e, this, Xt, t.cache.create(), t.serializer);
|
|
253
253
|
}
|
|
254
|
-
var
|
|
254
|
+
var vn = function() {
|
|
255
255
|
return JSON.stringify(arguments);
|
|
256
256
|
};
|
|
257
257
|
function tt() {
|
|
@@ -263,56 +263,56 @@ tt.prototype.get = function(e) {
|
|
|
263
263
|
tt.prototype.set = function(e, t) {
|
|
264
264
|
this.cache[e] = t;
|
|
265
265
|
};
|
|
266
|
-
var
|
|
266
|
+
var kn = {
|
|
267
267
|
create: function() {
|
|
268
268
|
return new tt();
|
|
269
269
|
}
|
|
270
270
|
}, Re = {
|
|
271
271
|
variadic: bn,
|
|
272
|
-
monadic:
|
|
273
|
-
},
|
|
272
|
+
monadic: yn
|
|
273
|
+
}, T;
|
|
274
274
|
(function(e) {
|
|
275
275
|
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";
|
|
276
|
-
})(
|
|
277
|
-
var
|
|
276
|
+
})(T || (T = {}));
|
|
277
|
+
var P;
|
|
278
278
|
(function(e) {
|
|
279
279
|
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";
|
|
280
|
-
})(
|
|
280
|
+
})(P || (P = {}));
|
|
281
281
|
var re;
|
|
282
282
|
(function(e) {
|
|
283
283
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
284
284
|
})(re || (re = {}));
|
|
285
|
-
function
|
|
286
|
-
return e.type ===
|
|
285
|
+
function gt(e) {
|
|
286
|
+
return e.type === P.literal;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
return e.type ===
|
|
288
|
+
function En(e) {
|
|
289
|
+
return e.type === P.argument;
|
|
290
290
|
}
|
|
291
291
|
function Wt(e) {
|
|
292
|
-
return e.type ===
|
|
292
|
+
return e.type === P.number;
|
|
293
293
|
}
|
|
294
294
|
function Zt(e) {
|
|
295
|
-
return e.type ===
|
|
295
|
+
return e.type === P.date;
|
|
296
296
|
}
|
|
297
297
|
function Jt(e) {
|
|
298
|
-
return e.type ===
|
|
298
|
+
return e.type === P.time;
|
|
299
299
|
}
|
|
300
300
|
function Qt(e) {
|
|
301
|
-
return e.type ===
|
|
301
|
+
return e.type === P.select;
|
|
302
302
|
}
|
|
303
303
|
function Yt(e) {
|
|
304
|
-
return e.type ===
|
|
304
|
+
return e.type === P.plural;
|
|
305
305
|
}
|
|
306
306
|
function Cn(e) {
|
|
307
|
-
return e.type ===
|
|
307
|
+
return e.type === P.pound;
|
|
308
308
|
}
|
|
309
309
|
function Kt(e) {
|
|
310
|
-
return e.type ===
|
|
310
|
+
return e.type === P.tag;
|
|
311
311
|
}
|
|
312
312
|
function $t(e) {
|
|
313
313
|
return !!(e && typeof e == "object" && e.type === re.number);
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function Ve(e) {
|
|
316
316
|
return !!(e && typeof e == "object" && e.type === re.dateTime);
|
|
317
317
|
}
|
|
318
318
|
var er = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Sn = /(?:[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;
|
|
@@ -407,12 +407,12 @@ function xn(e) {
|
|
|
407
407
|
return "";
|
|
408
408
|
}), t;
|
|
409
409
|
}
|
|
410
|
-
var
|
|
411
|
-
function
|
|
410
|
+
var zn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
411
|
+
function Mn(e) {
|
|
412
412
|
if (e.length === 0)
|
|
413
413
|
throw new Error("Number skeleton cannot be empty");
|
|
414
|
-
for (var t = e.split(
|
|
415
|
-
return
|
|
414
|
+
for (var t = e.split(zn).filter(function(g) {
|
|
415
|
+
return g.length > 0;
|
|
416
416
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
417
417
|
var o = i[n], a = o.split("/");
|
|
418
418
|
if (a.length === 0)
|
|
@@ -426,10 +426,10 @@ function Tn(e) {
|
|
|
426
426
|
}
|
|
427
427
|
return r;
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function Tn(e) {
|
|
430
430
|
return e.replace(/^(.*?)-/, "");
|
|
431
431
|
}
|
|
432
|
-
var
|
|
432
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, tr = /^(@+)?(\+|#+)?[rs]?$/g, wn = /(\*)(0+)|(#+)(0+)|(0+)/g, rr = /^(0+)$/;
|
|
433
433
|
function pt(e) {
|
|
434
434
|
var t = {};
|
|
435
435
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(tr, function(r, n, i) {
|
|
@@ -476,7 +476,7 @@ function nr(e) {
|
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function Nn(e) {
|
|
480
480
|
var t;
|
|
481
481
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
482
482
|
notation: "engineering"
|
|
@@ -494,7 +494,7 @@ function ft(e) {
|
|
|
494
494
|
var t = {}, r = nr(e);
|
|
495
495
|
return r || t;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function An(e) {
|
|
498
498
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
499
499
|
var i = n[r];
|
|
500
500
|
switch (i.stem) {
|
|
@@ -518,7 +518,7 @@ function Hn(e) {
|
|
|
518
518
|
continue;
|
|
519
519
|
case "measure-unit":
|
|
520
520
|
case "unit":
|
|
521
|
-
t.style = "unit", t.unit =
|
|
521
|
+
t.style = "unit", t.unit = Tn(i.options[0]);
|
|
522
522
|
continue;
|
|
523
523
|
case "compact-short":
|
|
524
524
|
case "K":
|
|
@@ -529,13 +529,13 @@ function Hn(e) {
|
|
|
529
529
|
t.notation = "compact", t.compactDisplay = "long";
|
|
530
530
|
continue;
|
|
531
531
|
case "scientific":
|
|
532
|
-
t =
|
|
533
|
-
return
|
|
532
|
+
t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
533
|
+
return A(A({}, h), ft(u));
|
|
534
534
|
}, {}));
|
|
535
535
|
continue;
|
|
536
536
|
case "engineering":
|
|
537
|
-
t =
|
|
538
|
-
return
|
|
537
|
+
t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
538
|
+
return A(A({}, h), ft(u));
|
|
539
539
|
}, {}));
|
|
540
540
|
continue;
|
|
541
541
|
case "notation-simple":
|
|
@@ -580,11 +580,11 @@ function Hn(e) {
|
|
|
580
580
|
case "integer-width":
|
|
581
581
|
if (i.options.length > 1)
|
|
582
582
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
583
|
-
i.options[0].replace(
|
|
583
|
+
i.options[0].replace(wn, function(h, u, l, d, g, b) {
|
|
584
584
|
if (u)
|
|
585
585
|
t.minimumIntegerDigits = l.length;
|
|
586
586
|
else {
|
|
587
|
-
if (d &&
|
|
587
|
+
if (d && g)
|
|
588
588
|
throw new Error("We currently do not support maximum integer digits");
|
|
589
589
|
if (b)
|
|
590
590
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -597,28 +597,28 @@ function Hn(e) {
|
|
|
597
597
|
t.minimumIntegerDigits = i.stem.length;
|
|
598
598
|
continue;
|
|
599
599
|
}
|
|
600
|
-
if (
|
|
600
|
+
if (mt.test(i.stem)) {
|
|
601
601
|
if (i.options.length > 1)
|
|
602
602
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
603
|
-
i.stem.replace(
|
|
604
|
-
return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length :
|
|
603
|
+
i.stem.replace(mt, function(h, u, l, d, g, b) {
|
|
604
|
+
return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : g && b ? (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
605
605
|
});
|
|
606
606
|
var o = i.options[0];
|
|
607
|
-
o === "w" ? t =
|
|
607
|
+
o === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = A(A({}, t), pt(o)));
|
|
608
608
|
continue;
|
|
609
609
|
}
|
|
610
610
|
if (tr.test(i.stem)) {
|
|
611
|
-
t =
|
|
611
|
+
t = A(A({}, t), pt(i.stem));
|
|
612
612
|
continue;
|
|
613
613
|
}
|
|
614
614
|
var a = nr(i.stem);
|
|
615
|
-
a && (t =
|
|
616
|
-
var s =
|
|
617
|
-
s && (t =
|
|
615
|
+
a && (t = A(A({}, t), a));
|
|
616
|
+
var s = Nn(i.stem);
|
|
617
|
+
s && (t = A(A({}, t), s));
|
|
618
618
|
}
|
|
619
619
|
return t;
|
|
620
620
|
}
|
|
621
|
-
var
|
|
621
|
+
var ze = {
|
|
622
622
|
"001": [
|
|
623
623
|
"H",
|
|
624
624
|
"h"
|
|
@@ -2033,13 +2033,13 @@ var Me = {
|
|
|
2033
2033
|
"h"
|
|
2034
2034
|
]
|
|
2035
2035
|
};
|
|
2036
|
-
function
|
|
2036
|
+
function Hn(e, t) {
|
|
2037
2037
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2038
2038
|
var i = e.charAt(n);
|
|
2039
2039
|
if (i === "j") {
|
|
2040
2040
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2041
2041
|
o++, n++;
|
|
2042
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2042
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Pn(t);
|
|
2043
2043
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2044
2044
|
r += h;
|
|
2045
2045
|
for (; a-- > 0; )
|
|
@@ -2049,7 +2049,7 @@ function Pn(e, t) {
|
|
|
2049
2049
|
}
|
|
2050
2050
|
return r;
|
|
2051
2051
|
}
|
|
2052
|
-
function
|
|
2052
|
+
function Pn(e) {
|
|
2053
2053
|
var t = e.hourCycle;
|
|
2054
2054
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2055
2055
|
e.hourCycles && // @ts-ignore
|
|
@@ -2068,21 +2068,21 @@ function Bn(e) {
|
|
|
2068
2068
|
}
|
|
2069
2069
|
var r = e.language, n;
|
|
2070
2070
|
r !== "root" && (n = e.maximize().region);
|
|
2071
|
-
var i =
|
|
2071
|
+
var i = ze[n || ""] || ze[r || ""] || ze["".concat(r, "-001")] || ze["001"];
|
|
2072
2072
|
return i[0];
|
|
2073
2073
|
}
|
|
2074
|
-
var Ue,
|
|
2075
|
-
function
|
|
2074
|
+
var Ue, Bn = new RegExp("^".concat(er.source, "*")), On = new RegExp("".concat(er.source, "*$"));
|
|
2075
|
+
function w(e, t) {
|
|
2076
2076
|
return { start: e, end: t };
|
|
2077
2077
|
}
|
|
2078
|
-
var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), jn = !!String.fromCodePoint, Ln = !!Object.fromEntries, Rn = !!String.prototype.codePointAt, Un = !!String.prototype.trimStart, Dn = !!String.prototype.trimEnd,
|
|
2078
|
+
var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), jn = !!String.fromCodePoint, Ln = !!Object.fromEntries, Rn = !!String.prototype.codePointAt, Un = !!String.prototype.trimStart, Dn = !!String.prototype.trimEnd, Gn = !!Number.isSafeInteger, Fn = Gn ? Number.isSafeInteger : function(e) {
|
|
2079
2079
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2080
|
-
},
|
|
2080
|
+
}, Xe = !0;
|
|
2081
2081
|
try {
|
|
2082
|
-
var
|
|
2083
|
-
|
|
2082
|
+
var Vn = or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2083
|
+
Xe = ((Ue = Vn.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
|
|
2084
2084
|
} catch (e) {
|
|
2085
|
-
|
|
2085
|
+
Xe = !1;
|
|
2086
2086
|
}
|
|
2087
2087
|
var _t = In ? (
|
|
2088
2088
|
// Native
|
|
@@ -2094,7 +2094,7 @@ var _t = In ? (
|
|
|
2094
2094
|
function(t, r, n) {
|
|
2095
2095
|
return t.slice(n, n + r.length) === r;
|
|
2096
2096
|
}
|
|
2097
|
-
),
|
|
2097
|
+
), qe = jn ? String.fromCodePoint : (
|
|
2098
2098
|
// IE11
|
|
2099
2099
|
function() {
|
|
2100
2100
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2132,7 +2132,7 @@ var _t = In ? (
|
|
|
2132
2132
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2133
2133
|
}
|
|
2134
2134
|
}
|
|
2135
|
-
),
|
|
2135
|
+
), Xn = Un ? (
|
|
2136
2136
|
// Native
|
|
2137
2137
|
function(t) {
|
|
2138
2138
|
return t.trimStart();
|
|
@@ -2140,9 +2140,9 @@ var _t = In ? (
|
|
|
2140
2140
|
) : (
|
|
2141
2141
|
// Ponyfill
|
|
2142
2142
|
function(t) {
|
|
2143
|
-
return t.replace(
|
|
2143
|
+
return t.replace(Bn, "");
|
|
2144
2144
|
}
|
|
2145
|
-
),
|
|
2145
|
+
), qn = Dn ? (
|
|
2146
2146
|
// Native
|
|
2147
2147
|
function(t) {
|
|
2148
2148
|
return t.trimEnd();
|
|
@@ -2157,12 +2157,12 @@ function or(e, t) {
|
|
|
2157
2157
|
return new RegExp(e, t);
|
|
2158
2158
|
}
|
|
2159
2159
|
var We;
|
|
2160
|
-
if (
|
|
2161
|
-
var
|
|
2160
|
+
if (Xe) {
|
|
2161
|
+
var yt = or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2162
2162
|
We = function(t, r) {
|
|
2163
2163
|
var n;
|
|
2164
|
-
|
|
2165
|
-
var i =
|
|
2164
|
+
yt.lastIndex = r;
|
|
2165
|
+
var i = yt.exec(t);
|
|
2166
2166
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2167
2167
|
};
|
|
2168
2168
|
} else
|
|
@@ -2173,7 +2173,7 @@ if (Ve) {
|
|
|
2173
2173
|
break;
|
|
2174
2174
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2175
2175
|
}
|
|
2176
|
-
return
|
|
2176
|
+
return qe.apply(void 0, n);
|
|
2177
2177
|
};
|
|
2178
2178
|
var Wn = (
|
|
2179
2179
|
/** @class */
|
|
@@ -2199,13 +2199,13 @@ var Wn = (
|
|
|
2199
2199
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2200
2200
|
var s = this.clonePosition();
|
|
2201
2201
|
this.bump(), i.push({
|
|
2202
|
-
type:
|
|
2203
|
-
location:
|
|
2202
|
+
type: P.pound,
|
|
2203
|
+
location: w(s, this.clonePosition())
|
|
2204
2204
|
});
|
|
2205
2205
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2206
2206
|
if (n)
|
|
2207
2207
|
break;
|
|
2208
|
-
return this.error(
|
|
2208
|
+
return this.error(T.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
|
|
2209
2209
|
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
|
2210
2210
|
var a = this.parseTag(t, r);
|
|
2211
2211
|
if (a.err)
|
|
@@ -2227,9 +2227,9 @@ var Wn = (
|
|
|
2227
2227
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2228
2228
|
return {
|
|
2229
2229
|
val: {
|
|
2230
|
-
type:
|
|
2230
|
+
type: P.literal,
|
|
2231
2231
|
value: "<".concat(i, "/>"),
|
|
2232
|
-
location:
|
|
2232
|
+
location: w(n, this.clonePosition())
|
|
2233
2233
|
},
|
|
2234
2234
|
err: null
|
|
2235
2235
|
};
|
|
@@ -2240,21 +2240,21 @@ var Wn = (
|
|
|
2240
2240
|
var a = o.val, s = this.clonePosition();
|
|
2241
2241
|
if (this.bumpIf("</")) {
|
|
2242
2242
|
if (this.isEOF() || !Ze(this.char()))
|
|
2243
|
-
return this.error(
|
|
2243
|
+
return this.error(T.INVALID_TAG, w(s, this.clonePosition()));
|
|
2244
2244
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2245
|
-
return i !== u ? this.error(
|
|
2245
|
+
return i !== u ? this.error(T.UNMATCHED_CLOSING_TAG, w(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2246
2246
|
val: {
|
|
2247
|
-
type:
|
|
2247
|
+
type: P.tag,
|
|
2248
2248
|
value: i,
|
|
2249
2249
|
children: a,
|
|
2250
|
-
location:
|
|
2250
|
+
location: w(n, this.clonePosition())
|
|
2251
2251
|
},
|
|
2252
2252
|
err: null
|
|
2253
|
-
} : this.error(
|
|
2253
|
+
} : this.error(T.INVALID_TAG, w(s, this.clonePosition())));
|
|
2254
2254
|
} else
|
|
2255
|
-
return this.error(
|
|
2255
|
+
return this.error(T.UNCLOSED_TAG, w(n, this.clonePosition()));
|
|
2256
2256
|
} else
|
|
2257
|
-
return this.error(
|
|
2257
|
+
return this.error(T.INVALID_TAG, w(n, this.clonePosition()));
|
|
2258
2258
|
}, e.prototype.parseTagName = function() {
|
|
2259
2259
|
var t = this.offset();
|
|
2260
2260
|
for (this.bump(); !this.isEOF() && Jn(this.char()); )
|
|
@@ -2279,9 +2279,9 @@ var Wn = (
|
|
|
2279
2279
|
}
|
|
2280
2280
|
break;
|
|
2281
2281
|
}
|
|
2282
|
-
var h =
|
|
2282
|
+
var h = w(n, this.clonePosition());
|
|
2283
2283
|
return {
|
|
2284
|
-
val: { type:
|
|
2284
|
+
val: { type: P.literal, value: i, location: h },
|
|
2285
2285
|
err: null
|
|
2286
2286
|
};
|
|
2287
2287
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2320,49 +2320,49 @@ var Wn = (
|
|
|
2320
2320
|
r.push(n);
|
|
2321
2321
|
this.bump();
|
|
2322
2322
|
}
|
|
2323
|
-
return
|
|
2323
|
+
return qe.apply(void 0, r);
|
|
2324
2324
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2325
2325
|
if (this.isEOF())
|
|
2326
2326
|
return null;
|
|
2327
2327
|
var n = this.char();
|
|
2328
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2328
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qe(n));
|
|
2329
2329
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2330
2330
|
var n = this.clonePosition();
|
|
2331
2331
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2332
|
-
return this.error(
|
|
2332
|
+
return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
|
|
2333
2333
|
if (this.char() === 125)
|
|
2334
|
-
return this.bump(), this.error(
|
|
2334
|
+
return this.bump(), this.error(T.EMPTY_ARGUMENT, w(n, this.clonePosition()));
|
|
2335
2335
|
var i = this.parseIdentifierIfPossible().value;
|
|
2336
2336
|
if (!i)
|
|
2337
|
-
return this.error(
|
|
2337
|
+
return this.error(T.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
|
2338
2338
|
if (this.bumpSpace(), this.isEOF())
|
|
2339
|
-
return this.error(
|
|
2339
|
+
return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
|
|
2340
2340
|
switch (this.char()) {
|
|
2341
2341
|
case 125:
|
|
2342
2342
|
return this.bump(), {
|
|
2343
2343
|
val: {
|
|
2344
|
-
type:
|
|
2344
|
+
type: P.argument,
|
|
2345
2345
|
// value does not include the opening and closing braces.
|
|
2346
2346
|
value: i,
|
|
2347
|
-
location:
|
|
2347
|
+
location: w(n, this.clonePosition())
|
|
2348
2348
|
},
|
|
2349
2349
|
err: null
|
|
2350
2350
|
};
|
|
2351
2351
|
case 44:
|
|
2352
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2352
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2353
2353
|
default:
|
|
2354
|
-
return this.error(
|
|
2354
|
+
return this.error(T.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
|
2355
2355
|
}
|
|
2356
2356
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2357
2357
|
var t = this.clonePosition(), r = this.offset(), n = We(this.message, r), i = r + n.length;
|
|
2358
2358
|
this.bumpTo(i);
|
|
2359
|
-
var o = this.clonePosition(), a =
|
|
2359
|
+
var o = this.clonePosition(), a = w(t, o);
|
|
2360
2360
|
return { value: n, location: a };
|
|
2361
2361
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2362
2362
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2363
2363
|
switch (s) {
|
|
2364
2364
|
case "":
|
|
2365
|
-
return this.error(
|
|
2365
|
+
return this.error(T.EXPECT_ARGUMENT_TYPE, w(a, h));
|
|
2366
2366
|
case "number":
|
|
2367
2367
|
case "date":
|
|
2368
2368
|
case "time": {
|
|
@@ -2373,46 +2373,46 @@ var Wn = (
|
|
|
2373
2373
|
var l = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
2374
2374
|
if (d.err)
|
|
2375
2375
|
return d;
|
|
2376
|
-
var
|
|
2377
|
-
if (
|
|
2378
|
-
return this.error(
|
|
2379
|
-
var b =
|
|
2380
|
-
u = { style:
|
|
2376
|
+
var g = qn(d.val);
|
|
2377
|
+
if (g.length === 0)
|
|
2378
|
+
return this.error(T.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
|
|
2379
|
+
var b = w(l, this.clonePosition());
|
|
2380
|
+
u = { style: g, styleLocation: b };
|
|
2381
2381
|
}
|
|
2382
2382
|
var f = this.tryParseArgumentClose(i);
|
|
2383
2383
|
if (f.err)
|
|
2384
2384
|
return f;
|
|
2385
|
-
var
|
|
2385
|
+
var m = w(i, this.clonePosition());
|
|
2386
2386
|
if (u && _t(u == null ? void 0 : u.style, "::", 0)) {
|
|
2387
|
-
var S =
|
|
2387
|
+
var S = Xn(u.style.slice(2));
|
|
2388
2388
|
if (s === "number") {
|
|
2389
2389
|
var d = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
2390
2390
|
return d.err ? d : {
|
|
2391
|
-
val: { type:
|
|
2391
|
+
val: { type: P.number, value: n, location: m, style: d.val },
|
|
2392
2392
|
err: null
|
|
2393
2393
|
};
|
|
2394
2394
|
} else {
|
|
2395
2395
|
if (S.length === 0)
|
|
2396
|
-
return this.error(
|
|
2396
|
+
return this.error(T.EXPECT_DATE_TIME_SKELETON, m);
|
|
2397
2397
|
var _ = S;
|
|
2398
|
-
this.locale && (_ =
|
|
2399
|
-
var
|
|
2398
|
+
this.locale && (_ = Hn(S, this.locale));
|
|
2399
|
+
var g = {
|
|
2400
2400
|
type: re.dateTime,
|
|
2401
2401
|
pattern: _,
|
|
2402
2402
|
location: u.styleLocation,
|
|
2403
2403
|
parsedOptions: this.shouldParseSkeletons ? xn(_) : {}
|
|
2404
|
-
},
|
|
2404
|
+
}, y = s === "date" ? P.date : P.time;
|
|
2405
2405
|
return {
|
|
2406
|
-
val: { type:
|
|
2406
|
+
val: { type: y, value: n, location: m, style: g },
|
|
2407
2407
|
err: null
|
|
2408
2408
|
};
|
|
2409
2409
|
}
|
|
2410
2410
|
}
|
|
2411
2411
|
return {
|
|
2412
2412
|
val: {
|
|
2413
|
-
type: s === "number" ?
|
|
2413
|
+
type: s === "number" ? P.number : s === "date" ? P.date : P.time,
|
|
2414
2414
|
value: n,
|
|
2415
|
-
location:
|
|
2415
|
+
location: m,
|
|
2416
2416
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
2417
2417
|
},
|
|
2418
2418
|
err: null
|
|
@@ -2423,39 +2423,39 @@ var Wn = (
|
|
|
2423
2423
|
case "select": {
|
|
2424
2424
|
var C = this.clonePosition();
|
|
2425
2425
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2426
|
-
return this.error(
|
|
2426
|
+
return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, w(C, A({}, C)));
|
|
2427
2427
|
this.bumpSpace();
|
|
2428
|
-
var
|
|
2429
|
-
if (s !== "select" &&
|
|
2428
|
+
var H = this.parseIdentifierIfPossible(), E = 0;
|
|
2429
|
+
if (s !== "select" && H.value === "offset") {
|
|
2430
2430
|
if (!this.bumpIf(":"))
|
|
2431
|
-
return this.error(
|
|
2431
|
+
return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
|
|
2432
2432
|
this.bumpSpace();
|
|
2433
|
-
var d = this.tryParseDecimalInteger(
|
|
2433
|
+
var d = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2434
2434
|
if (d.err)
|
|
2435
2435
|
return d;
|
|
2436
|
-
this.bumpSpace(),
|
|
2436
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), E = d.val;
|
|
2437
2437
|
}
|
|
2438
|
-
var
|
|
2439
|
-
if (
|
|
2440
|
-
return
|
|
2438
|
+
var B = this.tryParsePluralOrSelectOptions(t, s, r, H);
|
|
2439
|
+
if (B.err)
|
|
2440
|
+
return B;
|
|
2441
2441
|
var f = this.tryParseArgumentClose(i);
|
|
2442
2442
|
if (f.err)
|
|
2443
2443
|
return f;
|
|
2444
|
-
var Z =
|
|
2444
|
+
var Z = w(i, this.clonePosition());
|
|
2445
2445
|
return s === "select" ? {
|
|
2446
2446
|
val: {
|
|
2447
|
-
type:
|
|
2447
|
+
type: P.select,
|
|
2448
2448
|
value: n,
|
|
2449
|
-
options: bt(
|
|
2449
|
+
options: bt(B.val),
|
|
2450
2450
|
location: Z
|
|
2451
2451
|
},
|
|
2452
2452
|
err: null
|
|
2453
2453
|
} : {
|
|
2454
2454
|
val: {
|
|
2455
|
-
type:
|
|
2455
|
+
type: P.plural,
|
|
2456
2456
|
value: n,
|
|
2457
|
-
options: bt(
|
|
2458
|
-
offset:
|
|
2457
|
+
options: bt(B.val),
|
|
2458
|
+
offset: E,
|
|
2459
2459
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2460
2460
|
location: Z
|
|
2461
2461
|
},
|
|
@@ -2463,10 +2463,10 @@ var Wn = (
|
|
|
2463
2463
|
};
|
|
2464
2464
|
}
|
|
2465
2465
|
default:
|
|
2466
|
-
return this.error(
|
|
2466
|
+
return this.error(T.INVALID_ARGUMENT_TYPE, w(a, h));
|
|
2467
2467
|
}
|
|
2468
2468
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2469
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2469
|
+
return this.isEOF() || this.char() !== 125 ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2470
2470
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2471
2471
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2472
2472
|
var n = this.char();
|
|
@@ -2475,7 +2475,7 @@ var Wn = (
|
|
|
2475
2475
|
this.bump();
|
|
2476
2476
|
var i = this.clonePosition();
|
|
2477
2477
|
if (!this.bumpUntil("'"))
|
|
2478
|
-
return this.error(
|
|
2478
|
+
return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(i, this.clonePosition()));
|
|
2479
2479
|
this.bump();
|
|
2480
2480
|
break;
|
|
2481
2481
|
}
|
|
@@ -2505,16 +2505,16 @@ var Wn = (
|
|
|
2505
2505
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2506
2506
|
var n = [];
|
|
2507
2507
|
try {
|
|
2508
|
-
n =
|
|
2508
|
+
n = Mn(t);
|
|
2509
2509
|
} catch (i) {
|
|
2510
|
-
return this.error(
|
|
2510
|
+
return this.error(T.INVALID_NUMBER_SKELETON, r);
|
|
2511
2511
|
}
|
|
2512
2512
|
return {
|
|
2513
2513
|
val: {
|
|
2514
2514
|
type: re.number,
|
|
2515
2515
|
tokens: n,
|
|
2516
2516
|
location: r,
|
|
2517
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2517
|
+
parsedOptions: this.shouldParseSkeletons ? An(n) : {}
|
|
2518
2518
|
},
|
|
2519
2519
|
err: null
|
|
2520
2520
|
};
|
|
@@ -2523,34 +2523,34 @@ var Wn = (
|
|
|
2523
2523
|
if (u.length === 0) {
|
|
2524
2524
|
var d = this.clonePosition();
|
|
2525
2525
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2526
|
-
var
|
|
2527
|
-
if (
|
|
2528
|
-
return
|
|
2529
|
-
l =
|
|
2526
|
+
var g = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR, T.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2527
|
+
if (g.err)
|
|
2528
|
+
return g;
|
|
2529
|
+
l = w(d, this.clonePosition()), u = this.message.slice(d.offset, this.offset());
|
|
2530
2530
|
} else
|
|
2531
2531
|
break;
|
|
2532
2532
|
}
|
|
2533
2533
|
if (h.has(u))
|
|
2534
|
-
return this.error(r === "select" ?
|
|
2534
|
+
return this.error(r === "select" ? T.DUPLICATE_SELECT_ARGUMENT_SELECTOR : T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2535
2535
|
u === "other" && (a = !0), this.bumpSpace();
|
|
2536
2536
|
var b = this.clonePosition();
|
|
2537
2537
|
if (!this.bumpIf("{"))
|
|
2538
|
-
return this.error(r === "select" ?
|
|
2538
|
+
return this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
|
|
2539
2539
|
var f = this.parseMessage(t + 1, r, n);
|
|
2540
2540
|
if (f.err)
|
|
2541
2541
|
return f;
|
|
2542
|
-
var
|
|
2543
|
-
if (
|
|
2544
|
-
return
|
|
2542
|
+
var m = this.tryParseArgumentClose(b);
|
|
2543
|
+
if (m.err)
|
|
2544
|
+
return m;
|
|
2545
2545
|
s.push([
|
|
2546
2546
|
u,
|
|
2547
2547
|
{
|
|
2548
2548
|
value: f.val,
|
|
2549
|
-
location:
|
|
2549
|
+
location: w(b, this.clonePosition())
|
|
2550
2550
|
}
|
|
2551
2551
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
2552
2552
|
}
|
|
2553
|
-
return s.length === 0 ? this.error(r === "select" ?
|
|
2553
|
+
return s.length === 0 ? this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR : T.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(T.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2554
2554
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2555
2555
|
var n = 1, i = this.clonePosition();
|
|
2556
2556
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -2561,8 +2561,8 @@ var Wn = (
|
|
|
2561
2561
|
else
|
|
2562
2562
|
break;
|
|
2563
2563
|
}
|
|
2564
|
-
var h =
|
|
2565
|
-
return o ? (a *= n,
|
|
2564
|
+
var h = w(i, this.clonePosition());
|
|
2565
|
+
return o ? (a *= n, Fn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2566
2566
|
}, e.prototype.offset = function() {
|
|
2567
2567
|
return this.position.offset;
|
|
2568
2568
|
}, e.prototype.isEOF = function() {
|
|
@@ -2649,14 +2649,14 @@ function Je(e) {
|
|
|
2649
2649
|
for (var r in t.options)
|
|
2650
2650
|
delete t.options[r].location, Je(t.options[r].value);
|
|
2651
2651
|
else
|
|
2652
|
-
Wt(t) && $t(t.style) || (Zt(t) || Jt(t)) &&
|
|
2652
|
+
Wt(t) && $t(t.style) || (Zt(t) || Jt(t)) && Ve(t.style) ? delete t.style.location : Kt(t) && Je(t.children);
|
|
2653
2653
|
});
|
|
2654
2654
|
}
|
|
2655
2655
|
function Yn(e, t) {
|
|
2656
|
-
t === void 0 && (t = {}), t =
|
|
2656
|
+
t === void 0 && (t = {}), t = A({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
2657
2657
|
var r = new Wn(e, t).parse();
|
|
2658
2658
|
if (r.err) {
|
|
2659
|
-
var n = SyntaxError(
|
|
2659
|
+
var n = SyntaxError(T[r.err.kind]);
|
|
2660
2660
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
2661
2661
|
}
|
|
2662
2662
|
return t != null && t.captureLocation || Je(r.val), r.val;
|
|
@@ -2665,10 +2665,10 @@ var ne;
|
|
|
2665
2665
|
(function(e) {
|
|
2666
2666
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
2667
2667
|
})(ne || (ne = {}));
|
|
2668
|
-
var
|
|
2668
|
+
var Pe = (
|
|
2669
2669
|
/** @class */
|
|
2670
2670
|
function(e) {
|
|
2671
|
-
|
|
2671
|
+
He(t, e);
|
|
2672
2672
|
function t(r, n, i) {
|
|
2673
2673
|
var o = e.call(this, r) || this;
|
|
2674
2674
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -2677,33 +2677,33 @@ var Be = (
|
|
|
2677
2677
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
2678
2678
|
}, t;
|
|
2679
2679
|
}(Error)
|
|
2680
|
-
),
|
|
2680
|
+
), vt = (
|
|
2681
2681
|
/** @class */
|
|
2682
2682
|
function(e) {
|
|
2683
|
-
|
|
2683
|
+
He(t, e);
|
|
2684
2684
|
function t(r, n, i, o) {
|
|
2685
2685
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
|
|
2686
2686
|
}
|
|
2687
2687
|
return t;
|
|
2688
|
-
}(
|
|
2688
|
+
}(Pe)
|
|
2689
2689
|
), Kn = (
|
|
2690
2690
|
/** @class */
|
|
2691
2691
|
function(e) {
|
|
2692
|
-
|
|
2692
|
+
He(t, e);
|
|
2693
2693
|
function t(r, n, i) {
|
|
2694
2694
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
|
|
2695
2695
|
}
|
|
2696
2696
|
return t;
|
|
2697
|
-
}(
|
|
2697
|
+
}(Pe)
|
|
2698
2698
|
), $n = (
|
|
2699
2699
|
/** @class */
|
|
2700
2700
|
function(e) {
|
|
2701
|
-
|
|
2701
|
+
He(t, e);
|
|
2702
2702
|
function t(r, n) {
|
|
2703
2703
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
|
|
2704
2704
|
}
|
|
2705
2705
|
return t;
|
|
2706
|
-
}(
|
|
2706
|
+
}(Pe)
|
|
2707
2707
|
), D;
|
|
2708
2708
|
(function(e) {
|
|
2709
2709
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -2717,8 +2717,8 @@ function ei(e) {
|
|
|
2717
2717
|
function ti(e) {
|
|
2718
2718
|
return typeof e == "function";
|
|
2719
2719
|
}
|
|
2720
|
-
function
|
|
2721
|
-
if (e.length === 1 &&
|
|
2720
|
+
function Me(e, t, r, n, i, o, a) {
|
|
2721
|
+
if (e.length === 1 && gt(e[0]))
|
|
2722
2722
|
return [
|
|
2723
2723
|
{
|
|
2724
2724
|
type: D.literal,
|
|
@@ -2727,7 +2727,7 @@ function Te(e, t, r, n, i, o, a) {
|
|
|
2727
2727
|
];
|
|
2728
2728
|
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
2729
2729
|
var l = u[h];
|
|
2730
|
-
if (
|
|
2730
|
+
if (gt(l)) {
|
|
2731
2731
|
s.push({
|
|
2732
2732
|
type: D.literal,
|
|
2733
2733
|
value: l.value
|
|
@@ -2744,86 +2744,86 @@ function Te(e, t, r, n, i, o, a) {
|
|
|
2744
2744
|
var d = l.value;
|
|
2745
2745
|
if (!(i && d in i))
|
|
2746
2746
|
throw new $n(d, a);
|
|
2747
|
-
var
|
|
2748
|
-
if (
|
|
2749
|
-
(!
|
|
2750
|
-
type: typeof
|
|
2751
|
-
value:
|
|
2747
|
+
var g = i[d];
|
|
2748
|
+
if (En(l)) {
|
|
2749
|
+
(!g || typeof g == "string" || typeof g == "number") && (g = typeof g == "string" || typeof g == "number" ? String(g) : ""), s.push({
|
|
2750
|
+
type: typeof g == "string" ? D.literal : D.object,
|
|
2751
|
+
value: g
|
|
2752
2752
|
});
|
|
2753
2753
|
continue;
|
|
2754
2754
|
}
|
|
2755
2755
|
if (Zt(l)) {
|
|
2756
|
-
var b = typeof l.style == "string" ? n.date[l.style] :
|
|
2756
|
+
var b = typeof l.style == "string" ? n.date[l.style] : Ve(l.style) ? l.style.parsedOptions : void 0;
|
|
2757
2757
|
s.push({
|
|
2758
2758
|
type: D.literal,
|
|
2759
|
-
value: r.getDateTimeFormat(t, b).format(
|
|
2759
|
+
value: r.getDateTimeFormat(t, b).format(g)
|
|
2760
2760
|
});
|
|
2761
2761
|
continue;
|
|
2762
2762
|
}
|
|
2763
2763
|
if (Jt(l)) {
|
|
2764
|
-
var b = typeof l.style == "string" ? n.time[l.style] :
|
|
2764
|
+
var b = typeof l.style == "string" ? n.time[l.style] : Ve(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
2765
2765
|
s.push({
|
|
2766
2766
|
type: D.literal,
|
|
2767
|
-
value: r.getDateTimeFormat(t, b).format(
|
|
2767
|
+
value: r.getDateTimeFormat(t, b).format(g)
|
|
2768
2768
|
});
|
|
2769
2769
|
continue;
|
|
2770
2770
|
}
|
|
2771
2771
|
if (Wt(l)) {
|
|
2772
2772
|
var b = typeof l.style == "string" ? n.number[l.style] : $t(l.style) ? l.style.parsedOptions : void 0;
|
|
2773
|
-
b && b.scale && (
|
|
2773
|
+
b && b.scale && (g = g * (b.scale || 1)), s.push({
|
|
2774
2774
|
type: D.literal,
|
|
2775
|
-
value: r.getNumberFormat(t, b).format(
|
|
2775
|
+
value: r.getNumberFormat(t, b).format(g)
|
|
2776
2776
|
});
|
|
2777
2777
|
continue;
|
|
2778
2778
|
}
|
|
2779
2779
|
if (Kt(l)) {
|
|
2780
|
-
var f = l.children,
|
|
2780
|
+
var f = l.children, m = l.value, S = i[m];
|
|
2781
2781
|
if (!ti(S))
|
|
2782
|
-
throw new Kn(
|
|
2783
|
-
var _ =
|
|
2784
|
-
return
|
|
2782
|
+
throw new Kn(m, "function", a);
|
|
2783
|
+
var _ = Me(f, t, r, n, i, o), y = S(_.map(function(E) {
|
|
2784
|
+
return E.value;
|
|
2785
2785
|
}));
|
|
2786
|
-
Array.isArray(
|
|
2786
|
+
Array.isArray(y) || (y = [y]), s.push.apply(s, y.map(function(E) {
|
|
2787
2787
|
return {
|
|
2788
|
-
type: typeof
|
|
2789
|
-
value:
|
|
2788
|
+
type: typeof E == "string" ? D.literal : D.object,
|
|
2789
|
+
value: E
|
|
2790
2790
|
};
|
|
2791
2791
|
}));
|
|
2792
2792
|
}
|
|
2793
2793
|
if (Qt(l)) {
|
|
2794
|
-
var C = l.options[
|
|
2794
|
+
var C = l.options[g] || l.options.other;
|
|
2795
2795
|
if (!C)
|
|
2796
|
-
throw new
|
|
2797
|
-
s.push.apply(s,
|
|
2796
|
+
throw new vt(l.value, g, Object.keys(l.options), a);
|
|
2797
|
+
s.push.apply(s, Me(C.value, t, r, n, i));
|
|
2798
2798
|
continue;
|
|
2799
2799
|
}
|
|
2800
2800
|
if (Yt(l)) {
|
|
2801
|
-
var C = l.options["=".concat(
|
|
2801
|
+
var C = l.options["=".concat(g)];
|
|
2802
2802
|
if (!C) {
|
|
2803
2803
|
if (!Intl.PluralRules)
|
|
2804
|
-
throw new
|
|
2804
|
+
throw new Pe(`Intl.PluralRules is not available in this environment.
|
|
2805
2805
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
2806
2806
|
`, ne.MISSING_INTL_API, a);
|
|
2807
|
-
var
|
|
2808
|
-
C = l.options[
|
|
2807
|
+
var H = r.getPluralRules(t, { type: l.pluralType }).select(g - (l.offset || 0));
|
|
2808
|
+
C = l.options[H] || l.options.other;
|
|
2809
2809
|
}
|
|
2810
2810
|
if (!C)
|
|
2811
|
-
throw new
|
|
2812
|
-
s.push.apply(s,
|
|
2811
|
+
throw new vt(l.value, g, Object.keys(l.options), a);
|
|
2812
|
+
s.push.apply(s, Me(C.value, t, r, n, i, g - (l.offset || 0)));
|
|
2813
2813
|
continue;
|
|
2814
2814
|
}
|
|
2815
2815
|
}
|
|
2816
2816
|
return ei(s);
|
|
2817
2817
|
}
|
|
2818
2818
|
function ri(e, t) {
|
|
2819
|
-
return t ?
|
|
2820
|
-
return r[n] =
|
|
2819
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
2820
|
+
return r[n] = A(A({}, e[n]), t[n] || {}), r;
|
|
2821
2821
|
}, {})) : e;
|
|
2822
2822
|
}
|
|
2823
2823
|
function ni(e, t) {
|
|
2824
2824
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
2825
2825
|
return r[n] = ri(e[n], t[n]), r;
|
|
2826
|
-
},
|
|
2826
|
+
}, A({}, e)) : e;
|
|
2827
2827
|
}
|
|
2828
2828
|
function De(e) {
|
|
2829
2829
|
return {
|
|
@@ -2885,12 +2885,12 @@ var oi = (
|
|
|
2885
2885
|
var u = o.formatToParts(h);
|
|
2886
2886
|
if (u.length === 1)
|
|
2887
2887
|
return u[0].value;
|
|
2888
|
-
var l = u.reduce(function(d,
|
|
2889
|
-
return !d.length ||
|
|
2888
|
+
var l = u.reduce(function(d, g) {
|
|
2889
|
+
return !d.length || g.type !== D.literal || typeof d[d.length - 1] != "string" ? d.push(g.value) : d[d.length - 1] += g.value, d;
|
|
2890
2890
|
}, []);
|
|
2891
2891
|
return l.length <= 1 ? l[0] || "" : l;
|
|
2892
2892
|
}, this.formatToParts = function(h) {
|
|
2893
|
-
return
|
|
2893
|
+
return Me(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
2894
2894
|
}, this.resolvedOptions = function() {
|
|
2895
2895
|
var h;
|
|
2896
2896
|
return {
|
|
@@ -2904,7 +2904,7 @@ var oi = (
|
|
|
2904
2904
|
var a = i || {};
|
|
2905
2905
|
a.formatters;
|
|
2906
2906
|
var s = pn(a, ["formatters"]);
|
|
2907
|
-
this.ast = e.__parse(t,
|
|
2907
|
+
this.ast = e.__parse(t, A(A({}, s), { locale: this.resolvedLocale }));
|
|
2908
2908
|
} else
|
|
2909
2909
|
this.ast = t;
|
|
2910
2910
|
if (!Array.isArray(this.ast))
|
|
@@ -3009,7 +3009,7 @@ const Q = {}, si = (e, t, r) => r && (t in Q || (Q[t] = {}), e in Q[t] || (Q[t][
|
|
|
3009
3009
|
return;
|
|
3010
3010
|
if (t in Q && e in Q[t])
|
|
3011
3011
|
return Q[t][e];
|
|
3012
|
-
const r =
|
|
3012
|
+
const r = Be(t);
|
|
3013
3013
|
for (let n = 0; n < r.length; n++) {
|
|
3014
3014
|
const i = r[n], o = ci(i, e);
|
|
3015
3015
|
if (o)
|
|
@@ -3017,7 +3017,7 @@ const Q = {}, si = (e, t, r) => r && (t in Q || (Q[t] = {}), e in Q[t] || (Q[t][
|
|
|
3017
3017
|
}
|
|
3018
3018
|
};
|
|
3019
3019
|
let rt;
|
|
3020
|
-
const
|
|
3020
|
+
const ye = Ae({});
|
|
3021
3021
|
function li(e) {
|
|
3022
3022
|
return rt[e] || null;
|
|
3023
3023
|
}
|
|
@@ -3033,7 +3033,7 @@ function ci(e, t) {
|
|
|
3033
3033
|
function ui(e) {
|
|
3034
3034
|
if (e == null)
|
|
3035
3035
|
return;
|
|
3036
|
-
const t =
|
|
3036
|
+
const t = Be(e);
|
|
3037
3037
|
for (let r = 0; r < t.length; r++) {
|
|
3038
3038
|
const n = t[r];
|
|
3039
3039
|
if (lr(n))
|
|
@@ -3041,55 +3041,55 @@ function ui(e) {
|
|
|
3041
3041
|
}
|
|
3042
3042
|
}
|
|
3043
3043
|
function cr(e, ...t) {
|
|
3044
|
-
delete Q[e],
|
|
3044
|
+
delete Q[e], ye.update((r) => (r[e] = mn.all([r[e] || {}, ...t]), r));
|
|
3045
3045
|
}
|
|
3046
3046
|
oe(
|
|
3047
|
-
[
|
|
3047
|
+
[ye],
|
|
3048
3048
|
([e]) => Object.keys(e)
|
|
3049
3049
|
);
|
|
3050
|
-
|
|
3051
|
-
const
|
|
3050
|
+
ye.subscribe((e) => rt = e);
|
|
3051
|
+
const Te = {};
|
|
3052
3052
|
function hi(e, t) {
|
|
3053
|
-
|
|
3053
|
+
Te[e].delete(t), Te[e].size === 0 && delete Te[e];
|
|
3054
3054
|
}
|
|
3055
3055
|
function ur(e) {
|
|
3056
|
-
return
|
|
3056
|
+
return Te[e];
|
|
3057
3057
|
}
|
|
3058
3058
|
function di(e) {
|
|
3059
|
-
return
|
|
3059
|
+
return Be(e).map((t) => {
|
|
3060
3060
|
const r = ur(t);
|
|
3061
3061
|
return [t, r ? [...r] : []];
|
|
3062
3062
|
}).filter(([, t]) => t.length > 0);
|
|
3063
3063
|
}
|
|
3064
3064
|
function Qe(e) {
|
|
3065
|
-
return e == null ? !1 :
|
|
3065
|
+
return e == null ? !1 : Be(e).some(
|
|
3066
3066
|
(t) => {
|
|
3067
3067
|
var r;
|
|
3068
3068
|
return (r = ur(t)) == null ? void 0 : r.size;
|
|
3069
3069
|
}
|
|
3070
3070
|
);
|
|
3071
3071
|
}
|
|
3072
|
-
function
|
|
3072
|
+
function gi(e, t) {
|
|
3073
3073
|
return Promise.all(
|
|
3074
3074
|
t.map((n) => (hi(e, n), n().then((i) => i.default || i)))
|
|
3075
3075
|
).then((n) => cr(e, ...n));
|
|
3076
3076
|
}
|
|
3077
|
-
const
|
|
3077
|
+
const ge = {};
|
|
3078
3078
|
function hr(e) {
|
|
3079
3079
|
if (!Qe(e))
|
|
3080
|
-
return e in
|
|
3080
|
+
return e in ge ? ge[e] : Promise.resolve();
|
|
3081
3081
|
const t = di(e);
|
|
3082
|
-
return
|
|
3082
|
+
return ge[e] = Promise.all(
|
|
3083
3083
|
t.map(
|
|
3084
|
-
([r, n]) =>
|
|
3084
|
+
([r, n]) => gi(r, n)
|
|
3085
3085
|
)
|
|
3086
3086
|
).then(() => {
|
|
3087
3087
|
if (Qe(e))
|
|
3088
3088
|
return hr(e);
|
|
3089
|
-
delete
|
|
3090
|
-
}),
|
|
3089
|
+
delete ge[e];
|
|
3090
|
+
}), ge[e];
|
|
3091
3091
|
}
|
|
3092
|
-
const
|
|
3092
|
+
const mi = {
|
|
3093
3093
|
number: {
|
|
3094
3094
|
scientific: { notation: "scientific" },
|
|
3095
3095
|
engineering: { notation: "engineering" },
|
|
@@ -3121,7 +3121,7 @@ const gi = {
|
|
|
3121
3121
|
}, pi = {
|
|
3122
3122
|
fallbackLocale: null,
|
|
3123
3123
|
loadingDelay: 200,
|
|
3124
|
-
formats:
|
|
3124
|
+
formats: mi,
|
|
3125
3125
|
warnOnMissingMessages: !0,
|
|
3126
3126
|
handleMissingMessage: void 0,
|
|
3127
3127
|
ignoreTag: !0
|
|
@@ -3129,28 +3129,28 @@ const gi = {
|
|
|
3129
3129
|
function ie() {
|
|
3130
3130
|
return fi;
|
|
3131
3131
|
}
|
|
3132
|
-
const
|
|
3133
|
-
var _i = Object.defineProperty, bi = Object.defineProperties,
|
|
3132
|
+
const Ge = Ae(!1);
|
|
3133
|
+
var _i = Object.defineProperty, bi = Object.defineProperties, yi = Object.getOwnPropertyDescriptors, kt = Object.getOwnPropertySymbols, vi = Object.prototype.hasOwnProperty, ki = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ei = (e, t) => {
|
|
3134
3134
|
for (var r in t || (t = {}))
|
|
3135
|
-
|
|
3136
|
-
if (
|
|
3137
|
-
for (var r of
|
|
3138
|
-
|
|
3135
|
+
vi.call(t, r) && Et(e, r, t[r]);
|
|
3136
|
+
if (kt)
|
|
3137
|
+
for (var r of kt(t))
|
|
3138
|
+
ki.call(t, r) && Et(e, r, t[r]);
|
|
3139
3139
|
return e;
|
|
3140
|
-
}, Ci = (e, t) => bi(e,
|
|
3140
|
+
}, Ci = (e, t) => bi(e, yi(t));
|
|
3141
3141
|
let Ye;
|
|
3142
|
-
const
|
|
3142
|
+
const we = Ae(null);
|
|
3143
3143
|
function Ct(e) {
|
|
3144
3144
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3145
3145
|
}
|
|
3146
|
-
function
|
|
3146
|
+
function Be(e, t = ie().fallbackLocale) {
|
|
3147
3147
|
const r = Ct(e);
|
|
3148
3148
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Ct(t)])] : r;
|
|
3149
3149
|
}
|
|
3150
3150
|
function K() {
|
|
3151
3151
|
return Ye != null ? Ye : void 0;
|
|
3152
3152
|
}
|
|
3153
|
-
|
|
3153
|
+
we.subscribe((e) => {
|
|
3154
3154
|
Ye = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3155
3155
|
});
|
|
3156
3156
|
const Si = (e) => {
|
|
@@ -3158,16 +3158,16 @@ const Si = (e) => {
|
|
|
3158
3158
|
const { loadingDelay: t } = ie();
|
|
3159
3159
|
let r;
|
|
3160
3160
|
return typeof window != "undefined" && K() != null && t ? r = window.setTimeout(
|
|
3161
|
-
() =>
|
|
3161
|
+
() => Ge.set(!0),
|
|
3162
3162
|
t
|
|
3163
|
-
) :
|
|
3164
|
-
|
|
3163
|
+
) : Ge.set(!0), hr(e).then(() => {
|
|
3164
|
+
we.set(e);
|
|
3165
3165
|
}).finally(() => {
|
|
3166
|
-
clearTimeout(r),
|
|
3166
|
+
clearTimeout(r), Ge.set(!1);
|
|
3167
3167
|
});
|
|
3168
3168
|
}
|
|
3169
|
-
return
|
|
3170
|
-
}, ae = Ci(
|
|
3169
|
+
return we.set(e);
|
|
3170
|
+
}, ae = Ci(Ei({}, we), {
|
|
3171
3171
|
set: Si
|
|
3172
3172
|
}), Oe = (e) => {
|
|
3173
3173
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -3176,20 +3176,20 @@ const Si = (e) => {
|
|
|
3176
3176
|
return i in t ? t[i] : t[i] = e(n);
|
|
3177
3177
|
};
|
|
3178
3178
|
};
|
|
3179
|
-
var xi = Object.defineProperty,
|
|
3179
|
+
var xi = Object.defineProperty, Ne = Object.getOwnPropertySymbols, dr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nt = (e, t) => {
|
|
3180
3180
|
for (var r in t || (t = {}))
|
|
3181
3181
|
dr.call(t, r) && St(e, r, t[r]);
|
|
3182
|
-
if (
|
|
3183
|
-
for (var r of
|
|
3184
|
-
|
|
3182
|
+
if (Ne)
|
|
3183
|
+
for (var r of Ne(t))
|
|
3184
|
+
gr.call(t, r) && St(e, r, t[r]);
|
|
3185
3185
|
return e;
|
|
3186
3186
|
}, se = (e, t) => {
|
|
3187
3187
|
var r = {};
|
|
3188
3188
|
for (var n in e)
|
|
3189
3189
|
dr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3190
|
-
if (e != null &&
|
|
3191
|
-
for (var n of
|
|
3192
|
-
t.indexOf(n) < 0 &&
|
|
3190
|
+
if (e != null && Ne)
|
|
3191
|
+
for (var n of Ne(e))
|
|
3192
|
+
t.indexOf(n) < 0 && gr.call(e, n) && (r[n] = e[n]);
|
|
3193
3193
|
return r;
|
|
3194
3194
|
};
|
|
3195
3195
|
const fe = (e, t) => {
|
|
@@ -3197,21 +3197,21 @@ const fe = (e, t) => {
|
|
|
3197
3197
|
if (e in r && t in r[e])
|
|
3198
3198
|
return r[e][t];
|
|
3199
3199
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3200
|
-
},
|
|
3200
|
+
}, zi = Oe(
|
|
3201
3201
|
(e) => {
|
|
3202
3202
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3203
3203
|
if (r == null)
|
|
3204
3204
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3205
3205
|
return n && (i = fe("number", n)), new Intl.NumberFormat(r, i);
|
|
3206
3206
|
}
|
|
3207
|
-
),
|
|
3207
|
+
), Mi = Oe(
|
|
3208
3208
|
(e) => {
|
|
3209
3209
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3210
3210
|
if (r == null)
|
|
3211
3211
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3212
3212
|
return n ? i = fe("date", n) : Object.keys(i).length === 0 && (i = fe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3213
3213
|
}
|
|
3214
|
-
),
|
|
3214
|
+
), Ti = Oe(
|
|
3215
3215
|
(e) => {
|
|
3216
3216
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3217
3217
|
if (r == null)
|
|
@@ -3220,33 +3220,33 @@ const fe = (e, t) => {
|
|
|
3220
3220
|
);
|
|
3221
3221
|
return n ? i = fe("time", n) : Object.keys(i).length === 0 && (i = fe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3222
3222
|
}
|
|
3223
|
-
),
|
|
3223
|
+
), wi = (e = {}) => {
|
|
3224
3224
|
var t = e, {
|
|
3225
3225
|
locale: r = K()
|
|
3226
3226
|
} = t, n = se(t, [
|
|
3227
3227
|
"locale"
|
|
3228
3228
|
]);
|
|
3229
|
-
return
|
|
3230
|
-
},
|
|
3229
|
+
return zi(nt({ locale: r }, n));
|
|
3230
|
+
}, Ni = (e = {}) => {
|
|
3231
3231
|
var t = e, {
|
|
3232
3232
|
locale: r = K()
|
|
3233
3233
|
} = t, n = se(t, [
|
|
3234
3234
|
"locale"
|
|
3235
3235
|
]);
|
|
3236
|
-
return
|
|
3237
|
-
},
|
|
3236
|
+
return Mi(nt({ locale: r }, n));
|
|
3237
|
+
}, Ai = (e = {}) => {
|
|
3238
3238
|
var t = e, {
|
|
3239
3239
|
locale: r = K()
|
|
3240
3240
|
} = t, n = se(t, [
|
|
3241
3241
|
"locale"
|
|
3242
3242
|
]);
|
|
3243
|
-
return
|
|
3244
|
-
},
|
|
3243
|
+
return Ti(nt({ locale: r }, n));
|
|
3244
|
+
}, Hi = Oe(
|
|
3245
3245
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3246
3246
|
(e, t = K()) => new oi(e, t, ie().formats, {
|
|
3247
3247
|
ignoreTag: ie().ignoreTag
|
|
3248
3248
|
})
|
|
3249
|
-
),
|
|
3249
|
+
), Pi = (e, t = {}) => {
|
|
3250
3250
|
var r, n, i, o;
|
|
3251
3251
|
let a = t;
|
|
3252
3252
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -3270,26 +3270,26 @@ const fe = (e, t) => {
|
|
|
3270
3270
|
return l;
|
|
3271
3271
|
let d = l;
|
|
3272
3272
|
try {
|
|
3273
|
-
d =
|
|
3274
|
-
} catch (
|
|
3275
|
-
|
|
3273
|
+
d = Hi(l, h).format(s);
|
|
3274
|
+
} catch (g) {
|
|
3275
|
+
g instanceof Error && console.warn(
|
|
3276
3276
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3277
|
-
|
|
3277
|
+
g.message
|
|
3278
3278
|
);
|
|
3279
3279
|
}
|
|
3280
3280
|
return d;
|
|
3281
|
-
},
|
|
3282
|
-
oe([ae], () =>
|
|
3281
|
+
}, Bi = (e, t) => Ai(t).format(e), Oi = (e, t) => Ni(t).format(e), Ii = (e, t) => wi(t).format(e), ji = (e, t = K()) => sr(e, t), Li = oe([ae, ye], () => Pi);
|
|
3282
|
+
oe([ae], () => Bi);
|
|
3283
3283
|
oe([ae], () => Oi);
|
|
3284
3284
|
oe([ae], () => Ii);
|
|
3285
|
-
oe([ae,
|
|
3285
|
+
oe([ae, ye], () => ji);
|
|
3286
3286
|
function xt(e, t) {
|
|
3287
3287
|
cr(e, t);
|
|
3288
3288
|
}
|
|
3289
3289
|
function Ri(e) {
|
|
3290
3290
|
ae.set(e);
|
|
3291
3291
|
}
|
|
3292
|
-
const
|
|
3292
|
+
const zt = {
|
|
3293
3293
|
en: {
|
|
3294
3294
|
invalidUrl: "Failed to construct 'URL': Invalid URL",
|
|
3295
3295
|
fetchConsentsError: "Error: Could not fetch consents.",
|
|
@@ -3869,14 +3869,14 @@ function Ui(e) {
|
|
|
3869
3869
|
let t, r;
|
|
3870
3870
|
return {
|
|
3871
3871
|
c() {
|
|
3872
|
-
t = ut("svg"), r = ut("path"),
|
|
3872
|
+
t = ut("svg"), r = ut("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");
|
|
3873
3873
|
},
|
|
3874
3874
|
m(n, i) {
|
|
3875
3875
|
j(n, t, i), x(t, r);
|
|
3876
3876
|
},
|
|
3877
|
-
p:
|
|
3878
|
-
i:
|
|
3879
|
-
o:
|
|
3877
|
+
p: q,
|
|
3878
|
+
i: q,
|
|
3879
|
+
o: q,
|
|
3880
3880
|
d(n) {
|
|
3881
3881
|
n && L(t);
|
|
3882
3882
|
}
|
|
@@ -3884,38 +3884,38 @@ function Ui(e) {
|
|
|
3884
3884
|
}
|
|
3885
3885
|
class Di extends Dt {
|
|
3886
3886
|
constructor(t) {
|
|
3887
|
-
super(),
|
|
3887
|
+
super(), Gt(this, t, null, Ui, Ke, {});
|
|
3888
3888
|
}
|
|
3889
3889
|
}
|
|
3890
3890
|
customElements.define("circle-exclamation-icon", Ut(Di, {}, [], [], !0));
|
|
3891
|
-
function
|
|
3892
|
-
|
|
3891
|
+
function Gi(e) {
|
|
3892
|
+
Fr(e, "svelte-1kygizb", '.DisplayNone.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:none}.ContainerCenter.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{margin-bottom:30px}.AccordionHeader.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{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-1kygizb.svelte-1kygizb.svelte-1kygizb{margin-bottom:10px}.AccordionContent.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:block;padding:10px 0}.AccordionContent.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb:last-of-type{padding-bottom:0}.ConsentItem.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb:last-of-type{margin-bottom:0}.ConsentItem.svelte-1kygizb .ConsentName.svelte-1kygizb.svelte-1kygizb{margin:0}.ConsentItem.svelte-1kygizb .ConsentDescription.svelte-1kygizb.svelte-1kygizb{font-size:0.8rem}.ToggleSwitch.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{width:53px;height:30px}.ToggleSwitch.Big.svelte-1kygizb .Slider.svelte-1kygizb.svelte-1kygizb:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-1kygizb input.svelte-1kygizb:checked+.Slider.svelte-1kygizb:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb.svelte-1kygizb{opacity:0;width:0;height:0}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:checked+.Slider.svelte-1kygizb{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:disabled+.Slider.svelte-1kygizb{opacity:0.1}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:checked+.Slider.svelte-1kygizb:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:focus+.Slider.svelte-1kygizb{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1kygizb .Slider.svelte-1kygizb.svelte-1kygizb{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-1kygizb .Slider.svelte-1kygizb.svelte-1kygizb: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-1kygizb .Slider.Round.svelte-1kygizb.svelte-1kygizb{border-radius:34px}.ToggleSwitch.svelte-1kygizb .Slider.Round.svelte-1kygizb.svelte-1kygizb:before{border-radius:50%}.SaveConsentsButton.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{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-1kygizb.svelte-1kygizb.svelte-1kygizb:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-1kygizb circle-exclamation-icon.svelte-1kygizb.svelte-1kygizb{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox.svelte-1kygizb.svelte-1kygizb{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__wrapper.svelte-1kygizb.svelte-1kygizb{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-1kygizb.svelte-1kygizb{position:relative}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__input.svelte-1kygizb.svelte-1kygizb{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__label.svelte-1kygizb.svelte-1kygizb{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-1kygizb .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-1kygizb.svelte-1kygizb{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__error-message.svelte-1kygizb.svelte-1kygizb{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-1kygizb.svelte-1kygizb{width:16px;height:auto}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__tooltip.svelte-1kygizb.svelte-1kygizb{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-1kygizb .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-1kygizb.svelte-1kygizb{opacity:1}');
|
|
3893
3893
|
}
|
|
3894
|
-
function
|
|
3894
|
+
function Mt(e, t, r) {
|
|
3895
3895
|
const n = e.slice();
|
|
3896
3896
|
return n[64] = t[r], n;
|
|
3897
3897
|
}
|
|
3898
|
-
function
|
|
3898
|
+
function Tt(e, t, r) {
|
|
3899
3899
|
const n = e.slice();
|
|
3900
3900
|
return n[61] = t[r], n[62] = t, n[63] = r, n;
|
|
3901
3901
|
}
|
|
3902
|
-
function
|
|
3902
|
+
function wt(e, t, r) {
|
|
3903
3903
|
const n = e.slice();
|
|
3904
3904
|
return n[64] = t[r], n;
|
|
3905
3905
|
}
|
|
3906
|
-
function
|
|
3906
|
+
function Fi(e) {
|
|
3907
3907
|
let t, r, n = ee(
|
|
3908
3908
|
/*playerConsents*/
|
|
3909
3909
|
e[9]
|
|
3910
3910
|
), i = [];
|
|
3911
3911
|
for (let o = 0; o < n.length; o += 1)
|
|
3912
|
-
i[o] =
|
|
3912
|
+
i[o] = Nt(Mt(e, n, o));
|
|
3913
3913
|
return {
|
|
3914
3914
|
c() {
|
|
3915
|
-
t =
|
|
3915
|
+
t = N("div"), r = N("form");
|
|
3916
3916
|
for (let o = 0; o < i.length; o += 1)
|
|
3917
3917
|
i[o].c();
|
|
3918
|
-
|
|
3918
|
+
k(r, "class", "checkbox svelte-1kygizb"), k(t, "class", "legacyStyle");
|
|
3919
3919
|
},
|
|
3920
3920
|
m(o, a) {
|
|
3921
3921
|
j(o, t, a), x(t, r);
|
|
@@ -3932,8 +3932,8 @@ function Gi(e) {
|
|
|
3932
3932
|
);
|
|
3933
3933
|
let s;
|
|
3934
3934
|
for (s = 0; s < n.length; s += 1) {
|
|
3935
|
-
const h =
|
|
3936
|
-
i[s] ? i[s].p(h, a) : (i[s] =
|
|
3935
|
+
const h = Mt(o, n, s);
|
|
3936
|
+
i[s] ? i[s].p(h, a) : (i[s] = Nt(h), i[s].c(), i[s].m(r, null));
|
|
3937
3937
|
}
|
|
3938
3938
|
for (; s < i.length; s += 1)
|
|
3939
3939
|
i[s].d(1);
|
|
@@ -3945,7 +3945,7 @@ function Gi(e) {
|
|
|
3945
3945
|
}
|
|
3946
3946
|
};
|
|
3947
3947
|
}
|
|
3948
|
-
function
|
|
3948
|
+
function Vi(e) {
|
|
3949
3949
|
let t = (
|
|
3950
3950
|
/*$_*/
|
|
3951
3951
|
e[16]("title") || /*$_*/
|
|
@@ -3953,74 +3953,74 @@ function Fi(e) {
|
|
|
3953
3953
|
), r, n, i, o = (
|
|
3954
3954
|
/*$_*/
|
|
3955
3955
|
(e[16]("saveButtonContent") || "Save Consents") + ""
|
|
3956
|
-
), a, s, h, u, l, d = t &&
|
|
3956
|
+
), a, s, h, u, l, d = t && At(e), g = ee(
|
|
3957
3957
|
/*consentsCategories*/
|
|
3958
3958
|
e[8]
|
|
3959
3959
|
), b = [];
|
|
3960
|
-
for (let
|
|
3961
|
-
b[
|
|
3960
|
+
for (let m = 0; m < g.length; m += 1)
|
|
3961
|
+
b[m] = jt(Tt(e, g, m));
|
|
3962
3962
|
let f = (
|
|
3963
3963
|
/*errorMessage*/
|
|
3964
3964
|
e[6] && Lt(e)
|
|
3965
3965
|
);
|
|
3966
3966
|
return {
|
|
3967
3967
|
c() {
|
|
3968
|
-
d && d.c(), r =
|
|
3969
|
-
for (let
|
|
3970
|
-
b[
|
|
3971
|
-
n =
|
|
3968
|
+
d && d.c(), r = G();
|
|
3969
|
+
for (let m = 0; m < b.length; m += 1)
|
|
3970
|
+
b[m].c();
|
|
3971
|
+
n = G(), i = N("button"), s = G(), f && f.c(), h = Qr(), k(i, "class", "SaveConsentsButton svelte-1kygizb"), i.disabled = a = !/*isValid*/
|
|
3972
3972
|
e[14];
|
|
3973
3973
|
},
|
|
3974
|
-
m(
|
|
3975
|
-
d && d.m(
|
|
3974
|
+
m(m, S) {
|
|
3975
|
+
d && d.m(m, S), j(m, r, S);
|
|
3976
3976
|
for (let _ = 0; _ < b.length; _ += 1)
|
|
3977
|
-
b[_] && b[_].m(
|
|
3978
|
-
j(
|
|
3977
|
+
b[_] && b[_].m(m, S);
|
|
3978
|
+
j(m, n, S), j(m, i, S), i.innerHTML = o, j(m, s, S), f && f.m(m, S), j(m, h, S), u || (l = me(
|
|
3979
3979
|
i,
|
|
3980
3980
|
"click",
|
|
3981
3981
|
/*saveChanges*/
|
|
3982
3982
|
e[17]
|
|
3983
3983
|
), u = !0);
|
|
3984
3984
|
},
|
|
3985
|
-
p(
|
|
3985
|
+
p(m, S) {
|
|
3986
3986
|
if (S[0] & /*$_*/
|
|
3987
3987
|
65536 && (t = /*$_*/
|
|
3988
|
-
|
|
3989
|
-
|
|
3988
|
+
m[16]("title") || /*$_*/
|
|
3989
|
+
m[16]("description")), t ? d ? d.p(m, S) : (d = At(m), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), S[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
|
|
3990
3990
|
867088) {
|
|
3991
|
-
|
|
3991
|
+
g = ee(
|
|
3992
3992
|
/*consentsCategories*/
|
|
3993
|
-
|
|
3993
|
+
m[8]
|
|
3994
3994
|
);
|
|
3995
3995
|
let _;
|
|
3996
|
-
for (_ = 0; _ <
|
|
3997
|
-
const
|
|
3998
|
-
b[_] ? b[_].p(
|
|
3996
|
+
for (_ = 0; _ < g.length; _ += 1) {
|
|
3997
|
+
const y = Tt(m, g, _);
|
|
3998
|
+
b[_] ? b[_].p(y, S) : (b[_] = jt(y), b[_].c(), b[_].m(n.parentNode, n));
|
|
3999
3999
|
}
|
|
4000
4000
|
for (; _ < b.length; _ += 1)
|
|
4001
4001
|
b[_].d(1);
|
|
4002
|
-
b.length =
|
|
4002
|
+
b.length = g.length;
|
|
4003
4003
|
}
|
|
4004
4004
|
S[0] & /*$_*/
|
|
4005
4005
|
65536 && o !== (o = /*$_*/
|
|
4006
|
-
(
|
|
4006
|
+
(m[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), S[0] & /*isValid*/
|
|
4007
4007
|
16384 && a !== (a = !/*isValid*/
|
|
4008
|
-
|
|
4009
|
-
|
|
4008
|
+
m[14]) && (i.disabled = a), /*errorMessage*/
|
|
4009
|
+
m[6] ? f ? f.p(m, S) : (f = Lt(m), f.c(), f.m(h.parentNode, h)) : f && (f.d(1), f = null);
|
|
4010
4010
|
},
|
|
4011
|
-
d(
|
|
4012
|
-
|
|
4011
|
+
d(m) {
|
|
4012
|
+
m && (L(r), L(n), L(i), L(s), L(h)), d && d.d(m), $e(b, m), f && f.d(m), u = !1, l();
|
|
4013
4013
|
}
|
|
4014
4014
|
};
|
|
4015
4015
|
}
|
|
4016
|
-
function
|
|
4016
|
+
function Xi(e) {
|
|
4017
4017
|
let t, r, n;
|
|
4018
4018
|
return {
|
|
4019
4019
|
c() {
|
|
4020
|
-
t =
|
|
4020
|
+
t = N("div"), r = N("strong"), n = _e(
|
|
4021
4021
|
/*fatalError*/
|
|
4022
4022
|
e[7]
|
|
4023
|
-
),
|
|
4023
|
+
), k(r, "class", "ErrorMessage svelte-1kygizb"), k(t, "class", "ContainerCenter svelte-1kygizb");
|
|
4024
4024
|
},
|
|
4025
4025
|
m(i, o) {
|
|
4026
4026
|
j(i, t, o), x(t, r), x(r, n);
|
|
@@ -4038,11 +4038,11 @@ function Vi(e) {
|
|
|
4038
4038
|
}
|
|
4039
4039
|
};
|
|
4040
4040
|
}
|
|
4041
|
-
function
|
|
4041
|
+
function qi(e) {
|
|
4042
4042
|
let t;
|
|
4043
4043
|
return {
|
|
4044
4044
|
c() {
|
|
4045
|
-
t =
|
|
4045
|
+
t = N("general-animation-loading"), Y(
|
|
4046
4046
|
t,
|
|
4047
4047
|
"clientstyling",
|
|
4048
4048
|
/*clientstyling*/
|
|
@@ -4088,7 +4088,7 @@ function Xi(e) {
|
|
|
4088
4088
|
}
|
|
4089
4089
|
};
|
|
4090
4090
|
}
|
|
4091
|
-
function
|
|
4091
|
+
function Nt(e) {
|
|
4092
4092
|
let t, r, n, i, o, a, s, h, u = (
|
|
4093
4093
|
/*$_*/
|
|
4094
4094
|
(e[16](`${/*consent*/
|
|
@@ -4097,64 +4097,64 @@ function At(e) {
|
|
|
4097
4097
|
), l = (
|
|
4098
4098
|
/*consent*/
|
|
4099
4099
|
e[64].mustAccept ? " *" : ""
|
|
4100
|
-
), d,
|
|
4101
|
-
function
|
|
4100
|
+
), d, g, b, f, m, S, _, y, C;
|
|
4101
|
+
function H(...E) {
|
|
4102
4102
|
return (
|
|
4103
4103
|
/*input_handler_1*/
|
|
4104
4104
|
e[30](
|
|
4105
4105
|
/*consent*/
|
|
4106
4106
|
e[64],
|
|
4107
|
-
...
|
|
4107
|
+
...E
|
|
4108
4108
|
)
|
|
4109
4109
|
);
|
|
4110
4110
|
}
|
|
4111
4111
|
return {
|
|
4112
4112
|
c() {
|
|
4113
|
-
t =
|
|
4114
|
-
e[64].status === "1",
|
|
4115
|
-
e[64].tagCode}__input`), h.a = d,
|
|
4116
|
-
e[64].tagCode}__input`),
|
|
4117
|
-
e[64].tagCode),
|
|
4118
|
-
e[64].tagCode + "__input svelte-
|
|
4113
|
+
t = N("div"), r = N("input"), o = G(), a = N("label"), s = N("div"), h = new Ft(!1), d = _e(l), b = G(), f = N("small"), S = G(), k(r, "class", "checkbox__input svelte-1kygizb"), k(r, "type", "checkbox"), r.checked = n = /*consent*/
|
|
4114
|
+
e[64].status === "1", k(r, "id", i = `${/*consent*/
|
|
4115
|
+
e[64].tagCode}__input`), h.a = d, k(s, "class", "checkbox__label-text svelte-1kygizb"), k(a, "class", "checkbox__label svelte-1kygizb"), k(a, "for", g = `${/*consent*/
|
|
4116
|
+
e[64].tagCode}__input`), k(f, "class", "checkbox__error-message svelte-1kygizb"), k(f, "id", m = "checkBoxError__" + /*consent*/
|
|
4117
|
+
e[64].tagCode), k(t, "class", _ = "checkbox__wrapper " + /*consent*/
|
|
4118
|
+
e[64].tagCode + "__input svelte-1kygizb");
|
|
4119
4119
|
},
|
|
4120
|
-
m(
|
|
4121
|
-
j(
|
|
4120
|
+
m(E, B) {
|
|
4121
|
+
j(E, t, B), x(t, r), x(t, o), x(t, a), x(a, s), h.m(u, s), x(s, d), x(t, b), x(t, f), x(t, S), y || (C = me(r, "input", H), y = !0);
|
|
4122
4122
|
},
|
|
4123
|
-
p(
|
|
4124
|
-
e =
|
|
4123
|
+
p(E, B) {
|
|
4124
|
+
e = E, B[0] & /*playerConsents*/
|
|
4125
4125
|
512 && n !== (n = /*consent*/
|
|
4126
|
-
e[64].status === "1") && (r.checked = n),
|
|
4126
|
+
e[64].status === "1") && (r.checked = n), B[0] & /*playerConsents*/
|
|
4127
4127
|
512 && i !== (i = `${/*consent*/
|
|
4128
|
-
e[64].tagCode}__input`) &&
|
|
4128
|
+
e[64].tagCode}__input`) && k(r, "id", i), B[0] & /*$_, playerConsents*/
|
|
4129
4129
|
66048 && u !== (u = /*$_*/
|
|
4130
4130
|
(e[16](`${/*consent*/
|
|
4131
4131
|
e[64].tagCode}__description`) || /*consent*/
|
|
4132
|
-
e[64].tagCode) + "") && h.p(u),
|
|
4132
|
+
e[64].tagCode) + "") && h.p(u), B[0] & /*playerConsents*/
|
|
4133
4133
|
512 && l !== (l = /*consent*/
|
|
4134
|
-
e[64].mustAccept ? " *" : "") && be(d, l),
|
|
4135
|
-
512 &&
|
|
4136
|
-
e[64].tagCode}__input`) &&
|
|
4137
|
-
512 &&
|
|
4138
|
-
e[64].tagCode) &&
|
|
4134
|
+
e[64].mustAccept ? " *" : "") && be(d, l), B[0] & /*playerConsents*/
|
|
4135
|
+
512 && g !== (g = `${/*consent*/
|
|
4136
|
+
e[64].tagCode}__input`) && k(a, "for", g), B[0] & /*playerConsents*/
|
|
4137
|
+
512 && m !== (m = "checkBoxError__" + /*consent*/
|
|
4138
|
+
e[64].tagCode) && k(f, "id", m), B[0] & /*playerConsents*/
|
|
4139
4139
|
512 && _ !== (_ = "checkbox__wrapper " + /*consent*/
|
|
4140
|
-
e[64].tagCode + "__input svelte-
|
|
4140
|
+
e[64].tagCode + "__input svelte-1kygizb") && k(t, "class", _);
|
|
4141
4141
|
},
|
|
4142
|
-
d(
|
|
4143
|
-
|
|
4142
|
+
d(E) {
|
|
4143
|
+
E && L(t), y = !1, C();
|
|
4144
4144
|
}
|
|
4145
4145
|
};
|
|
4146
4146
|
}
|
|
4147
|
-
function
|
|
4147
|
+
function At(e) {
|
|
4148
4148
|
let t, r = (
|
|
4149
4149
|
/*$_*/
|
|
4150
4150
|
e[16]("title")
|
|
4151
4151
|
), n, i = (
|
|
4152
4152
|
/*$_*/
|
|
4153
4153
|
e[16]("description")
|
|
4154
|
-
), o = r &&
|
|
4154
|
+
), o = r && Ht(e), a = i && Pt(e);
|
|
4155
4155
|
return {
|
|
4156
4156
|
c() {
|
|
4157
|
-
t =
|
|
4157
|
+
t = N("div"), o && o.c(), n = G(), a && a.c(), k(t, "class", "PlayerConsentsHeader svelte-1kygizb");
|
|
4158
4158
|
},
|
|
4159
4159
|
m(s, h) {
|
|
4160
4160
|
j(s, t, h), o && o.m(t, null), x(t, n), a && a.m(t, null);
|
|
@@ -4162,23 +4162,23 @@ function Ht(e) {
|
|
|
4162
4162
|
p(s, h) {
|
|
4163
4163
|
h[0] & /*$_*/
|
|
4164
4164
|
65536 && (r = /*$_*/
|
|
4165
|
-
s[16]("title")), r ? o ? o.p(s, h) : (o =
|
|
4165
|
+
s[16]("title")), r ? o ? o.p(s, h) : (o = Ht(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), h[0] & /*$_*/
|
|
4166
4166
|
65536 && (i = /*$_*/
|
|
4167
|
-
s[16]("description")), i ? a ? a.p(s, h) : (a =
|
|
4167
|
+
s[16]("description")), i ? a ? a.p(s, h) : (a = Pt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4168
4168
|
},
|
|
4169
4169
|
d(s) {
|
|
4170
4170
|
s && L(t), o && o.d(), a && a.d();
|
|
4171
4171
|
}
|
|
4172
4172
|
};
|
|
4173
4173
|
}
|
|
4174
|
-
function
|
|
4174
|
+
function Ht(e) {
|
|
4175
4175
|
let t, r = (
|
|
4176
4176
|
/*$_*/
|
|
4177
4177
|
e[16]("title") + ""
|
|
4178
4178
|
), n;
|
|
4179
4179
|
return {
|
|
4180
4180
|
c() {
|
|
4181
|
-
t =
|
|
4181
|
+
t = N("h2"), n = _e(r), k(t, "class", "PlayerConsentsTitle");
|
|
4182
4182
|
},
|
|
4183
4183
|
m(i, o) {
|
|
4184
4184
|
j(i, t, o), x(t, n);
|
|
@@ -4193,14 +4193,14 @@ function Pt(e) {
|
|
|
4193
4193
|
}
|
|
4194
4194
|
};
|
|
4195
4195
|
}
|
|
4196
|
-
function
|
|
4196
|
+
function Pt(e) {
|
|
4197
4197
|
let t, r = (
|
|
4198
4198
|
/*$_*/
|
|
4199
4199
|
e[16]("description") + ""
|
|
4200
4200
|
), n;
|
|
4201
4201
|
return {
|
|
4202
4202
|
c() {
|
|
4203
|
-
t =
|
|
4203
|
+
t = N("p"), n = _e(r), k(t, "class", "PlayerConsentsDescription");
|
|
4204
4204
|
},
|
|
4205
4205
|
m(i, o) {
|
|
4206
4206
|
j(i, t, o), x(t, n);
|
|
@@ -4215,11 +4215,11 @@ function Bt(e) {
|
|
|
4215
4215
|
}
|
|
4216
4216
|
};
|
|
4217
4217
|
}
|
|
4218
|
-
function
|
|
4218
|
+
function Bt(e) {
|
|
4219
4219
|
let t;
|
|
4220
4220
|
return {
|
|
4221
4221
|
c() {
|
|
4222
|
-
t =
|
|
4222
|
+
t = N("sup"), t.textContent = "*", k(t, "class", "ConsentRequired svelte-1kygizb");
|
|
4223
4223
|
},
|
|
4224
4224
|
m(r, n) {
|
|
4225
4225
|
j(r, t, n);
|
|
@@ -4238,7 +4238,7 @@ function Ot(e) {
|
|
|
4238
4238
|
);
|
|
4239
4239
|
return {
|
|
4240
4240
|
c() {
|
|
4241
|
-
t =
|
|
4241
|
+
t = N("p"), k(t, "class", "ConsentDescription svelte-1kygizb");
|
|
4242
4242
|
},
|
|
4243
4243
|
m(n, i) {
|
|
4244
4244
|
j(n, t, i), t.innerHTML = r;
|
|
@@ -4261,61 +4261,61 @@ function It(e) {
|
|
|
4261
4261
|
(e[16](`${/*consent*/
|
|
4262
4262
|
e[64].tagCode}__name`) || /*consent*/
|
|
4263
4263
|
e[64].friendlyName) + ""
|
|
4264
|
-
), a, s, h, u, l, d,
|
|
4264
|
+
), a, s, h, u, l, d, g, b, f, m, S, _ = (
|
|
4265
4265
|
/*consent*/
|
|
4266
|
-
e[64].mustAccept === !0 &&
|
|
4267
|
-
),
|
|
4266
|
+
e[64].mustAccept === !0 && Bt()
|
|
4267
|
+
), y = (
|
|
4268
4268
|
/*displayconsentdescription*/
|
|
4269
4269
|
e[4] === "true" && Ot(e)
|
|
4270
4270
|
);
|
|
4271
|
-
function C(...
|
|
4271
|
+
function C(...H) {
|
|
4272
4272
|
return (
|
|
4273
4273
|
/*input_handler*/
|
|
4274
4274
|
e[29](
|
|
4275
4275
|
/*consent*/
|
|
4276
4276
|
e[64],
|
|
4277
|
-
...
|
|
4277
|
+
...H
|
|
4278
4278
|
)
|
|
4279
4279
|
);
|
|
4280
4280
|
}
|
|
4281
4281
|
return {
|
|
4282
4282
|
c() {
|
|
4283
|
-
t =
|
|
4283
|
+
t = N("div"), r = N("div"), n = N("h4"), i = new Ft(!1), a = G(), _ && _.c(), s = G(), y && y.c(), h = G(), u = N("label"), l = N("input"), b = G(), f = N("span"), i.a = a, k(n, "class", "ConsentName svelte-1kygizb"), k(r, "class", "ConsentContent"), k(l, "type", "checkbox"), l.disabled = d = /*consent*/
|
|
4284
4284
|
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4285
4285
|
e[12][
|
|
4286
4286
|
/*consent*/
|
|
4287
4287
|
e[64].tagCode
|
|
4288
|
-
] === !0, l.checked =
|
|
4288
|
+
] === !0, l.checked = g = /*consentsState*/
|
|
4289
4289
|
e[13][
|
|
4290
4290
|
/*consent*/
|
|
4291
4291
|
e[64].tagCode
|
|
4292
|
-
],
|
|
4292
|
+
], k(l, "class", "svelte-1kygizb"), k(f, "class", "Slider Round svelte-1kygizb"), k(u, "class", "ToggleSwitch svelte-1kygizb"), k(t, "class", "ConsentItem svelte-1kygizb");
|
|
4293
4293
|
},
|
|
4294
|
-
m(
|
|
4295
|
-
j(
|
|
4294
|
+
m(H, E) {
|
|
4295
|
+
j(H, t, E), x(t, r), x(r, n), i.m(o, n), x(n, a), _ && _.m(n, null), x(r, s), y && y.m(r, null), x(t, h), x(t, u), x(u, l), x(u, b), x(u, f), m || (S = me(l, "input", C), m = !0);
|
|
4296
4296
|
},
|
|
4297
|
-
p(
|
|
4298
|
-
e =
|
|
4297
|
+
p(H, E) {
|
|
4298
|
+
e = H, E[0] & /*$_, playerConsents, consentsCategories*/
|
|
4299
4299
|
66304 && o !== (o = /*$_*/
|
|
4300
4300
|
(e[16](`${/*consent*/
|
|
4301
4301
|
e[64].tagCode}__name`) || /*consent*/
|
|
4302
4302
|
e[64].friendlyName) + "") && i.p(o), /*consent*/
|
|
4303
|
-
e[64].mustAccept === !0 ? _ || (_ =
|
|
4304
|
-
e[4] === "true" ?
|
|
4303
|
+
e[64].mustAccept === !0 ? _ || (_ = Bt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
|
|
4304
|
+
e[4] === "true" ? y ? y.p(e, E) : (y = Ot(e), y.c(), y.m(r, null)) : y && (y.d(1), y = null), E[0] & /*playerConsents, consentsCategories, initialConsentsState*/
|
|
4305
4305
|
4864 && d !== (d = /*consent*/
|
|
4306
4306
|
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4307
4307
|
e[12][
|
|
4308
4308
|
/*consent*/
|
|
4309
4309
|
e[64].tagCode
|
|
4310
|
-
] === !0) && (l.disabled = d),
|
|
4311
|
-
8960 &&
|
|
4310
|
+
] === !0) && (l.disabled = d), E[0] & /*consentsState, playerConsents, consentsCategories*/
|
|
4311
|
+
8960 && g !== (g = /*consentsState*/
|
|
4312
4312
|
e[13][
|
|
4313
4313
|
/*consent*/
|
|
4314
4314
|
e[64].tagCode
|
|
4315
|
-
]) && (l.checked =
|
|
4315
|
+
]) && (l.checked = g);
|
|
4316
4316
|
},
|
|
4317
|
-
d(
|
|
4318
|
-
|
|
4317
|
+
d(H) {
|
|
4318
|
+
H && L(t), _ && _.d(), y && y.d(), m = !1, S();
|
|
4319
4319
|
}
|
|
4320
4320
|
};
|
|
4321
4321
|
}
|
|
@@ -4325,7 +4325,7 @@ function jt(e) {
|
|
|
4325
4325
|
(e[16](`${/*category*/
|
|
4326
4326
|
e[61].categoryTagCode}__category`) || /*category*/
|
|
4327
4327
|
e[61].friendlyName) + ""
|
|
4328
|
-
), o, a, s, h, u, l, d,
|
|
4328
|
+
), o, a, s, h, u, l, d, g, b;
|
|
4329
4329
|
function f() {
|
|
4330
4330
|
e[26].call(
|
|
4331
4331
|
s,
|
|
@@ -4333,7 +4333,7 @@ function jt(e) {
|
|
|
4333
4333
|
e[61]
|
|
4334
4334
|
);
|
|
4335
4335
|
}
|
|
4336
|
-
function
|
|
4336
|
+
function m() {
|
|
4337
4337
|
return (
|
|
4338
4338
|
/*change_handler*/
|
|
4339
4339
|
e[27](
|
|
@@ -4355,57 +4355,57 @@ function jt(e) {
|
|
|
4355
4355
|
let _ = ee(
|
|
4356
4356
|
/*playerConsents*/
|
|
4357
4357
|
e[9].filter(S)
|
|
4358
|
-
),
|
|
4358
|
+
), y = [];
|
|
4359
4359
|
for (let C = 0; C < _.length; C += 1)
|
|
4360
|
-
|
|
4360
|
+
y[C] = It(wt(e, _, C));
|
|
4361
4361
|
return {
|
|
4362
4362
|
c() {
|
|
4363
|
-
t =
|
|
4364
|
-
for (let C = 0; C <
|
|
4365
|
-
|
|
4366
|
-
|
|
4363
|
+
t = N("div"), r = N("div"), n = N("h3"), o = G(), a = N("label"), s = N("input"), h = G(), u = N("span"), l = G(), d = N("div");
|
|
4364
|
+
for (let C = 0; C < y.length; C += 1)
|
|
4365
|
+
y[C].c();
|
|
4366
|
+
k(s, "type", "checkbox"), k(s, "class", "svelte-1kygizb"), k(u, "class", "Slider Round svelte-1kygizb"), k(a, "class", "ToggleSwitch Big svelte-1kygizb"), k(r, "class", "AccordionHeader svelte-1kygizb"), k(d, "class", "AccordionContent svelte-1kygizb"), k(t, "class", "AccordionItem svelte-1kygizb");
|
|
4367
4367
|
},
|
|
4368
|
-
m(C,
|
|
4369
|
-
j(C, t,
|
|
4368
|
+
m(C, H) {
|
|
4369
|
+
j(C, t, H), x(t, r), x(r, n), n.innerHTML = i, x(r, o), x(r, a), x(a, s), s.checked = /*categoryToggle*/
|
|
4370
4370
|
e[11][
|
|
4371
4371
|
/*category*/
|
|
4372
4372
|
e[61].categoryTagCode
|
|
4373
4373
|
], x(a, h), x(a, u), x(t, l), x(t, d);
|
|
4374
|
-
for (let
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
],
|
|
4374
|
+
for (let E = 0; E < y.length; E += 1)
|
|
4375
|
+
y[E] && y[E].m(d, null);
|
|
4376
|
+
g || (b = [
|
|
4377
|
+
me(s, "change", f),
|
|
4378
|
+
me(s, "change", m)
|
|
4379
|
+
], g = !0);
|
|
4380
4380
|
},
|
|
4381
|
-
p(C,
|
|
4382
|
-
if (e = C,
|
|
4381
|
+
p(C, H) {
|
|
4382
|
+
if (e = C, H[0] & /*$_, consentsCategories*/
|
|
4383
4383
|
65792 && i !== (i = /*$_*/
|
|
4384
4384
|
(e[16](`${/*category*/
|
|
4385
4385
|
e[61].categoryTagCode}__category`) || /*category*/
|
|
4386
|
-
e[61].friendlyName) + "") && (n.innerHTML = i),
|
|
4386
|
+
e[61].friendlyName) + "") && (n.innerHTML = i), H[0] & /*categoryToggle, consentsCategories*/
|
|
4387
4387
|
2304 && (s.checked = /*categoryToggle*/
|
|
4388
4388
|
e[11][
|
|
4389
4389
|
/*category*/
|
|
4390
4390
|
e[61].categoryTagCode
|
|
4391
|
-
]),
|
|
4391
|
+
]), H[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription*/
|
|
4392
4392
|
602896) {
|
|
4393
4393
|
_ = ee(
|
|
4394
4394
|
/*playerConsents*/
|
|
4395
4395
|
e[9].filter(S)
|
|
4396
4396
|
);
|
|
4397
|
-
let
|
|
4398
|
-
for (
|
|
4399
|
-
const
|
|
4400
|
-
|
|
4397
|
+
let E;
|
|
4398
|
+
for (E = 0; E < _.length; E += 1) {
|
|
4399
|
+
const B = wt(e, _, E);
|
|
4400
|
+
y[E] ? y[E].p(B, H) : (y[E] = It(B), y[E].c(), y[E].m(d, null));
|
|
4401
4401
|
}
|
|
4402
|
-
for (;
|
|
4403
|
-
|
|
4404
|
-
|
|
4402
|
+
for (; E < y.length; E += 1)
|
|
4403
|
+
y[E].d(1);
|
|
4404
|
+
y.length = _.length;
|
|
4405
4405
|
}
|
|
4406
4406
|
},
|
|
4407
4407
|
d(C) {
|
|
4408
|
-
C && L(t), $e(
|
|
4408
|
+
C && L(t), $e(y, C), g = !1, Rt(b);
|
|
4409
4409
|
}
|
|
4410
4410
|
};
|
|
4411
4411
|
}
|
|
@@ -4413,10 +4413,10 @@ function Lt(e) {
|
|
|
4413
4413
|
let t, r, n, i, o;
|
|
4414
4414
|
return {
|
|
4415
4415
|
c() {
|
|
4416
|
-
t =
|
|
4416
|
+
t = N("div"), r = N("circle-exclamation-icon"), n = G(), i = N("strong"), o = _e(
|
|
4417
4417
|
/*errorMessage*/
|
|
4418
4418
|
e[6]
|
|
4419
|
-
), Y(r, "class", "svelte-
|
|
4419
|
+
), Y(r, "class", "svelte-1kygizb"), k(i, "class", "ErrorMessage svelte-1kygizb"), k(t, "class", "ConsentErrorContainer svelte-1kygizb");
|
|
4420
4420
|
},
|
|
4421
4421
|
m(a, s) {
|
|
4422
4422
|
j(a, t, s), x(t, r), x(t, n), x(t, i), x(i, o);
|
|
@@ -4441,25 +4441,25 @@ function Wi(e) {
|
|
|
4441
4441
|
/*isLoading*/
|
|
4442
4442
|
a[10]
|
|
4443
4443
|
)
|
|
4444
|
-
return
|
|
4444
|
+
return qi;
|
|
4445
4445
|
if (
|
|
4446
4446
|
/*fatalError*/
|
|
4447
4447
|
a[7]
|
|
4448
4448
|
)
|
|
4449
|
-
return
|
|
4449
|
+
return Xi;
|
|
4450
4450
|
if (
|
|
4451
4451
|
/*session*/
|
|
4452
4452
|
a[0]
|
|
4453
4453
|
)
|
|
4454
|
-
return
|
|
4454
|
+
return Vi;
|
|
4455
4455
|
if (!/*session*/
|
|
4456
4456
|
a[0])
|
|
4457
|
-
return
|
|
4457
|
+
return Fi;
|
|
4458
4458
|
}
|
|
4459
4459
|
let i = n(e), o = i && i(e);
|
|
4460
4460
|
return {
|
|
4461
4461
|
c() {
|
|
4462
|
-
t =
|
|
4462
|
+
t = N("div"), r = N("div"), o && o.c(), k(r, "class", "ConsentsContainer svelte-1kygizb"), k(t, "class", Wr("") + " svelte-1kygizb");
|
|
4463
4463
|
},
|
|
4464
4464
|
m(a, s) {
|
|
4465
4465
|
j(a, t, s), x(t, r), o && o.m(r, null), e[32](r);
|
|
@@ -4467,8 +4467,8 @@ function Wi(e) {
|
|
|
4467
4467
|
p(a, s) {
|
|
4468
4468
|
i === (i = n(a)) && o ? o.p(a, s) : (o && o.d(1), o = i && i(a), o && (o.c(), o.m(r, null)));
|
|
4469
4469
|
},
|
|
4470
|
-
i:
|
|
4471
|
-
o:
|
|
4470
|
+
i: q,
|
|
4471
|
+
o: q,
|
|
4472
4472
|
d(a) {
|
|
4473
4473
|
a && L(t), o && o.d(), e[32](null);
|
|
4474
4474
|
}
|
|
@@ -4476,59 +4476,59 @@ function Wi(e) {
|
|
|
4476
4476
|
}
|
|
4477
4477
|
function Zi(e, t, r) {
|
|
4478
4478
|
let n;
|
|
4479
|
-
|
|
4480
|
-
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:
|
|
4479
|
+
Vr(e, Li, (c) => r(16, n = c));
|
|
4480
|
+
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: g = "" } = t, { modalconsents: b = "false" } = t, f, m, S = !1, _ = !1, y = "", C = "", H = "", E = "", B = [], Z = [], O = [], le = !0, ve = !0, F = {}, ke = {}, J = {}, U = {}, ce, Ee, R = {
|
|
4481
4481
|
none: { key: "0", value: "None" },
|
|
4482
4482
|
accepted: { key: "1", value: "Accepted" },
|
|
4483
4483
|
expired: { key: "2", value: "Expired" },
|
|
4484
4484
|
denied: { key: "3", value: "Denied" },
|
|
4485
4485
|
suspended: { key: "4", value: "Suspended" }
|
|
4486
4486
|
}, Ce = !1;
|
|
4487
|
-
Object.keys(
|
|
4488
|
-
xt(c,
|
|
4487
|
+
Object.keys(zt).forEach((c) => {
|
|
4488
|
+
xt(c, zt[c]);
|
|
4489
4489
|
});
|
|
4490
|
-
const
|
|
4490
|
+
const mr = () => {
|
|
4491
4491
|
Ri(l);
|
|
4492
4492
|
}, pr = () => {
|
|
4493
|
-
let c = new URL(
|
|
4493
|
+
let c = new URL(g);
|
|
4494
4494
|
fetch(c.href).then((p) => p.json()).then((p) => {
|
|
4495
|
-
Object.keys(p).forEach((
|
|
4496
|
-
xt(
|
|
4495
|
+
Object.keys(p).forEach((M) => {
|
|
4496
|
+
xt(M, p[M]);
|
|
4497
4497
|
});
|
|
4498
4498
|
}).catch((p) => {
|
|
4499
4499
|
console.log(p);
|
|
4500
4500
|
});
|
|
4501
4501
|
}, fr = () => {
|
|
4502
|
-
i && (
|
|
4502
|
+
i && (y = i, _ = !0), o && (C = o);
|
|
4503
4503
|
}, Se = (c, p = !1) => {
|
|
4504
|
-
p ? r(7,
|
|
4505
|
-
}, ue = (c, p,
|
|
4504
|
+
p ? r(7, E = c) : (Er(), r(6, H = c));
|
|
4505
|
+
}, ue = (c, p, M, v = !1) => de(this, null, function* () {
|
|
4506
4506
|
try {
|
|
4507
|
-
const
|
|
4508
|
-
if (!
|
|
4507
|
+
const z = yield fetch(c, M);
|
|
4508
|
+
if (!z.ok)
|
|
4509
4509
|
throw new Error(n(p));
|
|
4510
|
-
const I = yield
|
|
4511
|
-
return _ ? I : I.filter((
|
|
4512
|
-
} catch (
|
|
4510
|
+
const I = yield z.json();
|
|
4511
|
+
return _ ? I : I.filter((V) => V.showOnRegister === !0);
|
|
4512
|
+
} catch (z) {
|
|
4513
4513
|
throw Se(
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
),
|
|
4514
|
+
z instanceof TypeError ? n(p) : z.message,
|
|
4515
|
+
v
|
|
4516
|
+
), z;
|
|
4517
4517
|
}
|
|
4518
4518
|
}), _r = () => de(this, null, function* () {
|
|
4519
4519
|
try {
|
|
4520
4520
|
let c = [], p = [];
|
|
4521
|
-
if (_ ? [c, p] = yield it() : c = yield it(), r(10, le = !1), Z = [...c], r(8,
|
|
4522
|
-
let
|
|
4523
|
-
|
|
4521
|
+
if (_ ? [c, p] = yield it() : c = yield it(), r(10, le = !1), Z = [...c], r(8, B = yr(Z).sort((M, v) => M.categoryTagCode.localeCompare(v.categoryTagCode))), r(11, F = vr(B)), ke = W({}, F), r(9, O = [...p]), Z.forEach((M) => {
|
|
4522
|
+
let v = O.find((z) => z.tagCode === M.tagCode);
|
|
4523
|
+
v || (v = ct(W({}, M), {
|
|
4524
4524
|
status: R.denied.value
|
|
4525
|
-
}), O.push(
|
|
4525
|
+
}), O.push(v)), v.description = M.description, v.orderNumber = M.orderNumber;
|
|
4526
4526
|
}), b === "true") {
|
|
4527
|
-
if (r(9, O = O.filter((
|
|
4527
|
+
if (r(9, O = O.filter((M) => M.status === R.expired.value)), O.length !== 0)
|
|
4528
4528
|
return;
|
|
4529
4529
|
Se(n("wrongModalConfig"), !0);
|
|
4530
4530
|
}
|
|
4531
|
-
|
|
4531
|
+
kr();
|
|
4532
4532
|
} catch (c) {
|
|
4533
4533
|
throw r(10, le = !1), Se(
|
|
4534
4534
|
c instanceof TypeError ? n("invalidUrl") : c.message,
|
|
@@ -4545,7 +4545,7 @@ function Zi(e, t, r) {
|
|
|
4545
4545
|
ue(p.href, "fetchPlayerConsentsError", {
|
|
4546
4546
|
method: "GET",
|
|
4547
4547
|
headers: {
|
|
4548
|
-
"X-SessionId":
|
|
4548
|
+
"X-SessionId": y,
|
|
4549
4549
|
"Content-Type": "application/json"
|
|
4550
4550
|
}
|
|
4551
4551
|
})
|
|
@@ -4555,108 +4555,108 @@ function Zi(e, t, r) {
|
|
|
4555
4555
|
const c = new URL(`${a}/api/v2/gm/legislation/consents`), p = {
|
|
4556
4556
|
"Content-Type": "application/json",
|
|
4557
4557
|
Accept: "application/json"
|
|
4558
|
-
},
|
|
4559
|
-
fetch(c.href,
|
|
4558
|
+
}, M = { method: "GET", headers: p };
|
|
4559
|
+
fetch(c.href, M).then((v) => v.ok ? v.json() : (Ce = !0, v.json().then((z) => (console.error(z), xe(z))))).then((v) => {
|
|
4560
4560
|
if (!Ce) {
|
|
4561
|
-
if (Z =
|
|
4561
|
+
if (Z = v, localStorage.getItem("playerConsents")) {
|
|
4562
4562
|
try {
|
|
4563
4563
|
r(9, O = JSON.parse(localStorage.getItem("playerConsents")));
|
|
4564
|
-
} catch (
|
|
4565
|
-
return console.error(
|
|
4564
|
+
} catch (z) {
|
|
4565
|
+
return console.error(z), xe(z);
|
|
4566
4566
|
}
|
|
4567
4567
|
return;
|
|
4568
4568
|
}
|
|
4569
|
-
return r(9, O = Z.map((
|
|
4570
|
-
id:
|
|
4569
|
+
return r(9, O = Z.map((z) => ({
|
|
4570
|
+
id: z.id,
|
|
4571
4571
|
status: R.denied.key,
|
|
4572
|
-
friendlyName:
|
|
4573
|
-
tagCode:
|
|
4572
|
+
friendlyName: z.friendlyName,
|
|
4573
|
+
tagCode: z.tagCode,
|
|
4574
4574
|
selected: null,
|
|
4575
|
-
mustAccept:
|
|
4575
|
+
mustAccept: z.mustAccept
|
|
4576
4576
|
}))), localStorage.setItem("playerConsents", JSON.stringify(O)), O;
|
|
4577
4577
|
}
|
|
4578
|
-
}).catch((
|
|
4578
|
+
}).catch((v) => (console.error(v), xe(v))).finally(() => {
|
|
4579
4579
|
r(10, le = !1);
|
|
4580
4580
|
});
|
|
4581
|
-
},
|
|
4581
|
+
}, yr = (c) => {
|
|
4582
4582
|
const p = /* @__PURE__ */ new Map();
|
|
4583
|
-
return c.forEach((
|
|
4584
|
-
p.has(
|
|
4583
|
+
return c.forEach((M) => {
|
|
4584
|
+
p.has(M.category.categoryTagCode) || p.set(M.category.categoryTagCode, M.category);
|
|
4585
4585
|
}), Array.from(p.values());
|
|
4586
|
-
},
|
|
4586
|
+
}, vr = (c) => {
|
|
4587
4587
|
const p = localStorage.getItem("categoryToggle" + C);
|
|
4588
4588
|
if (p === null) {
|
|
4589
|
-
const
|
|
4590
|
-
(
|
|
4589
|
+
const M = c.reduce(
|
|
4590
|
+
(v, z) => (v[z.categoryTagCode] = !1, v),
|
|
4591
4591
|
{}
|
|
4592
4592
|
);
|
|
4593
|
-
return localStorage.setItem("categoryToggle" + C, JSON.stringify(
|
|
4593
|
+
return localStorage.setItem("categoryToggle" + C, JSON.stringify(M)), M;
|
|
4594
4594
|
} else
|
|
4595
4595
|
return JSON.parse(p);
|
|
4596
|
-
},
|
|
4596
|
+
}, kr = () => {
|
|
4597
4597
|
O.forEach((c) => {
|
|
4598
4598
|
r(12, J[c.tagCode] = c.status === R.accepted.value, J);
|
|
4599
4599
|
}), r(13, U = W({}, J));
|
|
4600
|
-
},
|
|
4601
|
-
r(13, U = W({}, J)), r(11,
|
|
4600
|
+
}, Er = () => {
|
|
4601
|
+
r(13, U = W({}, J)), r(11, F = W({}, ke));
|
|
4602
4602
|
}, Cr = () => de(this, null, function* () {
|
|
4603
|
-
if (!
|
|
4603
|
+
if (!ve)
|
|
4604
4604
|
return;
|
|
4605
|
-
|
|
4605
|
+
ve = !1;
|
|
4606
4606
|
const c = [], p = [];
|
|
4607
|
-
if (Object.keys(U).forEach((
|
|
4608
|
-
const
|
|
4609
|
-
U[
|
|
4610
|
-
tagCode:
|
|
4611
|
-
status: U[
|
|
4607
|
+
if (Object.keys(U).forEach((v) => {
|
|
4608
|
+
const z = O.find((I) => I.tagCode === v);
|
|
4609
|
+
U[v] !== J[v] && (z ? c.push({
|
|
4610
|
+
tagCode: v,
|
|
4611
|
+
status: U[v] ? R.accepted.value : R.denied.value
|
|
4612
4612
|
}) : p.push({
|
|
4613
|
-
tagCode:
|
|
4614
|
-
status: U[
|
|
4613
|
+
tagCode: v,
|
|
4614
|
+
status: U[v] ? R.accepted.value : R.denied.value
|
|
4615
4615
|
}));
|
|
4616
4616
|
}), !_) {
|
|
4617
|
-
localStorage.setItem("categoryToggle" + C, JSON.stringify(
|
|
4617
|
+
localStorage.setItem("categoryToggle" + C, JSON.stringify(F)), ke = W({}, F), window.postMessage(
|
|
4618
4618
|
{
|
|
4619
4619
|
type: "NewPlayerConsentData",
|
|
4620
4620
|
data: JSON.stringify(p)
|
|
4621
4621
|
},
|
|
4622
4622
|
window.location.href
|
|
4623
|
-
),
|
|
4623
|
+
), ve = !0;
|
|
4624
4624
|
return;
|
|
4625
4625
|
}
|
|
4626
|
-
const
|
|
4626
|
+
const M = new URL(`${a}/api/v1/gm/user-consents/${C}`);
|
|
4627
4627
|
try {
|
|
4628
|
-
const
|
|
4629
|
-
p.length > 0 && ue(
|
|
4628
|
+
const v = yield Promise.allSettled([
|
|
4629
|
+
p.length > 0 && ue(M.href, "updateConsentsError", {
|
|
4630
4630
|
method: "POST",
|
|
4631
4631
|
headers: {
|
|
4632
|
-
"X-SessionId":
|
|
4632
|
+
"X-SessionId": y,
|
|
4633
4633
|
"Content-Type": "application/json"
|
|
4634
4634
|
},
|
|
4635
4635
|
body: JSON.stringify({ userConsents: p })
|
|
4636
4636
|
}),
|
|
4637
|
-
c.length > 0 && ue(
|
|
4637
|
+
c.length > 0 && ue(M.href, "updateConsentsError", {
|
|
4638
4638
|
method: "PATCH",
|
|
4639
4639
|
headers: {
|
|
4640
|
-
"X-SessionId":
|
|
4640
|
+
"X-SessionId": y,
|
|
4641
4641
|
"Content-Type": "application/json"
|
|
4642
4642
|
},
|
|
4643
4643
|
body: JSON.stringify({ userConsents: c })
|
|
4644
4644
|
})
|
|
4645
4645
|
]);
|
|
4646
|
-
|
|
4647
|
-
if (
|
|
4648
|
-
const
|
|
4649
|
-
r(13, U[
|
|
4646
|
+
v.forEach((z, I) => {
|
|
4647
|
+
if (z.status === "rejected" || z.value.ok === !1) {
|
|
4648
|
+
const V = I < p.length ? p[I] : c[I - p.length];
|
|
4649
|
+
r(13, U[V.tagCode] = J[V.tagCode], U);
|
|
4650
4650
|
}
|
|
4651
|
-
}),
|
|
4651
|
+
}), v.every((z) => z.status === "fulfilled") && (localStorage.setItem("categoryToggle" + C, JSON.stringify(F)), ke = W({}, F), window.postMessage(
|
|
4652
4652
|
{
|
|
4653
4653
|
type: "PlayerConsentUpdated",
|
|
4654
4654
|
success: !0
|
|
4655
4655
|
},
|
|
4656
4656
|
window.location.href
|
|
4657
4657
|
), r(12, J = W({}, U)));
|
|
4658
|
-
} catch (
|
|
4659
|
-
Se(
|
|
4658
|
+
} catch (v) {
|
|
4659
|
+
Se(v instanceof TypeError ? n("saveChangesError") : v.message), window.postMessage(
|
|
4660
4660
|
{
|
|
4661
4661
|
type: "PlayerConsentUpdated",
|
|
4662
4662
|
success: !1
|
|
@@ -4664,58 +4664,58 @@ function Zi(e, t, r) {
|
|
|
4664
4664
|
window.location.href
|
|
4665
4665
|
);
|
|
4666
4666
|
} finally {
|
|
4667
|
-
|
|
4667
|
+
ve = !0, r(14, ce = !1);
|
|
4668
4668
|
}
|
|
4669
4669
|
}), Sr = (c) => {
|
|
4670
|
-
const p = new URL(`${a}/api/v2/gm/legislation/consents`),
|
|
4670
|
+
const p = new URL(`${a}/api/v2/gm/legislation/consents`), M = {
|
|
4671
4671
|
"Content-Type": "application/json",
|
|
4672
4672
|
Accept: "application/json"
|
|
4673
|
-
},
|
|
4673
|
+
}, v = {
|
|
4674
4674
|
playerConsents: O,
|
|
4675
4675
|
registrationId: c
|
|
4676
|
-
},
|
|
4676
|
+
}, z = {
|
|
4677
4677
|
method: "POST",
|
|
4678
|
-
body: JSON.stringify(
|
|
4679
|
-
headers:
|
|
4678
|
+
body: JSON.stringify(v),
|
|
4679
|
+
headers: M
|
|
4680
4680
|
};
|
|
4681
|
-
fetch(p.href,
|
|
4681
|
+
fetch(p.href, z).then((I) => {
|
|
4682
4682
|
I.ok || (Ce = !0);
|
|
4683
4683
|
}).catch((I) => (console.error(I), xe(I))).finally(() => {
|
|
4684
4684
|
r(10, le = !1);
|
|
4685
4685
|
});
|
|
4686
4686
|
}, ot = (c) => {
|
|
4687
4687
|
O.filter((p) => p.category.categoryTagCode === c).forEach((p) => {
|
|
4688
|
-
p.status = p.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, U[p.tagCode] =
|
|
4688
|
+
p.status = p.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, U[p.tagCode] = F[c] || !1, U);
|
|
4689
4689
|
}), r(14, ce = at());
|
|
4690
|
-
}, Ie = (c, p,
|
|
4691
|
-
const
|
|
4690
|
+
}, Ie = (c, p, M) => {
|
|
4691
|
+
const v = O.find((V) => V.id === M), z = p ? "value" : "key";
|
|
4692
4692
|
let I;
|
|
4693
|
-
if (!p &&
|
|
4694
|
-
const
|
|
4695
|
-
for (const he of
|
|
4696
|
-
if (I = Array.from(he.children).find((Or) => Or.getAttribute("id") === `checkBoxError__${
|
|
4693
|
+
if (!p && v.mustAccept) {
|
|
4694
|
+
const V = Array.from(Ee.children);
|
|
4695
|
+
for (const he of V)
|
|
4696
|
+
if (I = Array.from(he.children).find((Or) => Or.getAttribute("id") === `checkBoxError__${v.tagCode}`), I)
|
|
4697
4697
|
break;
|
|
4698
4698
|
}
|
|
4699
|
-
if (
|
|
4700
|
-
r(13, U[
|
|
4701
|
-
const
|
|
4702
|
-
r(11,
|
|
4699
|
+
if (v.status === R.accepted[z] ? (v.status = R.denied[z], I && (I.innerHTML = n("requiredError"))) : (v.status = R.accepted[z], I && (I.innerHTML = "")), p) {
|
|
4700
|
+
r(13, U[v.tagCode] = !U[v.tagCode], U);
|
|
4701
|
+
const V = O.filter((he) => he.category.categoryTagCode === p.categoryTagCode).every((he) => he.status !== R.denied.value);
|
|
4702
|
+
r(11, F[p.categoryTagCode] = V, F);
|
|
4703
4703
|
}
|
|
4704
4704
|
xr();
|
|
4705
4705
|
}, xr = ((c, p) => {
|
|
4706
|
-
let
|
|
4707
|
-
return function(...
|
|
4708
|
-
const
|
|
4709
|
-
clearTimeout(
|
|
4706
|
+
let M;
|
|
4707
|
+
return function(...v) {
|
|
4708
|
+
const z = this;
|
|
4709
|
+
clearTimeout(M), M = setTimeout(
|
|
4710
4710
|
() => {
|
|
4711
|
-
c.apply(
|
|
4711
|
+
c.apply(z, v);
|
|
4712
4712
|
},
|
|
4713
4713
|
p
|
|
4714
4714
|
);
|
|
4715
4715
|
};
|
|
4716
|
-
})(() =>
|
|
4716
|
+
})(() => zr(), 500), zr = () => {
|
|
4717
4717
|
r(14, ce = at()), i || (window.postMessage({ type: "isConsentsValid", isValid: ce }), localStorage.setItem("playerConsents", JSON.stringify(O)));
|
|
4718
|
-
}, at = () => O.filter((p) => O.some((
|
|
4718
|
+
}, at = () => O.filter((p) => O.some((M) => p.tagCode === M.tagCode && M.mustAccept && (p.status === R.denied.key || p.status === R.denied.value))).length === 0, xe = (c) => {
|
|
4719
4719
|
window.postMessage(
|
|
4720
4720
|
{
|
|
4721
4721
|
type: "WidgetNotification",
|
|
@@ -4723,46 +4723,46 @@ function Zi(e, t, r) {
|
|
|
4723
4723
|
},
|
|
4724
4724
|
window.location.href
|
|
4725
4725
|
);
|
|
4726
|
-
},
|
|
4726
|
+
}, Mr = (c) => {
|
|
4727
4727
|
c.data && c.data.type !== "setUpPlayerConsents" || Sr(c.data.registerid);
|
|
4728
4728
|
};
|
|
4729
|
-
|
|
4729
|
+
Xr(() => {
|
|
4730
4730
|
setTimeout(
|
|
4731
4731
|
() => {
|
|
4732
4732
|
r(25, S = !0);
|
|
4733
4733
|
},
|
|
4734
4734
|
50
|
|
4735
4735
|
);
|
|
4736
|
-
const c = (p) =>
|
|
4736
|
+
const c = (p) => Mr(p);
|
|
4737
4737
|
return window.addEventListener("message", c), () => {
|
|
4738
|
-
window.emMessageBus &&
|
|
4738
|
+
window.emMessageBus && m && m.unsubscribe(), window.removeEventListener("message", c);
|
|
4739
4739
|
};
|
|
4740
4740
|
});
|
|
4741
|
-
function
|
|
4742
|
-
|
|
4741
|
+
function Tr(c) {
|
|
4742
|
+
F[c.categoryTagCode] = this.checked, r(11, F);
|
|
4743
4743
|
}
|
|
4744
|
-
const
|
|
4745
|
-
function
|
|
4744
|
+
const wr = (c) => ot(c.categoryTagCode), Nr = (c, p) => p.category.categoryTagCode === c.categoryTagCode, Ar = (c, p) => Ie(p, c.category, c.id), Hr = (c, p) => Ie(p, null, c.id);
|
|
4745
|
+
function Pr(c) {
|
|
4746
4746
|
ht[c ? "unshift" : "push"](() => {
|
|
4747
|
-
|
|
4747
|
+
Ee = c, r(15, Ee);
|
|
4748
4748
|
});
|
|
4749
4749
|
}
|
|
4750
|
-
function
|
|
4750
|
+
function Br(c) {
|
|
4751
4751
|
ht[c ? "unshift" : "push"](() => {
|
|
4752
4752
|
f = c, r(5, f);
|
|
4753
4753
|
});
|
|
4754
4754
|
}
|
|
4755
4755
|
return e.$$set = (c) => {
|
|
4756
|
-
"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,
|
|
4756
|
+
"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, g = c.translationurl), "modalconsents" in c && r(24, b = c.modalconsents);
|
|
4757
4757
|
}, e.$$.update = () => {
|
|
4758
4758
|
e.$$.dirty[0] & /*isMounted, session*/
|
|
4759
4759
|
33554433 && S && i && (fr(), _r()), e.$$.dirty[0] & /*session*/
|
|
4760
4760
|
1 && (i || br()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4761
4761
|
34 && s && f && Zr(f, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4762
|
-
36 && h && f &&
|
|
4762
|
+
36 && h && f && qr(f, h), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4763
4763
|
40 && f && Jr(f, `${u}.Style`), e.$$.dirty[0] & /*lang*/
|
|
4764
|
-
4194304 && l &&
|
|
4765
|
-
8388608 &&
|
|
4764
|
+
4194304 && l && mr(), e.$$.dirty[0] & /*translationurl*/
|
|
4765
|
+
8388608 && g && pr();
|
|
4766
4766
|
}, [
|
|
4767
4767
|
i,
|
|
4768
4768
|
s,
|
|
@@ -4770,16 +4770,16 @@ function Zi(e, t, r) {
|
|
|
4770
4770
|
u,
|
|
4771
4771
|
d,
|
|
4772
4772
|
f,
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4773
|
+
H,
|
|
4774
|
+
E,
|
|
4775
|
+
B,
|
|
4776
4776
|
O,
|
|
4777
4777
|
le,
|
|
4778
|
-
|
|
4778
|
+
F,
|
|
4779
4779
|
J,
|
|
4780
4780
|
U,
|
|
4781
4781
|
ce,
|
|
4782
|
-
|
|
4782
|
+
Ee,
|
|
4783
4783
|
n,
|
|
4784
4784
|
Cr,
|
|
4785
4785
|
ot,
|
|
@@ -4787,21 +4787,21 @@ function Zi(e, t, r) {
|
|
|
4787
4787
|
o,
|
|
4788
4788
|
a,
|
|
4789
4789
|
l,
|
|
4790
|
-
|
|
4790
|
+
g,
|
|
4791
4791
|
b,
|
|
4792
4792
|
S,
|
|
4793
|
+
Tr,
|
|
4793
4794
|
wr,
|
|
4794
4795
|
Nr,
|
|
4795
4796
|
Ar,
|
|
4796
4797
|
Hr,
|
|
4797
4798
|
Pr,
|
|
4798
|
-
Br
|
|
4799
|
-
zr
|
|
4799
|
+
Br
|
|
4800
4800
|
];
|
|
4801
4801
|
}
|
|
4802
4802
|
class Ji extends Dt {
|
|
4803
4803
|
constructor(t) {
|
|
4804
|
-
super(),
|
|
4804
|
+
super(), Gt(
|
|
4805
4805
|
this,
|
|
4806
4806
|
t,
|
|
4807
4807
|
Zi,
|
|
@@ -4819,7 +4819,7 @@ class Ji extends Dt {
|
|
|
4819
4819
|
translationurl: 23,
|
|
4820
4820
|
modalconsents: 24
|
|
4821
4821
|
},
|
|
4822
|
-
|
|
4822
|
+
Gi,
|
|
4823
4823
|
[-1, -1, -1]
|
|
4824
4824
|
);
|
|
4825
4825
|
}
|
|
@@ -4827,61 +4827,61 @@ class Ji extends Dt {
|
|
|
4827
4827
|
return this.$$.ctx[0];
|
|
4828
4828
|
}
|
|
4829
4829
|
set session(t) {
|
|
4830
|
-
this.$$set({ session: t }),
|
|
4830
|
+
this.$$set({ session: t }), X();
|
|
4831
4831
|
}
|
|
4832
4832
|
get userid() {
|
|
4833
4833
|
return this.$$.ctx[20];
|
|
4834
4834
|
}
|
|
4835
4835
|
set userid(t) {
|
|
4836
|
-
this.$$set({ userid: t }),
|
|
4836
|
+
this.$$set({ userid: t }), X();
|
|
4837
4837
|
}
|
|
4838
4838
|
get endpoint() {
|
|
4839
4839
|
return this.$$.ctx[21];
|
|
4840
4840
|
}
|
|
4841
4841
|
set endpoint(t) {
|
|
4842
|
-
this.$$set({ endpoint: t }),
|
|
4842
|
+
this.$$set({ endpoint: t }), X();
|
|
4843
4843
|
}
|
|
4844
4844
|
get clientstyling() {
|
|
4845
4845
|
return this.$$.ctx[1];
|
|
4846
4846
|
}
|
|
4847
4847
|
set clientstyling(t) {
|
|
4848
|
-
this.$$set({ clientstyling: t }),
|
|
4848
|
+
this.$$set({ clientstyling: t }), X();
|
|
4849
4849
|
}
|
|
4850
4850
|
get clientstylingurl() {
|
|
4851
4851
|
return this.$$.ctx[2];
|
|
4852
4852
|
}
|
|
4853
4853
|
set clientstylingurl(t) {
|
|
4854
|
-
this.$$set({ clientstylingurl: t }),
|
|
4854
|
+
this.$$set({ clientstylingurl: t }), X();
|
|
4855
4855
|
}
|
|
4856
4856
|
get mbsource() {
|
|
4857
4857
|
return this.$$.ctx[3];
|
|
4858
4858
|
}
|
|
4859
4859
|
set mbsource(t) {
|
|
4860
|
-
this.$$set({ mbsource: t }),
|
|
4860
|
+
this.$$set({ mbsource: t }), X();
|
|
4861
4861
|
}
|
|
4862
4862
|
get lang() {
|
|
4863
4863
|
return this.$$.ctx[22];
|
|
4864
4864
|
}
|
|
4865
4865
|
set lang(t) {
|
|
4866
|
-
this.$$set({ lang: t }),
|
|
4866
|
+
this.$$set({ lang: t }), X();
|
|
4867
4867
|
}
|
|
4868
4868
|
get displayconsentdescription() {
|
|
4869
4869
|
return this.$$.ctx[4];
|
|
4870
4870
|
}
|
|
4871
4871
|
set displayconsentdescription(t) {
|
|
4872
|
-
this.$$set({ displayconsentdescription: t }),
|
|
4872
|
+
this.$$set({ displayconsentdescription: t }), X();
|
|
4873
4873
|
}
|
|
4874
4874
|
get translationurl() {
|
|
4875
4875
|
return this.$$.ctx[23];
|
|
4876
4876
|
}
|
|
4877
4877
|
set translationurl(t) {
|
|
4878
|
-
this.$$set({ translationurl: t }),
|
|
4878
|
+
this.$$set({ translationurl: t }), X();
|
|
4879
4879
|
}
|
|
4880
4880
|
get modalconsents() {
|
|
4881
4881
|
return this.$$.ctx[24];
|
|
4882
4882
|
}
|
|
4883
4883
|
set modalconsents(t) {
|
|
4884
|
-
this.$$set({ modalconsents: t }),
|
|
4884
|
+
this.$$set({ modalconsents: t }), X();
|
|
4885
4885
|
}
|
|
4886
4886
|
}
|
|
4887
4887
|
Ut(Ji, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
|