@everymatrix/player-panic-button 1.86.3 → 1.86.5

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