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