@everymatrix/player-consents 1.59.3 → 1.60.1

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