@everymatrix/general-registration-hsl 0.25.48 → 0.25.50

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,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var tn = Object.defineProperty, rn = Object.defineProperties;
4
- var nn = Object.getOwnPropertyDescriptors;
5
- var St = Object.getOwnPropertySymbols;
6
- var on = Object.prototype.hasOwnProperty, an = Object.prototype.propertyIsEnumerable;
7
- var Ze = (e, t, r) => t in e ? tn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, W = (e, t) => {
3
+ var rn = Object.defineProperty, nn = Object.defineProperties;
4
+ var on = Object.getOwnPropertyDescriptors;
5
+ var wt = Object.getOwnPropertySymbols;
6
+ var an = Object.prototype.hasOwnProperty, sn = Object.prototype.propertyIsEnumerable;
7
+ var Je = (e, t, r) => t in e ? rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, W = (e, t) => {
8
8
  for (var r in t || (t = {}))
9
- on.call(t, r) && Ze(e, r, t[r]);
10
- if (St)
11
- for (var r of St(t))
12
- an.call(t, r) && Ze(e, r, t[r]);
9
+ an.call(t, r) && Je(e, r, t[r]);
10
+ if (wt)
11
+ for (var r of wt(t))
12
+ sn.call(t, r) && Je(e, r, t[r]);
13
13
  return e;
14
- }, Je = (e, t) => rn(e, nn(t));
15
- var U = (e, t, r) => (Ze(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ }, Qe = (e, t) => nn(e, on(t));
15
+ var U = (e, t, r) => (Je(e, typeof t != "symbol" ? t + "" : t, r), r);
16
16
  var re = (e, t, r) => new Promise((n, i) => {
17
17
  var o = (c) => {
18
18
  try {
@@ -31,25 +31,25 @@ var re = (e, t, r) => new Promise((n, i) => {
31
31
  });
32
32
  function $() {
33
33
  }
34
- function er(e) {
34
+ function tr(e) {
35
35
  return e();
36
36
  }
37
- function xt() {
37
+ function Tt() {
38
38
  return /* @__PURE__ */ Object.create(null);
39
39
  }
40
40
  function me(e) {
41
- e.forEach(er);
41
+ e.forEach(tr);
42
42
  }
43
- function gt(e) {
43
+ function yt(e) {
44
44
  return typeof e == "function";
45
45
  }
46
- function _t(e, t) {
46
+ function vt(e, t) {
47
47
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
48
48
  }
49
- function sn(e) {
49
+ function ln(e) {
50
50
  return Object.keys(e).length === 0;
51
51
  }
52
- function tr(e, ...t) {
52
+ function rr(e, ...t) {
53
53
  if (e == null) {
54
54
  for (const n of t)
55
55
  n(void 0);
@@ -58,20 +58,20 @@ function tr(e, ...t) {
58
58
  const r = e.subscribe(...t);
59
59
  return r.unsubscribe ? () => r.unsubscribe() : r;
60
60
  }
61
- function ln(e, t, r) {
62
- e.$$.on_destroy.push(tr(t, r));
61
+ function cn(e, t, r) {
62
+ e.$$.on_destroy.push(rr(t, r));
63
63
  }
64
- function x(e, t) {
64
+ function S(e, t) {
65
65
  e.appendChild(t);
66
66
  }
67
- function cn(e, t, r) {
68
- const n = un(e);
67
+ function un(e, t, r) {
68
+ const n = hn(e);
69
69
  if (!n.getElementById(t)) {
70
70
  const i = T("style");
71
- i.id = t, i.textContent = r, hn(n, i);
71
+ i.id = t, i.textContent = r, dn(n, i);
72
72
  }
73
73
  }
74
- function un(e) {
74
+ function hn(e) {
75
75
  if (!e)
76
76
  return document;
77
77
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -81,56 +81,56 @@ function un(e) {
81
81
  t
82
82
  ) : e.ownerDocument;
83
83
  }
84
- function hn(e, t) {
85
- return x(
84
+ function dn(e, t) {
85
+ return S(
86
86
  /** @type {Document} */
87
87
  e.head || e,
88
88
  t
89
89
  ), t.sheet;
90
90
  }
91
- function L(e, t, r) {
91
+ function z(e, t, r) {
92
92
  e.insertBefore(t, r || null);
93
93
  }
94
94
  function O(e) {
95
95
  e.parentNode && e.parentNode.removeChild(e);
96
96
  }
97
- function yt(e, t) {
97
+ function bt(e, t) {
98
98
  for (let r = 0; r < e.length; r += 1)
99
99
  e[r] && e[r].d(t);
100
100
  }
101
101
  function T(e) {
102
102
  return document.createElement(e);
103
103
  }
104
- function it(e) {
104
+ function at(e) {
105
105
  return document.createElementNS("http://www.w3.org/2000/svg", e);
106
106
  }
107
- function ee(e) {
107
+ function K(e) {
108
108
  return document.createTextNode(e);
109
109
  }
110
110
  function F() {
111
- return ee(" ");
111
+ return K(" ");
112
112
  }
113
- function dn() {
114
- return ee("");
113
+ function mn() {
114
+ return K("");
115
115
  }
116
- function Ce(e, t, r, n) {
116
+ function Se(e, t, r, n) {
117
117
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
118
118
  }
119
119
  function k(e, t, r) {
120
120
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
121
121
  }
122
- function K(e, t, r) {
122
+ function Y(e, t, r) {
123
123
  const n = t.toLowerCase();
124
124
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : k(e, t, r);
125
125
  }
126
- function mn(e) {
126
+ function fn(e) {
127
127
  return Array.from(e.childNodes);
128
128
  }
129
- function Te(e, t) {
129
+ function Me(e, t) {
130
130
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
131
131
  t);
132
132
  }
133
- class rr {
133
+ class nr {
134
134
  constructor(t = !1) {
135
135
  /**
136
136
  * @private
@@ -161,7 +161,7 @@ class rr {
161
161
  * @returns {void}
162
162
  */
163
163
  m(t, r, n = null) {
164
- this.e || (this.is_svg ? this.e = it(
164
+ this.e || (this.is_svg ? this.e = at(
165
165
  /** @type {keyof SVGElementTagNameMap} */
166
166
  r.nodeName
167
167
  ) : this.e = T(
@@ -185,7 +185,7 @@ class rr {
185
185
  * @returns {void} */
186
186
  i(t) {
187
187
  for (let r = 0; r < this.n.length; r += 1)
188
- L(this.t, this.n[r], t);
188
+ z(this.t, this.n[r], t);
189
189
  }
190
190
  /**
191
191
  * @param {string} html
@@ -200,7 +200,7 @@ class rr {
200
200
  this.n.forEach(O);
201
201
  }
202
202
  }
203
- function fn(e) {
203
+ function pn(e) {
204
204
  const t = {};
205
205
  return e.childNodes.forEach(
206
206
  /** @param {Element} node */
@@ -209,90 +209,90 @@ function fn(e) {
209
209
  }
210
210
  ), t;
211
211
  }
212
- let Se;
213
- function Ee(e) {
214
- Se = e;
212
+ let xe;
213
+ function Ce(e) {
214
+ xe = e;
215
215
  }
216
- function pn() {
217
- if (!Se)
216
+ function gn() {
217
+ if (!xe)
218
218
  throw new Error("Function called outside component initialization");
219
- return Se;
219
+ return xe;
220
220
  }
221
- function gn(e) {
222
- pn().$$.on_mount.push(e);
221
+ function _n(e) {
222
+ gn().$$.on_mount.push(e);
223
223
  }
224
- const oe = [], Re = [];
224
+ const oe = [], Ue = [];
225
225
  let se = [];
226
- const wt = [], _n = /* @__PURE__ */ Promise.resolve();
227
- let ot = !1;
228
- function yn() {
229
- ot || (ot = !0, _n.then(X));
226
+ const Mt = [], yn = /* @__PURE__ */ Promise.resolve();
227
+ let st = !1;
228
+ function vn() {
229
+ st || (st = !0, yn.then(X));
230
230
  }
231
- function at(e) {
231
+ function lt(e) {
232
232
  se.push(e);
233
233
  }
234
- const Qe = /* @__PURE__ */ new Set();
234
+ const Ye = /* @__PURE__ */ new Set();
235
235
  let ne = 0;
236
236
  function X() {
237
237
  if (ne !== 0)
238
238
  return;
239
- const e = Se;
239
+ const e = xe;
240
240
  do {
241
241
  try {
242
242
  for (; ne < oe.length; ) {
243
243
  const t = oe[ne];
244
- ne++, Ee(t), vn(t.$$);
244
+ ne++, Ce(t), bn(t.$$);
245
245
  }
246
246
  } catch (t) {
247
247
  throw oe.length = 0, ne = 0, t;
248
248
  }
249
- for (Ee(null), oe.length = 0, ne = 0; Re.length; )
250
- Re.pop()();
249
+ for (Ce(null), oe.length = 0, ne = 0; Ue.length; )
250
+ Ue.pop()();
251
251
  for (let t = 0; t < se.length; t += 1) {
252
252
  const r = se[t];
253
- Qe.has(r) || (Qe.add(r), r());
253
+ Ye.has(r) || (Ye.add(r), r());
254
254
  }
255
255
  se.length = 0;
256
256
  } while (oe.length);
257
- for (; wt.length; )
258
- wt.pop()();
259
- ot = !1, Qe.clear(), Ee(e);
257
+ for (; Mt.length; )
258
+ Mt.pop()();
259
+ st = !1, Ye.clear(), Ce(e);
260
260
  }
261
- function vn(e) {
261
+ function bn(e) {
262
262
  if (e.fragment !== null) {
263
263
  e.update(), me(e.before_update);
264
264
  const t = e.dirty;
265
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(at);
265
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(lt);
266
266
  }
267
267
  }
268
- function bn(e) {
268
+ function kn(e) {
269
269
  const t = [], r = [];
270
270
  se.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), se = t;
271
271
  }
272
- const kn = /* @__PURE__ */ new Set();
273
- function En(e, t) {
274
- e && e.i && (kn.delete(e), e.i(t));
272
+ const En = /* @__PURE__ */ new Set();
273
+ function Cn(e, t) {
274
+ e && e.i && (En.delete(e), e.i(t));
275
275
  }
276
276
  function le(e) {
277
277
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
278
278
  }
279
- function Cn(e, t, r) {
279
+ function Sn(e, t, r) {
280
280
  const { fragment: n, after_update: i } = e.$$;
281
- n && n.m(t, r), at(() => {
282
- const o = e.$$.on_mount.map(er).filter(gt);
281
+ n && n.m(t, r), lt(() => {
282
+ const o = e.$$.on_mount.map(tr).filter(yt);
283
283
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : me(o), e.$$.on_mount = [];
284
- }), i.forEach(at);
284
+ }), i.forEach(lt);
285
285
  }
286
- function Sn(e, t) {
286
+ function xn(e, t) {
287
287
  const r = e.$$;
288
- r.fragment !== null && (bn(r.after_update), me(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
288
+ r.fragment !== null && (kn(r.after_update), me(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
289
289
  }
290
- function xn(e, t) {
291
- e.$$.dirty[0] === -1 && (oe.push(e), yn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
290
+ function wn(e, t) {
291
+ e.$$.dirty[0] === -1 && (oe.push(e), vn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
292
292
  }
293
- function nr(e, t, r, n, i, o, a = null, s = [-1]) {
294
- const c = Se;
295
- Ee(e);
293
+ function ir(e, t, r, n, i, o, a = null, s = [-1]) {
294
+ const c = xe;
295
+ Ce(e);
296
296
  const l = e.$$ = {
297
297
  fragment: null,
298
298
  ctx: [],
@@ -300,7 +300,7 @@ function nr(e, t, r, n, i, o, a = null, s = [-1]) {
300
300
  props: o,
301
301
  update: $,
302
302
  not_equal: i,
303
- bound: xt(),
303
+ bound: Tt(),
304
304
  // lifecycle
305
305
  on_mount: [],
306
306
  on_destroy: [],
@@ -309,7 +309,7 @@ function nr(e, t, r, n, i, o, a = null, s = [-1]) {
309
309
  after_update: [],
310
310
  context: new Map(t.context || (c ? c.$$.context : [])),
311
311
  // everything else
312
- callbacks: xt(),
312
+ callbacks: Tt(),
313
313
  dirty: s,
314
314
  skip_bound: !1,
315
315
  root: t.target || c.$$.root
@@ -318,19 +318,19 @@ function nr(e, t, r, n, i, o, a = null, s = [-1]) {
318
318
  let u = !1;
319
319
  if (l.ctx = r ? r(e, t.props || {}, (d, m, ...y) => {
320
320
  const g = y.length ? y[0] : m;
321
- return l.ctx && i(l.ctx[d], l.ctx[d] = g) && (!l.skip_bound && l.bound[d] && l.bound[d](g), u && xn(e, d)), m;
321
+ return l.ctx && i(l.ctx[d], l.ctx[d] = g) && (!l.skip_bound && l.bound[d] && l.bound[d](g), u && wn(e, d)), m;
322
322
  }) : [], l.update(), u = !0, me(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
323
323
  if (t.hydrate) {
324
- const d = mn(t.target);
324
+ const d = fn(t.target);
325
325
  l.fragment && l.fragment.l(d), d.forEach(O);
326
326
  } else
327
327
  l.fragment && l.fragment.c();
328
- t.intro && En(e.$$.fragment), Cn(e, t.target, t.anchor), X();
328
+ t.intro && Cn(e.$$.fragment), Sn(e, t.target, t.anchor), X();
329
329
  }
330
- Ee(c);
330
+ Ce(c);
331
331
  }
332
- let ir;
333
- typeof HTMLElement == "function" && (ir = class extends HTMLElement {
332
+ let or;
333
+ typeof HTMLElement == "function" && (or = class extends HTMLElement {
334
334
  constructor(t, r, n) {
335
335
  super();
336
336
  /** The Svelte component constructor */
@@ -381,7 +381,7 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
381
381
  * @param {HTMLElement} [anchor]
382
382
  */
383
383
  m: function(l, u) {
384
- L(l, a, u);
384
+ z(l, a, u);
385
385
  },
386
386
  d: function(l) {
387
387
  l && O(a);
@@ -391,7 +391,7 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
391
391
  };
392
392
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
393
393
  return;
394
- const r = {}, n = fn(this);
394
+ const r = {}, n = pn(this);
395
395
  for (const o of this.$$s)
396
396
  o in n && (r[o] = [t(o)]);
397
397
  for (const o of this.attributes) {
@@ -402,7 +402,7 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
402
402
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
403
403
  this.$$c = new this.$$ctor({
404
404
  target: this.shadowRoot || this,
405
- props: Je(W({}, this.$$d), {
405
+ props: Qe(W({}, this.$$d), {
406
406
  $$slots: r,
407
407
  $$scope: {
408
408
  ctx: []
@@ -480,8 +480,8 @@ function Le(e, t, r, n) {
480
480
  return t;
481
481
  }
482
482
  }
483
- function or(e, t, r, n, i, o) {
484
- let a = class extends ir {
483
+ function ar(e, t, r, n, i, o) {
484
+ let a = class extends or {
485
485
  constructor() {
486
486
  super(e, r, i), this.$$p_d = t;
487
487
  }
@@ -511,7 +511,7 @@ function or(e, t, r, n, i, o) {
511
511
  }), e.element = /** @type {any} */
512
512
  a, a;
513
513
  }
514
- class ar {
514
+ class sr {
515
515
  constructor() {
516
516
  /**
517
517
  * ### PRIVATE API
@@ -532,7 +532,7 @@ class ar {
532
532
  }
533
533
  /** @returns {void} */
534
534
  $destroy() {
535
- Sn(this, 1), this.$destroy = $;
535
+ xn(this, 1), this.$destroy = $;
536
536
  }
537
537
  /**
538
538
  * @template {Extract<keyof Events, string>} K
@@ -541,7 +541,7 @@ class ar {
541
541
  * @returns {() => void}
542
542
  */
543
543
  $on(t, r) {
544
- if (!gt(r))
544
+ if (!yt(r))
545
545
  return $;
546
546
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
547
547
  return n.push(r), () => {
@@ -554,19 +554,28 @@ class ar {
554
554
  * @returns {void}
555
555
  */
556
556
  $set(t) {
557
- this.$$set && !sn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
557
+ this.$$set && !ln(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
558
+ }
559
+ }
560
+ const Tn = "4";
561
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Tn);
562
+ function Mn(e, t, r, n = !1) {
563
+ if (window.emMessageBus) {
564
+ const i = n ? (o) => {
565
+ !o || typeof o != "object" || Array.isArray(o) || Object.keys(o).forEach((a) => r(a, o[a]));
566
+ } : r;
567
+ t = window.emMessageBus.subscribe(e, i);
558
568
  }
569
+ return t;
559
570
  }
560
- const wn = "4";
561
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wn);
562
571
  const ae = "__WIDGET_GLOBAL_STYLE_CACHE__";
563
- function Tn(e, t) {
572
+ function Nn(e, t) {
564
573
  if (e) {
565
574
  const r = document.createElement("style");
566
575
  r.innerHTML = t, e.appendChild(r);
567
576
  }
568
577
  }
569
- function Mn(e, t) {
578
+ function An(e, t) {
570
579
  if (!e || !t)
571
580
  return;
572
581
  const r = new URL(t);
@@ -577,12 +586,12 @@ function Mn(e, t) {
577
586
  console.error("There was an error while trying to load client styling from URL", n);
578
587
  });
579
588
  }
580
- function Nn(e, t, r, n = !1) {
589
+ function Hn(e, t, r, n = !1) {
581
590
  if (!window.emMessageBus)
582
591
  return;
583
592
  if (!("adoptedStyleSheets" in Document.prototype) || !n)
584
- return r = An(e, t), r;
585
- window[ae] || (window[ae] = {}), r = Hn(e, t);
593
+ return r = Pn(e, t), r;
594
+ window[ae] || (window[ae] = {}), r = Bn(e, t);
586
595
  const o = r.unsubscribe.bind(r), a = () => {
587
596
  if (window[ae][t]) {
588
597
  const s = window[ae][t];
@@ -592,13 +601,13 @@ function Nn(e, t, r, n = !1) {
592
601
  };
593
602
  return r.unsubscribe = a, r;
594
603
  }
595
- function An(e, t) {
604
+ function Pn(e, t) {
596
605
  const r = document.createElement("style");
597
606
  return window.emMessageBus.subscribe(t, (n) => {
598
607
  e && (r.innerHTML = n, e.appendChild(r));
599
608
  });
600
609
  }
601
- function Hn(e, t) {
610
+ function Bn(e, t) {
602
611
  return window.emMessageBus.subscribe(t, (r) => {
603
612
  if (!e)
604
613
  return;
@@ -613,16 +622,16 @@ function Hn(e, t) {
613
622
  });
614
623
  }
615
624
  const ie = [];
616
- function Pn(e, t) {
625
+ function On(e, t) {
617
626
  return {
618
- subscribe: Fe(e, t).subscribe
627
+ subscribe: $e(e, t).subscribe
619
628
  };
620
629
  }
621
- function Fe(e, t = $) {
630
+ function $e(e, t = $) {
622
631
  let r;
623
632
  const n = /* @__PURE__ */ new Set();
624
633
  function i(s) {
625
- if (_t(e, s) && (e = s, r)) {
634
+ if (vt(e, s) && (e = s, r)) {
626
635
  const c = !ie.length;
627
636
  for (const l of n)
628
637
  l[1](), ie.push(l, e);
@@ -649,7 +658,7 @@ function fe(e, t, r) {
649
658
  if (!i.every(Boolean))
650
659
  throw new Error("derived() expects stores as input, got a falsy value");
651
660
  const o = t.length < 2;
652
- return Pn(r, (a, s) => {
661
+ return On(r, (a, s) => {
653
662
  let c = !1;
654
663
  const l = [];
655
664
  let u = 0, d = $;
@@ -658,12 +667,12 @@ function fe(e, t, r) {
658
667
  return;
659
668
  d();
660
669
  const g = t(n ? l[0] : l, a, s);
661
- o ? a(g) : d = gt(g) ? g : $;
670
+ o ? a(g) : d = yt(g) ? g : $;
662
671
  }, y = i.map(
663
- (g, p) => tr(
672
+ (g, p) => rr(
664
673
  g,
665
- (S) => {
666
- l[p] = S, u &= ~(1 << p), c && m();
674
+ (C) => {
675
+ l[p] = C, u &= ~(1 << p), c && m();
667
676
  },
668
677
  () => {
669
678
  u |= 1 << p;
@@ -675,70 +684,70 @@ function fe(e, t, r) {
675
684
  };
676
685
  });
677
686
  }
678
- function Bn(e) {
687
+ function zn(e) {
679
688
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
680
689
  }
681
- var On = function(t) {
682
- return zn(t) && !Ln(t);
690
+ var jn = function(t) {
691
+ return Ln(t) && !In(t);
683
692
  };
684
- function zn(e) {
693
+ function Ln(e) {
685
694
  return !!e && typeof e == "object";
686
695
  }
687
- function Ln(e) {
696
+ function In(e) {
688
697
  var t = Object.prototype.toString.call(e);
689
- return t === "[object RegExp]" || t === "[object Date]" || Rn(e);
698
+ return t === "[object RegExp]" || t === "[object Date]" || Dn(e);
690
699
  }
691
- var jn = typeof Symbol == "function" && Symbol.for, In = jn ? Symbol.for("react.element") : 60103;
692
- function Rn(e) {
693
- return e.$$typeof === In;
700
+ var Rn = typeof Symbol == "function" && Symbol.for, Un = Rn ? Symbol.for("react.element") : 60103;
701
+ function Dn(e) {
702
+ return e.$$typeof === Un;
694
703
  }
695
- function Un(e) {
704
+ function Gn(e) {
696
705
  return Array.isArray(e) ? [] : {};
697
706
  }
698
- function xe(e, t) {
699
- return t.clone !== !1 && t.isMergeableObject(e) ? ce(Un(e), e, t) : e;
707
+ function we(e, t) {
708
+ return t.clone !== !1 && t.isMergeableObject(e) ? ce(Gn(e), e, t) : e;
700
709
  }
701
- function Dn(e, t, r) {
710
+ function Fn(e, t, r) {
702
711
  return e.concat(t).map(function(n) {
703
- return xe(n, r);
712
+ return we(n, r);
704
713
  });
705
714
  }
706
- function Gn(e, t) {
715
+ function $n(e, t) {
707
716
  if (!t.customMerge)
708
717
  return ce;
709
718
  var r = t.customMerge(e);
710
719
  return typeof r == "function" ? r : ce;
711
720
  }
712
- function Fn(e) {
721
+ function Vn(e) {
713
722
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
714
723
  return Object.propertyIsEnumerable.call(e, t);
715
724
  }) : [];
716
725
  }
717
- function Tt(e) {
718
- return Object.keys(e).concat(Fn(e));
726
+ function Nt(e) {
727
+ return Object.keys(e).concat(Vn(e));
719
728
  }
720
- function sr(e, t) {
729
+ function lr(e, t) {
721
730
  try {
722
731
  return t in e;
723
732
  } catch (r) {
724
733
  return !1;
725
734
  }
726
735
  }
727
- function $n(e, t) {
728
- return sr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
736
+ function Xn(e, t) {
737
+ return lr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
729
738
  }
730
- function Vn(e, t, r) {
739
+ function qn(e, t, r) {
731
740
  var n = {};
732
- return r.isMergeableObject(e) && Tt(e).forEach(function(i) {
733
- n[i] = xe(e[i], r);
734
- }), Tt(t).forEach(function(i) {
735
- $n(e, i) || (sr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Gn(i, r)(e[i], t[i], r) : n[i] = xe(t[i], r));
741
+ return r.isMergeableObject(e) && Nt(e).forEach(function(i) {
742
+ n[i] = we(e[i], r);
743
+ }), Nt(t).forEach(function(i) {
744
+ Xn(e, i) || (lr(e, i) && r.isMergeableObject(t[i]) ? n[i] = $n(i, r)(e[i], t[i], r) : n[i] = we(t[i], r));
736
745
  }), n;
737
746
  }
738
747
  function ce(e, t, r) {
739
- r = r || {}, r.arrayMerge = r.arrayMerge || Dn, r.isMergeableObject = r.isMergeableObject || On, r.cloneUnlessOtherwiseSpecified = xe;
748
+ r = r || {}, r.arrayMerge = r.arrayMerge || Fn, r.isMergeableObject = r.isMergeableObject || jn, r.cloneUnlessOtherwiseSpecified = we;
740
749
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
741
- return o ? n ? r.arrayMerge(e, t, r) : Vn(e, t, r) : xe(t, r);
750
+ return o ? n ? r.arrayMerge(e, t, r) : qn(e, t, r) : we(t, r);
742
751
  }
743
752
  ce.all = function(t, r) {
744
753
  if (!Array.isArray(t))
@@ -747,20 +756,20 @@ ce.all = function(t, r) {
747
756
  return ce(n, i, r);
748
757
  }, {});
749
758
  };
750
- var Xn = ce, qn = Xn;
751
- const Wn = /* @__PURE__ */ Bn(qn);
752
- var st = function(e, t) {
753
- return st = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
759
+ var Wn = ce, Zn = Wn;
760
+ const Jn = /* @__PURE__ */ zn(Zn);
761
+ var ct = function(e, t) {
762
+ return ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
754
763
  r.__proto__ = n;
755
764
  } || function(r, n) {
756
765
  for (var i in n)
757
766
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
758
- }, st(e, t);
767
+ }, ct(e, t);
759
768
  };
760
- function $e(e, t) {
769
+ function Ve(e, t) {
761
770
  if (typeof t != "function" && t !== null)
762
771
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
763
- st(e, t);
772
+ ct(e, t);
764
773
  function r() {
765
774
  this.constructor = e;
766
775
  }
@@ -776,7 +785,7 @@ var Z = function() {
776
785
  return t;
777
786
  }, Z.apply(this, arguments);
778
787
  };
779
- function Zn(e, t) {
788
+ function Qn(e, t) {
780
789
  var r = {};
781
790
  for (var n in e)
782
791
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -785,43 +794,43 @@ function Zn(e, t) {
785
794
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
786
795
  return r;
787
796
  }
788
- function Ye(e, t, r) {
797
+ function Ke(e, t, r) {
789
798
  if (r || arguments.length === 2)
790
799
  for (var n = 0, i = t.length, o; n < i; n++)
791
800
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
792
801
  return e.concat(o || Array.prototype.slice.call(t));
793
802
  }
794
- function Ke(e, t) {
795
- var r = t && t.cache ? t.cache : ri, n = t && t.serializer ? t.serializer : ei, i = t && t.strategy ? t.strategy : Yn;
803
+ function et(e, t) {
804
+ var r = t && t.cache ? t.cache : ii, n = t && t.serializer ? t.serializer : ri, i = t && t.strategy ? t.strategy : ei;
796
805
  return i(e, {
797
806
  cache: r,
798
807
  serializer: n
799
808
  });
800
809
  }
801
- function Jn(e) {
810
+ function Yn(e) {
802
811
  return e == null || typeof e == "number" || typeof e == "boolean";
803
812
  }
804
- function Qn(e, t, r, n) {
805
- var i = Jn(n) ? n : r(n), o = t.get(i);
813
+ function Kn(e, t, r, n) {
814
+ var i = Yn(n) ? n : r(n), o = t.get(i);
806
815
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
807
816
  }
808
- function lr(e, t, r) {
817
+ function cr(e, t, r) {
809
818
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
810
819
  return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
811
820
  }
812
- function cr(e, t, r, n, i) {
821
+ function ur(e, t, r, n, i) {
813
822
  return r.bind(t, e, n, i);
814
823
  }
815
- function Yn(e, t) {
816
- var r = e.length === 1 ? Qn : lr;
817
- return cr(e, this, r, t.cache.create(), t.serializer);
824
+ function ei(e, t) {
825
+ var r = e.length === 1 ? Kn : cr;
826
+ return ur(e, this, r, t.cache.create(), t.serializer);
818
827
  }
819
- function Kn(e, t) {
820
- return cr(e, this, lr, t.cache.create(), t.serializer);
828
+ function ti(e, t) {
829
+ return ur(e, this, cr, t.cache.create(), t.serializer);
821
830
  }
822
- var ei = function() {
831
+ var ri = function() {
823
832
  return JSON.stringify(arguments);
824
- }, ti = (
833
+ }, ni = (
825
834
  /** @class */
826
835
  function() {
827
836
  function e() {
@@ -833,21 +842,21 @@ var ei = function() {
833
842
  this.cache[t] = r;
834
843
  }, e;
835
844
  }()
836
- ), ri = {
845
+ ), ii = {
837
846
  create: function() {
838
- return new ti();
847
+ return new ni();
839
848
  }
840
- }, et = {
841
- variadic: Kn
842
- }, Ue = function() {
843
- return Ue = Object.assign || function(t) {
849
+ }, tt = {
850
+ variadic: ti
851
+ }, De = function() {
852
+ return De = Object.assign || function(t) {
844
853
  for (var r, n = 1, i = arguments.length; n < i; n++) {
845
854
  r = arguments[n];
846
855
  for (var o in r)
847
856
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
848
857
  }
849
858
  return t;
850
- }, Ue.apply(this, arguments);
859
+ }, De.apply(this, arguments);
851
860
  };
852
861
  var N;
853
862
  (function(e) {
@@ -861,43 +870,43 @@ var ue;
861
870
  (function(e) {
862
871
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
863
872
  })(ue || (ue = {}));
864
- function Mt(e) {
873
+ function At(e) {
865
874
  return e.type === P.literal;
866
875
  }
867
- function ni(e) {
876
+ function oi(e) {
868
877
  return e.type === P.argument;
869
878
  }
870
- function ur(e) {
879
+ function hr(e) {
871
880
  return e.type === P.number;
872
881
  }
873
- function hr(e) {
882
+ function dr(e) {
874
883
  return e.type === P.date;
875
884
  }
876
- function dr(e) {
885
+ function mr(e) {
877
886
  return e.type === P.time;
878
887
  }
879
- function mr(e) {
888
+ function fr(e) {
880
889
  return e.type === P.select;
881
890
  }
882
- function fr(e) {
891
+ function pr(e) {
883
892
  return e.type === P.plural;
884
893
  }
885
- function ii(e) {
894
+ function ai(e) {
886
895
  return e.type === P.pound;
887
896
  }
888
- function pr(e) {
897
+ function gr(e) {
889
898
  return e.type === P.tag;
890
899
  }
891
- function gr(e) {
900
+ function _r(e) {
892
901
  return !!(e && typeof e == "object" && e.type === ue.number);
893
902
  }
894
- function lt(e) {
903
+ function ut(e) {
895
904
  return !!(e && typeof e == "object" && e.type === ue.dateTime);
896
905
  }
897
- var _r = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, oi = /(?:[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;
898
- function ai(e) {
906
+ var yr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, si = /(?:[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;
907
+ function li(e) {
899
908
  var t = {};
900
- return e.replace(oi, function(r) {
909
+ return e.replace(si, function(r) {
901
910
  var n = r.length;
902
911
  switch (r[0]) {
903
912
  case "G":
@@ -996,11 +1005,11 @@ var B = function() {
996
1005
  return t;
997
1006
  }, B.apply(this, arguments);
998
1007
  };
999
- var si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1000
- function li(e) {
1008
+ var ci = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1009
+ function ui(e) {
1001
1010
  if (e.length === 0)
1002
1011
  throw new Error("Number skeleton cannot be empty");
1003
- for (var t = e.split(si).filter(function(m) {
1012
+ for (var t = e.split(ci).filter(function(m) {
1004
1013
  return m.length > 0;
1005
1014
  }), r = [], n = 0, i = t; n < i.length; n++) {
1006
1015
  var o = i[n], a = o.split("/");
@@ -1015,17 +1024,17 @@ function li(e) {
1015
1024
  }
1016
1025
  return r;
1017
1026
  }
1018
- function ci(e) {
1027
+ function hi(e) {
1019
1028
  return e.replace(/^(.*?)-/, "");
1020
1029
  }
1021
- var Nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yr = /^(@+)?(\+|#+)?[rs]?$/g, ui = /(\*)(0+)|(#+)(0+)|(0+)/g, vr = /^(0+)$/;
1022
- function At(e) {
1030
+ var Ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, vr = /^(@+)?(\+|#+)?[rs]?$/g, di = /(\*)(0+)|(#+)(0+)|(0+)/g, br = /^(0+)$/;
1031
+ function Pt(e) {
1023
1032
  var t = {};
1024
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(yr, function(r, n, i) {
1033
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(vr, function(r, n, i) {
1025
1034
  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)), "";
1026
1035
  }), t;
1027
1036
  }
1028
- function br(e) {
1037
+ function kr(e) {
1029
1038
  switch (e) {
1030
1039
  case "sign-auto":
1031
1040
  return {
@@ -1065,7 +1074,7 @@ function br(e) {
1065
1074
  };
1066
1075
  }
1067
1076
  }
1068
- function hi(e) {
1077
+ function mi(e) {
1069
1078
  var t;
1070
1079
  if (e[0] === "E" && e[1] === "E" ? (t = {
1071
1080
  notation: "engineering"
@@ -1073,17 +1082,17 @@ function hi(e) {
1073
1082
  notation: "scientific"
1074
1083
  }, e = e.slice(1)), t) {
1075
1084
  var r = e.slice(0, 2);
1076
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !vr.test(e))
1085
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !br.test(e))
1077
1086
  throw new Error("Malformed concise eng/scientific notation");
1078
1087
  t.minimumIntegerDigits = e.length;
1079
1088
  }
1080
1089
  return t;
1081
1090
  }
1082
- function Ht(e) {
1083
- var t = {}, r = br(e);
1091
+ function Bt(e) {
1092
+ var t = {}, r = kr(e);
1084
1093
  return r || t;
1085
1094
  }
1086
- function di(e) {
1095
+ function fi(e) {
1087
1096
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1088
1097
  var i = n[r];
1089
1098
  switch (i.stem) {
@@ -1107,7 +1116,7 @@ function di(e) {
1107
1116
  continue;
1108
1117
  case "measure-unit":
1109
1118
  case "unit":
1110
- t.style = "unit", t.unit = ci(i.options[0]);
1119
+ t.style = "unit", t.unit = hi(i.options[0]);
1111
1120
  continue;
1112
1121
  case "compact-short":
1113
1122
  case "K":
@@ -1119,12 +1128,12 @@ function di(e) {
1119
1128
  continue;
1120
1129
  case "scientific":
1121
1130
  t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
1122
- return B(B({}, c), Ht(l));
1131
+ return B(B({}, c), Bt(l));
1123
1132
  }, {}));
1124
1133
  continue;
1125
1134
  case "engineering":
1126
1135
  t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
1127
- return B(B({}, c), Ht(l));
1136
+ return B(B({}, c), Bt(l));
1128
1137
  }, {}));
1129
1138
  continue;
1130
1139
  case "notation-simple":
@@ -1169,7 +1178,7 @@ function di(e) {
1169
1178
  case "integer-width":
1170
1179
  if (i.options.length > 1)
1171
1180
  throw new RangeError("integer-width stems only accept a single optional option");
1172
- i.options[0].replace(ui, function(c, l, u, d, m, y) {
1181
+ i.options[0].replace(di, function(c, l, u, d, m, y) {
1173
1182
  if (l)
1174
1183
  t.minimumIntegerDigits = u.length;
1175
1184
  else {
@@ -1182,32 +1191,32 @@ function di(e) {
1182
1191
  });
1183
1192
  continue;
1184
1193
  }
1185
- if (vr.test(i.stem)) {
1194
+ if (br.test(i.stem)) {
1186
1195
  t.minimumIntegerDigits = i.stem.length;
1187
1196
  continue;
1188
1197
  }
1189
- if (Nt.test(i.stem)) {
1198
+ if (Ht.test(i.stem)) {
1190
1199
  if (i.options.length > 1)
1191
1200
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1192
- i.stem.replace(Nt, function(c, l, u, d, m, y) {
1201
+ i.stem.replace(Ht, function(c, l, u, d, m, y) {
1193
1202
  return u === "*" ? t.minimumFractionDigits = l.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && y ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1194
1203
  });
1195
1204
  var o = i.options[0];
1196
- o === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = B(B({}, t), At(o)));
1205
+ o === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = B(B({}, t), Pt(o)));
1197
1206
  continue;
1198
1207
  }
1199
- if (yr.test(i.stem)) {
1200
- t = B(B({}, t), At(i.stem));
1208
+ if (vr.test(i.stem)) {
1209
+ t = B(B({}, t), Pt(i.stem));
1201
1210
  continue;
1202
1211
  }
1203
- var a = br(i.stem);
1212
+ var a = kr(i.stem);
1204
1213
  a && (t = B(B({}, t), a));
1205
- var s = hi(i.stem);
1214
+ var s = mi(i.stem);
1206
1215
  s && (t = B(B({}, t), s));
1207
1216
  }
1208
1217
  return t;
1209
1218
  }
1210
- var ze = {
1219
+ var je = {
1211
1220
  "001": [
1212
1221
  "H",
1213
1222
  "h"
@@ -2622,13 +2631,13 @@ var ze = {
2622
2631
  "h"
2623
2632
  ]
2624
2633
  };
2625
- function mi(e, t) {
2634
+ function pi(e, t) {
2626
2635
  for (var r = "", n = 0; n < e.length; n++) {
2627
2636
  var i = e.charAt(n);
2628
2637
  if (i === "j") {
2629
2638
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2630
2639
  o++, n++;
2631
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = fi(t);
2640
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = gi(t);
2632
2641
  for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
2633
2642
  r += c;
2634
2643
  for (; a-- > 0; )
@@ -2638,7 +2647,7 @@ function mi(e, t) {
2638
2647
  }
2639
2648
  return r;
2640
2649
  }
2641
- function fi(e) {
2650
+ function gi(e) {
2642
2651
  var t = e.hourCycle;
2643
2652
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2644
2653
  e.hourCycles && // @ts-ignore
@@ -2657,23 +2666,23 @@ function fi(e) {
2657
2666
  }
2658
2667
  var r = e.language, n;
2659
2668
  r !== "root" && (n = e.maximize().region);
2660
- var i = ze[n || ""] || ze[r || ""] || ze["".concat(r, "-001")] || ze["001"];
2669
+ var i = je[n || ""] || je[r || ""] || je["".concat(r, "-001")] || je["001"];
2661
2670
  return i[0];
2662
2671
  }
2663
- var tt, pi = new RegExp("^".concat(_r.source, "*")), gi = new RegExp("".concat(_r.source, "*$"));
2672
+ var rt, _i = new RegExp("^".concat(yr.source, "*")), yi = new RegExp("".concat(yr.source, "*$"));
2664
2673
  function A(e, t) {
2665
2674
  return { start: e, end: t };
2666
2675
  }
2667
- var _i = !!String.prototype.startsWith && "_a".startsWith("a", 1), yi = !!String.fromCodePoint, vi = !!Object.fromEntries, bi = !!String.prototype.codePointAt, ki = !!String.prototype.trimStart, Ei = !!String.prototype.trimEnd, Ci = !!Number.isSafeInteger, Si = Ci ? Number.isSafeInteger : function(e) {
2676
+ var vi = !!String.prototype.startsWith && "_a".startsWith("a", 1), bi = !!String.fromCodePoint, ki = !!Object.fromEntries, Ei = !!String.prototype.codePointAt, Ci = !!String.prototype.trimStart, Si = !!String.prototype.trimEnd, xi = !!Number.isSafeInteger, wi = xi ? Number.isSafeInteger : function(e) {
2668
2677
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2669
- }, ct = !0;
2678
+ }, ht = !0;
2670
2679
  try {
2671
- var xi = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2672
- ct = ((tt = xi.exec("a")) === null || tt === void 0 ? void 0 : tt[0]) === "a";
2680
+ var Ti = Cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2681
+ ht = ((rt = Ti.exec("a")) === null || rt === void 0 ? void 0 : rt[0]) === "a";
2673
2682
  } catch (e) {
2674
- ct = !1;
2683
+ ht = !1;
2675
2684
  }
2676
- var Pt = _i ? (
2685
+ var Ot = vi ? (
2677
2686
  // Native
2678
2687
  function(t, r, n) {
2679
2688
  return t.startsWith(r, n);
@@ -2683,7 +2692,7 @@ var Pt = _i ? (
2683
2692
  function(t, r, n) {
2684
2693
  return t.slice(n, n + r.length) === r;
2685
2694
  }
2686
- ), ut = yi ? String.fromCodePoint : (
2695
+ ), dt = bi ? String.fromCodePoint : (
2687
2696
  // IE11
2688
2697
  function() {
2689
2698
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2695,9 +2704,9 @@ var Pt = _i ? (
2695
2704
  }
2696
2705
  return n;
2697
2706
  }
2698
- ), Bt = (
2707
+ ), zt = (
2699
2708
  // native
2700
- vi ? Object.fromEntries : (
2709
+ ki ? Object.fromEntries : (
2701
2710
  // Ponyfill
2702
2711
  function(t) {
2703
2712
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2707,7 +2716,7 @@ var Pt = _i ? (
2707
2716
  return r;
2708
2717
  }
2709
2718
  )
2710
- ), kr = bi ? (
2719
+ ), Er = Ei ? (
2711
2720
  // Native
2712
2721
  function(t, r) {
2713
2722
  return t.codePointAt(r);
@@ -2721,7 +2730,7 @@ var Pt = _i ? (
2721
2730
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2722
2731
  }
2723
2732
  }
2724
- ), wi = ki ? (
2733
+ ), Mi = Ci ? (
2725
2734
  // Native
2726
2735
  function(t) {
2727
2736
  return t.trimStart();
@@ -2729,9 +2738,9 @@ var Pt = _i ? (
2729
2738
  ) : (
2730
2739
  // Ponyfill
2731
2740
  function(t) {
2732
- return t.replace(pi, "");
2741
+ return t.replace(_i, "");
2733
2742
  }
2734
- ), Ti = Ei ? (
2743
+ ), Ni = Si ? (
2735
2744
  // Native
2736
2745
  function(t) {
2737
2746
  return t.trimEnd();
@@ -2739,32 +2748,32 @@ var Pt = _i ? (
2739
2748
  ) : (
2740
2749
  // Ponyfill
2741
2750
  function(t) {
2742
- return t.replace(gi, "");
2751
+ return t.replace(yi, "");
2743
2752
  }
2744
2753
  );
2745
- function Er(e, t) {
2754
+ function Cr(e, t) {
2746
2755
  return new RegExp(e, t);
2747
2756
  }
2748
- var ht;
2749
- if (ct) {
2750
- var Ot = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2751
- ht = function(t, r) {
2757
+ var mt;
2758
+ if (ht) {
2759
+ var jt = Cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2760
+ mt = function(t, r) {
2752
2761
  var n;
2753
- Ot.lastIndex = r;
2754
- var i = Ot.exec(t);
2762
+ jt.lastIndex = r;
2763
+ var i = jt.exec(t);
2755
2764
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2756
2765
  };
2757
2766
  } else
2758
- ht = function(t, r) {
2767
+ mt = function(t, r) {
2759
2768
  for (var n = []; ; ) {
2760
- var i = kr(t, r);
2761
- if (i === void 0 || Cr(i) || Hi(i))
2769
+ var i = Er(t, r);
2770
+ if (i === void 0 || Sr(i) || Bi(i))
2762
2771
  break;
2763
2772
  n.push(i), r += i >= 65536 ? 2 : 1;
2764
2773
  }
2765
- return ut.apply(void 0, n);
2774
+ return dt.apply(void 0, n);
2766
2775
  };
2767
- var Mi = (
2776
+ var Ai = (
2768
2777
  /** @class */
2769
2778
  function() {
2770
2779
  function e(t, r) {
@@ -2795,7 +2804,7 @@ var Mi = (
2795
2804
  if (n)
2796
2805
  break;
2797
2806
  return this.error(N.UNMATCHED_CLOSING_TAG, A(this.clonePosition(), this.clonePosition()));
2798
- } else if (o === 60 && !this.ignoreTag && dt(this.peek() || 0)) {
2807
+ } else if (o === 60 && !this.ignoreTag && ft(this.peek() || 0)) {
2799
2808
  var a = this.parseTag(t, r);
2800
2809
  if (a.err)
2801
2810
  return a;
@@ -2828,7 +2837,7 @@ var Mi = (
2828
2837
  return o;
2829
2838
  var a = o.val, s = this.clonePosition();
2830
2839
  if (this.bumpIf("</")) {
2831
- if (this.isEOF() || !dt(this.char()))
2840
+ if (this.isEOF() || !ft(this.char()))
2832
2841
  return this.error(N.INVALID_TAG, A(s, this.clonePosition()));
2833
2842
  var c = this.clonePosition(), l = this.parseTagName();
2834
2843
  return i !== l ? this.error(N.UNMATCHED_CLOSING_TAG, A(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -2846,7 +2855,7 @@ var Mi = (
2846
2855
  return this.error(N.INVALID_TAG, A(n, this.clonePosition()));
2847
2856
  }, e.prototype.parseTagName = function() {
2848
2857
  var t = this.offset();
2849
- for (this.bump(); !this.isEOF() && Ai(this.char()); )
2858
+ for (this.bump(); !this.isEOF() && Pi(this.char()); )
2850
2859
  this.bump();
2851
2860
  return this.message.slice(t, this.offset());
2852
2861
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2875,7 +2884,7 @@ var Mi = (
2875
2884
  };
2876
2885
  }, e.prototype.tryParseLeftAngleBracket = function() {
2877
2886
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2878
- !Ni(this.peek() || 0)) ? (this.bump(), "<") : null;
2887
+ !Hi(this.peek() || 0)) ? (this.bump(), "<") : null;
2879
2888
  }, e.prototype.tryParseQuote = function(t) {
2880
2889
  if (this.isEOF() || this.char() !== 39)
2881
2890
  return null;
@@ -2909,12 +2918,12 @@ var Mi = (
2909
2918
  r.push(n);
2910
2919
  this.bump();
2911
2920
  }
2912
- return ut.apply(void 0, r);
2921
+ return dt.apply(void 0, r);
2913
2922
  }, e.prototype.tryParseUnquoted = function(t, r) {
2914
2923
  if (this.isEOF())
2915
2924
  return null;
2916
2925
  var n = this.char();
2917
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ut(n));
2926
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), dt(n));
2918
2927
  }, e.prototype.parseArgument = function(t, r) {
2919
2928
  var n = this.clonePosition();
2920
2929
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2943,7 +2952,7 @@ var Mi = (
2943
2952
  return this.error(N.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
2944
2953
  }
2945
2954
  }, e.prototype.parseIdentifierIfPossible = function() {
2946
- var t = this.clonePosition(), r = this.offset(), n = ht(this.message, r), i = r + n.length;
2955
+ var t = this.clonePosition(), r = this.offset(), n = mt(this.message, r), i = r + n.length;
2947
2956
  this.bumpTo(i);
2948
2957
  var o = this.clonePosition(), a = A(t, o);
2949
2958
  return { value: n, location: a };
@@ -2962,7 +2971,7 @@ var Mi = (
2962
2971
  var u = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
2963
2972
  if (d.err)
2964
2973
  return d;
2965
- var m = Ti(d.val);
2974
+ var m = Ni(d.val);
2966
2975
  if (m.length === 0)
2967
2976
  return this.error(N.EXPECT_ARGUMENT_STYLE, A(this.clonePosition(), this.clonePosition()));
2968
2977
  var y = A(u, this.clonePosition());
@@ -2972,24 +2981,24 @@ var Mi = (
2972
2981
  if (g.err)
2973
2982
  return g;
2974
2983
  var p = A(i, this.clonePosition());
2975
- if (l && Pt(l == null ? void 0 : l.style, "::", 0)) {
2976
- var S = wi(l.style.slice(2));
2984
+ if (l && Ot(l == null ? void 0 : l.style, "::", 0)) {
2985
+ var C = Mi(l.style.slice(2));
2977
2986
  if (s === "number") {
2978
- var d = this.parseNumberSkeletonFromString(S, l.styleLocation);
2987
+ var d = this.parseNumberSkeletonFromString(C, l.styleLocation);
2979
2988
  return d.err ? d : {
2980
2989
  val: { type: P.number, value: n, location: p, style: d.val },
2981
2990
  err: null
2982
2991
  };
2983
2992
  } else {
2984
- if (S.length === 0)
2993
+ if (C.length === 0)
2985
2994
  return this.error(N.EXPECT_DATE_TIME_SKELETON, p);
2986
- var _ = S;
2987
- this.locale && (_ = mi(S, this.locale));
2995
+ var _ = C;
2996
+ this.locale && (_ = pi(C, this.locale));
2988
2997
  var m = {
2989
2998
  type: ue.dateTime,
2990
2999
  pattern: _,
2991
3000
  location: l.styleLocation,
2992
- parsedOptions: this.shouldParseSkeletons ? ai(_) : {}
3001
+ parsedOptions: this.shouldParseSkeletons ? li(_) : {}
2993
3002
  }, v = s === "date" ? P.date : P.time;
2994
3003
  return {
2995
3004
  val: { type: v, value: n, location: p, style: m },
@@ -3010,9 +3019,9 @@ var Mi = (
3010
3019
  case "plural":
3011
3020
  case "selectordinal":
3012
3021
  case "select": {
3013
- var C = this.clonePosition();
3022
+ var x = this.clonePosition();
3014
3023
  if (this.bumpSpace(), !this.bumpIf(","))
3015
- return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS, A(C, Ue({}, C)));
3024
+ return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS, A(x, De({}, x)));
3016
3025
  this.bumpSpace();
3017
3026
  var H = this.parseIdentifierIfPossible(), E = 0;
3018
3027
  if (s !== "select" && H.value === "offset") {
@@ -3024,29 +3033,29 @@ var Mi = (
3024
3033
  return d;
3025
3034
  this.bumpSpace(), H = this.parseIdentifierIfPossible(), E = d.val;
3026
3035
  }
3027
- var z = this.tryParsePluralOrSelectOptions(t, s, r, H);
3028
- if (z.err)
3029
- return z;
3036
+ var j = this.tryParsePluralOrSelectOptions(t, s, r, H);
3037
+ if (j.err)
3038
+ return j;
3030
3039
  var g = this.tryParseArgumentClose(i);
3031
3040
  if (g.err)
3032
3041
  return g;
3033
- var J = A(i, this.clonePosition());
3042
+ var te = A(i, this.clonePosition());
3034
3043
  return s === "select" ? {
3035
3044
  val: {
3036
3045
  type: P.select,
3037
3046
  value: n,
3038
- options: Bt(z.val),
3039
- location: J
3047
+ options: zt(j.val),
3048
+ location: te
3040
3049
  },
3041
3050
  err: null
3042
3051
  } : {
3043
3052
  val: {
3044
3053
  type: P.plural,
3045
3054
  value: n,
3046
- options: Bt(z.val),
3055
+ options: zt(j.val),
3047
3056
  offset: E,
3048
3057
  pluralType: s === "plural" ? "cardinal" : "ordinal",
3049
- location: J
3058
+ location: te
3050
3059
  },
3051
3060
  err: null
3052
3061
  };
@@ -3094,7 +3103,7 @@ var Mi = (
3094
3103
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3095
3104
  var n = [];
3096
3105
  try {
3097
- n = li(t);
3106
+ n = ui(t);
3098
3107
  } catch (i) {
3099
3108
  return this.error(N.INVALID_NUMBER_SKELETON, r);
3100
3109
  }
@@ -3103,7 +3112,7 @@ var Mi = (
3103
3112
  type: ue.number,
3104
3113
  tokens: n,
3105
3114
  location: r,
3106
- parsedOptions: this.shouldParseSkeletons ? di(n) : {}
3115
+ parsedOptions: this.shouldParseSkeletons ? fi(n) : {}
3107
3116
  },
3108
3117
  err: null
3109
3118
  };
@@ -3151,7 +3160,7 @@ var Mi = (
3151
3160
  break;
3152
3161
  }
3153
3162
  var c = A(i, this.clonePosition());
3154
- return o ? (a *= n, Si(a) ? { val: a, err: null } : this.error(r, c)) : this.error(t, c);
3163
+ return o ? (a *= n, wi(a) ? { val: a, err: null } : this.error(r, c)) : this.error(t, c);
3155
3164
  }, e.prototype.offset = function() {
3156
3165
  return this.position.offset;
3157
3166
  }, e.prototype.isEOF = function() {
@@ -3166,7 +3175,7 @@ var Mi = (
3166
3175
  var t = this.position.offset;
3167
3176
  if (t >= this.message.length)
3168
3177
  throw Error("out of bound");
3169
- var r = kr(this.message, t);
3178
+ var r = Er(this.message, t);
3170
3179
  if (r === void 0)
3171
3180
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3172
3181
  return r;
@@ -3185,7 +3194,7 @@ var Mi = (
3185
3194
  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);
3186
3195
  }
3187
3196
  }, e.prototype.bumpIf = function(t) {
3188
- if (Pt(this.message, t, this.offset())) {
3197
+ if (Ot(this.message, t, this.offset())) {
3189
3198
  for (var r = 0; r < t.length; r++)
3190
3199
  this.bump();
3191
3200
  return !0;
@@ -3207,7 +3216,7 @@ var Mi = (
3207
3216
  break;
3208
3217
  }
3209
3218
  }, e.prototype.bumpSpace = function() {
3210
- for (; !this.isEOF() && Cr(this.char()); )
3219
+ for (; !this.isEOF() && Sr(this.char()); )
3211
3220
  this.bump();
3212
3221
  }, e.prototype.peek = function() {
3213
3222
  if (this.isEOF())
@@ -3217,47 +3226,47 @@ var Mi = (
3217
3226
  }, e;
3218
3227
  }()
3219
3228
  );
3220
- function dt(e) {
3229
+ function ft(e) {
3221
3230
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3222
3231
  }
3223
- function Ni(e) {
3224
- return dt(e) || e === 47;
3232
+ function Hi(e) {
3233
+ return ft(e) || e === 47;
3225
3234
  }
3226
- function Ai(e) {
3235
+ function Pi(e) {
3227
3236
  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;
3228
3237
  }
3229
- function Cr(e) {
3238
+ function Sr(e) {
3230
3239
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3231
3240
  }
3232
- function Hi(e) {
3241
+ function Bi(e) {
3233
3242
  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;
3234
3243
  }
3235
- function mt(e) {
3244
+ function pt(e) {
3236
3245
  e.forEach(function(t) {
3237
- if (delete t.location, mr(t) || fr(t))
3246
+ if (delete t.location, fr(t) || pr(t))
3238
3247
  for (var r in t.options)
3239
- delete t.options[r].location, mt(t.options[r].value);
3248
+ delete t.options[r].location, pt(t.options[r].value);
3240
3249
  else
3241
- ur(t) && gr(t.style) || (hr(t) || dr(t)) && lt(t.style) ? delete t.style.location : pr(t) && mt(t.children);
3250
+ hr(t) && _r(t.style) || (dr(t) || mr(t)) && ut(t.style) ? delete t.style.location : gr(t) && pt(t.children);
3242
3251
  });
3243
3252
  }
3244
- function Pi(e, t) {
3245
- t === void 0 && (t = {}), t = Ue({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3246
- var r = new Mi(e, t).parse();
3253
+ function Oi(e, t) {
3254
+ t === void 0 && (t = {}), t = De({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3255
+ var r = new Ai(e, t).parse();
3247
3256
  if (r.err) {
3248
3257
  var n = SyntaxError(N[r.err.kind]);
3249
3258
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3250
3259
  }
3251
- return t != null && t.captureLocation || mt(r.val), r.val;
3260
+ return t != null && t.captureLocation || pt(r.val), r.val;
3252
3261
  }
3253
3262
  var he;
3254
3263
  (function(e) {
3255
3264
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3256
3265
  })(he || (he = {}));
3257
- var Ve = (
3266
+ var Xe = (
3258
3267
  /** @class */
3259
3268
  function(e) {
3260
- $e(t, e);
3269
+ Ve(t, e);
3261
3270
  function t(r, n, i) {
3262
3271
  var o = e.call(this, r) || this;
3263
3272
  return o.code = n, o.originalMessage = i, o;
@@ -3266,48 +3275,48 @@ var Ve = (
3266
3275
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3267
3276
  }, t;
3268
3277
  }(Error)
3269
- ), zt = (
3278
+ ), Lt = (
3270
3279
  /** @class */
3271
3280
  function(e) {
3272
- $e(t, e);
3281
+ Ve(t, e);
3273
3282
  function t(r, n, i, o) {
3274
3283
  return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), he.INVALID_VALUE, o) || this;
3275
3284
  }
3276
3285
  return t;
3277
- }(Ve)
3278
- ), Bi = (
3286
+ }(Xe)
3287
+ ), zi = (
3279
3288
  /** @class */
3280
3289
  function(e) {
3281
- $e(t, e);
3290
+ Ve(t, e);
3282
3291
  function t(r, n, i) {
3283
3292
  return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), he.INVALID_VALUE, i) || this;
3284
3293
  }
3285
3294
  return t;
3286
- }(Ve)
3287
- ), Oi = (
3295
+ }(Xe)
3296
+ ), ji = (
3288
3297
  /** @class */
3289
3298
  function(e) {
3290
- $e(t, e);
3299
+ Ve(t, e);
3291
3300
  function t(r, n) {
3292
3301
  return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), he.MISSING_VALUE, n) || this;
3293
3302
  }
3294
3303
  return t;
3295
- }(Ve)
3304
+ }(Xe)
3296
3305
  ), G;
3297
3306
  (function(e) {
3298
3307
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3299
3308
  })(G || (G = {}));
3300
- function zi(e) {
3309
+ function Li(e) {
3301
3310
  return e.length < 2 ? e : e.reduce(function(t, r) {
3302
3311
  var n = t[t.length - 1];
3303
3312
  return !n || n.type !== G.literal || r.type !== G.literal ? t.push(r) : n.value += r.value, t;
3304
3313
  }, []);
3305
3314
  }
3306
- function Li(e) {
3315
+ function Ii(e) {
3307
3316
  return typeof e == "function";
3308
3317
  }
3309
- function je(e, t, r, n, i, o, a) {
3310
- if (e.length === 1 && Mt(e[0]))
3318
+ function Ie(e, t, r, n, i, o, a) {
3319
+ if (e.length === 1 && At(e[0]))
3311
3320
  return [
3312
3321
  {
3313
3322
  type: G.literal,
@@ -3316,14 +3325,14 @@ function je(e, t, r, n, i, o, a) {
3316
3325
  ];
3317
3326
  for (var s = [], c = 0, l = e; c < l.length; c++) {
3318
3327
  var u = l[c];
3319
- if (Mt(u)) {
3328
+ if (At(u)) {
3320
3329
  s.push({
3321
3330
  type: G.literal,
3322
3331
  value: u.value
3323
3332
  });
3324
3333
  continue;
3325
3334
  }
3326
- if (ii(u)) {
3335
+ if (ai(u)) {
3327
3336
  typeof o == "number" && s.push({
3328
3337
  type: G.literal,
3329
3338
  value: r.getNumberFormat(t).format(o)
@@ -3332,44 +3341,44 @@ function je(e, t, r, n, i, o, a) {
3332
3341
  }
3333
3342
  var d = u.value;
3334
3343
  if (!(i && d in i))
3335
- throw new Oi(d, a);
3344
+ throw new ji(d, a);
3336
3345
  var m = i[d];
3337
- if (ni(u)) {
3346
+ if (oi(u)) {
3338
3347
  (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
3339
3348
  type: typeof m == "string" ? G.literal : G.object,
3340
3349
  value: m
3341
3350
  });
3342
3351
  continue;
3343
3352
  }
3344
- if (hr(u)) {
3345
- var y = typeof u.style == "string" ? n.date[u.style] : lt(u.style) ? u.style.parsedOptions : void 0;
3353
+ if (dr(u)) {
3354
+ var y = typeof u.style == "string" ? n.date[u.style] : ut(u.style) ? u.style.parsedOptions : void 0;
3346
3355
  s.push({
3347
3356
  type: G.literal,
3348
3357
  value: r.getDateTimeFormat(t, y).format(m)
3349
3358
  });
3350
3359
  continue;
3351
3360
  }
3352
- if (dr(u)) {
3353
- var y = typeof u.style == "string" ? n.time[u.style] : lt(u.style) ? u.style.parsedOptions : n.time.medium;
3361
+ if (mr(u)) {
3362
+ var y = typeof u.style == "string" ? n.time[u.style] : ut(u.style) ? u.style.parsedOptions : n.time.medium;
3354
3363
  s.push({
3355
3364
  type: G.literal,
3356
3365
  value: r.getDateTimeFormat(t, y).format(m)
3357
3366
  });
3358
3367
  continue;
3359
3368
  }
3360
- if (ur(u)) {
3361
- var y = typeof u.style == "string" ? n.number[u.style] : gr(u.style) ? u.style.parsedOptions : void 0;
3369
+ if (hr(u)) {
3370
+ var y = typeof u.style == "string" ? n.number[u.style] : _r(u.style) ? u.style.parsedOptions : void 0;
3362
3371
  y && y.scale && (m = m * (y.scale || 1)), s.push({
3363
3372
  type: G.literal,
3364
3373
  value: r.getNumberFormat(t, y).format(m)
3365
3374
  });
3366
3375
  continue;
3367
3376
  }
3368
- if (pr(u)) {
3369
- var g = u.children, p = u.value, S = i[p];
3370
- if (!Li(S))
3371
- throw new Bi(p, "function", a);
3372
- var _ = je(g, t, r, n, i, o), v = S(_.map(function(E) {
3377
+ if (gr(u)) {
3378
+ var g = u.children, p = u.value, C = i[p];
3379
+ if (!Ii(C))
3380
+ throw new zi(p, "function", a);
3381
+ var _ = Ie(g, t, r, n, i, o), v = C(_.map(function(E) {
3373
3382
  return E.value;
3374
3383
  }));
3375
3384
  Array.isArray(v) || (v = [v]), s.push.apply(s, v.map(function(E) {
@@ -3379,42 +3388,42 @@ function je(e, t, r, n, i, o, a) {
3379
3388
  };
3380
3389
  }));
3381
3390
  }
3382
- if (mr(u)) {
3383
- var C = u.options[m] || u.options.other;
3384
- if (!C)
3385
- throw new zt(u.value, m, Object.keys(u.options), a);
3386
- s.push.apply(s, je(C.value, t, r, n, i));
3391
+ if (fr(u)) {
3392
+ var x = u.options[m] || u.options.other;
3393
+ if (!x)
3394
+ throw new Lt(u.value, m, Object.keys(u.options), a);
3395
+ s.push.apply(s, Ie(x.value, t, r, n, i));
3387
3396
  continue;
3388
3397
  }
3389
- if (fr(u)) {
3390
- var C = u.options["=".concat(m)];
3391
- if (!C) {
3398
+ if (pr(u)) {
3399
+ var x = u.options["=".concat(m)];
3400
+ if (!x) {
3392
3401
  if (!Intl.PluralRules)
3393
- throw new Ve(`Intl.PluralRules is not available in this environment.
3402
+ throw new Xe(`Intl.PluralRules is not available in this environment.
3394
3403
  Try polyfilling it using "@formatjs/intl-pluralrules"
3395
3404
  `, he.MISSING_INTL_API, a);
3396
3405
  var H = r.getPluralRules(t, { type: u.pluralType }).select(m - (u.offset || 0));
3397
- C = u.options[H] || u.options.other;
3406
+ x = u.options[H] || u.options.other;
3398
3407
  }
3399
- if (!C)
3400
- throw new zt(u.value, m, Object.keys(u.options), a);
3401
- s.push.apply(s, je(C.value, t, r, n, i, m - (u.offset || 0)));
3408
+ if (!x)
3409
+ throw new Lt(u.value, m, Object.keys(u.options), a);
3410
+ s.push.apply(s, Ie(x.value, t, r, n, i, m - (u.offset || 0)));
3402
3411
  continue;
3403
3412
  }
3404
3413
  }
3405
- return zi(s);
3414
+ return Li(s);
3406
3415
  }
3407
- function ji(e, t) {
3416
+ function Ri(e, t) {
3408
3417
  return t ? Z(Z(Z({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3409
3418
  return r[n] = Z(Z({}, e[n]), t[n] || {}), r;
3410
3419
  }, {})) : e;
3411
3420
  }
3412
- function Ii(e, t) {
3421
+ function Ui(e, t) {
3413
3422
  return t ? Object.keys(e).reduce(function(r, n) {
3414
- return r[n] = ji(e[n], t[n]), r;
3423
+ return r[n] = Ri(e[n], t[n]), r;
3415
3424
  }, Z({}, e)) : e;
3416
3425
  }
3417
- function rt(e) {
3426
+ function nt(e) {
3418
3427
  return {
3419
3428
  create: function() {
3420
3429
  return {
@@ -3428,39 +3437,39 @@ function rt(e) {
3428
3437
  }
3429
3438
  };
3430
3439
  }
3431
- function Ri(e) {
3440
+ function Di(e) {
3432
3441
  return e === void 0 && (e = {
3433
3442
  number: {},
3434
3443
  dateTime: {},
3435
3444
  pluralRules: {}
3436
3445
  }), {
3437
- getNumberFormat: Ke(function() {
3446
+ getNumberFormat: et(function() {
3438
3447
  for (var t, r = [], n = 0; n < arguments.length; n++)
3439
3448
  r[n] = arguments[n];
3440
- return new ((t = Intl.NumberFormat).bind.apply(t, Ye([void 0], r, !1)))();
3449
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ke([void 0], r, !1)))();
3441
3450
  }, {
3442
- cache: rt(e.number),
3443
- strategy: et.variadic
3451
+ cache: nt(e.number),
3452
+ strategy: tt.variadic
3444
3453
  }),
3445
- getDateTimeFormat: Ke(function() {
3454
+ getDateTimeFormat: et(function() {
3446
3455
  for (var t, r = [], n = 0; n < arguments.length; n++)
3447
3456
  r[n] = arguments[n];
3448
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ye([void 0], r, !1)))();
3457
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ke([void 0], r, !1)))();
3449
3458
  }, {
3450
- cache: rt(e.dateTime),
3451
- strategy: et.variadic
3459
+ cache: nt(e.dateTime),
3460
+ strategy: tt.variadic
3452
3461
  }),
3453
- getPluralRules: Ke(function() {
3462
+ getPluralRules: et(function() {
3454
3463
  for (var t, r = [], n = 0; n < arguments.length; n++)
3455
3464
  r[n] = arguments[n];
3456
- return new ((t = Intl.PluralRules).bind.apply(t, Ye([void 0], r, !1)))();
3465
+ return new ((t = Intl.PluralRules).bind.apply(t, Ke([void 0], r, !1)))();
3457
3466
  }, {
3458
- cache: rt(e.pluralRules),
3459
- strategy: et.variadic
3467
+ cache: nt(e.pluralRules),
3468
+ strategy: tt.variadic
3460
3469
  })
3461
3470
  };
3462
3471
  }
3463
- var Ui = (
3472
+ var Gi = (
3464
3473
  /** @class */
3465
3474
  function() {
3466
3475
  function e(t, r, n, i) {
@@ -3479,7 +3488,7 @@ var Ui = (
3479
3488
  }, []);
3480
3489
  return u.length <= 1 ? u[0] || "" : u;
3481
3490
  }, this.formatToParts = function(c) {
3482
- return je(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3491
+ return Ie(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3483
3492
  }, this.resolvedOptions = function() {
3484
3493
  var c;
3485
3494
  return {
@@ -3491,13 +3500,13 @@ var Ui = (
3491
3500
  if (this.message = t, !e.__parse)
3492
3501
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3493
3502
  var a = i || {};
3494
- var s = Zn(a, ["formatters"]);
3503
+ var s = Qn(a, ["formatters"]);
3495
3504
  this.ast = e.__parse(t, Z(Z({}, s), { locale: this.resolvedLocale }));
3496
3505
  } else
3497
3506
  this.ast = t;
3498
3507
  if (!Array.isArray(this.ast))
3499
3508
  throw new TypeError("A message must be provided as a String or AST.");
3500
- this.formats = Ii(e.formats, n), this.formatters = i && i.formatters || Ri(this.formatterCache);
3509
+ this.formats = Ui(e.formats, n), this.formatters = i && i.formatters || Di(this.formatterCache);
3501
3510
  }
3502
3511
  return Object.defineProperty(e, "defaultLocale", {
3503
3512
  get: function() {
@@ -3510,7 +3519,7 @@ var Ui = (
3510
3519
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3511
3520
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3512
3521
  }
3513
- }, e.__parse = Pi, e.formats = {
3522
+ }, e.__parse = Oi, e.formats = {
3514
3523
  number: {
3515
3524
  integer: {
3516
3525
  maximumFractionDigits: 0
@@ -3571,7 +3580,7 @@ var Ui = (
3571
3580
  }, e;
3572
3581
  }()
3573
3582
  );
3574
- function Di(e, t) {
3583
+ function Fi(e, t) {
3575
3584
  if (t == null)
3576
3585
  return;
3577
3586
  if (t in e)
@@ -3592,92 +3601,92 @@ function Di(e, t) {
3592
3601
  n = void 0;
3593
3602
  return n;
3594
3603
  }
3595
- const Y = {}, Gi = (e, t, r) => r && (t in Y || (Y[t] = {}), e in Y[t] || (Y[t][e] = r), r), Sr = (e, t) => {
3604
+ const Q = {}, $i = (e, t, r) => r && (t in Q || (Q[t] = {}), e in Q[t] || (Q[t][e] = r), r), xr = (e, t) => {
3596
3605
  if (t == null)
3597
3606
  return;
3598
- if (t in Y && e in Y[t])
3599
- return Y[t][e];
3600
- const r = Xe(t);
3607
+ if (t in Q && e in Q[t])
3608
+ return Q[t][e];
3609
+ const r = qe(t);
3601
3610
  for (let n = 0; n < r.length; n++) {
3602
- const i = r[n], o = $i(i, e);
3611
+ const i = r[n], o = Xi(i, e);
3603
3612
  if (o)
3604
- return Gi(e, t, o);
3613
+ return $i(e, t, o);
3605
3614
  }
3606
3615
  };
3607
- let vt;
3608
- const Me = Fe({});
3609
- function Fi(e) {
3610
- return vt[e] || null;
3616
+ let kt;
3617
+ const Ne = $e({});
3618
+ function Vi(e) {
3619
+ return kt[e] || null;
3611
3620
  }
3612
- function xr(e) {
3613
- return e in vt;
3621
+ function wr(e) {
3622
+ return e in kt;
3614
3623
  }
3615
- function $i(e, t) {
3616
- if (!xr(e))
3624
+ function Xi(e, t) {
3625
+ if (!wr(e))
3617
3626
  return null;
3618
- const r = Fi(e);
3619
- return Di(r, t);
3627
+ const r = Vi(e);
3628
+ return Fi(r, t);
3620
3629
  }
3621
- function Vi(e) {
3630
+ function qi(e) {
3622
3631
  if (e == null)
3623
3632
  return;
3624
- const t = Xe(e);
3633
+ const t = qe(e);
3625
3634
  for (let r = 0; r < t.length; r++) {
3626
3635
  const n = t[r];
3627
- if (xr(n))
3636
+ if (wr(n))
3628
3637
  return n;
3629
3638
  }
3630
3639
  }
3631
- function wr(e, ...t) {
3632
- delete Y[e], Me.update((r) => (r[e] = Wn.all([r[e] || {}, ...t]), r));
3640
+ function Tr(e, ...t) {
3641
+ delete Q[e], Ne.update((r) => (r[e] = Jn.all([r[e] || {}, ...t]), r));
3633
3642
  }
3634
3643
  fe(
3635
- [Me],
3644
+ [Ne],
3636
3645
  ([e]) => Object.keys(e)
3637
3646
  );
3638
- Me.subscribe((e) => vt = e);
3639
- const Ie = {};
3640
- function Xi(e, t) {
3641
- Ie[e].delete(t), Ie[e].size === 0 && delete Ie[e];
3647
+ Ne.subscribe((e) => kt = e);
3648
+ const Re = {};
3649
+ function Wi(e, t) {
3650
+ Re[e].delete(t), Re[e].size === 0 && delete Re[e];
3642
3651
  }
3643
- function Tr(e) {
3644
- return Ie[e];
3652
+ function Mr(e) {
3653
+ return Re[e];
3645
3654
  }
3646
- function qi(e) {
3647
- return Xe(e).map((t) => {
3648
- const r = Tr(t);
3655
+ function Zi(e) {
3656
+ return qe(e).map((t) => {
3657
+ const r = Mr(t);
3649
3658
  return [t, r ? [...r] : []];
3650
3659
  }).filter(([, t]) => t.length > 0);
3651
3660
  }
3652
- function ft(e) {
3653
- return e == null ? !1 : Xe(e).some(
3661
+ function gt(e) {
3662
+ return e == null ? !1 : qe(e).some(
3654
3663
  (t) => {
3655
3664
  var r;
3656
- return (r = Tr(t)) == null ? void 0 : r.size;
3665
+ return (r = Mr(t)) == null ? void 0 : r.size;
3657
3666
  }
3658
3667
  );
3659
3668
  }
3660
- function Wi(e, t) {
3669
+ function Ji(e, t) {
3661
3670
  return Promise.all(
3662
- t.map((n) => (Xi(e, n), n().then((i) => i.default || i)))
3663
- ).then((n) => wr(e, ...n));
3664
- }
3665
- const ke = {};
3666
- function Mr(e) {
3667
- if (!ft(e))
3668
- return e in ke ? ke[e] : Promise.resolve();
3669
- const t = qi(e);
3670
- return ke[e] = Promise.all(
3671
+ t.map((n) => (Wi(e, n), n().then((i) => i.default || i)))
3672
+ ).then((n) => Tr(e, ...n));
3673
+ }
3674
+ const Ee = {};
3675
+ function Nr(e) {
3676
+ if (!gt(e))
3677
+ return e in Ee ? Ee[e] : Promise.resolve();
3678
+ const t = Zi(e);
3679
+ return Ee[e] = Promise.all(
3671
3680
  t.map(
3672
- ([r, n]) => Wi(r, n)
3681
+ ([r, n]) => Ji(r, n)
3673
3682
  )
3674
3683
  ).then(() => {
3675
- if (ft(e))
3676
- return Mr(e);
3677
- delete ke[e];
3678
- }), ke[e];
3684
+ if (gt(e))
3685
+ return Nr(e);
3686
+ delete Ee[e];
3687
+ }), Ee[e];
3679
3688
  }
3680
- const Zi = {
3689
+ const Qi = {
3681
3690
  number: {
3682
3691
  scientific: { notation: "scientific" },
3683
3692
  engineering: { notation: "engineering" },
@@ -3706,148 +3715,148 @@ const Zi = {
3706
3715
  timeZoneName: "short"
3707
3716
  }
3708
3717
  }
3709
- }, Ji = {
3718
+ }, Yi = {
3710
3719
  fallbackLocale: null,
3711
3720
  loadingDelay: 200,
3712
- formats: Zi,
3721
+ formats: Qi,
3713
3722
  warnOnMissingMessages: !0,
3714
3723
  handleMissingMessage: void 0,
3715
3724
  ignoreTag: !0
3716
- }, Qi = Ji;
3725
+ }, Ki = Yi;
3717
3726
  function de() {
3718
- return Qi;
3727
+ return Ki;
3719
3728
  }
3720
- const nt = Fe(!1);
3721
- var Yi = Object.defineProperty, Ki = Object.defineProperties, eo = Object.getOwnPropertyDescriptors, Lt = Object.getOwnPropertySymbols, to = Object.prototype.hasOwnProperty, ro = Object.prototype.propertyIsEnumerable, jt = (e, t, r) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, no = (e, t) => {
3729
+ const it = $e(!1);
3730
+ var eo = Object.defineProperty, to = Object.defineProperties, ro = Object.getOwnPropertyDescriptors, It = Object.getOwnPropertySymbols, no = Object.prototype.hasOwnProperty, io = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, oo = (e, t) => {
3722
3731
  for (var r in t || (t = {}))
3723
- to.call(t, r) && jt(e, r, t[r]);
3724
- if (Lt)
3725
- for (var r of Lt(t))
3726
- ro.call(t, r) && jt(e, r, t[r]);
3732
+ no.call(t, r) && Rt(e, r, t[r]);
3733
+ if (It)
3734
+ for (var r of It(t))
3735
+ io.call(t, r) && Rt(e, r, t[r]);
3727
3736
  return e;
3728
- }, io = (e, t) => Ki(e, eo(t));
3729
- let pt;
3730
- const De = Fe(null);
3731
- function It(e) {
3737
+ }, ao = (e, t) => to(e, ro(t));
3738
+ let _t;
3739
+ const Ge = $e(null);
3740
+ function Ut(e) {
3732
3741
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3733
3742
  }
3734
- function Xe(e, t = de().fallbackLocale) {
3735
- const r = It(e);
3736
- return t ? [.../* @__PURE__ */ new Set([...r, ...It(t)])] : r;
3743
+ function qe(e, t = de().fallbackLocale) {
3744
+ const r = Ut(e);
3745
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Ut(t)])] : r;
3737
3746
  }
3738
- function te() {
3739
- return pt != null ? pt : void 0;
3747
+ function ee() {
3748
+ return _t != null ? _t : void 0;
3740
3749
  }
3741
- De.subscribe((e) => {
3742
- pt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3750
+ Ge.subscribe((e) => {
3751
+ _t = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3743
3752
  });
3744
- const oo = (e) => {
3745
- if (e && Vi(e) && ft(e)) {
3753
+ const so = (e) => {
3754
+ if (e && qi(e) && gt(e)) {
3746
3755
  const { loadingDelay: t } = de();
3747
3756
  let r;
3748
- return typeof window != "undefined" && te() != null && t ? r = window.setTimeout(
3749
- () => nt.set(!0),
3757
+ return typeof window != "undefined" && ee() != null && t ? r = window.setTimeout(
3758
+ () => it.set(!0),
3750
3759
  t
3751
- ) : nt.set(!0), Mr(e).then(() => {
3752
- De.set(e);
3760
+ ) : it.set(!0), Nr(e).then(() => {
3761
+ Ge.set(e);
3753
3762
  }).finally(() => {
3754
- clearTimeout(r), nt.set(!1);
3763
+ clearTimeout(r), it.set(!1);
3755
3764
  });
3756
3765
  }
3757
- return De.set(e);
3758
- }, pe = io(no({}, De), {
3759
- set: oo
3760
- }), qe = (e) => {
3766
+ return Ge.set(e);
3767
+ }, pe = ao(oo({}, Ge), {
3768
+ set: so
3769
+ }), We = (e) => {
3761
3770
  const t = /* @__PURE__ */ Object.create(null);
3762
3771
  return (n) => {
3763
3772
  const i = JSON.stringify(n);
3764
3773
  return i in t ? t[i] : t[i] = e(n);
3765
3774
  };
3766
3775
  };
3767
- var ao = Object.defineProperty, Ge = Object.getOwnPropertySymbols, Nr = Object.prototype.hasOwnProperty, Ar = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bt = (e, t) => {
3776
+ var lo = Object.defineProperty, Fe = Object.getOwnPropertySymbols, Ar = Object.prototype.hasOwnProperty, Hr = Object.prototype.propertyIsEnumerable, Dt = (e, t, r) => t in e ? lo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Et = (e, t) => {
3768
3777
  for (var r in t || (t = {}))
3769
- Nr.call(t, r) && Rt(e, r, t[r]);
3770
- if (Ge)
3771
- for (var r of Ge(t))
3772
- Ar.call(t, r) && Rt(e, r, t[r]);
3778
+ Ar.call(t, r) && Dt(e, r, t[r]);
3779
+ if (Fe)
3780
+ for (var r of Fe(t))
3781
+ Hr.call(t, r) && Dt(e, r, t[r]);
3773
3782
  return e;
3774
3783
  }, ge = (e, t) => {
3775
3784
  var r = {};
3776
3785
  for (var n in e)
3777
- Nr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3778
- if (e != null && Ge)
3779
- for (var n of Ge(e))
3780
- t.indexOf(n) < 0 && Ar.call(e, n) && (r[n] = e[n]);
3786
+ Ar.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3787
+ if (e != null && Fe)
3788
+ for (var n of Fe(e))
3789
+ t.indexOf(n) < 0 && Hr.call(e, n) && (r[n] = e[n]);
3781
3790
  return r;
3782
3791
  };
3783
- const we = (e, t) => {
3792
+ const Te = (e, t) => {
3784
3793
  const { formats: r } = de();
3785
3794
  if (e in r && t in r[e])
3786
3795
  return r[e][t];
3787
3796
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3788
- }, so = qe(
3797
+ }, co = We(
3789
3798
  (e) => {
3790
3799
  var t = e, { locale: r, format: n } = t, i = ge(t, ["locale", "format"]);
3791
3800
  if (r == null)
3792
3801
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3793
- return n && (i = we("number", n)), new Intl.NumberFormat(r, i);
3802
+ return n && (i = Te("number", n)), new Intl.NumberFormat(r, i);
3794
3803
  }
3795
- ), lo = qe(
3804
+ ), uo = We(
3796
3805
  (e) => {
3797
3806
  var t = e, { locale: r, format: n } = t, i = ge(t, ["locale", "format"]);
3798
3807
  if (r == null)
3799
3808
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3800
- return n ? i = we("date", n) : Object.keys(i).length === 0 && (i = we("date", "short")), new Intl.DateTimeFormat(r, i);
3809
+ return n ? i = Te("date", n) : Object.keys(i).length === 0 && (i = Te("date", "short")), new Intl.DateTimeFormat(r, i);
3801
3810
  }
3802
- ), co = qe(
3811
+ ), ho = We(
3803
3812
  (e) => {
3804
3813
  var t = e, { locale: r, format: n } = t, i = ge(t, ["locale", "format"]);
3805
3814
  if (r == null)
3806
3815
  throw new Error(
3807
3816
  '[svelte-i18n] A "locale" must be set to format time values'
3808
3817
  );
3809
- return n ? i = we("time", n) : Object.keys(i).length === 0 && (i = we("time", "short")), new Intl.DateTimeFormat(r, i);
3818
+ return n ? i = Te("time", n) : Object.keys(i).length === 0 && (i = Te("time", "short")), new Intl.DateTimeFormat(r, i);
3810
3819
  }
3811
- ), uo = (e = {}) => {
3820
+ ), mo = (e = {}) => {
3812
3821
  var t = e, {
3813
- locale: r = te()
3822
+ locale: r = ee()
3814
3823
  } = t, n = ge(t, [
3815
3824
  "locale"
3816
3825
  ]);
3817
- return so(bt({ locale: r }, n));
3818
- }, ho = (e = {}) => {
3826
+ return co(Et({ locale: r }, n));
3827
+ }, fo = (e = {}) => {
3819
3828
  var t = e, {
3820
- locale: r = te()
3829
+ locale: r = ee()
3821
3830
  } = t, n = ge(t, [
3822
3831
  "locale"
3823
3832
  ]);
3824
- return lo(bt({ locale: r }, n));
3825
- }, mo = (e = {}) => {
3833
+ return uo(Et({ locale: r }, n));
3834
+ }, po = (e = {}) => {
3826
3835
  var t = e, {
3827
- locale: r = te()
3836
+ locale: r = ee()
3828
3837
  } = t, n = ge(t, [
3829
3838
  "locale"
3830
3839
  ]);
3831
- return co(bt({ locale: r }, n));
3832
- }, fo = qe(
3840
+ return ho(Et({ locale: r }, n));
3841
+ }, go = We(
3833
3842
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3834
- (e, t = te()) => new Ui(e, t, de().formats, {
3843
+ (e, t = ee()) => new Gi(e, t, de().formats, {
3835
3844
  ignoreTag: de().ignoreTag
3836
3845
  })
3837
- ), po = (e, t = {}) => {
3846
+ ), _o = (e, t = {}) => {
3838
3847
  var r, n, i, o;
3839
3848
  let a = t;
3840
3849
  typeof e == "object" && (a = e, e = a.id);
3841
3850
  const {
3842
3851
  values: s,
3843
- locale: c = te(),
3852
+ locale: c = ee(),
3844
3853
  default: l
3845
3854
  } = a;
3846
3855
  if (c == null)
3847
3856
  throw new Error(
3848
3857
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3849
3858
  );
3850
- let u = Sr(e, c);
3859
+ let u = xr(e, c);
3851
3860
  if (!u)
3852
3861
  u = (o = (i = (n = (r = de()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3853
3862
  else if (typeof u != "string")
@@ -3858,7 +3867,7 @@ const we = (e, t) => {
3858
3867
  return u;
3859
3868
  let d = u;
3860
3869
  try {
3861
- d = fo(u, c).format(s);
3870
+ d = go(u, c).format(s);
3862
3871
  } catch (m) {
3863
3872
  m instanceof Error && console.warn(
3864
3873
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3866,18 +3875,18 @@ const we = (e, t) => {
3866
3875
  );
3867
3876
  }
3868
3877
  return d;
3869
- }, go = (e, t) => mo(t).format(e), _o = (e, t) => ho(t).format(e), yo = (e, t) => uo(t).format(e), vo = (e, t = te()) => Sr(e, t), bo = fe([pe, Me], () => po);
3870
- fe([pe], () => go);
3871
- fe([pe], () => _o);
3878
+ }, yo = (e, t) => po(t).format(e), vo = (e, t) => fo(t).format(e), bo = (e, t) => mo(t).format(e), ko = (e, t = ee()) => xr(e, t), Eo = fe([pe, Ne], () => _o);
3872
3879
  fe([pe], () => yo);
3873
- fe([pe, Me], () => vo);
3874
- function Ut(e, t) {
3875
- wr(e, t);
3880
+ fe([pe], () => vo);
3881
+ fe([pe], () => bo);
3882
+ fe([pe, Ne], () => ko);
3883
+ function ot(e, t) {
3884
+ Tr(e, t);
3876
3885
  }
3877
- function ko(e) {
3886
+ function Co(e) {
3878
3887
  pe.set(e);
3879
3888
  }
3880
- const Dt = {
3889
+ const Gt = {
3881
3890
  en: {
3882
3891
  invalidUrl: "Failed to construct 'URL': Invalid URL",
3883
3892
  fetchConsentsError: "Error: Could not fetch consents.",
@@ -4449,18 +4458,18 @@ if (typeof window != "undefined") {
4449
4458
  }
4450
4459
  };
4451
4460
  };
4452
- customElements.define = e(customElements.define), Promise.resolve().then(function () { return require('./GeneralAnimationLoading-lTLzF5jR-8645dd28.js'); }).then(({ default: t }) => {
4461
+ customElements.define = e(customElements.define), Promise.resolve().then(function () { return require('./GeneralAnimationLoading-DLWh0_Mr-87adb410.js'); }).then(({ default: t }) => {
4453
4462
  !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
4454
4463
  });
4455
4464
  }
4456
- function Eo(e) {
4465
+ function So(e) {
4457
4466
  let t, r;
4458
4467
  return {
4459
4468
  c() {
4460
- t = it("svg"), r = it("path"), k(r, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), k(t, "xmlns", "http://www.w3.org/2000/svg"), k(t, "viewBox", "0 0 512 512");
4469
+ t = at("svg"), r = at("path"), k(r, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), k(t, "xmlns", "http://www.w3.org/2000/svg"), k(t, "viewBox", "0 0 512 512");
4461
4470
  },
4462
4471
  m(n, i) {
4463
- L(n, t, i), x(t, r);
4472
+ z(n, t, i), S(t, r);
4464
4473
  },
4465
4474
  p: $,
4466
4475
  i: $,
@@ -4470,34 +4479,34 @@ function Eo(e) {
4470
4479
  }
4471
4480
  };
4472
4481
  }
4473
- class Co extends ar {
4482
+ class xo extends sr {
4474
4483
  constructor(t) {
4475
- super(), nr(this, t, null, Eo, _t, {});
4484
+ super(), ir(this, t, null, So, vt, {});
4476
4485
  }
4477
4486
  }
4478
- customElements.define("circle-exclamation-icon", or(Co, {}, [], [], !0));
4479
- function So(e) {
4480
- cn(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}');
4481
- }
4482
- function Gt(e, t, r) {
4483
- const n = e.slice();
4484
- return n[65] = t[r], n;
4487
+ customElements.define("circle-exclamation-icon", ar(xo, {}, [], [], !0));
4488
+ function wo(e) {
4489
+ un(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}');
4485
4490
  }
4486
4491
  function Ft(e, t, r) {
4487
4492
  const n = e.slice();
4488
- return n[62] = t[r], n[63] = t, n[64] = r, n;
4493
+ return n[66] = t[r], n;
4489
4494
  }
4490
4495
  function $t(e, t, r) {
4491
4496
  const n = e.slice();
4492
- return n[65] = t[r], n;
4497
+ return n[63] = t[r], n[64] = t, n[65] = r, n;
4498
+ }
4499
+ function Vt(e, t, r) {
4500
+ const n = e.slice();
4501
+ return n[66] = t[r], n;
4493
4502
  }
4494
- function xo(e) {
4503
+ function To(e) {
4495
4504
  let t, r, n = le(
4496
4505
  /*playerConsents*/
4497
4506
  e[9]
4498
4507
  ), i = [];
4499
4508
  for (let o = 0; o < n.length; o += 1)
4500
- i[o] = Vt(Gt(e, n, o));
4509
+ i[o] = Xt(Ft(e, n, o));
4501
4510
  return {
4502
4511
  c() {
4503
4512
  t = T("div"), r = T("form");
@@ -4506,7 +4515,7 @@ function xo(e) {
4506
4515
  k(r, "class", "checkbox svelte-etk3ty"), k(t, "class", "legacyStyle");
4507
4516
  },
4508
4517
  m(o, a) {
4509
- L(o, t, a), x(t, r);
4518
+ z(o, t, a), S(t, r);
4510
4519
  for (let s = 0; s < i.length; s += 1)
4511
4520
  i[s] && i[s].m(r, null);
4512
4521
  e[32](r);
@@ -4520,8 +4529,8 @@ function xo(e) {
4520
4529
  );
4521
4530
  let s;
4522
4531
  for (s = 0; s < n.length; s += 1) {
4523
- const c = Gt(o, n, s);
4524
- i[s] ? i[s].p(c, a) : (i[s] = Vt(c), i[s].c(), i[s].m(r, null));
4532
+ const c = Ft(o, n, s);
4533
+ i[s] ? i[s].p(c, a) : (i[s] = Xt(c), i[s].c(), i[s].m(r, null));
4525
4534
  }
4526
4535
  for (; s < i.length; s += 1)
4527
4536
  i[s].d(1);
@@ -4529,11 +4538,11 @@ function xo(e) {
4529
4538
  }
4530
4539
  },
4531
4540
  d(o) {
4532
- o && O(t), yt(i, o), e[32](null);
4541
+ o && O(t), bt(i, o), e[32](null);
4533
4542
  }
4534
4543
  };
4535
4544
  }
4536
- function wo(e) {
4545
+ function Mo(e) {
4537
4546
  let t = (
4538
4547
  /*$_*/
4539
4548
  e[16]("title") || /*$_*/
@@ -4541,40 +4550,40 @@ function wo(e) {
4541
4550
  ), r, n, i, o = (
4542
4551
  /*$_*/
4543
4552
  (e[16]("saveButtonContent") || "Save Consents") + ""
4544
- ), a, s, c, l, u, d = t && Xt(e), m = le(
4553
+ ), a, s, c, l, u, d = t && qt(e), m = le(
4545
4554
  /*consentsCategories*/
4546
4555
  e[8]
4547
4556
  ), y = [];
4548
4557
  for (let p = 0; p < m.length; p += 1)
4549
- y[p] = Yt(Ft(e, m, p));
4558
+ y[p] = Kt($t(e, m, p));
4550
4559
  let g = (
4551
4560
  /*errorMessage*/
4552
- e[6] && Kt(e)
4561
+ e[6] && er(e)
4553
4562
  );
4554
4563
  return {
4555
4564
  c() {
4556
4565
  d && d.c(), r = F();
4557
4566
  for (let p = 0; p < y.length; p += 1)
4558
4567
  y[p].c();
4559
- n = F(), i = T("button"), s = F(), g && g.c(), c = dn(), k(i, "class", "SaveConsentsButton svelte-etk3ty"), i.disabled = a = !/*isValid*/
4568
+ n = F(), i = T("button"), s = F(), g && g.c(), c = mn(), k(i, "class", "SaveConsentsButton svelte-etk3ty"), i.disabled = a = !/*isValid*/
4560
4569
  e[14];
4561
4570
  },
4562
- m(p, S) {
4563
- d && d.m(p, S), L(p, r, S);
4571
+ m(p, C) {
4572
+ d && d.m(p, C), z(p, r, C);
4564
4573
  for (let _ = 0; _ < y.length; _ += 1)
4565
- y[_] && y[_].m(p, S);
4566
- L(p, n, S), L(p, i, S), i.innerHTML = o, L(p, s, S), g && g.m(p, S), L(p, c, S), l || (u = Ce(
4574
+ y[_] && y[_].m(p, C);
4575
+ z(p, n, C), z(p, i, C), i.innerHTML = o, z(p, s, C), g && g.m(p, C), z(p, c, C), l || (u = Se(
4567
4576
  i,
4568
4577
  "click",
4569
4578
  /*saveChanges*/
4570
4579
  e[18]
4571
4580
  ), l = !0);
4572
4581
  },
4573
- p(p, S) {
4574
- if (S[0] & /*$_*/
4582
+ p(p, C) {
4583
+ if (C[0] & /*$_*/
4575
4584
  65536 && (t = /*$_*/
4576
4585
  p[16]("title") || /*$_*/
4577
- p[16]("description")), t ? d ? d.p(p, S) : (d = Xt(p), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), S[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, translate, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
4586
+ p[16]("description")), t ? d ? d.p(p, C) : (d = qt(p), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), C[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, translate, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
4578
4587
  1719056) {
4579
4588
  m = le(
4580
4589
  /*consentsCategories*/
@@ -4582,40 +4591,40 @@ function wo(e) {
4582
4591
  );
4583
4592
  let _;
4584
4593
  for (_ = 0; _ < m.length; _ += 1) {
4585
- const v = Ft(p, m, _);
4586
- y[_] ? y[_].p(v, S) : (y[_] = Yt(v), y[_].c(), y[_].m(n.parentNode, n));
4594
+ const v = $t(p, m, _);
4595
+ y[_] ? y[_].p(v, C) : (y[_] = Kt(v), y[_].c(), y[_].m(n.parentNode, n));
4587
4596
  }
4588
4597
  for (; _ < y.length; _ += 1)
4589
4598
  y[_].d(1);
4590
4599
  y.length = m.length;
4591
4600
  }
4592
- S[0] & /*$_*/
4601
+ C[0] & /*$_*/
4593
4602
  65536 && o !== (o = /*$_*/
4594
- (p[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), S[0] & /*isValid*/
4603
+ (p[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), C[0] & /*isValid*/
4595
4604
  16384 && a !== (a = !/*isValid*/
4596
4605
  p[14]) && (i.disabled = a), /*errorMessage*/
4597
- p[6] ? g ? g.p(p, S) : (g = Kt(p), g.c(), g.m(c.parentNode, c)) : g && (g.d(1), g = null);
4606
+ p[6] ? g ? g.p(p, C) : (g = er(p), g.c(), g.m(c.parentNode, c)) : g && (g.d(1), g = null);
4598
4607
  },
4599
4608
  d(p) {
4600
- p && (O(r), O(n), O(i), O(s), O(c)), d && d.d(p), yt(y, p), g && g.d(p), l = !1, u();
4609
+ p && (O(r), O(n), O(i), O(s), O(c)), d && d.d(p), bt(y, p), g && g.d(p), l = !1, u();
4601
4610
  }
4602
4611
  };
4603
4612
  }
4604
- function To(e) {
4613
+ function No(e) {
4605
4614
  let t, r, n;
4606
4615
  return {
4607
4616
  c() {
4608
- t = T("div"), r = T("strong"), n = ee(
4617
+ t = T("div"), r = T("strong"), n = K(
4609
4618
  /*fatalError*/
4610
4619
  e[7]
4611
4620
  ), k(r, "class", "ErrorMessage svelte-etk3ty"), k(t, "class", "ContainerCenter svelte-etk3ty");
4612
4621
  },
4613
4622
  m(i, o) {
4614
- L(i, t, o), x(t, r), x(r, n);
4623
+ z(i, t, o), S(t, r), S(r, n);
4615
4624
  },
4616
4625
  p(i, o) {
4617
4626
  o[0] & /*fatalError*/
4618
- 128 && Te(
4627
+ 128 && Me(
4619
4628
  n,
4620
4629
  /*fatalError*/
4621
4630
  i[7]
@@ -4626,21 +4635,21 @@ function To(e) {
4626
4635
  }
4627
4636
  };
4628
4637
  }
4629
- function Mo(e) {
4638
+ function Ao(e) {
4630
4639
  let t;
4631
4640
  return {
4632
4641
  c() {
4633
- t = T("general-animation-loading"), K(
4642
+ t = T("general-animation-loading"), Y(
4634
4643
  t,
4635
4644
  "clientstyling",
4636
4645
  /*clientstyling*/
4637
4646
  e[1]
4638
- ), K(
4647
+ ), Y(
4639
4648
  t,
4640
4649
  "clientstylingurl",
4641
4650
  /*clientstylingurl*/
4642
4651
  e[2]
4643
- ), K(
4652
+ ), Y(
4644
4653
  t,
4645
4654
  "mbsource",
4646
4655
  /*mbsource*/
@@ -4648,23 +4657,23 @@ function Mo(e) {
4648
4657
  );
4649
4658
  },
4650
4659
  m(r, n) {
4651
- L(r, t, n);
4660
+ z(r, t, n);
4652
4661
  },
4653
4662
  p(r, n) {
4654
4663
  n[0] & /*clientstyling*/
4655
- 2 && K(
4664
+ 2 && Y(
4656
4665
  t,
4657
4666
  "clientstyling",
4658
4667
  /*clientstyling*/
4659
4668
  r[1]
4660
4669
  ), n[0] & /*clientstylingurl*/
4661
- 4 && K(
4670
+ 4 && Y(
4662
4671
  t,
4663
4672
  "clientstylingurl",
4664
4673
  /*clientstylingurl*/
4665
4674
  r[2]
4666
4675
  ), n[0] & /*mbsource*/
4667
- 8 && K(
4676
+ 8 && Y(
4668
4677
  t,
4669
4678
  "mbsource",
4670
4679
  /*mbsource*/
@@ -4676,161 +4685,161 @@ function Mo(e) {
4676
4685
  }
4677
4686
  };
4678
4687
  }
4679
- function Vt(e) {
4688
+ function Xt(e) {
4680
4689
  let t, r, n, i, o, a, s, c, l = (
4681
4690
  /*translate*/
4682
4691
  e[17](
4683
4692
  `${/*consent*/
4684
- e[65].tagCode}__description`,
4693
+ e[66].tagCode}__description`,
4685
4694
  /*consent*/
4686
- e[65].friendlyName
4695
+ e[66].friendlyName
4687
4696
  ) + ""
4688
4697
  ), u = (
4689
4698
  /*consent*/
4690
- e[65].mustAccept ? " *" : ""
4691
- ), d, m, y, g, p, S, _, v, C;
4699
+ e[66].mustAccept ? " *" : ""
4700
+ ), d, m, y, g, p, C, _, v, x;
4692
4701
  function H(...E) {
4693
4702
  return (
4694
4703
  /*input_handler_1*/
4695
4704
  e[31](
4696
4705
  /*consent*/
4697
- e[65],
4706
+ e[66],
4698
4707
  ...E
4699
4708
  )
4700
4709
  );
4701
4710
  }
4702
4711
  return {
4703
4712
  c() {
4704
- t = T("div"), r = T("input"), o = F(), a = T("label"), s = T("div"), c = new rr(!1), d = ee(u), y = F(), g = T("small"), S = F(), k(r, "class", "checkbox__input svelte-etk3ty"), k(r, "type", "checkbox"), r.checked = n = /*consent*/
4705
- e[65].status === "1", k(r, "id", i = `${/*consent*/
4706
- e[65].tagCode}__input`), c.a = d, k(s, "class", "checkbox__label-text svelte-etk3ty"), k(a, "class", "checkbox__label svelte-etk3ty"), k(a, "for", m = `${/*consent*/
4707
- e[65].tagCode}__input`), k(g, "class", "checkbox__error-message svelte-etk3ty"), k(g, "id", p = "checkBoxError__" + /*consent*/
4708
- e[65].tagCode), k(t, "class", _ = "checkbox__wrapper " + /*consent*/
4709
- e[65].tagCode + "__input svelte-etk3ty");
4713
+ t = T("div"), r = T("input"), o = F(), a = T("label"), s = T("div"), c = new nr(!1), d = K(u), y = F(), g = T("small"), C = F(), k(r, "class", "checkbox__input svelte-etk3ty"), k(r, "type", "checkbox"), r.checked = n = /*consent*/
4714
+ e[66].status === "1", k(r, "id", i = `${/*consent*/
4715
+ e[66].tagCode}__input`), c.a = d, k(s, "class", "checkbox__label-text svelte-etk3ty"), k(a, "class", "checkbox__label svelte-etk3ty"), k(a, "for", m = `${/*consent*/
4716
+ e[66].tagCode}__input`), k(g, "class", "checkbox__error-message svelte-etk3ty"), k(g, "id", p = "checkBoxError__" + /*consent*/
4717
+ e[66].tagCode), k(t, "class", _ = "checkbox__wrapper " + /*consent*/
4718
+ e[66].tagCode + "__input svelte-etk3ty");
4710
4719
  },
4711
- m(E, z) {
4712
- L(E, t, z), x(t, r), x(t, o), x(t, a), x(a, s), c.m(l, s), x(s, d), x(t, y), x(t, g), x(t, S), v || (C = Ce(r, "input", H), v = !0);
4720
+ m(E, j) {
4721
+ z(E, t, j), S(t, r), S(t, o), S(t, a), S(a, s), c.m(l, s), S(s, d), S(t, y), S(t, g), S(t, C), v || (x = Se(r, "input", H), v = !0);
4713
4722
  },
4714
- p(E, z) {
4715
- e = E, z[0] & /*playerConsents*/
4723
+ p(E, j) {
4724
+ e = E, j[0] & /*playerConsents*/
4716
4725
  512 && n !== (n = /*consent*/
4717
- e[65].status === "1") && (r.checked = n), z[0] & /*playerConsents*/
4726
+ e[66].status === "1") && (r.checked = n), j[0] & /*playerConsents*/
4718
4727
  512 && i !== (i = `${/*consent*/
4719
- e[65].tagCode}__input`) && k(r, "id", i), z[0] & /*playerConsents*/
4728
+ e[66].tagCode}__input`) && k(r, "id", i), j[0] & /*playerConsents*/
4720
4729
  512 && l !== (l = /*translate*/
4721
4730
  e[17](
4722
4731
  `${/*consent*/
4723
- e[65].tagCode}__description`,
4732
+ e[66].tagCode}__description`,
4724
4733
  /*consent*/
4725
- e[65].friendlyName
4726
- ) + "") && c.p(l), z[0] & /*playerConsents*/
4734
+ e[66].friendlyName
4735
+ ) + "") && c.p(l), j[0] & /*playerConsents*/
4727
4736
  512 && u !== (u = /*consent*/
4728
- e[65].mustAccept ? " *" : "") && Te(d, u), z[0] & /*playerConsents*/
4737
+ e[66].mustAccept ? " *" : "") && Me(d, u), j[0] & /*playerConsents*/
4729
4738
  512 && m !== (m = `${/*consent*/
4730
- e[65].tagCode}__input`) && k(a, "for", m), z[0] & /*playerConsents*/
4739
+ e[66].tagCode}__input`) && k(a, "for", m), j[0] & /*playerConsents*/
4731
4740
  512 && p !== (p = "checkBoxError__" + /*consent*/
4732
- e[65].tagCode) && k(g, "id", p), z[0] & /*playerConsents*/
4741
+ e[66].tagCode) && k(g, "id", p), j[0] & /*playerConsents*/
4733
4742
  512 && _ !== (_ = "checkbox__wrapper " + /*consent*/
4734
- e[65].tagCode + "__input svelte-etk3ty") && k(t, "class", _);
4743
+ e[66].tagCode + "__input svelte-etk3ty") && k(t, "class", _);
4735
4744
  },
4736
4745
  d(E) {
4737
- E && O(t), v = !1, C();
4746
+ E && O(t), v = !1, x();
4738
4747
  }
4739
4748
  };
4740
4749
  }
4741
- function Xt(e) {
4750
+ function qt(e) {
4742
4751
  let t, r = (
4743
4752
  /*$_*/
4744
4753
  e[16]("title")
4745
4754
  ), n, i = (
4746
4755
  /*$_*/
4747
4756
  e[16]("description")
4748
- ), o = r && qt(e), a = i && Wt(e);
4757
+ ), o = r && Wt(e), a = i && Zt(e);
4749
4758
  return {
4750
4759
  c() {
4751
4760
  t = T("div"), o && o.c(), n = F(), a && a.c(), k(t, "class", "PlayerConsentsHeader svelte-etk3ty");
4752
4761
  },
4753
4762
  m(s, c) {
4754
- L(s, t, c), o && o.m(t, null), x(t, n), a && a.m(t, null);
4763
+ z(s, t, c), o && o.m(t, null), S(t, n), a && a.m(t, null);
4755
4764
  },
4756
4765
  p(s, c) {
4757
4766
  c[0] & /*$_*/
4758
4767
  65536 && (r = /*$_*/
4759
- s[16]("title")), r ? o ? o.p(s, c) : (o = qt(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), c[0] & /*$_*/
4768
+ s[16]("title")), r ? o ? o.p(s, c) : (o = Wt(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), c[0] & /*$_*/
4760
4769
  65536 && (i = /*$_*/
4761
- s[16]("description")), i ? a ? a.p(s, c) : (a = Wt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4770
+ s[16]("description")), i ? a ? a.p(s, c) : (a = Zt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4762
4771
  },
4763
4772
  d(s) {
4764
4773
  s && O(t), o && o.d(), a && a.d();
4765
4774
  }
4766
4775
  };
4767
4776
  }
4768
- function qt(e) {
4777
+ function Wt(e) {
4769
4778
  let t, r = (
4770
4779
  /*$_*/
4771
4780
  e[16]("title") + ""
4772
4781
  ), n;
4773
4782
  return {
4774
4783
  c() {
4775
- t = T("h2"), n = ee(r), k(t, "class", "PlayerConsentsTitle");
4784
+ t = T("h2"), n = K(r), k(t, "class", "PlayerConsentsTitle");
4776
4785
  },
4777
4786
  m(i, o) {
4778
- L(i, t, o), x(t, n);
4787
+ z(i, t, o), S(t, n);
4779
4788
  },
4780
4789
  p(i, o) {
4781
4790
  o[0] & /*$_*/
4782
4791
  65536 && r !== (r = /*$_*/
4783
- i[16]("title") + "") && Te(n, r);
4792
+ i[16]("title") + "") && Me(n, r);
4784
4793
  },
4785
4794
  d(i) {
4786
4795
  i && O(t);
4787
4796
  }
4788
4797
  };
4789
4798
  }
4790
- function Wt(e) {
4799
+ function Zt(e) {
4791
4800
  let t, r = (
4792
4801
  /*$_*/
4793
4802
  e[16]("description") + ""
4794
4803
  ), n;
4795
4804
  return {
4796
4805
  c() {
4797
- t = T("p"), n = ee(r), k(t, "class", "PlayerConsentsDescription");
4806
+ t = T("p"), n = K(r), k(t, "class", "PlayerConsentsDescription");
4798
4807
  },
4799
4808
  m(i, o) {
4800
- L(i, t, o), x(t, n);
4809
+ z(i, t, o), S(t, n);
4801
4810
  },
4802
4811
  p(i, o) {
4803
4812
  o[0] & /*$_*/
4804
4813
  65536 && r !== (r = /*$_*/
4805
- i[16]("description") + "") && Te(n, r);
4814
+ i[16]("description") + "") && Me(n, r);
4806
4815
  },
4807
4816
  d(i) {
4808
4817
  i && O(t);
4809
4818
  }
4810
4819
  };
4811
4820
  }
4812
- function Zt(e) {
4821
+ function Jt(e) {
4813
4822
  let t;
4814
4823
  return {
4815
4824
  c() {
4816
4825
  t = T("sup"), t.textContent = "*", k(t, "class", "ConsentRequired svelte-etk3ty");
4817
4826
  },
4818
4827
  m(r, n) {
4819
- L(r, t, n);
4828
+ z(r, t, n);
4820
4829
  },
4821
4830
  d(r) {
4822
4831
  r && O(t);
4823
4832
  }
4824
4833
  };
4825
4834
  }
4826
- function Jt(e) {
4835
+ function Qt(e) {
4827
4836
  let t, r = (
4828
4837
  /*translate*/
4829
4838
  e[17](
4830
4839
  `${/*consent*/
4831
- e[65].tagCode}__description`,
4840
+ e[66].tagCode}__description`,
4832
4841
  /*consent*/
4833
- e[65].description
4842
+ e[66].description
4834
4843
  ) + ""
4835
4844
  );
4836
4845
  return {
@@ -4838,16 +4847,16 @@ function Jt(e) {
4838
4847
  t = T("p"), k(t, "class", "ConsentDescription svelte-etk3ty");
4839
4848
  },
4840
4849
  m(n, i) {
4841
- L(n, t, i), t.innerHTML = r;
4850
+ z(n, t, i), t.innerHTML = r;
4842
4851
  },
4843
4852
  p(n, i) {
4844
4853
  i[0] & /*playerConsents, consentsCategories*/
4845
4854
  768 && r !== (r = /*translate*/
4846
4855
  n[17](
4847
4856
  `${/*consent*/
4848
- n[65].tagCode}__description`,
4857
+ n[66].tagCode}__description`,
4849
4858
  /*consent*/
4850
- n[65].description
4859
+ n[66].description
4851
4860
  ) + "") && (t.innerHTML = r);
4852
4861
  },
4853
4862
  d(n) {
@@ -4855,91 +4864,91 @@ function Jt(e) {
4855
4864
  }
4856
4865
  };
4857
4866
  }
4858
- function Qt(e) {
4867
+ function Yt(e) {
4859
4868
  let t, r, n, i, o = (
4860
4869
  /*translate*/
4861
4870
  e[17](
4862
4871
  `${/*consent*/
4863
- e[65].tagCode}__name`,
4872
+ e[66].tagCode}__name`,
4864
4873
  /*consent*/
4865
- e[65].friendlyName
4874
+ e[66].friendlyName
4866
4875
  ) + ""
4867
- ), a, s, c, l, u, d, m, y, g, p, S, _ = (
4876
+ ), a, s, c, l, u, d, m, y, g, p, C, _ = (
4868
4877
  /*consent*/
4869
- e[65].mustAccept === !0 && Zt()
4878
+ e[66].mustAccept === !0 && Jt()
4870
4879
  ), v = (
4871
4880
  /*displayconsentdescription*/
4872
- e[4] === "true" && Jt(e)
4881
+ e[4] === "true" && Qt(e)
4873
4882
  );
4874
- function C(...H) {
4883
+ function x(...H) {
4875
4884
  return (
4876
4885
  /*input_handler*/
4877
4886
  e[30](
4878
4887
  /*consent*/
4879
- e[65],
4888
+ e[66],
4880
4889
  ...H
4881
4890
  )
4882
4891
  );
4883
4892
  }
4884
4893
  return {
4885
4894
  c() {
4886
- t = T("div"), r = T("div"), n = T("h4"), i = new rr(!1), a = F(), _ && _.c(), s = F(), v && v.c(), c = F(), l = T("label"), u = T("input"), y = F(), g = T("span"), i.a = a, k(n, "class", "ConsentName svelte-etk3ty"), k(r, "class", "ConsentContent"), k(u, "type", "checkbox"), u.disabled = d = /*consent*/
4887
- e[65].mustAccept === !0 && /*initialConsentsState*/
4895
+ t = T("div"), r = T("div"), n = T("h4"), i = new nr(!1), a = F(), _ && _.c(), s = F(), v && v.c(), c = F(), l = T("label"), u = T("input"), y = F(), g = T("span"), i.a = a, k(n, "class", "ConsentName svelte-etk3ty"), k(r, "class", "ConsentContent"), k(u, "type", "checkbox"), u.disabled = d = /*consent*/
4896
+ e[66].mustAccept === !0 && /*initialConsentsState*/
4888
4897
  e[12][
4889
4898
  /*consent*/
4890
- e[65].tagCode
4899
+ e[66].tagCode
4891
4900
  ] === !0, u.checked = m = /*consentsState*/
4892
4901
  e[13][
4893
4902
  /*consent*/
4894
- e[65].tagCode
4903
+ e[66].tagCode
4895
4904
  ], k(u, "class", "svelte-etk3ty"), k(g, "class", "Slider Round svelte-etk3ty"), k(l, "class", "ToggleSwitch svelte-etk3ty"), k(t, "class", "ConsentItem svelte-etk3ty");
4896
4905
  },
4897
4906
  m(H, E) {
4898
- L(H, t, E), x(t, r), x(r, n), i.m(o, n), x(n, a), _ && _.m(n, null), x(r, s), v && v.m(r, null), x(t, c), x(t, l), x(l, u), x(l, y), x(l, g), p || (S = Ce(u, "input", C), p = !0);
4907
+ z(H, t, E), S(t, r), S(r, n), i.m(o, n), S(n, a), _ && _.m(n, null), S(r, s), v && v.m(r, null), S(t, c), S(t, l), S(l, u), S(l, y), S(l, g), p || (C = Se(u, "input", x), p = !0);
4899
4908
  },
4900
4909
  p(H, E) {
4901
4910
  e = H, E[0] & /*playerConsents, consentsCategories*/
4902
4911
  768 && o !== (o = /*translate*/
4903
4912
  e[17](
4904
4913
  `${/*consent*/
4905
- e[65].tagCode}__name`,
4914
+ e[66].tagCode}__name`,
4906
4915
  /*consent*/
4907
- e[65].friendlyName
4916
+ e[66].friendlyName
4908
4917
  ) + "") && i.p(o), /*consent*/
4909
- e[65].mustAccept === !0 ? _ || (_ = Zt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
4910
- e[4] === "true" ? v ? v.p(e, E) : (v = Jt(e), v.c(), v.m(r, null)) : v && (v.d(1), v = null), E[0] & /*playerConsents, consentsCategories, initialConsentsState*/
4918
+ e[66].mustAccept === !0 ? _ || (_ = Jt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
4919
+ e[4] === "true" ? v ? v.p(e, E) : (v = Qt(e), v.c(), v.m(r, null)) : v && (v.d(1), v = null), E[0] & /*playerConsents, consentsCategories, initialConsentsState*/
4911
4920
  4864 && d !== (d = /*consent*/
4912
- e[65].mustAccept === !0 && /*initialConsentsState*/
4921
+ e[66].mustAccept === !0 && /*initialConsentsState*/
4913
4922
  e[12][
4914
4923
  /*consent*/
4915
- e[65].tagCode
4924
+ e[66].tagCode
4916
4925
  ] === !0) && (u.disabled = d), E[0] & /*consentsState, playerConsents, consentsCategories*/
4917
4926
  8960 && m !== (m = /*consentsState*/
4918
4927
  e[13][
4919
4928
  /*consent*/
4920
- e[65].tagCode
4929
+ e[66].tagCode
4921
4930
  ]) && (u.checked = m);
4922
4931
  },
4923
4932
  d(H) {
4924
- H && O(t), _ && _.d(), v && v.d(), p = !1, S();
4933
+ H && O(t), _ && _.d(), v && v.d(), p = !1, C();
4925
4934
  }
4926
4935
  };
4927
4936
  }
4928
- function Yt(e) {
4937
+ function Kt(e) {
4929
4938
  let t, r, n, i = (
4930
4939
  /*translate*/
4931
4940
  e[17](
4932
4941
  `${/*category*/
4933
- e[62].categoryTagCode}__category`,
4942
+ e[63].categoryTagCode}__category`,
4934
4943
  /*category*/
4935
- e[62].friendlyName
4944
+ e[63].friendlyName
4936
4945
  ) + ""
4937
4946
  ), o, a, s, c, l, u, d, m, y;
4938
4947
  function g() {
4939
4948
  e[27].call(
4940
4949
  s,
4941
4950
  /*category*/
4942
- e[62]
4951
+ e[63]
4943
4952
  );
4944
4953
  }
4945
4954
  function p() {
@@ -4947,95 +4956,95 @@ function Yt(e) {
4947
4956
  /*change_handler*/
4948
4957
  e[28](
4949
4958
  /*category*/
4950
- e[62]
4959
+ e[63]
4951
4960
  )
4952
4961
  );
4953
4962
  }
4954
- function S(...C) {
4963
+ function C(...x) {
4955
4964
  return (
4956
4965
  /*func*/
4957
4966
  e[29](
4958
4967
  /*category*/
4959
- e[62],
4960
- ...C
4968
+ e[63],
4969
+ ...x
4961
4970
  )
4962
4971
  );
4963
4972
  }
4964
4973
  let _ = le(
4965
4974
  /*playerConsents*/
4966
- e[9].filter(S)
4975
+ e[9].filter(C)
4967
4976
  ), v = [];
4968
- for (let C = 0; C < _.length; C += 1)
4969
- v[C] = Qt($t(e, _, C));
4977
+ for (let x = 0; x < _.length; x += 1)
4978
+ v[x] = Yt(Vt(e, _, x));
4970
4979
  return {
4971
4980
  c() {
4972
4981
  t = T("div"), r = T("div"), n = T("h3"), o = F(), a = T("label"), s = T("input"), c = F(), l = T("span"), u = F(), d = T("div");
4973
- for (let C = 0; C < v.length; C += 1)
4974
- v[C].c();
4982
+ for (let x = 0; x < v.length; x += 1)
4983
+ v[x].c();
4975
4984
  k(s, "type", "checkbox"), k(s, "class", "svelte-etk3ty"), k(l, "class", "Slider Round svelte-etk3ty"), k(a, "class", "ToggleSwitch Big svelte-etk3ty"), k(r, "class", "AccordionHeader svelte-etk3ty"), k(d, "class", "AccordionContent svelte-etk3ty"), k(t, "class", "AccordionItem svelte-etk3ty");
4976
4985
  },
4977
- m(C, H) {
4978
- L(C, t, H), x(t, r), x(r, n), n.innerHTML = i, x(r, o), x(r, a), x(a, s), s.checked = /*categoryToggle*/
4986
+ m(x, H) {
4987
+ z(x, t, H), S(t, r), S(r, n), n.innerHTML = i, S(r, o), S(r, a), S(a, s), s.checked = /*categoryToggle*/
4979
4988
  e[11][
4980
4989
  /*category*/
4981
- e[62].categoryTagCode
4982
- ], x(a, c), x(a, l), x(t, u), x(t, d);
4990
+ e[63].categoryTagCode
4991
+ ], S(a, c), S(a, l), S(t, u), S(t, d);
4983
4992
  for (let E = 0; E < v.length; E += 1)
4984
4993
  v[E] && v[E].m(d, null);
4985
4994
  m || (y = [
4986
- Ce(s, "change", g),
4987
- Ce(s, "change", p)
4995
+ Se(s, "change", g),
4996
+ Se(s, "change", p)
4988
4997
  ], m = !0);
4989
4998
  },
4990
- p(C, H) {
4991
- if (e = C, H[0] & /*consentsCategories*/
4999
+ p(x, H) {
5000
+ if (e = x, H[0] & /*consentsCategories*/
4992
5001
  256 && i !== (i = /*translate*/
4993
5002
  e[17](
4994
5003
  `${/*category*/
4995
- e[62].categoryTagCode}__category`,
5004
+ e[63].categoryTagCode}__category`,
4996
5005
  /*category*/
4997
- e[62].friendlyName
5006
+ e[63].friendlyName
4998
5007
  ) + "") && (n.innerHTML = i), H[0] & /*categoryToggle, consentsCategories*/
4999
5008
  2304 && (s.checked = /*categoryToggle*/
5000
5009
  e[11][
5001
5010
  /*category*/
5002
- e[62].categoryTagCode
5011
+ e[63].categoryTagCode
5003
5012
  ]), H[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, translate, displayconsentdescription*/
5004
5013
  1192720) {
5005
5014
  _ = le(
5006
5015
  /*playerConsents*/
5007
- e[9].filter(S)
5016
+ e[9].filter(C)
5008
5017
  );
5009
5018
  let E;
5010
5019
  for (E = 0; E < _.length; E += 1) {
5011
- const z = $t(e, _, E);
5012
- v[E] ? v[E].p(z, H) : (v[E] = Qt(z), v[E].c(), v[E].m(d, null));
5020
+ const j = Vt(e, _, E);
5021
+ v[E] ? v[E].p(j, H) : (v[E] = Yt(j), v[E].c(), v[E].m(d, null));
5013
5022
  }
5014
5023
  for (; E < v.length; E += 1)
5015
5024
  v[E].d(1);
5016
5025
  v.length = _.length;
5017
5026
  }
5018
5027
  },
5019
- d(C) {
5020
- C && O(t), yt(v, C), m = !1, me(y);
5028
+ d(x) {
5029
+ x && O(t), bt(v, x), m = !1, me(y);
5021
5030
  }
5022
5031
  };
5023
5032
  }
5024
- function Kt(e) {
5033
+ function er(e) {
5025
5034
  let t, r, n, i, o;
5026
5035
  return {
5027
5036
  c() {
5028
- t = T("div"), r = T("circle-exclamation-icon"), n = F(), i = T("strong"), o = ee(
5037
+ t = T("div"), r = T("circle-exclamation-icon"), n = F(), i = T("strong"), o = K(
5029
5038
  /*errorMessage*/
5030
5039
  e[6]
5031
- ), K(r, "class", "svelte-etk3ty"), k(i, "class", "ErrorMessage svelte-etk3ty"), k(t, "class", "ConsentErrorContainer svelte-etk3ty");
5040
+ ), Y(r, "class", "svelte-etk3ty"), k(i, "class", "ErrorMessage svelte-etk3ty"), k(t, "class", "ConsentErrorContainer svelte-etk3ty");
5032
5041
  },
5033
5042
  m(a, s) {
5034
- L(a, t, s), x(t, r), x(t, n), x(t, i), x(i, o);
5043
+ z(a, t, s), S(t, r), S(t, n), S(t, i), S(i, o);
5035
5044
  },
5036
5045
  p(a, s) {
5037
5046
  s[0] & /*errorMessage*/
5038
- 64 && Te(
5047
+ 64 && Me(
5039
5048
  o,
5040
5049
  /*errorMessage*/
5041
5050
  a[6]
@@ -5046,27 +5055,27 @@ function Kt(e) {
5046
5055
  }
5047
5056
  };
5048
5057
  }
5049
- function No(e) {
5058
+ function Ho(e) {
5050
5059
  let t, r;
5051
5060
  function n(a, s) {
5052
5061
  if (
5053
5062
  /*isLoading*/
5054
5063
  a[10]
5055
5064
  )
5056
- return Mo;
5065
+ return Ao;
5057
5066
  if (
5058
5067
  /*fatalError*/
5059
5068
  a[7]
5060
5069
  )
5061
- return To;
5070
+ return No;
5062
5071
  if (
5063
5072
  /*session*/
5064
5073
  a[0]
5065
5074
  )
5066
- return wo;
5075
+ return Mo;
5067
5076
  if (!/*session*/
5068
5077
  a[0])
5069
- return xo;
5078
+ return To;
5070
5079
  }
5071
5080
  let i = n(e), o = i && i(e);
5072
5081
  return {
@@ -5074,7 +5083,7 @@ function No(e) {
5074
5083
  t = T("div"), r = T("div"), o && o.c(), k(r, "class", "ConsentsContainer svelte-etk3ty"), k(t, "class", "" + " svelte-etk3ty");
5075
5084
  },
5076
5085
  m(a, s) {
5077
- L(a, t, s), x(t, r), o && o.m(r, null), e[33](r);
5086
+ z(a, t, s), S(t, r), o && o.m(r, null), e[33](r);
5078
5087
  },
5079
5088
  p(a, s) {
5080
5089
  i === (i = n(a)) && o ? o.p(a, s) : (o && o.d(1), o = i && i(a), o && (o.c(), o.m(r, null)));
@@ -5086,46 +5095,46 @@ function No(e) {
5086
5095
  }
5087
5096
  };
5088
5097
  }
5089
- function Ao(e, t, r) {
5098
+ function Po(e, t, r) {
5090
5099
  let n;
5091
- ln(e, bo, (h) => r(16, n = h));
5092
- let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: l } = t, { lang: u = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl: m = "" } = t, { modalconsents: y = "false" } = t, g, p, S = !1, _ = !1, v = "", C = "", H = "", E = "", z = [], J = [], j = [], _e = !0, Ne = !0, V = {}, Ae = {}, Q = {}, D = {}, ye, He, R = {
5100
+ cn(e, Eo, (h) => r(16, n = h));
5101
+ let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: l } = t, { lang: u = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl: m = "" } = t, { modalconsents: y = "false" } = t, g, p, C, _ = !1, v = !1, x = "", H = "", E = "", j = "", te = [], _e = [], L = [], ye = !0, Ae = !0, V = {}, He = {}, J = {}, D = {}, ve, Pe, R = {
5093
5102
  none: { key: "0", value: "None" },
5094
5103
  accepted: { key: "1", value: "Accepted" },
5095
5104
  expired: { key: "2", value: "Expired" },
5096
5105
  denied: { key: "3", value: "Denied" },
5097
5106
  suspended: { key: "4", value: "Suspended" }
5098
- }, Pe = !1;
5099
- Object.keys(Dt).forEach((h) => {
5100
- Ut(h, Dt[h]);
5107
+ }, Be = !1;
5108
+ Object.keys(Gt).forEach((h) => {
5109
+ ot(h, Gt[h]);
5101
5110
  });
5102
- const Pr = () => {
5103
- ko(u);
5104
- }, Br = () => {
5111
+ const Br = () => {
5112
+ Co(u);
5113
+ }, Or = () => {
5105
5114
  let h = new URL(m);
5106
5115
  fetch(h.href).then((f) => f.json()).then((f) => {
5107
5116
  Object.keys(f).forEach((w) => {
5108
- Ut(w, f[w]);
5117
+ ot(w, f[w]);
5109
5118
  });
5110
5119
  }).catch((f) => {
5111
5120
  console.log(f);
5112
5121
  });
5113
- }, Or = (h, f) => {
5122
+ }, zr = (h, f) => {
5114
5123
  const w = n(h);
5115
5124
  return w !== h ? w : f;
5116
- }, zr = () => {
5117
- i && (v = i, _ = !0), o && (C = o);
5118
- }, Be = (h, f = !1) => {
5119
- f ? r(7, E = h) : (Dr(), r(6, H = h));
5120
- }, ve = (h, f, w, b = !1) => re(this, null, function* () {
5125
+ }, jr = () => {
5126
+ i && (x = i, v = !0), o && (H = o);
5127
+ }, Oe = (h, f = !1) => {
5128
+ f ? r(7, j = h) : (Gr(), r(6, E = h));
5129
+ }, be = (h, f, w, b = !1) => re(this, null, function* () {
5121
5130
  try {
5122
5131
  const M = yield fetch(h, w);
5123
5132
  if (!M.ok)
5124
5133
  throw new Error(n(f));
5125
5134
  const I = yield M.json();
5126
- return _ ? I : I.filter((q) => q.showOnRegister === !0);
5135
+ return v ? I : I.filter((q) => q.showOnRegister === !0);
5127
5136
  } catch (M) {
5128
- throw Be(
5137
+ throw Oe(
5129
5138
  M instanceof TypeError ? n(f) : M.message,
5130
5139
  b
5131
5140
  ), M;
@@ -5133,126 +5142,126 @@ function Ao(e, t, r) {
5133
5142
  }), Lr = () => re(this, null, function* () {
5134
5143
  try {
5135
5144
  let h = [], f = [];
5136
- if (_ ? [h, f] = yield kt() : h = yield kt(), r(10, _e = !1), J = [...h], r(8, z = Ir(J).sort((w, b) => w.categoryTagCode.localeCompare(b.categoryTagCode))), r(11, V = Rr(z)), Ae = W({}, V), r(9, j = [...f]), J.forEach((w) => {
5137
- let b = j.find((M) => M.tagCode === w.tagCode);
5138
- b || (b = Je(W({}, w), {
5145
+ if (v ? [h, f] = yield Ct() : h = yield Ct(), r(10, ye = !1), _e = [...h], r(8, te = Rr(_e).sort((w, b) => w.categoryTagCode.localeCompare(b.categoryTagCode))), r(11, V = Ur(te)), He = W({}, V), r(9, L = [...f]), _e.forEach((w) => {
5146
+ let b = L.find((M) => M.tagCode === w.tagCode);
5147
+ b || (b = Qe(W({}, w), {
5139
5148
  status: R.denied.value
5140
- }), j.push(b)), b.description = w.description, b.orderNumber = w.orderNumber;
5149
+ }), L.push(b)), b.description = w.description, b.orderNumber = w.orderNumber;
5141
5150
  }), y === "true") {
5142
- if (r(9, j = j.filter((w) => w.status === R.expired.value)), j.length !== 0)
5151
+ if (r(9, L = L.filter((w) => w.status === R.expired.value)), L.length !== 0)
5143
5152
  return;
5144
- Be(n("wrongModalConfig"), !0);
5153
+ Oe(n("wrongModalConfig"), !0);
5145
5154
  }
5146
- Ur();
5155
+ Dr();
5147
5156
  } catch (h) {
5148
- throw r(10, _e = !1), Be(
5157
+ throw r(10, ye = !1), Oe(
5149
5158
  h instanceof TypeError ? n("invalidUrl") : h.message,
5150
5159
  !0
5151
5160
  ), h;
5152
5161
  }
5153
- }), kt = () => re(this, null, function* () {
5162
+ }), Ct = () => re(this, null, function* () {
5154
5163
  const h = new URL(`${a}/api/v1/gm/consents`);
5155
- if (h.searchParams.append("Status", "Active"), !_)
5156
- return yield ve(h.href, "fetchConsentsError", { method: "GET" }, !0);
5157
- const f = new URL(`${a}/api/v1/gm/user-consents/${C}`);
5164
+ if (h.searchParams.append("Status", "Active"), !v)
5165
+ return yield be(h.href, "fetchConsentsError", { method: "GET" }, !0);
5166
+ const f = new URL(`${a}/api/v1/gm/user-consents/${H}`);
5158
5167
  return yield Promise.all([
5159
- ve(h.href, "fetchConsentsError", { method: "GET" }, !0),
5160
- ve(f.href, "fetchPlayerConsentsError", {
5168
+ be(h.href, "fetchConsentsError", { method: "GET" }, !0),
5169
+ be(f.href, "fetchPlayerConsentsError", {
5161
5170
  method: "GET",
5162
5171
  headers: {
5163
- "X-SessionId": v,
5172
+ "X-SessionId": x,
5164
5173
  "Content-Type": "application/json"
5165
5174
  }
5166
5175
  })
5167
5176
  ]);
5168
- }), jr = () => {
5169
- Pe = !1;
5177
+ }), Ir = () => {
5178
+ Be = !1;
5170
5179
  const h = new URL(`${a}/api/v2/gm/legislation/consents`), f = {
5171
5180
  "Content-Type": "application/json",
5172
5181
  Accept: "application/json"
5173
5182
  }, w = { method: "GET", headers: f };
5174
- fetch(h.href, w).then((b) => b.ok ? b.json() : (Pe = !0, b.json().then((M) => (console.error(M), Oe(M))))).then((b) => {
5175
- if (!Pe) {
5176
- if (J = b, localStorage.getItem("playerConsents")) {
5183
+ fetch(h.href, w).then((b) => b.ok ? b.json() : (Be = !0, b.json().then((M) => (console.error(M), ze(M))))).then((b) => {
5184
+ if (!Be) {
5185
+ if (_e = b, localStorage.getItem("playerConsents")) {
5177
5186
  try {
5178
- r(9, j = JSON.parse(localStorage.getItem("playerConsents")));
5187
+ r(9, L = JSON.parse(localStorage.getItem("playerConsents")));
5179
5188
  } catch (M) {
5180
- return console.error(M), Oe(M);
5189
+ return console.error(M), ze(M);
5181
5190
  }
5182
5191
  return;
5183
5192
  }
5184
- return r(9, j = J.map((M) => ({
5193
+ return r(9, L = _e.map((M) => ({
5185
5194
  id: M.id,
5186
5195
  status: R.denied.key,
5187
5196
  friendlyName: M.friendlyName,
5188
5197
  tagCode: M.tagCode,
5189
5198
  selected: null,
5190
5199
  mustAccept: M.mustAccept
5191
- }))), localStorage.setItem("playerConsents", JSON.stringify(j)), j;
5200
+ }))), localStorage.setItem("playerConsents", JSON.stringify(L)), L;
5192
5201
  }
5193
- }).catch((b) => (console.error(b), Oe(b))).finally(() => {
5194
- r(10, _e = !1);
5202
+ }).catch((b) => (console.error(b), ze(b))).finally(() => {
5203
+ r(10, ye = !1);
5195
5204
  });
5196
- }, Ir = (h) => {
5205
+ }, Rr = (h) => {
5197
5206
  const f = /* @__PURE__ */ new Map();
5198
5207
  return h.forEach((w) => {
5199
5208
  f.has(w.category.categoryTagCode) || f.set(w.category.categoryTagCode, w.category);
5200
5209
  }), Array.from(f.values());
5201
- }, Rr = (h) => {
5202
- const f = localStorage.getItem("categoryToggle" + C);
5210
+ }, Ur = (h) => {
5211
+ const f = localStorage.getItem("categoryToggle" + H);
5203
5212
  if (f === null) {
5204
5213
  const w = h.reduce(
5205
5214
  (b, M) => (b[M.categoryTagCode] = !1, b),
5206
5215
  {}
5207
5216
  );
5208
- return localStorage.setItem("categoryToggle" + C, JSON.stringify(w)), w;
5217
+ return localStorage.setItem("categoryToggle" + H, JSON.stringify(w)), w;
5209
5218
  } else
5210
5219
  return JSON.parse(f);
5211
- }, Ur = () => {
5212
- j.forEach((h) => {
5213
- r(12, Q[h.tagCode] = h.status === R.accepted.value, Q);
5214
- }), r(13, D = W({}, Q));
5215
5220
  }, Dr = () => {
5216
- r(13, D = W({}, Q)), r(11, V = W({}, Ae));
5217
- }, Gr = () => re(this, null, function* () {
5218
- if (!Ne)
5221
+ L.forEach((h) => {
5222
+ r(12, J[h.tagCode] = h.status === R.accepted.value, J);
5223
+ }), r(13, D = W({}, J));
5224
+ }, Gr = () => {
5225
+ r(13, D = W({}, J)), r(11, V = W({}, He));
5226
+ }, Fr = () => re(this, null, function* () {
5227
+ if (!Ae)
5219
5228
  return;
5220
- Ne = !1;
5229
+ Ae = !1;
5221
5230
  const h = [], f = [];
5222
5231
  if (Object.keys(D).forEach((b) => {
5223
- const M = j.find((I) => I.tagCode === b);
5224
- D[b] !== Q[b] && (M ? h.push({
5232
+ const M = L.find((I) => I.tagCode === b);
5233
+ D[b] !== J[b] && (M ? h.push({
5225
5234
  tagCode: b,
5226
5235
  status: D[b] ? R.accepted.value : R.denied.value
5227
5236
  }) : f.push({
5228
5237
  tagCode: b,
5229
5238
  status: D[b] ? R.accepted.value : R.denied.value
5230
5239
  }));
5231
- }), !_) {
5232
- localStorage.setItem("categoryToggle" + C, JSON.stringify(V)), Ae = W({}, V), window.postMessage(
5240
+ }), !v) {
5241
+ localStorage.setItem("categoryToggle" + H, JSON.stringify(V)), He = W({}, V), window.postMessage(
5233
5242
  {
5234
5243
  type: "NewPlayerConsentData",
5235
5244
  data: JSON.stringify(f)
5236
5245
  },
5237
5246
  window.location.href
5238
- ), Ne = !0;
5247
+ ), Ae = !0;
5239
5248
  return;
5240
5249
  }
5241
- const w = new URL(`${a}/api/v1/gm/user-consents/${C}`);
5250
+ const w = new URL(`${a}/api/v1/gm/user-consents/${H}`);
5242
5251
  try {
5243
5252
  const b = yield Promise.allSettled([
5244
- f.length > 0 && ve(w.href, "updateConsentsError", {
5253
+ f.length > 0 && be(w.href, "updateConsentsError", {
5245
5254
  method: "POST",
5246
5255
  headers: {
5247
- "X-SessionId": v,
5256
+ "X-SessionId": x,
5248
5257
  "Content-Type": "application/json"
5249
5258
  },
5250
5259
  body: JSON.stringify({ userConsents: f })
5251
5260
  }),
5252
- h.length > 0 && ve(w.href, "updateConsentsError", {
5261
+ h.length > 0 && be(w.href, "updateConsentsError", {
5253
5262
  method: "PATCH",
5254
5263
  headers: {
5255
- "X-SessionId": v,
5264
+ "X-SessionId": x,
5256
5265
  "Content-Type": "application/json"
5257
5266
  },
5258
5267
  body: JSON.stringify({ userConsents: h })
@@ -5261,17 +5270,17 @@ function Ao(e, t, r) {
5261
5270
  b.forEach((M, I) => {
5262
5271
  if (M.status === "rejected" || M.value.ok === !1) {
5263
5272
  const q = I < f.length ? f[I] : h[I - f.length];
5264
- r(13, D[q.tagCode] = Q[q.tagCode], D);
5273
+ r(13, D[q.tagCode] = J[q.tagCode], D);
5265
5274
  }
5266
- }), b.every((M) => M.status === "fulfilled") && (localStorage.setItem("categoryToggle" + C, JSON.stringify(V)), Ae = W({}, V), window.postMessage(
5275
+ }), b.every((M) => M.status === "fulfilled") && (localStorage.setItem("categoryToggle" + H, JSON.stringify(V)), He = W({}, V), window.postMessage(
5267
5276
  {
5268
5277
  type: "PlayerConsentUpdated",
5269
5278
  success: !0
5270
5279
  },
5271
5280
  window.location.href
5272
- ), r(12, Q = W({}, D)));
5281
+ ), r(12, J = W({}, D)));
5273
5282
  } catch (b) {
5274
- Be(b instanceof TypeError ? n("saveChangesError") : b.message), window.postMessage(
5283
+ Oe(b instanceof TypeError ? n("saveChangesError") : b.message), window.postMessage(
5275
5284
  {
5276
5285
  type: "PlayerConsentUpdated",
5277
5286
  success: !1
@@ -5279,14 +5288,14 @@ function Ao(e, t, r) {
5279
5288
  window.location.href
5280
5289
  );
5281
5290
  } finally {
5282
- Ne = !0, r(14, ye = !1);
5291
+ Ae = !0, r(14, ve = !1);
5283
5292
  }
5284
- }), Fr = (h) => {
5293
+ }), $r = (h) => {
5285
5294
  const f = new URL(`${a}/api/v2/gm/legislation/consents`), w = {
5286
5295
  "Content-Type": "application/json",
5287
5296
  Accept: "application/json"
5288
5297
  }, b = {
5289
- playerConsents: j,
5298
+ playerConsents: L,
5290
5299
  registrationId: h
5291
5300
  }, M = {
5292
5301
  method: "POST",
@@ -5294,30 +5303,30 @@ function Ao(e, t, r) {
5294
5303
  headers: w
5295
5304
  };
5296
5305
  fetch(f.href, M).then((I) => {
5297
- I.ok || (Pe = !0);
5298
- }).catch((I) => (console.error(I), Oe(I))).finally(() => {
5299
- r(10, _e = !1);
5306
+ I.ok || (Be = !0);
5307
+ }).catch((I) => (console.error(I), ze(I))).finally(() => {
5308
+ r(10, ye = !1);
5300
5309
  });
5301
- }, Et = (h) => {
5302
- j.filter((f) => f.category.categoryTagCode === h).forEach((f) => {
5310
+ }, St = (h) => {
5311
+ L.filter((f) => f.category.categoryTagCode === h).forEach((f) => {
5303
5312
  f.status = f.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, D[f.tagCode] = V[h] || !1, D);
5304
- }), r(14, ye = Ct());
5305
- }, We = (h, f, w) => {
5306
- const b = j.find((q) => q.id === w), M = f ? "value" : "key";
5313
+ }), r(14, ve = xt());
5314
+ }, Ze = (h, f, w) => {
5315
+ const b = L.find((q) => q.id === w), M = f ? "value" : "key";
5307
5316
  let I;
5308
5317
  if (!f && b.mustAccept) {
5309
- const q = Array.from(He.children);
5310
- for (const be of q)
5311
- if (I = Array.from(be.children).find((en) => en.getAttribute("id") === `checkBoxError__${b.tagCode}`), I)
5318
+ const q = Array.from(Pe.children);
5319
+ for (const ke of q)
5320
+ if (I = Array.from(ke.children).find((tn) => tn.getAttribute("id") === `checkBoxError__${b.tagCode}`), I)
5312
5321
  break;
5313
5322
  }
5314
5323
  if (b.status === R.accepted[M] ? (b.status = R.denied[M], I && (I.innerHTML = n("requiredError"))) : (b.status = R.accepted[M], I && (I.innerHTML = "")), f) {
5315
5324
  r(13, D[b.tagCode] = !D[b.tagCode], D);
5316
- const q = j.filter((be) => be.category.categoryTagCode === f.categoryTagCode).every((be) => be.status !== R.denied.value);
5325
+ const q = L.filter((ke) => ke.category.categoryTagCode === f.categoryTagCode).every((ke) => ke.status !== R.denied.value);
5317
5326
  r(11, V[f.categoryTagCode] = q, V);
5318
5327
  }
5319
- $r();
5320
- }, $r = ((h, f) => {
5328
+ Vr();
5329
+ }, Vr = ((h, f) => {
5321
5330
  let w;
5322
5331
  return function(...b) {
5323
5332
  const M = this;
@@ -5328,9 +5337,9 @@ function Ao(e, t, r) {
5328
5337
  f
5329
5338
  );
5330
5339
  };
5331
- })(() => Vr(), 500), Vr = () => {
5332
- r(14, ye = Ct()), i || (window.postMessage({ type: "isConsentsValid", isValid: ye }), localStorage.setItem("playerConsents", JSON.stringify(j)));
5333
- }, Ct = () => j.filter((f) => j.some((w) => f.tagCode === w.tagCode && w.mustAccept && (f.status === R.denied.key || f.status === R.denied.value))).length === 0, Oe = (h) => {
5340
+ })(() => Xr(), 500), Xr = () => {
5341
+ r(14, ve = xt()), i || (window.postMessage({ type: "isConsentsValid", isValid: ve }), localStorage.setItem("playerConsents", JSON.stringify(L)));
5342
+ }, xt = () => L.filter((f) => L.some((w) => f.tagCode === w.tagCode && w.mustAccept && (f.status === R.denied.key || f.status === R.denied.value))).length === 0, ze = (h) => {
5334
5343
  window.postMessage(
5335
5344
  {
5336
5345
  type: "WidgetNotification",
@@ -5338,32 +5347,32 @@ function Ao(e, t, r) {
5338
5347
  },
5339
5348
  window.location.href
5340
5349
  );
5341
- }, Xr = (h) => {
5342
- h.data && h.data.type !== "setUpPlayerConsents" || Fr(h.data.registerid);
5350
+ }, qr = (h) => {
5351
+ h.data && h.data.type !== "setUpPlayerConsents" || $r(h.data.registerid);
5343
5352
  };
5344
- gn(() => {
5353
+ _n(() => {
5345
5354
  setTimeout(
5346
5355
  () => {
5347
- r(26, S = !0);
5356
+ r(26, _ = !0);
5348
5357
  },
5349
5358
  50
5350
5359
  );
5351
- const h = (f) => Xr(f);
5360
+ const h = (f) => qr(f);
5352
5361
  return window.addEventListener("message", h), () => {
5353
- window.removeEventListener("message", h);
5362
+ C && C.unsubscribe(), window.removeEventListener("message", h);
5354
5363
  };
5355
5364
  });
5356
- function qr(h) {
5365
+ function Wr(h) {
5357
5366
  V[h.categoryTagCode] = this.checked, r(11, V);
5358
5367
  }
5359
- const Wr = (h) => Et(h.categoryTagCode), Zr = (h, f) => f.category.categoryTagCode === h.categoryTagCode, Jr = (h, f) => We(f, h.category, h.id), Qr = (h, f) => We(f, null, h.id);
5360
- function Yr(h) {
5361
- Re[h ? "unshift" : "push"](() => {
5362
- He = h, r(15, He);
5368
+ const Zr = (h) => St(h.categoryTagCode), Jr = (h, f) => f.category.categoryTagCode === h.categoryTagCode, Qr = (h, f) => Ze(f, h.category, h.id), Yr = (h, f) => Ze(f, null, h.id);
5369
+ function Kr(h) {
5370
+ Ue[h ? "unshift" : "push"](() => {
5371
+ Pe = h, r(15, Pe);
5363
5372
  });
5364
5373
  }
5365
- function Kr(h) {
5366
- Re[h ? "unshift" : "push"](() => {
5374
+ function en(h) {
5375
+ Ue[h ? "unshift" : "push"](() => {
5367
5376
  g = h, r(5, g);
5368
5377
  });
5369
5378
  }
@@ -5371,13 +5380,14 @@ function Ao(e, t, r) {
5371
5380
  "session" in h && r(0, i = h.session), "userid" in h && r(21, o = h.userid), "endpoint" in h && r(22, a = h.endpoint), "clientstyling" in h && r(1, s = h.clientstyling), "clientstylingurl" in h && r(2, c = h.clientstylingurl), "mbsource" in h && r(3, l = h.mbsource), "lang" in h && r(23, u = h.lang), "displayconsentdescription" in h && r(4, d = h.displayconsentdescription), "translationurl" in h && r(24, m = h.translationurl), "modalconsents" in h && r(25, y = h.modalconsents);
5372
5381
  }, e.$$.update = () => {
5373
5382
  e.$$.dirty[0] & /*isMounted, session*/
5374
- 67108865 && S && i && (zr(), Lr()), e.$$.dirty[0] & /*session*/
5375
- 1 && (i || jr()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5376
- 34 && s && g && Tn(g, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5377
- 36 && c && g && Mn(g, c), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
5378
- 40 && g && Nn(g, `${l}.Style`, p), e.$$.dirty[0] & /*lang*/
5379
- 8388608 && u && Pr(), e.$$.dirty[0] & /*translationurl*/
5380
- 16777216 && m && Br();
5383
+ 67108865 && _ && i && (jr(), Lr()), e.$$.dirty[0] & /*session*/
5384
+ 1 && (i || Ir()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5385
+ 34 && s && g && Nn(g, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5386
+ 36 && c && g && An(g, c), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
5387
+ 40 && g && Hn(g, `${l}.Style`, p), e.$$.dirty[0] & /*lang*/
5388
+ 8388608 && u && Br(), e.$$.dirty[0] & /*translationurl*/
5389
+ 16777216 && m && Or(), e.$$.dirty[0] & /*mbsource, translationurl*/
5390
+ 16777224 && l && !m && (C = Mn(`${l}.Translation`, void 0, ot, !0));
5381
5391
  }, [
5382
5392
  i,
5383
5393
  s,
@@ -5385,44 +5395,44 @@ function Ao(e, t, r) {
5385
5395
  l,
5386
5396
  d,
5387
5397
  g,
5388
- H,
5389
5398
  E,
5390
- z,
5391
5399
  j,
5392
- _e,
5400
+ te,
5401
+ L,
5402
+ ye,
5393
5403
  V,
5394
- Q,
5404
+ J,
5395
5405
  D,
5396
- ye,
5397
- He,
5406
+ ve,
5407
+ Pe,
5398
5408
  n,
5399
- Or,
5400
- Gr,
5401
- Et,
5402
- We,
5409
+ zr,
5410
+ Fr,
5411
+ St,
5412
+ Ze,
5403
5413
  o,
5404
5414
  a,
5405
5415
  u,
5406
5416
  m,
5407
5417
  y,
5408
- S,
5409
- qr,
5418
+ _,
5410
5419
  Wr,
5411
5420
  Zr,
5412
5421
  Jr,
5413
5422
  Qr,
5414
5423
  Yr,
5415
- Kr
5424
+ Kr,
5425
+ en
5416
5426
  ];
5417
5427
  }
5418
- class Hr extends ar {
5428
+ class Pr extends sr {
5419
5429
  constructor(t) {
5420
- super(), nr(
5430
+ super(), ir(
5421
5431
  this,
5422
5432
  t,
5423
- Ao,
5424
- No,
5425
- _t,
5433
+ Po,
5434
+ Ho,
5435
+ vt,
5426
5436
  {
5427
5437
  session: 0,
5428
5438
  userid: 21,
@@ -5435,7 +5445,7 @@ class Hr extends ar {
5435
5445
  translationurl: 24,
5436
5446
  modalconsents: 25
5437
5447
  },
5438
- So,
5448
+ wo,
5439
5449
  [-1, -1, -1]
5440
5450
  );
5441
5451
  }
@@ -5500,25 +5510,25 @@ class Hr extends ar {
5500
5510
  this.$$set({ modalconsents: t }), X();
5501
5511
  }
5502
5512
  }
5503
- or(Hr, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
5504
- const Oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5513
+ ar(Pr, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
5514
+ const jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5505
5515
  __proto__: null,
5506
- default: Hr
5516
+ default: Pr
5507
5517
  }, Symbol.toStringTag, { value: "Module" }));
5508
5518
 
5509
- exports.P = Oo;
5510
- exports.S = ar;
5511
- exports.a = cn;
5512
- exports.b = L;
5513
- exports.c = Re;
5519
+ exports.P = jo;
5520
+ exports.S = sr;
5521
+ exports.a = un;
5522
+ exports.b = z;
5523
+ exports.c = Ue;
5514
5524
  exports.d = O;
5515
5525
  exports.e = T;
5516
5526
  exports.f = X;
5517
- exports.g = Tn;
5518
- exports.h = Mn;
5519
- exports.i = nr;
5520
- exports.j = Nn;
5521
- exports.k = or;
5527
+ exports.g = Nn;
5528
+ exports.h = An;
5529
+ exports.i = ir;
5530
+ exports.j = Hn;
5531
+ exports.k = ar;
5522
5532
  exports.n = $;
5523
- exports.o = gn;
5524
- exports.s = _t;
5533
+ exports.o = _n;
5534
+ exports.s = vt;