@everymatrix/player-consents 1.76.3 → 1.76.5

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