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