@everymatrix/player-panic-button 1.77.24 → 1.77.26

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,46 +1,46 @@
1
- function w() {
1
+ function T() {
2
2
  }
3
- function St(e) {
3
+ function xt(e) {
4
4
  return e();
5
5
  }
6
- function qe() {
6
+ function Je() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function ee(e) {
10
- e.forEach(St);
9
+ function te(e) {
10
+ e.forEach(xt);
11
11
  }
12
- function We(e) {
12
+ function ke(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function Bt(e, t) {
15
+ function _t(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function ir(e) {
18
+ function nr(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function wt(e, ...t) {
21
+ function St(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const n of t)
24
24
  n(void 0);
25
- return w;
25
+ return T;
26
26
  }
27
27
  const r = e.subscribe(...t);
28
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
29
29
  }
30
- function or(e, t, r) {
31
- e.$$.on_destroy.push(wt(t, r));
30
+ function ir(e, t, r) {
31
+ e.$$.on_destroy.push(St(t, r));
32
32
  }
33
33
  function ae(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function sr(e, t, r) {
37
- const n = ar(e);
36
+ function or(e, t, r) {
37
+ const n = sr(e);
38
38
  if (!n.getElementById(t)) {
39
- const i = Q("style");
40
- i.id = t, i.textContent = r, ur(n, i);
39
+ const i = J("style");
40
+ i.id = t, i.textContent = r, ar(n, i);
41
41
  }
42
42
  }
43
- function ar(e) {
43
+ function sr(e) {
44
44
  if (!e)
45
45
  return document;
46
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -50,39 +50,39 @@ function ar(e) {
50
50
  t
51
51
  ) : e.ownerDocument;
52
52
  }
53
- function ur(e, t) {
53
+ function ar(e, t) {
54
54
  return ae(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
58
58
  ), t.sheet;
59
59
  }
60
- function Tt(e, t, r) {
60
+ function Bt(e, t, r) {
61
61
  e.insertBefore(t, r || null);
62
62
  }
63
- function Ze(e) {
63
+ function Ve(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function Q(e) {
66
+ function J(e) {
67
67
  return document.createElement(e);
68
68
  }
69
- function hr(e) {
69
+ function ur(e) {
70
70
  return document.createTextNode(e);
71
71
  }
72
- function L(e, t, r) {
72
+ function N(e, t, r) {
73
73
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
74
74
  }
75
- function lr(e) {
75
+ function hr(e) {
76
76
  return Array.from(e.childNodes);
77
77
  }
78
- function cr(e, t) {
78
+ function lr(e, t) {
79
79
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
80
80
  t);
81
81
  }
82
- function Ke(e, t, r) {
82
+ function Ye(e, t, r) {
83
83
  e.classList.toggle(t, !!r);
84
84
  }
85
- function fr(e) {
85
+ function cr(e) {
86
86
  const t = {};
87
87
  return e.childNodes.forEach(
88
88
  /** @param {Element} node */
@@ -91,95 +91,95 @@ function fr(e) {
91
91
  }
92
92
  ), t;
93
93
  }
94
- let Y;
95
- function J(e) {
96
- Y = e;
94
+ let q;
95
+ function Y(e) {
96
+ q = e;
97
97
  }
98
- function pr() {
99
- if (!Y)
98
+ function fr() {
99
+ if (!q)
100
100
  throw new Error("Function called outside component initialization");
101
- return Y;
101
+ return q;
102
102
  }
103
- function mr(e) {
104
- pr().$$.on_mount.push(e);
103
+ function pr(e) {
104
+ fr().$$.on_mount.push(e);
105
105
  }
106
106
  const D = [], fe = [];
107
- let G = [];
108
- const et = [], dr = /* @__PURE__ */ Promise.resolve();
109
- let Oe = !1;
110
- function br() {
111
- Oe || (Oe = !0, dr.then(P));
107
+ let F = [];
108
+ const qe = [], mr = /* @__PURE__ */ Promise.resolve();
109
+ let Pe = !1;
110
+ function dr() {
111
+ Pe || (Pe = !0, mr.then(H));
112
112
  }
113
- function Ie(e) {
114
- G.push(e);
113
+ function Ae(e) {
114
+ F.push(e);
115
115
  }
116
- const xe = /* @__PURE__ */ new Set();
116
+ const Ee = /* @__PURE__ */ new Set();
117
117
  let R = 0;
118
- function P() {
118
+ function H() {
119
119
  if (R !== 0)
120
120
  return;
121
- const e = Y;
121
+ const e = q;
122
122
  do {
123
123
  try {
124
124
  for (; R < D.length; ) {
125
125
  const t = D[R];
126
- R++, J(t), gr(t.$$);
126
+ R++, Y(t), br(t.$$);
127
127
  }
128
128
  } catch (t) {
129
129
  throw D.length = 0, R = 0, t;
130
130
  }
131
- for (J(null), D.length = 0, R = 0; fe.length; )
131
+ for (Y(null), D.length = 0, R = 0; fe.length; )
132
132
  fe.pop()();
133
- for (let t = 0; t < G.length; t += 1) {
134
- const r = G[t];
135
- xe.has(r) || (xe.add(r), r());
133
+ for (let t = 0; t < F.length; t += 1) {
134
+ const r = F[t];
135
+ Ee.has(r) || (Ee.add(r), r());
136
136
  }
137
- G.length = 0;
137
+ F.length = 0;
138
138
  } while (D.length);
139
- for (; et.length; )
140
- et.pop()();
141
- Oe = !1, xe.clear(), J(e);
139
+ for (; qe.length; )
140
+ qe.pop()();
141
+ Pe = !1, Ee.clear(), Y(e);
142
142
  }
143
- function gr(e) {
143
+ function br(e) {
144
144
  if (e.fragment !== null) {
145
- e.update(), ee(e.before_update);
145
+ e.update(), te(e.before_update);
146
146
  const t = e.dirty;
147
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
147
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ae);
148
148
  }
149
149
  }
150
- function yr(e) {
150
+ function gr(e) {
151
151
  const t = [], r = [];
152
- G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
152
+ F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
153
153
  }
154
- const vr = /* @__PURE__ */ new Set();
155
- function Er(e, t) {
156
- e && e.i && (vr.delete(e), e.i(t));
154
+ const yr = /* @__PURE__ */ new Set();
155
+ function vr(e, t) {
156
+ e && e.i && (yr.delete(e), e.i(t));
157
157
  }
158
- function _r(e, t, r) {
158
+ function Er(e, t, r) {
159
159
  const { fragment: n, after_update: i } = e.$$;
160
- n && n.m(t, r), Ie(() => {
161
- const o = e.$$.on_mount.map(St).filter(We);
162
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ee(o), e.$$.on_mount = [];
163
- }), i.forEach(Ie);
160
+ n && n.m(t, r), Ae(() => {
161
+ const o = e.$$.on_mount.map(xt).filter(ke);
162
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
163
+ }), i.forEach(Ae);
164
164
  }
165
165
  function xr(e, t) {
166
166
  const r = e.$$;
167
- r.fragment !== null && (yr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
167
+ r.fragment !== null && (gr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
168
168
  }
169
- function Sr(e, t) {
170
- e.$$.dirty[0] === -1 && (D.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
169
+ function _r(e, t) {
170
+ e.$$.dirty[0] === -1 && (D.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
171
171
  }
172
- function Br(e, t, r, n, i, o, s = null, a = [-1]) {
173
- const u = Y;
174
- J(e);
172
+ function Sr(e, t, r, n, i, o, a = null, s = [-1]) {
173
+ const u = q;
174
+ Y(e);
175
175
  const h = e.$$ = {
176
176
  fragment: null,
177
177
  ctx: [],
178
178
  // state
179
179
  props: o,
180
- update: w,
180
+ update: T,
181
181
  not_equal: i,
182
- bound: qe(),
182
+ bound: Je(),
183
183
  // lifecycle
184
184
  on_mount: [],
185
185
  on_destroy: [],
@@ -188,28 +188,28 @@ function Br(e, t, r, n, i, o, s = null, a = [-1]) {
188
188
  after_update: [],
189
189
  context: new Map(t.context || (u ? u.$$.context : [])),
190
190
  // everything else
191
- callbacks: qe(),
192
- dirty: a,
191
+ callbacks: Je(),
192
+ dirty: s,
193
193
  skip_bound: !1,
194
194
  root: t.target || u.$$.root
195
195
  };
196
- s && s(h.root);
196
+ a && a(h.root);
197
197
  let l = !1;
198
198
  if (h.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
199
- const g = m.length ? m[0] : f;
200
- return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), l && Sr(e, c)), f;
201
- }) : [], h.update(), l = !0, ee(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
199
+ const y = m.length ? m[0] : f;
200
+ return h.ctx && i(h.ctx[c], h.ctx[c] = y) && (!h.skip_bound && h.bound[c] && h.bound[c](y), l && _r(e, c)), f;
201
+ }) : [], h.update(), l = !0, te(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
202
202
  if (t.hydrate) {
203
- const c = lr(t.target);
204
- h.fragment && h.fragment.l(c), c.forEach(Ze);
203
+ const c = hr(t.target);
204
+ h.fragment && h.fragment.l(c), c.forEach(Ve);
205
205
  } else
206
206
  h.fragment && h.fragment.c();
207
- t.intro && Er(e.$$.fragment), _r(e, t.target, t.anchor), P();
207
+ t.intro && vr(e.$$.fragment), Er(e, t.target, t.anchor), H();
208
208
  }
209
- J(u);
209
+ Y(u);
210
210
  }
211
- let Ht;
212
- typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
211
+ let Tt;
212
+ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
213
213
  /** The Svelte component constructor */
214
214
  $$ctor;
215
215
  /** Slots */
@@ -251,24 +251,24 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
251
251
  let o;
252
252
  return {
253
253
  c: function() {
254
- o = Q("slot"), i !== "default" && L(o, "name", i);
254
+ o = J("slot"), i !== "default" && N(o, "name", i);
255
255
  },
256
256
  /**
257
257
  * @param {HTMLElement} target
258
258
  * @param {HTMLElement} [anchor]
259
259
  */
260
260
  m: function(u, h) {
261
- Tt(u, o, h);
261
+ Bt(u, o, h);
262
262
  },
263
263
  d: function(u) {
264
- u && Ze(o);
264
+ u && Ve(o);
265
265
  }
266
266
  };
267
267
  };
268
268
  };
269
269
  if (await Promise.resolve(), !this.$$cn || this.$$c)
270
270
  return;
271
- const t = {}, r = fr(this);
271
+ const t = {}, r = cr(this);
272
272
  for (const i of this.$$s)
273
273
  i in r && (t[i] = [e(i)]);
274
274
  for (const i of this.attributes) {
@@ -304,8 +304,8 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
304
304
  this.$$c.$$.after_update.push(n), n();
305
305
  for (const i in this.$$l)
306
306
  for (const o of this.$$l[i]) {
307
- const s = this.$$c.$on(i, o);
308
- this.$$l_u.set(o, s);
307
+ const a = this.$$c.$on(i, o);
308
+ this.$$l_u.set(o, a);
309
309
  }
310
310
  this.$$l = {};
311
311
  }
@@ -355,34 +355,34 @@ function ue(e, t, r, n) {
355
355
  return t;
356
356
  }
357
357
  }
358
- function wr(e, t, r, n, i, o) {
359
- let s = class extends Ht {
358
+ function Br(e, t, r, n, i, o) {
359
+ let a = class extends Tt {
360
360
  constructor() {
361
361
  super(e, r, i), this.$$p_d = t;
362
362
  }
363
363
  static get observedAttributes() {
364
364
  return Object.keys(t).map(
365
- (a) => (t[a].attribute || a).toLowerCase()
365
+ (s) => (t[s].attribute || s).toLowerCase()
366
366
  );
367
367
  }
368
368
  };
369
- return Object.keys(t).forEach((a) => {
370
- Object.defineProperty(s.prototype, a, {
369
+ return Object.keys(t).forEach((s) => {
370
+ Object.defineProperty(a.prototype, s, {
371
371
  get() {
372
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
372
+ return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
373
373
  },
374
374
  set(u) {
375
- u = ue(a, u, t), this.$$d[a] = u, this.$$c?.$set({ [a]: u });
375
+ u = ue(s, u, t), this.$$d[s] = u, this.$$c?.$set({ [s]: u });
376
376
  }
377
377
  });
378
- }), n.forEach((a) => {
379
- Object.defineProperty(s.prototype, a, {
378
+ }), n.forEach((s) => {
379
+ Object.defineProperty(a.prototype, s, {
380
380
  get() {
381
- return this.$$c?.[a];
381
+ return this.$$c?.[s];
382
382
  }
383
383
  });
384
384
  }), e.element = /** @type {any} */
385
- s, s;
385
+ a, a;
386
386
  }
387
387
  class Tr {
388
388
  /**
@@ -403,7 +403,7 @@ class Tr {
403
403
  $$set = void 0;
404
404
  /** @returns {void} */
405
405
  $destroy() {
406
- xr(this, 1), this.$destroy = w;
406
+ xr(this, 1), this.$destroy = T;
407
407
  }
408
408
  /**
409
409
  * @template {Extract<keyof Events, string>} K
@@ -412,8 +412,8 @@ class Tr {
412
412
  * @returns {() => void}
413
413
  */
414
414
  $on(t, r) {
415
- if (!We(r))
416
- return w;
415
+ if (!ke(r))
416
+ return T;
417
417
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
418
418
  return n.push(r), () => {
419
419
  const i = n.indexOf(r);
@@ -425,18 +425,18 @@ class Tr {
425
425
  * @returns {void}
426
426
  */
427
427
  $set(t) {
428
- this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
428
+ this.$$set && !nr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
429
429
  }
430
430
  }
431
- const Hr = "4";
432
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
433
- function Pr(e, t) {
431
+ const wr = "4";
432
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
433
+ function Hr(e, t) {
434
434
  if (e) {
435
435
  const r = document.createElement("style");
436
436
  r.innerHTML = t, e.appendChild(r);
437
437
  }
438
438
  }
439
- function Ar(e, t) {
439
+ function Pr(e, t) {
440
440
  const r = new URL(t);
441
441
  fetch(r.href).then((n) => n.text()).then((n) => {
442
442
  const i = document.createElement("style");
@@ -445,7 +445,7 @@ function Ar(e, t) {
445
445
  console.error("There was an error while trying to load client styling from URL", n);
446
446
  });
447
447
  }
448
- function Or(e, t, r) {
448
+ function Ar(e, t, r) {
449
449
  if (window.emMessageBus) {
450
450
  const n = document.createElement("style");
451
451
  window.emMessageBus.subscribe(t, (i) => {
@@ -467,24 +467,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
467
467
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
468
468
  PERFORMANCE OF THIS SOFTWARE.
469
469
  ***************************************************************************** */
470
- var Ne = function(e, t) {
471
- return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
470
+ var Oe = function(e, t) {
471
+ return Oe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
472
472
  r.__proto__ = n;
473
473
  } || function(r, n) {
474
474
  for (var i in n)
475
475
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
476
- }, Ne(e, t);
476
+ }, Oe(e, t);
477
477
  };
478
- function te(e, t) {
478
+ function A(e, t) {
479
479
  if (typeof t != "function" && t !== null)
480
480
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
481
- Ne(e, t);
481
+ Oe(e, t);
482
482
  function r() {
483
483
  this.constructor = e;
484
484
  }
485
485
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
486
486
  }
487
- function Le(e) {
487
+ var b = function() {
488
+ return b = Object.assign || function(t) {
489
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
490
+ r = arguments[n];
491
+ for (var o in r)
492
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
493
+ }
494
+ return t;
495
+ }, b.apply(this, arguments);
496
+ };
497
+ function Or(e, t) {
498
+ var r = {};
499
+ for (var n in e)
500
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
501
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
502
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
503
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
504
+ return r;
505
+ }
506
+ function Ie(e) {
488
507
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
489
508
  if (r)
490
509
  return r.call(e);
@@ -496,42 +515,42 @@ function Le(e) {
496
515
  };
497
516
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
498
517
  }
499
- function Ce(e, t) {
518
+ function Le(e, t) {
500
519
  var r = typeof Symbol == "function" && e[Symbol.iterator];
501
520
  if (!r)
502
521
  return e;
503
- var n = r.call(e), i, o = [], s;
522
+ var n = r.call(e), i, o = [], a;
504
523
  try {
505
524
  for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
506
525
  o.push(i.value);
507
- } catch (a) {
508
- s = { error: a };
526
+ } catch (s) {
527
+ a = { error: s };
509
528
  } finally {
510
529
  try {
511
530
  i && !i.done && (r = n.return) && r.call(n);
512
531
  } finally {
513
- if (s)
514
- throw s.error;
532
+ if (a)
533
+ throw a.error;
515
534
  }
516
535
  }
517
536
  return o;
518
537
  }
519
- function Me(e, t, r) {
520
- if (arguments.length === 2)
538
+ function G(e, t, r) {
539
+ if (r || arguments.length === 2)
521
540
  for (var n = 0, i = t.length, o; n < i; n++)
522
541
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
523
542
  return e.concat(o || t);
524
543
  }
525
- function A(e) {
544
+ function P(e) {
526
545
  return typeof e == "function";
527
546
  }
528
- function Pt(e) {
547
+ function wt(e) {
529
548
  var t = function(n) {
530
549
  Error.call(n), n.stack = new Error().stack;
531
550
  }, r = e(t);
532
551
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
533
552
  }
534
- var Se = Pt(function(e) {
553
+ var xe = wt(function(e) {
535
554
  return function(r) {
536
555
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
537
556
  ` + r.map(function(n, i) {
@@ -540,13 +559,13 @@ var Se = Pt(function(e) {
540
559
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
541
560
  };
542
561
  });
543
- function $e(e, t) {
562
+ function Ne(e, t) {
544
563
  if (e) {
545
564
  var r = e.indexOf(t);
546
565
  0 <= r && e.splice(r, 1);
547
566
  }
548
567
  }
549
- var be = function() {
568
+ var de = function() {
550
569
  function e(t) {
551
570
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
552
571
  }
@@ -554,47 +573,47 @@ var be = function() {
554
573
  var t, r, n, i, o;
555
574
  if (!this.closed) {
556
575
  this.closed = !0;
557
- var s = this._parentage;
558
- if (s)
559
- if (this._parentage = null, Array.isArray(s))
576
+ var a = this._parentage;
577
+ if (a)
578
+ if (this._parentage = null, Array.isArray(a))
560
579
  try {
561
- for (var a = Le(s), u = a.next(); !u.done; u = a.next()) {
580
+ for (var s = Ie(a), u = s.next(); !u.done; u = s.next()) {
562
581
  var h = u.value;
563
582
  h.remove(this);
564
583
  }
565
- } catch (b) {
566
- t = { error: b };
584
+ } catch (g) {
585
+ t = { error: g };
567
586
  } finally {
568
587
  try {
569
- u && !u.done && (r = a.return) && r.call(a);
588
+ u && !u.done && (r = s.return) && r.call(s);
570
589
  } finally {
571
590
  if (t)
572
591
  throw t.error;
573
592
  }
574
593
  }
575
594
  else
576
- s.remove(this);
595
+ a.remove(this);
577
596
  var l = this.initialTeardown;
578
- if (A(l))
597
+ if (P(l))
579
598
  try {
580
599
  l();
581
- } catch (b) {
582
- o = b instanceof Se ? b.errors : [b];
600
+ } catch (g) {
601
+ o = g instanceof xe ? g.errors : [g];
583
602
  }
584
603
  var c = this._finalizers;
585
604
  if (c) {
586
605
  this._finalizers = null;
587
606
  try {
588
- for (var f = Le(c), m = f.next(); !m.done; m = f.next()) {
589
- var g = m.value;
607
+ for (var f = Ie(c), m = f.next(); !m.done; m = f.next()) {
608
+ var y = m.value;
590
609
  try {
591
- tt(g);
592
- } catch (b) {
593
- o = o ?? [], b instanceof Se ? o = Me(Me([], Ce(o)), Ce(b.errors)) : o.push(b);
610
+ Ke(y);
611
+ } catch (g) {
612
+ o = o ?? [], g instanceof xe ? o = G(G([], Le(o)), Le(g.errors)) : o.push(g);
594
613
  }
595
614
  }
596
- } catch (b) {
597
- n = { error: b };
615
+ } catch (g) {
616
+ n = { error: g };
598
617
  } finally {
599
618
  try {
600
619
  m && !m.done && (i = f.return) && i.call(f);
@@ -605,13 +624,13 @@ var be = function() {
605
624
  }
606
625
  }
607
626
  if (o)
608
- throw new Se(o);
627
+ throw new xe(o);
609
628
  }
610
629
  }, e.prototype.add = function(t) {
611
630
  var r;
612
631
  if (t && t !== this)
613
632
  if (this.closed)
614
- tt(t);
633
+ Ke(t);
615
634
  else {
616
635
  if (t instanceof e) {
617
636
  if (t.closed || t._hasParent(this))
@@ -628,28 +647,32 @@ var be = function() {
628
647
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
629
648
  }, e.prototype._removeParent = function(t) {
630
649
  var r = this._parentage;
631
- r === t ? this._parentage = null : Array.isArray(r) && $e(r, t);
650
+ r === t ? this._parentage = null : Array.isArray(r) && Ne(r, t);
632
651
  }, e.prototype.remove = function(t) {
633
652
  var r = this._finalizers;
634
- r && $e(r, t), t instanceof e && t._removeParent(this);
653
+ r && Ne(r, t), t instanceof e && t._removeParent(this);
635
654
  }, e.EMPTY = function() {
636
655
  var t = new e();
637
656
  return t.closed = !0, t;
638
657
  }(), e;
639
- }(), At = be.EMPTY;
640
- function Ot(e) {
641
- return e instanceof be || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
642
- }
643
- function tt(e) {
644
- A(e) ? e() : e.unsubscribe();
645
- }
646
- var Ir = {
647
- Promise: void 0
648
- }, Nr = {
658
+ }(), Ht = de.EMPTY;
659
+ function Pt(e) {
660
+ return e instanceof de || e && "closed" in e && P(e.remove) && P(e.add) && P(e.unsubscribe);
661
+ }
662
+ function Ke(e) {
663
+ P(e) ? e() : e.unsubscribe();
664
+ }
665
+ var At = {
666
+ onUnhandledError: null,
667
+ onStoppedNotification: null,
668
+ Promise: void 0,
669
+ useDeprecatedSynchronousErrorHandling: !1,
670
+ useDeprecatedNextContext: !1
671
+ }, Ir = {
649
672
  setTimeout: function(e, t) {
650
673
  for (var r = [], n = 2; n < arguments.length; n++)
651
674
  r[n - 2] = arguments[n];
652
- return setTimeout.apply(void 0, Me([e, t], Ce(r)));
675
+ return setTimeout.apply(void 0, G([e, t], Le(r)));
653
676
  },
654
677
  clearTimeout: function(e) {
655
678
  return clearTimeout(e);
@@ -657,23 +680,23 @@ var Ir = {
657
680
  delegate: void 0
658
681
  };
659
682
  function Lr(e) {
660
- Nr.setTimeout(function() {
683
+ Ir.setTimeout(function() {
661
684
  throw e;
662
685
  });
663
686
  }
664
- function rt() {
687
+ function et() {
665
688
  }
666
689
  function he(e) {
667
690
  e();
668
691
  }
669
- var It = function(e) {
670
- te(t, e);
692
+ var Ot = function(e) {
693
+ A(t, e);
671
694
  function t(r) {
672
695
  var n = e.call(this) || this;
673
- return n.isStopped = !1, r ? (n.destination = r, Ot(r) && r.add(n)) : n.destination = $r, n;
696
+ return n.isStopped = !1, r ? (n.destination = r, Pt(r) && r.add(n)) : n.destination = $r, n;
674
697
  }
675
698
  return t.create = function(r, n, i) {
676
- return new Re(r, n, i);
699
+ return new Ce(r, n, i);
677
700
  }, t.prototype.next = function(r) {
678
701
  this.isStopped || this._next(r);
679
702
  }, t.prototype.error = function(r) {
@@ -697,7 +720,11 @@ var It = function(e) {
697
720
  this.unsubscribe();
698
721
  }
699
722
  }, t;
700
- }(be), Cr = function() {
723
+ }(de), Nr = Function.prototype.bind;
724
+ function _e(e, t) {
725
+ return Nr.call(e, t);
726
+ }
727
+ var Cr = function() {
701
728
  function e(t) {
702
729
  this.partialObserver = t;
703
730
  }
@@ -728,18 +755,30 @@ var It = function(e) {
728
755
  ie(r);
729
756
  }
730
757
  }, e;
731
- }(), Re = function(e) {
732
- te(t, e);
758
+ }(), Ce = function(e) {
759
+ A(t, e);
733
760
  function t(r, n, i) {
734
- var o = e.call(this) || this, s;
735
- return A(r) || !r ? s = {
736
- next: r ?? void 0,
737
- error: n ?? void 0,
738
- complete: i ?? void 0
739
- } : s = r, o.destination = new Cr(s), o;
761
+ var o = e.call(this) || this, a;
762
+ if (P(r) || !r)
763
+ a = {
764
+ next: r ?? void 0,
765
+ error: n ?? void 0,
766
+ complete: i ?? void 0
767
+ };
768
+ else {
769
+ var s;
770
+ o && At.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
771
+ return o.unsubscribe();
772
+ }, a = {
773
+ next: r.next && _e(r.next, s),
774
+ error: r.error && _e(r.error, s),
775
+ complete: r.complete && _e(r.complete, s)
776
+ }) : a = r;
777
+ }
778
+ return o.destination = new Cr(a), o;
740
779
  }
741
780
  return t;
742
- }(It);
781
+ }(Ot);
743
782
  function ie(e) {
744
783
  Lr(e);
745
784
  }
@@ -748,9 +787,9 @@ function Mr(e) {
748
787
  }
749
788
  var $r = {
750
789
  closed: !0,
751
- next: rt,
790
+ next: et,
752
791
  error: Mr,
753
- complete: rt
792
+ complete: et
754
793
  }, Rr = function() {
755
794
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
756
795
  }();
@@ -764,7 +803,7 @@ function Dr(e) {
764
803
  }, r);
765
804
  };
766
805
  }
767
- var nt = function() {
806
+ var tt = function() {
768
807
  function e(t) {
769
808
  t && (this._subscribe = t);
770
809
  }
@@ -772,10 +811,10 @@ var nt = function() {
772
811
  var r = new e();
773
812
  return r.source = this, r.operator = t, r;
774
813
  }, e.prototype.subscribe = function(t, r, n) {
775
- var i = this, o = Fr(t) ? t : new Re(t, r, n);
814
+ var i = this, o = Gr(t) ? t : new Ce(t, r, n);
776
815
  return he(function() {
777
- var s = i, a = s.operator, u = s.source;
778
- o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
816
+ var a = i, s = a.operator, u = a.source;
817
+ o.add(s ? s.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
779
818
  }), o;
780
819
  }, e.prototype._trySubscribe = function(t) {
781
820
  try {
@@ -785,19 +824,19 @@ var nt = function() {
785
824
  }
786
825
  }, e.prototype.forEach = function(t, r) {
787
826
  var n = this;
788
- return r = it(r), new r(function(i, o) {
789
- var s = new Re({
790
- next: function(a) {
827
+ return r = rt(r), new r(function(i, o) {
828
+ var a = new Ce({
829
+ next: function(s) {
791
830
  try {
792
- t(a);
831
+ t(s);
793
832
  } catch (u) {
794
- o(u), s.unsubscribe();
833
+ o(u), a.unsubscribe();
795
834
  }
796
835
  },
797
836
  error: o,
798
837
  complete: i
799
838
  });
800
- n.subscribe(s);
839
+ n.subscribe(a);
801
840
  });
802
841
  }, e.prototype._subscribe = function(t) {
803
842
  var r;
@@ -810,12 +849,12 @@ var nt = function() {
810
849
  return Dr(t)(this);
811
850
  }, e.prototype.toPromise = function(t) {
812
851
  var r = this;
813
- return t = it(t), new t(function(n, i) {
852
+ return t = rt(t), new t(function(n, i) {
814
853
  var o;
815
- r.subscribe(function(s) {
816
- return o = s;
817
- }, function(s) {
818
- return i(s);
854
+ r.subscribe(function(a) {
855
+ return o = a;
856
+ }, function(a) {
857
+ return i(a);
819
858
  }, function() {
820
859
  return n(o);
821
860
  });
@@ -824,28 +863,28 @@ var nt = function() {
824
863
  return new e(t);
825
864
  }, e;
826
865
  }();
827
- function it(e) {
866
+ function rt(e) {
828
867
  var t;
829
- return (t = e ?? Ir.Promise) !== null && t !== void 0 ? t : Promise;
830
- }
831
- function Gr(e) {
832
- return e && A(e.next) && A(e.error) && A(e.complete);
868
+ return (t = e ?? At.Promise) !== null && t !== void 0 ? t : Promise;
833
869
  }
834
870
  function Fr(e) {
835
- return e && e instanceof It || Gr(e) && Ot(e);
871
+ return e && P(e.next) && P(e.error) && P(e.complete);
836
872
  }
837
- var jr = Pt(function(e) {
873
+ function Gr(e) {
874
+ return e && e instanceof Ot || Fr(e) && Pt(e);
875
+ }
876
+ var jr = wt(function(e) {
838
877
  return function() {
839
878
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
840
879
  };
841
- }), Nt = function(e) {
842
- te(t, e);
880
+ }), It = function(e) {
881
+ A(t, e);
843
882
  function t() {
844
883
  var r = e.call(this) || this;
845
884
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
846
885
  }
847
886
  return t.prototype.lift = function(r) {
848
- var n = new ot(this, this);
887
+ var n = new nt(this, this);
849
888
  return n.operator = r, n;
850
889
  }, t.prototype._throwIfClosed = function() {
851
890
  if (this.closed)
@@ -857,15 +896,15 @@ var jr = Pt(function(e) {
857
896
  if (n._throwIfClosed(), !n.isStopped) {
858
897
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
859
898
  try {
860
- for (var s = Le(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
861
- var u = a.value;
899
+ for (var a = Ie(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
900
+ var u = s.value;
862
901
  u.next(r);
863
902
  }
864
903
  } catch (h) {
865
904
  i = { error: h };
866
905
  } finally {
867
906
  try {
868
- a && !a.done && (o = s.return) && o.call(s);
907
+ s && !s.done && (o = a.return) && o.call(a);
869
908
  } finally {
870
909
  if (i)
871
910
  throw i.error;
@@ -905,21 +944,21 @@ var jr = Pt(function(e) {
905
944
  }, t.prototype._subscribe = function(r) {
906
945
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
907
946
  }, t.prototype._innerSubscribe = function(r) {
908
- var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
909
- return o || s ? At : (this.currentObservers = null, a.push(r), new be(function() {
910
- n.currentObservers = null, $e(a, r);
947
+ var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
948
+ return o || a ? Ht : (this.currentObservers = null, s.push(r), new de(function() {
949
+ n.currentObservers = null, Ne(s, r);
911
950
  }));
912
951
  }, t.prototype._checkFinalizedStatuses = function(r) {
913
- var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
914
- i ? r.error(o) : s && r.complete();
952
+ var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
953
+ i ? r.error(o) : a && r.complete();
915
954
  }, t.prototype.asObservable = function() {
916
- var r = new nt();
955
+ var r = new tt();
917
956
  return r.source = this, r;
918
957
  }, t.create = function(r, n) {
919
- return new ot(r, n);
958
+ return new nt(r, n);
920
959
  }, t;
921
- }(nt), ot = function(e) {
922
- te(t, e);
960
+ }(tt), nt = function(e) {
961
+ A(t, e);
923
962
  function t(r, n) {
924
963
  var i = e.call(this) || this;
925
964
  return i.destination = r, i.source = n, i;
@@ -935,54 +974,54 @@ var jr = Pt(function(e) {
935
974
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
936
975
  }, t.prototype._subscribe = function(r) {
937
976
  var n, i;
938
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : At;
977
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ht;
939
978
  }, t;
940
- }(Nt), Lt = {
979
+ }(It), Lt = {
941
980
  now: function() {
942
981
  return (Lt.delegate || Date).now();
943
982
  },
944
983
  delegate: void 0
945
984
  }, kr = function(e) {
946
- te(t, e);
985
+ A(t, e);
947
986
  function t(r, n, i) {
948
987
  r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lt);
949
988
  var o = e.call(this) || this;
950
989
  return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
951
990
  }
952
991
  return t.prototype.next = function(r) {
953
- var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
954
- i || (o.push(r), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
992
+ var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, u = n._windowTime;
993
+ i || (o.push(r), !a && o.push(s.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
955
994
  }, t.prototype._subscribe = function(r) {
956
995
  this._throwIfClosed(), this._trimBuffer();
957
- for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), u = 0; u < a.length && !r.closed; u += o ? 1 : 2)
958
- r.next(a[u]);
996
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), u = 0; u < s.length && !r.closed; u += o ? 1 : 2)
997
+ r.next(s[u]);
959
998
  return this._checkFinalizedStatuses(r), n;
960
999
  }, t.prototype._trimBuffer = function() {
961
- var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
962
- if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
1000
+ var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
1001
+ if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
963
1002
  for (var u = i.now(), h = 0, l = 1; l < o.length && o[l] <= u; l += 2)
964
1003
  h = l;
965
1004
  h && o.splice(0, h + 1);
966
1005
  }
967
1006
  }, t;
968
- }(Nt);
969
- const st = [], at = {}, Vr = (e, t = 0) => {
970
- if (st.indexOf(e) == -1) {
1007
+ }(It);
1008
+ const it = [], ot = {}, Vr = (e, t = 0) => {
1009
+ if (it.indexOf(e) == -1) {
971
1010
  const r = new kr(t);
972
- at[e] = r, st.push(e);
1011
+ ot[e] = r, it.push(e);
973
1012
  }
974
- return at[e];
1013
+ return ot[e];
975
1014
  }, U = [];
976
- function Xr(e, t) {
1015
+ function zr(e, t) {
977
1016
  return {
978
- subscribe: ge(e, t).subscribe
1017
+ subscribe: be(e, t).subscribe
979
1018
  };
980
1019
  }
981
- function ge(e, t = w) {
1020
+ function be(e, t = T) {
982
1021
  let r;
983
1022
  const n = /* @__PURE__ */ new Set();
984
- function i(a) {
985
- if (Bt(e, a) && (e = a, r)) {
1023
+ function i(s) {
1024
+ if (_t(e, s) && (e = s, r)) {
986
1025
  const u = !U.length;
987
1026
  for (const h of n)
988
1027
  h[1](), U.push(h, e);
@@ -993,49 +1032,49 @@ function ge(e, t = w) {
993
1032
  }
994
1033
  }
995
1034
  }
996
- function o(a) {
997
- i(a(e));
1035
+ function o(s) {
1036
+ i(s(e));
998
1037
  }
999
- function s(a, u = w) {
1000
- const h = [a, u];
1001
- return n.add(h), n.size === 1 && (r = t(i, o) || w), a(e), () => {
1038
+ function a(s, u = T) {
1039
+ const h = [s, u];
1040
+ return n.add(h), n.size === 1 && (r = t(i, o) || T), s(e), () => {
1002
1041
  n.delete(h), n.size === 0 && r && (r(), r = null);
1003
1042
  };
1004
1043
  }
1005
- return { set: i, update: o, subscribe: s };
1044
+ return { set: i, update: o, subscribe: a };
1006
1045
  }
1007
1046
  function X(e, t, r) {
1008
1047
  const n = !Array.isArray(e), i = n ? [e] : e;
1009
1048
  if (!i.every(Boolean))
1010
1049
  throw new Error("derived() expects stores as input, got a falsy value");
1011
1050
  const o = t.length < 2;
1012
- return Xr(r, (s, a) => {
1051
+ return zr(r, (a, s) => {
1013
1052
  let u = !1;
1014
1053
  const h = [];
1015
- let l = 0, c = w;
1054
+ let l = 0, c = T;
1016
1055
  const f = () => {
1017
1056
  if (l)
1018
1057
  return;
1019
1058
  c();
1020
- const g = t(n ? h[0] : h, s, a);
1021
- o ? s(g) : c = We(g) ? g : w;
1059
+ const y = t(n ? h[0] : h, a, s);
1060
+ o ? a(y) : c = ke(y) ? y : T;
1022
1061
  }, m = i.map(
1023
- (g, b) => wt(
1024
- g,
1062
+ (y, g) => St(
1063
+ y,
1025
1064
  (B) => {
1026
- h[b] = B, l &= ~(1 << b), u && f();
1065
+ h[g] = B, l &= ~(1 << g), u && f();
1027
1066
  },
1028
1067
  () => {
1029
- l |= 1 << b;
1068
+ l |= 1 << g;
1030
1069
  }
1031
1070
  )
1032
1071
  );
1033
1072
  return u = !0, f(), function() {
1034
- ee(m), c(), u = !1;
1073
+ te(m), c(), u = !1;
1035
1074
  };
1036
1075
  });
1037
1076
  }
1038
- function zr(e) {
1077
+ function Xr(e) {
1039
1078
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1040
1079
  }
1041
1080
  var Wr = function(t) {
@@ -1055,29 +1094,29 @@ function qr(e) {
1055
1094
  function Kr(e) {
1056
1095
  return Array.isArray(e) ? [] : {};
1057
1096
  }
1058
- function q(e, t) {
1059
- return t.clone !== !1 && t.isMergeableObject(e) ? F(Kr(e), e, t) : e;
1097
+ function K(e, t) {
1098
+ return t.clone !== !1 && t.isMergeableObject(e) ? j(Kr(e), e, t) : e;
1060
1099
  }
1061
1100
  function en(e, t, r) {
1062
1101
  return e.concat(t).map(function(n) {
1063
- return q(n, r);
1102
+ return K(n, r);
1064
1103
  });
1065
1104
  }
1066
1105
  function tn(e, t) {
1067
1106
  if (!t.customMerge)
1068
- return F;
1107
+ return j;
1069
1108
  var r = t.customMerge(e);
1070
- return typeof r == "function" ? r : F;
1109
+ return typeof r == "function" ? r : j;
1071
1110
  }
1072
1111
  function rn(e) {
1073
1112
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1074
1113
  return Object.propertyIsEnumerable.call(e, t);
1075
1114
  }) : [];
1076
1115
  }
1077
- function ut(e) {
1116
+ function st(e) {
1078
1117
  return Object.keys(e).concat(rn(e));
1079
1118
  }
1080
- function Ct(e, t) {
1119
+ function Nt(e, t) {
1081
1120
  try {
1082
1121
  return t in e;
1083
1122
  } catch {
@@ -1085,179 +1124,129 @@ function Ct(e, t) {
1085
1124
  }
1086
1125
  }
1087
1126
  function nn(e, t) {
1088
- return Ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1127
+ return Nt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1089
1128
  }
1090
1129
  function on(e, t, r) {
1091
1130
  var n = {};
1092
- return r.isMergeableObject(e) && ut(e).forEach(function(i) {
1093
- n[i] = q(e[i], r);
1094
- }), ut(t).forEach(function(i) {
1095
- nn(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = tn(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
1131
+ return r.isMergeableObject(e) && st(e).forEach(function(i) {
1132
+ n[i] = K(e[i], r);
1133
+ }), st(t).forEach(function(i) {
1134
+ nn(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = tn(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
1096
1135
  }), n;
1097
1136
  }
1098
- function F(e, t, r) {
1099
- r = r || {}, r.arrayMerge = r.arrayMerge || en, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified = q;
1137
+ function j(e, t, r) {
1138
+ r = r || {}, r.arrayMerge = r.arrayMerge || en, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified = K;
1100
1139
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1101
- return o ? n ? r.arrayMerge(e, t, r) : on(e, t, r) : q(t, r);
1140
+ return o ? n ? r.arrayMerge(e, t, r) : on(e, t, r) : K(t, r);
1102
1141
  }
1103
- F.all = function(t, r) {
1142
+ j.all = function(t, r) {
1104
1143
  if (!Array.isArray(t))
1105
1144
  throw new Error("first argument should be an array");
1106
1145
  return t.reduce(function(n, i) {
1107
- return F(n, i, r);
1146
+ return j(n, i, r);
1108
1147
  }, {});
1109
1148
  };
1110
- var sn = F, an = sn;
1111
- const un = /* @__PURE__ */ zr(an);
1112
- var Ue = function(e, t) {
1113
- return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1114
- r.__proto__ = n;
1115
- } || function(r, n) {
1116
- for (var i in n)
1117
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1118
- }, Ue(e, t);
1119
- };
1120
- function ye(e, t) {
1121
- if (typeof t != "function" && t !== null)
1122
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1123
- Ue(e, t);
1124
- function r() {
1125
- this.constructor = e;
1126
- }
1127
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1128
- }
1129
- var H = function() {
1130
- return H = Object.assign || function(t) {
1131
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1132
- r = arguments[n];
1133
- for (var o in r)
1134
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1135
- }
1136
- return t;
1137
- }, H.apply(this, arguments);
1138
- };
1139
- function hn(e, t) {
1140
- var r = {};
1141
- for (var n in e)
1142
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1143
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
1144
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1145
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1146
- return r;
1147
- }
1148
- function Be(e, t, r) {
1149
- if (r || arguments.length === 2)
1150
- for (var n = 0, i = t.length, o; n < i; n++)
1151
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1152
- return e.concat(o || Array.prototype.slice.call(t));
1153
- }
1154
- function we(e, t) {
1155
- var r = t && t.cache ? t.cache : bn, n = t && t.serializer ? t.serializer : mn, i = t && t.strategy ? t.strategy : fn;
1149
+ var sn = j, an = sn;
1150
+ const un = /* @__PURE__ */ Xr(an);
1151
+ function Se(e, t) {
1152
+ var r = t && t.cache ? t.cache : mn, n = t && t.serializer ? t.serializer : pn, i = t && t.strategy ? t.strategy : ln;
1156
1153
  return i(e, {
1157
1154
  cache: r,
1158
1155
  serializer: n
1159
1156
  });
1160
1157
  }
1161
- function ln(e) {
1158
+ function hn(e) {
1162
1159
  return e == null || typeof e == "number" || typeof e == "boolean";
1163
1160
  }
1164
- function cn(e, t, r, n) {
1165
- var i = ln(n) ? n : r(n), o = t.get(i);
1161
+ function Ct(e, t, r, n) {
1162
+ var i = hn(n) ? n : r(n), o = t.get(i);
1166
1163
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1167
1164
  }
1168
1165
  function Mt(e, t, r) {
1169
1166
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1170
1167
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1171
1168
  }
1172
- function $t(e, t, r, n, i) {
1169
+ function ze(e, t, r, n, i) {
1173
1170
  return r.bind(t, e, n, i);
1174
1171
  }
1175
- function fn(e, t) {
1176
- var r = e.length === 1 ? cn : Mt;
1177
- return $t(e, this, r, t.cache.create(), t.serializer);
1172
+ function ln(e, t) {
1173
+ var r = e.length === 1 ? Ct : Mt;
1174
+ return ze(e, this, r, t.cache.create(), t.serializer);
1175
+ }
1176
+ function cn(e, t) {
1177
+ return ze(e, this, Mt, t.cache.create(), t.serializer);
1178
1178
  }
1179
- function pn(e, t) {
1180
- return $t(e, this, Mt, t.cache.create(), t.serializer);
1179
+ function fn(e, t) {
1180
+ return ze(e, this, Ct, t.cache.create(), t.serializer);
1181
1181
  }
1182
- var mn = function() {
1182
+ var pn = function() {
1183
1183
  return JSON.stringify(arguments);
1184
- }, dn = (
1185
- /** @class */
1186
- function() {
1187
- function e() {
1188
- this.cache = /* @__PURE__ */ Object.create(null);
1189
- }
1190
- return e.prototype.get = function(t) {
1191
- return this.cache[t];
1192
- }, e.prototype.set = function(t, r) {
1193
- this.cache[t] = r;
1194
- }, e;
1195
- }()
1196
- ), bn = {
1184
+ };
1185
+ function Xe() {
1186
+ this.cache = /* @__PURE__ */ Object.create(null);
1187
+ }
1188
+ Xe.prototype.get = function(e) {
1189
+ return this.cache[e];
1190
+ };
1191
+ Xe.prototype.set = function(e, t) {
1192
+ this.cache[e] = t;
1193
+ };
1194
+ var mn = {
1197
1195
  create: function() {
1198
- return new dn();
1196
+ return new Xe();
1199
1197
  }
1200
- }, Te = {
1201
- variadic: pn
1202
- }, pe = function() {
1203
- return pe = Object.assign || function(t) {
1204
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1205
- r = arguments[n];
1206
- for (var o in r)
1207
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1208
- }
1209
- return t;
1210
- }, pe.apply(this, arguments);
1211
- };
1212
- var p;
1198
+ }, Be = {
1199
+ variadic: cn,
1200
+ monadic: fn
1201
+ }, p;
1213
1202
  (function(e) {
1214
1203
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
1215
1204
  })(p || (p = {}));
1216
- var v;
1205
+ var E;
1217
1206
  (function(e) {
1218
1207
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
1219
- })(v || (v = {}));
1220
- var j;
1208
+ })(E || (E = {}));
1209
+ var k;
1221
1210
  (function(e) {
1222
1211
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1223
- })(j || (j = {}));
1224
- function ht(e) {
1225
- return e.type === v.literal;
1212
+ })(k || (k = {}));
1213
+ function at(e) {
1214
+ return e.type === E.literal;
1215
+ }
1216
+ function dn(e) {
1217
+ return e.type === E.argument;
1226
1218
  }
1227
- function gn(e) {
1228
- return e.type === v.argument;
1219
+ function $t(e) {
1220
+ return e.type === E.number;
1229
1221
  }
1230
1222
  function Rt(e) {
1231
- return e.type === v.number;
1223
+ return e.type === E.date;
1232
1224
  }
1233
1225
  function Ut(e) {
1234
- return e.type === v.date;
1226
+ return e.type === E.time;
1235
1227
  }
1236
1228
  function Dt(e) {
1237
- return e.type === v.time;
1238
- }
1239
- function Gt(e) {
1240
- return e.type === v.select;
1229
+ return e.type === E.select;
1241
1230
  }
1242
1231
  function Ft(e) {
1243
- return e.type === v.plural;
1232
+ return e.type === E.plural;
1244
1233
  }
1245
- function yn(e) {
1246
- return e.type === v.pound;
1234
+ function bn(e) {
1235
+ return e.type === E.pound;
1247
1236
  }
1248
- function jt(e) {
1249
- return e.type === v.tag;
1237
+ function Gt(e) {
1238
+ return e.type === E.tag;
1250
1239
  }
1251
- function kt(e) {
1252
- return !!(e && typeof e == "object" && e.type === j.number);
1240
+ function jt(e) {
1241
+ return !!(e && typeof e == "object" && e.type === k.number);
1253
1242
  }
1254
- function De(e) {
1255
- return !!(e && typeof e == "object" && e.type === j.dateTime);
1243
+ function Me(e) {
1244
+ return !!(e && typeof e == "object" && e.type === k.dateTime);
1256
1245
  }
1257
- var Vt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, vn = /(?:[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;
1258
- function En(e) {
1246
+ var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
1247
+ function yn(e) {
1259
1248
  var t = {};
1260
- return e.replace(vn, function(r) {
1249
+ return e.replace(gn, function(r) {
1261
1250
  var n = r.length;
1262
1251
  switch (r[0]) {
1263
1252
  case "G":
@@ -1346,46 +1335,36 @@ function En(e) {
1346
1335
  return "";
1347
1336
  }), t;
1348
1337
  }
1349
- var E = function() {
1350
- return E = Object.assign || function(t) {
1351
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1352
- r = arguments[n];
1353
- for (var o in r)
1354
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1355
- }
1356
- return t;
1357
- }, E.apply(this, arguments);
1358
- };
1359
- var _n = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1360
- function xn(e) {
1338
+ var vn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1339
+ function En(e) {
1361
1340
  if (e.length === 0)
1362
1341
  throw new Error("Number skeleton cannot be empty");
1363
- for (var t = e.split(_n).filter(function(f) {
1342
+ for (var t = e.split(vn).filter(function(f) {
1364
1343
  return f.length > 0;
1365
1344
  }), r = [], n = 0, i = t; n < i.length; n++) {
1366
- var o = i[n], s = o.split("/");
1367
- if (s.length === 0)
1345
+ var o = i[n], a = o.split("/");
1346
+ if (a.length === 0)
1368
1347
  throw new Error("Invalid number skeleton");
1369
- for (var a = s[0], u = s.slice(1), h = 0, l = u; h < l.length; h++) {
1348
+ for (var s = a[0], u = a.slice(1), h = 0, l = u; h < l.length; h++) {
1370
1349
  var c = l[h];
1371
1350
  if (c.length === 0)
1372
1351
  throw new Error("Invalid number skeleton");
1373
1352
  }
1374
- r.push({ stem: a, options: u });
1353
+ r.push({ stem: s, options: u });
1375
1354
  }
1376
1355
  return r;
1377
1356
  }
1378
- function Sn(e) {
1357
+ function xn(e) {
1379
1358
  return e.replace(/^(.*?)-/, "");
1380
1359
  }
1381
- var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Xt = /^(@+)?(\+|#+)?[rs]?$/g, Bn = /(\*)(0+)|(#+)(0+)|(0+)/g, zt = /^(0+)$/;
1382
- function ct(e) {
1360
+ var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, _n = /(\*)(0+)|(#+)(0+)|(0+)/g, zt = /^(0+)$/;
1361
+ function ht(e) {
1383
1362
  var t = {};
1384
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Xt, function(r, n, i) {
1363
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
1385
1364
  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)), "";
1386
1365
  }), t;
1387
1366
  }
1388
- function Wt(e) {
1367
+ function Xt(e) {
1389
1368
  switch (e) {
1390
1369
  case "sign-auto":
1391
1370
  return {
@@ -1425,7 +1404,7 @@ function Wt(e) {
1425
1404
  };
1426
1405
  }
1427
1406
  }
1428
- function wn(e) {
1407
+ function Sn(e) {
1429
1408
  var t;
1430
1409
  if (e[0] === "E" && e[1] === "E" ? (t = {
1431
1410
  notation: "engineering"
@@ -1439,11 +1418,11 @@ function wn(e) {
1439
1418
  }
1440
1419
  return t;
1441
1420
  }
1442
- function ft(e) {
1443
- var t = {}, r = Wt(e);
1421
+ function lt(e) {
1422
+ var t = {}, r = Xt(e);
1444
1423
  return r || t;
1445
1424
  }
1446
- function Tn(e) {
1425
+ function Bn(e) {
1447
1426
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1448
1427
  var i = n[r];
1449
1428
  switch (i.stem) {
@@ -1467,7 +1446,7 @@ function Tn(e) {
1467
1446
  continue;
1468
1447
  case "measure-unit":
1469
1448
  case "unit":
1470
- t.style = "unit", t.unit = Sn(i.options[0]);
1449
+ t.style = "unit", t.unit = xn(i.options[0]);
1471
1450
  continue;
1472
1451
  case "compact-short":
1473
1452
  case "K":
@@ -1478,13 +1457,13 @@ function Tn(e) {
1478
1457
  t.notation = "compact", t.compactDisplay = "long";
1479
1458
  continue;
1480
1459
  case "scientific":
1481
- t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
1482
- return E(E({}, u), ft(h));
1460
+ t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
1461
+ return b(b({}, u), lt(h));
1483
1462
  }, {}));
1484
1463
  continue;
1485
1464
  case "engineering":
1486
- t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
1487
- return E(E({}, u), ft(h));
1465
+ t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
1466
+ return b(b({}, u), lt(h));
1488
1467
  }, {}));
1489
1468
  continue;
1490
1469
  case "notation-simple":
@@ -1529,7 +1508,7 @@ function Tn(e) {
1529
1508
  case "integer-width":
1530
1509
  if (i.options.length > 1)
1531
1510
  throw new RangeError("integer-width stems only accept a single optional option");
1532
- i.options[0].replace(Bn, function(u, h, l, c, f, m) {
1511
+ i.options[0].replace(_n, function(u, h, l, c, f, m) {
1533
1512
  if (h)
1534
1513
  t.minimumIntegerDigits = l.length;
1535
1514
  else {
@@ -1546,24 +1525,24 @@ function Tn(e) {
1546
1525
  t.minimumIntegerDigits = i.stem.length;
1547
1526
  continue;
1548
1527
  }
1549
- if (lt.test(i.stem)) {
1528
+ if (ut.test(i.stem)) {
1550
1529
  if (i.options.length > 1)
1551
1530
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1552
- i.stem.replace(lt, function(u, h, l, c, f, m) {
1531
+ i.stem.replace(ut, function(u, h, l, c, f, m) {
1553
1532
  return l === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
1554
1533
  });
1555
1534
  var o = i.options[0];
1556
- o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), ct(o)));
1535
+ o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t), ht(o)));
1557
1536
  continue;
1558
1537
  }
1559
- if (Xt.test(i.stem)) {
1560
- t = E(E({}, t), ct(i.stem));
1538
+ if (Vt.test(i.stem)) {
1539
+ t = b(b({}, t), ht(i.stem));
1561
1540
  continue;
1562
1541
  }
1563
- var s = Wt(i.stem);
1564
- s && (t = E(E({}, t), s));
1565
- var a = wn(i.stem);
1566
- a && (t = E(E({}, t), a));
1542
+ var a = Xt(i.stem);
1543
+ a && (t = b(b({}, t), a));
1544
+ var s = Sn(i.stem);
1545
+ s && (t = b(b({}, t), s));
1567
1546
  }
1568
1547
  return t;
1569
1548
  }
@@ -2982,23 +2961,23 @@ var oe = {
2982
2961
  "h"
2983
2962
  ]
2984
2963
  };
2985
- function Hn(e, t) {
2964
+ function Tn(e, t) {
2986
2965
  for (var r = "", n = 0; n < e.length; n++) {
2987
2966
  var i = e.charAt(n);
2988
2967
  if (i === "j") {
2989
2968
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2990
2969
  o++, n++;
2991
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = Pn(t);
2992
- for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
2970
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = wn(t);
2971
+ for ((h == "H" || h == "k") && (s = 0); s-- > 0; )
2993
2972
  r += u;
2994
- for (; s-- > 0; )
2973
+ for (; a-- > 0; )
2995
2974
  r = h + r;
2996
2975
  } else
2997
2976
  i === "J" ? r += "H" : r += i;
2998
2977
  }
2999
2978
  return r;
3000
2979
  }
3001
- function Pn(e) {
2980
+ function wn(e) {
3002
2981
  var t = e.hourCycle;
3003
2982
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3004
2983
  e.hourCycles && // @ts-ignore
@@ -3020,20 +2999,20 @@ function Pn(e) {
3020
2999
  var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
3021
3000
  return i[0];
3022
3001
  }
3023
- var He, An = new RegExp("^".concat(Vt.source, "*")), On = new RegExp("".concat(Vt.source, "*$"));
3002
+ var Te, Hn = new RegExp("^".concat(kt.source, "*")), Pn = new RegExp("".concat(kt.source, "*$"));
3024
3003
  function d(e, t) {
3025
3004
  return { start: e, end: t };
3026
3005
  }
3027
- var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint, Ln = !!Object.fromEntries, Cn = !!String.prototype.codePointAt, Mn = !!String.prototype.trimStart, $n = !!String.prototype.trimEnd, Rn = !!Number.isSafeInteger, Un = Rn ? Number.isSafeInteger : function(e) {
3006
+ var An = !!String.prototype.startsWith && "_a".startsWith("a", 1), On = !!String.fromCodePoint, In = !!Object.fromEntries, Ln = !!String.prototype.codePointAt, Nn = !!String.prototype.trimStart, Cn = !!String.prototype.trimEnd, Mn = !!Number.isSafeInteger, $n = Mn ? Number.isSafeInteger : function(e) {
3028
3007
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3029
- }, Ge = !0;
3008
+ }, $e = !0;
3030
3009
  try {
3031
- var Dn = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3032
- Ge = ((He = Dn.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
3010
+ var Rn = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3011
+ $e = ((Te = Rn.exec("a")) === null || Te === void 0 ? void 0 : Te[0]) === "a";
3033
3012
  } catch {
3034
- Ge = !1;
3013
+ $e = !1;
3035
3014
  }
3036
- var pt = In ? (
3015
+ var ct = An ? (
3037
3016
  // Native
3038
3017
  function(t, r, n) {
3039
3018
  return t.startsWith(r, n);
@@ -3043,31 +3022,31 @@ var pt = In ? (
3043
3022
  function(t, r, n) {
3044
3023
  return t.slice(n, n + r.length) === r;
3045
3024
  }
3046
- ), Fe = Nn ? String.fromCodePoint : (
3025
+ ), Re = On ? String.fromCodePoint : (
3047
3026
  // IE11
3048
3027
  function() {
3049
3028
  for (var t = [], r = 0; r < arguments.length; r++)
3050
3029
  t[r] = arguments[r];
3051
- for (var n = "", i = t.length, o = 0, s; i > o; ) {
3052
- if (s = t[o++], s > 1114111)
3053
- throw RangeError(s + " is not a valid code point");
3054
- n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
3030
+ for (var n = "", i = t.length, o = 0, a; i > o; ) {
3031
+ if (a = t[o++], a > 1114111)
3032
+ throw RangeError(a + " is not a valid code point");
3033
+ n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
3055
3034
  }
3056
3035
  return n;
3057
3036
  }
3058
- ), mt = (
3037
+ ), ft = (
3059
3038
  // native
3060
- Ln ? Object.fromEntries : (
3039
+ In ? Object.fromEntries : (
3061
3040
  // Ponyfill
3062
3041
  function(t) {
3063
3042
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
3064
- var o = i[n], s = o[0], a = o[1];
3065
- r[s] = a;
3043
+ var o = i[n], a = o[0], s = o[1];
3044
+ r[a] = s;
3066
3045
  }
3067
3046
  return r;
3068
3047
  }
3069
3048
  )
3070
- ), Zt = Cn ? (
3049
+ ), Wt = Ln ? (
3071
3050
  // Native
3072
3051
  function(t, r) {
3073
3052
  return t.codePointAt(r);
@@ -3081,7 +3060,7 @@ var pt = In ? (
3081
3060
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3082
3061
  }
3083
3062
  }
3084
- ), Gn = Mn ? (
3063
+ ), Un = Nn ? (
3085
3064
  // Native
3086
3065
  function(t) {
3087
3066
  return t.trimStart();
@@ -3089,9 +3068,9 @@ var pt = In ? (
3089
3068
  ) : (
3090
3069
  // Ponyfill
3091
3070
  function(t) {
3092
- return t.replace(An, "");
3071
+ return t.replace(Hn, "");
3093
3072
  }
3094
- ), Fn = $n ? (
3073
+ ), Dn = Cn ? (
3095
3074
  // Native
3096
3075
  function(t) {
3097
3076
  return t.trimEnd();
@@ -3099,32 +3078,32 @@ var pt = In ? (
3099
3078
  ) : (
3100
3079
  // Ponyfill
3101
3080
  function(t) {
3102
- return t.replace(On, "");
3081
+ return t.replace(Pn, "");
3103
3082
  }
3104
3083
  );
3105
- function Qt(e, t) {
3084
+ function Zt(e, t) {
3106
3085
  return new RegExp(e, t);
3107
3086
  }
3108
- var je;
3109
- if (Ge) {
3110
- var dt = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3111
- je = function(t, r) {
3087
+ var Ue;
3088
+ if ($e) {
3089
+ var pt = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3090
+ Ue = function(t, r) {
3112
3091
  var n;
3113
- dt.lastIndex = r;
3114
- var i = dt.exec(t);
3092
+ pt.lastIndex = r;
3093
+ var i = pt.exec(t);
3115
3094
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3116
3095
  };
3117
3096
  } else
3118
- je = function(t, r) {
3097
+ Ue = function(t, r) {
3119
3098
  for (var n = []; ; ) {
3120
- var i = Zt(t, r);
3121
- if (i === void 0 || Jt(i) || Xn(i))
3099
+ var i = Wt(t, r);
3100
+ if (i === void 0 || Qt(i) || kn(i))
3122
3101
  break;
3123
3102
  n.push(i), r += i >= 65536 ? 2 : 1;
3124
3103
  }
3125
- return Fe.apply(void 0, n);
3104
+ return Re.apply(void 0, n);
3126
3105
  };
3127
- var jn = (
3106
+ var Fn = (
3128
3107
  /** @class */
3129
3108
  function() {
3130
3109
  function e(t, r) {
@@ -3138,33 +3117,33 @@ var jn = (
3138
3117
  for (var i = []; !this.isEOF(); ) {
3139
3118
  var o = this.char();
3140
3119
  if (o === 123) {
3141
- var s = this.parseArgument(t, n);
3142
- if (s.err)
3143
- return s;
3144
- i.push(s.val);
3120
+ var a = this.parseArgument(t, n);
3121
+ if (a.err)
3122
+ return a;
3123
+ i.push(a.val);
3145
3124
  } else {
3146
3125
  if (o === 125 && t > 0)
3147
3126
  break;
3148
3127
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3149
- var a = this.clonePosition();
3128
+ var s = this.clonePosition();
3150
3129
  this.bump(), i.push({
3151
- type: v.pound,
3152
- location: d(a, this.clonePosition())
3130
+ type: E.pound,
3131
+ location: d(s, this.clonePosition())
3153
3132
  });
3154
3133
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3155
3134
  if (n)
3156
3135
  break;
3157
3136
  return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
3158
- } else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
3159
- var s = this.parseTag(t, r);
3160
- if (s.err)
3161
- return s;
3162
- i.push(s.val);
3137
+ } else if (o === 60 && !this.ignoreTag && De(this.peek() || 0)) {
3138
+ var a = this.parseTag(t, r);
3139
+ if (a.err)
3140
+ return a;
3141
+ i.push(a.val);
3163
3142
  } else {
3164
- var s = this.parseLiteral(t, r);
3165
- if (s.err)
3166
- return s;
3167
- i.push(s.val);
3143
+ var a = this.parseLiteral(t, r);
3144
+ if (a.err)
3145
+ return a;
3146
+ i.push(a.val);
3168
3147
  }
3169
3148
  }
3170
3149
  }
@@ -3176,7 +3155,7 @@ var jn = (
3176
3155
  if (this.bumpSpace(), this.bumpIf("/>"))
3177
3156
  return {
3178
3157
  val: {
3179
- type: v.literal,
3158
+ type: E.literal,
3180
3159
  value: "<".concat(i, "/>"),
3181
3160
  location: d(n, this.clonePosition())
3182
3161
  },
@@ -3186,27 +3165,27 @@ var jn = (
3186
3165
  var o = this.parseMessage(t + 1, r, !0);
3187
3166
  if (o.err)
3188
3167
  return o;
3189
- var s = o.val, a = this.clonePosition();
3168
+ var a = o.val, s = this.clonePosition();
3190
3169
  if (this.bumpIf("</")) {
3191
- if (this.isEOF() || !ke(this.char()))
3192
- return this.error(p.INVALID_TAG, d(a, this.clonePosition()));
3170
+ if (this.isEOF() || !De(this.char()))
3171
+ return this.error(p.INVALID_TAG, d(s, this.clonePosition()));
3193
3172
  var u = this.clonePosition(), h = this.parseTagName();
3194
3173
  return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG, d(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3195
3174
  val: {
3196
- type: v.tag,
3175
+ type: E.tag,
3197
3176
  value: i,
3198
- children: s,
3177
+ children: a,
3199
3178
  location: d(n, this.clonePosition())
3200
3179
  },
3201
3180
  err: null
3202
- } : this.error(p.INVALID_TAG, d(a, this.clonePosition())));
3181
+ } : this.error(p.INVALID_TAG, d(s, this.clonePosition())));
3203
3182
  } else
3204
3183
  return this.error(p.UNCLOSED_TAG, d(n, this.clonePosition()));
3205
3184
  } else
3206
3185
  return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
3207
3186
  }, e.prototype.parseTagName = function() {
3208
3187
  var t = this.offset();
3209
- for (this.bump(); !this.isEOF() && Vn(this.char()); )
3188
+ for (this.bump(); !this.isEOF() && jn(this.char()); )
3210
3189
  this.bump();
3211
3190
  return this.message.slice(t, this.offset());
3212
3191
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3216,26 +3195,26 @@ var jn = (
3216
3195
  i += o;
3217
3196
  continue;
3218
3197
  }
3219
- var s = this.tryParseUnquoted(t, r);
3220
- if (s) {
3221
- i += s;
3222
- continue;
3223
- }
3224
- var a = this.tryParseLeftAngleBracket();
3198
+ var a = this.tryParseUnquoted(t, r);
3225
3199
  if (a) {
3226
3200
  i += a;
3227
3201
  continue;
3228
3202
  }
3203
+ var s = this.tryParseLeftAngleBracket();
3204
+ if (s) {
3205
+ i += s;
3206
+ continue;
3207
+ }
3229
3208
  break;
3230
3209
  }
3231
3210
  var u = d(n, this.clonePosition());
3232
3211
  return {
3233
- val: { type: v.literal, value: i, location: u },
3212
+ val: { type: E.literal, value: i, location: u },
3234
3213
  err: null
3235
3214
  };
3236
3215
  }, e.prototype.tryParseLeftAngleBracket = function() {
3237
3216
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3238
- !kn(this.peek() || 0)) ? (this.bump(), "<") : null;
3217
+ !Gn(this.peek() || 0)) ? (this.bump(), "<") : null;
3239
3218
  }, e.prototype.tryParseQuote = function(t) {
3240
3219
  if (this.isEOF() || this.char() !== 39)
3241
3220
  return null;
@@ -3269,12 +3248,12 @@ var jn = (
3269
3248
  r.push(n);
3270
3249
  this.bump();
3271
3250
  }
3272
- return Fe.apply(void 0, r);
3251
+ return Re.apply(void 0, r);
3273
3252
  }, e.prototype.tryParseUnquoted = function(t, r) {
3274
3253
  if (this.isEOF())
3275
3254
  return null;
3276
3255
  var n = this.char();
3277
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
3256
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Re(n));
3278
3257
  }, e.prototype.parseArgument = function(t, r) {
3279
3258
  var n = this.clonePosition();
3280
3259
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3290,7 +3269,7 @@ var jn = (
3290
3269
  case 125:
3291
3270
  return this.bump(), {
3292
3271
  val: {
3293
- type: v.argument,
3272
+ type: E.argument,
3294
3273
  // value does not include the opening and closing braces.
3295
3274
  value: i,
3296
3275
  location: d(n, this.clonePosition())
@@ -3303,15 +3282,15 @@ var jn = (
3303
3282
  return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
3304
3283
  }
3305
3284
  }, e.prototype.parseIdentifierIfPossible = function() {
3306
- var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
3285
+ var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
3307
3286
  this.bumpTo(i);
3308
- var o = this.clonePosition(), s = d(t, o);
3309
- return { value: n, location: s };
3287
+ var o = this.clonePosition(), a = d(t, o);
3288
+ return { value: n, location: a };
3310
3289
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3311
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
3312
- switch (a) {
3290
+ var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
3291
+ switch (s) {
3313
3292
  case "":
3314
- return this.error(p.EXPECT_ARGUMENT_TYPE, d(s, u));
3293
+ return this.error(p.EXPECT_ARGUMENT_TYPE, d(a, u));
3315
3294
  case "number":
3316
3295
  case "date":
3317
3296
  case "time": {
@@ -3322,46 +3301,46 @@ var jn = (
3322
3301
  var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3323
3302
  if (c.err)
3324
3303
  return c;
3325
- var f = Fn(c.val);
3304
+ var f = Dn(c.val);
3326
3305
  if (f.length === 0)
3327
3306
  return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
3328
3307
  var m = d(l, this.clonePosition());
3329
3308
  h = { style: f, styleLocation: m };
3330
3309
  }
3331
- var g = this.tryParseArgumentClose(i);
3332
- if (g.err)
3333
- return g;
3334
- var b = d(i, this.clonePosition());
3335
- if (h && pt(h?.style, "::", 0)) {
3336
- var B = Gn(h.style.slice(2));
3337
- if (a === "number") {
3310
+ var y = this.tryParseArgumentClose(i);
3311
+ if (y.err)
3312
+ return y;
3313
+ var g = d(i, this.clonePosition());
3314
+ if (h && ct(h?.style, "::", 0)) {
3315
+ var B = Un(h.style.slice(2));
3316
+ if (s === "number") {
3338
3317
  var c = this.parseNumberSkeletonFromString(B, h.styleLocation);
3339
3318
  return c.err ? c : {
3340
- val: { type: v.number, value: n, location: b, style: c.val },
3319
+ val: { type: E.number, value: n, location: g, style: c.val },
3341
3320
  err: null
3342
3321
  };
3343
3322
  } else {
3344
3323
  if (B.length === 0)
3345
- return this.error(p.EXPECT_DATE_TIME_SKELETON, b);
3346
- var N = B;
3347
- this.locale && (N = Hn(B, this.locale));
3324
+ return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
3325
+ var L = B;
3326
+ this.locale && (L = Tn(B, this.locale));
3348
3327
  var f = {
3349
- type: j.dateTime,
3350
- pattern: N,
3328
+ type: k.dateTime,
3329
+ pattern: L,
3351
3330
  location: h.styleLocation,
3352
- parsedOptions: this.shouldParseSkeletons ? En(N) : {}
3353
- }, O = a === "date" ? v.date : v.time;
3331
+ parsedOptions: this.shouldParseSkeletons ? yn(L) : {}
3332
+ }, O = s === "date" ? E.date : E.time;
3354
3333
  return {
3355
- val: { type: O, value: n, location: b, style: f },
3334
+ val: { type: O, value: n, location: g, style: f },
3356
3335
  err: null
3357
3336
  };
3358
3337
  }
3359
3338
  }
3360
3339
  return {
3361
3340
  val: {
3362
- type: a === "number" ? v.number : a === "date" ? v.date : v.time,
3341
+ type: s === "number" ? E.number : s === "date" ? E.date : E.time,
3363
3342
  value: n,
3364
- location: b,
3343
+ location: g,
3365
3344
  style: (o = h?.style) !== null && o !== void 0 ? o : null
3366
3345
  },
3367
3346
  err: null
@@ -3370,49 +3349,49 @@ var jn = (
3370
3349
  case "plural":
3371
3350
  case "selectordinal":
3372
3351
  case "select": {
3373
- var x = this.clonePosition();
3352
+ var _ = this.clonePosition();
3374
3353
  if (this.bumpSpace(), !this.bumpIf(","))
3375
- return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(x, pe({}, x)));
3354
+ return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(_, b({}, _)));
3376
3355
  this.bumpSpace();
3377
- var T = this.parseIdentifierIfPossible(), S = 0;
3378
- if (a !== "select" && T.value === "offset") {
3356
+ var w = this.parseIdentifierIfPossible(), S = 0;
3357
+ if (s !== "select" && w.value === "offset") {
3379
3358
  if (!this.bumpIf(":"))
3380
3359
  return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
3381
3360
  this.bumpSpace();
3382
3361
  var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3383
3362
  if (c.err)
3384
3363
  return c;
3385
- this.bumpSpace(), T = this.parseIdentifierIfPossible(), S = c.val;
3364
+ this.bumpSpace(), w = this.parseIdentifierIfPossible(), S = c.val;
3386
3365
  }
3387
- var M = this.tryParsePluralOrSelectOptions(t, a, r, T);
3366
+ var M = this.tryParsePluralOrSelectOptions(t, s, r, w);
3388
3367
  if (M.err)
3389
3368
  return M;
3390
- var g = this.tryParseArgumentClose(i);
3391
- if (g.err)
3392
- return g;
3369
+ var y = this.tryParseArgumentClose(i);
3370
+ if (y.err)
3371
+ return y;
3393
3372
  var ne = d(i, this.clonePosition());
3394
- return a === "select" ? {
3373
+ return s === "select" ? {
3395
3374
  val: {
3396
- type: v.select,
3375
+ type: E.select,
3397
3376
  value: n,
3398
- options: mt(M.val),
3377
+ options: ft(M.val),
3399
3378
  location: ne
3400
3379
  },
3401
3380
  err: null
3402
3381
  } : {
3403
3382
  val: {
3404
- type: v.plural,
3383
+ type: E.plural,
3405
3384
  value: n,
3406
- options: mt(M.val),
3385
+ options: ft(M.val),
3407
3386
  offset: S,
3408
- pluralType: a === "plural" ? "cardinal" : "ordinal",
3387
+ pluralType: s === "plural" ? "cardinal" : "ordinal",
3409
3388
  location: ne
3410
3389
  },
3411
3390
  err: null
3412
3391
  };
3413
3392
  }
3414
3393
  default:
3415
- return this.error(p.INVALID_ARGUMENT_TYPE, d(s, u));
3394
+ return this.error(p.INVALID_ARGUMENT_TYPE, d(a, u));
3416
3395
  }
3417
3396
  }, e.prototype.tryParseArgumentClose = function(t) {
3418
3397
  return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3454,21 +3433,21 @@ var jn = (
3454
3433
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3455
3434
  var n = [];
3456
3435
  try {
3457
- n = xn(t);
3436
+ n = En(t);
3458
3437
  } catch {
3459
3438
  return this.error(p.INVALID_NUMBER_SKELETON, r);
3460
3439
  }
3461
3440
  return {
3462
3441
  val: {
3463
- type: j.number,
3442
+ type: k.number,
3464
3443
  tokens: n,
3465
3444
  location: r,
3466
- parsedOptions: this.shouldParseSkeletons ? Tn(n) : {}
3445
+ parsedOptions: this.shouldParseSkeletons ? Bn(n) : {}
3467
3446
  },
3468
3447
  err: null
3469
3448
  };
3470
3449
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3471
- for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), h = i.value, l = i.location; ; ) {
3450
+ for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), h = i.value, l = i.location; ; ) {
3472
3451
  if (h.length === 0) {
3473
3452
  var c = this.clonePosition();
3474
3453
  if (r !== "select" && this.bumpIf("=")) {
@@ -3481,37 +3460,37 @@ var jn = (
3481
3460
  }
3482
3461
  if (u.has(h))
3483
3462
  return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3484
- h === "other" && (s = !0), this.bumpSpace();
3463
+ h === "other" && (a = !0), this.bumpSpace();
3485
3464
  var m = this.clonePosition();
3486
3465
  if (!this.bumpIf("{"))
3487
3466
  return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
3488
- var g = this.parseMessage(t + 1, r, n);
3467
+ var y = this.parseMessage(t + 1, r, n);
3468
+ if (y.err)
3469
+ return y;
3470
+ var g = this.tryParseArgumentClose(m);
3489
3471
  if (g.err)
3490
3472
  return g;
3491
- var b = this.tryParseArgumentClose(m);
3492
- if (b.err)
3493
- return b;
3494
- a.push([
3473
+ s.push([
3495
3474
  h,
3496
3475
  {
3497
- value: g.val,
3476
+ value: y.val,
3498
3477
  location: d(m, this.clonePosition())
3499
3478
  }
3500
3479
  ]), u.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, l = o.location;
3501
3480
  }
3502
- return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3481
+ return s.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(p.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3503
3482
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3504
3483
  var n = 1, i = this.clonePosition();
3505
3484
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3506
- for (var o = !1, s = 0; !this.isEOF(); ) {
3507
- var a = this.char();
3508
- if (a >= 48 && a <= 57)
3509
- o = !0, s = s * 10 + (a - 48), this.bump();
3485
+ for (var o = !1, a = 0; !this.isEOF(); ) {
3486
+ var s = this.char();
3487
+ if (s >= 48 && s <= 57)
3488
+ o = !0, a = a * 10 + (s - 48), this.bump();
3510
3489
  else
3511
3490
  break;
3512
3491
  }
3513
3492
  var u = d(i, this.clonePosition());
3514
- return o ? (s *= n, Un(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
3493
+ return o ? (a *= n, $n(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
3515
3494
  }, e.prototype.offset = function() {
3516
3495
  return this.position.offset;
3517
3496
  }, e.prototype.isEOF = function() {
@@ -3526,7 +3505,7 @@ var jn = (
3526
3505
  var t = this.position.offset;
3527
3506
  if (t >= this.message.length)
3528
3507
  throw Error("out of bound");
3529
- var r = Zt(this.message, t);
3508
+ var r = Wt(this.message, t);
3530
3509
  if (r === void 0)
3531
3510
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3532
3511
  return r;
@@ -3545,7 +3524,7 @@ var jn = (
3545
3524
  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);
3546
3525
  }
3547
3526
  }, e.prototype.bumpIf = function(t) {
3548
- if (pt(this.message, t, this.offset())) {
3527
+ if (ct(this.message, t, this.offset())) {
3549
3528
  for (var r = 0; r < t.length; r++)
3550
3529
  this.bump();
3551
3530
  return !0;
@@ -3567,7 +3546,7 @@ var jn = (
3567
3546
  break;
3568
3547
  }
3569
3548
  }, e.prototype.bumpSpace = function() {
3570
- for (; !this.isEOF() && Jt(this.char()); )
3549
+ for (; !this.isEOF() && Qt(this.char()); )
3571
3550
  this.bump();
3572
3551
  }, e.prototype.peek = function() {
3573
3552
  if (this.isEOF())
@@ -3577,47 +3556,47 @@ var jn = (
3577
3556
  }, e;
3578
3557
  }()
3579
3558
  );
3580
- function ke(e) {
3559
+ function De(e) {
3581
3560
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3582
3561
  }
3583
- function kn(e) {
3584
- return ke(e) || e === 47;
3562
+ function Gn(e) {
3563
+ return De(e) || e === 47;
3585
3564
  }
3586
- function Vn(e) {
3565
+ function jn(e) {
3587
3566
  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;
3588
3567
  }
3589
- function Jt(e) {
3568
+ function Qt(e) {
3590
3569
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3591
3570
  }
3592
- function Xn(e) {
3571
+ function kn(e) {
3593
3572
  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;
3594
3573
  }
3595
- function Ve(e) {
3574
+ function Fe(e) {
3596
3575
  e.forEach(function(t) {
3597
- if (delete t.location, Gt(t) || Ft(t))
3576
+ if (delete t.location, Dt(t) || Ft(t))
3598
3577
  for (var r in t.options)
3599
- delete t.options[r].location, Ve(t.options[r].value);
3578
+ delete t.options[r].location, Fe(t.options[r].value);
3600
3579
  else
3601
- Rt(t) && kt(t.style) || (Ut(t) || Dt(t)) && De(t.style) ? delete t.style.location : jt(t) && Ve(t.children);
3580
+ $t(t) && jt(t.style) || (Rt(t) || Ut(t)) && Me(t.style) ? delete t.style.location : Gt(t) && Fe(t.children);
3602
3581
  });
3603
3582
  }
3604
- function zn(e, t) {
3605
- t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3606
- var r = new jn(e, t).parse();
3583
+ function Vn(e, t) {
3584
+ t === void 0 && (t = {}), t = b({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3585
+ var r = new Fn(e, t).parse();
3607
3586
  if (r.err) {
3608
3587
  var n = SyntaxError(p[r.err.kind]);
3609
3588
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3610
3589
  }
3611
- return t?.captureLocation || Ve(r.val), r.val;
3590
+ return t?.captureLocation || Fe(r.val), r.val;
3612
3591
  }
3613
- var k;
3592
+ var V;
3614
3593
  (function(e) {
3615
3594
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3616
- })(k || (k = {}));
3617
- var ve = (
3595
+ })(V || (V = {}));
3596
+ var ge = (
3618
3597
  /** @class */
3619
3598
  function(e) {
3620
- ye(t, e);
3599
+ A(t, e);
3621
3600
  function t(r, n, i) {
3622
3601
  var o = e.call(this, r) || this;
3623
3602
  return o.code = n, o.originalMessage = i, o;
@@ -3626,155 +3605,155 @@ var ve = (
3626
3605
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3627
3606
  }, t;
3628
3607
  }(Error)
3629
- ), bt = (
3608
+ ), mt = (
3630
3609
  /** @class */
3631
3610
  function(e) {
3632
- ye(t, e);
3611
+ A(t, e);
3633
3612
  function t(r, n, i, o) {
3634
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, o) || this;
3613
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, o) || this;
3635
3614
  }
3636
3615
  return t;
3637
- }(ve)
3638
- ), Wn = (
3616
+ }(ge)
3617
+ ), zn = (
3639
3618
  /** @class */
3640
3619
  function(e) {
3641
- ye(t, e);
3620
+ A(t, e);
3642
3621
  function t(r, n, i) {
3643
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), k.INVALID_VALUE, i) || this;
3622
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
3644
3623
  }
3645
3624
  return t;
3646
- }(ve)
3647
- ), Zn = (
3625
+ }(ge)
3626
+ ), Xn = (
3648
3627
  /** @class */
3649
3628
  function(e) {
3650
- ye(t, e);
3629
+ A(t, e);
3651
3630
  function t(r, n) {
3652
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), k.MISSING_VALUE, n) || this;
3631
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
3653
3632
  }
3654
3633
  return t;
3655
- }(ve)
3656
- ), _;
3634
+ }(ge)
3635
+ ), x;
3657
3636
  (function(e) {
3658
3637
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3659
- })(_ || (_ = {}));
3660
- function Qn(e) {
3638
+ })(x || (x = {}));
3639
+ function Wn(e) {
3661
3640
  return e.length < 2 ? e : e.reduce(function(t, r) {
3662
3641
  var n = t[t.length - 1];
3663
- return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
3642
+ return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
3664
3643
  }, []);
3665
3644
  }
3666
- function Jn(e) {
3645
+ function Zn(e) {
3667
3646
  return typeof e == "function";
3668
3647
  }
3669
- function le(e, t, r, n, i, o, s) {
3670
- if (e.length === 1 && ht(e[0]))
3648
+ function le(e, t, r, n, i, o, a) {
3649
+ if (e.length === 1 && at(e[0]))
3671
3650
  return [
3672
3651
  {
3673
- type: _.literal,
3652
+ type: x.literal,
3674
3653
  value: e[0].value
3675
3654
  }
3676
3655
  ];
3677
- for (var a = [], u = 0, h = e; u < h.length; u++) {
3656
+ for (var s = [], u = 0, h = e; u < h.length; u++) {
3678
3657
  var l = h[u];
3679
- if (ht(l)) {
3680
- a.push({
3681
- type: _.literal,
3658
+ if (at(l)) {
3659
+ s.push({
3660
+ type: x.literal,
3682
3661
  value: l.value
3683
3662
  });
3684
3663
  continue;
3685
3664
  }
3686
- if (yn(l)) {
3687
- typeof o == "number" && a.push({
3688
- type: _.literal,
3665
+ if (bn(l)) {
3666
+ typeof o == "number" && s.push({
3667
+ type: x.literal,
3689
3668
  value: r.getNumberFormat(t).format(o)
3690
3669
  });
3691
3670
  continue;
3692
3671
  }
3693
3672
  var c = l.value;
3694
3673
  if (!(i && c in i))
3695
- throw new Zn(c, s);
3674
+ throw new Xn(c, a);
3696
3675
  var f = i[c];
3697
- if (gn(l)) {
3698
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3699
- type: typeof f == "string" ? _.literal : _.object,
3676
+ if (dn(l)) {
3677
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
3678
+ type: typeof f == "string" ? x.literal : x.object,
3700
3679
  value: f
3701
3680
  });
3702
3681
  continue;
3703
3682
  }
3704
- if (Ut(l)) {
3705
- var m = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
3706
- a.push({
3707
- type: _.literal,
3683
+ if (Rt(l)) {
3684
+ var m = typeof l.style == "string" ? n.date[l.style] : Me(l.style) ? l.style.parsedOptions : void 0;
3685
+ s.push({
3686
+ type: x.literal,
3708
3687
  value: r.getDateTimeFormat(t, m).format(f)
3709
3688
  });
3710
3689
  continue;
3711
3690
  }
3712
- if (Dt(l)) {
3713
- var m = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
3714
- a.push({
3715
- type: _.literal,
3691
+ if (Ut(l)) {
3692
+ var m = typeof l.style == "string" ? n.time[l.style] : Me(l.style) ? l.style.parsedOptions : n.time.medium;
3693
+ s.push({
3694
+ type: x.literal,
3716
3695
  value: r.getDateTimeFormat(t, m).format(f)
3717
3696
  });
3718
3697
  continue;
3719
3698
  }
3720
- if (Rt(l)) {
3721
- var m = typeof l.style == "string" ? n.number[l.style] : kt(l.style) ? l.style.parsedOptions : void 0;
3722
- m && m.scale && (f = f * (m.scale || 1)), a.push({
3723
- type: _.literal,
3699
+ if ($t(l)) {
3700
+ var m = typeof l.style == "string" ? n.number[l.style] : jt(l.style) ? l.style.parsedOptions : void 0;
3701
+ m && m.scale && (f = f * (m.scale || 1)), s.push({
3702
+ type: x.literal,
3724
3703
  value: r.getNumberFormat(t, m).format(f)
3725
3704
  });
3726
3705
  continue;
3727
3706
  }
3728
- if (jt(l)) {
3729
- var g = l.children, b = l.value, B = i[b];
3730
- if (!Jn(B))
3731
- throw new Wn(b, "function", s);
3732
- var N = le(g, t, r, n, i, o), O = B(N.map(function(S) {
3707
+ if (Gt(l)) {
3708
+ var y = l.children, g = l.value, B = i[g];
3709
+ if (!Zn(B))
3710
+ throw new zn(g, "function", a);
3711
+ var L = le(y, t, r, n, i, o), O = B(L.map(function(S) {
3733
3712
  return S.value;
3734
3713
  }));
3735
- Array.isArray(O) || (O = [O]), a.push.apply(a, O.map(function(S) {
3714
+ Array.isArray(O) || (O = [O]), s.push.apply(s, O.map(function(S) {
3736
3715
  return {
3737
- type: typeof S == "string" ? _.literal : _.object,
3716
+ type: typeof S == "string" ? x.literal : x.object,
3738
3717
  value: S
3739
3718
  };
3740
3719
  }));
3741
3720
  }
3742
- if (Gt(l)) {
3743
- var x = l.options[f] || l.options.other;
3744
- if (!x)
3745
- throw new bt(l.value, f, Object.keys(l.options), s);
3746
- a.push.apply(a, le(x.value, t, r, n, i));
3721
+ if (Dt(l)) {
3722
+ var _ = l.options[f] || l.options.other;
3723
+ if (!_)
3724
+ throw new mt(l.value, f, Object.keys(l.options), a);
3725
+ s.push.apply(s, le(_.value, t, r, n, i));
3747
3726
  continue;
3748
3727
  }
3749
3728
  if (Ft(l)) {
3750
- var x = l.options["=".concat(f)];
3751
- if (!x) {
3729
+ var _ = l.options["=".concat(f)];
3730
+ if (!_) {
3752
3731
  if (!Intl.PluralRules)
3753
- throw new ve(`Intl.PluralRules is not available in this environment.
3732
+ throw new ge(`Intl.PluralRules is not available in this environment.
3754
3733
  Try polyfilling it using "@formatjs/intl-pluralrules"
3755
- `, k.MISSING_INTL_API, s);
3756
- var T = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3757
- x = l.options[T] || l.options.other;
3734
+ `, V.MISSING_INTL_API, a);
3735
+ var w = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3736
+ _ = l.options[w] || l.options.other;
3758
3737
  }
3759
- if (!x)
3760
- throw new bt(l.value, f, Object.keys(l.options), s);
3761
- a.push.apply(a, le(x.value, t, r, n, i, f - (l.offset || 0)));
3738
+ if (!_)
3739
+ throw new mt(l.value, f, Object.keys(l.options), a);
3740
+ s.push.apply(s, le(_.value, t, r, n, i, f - (l.offset || 0)));
3762
3741
  continue;
3763
3742
  }
3764
3743
  }
3765
- return Qn(a);
3744
+ return Wn(s);
3766
3745
  }
3767
- function Yn(e, t) {
3768
- return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3769
- return r[n] = H(H({}, e[n]), t[n] || {}), r;
3746
+ function Qn(e, t) {
3747
+ return t ? b(b(b({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3748
+ return r[n] = b(b({}, e[n]), t[n] || {}), r;
3770
3749
  }, {})) : e;
3771
3750
  }
3772
- function qn(e, t) {
3751
+ function Jn(e, t) {
3773
3752
  return t ? Object.keys(e).reduce(function(r, n) {
3774
- return r[n] = Yn(e[n], t[n]), r;
3775
- }, H({}, e)) : e;
3753
+ return r[n] = Qn(e[n], t[n]), r;
3754
+ }, b({}, e)) : e;
3776
3755
  }
3777
- function Pe(e) {
3756
+ function we(e) {
3778
3757
  return {
3779
3758
  create: function() {
3780
3759
  return {
@@ -3788,39 +3767,39 @@ function Pe(e) {
3788
3767
  }
3789
3768
  };
3790
3769
  }
3791
- function Kn(e) {
3770
+ function Yn(e) {
3792
3771
  return e === void 0 && (e = {
3793
3772
  number: {},
3794
3773
  dateTime: {},
3795
3774
  pluralRules: {}
3796
3775
  }), {
3797
- getNumberFormat: we(function() {
3776
+ getNumberFormat: Se(function() {
3798
3777
  for (var t, r = [], n = 0; n < arguments.length; n++)
3799
3778
  r[n] = arguments[n];
3800
- return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
3779
+ return new ((t = Intl.NumberFormat).bind.apply(t, G([void 0], r, !1)))();
3801
3780
  }, {
3802
- cache: Pe(e.number),
3803
- strategy: Te.variadic
3781
+ cache: we(e.number),
3782
+ strategy: Be.variadic
3804
3783
  }),
3805
- getDateTimeFormat: we(function() {
3784
+ getDateTimeFormat: Se(function() {
3806
3785
  for (var t, r = [], n = 0; n < arguments.length; n++)
3807
3786
  r[n] = arguments[n];
3808
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
3787
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, G([void 0], r, !1)))();
3809
3788
  }, {
3810
- cache: Pe(e.dateTime),
3811
- strategy: Te.variadic
3789
+ cache: we(e.dateTime),
3790
+ strategy: Be.variadic
3812
3791
  }),
3813
- getPluralRules: we(function() {
3792
+ getPluralRules: Se(function() {
3814
3793
  for (var t, r = [], n = 0; n < arguments.length; n++)
3815
3794
  r[n] = arguments[n];
3816
- return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
3795
+ return new ((t = Intl.PluralRules).bind.apply(t, G([void 0], r, !1)))();
3817
3796
  }, {
3818
- cache: Pe(e.pluralRules),
3819
- strategy: Te.variadic
3797
+ cache: we(e.pluralRules),
3798
+ strategy: Be.variadic
3820
3799
  })
3821
3800
  };
3822
3801
  }
3823
- var ei = (
3802
+ var qn = (
3824
3803
  /** @class */
3825
3804
  function() {
3826
3805
  function e(t, r, n, i) {
@@ -3835,7 +3814,7 @@ var ei = (
3835
3814
  if (h.length === 1)
3836
3815
  return h[0].value;
3837
3816
  var l = h.reduce(function(c, f) {
3838
- return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3817
+ return !c.length || f.type !== x.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3839
3818
  }, []);
3840
3819
  return l.length <= 1 ? l[0] || "" : l;
3841
3820
  }, this.formatToParts = function(u) {
@@ -3850,15 +3829,15 @@ var ei = (
3850
3829
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3851
3830
  if (this.message = t, !e.__parse)
3852
3831
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3853
- var s = i || {};
3854
- s.formatters;
3855
- var a = hn(s, ["formatters"]);
3856
- this.ast = e.__parse(t, H(H({}, a), { locale: this.resolvedLocale }));
3832
+ var a = i || {};
3833
+ a.formatters;
3834
+ var s = Or(a, ["formatters"]);
3835
+ this.ast = e.__parse(t, b(b({}, s), { locale: this.resolvedLocale }));
3857
3836
  } else
3858
3837
  this.ast = t;
3859
3838
  if (!Array.isArray(this.ast))
3860
3839
  throw new TypeError("A message must be provided as a String or AST.");
3861
- this.formats = qn(e.formats, n), this.formatters = i && i.formatters || Kn(this.formatterCache);
3840
+ this.formats = Jn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
3862
3841
  }
3863
3842
  return Object.defineProperty(e, "defaultLocale", {
3864
3843
  get: function() {
@@ -3871,7 +3850,7 @@ var ei = (
3871
3850
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3872
3851
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3873
3852
  }
3874
- }, e.__parse = zn, e.formats = {
3853
+ }, e.__parse = Vn, e.formats = {
3875
3854
  number: {
3876
3855
  integer: {
3877
3856
  maximumFractionDigits: 0
@@ -3932,7 +3911,7 @@ var ei = (
3932
3911
  }, e;
3933
3912
  }()
3934
3913
  );
3935
- function ti(e, t) {
3914
+ function Kn(e, t) {
3936
3915
  if (t == null)
3937
3916
  return;
3938
3917
  if (t in e)
@@ -3953,92 +3932,92 @@ function ti(e, t) {
3953
3932
  n = void 0;
3954
3933
  return n;
3955
3934
  }
3956
- const I = {}, ri = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), Yt = (e, t) => {
3935
+ const I = {}, ei = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), Jt = (e, t) => {
3957
3936
  if (t == null)
3958
3937
  return;
3959
3938
  if (t in I && e in I[t])
3960
3939
  return I[t][e];
3961
- const r = Ee(t);
3940
+ const r = ye(t);
3962
3941
  for (let n = 0; n < r.length; n++) {
3963
- const i = r[n], o = ii(i, e);
3942
+ const i = r[n], o = ri(i, e);
3964
3943
  if (o)
3965
- return ri(e, t, o);
3944
+ return ei(e, t, o);
3966
3945
  }
3967
3946
  };
3968
- let Qe;
3969
- const re = ge({});
3970
- function ni(e) {
3971
- return Qe[e] || null;
3947
+ let We;
3948
+ const re = be({});
3949
+ function ti(e) {
3950
+ return We[e] || null;
3972
3951
  }
3973
- function qt(e) {
3974
- return e in Qe;
3952
+ function Yt(e) {
3953
+ return e in We;
3975
3954
  }
3976
- function ii(e, t) {
3977
- if (!qt(e))
3955
+ function ri(e, t) {
3956
+ if (!Yt(e))
3978
3957
  return null;
3979
- const r = ni(e);
3980
- return ti(r, t);
3958
+ const r = ti(e);
3959
+ return Kn(r, t);
3981
3960
  }
3982
- function oi(e) {
3961
+ function ni(e) {
3983
3962
  if (e == null)
3984
3963
  return;
3985
- const t = Ee(e);
3964
+ const t = ye(e);
3986
3965
  for (let r = 0; r < t.length; r++) {
3987
3966
  const n = t[r];
3988
- if (qt(n))
3967
+ if (Yt(n))
3989
3968
  return n;
3990
3969
  }
3991
3970
  }
3992
- function Kt(e, ...t) {
3971
+ function qt(e, ...t) {
3993
3972
  delete I[e], re.update((r) => (r[e] = un.all([r[e] || {}, ...t]), r));
3994
3973
  }
3995
3974
  X(
3996
3975
  [re],
3997
3976
  ([e]) => Object.keys(e)
3998
3977
  );
3999
- re.subscribe((e) => Qe = e);
3978
+ re.subscribe((e) => We = e);
4000
3979
  const ce = {};
4001
- function si(e, t) {
3980
+ function ii(e, t) {
4002
3981
  ce[e].delete(t), ce[e].size === 0 && delete ce[e];
4003
3982
  }
4004
- function er(e) {
3983
+ function Kt(e) {
4005
3984
  return ce[e];
4006
3985
  }
4007
- function ai(e) {
4008
- return Ee(e).map((t) => {
4009
- const r = er(t);
3986
+ function oi(e) {
3987
+ return ye(e).map((t) => {
3988
+ const r = Kt(t);
4010
3989
  return [t, r ? [...r] : []];
4011
3990
  }).filter(([, t]) => t.length > 0);
4012
3991
  }
4013
- function Xe(e) {
4014
- return e == null ? !1 : Ee(e).some(
3992
+ function Ge(e) {
3993
+ return e == null ? !1 : ye(e).some(
4015
3994
  (t) => {
4016
3995
  var r;
4017
- return (r = er(t)) == null ? void 0 : r.size;
3996
+ return (r = Kt(t)) == null ? void 0 : r.size;
4018
3997
  }
4019
3998
  );
4020
3999
  }
4021
- function ui(e, t) {
4000
+ function si(e, t) {
4022
4001
  return Promise.all(
4023
- t.map((n) => (si(e, n), n().then((i) => i.default || i)))
4024
- ).then((n) => Kt(e, ...n));
4025
- }
4026
- const Z = {};
4027
- function tr(e) {
4028
- if (!Xe(e))
4029
- return e in Z ? Z[e] : Promise.resolve();
4030
- const t = ai(e);
4031
- return Z[e] = Promise.all(
4002
+ t.map((n) => (ii(e, n), n().then((i) => i.default || i)))
4003
+ ).then((n) => qt(e, ...n));
4004
+ }
4005
+ const Q = {};
4006
+ function er(e) {
4007
+ if (!Ge(e))
4008
+ return e in Q ? Q[e] : Promise.resolve();
4009
+ const t = oi(e);
4010
+ return Q[e] = Promise.all(
4032
4011
  t.map(
4033
- ([r, n]) => ui(r, n)
4012
+ ([r, n]) => si(r, n)
4034
4013
  )
4035
4014
  ).then(() => {
4036
- if (Xe(e))
4037
- return tr(e);
4038
- delete Z[e];
4039
- }), Z[e];
4015
+ if (Ge(e))
4016
+ return er(e);
4017
+ delete Q[e];
4018
+ }), Q[e];
4040
4019
  }
4041
- const hi = {
4020
+ const ai = {
4042
4021
  number: {
4043
4022
  scientific: { notation: "scientific" },
4044
4023
  engineering: { notation: "engineering" },
@@ -4067,159 +4046,159 @@ const hi = {
4067
4046
  timeZoneName: "short"
4068
4047
  }
4069
4048
  }
4070
- }, li = {
4049
+ }, ui = {
4071
4050
  fallbackLocale: null,
4072
4051
  loadingDelay: 200,
4073
- formats: hi,
4052
+ formats: ai,
4074
4053
  warnOnMissingMessages: !0,
4075
4054
  handleMissingMessage: void 0,
4076
4055
  ignoreTag: !0
4077
- }, ci = li;
4078
- function V() {
4079
- return ci;
4056
+ }, hi = ui;
4057
+ function z() {
4058
+ return hi;
4080
4059
  }
4081
- const Ae = ge(!1);
4082
- var fi = Object.defineProperty, pi = Object.defineProperties, mi = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, di = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gi = (e, t) => {
4060
+ const He = be(!1);
4061
+ var li = Object.defineProperty, ci = Object.defineProperties, fi = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, pi = Object.prototype.hasOwnProperty, mi = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, di = (e, t) => {
4083
4062
  for (var r in t || (t = {}))
4084
- di.call(t, r) && yt(e, r, t[r]);
4085
- if (gt)
4086
- for (var r of gt(t))
4087
- bi.call(t, r) && yt(e, r, t[r]);
4063
+ pi.call(t, r) && bt(e, r, t[r]);
4064
+ if (dt)
4065
+ for (var r of dt(t))
4066
+ mi.call(t, r) && bt(e, r, t[r]);
4088
4067
  return e;
4089
- }, yi = (e, t) => pi(e, mi(t));
4090
- let ze;
4091
- const me = ge(null);
4092
- function vt(e) {
4068
+ }, bi = (e, t) => ci(e, fi(t));
4069
+ let je;
4070
+ const pe = be(null);
4071
+ function gt(e) {
4093
4072
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4094
4073
  }
4095
- function Ee(e, t = V().fallbackLocale) {
4096
- const r = vt(e);
4097
- return t ? [.../* @__PURE__ */ new Set([...r, ...vt(t)])] : r;
4074
+ function ye(e, t = z().fallbackLocale) {
4075
+ const r = gt(e);
4076
+ return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
4098
4077
  }
4099
4078
  function C() {
4100
- return ze ?? void 0;
4079
+ return je ?? void 0;
4101
4080
  }
4102
- me.subscribe((e) => {
4103
- ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4081
+ pe.subscribe((e) => {
4082
+ je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4104
4083
  });
4105
- const vi = (e) => {
4106
- if (e && oi(e) && Xe(e)) {
4107
- const { loadingDelay: t } = V();
4084
+ const gi = (e) => {
4085
+ if (e && ni(e) && Ge(e)) {
4086
+ const { loadingDelay: t } = z();
4108
4087
  let r;
4109
4088
  return typeof window < "u" && C() != null && t ? r = window.setTimeout(
4110
- () => Ae.set(!0),
4089
+ () => He.set(!0),
4111
4090
  t
4112
- ) : Ae.set(!0), tr(e).then(() => {
4113
- me.set(e);
4091
+ ) : He.set(!0), er(e).then(() => {
4092
+ pe.set(e);
4114
4093
  }).finally(() => {
4115
- clearTimeout(r), Ae.set(!1);
4094
+ clearTimeout(r), He.set(!1);
4116
4095
  });
4117
4096
  }
4118
- return me.set(e);
4119
- }, z = yi(gi({}, me), {
4120
- set: vi
4121
- }), _e = (e) => {
4097
+ return pe.set(e);
4098
+ }, W = bi(di({}, pe), {
4099
+ set: gi
4100
+ }), ve = (e) => {
4122
4101
  const t = /* @__PURE__ */ Object.create(null);
4123
4102
  return (n) => {
4124
4103
  const i = JSON.stringify(n);
4125
4104
  return i in t ? t[i] : t[i] = e(n);
4126
4105
  };
4127
4106
  };
4128
- var Ei = Object.defineProperty, de = Object.getOwnPropertySymbols, rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
4107
+ var yi = Object.defineProperty, me = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
4129
4108
  for (var r in t || (t = {}))
4130
- rr.call(t, r) && Et(e, r, t[r]);
4131
- if (de)
4132
- for (var r of de(t))
4133
- nr.call(t, r) && Et(e, r, t[r]);
4109
+ tr.call(t, r) && yt(e, r, t[r]);
4110
+ if (me)
4111
+ for (var r of me(t))
4112
+ rr.call(t, r) && yt(e, r, t[r]);
4134
4113
  return e;
4135
- }, W = (e, t) => {
4114
+ }, Z = (e, t) => {
4136
4115
  var r = {};
4137
4116
  for (var n in e)
4138
- rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4139
- if (e != null && de)
4140
- for (var n of de(e))
4141
- t.indexOf(n) < 0 && nr.call(e, n) && (r[n] = e[n]);
4117
+ tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4118
+ if (e != null && me)
4119
+ for (var n of me(e))
4120
+ t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
4142
4121
  return r;
4143
4122
  };
4144
- const K = (e, t) => {
4145
- const { formats: r } = V();
4123
+ const ee = (e, t) => {
4124
+ const { formats: r } = z();
4146
4125
  if (e in r && t in r[e])
4147
4126
  return r[e][t];
4148
4127
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4149
- }, _i = _e(
4128
+ }, vi = ve(
4150
4129
  (e) => {
4151
- var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
4130
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
4152
4131
  if (r == null)
4153
4132
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4154
- return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
4133
+ return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
4155
4134
  }
4156
- ), xi = _e(
4135
+ ), Ei = ve(
4157
4136
  (e) => {
4158
- var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
4137
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
4159
4138
  if (r == null)
4160
4139
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4161
- return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
4140
+ return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
4162
4141
  }
4163
- ), Si = _e(
4142
+ ), xi = ve(
4164
4143
  (e) => {
4165
- var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
4144
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
4166
4145
  if (r == null)
4167
4146
  throw new Error(
4168
4147
  '[svelte-i18n] A "locale" must be set to format time values'
4169
4148
  );
4170
- return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
4149
+ return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
4171
4150
  }
4172
- ), Bi = (e = {}) => {
4151
+ ), _i = (e = {}) => {
4173
4152
  var t = e, {
4174
4153
  locale: r = C()
4175
- } = t, n = W(t, [
4154
+ } = t, n = Z(t, [
4176
4155
  "locale"
4177
4156
  ]);
4178
- return _i(Je({ locale: r }, n));
4179
- }, wi = (e = {}) => {
4157
+ return vi(Ze({ locale: r }, n));
4158
+ }, Si = (e = {}) => {
4180
4159
  var t = e, {
4181
4160
  locale: r = C()
4182
- } = t, n = W(t, [
4161
+ } = t, n = Z(t, [
4183
4162
  "locale"
4184
4163
  ]);
4185
- return xi(Je({ locale: r }, n));
4186
- }, Ti = (e = {}) => {
4164
+ return Ei(Ze({ locale: r }, n));
4165
+ }, Bi = (e = {}) => {
4187
4166
  var t = e, {
4188
4167
  locale: r = C()
4189
- } = t, n = W(t, [
4168
+ } = t, n = Z(t, [
4190
4169
  "locale"
4191
4170
  ]);
4192
- return Si(Je({ locale: r }, n));
4193
- }, Hi = _e(
4171
+ return xi(Ze({ locale: r }, n));
4172
+ }, Ti = ve(
4194
4173
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4195
- (e, t = C()) => new ei(e, t, V().formats, {
4196
- ignoreTag: V().ignoreTag
4174
+ (e, t = C()) => new qn(e, t, z().formats, {
4175
+ ignoreTag: z().ignoreTag
4197
4176
  })
4198
- ), Pi = (e, t = {}) => {
4177
+ ), wi = (e, t = {}) => {
4199
4178
  var r, n, i, o;
4200
- let s = t;
4201
- typeof e == "object" && (s = e, e = s.id);
4179
+ let a = t;
4180
+ typeof e == "object" && (a = e, e = a.id);
4202
4181
  const {
4203
- values: a,
4182
+ values: s,
4204
4183
  locale: u = C(),
4205
4184
  default: h
4206
- } = s;
4185
+ } = a;
4207
4186
  if (u == null)
4208
4187
  throw new Error(
4209
4188
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4210
4189
  );
4211
- let l = Yt(e, u);
4190
+ let l = Jt(e, u);
4212
4191
  if (!l)
4213
- l = (o = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
4192
+ l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
4214
4193
  else if (typeof l != "string")
4215
4194
  return console.warn(
4216
4195
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4217
4196
  ), l;
4218
- if (!a)
4197
+ if (!s)
4219
4198
  return l;
4220
4199
  let c = l;
4221
4200
  try {
4222
- c = Hi(l, u).format(a);
4201
+ c = Ti(l, u).format(s);
4223
4202
  } catch (f) {
4224
4203
  f instanceof Error && console.warn(
4225
4204
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4227,20 +4206,20 @@ const K = (e, t) => {
4227
4206
  );
4228
4207
  }
4229
4208
  return c;
4230
- }, Ai = (e, t) => Ti(t).format(e), Oi = (e, t) => wi(t).format(e), Ii = (e, t) => Bi(t).format(e), Ni = (e, t = C()) => Yt(e, t), Li = X([z, re], () => Pi);
4231
- X([z], () => Ai);
4232
- X([z], () => Oi);
4233
- X([z], () => Ii);
4234
- X([z, re], () => Ni);
4209
+ }, Hi = (e, t) => Bi(t).format(e), Pi = (e, t) => Si(t).format(e), Ai = (e, t) => _i(t).format(e), Oi = (e, t = C()) => Jt(e, t), Ii = X([W, re], () => wi);
4210
+ X([W], () => Hi);
4211
+ X([W], () => Pi);
4212
+ X([W], () => Ai);
4213
+ X([W, re], () => Oi);
4235
4214
  window.emWidgets = { topic: Vr };
4236
4215
  const se = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4237
- function _t(e, t) {
4238
- Kt(e, t);
4216
+ function vt(e, t) {
4217
+ qt(e, t);
4239
4218
  }
4240
- function Ci(e) {
4241
- z.set(e);
4219
+ function Li(e) {
4220
+ W.set(e);
4242
4221
  }
4243
- const xt = {
4222
+ const Et = {
4244
4223
  en: {
4245
4224
  panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
4246
4225
  },
@@ -4281,114 +4260,114 @@ const xt = {
4281
4260
  panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
4282
4261
  }
4283
4262
  };
4284
- function Mi(e) {
4285
- sr(e, "svelte-1mifytr", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicSection .PanicButton{border-radius:5px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:10px;width:280px;height:fit-content;padding:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer}.PanicSectionMobile{position:absolute;top:0;left:0;width:100%;text-align:center;margin:20px 0 0 0 !important}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:100% !important;height:30px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:280px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.PanicButtonV2 .PanicButton{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
4263
+ function Ni(e) {
4264
+ or(e, "svelte-1mifytr", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicSection .PanicButton{border-radius:5px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:10px;width:280px;height:fit-content;padding:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer}.PanicSectionMobile{position:absolute;top:0;left:0;width:100%;text-align:center;margin:20px 0 0 0 !important}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:100% !important;height:30px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:280px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.PanicButtonV2 .PanicButton{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
4286
4265
  }
4287
- function $i(e) {
4266
+ function Ci(e) {
4288
4267
  let t, r, n, i = (
4289
4268
  /*customtext*/
4290
4269
  (e[0] || /*$_*/
4291
4270
  e[5]("panicButtonString")) + ""
4292
- ), o, s;
4271
+ ), o, a;
4293
4272
  return {
4294
4273
  c() {
4295
- t = Q("div"), r = Q("div"), n = Q("button"), o = hr(i), L(n, "class", "PanicButton " + (se(
4274
+ t = J("div"), r = J("div"), n = J("button"), o = ur(i), N(n, "class", "PanicButton " + (se(
4296
4275
  /*userAgent*/
4297
4276
  e[6]
4298
- ) !== "PC" ? "PanicButtonMobile" : "")), L(n, "part", "PanicButton " + (se(
4277
+ ) !== "PC" ? "PanicButtonMobile" : "")), N(n, "part", "PanicButton " + (se(
4299
4278
  /*userAgent*/
4300
4279
  e[6]
4301
- ) !== "PC" ? "PanicButtonMobile" : "")), Ke(
4280
+ ) !== "PC" ? "PanicButtonMobile" : "")), Ye(
4302
4281
  n,
4303
4282
  "PanicButtonAnimation",
4304
4283
  /*panicLoading*/
4305
4284
  e[4]
4306
- ), L(r, "class", "PanicSection " + (se(
4285
+ ), N(r, "class", "PanicSection " + (se(
4307
4286
  /*userAgent*/
4308
4287
  e[6]
4309
- ) !== "PC" ? "PanicSectionMobile" : "")), L(r, "part", "PanicSection " + (se(
4288
+ ) !== "PC" ? "PanicSectionMobile" : "")), N(r, "part", "PanicSection " + (se(
4310
4289
  /*userAgent*/
4311
4290
  e[6]
4312
- ) !== "PC" ? "PanicSectionMobile" : "")), L(t, "class", s = /*alternativestyling*/
4291
+ ) !== "PC" ? "PanicSectionMobile" : "")), N(t, "class", a = /*alternativestyling*/
4313
4292
  e[1] == "true" ? "PanicButtonV2" : "");
4314
4293
  },
4315
- m(a, u) {
4316
- Tt(a, t, u), ae(t, r), ae(r, n), ae(n, o), e[12](n), e[13](t);
4294
+ m(s, u) {
4295
+ Bt(s, t, u), ae(t, r), ae(r, n), ae(n, o), e[12](n), e[13](t);
4317
4296
  },
4318
- p(a, [u]) {
4297
+ p(s, [u]) {
4319
4298
  u & /*customtext, $_*/
4320
4299
  33 && i !== (i = /*customtext*/
4321
- (a[0] || /*$_*/
4322
- a[5]("panicButtonString")) + "") && cr(o, i), u & /*panicLoading*/
4323
- 16 && Ke(
4300
+ (s[0] || /*$_*/
4301
+ s[5]("panicButtonString")) + "") && lr(o, i), u & /*panicLoading*/
4302
+ 16 && Ye(
4324
4303
  n,
4325
4304
  "PanicButtonAnimation",
4326
4305
  /*panicLoading*/
4327
- a[4]
4306
+ s[4]
4328
4307
  ), u & /*alternativestyling*/
4329
- 2 && s !== (s = /*alternativestyling*/
4330
- a[1] == "true" ? "PanicButtonV2" : "") && L(t, "class", s);
4308
+ 2 && a !== (a = /*alternativestyling*/
4309
+ s[1] == "true" ? "PanicButtonV2" : "") && N(t, "class", a);
4331
4310
  },
4332
- i: w,
4333
- o: w,
4334
- d(a) {
4335
- a && Ze(t), e[12](null), e[13](null);
4311
+ i: T,
4312
+ o: T,
4313
+ d(s) {
4314
+ s && Ve(t), e[12](null), e[13](null);
4336
4315
  }
4337
4316
  };
4338
4317
  }
4339
- function Ri(e, t, r) {
4318
+ function Mi(e, t, r) {
4340
4319
  let n;
4341
- or(e, Li, (y) => r(5, n = y));
4342
- let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: u } = t, { alternativestyling: h = "" } = t, { translationurl: l = "" } = t, c, f, m = !1, g = 0, b, B = window.navigator.userAgent;
4343
- const N = () => {
4320
+ ir(e, Ii, (v) => r(5, n = v));
4321
+ let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { alternativestyling: h = "" } = t, { translationurl: l = "" } = t, c, f, m = !1, y = 0, g, B = window.navigator.userAgent;
4322
+ const L = () => {
4344
4323
  fetch(l).then(($) => $.json()).then(($) => {
4345
- Object.keys($).forEach((Ye) => {
4346
- _t(Ye, $[Ye]);
4324
+ Object.keys($).forEach((Qe) => {
4325
+ vt(Qe, $[Qe]);
4347
4326
  });
4348
4327
  }).catch(($) => {
4349
4328
  console.log($);
4350
4329
  });
4351
4330
  };
4352
- Object.keys(xt).forEach((y) => {
4353
- _t(y, xt[y]);
4331
+ Object.keys(Et).forEach((v) => {
4332
+ vt(v, Et[v]);
4354
4333
  });
4355
4334
  const O = () => {
4356
- c?.addEventListener("mousedown", T, !1), c?.addEventListener("touchstart", T, !1), c?.addEventListener("mouseup", S, !1), c?.addEventListener("touchend", S, !1);
4357
- }, x = () => {
4358
- r(4, m = !1), c?.removeEventListener("mousedown", T), c?.removeEventListener("touchstart", T), c?.removeEventListener("mouseup", S), c?.removeEventListener("touchend", S);
4359
- }, T = () => {
4360
- g = 0, r(4, m = !0), b = setInterval(
4335
+ c?.addEventListener("mousedown", w, !1), c?.addEventListener("touchstart", w, !1), c?.addEventListener("mouseup", S, !1), c?.addEventListener("touchend", S, !1);
4336
+ }, _ = () => {
4337
+ r(4, m = !1), c?.removeEventListener("mousedown", w), c?.removeEventListener("touchstart", w), c?.removeEventListener("mouseup", S), c?.removeEventListener("touchend", S);
4338
+ }, w = () => {
4339
+ y = 0, r(4, m = !0), g = setInterval(
4361
4340
  () => {
4362
- g++, g >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(b), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
4341
+ y++, y >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(g), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
4363
4342
  },
4364
4343
  1e3
4365
4344
  );
4366
4345
  }, S = () => {
4367
- r(4, m = !1), clearInterval(b);
4346
+ r(4, m = !1), clearInterval(g);
4368
4347
  };
4369
- mr(() => () => {
4370
- x();
4348
+ pr(() => () => {
4349
+ _();
4371
4350
  });
4372
- function M(y) {
4373
- fe[y ? "unshift" : "push"](() => {
4374
- c = y, r(2, c);
4351
+ function M(v) {
4352
+ fe[v ? "unshift" : "push"](() => {
4353
+ c = v, r(2, c);
4375
4354
  });
4376
4355
  }
4377
- function ne(y) {
4378
- fe[y ? "unshift" : "push"](() => {
4379
- f = y, r(3, f);
4356
+ function ne(v) {
4357
+ fe[v ? "unshift" : "push"](() => {
4358
+ f = v, r(3, f);
4380
4359
  });
4381
4360
  }
4382
- return e.$$set = (y) => {
4383
- "lang" in y && r(7, i = y.lang), "customtext" in y && r(0, o = y.customtext), "clientstyling" in y && r(8, s = y.clientstyling), "clientstylingurl" in y && r(9, a = y.clientstylingurl), "mbsource" in y && r(10, u = y.mbsource), "alternativestyling" in y && r(1, h = y.alternativestyling), "translationurl" in y && r(11, l = y.translationurl);
4361
+ return e.$$set = (v) => {
4362
+ "lang" in v && r(7, i = v.lang), "customtext" in v && r(0, o = v.customtext), "clientstyling" in v && r(8, a = v.clientstyling), "clientstylingurl" in v && r(9, s = v.clientstylingurl), "mbsource" in v && r(10, u = v.mbsource), "alternativestyling" in v && r(1, h = v.alternativestyling), "translationurl" in v && r(11, l = v.translationurl);
4384
4363
  }, e.$$.update = () => {
4385
4364
  e.$$.dirty & /*panicButton*/
4386
4365
  4 && c && O(), e.$$.dirty & /*lang*/
4387
- 128 && i && Ci(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
4388
- 264 && s && f && Pr(f, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4389
- 520 && a && f && Ar(f, a), e.$$.dirty & /*mbsource, customStylingContainer*/
4390
- 1032 && u && f && Or(f, `${u}.Style`), e.$$.dirty & /*translationurl*/
4391
- 2048 && l && N();
4366
+ 128 && i && Li(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
4367
+ 264 && a && f && Hr(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4368
+ 520 && s && f && Pr(f, s), e.$$.dirty & /*mbsource, customStylingContainer*/
4369
+ 1032 && u && f && Ar(f, `${u}.Style`), e.$$.dirty & /*translationurl*/
4370
+ 2048 && l && L();
4392
4371
  }, [
4393
4372
  o,
4394
4373
  h,
@@ -4398,22 +4377,22 @@ function Ri(e, t, r) {
4398
4377
  n,
4399
4378
  B,
4400
4379
  i,
4401
- s,
4402
4380
  a,
4381
+ s,
4403
4382
  u,
4404
4383
  l,
4405
4384
  M,
4406
4385
  ne
4407
4386
  ];
4408
4387
  }
4409
- class Ui extends Tr {
4388
+ class $i extends Tr {
4410
4389
  constructor(t) {
4411
- super(), Br(
4390
+ super(), Sr(
4412
4391
  this,
4413
4392
  t,
4414
- Ri,
4415
- $i,
4416
- Bt,
4393
+ Mi,
4394
+ Ci,
4395
+ _t,
4417
4396
  {
4418
4397
  lang: 7,
4419
4398
  customtext: 0,
@@ -4423,53 +4402,53 @@ class Ui extends Tr {
4423
4402
  alternativestyling: 1,
4424
4403
  translationurl: 11
4425
4404
  },
4426
- Mi
4405
+ Ni
4427
4406
  );
4428
4407
  }
4429
4408
  get lang() {
4430
4409
  return this.$$.ctx[7];
4431
4410
  }
4432
4411
  set lang(t) {
4433
- this.$$set({ lang: t }), P();
4412
+ this.$$set({ lang: t }), H();
4434
4413
  }
4435
4414
  get customtext() {
4436
4415
  return this.$$.ctx[0];
4437
4416
  }
4438
4417
  set customtext(t) {
4439
- this.$$set({ customtext: t }), P();
4418
+ this.$$set({ customtext: t }), H();
4440
4419
  }
4441
4420
  get clientstyling() {
4442
4421
  return this.$$.ctx[8];
4443
4422
  }
4444
4423
  set clientstyling(t) {
4445
- this.$$set({ clientstyling: t }), P();
4424
+ this.$$set({ clientstyling: t }), H();
4446
4425
  }
4447
4426
  get clientstylingurl() {
4448
4427
  return this.$$.ctx[9];
4449
4428
  }
4450
4429
  set clientstylingurl(t) {
4451
- this.$$set({ clientstylingurl: t }), P();
4430
+ this.$$set({ clientstylingurl: t }), H();
4452
4431
  }
4453
4432
  get mbsource() {
4454
4433
  return this.$$.ctx[10];
4455
4434
  }
4456
4435
  set mbsource(t) {
4457
- this.$$set({ mbsource: t }), P();
4436
+ this.$$set({ mbsource: t }), H();
4458
4437
  }
4459
4438
  get alternativestyling() {
4460
4439
  return this.$$.ctx[1];
4461
4440
  }
4462
4441
  set alternativestyling(t) {
4463
- this.$$set({ alternativestyling: t }), P();
4442
+ this.$$set({ alternativestyling: t }), H();
4464
4443
  }
4465
4444
  get translationurl() {
4466
4445
  return this.$$.ctx[11];
4467
4446
  }
4468
4447
  set translationurl(t) {
4469
- this.$$set({ translationurl: t }), P();
4448
+ this.$$set({ translationurl: t }), H();
4470
4449
  }
4471
4450
  }
4472
- wr(Ui, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
4451
+ Br($i, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
4473
4452
  export {
4474
- Ui as P
4453
+ $i as P
4475
4454
  };