@everymatrix/player-consents 1.56.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralAnimationLoading-C74Ex5kT.js → GeneralAnimationLoading-BMZE178n.js} +36 -33
- package/components/GeneralAnimationLoading-acwReDLO.cjs +1 -0
- package/components/{GeneralAnimationLoading-DI4TgHQS.js → GeneralAnimationLoading-kMKGPw5f.js} +26 -23
- package/components/{PlayerConsents-BMub2JNi.js → PlayerConsents-Bvhxca3p.js} +914 -886
- package/components/PlayerConsents-DAjj2l81.cjs +16 -0
- package/components/{PlayerConsents-nvnYz5OV.js → PlayerConsents-f416QJ42.js} +832 -804
- package/es2015/player-consents.cjs +1 -1
- package/es2015/player-consents.js +1 -1
- package/esnext/player-consents.js +1 -1
- package/package.json +1 -1
- package/components/GeneralAnimationLoading-CAA4qpEj.cjs +0 -1
- package/components/PlayerConsents-C_JvB-ZA.cjs +0 -3
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Ir = Object.defineProperty, jr = Object.defineProperties;
|
|
2
|
+
var Lr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var st = Object.getOwnPropertySymbols;
|
|
4
|
+
var Rr = Object.prototype.hasOwnProperty, Ur = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var lt = (e, t, r) => t in e ? Ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, W = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Rr.call(t, r) && lt(e, r, t[r]);
|
|
8
|
+
if (st)
|
|
9
|
+
for (var r of st(t))
|
|
10
|
+
Ur.call(t, r) && lt(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, ct = (e, t) => jr(e, Lr(t));
|
|
13
|
+
var de = (e, t, r) => new Promise((n, i) => {
|
|
14
14
|
var o = (h) => {
|
|
15
15
|
try {
|
|
16
16
|
s(r.next(h));
|
|
17
|
-
} catch (
|
|
18
|
-
i(
|
|
17
|
+
} catch (u) {
|
|
18
|
+
i(u);
|
|
19
19
|
}
|
|
20
20
|
}, a = (h) => {
|
|
21
21
|
try {
|
|
22
22
|
s(r.throw(h));
|
|
23
|
-
} catch (
|
|
24
|
-
i(
|
|
23
|
+
} catch (u) {
|
|
24
|
+
i(u);
|
|
25
25
|
}
|
|
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 X, s as
|
|
30
|
-
const
|
|
31
|
-
function
|
|
29
|
+
import { n as X, s as Dr, r as Rt, a as Ke, i as qr, c as Ut, S as Dt, b as qt, d as ut, e as E, f as j, g as x, h as L, j as V, k as Gr, l as A, m as Fr, o as Vr, p as Xr, q as Wr, t as ht, u as Zr, v as Jr, w as ee, x as $e, y as q, z as Qr, A as ge, B as _e, C as be, D as Y, H as Gt } from "./GeneralAnimationLoading-kMKGPw5f.js";
|
|
30
|
+
const $ = [];
|
|
31
|
+
function Yr(e, t) {
|
|
32
32
|
return {
|
|
33
|
-
subscribe:
|
|
33
|
+
subscribe: He(e, t).subscribe
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function He(e, t = X) {
|
|
37
37
|
let r;
|
|
38
38
|
const n = /* @__PURE__ */ new Set();
|
|
39
39
|
function i(s) {
|
|
40
|
-
if (
|
|
41
|
-
const h =
|
|
42
|
-
for (const
|
|
43
|
-
|
|
40
|
+
if (Ke(e, s) && (e = s, r)) {
|
|
41
|
+
const h = !$.length;
|
|
42
|
+
for (const u of n)
|
|
43
|
+
u[1](), $.push(u, e);
|
|
44
44
|
if (h) {
|
|
45
|
-
for (let
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
for (let u = 0; u < $.length; u += 2)
|
|
46
|
+
$[u][0]($[u + 1]);
|
|
47
|
+
$.length = 0;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -52,129 +52,144 @@ function Ae(e, t = X) {
|
|
|
52
52
|
i(s(e));
|
|
53
53
|
}
|
|
54
54
|
function a(s, h = X) {
|
|
55
|
-
const
|
|
56
|
-
return n.add(
|
|
57
|
-
n.delete(
|
|
55
|
+
const u = [s, h];
|
|
56
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || X), s(e), () => {
|
|
57
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
return { set: i, update: o, subscribe: a };
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function oe(e, t, r) {
|
|
63
63
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
64
64
|
if (!i.every(Boolean))
|
|
65
65
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
66
66
|
const o = t.length < 2;
|
|
67
|
-
return
|
|
67
|
+
return Yr(r, (a, s) => {
|
|
68
68
|
let h = !1;
|
|
69
|
-
const
|
|
70
|
-
let
|
|
69
|
+
const u = [];
|
|
70
|
+
let l = 0, d = X;
|
|
71
71
|
const m = () => {
|
|
72
|
-
if (
|
|
72
|
+
if (l)
|
|
73
73
|
return;
|
|
74
74
|
d();
|
|
75
|
-
const f = t(n ?
|
|
76
|
-
o ? a(f) : d =
|
|
77
|
-
},
|
|
78
|
-
(f,
|
|
75
|
+
const f = t(n ? u[0] : u, a, s);
|
|
76
|
+
o ? a(f) : d = qr(f) ? f : X;
|
|
77
|
+
}, b = i.map(
|
|
78
|
+
(f, g) => Dr(
|
|
79
79
|
f,
|
|
80
|
-
(
|
|
81
|
-
|
|
80
|
+
(S) => {
|
|
81
|
+
u[g] = S, l &= ~(1 << g), h && m();
|
|
82
82
|
},
|
|
83
83
|
() => {
|
|
84
|
-
|
|
84
|
+
l |= 1 << g;
|
|
85
85
|
}
|
|
86
86
|
)
|
|
87
87
|
);
|
|
88
88
|
return h = !0, m(), function() {
|
|
89
|
-
|
|
89
|
+
Rt(b), d(), h = !1;
|
|
90
90
|
};
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function Kr(e) {
|
|
94
94
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
95
95
|
}
|
|
96
|
-
var
|
|
97
|
-
return
|
|
96
|
+
var $r = function(t) {
|
|
97
|
+
return en(t) && !tn(t);
|
|
98
98
|
};
|
|
99
|
-
function
|
|
99
|
+
function en(e) {
|
|
100
100
|
return !!e && typeof e == "object";
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function tn(e) {
|
|
103
103
|
var t = Object.prototype.toString.call(e);
|
|
104
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
104
|
+
return t === "[object RegExp]" || t === "[object Date]" || on(e);
|
|
105
105
|
}
|
|
106
|
-
var
|
|
107
|
-
function
|
|
108
|
-
return e.$$typeof ===
|
|
106
|
+
var rn = typeof Symbol == "function" && Symbol.for, nn = rn ? Symbol.for("react.element") : 60103;
|
|
107
|
+
function on(e) {
|
|
108
|
+
return e.$$typeof === nn;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function an(e) {
|
|
111
111
|
return Array.isArray(e) ? [] : {};
|
|
112
112
|
}
|
|
113
113
|
function pe(e, t) {
|
|
114
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
114
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? te(an(e), e, t) : e;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function sn(e, t, r) {
|
|
117
117
|
return e.concat(t).map(function(n) {
|
|
118
118
|
return pe(n, r);
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function ln(e, t) {
|
|
122
122
|
if (!t.customMerge)
|
|
123
|
-
return
|
|
123
|
+
return te;
|
|
124
124
|
var r = t.customMerge(e);
|
|
125
|
-
return typeof r == "function" ? r :
|
|
125
|
+
return typeof r == "function" ? r : te;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function cn(e) {
|
|
128
128
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
129
129
|
return Object.propertyIsEnumerable.call(e, t);
|
|
130
130
|
}) : [];
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
return Object.keys(e).concat(
|
|
132
|
+
function dt(e) {
|
|
133
|
+
return Object.keys(e).concat(cn(e));
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Ft(e, t) {
|
|
136
136
|
try {
|
|
137
137
|
return t in e;
|
|
138
138
|
} catch (r) {
|
|
139
139
|
return !1;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
return
|
|
142
|
+
function un(e, t) {
|
|
143
|
+
return Ft(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function hn(e, t, r) {
|
|
146
146
|
var n = {};
|
|
147
|
-
return r.isMergeableObject(e) &&
|
|
147
|
+
return r.isMergeableObject(e) && dt(e).forEach(function(i) {
|
|
148
148
|
n[i] = pe(e[i], r);
|
|
149
|
-
}),
|
|
150
|
-
|
|
149
|
+
}), dt(t).forEach(function(i) {
|
|
150
|
+
un(e, i) || (Ft(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
|
-
function
|
|
154
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
153
|
+
function te(e, t, r) {
|
|
154
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || sn, r.isMergeableObject = r.isMergeableObject || $r, r.cloneUnlessOtherwiseSpecified = pe;
|
|
155
155
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
156
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
156
|
+
return o ? n ? r.arrayMerge(e, t, r) : hn(e, t, r) : pe(t, r);
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
te.all = function(t, r) {
|
|
159
159
|
if (!Array.isArray(t))
|
|
160
160
|
throw new Error("first argument should be an array");
|
|
161
161
|
return t.reduce(function(n, i) {
|
|
162
|
-
return
|
|
162
|
+
return te(n, i, r);
|
|
163
163
|
}, {});
|
|
164
164
|
};
|
|
165
|
-
var
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
var dn = te, mn = dn;
|
|
166
|
+
const gn = /* @__PURE__ */ Kr(mn);
|
|
167
|
+
/*! *****************************************************************************
|
|
168
|
+
Copyright (c) Microsoft Corporation.
|
|
169
|
+
|
|
170
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
171
|
+
purpose with or without fee is hereby granted.
|
|
172
|
+
|
|
173
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
174
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
175
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
176
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
177
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
178
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
179
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
180
|
+
***************************************************************************** */
|
|
181
|
+
var Ge = function(e, t) {
|
|
182
|
+
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
169
183
|
r.__proto__ = n;
|
|
170
184
|
} || function(r, n) {
|
|
171
|
-
for (var i in n)
|
|
172
|
-
|
|
185
|
+
for (var i in n)
|
|
186
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
187
|
+
}, Ge(e, t);
|
|
173
188
|
};
|
|
174
|
-
function
|
|
189
|
+
function Pe(e, t) {
|
|
175
190
|
if (typeof t != "function" && t !== null)
|
|
176
191
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
177
|
-
|
|
192
|
+
Ge(e, t);
|
|
178
193
|
function r() {
|
|
179
194
|
this.constructor = e;
|
|
180
195
|
}
|
|
@@ -184,72 +199,77 @@ var H = function() {
|
|
|
184
199
|
return H = Object.assign || function(t) {
|
|
185
200
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
186
201
|
r = arguments[n];
|
|
187
|
-
for (var o in r)
|
|
202
|
+
for (var o in r)
|
|
203
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
188
204
|
}
|
|
189
205
|
return t;
|
|
190
206
|
}, H.apply(this, arguments);
|
|
191
207
|
};
|
|
192
|
-
function
|
|
208
|
+
function pn(e, t) {
|
|
193
209
|
var r = {};
|
|
194
|
-
for (var n in e)
|
|
210
|
+
for (var n in e)
|
|
211
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
195
212
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
196
213
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
197
214
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
198
215
|
return r;
|
|
199
216
|
}
|
|
200
|
-
function
|
|
201
|
-
if (
|
|
202
|
-
(
|
|
203
|
-
|
|
217
|
+
function je(e, t, r) {
|
|
218
|
+
if (arguments.length === 2)
|
|
219
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
220
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
221
|
+
return e.concat(o || t);
|
|
204
222
|
}
|
|
205
|
-
function
|
|
206
|
-
var r = t && t.cache ? t.cache :
|
|
223
|
+
function Le(e, t) {
|
|
224
|
+
var r = t && t.cache ? t.cache : En, n = t && t.serializer ? t.serializer : yn, i = t && t.strategy ? t.strategy : _n;
|
|
207
225
|
return i(e, {
|
|
208
226
|
cache: r,
|
|
209
227
|
serializer: n
|
|
210
228
|
});
|
|
211
229
|
}
|
|
212
|
-
function
|
|
230
|
+
function fn(e) {
|
|
213
231
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
214
232
|
}
|
|
215
|
-
function
|
|
216
|
-
var i =
|
|
233
|
+
function Vt(e, t, r, n) {
|
|
234
|
+
var i = fn(n) ? n : r(n), o = t.get(i);
|
|
217
235
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
218
236
|
}
|
|
219
|
-
function
|
|
237
|
+
function Xt(e, t, r) {
|
|
220
238
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
221
239
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
222
240
|
}
|
|
223
|
-
function
|
|
241
|
+
function et(e, t, r, n, i) {
|
|
224
242
|
return r.bind(t, e, n, i);
|
|
225
243
|
}
|
|
226
|
-
function
|
|
227
|
-
var r = e.length === 1 ?
|
|
228
|
-
return
|
|
244
|
+
function _n(e, t) {
|
|
245
|
+
var r = e.length === 1 ? Vt : Xt;
|
|
246
|
+
return et(e, this, r, t.cache.create(), t.serializer);
|
|
229
247
|
}
|
|
230
|
-
function
|
|
231
|
-
return
|
|
248
|
+
function bn(e, t) {
|
|
249
|
+
return et(e, this, Xt, t.cache.create(), t.serializer);
|
|
232
250
|
}
|
|
233
|
-
|
|
251
|
+
function vn(e, t) {
|
|
252
|
+
return et(e, this, Vt, t.cache.create(), t.serializer);
|
|
253
|
+
}
|
|
254
|
+
var yn = function() {
|
|
234
255
|
return JSON.stringify(arguments);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}()
|
|
247
|
-
), vn = {
|
|
256
|
+
};
|
|
257
|
+
function tt() {
|
|
258
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
259
|
+
}
|
|
260
|
+
tt.prototype.get = function(e) {
|
|
261
|
+
return this.cache[e];
|
|
262
|
+
};
|
|
263
|
+
tt.prototype.set = function(e, t) {
|
|
264
|
+
this.cache[e] = t;
|
|
265
|
+
};
|
|
266
|
+
var En = {
|
|
248
267
|
create: function() {
|
|
249
|
-
return new
|
|
268
|
+
return new tt();
|
|
250
269
|
}
|
|
251
|
-
},
|
|
252
|
-
variadic:
|
|
270
|
+
}, Re = {
|
|
271
|
+
variadic: bn,
|
|
272
|
+
monadic: vn
|
|
253
273
|
}, w;
|
|
254
274
|
(function(e) {
|
|
255
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";
|
|
@@ -258,47 +278,47 @@ var B;
|
|
|
258
278
|
(function(e) {
|
|
259
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";
|
|
260
280
|
})(B || (B = {}));
|
|
261
|
-
var
|
|
281
|
+
var re;
|
|
262
282
|
(function(e) {
|
|
263
283
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
264
|
-
})(
|
|
265
|
-
function
|
|
284
|
+
})(re || (re = {}));
|
|
285
|
+
function mt(e) {
|
|
266
286
|
return e.type === B.literal;
|
|
267
287
|
}
|
|
268
|
-
function
|
|
288
|
+
function kn(e) {
|
|
269
289
|
return e.type === B.argument;
|
|
270
290
|
}
|
|
271
|
-
function
|
|
291
|
+
function Wt(e) {
|
|
272
292
|
return e.type === B.number;
|
|
273
293
|
}
|
|
274
|
-
function
|
|
294
|
+
function Zt(e) {
|
|
275
295
|
return e.type === B.date;
|
|
276
296
|
}
|
|
277
|
-
function
|
|
297
|
+
function Jt(e) {
|
|
278
298
|
return e.type === B.time;
|
|
279
299
|
}
|
|
280
|
-
function
|
|
300
|
+
function Qt(e) {
|
|
281
301
|
return e.type === B.select;
|
|
282
302
|
}
|
|
283
|
-
function
|
|
303
|
+
function Yt(e) {
|
|
284
304
|
return e.type === B.plural;
|
|
285
305
|
}
|
|
286
|
-
function
|
|
306
|
+
function Cn(e) {
|
|
287
307
|
return e.type === B.pound;
|
|
288
308
|
}
|
|
289
|
-
function
|
|
309
|
+
function Kt(e) {
|
|
290
310
|
return e.type === B.tag;
|
|
291
311
|
}
|
|
292
|
-
function
|
|
293
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
312
|
+
function $t(e) {
|
|
313
|
+
return !!(e && typeof e == "object" && e.type === re.number);
|
|
294
314
|
}
|
|
295
|
-
function
|
|
296
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
315
|
+
function Fe(e) {
|
|
316
|
+
return !!(e && typeof e == "object" && e.type === re.dateTime);
|
|
297
317
|
}
|
|
298
|
-
var
|
|
299
|
-
function
|
|
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;
|
|
319
|
+
function xn(e) {
|
|
300
320
|
var t = {};
|
|
301
|
-
return e.replace(
|
|
321
|
+
return e.replace(Sn, function(r) {
|
|
302
322
|
var n = r.length;
|
|
303
323
|
switch (r[0]) {
|
|
304
324
|
case "G":
|
|
@@ -387,18 +407,18 @@ function Cn(e) {
|
|
|
387
407
|
return "";
|
|
388
408
|
}), t;
|
|
389
409
|
}
|
|
390
|
-
var
|
|
391
|
-
function
|
|
410
|
+
var Mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
411
|
+
function Tn(e) {
|
|
392
412
|
if (e.length === 0)
|
|
393
413
|
throw new Error("Number skeleton cannot be empty");
|
|
394
|
-
for (var t = e.split(
|
|
414
|
+
for (var t = e.split(Mn).filter(function(m) {
|
|
395
415
|
return m.length > 0;
|
|
396
416
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
397
417
|
var o = i[n], a = o.split("/");
|
|
398
418
|
if (a.length === 0)
|
|
399
419
|
throw new Error("Invalid number skeleton");
|
|
400
|
-
for (var s = a[0], h = a.slice(1),
|
|
401
|
-
var d =
|
|
420
|
+
for (var s = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
421
|
+
var d = l[u];
|
|
402
422
|
if (d.length === 0)
|
|
403
423
|
throw new Error("Invalid number skeleton");
|
|
404
424
|
}
|
|
@@ -406,17 +426,17 @@ function xn(e) {
|
|
|
406
426
|
}
|
|
407
427
|
return r;
|
|
408
428
|
}
|
|
409
|
-
function
|
|
429
|
+
function wn(e) {
|
|
410
430
|
return e.replace(/^(.*?)-/, "");
|
|
411
431
|
}
|
|
412
|
-
var
|
|
413
|
-
function
|
|
432
|
+
var gt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, tr = /^(@+)?(\+|#+)?[rs]?$/g, Nn = /(\*)(0+)|(#+)(0+)|(0+)/g, rr = /^(0+)$/;
|
|
433
|
+
function pt(e) {
|
|
414
434
|
var t = {};
|
|
415
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
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) {
|
|
416
436
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
417
437
|
}), t;
|
|
418
438
|
}
|
|
419
|
-
function
|
|
439
|
+
function nr(e) {
|
|
420
440
|
switch (e) {
|
|
421
441
|
case "sign-auto":
|
|
422
442
|
return {
|
|
@@ -456,7 +476,7 @@ function er(e) {
|
|
|
456
476
|
};
|
|
457
477
|
}
|
|
458
478
|
}
|
|
459
|
-
function
|
|
479
|
+
function An(e) {
|
|
460
480
|
var t;
|
|
461
481
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
462
482
|
notation: "engineering"
|
|
@@ -464,17 +484,17 @@ function wn(e) {
|
|
|
464
484
|
notation: "scientific"
|
|
465
485
|
}, e = e.slice(1)), t) {
|
|
466
486
|
var r = e.slice(0, 2);
|
|
467
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)),
|
|
487
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !rr.test(e))
|
|
468
488
|
throw new Error("Malformed concise eng/scientific notation");
|
|
469
489
|
t.minimumIntegerDigits = e.length;
|
|
470
490
|
}
|
|
471
491
|
return t;
|
|
472
492
|
}
|
|
473
|
-
function
|
|
474
|
-
var t = {}, r =
|
|
493
|
+
function ft(e) {
|
|
494
|
+
var t = {}, r = nr(e);
|
|
475
495
|
return r || t;
|
|
476
496
|
}
|
|
477
|
-
function
|
|
497
|
+
function Hn(e) {
|
|
478
498
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
479
499
|
var i = n[r];
|
|
480
500
|
switch (i.stem) {
|
|
@@ -498,7 +518,7 @@ function Nn(e) {
|
|
|
498
518
|
continue;
|
|
499
519
|
case "measure-unit":
|
|
500
520
|
case "unit":
|
|
501
|
-
t.style = "unit", t.unit =
|
|
521
|
+
t.style = "unit", t.unit = wn(i.options[0]);
|
|
502
522
|
continue;
|
|
503
523
|
case "compact-short":
|
|
504
524
|
case "K":
|
|
@@ -509,13 +529,13 @@ function Nn(e) {
|
|
|
509
529
|
t.notation = "compact", t.compactDisplay = "long";
|
|
510
530
|
continue;
|
|
511
531
|
case "scientific":
|
|
512
|
-
t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(h,
|
|
513
|
-
return H(H({}, h),
|
|
532
|
+
t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
533
|
+
return H(H({}, h), ft(u));
|
|
514
534
|
}, {}));
|
|
515
535
|
continue;
|
|
516
536
|
case "engineering":
|
|
517
|
-
t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(h,
|
|
518
|
-
return H(H({}, h),
|
|
537
|
+
t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
538
|
+
return H(H({}, h), ft(u));
|
|
519
539
|
}, {}));
|
|
520
540
|
continue;
|
|
521
541
|
case "notation-simple":
|
|
@@ -560,45 +580,45 @@ function Nn(e) {
|
|
|
560
580
|
case "integer-width":
|
|
561
581
|
if (i.options.length > 1)
|
|
562
582
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
563
|
-
i.options[0].replace(
|
|
564
|
-
if (
|
|
565
|
-
t.minimumIntegerDigits =
|
|
583
|
+
i.options[0].replace(Nn, function(h, u, l, d, m, b) {
|
|
584
|
+
if (u)
|
|
585
|
+
t.minimumIntegerDigits = l.length;
|
|
566
586
|
else {
|
|
567
587
|
if (d && m)
|
|
568
588
|
throw new Error("We currently do not support maximum integer digits");
|
|
569
|
-
if (
|
|
589
|
+
if (b)
|
|
570
590
|
throw new Error("We currently do not support exact integer digits");
|
|
571
591
|
}
|
|
572
592
|
return "";
|
|
573
593
|
});
|
|
574
594
|
continue;
|
|
575
595
|
}
|
|
576
|
-
if (
|
|
596
|
+
if (rr.test(i.stem)) {
|
|
577
597
|
t.minimumIntegerDigits = i.stem.length;
|
|
578
598
|
continue;
|
|
579
599
|
}
|
|
580
|
-
if (
|
|
600
|
+
if (gt.test(i.stem)) {
|
|
581
601
|
if (i.options.length > 1)
|
|
582
602
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
583
|
-
i.stem.replace(
|
|
584
|
-
return
|
|
603
|
+
i.stem.replace(gt, function(h, u, l, d, m, b) {
|
|
604
|
+
return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && b ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
585
605
|
});
|
|
586
606
|
var o = i.options[0];
|
|
587
|
-
o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t),
|
|
607
|
+
o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t), pt(o)));
|
|
588
608
|
continue;
|
|
589
609
|
}
|
|
590
|
-
if (
|
|
591
|
-
t = H(H({}, t),
|
|
610
|
+
if (tr.test(i.stem)) {
|
|
611
|
+
t = H(H({}, t), pt(i.stem));
|
|
592
612
|
continue;
|
|
593
613
|
}
|
|
594
|
-
var a =
|
|
614
|
+
var a = nr(i.stem);
|
|
595
615
|
a && (t = H(H({}, t), a));
|
|
596
|
-
var s =
|
|
616
|
+
var s = An(i.stem);
|
|
597
617
|
s && (t = H(H({}, t), s));
|
|
598
618
|
}
|
|
599
619
|
return t;
|
|
600
620
|
}
|
|
601
|
-
var
|
|
621
|
+
var Me = {
|
|
602
622
|
"001": [
|
|
603
623
|
"H",
|
|
604
624
|
"h"
|
|
@@ -2013,22 +2033,23 @@ var xe = {
|
|
|
2013
2033
|
"h"
|
|
2014
2034
|
]
|
|
2015
2035
|
};
|
|
2016
|
-
function
|
|
2036
|
+
function Pn(e, t) {
|
|
2017
2037
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2018
2038
|
var i = e.charAt(n);
|
|
2019
2039
|
if (i === "j") {
|
|
2020
2040
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2021
2041
|
o++, n++;
|
|
2022
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a",
|
|
2023
|
-
for ((
|
|
2042
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Bn(t);
|
|
2043
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2024
2044
|
r += h;
|
|
2025
2045
|
for (; a-- > 0; )
|
|
2026
|
-
r =
|
|
2027
|
-
} else
|
|
2046
|
+
r = u + r;
|
|
2047
|
+
} else
|
|
2048
|
+
i === "J" ? r += "H" : r += i;
|
|
2028
2049
|
}
|
|
2029
2050
|
return r;
|
|
2030
2051
|
}
|
|
2031
|
-
function
|
|
2052
|
+
function Bn(e) {
|
|
2032
2053
|
var t = e.hourCycle;
|
|
2033
2054
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2034
2055
|
e.hourCycles && // @ts-ignore
|
|
@@ -2047,23 +2068,23 @@ function Hn(e) {
|
|
|
2047
2068
|
}
|
|
2048
2069
|
var r = e.language, n;
|
|
2049
2070
|
r !== "root" && (n = e.maximize().region);
|
|
2050
|
-
var i =
|
|
2071
|
+
var i = Me[n || ""] || Me[r || ""] || Me["".concat(r, "-001")] || Me["001"];
|
|
2051
2072
|
return i[0];
|
|
2052
2073
|
}
|
|
2053
|
-
var
|
|
2074
|
+
var Ue, zn = new RegExp("^".concat(er.source, "*")), On = new RegExp("".concat(er.source, "*$"));
|
|
2054
2075
|
function N(e, t) {
|
|
2055
2076
|
return { start: e, end: t };
|
|
2056
2077
|
}
|
|
2057
|
-
var
|
|
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, qn = !!Number.isSafeInteger, Gn = qn ? Number.isSafeInteger : function(e) {
|
|
2058
2079
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2059
|
-
},
|
|
2080
|
+
}, Ve = !0;
|
|
2060
2081
|
try {
|
|
2061
|
-
var
|
|
2062
|
-
|
|
2082
|
+
var Fn = or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2083
|
+
Ve = ((Ue = Fn.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
|
|
2063
2084
|
} catch (e) {
|
|
2064
|
-
|
|
2085
|
+
Ve = !1;
|
|
2065
2086
|
}
|
|
2066
|
-
var
|
|
2087
|
+
var _t = In ? (
|
|
2067
2088
|
// Native
|
|
2068
2089
|
function(t, r, n) {
|
|
2069
2090
|
return t.startsWith(r, n);
|
|
@@ -2073,7 +2094,7 @@ var pt = zn ? (
|
|
|
2073
2094
|
function(t, r, n) {
|
|
2074
2095
|
return t.slice(n, n + r.length) === r;
|
|
2075
2096
|
}
|
|
2076
|
-
),
|
|
2097
|
+
), Xe = jn ? String.fromCodePoint : (
|
|
2077
2098
|
// IE11
|
|
2078
2099
|
function() {
|
|
2079
2100
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2085,9 +2106,9 @@ var pt = zn ? (
|
|
|
2085
2106
|
}
|
|
2086
2107
|
return n;
|
|
2087
2108
|
}
|
|
2088
|
-
),
|
|
2109
|
+
), bt = (
|
|
2089
2110
|
// native
|
|
2090
|
-
|
|
2111
|
+
Ln ? Object.fromEntries : (
|
|
2091
2112
|
// Ponyfill
|
|
2092
2113
|
function(t) {
|
|
2093
2114
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2097,7 +2118,7 @@ var pt = zn ? (
|
|
|
2097
2118
|
return r;
|
|
2098
2119
|
}
|
|
2099
2120
|
)
|
|
2100
|
-
),
|
|
2121
|
+
), ir = Rn ? (
|
|
2101
2122
|
// Native
|
|
2102
2123
|
function(t, r) {
|
|
2103
2124
|
return t.codePointAt(r);
|
|
@@ -2111,7 +2132,7 @@ var pt = zn ? (
|
|
|
2111
2132
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2112
2133
|
}
|
|
2113
2134
|
}
|
|
2114
|
-
),
|
|
2135
|
+
), Vn = Un ? (
|
|
2115
2136
|
// Native
|
|
2116
2137
|
function(t) {
|
|
2117
2138
|
return t.trimStart();
|
|
@@ -2119,9 +2140,9 @@ var pt = zn ? (
|
|
|
2119
2140
|
) : (
|
|
2120
2141
|
// Ponyfill
|
|
2121
2142
|
function(t) {
|
|
2122
|
-
return t.replace(
|
|
2143
|
+
return t.replace(zn, "");
|
|
2123
2144
|
}
|
|
2124
|
-
),
|
|
2145
|
+
), Xn = Dn ? (
|
|
2125
2146
|
// Native
|
|
2126
2147
|
function(t) {
|
|
2127
2148
|
return t.trimEnd();
|
|
@@ -2129,32 +2150,32 @@ var pt = zn ? (
|
|
|
2129
2150
|
) : (
|
|
2130
2151
|
// Ponyfill
|
|
2131
2152
|
function(t) {
|
|
2132
|
-
return t.replace(
|
|
2153
|
+
return t.replace(On, "");
|
|
2133
2154
|
}
|
|
2134
2155
|
);
|
|
2135
|
-
function
|
|
2156
|
+
function or(e, t) {
|
|
2136
2157
|
return new RegExp(e, t);
|
|
2137
2158
|
}
|
|
2138
|
-
var
|
|
2139
|
-
if (
|
|
2140
|
-
var
|
|
2141
|
-
|
|
2159
|
+
var We;
|
|
2160
|
+
if (Ve) {
|
|
2161
|
+
var vt = or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2162
|
+
We = function(t, r) {
|
|
2142
2163
|
var n;
|
|
2143
|
-
|
|
2144
|
-
var i =
|
|
2164
|
+
vt.lastIndex = r;
|
|
2165
|
+
var i = vt.exec(t);
|
|
2145
2166
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2146
2167
|
};
|
|
2147
2168
|
} else
|
|
2148
|
-
|
|
2169
|
+
We = function(t, r) {
|
|
2149
2170
|
for (var n = []; ; ) {
|
|
2150
|
-
var i =
|
|
2151
|
-
if (i === void 0 ||
|
|
2171
|
+
var i = ir(t, r);
|
|
2172
|
+
if (i === void 0 || ar(i) || Qn(i))
|
|
2152
2173
|
break;
|
|
2153
2174
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2154
2175
|
}
|
|
2155
|
-
return
|
|
2176
|
+
return Xe.apply(void 0, n);
|
|
2156
2177
|
};
|
|
2157
|
-
var
|
|
2178
|
+
var Wn = (
|
|
2158
2179
|
/** @class */
|
|
2159
2180
|
function() {
|
|
2160
2181
|
function e(t, r) {
|
|
@@ -2185,7 +2206,7 @@ var Vn = (
|
|
|
2185
2206
|
if (n)
|
|
2186
2207
|
break;
|
|
2187
2208
|
return this.error(w.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
|
|
2188
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2209
|
+
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
|
2189
2210
|
var a = this.parseTag(t, r);
|
|
2190
2211
|
if (a.err)
|
|
2191
2212
|
return a;
|
|
@@ -2218,10 +2239,10 @@ var Vn = (
|
|
|
2218
2239
|
return o;
|
|
2219
2240
|
var a = o.val, s = this.clonePosition();
|
|
2220
2241
|
if (this.bumpIf("</")) {
|
|
2221
|
-
if (this.isEOF() || !
|
|
2242
|
+
if (this.isEOF() || !Ze(this.char()))
|
|
2222
2243
|
return this.error(w.INVALID_TAG, N(s, this.clonePosition()));
|
|
2223
|
-
var h = this.clonePosition(),
|
|
2224
|
-
return i !==
|
|
2244
|
+
var h = this.clonePosition(), u = this.parseTagName();
|
|
2245
|
+
return i !== u ? this.error(w.UNMATCHED_CLOSING_TAG, N(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2225
2246
|
val: {
|
|
2226
2247
|
type: B.tag,
|
|
2227
2248
|
value: i,
|
|
@@ -2236,7 +2257,7 @@ var Vn = (
|
|
|
2236
2257
|
return this.error(w.INVALID_TAG, N(n, this.clonePosition()));
|
|
2237
2258
|
}, e.prototype.parseTagName = function() {
|
|
2238
2259
|
var t = this.offset();
|
|
2239
|
-
for (this.bump(); !this.isEOF() &&
|
|
2260
|
+
for (this.bump(); !this.isEOF() && Jn(this.char()); )
|
|
2240
2261
|
this.bump();
|
|
2241
2262
|
return this.message.slice(t, this.offset());
|
|
2242
2263
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2265,7 +2286,7 @@ var Vn = (
|
|
|
2265
2286
|
};
|
|
2266
2287
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2267
2288
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2268
|
-
!
|
|
2289
|
+
!Zn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2269
2290
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2270
2291
|
if (this.isEOF() || this.char() !== 39)
|
|
2271
2292
|
return null;
|
|
@@ -2299,12 +2320,12 @@ var Vn = (
|
|
|
2299
2320
|
r.push(n);
|
|
2300
2321
|
this.bump();
|
|
2301
2322
|
}
|
|
2302
|
-
return
|
|
2323
|
+
return Xe.apply(void 0, r);
|
|
2303
2324
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2304
2325
|
if (this.isEOF())
|
|
2305
2326
|
return null;
|
|
2306
2327
|
var n = this.char();
|
|
2307
|
-
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(), Xe(n));
|
|
2308
2329
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2309
2330
|
var n = this.clonePosition();
|
|
2310
2331
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2333,7 +2354,7 @@ var Vn = (
|
|
|
2333
2354
|
return this.error(w.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
|
|
2334
2355
|
}
|
|
2335
2356
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2336
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2357
|
+
var t = this.clonePosition(), r = this.offset(), n = We(this.message, r), i = r + n.length;
|
|
2337
2358
|
this.bumpTo(i);
|
|
2338
2359
|
var o = this.clonePosition(), a = N(t, o);
|
|
2339
2360
|
return { value: n, location: a };
|
|
@@ -2346,43 +2367,43 @@ var Vn = (
|
|
|
2346
2367
|
case "date":
|
|
2347
2368
|
case "time": {
|
|
2348
2369
|
this.bumpSpace();
|
|
2349
|
-
var
|
|
2370
|
+
var u = null;
|
|
2350
2371
|
if (this.bumpIf(",")) {
|
|
2351
2372
|
this.bumpSpace();
|
|
2352
|
-
var
|
|
2373
|
+
var l = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
2353
2374
|
if (d.err)
|
|
2354
2375
|
return d;
|
|
2355
|
-
var m =
|
|
2376
|
+
var m = Xn(d.val);
|
|
2356
2377
|
if (m.length === 0)
|
|
2357
2378
|
return this.error(w.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
|
|
2358
|
-
var
|
|
2359
|
-
|
|
2379
|
+
var b = N(l, this.clonePosition());
|
|
2380
|
+
u = { style: m, styleLocation: b };
|
|
2360
2381
|
}
|
|
2361
2382
|
var f = this.tryParseArgumentClose(i);
|
|
2362
2383
|
if (f.err)
|
|
2363
2384
|
return f;
|
|
2364
|
-
var
|
|
2365
|
-
if (
|
|
2366
|
-
var
|
|
2385
|
+
var g = N(i, this.clonePosition());
|
|
2386
|
+
if (u && _t(u == null ? void 0 : u.style, "::", 0)) {
|
|
2387
|
+
var S = Vn(u.style.slice(2));
|
|
2367
2388
|
if (s === "number") {
|
|
2368
|
-
var d = this.parseNumberSkeletonFromString(
|
|
2389
|
+
var d = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
2369
2390
|
return d.err ? d : {
|
|
2370
|
-
val: { type: B.number, value: n, location:
|
|
2391
|
+
val: { type: B.number, value: n, location: g, style: d.val },
|
|
2371
2392
|
err: null
|
|
2372
2393
|
};
|
|
2373
2394
|
} else {
|
|
2374
|
-
if (
|
|
2375
|
-
return this.error(w.EXPECT_DATE_TIME_SKELETON,
|
|
2376
|
-
var _ =
|
|
2377
|
-
this.locale && (_ =
|
|
2395
|
+
if (S.length === 0)
|
|
2396
|
+
return this.error(w.EXPECT_DATE_TIME_SKELETON, g);
|
|
2397
|
+
var _ = S;
|
|
2398
|
+
this.locale && (_ = Pn(S, this.locale));
|
|
2378
2399
|
var m = {
|
|
2379
|
-
type:
|
|
2400
|
+
type: re.dateTime,
|
|
2380
2401
|
pattern: _,
|
|
2381
|
-
location:
|
|
2382
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2383
|
-
},
|
|
2402
|
+
location: u.styleLocation,
|
|
2403
|
+
parsedOptions: this.shouldParseSkeletons ? xn(_) : {}
|
|
2404
|
+
}, v = s === "date" ? B.date : B.time;
|
|
2384
2405
|
return {
|
|
2385
|
-
val: { type:
|
|
2406
|
+
val: { type: v, value: n, location: g, style: m },
|
|
2386
2407
|
err: null
|
|
2387
2408
|
};
|
|
2388
2409
|
}
|
|
@@ -2391,8 +2412,8 @@ var Vn = (
|
|
|
2391
2412
|
val: {
|
|
2392
2413
|
type: s === "number" ? B.number : s === "date" ? B.date : B.time,
|
|
2393
2414
|
value: n,
|
|
2394
|
-
location:
|
|
2395
|
-
style: (o =
|
|
2415
|
+
location: g,
|
|
2416
|
+
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
2396
2417
|
},
|
|
2397
2418
|
err: null
|
|
2398
2419
|
};
|
|
@@ -2400,11 +2421,11 @@ var Vn = (
|
|
|
2400
2421
|
case "plural":
|
|
2401
2422
|
case "selectordinal":
|
|
2402
2423
|
case "select": {
|
|
2403
|
-
var
|
|
2424
|
+
var C = this.clonePosition();
|
|
2404
2425
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2405
|
-
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, N(
|
|
2426
|
+
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, N(C, H({}, C)));
|
|
2406
2427
|
this.bumpSpace();
|
|
2407
|
-
var P = this.parseIdentifierIfPossible(),
|
|
2428
|
+
var P = this.parseIdentifierIfPossible(), k = 0;
|
|
2408
2429
|
if (s !== "select" && P.value === "offset") {
|
|
2409
2430
|
if (!this.bumpIf(":"))
|
|
2410
2431
|
return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
|
|
@@ -2412,7 +2433,7 @@ var Vn = (
|
|
|
2412
2433
|
var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2413
2434
|
if (d.err)
|
|
2414
2435
|
return d;
|
|
2415
|
-
this.bumpSpace(), P = this.parseIdentifierIfPossible(),
|
|
2436
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), k = d.val;
|
|
2416
2437
|
}
|
|
2417
2438
|
var z = this.tryParsePluralOrSelectOptions(t, s, r, P);
|
|
2418
2439
|
if (z.err)
|
|
@@ -2420,23 +2441,23 @@ var Vn = (
|
|
|
2420
2441
|
var f = this.tryParseArgumentClose(i);
|
|
2421
2442
|
if (f.err)
|
|
2422
2443
|
return f;
|
|
2423
|
-
var
|
|
2444
|
+
var Z = N(i, this.clonePosition());
|
|
2424
2445
|
return s === "select" ? {
|
|
2425
2446
|
val: {
|
|
2426
2447
|
type: B.select,
|
|
2427
2448
|
value: n,
|
|
2428
|
-
options:
|
|
2429
|
-
location:
|
|
2449
|
+
options: bt(z.val),
|
|
2450
|
+
location: Z
|
|
2430
2451
|
},
|
|
2431
2452
|
err: null
|
|
2432
2453
|
} : {
|
|
2433
2454
|
val: {
|
|
2434
2455
|
type: B.plural,
|
|
2435
2456
|
value: n,
|
|
2436
|
-
options:
|
|
2437
|
-
offset:
|
|
2457
|
+
options: bt(z.val),
|
|
2458
|
+
offset: k,
|
|
2438
2459
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2439
|
-
location:
|
|
2460
|
+
location: Z
|
|
2440
2461
|
},
|
|
2441
2462
|
err: null
|
|
2442
2463
|
};
|
|
@@ -2484,50 +2505,50 @@ var Vn = (
|
|
|
2484
2505
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2485
2506
|
var n = [];
|
|
2486
2507
|
try {
|
|
2487
|
-
n =
|
|
2508
|
+
n = Tn(t);
|
|
2488
2509
|
} catch (i) {
|
|
2489
2510
|
return this.error(w.INVALID_NUMBER_SKELETON, r);
|
|
2490
2511
|
}
|
|
2491
2512
|
return {
|
|
2492
2513
|
val: {
|
|
2493
|
-
type:
|
|
2514
|
+
type: re.number,
|
|
2494
2515
|
tokens: n,
|
|
2495
2516
|
location: r,
|
|
2496
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2517
|
+
parsedOptions: this.shouldParseSkeletons ? Hn(n) : {}
|
|
2497
2518
|
},
|
|
2498
2519
|
err: null
|
|
2499
2520
|
};
|
|
2500
2521
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2501
|
-
for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(),
|
|
2502
|
-
if (
|
|
2522
|
+
for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
2523
|
+
if (u.length === 0) {
|
|
2503
2524
|
var d = this.clonePosition();
|
|
2504
2525
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2505
2526
|
var m = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2506
2527
|
if (m.err)
|
|
2507
2528
|
return m;
|
|
2508
|
-
|
|
2529
|
+
l = N(d, this.clonePosition()), u = this.message.slice(d.offset, this.offset());
|
|
2509
2530
|
} else
|
|
2510
2531
|
break;
|
|
2511
2532
|
}
|
|
2512
|
-
if (h.has(
|
|
2513
|
-
return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
2514
|
-
|
|
2515
|
-
var
|
|
2533
|
+
if (h.has(u))
|
|
2534
|
+
return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2535
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
2536
|
+
var b = this.clonePosition();
|
|
2516
2537
|
if (!this.bumpIf("{"))
|
|
2517
2538
|
return this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
|
|
2518
2539
|
var f = this.parseMessage(t + 1, r, n);
|
|
2519
2540
|
if (f.err)
|
|
2520
2541
|
return f;
|
|
2521
|
-
var
|
|
2522
|
-
if (
|
|
2523
|
-
return
|
|
2542
|
+
var g = this.tryParseArgumentClose(b);
|
|
2543
|
+
if (g.err)
|
|
2544
|
+
return g;
|
|
2524
2545
|
s.push([
|
|
2525
|
-
|
|
2546
|
+
u,
|
|
2526
2547
|
{
|
|
2527
2548
|
value: f.val,
|
|
2528
|
-
location: N(
|
|
2549
|
+
location: N(b, this.clonePosition())
|
|
2529
2550
|
}
|
|
2530
|
-
]), h.add(
|
|
2551
|
+
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
2531
2552
|
}
|
|
2532
2553
|
return s.length === 0 ? this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR : w.EXPECT_PLURAL_ARGUMENT_SELECTOR, N(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(w.MISSING_OTHER_CLAUSE, N(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2533
2554
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -2541,7 +2562,7 @@ var Vn = (
|
|
|
2541
2562
|
break;
|
|
2542
2563
|
}
|
|
2543
2564
|
var h = N(i, this.clonePosition());
|
|
2544
|
-
return o ? (a *= n,
|
|
2565
|
+
return o ? (a *= n, Gn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2545
2566
|
}, e.prototype.offset = function() {
|
|
2546
2567
|
return this.position.offset;
|
|
2547
2568
|
}, e.prototype.isEOF = function() {
|
|
@@ -2556,7 +2577,7 @@ var Vn = (
|
|
|
2556
2577
|
var t = this.position.offset;
|
|
2557
2578
|
if (t >= this.message.length)
|
|
2558
2579
|
throw Error("out of bound");
|
|
2559
|
-
var r =
|
|
2580
|
+
var r = ir(this.message, t);
|
|
2560
2581
|
if (r === void 0)
|
|
2561
2582
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2562
2583
|
return r;
|
|
@@ -2575,7 +2596,7 @@ var Vn = (
|
|
|
2575
2596
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
2576
2597
|
}
|
|
2577
2598
|
}, e.prototype.bumpIf = function(t) {
|
|
2578
|
-
if (
|
|
2599
|
+
if (_t(this.message, t, this.offset())) {
|
|
2579
2600
|
for (var r = 0; r < t.length; r++)
|
|
2580
2601
|
this.bump();
|
|
2581
2602
|
return !0;
|
|
@@ -2597,7 +2618,7 @@ var Vn = (
|
|
|
2597
2618
|
break;
|
|
2598
2619
|
}
|
|
2599
2620
|
}, e.prototype.bumpSpace = function() {
|
|
2600
|
-
for (; !this.isEOF() &&
|
|
2621
|
+
for (; !this.isEOF() && ar(this.char()); )
|
|
2601
2622
|
this.bump();
|
|
2602
2623
|
}, e.prototype.peek = function() {
|
|
2603
2624
|
if (this.isEOF())
|
|
@@ -2607,46 +2628,47 @@ var Vn = (
|
|
|
2607
2628
|
}, e;
|
|
2608
2629
|
}()
|
|
2609
2630
|
);
|
|
2610
|
-
function
|
|
2631
|
+
function Ze(e) {
|
|
2611
2632
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
2612
2633
|
}
|
|
2613
|
-
function
|
|
2614
|
-
return
|
|
2634
|
+
function Zn(e) {
|
|
2635
|
+
return Ze(e) || e === 47;
|
|
2615
2636
|
}
|
|
2616
|
-
function
|
|
2637
|
+
function Jn(e) {
|
|
2617
2638
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
2618
2639
|
}
|
|
2619
|
-
function
|
|
2640
|
+
function ar(e) {
|
|
2620
2641
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
2621
2642
|
}
|
|
2622
|
-
function
|
|
2643
|
+
function Qn(e) {
|
|
2623
2644
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
2624
2645
|
}
|
|
2625
|
-
function
|
|
2646
|
+
function Je(e) {
|
|
2626
2647
|
e.forEach(function(t) {
|
|
2627
|
-
if (delete t.location,
|
|
2648
|
+
if (delete t.location, Qt(t) || Yt(t))
|
|
2628
2649
|
for (var r in t.options)
|
|
2629
|
-
delete t.options[r].location,
|
|
2630
|
-
else
|
|
2650
|
+
delete t.options[r].location, Je(t.options[r].value);
|
|
2651
|
+
else
|
|
2652
|
+
Wt(t) && $t(t.style) || (Zt(t) || Jt(t)) && Fe(t.style) ? delete t.style.location : Kt(t) && Je(t.children);
|
|
2631
2653
|
});
|
|
2632
2654
|
}
|
|
2633
|
-
function
|
|
2655
|
+
function Yn(e, t) {
|
|
2634
2656
|
t === void 0 && (t = {}), t = H({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
2635
|
-
var r = new
|
|
2657
|
+
var r = new Wn(e, t).parse();
|
|
2636
2658
|
if (r.err) {
|
|
2637
2659
|
var n = SyntaxError(w[r.err.kind]);
|
|
2638
2660
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
2639
2661
|
}
|
|
2640
|
-
return t != null && t.captureLocation ||
|
|
2662
|
+
return t != null && t.captureLocation || Je(r.val), r.val;
|
|
2641
2663
|
}
|
|
2642
|
-
var
|
|
2664
|
+
var ne;
|
|
2643
2665
|
(function(e) {
|
|
2644
2666
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
2645
|
-
})(
|
|
2646
|
-
var
|
|
2667
|
+
})(ne || (ne = {}));
|
|
2668
|
+
var Be = (
|
|
2647
2669
|
/** @class */
|
|
2648
2670
|
function(e) {
|
|
2649
|
-
|
|
2671
|
+
Pe(t, e);
|
|
2650
2672
|
function t(r, n, i) {
|
|
2651
2673
|
var o = e.call(this, r) || this;
|
|
2652
2674
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -2655,155 +2677,155 @@ var Pe = (
|
|
|
2655
2677
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
2656
2678
|
}, t;
|
|
2657
2679
|
}(Error)
|
|
2658
|
-
),
|
|
2680
|
+
), yt = (
|
|
2659
2681
|
/** @class */
|
|
2660
2682
|
function(e) {
|
|
2661
|
-
|
|
2683
|
+
Pe(t, e);
|
|
2662
2684
|
function t(r, n, i, o) {
|
|
2663
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
2685
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
|
|
2664
2686
|
}
|
|
2665
2687
|
return t;
|
|
2666
|
-
}(
|
|
2667
|
-
),
|
|
2688
|
+
}(Be)
|
|
2689
|
+
), Kn = (
|
|
2668
2690
|
/** @class */
|
|
2669
2691
|
function(e) {
|
|
2670
|
-
|
|
2692
|
+
Pe(t, e);
|
|
2671
2693
|
function t(r, n, i) {
|
|
2672
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
2694
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
|
|
2673
2695
|
}
|
|
2674
2696
|
return t;
|
|
2675
|
-
}(
|
|
2676
|
-
),
|
|
2697
|
+
}(Be)
|
|
2698
|
+
), $n = (
|
|
2677
2699
|
/** @class */
|
|
2678
2700
|
function(e) {
|
|
2679
|
-
|
|
2701
|
+
Pe(t, e);
|
|
2680
2702
|
function t(r, n) {
|
|
2681
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
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;
|
|
2682
2704
|
}
|
|
2683
2705
|
return t;
|
|
2684
|
-
}(
|
|
2706
|
+
}(Be)
|
|
2685
2707
|
), D;
|
|
2686
2708
|
(function(e) {
|
|
2687
2709
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
2688
2710
|
})(D || (D = {}));
|
|
2689
|
-
function
|
|
2711
|
+
function ei(e) {
|
|
2690
2712
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
2691
2713
|
var n = t[t.length - 1];
|
|
2692
2714
|
return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
|
|
2693
2715
|
}, []);
|
|
2694
2716
|
}
|
|
2695
|
-
function
|
|
2717
|
+
function ti(e) {
|
|
2696
2718
|
return typeof e == "function";
|
|
2697
2719
|
}
|
|
2698
2720
|
function Te(e, t, r, n, i, o, a) {
|
|
2699
|
-
if (e.length === 1 &&
|
|
2721
|
+
if (e.length === 1 && mt(e[0]))
|
|
2700
2722
|
return [
|
|
2701
2723
|
{
|
|
2702
2724
|
type: D.literal,
|
|
2703
2725
|
value: e[0].value
|
|
2704
2726
|
}
|
|
2705
2727
|
];
|
|
2706
|
-
for (var s = [], h = 0,
|
|
2707
|
-
var
|
|
2708
|
-
if (
|
|
2728
|
+
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
2729
|
+
var l = u[h];
|
|
2730
|
+
if (mt(l)) {
|
|
2709
2731
|
s.push({
|
|
2710
2732
|
type: D.literal,
|
|
2711
|
-
value:
|
|
2733
|
+
value: l.value
|
|
2712
2734
|
});
|
|
2713
2735
|
continue;
|
|
2714
2736
|
}
|
|
2715
|
-
if (
|
|
2737
|
+
if (Cn(l)) {
|
|
2716
2738
|
typeof o == "number" && s.push({
|
|
2717
2739
|
type: D.literal,
|
|
2718
2740
|
value: r.getNumberFormat(t).format(o)
|
|
2719
2741
|
});
|
|
2720
2742
|
continue;
|
|
2721
2743
|
}
|
|
2722
|
-
var d =
|
|
2744
|
+
var d = l.value;
|
|
2723
2745
|
if (!(i && d in i))
|
|
2724
|
-
throw new
|
|
2746
|
+
throw new $n(d, a);
|
|
2725
2747
|
var m = i[d];
|
|
2726
|
-
if (
|
|
2748
|
+
if (kn(l)) {
|
|
2727
2749
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
|
|
2728
2750
|
type: typeof m == "string" ? D.literal : D.object,
|
|
2729
2751
|
value: m
|
|
2730
2752
|
});
|
|
2731
2753
|
continue;
|
|
2732
2754
|
}
|
|
2733
|
-
if (
|
|
2734
|
-
var
|
|
2755
|
+
if (Zt(l)) {
|
|
2756
|
+
var b = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
|
|
2735
2757
|
s.push({
|
|
2736
2758
|
type: D.literal,
|
|
2737
|
-
value: r.getDateTimeFormat(t,
|
|
2759
|
+
value: r.getDateTimeFormat(t, b).format(m)
|
|
2738
2760
|
});
|
|
2739
2761
|
continue;
|
|
2740
2762
|
}
|
|
2741
|
-
if (
|
|
2742
|
-
var
|
|
2763
|
+
if (Jt(l)) {
|
|
2764
|
+
var b = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
2743
2765
|
s.push({
|
|
2744
2766
|
type: D.literal,
|
|
2745
|
-
value: r.getDateTimeFormat(t,
|
|
2767
|
+
value: r.getDateTimeFormat(t, b).format(m)
|
|
2746
2768
|
});
|
|
2747
2769
|
continue;
|
|
2748
2770
|
}
|
|
2749
|
-
if (
|
|
2750
|
-
var
|
|
2751
|
-
|
|
2771
|
+
if (Wt(l)) {
|
|
2772
|
+
var b = typeof l.style == "string" ? n.number[l.style] : $t(l.style) ? l.style.parsedOptions : void 0;
|
|
2773
|
+
b && b.scale && (m = m * (b.scale || 1)), s.push({
|
|
2752
2774
|
type: D.literal,
|
|
2753
|
-
value: r.getNumberFormat(t,
|
|
2775
|
+
value: r.getNumberFormat(t, b).format(m)
|
|
2754
2776
|
});
|
|
2755
2777
|
continue;
|
|
2756
2778
|
}
|
|
2757
|
-
if (
|
|
2758
|
-
var f =
|
|
2759
|
-
if (
|
|
2760
|
-
throw new
|
|
2761
|
-
var _ = Te(f, t, r, n, i, o),
|
|
2762
|
-
return
|
|
2779
|
+
if (Kt(l)) {
|
|
2780
|
+
var f = l.children, g = l.value, S = i[g];
|
|
2781
|
+
if (!ti(S))
|
|
2782
|
+
throw new Kn(g, "function", a);
|
|
2783
|
+
var _ = Te(f, t, r, n, i, o), v = S(_.map(function(k) {
|
|
2784
|
+
return k.value;
|
|
2763
2785
|
}));
|
|
2764
|
-
Array.isArray(
|
|
2786
|
+
Array.isArray(v) || (v = [v]), s.push.apply(s, v.map(function(k) {
|
|
2765
2787
|
return {
|
|
2766
|
-
type: typeof
|
|
2767
|
-
value:
|
|
2788
|
+
type: typeof k == "string" ? D.literal : D.object,
|
|
2789
|
+
value: k
|
|
2768
2790
|
};
|
|
2769
2791
|
}));
|
|
2770
2792
|
}
|
|
2771
|
-
if (
|
|
2772
|
-
var
|
|
2773
|
-
if (!
|
|
2774
|
-
throw new
|
|
2775
|
-
s.push.apply(s, Te(
|
|
2793
|
+
if (Qt(l)) {
|
|
2794
|
+
var C = l.options[m] || l.options.other;
|
|
2795
|
+
if (!C)
|
|
2796
|
+
throw new yt(l.value, m, Object.keys(l.options), a);
|
|
2797
|
+
s.push.apply(s, Te(C.value, t, r, n, i));
|
|
2776
2798
|
continue;
|
|
2777
2799
|
}
|
|
2778
|
-
if (
|
|
2779
|
-
var
|
|
2780
|
-
if (!
|
|
2800
|
+
if (Yt(l)) {
|
|
2801
|
+
var C = l.options["=".concat(m)];
|
|
2802
|
+
if (!C) {
|
|
2781
2803
|
if (!Intl.PluralRules)
|
|
2782
|
-
throw new
|
|
2804
|
+
throw new Be(`Intl.PluralRules is not available in this environment.
|
|
2783
2805
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
2784
|
-
`,
|
|
2785
|
-
var P = r.getPluralRules(t, { type:
|
|
2786
|
-
|
|
2806
|
+
`, ne.MISSING_INTL_API, a);
|
|
2807
|
+
var P = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
|
|
2808
|
+
C = l.options[P] || l.options.other;
|
|
2787
2809
|
}
|
|
2788
|
-
if (!
|
|
2789
|
-
throw new
|
|
2790
|
-
s.push.apply(s, Te(
|
|
2810
|
+
if (!C)
|
|
2811
|
+
throw new yt(l.value, m, Object.keys(l.options), a);
|
|
2812
|
+
s.push.apply(s, Te(C.value, t, r, n, i, m - (l.offset || 0)));
|
|
2791
2813
|
continue;
|
|
2792
2814
|
}
|
|
2793
2815
|
}
|
|
2794
|
-
return
|
|
2816
|
+
return ei(s);
|
|
2795
2817
|
}
|
|
2796
|
-
function
|
|
2818
|
+
function ri(e, t) {
|
|
2797
2819
|
return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
2798
2820
|
return r[n] = H(H({}, e[n]), t[n] || {}), r;
|
|
2799
2821
|
}, {})) : e;
|
|
2800
2822
|
}
|
|
2801
|
-
function
|
|
2823
|
+
function ni(e, t) {
|
|
2802
2824
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
2803
|
-
return r[n] =
|
|
2825
|
+
return r[n] = ri(e[n], t[n]), r;
|
|
2804
2826
|
}, H({}, e)) : e;
|
|
2805
2827
|
}
|
|
2806
|
-
function
|
|
2828
|
+
function De(e) {
|
|
2807
2829
|
return {
|
|
2808
2830
|
create: function() {
|
|
2809
2831
|
return {
|
|
@@ -2817,39 +2839,39 @@ function Ue(e) {
|
|
|
2817
2839
|
}
|
|
2818
2840
|
};
|
|
2819
2841
|
}
|
|
2820
|
-
function
|
|
2842
|
+
function ii(e) {
|
|
2821
2843
|
return e === void 0 && (e = {
|
|
2822
2844
|
number: {},
|
|
2823
2845
|
dateTime: {},
|
|
2824
2846
|
pluralRules: {}
|
|
2825
2847
|
}), {
|
|
2826
|
-
getNumberFormat:
|
|
2848
|
+
getNumberFormat: Le(function() {
|
|
2827
2849
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2828
2850
|
r[n] = arguments[n];
|
|
2829
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
2851
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, je([void 0], r, !1)))();
|
|
2830
2852
|
}, {
|
|
2831
|
-
cache:
|
|
2832
|
-
strategy:
|
|
2853
|
+
cache: De(e.number),
|
|
2854
|
+
strategy: Re.variadic
|
|
2833
2855
|
}),
|
|
2834
|
-
getDateTimeFormat:
|
|
2856
|
+
getDateTimeFormat: Le(function() {
|
|
2835
2857
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2836
2858
|
r[n] = arguments[n];
|
|
2837
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
2859
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, je([void 0], r, !1)))();
|
|
2838
2860
|
}, {
|
|
2839
|
-
cache:
|
|
2840
|
-
strategy:
|
|
2861
|
+
cache: De(e.dateTime),
|
|
2862
|
+
strategy: Re.variadic
|
|
2841
2863
|
}),
|
|
2842
|
-
getPluralRules:
|
|
2864
|
+
getPluralRules: Le(function() {
|
|
2843
2865
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2844
2866
|
r[n] = arguments[n];
|
|
2845
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
2867
|
+
return new ((t = Intl.PluralRules).bind.apply(t, je([void 0], r, !1)))();
|
|
2846
2868
|
}, {
|
|
2847
|
-
cache:
|
|
2848
|
-
strategy:
|
|
2869
|
+
cache: De(e.pluralRules),
|
|
2870
|
+
strategy: Re.variadic
|
|
2849
2871
|
})
|
|
2850
2872
|
};
|
|
2851
2873
|
}
|
|
2852
|
-
var
|
|
2874
|
+
var oi = (
|
|
2853
2875
|
/** @class */
|
|
2854
2876
|
function() {
|
|
2855
2877
|
function e(t, r, n, i) {
|
|
@@ -2860,13 +2882,13 @@ var ni = (
|
|
|
2860
2882
|
dateTime: {},
|
|
2861
2883
|
pluralRules: {}
|
|
2862
2884
|
}, this.format = function(h) {
|
|
2863
|
-
var
|
|
2864
|
-
if (
|
|
2865
|
-
return
|
|
2866
|
-
var
|
|
2885
|
+
var u = o.formatToParts(h);
|
|
2886
|
+
if (u.length === 1)
|
|
2887
|
+
return u[0].value;
|
|
2888
|
+
var l = u.reduce(function(d, m) {
|
|
2867
2889
|
return !d.length || m.type !== D.literal || typeof d[d.length - 1] != "string" ? d.push(m.value) : d[d.length - 1] += m.value, d;
|
|
2868
2890
|
}, []);
|
|
2869
|
-
return
|
|
2891
|
+
return l.length <= 1 ? l[0] || "" : l;
|
|
2870
2892
|
}, this.formatToParts = function(h) {
|
|
2871
2893
|
return Te(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
2872
2894
|
}, this.resolvedOptions = function() {
|
|
@@ -2881,13 +2903,13 @@ var ni = (
|
|
|
2881
2903
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
2882
2904
|
var a = i || {};
|
|
2883
2905
|
a.formatters;
|
|
2884
|
-
var s =
|
|
2906
|
+
var s = pn(a, ["formatters"]);
|
|
2885
2907
|
this.ast = e.__parse(t, H(H({}, s), { locale: this.resolvedLocale }));
|
|
2886
2908
|
} else
|
|
2887
2909
|
this.ast = t;
|
|
2888
2910
|
if (!Array.isArray(this.ast))
|
|
2889
2911
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
2890
|
-
this.formats =
|
|
2912
|
+
this.formats = ni(e.formats, n), this.formatters = i && i.formatters || ii(this.formatterCache);
|
|
2891
2913
|
}
|
|
2892
2914
|
return Object.defineProperty(e, "defaultLocale", {
|
|
2893
2915
|
get: function() {
|
|
@@ -2900,7 +2922,7 @@ var ni = (
|
|
|
2900
2922
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
2901
2923
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
2902
2924
|
}
|
|
2903
|
-
}, e.__parse =
|
|
2925
|
+
}, e.__parse = Yn, e.formats = {
|
|
2904
2926
|
number: {
|
|
2905
2927
|
integer: {
|
|
2906
2928
|
maximumFractionDigits: 0
|
|
@@ -2961,7 +2983,7 @@ var ni = (
|
|
|
2961
2983
|
}, e;
|
|
2962
2984
|
}()
|
|
2963
2985
|
);
|
|
2964
|
-
function
|
|
2986
|
+
function ai(e, t) {
|
|
2965
2987
|
if (t == null)
|
|
2966
2988
|
return;
|
|
2967
2989
|
if (t in e)
|
|
@@ -2982,92 +3004,92 @@ function ii(e, t) {
|
|
|
2982
3004
|
n = void 0;
|
|
2983
3005
|
return n;
|
|
2984
3006
|
}
|
|
2985
|
-
const
|
|
3007
|
+
const Q = {}, si = (e, t, r) => r && (t in Q || (Q[t] = {}), e in Q[t] || (Q[t][e] = r), r), sr = (e, t) => {
|
|
2986
3008
|
if (t == null)
|
|
2987
3009
|
return;
|
|
2988
|
-
if (t in
|
|
2989
|
-
return
|
|
2990
|
-
const r =
|
|
3010
|
+
if (t in Q && e in Q[t])
|
|
3011
|
+
return Q[t][e];
|
|
3012
|
+
const r = ze(t);
|
|
2991
3013
|
for (let n = 0; n < r.length; n++) {
|
|
2992
|
-
const i = r[n], o =
|
|
3014
|
+
const i = r[n], o = ci(i, e);
|
|
2993
3015
|
if (o)
|
|
2994
|
-
return
|
|
3016
|
+
return si(e, t, o);
|
|
2995
3017
|
}
|
|
2996
3018
|
};
|
|
2997
|
-
let
|
|
2998
|
-
const
|
|
2999
|
-
function
|
|
3000
|
-
return
|
|
3019
|
+
let rt;
|
|
3020
|
+
const ve = He({});
|
|
3021
|
+
function li(e) {
|
|
3022
|
+
return rt[e] || null;
|
|
3001
3023
|
}
|
|
3002
|
-
function
|
|
3003
|
-
return e in
|
|
3024
|
+
function lr(e) {
|
|
3025
|
+
return e in rt;
|
|
3004
3026
|
}
|
|
3005
|
-
function
|
|
3006
|
-
if (!
|
|
3027
|
+
function ci(e, t) {
|
|
3028
|
+
if (!lr(e))
|
|
3007
3029
|
return null;
|
|
3008
|
-
const r =
|
|
3009
|
-
return
|
|
3030
|
+
const r = li(e);
|
|
3031
|
+
return ai(r, t);
|
|
3010
3032
|
}
|
|
3011
|
-
function
|
|
3033
|
+
function ui(e) {
|
|
3012
3034
|
if (e == null)
|
|
3013
3035
|
return;
|
|
3014
|
-
const t =
|
|
3036
|
+
const t = ze(e);
|
|
3015
3037
|
for (let r = 0; r < t.length; r++) {
|
|
3016
3038
|
const n = t[r];
|
|
3017
|
-
if (
|
|
3039
|
+
if (lr(n))
|
|
3018
3040
|
return n;
|
|
3019
3041
|
}
|
|
3020
3042
|
}
|
|
3021
|
-
function
|
|
3022
|
-
delete
|
|
3043
|
+
function cr(e, ...t) {
|
|
3044
|
+
delete Q[e], ve.update((r) => (r[e] = gn.all([r[e] || {}, ...t]), r));
|
|
3023
3045
|
}
|
|
3024
|
-
|
|
3025
|
-
[
|
|
3046
|
+
oe(
|
|
3047
|
+
[ve],
|
|
3026
3048
|
([e]) => Object.keys(e)
|
|
3027
3049
|
);
|
|
3028
|
-
|
|
3029
|
-
const
|
|
3030
|
-
function
|
|
3031
|
-
|
|
3050
|
+
ve.subscribe((e) => rt = e);
|
|
3051
|
+
const we = {};
|
|
3052
|
+
function hi(e, t) {
|
|
3053
|
+
we[e].delete(t), we[e].size === 0 && delete we[e];
|
|
3032
3054
|
}
|
|
3033
|
-
function
|
|
3034
|
-
return
|
|
3055
|
+
function ur(e) {
|
|
3056
|
+
return we[e];
|
|
3035
3057
|
}
|
|
3036
|
-
function
|
|
3037
|
-
return
|
|
3038
|
-
const r =
|
|
3058
|
+
function di(e) {
|
|
3059
|
+
return ze(e).map((t) => {
|
|
3060
|
+
const r = ur(t);
|
|
3039
3061
|
return [t, r ? [...r] : []];
|
|
3040
3062
|
}).filter(([, t]) => t.length > 0);
|
|
3041
3063
|
}
|
|
3042
|
-
function
|
|
3043
|
-
return e == null ? !1 :
|
|
3064
|
+
function Qe(e) {
|
|
3065
|
+
return e == null ? !1 : ze(e).some(
|
|
3044
3066
|
(t) => {
|
|
3045
3067
|
var r;
|
|
3046
|
-
return (r =
|
|
3068
|
+
return (r = ur(t)) == null ? void 0 : r.size;
|
|
3047
3069
|
}
|
|
3048
3070
|
);
|
|
3049
3071
|
}
|
|
3050
|
-
function
|
|
3072
|
+
function mi(e, t) {
|
|
3051
3073
|
return Promise.all(
|
|
3052
|
-
t.map((n) => (
|
|
3053
|
-
).then((n) =>
|
|
3074
|
+
t.map((n) => (hi(e, n), n().then((i) => i.default || i)))
|
|
3075
|
+
).then((n) => cr(e, ...n));
|
|
3054
3076
|
}
|
|
3055
|
-
const
|
|
3056
|
-
function
|
|
3057
|
-
if (!
|
|
3058
|
-
return e in
|
|
3059
|
-
const t =
|
|
3060
|
-
return
|
|
3077
|
+
const me = {};
|
|
3078
|
+
function hr(e) {
|
|
3079
|
+
if (!Qe(e))
|
|
3080
|
+
return e in me ? me[e] : Promise.resolve();
|
|
3081
|
+
const t = di(e);
|
|
3082
|
+
return me[e] = Promise.all(
|
|
3061
3083
|
t.map(
|
|
3062
|
-
([r, n]) =>
|
|
3084
|
+
([r, n]) => mi(r, n)
|
|
3063
3085
|
)
|
|
3064
3086
|
).then(() => {
|
|
3065
|
-
if (
|
|
3066
|
-
return
|
|
3067
|
-
delete
|
|
3068
|
-
}),
|
|
3087
|
+
if (Qe(e))
|
|
3088
|
+
return hr(e);
|
|
3089
|
+
delete me[e];
|
|
3090
|
+
}), me[e];
|
|
3069
3091
|
}
|
|
3070
|
-
const
|
|
3092
|
+
const gi = {
|
|
3071
3093
|
number: {
|
|
3072
3094
|
scientific: { notation: "scientific" },
|
|
3073
3095
|
engineering: { notation: "engineering" },
|
|
@@ -3096,159 +3118,159 @@ const di = {
|
|
|
3096
3118
|
timeZoneName: "short"
|
|
3097
3119
|
}
|
|
3098
3120
|
}
|
|
3099
|
-
},
|
|
3121
|
+
}, pi = {
|
|
3100
3122
|
fallbackLocale: null,
|
|
3101
3123
|
loadingDelay: 200,
|
|
3102
|
-
formats:
|
|
3124
|
+
formats: gi,
|
|
3103
3125
|
warnOnMissingMessages: !0,
|
|
3104
3126
|
handleMissingMessage: void 0,
|
|
3105
3127
|
ignoreTag: !0
|
|
3106
|
-
},
|
|
3107
|
-
function
|
|
3108
|
-
return
|
|
3128
|
+
}, fi = pi;
|
|
3129
|
+
function ie() {
|
|
3130
|
+
return fi;
|
|
3109
3131
|
}
|
|
3110
|
-
const
|
|
3111
|
-
var
|
|
3132
|
+
const qe = He(!1);
|
|
3133
|
+
var _i = Object.defineProperty, bi = Object.defineProperties, vi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, yi = Object.prototype.hasOwnProperty, Ei = Object.prototype.propertyIsEnumerable, kt = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ki = (e, t) => {
|
|
3112
3134
|
for (var r in t || (t = {}))
|
|
3113
|
-
|
|
3114
|
-
if (
|
|
3115
|
-
for (var r of
|
|
3116
|
-
|
|
3135
|
+
yi.call(t, r) && kt(e, r, t[r]);
|
|
3136
|
+
if (Et)
|
|
3137
|
+
for (var r of Et(t))
|
|
3138
|
+
Ei.call(t, r) && kt(e, r, t[r]);
|
|
3117
3139
|
return e;
|
|
3118
|
-
},
|
|
3119
|
-
let
|
|
3120
|
-
const
|
|
3121
|
-
function
|
|
3140
|
+
}, Ci = (e, t) => bi(e, vi(t));
|
|
3141
|
+
let Ye;
|
|
3142
|
+
const Ne = He(null);
|
|
3143
|
+
function Ct(e) {
|
|
3122
3144
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3123
3145
|
}
|
|
3124
|
-
function
|
|
3125
|
-
const r =
|
|
3126
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3146
|
+
function ze(e, t = ie().fallbackLocale) {
|
|
3147
|
+
const r = Ct(e);
|
|
3148
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ct(t)])] : r;
|
|
3127
3149
|
}
|
|
3128
|
-
function
|
|
3129
|
-
return
|
|
3150
|
+
function K() {
|
|
3151
|
+
return Ye != null ? Ye : void 0;
|
|
3130
3152
|
}
|
|
3131
|
-
|
|
3132
|
-
|
|
3153
|
+
Ne.subscribe((e) => {
|
|
3154
|
+
Ye = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3133
3155
|
});
|
|
3134
|
-
const
|
|
3135
|
-
if (e &&
|
|
3136
|
-
const { loadingDelay: t } =
|
|
3156
|
+
const Si = (e) => {
|
|
3157
|
+
if (e && ui(e) && Qe(e)) {
|
|
3158
|
+
const { loadingDelay: t } = ie();
|
|
3137
3159
|
let r;
|
|
3138
|
-
return typeof window != "undefined" &&
|
|
3139
|
-
() =>
|
|
3160
|
+
return typeof window != "undefined" && K() != null && t ? r = window.setTimeout(
|
|
3161
|
+
() => qe.set(!0),
|
|
3140
3162
|
t
|
|
3141
|
-
) :
|
|
3142
|
-
|
|
3163
|
+
) : qe.set(!0), hr(e).then(() => {
|
|
3164
|
+
Ne.set(e);
|
|
3143
3165
|
}).finally(() => {
|
|
3144
|
-
clearTimeout(r),
|
|
3166
|
+
clearTimeout(r), qe.set(!1);
|
|
3145
3167
|
});
|
|
3146
3168
|
}
|
|
3147
|
-
return
|
|
3148
|
-
},
|
|
3149
|
-
set:
|
|
3150
|
-
}),
|
|
3169
|
+
return Ne.set(e);
|
|
3170
|
+
}, ae = Ci(ki({}, Ne), {
|
|
3171
|
+
set: Si
|
|
3172
|
+
}), Oe = (e) => {
|
|
3151
3173
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3152
3174
|
return (n) => {
|
|
3153
3175
|
const i = JSON.stringify(n);
|
|
3154
3176
|
return i in t ? t[i] : t[i] = e(n);
|
|
3155
3177
|
};
|
|
3156
3178
|
};
|
|
3157
|
-
var
|
|
3179
|
+
var xi = Object.defineProperty, Ae = Object.getOwnPropertySymbols, dr = Object.prototype.hasOwnProperty, mr = 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) => {
|
|
3158
3180
|
for (var r in t || (t = {}))
|
|
3159
|
-
|
|
3160
|
-
if (
|
|
3161
|
-
for (var r of
|
|
3162
|
-
|
|
3181
|
+
dr.call(t, r) && St(e, r, t[r]);
|
|
3182
|
+
if (Ae)
|
|
3183
|
+
for (var r of Ae(t))
|
|
3184
|
+
mr.call(t, r) && St(e, r, t[r]);
|
|
3163
3185
|
return e;
|
|
3164
|
-
},
|
|
3186
|
+
}, se = (e, t) => {
|
|
3165
3187
|
var r = {};
|
|
3166
3188
|
for (var n in e)
|
|
3167
|
-
|
|
3168
|
-
if (e != null &&
|
|
3169
|
-
for (var n of
|
|
3170
|
-
t.indexOf(n) < 0 &&
|
|
3189
|
+
dr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3190
|
+
if (e != null && Ae)
|
|
3191
|
+
for (var n of Ae(e))
|
|
3192
|
+
t.indexOf(n) < 0 && mr.call(e, n) && (r[n] = e[n]);
|
|
3171
3193
|
return r;
|
|
3172
3194
|
};
|
|
3173
|
-
const
|
|
3174
|
-
const { formats: r } =
|
|
3195
|
+
const fe = (e, t) => {
|
|
3196
|
+
const { formats: r } = ie();
|
|
3175
3197
|
if (e in r && t in r[e])
|
|
3176
3198
|
return r[e][t];
|
|
3177
3199
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3178
|
-
},
|
|
3200
|
+
}, Mi = Oe(
|
|
3179
3201
|
(e) => {
|
|
3180
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3202
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3181
3203
|
if (r == null)
|
|
3182
3204
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3183
|
-
return n && (i =
|
|
3205
|
+
return n && (i = fe("number", n)), new Intl.NumberFormat(r, i);
|
|
3184
3206
|
}
|
|
3185
|
-
),
|
|
3207
|
+
), Ti = Oe(
|
|
3186
3208
|
(e) => {
|
|
3187
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3209
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3188
3210
|
if (r == null)
|
|
3189
3211
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3190
|
-
return n ? i =
|
|
3212
|
+
return n ? i = fe("date", n) : Object.keys(i).length === 0 && (i = fe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3191
3213
|
}
|
|
3192
|
-
),
|
|
3214
|
+
), wi = Oe(
|
|
3193
3215
|
(e) => {
|
|
3194
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3216
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3195
3217
|
if (r == null)
|
|
3196
3218
|
throw new Error(
|
|
3197
3219
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3198
3220
|
);
|
|
3199
|
-
return n ? i =
|
|
3221
|
+
return n ? i = fe("time", n) : Object.keys(i).length === 0 && (i = fe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3200
3222
|
}
|
|
3201
|
-
),
|
|
3223
|
+
), Ni = (e = {}) => {
|
|
3202
3224
|
var t = e, {
|
|
3203
|
-
locale: r =
|
|
3204
|
-
} = t, n =
|
|
3225
|
+
locale: r = K()
|
|
3226
|
+
} = t, n = se(t, [
|
|
3205
3227
|
"locale"
|
|
3206
3228
|
]);
|
|
3207
|
-
return
|
|
3208
|
-
},
|
|
3229
|
+
return Mi(nt({ locale: r }, n));
|
|
3230
|
+
}, Ai = (e = {}) => {
|
|
3209
3231
|
var t = e, {
|
|
3210
|
-
locale: r =
|
|
3211
|
-
} = t, n =
|
|
3232
|
+
locale: r = K()
|
|
3233
|
+
} = t, n = se(t, [
|
|
3212
3234
|
"locale"
|
|
3213
3235
|
]);
|
|
3214
|
-
return
|
|
3215
|
-
},
|
|
3236
|
+
return Ti(nt({ locale: r }, n));
|
|
3237
|
+
}, Hi = (e = {}) => {
|
|
3216
3238
|
var t = e, {
|
|
3217
|
-
locale: r =
|
|
3218
|
-
} = t, n =
|
|
3239
|
+
locale: r = K()
|
|
3240
|
+
} = t, n = se(t, [
|
|
3219
3241
|
"locale"
|
|
3220
3242
|
]);
|
|
3221
|
-
return
|
|
3222
|
-
},
|
|
3243
|
+
return wi(nt({ locale: r }, n));
|
|
3244
|
+
}, Pi = Oe(
|
|
3223
3245
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3224
|
-
(e, t =
|
|
3225
|
-
ignoreTag:
|
|
3246
|
+
(e, t = K()) => new oi(e, t, ie().formats, {
|
|
3247
|
+
ignoreTag: ie().ignoreTag
|
|
3226
3248
|
})
|
|
3227
|
-
),
|
|
3249
|
+
), Bi = (e, t = {}) => {
|
|
3228
3250
|
var r, n, i, o;
|
|
3229
3251
|
let a = t;
|
|
3230
3252
|
typeof e == "object" && (a = e, e = a.id);
|
|
3231
3253
|
const {
|
|
3232
3254
|
values: s,
|
|
3233
|
-
locale: h =
|
|
3234
|
-
default:
|
|
3255
|
+
locale: h = K(),
|
|
3256
|
+
default: u
|
|
3235
3257
|
} = a;
|
|
3236
3258
|
if (h == null)
|
|
3237
3259
|
throw new Error(
|
|
3238
3260
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3239
3261
|
);
|
|
3240
|
-
let
|
|
3241
|
-
if (!
|
|
3242
|
-
|
|
3243
|
-
else if (typeof
|
|
3262
|
+
let l = sr(e, h);
|
|
3263
|
+
if (!l)
|
|
3264
|
+
l = (o = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3265
|
+
else if (typeof l != "string")
|
|
3244
3266
|
return console.warn(
|
|
3245
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3246
|
-
),
|
|
3267
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3268
|
+
), l;
|
|
3247
3269
|
if (!s)
|
|
3248
|
-
return
|
|
3249
|
-
let d =
|
|
3270
|
+
return l;
|
|
3271
|
+
let d = l;
|
|
3250
3272
|
try {
|
|
3251
|
-
d =
|
|
3273
|
+
d = Pi(l, h).format(s);
|
|
3252
3274
|
} catch (m) {
|
|
3253
3275
|
m instanceof Error && console.warn(
|
|
3254
3276
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3256,18 +3278,18 @@ const ge = (e, t) => {
|
|
|
3256
3278
|
);
|
|
3257
3279
|
}
|
|
3258
3280
|
return d;
|
|
3259
|
-
},
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
function
|
|
3265
|
-
|
|
3281
|
+
}, zi = (e, t) => Hi(t).format(e), Oi = (e, t) => Ai(t).format(e), Ii = (e, t) => Ni(t).format(e), ji = (e, t = K()) => sr(e, t), Li = oe([ae, ve], () => Bi);
|
|
3282
|
+
oe([ae], () => zi);
|
|
3283
|
+
oe([ae], () => Oi);
|
|
3284
|
+
oe([ae], () => Ii);
|
|
3285
|
+
oe([ae, ve], () => ji);
|
|
3286
|
+
function xt(e, t) {
|
|
3287
|
+
cr(e, t);
|
|
3266
3288
|
}
|
|
3267
|
-
function
|
|
3268
|
-
|
|
3289
|
+
function Ri(e) {
|
|
3290
|
+
ae.set(e);
|
|
3269
3291
|
}
|
|
3270
|
-
const
|
|
3292
|
+
const Mt = {
|
|
3271
3293
|
en: {
|
|
3272
3294
|
invalidUrl: "Failed to construct 'URL': Invalid URL",
|
|
3273
3295
|
fetchConsentsError: "Error: Could not fetch consents.",
|
|
@@ -3839,64 +3861,64 @@ if (typeof window != "undefined") {
|
|
|
3839
3861
|
}
|
|
3840
3862
|
};
|
|
3841
3863
|
};
|
|
3842
|
-
customElements.define = e(customElements.define), import("./GeneralAnimationLoading-
|
|
3864
|
+
customElements.define = e(customElements.define), import("./GeneralAnimationLoading-kMKGPw5f.js").then((t) => t.G).then(({ default: t }) => {
|
|
3843
3865
|
!customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
|
|
3844
3866
|
});
|
|
3845
3867
|
}
|
|
3846
|
-
function
|
|
3868
|
+
function Ui(e) {
|
|
3847
3869
|
let t, r;
|
|
3848
3870
|
return {
|
|
3849
3871
|
c() {
|
|
3850
|
-
t =
|
|
3872
|
+
t = ut("svg"), r = ut("path"), E(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"), E(t, "xmlns", "http://www.w3.org/2000/svg"), E(t, "viewBox", "0 0 512 512");
|
|
3851
3873
|
},
|
|
3852
3874
|
m(n, i) {
|
|
3853
|
-
|
|
3875
|
+
j(n, t, i), x(t, r);
|
|
3854
3876
|
},
|
|
3855
3877
|
p: X,
|
|
3856
3878
|
i: X,
|
|
3857
3879
|
o: X,
|
|
3858
3880
|
d(n) {
|
|
3859
|
-
n &&
|
|
3881
|
+
n && L(t);
|
|
3860
3882
|
}
|
|
3861
3883
|
};
|
|
3862
3884
|
}
|
|
3863
|
-
class
|
|
3885
|
+
class Di extends Dt {
|
|
3864
3886
|
constructor(t) {
|
|
3865
|
-
super(),
|
|
3887
|
+
super(), qt(this, t, null, Ui, Ke, {});
|
|
3866
3888
|
}
|
|
3867
3889
|
}
|
|
3868
|
-
customElements.define("circle-exclamation-icon",
|
|
3869
|
-
function
|
|
3870
|
-
|
|
3890
|
+
customElements.define("circle-exclamation-icon", Ut(Di, {}, [], [], !0));
|
|
3891
|
+
function qi(e) {
|
|
3892
|
+
Gr(e, "svelte-ltb9q9", '.DisplayNone.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:none}.ContainerCenter.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{margin-bottom:30px}.AccordionHeader.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{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-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{margin-bottom:10px}.AccordionContent.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:block;padding:10px 0}.AccordionContent.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9:last-of-type{padding-bottom:0}.ConsentItem.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9:last-of-type{margin-bottom:0}.ConsentItem.svelte-ltb9q9 .ConsentName.svelte-ltb9q9.svelte-ltb9q9{margin:0}.ConsentItem.svelte-ltb9q9 .ConsentDescription.svelte-ltb9q9.svelte-ltb9q9{font-size:0.8rem}.ToggleSwitch.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{width:53px;height:30px}.ToggleSwitch.Big.svelte-ltb9q9 .Slider.svelte-ltb9q9.svelte-ltb9q9:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-ltb9q9 input.svelte-ltb9q9:checked+.Slider.svelte-ltb9q9:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9.svelte-ltb9q9{opacity:0;width:0;height:0}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9:checked+.Slider.svelte-ltb9q9{background-color:var(--emw--color-primary, #307fe2)}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9:disabled+.Slider.svelte-ltb9q9{opacity:0.1}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9:checked+.Slider.svelte-ltb9q9:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9:focus+.Slider.svelte-ltb9q9{box-shadow:0 0 1px var(--emw--color-primary, #307fe2)}.ToggleSwitch.svelte-ltb9q9 .Slider.svelte-ltb9q9.svelte-ltb9q9{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-ltb9q9 .Slider.svelte-ltb9q9.svelte-ltb9q9: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-ltb9q9 .Slider.Round.svelte-ltb9q9.svelte-ltb9q9{border-radius:34px}.ToggleSwitch.svelte-ltb9q9 .Slider.Round.svelte-ltb9q9.svelte-ltb9q9:before{border-radius:50%}.SaveConsentsButton.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{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-ltb9q9.svelte-ltb9q9.svelte-ltb9q9:disabled{background:var(--emw--color-pale, var(--emw--color-gray-50, #707070))}.ConsentErrorContainer.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-ltb9q9 circle-exclamation-icon.svelte-ltb9q9.svelte-ltb9q9{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox.svelte-ltb9q9.svelte-ltb9q9{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__wrapper.svelte-ltb9q9.svelte-ltb9q9{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-ltb9q9.svelte-ltb9q9{position:relative}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__input.svelte-ltb9q9.svelte-ltb9q9{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__label.svelte-ltb9q9.svelte-ltb9q9{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-ltb9q9 .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-ltb9q9.svelte-ltb9q9{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__error-message.svelte-ltb9q9.svelte-ltb9q9{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-ltb9q9.svelte-ltb9q9{width:16px;height:auto}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__tooltip.svelte-ltb9q9.svelte-ltb9q9{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-ltb9q9 .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-ltb9q9.svelte-ltb9q9{opacity:1}');
|
|
3871
3893
|
}
|
|
3872
|
-
function
|
|
3894
|
+
function Tt(e, t, r) {
|
|
3873
3895
|
const n = e.slice();
|
|
3874
3896
|
return n[64] = t[r], n;
|
|
3875
3897
|
}
|
|
3876
|
-
function
|
|
3898
|
+
function wt(e, t, r) {
|
|
3877
3899
|
const n = e.slice();
|
|
3878
3900
|
return n[61] = t[r], n[62] = t, n[63] = r, n;
|
|
3879
3901
|
}
|
|
3880
|
-
function
|
|
3902
|
+
function Nt(e, t, r) {
|
|
3881
3903
|
const n = e.slice();
|
|
3882
3904
|
return n[64] = t[r], n;
|
|
3883
3905
|
}
|
|
3884
|
-
function
|
|
3885
|
-
let t, r, n =
|
|
3906
|
+
function Gi(e) {
|
|
3907
|
+
let t, r, n = ee(
|
|
3886
3908
|
/*playerConsents*/
|
|
3887
3909
|
e[9]
|
|
3888
3910
|
), i = [];
|
|
3889
3911
|
for (let o = 0; o < n.length; o += 1)
|
|
3890
|
-
i[o] =
|
|
3912
|
+
i[o] = At(Tt(e, n, o));
|
|
3891
3913
|
return {
|
|
3892
3914
|
c() {
|
|
3893
3915
|
t = A("div"), r = A("form");
|
|
3894
3916
|
for (let o = 0; o < i.length; o += 1)
|
|
3895
3917
|
i[o].c();
|
|
3896
|
-
|
|
3918
|
+
E(r, "class", "checkbox svelte-ltb9q9"), E(t, "class", "legacyStyle");
|
|
3897
3919
|
},
|
|
3898
3920
|
m(o, a) {
|
|
3899
|
-
|
|
3921
|
+
j(o, t, a), x(t, r);
|
|
3900
3922
|
for (let s = 0; s < i.length; s += 1)
|
|
3901
3923
|
i[s] && i[s].m(r, null);
|
|
3902
3924
|
e[31](r);
|
|
@@ -3904,14 +3926,14 @@ function Di(e) {
|
|
|
3904
3926
|
p(o, a) {
|
|
3905
3927
|
if (a[0] & /*playerConsents, $_, handleInput*/
|
|
3906
3928
|
590336) {
|
|
3907
|
-
n =
|
|
3929
|
+
n = ee(
|
|
3908
3930
|
/*playerConsents*/
|
|
3909
3931
|
o[9]
|
|
3910
3932
|
);
|
|
3911
3933
|
let s;
|
|
3912
3934
|
for (s = 0; s < n.length; s += 1) {
|
|
3913
|
-
const h =
|
|
3914
|
-
i[s] ? i[s].p(h, a) : (i[s] =
|
|
3935
|
+
const h = Tt(o, n, s);
|
|
3936
|
+
i[s] ? i[s].p(h, a) : (i[s] = At(h), i[s].c(), i[s].m(r, null));
|
|
3915
3937
|
}
|
|
3916
3938
|
for (; s < i.length; s += 1)
|
|
3917
3939
|
i[s].d(1);
|
|
@@ -3919,11 +3941,11 @@ function Di(e) {
|
|
|
3919
3941
|
}
|
|
3920
3942
|
},
|
|
3921
3943
|
d(o) {
|
|
3922
|
-
o &&
|
|
3944
|
+
o && L(t), $e(i, o), e[31](null);
|
|
3923
3945
|
}
|
|
3924
3946
|
};
|
|
3925
3947
|
}
|
|
3926
|
-
function
|
|
3948
|
+
function Fi(e) {
|
|
3927
3949
|
let t = (
|
|
3928
3950
|
/*$_*/
|
|
3929
3951
|
e[16]("title") || /*$_*/
|
|
@@ -3931,106 +3953,106 @@ function qi(e) {
|
|
|
3931
3953
|
), r, n, i, o = (
|
|
3932
3954
|
/*$_*/
|
|
3933
3955
|
(e[16]("saveButtonContent") || "Save Consents") + ""
|
|
3934
|
-
), a, s, h,
|
|
3956
|
+
), a, s, h, u, l, d = t && Ht(e), m = ee(
|
|
3935
3957
|
/*consentsCategories*/
|
|
3936
3958
|
e[8]
|
|
3937
|
-
),
|
|
3938
|
-
for (let
|
|
3939
|
-
|
|
3959
|
+
), b = [];
|
|
3960
|
+
for (let g = 0; g < m.length; g += 1)
|
|
3961
|
+
b[g] = jt(wt(e, m, g));
|
|
3940
3962
|
let f = (
|
|
3941
3963
|
/*errorMessage*/
|
|
3942
|
-
e[6] &&
|
|
3964
|
+
e[6] && Lt(e)
|
|
3943
3965
|
);
|
|
3944
3966
|
return {
|
|
3945
3967
|
c() {
|
|
3946
3968
|
d && d.c(), r = q();
|
|
3947
|
-
for (let
|
|
3948
|
-
|
|
3949
|
-
n = q(), i = A("button"), s = q(), f && f.c(), h =
|
|
3969
|
+
for (let g = 0; g < b.length; g += 1)
|
|
3970
|
+
b[g].c();
|
|
3971
|
+
n = q(), i = A("button"), s = q(), f && f.c(), h = Qr(), E(i, "class", "SaveConsentsButton svelte-ltb9q9"), i.disabled = a = !/*isValid*/
|
|
3950
3972
|
e[14];
|
|
3951
3973
|
},
|
|
3952
|
-
m(
|
|
3953
|
-
d && d.m(
|
|
3954
|
-
for (let _ = 0; _ <
|
|
3955
|
-
|
|
3956
|
-
|
|
3974
|
+
m(g, S) {
|
|
3975
|
+
d && d.m(g, S), j(g, r, S);
|
|
3976
|
+
for (let _ = 0; _ < b.length; _ += 1)
|
|
3977
|
+
b[_] && b[_].m(g, S);
|
|
3978
|
+
j(g, n, S), j(g, i, S), i.innerHTML = o, j(g, s, S), f && f.m(g, S), j(g, h, S), u || (l = ge(
|
|
3957
3979
|
i,
|
|
3958
3980
|
"click",
|
|
3959
3981
|
/*saveChanges*/
|
|
3960
3982
|
e[17]
|
|
3961
|
-
),
|
|
3983
|
+
), u = !0);
|
|
3962
3984
|
},
|
|
3963
|
-
p(
|
|
3964
|
-
if (
|
|
3985
|
+
p(g, S) {
|
|
3986
|
+
if (S[0] & /*$_*/
|
|
3965
3987
|
65536 && (t = /*$_*/
|
|
3966
|
-
|
|
3967
|
-
|
|
3988
|
+
g[16]("title") || /*$_*/
|
|
3989
|
+
g[16]("description")), t ? d ? d.p(g, S) : (d = Ht(g), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), S[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
|
|
3968
3990
|
867088) {
|
|
3969
|
-
m =
|
|
3991
|
+
m = ee(
|
|
3970
3992
|
/*consentsCategories*/
|
|
3971
|
-
|
|
3993
|
+
g[8]
|
|
3972
3994
|
);
|
|
3973
3995
|
let _;
|
|
3974
3996
|
for (_ = 0; _ < m.length; _ += 1) {
|
|
3975
|
-
const
|
|
3976
|
-
|
|
3997
|
+
const v = wt(g, m, _);
|
|
3998
|
+
b[_] ? b[_].p(v, S) : (b[_] = jt(v), b[_].c(), b[_].m(n.parentNode, n));
|
|
3977
3999
|
}
|
|
3978
|
-
for (; _ <
|
|
3979
|
-
|
|
3980
|
-
|
|
4000
|
+
for (; _ < b.length; _ += 1)
|
|
4001
|
+
b[_].d(1);
|
|
4002
|
+
b.length = m.length;
|
|
3981
4003
|
}
|
|
3982
|
-
|
|
4004
|
+
S[0] & /*$_*/
|
|
3983
4005
|
65536 && o !== (o = /*$_*/
|
|
3984
|
-
(
|
|
4006
|
+
(g[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), S[0] & /*isValid*/
|
|
3985
4007
|
16384 && a !== (a = !/*isValid*/
|
|
3986
|
-
|
|
3987
|
-
|
|
4008
|
+
g[14]) && (i.disabled = a), /*errorMessage*/
|
|
4009
|
+
g[6] ? f ? f.p(g, S) : (f = Lt(g), f.c(), f.m(h.parentNode, h)) : f && (f.d(1), f = null);
|
|
3988
4010
|
},
|
|
3989
|
-
d(
|
|
3990
|
-
|
|
4011
|
+
d(g) {
|
|
4012
|
+
g && (L(r), L(n), L(i), L(s), L(h)), d && d.d(g), $e(b, g), f && f.d(g), u = !1, l();
|
|
3991
4013
|
}
|
|
3992
4014
|
};
|
|
3993
4015
|
}
|
|
3994
|
-
function
|
|
4016
|
+
function Vi(e) {
|
|
3995
4017
|
let t, r, n;
|
|
3996
4018
|
return {
|
|
3997
4019
|
c() {
|
|
3998
4020
|
t = A("div"), r = A("strong"), n = _e(
|
|
3999
4021
|
/*fatalError*/
|
|
4000
4022
|
e[7]
|
|
4001
|
-
),
|
|
4023
|
+
), E(r, "class", "ErrorMessage svelte-ltb9q9"), E(t, "class", "ContainerCenter svelte-ltb9q9");
|
|
4002
4024
|
},
|
|
4003
4025
|
m(i, o) {
|
|
4004
|
-
|
|
4026
|
+
j(i, t, o), x(t, r), x(r, n);
|
|
4005
4027
|
},
|
|
4006
4028
|
p(i, o) {
|
|
4007
4029
|
o[0] & /*fatalError*/
|
|
4008
|
-
128 &&
|
|
4030
|
+
128 && be(
|
|
4009
4031
|
n,
|
|
4010
4032
|
/*fatalError*/
|
|
4011
4033
|
i[7]
|
|
4012
4034
|
);
|
|
4013
4035
|
},
|
|
4014
4036
|
d(i) {
|
|
4015
|
-
i &&
|
|
4037
|
+
i && L(t);
|
|
4016
4038
|
}
|
|
4017
4039
|
};
|
|
4018
4040
|
}
|
|
4019
|
-
function
|
|
4041
|
+
function Xi(e) {
|
|
4020
4042
|
let t;
|
|
4021
4043
|
return {
|
|
4022
4044
|
c() {
|
|
4023
|
-
t = A("general-animation-loading"),
|
|
4045
|
+
t = A("general-animation-loading"), Y(
|
|
4024
4046
|
t,
|
|
4025
4047
|
"clientstyling",
|
|
4026
4048
|
/*clientstyling*/
|
|
4027
4049
|
e[1]
|
|
4028
|
-
),
|
|
4050
|
+
), Y(
|
|
4029
4051
|
t,
|
|
4030
4052
|
"clientstylingurl",
|
|
4031
4053
|
/*clientstylingurl*/
|
|
4032
4054
|
e[2]
|
|
4033
|
-
),
|
|
4055
|
+
), Y(
|
|
4034
4056
|
t,
|
|
4035
4057
|
"mbsource",
|
|
4036
4058
|
/*mbsource*/
|
|
@@ -4038,23 +4060,23 @@ function Fi(e) {
|
|
|
4038
4060
|
);
|
|
4039
4061
|
},
|
|
4040
4062
|
m(r, n) {
|
|
4041
|
-
|
|
4063
|
+
j(r, t, n);
|
|
4042
4064
|
},
|
|
4043
4065
|
p(r, n) {
|
|
4044
4066
|
n[0] & /*clientstyling*/
|
|
4045
|
-
2 &&
|
|
4067
|
+
2 && Y(
|
|
4046
4068
|
t,
|
|
4047
4069
|
"clientstyling",
|
|
4048
4070
|
/*clientstyling*/
|
|
4049
4071
|
r[1]
|
|
4050
4072
|
), n[0] & /*clientstylingurl*/
|
|
4051
|
-
4 &&
|
|
4073
|
+
4 && Y(
|
|
4052
4074
|
t,
|
|
4053
4075
|
"clientstylingurl",
|
|
4054
4076
|
/*clientstylingurl*/
|
|
4055
4077
|
r[2]
|
|
4056
4078
|
), n[0] & /*mbsource*/
|
|
4057
|
-
8 &&
|
|
4079
|
+
8 && Y(
|
|
4058
4080
|
t,
|
|
4059
4081
|
"mbsource",
|
|
4060
4082
|
/*mbsource*/
|
|
@@ -4062,152 +4084,152 @@ function Fi(e) {
|
|
|
4062
4084
|
);
|
|
4063
4085
|
},
|
|
4064
4086
|
d(r) {
|
|
4065
|
-
r &&
|
|
4087
|
+
r && L(t);
|
|
4066
4088
|
}
|
|
4067
4089
|
};
|
|
4068
4090
|
}
|
|
4069
|
-
function
|
|
4070
|
-
let t, r, n, i, o, a, s, h,
|
|
4091
|
+
function At(e) {
|
|
4092
|
+
let t, r, n, i, o, a, s, h, u = (
|
|
4071
4093
|
/*$_*/
|
|
4072
4094
|
(e[16](`${/*consent*/
|
|
4073
4095
|
e[64].tagCode}__description`) || /*consent*/
|
|
4074
4096
|
e[64].tagCode) + ""
|
|
4075
|
-
),
|
|
4097
|
+
), l = (
|
|
4076
4098
|
/*consent*/
|
|
4077
4099
|
e[64].mustAccept ? " *" : ""
|
|
4078
|
-
), d, m,
|
|
4079
|
-
function P(...
|
|
4100
|
+
), d, m, b, f, g, S, _, v, C;
|
|
4101
|
+
function P(...k) {
|
|
4080
4102
|
return (
|
|
4081
4103
|
/*input_handler_1*/
|
|
4082
4104
|
e[30](
|
|
4083
4105
|
/*consent*/
|
|
4084
4106
|
e[64],
|
|
4085
|
-
...
|
|
4107
|
+
...k
|
|
4086
4108
|
)
|
|
4087
4109
|
);
|
|
4088
4110
|
}
|
|
4089
4111
|
return {
|
|
4090
4112
|
c() {
|
|
4091
|
-
t = A("div"), r = A("input"), o = q(), a = A("label"), s = A("div"), h = new
|
|
4092
|
-
e[64].status === "1",
|
|
4093
|
-
e[64].tagCode}__input`), h.a = d,
|
|
4094
|
-
e[64].tagCode}__input`),
|
|
4095
|
-
e[64].tagCode),
|
|
4113
|
+
t = A("div"), r = A("input"), o = q(), a = A("label"), s = A("div"), h = new Gt(!1), d = _e(l), b = q(), f = A("small"), S = q(), E(r, "class", "checkbox__input svelte-ltb9q9"), E(r, "type", "checkbox"), r.checked = n = /*consent*/
|
|
4114
|
+
e[64].status === "1", E(r, "id", i = `${/*consent*/
|
|
4115
|
+
e[64].tagCode}__input`), h.a = d, E(s, "class", "checkbox__label-text svelte-ltb9q9"), E(a, "class", "checkbox__label svelte-ltb9q9"), E(a, "for", m = `${/*consent*/
|
|
4116
|
+
e[64].tagCode}__input`), E(f, "class", "checkbox__error-message svelte-ltb9q9"), E(f, "id", g = "checkBoxError__" + /*consent*/
|
|
4117
|
+
e[64].tagCode), E(t, "class", _ = "checkbox__wrapper " + /*consent*/
|
|
4096
4118
|
e[64].tagCode + "__input svelte-ltb9q9");
|
|
4097
4119
|
},
|
|
4098
|
-
m(
|
|
4099
|
-
|
|
4120
|
+
m(k, z) {
|
|
4121
|
+
j(k, t, z), 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), v || (C = ge(r, "input", P), v = !0);
|
|
4100
4122
|
},
|
|
4101
|
-
p(
|
|
4102
|
-
e =
|
|
4123
|
+
p(k, z) {
|
|
4124
|
+
e = k, z[0] & /*playerConsents*/
|
|
4103
4125
|
512 && n !== (n = /*consent*/
|
|
4104
4126
|
e[64].status === "1") && (r.checked = n), z[0] & /*playerConsents*/
|
|
4105
4127
|
512 && i !== (i = `${/*consent*/
|
|
4106
|
-
e[64].tagCode}__input`) &&
|
|
4107
|
-
66048 &&
|
|
4128
|
+
e[64].tagCode}__input`) && E(r, "id", i), z[0] & /*$_, playerConsents*/
|
|
4129
|
+
66048 && u !== (u = /*$_*/
|
|
4108
4130
|
(e[16](`${/*consent*/
|
|
4109
4131
|
e[64].tagCode}__description`) || /*consent*/
|
|
4110
|
-
e[64].tagCode) + "") && h.p(
|
|
4111
|
-
512 &&
|
|
4112
|
-
e[64].mustAccept ? " *" : "") &&
|
|
4132
|
+
e[64].tagCode) + "") && h.p(u), z[0] & /*playerConsents*/
|
|
4133
|
+
512 && l !== (l = /*consent*/
|
|
4134
|
+
e[64].mustAccept ? " *" : "") && be(d, l), z[0] & /*playerConsents*/
|
|
4113
4135
|
512 && m !== (m = `${/*consent*/
|
|
4114
|
-
e[64].tagCode}__input`) &&
|
|
4115
|
-
512 &&
|
|
4116
|
-
e[64].tagCode) &&
|
|
4136
|
+
e[64].tagCode}__input`) && E(a, "for", m), z[0] & /*playerConsents*/
|
|
4137
|
+
512 && g !== (g = "checkBoxError__" + /*consent*/
|
|
4138
|
+
e[64].tagCode) && E(f, "id", g), z[0] & /*playerConsents*/
|
|
4117
4139
|
512 && _ !== (_ = "checkbox__wrapper " + /*consent*/
|
|
4118
|
-
e[64].tagCode + "__input svelte-ltb9q9") &&
|
|
4140
|
+
e[64].tagCode + "__input svelte-ltb9q9") && E(t, "class", _);
|
|
4119
4141
|
},
|
|
4120
|
-
d(
|
|
4121
|
-
|
|
4142
|
+
d(k) {
|
|
4143
|
+
k && L(t), v = !1, C();
|
|
4122
4144
|
}
|
|
4123
4145
|
};
|
|
4124
4146
|
}
|
|
4125
|
-
function
|
|
4147
|
+
function Ht(e) {
|
|
4126
4148
|
let t, r = (
|
|
4127
4149
|
/*$_*/
|
|
4128
4150
|
e[16]("title")
|
|
4129
4151
|
), n, i = (
|
|
4130
4152
|
/*$_*/
|
|
4131
4153
|
e[16]("description")
|
|
4132
|
-
), o = r &&
|
|
4154
|
+
), o = r && Pt(e), a = i && Bt(e);
|
|
4133
4155
|
return {
|
|
4134
4156
|
c() {
|
|
4135
|
-
t = A("div"), o && o.c(), n = q(), a && a.c(),
|
|
4157
|
+
t = A("div"), o && o.c(), n = q(), a && a.c(), E(t, "class", "PlayerConsentsHeader svelte-ltb9q9");
|
|
4136
4158
|
},
|
|
4137
4159
|
m(s, h) {
|
|
4138
|
-
|
|
4160
|
+
j(s, t, h), o && o.m(t, null), x(t, n), a && a.m(t, null);
|
|
4139
4161
|
},
|
|
4140
4162
|
p(s, h) {
|
|
4141
4163
|
h[0] & /*$_*/
|
|
4142
4164
|
65536 && (r = /*$_*/
|
|
4143
|
-
s[16]("title")), r ? o ? o.p(s, h) : (o =
|
|
4165
|
+
s[16]("title")), r ? o ? o.p(s, h) : (o = Pt(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), h[0] & /*$_*/
|
|
4144
4166
|
65536 && (i = /*$_*/
|
|
4145
|
-
s[16]("description")), i ? a ? a.p(s, h) : (a =
|
|
4167
|
+
s[16]("description")), i ? a ? a.p(s, h) : (a = Bt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4146
4168
|
},
|
|
4147
4169
|
d(s) {
|
|
4148
|
-
s &&
|
|
4170
|
+
s && L(t), o && o.d(), a && a.d();
|
|
4149
4171
|
}
|
|
4150
4172
|
};
|
|
4151
4173
|
}
|
|
4152
|
-
function
|
|
4174
|
+
function Pt(e) {
|
|
4153
4175
|
let t, r = (
|
|
4154
4176
|
/*$_*/
|
|
4155
4177
|
e[16]("title") + ""
|
|
4156
4178
|
), n;
|
|
4157
4179
|
return {
|
|
4158
4180
|
c() {
|
|
4159
|
-
t = A("h2"), n = _e(r),
|
|
4181
|
+
t = A("h2"), n = _e(r), E(t, "class", "PlayerConsentsTitle");
|
|
4160
4182
|
},
|
|
4161
4183
|
m(i, o) {
|
|
4162
|
-
|
|
4184
|
+
j(i, t, o), x(t, n);
|
|
4163
4185
|
},
|
|
4164
4186
|
p(i, o) {
|
|
4165
4187
|
o[0] & /*$_*/
|
|
4166
4188
|
65536 && r !== (r = /*$_*/
|
|
4167
|
-
i[16]("title") + "") &&
|
|
4189
|
+
i[16]("title") + "") && be(n, r);
|
|
4168
4190
|
},
|
|
4169
4191
|
d(i) {
|
|
4170
|
-
i &&
|
|
4192
|
+
i && L(t);
|
|
4171
4193
|
}
|
|
4172
4194
|
};
|
|
4173
4195
|
}
|
|
4174
|
-
function
|
|
4196
|
+
function Bt(e) {
|
|
4175
4197
|
let t, r = (
|
|
4176
4198
|
/*$_*/
|
|
4177
4199
|
e[16]("description") + ""
|
|
4178
4200
|
), n;
|
|
4179
4201
|
return {
|
|
4180
4202
|
c() {
|
|
4181
|
-
t = A("p"), n = _e(r),
|
|
4203
|
+
t = A("p"), n = _e(r), E(t, "class", "PlayerConsentsDescription");
|
|
4182
4204
|
},
|
|
4183
4205
|
m(i, o) {
|
|
4184
|
-
|
|
4206
|
+
j(i, t, o), x(t, n);
|
|
4185
4207
|
},
|
|
4186
4208
|
p(i, o) {
|
|
4187
4209
|
o[0] & /*$_*/
|
|
4188
4210
|
65536 && r !== (r = /*$_*/
|
|
4189
|
-
i[16]("description") + "") &&
|
|
4211
|
+
i[16]("description") + "") && be(n, r);
|
|
4190
4212
|
},
|
|
4191
4213
|
d(i) {
|
|
4192
|
-
i &&
|
|
4214
|
+
i && L(t);
|
|
4193
4215
|
}
|
|
4194
4216
|
};
|
|
4195
4217
|
}
|
|
4196
|
-
function
|
|
4218
|
+
function zt(e) {
|
|
4197
4219
|
let t;
|
|
4198
4220
|
return {
|
|
4199
4221
|
c() {
|
|
4200
|
-
t = A("sup"), t.textContent = "*",
|
|
4222
|
+
t = A("sup"), t.textContent = "*", E(t, "class", "ConsentRequired svelte-ltb9q9");
|
|
4201
4223
|
},
|
|
4202
4224
|
m(r, n) {
|
|
4203
|
-
|
|
4225
|
+
j(r, t, n);
|
|
4204
4226
|
},
|
|
4205
4227
|
d(r) {
|
|
4206
|
-
r &&
|
|
4228
|
+
r && L(t);
|
|
4207
4229
|
}
|
|
4208
4230
|
};
|
|
4209
4231
|
}
|
|
4210
|
-
function
|
|
4232
|
+
function Ot(e) {
|
|
4211
4233
|
let t, r = (
|
|
4212
4234
|
/*$_*/
|
|
4213
4235
|
(e[16](`${/*consent*/
|
|
@@ -4216,10 +4238,10 @@ function Pt(e) {
|
|
|
4216
4238
|
);
|
|
4217
4239
|
return {
|
|
4218
4240
|
c() {
|
|
4219
|
-
t = A("p"),
|
|
4241
|
+
t = A("p"), E(t, "class", "ConsentDescription svelte-ltb9q9");
|
|
4220
4242
|
},
|
|
4221
4243
|
m(n, i) {
|
|
4222
|
-
|
|
4244
|
+
j(n, t, i), t.innerHTML = r;
|
|
4223
4245
|
},
|
|
4224
4246
|
p(n, i) {
|
|
4225
4247
|
i[0] & /*$_, playerConsents, consentsCategories*/
|
|
@@ -4229,24 +4251,24 @@ function Pt(e) {
|
|
|
4229
4251
|
n[64].description) + "") && (t.innerHTML = r);
|
|
4230
4252
|
},
|
|
4231
4253
|
d(n) {
|
|
4232
|
-
n &&
|
|
4254
|
+
n && L(t);
|
|
4233
4255
|
}
|
|
4234
4256
|
};
|
|
4235
4257
|
}
|
|
4236
|
-
function
|
|
4258
|
+
function It(e) {
|
|
4237
4259
|
let t, r, n, i, o = (
|
|
4238
4260
|
/*$_*/
|
|
4239
4261
|
(e[16](`${/*consent*/
|
|
4240
4262
|
e[64].tagCode}__name`) || /*consent*/
|
|
4241
4263
|
e[64].friendlyName) + ""
|
|
4242
|
-
), a, s, h,
|
|
4264
|
+
), a, s, h, u, l, d, m, b, f, g, S, _ = (
|
|
4243
4265
|
/*consent*/
|
|
4244
|
-
e[64].mustAccept === !0 &&
|
|
4245
|
-
),
|
|
4266
|
+
e[64].mustAccept === !0 && zt()
|
|
4267
|
+
), v = (
|
|
4246
4268
|
/*displayconsentdescription*/
|
|
4247
|
-
e[4] === "true" &&
|
|
4269
|
+
e[4] === "true" && Ot(e)
|
|
4248
4270
|
);
|
|
4249
|
-
function
|
|
4271
|
+
function C(...P) {
|
|
4250
4272
|
return (
|
|
4251
4273
|
/*input_handler*/
|
|
4252
4274
|
e[29](
|
|
@@ -4258,52 +4280,52 @@ function Bt(e) {
|
|
|
4258
4280
|
}
|
|
4259
4281
|
return {
|
|
4260
4282
|
c() {
|
|
4261
|
-
t = A("div"), r = A("div"), n = A("h4"), i = new
|
|
4283
|
+
t = A("div"), r = A("div"), n = A("h4"), i = new Gt(!1), a = q(), _ && _.c(), s = q(), v && v.c(), h = q(), u = A("label"), l = A("input"), b = q(), f = A("span"), i.a = a, E(n, "class", "ConsentName svelte-ltb9q9"), E(r, "class", "ConsentContent"), E(l, "type", "checkbox"), l.disabled = d = /*consent*/
|
|
4262
4284
|
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4263
4285
|
e[12][
|
|
4264
4286
|
/*consent*/
|
|
4265
4287
|
e[64].tagCode
|
|
4266
|
-
] === !0,
|
|
4288
|
+
] === !0, l.checked = m = /*consentsState*/
|
|
4267
4289
|
e[13][
|
|
4268
4290
|
/*consent*/
|
|
4269
4291
|
e[64].tagCode
|
|
4270
|
-
],
|
|
4292
|
+
], E(l, "class", "svelte-ltb9q9"), E(f, "class", "Slider Round svelte-ltb9q9"), E(u, "class", "ToggleSwitch svelte-ltb9q9"), E(t, "class", "ConsentItem svelte-ltb9q9");
|
|
4271
4293
|
},
|
|
4272
|
-
m(P,
|
|
4273
|
-
|
|
4294
|
+
m(P, k) {
|
|
4295
|
+
j(P, t, k), x(t, r), x(r, n), i.m(o, n), x(n, a), _ && _.m(n, null), x(r, s), v && v.m(r, null), x(t, h), x(t, u), x(u, l), x(u, b), x(u, f), g || (S = ge(l, "input", C), g = !0);
|
|
4274
4296
|
},
|
|
4275
|
-
p(P,
|
|
4276
|
-
e = P,
|
|
4297
|
+
p(P, k) {
|
|
4298
|
+
e = P, k[0] & /*$_, playerConsents, consentsCategories*/
|
|
4277
4299
|
66304 && o !== (o = /*$_*/
|
|
4278
4300
|
(e[16](`${/*consent*/
|
|
4279
4301
|
e[64].tagCode}__name`) || /*consent*/
|
|
4280
4302
|
e[64].friendlyName) + "") && i.p(o), /*consent*/
|
|
4281
|
-
e[64].mustAccept === !0 ? _ || (_ =
|
|
4282
|
-
e[4] === "true" ?
|
|
4303
|
+
e[64].mustAccept === !0 ? _ || (_ = zt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
|
|
4304
|
+
e[4] === "true" ? v ? v.p(e, k) : (v = Ot(e), v.c(), v.m(r, null)) : v && (v.d(1), v = null), k[0] & /*playerConsents, consentsCategories, initialConsentsState*/
|
|
4283
4305
|
4864 && d !== (d = /*consent*/
|
|
4284
4306
|
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4285
4307
|
e[12][
|
|
4286
4308
|
/*consent*/
|
|
4287
4309
|
e[64].tagCode
|
|
4288
|
-
] === !0) && (
|
|
4310
|
+
] === !0) && (l.disabled = d), k[0] & /*consentsState, playerConsents, consentsCategories*/
|
|
4289
4311
|
8960 && m !== (m = /*consentsState*/
|
|
4290
4312
|
e[13][
|
|
4291
4313
|
/*consent*/
|
|
4292
4314
|
e[64].tagCode
|
|
4293
|
-
]) && (
|
|
4315
|
+
]) && (l.checked = m);
|
|
4294
4316
|
},
|
|
4295
4317
|
d(P) {
|
|
4296
|
-
P &&
|
|
4318
|
+
P && L(t), _ && _.d(), v && v.d(), g = !1, S();
|
|
4297
4319
|
}
|
|
4298
4320
|
};
|
|
4299
4321
|
}
|
|
4300
|
-
function
|
|
4322
|
+
function jt(e) {
|
|
4301
4323
|
let t, r, n, i = (
|
|
4302
4324
|
/*$_*/
|
|
4303
4325
|
(e[16](`${/*category*/
|
|
4304
4326
|
e[61].categoryTagCode}__category`) || /*category*/
|
|
4305
4327
|
e[61].friendlyName) + ""
|
|
4306
|
-
), o, a, s, h,
|
|
4328
|
+
), o, a, s, h, u, l, d, m, b;
|
|
4307
4329
|
function f() {
|
|
4308
4330
|
e[26].call(
|
|
4309
4331
|
s,
|
|
@@ -4311,7 +4333,7 @@ function zt(e) {
|
|
|
4311
4333
|
e[61]
|
|
4312
4334
|
);
|
|
4313
4335
|
}
|
|
4314
|
-
function
|
|
4336
|
+
function g() {
|
|
4315
4337
|
return (
|
|
4316
4338
|
/*change_handler*/
|
|
4317
4339
|
e[27](
|
|
@@ -4320,44 +4342,44 @@ function zt(e) {
|
|
|
4320
4342
|
)
|
|
4321
4343
|
);
|
|
4322
4344
|
}
|
|
4323
|
-
function
|
|
4345
|
+
function S(...C) {
|
|
4324
4346
|
return (
|
|
4325
4347
|
/*func*/
|
|
4326
4348
|
e[28](
|
|
4327
4349
|
/*category*/
|
|
4328
4350
|
e[61],
|
|
4329
|
-
...
|
|
4351
|
+
...C
|
|
4330
4352
|
)
|
|
4331
4353
|
);
|
|
4332
4354
|
}
|
|
4333
|
-
let _ =
|
|
4355
|
+
let _ = ee(
|
|
4334
4356
|
/*playerConsents*/
|
|
4335
|
-
e[9].filter(
|
|
4336
|
-
),
|
|
4337
|
-
for (let
|
|
4338
|
-
|
|
4357
|
+
e[9].filter(S)
|
|
4358
|
+
), v = [];
|
|
4359
|
+
for (let C = 0; C < _.length; C += 1)
|
|
4360
|
+
v[C] = It(Nt(e, _, C));
|
|
4339
4361
|
return {
|
|
4340
4362
|
c() {
|
|
4341
|
-
t = A("div"), r = A("div"), n = A("h3"), o = q(), a = A("label"), s = A("input"), h = q(),
|
|
4342
|
-
for (let
|
|
4343
|
-
|
|
4344
|
-
|
|
4363
|
+
t = A("div"), r = A("div"), n = A("h3"), o = q(), a = A("label"), s = A("input"), h = q(), u = A("span"), l = q(), d = A("div");
|
|
4364
|
+
for (let C = 0; C < v.length; C += 1)
|
|
4365
|
+
v[C].c();
|
|
4366
|
+
E(s, "type", "checkbox"), E(s, "class", "svelte-ltb9q9"), E(u, "class", "Slider Round svelte-ltb9q9"), E(a, "class", "ToggleSwitch Big svelte-ltb9q9"), E(r, "class", "AccordionHeader svelte-ltb9q9"), E(d, "class", "AccordionContent svelte-ltb9q9"), E(t, "class", "AccordionItem svelte-ltb9q9");
|
|
4345
4367
|
},
|
|
4346
|
-
m(
|
|
4347
|
-
|
|
4368
|
+
m(C, P) {
|
|
4369
|
+
j(C, t, P), x(t, r), x(r, n), n.innerHTML = i, x(r, o), x(r, a), x(a, s), s.checked = /*categoryToggle*/
|
|
4348
4370
|
e[11][
|
|
4349
4371
|
/*category*/
|
|
4350
4372
|
e[61].categoryTagCode
|
|
4351
|
-
],
|
|
4352
|
-
for (let
|
|
4353
|
-
|
|
4354
|
-
m || (
|
|
4355
|
-
|
|
4356
|
-
|
|
4373
|
+
], x(a, h), x(a, u), x(t, l), x(t, d);
|
|
4374
|
+
for (let k = 0; k < v.length; k += 1)
|
|
4375
|
+
v[k] && v[k].m(d, null);
|
|
4376
|
+
m || (b = [
|
|
4377
|
+
ge(s, "change", f),
|
|
4378
|
+
ge(s, "change", g)
|
|
4357
4379
|
], m = !0);
|
|
4358
4380
|
},
|
|
4359
|
-
p(
|
|
4360
|
-
if (e =
|
|
4381
|
+
p(C, P) {
|
|
4382
|
+
if (e = C, P[0] & /*$_, consentsCategories*/
|
|
4361
4383
|
65792 && i !== (i = /*$_*/
|
|
4362
4384
|
(e[16](`${/*category*/
|
|
4363
4385
|
e[61].categoryTagCode}__category`) || /*category*/
|
|
@@ -4368,75 +4390,79 @@ function zt(e) {
|
|
|
4368
4390
|
e[61].categoryTagCode
|
|
4369
4391
|
]), P[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription*/
|
|
4370
4392
|
602896) {
|
|
4371
|
-
_ =
|
|
4393
|
+
_ = ee(
|
|
4372
4394
|
/*playerConsents*/
|
|
4373
|
-
e[9].filter(
|
|
4395
|
+
e[9].filter(S)
|
|
4374
4396
|
);
|
|
4375
|
-
let
|
|
4376
|
-
for (
|
|
4377
|
-
const z =
|
|
4378
|
-
|
|
4397
|
+
let k;
|
|
4398
|
+
for (k = 0; k < _.length; k += 1) {
|
|
4399
|
+
const z = Nt(e, _, k);
|
|
4400
|
+
v[k] ? v[k].p(z, P) : (v[k] = It(z), v[k].c(), v[k].m(d, null));
|
|
4379
4401
|
}
|
|
4380
|
-
for (;
|
|
4381
|
-
|
|
4382
|
-
|
|
4402
|
+
for (; k < v.length; k += 1)
|
|
4403
|
+
v[k].d(1);
|
|
4404
|
+
v.length = _.length;
|
|
4383
4405
|
}
|
|
4384
4406
|
},
|
|
4385
|
-
d(
|
|
4386
|
-
|
|
4407
|
+
d(C) {
|
|
4408
|
+
C && L(t), $e(v, C), m = !1, Rt(b);
|
|
4387
4409
|
}
|
|
4388
4410
|
};
|
|
4389
4411
|
}
|
|
4390
|
-
function
|
|
4412
|
+
function Lt(e) {
|
|
4391
4413
|
let t, r, n, i, o;
|
|
4392
4414
|
return {
|
|
4393
4415
|
c() {
|
|
4394
4416
|
t = A("div"), r = A("circle-exclamation-icon"), n = q(), i = A("strong"), o = _e(
|
|
4395
4417
|
/*errorMessage*/
|
|
4396
4418
|
e[6]
|
|
4397
|
-
),
|
|
4419
|
+
), Y(r, "class", "svelte-ltb9q9"), E(i, "class", "ErrorMessage svelte-ltb9q9"), E(t, "class", "ConsentErrorContainer svelte-ltb9q9");
|
|
4398
4420
|
},
|
|
4399
4421
|
m(a, s) {
|
|
4400
|
-
|
|
4422
|
+
j(a, t, s), x(t, r), x(t, n), x(t, i), x(i, o);
|
|
4401
4423
|
},
|
|
4402
4424
|
p(a, s) {
|
|
4403
4425
|
s[0] & /*errorMessage*/
|
|
4404
|
-
64 &&
|
|
4426
|
+
64 && be(
|
|
4405
4427
|
o,
|
|
4406
4428
|
/*errorMessage*/
|
|
4407
4429
|
a[6]
|
|
4408
4430
|
);
|
|
4409
4431
|
},
|
|
4410
4432
|
d(a) {
|
|
4411
|
-
a &&
|
|
4433
|
+
a && L(t);
|
|
4412
4434
|
}
|
|
4413
4435
|
};
|
|
4414
4436
|
}
|
|
4415
|
-
function
|
|
4437
|
+
function Wi(e) {
|
|
4416
4438
|
let t, r;
|
|
4417
4439
|
function n(a, s) {
|
|
4418
4440
|
if (
|
|
4419
4441
|
/*isLoading*/
|
|
4420
4442
|
a[10]
|
|
4421
|
-
)
|
|
4443
|
+
)
|
|
4444
|
+
return Xi;
|
|
4422
4445
|
if (
|
|
4423
4446
|
/*fatalError*/
|
|
4424
4447
|
a[7]
|
|
4425
|
-
)
|
|
4448
|
+
)
|
|
4449
|
+
return Vi;
|
|
4426
4450
|
if (
|
|
4427
4451
|
/*session*/
|
|
4428
4452
|
a[0]
|
|
4429
|
-
)
|
|
4453
|
+
)
|
|
4454
|
+
return Fi;
|
|
4430
4455
|
if (!/*session*/
|
|
4431
|
-
a[0])
|
|
4456
|
+
a[0])
|
|
4457
|
+
return Gi;
|
|
4432
4458
|
}
|
|
4433
4459
|
let i = n(e), o = i && i(e);
|
|
4434
4460
|
return {
|
|
4435
4461
|
c() {
|
|
4436
|
-
t = A("div"), r = A("div"), o && o.c(),
|
|
4462
|
+
t = A("div"), r = A("div"), o && o.c(), E(r, "class", "ConsentsContainer svelte-ltb9q9"), E(t, "class", Wr("") + " svelte-ltb9q9");
|
|
4437
4463
|
},
|
|
4438
4464
|
m(a, s) {
|
|
4439
|
-
|
|
4465
|
+
j(a, t, s), x(t, r), o && o.m(r, null), e[32](r);
|
|
4440
4466
|
},
|
|
4441
4467
|
p(a, s) {
|
|
4442
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)));
|
|
@@ -4444,192 +4470,193 @@ function Vi(e) {
|
|
|
4444
4470
|
i: X,
|
|
4445
4471
|
o: X,
|
|
4446
4472
|
d(a) {
|
|
4447
|
-
a &&
|
|
4473
|
+
a && L(t), o && o.d(), e[32](null);
|
|
4448
4474
|
}
|
|
4449
4475
|
};
|
|
4450
4476
|
}
|
|
4451
|
-
function
|
|
4477
|
+
function Zi(e, t, r) {
|
|
4452
4478
|
let n;
|
|
4453
|
-
|
|
4454
|
-
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: h = "" } = t, { mbsource:
|
|
4479
|
+
Fr(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: m = "" } = t, { modalconsents: b = "false" } = t, f, g, S = !1, _ = !1, v = "", C = "", P = "", k = "", z = [], Z = [], O = [], le = !0, ye = !0, G = {}, Ee = {}, J = {}, U = {}, ce, ke, R = {
|
|
4455
4481
|
none: { key: "0", value: "None" },
|
|
4456
4482
|
accepted: { key: "1", value: "Accepted" },
|
|
4457
4483
|
expired: { key: "2", value: "Expired" },
|
|
4458
4484
|
denied: { key: "3", value: "Denied" },
|
|
4459
4485
|
suspended: { key: "4", value: "Suspended" }
|
|
4460
|
-
},
|
|
4461
|
-
Object.keys(
|
|
4462
|
-
|
|
4486
|
+
}, Ce = !1;
|
|
4487
|
+
Object.keys(Mt).forEach((c) => {
|
|
4488
|
+
xt(c, Mt[c]);
|
|
4463
4489
|
});
|
|
4464
|
-
const
|
|
4465
|
-
|
|
4466
|
-
},
|
|
4467
|
-
let
|
|
4468
|
-
fetch(
|
|
4469
|
-
Object.keys(
|
|
4470
|
-
|
|
4490
|
+
const gr = () => {
|
|
4491
|
+
Ri(l);
|
|
4492
|
+
}, pr = () => {
|
|
4493
|
+
let c = new URL(m);
|
|
4494
|
+
fetch(c.href).then((p) => p.json()).then((p) => {
|
|
4495
|
+
Object.keys(p).forEach((T) => {
|
|
4496
|
+
xt(T, p[T]);
|
|
4471
4497
|
});
|
|
4472
|
-
}).catch((
|
|
4473
|
-
console.log(
|
|
4498
|
+
}).catch((p) => {
|
|
4499
|
+
console.log(p);
|
|
4474
4500
|
});
|
|
4475
|
-
},
|
|
4476
|
-
i && (
|
|
4477
|
-
},
|
|
4478
|
-
|
|
4479
|
-
},
|
|
4501
|
+
}, fr = () => {
|
|
4502
|
+
i && (v = i, _ = !0), o && (C = o);
|
|
4503
|
+
}, Se = (c, p = !1) => {
|
|
4504
|
+
p ? r(7, k = c) : (kr(), r(6, P = c));
|
|
4505
|
+
}, ue = (c, p, T, y = !1) => de(this, null, function* () {
|
|
4480
4506
|
try {
|
|
4481
|
-
const
|
|
4482
|
-
if (!
|
|
4483
|
-
throw new Error(n(
|
|
4484
|
-
const I = yield
|
|
4485
|
-
return
|
|
4486
|
-
} catch (
|
|
4487
|
-
throw
|
|
4488
|
-
|
|
4507
|
+
const M = yield fetch(c, T);
|
|
4508
|
+
if (!M.ok)
|
|
4509
|
+
throw new Error(n(p));
|
|
4510
|
+
const I = yield M.json();
|
|
4511
|
+
return _ ? I : I.filter((F) => F.showOnRegister === !0);
|
|
4512
|
+
} catch (M) {
|
|
4513
|
+
throw Se(
|
|
4514
|
+
M instanceof TypeError ? n(p) : M.message,
|
|
4489
4515
|
y
|
|
4490
|
-
),
|
|
4516
|
+
), M;
|
|
4491
4517
|
}
|
|
4492
|
-
}),
|
|
4518
|
+
}), _r = () => de(this, null, function* () {
|
|
4493
4519
|
try {
|
|
4494
|
-
let
|
|
4495
|
-
if (
|
|
4496
|
-
let y = O.find((
|
|
4497
|
-
y || (y =
|
|
4520
|
+
let c = [], p = [];
|
|
4521
|
+
if (_ ? [c, p] = yield it() : c = yield it(), r(10, le = !1), Z = [...c], r(8, z = vr(Z).sort((T, y) => T.categoryTagCode.localeCompare(y.categoryTagCode))), r(11, G = yr(z)), Ee = W({}, G), r(9, O = [...p]), Z.forEach((T) => {
|
|
4522
|
+
let y = O.find((M) => M.tagCode === T.tagCode);
|
|
4523
|
+
y || (y = ct(W({}, T), {
|
|
4498
4524
|
status: R.denied.value
|
|
4499
|
-
}), O.push(y)), y.description =
|
|
4500
|
-
}),
|
|
4501
|
-
if (r(9, O = O.filter((
|
|
4502
|
-
|
|
4525
|
+
}), O.push(y)), y.description = T.description, y.orderNumber = T.orderNumber;
|
|
4526
|
+
}), b === "true") {
|
|
4527
|
+
if (r(9, O = O.filter((T) => T.status === R.expired.value)), O.length !== 0)
|
|
4528
|
+
return;
|
|
4529
|
+
Se(n("wrongModalConfig"), !0);
|
|
4503
4530
|
}
|
|
4504
|
-
|
|
4505
|
-
} catch (
|
|
4506
|
-
throw r(10,
|
|
4507
|
-
|
|
4531
|
+
Er();
|
|
4532
|
+
} catch (c) {
|
|
4533
|
+
throw r(10, le = !1), Se(
|
|
4534
|
+
c instanceof TypeError ? n("invalidUrl") : c.message,
|
|
4508
4535
|
!0
|
|
4509
|
-
),
|
|
4536
|
+
), c;
|
|
4510
4537
|
}
|
|
4511
|
-
}),
|
|
4512
|
-
const
|
|
4513
|
-
if (
|
|
4514
|
-
return yield
|
|
4515
|
-
const
|
|
4538
|
+
}), it = () => de(this, null, function* () {
|
|
4539
|
+
const c = new URL(`${a}/api/v1/gm/consents`);
|
|
4540
|
+
if (c.searchParams.append("Status", "Active"), !_)
|
|
4541
|
+
return yield ue(c.href, "fetchConsentsError", { method: "GET" }, !0);
|
|
4542
|
+
const p = new URL(`${a}/api/v1/gm/user-consents/${C}`);
|
|
4516
4543
|
return yield Promise.all([
|
|
4517
|
-
|
|
4518
|
-
|
|
4544
|
+
ue(c.href, "fetchConsentsError", { method: "GET" }, !0),
|
|
4545
|
+
ue(p.href, "fetchPlayerConsentsError", {
|
|
4519
4546
|
method: "GET",
|
|
4520
4547
|
headers: {
|
|
4521
|
-
"X-SessionId":
|
|
4548
|
+
"X-SessionId": v,
|
|
4522
4549
|
"Content-Type": "application/json"
|
|
4523
4550
|
}
|
|
4524
4551
|
})
|
|
4525
4552
|
]);
|
|
4526
|
-
}),
|
|
4527
|
-
|
|
4528
|
-
const
|
|
4553
|
+
}), br = () => {
|
|
4554
|
+
Ce = !1;
|
|
4555
|
+
const c = new URL(`${a}/api/v2/gm/legislation/consents`), p = {
|
|
4529
4556
|
"Content-Type": "application/json",
|
|
4530
4557
|
Accept: "application/json"
|
|
4531
|
-
},
|
|
4532
|
-
fetch(
|
|
4533
|
-
if (!
|
|
4534
|
-
if (
|
|
4558
|
+
}, T = { method: "GET", headers: p };
|
|
4559
|
+
fetch(c.href, T).then((y) => y.ok ? y.json() : (Ce = !0, y.json().then((M) => (console.error(M), xe(M))))).then((y) => {
|
|
4560
|
+
if (!Ce) {
|
|
4561
|
+
if (Z = y, localStorage.getItem("playerConsents")) {
|
|
4535
4562
|
try {
|
|
4536
4563
|
r(9, O = JSON.parse(localStorage.getItem("playerConsents")));
|
|
4537
|
-
} catch (
|
|
4538
|
-
return console.error(
|
|
4564
|
+
} catch (M) {
|
|
4565
|
+
return console.error(M), xe(M);
|
|
4539
4566
|
}
|
|
4540
4567
|
return;
|
|
4541
4568
|
}
|
|
4542
|
-
return r(9, O =
|
|
4543
|
-
id:
|
|
4569
|
+
return r(9, O = Z.map((M) => ({
|
|
4570
|
+
id: M.id,
|
|
4544
4571
|
status: R.denied.key,
|
|
4545
|
-
friendlyName:
|
|
4546
|
-
tagCode:
|
|
4572
|
+
friendlyName: M.friendlyName,
|
|
4573
|
+
tagCode: M.tagCode,
|
|
4547
4574
|
selected: null,
|
|
4548
|
-
mustAccept:
|
|
4575
|
+
mustAccept: M.mustAccept
|
|
4549
4576
|
}))), localStorage.setItem("playerConsents", JSON.stringify(O)), O;
|
|
4550
4577
|
}
|
|
4551
|
-
}).catch((y) => (console.error(y),
|
|
4552
|
-
r(10,
|
|
4578
|
+
}).catch((y) => (console.error(y), xe(y))).finally(() => {
|
|
4579
|
+
r(10, le = !1);
|
|
4553
4580
|
});
|
|
4554
|
-
},
|
|
4555
|
-
const
|
|
4556
|
-
return
|
|
4557
|
-
|
|
4558
|
-
}), Array.from(
|
|
4559
|
-
},
|
|
4560
|
-
const
|
|
4561
|
-
if (
|
|
4562
|
-
const
|
|
4563
|
-
(y,
|
|
4581
|
+
}, vr = (c) => {
|
|
4582
|
+
const p = /* @__PURE__ */ new Map();
|
|
4583
|
+
return c.forEach((T) => {
|
|
4584
|
+
p.has(T.category.categoryTagCode) || p.set(T.category.categoryTagCode, T.category);
|
|
4585
|
+
}), Array.from(p.values());
|
|
4586
|
+
}, yr = (c) => {
|
|
4587
|
+
const p = localStorage.getItem("categoryToggle" + C);
|
|
4588
|
+
if (p === null) {
|
|
4589
|
+
const T = c.reduce(
|
|
4590
|
+
(y, M) => (y[M.categoryTagCode] = !1, y),
|
|
4564
4591
|
{}
|
|
4565
4592
|
);
|
|
4566
|
-
return localStorage.setItem("categoryToggle" +
|
|
4593
|
+
return localStorage.setItem("categoryToggle" + C, JSON.stringify(T)), T;
|
|
4567
4594
|
} else
|
|
4568
|
-
return JSON.parse(
|
|
4569
|
-
},
|
|
4570
|
-
O.forEach((
|
|
4571
|
-
r(12,
|
|
4572
|
-
}), r(13, U = W({},
|
|
4573
|
-
},
|
|
4574
|
-
r(13, U = W({},
|
|
4575
|
-
},
|
|
4576
|
-
if (!
|
|
4595
|
+
return JSON.parse(p);
|
|
4596
|
+
}, Er = () => {
|
|
4597
|
+
O.forEach((c) => {
|
|
4598
|
+
r(12, J[c.tagCode] = c.status === R.accepted.value, J);
|
|
4599
|
+
}), r(13, U = W({}, J));
|
|
4600
|
+
}, kr = () => {
|
|
4601
|
+
r(13, U = W({}, J)), r(11, G = W({}, Ee));
|
|
4602
|
+
}, Cr = () => de(this, null, function* () {
|
|
4603
|
+
if (!ye)
|
|
4577
4604
|
return;
|
|
4578
|
-
|
|
4579
|
-
const
|
|
4605
|
+
ye = !1;
|
|
4606
|
+
const c = [], p = [];
|
|
4580
4607
|
if (Object.keys(U).forEach((y) => {
|
|
4581
|
-
const
|
|
4582
|
-
U[y] !==
|
|
4608
|
+
const M = O.find((I) => I.tagCode === y);
|
|
4609
|
+
U[y] !== J[y] && (M ? c.push({
|
|
4583
4610
|
tagCode: y,
|
|
4584
4611
|
status: U[y] ? R.accepted.value : R.denied.value
|
|
4585
|
-
}) :
|
|
4612
|
+
}) : p.push({
|
|
4586
4613
|
tagCode: y,
|
|
4587
4614
|
status: U[y] ? R.accepted.value : R.denied.value
|
|
4588
4615
|
}));
|
|
4589
|
-
}), !
|
|
4590
|
-
localStorage.setItem("categoryToggle" +
|
|
4616
|
+
}), !_) {
|
|
4617
|
+
localStorage.setItem("categoryToggle" + C, JSON.stringify(G)), Ee = W({}, G), window.postMessage(
|
|
4591
4618
|
{
|
|
4592
4619
|
type: "NewPlayerConsentData",
|
|
4593
|
-
data: JSON.stringify(
|
|
4620
|
+
data: JSON.stringify(p)
|
|
4594
4621
|
},
|
|
4595
4622
|
window.location.href
|
|
4596
|
-
),
|
|
4623
|
+
), ye = !0;
|
|
4597
4624
|
return;
|
|
4598
4625
|
}
|
|
4599
|
-
const
|
|
4626
|
+
const T = new URL(`${a}/api/v1/gm/user-consents/${C}`);
|
|
4600
4627
|
try {
|
|
4601
4628
|
const y = yield Promise.allSettled([
|
|
4602
|
-
|
|
4629
|
+
p.length > 0 && ue(T.href, "updateConsentsError", {
|
|
4603
4630
|
method: "POST",
|
|
4604
4631
|
headers: {
|
|
4605
|
-
"X-SessionId":
|
|
4632
|
+
"X-SessionId": v,
|
|
4606
4633
|
"Content-Type": "application/json"
|
|
4607
4634
|
},
|
|
4608
|
-
body: JSON.stringify({ userConsents:
|
|
4635
|
+
body: JSON.stringify({ userConsents: p })
|
|
4609
4636
|
}),
|
|
4610
|
-
|
|
4637
|
+
c.length > 0 && ue(T.href, "updateConsentsError", {
|
|
4611
4638
|
method: "PATCH",
|
|
4612
4639
|
headers: {
|
|
4613
|
-
"X-SessionId":
|
|
4640
|
+
"X-SessionId": v,
|
|
4614
4641
|
"Content-Type": "application/json"
|
|
4615
4642
|
},
|
|
4616
|
-
body: JSON.stringify({ userConsents:
|
|
4643
|
+
body: JSON.stringify({ userConsents: c })
|
|
4617
4644
|
})
|
|
4618
4645
|
]);
|
|
4619
|
-
y.forEach((
|
|
4620
|
-
if (
|
|
4621
|
-
const F = I <
|
|
4622
|
-
r(13, U[F.tagCode] =
|
|
4646
|
+
y.forEach((M, I) => {
|
|
4647
|
+
if (M.status === "rejected" || M.value.ok === !1) {
|
|
4648
|
+
const F = I < p.length ? p[I] : c[I - p.length];
|
|
4649
|
+
r(13, U[F.tagCode] = J[F.tagCode], U);
|
|
4623
4650
|
}
|
|
4624
|
-
}), y.every((
|
|
4651
|
+
}), y.every((M) => M.status === "fulfilled") && (localStorage.setItem("categoryToggle" + C, JSON.stringify(G)), Ee = W({}, G), window.postMessage(
|
|
4625
4652
|
{
|
|
4626
4653
|
type: "PlayerConsentUpdated",
|
|
4627
4654
|
success: !0
|
|
4628
4655
|
},
|
|
4629
4656
|
window.location.href
|
|
4630
|
-
), r(12,
|
|
4657
|
+
), r(12, J = W({}, U)));
|
|
4631
4658
|
} catch (y) {
|
|
4632
|
-
|
|
4659
|
+
Se(y instanceof TypeError ? n("saveChangesError") : y.message), window.postMessage(
|
|
4633
4660
|
{
|
|
4634
4661
|
type: "PlayerConsentUpdated",
|
|
4635
4662
|
success: !1
|
|
@@ -4637,148 +4664,149 @@ function Xi(e, t, r) {
|
|
|
4637
4664
|
window.location.href
|
|
4638
4665
|
);
|
|
4639
4666
|
} finally {
|
|
4640
|
-
|
|
4667
|
+
ye = !0, r(14, ce = !1);
|
|
4641
4668
|
}
|
|
4642
|
-
}),
|
|
4643
|
-
const
|
|
4669
|
+
}), Sr = (c) => {
|
|
4670
|
+
const p = new URL(`${a}/api/v2/gm/legislation/consents`), T = {
|
|
4644
4671
|
"Content-Type": "application/json",
|
|
4645
4672
|
Accept: "application/json"
|
|
4646
4673
|
}, y = {
|
|
4647
4674
|
playerConsents: O,
|
|
4648
|
-
registrationId:
|
|
4649
|
-
},
|
|
4675
|
+
registrationId: c
|
|
4676
|
+
}, M = {
|
|
4650
4677
|
method: "POST",
|
|
4651
4678
|
body: JSON.stringify(y),
|
|
4652
|
-
headers:
|
|
4679
|
+
headers: T
|
|
4653
4680
|
};
|
|
4654
|
-
fetch(
|
|
4655
|
-
I.ok || (
|
|
4656
|
-
}).catch((I) => (console.error(I),
|
|
4657
|
-
r(10,
|
|
4681
|
+
fetch(p.href, M).then((I) => {
|
|
4682
|
+
I.ok || (Ce = !0);
|
|
4683
|
+
}).catch((I) => (console.error(I), xe(I))).finally(() => {
|
|
4684
|
+
r(10, le = !1);
|
|
4658
4685
|
});
|
|
4659
|
-
},
|
|
4660
|
-
O.filter((
|
|
4661
|
-
|
|
4662
|
-
}), r(14,
|
|
4663
|
-
},
|
|
4664
|
-
const y = O.find((F) => F.id ===
|
|
4686
|
+
}, ot = (c) => {
|
|
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] = G[c] || !1, U);
|
|
4689
|
+
}), r(14, ce = at());
|
|
4690
|
+
}, Ie = (c, p, T) => {
|
|
4691
|
+
const y = O.find((F) => F.id === T), M = p ? "value" : "key";
|
|
4665
4692
|
let I;
|
|
4666
|
-
if (!
|
|
4667
|
-
const F = Array.from(
|
|
4668
|
-
for (const
|
|
4669
|
-
if (I = Array.from(
|
|
4693
|
+
if (!p && y.mustAccept) {
|
|
4694
|
+
const F = Array.from(ke.children);
|
|
4695
|
+
for (const he of F)
|
|
4696
|
+
if (I = Array.from(he.children).find((Or) => Or.getAttribute("id") === `checkBoxError__${y.tagCode}`), I)
|
|
4697
|
+
break;
|
|
4670
4698
|
}
|
|
4671
|
-
if (y.status === R.accepted[
|
|
4699
|
+
if (y.status === R.accepted[M] ? (y.status = R.denied[M], I && (I.innerHTML = n("requiredError"))) : (y.status = R.accepted[M], I && (I.innerHTML = "")), p) {
|
|
4672
4700
|
r(13, U[y.tagCode] = !U[y.tagCode], U);
|
|
4673
|
-
const F = O.filter((
|
|
4674
|
-
r(11, G[
|
|
4701
|
+
const F = O.filter((he) => he.category.categoryTagCode === p.categoryTagCode).every((he) => he.status !== R.denied.value);
|
|
4702
|
+
r(11, G[p.categoryTagCode] = F, G);
|
|
4675
4703
|
}
|
|
4676
|
-
|
|
4677
|
-
},
|
|
4678
|
-
let
|
|
4704
|
+
xr();
|
|
4705
|
+
}, xr = ((c, p) => {
|
|
4706
|
+
let T;
|
|
4679
4707
|
return function(...y) {
|
|
4680
|
-
const
|
|
4681
|
-
clearTimeout(
|
|
4708
|
+
const M = this;
|
|
4709
|
+
clearTimeout(T), T = setTimeout(
|
|
4682
4710
|
() => {
|
|
4683
|
-
|
|
4711
|
+
c.apply(M, y);
|
|
4684
4712
|
},
|
|
4685
|
-
|
|
4713
|
+
p
|
|
4686
4714
|
);
|
|
4687
4715
|
};
|
|
4688
|
-
})(() =>
|
|
4689
|
-
r(14,
|
|
4690
|
-
},
|
|
4716
|
+
})(() => Mr(), 500), Mr = () => {
|
|
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((T) => p.tagCode === T.tagCode && T.mustAccept && (p.status === R.denied.key || p.status === R.denied.value))).length === 0, xe = (c) => {
|
|
4691
4719
|
window.postMessage(
|
|
4692
4720
|
{
|
|
4693
4721
|
type: "WidgetNotification",
|
|
4694
|
-
data: { type: "error", message:
|
|
4722
|
+
data: { type: "error", message: c }
|
|
4695
4723
|
},
|
|
4696
4724
|
window.location.href
|
|
4697
4725
|
);
|
|
4698
|
-
},
|
|
4699
|
-
|
|
4726
|
+
}, Tr = (c) => {
|
|
4727
|
+
c.data && c.data.type !== "setUpPlayerConsents" || Sr(c.data.registerid);
|
|
4700
4728
|
};
|
|
4701
|
-
|
|
4729
|
+
Vr(() => {
|
|
4702
4730
|
setTimeout(
|
|
4703
4731
|
() => {
|
|
4704
|
-
r(25,
|
|
4732
|
+
r(25, S = !0);
|
|
4705
4733
|
},
|
|
4706
4734
|
50
|
|
4707
4735
|
);
|
|
4708
|
-
const
|
|
4709
|
-
return window.addEventListener("message",
|
|
4710
|
-
window.removeEventListener("message",
|
|
4736
|
+
const c = (p) => Tr(p);
|
|
4737
|
+
return window.addEventListener("message", c), () => {
|
|
4738
|
+
window.emMessageBus && g && g.unsubscribe(), window.removeEventListener("message", c);
|
|
4711
4739
|
};
|
|
4712
4740
|
});
|
|
4713
|
-
function
|
|
4714
|
-
G[
|
|
4741
|
+
function wr(c) {
|
|
4742
|
+
G[c.categoryTagCode] = this.checked, r(11, G);
|
|
4715
4743
|
}
|
|
4716
|
-
const
|
|
4717
|
-
function
|
|
4718
|
-
|
|
4719
|
-
|
|
4744
|
+
const Nr = (c) => ot(c.categoryTagCode), Ar = (c, p) => p.category.categoryTagCode === c.categoryTagCode, Hr = (c, p) => Ie(p, c.category, c.id), Pr = (c, p) => Ie(p, null, c.id);
|
|
4745
|
+
function Br(c) {
|
|
4746
|
+
ht[c ? "unshift" : "push"](() => {
|
|
4747
|
+
ke = c, r(15, ke);
|
|
4720
4748
|
});
|
|
4721
4749
|
}
|
|
4722
|
-
function
|
|
4723
|
-
|
|
4724
|
-
f =
|
|
4750
|
+
function zr(c) {
|
|
4751
|
+
ht[c ? "unshift" : "push"](() => {
|
|
4752
|
+
f = c, r(5, f);
|
|
4725
4753
|
});
|
|
4726
4754
|
}
|
|
4727
|
-
return e.$$set = (
|
|
4728
|
-
"session" in
|
|
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, m = c.translationurl), "modalconsents" in c && r(24, b = c.modalconsents);
|
|
4729
4757
|
}, e.$$.update = () => {
|
|
4730
4758
|
e.$$.dirty[0] & /*isMounted, session*/
|
|
4731
|
-
33554433 &&
|
|
4732
|
-
1 && (i ||
|
|
4733
|
-
34 && s && f &&
|
|
4734
|
-
36 && h && f && Xr(f, h), e.$$.dirty[0] & /*
|
|
4735
|
-
40 &&
|
|
4736
|
-
4194304 &&
|
|
4737
|
-
8388608 && m &&
|
|
4759
|
+
33554433 && S && i && (fr(), _r()), e.$$.dirty[0] & /*session*/
|
|
4760
|
+
1 && (i || br()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4761
|
+
34 && s && f && Zr(f, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4762
|
+
36 && h && f && Xr(f, h), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4763
|
+
40 && f && Jr(f, `${u}.Style`), e.$$.dirty[0] & /*lang*/
|
|
4764
|
+
4194304 && l && gr(), e.$$.dirty[0] & /*translationurl*/
|
|
4765
|
+
8388608 && m && pr();
|
|
4738
4766
|
}, [
|
|
4739
4767
|
i,
|
|
4740
4768
|
s,
|
|
4741
4769
|
h,
|
|
4742
|
-
|
|
4770
|
+
u,
|
|
4743
4771
|
d,
|
|
4744
4772
|
f,
|
|
4745
|
-
x,
|
|
4746
4773
|
P,
|
|
4747
|
-
|
|
4774
|
+
k,
|
|
4775
|
+
z,
|
|
4748
4776
|
O,
|
|
4749
|
-
|
|
4777
|
+
le,
|
|
4750
4778
|
G,
|
|
4751
|
-
|
|
4779
|
+
J,
|
|
4752
4780
|
U,
|
|
4753
|
-
|
|
4754
|
-
|
|
4781
|
+
ce,
|
|
4782
|
+
ke,
|
|
4755
4783
|
n,
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4784
|
+
Cr,
|
|
4785
|
+
ot,
|
|
4786
|
+
Ie,
|
|
4759
4787
|
o,
|
|
4760
4788
|
a,
|
|
4761
|
-
|
|
4789
|
+
l,
|
|
4762
4790
|
m,
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
xr,
|
|
4766
|
-
Tr,
|
|
4767
|
-
Mr,
|
|
4791
|
+
b,
|
|
4792
|
+
S,
|
|
4768
4793
|
wr,
|
|
4769
4794
|
Nr,
|
|
4770
4795
|
Ar,
|
|
4771
|
-
Hr
|
|
4796
|
+
Hr,
|
|
4797
|
+
Pr,
|
|
4798
|
+
Br,
|
|
4799
|
+
zr
|
|
4772
4800
|
];
|
|
4773
4801
|
}
|
|
4774
|
-
class
|
|
4802
|
+
class Ji extends Dt {
|
|
4775
4803
|
constructor(t) {
|
|
4776
|
-
super(),
|
|
4804
|
+
super(), qt(
|
|
4777
4805
|
this,
|
|
4778
4806
|
t,
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4807
|
+
Zi,
|
|
4808
|
+
Wi,
|
|
4809
|
+
Ke,
|
|
4782
4810
|
{
|
|
4783
4811
|
session: 0,
|
|
4784
4812
|
userid: 20,
|
|
@@ -4791,7 +4819,7 @@ class Wi extends Lt {
|
|
|
4791
4819
|
translationurl: 23,
|
|
4792
4820
|
modalconsents: 24
|
|
4793
4821
|
},
|
|
4794
|
-
|
|
4822
|
+
qi,
|
|
4795
4823
|
[-1, -1, -1]
|
|
4796
4824
|
);
|
|
4797
4825
|
}
|
|
@@ -4856,7 +4884,7 @@ class Wi extends Lt {
|
|
|
4856
4884
|
this.$$set({ modalconsents: t }), V();
|
|
4857
4885
|
}
|
|
4858
4886
|
}
|
|
4859
|
-
|
|
4887
|
+
Ut(Ji, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
|
|
4860
4888
|
export {
|
|
4861
|
-
|
|
4889
|
+
Ji as default
|
|
4862
4890
|
};
|