@everymatrix/general-logout 1.74.10 → 1.75.0

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,24 +1,24 @@
1
1
  function B() {
2
2
  }
3
- function _t(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
9
  function ie(e) {
10
- e.forEach(_t);
10
+ e.forEach(St);
11
11
  }
12
- function We(e) {
12
+ function ze(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function Et(e, t) {
15
+ function Tt(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function ir(e) {
18
+ function ar(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function St(e, ...t) {
21
+ function Ht(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const n of t)
24
24
  n(void 0);
@@ -27,20 +27,20 @@ function St(e, ...t) {
27
27
  const r = e.subscribe(...t);
28
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
29
29
  }
30
- function or(e, t, r) {
31
- e.$$.on_destroy.push(St(t, r));
30
+ function ur(e, t, r) {
31
+ e.$$.on_destroy.push(Ht(t, r));
32
32
  }
33
33
  function S(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function sr(e, t, r) {
37
- const n = ar(e);
36
+ function hr(e, t, r) {
37
+ const n = lr(e);
38
38
  if (!n.getElementById(t)) {
39
39
  const i = P("style");
40
- i.id = t, i.textContent = r, ur(n, i);
40
+ i.id = t, i.textContent = r, cr(n, i);
41
41
  }
42
42
  }
43
- function ar(e) {
43
+ function lr(e) {
44
44
  if (!e)
45
45
  return document;
46
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -50,7 +50,7 @@ function ar(e) {
50
50
  t
51
51
  ) : e.ownerDocument;
52
52
  }
53
- function ur(e, t) {
53
+ function cr(e, t) {
54
54
  return S(
55
55
  /** @type {Document} */
56
56
  e.head || e,
@@ -72,26 +72,26 @@ function q(e) {
72
72
  function be(e) {
73
73
  return document.createTextNode(e);
74
74
  }
75
- function hr() {
75
+ function fr() {
76
76
  return be(" ");
77
77
  }
78
- function Tt(e, t, r, n) {
78
+ function Bt(e, t, r, n) {
79
79
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
80
80
  }
81
81
  function T(e, t, r) {
82
82
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
83
83
  }
84
- function lr(e) {
84
+ function pr(e) {
85
85
  return Array.from(e.childNodes);
86
86
  }
87
- function Ht(e, t) {
87
+ function wt(e, t) {
88
88
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
89
89
  t);
90
90
  }
91
- function fr(e, t, r, n) {
91
+ function dr(e, t, r, n) {
92
92
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
93
93
  }
94
- function cr(e) {
94
+ function mr(e) {
95
95
  const t = {};
96
96
  return e.childNodes.forEach(
97
97
  /** @param {Element} node */
@@ -104,22 +104,22 @@ let te;
104
104
  function ee(e) {
105
105
  te = e;
106
106
  }
107
- function dr() {
107
+ function br() {
108
108
  if (!te)
109
109
  throw new Error("Function called outside component initialization");
110
110
  return te;
111
111
  }
112
- function pr(e) {
113
- dr().$$.on_mount.push(e);
112
+ function gr(e) {
113
+ br().$$.on_mount.push(e);
114
114
  }
115
- const F = [], Oe = [];
115
+ const F = [], Ie = [];
116
116
  let j = [];
117
- const Ye = [], mr = /* @__PURE__ */ Promise.resolve();
118
- let Ie = !1;
119
- function br() {
120
- Ie || (Ie = !0, mr.then(w));
117
+ const Ke = [], yr = /* @__PURE__ */ Promise.resolve();
118
+ let Le = !1;
119
+ function vr() {
120
+ Le || (Le = !0, yr.then(w));
121
121
  }
122
- function Le(e) {
122
+ function Ne(e) {
123
123
  j.push(e);
124
124
  }
125
125
  const Se = /* @__PURE__ */ new Set();
@@ -132,53 +132,53 @@ function w() {
132
132
  try {
133
133
  for (; D < F.length; ) {
134
134
  const t = F[D];
135
- D++, ee(t), gr(t.$$);
135
+ D++, ee(t), Er(t.$$);
136
136
  }
137
137
  } catch (t) {
138
138
  throw F.length = 0, D = 0, t;
139
139
  }
140
- for (ee(null), F.length = 0, D = 0; Oe.length; )
141
- Oe.pop()();
140
+ for (ee(null), F.length = 0, D = 0; Ie.length; )
141
+ Ie.pop()();
142
142
  for (let t = 0; t < j.length; t += 1) {
143
143
  const r = j[t];
144
144
  Se.has(r) || (Se.add(r), r());
145
145
  }
146
146
  j.length = 0;
147
147
  } while (F.length);
148
- for (; Ye.length; )
149
- Ye.pop()();
150
- Ie = !1, Se.clear(), ee(e);
148
+ for (; Ke.length; )
149
+ Ke.pop()();
150
+ Le = !1, Se.clear(), ee(e);
151
151
  }
152
- function gr(e) {
152
+ function Er(e) {
153
153
  if (e.fragment !== null) {
154
154
  e.update(), ie(e.before_update);
155
155
  const t = e.dirty;
156
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
156
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
157
157
  }
158
158
  }
159
- function yr(e) {
159
+ function _r(e) {
160
160
  const t = [], r = [];
161
161
  j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
162
162
  }
163
- const vr = /* @__PURE__ */ new Set();
164
- function xr(e, t) {
165
- e && e.i && (vr.delete(e), e.i(t));
163
+ const xr = /* @__PURE__ */ new Set();
164
+ function Sr(e, t) {
165
+ e && e.i && (xr.delete(e), e.i(t));
166
166
  }
167
- function _r(e, t, r) {
167
+ function Tr(e, t, r) {
168
168
  const { fragment: n, after_update: i } = e.$$;
169
- n && n.m(t, r), Le(() => {
170
- const o = e.$$.on_mount.map(_t).filter(We);
169
+ n && n.m(t, r), Ne(() => {
170
+ const o = e.$$.on_mount.map(St).filter(ze);
171
171
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
172
- }), i.forEach(Le);
172
+ }), i.forEach(Ne);
173
173
  }
174
- function Er(e, t) {
174
+ function Hr(e, t) {
175
175
  const r = e.$$;
176
- r.fragment !== null && (yr(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
176
+ r.fragment !== null && (_r(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
177
177
  }
178
- function Sr(e, t) {
179
- e.$$.dirty[0] === -1 && (F.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
178
+ function Br(e, t) {
179
+ e.$$.dirty[0] === -1 && (F.push(e), vr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
180
180
  }
181
- function Tr(e, t, r, n, i, o, s = null, a = [-1]) {
181
+ function wr(e, t, r, n, i, o, s = null, a = [-1]) {
182
182
  const h = te;
183
183
  ee(e);
184
184
  const u = e.$$ = {
@@ -188,7 +188,7 @@ function Tr(e, t, r, n, i, o, s = null, a = [-1]) {
188
188
  props: o,
189
189
  update: B,
190
190
  not_equal: i,
191
- bound: Je(),
191
+ bound: qe(),
192
192
  // lifecycle
193
193
  on_mount: [],
194
194
  on_destroy: [],
@@ -197,28 +197,28 @@ function Tr(e, t, r, n, i, o, s = null, a = [-1]) {
197
197
  after_update: [],
198
198
  context: new Map(t.context || (h ? h.$$.context : [])),
199
199
  // everything else
200
- callbacks: Je(),
200
+ callbacks: qe(),
201
201
  dirty: a,
202
202
  skip_bound: !1,
203
203
  root: t.target || h.$$.root
204
204
  };
205
205
  s && s(u.root);
206
206
  let l = !1;
207
- if (u.ctx = r(e, t.props || {}, (c, f, ...d) => {
208
- const p = d.length ? d[0] : f;
209
- return u.ctx && i(u.ctx[c], u.ctx[c] = p) && (!u.skip_bound && u.bound[c] && u.bound[c](p), l && Sr(e, c)), f;
210
- }), u.update(), l = !0, ie(u.before_update), u.fragment = n(u.ctx), t.target) {
207
+ if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
208
+ const d = p.length ? p[0] : c;
209
+ return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l && Br(e, f)), c;
210
+ }) : [], u.update(), l = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
211
211
  if (t.hydrate) {
212
- const c = lr(t.target);
213
- u.fragment && u.fragment.l(c), c.forEach(Z);
212
+ const f = pr(t.target);
213
+ u.fragment && u.fragment.l(f), f.forEach(Z);
214
214
  } else
215
215
  u.fragment && u.fragment.c();
216
- t.intro && xr(e.$$.fragment), _r(e, t.target, t.anchor), w();
216
+ t.intro && Sr(e.$$.fragment), Tr(e, t.target, t.anchor), w();
217
217
  }
218
218
  ee(h);
219
219
  }
220
- let Bt;
221
- typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
220
+ let At;
221
+ typeof HTMLElement == "function" && (At = class extends HTMLElement {
222
222
  /** The Svelte component constructor */
223
223
  $$ctor;
224
224
  /** Slots */
@@ -277,7 +277,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
277
277
  };
278
278
  if (await Promise.resolve(), !this.$$cn || this.$$c)
279
279
  return;
280
- const t = {}, r = cr(this);
280
+ const t = {}, r = mr(this);
281
281
  for (const i of this.$$s)
282
282
  i in r && (t[i] = [e(i)]);
283
283
  for (const i of this.attributes) {
@@ -364,8 +364,8 @@ function le(e, t, r, n) {
364
364
  return t;
365
365
  }
366
366
  }
367
- function Hr(e, t, r, n, i, o) {
368
- let s = class extends Bt {
367
+ function Ar(e, t, r, n, i, o) {
368
+ let s = class extends At {
369
369
  constructor() {
370
370
  super(e, r, i), this.$$p_d = t;
371
371
  }
@@ -393,7 +393,7 @@ function Hr(e, t, r, n, i, o) {
393
393
  }), e.element = /** @type {any} */
394
394
  s, s;
395
395
  }
396
- class Br {
396
+ class Pr {
397
397
  /**
398
398
  * ### PRIVATE API
399
399
  *
@@ -412,7 +412,7 @@ class Br {
412
412
  $$set = void 0;
413
413
  /** @returns {void} */
414
414
  $destroy() {
415
- Er(this, 1), this.$destroy = B;
415
+ Hr(this, 1), this.$destroy = B;
416
416
  }
417
417
  /**
418
418
  * @template {Extract<keyof Events, string>} K
@@ -421,7 +421,7 @@ class Br {
421
421
  * @returns {() => void}
422
422
  */
423
423
  $on(t, r) {
424
- if (!We(r))
424
+ if (!ze(r))
425
425
  return B;
426
426
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
427
427
  return n.push(r), () => {
@@ -434,11 +434,11 @@ class Br {
434
434
  * @returns {void}
435
435
  */
436
436
  $set(t) {
437
- this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
437
+ this.$$set && !ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
438
438
  }
439
439
  }
440
- const wr = "4";
441
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
440
+ const Or = "4";
441
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Or);
442
442
  /*! *****************************************************************************
443
443
  Copyright (c) Microsoft Corporation.
444
444
 
@@ -453,18 +453,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
453
453
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
454
454
  PERFORMANCE OF THIS SOFTWARE.
455
455
  ***************************************************************************** */
456
- var Ne = function(e, t) {
457
- return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
456
+ var Me = function(e, t) {
457
+ return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
458
458
  r.__proto__ = n;
459
459
  } || function(r, n) {
460
460
  for (var i in n)
461
461
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
462
- }, Ne(e, t);
462
+ }, Me(e, t);
463
463
  };
464
464
  function I(e, t) {
465
465
  if (typeof t != "function" && t !== null)
466
466
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
467
- Ne(e, t);
467
+ Me(e, t);
468
468
  function r() {
469
469
  this.constructor = e;
470
470
  }
@@ -480,7 +480,7 @@ var g = function() {
480
480
  return t;
481
481
  }, g.apply(this, arguments);
482
482
  };
483
- function Ar(e, t) {
483
+ function Ir(e, t) {
484
484
  var r = {};
485
485
  for (var n in e)
486
486
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -489,7 +489,7 @@ function Ar(e, t) {
489
489
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
490
490
  return r;
491
491
  }
492
- function Me(e) {
492
+ function Ce(e) {
493
493
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
494
494
  if (r)
495
495
  return r.call(e);
@@ -501,7 +501,7 @@ function Me(e) {
501
501
  };
502
502
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
503
503
  }
504
- function Ce(e, t) {
504
+ function $e(e, t) {
505
505
  var r = typeof Symbol == "function" && e[Symbol.iterator];
506
506
  if (!r)
507
507
  return e;
@@ -530,13 +530,13 @@ function k(e, t, r) {
530
530
  function O(e) {
531
531
  return typeof e == "function";
532
532
  }
533
- function wt(e) {
533
+ function Pt(e) {
534
534
  var t = function(n) {
535
535
  Error.call(n), n.stack = new Error().stack;
536
536
  }, r = e(t);
537
537
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
538
538
  }
539
- var Te = wt(function(e) {
539
+ var Te = Pt(function(e) {
540
540
  return function(r) {
541
541
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
542
542
  ` + r.map(function(n, i) {
@@ -545,7 +545,7 @@ var Te = wt(function(e) {
545
545
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
546
546
  };
547
547
  });
548
- function $e(e, t) {
548
+ function Re(e, t) {
549
549
  if (e) {
550
550
  var r = e.indexOf(t);
551
551
  0 <= r && e.splice(r, 1);
@@ -563,7 +563,7 @@ var ge = function() {
563
563
  if (s)
564
564
  if (this._parentage = null, Array.isArray(s))
565
565
  try {
566
- for (var a = Me(s), h = a.next(); !h.done; h = a.next()) {
566
+ for (var a = Ce(s), h = a.next(); !h.done; h = a.next()) {
567
567
  var u = h.value;
568
568
  u.remove(this);
569
569
  }
@@ -586,23 +586,23 @@ var ge = function() {
586
586
  } catch (v) {
587
587
  o = v instanceof Te ? v.errors : [v];
588
588
  }
589
- var c = this._finalizers;
590
- if (c) {
589
+ var f = this._finalizers;
590
+ if (f) {
591
591
  this._finalizers = null;
592
592
  try {
593
- for (var f = Me(c), d = f.next(); !d.done; d = f.next()) {
594
- var p = d.value;
593
+ for (var c = Ce(f), p = c.next(); !p.done; p = c.next()) {
594
+ var d = p.value;
595
595
  try {
596
- qe(p);
596
+ et(d);
597
597
  } catch (v) {
598
- o = o ?? [], v instanceof Te ? o = k(k([], Ce(o)), Ce(v.errors)) : o.push(v);
598
+ o = o ?? [], v instanceof Te ? o = k(k([], $e(o)), $e(v.errors)) : o.push(v);
599
599
  }
600
600
  }
601
601
  } catch (v) {
602
602
  n = { error: v };
603
603
  } finally {
604
604
  try {
605
- d && !d.done && (i = f.return) && i.call(f);
605
+ p && !p.done && (i = c.return) && i.call(c);
606
606
  } finally {
607
607
  if (n)
608
608
  throw n.error;
@@ -616,7 +616,7 @@ var ge = function() {
616
616
  var r;
617
617
  if (t && t !== this)
618
618
  if (this.closed)
619
- qe(t);
619
+ et(t);
620
620
  else {
621
621
  if (t instanceof e) {
622
622
  if (t.closed || t._hasParent(this))
@@ -633,56 +633,56 @@ var ge = function() {
633
633
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
634
634
  }, e.prototype._removeParent = function(t) {
635
635
  var r = this._parentage;
636
- r === t ? this._parentage = null : Array.isArray(r) && $e(r, t);
636
+ r === t ? this._parentage = null : Array.isArray(r) && Re(r, t);
637
637
  }, e.prototype.remove = function(t) {
638
638
  var r = this._finalizers;
639
- r && $e(r, t), t instanceof e && t._removeParent(this);
639
+ r && Re(r, t), t instanceof e && t._removeParent(this);
640
640
  }, e.EMPTY = function() {
641
641
  var t = new e();
642
642
  return t.closed = !0, t;
643
643
  }(), e;
644
- }(), At = ge.EMPTY;
645
- function Pt(e) {
644
+ }(), Ot = ge.EMPTY;
645
+ function It(e) {
646
646
  return e instanceof ge || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
647
647
  }
648
- function qe(e) {
648
+ function et(e) {
649
649
  O(e) ? e() : e.unsubscribe();
650
650
  }
651
- var Pr = {
651
+ var Lt = {
652
652
  onUnhandledError: null,
653
653
  onStoppedNotification: null,
654
654
  Promise: void 0,
655
655
  useDeprecatedSynchronousErrorHandling: !1,
656
656
  useDeprecatedNextContext: !1
657
- }, Or = {
657
+ }, Lr = {
658
658
  setTimeout: function(e, t) {
659
659
  for (var r = [], n = 2; n < arguments.length; n++)
660
660
  r[n - 2] = arguments[n];
661
- return setTimeout.apply(void 0, k([e, t], Ce(r)));
661
+ return setTimeout.apply(void 0, k([e, t], $e(r)));
662
662
  },
663
663
  clearTimeout: function(e) {
664
664
  return clearTimeout(e);
665
665
  },
666
666
  delegate: void 0
667
667
  };
668
- function Ir(e) {
669
- Or.setTimeout(function() {
668
+ function Nr(e) {
669
+ Lr.setTimeout(function() {
670
670
  throw e;
671
671
  });
672
672
  }
673
- function Ke() {
673
+ function tt() {
674
674
  }
675
- function fe(e) {
675
+ function ce(e) {
676
676
  e();
677
677
  }
678
- var Ot = function(e) {
678
+ var Nt = function(e) {
679
679
  I(t, e);
680
680
  function t(r) {
681
681
  var n = e.call(this) || this;
682
- return n.isStopped = !1, r ? (n.destination = r, Pt(r) && r.add(n)) : n.destination = Mr, n;
682
+ return n.isStopped = !1, r ? (n.destination = r, It(r) && r.add(n)) : n.destination = Rr, n;
683
683
  }
684
684
  return t.create = function(r, n, i) {
685
- return new Re(r, n, i);
685
+ return new Ue(r, n, i);
686
686
  }, t.prototype.next = function(r) {
687
687
  this.isStopped || this._next(r);
688
688
  }, t.prototype.error = function(r) {
@@ -706,7 +706,11 @@ var Ot = function(e) {
706
706
  this.unsubscribe();
707
707
  }
708
708
  }, t;
709
- }(ge), Lr = function() {
709
+ }(ge), Mr = Function.prototype.bind;
710
+ function He(e, t) {
711
+ return Mr.call(e, t);
712
+ }
713
+ var Cr = function() {
710
714
  function e(t) {
711
715
  this.partialObserver = t;
712
716
  }
@@ -737,43 +741,55 @@ var Ot = function(e) {
737
741
  ue(r);
738
742
  }
739
743
  }, e;
740
- }(), Re = function(e) {
744
+ }(), Ue = function(e) {
741
745
  I(t, e);
742
746
  function t(r, n, i) {
743
747
  var o = e.call(this) || this, s;
744
- return O(r) || !r ? s = {
745
- next: r ?? void 0,
746
- error: n ?? void 0,
747
- complete: i ?? void 0
748
- } : s = r, o.destination = new Lr(s), o;
748
+ if (O(r) || !r)
749
+ s = {
750
+ next: r ?? void 0,
751
+ error: n ?? void 0,
752
+ complete: i ?? void 0
753
+ };
754
+ else {
755
+ var a;
756
+ o && Lt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
757
+ return o.unsubscribe();
758
+ }, s = {
759
+ next: r.next && He(r.next, a),
760
+ error: r.error && He(r.error, a),
761
+ complete: r.complete && He(r.complete, a)
762
+ }) : s = r;
763
+ }
764
+ return o.destination = new Cr(s), o;
749
765
  }
750
766
  return t;
751
- }(Ot);
767
+ }(Nt);
752
768
  function ue(e) {
753
- Ir(e);
769
+ Nr(e);
754
770
  }
755
- function Nr(e) {
771
+ function $r(e) {
756
772
  throw e;
757
773
  }
758
- var Mr = {
774
+ var Rr = {
759
775
  closed: !0,
760
- next: Ke,
761
- error: Nr,
762
- complete: Ke
763
- }, Cr = function() {
776
+ next: tt,
777
+ error: $r,
778
+ complete: tt
779
+ }, Ur = function() {
764
780
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
765
781
  }();
766
- function $r(e) {
782
+ function Dr(e) {
767
783
  return e;
768
784
  }
769
- function Rr(e) {
770
- return e.length === 0 ? $r : e.length === 1 ? e[0] : function(r) {
785
+ function Gr(e) {
786
+ return e.length === 0 ? Dr : e.length === 1 ? e[0] : function(r) {
771
787
  return e.reduce(function(n, i) {
772
788
  return i(n);
773
789
  }, r);
774
790
  };
775
791
  }
776
- var et = function() {
792
+ var rt = function() {
777
793
  function e(t) {
778
794
  t && (this._subscribe = t);
779
795
  }
@@ -781,8 +797,8 @@ var et = function() {
781
797
  var r = new e();
782
798
  return r.source = this, r.operator = t, r;
783
799
  }, e.prototype.subscribe = function(t, r, n) {
784
- var i = this, o = Dr(t) ? t : new Re(t, r, n);
785
- return fe(function() {
800
+ var i = this, o = jr(t) ? t : new Ue(t, r, n);
801
+ return ce(function() {
786
802
  var s = i, a = s.operator, h = s.source;
787
803
  o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
788
804
  }), o;
@@ -794,8 +810,8 @@ var et = function() {
794
810
  }
795
811
  }, e.prototype.forEach = function(t, r) {
796
812
  var n = this;
797
- return r = tt(r), new r(function(i, o) {
798
- var s = new Re({
813
+ return r = nt(r), new r(function(i, o) {
814
+ var s = new Ue({
799
815
  next: function(a) {
800
816
  try {
801
817
  t(a);
@@ -811,15 +827,15 @@ var et = function() {
811
827
  }, e.prototype._subscribe = function(t) {
812
828
  var r;
813
829
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
814
- }, e.prototype[Cr] = function() {
830
+ }, e.prototype[Ur] = function() {
815
831
  return this;
816
832
  }, e.prototype.pipe = function() {
817
833
  for (var t = [], r = 0; r < arguments.length; r++)
818
834
  t[r] = arguments[r];
819
- return Rr(t)(this);
835
+ return Gr(t)(this);
820
836
  }, e.prototype.toPromise = function(t) {
821
837
  var r = this;
822
- return t = tt(t), new t(function(n, i) {
838
+ return t = nt(t), new t(function(n, i) {
823
839
  var o;
824
840
  r.subscribe(function(s) {
825
841
  return o = s;
@@ -833,40 +849,40 @@ var et = function() {
833
849
  return new e(t);
834
850
  }, e;
835
851
  }();
836
- function tt(e) {
852
+ function nt(e) {
837
853
  var t;
838
- return (t = e ?? Pr.Promise) !== null && t !== void 0 ? t : Promise;
854
+ return (t = e ?? Lt.Promise) !== null && t !== void 0 ? t : Promise;
839
855
  }
840
- function Ur(e) {
856
+ function Fr(e) {
841
857
  return e && O(e.next) && O(e.error) && O(e.complete);
842
858
  }
843
- function Dr(e) {
844
- return e && e instanceof Ot || Ur(e) && Pt(e);
859
+ function jr(e) {
860
+ return e && e instanceof Nt || Fr(e) && It(e);
845
861
  }
846
- var Gr = wt(function(e) {
862
+ var kr = Pt(function(e) {
847
863
  return function() {
848
864
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
849
865
  };
850
- }), It = function(e) {
866
+ }), Mt = function(e) {
851
867
  I(t, e);
852
868
  function t() {
853
869
  var r = e.call(this) || this;
854
870
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
855
871
  }
856
872
  return t.prototype.lift = function(r) {
857
- var n = new rt(this, this);
873
+ var n = new it(this, this);
858
874
  return n.operator = r, n;
859
875
  }, t.prototype._throwIfClosed = function() {
860
876
  if (this.closed)
861
- throw new Gr();
877
+ throw new kr();
862
878
  }, t.prototype.next = function(r) {
863
879
  var n = this;
864
- fe(function() {
880
+ ce(function() {
865
881
  var i, o;
866
882
  if (n._throwIfClosed(), !n.isStopped) {
867
883
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
868
884
  try {
869
- for (var s = Me(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
885
+ for (var s = Ce(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
870
886
  var h = a.value;
871
887
  h.next(r);
872
888
  }
@@ -884,7 +900,7 @@ var Gr = wt(function(e) {
884
900
  });
885
901
  }, t.prototype.error = function(r) {
886
902
  var n = this;
887
- fe(function() {
903
+ ce(function() {
888
904
  if (n._throwIfClosed(), !n.isStopped) {
889
905
  n.hasError = n.isStopped = !0, n.thrownError = r;
890
906
  for (var i = n.observers; i.length; )
@@ -893,7 +909,7 @@ var Gr = wt(function(e) {
893
909
  });
894
910
  }, t.prototype.complete = function() {
895
911
  var r = this;
896
- fe(function() {
912
+ ce(function() {
897
913
  if (r._throwIfClosed(), !r.isStopped) {
898
914
  r.isStopped = !0;
899
915
  for (var n = r.observers; n.length; )
@@ -915,19 +931,19 @@ var Gr = wt(function(e) {
915
931
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
916
932
  }, t.prototype._innerSubscribe = function(r) {
917
933
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
918
- return o || s ? At : (this.currentObservers = null, a.push(r), new ge(function() {
919
- n.currentObservers = null, $e(a, r);
934
+ return o || s ? Ot : (this.currentObservers = null, a.push(r), new ge(function() {
935
+ n.currentObservers = null, Re(a, r);
920
936
  }));
921
937
  }, t.prototype._checkFinalizedStatuses = function(r) {
922
938
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
923
939
  i ? r.error(o) : s && r.complete();
924
940
  }, t.prototype.asObservable = function() {
925
- var r = new et();
941
+ var r = new rt();
926
942
  return r.source = this, r;
927
943
  }, t.create = function(r, n) {
928
- return new rt(r, n);
944
+ return new it(r, n);
929
945
  }, t;
930
- }(et), rt = function(e) {
946
+ }(rt), it = function(e) {
931
947
  I(t, e);
932
948
  function t(r, n) {
933
949
  var i = e.call(this) || this;
@@ -944,17 +960,17 @@ var Gr = wt(function(e) {
944
960
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
945
961
  }, t.prototype._subscribe = function(r) {
946
962
  var n, i;
947
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : At;
963
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ot;
948
964
  }, t;
949
- }(It), Lt = {
965
+ }(Mt), Ct = {
950
966
  now: function() {
951
- return (Lt.delegate || Date).now();
967
+ return (Ct.delegate || Date).now();
952
968
  },
953
969
  delegate: void 0
954
- }, Fr = function(e) {
970
+ }, Vr = function(e) {
955
971
  I(t, e);
956
972
  function t(r, n, i) {
957
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lt);
973
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ct);
958
974
  var o = e.call(this) || this;
959
975
  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;
960
976
  }
@@ -974,15 +990,15 @@ var Gr = wt(function(e) {
974
990
  u && o.splice(0, u + 1);
975
991
  }
976
992
  }, t;
977
- }(It);
978
- const nt = [], it = {}, jr = (e, t = 0) => {
979
- if (nt.indexOf(e) == -1) {
980
- const r = new Fr(t);
981
- it[e] = r, nt.push(e);
993
+ }(Mt);
994
+ const ot = [], st = {}, Xr = (e, t = 0) => {
995
+ if (ot.indexOf(e) == -1) {
996
+ const r = new Vr(t);
997
+ st[e] = r, ot.push(e);
982
998
  }
983
- return it[e];
999
+ return st[e];
984
1000
  }, G = [];
985
- function kr(e, t) {
1001
+ function Wr(e, t) {
986
1002
  return {
987
1003
  subscribe: ye(e, t).subscribe
988
1004
  };
@@ -991,7 +1007,7 @@ function ye(e, t = B) {
991
1007
  let r;
992
1008
  const n = /* @__PURE__ */ new Set();
993
1009
  function i(a) {
994
- if (Et(e, a) && (e = a, r)) {
1010
+ if (Tt(e, a) && (e = a, r)) {
995
1011
  const h = !G.length;
996
1012
  for (const u of n)
997
1013
  u[1](), G.push(u, e);
@@ -1018,96 +1034,96 @@ function Q(e, t, r) {
1018
1034
  if (!i.every(Boolean))
1019
1035
  throw new Error("derived() expects stores as input, got a falsy value");
1020
1036
  const o = t.length < 2;
1021
- return kr(r, (s, a) => {
1037
+ return Wr(r, (s, a) => {
1022
1038
  let h = !1;
1023
1039
  const u = [];
1024
- let l = 0, c = B;
1025
- const f = () => {
1040
+ let l = 0, f = B;
1041
+ const c = () => {
1026
1042
  if (l)
1027
1043
  return;
1028
- c();
1029
- const p = t(n ? u[0] : u, s, a);
1030
- o ? s(p) : c = We(p) ? p : B;
1031
- }, d = i.map(
1032
- (p, v) => St(
1033
- p,
1044
+ f();
1045
+ const d = t(n ? u[0] : u, s, a);
1046
+ o ? s(d) : f = ze(d) ? d : B;
1047
+ }, p = i.map(
1048
+ (d, v) => Ht(
1049
+ d,
1034
1050
  (H) => {
1035
- u[v] = H, l &= ~(1 << v), h && f();
1051
+ u[v] = H, l &= ~(1 << v), h && c();
1036
1052
  },
1037
1053
  () => {
1038
1054
  l |= 1 << v;
1039
1055
  }
1040
1056
  )
1041
1057
  );
1042
- return h = !0, f(), function() {
1043
- ie(d), c(), h = !1;
1058
+ return h = !0, c(), function() {
1059
+ ie(p), f(), h = !1;
1044
1060
  };
1045
1061
  });
1046
1062
  }
1047
- function Vr(e) {
1048
- return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1063
+ function zr(e) {
1064
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1049
1065
  }
1050
- var Xr = function(t) {
1051
- return Wr(t) && !zr(t);
1066
+ var Zr = function(t) {
1067
+ return Qr(t) && !Jr(t);
1052
1068
  };
1053
- function Wr(e) {
1069
+ function Qr(e) {
1054
1070
  return !!e && typeof e == "object";
1055
1071
  }
1056
- function zr(e) {
1072
+ function Jr(e) {
1057
1073
  var t = Object.prototype.toString.call(e);
1058
- return t === "[object RegExp]" || t === "[object Date]" || Jr(e);
1074
+ return t === "[object RegExp]" || t === "[object Date]" || Kr(e);
1059
1075
  }
1060
- var Zr = typeof Symbol == "function" && Symbol.for, Qr = Zr ? Symbol.for("react.element") : 60103;
1061
- function Jr(e) {
1062
- return e.$$typeof === Qr;
1076
+ var Yr = typeof Symbol == "function" && Symbol.for, qr = Yr ? Symbol.for("react.element") : 60103;
1077
+ function Kr(e) {
1078
+ return e.$$typeof === qr;
1063
1079
  }
1064
- function Yr(e) {
1080
+ function en(e) {
1065
1081
  return Array.isArray(e) ? [] : {};
1066
1082
  }
1067
1083
  function re(e, t) {
1068
- return t.clone !== !1 && t.isMergeableObject(e) ? V(Yr(e), e, t) : e;
1084
+ return t.clone !== !1 && t.isMergeableObject(e) ? V(en(e), e, t) : e;
1069
1085
  }
1070
- function qr(e, t, r) {
1086
+ function tn(e, t, r) {
1071
1087
  return e.concat(t).map(function(n) {
1072
1088
  return re(n, r);
1073
1089
  });
1074
1090
  }
1075
- function Kr(e, t) {
1091
+ function rn(e, t) {
1076
1092
  if (!t.customMerge)
1077
1093
  return V;
1078
1094
  var r = t.customMerge(e);
1079
1095
  return typeof r == "function" ? r : V;
1080
1096
  }
1081
- function en(e) {
1097
+ function nn(e) {
1082
1098
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1083
1099
  return Object.propertyIsEnumerable.call(e, t);
1084
1100
  }) : [];
1085
1101
  }
1086
- function ot(e) {
1087
- return Object.keys(e).concat(en(e));
1102
+ function at(e) {
1103
+ return Object.keys(e).concat(nn(e));
1088
1104
  }
1089
- function Nt(e, t) {
1105
+ function $t(e, t) {
1090
1106
  try {
1091
1107
  return t in e;
1092
1108
  } catch {
1093
1109
  return !1;
1094
1110
  }
1095
1111
  }
1096
- function tn(e, t) {
1097
- return Nt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1112
+ function on(e, t) {
1113
+ return $t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1098
1114
  }
1099
- function rn(e, t, r) {
1115
+ function sn(e, t, r) {
1100
1116
  var n = {};
1101
- return r.isMergeableObject(e) && ot(e).forEach(function(i) {
1117
+ return r.isMergeableObject(e) && at(e).forEach(function(i) {
1102
1118
  n[i] = re(e[i], r);
1103
- }), ot(t).forEach(function(i) {
1104
- tn(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Kr(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
1119
+ }), at(t).forEach(function(i) {
1120
+ on(e, i) || ($t(e, i) && r.isMergeableObject(t[i]) ? n[i] = rn(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
1105
1121
  }), n;
1106
1122
  }
1107
1123
  function V(e, t, r) {
1108
- r = r || {}, r.arrayMerge = r.arrayMerge || qr, r.isMergeableObject = r.isMergeableObject || Xr, r.cloneUnlessOtherwiseSpecified = re;
1124
+ r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Zr, r.cloneUnlessOtherwiseSpecified = re;
1109
1125
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1110
- return o ? n ? r.arrayMerge(e, t, r) : rn(e, t, r) : re(t, r);
1126
+ return o ? n ? r.arrayMerge(e, t, r) : sn(e, t, r) : re(t, r);
1111
1127
  }
1112
1128
  V.all = function(t, r) {
1113
1129
  if (!Array.isArray(t))
@@ -1116,109 +1132,107 @@ V.all = function(t, r) {
1116
1132
  return V(n, i, r);
1117
1133
  }, {});
1118
1134
  };
1119
- var nn = V, on = nn;
1120
- const sn = /* @__PURE__ */ Vr(on);
1121
- function He(e, t) {
1122
- var r = t && t.cache ? t.cache : dn, n = t && t.serializer ? t.serializer : fn, i = t && t.strategy ? t.strategy : un;
1135
+ var an = V, un = an;
1136
+ const hn = /* @__PURE__ */ zr(un);
1137
+ function Be(e, t) {
1138
+ var r = t && t.cache ? t.cache : mn, n = t && t.serializer ? t.serializer : dn, i = t && t.strategy ? t.strategy : cn;
1123
1139
  return i(e, {
1124
1140
  cache: r,
1125
1141
  serializer: n
1126
1142
  });
1127
1143
  }
1128
- function an(e) {
1144
+ function ln(e) {
1129
1145
  return e == null || typeof e == "number" || typeof e == "boolean";
1130
1146
  }
1131
- function Mt(e, t, r, n) {
1132
- var i = an(n) ? n : r(n), o = t.get(i);
1147
+ function Rt(e, t, r, n) {
1148
+ var i = ln(n) ? n : r(n), o = t.get(i);
1133
1149
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1134
1150
  }
1135
- function Ct(e, t, r) {
1151
+ function Ut(e, t, r) {
1136
1152
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1137
1153
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1138
1154
  }
1139
- function ze(e, t, r, n, i) {
1155
+ function Ze(e, t, r, n, i) {
1140
1156
  return r.bind(t, e, n, i);
1141
1157
  }
1142
- function un(e, t) {
1143
- var r = e.length === 1 ? Mt : Ct;
1144
- return ze(e, this, r, t.cache.create(), t.serializer);
1158
+ function cn(e, t) {
1159
+ var r = e.length === 1 ? Rt : Ut;
1160
+ return Ze(e, this, r, t.cache.create(), t.serializer);
1145
1161
  }
1146
- function hn(e, t) {
1147
- return ze(e, this, Ct, t.cache.create(), t.serializer);
1162
+ function fn(e, t) {
1163
+ return Ze(e, this, Ut, t.cache.create(), t.serializer);
1148
1164
  }
1149
- function ln(e, t) {
1150
- return ze(e, this, Mt, t.cache.create(), t.serializer);
1165
+ function pn(e, t) {
1166
+ return Ze(e, this, Rt, t.cache.create(), t.serializer);
1151
1167
  }
1152
- var fn = function() {
1168
+ var dn = function() {
1153
1169
  return JSON.stringify(arguments);
1154
- }, cn = (
1155
- /** @class */
1156
- function() {
1157
- function e() {
1158
- this.cache = /* @__PURE__ */ Object.create(null);
1159
- }
1160
- return e.prototype.get = function(t) {
1161
- return this.cache[t];
1162
- }, e.prototype.set = function(t, r) {
1163
- this.cache[t] = r;
1164
- }, e;
1165
- }()
1166
- ), dn = {
1170
+ };
1171
+ function Qe() {
1172
+ this.cache = /* @__PURE__ */ Object.create(null);
1173
+ }
1174
+ Qe.prototype.get = function(e) {
1175
+ return this.cache[e];
1176
+ };
1177
+ Qe.prototype.set = function(e, t) {
1178
+ this.cache[e] = t;
1179
+ };
1180
+ var mn = {
1167
1181
  create: function() {
1168
- return new cn();
1182
+ return new Qe();
1169
1183
  }
1170
- }, Be = {
1171
- variadic: hn,
1172
- monadic: ln
1184
+ }, we = {
1185
+ variadic: fn,
1186
+ monadic: pn
1173
1187
  }, m;
1174
1188
  (function(e) {
1175
1189
  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";
1176
1190
  })(m || (m = {}));
1177
- var x;
1191
+ var E;
1178
1192
  (function(e) {
1179
1193
  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";
1180
- })(x || (x = {}));
1194
+ })(E || (E = {}));
1181
1195
  var X;
1182
1196
  (function(e) {
1183
1197
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1184
1198
  })(X || (X = {}));
1185
- function st(e) {
1186
- return e.type === x.literal;
1187
- }
1188
- function pn(e) {
1189
- return e.type === x.argument;
1190
- }
1191
- function $t(e) {
1192
- return e.type === x.number;
1193
- }
1194
- function Rt(e) {
1195
- return e.type === x.date;
1199
+ function ut(e) {
1200
+ return e.type === E.literal;
1196
1201
  }
1197
- function Ut(e) {
1198
- return e.type === x.time;
1202
+ function bn(e) {
1203
+ return e.type === E.argument;
1199
1204
  }
1200
1205
  function Dt(e) {
1201
- return e.type === x.select;
1206
+ return e.type === E.number;
1202
1207
  }
1203
1208
  function Gt(e) {
1204
- return e.type === x.plural;
1205
- }
1206
- function mn(e) {
1207
- return e.type === x.pound;
1209
+ return e.type === E.date;
1208
1210
  }
1209
1211
  function Ft(e) {
1210
- return e.type === x.tag;
1212
+ return e.type === E.time;
1211
1213
  }
1212
1214
  function jt(e) {
1215
+ return e.type === E.select;
1216
+ }
1217
+ function kt(e) {
1218
+ return e.type === E.plural;
1219
+ }
1220
+ function gn(e) {
1221
+ return e.type === E.pound;
1222
+ }
1223
+ function Vt(e) {
1224
+ return e.type === E.tag;
1225
+ }
1226
+ function Xt(e) {
1213
1227
  return !!(e && typeof e == "object" && e.type === X.number);
1214
1228
  }
1215
- function Ue(e) {
1229
+ function De(e) {
1216
1230
  return !!(e && typeof e == "object" && e.type === X.dateTime);
1217
1231
  }
1218
- var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bn = /(?:[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;
1219
- function gn(e) {
1232
+ var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, yn = /(?:[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;
1233
+ function vn(e) {
1220
1234
  var t = {};
1221
- return e.replace(bn, function(r) {
1235
+ return e.replace(yn, function(r) {
1222
1236
  var n = r.length;
1223
1237
  switch (r[0]) {
1224
1238
  case "G":
@@ -1307,19 +1321,19 @@ function gn(e) {
1307
1321
  return "";
1308
1322
  }), t;
1309
1323
  }
1310
- var yn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1311
- function vn(e) {
1324
+ var En = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1325
+ function _n(e) {
1312
1326
  if (e.length === 0)
1313
1327
  throw new Error("Number skeleton cannot be empty");
1314
- for (var t = e.split(yn).filter(function(f) {
1315
- return f.length > 0;
1328
+ for (var t = e.split(En).filter(function(c) {
1329
+ return c.length > 0;
1316
1330
  }), r = [], n = 0, i = t; n < i.length; n++) {
1317
1331
  var o = i[n], s = o.split("/");
1318
1332
  if (s.length === 0)
1319
1333
  throw new Error("Invalid number skeleton");
1320
1334
  for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
1321
- var c = l[u];
1322
- if (c.length === 0)
1335
+ var f = l[u];
1336
+ if (f.length === 0)
1323
1337
  throw new Error("Invalid number skeleton");
1324
1338
  }
1325
1339
  r.push({ stem: a, options: h });
@@ -1329,14 +1343,14 @@ function vn(e) {
1329
1343
  function xn(e) {
1330
1344
  return e.replace(/^(.*?)-/, "");
1331
1345
  }
1332
- var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, _n = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
1333
- function ut(e) {
1346
+ var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, Sn = /(\*)(0+)|(#+)(0+)|(0+)/g, Zt = /^(0+)$/;
1347
+ function lt(e) {
1334
1348
  var t = {};
1335
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
1349
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zt, function(r, n, i) {
1336
1350
  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)), "";
1337
1351
  }), t;
1338
1352
  }
1339
- function Wt(e) {
1353
+ function Qt(e) {
1340
1354
  switch (e) {
1341
1355
  case "sign-auto":
1342
1356
  return {
@@ -1376,7 +1390,7 @@ function Wt(e) {
1376
1390
  };
1377
1391
  }
1378
1392
  }
1379
- function En(e) {
1393
+ function Tn(e) {
1380
1394
  var t;
1381
1395
  if (e[0] === "E" && e[1] === "E" ? (t = {
1382
1396
  notation: "engineering"
@@ -1384,17 +1398,17 @@ function En(e) {
1384
1398
  notation: "scientific"
1385
1399
  }, e = e.slice(1)), t) {
1386
1400
  var r = e.slice(0, 2);
1387
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xt.test(e))
1401
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Zt.test(e))
1388
1402
  throw new Error("Malformed concise eng/scientific notation");
1389
1403
  t.minimumIntegerDigits = e.length;
1390
1404
  }
1391
1405
  return t;
1392
1406
  }
1393
- function ht(e) {
1394
- var t = {}, r = Wt(e);
1407
+ function ct(e) {
1408
+ var t = {}, r = Qt(e);
1395
1409
  return r || t;
1396
1410
  }
1397
- function Sn(e) {
1411
+ function Hn(e) {
1398
1412
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1399
1413
  var i = n[r];
1400
1414
  switch (i.stem) {
@@ -1430,12 +1444,12 @@ function Sn(e) {
1430
1444
  continue;
1431
1445
  case "scientific":
1432
1446
  t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1433
- return g(g({}, h), ht(u));
1447
+ return g(g({}, h), ct(u));
1434
1448
  }, {}));
1435
1449
  continue;
1436
1450
  case "engineering":
1437
1451
  t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1438
- return g(g({}, h), ht(u));
1452
+ return g(g({}, h), ct(u));
1439
1453
  }, {}));
1440
1454
  continue;
1441
1455
  case "notation-simple":
@@ -1480,40 +1494,40 @@ function Sn(e) {
1480
1494
  case "integer-width":
1481
1495
  if (i.options.length > 1)
1482
1496
  throw new RangeError("integer-width stems only accept a single optional option");
1483
- i.options[0].replace(_n, function(h, u, l, c, f, d) {
1497
+ i.options[0].replace(Sn, function(h, u, l, f, c, p) {
1484
1498
  if (u)
1485
1499
  t.minimumIntegerDigits = l.length;
1486
1500
  else {
1487
- if (c && f)
1501
+ if (f && c)
1488
1502
  throw new Error("We currently do not support maximum integer digits");
1489
- if (d)
1503
+ if (p)
1490
1504
  throw new Error("We currently do not support exact integer digits");
1491
1505
  }
1492
1506
  return "";
1493
1507
  });
1494
1508
  continue;
1495
1509
  }
1496
- if (Xt.test(i.stem)) {
1510
+ if (Zt.test(i.stem)) {
1497
1511
  t.minimumIntegerDigits = i.stem.length;
1498
1512
  continue;
1499
1513
  }
1500
- if (at.test(i.stem)) {
1514
+ if (ht.test(i.stem)) {
1501
1515
  if (i.options.length > 1)
1502
1516
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1503
- i.stem.replace(at, function(h, u, l, c, f, d) {
1504
- return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1517
+ i.stem.replace(ht, function(h, u, l, f, c, p) {
1518
+ return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1505
1519
  });
1506
1520
  var o = i.options[0];
1507
- o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), ut(o)));
1521
+ o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), lt(o)));
1508
1522
  continue;
1509
1523
  }
1510
- if (Vt.test(i.stem)) {
1511
- t = g(g({}, t), ut(i.stem));
1524
+ if (zt.test(i.stem)) {
1525
+ t = g(g({}, t), lt(i.stem));
1512
1526
  continue;
1513
1527
  }
1514
- var s = Wt(i.stem);
1528
+ var s = Qt(i.stem);
1515
1529
  s && (t = g(g({}, t), s));
1516
- var a = En(i.stem);
1530
+ var a = Tn(i.stem);
1517
1531
  a && (t = g(g({}, t), a));
1518
1532
  }
1519
1533
  return t;
@@ -2933,13 +2947,13 @@ var he = {
2933
2947
  "h"
2934
2948
  ]
2935
2949
  };
2936
- function Tn(e, t) {
2950
+ function Bn(e, t) {
2937
2951
  for (var r = "", n = 0; n < e.length; n++) {
2938
2952
  var i = e.charAt(n);
2939
2953
  if (i === "j") {
2940
2954
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2941
2955
  o++, n++;
2942
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Hn(t);
2956
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = wn(t);
2943
2957
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2944
2958
  r += h;
2945
2959
  for (; s-- > 0; )
@@ -2949,7 +2963,7 @@ function Tn(e, t) {
2949
2963
  }
2950
2964
  return r;
2951
2965
  }
2952
- function Hn(e) {
2966
+ function wn(e) {
2953
2967
  var t = e.hourCycle;
2954
2968
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2955
2969
  e.hourCycles && // @ts-ignore
@@ -2971,20 +2985,20 @@ function Hn(e) {
2971
2985
  var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
2972
2986
  return i[0];
2973
2987
  }
2974
- var we, Bn = new RegExp("^".concat(kt.source, "*")), wn = new RegExp("".concat(kt.source, "*$"));
2988
+ var Ae, An = new RegExp("^".concat(Wt.source, "*")), Pn = new RegExp("".concat(Wt.source, "*$"));
2975
2989
  function b(e, t) {
2976
2990
  return { start: e, end: t };
2977
2991
  }
2978
- var An = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pn = !!String.fromCodePoint, On = !!Object.fromEntries, In = !!String.prototype.codePointAt, Ln = !!String.prototype.trimStart, Nn = !!String.prototype.trimEnd, Mn = !!Number.isSafeInteger, Cn = Mn ? Number.isSafeInteger : function(e) {
2992
+ var On = !!String.prototype.startsWith && "_a".startsWith("a", 1), In = !!String.fromCodePoint, Ln = !!Object.fromEntries, Nn = !!String.prototype.codePointAt, Mn = !!String.prototype.trimStart, Cn = !!String.prototype.trimEnd, $n = !!Number.isSafeInteger, Rn = $n ? Number.isSafeInteger : function(e) {
2979
2993
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2980
- }, De = !0;
2994
+ }, Ge = !0;
2981
2995
  try {
2982
- var $n = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2983
- De = ((we = $n.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
2996
+ var Un = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2997
+ Ge = ((Ae = Un.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
2984
2998
  } catch {
2985
- De = !1;
2999
+ Ge = !1;
2986
3000
  }
2987
- var lt = An ? (
3001
+ var ft = On ? (
2988
3002
  // Native
2989
3003
  function(t, r, n) {
2990
3004
  return t.startsWith(r, n);
@@ -2994,7 +3008,7 @@ var lt = An ? (
2994
3008
  function(t, r, n) {
2995
3009
  return t.slice(n, n + r.length) === r;
2996
3010
  }
2997
- ), Ge = Pn ? String.fromCodePoint : (
3011
+ ), Fe = In ? String.fromCodePoint : (
2998
3012
  // IE11
2999
3013
  function() {
3000
3014
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3006,9 +3020,9 @@ var lt = An ? (
3006
3020
  }
3007
3021
  return n;
3008
3022
  }
3009
- ), ft = (
3023
+ ), pt = (
3010
3024
  // native
3011
- On ? Object.fromEntries : (
3025
+ Ln ? Object.fromEntries : (
3012
3026
  // Ponyfill
3013
3027
  function(t) {
3014
3028
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3018,7 +3032,7 @@ var lt = An ? (
3018
3032
  return r;
3019
3033
  }
3020
3034
  )
3021
- ), zt = In ? (
3035
+ ), Jt = Nn ? (
3022
3036
  // Native
3023
3037
  function(t, r) {
3024
3038
  return t.codePointAt(r);
@@ -3032,7 +3046,7 @@ var lt = An ? (
3032
3046
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3033
3047
  }
3034
3048
  }
3035
- ), Rn = Ln ? (
3049
+ ), Dn = Mn ? (
3036
3050
  // Native
3037
3051
  function(t) {
3038
3052
  return t.trimStart();
@@ -3040,9 +3054,9 @@ var lt = An ? (
3040
3054
  ) : (
3041
3055
  // Ponyfill
3042
3056
  function(t) {
3043
- return t.replace(Bn, "");
3057
+ return t.replace(An, "");
3044
3058
  }
3045
- ), Un = Nn ? (
3059
+ ), Gn = Cn ? (
3046
3060
  // Native
3047
3061
  function(t) {
3048
3062
  return t.trimEnd();
@@ -3050,32 +3064,32 @@ var lt = An ? (
3050
3064
  ) : (
3051
3065
  // Ponyfill
3052
3066
  function(t) {
3053
- return t.replace(wn, "");
3067
+ return t.replace(Pn, "");
3054
3068
  }
3055
3069
  );
3056
- function Zt(e, t) {
3070
+ function Yt(e, t) {
3057
3071
  return new RegExp(e, t);
3058
3072
  }
3059
- var Fe;
3060
- if (De) {
3061
- var ct = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3062
- Fe = function(t, r) {
3073
+ var je;
3074
+ if (Ge) {
3075
+ var dt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3076
+ je = function(t, r) {
3063
3077
  var n;
3064
- ct.lastIndex = r;
3065
- var i = ct.exec(t);
3078
+ dt.lastIndex = r;
3079
+ var i = dt.exec(t);
3066
3080
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3067
3081
  };
3068
3082
  } else
3069
- Fe = function(t, r) {
3083
+ je = function(t, r) {
3070
3084
  for (var n = []; ; ) {
3071
- var i = zt(t, r);
3072
- if (i === void 0 || Qt(i) || jn(i))
3085
+ var i = Jt(t, r);
3086
+ if (i === void 0 || qt(i) || Vn(i))
3073
3087
  break;
3074
3088
  n.push(i), r += i >= 65536 ? 2 : 1;
3075
3089
  }
3076
- return Ge.apply(void 0, n);
3090
+ return Fe.apply(void 0, n);
3077
3091
  };
3078
- var Dn = (
3092
+ var Fn = (
3079
3093
  /** @class */
3080
3094
  function() {
3081
3095
  function e(t, r) {
@@ -3099,14 +3113,14 @@ var Dn = (
3099
3113
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3100
3114
  var a = this.clonePosition();
3101
3115
  this.bump(), i.push({
3102
- type: x.pound,
3116
+ type: E.pound,
3103
3117
  location: b(a, this.clonePosition())
3104
3118
  });
3105
3119
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3106
3120
  if (n)
3107
3121
  break;
3108
3122
  return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
3109
- } else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
3123
+ } else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
3110
3124
  var s = this.parseTag(t, r);
3111
3125
  if (s.err)
3112
3126
  return s;
@@ -3127,7 +3141,7 @@ var Dn = (
3127
3141
  if (this.bumpSpace(), this.bumpIf("/>"))
3128
3142
  return {
3129
3143
  val: {
3130
- type: x.literal,
3144
+ type: E.literal,
3131
3145
  value: "<".concat(i, "/>"),
3132
3146
  location: b(n, this.clonePosition())
3133
3147
  },
@@ -3139,12 +3153,12 @@ var Dn = (
3139
3153
  return o;
3140
3154
  var s = o.val, a = this.clonePosition();
3141
3155
  if (this.bumpIf("</")) {
3142
- if (this.isEOF() || !je(this.char()))
3156
+ if (this.isEOF() || !ke(this.char()))
3143
3157
  return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
3144
3158
  var h = this.clonePosition(), u = this.parseTagName();
3145
3159
  return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3146
3160
  val: {
3147
- type: x.tag,
3161
+ type: E.tag,
3148
3162
  value: i,
3149
3163
  children: s,
3150
3164
  location: b(n, this.clonePosition())
@@ -3157,7 +3171,7 @@ var Dn = (
3157
3171
  return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
3158
3172
  }, e.prototype.parseTagName = function() {
3159
3173
  var t = this.offset();
3160
- for (this.bump(); !this.isEOF() && Fn(this.char()); )
3174
+ for (this.bump(); !this.isEOF() && kn(this.char()); )
3161
3175
  this.bump();
3162
3176
  return this.message.slice(t, this.offset());
3163
3177
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3181,12 +3195,12 @@ var Dn = (
3181
3195
  }
3182
3196
  var h = b(n, this.clonePosition());
3183
3197
  return {
3184
- val: { type: x.literal, value: i, location: h },
3198
+ val: { type: E.literal, value: i, location: h },
3185
3199
  err: null
3186
3200
  };
3187
3201
  }, e.prototype.tryParseLeftAngleBracket = function() {
3188
3202
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3189
- !Gn(this.peek() || 0)) ? (this.bump(), "<") : null;
3203
+ !jn(this.peek() || 0)) ? (this.bump(), "<") : null;
3190
3204
  }, e.prototype.tryParseQuote = function(t) {
3191
3205
  if (this.isEOF() || this.char() !== 39)
3192
3206
  return null;
@@ -3220,12 +3234,12 @@ var Dn = (
3220
3234
  r.push(n);
3221
3235
  this.bump();
3222
3236
  }
3223
- return Ge.apply(void 0, r);
3237
+ return Fe.apply(void 0, r);
3224
3238
  }, e.prototype.tryParseUnquoted = function(t, r) {
3225
3239
  if (this.isEOF())
3226
3240
  return null;
3227
3241
  var n = this.char();
3228
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
3242
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
3229
3243
  }, e.prototype.parseArgument = function(t, r) {
3230
3244
  var n = this.clonePosition();
3231
3245
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3241,7 +3255,7 @@ var Dn = (
3241
3255
  case 125:
3242
3256
  return this.bump(), {
3243
3257
  val: {
3244
- type: x.argument,
3258
+ type: E.argument,
3245
3259
  // value does not include the opening and closing braces.
3246
3260
  value: i,
3247
3261
  location: b(n, this.clonePosition())
@@ -3254,7 +3268,7 @@ var Dn = (
3254
3268
  return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
3255
3269
  }
3256
3270
  }, e.prototype.parseIdentifierIfPossible = function() {
3257
- var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
3271
+ var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
3258
3272
  this.bumpTo(i);
3259
3273
  var o = this.clonePosition(), s = b(t, o);
3260
3274
  return { value: n, location: s };
@@ -3270,47 +3284,47 @@ var Dn = (
3270
3284
  var u = null;
3271
3285
  if (this.bumpIf(",")) {
3272
3286
  this.bumpSpace();
3273
- var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3274
- if (c.err)
3275
- return c;
3276
- var f = Un(c.val);
3277
- if (f.length === 0)
3287
+ var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3288
+ if (f.err)
3289
+ return f;
3290
+ var c = Gn(f.val);
3291
+ if (c.length === 0)
3278
3292
  return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
3279
- var d = b(l, this.clonePosition());
3280
- u = { style: f, styleLocation: d };
3293
+ var p = b(l, this.clonePosition());
3294
+ u = { style: c, styleLocation: p };
3281
3295
  }
3282
- var p = this.tryParseArgumentClose(i);
3283
- if (p.err)
3284
- return p;
3296
+ var d = this.tryParseArgumentClose(i);
3297
+ if (d.err)
3298
+ return d;
3285
3299
  var v = b(i, this.clonePosition());
3286
- if (u && lt(u?.style, "::", 0)) {
3287
- var H = Rn(u.style.slice(2));
3300
+ if (u && ft(u?.style, "::", 0)) {
3301
+ var H = Dn(u.style.slice(2));
3288
3302
  if (a === "number") {
3289
- var c = this.parseNumberSkeletonFromString(H, u.styleLocation);
3290
- return c.err ? c : {
3291
- val: { type: x.number, value: n, location: v, style: c.val },
3303
+ var f = this.parseNumberSkeletonFromString(H, u.styleLocation);
3304
+ return f.err ? f : {
3305
+ val: { type: E.number, value: n, location: v, style: f.val },
3292
3306
  err: null
3293
3307
  };
3294
3308
  } else {
3295
3309
  if (H.length === 0)
3296
3310
  return this.error(m.EXPECT_DATE_TIME_SKELETON, v);
3297
3311
  var C = H;
3298
- this.locale && (C = Tn(H, this.locale));
3299
- var f = {
3312
+ this.locale && (C = Bn(H, this.locale));
3313
+ var c = {
3300
3314
  type: X.dateTime,
3301
3315
  pattern: C,
3302
3316
  location: u.styleLocation,
3303
- parsedOptions: this.shouldParseSkeletons ? gn(C) : {}
3304
- }, L = a === "date" ? x.date : x.time;
3317
+ parsedOptions: this.shouldParseSkeletons ? vn(C) : {}
3318
+ }, L = a === "date" ? E.date : E.time;
3305
3319
  return {
3306
- val: { type: L, value: n, location: v, style: f },
3320
+ val: { type: L, value: n, location: v, style: c },
3307
3321
  err: null
3308
3322
  };
3309
3323
  }
3310
3324
  }
3311
3325
  return {
3312
3326
  val: {
3313
- type: a === "number" ? x.number : a === "date" ? x.date : x.time,
3327
+ type: a === "number" ? E.number : a === "date" ? E.date : E.time,
3314
3328
  value: n,
3315
3329
  location: v,
3316
3330
  style: (o = u?.style) !== null && o !== void 0 ? o : null
@@ -3321,40 +3335,40 @@ var Dn = (
3321
3335
  case "plural":
3322
3336
  case "selectordinal":
3323
3337
  case "select": {
3324
- var E = this.clonePosition();
3338
+ var x = this.clonePosition();
3325
3339
  if (this.bumpSpace(), !this.bumpIf(","))
3326
- return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(E, g({}, E)));
3340
+ return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(x, g({}, x)));
3327
3341
  this.bumpSpace();
3328
3342
  var $ = this.parseIdentifierIfPossible(), A = 0;
3329
3343
  if (a !== "select" && $.value === "offset") {
3330
3344
  if (!this.bumpIf(":"))
3331
3345
  return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
3332
3346
  this.bumpSpace();
3333
- var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3334
- if (c.err)
3335
- return c;
3336
- this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A = c.val;
3347
+ var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3348
+ if (f.err)
3349
+ return f;
3350
+ this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A = f.val;
3337
3351
  }
3338
3352
  var U = this.tryParsePluralOrSelectOptions(t, a, r, $);
3339
3353
  if (U.err)
3340
3354
  return U;
3341
- var p = this.tryParseArgumentClose(i);
3342
- if (p.err)
3343
- return p;
3355
+ var d = this.tryParseArgumentClose(i);
3356
+ if (d.err)
3357
+ return d;
3344
3358
  var ae = b(i, this.clonePosition());
3345
3359
  return a === "select" ? {
3346
3360
  val: {
3347
- type: x.select,
3361
+ type: E.select,
3348
3362
  value: n,
3349
- options: ft(U.val),
3363
+ options: pt(U.val),
3350
3364
  location: ae
3351
3365
  },
3352
3366
  err: null
3353
3367
  } : {
3354
3368
  val: {
3355
- type: x.plural,
3369
+ type: E.plural,
3356
3370
  value: n,
3357
- options: ft(U.val),
3371
+ options: pt(U.val),
3358
3372
  offset: A,
3359
3373
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3360
3374
  location: ae
@@ -3405,7 +3419,7 @@ var Dn = (
3405
3419
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3406
3420
  var n = [];
3407
3421
  try {
3408
- n = vn(t);
3422
+ n = _n(t);
3409
3423
  } catch {
3410
3424
  return this.error(m.INVALID_NUMBER_SKELETON, r);
3411
3425
  }
@@ -3414,39 +3428,39 @@ var Dn = (
3414
3428
  type: X.number,
3415
3429
  tokens: n,
3416
3430
  location: r,
3417
- parsedOptions: this.shouldParseSkeletons ? Sn(n) : {}
3431
+ parsedOptions: this.shouldParseSkeletons ? Hn(n) : {}
3418
3432
  },
3419
3433
  err: null
3420
3434
  };
3421
3435
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3422
3436
  for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3423
3437
  if (u.length === 0) {
3424
- var c = this.clonePosition();
3438
+ var f = this.clonePosition();
3425
3439
  if (r !== "select" && this.bumpIf("=")) {
3426
- var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
3427
- if (f.err)
3428
- return f;
3429
- l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3440
+ var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
3441
+ if (c.err)
3442
+ return c;
3443
+ l = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3430
3444
  } else
3431
3445
  break;
3432
3446
  }
3433
3447
  if (h.has(u))
3434
3448
  return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3435
3449
  u === "other" && (s = !0), this.bumpSpace();
3436
- var d = this.clonePosition();
3450
+ var p = this.clonePosition();
3437
3451
  if (!this.bumpIf("{"))
3438
3452
  return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
3439
- var p = this.parseMessage(t + 1, r, n);
3440
- if (p.err)
3441
- return p;
3442
- var v = this.tryParseArgumentClose(d);
3453
+ var d = this.parseMessage(t + 1, r, n);
3454
+ if (d.err)
3455
+ return d;
3456
+ var v = this.tryParseArgumentClose(p);
3443
3457
  if (v.err)
3444
3458
  return v;
3445
3459
  a.push([
3446
3460
  u,
3447
3461
  {
3448
- value: p.val,
3449
- location: b(d, this.clonePosition())
3462
+ value: d.val,
3463
+ location: b(p, this.clonePosition())
3450
3464
  }
3451
3465
  ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
3452
3466
  }
@@ -3462,7 +3476,7 @@ var Dn = (
3462
3476
  break;
3463
3477
  }
3464
3478
  var h = b(i, this.clonePosition());
3465
- return o ? (s *= n, Cn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3479
+ return o ? (s *= n, Rn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3466
3480
  }, e.prototype.offset = function() {
3467
3481
  return this.position.offset;
3468
3482
  }, e.prototype.isEOF = function() {
@@ -3477,7 +3491,7 @@ var Dn = (
3477
3491
  var t = this.position.offset;
3478
3492
  if (t >= this.message.length)
3479
3493
  throw Error("out of bound");
3480
- var r = zt(this.message, t);
3494
+ var r = Jt(this.message, t);
3481
3495
  if (r === void 0)
3482
3496
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3483
3497
  return r;
@@ -3496,7 +3510,7 @@ var Dn = (
3496
3510
  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);
3497
3511
  }
3498
3512
  }, e.prototype.bumpIf = function(t) {
3499
- if (lt(this.message, t, this.offset())) {
3513
+ if (ft(this.message, t, this.offset())) {
3500
3514
  for (var r = 0; r < t.length; r++)
3501
3515
  this.bump();
3502
3516
  return !0;
@@ -3518,7 +3532,7 @@ var Dn = (
3518
3532
  break;
3519
3533
  }
3520
3534
  }, e.prototype.bumpSpace = function() {
3521
- for (; !this.isEOF() && Qt(this.char()); )
3535
+ for (; !this.isEOF() && qt(this.char()); )
3522
3536
  this.bump();
3523
3537
  }, e.prototype.peek = function() {
3524
3538
  if (this.isEOF())
@@ -3528,38 +3542,38 @@ var Dn = (
3528
3542
  }, e;
3529
3543
  }()
3530
3544
  );
3531
- function je(e) {
3545
+ function ke(e) {
3532
3546
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3533
3547
  }
3534
- function Gn(e) {
3535
- return je(e) || e === 47;
3548
+ function jn(e) {
3549
+ return ke(e) || e === 47;
3536
3550
  }
3537
- function Fn(e) {
3551
+ function kn(e) {
3538
3552
  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;
3539
3553
  }
3540
- function Qt(e) {
3554
+ function qt(e) {
3541
3555
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3542
3556
  }
3543
- function jn(e) {
3557
+ function Vn(e) {
3544
3558
  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;
3545
3559
  }
3546
- function ke(e) {
3560
+ function Ve(e) {
3547
3561
  e.forEach(function(t) {
3548
- if (delete t.location, Dt(t) || Gt(t))
3562
+ if (delete t.location, jt(t) || kt(t))
3549
3563
  for (var r in t.options)
3550
- delete t.options[r].location, ke(t.options[r].value);
3564
+ delete t.options[r].location, Ve(t.options[r].value);
3551
3565
  else
3552
- $t(t) && jt(t.style) || (Rt(t) || Ut(t)) && Ue(t.style) ? delete t.style.location : Ft(t) && ke(t.children);
3566
+ Dt(t) && Xt(t.style) || (Gt(t) || Ft(t)) && De(t.style) ? delete t.style.location : Vt(t) && Ve(t.children);
3553
3567
  });
3554
3568
  }
3555
- function kn(e, t) {
3569
+ function Xn(e, t) {
3556
3570
  t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3557
- var r = new Dn(e, t).parse();
3571
+ var r = new Fn(e, t).parse();
3558
3572
  if (r.err) {
3559
3573
  var n = SyntaxError(m[r.err.kind]);
3560
3574
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3561
3575
  }
3562
- return t?.captureLocation || ke(r.val), r.val;
3576
+ return t?.captureLocation || Ve(r.val), r.val;
3563
3577
  }
3564
3578
  var W;
3565
3579
  (function(e) {
@@ -3577,7 +3591,7 @@ var ve = (
3577
3591
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3578
3592
  }, t;
3579
3593
  }(Error)
3580
- ), dt = (
3594
+ ), mt = (
3581
3595
  /** @class */
3582
3596
  function(e) {
3583
3597
  I(t, e);
@@ -3586,7 +3600,7 @@ var ve = (
3586
3600
  }
3587
3601
  return t;
3588
3602
  }(ve)
3589
- ), Vn = (
3603
+ ), Wn = (
3590
3604
  /** @class */
3591
3605
  function(e) {
3592
3606
  I(t, e);
@@ -3595,7 +3609,7 @@ var ve = (
3595
3609
  }
3596
3610
  return t;
3597
3611
  }(ve)
3598
- ), Xn = (
3612
+ ), zn = (
3599
3613
  /** @class */
3600
3614
  function(e) {
3601
3615
  I(t, e);
@@ -3608,17 +3622,17 @@ var ve = (
3608
3622
  (function(e) {
3609
3623
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3610
3624
  })(_ || (_ = {}));
3611
- function Wn(e) {
3625
+ function Zn(e) {
3612
3626
  return e.length < 2 ? e : e.reduce(function(t, r) {
3613
3627
  var n = t[t.length - 1];
3614
3628
  return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
3615
3629
  }, []);
3616
3630
  }
3617
- function zn(e) {
3631
+ function Qn(e) {
3618
3632
  return typeof e == "function";
3619
3633
  }
3620
- function ce(e, t, r, n, i, o, s) {
3621
- if (e.length === 1 && st(e[0]))
3634
+ function fe(e, t, r, n, i, o, s) {
3635
+ if (e.length === 1 && ut(e[0]))
3622
3636
  return [
3623
3637
  {
3624
3638
  type: _.literal,
@@ -3627,60 +3641,60 @@ function ce(e, t, r, n, i, o, s) {
3627
3641
  ];
3628
3642
  for (var a = [], h = 0, u = e; h < u.length; h++) {
3629
3643
  var l = u[h];
3630
- if (st(l)) {
3644
+ if (ut(l)) {
3631
3645
  a.push({
3632
3646
  type: _.literal,
3633
3647
  value: l.value
3634
3648
  });
3635
3649
  continue;
3636
3650
  }
3637
- if (mn(l)) {
3651
+ if (gn(l)) {
3638
3652
  typeof o == "number" && a.push({
3639
3653
  type: _.literal,
3640
3654
  value: r.getNumberFormat(t).format(o)
3641
3655
  });
3642
3656
  continue;
3643
3657
  }
3644
- var c = l.value;
3645
- if (!(i && c in i))
3646
- throw new Xn(c, s);
3647
- var f = i[c];
3648
- if (pn(l)) {
3649
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3650
- type: typeof f == "string" ? _.literal : _.object,
3651
- value: f
3658
+ var f = l.value;
3659
+ if (!(i && f in i))
3660
+ throw new zn(f, s);
3661
+ var c = i[f];
3662
+ if (bn(l)) {
3663
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3664
+ type: typeof c == "string" ? _.literal : _.object,
3665
+ value: c
3652
3666
  });
3653
3667
  continue;
3654
3668
  }
3655
- if (Rt(l)) {
3656
- var d = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
3669
+ if (Gt(l)) {
3670
+ var p = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
3657
3671
  a.push({
3658
3672
  type: _.literal,
3659
- value: r.getDateTimeFormat(t, d).format(f)
3673
+ value: r.getDateTimeFormat(t, p).format(c)
3660
3674
  });
3661
3675
  continue;
3662
3676
  }
3663
- if (Ut(l)) {
3664
- var d = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
3677
+ if (Ft(l)) {
3678
+ var p = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
3665
3679
  a.push({
3666
3680
  type: _.literal,
3667
- value: r.getDateTimeFormat(t, d).format(f)
3681
+ value: r.getDateTimeFormat(t, p).format(c)
3668
3682
  });
3669
3683
  continue;
3670
3684
  }
3671
- if ($t(l)) {
3672
- var d = typeof l.style == "string" ? n.number[l.style] : jt(l.style) ? l.style.parsedOptions : void 0;
3673
- d && d.scale && (f = f * (d.scale || 1)), a.push({
3685
+ if (Dt(l)) {
3686
+ var p = typeof l.style == "string" ? n.number[l.style] : Xt(l.style) ? l.style.parsedOptions : void 0;
3687
+ p && p.scale && (c = c * (p.scale || 1)), a.push({
3674
3688
  type: _.literal,
3675
- value: r.getNumberFormat(t, d).format(f)
3689
+ value: r.getNumberFormat(t, p).format(c)
3676
3690
  });
3677
3691
  continue;
3678
3692
  }
3679
- if (Ft(l)) {
3680
- var p = l.children, v = l.value, H = i[v];
3681
- if (!zn(H))
3682
- throw new Vn(v, "function", s);
3683
- var C = ce(p, t, r, n, i, o), L = H(C.map(function(A) {
3693
+ if (Vt(l)) {
3694
+ var d = l.children, v = l.value, H = i[v];
3695
+ if (!Qn(H))
3696
+ throw new Wn(v, "function", s);
3697
+ var C = fe(d, t, r, n, i, o), L = H(C.map(function(A) {
3684
3698
  return A.value;
3685
3699
  }));
3686
3700
  Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(A) {
@@ -3690,42 +3704,42 @@ function ce(e, t, r, n, i, o, s) {
3690
3704
  };
3691
3705
  }));
3692
3706
  }
3693
- if (Dt(l)) {
3694
- var E = l.options[f] || l.options.other;
3695
- if (!E)
3696
- throw new dt(l.value, f, Object.keys(l.options), s);
3697
- a.push.apply(a, ce(E.value, t, r, n, i));
3707
+ if (jt(l)) {
3708
+ var x = l.options[c] || l.options.other;
3709
+ if (!x)
3710
+ throw new mt(l.value, c, Object.keys(l.options), s);
3711
+ a.push.apply(a, fe(x.value, t, r, n, i));
3698
3712
  continue;
3699
3713
  }
3700
- if (Gt(l)) {
3701
- var E = l.options["=".concat(f)];
3702
- if (!E) {
3714
+ if (kt(l)) {
3715
+ var x = l.options["=".concat(c)];
3716
+ if (!x) {
3703
3717
  if (!Intl.PluralRules)
3704
3718
  throw new ve(`Intl.PluralRules is not available in this environment.
3705
3719
  Try polyfilling it using "@formatjs/intl-pluralrules"
3706
3720
  `, W.MISSING_INTL_API, s);
3707
- var $ = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3708
- E = l.options[$] || l.options.other;
3721
+ var $ = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3722
+ x = l.options[$] || l.options.other;
3709
3723
  }
3710
- if (!E)
3711
- throw new dt(l.value, f, Object.keys(l.options), s);
3712
- a.push.apply(a, ce(E.value, t, r, n, i, f - (l.offset || 0)));
3724
+ if (!x)
3725
+ throw new mt(l.value, c, Object.keys(l.options), s);
3726
+ a.push.apply(a, fe(x.value, t, r, n, i, c - (l.offset || 0)));
3713
3727
  continue;
3714
3728
  }
3715
3729
  }
3716
- return Wn(a);
3730
+ return Zn(a);
3717
3731
  }
3718
- function Zn(e, t) {
3732
+ function Jn(e, t) {
3719
3733
  return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3720
3734
  return r[n] = g(g({}, e[n]), t[n] || {}), r;
3721
3735
  }, {})) : e;
3722
3736
  }
3723
- function Qn(e, t) {
3737
+ function Yn(e, t) {
3724
3738
  return t ? Object.keys(e).reduce(function(r, n) {
3725
- return r[n] = Zn(e[n], t[n]), r;
3739
+ return r[n] = Jn(e[n], t[n]), r;
3726
3740
  }, g({}, e)) : e;
3727
3741
  }
3728
- function Ae(e) {
3742
+ function Pe(e) {
3729
3743
  return {
3730
3744
  create: function() {
3731
3745
  return {
@@ -3739,39 +3753,39 @@ function Ae(e) {
3739
3753
  }
3740
3754
  };
3741
3755
  }
3742
- function Jn(e) {
3756
+ function qn(e) {
3743
3757
  return e === void 0 && (e = {
3744
3758
  number: {},
3745
3759
  dateTime: {},
3746
3760
  pluralRules: {}
3747
3761
  }), {
3748
- getNumberFormat: He(function() {
3762
+ getNumberFormat: Be(function() {
3749
3763
  for (var t, r = [], n = 0; n < arguments.length; n++)
3750
3764
  r[n] = arguments[n];
3751
3765
  return new ((t = Intl.NumberFormat).bind.apply(t, k([void 0], r, !1)))();
3752
3766
  }, {
3753
- cache: Ae(e.number),
3754
- strategy: Be.variadic
3767
+ cache: Pe(e.number),
3768
+ strategy: we.variadic
3755
3769
  }),
3756
- getDateTimeFormat: He(function() {
3770
+ getDateTimeFormat: Be(function() {
3757
3771
  for (var t, r = [], n = 0; n < arguments.length; n++)
3758
3772
  r[n] = arguments[n];
3759
3773
  return new ((t = Intl.DateTimeFormat).bind.apply(t, k([void 0], r, !1)))();
3760
3774
  }, {
3761
- cache: Ae(e.dateTime),
3762
- strategy: Be.variadic
3775
+ cache: Pe(e.dateTime),
3776
+ strategy: we.variadic
3763
3777
  }),
3764
- getPluralRules: He(function() {
3778
+ getPluralRules: Be(function() {
3765
3779
  for (var t, r = [], n = 0; n < arguments.length; n++)
3766
3780
  r[n] = arguments[n];
3767
3781
  return new ((t = Intl.PluralRules).bind.apply(t, k([void 0], r, !1)))();
3768
3782
  }, {
3769
- cache: Ae(e.pluralRules),
3770
- strategy: Be.variadic
3783
+ cache: Pe(e.pluralRules),
3784
+ strategy: we.variadic
3771
3785
  })
3772
3786
  };
3773
3787
  }
3774
- var Yn = (
3788
+ var Kn = (
3775
3789
  /** @class */
3776
3790
  function() {
3777
3791
  function e(t, r, n, i) {
@@ -3785,12 +3799,12 @@ var Yn = (
3785
3799
  var u = o.formatToParts(h);
3786
3800
  if (u.length === 1)
3787
3801
  return u[0].value;
3788
- var l = u.reduce(function(c, f) {
3789
- return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3802
+ var l = u.reduce(function(f, c) {
3803
+ return !f.length || c.type !== _.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3790
3804
  }, []);
3791
3805
  return l.length <= 1 ? l[0] || "" : l;
3792
3806
  }, this.formatToParts = function(h) {
3793
- return ce(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3807
+ return fe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3794
3808
  }, this.resolvedOptions = function() {
3795
3809
  var h;
3796
3810
  return {
@@ -3803,13 +3817,13 @@ var Yn = (
3803
3817
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3804
3818
  var s = i || {};
3805
3819
  s.formatters;
3806
- var a = Ar(s, ["formatters"]);
3820
+ var a = Ir(s, ["formatters"]);
3807
3821
  this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
3808
3822
  } else
3809
3823
  this.ast = t;
3810
3824
  if (!Array.isArray(this.ast))
3811
3825
  throw new TypeError("A message must be provided as a String or AST.");
3812
- this.formats = Qn(e.formats, n), this.formatters = i && i.formatters || Jn(this.formatterCache);
3826
+ this.formats = Yn(e.formats, n), this.formatters = i && i.formatters || qn(this.formatterCache);
3813
3827
  }
3814
3828
  return Object.defineProperty(e, "defaultLocale", {
3815
3829
  get: function() {
@@ -3822,7 +3836,7 @@ var Yn = (
3822
3836
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3823
3837
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3824
3838
  }
3825
- }, e.__parse = kn, e.formats = {
3839
+ }, e.__parse = Xn, e.formats = {
3826
3840
  number: {
3827
3841
  integer: {
3828
3842
  maximumFractionDigits: 0
@@ -3883,7 +3897,7 @@ var Yn = (
3883
3897
  }, e;
3884
3898
  }()
3885
3899
  );
3886
- function qn(e, t) {
3900
+ function ei(e, t) {
3887
3901
  if (t == null)
3888
3902
  return;
3889
3903
  if (t in e)
@@ -3904,92 +3918,92 @@ function qn(e, t) {
3904
3918
  n = void 0;
3905
3919
  return n;
3906
3920
  }
3907
- const M = {}, Kn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Jt = (e, t) => {
3921
+ const M = {}, ti = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Kt = (e, t) => {
3908
3922
  if (t == null)
3909
3923
  return;
3910
3924
  if (t in M && e in M[t])
3911
3925
  return M[t][e];
3912
- const r = xe(t);
3926
+ const r = Ee(t);
3913
3927
  for (let n = 0; n < r.length; n++) {
3914
- const i = r[n], o = ti(i, e);
3928
+ const i = r[n], o = ni(i, e);
3915
3929
  if (o)
3916
- return Kn(e, t, o);
3930
+ return ti(e, t, o);
3917
3931
  }
3918
3932
  };
3919
- let Ze;
3933
+ let Je;
3920
3934
  const se = ye({});
3921
- function ei(e) {
3922
- return Ze[e] || null;
3935
+ function ri(e) {
3936
+ return Je[e] || null;
3923
3937
  }
3924
- function Yt(e) {
3925
- return e in Ze;
3938
+ function er(e) {
3939
+ return e in Je;
3926
3940
  }
3927
- function ti(e, t) {
3928
- if (!Yt(e))
3941
+ function ni(e, t) {
3942
+ if (!er(e))
3929
3943
  return null;
3930
- const r = ei(e);
3931
- return qn(r, t);
3944
+ const r = ri(e);
3945
+ return ei(r, t);
3932
3946
  }
3933
- function ri(e) {
3947
+ function ii(e) {
3934
3948
  if (e == null)
3935
3949
  return;
3936
- const t = xe(e);
3950
+ const t = Ee(e);
3937
3951
  for (let r = 0; r < t.length; r++) {
3938
3952
  const n = t[r];
3939
- if (Yt(n))
3953
+ if (er(n))
3940
3954
  return n;
3941
3955
  }
3942
3956
  }
3943
- function qt(e, ...t) {
3944
- delete M[e], se.update((r) => (r[e] = sn.all([r[e] || {}, ...t]), r));
3957
+ function tr(e, ...t) {
3958
+ delete M[e], se.update((r) => (r[e] = hn.all([r[e] || {}, ...t]), r));
3945
3959
  }
3946
3960
  Q(
3947
3961
  [se],
3948
3962
  ([e]) => Object.keys(e)
3949
3963
  );
3950
- se.subscribe((e) => Ze = e);
3951
- const de = {};
3952
- function ni(e, t) {
3953
- de[e].delete(t), de[e].size === 0 && delete de[e];
3964
+ se.subscribe((e) => Je = e);
3965
+ const pe = {};
3966
+ function oi(e, t) {
3967
+ pe[e].delete(t), pe[e].size === 0 && delete pe[e];
3954
3968
  }
3955
- function Kt(e) {
3956
- return de[e];
3969
+ function rr(e) {
3970
+ return pe[e];
3957
3971
  }
3958
- function ii(e) {
3959
- return xe(e).map((t) => {
3960
- const r = Kt(t);
3972
+ function si(e) {
3973
+ return Ee(e).map((t) => {
3974
+ const r = rr(t);
3961
3975
  return [t, r ? [...r] : []];
3962
3976
  }).filter(([, t]) => t.length > 0);
3963
3977
  }
3964
- function Ve(e) {
3965
- return e == null ? !1 : xe(e).some(
3978
+ function Xe(e) {
3979
+ return e == null ? !1 : Ee(e).some(
3966
3980
  (t) => {
3967
3981
  var r;
3968
- return (r = Kt(t)) == null ? void 0 : r.size;
3982
+ return (r = rr(t)) == null ? void 0 : r.size;
3969
3983
  }
3970
3984
  );
3971
3985
  }
3972
- function oi(e, t) {
3986
+ function ai(e, t) {
3973
3987
  return Promise.all(
3974
- t.map((n) => (ni(e, n), n().then((i) => i.default || i)))
3975
- ).then((n) => qt(e, ...n));
3988
+ t.map((n) => (oi(e, n), n().then((i) => i.default || i)))
3989
+ ).then((n) => tr(e, ...n));
3976
3990
  }
3977
3991
  const K = {};
3978
- function er(e) {
3979
- if (!Ve(e))
3992
+ function nr(e) {
3993
+ if (!Xe(e))
3980
3994
  return e in K ? K[e] : Promise.resolve();
3981
- const t = ii(e);
3995
+ const t = si(e);
3982
3996
  return K[e] = Promise.all(
3983
3997
  t.map(
3984
- ([r, n]) => oi(r, n)
3998
+ ([r, n]) => ai(r, n)
3985
3999
  )
3986
4000
  ).then(() => {
3987
- if (Ve(e))
3988
- return er(e);
4001
+ if (Xe(e))
4002
+ return nr(e);
3989
4003
  delete K[e];
3990
4004
  }), K[e];
3991
4005
  }
3992
- const si = {
4006
+ const ui = {
3993
4007
  number: {
3994
4008
  scientific: { notation: "scientific" },
3995
4009
  engineering: { notation: "engineering" },
@@ -4018,57 +4032,57 @@ const si = {
4018
4032
  timeZoneName: "short"
4019
4033
  }
4020
4034
  }
4021
- }, ai = {
4035
+ }, hi = {
4022
4036
  fallbackLocale: null,
4023
4037
  loadingDelay: 200,
4024
- formats: si,
4038
+ formats: ui,
4025
4039
  warnOnMissingMessages: !0,
4026
4040
  handleMissingMessage: void 0,
4027
4041
  ignoreTag: !0
4028
- }, ui = ai;
4042
+ }, li = hi;
4029
4043
  function z() {
4030
- return ui;
4031
- }
4032
- const Pe = ye(!1);
4033
- var hi = Object.defineProperty, li = Object.defineProperties, fi = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, ci = Object.prototype.hasOwnProperty, di = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pi = (e, t) => {
4034
- for (var r in t)
4035
- ci.call(t, r) && mt(e, r, t[r]);
4036
- if (pt)
4037
- for (var r of pt(t))
4038
- di.call(t, r) && mt(e, r, t[r]);
4044
+ return li;
4045
+ }
4046
+ const Oe = ye(!1);
4047
+ var ci = Object.defineProperty, fi = Object.defineProperties, pi = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, di = Object.prototype.hasOwnProperty, mi = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bi = (e, t) => {
4048
+ for (var r in t || (t = {}))
4049
+ di.call(t, r) && gt(e, r, t[r]);
4050
+ if (bt)
4051
+ for (var r of bt(t))
4052
+ mi.call(t, r) && gt(e, r, t[r]);
4039
4053
  return e;
4040
- }, mi = (e, t) => li(e, fi(t));
4041
- let Xe;
4042
- const pe = ye(null);
4043
- function bt(e) {
4054
+ }, gi = (e, t) => fi(e, pi(t));
4055
+ let We;
4056
+ const de = ye(null);
4057
+ function yt(e) {
4044
4058
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4045
4059
  }
4046
- function xe(e, t = z().fallbackLocale) {
4047
- const r = bt(e);
4048
- return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
4060
+ function Ee(e, t = z().fallbackLocale) {
4061
+ const r = yt(e);
4062
+ return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
4049
4063
  }
4050
4064
  function R() {
4051
- return Xe ?? void 0;
4065
+ return We ?? void 0;
4052
4066
  }
4053
- pe.subscribe((e) => {
4054
- Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4067
+ de.subscribe((e) => {
4068
+ We = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4055
4069
  });
4056
- const bi = (e) => {
4057
- if (e && ri(e) && Ve(e)) {
4070
+ const yi = (e) => {
4071
+ if (e && ii(e) && Xe(e)) {
4058
4072
  const { loadingDelay: t } = z();
4059
4073
  let r;
4060
4074
  return typeof window < "u" && R() != null && t ? r = window.setTimeout(
4061
- () => Pe.set(!0),
4075
+ () => Oe.set(!0),
4062
4076
  t
4063
- ) : Pe.set(!0), er(e).then(() => {
4064
- pe.set(e);
4077
+ ) : Oe.set(!0), nr(e).then(() => {
4078
+ de.set(e);
4065
4079
  }).finally(() => {
4066
- clearTimeout(r), Pe.set(!1);
4080
+ clearTimeout(r), Oe.set(!1);
4067
4081
  });
4068
4082
  }
4069
- return pe.set(e);
4070
- }, J = mi(pi({}, pe), {
4071
- set: bi
4083
+ return de.set(e);
4084
+ }, J = gi(bi({}, de), {
4085
+ set: yi
4072
4086
  }), _e = (e) => {
4073
4087
  const t = /* @__PURE__ */ Object.create(null);
4074
4088
  return (n) => {
@@ -4076,20 +4090,20 @@ const bi = (e) => {
4076
4090
  return i in t ? t[i] : t[i] = e(n);
4077
4091
  };
4078
4092
  };
4079
- var gi = Object.defineProperty, me = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
4093
+ var vi = Object.defineProperty, me = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
4080
4094
  for (var r in t || (t = {}))
4081
- tr.call(t, r) && gt(e, r, t[r]);
4095
+ ir.call(t, r) && vt(e, r, t[r]);
4082
4096
  if (me)
4083
4097
  for (var r of me(t))
4084
- rr.call(t, r) && gt(e, r, t[r]);
4098
+ or.call(t, r) && vt(e, r, t[r]);
4085
4099
  return e;
4086
4100
  }, Y = (e, t) => {
4087
4101
  var r = {};
4088
4102
  for (var n in e)
4089
- tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4103
+ ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4090
4104
  if (e != null && me)
4091
4105
  for (var n of me(e))
4092
- t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
4106
+ t.indexOf(n) < 0 && or.call(e, n) && (r[n] = e[n]);
4093
4107
  return r;
4094
4108
  };
4095
4109
  const ne = (e, t) => {
@@ -4097,14 +4111,14 @@ const ne = (e, t) => {
4097
4111
  if (e in r && t in r[e])
4098
4112
  return r[e][t];
4099
4113
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4100
- }, yi = _e(
4114
+ }, Ei = _e(
4101
4115
  (e) => {
4102
4116
  var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
4103
4117
  if (r == null)
4104
4118
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4105
4119
  return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
4106
4120
  }
4107
- ), vi = _e(
4121
+ ), _i = _e(
4108
4122
  (e) => {
4109
4123
  var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
4110
4124
  if (r == null)
@@ -4120,33 +4134,33 @@ const ne = (e, t) => {
4120
4134
  );
4121
4135
  return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
4122
4136
  }
4123
- ), _i = (e = {}) => {
4137
+ ), Si = (e = {}) => {
4124
4138
  var t = e, {
4125
4139
  locale: r = R()
4126
4140
  } = t, n = Y(t, [
4127
4141
  "locale"
4128
4142
  ]);
4129
- return yi(Qe({ locale: r }, n));
4130
- }, Ei = (e = {}) => {
4143
+ return Ei(Ye({ locale: r }, n));
4144
+ }, Ti = (e = {}) => {
4131
4145
  var t = e, {
4132
4146
  locale: r = R()
4133
4147
  } = t, n = Y(t, [
4134
4148
  "locale"
4135
4149
  ]);
4136
- return vi(Qe({ locale: r }, n));
4137
- }, Si = (e = {}) => {
4150
+ return _i(Ye({ locale: r }, n));
4151
+ }, Hi = (e = {}) => {
4138
4152
  var t = e, {
4139
4153
  locale: r = R()
4140
4154
  } = t, n = Y(t, [
4141
4155
  "locale"
4142
4156
  ]);
4143
- return xi(Qe({ locale: r }, n));
4144
- }, Ti = _e(
4157
+ return xi(Ye({ locale: r }, n));
4158
+ }, Bi = _e(
4145
4159
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4146
- (e, t = R()) => new Yn(e, t, z().formats, {
4160
+ (e, t = R()) => new Kn(e, t, z().formats, {
4147
4161
  ignoreTag: z().ignoreTag
4148
4162
  })
4149
- ), Hi = (e, t = {}) => {
4163
+ ), wi = (e, t = {}) => {
4150
4164
  var r, n, i, o;
4151
4165
  let s = t;
4152
4166
  typeof e == "object" && (s = e, e = s.id);
@@ -4159,7 +4173,7 @@ const ne = (e, t) => {
4159
4173
  throw new Error(
4160
4174
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4161
4175
  );
4162
- let l = Jt(e, h);
4176
+ let l = Kt(e, h);
4163
4177
  if (!l)
4164
4178
  l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4165
4179
  else if (typeof l != "string")
@@ -4168,23 +4182,23 @@ const ne = (e, t) => {
4168
4182
  ), l;
4169
4183
  if (!a)
4170
4184
  return l;
4171
- let c = l;
4185
+ let f = l;
4172
4186
  try {
4173
- c = Ti(l, h).format(a);
4174
- } catch (f) {
4175
- f instanceof Error && console.warn(
4187
+ f = Bi(l, h).format(a);
4188
+ } catch (c) {
4189
+ c instanceof Error && console.warn(
4176
4190
  `[svelte-i18n] Message "${e}" has syntax error:`,
4177
- f.message
4191
+ c.message
4178
4192
  );
4179
4193
  }
4180
- return c;
4181
- }, Bi = (e, t) => Si(t).format(e), wi = (e, t) => Ei(t).format(e), Ai = (e, t) => _i(t).format(e), Pi = (e, t = R()) => Jt(e, t), Oi = Q([J, se], () => Hi);
4182
- Q([J], () => Bi);
4183
- Q([J], () => wi);
4194
+ return f;
4195
+ }, Ai = (e, t) => Hi(t).format(e), Pi = (e, t) => Ti(t).format(e), Oi = (e, t) => Si(t).format(e), Ii = (e, t = R()) => Kt(e, t), Li = Q([J, se], () => wi);
4184
4196
  Q([J], () => Ai);
4185
- Q([J, se], () => Pi);
4186
- window.emWidgets = { topic: jr };
4187
- const Ii = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", Li = (e, t = {}) => {
4197
+ Q([J], () => Pi);
4198
+ Q([J], () => Oi);
4199
+ Q([J, se], () => Ii);
4200
+ window.emWidgets = { topic: Xr };
4201
+ const Ni = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", Mi = (e, t = {}) => {
4188
4202
  const r = new CustomEvent("track-custom-event", {
4189
4203
  detail: {
4190
4204
  type: e,
@@ -4195,13 +4209,13 @@ const Ii = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase(
4195
4209
  });
4196
4210
  document.dispatchEvent(r);
4197
4211
  };
4198
- function yt(e, t) {
4199
- qt(e, t);
4212
+ function Et(e, t) {
4213
+ tr(e, t);
4200
4214
  }
4201
- function Ni(e) {
4215
+ function Ci(e) {
4202
4216
  J.set(e);
4203
4217
  }
4204
- const vt = {
4218
+ const _t = {
4205
4219
  en: {
4206
4220
  logoutButton: "Logout"
4207
4221
  },
@@ -4242,7 +4256,7 @@ function xt(e, t) {
4242
4256
  r.innerHTML = t, e.appendChild(r);
4243
4257
  }
4244
4258
  }
4245
- function Mi(e, t) {
4259
+ function $i(e, t) {
4246
4260
  const r = new URL(t);
4247
4261
  fetch(r.href).then((n) => n.text()).then((n) => {
4248
4262
  const i = document.createElement("style");
@@ -4251,7 +4265,7 @@ function Mi(e, t) {
4251
4265
  console.error("There was an error while trying to load client styling from URL", n);
4252
4266
  });
4253
4267
  }
4254
- function Ci(e, t, r) {
4268
+ function Ri(e, t, r) {
4255
4269
  if (window.emMessageBus) {
4256
4270
  const n = document.createElement("style");
4257
4271
  window.emMessageBus.subscribe(t, (i) => {
@@ -4259,10 +4273,10 @@ function Ci(e, t, r) {
4259
4273
  });
4260
4274
  }
4261
4275
  }
4262
- function $i(e) {
4263
- sr(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
4276
+ function Ui(e) {
4277
+ hr(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
4264
4278
  }
4265
- function Ri(e) {
4279
+ function Di(e) {
4266
4280
  let t, r, n, i = (
4267
4281
  /*$_*/
4268
4282
  e[2]("logoutButton") + ""
@@ -4272,7 +4286,7 @@ function Ri(e) {
4272
4286
  t = P("div"), r = P("button"), n = P("span"), o = be(i), T(t, "class", "GeneralLogout");
4273
4287
  },
4274
4288
  m(h, u) {
4275
- oe(h, t, u), S(t, r), S(r, n), S(n, o), s || (a = Tt(
4289
+ oe(h, t, u), S(t, r), S(r, n), S(n, o), s || (a = Bt(
4276
4290
  r,
4277
4291
  "click",
4278
4292
  /*click_handler_1*/
@@ -4282,19 +4296,19 @@ function Ri(e) {
4282
4296
  p(h, u) {
4283
4297
  u & /*$_*/
4284
4298
  4 && i !== (i = /*$_*/
4285
- h[2]("logoutButton") + "") && Ht(o, i);
4299
+ h[2]("logoutButton") + "") && wt(o, i);
4286
4300
  },
4287
4301
  d(h) {
4288
4302
  h && Z(t), s = !1, a();
4289
4303
  }
4290
4304
  };
4291
4305
  }
4292
- function Ui(e) {
4293
- let t, r, n, i, o, s, a, h, u, l, c, f = !/*isMobile*/
4294
- e[3] && Di(e);
4306
+ function Gi(e) {
4307
+ let t, r, n, i, o, s, a, h, u, l, f, c = !/*isMobile*/
4308
+ e[3] && Fi(e);
4295
4309
  return {
4296
4310
  c() {
4297
- t = P("p"), r = P("span"), n = q("svg"), i = q("defs"), o = q("style"), s = be(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = q("path"), h = q("path"), u = hr(), f && f.c(), T(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), T(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), T(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), T(h, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), T(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), T(n, "data-name", "Layer 1"), T(n, "xmlns", "http://www.w3.org/2000/svg"), T(n, "viewBox", "0 0 150 150"), fr(r, "width", /*isMobile*/
4311
+ t = P("p"), r = P("span"), n = q("svg"), i = q("defs"), o = q("style"), s = be(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = q("path"), h = q("path"), u = fr(), c && c.c(), T(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), T(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), T(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), T(h, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), T(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), T(n, "data-name", "Layer 1"), T(n, "xmlns", "http://www.w3.org/2000/svg"), T(n, "viewBox", "0 0 150 150"), dr(r, "width", /*isMobile*/
4298
4312
  e[3] ? (
4299
4313
  /*mediaQuery*/
4300
4314
  e[4].matches ? "20px" : "24px"
@@ -4303,24 +4317,24 @@ function Ui(e) {
4303
4317
  (e[4].matches && /*isMobile*/
4304
4318
  e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
4305
4319
  },
4306
- m(d, p) {
4307
- oe(d, t, p), S(t, r), S(r, n), S(n, i), S(i, o), S(o, s), S(n, a), S(n, h), S(t, u), f && f.m(t, null), l || (c = Tt(
4320
+ m(p, d) {
4321
+ oe(p, t, d), S(t, r), S(r, n), S(n, i), S(i, o), S(o, s), S(n, a), S(n, h), S(t, u), c && c.m(t, null), l || (f = Bt(
4308
4322
  t,
4309
4323
  "click",
4310
4324
  /*click_handler*/
4311
4325
  e[13]
4312
4326
  ), l = !0);
4313
4327
  },
4314
- p(d, p) {
4328
+ p(p, d) {
4315
4329
  /*isMobile*/
4316
- d[3] || f.p(d, p);
4330
+ p[3] || c.p(p, d);
4317
4331
  },
4318
- d(d) {
4319
- d && Z(t), f && f.d(), l = !1, c();
4332
+ d(p) {
4333
+ p && Z(t), c && c.d(), l = !1, f();
4320
4334
  }
4321
4335
  };
4322
4336
  }
4323
- function Di(e) {
4337
+ function Fi(e) {
4324
4338
  let t, r = (
4325
4339
  /*$_*/
4326
4340
  e[2]("logoutButton") + ""
@@ -4335,19 +4349,19 @@ function Di(e) {
4335
4349
  p(i, o) {
4336
4350
  o & /*$_*/
4337
4351
  4 && r !== (r = /*$_*/
4338
- i[2]("logoutButton") + "") && Ht(n, r);
4352
+ i[2]("logoutButton") + "") && wt(n, r);
4339
4353
  },
4340
4354
  d(i) {
4341
4355
  i && Z(t);
4342
4356
  }
4343
4357
  };
4344
4358
  }
4345
- function Gi(e) {
4359
+ function ji(e) {
4346
4360
  let t;
4347
4361
  function r(o, s) {
4348
4362
  return (
4349
4363
  /*buttonlocation*/
4350
- o[0] === "PlayerAccountMenu" ? Ui : Ri
4364
+ o[0] === "PlayerAccountMenu" ? Gi : Di
4351
4365
  );
4352
4366
  }
4353
4367
  let n = r(e), i = n(e);
@@ -4368,78 +4382,78 @@ function Gi(e) {
4368
4382
  }
4369
4383
  };
4370
4384
  }
4371
- function Fi(e, t, r) {
4385
+ function ki(e, t, r) {
4372
4386
  let n;
4373
- or(e, Oi, (y) => r(2, n = y));
4374
- let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, f = "", d = !1, p, v = window.navigator.userAgent, H = Ii(v) !== "PC";
4387
+ ur(e, Li, (y) => r(2, n = y));
4388
+ let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c = "", p = !1, d, v = window.navigator.userAgent, H = Ni(v) !== "PC";
4375
4389
  const C = window.matchMedia("(min-width: 768px)"), L = () => {
4376
- fetch(c).then((N) => N.json()).then((N) => {
4377
- Object.keys(N).forEach((Ee) => {
4378
- yt(Ee, N[Ee]);
4390
+ fetch(f).then((N) => N.json()).then((N) => {
4391
+ Object.keys(N).forEach((xe) => {
4392
+ Et(xe, N[xe]);
4379
4393
  });
4380
4394
  }).catch((N) => {
4381
4395
  console.log(N);
4382
4396
  });
4383
4397
  };
4384
- Object.keys(vt).forEach((y) => {
4385
- yt(y, vt[y]);
4398
+ Object.keys(_t).forEach((y) => {
4399
+ Et(y, _t[y]);
4386
4400
  });
4387
- const E = () => {
4401
+ const x = () => {
4388
4402
  let y = new Headers();
4389
4403
  y.append("Content-type", "application/json"), y.append("X-SessionID", o);
4390
4404
  let N = { method: "DELETE", headers: y };
4391
- fetch(`${i}/v1/player/session/player`, N).then((Ee) => {
4392
- window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), Li("logged_out", {});
4405
+ fetch(`${i}/v1/player/session/player`, N).then((xe) => {
4406
+ window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), Mi("logged_out", {});
4393
4407
  });
4394
- }, $ = () => (i || (f = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", d = !0, console.error(f)), o || (f = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", d = !0, console.error(f)), d), A = () => {
4395
- Ni(a);
4408
+ }, $ = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", p = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", p = !0, console.error(c)), p), A = () => {
4409
+ Ci(a);
4396
4410
  };
4397
- pr(() => () => {
4411
+ gr(() => () => {
4398
4412
  });
4399
- const U = () => E(), ae = () => E();
4400
- function nr(y) {
4401
- Oe[y ? "unshift" : "push"](() => {
4402
- p = y, r(1, p);
4413
+ const U = () => x(), ae = () => x();
4414
+ function sr(y) {
4415
+ Ie[y ? "unshift" : "push"](() => {
4416
+ d = y, r(1, d);
4403
4417
  });
4404
4418
  }
4405
4419
  return e.$$set = (y) => {
4406
- "endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "buttonlocation" in y && r(0, s = y.buttonlocation), "lang" in y && r(8, a = y.lang), "mbsource" in y && r(9, h = y.mbsource), "clientstyling" in y && r(10, u = y.clientstyling), "clientstylingurl" in y && r(11, l = y.clientstylingurl), "translationurl" in y && r(12, c = y.translationurl);
4420
+ "endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "buttonlocation" in y && r(0, s = y.buttonlocation), "lang" in y && r(8, a = y.lang), "mbsource" in y && r(9, h = y.mbsource), "clientstyling" in y && r(10, u = y.clientstyling), "clientstylingurl" in y && r(11, l = y.clientstylingurl), "translationurl" in y && r(12, f = y.translationurl);
4407
4421
  }, e.$$.update = () => {
4408
4422
  e.$$.dirty & /*endpoint, session, buttonlocation*/
4409
4423
  193 && i && o && s && $(), e.$$.dirty & /*lang*/
4410
4424
  256 && a && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4411
- 1026 && u && p && xt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4412
- 1026 && u && p && xt(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4413
- 2050 && l && p && Mi(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4414
- 514 && h && p && Ci(p, `${h}.Style`), e.$$.dirty & /*translationurl*/
4415
- 4096 && c && L();
4425
+ 1026 && u && d && xt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4426
+ 1026 && u && d && xt(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4427
+ 2050 && l && d && $i(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4428
+ 514 && h && d && Ri(d, `${h}.Style`), e.$$.dirty & /*translationurl*/
4429
+ 4096 && f && L();
4416
4430
  }, [
4417
4431
  s,
4418
- p,
4432
+ d,
4419
4433
  n,
4420
4434
  H,
4421
4435
  C,
4422
- E,
4436
+ x,
4423
4437
  i,
4424
4438
  o,
4425
4439
  a,
4426
4440
  h,
4427
4441
  u,
4428
4442
  l,
4429
- c,
4443
+ f,
4430
4444
  U,
4431
4445
  ae,
4432
- nr
4446
+ sr
4433
4447
  ];
4434
4448
  }
4435
- class ji extends Br {
4449
+ class Vi extends Pr {
4436
4450
  constructor(t) {
4437
- super(), Tr(
4451
+ super(), wr(
4438
4452
  this,
4439
4453
  t,
4440
- Fi,
4441
- Gi,
4442
- Et,
4454
+ ki,
4455
+ ji,
4456
+ Tt,
4443
4457
  {
4444
4458
  endpoint: 6,
4445
4459
  session: 7,
@@ -4450,7 +4464,7 @@ class ji extends Br {
4450
4464
  clientstylingurl: 11,
4451
4465
  translationurl: 12
4452
4466
  },
4453
- $i
4467
+ Ui
4454
4468
  );
4455
4469
  }
4456
4470
  get endpoint() {
@@ -4502,7 +4516,7 @@ class ji extends Br {
4502
4516
  this.$$set({ translationurl: t }), w();
4503
4517
  }
4504
4518
  }
4505
- Hr(ji, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4519
+ Ar(Vi, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4506
4520
  export {
4507
- ji as G
4521
+ Vi as G
4508
4522
  };