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