@everymatrix/general-logout 1.59.3 → 1.60.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,17 +1,17 @@
1
- var hr = Object.defineProperty, lr = Object.defineProperties;
2
- var cr = Object.getOwnPropertyDescriptors;
3
- var Ye = Object.getOwnPropertySymbols;
4
- var fr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable;
5
- var Te = (e, t, r) => t in e ? hr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
1
+ var pr = Object.defineProperty, dr = Object.defineProperties;
2
+ var mr = Object.getOwnPropertyDescriptors;
3
+ var et = Object.getOwnPropertySymbols;
4
+ var br = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable;
5
+ var Te = (e, t, r) => t in e ? pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- fr.call(t, r) && Te(e, r, t[r]);
8
- if (Ye)
9
- for (var r of Ye(t))
10
- pr.call(t, r) && Te(e, r, t[r]);
7
+ br.call(t, r) && Te(e, r, t[r]);
8
+ if (et)
9
+ for (var r of et(t))
10
+ gr.call(t, r) && Te(e, r, t[r]);
11
11
  return e;
12
- }, Ke = (e, t) => lr(e, cr(t));
12
+ }, rt = (e, t) => dr(e, mr(t));
13
13
  var T = (e, t, r) => (Te(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var et = (e, t, r) => new Promise((n, i) => {
14
+ var nt = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (h) => {
16
16
  try {
17
17
  a(r.next(h));
@@ -27,49 +27,49 @@ var et = (e, t, r) => new Promise((n, i) => {
27
27
  }, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
28
28
  a((r = r.apply(e, t)).next());
29
29
  });
30
- function A() {
30
+ function w() {
31
31
  }
32
- function Bt(e) {
32
+ function Pt(e) {
33
33
  return e();
34
34
  }
35
- function tt() {
35
+ function it() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
38
  function oe(e) {
39
- e.forEach(Bt);
39
+ e.forEach(Pt);
40
40
  }
41
- function Ze(e) {
41
+ function Qe(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function At(e, t) {
44
+ function Ot(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function dr(e) {
47
+ function yr(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function wt(e, ...t) {
50
+ function It(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const n of t)
53
53
  n(void 0);
54
- return A;
54
+ return w;
55
55
  }
56
56
  const r = e.subscribe(...t);
57
57
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
58
  }
59
- function mr(e, t, r) {
60
- e.$$.on_destroy.push(wt(t, r));
59
+ function vr(e, t, r) {
60
+ e.$$.on_destroy.push(It(t, r));
61
61
  }
62
62
  function S(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
- function br(e, t, r) {
66
- const n = gr(e);
65
+ function Er(e, t, r) {
66
+ const n = _r(e);
67
67
  if (!n.getElementById(t)) {
68
68
  const i = O("style");
69
- i.id = t, i.textContent = r, yr(n, i);
69
+ i.id = t, i.textContent = r, xr(n, i);
70
70
  }
71
71
  }
72
- function gr(e) {
72
+ function _r(e) {
73
73
  if (!e)
74
74
  return document;
75
75
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -79,7 +79,7 @@ function gr(e) {
79
79
  t
80
80
  ) : e.ownerDocument;
81
81
  }
82
- function yr(e, t) {
82
+ function xr(e, t) {
83
83
  return S(
84
84
  /** @type {Document} */
85
85
  e.head || e,
@@ -101,26 +101,26 @@ function K(e) {
101
101
  function ge(e) {
102
102
  return document.createTextNode(e);
103
103
  }
104
- function vr() {
104
+ function Sr() {
105
105
  return ge(" ");
106
106
  }
107
- function Pt(e, t, r, n) {
107
+ function Lt(e, t, r, n) {
108
108
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
109
109
  }
110
110
  function H(e, t, r) {
111
111
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
112
112
  }
113
- function _r(e) {
113
+ function Tr(e) {
114
114
  return Array.from(e.childNodes);
115
115
  }
116
- function Ot(e, t) {
116
+ function Nt(e, t) {
117
117
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
118
118
  t);
119
119
  }
120
- function xr(e, t, r, n) {
120
+ function Hr(e, t, r, n) {
121
121
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
122
122
  }
123
- function Er(e) {
123
+ function Br(e) {
124
124
  const t = {};
125
125
  return e.childNodes.forEach(
126
126
  /** @param {Element} node */
@@ -133,81 +133,81 @@ let re;
133
133
  function te(e) {
134
134
  re = e;
135
135
  }
136
- function Sr() {
136
+ function wr() {
137
137
  if (!re)
138
138
  throw new Error("Function called outside component initialization");
139
139
  return re;
140
140
  }
141
- function Tr(e) {
142
- Sr().$$.on_mount.push(e);
141
+ function Ar(e) {
142
+ wr().$$.on_mount.push(e);
143
143
  }
144
- const j = [], Le = [];
144
+ const j = [], Ne = [];
145
145
  let k = [];
146
- const rt = [], Hr = /* @__PURE__ */ Promise.resolve();
147
- let Ne = !1;
148
- function Br() {
149
- Ne || (Ne = !0, Hr.then(w));
146
+ const ot = [], Pr = /* @__PURE__ */ Promise.resolve();
147
+ let Me = !1;
148
+ function Or() {
149
+ Me || (Me = !0, Pr.then(A));
150
150
  }
151
- function Me(e) {
151
+ function Ce(e) {
152
152
  k.push(e);
153
153
  }
154
154
  const He = /* @__PURE__ */ new Set();
155
- let D = 0;
156
- function w() {
157
- if (D !== 0)
155
+ let G = 0;
156
+ function A() {
157
+ if (G !== 0)
158
158
  return;
159
159
  const e = re;
160
160
  do {
161
161
  try {
162
- for (; D < j.length; ) {
163
- const t = j[D];
164
- D++, te(t), Ar(t.$$);
162
+ for (; G < j.length; ) {
163
+ const t = j[G];
164
+ G++, te(t), Ir(t.$$);
165
165
  }
166
166
  } catch (t) {
167
- throw j.length = 0, D = 0, t;
167
+ throw j.length = 0, G = 0, t;
168
168
  }
169
- for (te(null), j.length = 0, D = 0; Le.length; )
170
- Le.pop()();
169
+ for (te(null), j.length = 0, G = 0; Ne.length; )
170
+ Ne.pop()();
171
171
  for (let t = 0; t < k.length; t += 1) {
172
172
  const r = k[t];
173
173
  He.has(r) || (He.add(r), r());
174
174
  }
175
175
  k.length = 0;
176
176
  } while (j.length);
177
- for (; rt.length; )
178
- rt.pop()();
179
- Ne = !1, He.clear(), te(e);
177
+ for (; ot.length; )
178
+ ot.pop()();
179
+ Me = !1, He.clear(), te(e);
180
180
  }
181
- function Ar(e) {
181
+ function Ir(e) {
182
182
  if (e.fragment !== null) {
183
183
  e.update(), oe(e.before_update);
184
184
  const t = e.dirty;
185
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
185
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
186
186
  }
187
187
  }
188
- function wr(e) {
188
+ function Lr(e) {
189
189
  const t = [], r = [];
190
190
  k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
191
191
  }
192
- const Pr = /* @__PURE__ */ new Set();
193
- function Or(e, t) {
194
- e && e.i && (Pr.delete(e), e.i(t));
192
+ const Nr = /* @__PURE__ */ new Set();
193
+ function Mr(e, t) {
194
+ e && e.i && (Nr.delete(e), e.i(t));
195
195
  }
196
- function Ir(e, t, r) {
196
+ function Cr(e, t, r) {
197
197
  const { fragment: n, after_update: i } = e.$$;
198
- n && n.m(t, r), Me(() => {
199
- const o = e.$$.on_mount.map(Bt).filter(Ze);
198
+ n && n.m(t, r), Ce(() => {
199
+ const o = e.$$.on_mount.map(Pt).filter(Qe);
200
200
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
201
- }), i.forEach(Me);
201
+ }), i.forEach(Ce);
202
202
  }
203
- function Lr(e, t) {
203
+ function $r(e, t) {
204
204
  const r = e.$$;
205
- r.fragment !== null && (wr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
205
+ r.fragment !== null && (Lr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
206
206
  }
207
- function Nr(e, t) {
208
- e.$$.dirty[0] === -1 && (j.push(e), Br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
207
+ function Rr(e, t) {
208
+ e.$$.dirty[0] === -1 && (j.push(e), Or(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
209
209
  }
210
- function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
210
+ function Ur(e, t, r, n, i, o, s = null, a = [-1]) {
211
211
  const h = re;
212
212
  te(e);
213
213
  const u = e.$$ = {
@@ -215,9 +215,9 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
215
215
  ctx: [],
216
216
  // state
217
217
  props: o,
218
- update: A,
218
+ update: w,
219
219
  not_equal: i,
220
- bound: tt(),
220
+ bound: it(),
221
221
  // lifecycle
222
222
  on_mount: [],
223
223
  on_destroy: [],
@@ -226,7 +226,7 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
226
226
  after_update: [],
227
227
  context: new Map(t.context || (h ? h.$$.context : [])),
228
228
  // everything else
229
- callbacks: tt(),
229
+ callbacks: it(),
230
230
  dirty: a,
231
231
  skip_bound: !1,
232
232
  root: t.target || h.$$.root
@@ -235,19 +235,19 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
235
235
  let l = !1;
236
236
  if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
237
237
  const d = p.length ? p[0] : c;
238
- return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l && Nr(e, f)), c;
238
+ return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l && Rr(e, f)), c;
239
239
  }) : [], u.update(), l = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
240
240
  if (t.hydrate) {
241
- const f = _r(t.target);
241
+ const f = Tr(t.target);
242
242
  u.fragment && u.fragment.l(f), f.forEach(Q);
243
243
  } else
244
244
  u.fragment && u.fragment.c();
245
- t.intro && Or(e.$$.fragment), Ir(e, t.target, t.anchor), w();
245
+ t.intro && Mr(e.$$.fragment), Cr(e, t.target, t.anchor), A();
246
246
  }
247
247
  te(h);
248
248
  }
249
- let It;
250
- typeof HTMLElement == "function" && (It = class extends HTMLElement {
249
+ let Mt;
250
+ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
251
251
  constructor(t, r, n) {
252
252
  super();
253
253
  /** The Svelte component constructor */
@@ -284,7 +284,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
284
284
  }
285
285
  }
286
286
  connectedCallback() {
287
- return et(this, null, function* () {
287
+ return nt(this, null, function* () {
288
288
  if (this.$$cn = !0, !this.$$c) {
289
289
  let t = function(o) {
290
290
  return () => {
@@ -308,7 +308,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
308
308
  };
309
309
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
310
310
  return;
311
- const r = {}, n = Er(this);
311
+ const r = {}, n = Br(this);
312
312
  for (const o of this.$$s)
313
313
  o in n && (r[o] = [t(o)]);
314
314
  for (const o of this.attributes) {
@@ -319,7 +319,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
319
319
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
320
320
  this.$$c = new this.$$ctor({
321
321
  target: this.shadowRoot || this,
322
- props: Ke(qe({}, this.$$d), {
322
+ props: rt(tt({}, this.$$d), {
323
323
  $$slots: r,
324
324
  $$scope: {
325
325
  ctx: []
@@ -397,8 +397,8 @@ function ce(e, t, r, n) {
397
397
  return t;
398
398
  }
399
399
  }
400
- function Cr(e, t, r, n, i, o) {
401
- let s = class extends It {
400
+ function Dr(e, t, r, n, i, o) {
401
+ let s = class extends Mt {
402
402
  constructor() {
403
403
  super(e, r, i), this.$$p_d = t;
404
404
  }
@@ -428,7 +428,7 @@ function Cr(e, t, r, n, i, o) {
428
428
  }), e.element = /** @type {any} */
429
429
  s, s;
430
430
  }
431
- class $r {
431
+ class Gr {
432
432
  constructor() {
433
433
  /**
434
434
  * ### PRIVATE API
@@ -449,7 +449,7 @@ class $r {
449
449
  }
450
450
  /** @returns {void} */
451
451
  $destroy() {
452
- Lr(this, 1), this.$destroy = A;
452
+ $r(this, 1), this.$destroy = w;
453
453
  }
454
454
  /**
455
455
  * @template {Extract<keyof Events, string>} K
@@ -458,8 +458,8 @@ class $r {
458
458
  * @returns {() => void}
459
459
  */
460
460
  $on(t, r) {
461
- if (!Ze(r))
462
- return A;
461
+ if (!Qe(r))
462
+ return w;
463
463
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
464
464
  return n.push(r), () => {
465
465
  const i = n.indexOf(r);
@@ -471,11 +471,11 @@ class $r {
471
471
  * @returns {void}
472
472
  */
473
473
  $set(t) {
474
- this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
474
+ this.$$set && !yr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
475
475
  }
476
476
  }
477
- const Rr = "4";
478
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Rr);
477
+ const Fr = "4";
478
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fr);
479
479
  /*! *****************************************************************************
480
480
  Copyright (c) Microsoft Corporation.
481
481
 
@@ -490,18 +490,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
490
490
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
491
491
  PERFORMANCE OF THIS SOFTWARE.
492
492
  ***************************************************************************** */
493
- var Ce = function(e, t) {
494
- return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
493
+ var $e = function(e, t) {
494
+ return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
495
495
  r.__proto__ = n;
496
496
  } || function(r, n) {
497
497
  for (var i in n)
498
498
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
499
- }, Ce(e, t);
499
+ }, $e(e, t);
500
500
  };
501
501
  function L(e, t) {
502
502
  if (typeof t != "function" && t !== null)
503
503
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
504
- Ce(e, t);
504
+ $e(e, t);
505
505
  function r() {
506
506
  this.constructor = e;
507
507
  }
@@ -517,7 +517,7 @@ var g = function() {
517
517
  return t;
518
518
  }, g.apply(this, arguments);
519
519
  };
520
- function Ur(e, t) {
520
+ function jr(e, t) {
521
521
  var r = {};
522
522
  for (var n in e)
523
523
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -526,7 +526,7 @@ function Ur(e, t) {
526
526
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
527
527
  return r;
528
528
  }
529
- function $e(e) {
529
+ function Re(e) {
530
530
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
531
531
  if (r)
532
532
  return r.call(e);
@@ -538,7 +538,7 @@ function $e(e) {
538
538
  };
539
539
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
540
540
  }
541
- function Re(e, t) {
541
+ function Ue(e, t) {
542
542
  var r = typeof Symbol == "function" && e[Symbol.iterator];
543
543
  if (!r)
544
544
  return e;
@@ -567,13 +567,13 @@ function V(e, t, r) {
567
567
  function I(e) {
568
568
  return typeof e == "function";
569
569
  }
570
- function Lt(e) {
570
+ function Ct(e) {
571
571
  var t = function(n) {
572
572
  Error.call(n), n.stack = new Error().stack;
573
573
  }, r = e(t);
574
574
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
575
575
  }
576
- var Be = Lt(function(e) {
576
+ var Be = Ct(function(e) {
577
577
  return function(r) {
578
578
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
579
579
  ` + r.map(function(n, i) {
@@ -582,7 +582,7 @@ var Be = Lt(function(e) {
582
582
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
583
583
  };
584
584
  });
585
- function Ue(e, t) {
585
+ function De(e, t) {
586
586
  if (e) {
587
587
  var r = e.indexOf(t);
588
588
  0 <= r && e.splice(r, 1);
@@ -600,7 +600,7 @@ var ye = function() {
600
600
  if (s)
601
601
  if (this._parentage = null, Array.isArray(s))
602
602
  try {
603
- for (var a = $e(s), h = a.next(); !h.done; h = a.next()) {
603
+ for (var a = Re(s), h = a.next(); !h.done; h = a.next()) {
604
604
  var u = h.value;
605
605
  u.remove(this);
606
606
  }
@@ -627,12 +627,12 @@ var ye = function() {
627
627
  if (f) {
628
628
  this._finalizers = null;
629
629
  try {
630
- for (var c = $e(f), p = c.next(); !p.done; p = c.next()) {
630
+ for (var c = Re(f), p = c.next(); !p.done; p = c.next()) {
631
631
  var d = p.value;
632
632
  try {
633
- nt(d);
633
+ st(d);
634
634
  } catch (v) {
635
- o = o != null ? o : [], v instanceof Be ? o = V(V([], Re(o)), Re(v.errors)) : o.push(v);
635
+ o = o != null ? o : [], v instanceof Be ? o = V(V([], Ue(o)), Ue(v.errors)) : o.push(v);
636
636
  }
637
637
  }
638
638
  } catch (v) {
@@ -653,7 +653,7 @@ var ye = function() {
653
653
  var r;
654
654
  if (t && t !== this)
655
655
  if (this.closed)
656
- nt(t);
656
+ st(t);
657
657
  else {
658
658
  if (t instanceof e) {
659
659
  if (t.closed || t._hasParent(this))
@@ -670,49 +670,53 @@ var ye = function() {
670
670
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
671
671
  }, e.prototype._removeParent = function(t) {
672
672
  var r = this._parentage;
673
- r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
673
+ r === t ? this._parentage = null : Array.isArray(r) && De(r, t);
674
674
  }, e.prototype.remove = function(t) {
675
675
  var r = this._finalizers;
676
- r && Ue(r, t), t instanceof e && t._removeParent(this);
676
+ r && De(r, t), t instanceof e && t._removeParent(this);
677
677
  }, e.EMPTY = function() {
678
678
  var t = new e();
679
679
  return t.closed = !0, t;
680
680
  }(), e;
681
- }(), Nt = ye.EMPTY;
682
- function Mt(e) {
681
+ }(), $t = ye.EMPTY;
682
+ function Rt(e) {
683
683
  return e instanceof ye || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
684
684
  }
685
- function nt(e) {
685
+ function st(e) {
686
686
  I(e) ? e() : e.unsubscribe();
687
687
  }
688
- var Gr = {
689
- Promise: void 0
690
- }, Dr = {
688
+ var Ut = {
689
+ onUnhandledError: null,
690
+ onStoppedNotification: null,
691
+ Promise: void 0,
692
+ useDeprecatedSynchronousErrorHandling: !1,
693
+ useDeprecatedNextContext: !1
694
+ }, kr = {
691
695
  setTimeout: function(e, t) {
692
696
  for (var r = [], n = 2; n < arguments.length; n++)
693
697
  r[n - 2] = arguments[n];
694
- return setTimeout.apply(void 0, V([e, t], Re(r)));
698
+ return setTimeout.apply(void 0, V([e, t], Ue(r)));
695
699
  },
696
700
  clearTimeout: function(e) {
697
701
  return clearTimeout(e);
698
702
  },
699
703
  delegate: void 0
700
704
  };
701
- function Fr(e) {
702
- Dr.setTimeout(function() {
705
+ function Vr(e) {
706
+ kr.setTimeout(function() {
703
707
  throw e;
704
708
  });
705
709
  }
706
- function it() {
710
+ function at() {
707
711
  }
708
712
  function fe(e) {
709
713
  e();
710
714
  }
711
- var Ct = function(e) {
715
+ var Dt = function(e) {
712
716
  L(t, e);
713
717
  function t(r) {
714
718
  var n = e.call(this) || this;
715
- return n.isStopped = !1, r ? (n.destination = r, Mt(r) && r.add(n)) : n.destination = Vr, n;
719
+ return n.isStopped = !1, r ? (n.destination = r, Rt(r) && r.add(n)) : n.destination = Zr, n;
716
720
  }
717
721
  return t.create = function(r, n, i) {
718
722
  return new Ge(r, n, i);
@@ -739,7 +743,11 @@ var Ct = function(e) {
739
743
  this.unsubscribe();
740
744
  }
741
745
  }, t;
742
- }(ye), jr = function() {
746
+ }(ye), Xr = Function.prototype.bind;
747
+ function we(e, t) {
748
+ return Xr.call(e, t);
749
+ }
750
+ var Wr = function() {
743
751
  function e(t) {
744
752
  this.partialObserver = t;
745
753
  }
@@ -774,39 +782,51 @@ var Ct = function(e) {
774
782
  L(t, e);
775
783
  function t(r, n, i) {
776
784
  var o = e.call(this) || this, s;
777
- return I(r) || !r ? s = {
778
- next: r != null ? r : void 0,
779
- error: n != null ? n : void 0,
780
- complete: i != null ? i : void 0
781
- } : s = r, o.destination = new jr(s), o;
785
+ if (I(r) || !r)
786
+ s = {
787
+ next: r != null ? r : void 0,
788
+ error: n != null ? n : void 0,
789
+ complete: i != null ? i : void 0
790
+ };
791
+ else {
792
+ var a;
793
+ o && Ut.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
794
+ return o.unsubscribe();
795
+ }, s = {
796
+ next: r.next && we(r.next, a),
797
+ error: r.error && we(r.error, a),
798
+ complete: r.complete && we(r.complete, a)
799
+ }) : s = r;
800
+ }
801
+ return o.destination = new Wr(s), o;
782
802
  }
783
803
  return t;
784
- }(Ct);
804
+ }(Dt);
785
805
  function he(e) {
786
- Fr(e);
806
+ Vr(e);
787
807
  }
788
- function kr(e) {
808
+ function zr(e) {
789
809
  throw e;
790
810
  }
791
- var Vr = {
811
+ var Zr = {
792
812
  closed: !0,
793
- next: it,
794
- error: kr,
795
- complete: it
796
- }, Xr = function() {
813
+ next: at,
814
+ error: zr,
815
+ complete: at
816
+ }, Qr = function() {
797
817
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
798
818
  }();
799
- function Wr(e) {
819
+ function Jr(e) {
800
820
  return e;
801
821
  }
802
- function zr(e) {
803
- return e.length === 0 ? Wr : e.length === 1 ? e[0] : function(r) {
822
+ function Yr(e) {
823
+ return e.length === 0 ? Jr : e.length === 1 ? e[0] : function(r) {
804
824
  return e.reduce(function(n, i) {
805
825
  return i(n);
806
826
  }, r);
807
827
  };
808
828
  }
809
- var ot = function() {
829
+ var ut = function() {
810
830
  function e(t) {
811
831
  t && (this._subscribe = t);
812
832
  }
@@ -814,7 +834,7 @@ var ot = function() {
814
834
  var r = new e();
815
835
  return r.source = this, r.operator = t, r;
816
836
  }, e.prototype.subscribe = function(t, r, n) {
817
- var i = this, o = Qr(t) ? t : new Ge(t, r, n);
837
+ var i = this, o = Kr(t) ? t : new Ge(t, r, n);
818
838
  return fe(function() {
819
839
  var s = i, a = s.operator, h = s.source;
820
840
  o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
@@ -827,7 +847,7 @@ var ot = function() {
827
847
  }
828
848
  }, e.prototype.forEach = function(t, r) {
829
849
  var n = this;
830
- return r = st(r), new r(function(i, o) {
850
+ return r = ht(r), new r(function(i, o) {
831
851
  var s = new Ge({
832
852
  next: function(a) {
833
853
  try {
@@ -844,15 +864,15 @@ var ot = function() {
844
864
  }, e.prototype._subscribe = function(t) {
845
865
  var r;
846
866
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
847
- }, e.prototype[Xr] = function() {
867
+ }, e.prototype[Qr] = function() {
848
868
  return this;
849
869
  }, e.prototype.pipe = function() {
850
870
  for (var t = [], r = 0; r < arguments.length; r++)
851
871
  t[r] = arguments[r];
852
- return zr(t)(this);
872
+ return Yr(t)(this);
853
873
  }, e.prototype.toPromise = function(t) {
854
874
  var r = this;
855
- return t = st(t), new t(function(n, i) {
875
+ return t = ht(t), new t(function(n, i) {
856
876
  var o;
857
877
  r.subscribe(function(s) {
858
878
  return o = s;
@@ -866,32 +886,32 @@ var ot = function() {
866
886
  return new e(t);
867
887
  }, e;
868
888
  }();
869
- function st(e) {
889
+ function ht(e) {
870
890
  var t;
871
- return (t = e != null ? e : Gr.Promise) !== null && t !== void 0 ? t : Promise;
891
+ return (t = e != null ? e : Ut.Promise) !== null && t !== void 0 ? t : Promise;
872
892
  }
873
- function Zr(e) {
893
+ function qr(e) {
874
894
  return e && I(e.next) && I(e.error) && I(e.complete);
875
895
  }
876
- function Qr(e) {
877
- return e && e instanceof Ct || Zr(e) && Mt(e);
896
+ function Kr(e) {
897
+ return e && e instanceof Dt || qr(e) && Rt(e);
878
898
  }
879
- var Jr = Lt(function(e) {
899
+ var en = Ct(function(e) {
880
900
  return function() {
881
901
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
882
902
  };
883
- }), $t = function(e) {
903
+ }), Gt = function(e) {
884
904
  L(t, e);
885
905
  function t() {
886
906
  var r = e.call(this) || this;
887
907
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
888
908
  }
889
909
  return t.prototype.lift = function(r) {
890
- var n = new at(this, this);
910
+ var n = new lt(this, this);
891
911
  return n.operator = r, n;
892
912
  }, t.prototype._throwIfClosed = function() {
893
913
  if (this.closed)
894
- throw new Jr();
914
+ throw new en();
895
915
  }, t.prototype.next = function(r) {
896
916
  var n = this;
897
917
  fe(function() {
@@ -899,7 +919,7 @@ var Jr = Lt(function(e) {
899
919
  if (n._throwIfClosed(), !n.isStopped) {
900
920
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
901
921
  try {
902
- for (var s = $e(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
922
+ for (var s = Re(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
903
923
  var h = a.value;
904
924
  h.next(r);
905
925
  }
@@ -948,19 +968,19 @@ var Jr = Lt(function(e) {
948
968
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
949
969
  }, t.prototype._innerSubscribe = function(r) {
950
970
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
951
- return o || s ? Nt : (this.currentObservers = null, a.push(r), new ye(function() {
952
- n.currentObservers = null, Ue(a, r);
971
+ return o || s ? $t : (this.currentObservers = null, a.push(r), new ye(function() {
972
+ n.currentObservers = null, De(a, r);
953
973
  }));
954
974
  }, t.prototype._checkFinalizedStatuses = function(r) {
955
975
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
956
976
  i ? r.error(o) : s && r.complete();
957
977
  }, t.prototype.asObservable = function() {
958
- var r = new ot();
978
+ var r = new ut();
959
979
  return r.source = this, r;
960
980
  }, t.create = function(r, n) {
961
- return new at(r, n);
981
+ return new lt(r, n);
962
982
  }, t;
963
- }(ot), at = function(e) {
983
+ }(ut), lt = function(e) {
964
984
  L(t, e);
965
985
  function t(r, n) {
966
986
  var i = e.call(this) || this;
@@ -977,17 +997,17 @@ var Jr = Lt(function(e) {
977
997
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
978
998
  }, t.prototype._subscribe = function(r) {
979
999
  var n, i;
980
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Nt;
1000
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : $t;
981
1001
  }, t;
982
- }($t), Rt = {
1002
+ }(Gt), Ft = {
983
1003
  now: function() {
984
- return (Rt.delegate || Date).now();
1004
+ return (Ft.delegate || Date).now();
985
1005
  },
986
1006
  delegate: void 0
987
- }, Yr = function(e) {
1007
+ }, tn = function(e) {
988
1008
  L(t, e);
989
1009
  function t(r, n, i) {
990
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Rt);
1010
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ft);
991
1011
  var o = e.call(this) || this;
992
1012
  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;
993
1013
  }
@@ -1007,24 +1027,24 @@ var Jr = Lt(function(e) {
1007
1027
  u && o.splice(0, u + 1);
1008
1028
  }
1009
1029
  }, t;
1010
- }($t);
1011
- const ut = [], ht = {}, qr = (e, t = 0) => {
1012
- if (ut.indexOf(e) == -1) {
1013
- const r = new Yr(t);
1014
- ht[e] = r, ut.push(e);
1030
+ }(Gt);
1031
+ const ct = [], ft = {}, rn = (e, t = 0) => {
1032
+ if (ct.indexOf(e) == -1) {
1033
+ const r = new tn(t);
1034
+ ft[e] = r, ct.push(e);
1015
1035
  }
1016
- return ht[e];
1036
+ return ft[e];
1017
1037
  }, F = [];
1018
- function Kr(e, t) {
1038
+ function nn(e, t) {
1019
1039
  return {
1020
1040
  subscribe: ve(e, t).subscribe
1021
1041
  };
1022
1042
  }
1023
- function ve(e, t = A) {
1043
+ function ve(e, t = w) {
1024
1044
  let r;
1025
1045
  const n = /* @__PURE__ */ new Set();
1026
1046
  function i(a) {
1027
- if (At(e, a) && (e = a, r)) {
1047
+ if (Ot(e, a) && (e = a, r)) {
1028
1048
  const h = !F.length;
1029
1049
  for (const u of n)
1030
1050
  u[1](), F.push(u, e);
@@ -1038,9 +1058,9 @@ function ve(e, t = A) {
1038
1058
  function o(a) {
1039
1059
  i(a(e));
1040
1060
  }
1041
- function s(a, h = A) {
1061
+ function s(a, h = w) {
1042
1062
  const u = [a, h];
1043
- return n.add(u), n.size === 1 && (r = t(i, o) || A), a(e), () => {
1063
+ return n.add(u), n.size === 1 && (r = t(i, o) || w), a(e), () => {
1044
1064
  n.delete(u), n.size === 0 && r && (r(), r = null);
1045
1065
  };
1046
1066
  }
@@ -1051,18 +1071,18 @@ function J(e, t, r) {
1051
1071
  if (!i.every(Boolean))
1052
1072
  throw new Error("derived() expects stores as input, got a falsy value");
1053
1073
  const o = t.length < 2;
1054
- return Kr(r, (s, a) => {
1074
+ return nn(r, (s, a) => {
1055
1075
  let h = !1;
1056
1076
  const u = [];
1057
- let l = 0, f = A;
1077
+ let l = 0, f = w;
1058
1078
  const c = () => {
1059
1079
  if (l)
1060
1080
  return;
1061
1081
  f();
1062
1082
  const d = t(n ? u[0] : u, s, a);
1063
- o ? s(d) : f = Ze(d) ? d : A;
1083
+ o ? s(d) : f = Qe(d) ? d : w;
1064
1084
  }, p = i.map(
1065
- (d, v) => wt(
1085
+ (d, v) => It(
1066
1086
  d,
1067
1087
  (B) => {
1068
1088
  u[v] = B, l &= ~(1 << v), h && c();
@@ -1077,70 +1097,70 @@ function J(e, t, r) {
1077
1097
  };
1078
1098
  });
1079
1099
  }
1080
- function en(e) {
1100
+ function on(e) {
1081
1101
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1082
1102
  }
1083
- var tn = function(t) {
1084
- return rn(t) && !nn(t);
1103
+ var sn = function(t) {
1104
+ return an(t) && !un(t);
1085
1105
  };
1086
- function rn(e) {
1106
+ function an(e) {
1087
1107
  return !!e && typeof e == "object";
1088
1108
  }
1089
- function nn(e) {
1109
+ function un(e) {
1090
1110
  var t = Object.prototype.toString.call(e);
1091
- return t === "[object RegExp]" || t === "[object Date]" || an(e);
1111
+ return t === "[object RegExp]" || t === "[object Date]" || cn(e);
1092
1112
  }
1093
- var on = typeof Symbol == "function" && Symbol.for, sn = on ? Symbol.for("react.element") : 60103;
1094
- function an(e) {
1095
- return e.$$typeof === sn;
1113
+ var hn = typeof Symbol == "function" && Symbol.for, ln = hn ? Symbol.for("react.element") : 60103;
1114
+ function cn(e) {
1115
+ return e.$$typeof === ln;
1096
1116
  }
1097
- function un(e) {
1117
+ function fn(e) {
1098
1118
  return Array.isArray(e) ? [] : {};
1099
1119
  }
1100
1120
  function ne(e, t) {
1101
- return t.clone !== !1 && t.isMergeableObject(e) ? X(un(e), e, t) : e;
1121
+ return t.clone !== !1 && t.isMergeableObject(e) ? X(fn(e), e, t) : e;
1102
1122
  }
1103
- function hn(e, t, r) {
1123
+ function pn(e, t, r) {
1104
1124
  return e.concat(t).map(function(n) {
1105
1125
  return ne(n, r);
1106
1126
  });
1107
1127
  }
1108
- function ln(e, t) {
1128
+ function dn(e, t) {
1109
1129
  if (!t.customMerge)
1110
1130
  return X;
1111
1131
  var r = t.customMerge(e);
1112
1132
  return typeof r == "function" ? r : X;
1113
1133
  }
1114
- function cn(e) {
1134
+ function mn(e) {
1115
1135
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1116
1136
  return Object.propertyIsEnumerable.call(e, t);
1117
1137
  }) : [];
1118
1138
  }
1119
- function lt(e) {
1120
- return Object.keys(e).concat(cn(e));
1139
+ function pt(e) {
1140
+ return Object.keys(e).concat(mn(e));
1121
1141
  }
1122
- function Ut(e, t) {
1142
+ function jt(e, t) {
1123
1143
  try {
1124
1144
  return t in e;
1125
1145
  } catch (r) {
1126
1146
  return !1;
1127
1147
  }
1128
1148
  }
1129
- function fn(e, t) {
1130
- return Ut(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1149
+ function bn(e, t) {
1150
+ return jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1131
1151
  }
1132
- function pn(e, t, r) {
1152
+ function gn(e, t, r) {
1133
1153
  var n = {};
1134
- return r.isMergeableObject(e) && lt(e).forEach(function(i) {
1154
+ return r.isMergeableObject(e) && pt(e).forEach(function(i) {
1135
1155
  n[i] = ne(e[i], r);
1136
- }), lt(t).forEach(function(i) {
1137
- fn(e, i) || (Ut(e, i) && r.isMergeableObject(t[i]) ? n[i] = ln(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
1156
+ }), pt(t).forEach(function(i) {
1157
+ bn(e, i) || (jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = dn(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
1138
1158
  }), n;
1139
1159
  }
1140
1160
  function X(e, t, r) {
1141
- r = r || {}, r.arrayMerge = r.arrayMerge || hn, r.isMergeableObject = r.isMergeableObject || tn, r.cloneUnlessOtherwiseSpecified = ne;
1161
+ r = r || {}, r.arrayMerge = r.arrayMerge || pn, r.isMergeableObject = r.isMergeableObject || sn, r.cloneUnlessOtherwiseSpecified = ne;
1142
1162
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1143
- return o ? n ? r.arrayMerge(e, t, r) : pn(e, t, r) : ne(t, r);
1163
+ return o ? n ? r.arrayMerge(e, t, r) : gn(e, t, r) : ne(t, r);
1144
1164
  }
1145
1165
  X.all = function(t, r) {
1146
1166
  if (!Array.isArray(t))
@@ -1149,105 +1169,107 @@ X.all = function(t, r) {
1149
1169
  return X(n, i, r);
1150
1170
  }, {});
1151
1171
  };
1152
- var dn = X, mn = dn;
1153
- const bn = /* @__PURE__ */ en(mn);
1172
+ var yn = X, vn = yn;
1173
+ const En = /* @__PURE__ */ on(vn);
1154
1174
  function Ae(e, t) {
1155
- var r = t && t.cache ? t.cache : Sn, n = t && t.serializer ? t.serializer : xn, i = t && t.strategy ? t.strategy : vn;
1175
+ var r = t && t.cache ? t.cache : Bn, n = t && t.serializer ? t.serializer : Hn, i = t && t.strategy ? t.strategy : xn;
1156
1176
  return i(e, {
1157
1177
  cache: r,
1158
1178
  serializer: n
1159
1179
  });
1160
1180
  }
1161
- function gn(e) {
1181
+ function _n(e) {
1162
1182
  return e == null || typeof e == "number" || typeof e == "boolean";
1163
1183
  }
1164
- function yn(e, t, r, n) {
1165
- var i = gn(n) ? n : r(n), o = t.get(i);
1184
+ function kt(e, t, r, n) {
1185
+ var i = _n(n) ? n : r(n), o = t.get(i);
1166
1186
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1167
1187
  }
1168
- function Gt(e, t, r) {
1188
+ function Vt(e, t, r) {
1169
1189
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1170
1190
  return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
1171
1191
  }
1172
- function Dt(e, t, r, n, i) {
1192
+ function Je(e, t, r, n, i) {
1173
1193
  return r.bind(t, e, n, i);
1174
1194
  }
1175
- function vn(e, t) {
1176
- var r = e.length === 1 ? yn : Gt;
1177
- return Dt(e, this, r, t.cache.create(), t.serializer);
1195
+ function xn(e, t) {
1196
+ var r = e.length === 1 ? kt : Vt;
1197
+ return Je(e, this, r, t.cache.create(), t.serializer);
1198
+ }
1199
+ function Sn(e, t) {
1200
+ return Je(e, this, Vt, t.cache.create(), t.serializer);
1178
1201
  }
1179
- function _n(e, t) {
1180
- return Dt(e, this, Gt, t.cache.create(), t.serializer);
1202
+ function Tn(e, t) {
1203
+ return Je(e, this, kt, t.cache.create(), t.serializer);
1181
1204
  }
1182
- var xn = function() {
1205
+ var Hn = function() {
1183
1206
  return JSON.stringify(arguments);
1184
- }, En = (
1185
- /** @class */
1186
- function() {
1187
- function e() {
1188
- this.cache = /* @__PURE__ */ Object.create(null);
1189
- }
1190
- return e.prototype.get = function(t) {
1191
- return this.cache[t];
1192
- }, e.prototype.set = function(t, r) {
1193
- this.cache[t] = r;
1194
- }, e;
1195
- }()
1196
- ), Sn = {
1207
+ };
1208
+ function Ye() {
1209
+ this.cache = /* @__PURE__ */ Object.create(null);
1210
+ }
1211
+ Ye.prototype.get = function(e) {
1212
+ return this.cache[e];
1213
+ };
1214
+ Ye.prototype.set = function(e, t) {
1215
+ this.cache[e] = t;
1216
+ };
1217
+ var Bn = {
1197
1218
  create: function() {
1198
- return new En();
1219
+ return new Ye();
1199
1220
  }
1200
- }, we = {
1201
- variadic: _n
1221
+ }, Pe = {
1222
+ variadic: Sn,
1223
+ monadic: Tn
1202
1224
  }, m;
1203
1225
  (function(e) {
1204
1226
  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";
1205
1227
  })(m || (m = {}));
1206
- var _;
1228
+ var E;
1207
1229
  (function(e) {
1208
1230
  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";
1209
- })(_ || (_ = {}));
1231
+ })(E || (E = {}));
1210
1232
  var W;
1211
1233
  (function(e) {
1212
1234
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1213
1235
  })(W || (W = {}));
1214
- function ct(e) {
1215
- return e.type === _.literal;
1236
+ function dt(e) {
1237
+ return e.type === E.literal;
1216
1238
  }
1217
- function Tn(e) {
1218
- return e.type === _.argument;
1239
+ function wn(e) {
1240
+ return e.type === E.argument;
1219
1241
  }
1220
- function Ft(e) {
1221
- return e.type === _.number;
1242
+ function Xt(e) {
1243
+ return e.type === E.number;
1222
1244
  }
1223
- function jt(e) {
1224
- return e.type === _.date;
1245
+ function Wt(e) {
1246
+ return e.type === E.date;
1225
1247
  }
1226
- function kt(e) {
1227
- return e.type === _.time;
1248
+ function zt(e) {
1249
+ return e.type === E.time;
1228
1250
  }
1229
- function Vt(e) {
1230
- return e.type === _.select;
1251
+ function Zt(e) {
1252
+ return e.type === E.select;
1231
1253
  }
1232
- function Xt(e) {
1233
- return e.type === _.plural;
1254
+ function Qt(e) {
1255
+ return e.type === E.plural;
1234
1256
  }
1235
- function Hn(e) {
1236
- return e.type === _.pound;
1257
+ function An(e) {
1258
+ return e.type === E.pound;
1237
1259
  }
1238
- function Wt(e) {
1239
- return e.type === _.tag;
1260
+ function Jt(e) {
1261
+ return e.type === E.tag;
1240
1262
  }
1241
- function zt(e) {
1263
+ function Yt(e) {
1242
1264
  return !!(e && typeof e == "object" && e.type === W.number);
1243
1265
  }
1244
- function De(e) {
1266
+ function Fe(e) {
1245
1267
  return !!(e && typeof e == "object" && e.type === W.dateTime);
1246
1268
  }
1247
- var Zt = /[ \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;
1248
- function An(e) {
1269
+ var qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pn = /(?:[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;
1270
+ function On(e) {
1249
1271
  var t = {};
1250
- return e.replace(Bn, function(r) {
1272
+ return e.replace(Pn, function(r) {
1251
1273
  var n = r.length;
1252
1274
  switch (r[0]) {
1253
1275
  case "G":
@@ -1336,11 +1358,11 @@ function An(e) {
1336
1358
  return "";
1337
1359
  }), t;
1338
1360
  }
1339
- var wn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1340
- function Pn(e) {
1361
+ var In = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1362
+ function Ln(e) {
1341
1363
  if (e.length === 0)
1342
1364
  throw new Error("Number skeleton cannot be empty");
1343
- for (var t = e.split(wn).filter(function(c) {
1365
+ for (var t = e.split(In).filter(function(c) {
1344
1366
  return c.length > 0;
1345
1367
  }), r = [], n = 0, i = t; n < i.length; n++) {
1346
1368
  var o = i[n], s = o.split("/");
@@ -1355,17 +1377,17 @@ function Pn(e) {
1355
1377
  }
1356
1378
  return r;
1357
1379
  }
1358
- function On(e) {
1380
+ function Nn(e) {
1359
1381
  return e.replace(/^(.*?)-/, "");
1360
1382
  }
1361
- var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qt = /^(@+)?(\+|#+)?[rs]?$/g, In = /(\*)(0+)|(#+)(0+)|(0+)/g, Jt = /^(0+)$/;
1362
- function pt(e) {
1383
+ var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kt = /^(@+)?(\+|#+)?[rs]?$/g, Mn = /(\*)(0+)|(#+)(0+)|(0+)/g, er = /^(0+)$/;
1384
+ function bt(e) {
1363
1385
  var t = {};
1364
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qt, function(r, n, i) {
1386
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Kt, function(r, n, i) {
1365
1387
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1366
1388
  }), t;
1367
1389
  }
1368
- function Yt(e) {
1390
+ function tr(e) {
1369
1391
  switch (e) {
1370
1392
  case "sign-auto":
1371
1393
  return {
@@ -1405,7 +1427,7 @@ function Yt(e) {
1405
1427
  };
1406
1428
  }
1407
1429
  }
1408
- function Ln(e) {
1430
+ function Cn(e) {
1409
1431
  var t;
1410
1432
  if (e[0] === "E" && e[1] === "E" ? (t = {
1411
1433
  notation: "engineering"
@@ -1413,17 +1435,17 @@ function Ln(e) {
1413
1435
  notation: "scientific"
1414
1436
  }, e = e.slice(1)), t) {
1415
1437
  var r = e.slice(0, 2);
1416
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jt.test(e))
1438
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !er.test(e))
1417
1439
  throw new Error("Malformed concise eng/scientific notation");
1418
1440
  t.minimumIntegerDigits = e.length;
1419
1441
  }
1420
1442
  return t;
1421
1443
  }
1422
- function dt(e) {
1423
- var t = {}, r = Yt(e);
1444
+ function gt(e) {
1445
+ var t = {}, r = tr(e);
1424
1446
  return r || t;
1425
1447
  }
1426
- function Nn(e) {
1448
+ function $n(e) {
1427
1449
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1428
1450
  var i = n[r];
1429
1451
  switch (i.stem) {
@@ -1447,7 +1469,7 @@ function Nn(e) {
1447
1469
  continue;
1448
1470
  case "measure-unit":
1449
1471
  case "unit":
1450
- t.style = "unit", t.unit = On(i.options[0]);
1472
+ t.style = "unit", t.unit = Nn(i.options[0]);
1451
1473
  continue;
1452
1474
  case "compact-short":
1453
1475
  case "K":
@@ -1459,12 +1481,12 @@ function Nn(e) {
1459
1481
  continue;
1460
1482
  case "scientific":
1461
1483
  t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1462
- return g(g({}, h), dt(u));
1484
+ return g(g({}, h), gt(u));
1463
1485
  }, {}));
1464
1486
  continue;
1465
1487
  case "engineering":
1466
1488
  t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1467
- return g(g({}, h), dt(u));
1489
+ return g(g({}, h), gt(u));
1468
1490
  }, {}));
1469
1491
  continue;
1470
1492
  case "notation-simple":
@@ -1509,7 +1531,7 @@ function Nn(e) {
1509
1531
  case "integer-width":
1510
1532
  if (i.options.length > 1)
1511
1533
  throw new RangeError("integer-width stems only accept a single optional option");
1512
- i.options[0].replace(In, function(h, u, l, f, c, p) {
1534
+ i.options[0].replace(Mn, function(h, u, l, f, c, p) {
1513
1535
  if (u)
1514
1536
  t.minimumIntegerDigits = l.length;
1515
1537
  else {
@@ -1522,27 +1544,27 @@ function Nn(e) {
1522
1544
  });
1523
1545
  continue;
1524
1546
  }
1525
- if (Jt.test(i.stem)) {
1547
+ if (er.test(i.stem)) {
1526
1548
  t.minimumIntegerDigits = i.stem.length;
1527
1549
  continue;
1528
1550
  }
1529
- if (ft.test(i.stem)) {
1551
+ if (mt.test(i.stem)) {
1530
1552
  if (i.options.length > 1)
1531
1553
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1532
- i.stem.replace(ft, function(h, u, l, f, c, p) {
1554
+ i.stem.replace(mt, function(h, u, l, f, c, p) {
1533
1555
  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), "";
1534
1556
  });
1535
1557
  var o = i.options[0];
1536
- o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), pt(o)));
1558
+ o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), bt(o)));
1537
1559
  continue;
1538
1560
  }
1539
- if (Qt.test(i.stem)) {
1540
- t = g(g({}, t), pt(i.stem));
1561
+ if (Kt.test(i.stem)) {
1562
+ t = g(g({}, t), bt(i.stem));
1541
1563
  continue;
1542
1564
  }
1543
- var s = Yt(i.stem);
1565
+ var s = tr(i.stem);
1544
1566
  s && (t = g(g({}, t), s));
1545
- var a = Ln(i.stem);
1567
+ var a = Cn(i.stem);
1546
1568
  a && (t = g(g({}, t), a));
1547
1569
  }
1548
1570
  return t;
@@ -2962,13 +2984,13 @@ var le = {
2962
2984
  "h"
2963
2985
  ]
2964
2986
  };
2965
- function Mn(e, t) {
2987
+ function Rn(e, t) {
2966
2988
  for (var r = "", n = 0; n < e.length; n++) {
2967
2989
  var i = e.charAt(n);
2968
2990
  if (i === "j") {
2969
2991
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2970
2992
  o++, n++;
2971
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Cn(t);
2993
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Un(t);
2972
2994
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2973
2995
  r += h;
2974
2996
  for (; s-- > 0; )
@@ -2978,7 +3000,7 @@ function Mn(e, t) {
2978
3000
  }
2979
3001
  return r;
2980
3002
  }
2981
- function Cn(e) {
3003
+ function Un(e) {
2982
3004
  var t = e.hourCycle;
2983
3005
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2984
3006
  e.hourCycles && // @ts-ignore
@@ -3000,20 +3022,20 @@ function Cn(e) {
3000
3022
  var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
3001
3023
  return i[0];
3002
3024
  }
3003
- var Pe, $n = new RegExp("^".concat(Zt.source, "*")), Rn = new RegExp("".concat(Zt.source, "*$"));
3025
+ var Oe, Dn = new RegExp("^".concat(qt.source, "*")), Gn = new RegExp("".concat(qt.source, "*$"));
3004
3026
  function b(e, t) {
3005
3027
  return { start: e, end: t };
3006
3028
  }
3007
- var Un = !!String.prototype.startsWith && "_a".startsWith("a", 1), Gn = !!String.fromCodePoint, Dn = !!Object.fromEntries, Fn = !!String.prototype.codePointAt, jn = !!String.prototype.trimStart, kn = !!String.prototype.trimEnd, Vn = !!Number.isSafeInteger, Xn = Vn ? Number.isSafeInteger : function(e) {
3029
+ var Fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), jn = !!String.fromCodePoint, kn = !!Object.fromEntries, Vn = !!String.prototype.codePointAt, Xn = !!String.prototype.trimStart, Wn = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, Zn = zn ? Number.isSafeInteger : function(e) {
3008
3030
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3009
- }, Fe = !0;
3031
+ }, je = !0;
3010
3032
  try {
3011
- var Wn = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3012
- Fe = ((Pe = Wn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
3033
+ var Qn = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3034
+ je = ((Oe = Qn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
3013
3035
  } catch (e) {
3014
- Fe = !1;
3036
+ je = !1;
3015
3037
  }
3016
- var mt = Un ? (
3038
+ var yt = Fn ? (
3017
3039
  // Native
3018
3040
  function(t, r, n) {
3019
3041
  return t.startsWith(r, n);
@@ -3023,7 +3045,7 @@ var mt = Un ? (
3023
3045
  function(t, r, n) {
3024
3046
  return t.slice(n, n + r.length) === r;
3025
3047
  }
3026
- ), je = Gn ? String.fromCodePoint : (
3048
+ ), ke = jn ? String.fromCodePoint : (
3027
3049
  // IE11
3028
3050
  function() {
3029
3051
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3035,9 +3057,9 @@ var mt = Un ? (
3035
3057
  }
3036
3058
  return n;
3037
3059
  }
3038
- ), bt = (
3060
+ ), vt = (
3039
3061
  // native
3040
- Dn ? Object.fromEntries : (
3062
+ kn ? Object.fromEntries : (
3041
3063
  // Ponyfill
3042
3064
  function(t) {
3043
3065
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3047,7 +3069,7 @@ var mt = Un ? (
3047
3069
  return r;
3048
3070
  }
3049
3071
  )
3050
- ), qt = Fn ? (
3072
+ ), rr = Vn ? (
3051
3073
  // Native
3052
3074
  function(t, r) {
3053
3075
  return t.codePointAt(r);
@@ -3061,7 +3083,7 @@ var mt = Un ? (
3061
3083
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3062
3084
  }
3063
3085
  }
3064
- ), zn = jn ? (
3086
+ ), Jn = Xn ? (
3065
3087
  // Native
3066
3088
  function(t) {
3067
3089
  return t.trimStart();
@@ -3069,9 +3091,9 @@ var mt = Un ? (
3069
3091
  ) : (
3070
3092
  // Ponyfill
3071
3093
  function(t) {
3072
- return t.replace($n, "");
3094
+ return t.replace(Dn, "");
3073
3095
  }
3074
- ), Zn = kn ? (
3096
+ ), Yn = Wn ? (
3075
3097
  // Native
3076
3098
  function(t) {
3077
3099
  return t.trimEnd();
@@ -3079,32 +3101,32 @@ var mt = Un ? (
3079
3101
  ) : (
3080
3102
  // Ponyfill
3081
3103
  function(t) {
3082
- return t.replace(Rn, "");
3104
+ return t.replace(Gn, "");
3083
3105
  }
3084
3106
  );
3085
- function Kt(e, t) {
3107
+ function nr(e, t) {
3086
3108
  return new RegExp(e, t);
3087
3109
  }
3088
- var ke;
3089
- if (Fe) {
3090
- var gt = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3091
- ke = function(t, r) {
3110
+ var Ve;
3111
+ if (je) {
3112
+ var Et = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3113
+ Ve = function(t, r) {
3092
3114
  var n;
3093
- gt.lastIndex = r;
3094
- var i = gt.exec(t);
3115
+ Et.lastIndex = r;
3116
+ var i = Et.exec(t);
3095
3117
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3096
3118
  };
3097
3119
  } else
3098
- ke = function(t, r) {
3120
+ Ve = function(t, r) {
3099
3121
  for (var n = []; ; ) {
3100
- var i = qt(t, r);
3101
- if (i === void 0 || er(i) || qn(i))
3122
+ var i = rr(t, r);
3123
+ if (i === void 0 || ir(i) || ti(i))
3102
3124
  break;
3103
3125
  n.push(i), r += i >= 65536 ? 2 : 1;
3104
3126
  }
3105
- return je.apply(void 0, n);
3127
+ return ke.apply(void 0, n);
3106
3128
  };
3107
- var Qn = (
3129
+ var qn = (
3108
3130
  /** @class */
3109
3131
  function() {
3110
3132
  function e(t, r) {
@@ -3128,14 +3150,14 @@ var Qn = (
3128
3150
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3129
3151
  var a = this.clonePosition();
3130
3152
  this.bump(), i.push({
3131
- type: _.pound,
3153
+ type: E.pound,
3132
3154
  location: b(a, this.clonePosition())
3133
3155
  });
3134
3156
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3135
3157
  if (n)
3136
3158
  break;
3137
3159
  return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
3138
- } else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
3160
+ } else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
3139
3161
  var s = this.parseTag(t, r);
3140
3162
  if (s.err)
3141
3163
  return s;
@@ -3156,7 +3178,7 @@ var Qn = (
3156
3178
  if (this.bumpSpace(), this.bumpIf("/>"))
3157
3179
  return {
3158
3180
  val: {
3159
- type: _.literal,
3181
+ type: E.literal,
3160
3182
  value: "<".concat(i, "/>"),
3161
3183
  location: b(n, this.clonePosition())
3162
3184
  },
@@ -3168,12 +3190,12 @@ var Qn = (
3168
3190
  return o;
3169
3191
  var s = o.val, a = this.clonePosition();
3170
3192
  if (this.bumpIf("</")) {
3171
- if (this.isEOF() || !Ve(this.char()))
3193
+ if (this.isEOF() || !Xe(this.char()))
3172
3194
  return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
3173
3195
  var h = this.clonePosition(), u = this.parseTagName();
3174
3196
  return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3175
3197
  val: {
3176
- type: _.tag,
3198
+ type: E.tag,
3177
3199
  value: i,
3178
3200
  children: s,
3179
3201
  location: b(n, this.clonePosition())
@@ -3186,7 +3208,7 @@ var Qn = (
3186
3208
  return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
3187
3209
  }, e.prototype.parseTagName = function() {
3188
3210
  var t = this.offset();
3189
- for (this.bump(); !this.isEOF() && Yn(this.char()); )
3211
+ for (this.bump(); !this.isEOF() && ei(this.char()); )
3190
3212
  this.bump();
3191
3213
  return this.message.slice(t, this.offset());
3192
3214
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3210,12 +3232,12 @@ var Qn = (
3210
3232
  }
3211
3233
  var h = b(n, this.clonePosition());
3212
3234
  return {
3213
- val: { type: _.literal, value: i, location: h },
3235
+ val: { type: E.literal, value: i, location: h },
3214
3236
  err: null
3215
3237
  };
3216
3238
  }, e.prototype.tryParseLeftAngleBracket = function() {
3217
3239
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3218
- !Jn(this.peek() || 0)) ? (this.bump(), "<") : null;
3240
+ !Kn(this.peek() || 0)) ? (this.bump(), "<") : null;
3219
3241
  }, e.prototype.tryParseQuote = function(t) {
3220
3242
  if (this.isEOF() || this.char() !== 39)
3221
3243
  return null;
@@ -3249,12 +3271,12 @@ var Qn = (
3249
3271
  r.push(n);
3250
3272
  this.bump();
3251
3273
  }
3252
- return je.apply(void 0, r);
3274
+ return ke.apply(void 0, r);
3253
3275
  }, e.prototype.tryParseUnquoted = function(t, r) {
3254
3276
  if (this.isEOF())
3255
3277
  return null;
3256
3278
  var n = this.char();
3257
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
3279
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
3258
3280
  }, e.prototype.parseArgument = function(t, r) {
3259
3281
  var n = this.clonePosition();
3260
3282
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3270,7 +3292,7 @@ var Qn = (
3270
3292
  case 125:
3271
3293
  return this.bump(), {
3272
3294
  val: {
3273
- type: _.argument,
3295
+ type: E.argument,
3274
3296
  // value does not include the opening and closing braces.
3275
3297
  value: i,
3276
3298
  location: b(n, this.clonePosition())
@@ -3283,7 +3305,7 @@ var Qn = (
3283
3305
  return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
3284
3306
  }
3285
3307
  }, e.prototype.parseIdentifierIfPossible = function() {
3286
- var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
3308
+ var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
3287
3309
  this.bumpTo(i);
3288
3310
  var o = this.clonePosition(), s = b(t, o);
3289
3311
  return { value: n, location: s };
@@ -3302,7 +3324,7 @@ var Qn = (
3302
3324
  var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3303
3325
  if (f.err)
3304
3326
  return f;
3305
- var c = Zn(f.val);
3327
+ var c = Yn(f.val);
3306
3328
  if (c.length === 0)
3307
3329
  return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
3308
3330
  var p = b(l, this.clonePosition());
@@ -3312,25 +3334,25 @@ var Qn = (
3312
3334
  if (d.err)
3313
3335
  return d;
3314
3336
  var v = b(i, this.clonePosition());
3315
- if (u && mt(u == null ? void 0 : u.style, "::", 0)) {
3316
- var B = zn(u.style.slice(2));
3337
+ if (u && yt(u == null ? void 0 : u.style, "::", 0)) {
3338
+ var B = Jn(u.style.slice(2));
3317
3339
  if (a === "number") {
3318
3340
  var f = this.parseNumberSkeletonFromString(B, u.styleLocation);
3319
3341
  return f.err ? f : {
3320
- val: { type: _.number, value: n, location: v, style: f.val },
3342
+ val: { type: E.number, value: n, location: v, style: f.val },
3321
3343
  err: null
3322
3344
  };
3323
3345
  } else {
3324
3346
  if (B.length === 0)
3325
3347
  return this.error(m.EXPECT_DATE_TIME_SKELETON, v);
3326
3348
  var $ = B;
3327
- this.locale && ($ = Mn(B, this.locale));
3349
+ this.locale && ($ = Rn(B, this.locale));
3328
3350
  var c = {
3329
3351
  type: W.dateTime,
3330
3352
  pattern: $,
3331
3353
  location: u.styleLocation,
3332
- parsedOptions: this.shouldParseSkeletons ? An($) : {}
3333
- }, N = a === "date" ? _.date : _.time;
3354
+ parsedOptions: this.shouldParseSkeletons ? On($) : {}
3355
+ }, N = a === "date" ? E.date : E.time;
3334
3356
  return {
3335
3357
  val: { type: N, value: n, location: v, style: c },
3336
3358
  err: null
@@ -3339,7 +3361,7 @@ var Qn = (
3339
3361
  }
3340
3362
  return {
3341
3363
  val: {
3342
- type: a === "number" ? _.number : a === "date" ? _.date : _.time,
3364
+ type: a === "number" ? E.number : a === "date" ? E.date : E.time,
3343
3365
  value: n,
3344
3366
  location: v,
3345
3367
  style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
@@ -3350,9 +3372,9 @@ var Qn = (
3350
3372
  case "plural":
3351
3373
  case "selectordinal":
3352
3374
  case "select": {
3353
- var E = this.clonePosition();
3375
+ var x = this.clonePosition();
3354
3376
  if (this.bumpSpace(), !this.bumpIf(","))
3355
- return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(E, g({}, E)));
3377
+ return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(x, g({}, x)));
3356
3378
  this.bumpSpace();
3357
3379
  var R = this.parseIdentifierIfPossible(), P = 0;
3358
3380
  if (a !== "select" && R.value === "offset") {
@@ -3364,26 +3386,26 @@ var Qn = (
3364
3386
  return f;
3365
3387
  this.bumpSpace(), R = this.parseIdentifierIfPossible(), P = f.val;
3366
3388
  }
3367
- var G = this.tryParsePluralOrSelectOptions(t, a, r, R);
3368
- if (G.err)
3369
- return G;
3389
+ var D = this.tryParsePluralOrSelectOptions(t, a, r, R);
3390
+ if (D.err)
3391
+ return D;
3370
3392
  var d = this.tryParseArgumentClose(i);
3371
3393
  if (d.err)
3372
3394
  return d;
3373
3395
  var ue = b(i, this.clonePosition());
3374
3396
  return a === "select" ? {
3375
3397
  val: {
3376
- type: _.select,
3398
+ type: E.select,
3377
3399
  value: n,
3378
- options: bt(G.val),
3400
+ options: vt(D.val),
3379
3401
  location: ue
3380
3402
  },
3381
3403
  err: null
3382
3404
  } : {
3383
3405
  val: {
3384
- type: _.plural,
3406
+ type: E.plural,
3385
3407
  value: n,
3386
- options: bt(G.val),
3408
+ options: vt(D.val),
3387
3409
  offset: P,
3388
3410
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3389
3411
  location: ue
@@ -3434,7 +3456,7 @@ var Qn = (
3434
3456
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3435
3457
  var n = [];
3436
3458
  try {
3437
- n = Pn(t);
3459
+ n = Ln(t);
3438
3460
  } catch (i) {
3439
3461
  return this.error(m.INVALID_NUMBER_SKELETON, r);
3440
3462
  }
@@ -3443,7 +3465,7 @@ var Qn = (
3443
3465
  type: W.number,
3444
3466
  tokens: n,
3445
3467
  location: r,
3446
- parsedOptions: this.shouldParseSkeletons ? Nn(n) : {}
3468
+ parsedOptions: this.shouldParseSkeletons ? $n(n) : {}
3447
3469
  },
3448
3470
  err: null
3449
3471
  };
@@ -3491,7 +3513,7 @@ var Qn = (
3491
3513
  break;
3492
3514
  }
3493
3515
  var h = b(i, this.clonePosition());
3494
- return o ? (s *= n, Xn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3516
+ return o ? (s *= n, Zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3495
3517
  }, e.prototype.offset = function() {
3496
3518
  return this.position.offset;
3497
3519
  }, e.prototype.isEOF = function() {
@@ -3506,7 +3528,7 @@ var Qn = (
3506
3528
  var t = this.position.offset;
3507
3529
  if (t >= this.message.length)
3508
3530
  throw Error("out of bound");
3509
- var r = qt(this.message, t);
3531
+ var r = rr(this.message, t);
3510
3532
  if (r === void 0)
3511
3533
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3512
3534
  return r;
@@ -3525,7 +3547,7 @@ var Qn = (
3525
3547
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3526
3548
  }
3527
3549
  }, e.prototype.bumpIf = function(t) {
3528
- if (mt(this.message, t, this.offset())) {
3550
+ if (yt(this.message, t, this.offset())) {
3529
3551
  for (var r = 0; r < t.length; r++)
3530
3552
  this.bump();
3531
3553
  return !0;
@@ -3547,7 +3569,7 @@ var Qn = (
3547
3569
  break;
3548
3570
  }
3549
3571
  }, e.prototype.bumpSpace = function() {
3550
- for (; !this.isEOF() && er(this.char()); )
3572
+ for (; !this.isEOF() && ir(this.char()); )
3551
3573
  this.bump();
3552
3574
  }, e.prototype.peek = function() {
3553
3575
  if (this.isEOF())
@@ -3557,44 +3579,44 @@ var Qn = (
3557
3579
  }, e;
3558
3580
  }()
3559
3581
  );
3560
- function Ve(e) {
3582
+ function Xe(e) {
3561
3583
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3562
3584
  }
3563
- function Jn(e) {
3564
- return Ve(e) || e === 47;
3585
+ function Kn(e) {
3586
+ return Xe(e) || e === 47;
3565
3587
  }
3566
- function Yn(e) {
3588
+ function ei(e) {
3567
3589
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3568
3590
  }
3569
- function er(e) {
3591
+ function ir(e) {
3570
3592
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3571
3593
  }
3572
- function qn(e) {
3594
+ function ti(e) {
3573
3595
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3574
3596
  }
3575
- function Xe(e) {
3597
+ function We(e) {
3576
3598
  e.forEach(function(t) {
3577
- if (delete t.location, Vt(t) || Xt(t))
3599
+ if (delete t.location, Zt(t) || Qt(t))
3578
3600
  for (var r in t.options)
3579
- delete t.options[r].location, Xe(t.options[r].value);
3601
+ delete t.options[r].location, We(t.options[r].value);
3580
3602
  else
3581
- Ft(t) && zt(t.style) || (jt(t) || kt(t)) && De(t.style) ? delete t.style.location : Wt(t) && Xe(t.children);
3603
+ Xt(t) && Yt(t.style) || (Wt(t) || zt(t)) && Fe(t.style) ? delete t.style.location : Jt(t) && We(t.children);
3582
3604
  });
3583
3605
  }
3584
- function Kn(e, t) {
3606
+ function ri(e, t) {
3585
3607
  t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3586
- var r = new Qn(e, t).parse();
3608
+ var r = new qn(e, t).parse();
3587
3609
  if (r.err) {
3588
3610
  var n = SyntaxError(m[r.err.kind]);
3589
3611
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3590
3612
  }
3591
- return t != null && t.captureLocation || Xe(r.val), r.val;
3613
+ return t != null && t.captureLocation || We(r.val), r.val;
3592
3614
  }
3593
3615
  var z;
3594
3616
  (function(e) {
3595
3617
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3596
3618
  })(z || (z = {}));
3597
- var _e = (
3619
+ var Ee = (
3598
3620
  /** @class */
3599
3621
  function(e) {
3600
3622
  L(t, e);
@@ -3606,7 +3628,7 @@ var _e = (
3606
3628
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3607
3629
  }, t;
3608
3630
  }(Error)
3609
- ), yt = (
3631
+ ), _t = (
3610
3632
  /** @class */
3611
3633
  function(e) {
3612
3634
  L(t, e);
@@ -3614,8 +3636,8 @@ var _e = (
3614
3636
  return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
3615
3637
  }
3616
3638
  return t;
3617
- }(_e)
3618
- ), ei = (
3639
+ }(Ee)
3640
+ ), ni = (
3619
3641
  /** @class */
3620
3642
  function(e) {
3621
3643
  L(t, e);
@@ -3623,8 +3645,8 @@ var _e = (
3623
3645
  return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
3624
3646
  }
3625
3647
  return t;
3626
- }(_e)
3627
- ), ti = (
3648
+ }(Ee)
3649
+ ), ii = (
3628
3650
  /** @class */
3629
3651
  function(e) {
3630
3652
  L(t, e);
@@ -3632,129 +3654,129 @@ var _e = (
3632
3654
  return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
3633
3655
  }
3634
3656
  return t;
3635
- }(_e)
3636
- ), x;
3657
+ }(Ee)
3658
+ ), _;
3637
3659
  (function(e) {
3638
3660
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3639
- })(x || (x = {}));
3640
- function ri(e) {
3661
+ })(_ || (_ = {}));
3662
+ function oi(e) {
3641
3663
  return e.length < 2 ? e : e.reduce(function(t, r) {
3642
3664
  var n = t[t.length - 1];
3643
- return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
3665
+ return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
3644
3666
  }, []);
3645
3667
  }
3646
- function ni(e) {
3668
+ function si(e) {
3647
3669
  return typeof e == "function";
3648
3670
  }
3649
3671
  function pe(e, t, r, n, i, o, s) {
3650
- if (e.length === 1 && ct(e[0]))
3672
+ if (e.length === 1 && dt(e[0]))
3651
3673
  return [
3652
3674
  {
3653
- type: x.literal,
3675
+ type: _.literal,
3654
3676
  value: e[0].value
3655
3677
  }
3656
3678
  ];
3657
3679
  for (var a = [], h = 0, u = e; h < u.length; h++) {
3658
3680
  var l = u[h];
3659
- if (ct(l)) {
3681
+ if (dt(l)) {
3660
3682
  a.push({
3661
- type: x.literal,
3683
+ type: _.literal,
3662
3684
  value: l.value
3663
3685
  });
3664
3686
  continue;
3665
3687
  }
3666
- if (Hn(l)) {
3688
+ if (An(l)) {
3667
3689
  typeof o == "number" && a.push({
3668
- type: x.literal,
3690
+ type: _.literal,
3669
3691
  value: r.getNumberFormat(t).format(o)
3670
3692
  });
3671
3693
  continue;
3672
3694
  }
3673
3695
  var f = l.value;
3674
3696
  if (!(i && f in i))
3675
- throw new ti(f, s);
3697
+ throw new ii(f, s);
3676
3698
  var c = i[f];
3677
- if (Tn(l)) {
3699
+ if (wn(l)) {
3678
3700
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3679
- type: typeof c == "string" ? x.literal : x.object,
3701
+ type: typeof c == "string" ? _.literal : _.object,
3680
3702
  value: c
3681
3703
  });
3682
3704
  continue;
3683
3705
  }
3684
- if (jt(l)) {
3685
- var p = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
3706
+ if (Wt(l)) {
3707
+ var p = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
3686
3708
  a.push({
3687
- type: x.literal,
3709
+ type: _.literal,
3688
3710
  value: r.getDateTimeFormat(t, p).format(c)
3689
3711
  });
3690
3712
  continue;
3691
3713
  }
3692
- if (kt(l)) {
3693
- var p = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
3714
+ if (zt(l)) {
3715
+ var p = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
3694
3716
  a.push({
3695
- type: x.literal,
3717
+ type: _.literal,
3696
3718
  value: r.getDateTimeFormat(t, p).format(c)
3697
3719
  });
3698
3720
  continue;
3699
3721
  }
3700
- if (Ft(l)) {
3701
- var p = typeof l.style == "string" ? n.number[l.style] : zt(l.style) ? l.style.parsedOptions : void 0;
3722
+ if (Xt(l)) {
3723
+ var p = typeof l.style == "string" ? n.number[l.style] : Yt(l.style) ? l.style.parsedOptions : void 0;
3702
3724
  p && p.scale && (c = c * (p.scale || 1)), a.push({
3703
- type: x.literal,
3725
+ type: _.literal,
3704
3726
  value: r.getNumberFormat(t, p).format(c)
3705
3727
  });
3706
3728
  continue;
3707
3729
  }
3708
- if (Wt(l)) {
3730
+ if (Jt(l)) {
3709
3731
  var d = l.children, v = l.value, B = i[v];
3710
- if (!ni(B))
3711
- throw new ei(v, "function", s);
3732
+ if (!si(B))
3733
+ throw new ni(v, "function", s);
3712
3734
  var $ = pe(d, t, r, n, i, o), N = B($.map(function(P) {
3713
3735
  return P.value;
3714
3736
  }));
3715
3737
  Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(P) {
3716
3738
  return {
3717
- type: typeof P == "string" ? x.literal : x.object,
3739
+ type: typeof P == "string" ? _.literal : _.object,
3718
3740
  value: P
3719
3741
  };
3720
3742
  }));
3721
3743
  }
3722
- if (Vt(l)) {
3723
- var E = l.options[c] || l.options.other;
3724
- if (!E)
3725
- throw new yt(l.value, c, Object.keys(l.options), s);
3726
- a.push.apply(a, pe(E.value, t, r, n, i));
3744
+ if (Zt(l)) {
3745
+ var x = l.options[c] || l.options.other;
3746
+ if (!x)
3747
+ throw new _t(l.value, c, Object.keys(l.options), s);
3748
+ a.push.apply(a, pe(x.value, t, r, n, i));
3727
3749
  continue;
3728
3750
  }
3729
- if (Xt(l)) {
3730
- var E = l.options["=".concat(c)];
3731
- if (!E) {
3751
+ if (Qt(l)) {
3752
+ var x = l.options["=".concat(c)];
3753
+ if (!x) {
3732
3754
  if (!Intl.PluralRules)
3733
- throw new _e(`Intl.PluralRules is not available in this environment.
3755
+ throw new Ee(`Intl.PluralRules is not available in this environment.
3734
3756
  Try polyfilling it using "@formatjs/intl-pluralrules"
3735
3757
  `, z.MISSING_INTL_API, s);
3736
3758
  var R = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3737
- E = l.options[R] || l.options.other;
3759
+ x = l.options[R] || l.options.other;
3738
3760
  }
3739
- if (!E)
3740
- throw new yt(l.value, c, Object.keys(l.options), s);
3741
- a.push.apply(a, pe(E.value, t, r, n, i, c - (l.offset || 0)));
3761
+ if (!x)
3762
+ throw new _t(l.value, c, Object.keys(l.options), s);
3763
+ a.push.apply(a, pe(x.value, t, r, n, i, c - (l.offset || 0)));
3742
3764
  continue;
3743
3765
  }
3744
3766
  }
3745
- return ri(a);
3767
+ return oi(a);
3746
3768
  }
3747
- function ii(e, t) {
3769
+ function ai(e, t) {
3748
3770
  return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3749
3771
  return r[n] = g(g({}, e[n]), t[n] || {}), r;
3750
3772
  }, {})) : e;
3751
3773
  }
3752
- function oi(e, t) {
3774
+ function ui(e, t) {
3753
3775
  return t ? Object.keys(e).reduce(function(r, n) {
3754
- return r[n] = ii(e[n], t[n]), r;
3776
+ return r[n] = ai(e[n], t[n]), r;
3755
3777
  }, g({}, e)) : e;
3756
3778
  }
3757
- function Oe(e) {
3779
+ function Ie(e) {
3758
3780
  return {
3759
3781
  create: function() {
3760
3782
  return {
@@ -3768,7 +3790,7 @@ function Oe(e) {
3768
3790
  }
3769
3791
  };
3770
3792
  }
3771
- function si(e) {
3793
+ function hi(e) {
3772
3794
  return e === void 0 && (e = {
3773
3795
  number: {},
3774
3796
  dateTime: {},
@@ -3779,28 +3801,28 @@ function si(e) {
3779
3801
  r[n] = arguments[n];
3780
3802
  return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
3781
3803
  }, {
3782
- cache: Oe(e.number),
3783
- strategy: we.variadic
3804
+ cache: Ie(e.number),
3805
+ strategy: Pe.variadic
3784
3806
  }),
3785
3807
  getDateTimeFormat: Ae(function() {
3786
3808
  for (var t, r = [], n = 0; n < arguments.length; n++)
3787
3809
  r[n] = arguments[n];
3788
3810
  return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
3789
3811
  }, {
3790
- cache: Oe(e.dateTime),
3791
- strategy: we.variadic
3812
+ cache: Ie(e.dateTime),
3813
+ strategy: Pe.variadic
3792
3814
  }),
3793
3815
  getPluralRules: Ae(function() {
3794
3816
  for (var t, r = [], n = 0; n < arguments.length; n++)
3795
3817
  r[n] = arguments[n];
3796
3818
  return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
3797
3819
  }, {
3798
- cache: Oe(e.pluralRules),
3799
- strategy: we.variadic
3820
+ cache: Ie(e.pluralRules),
3821
+ strategy: Pe.variadic
3800
3822
  })
3801
3823
  };
3802
3824
  }
3803
- var ai = (
3825
+ var li = (
3804
3826
  /** @class */
3805
3827
  function() {
3806
3828
  function e(t, r, n, i) {
@@ -3815,7 +3837,7 @@ var ai = (
3815
3837
  if (u.length === 1)
3816
3838
  return u[0].value;
3817
3839
  var l = u.reduce(function(f, c) {
3818
- return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3840
+ return !f.length || c.type !== _.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3819
3841
  }, []);
3820
3842
  return l.length <= 1 ? l[0] || "" : l;
3821
3843
  }, this.formatToParts = function(h) {
@@ -3832,13 +3854,13 @@ var ai = (
3832
3854
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3833
3855
  var s = i || {};
3834
3856
  s.formatters;
3835
- var a = Ur(s, ["formatters"]);
3857
+ var a = jr(s, ["formatters"]);
3836
3858
  this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
3837
3859
  } else
3838
3860
  this.ast = t;
3839
3861
  if (!Array.isArray(this.ast))
3840
3862
  throw new TypeError("A message must be provided as a String or AST.");
3841
- this.formats = oi(e.formats, n), this.formatters = i && i.formatters || si(this.formatterCache);
3863
+ this.formats = ui(e.formats, n), this.formatters = i && i.formatters || hi(this.formatterCache);
3842
3864
  }
3843
3865
  return Object.defineProperty(e, "defaultLocale", {
3844
3866
  get: function() {
@@ -3851,7 +3873,7 @@ var ai = (
3851
3873
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3852
3874
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3853
3875
  }
3854
- }, e.__parse = Kn, e.formats = {
3876
+ }, e.__parse = ri, e.formats = {
3855
3877
  number: {
3856
3878
  integer: {
3857
3879
  maximumFractionDigits: 0
@@ -3912,7 +3934,7 @@ var ai = (
3912
3934
  }, e;
3913
3935
  }()
3914
3936
  );
3915
- function ui(e, t) {
3937
+ function ci(e, t) {
3916
3938
  if (t == null)
3917
3939
  return;
3918
3940
  if (t in e)
@@ -3933,92 +3955,92 @@ function ui(e, t) {
3933
3955
  n = void 0;
3934
3956
  return n;
3935
3957
  }
3936
- const C = {}, hi = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), tr = (e, t) => {
3958
+ const C = {}, fi = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), or = (e, t) => {
3937
3959
  if (t == null)
3938
3960
  return;
3939
3961
  if (t in C && e in C[t])
3940
3962
  return C[t][e];
3941
- const r = xe(t);
3963
+ const r = _e(t);
3942
3964
  for (let n = 0; n < r.length; n++) {
3943
- const i = r[n], o = ci(i, e);
3965
+ const i = r[n], o = di(i, e);
3944
3966
  if (o)
3945
- return hi(e, t, o);
3967
+ return fi(e, t, o);
3946
3968
  }
3947
3969
  };
3948
- let Qe;
3970
+ let qe;
3949
3971
  const ae = ve({});
3950
- function li(e) {
3951
- return Qe[e] || null;
3972
+ function pi(e) {
3973
+ return qe[e] || null;
3952
3974
  }
3953
- function rr(e) {
3954
- return e in Qe;
3975
+ function sr(e) {
3976
+ return e in qe;
3955
3977
  }
3956
- function ci(e, t) {
3957
- if (!rr(e))
3978
+ function di(e, t) {
3979
+ if (!sr(e))
3958
3980
  return null;
3959
- const r = li(e);
3960
- return ui(r, t);
3981
+ const r = pi(e);
3982
+ return ci(r, t);
3961
3983
  }
3962
- function fi(e) {
3984
+ function mi(e) {
3963
3985
  if (e == null)
3964
3986
  return;
3965
- const t = xe(e);
3987
+ const t = _e(e);
3966
3988
  for (let r = 0; r < t.length; r++) {
3967
3989
  const n = t[r];
3968
- if (rr(n))
3990
+ if (sr(n))
3969
3991
  return n;
3970
3992
  }
3971
3993
  }
3972
- function nr(e, ...t) {
3973
- delete C[e], ae.update((r) => (r[e] = bn.all([r[e] || {}, ...t]), r));
3994
+ function ar(e, ...t) {
3995
+ delete C[e], ae.update((r) => (r[e] = En.all([r[e] || {}, ...t]), r));
3974
3996
  }
3975
3997
  J(
3976
3998
  [ae],
3977
3999
  ([e]) => Object.keys(e)
3978
4000
  );
3979
- ae.subscribe((e) => Qe = e);
4001
+ ae.subscribe((e) => qe = e);
3980
4002
  const de = {};
3981
- function pi(e, t) {
4003
+ function bi(e, t) {
3982
4004
  de[e].delete(t), de[e].size === 0 && delete de[e];
3983
4005
  }
3984
- function ir(e) {
4006
+ function ur(e) {
3985
4007
  return de[e];
3986
4008
  }
3987
- function di(e) {
3988
- return xe(e).map((t) => {
3989
- const r = ir(t);
4009
+ function gi(e) {
4010
+ return _e(e).map((t) => {
4011
+ const r = ur(t);
3990
4012
  return [t, r ? [...r] : []];
3991
4013
  }).filter(([, t]) => t.length > 0);
3992
4014
  }
3993
- function We(e) {
3994
- return e == null ? !1 : xe(e).some(
4015
+ function ze(e) {
4016
+ return e == null ? !1 : _e(e).some(
3995
4017
  (t) => {
3996
4018
  var r;
3997
- return (r = ir(t)) == null ? void 0 : r.size;
4019
+ return (r = ur(t)) == null ? void 0 : r.size;
3998
4020
  }
3999
4021
  );
4000
4022
  }
4001
- function mi(e, t) {
4023
+ function yi(e, t) {
4002
4024
  return Promise.all(
4003
- t.map((n) => (pi(e, n), n().then((i) => i.default || i)))
4004
- ).then((n) => nr(e, ...n));
4025
+ t.map((n) => (bi(e, n), n().then((i) => i.default || i)))
4026
+ ).then((n) => ar(e, ...n));
4005
4027
  }
4006
4028
  const ee = {};
4007
- function or(e) {
4008
- if (!We(e))
4029
+ function hr(e) {
4030
+ if (!ze(e))
4009
4031
  return e in ee ? ee[e] : Promise.resolve();
4010
- const t = di(e);
4032
+ const t = gi(e);
4011
4033
  return ee[e] = Promise.all(
4012
4034
  t.map(
4013
- ([r, n]) => mi(r, n)
4035
+ ([r, n]) => yi(r, n)
4014
4036
  )
4015
4037
  ).then(() => {
4016
- if (We(e))
4017
- return or(e);
4038
+ if (ze(e))
4039
+ return hr(e);
4018
4040
  delete ee[e];
4019
4041
  }), ee[e];
4020
4042
  }
4021
- const bi = {
4043
+ const vi = {
4022
4044
  number: {
4023
4045
  scientific: { notation: "scientific" },
4024
4046
  engineering: { notation: "engineering" },
@@ -4047,78 +4069,78 @@ const bi = {
4047
4069
  timeZoneName: "short"
4048
4070
  }
4049
4071
  }
4050
- }, gi = {
4072
+ }, Ei = {
4051
4073
  fallbackLocale: null,
4052
4074
  loadingDelay: 200,
4053
- formats: bi,
4075
+ formats: vi,
4054
4076
  warnOnMissingMessages: !0,
4055
4077
  handleMissingMessage: void 0,
4056
4078
  ignoreTag: !0
4057
- }, yi = gi;
4079
+ }, _i = Ei;
4058
4080
  function Z() {
4059
- return yi;
4081
+ return _i;
4060
4082
  }
4061
- const Ie = ve(!1);
4062
- var vi = Object.defineProperty, _i = Object.defineProperties, xi = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, Ei = Object.prototype.hasOwnProperty, Si = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ti = (e, t) => {
4083
+ const Le = ve(!1);
4084
+ var xi = Object.defineProperty, Si = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Bi = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wi = (e, t) => {
4063
4085
  for (var r in t || (t = {}))
4064
- Ei.call(t, r) && _t(e, r, t[r]);
4065
- if (vt)
4066
- for (var r of vt(t))
4067
- Si.call(t, r) && _t(e, r, t[r]);
4086
+ Hi.call(t, r) && St(e, r, t[r]);
4087
+ if (xt)
4088
+ for (var r of xt(t))
4089
+ Bi.call(t, r) && St(e, r, t[r]);
4068
4090
  return e;
4069
- }, Hi = (e, t) => _i(e, xi(t));
4070
- let ze;
4091
+ }, Ai = (e, t) => Si(e, Ti(t));
4092
+ let Ze;
4071
4093
  const me = ve(null);
4072
- function xt(e) {
4094
+ function Tt(e) {
4073
4095
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4074
4096
  }
4075
- function xe(e, t = Z().fallbackLocale) {
4076
- const r = xt(e);
4077
- return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
4097
+ function _e(e, t = Z().fallbackLocale) {
4098
+ const r = Tt(e);
4099
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
4078
4100
  }
4079
4101
  function U() {
4080
- return ze != null ? ze : void 0;
4102
+ return Ze != null ? Ze : void 0;
4081
4103
  }
4082
4104
  me.subscribe((e) => {
4083
- ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4105
+ Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4084
4106
  });
4085
- const Bi = (e) => {
4086
- if (e && fi(e) && We(e)) {
4107
+ const Pi = (e) => {
4108
+ if (e && mi(e) && ze(e)) {
4087
4109
  const { loadingDelay: t } = Z();
4088
4110
  let r;
4089
4111
  return typeof window != "undefined" && U() != null && t ? r = window.setTimeout(
4090
- () => Ie.set(!0),
4112
+ () => Le.set(!0),
4091
4113
  t
4092
- ) : Ie.set(!0), or(e).then(() => {
4114
+ ) : Le.set(!0), hr(e).then(() => {
4093
4115
  me.set(e);
4094
4116
  }).finally(() => {
4095
- clearTimeout(r), Ie.set(!1);
4117
+ clearTimeout(r), Le.set(!1);
4096
4118
  });
4097
4119
  }
4098
4120
  return me.set(e);
4099
- }, Y = Hi(Ti({}, me), {
4100
- set: Bi
4101
- }), Ee = (e) => {
4121
+ }, Y = Ai(wi({}, me), {
4122
+ set: Pi
4123
+ }), xe = (e) => {
4102
4124
  const t = /* @__PURE__ */ Object.create(null);
4103
4125
  return (n) => {
4104
4126
  const i = JSON.stringify(n);
4105
4127
  return i in t ? t[i] : t[i] = e(n);
4106
4128
  };
4107
4129
  };
4108
- var Ai = Object.defineProperty, be = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? Ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
4130
+ var Oi = Object.defineProperty, be = Object.getOwnPropertySymbols, lr = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
4109
4131
  for (var r in t || (t = {}))
4110
- sr.call(t, r) && Et(e, r, t[r]);
4132
+ lr.call(t, r) && Ht(e, r, t[r]);
4111
4133
  if (be)
4112
4134
  for (var r of be(t))
4113
- ar.call(t, r) && Et(e, r, t[r]);
4135
+ cr.call(t, r) && Ht(e, r, t[r]);
4114
4136
  return e;
4115
4137
  }, q = (e, t) => {
4116
4138
  var r = {};
4117
4139
  for (var n in e)
4118
- sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4140
+ lr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4119
4141
  if (e != null && be)
4120
4142
  for (var n of be(e))
4121
- t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
4143
+ t.indexOf(n) < 0 && cr.call(e, n) && (r[n] = e[n]);
4122
4144
  return r;
4123
4145
  };
4124
4146
  const ie = (e, t) => {
@@ -4126,21 +4148,21 @@ const ie = (e, t) => {
4126
4148
  if (e in r && t in r[e])
4127
4149
  return r[e][t];
4128
4150
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4129
- }, wi = Ee(
4151
+ }, Ii = xe(
4130
4152
  (e) => {
4131
4153
  var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
4132
4154
  if (r == null)
4133
4155
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4134
4156
  return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
4135
4157
  }
4136
- ), Pi = Ee(
4158
+ ), Li = xe(
4137
4159
  (e) => {
4138
4160
  var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
4139
4161
  if (r == null)
4140
4162
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4141
4163
  return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
4142
4164
  }
4143
- ), Oi = Ee(
4165
+ ), Ni = xe(
4144
4166
  (e) => {
4145
4167
  var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
4146
4168
  if (r == null)
@@ -4149,33 +4171,33 @@ const ie = (e, t) => {
4149
4171
  );
4150
4172
  return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
4151
4173
  }
4152
- ), Ii = (e = {}) => {
4174
+ ), Mi = (e = {}) => {
4153
4175
  var t = e, {
4154
4176
  locale: r = U()
4155
4177
  } = t, n = q(t, [
4156
4178
  "locale"
4157
4179
  ]);
4158
- return wi(Je({ locale: r }, n));
4159
- }, Li = (e = {}) => {
4180
+ return Ii(Ke({ locale: r }, n));
4181
+ }, Ci = (e = {}) => {
4160
4182
  var t = e, {
4161
4183
  locale: r = U()
4162
4184
  } = t, n = q(t, [
4163
4185
  "locale"
4164
4186
  ]);
4165
- return Pi(Je({ locale: r }, n));
4166
- }, Ni = (e = {}) => {
4187
+ return Li(Ke({ locale: r }, n));
4188
+ }, $i = (e = {}) => {
4167
4189
  var t = e, {
4168
4190
  locale: r = U()
4169
4191
  } = t, n = q(t, [
4170
4192
  "locale"
4171
4193
  ]);
4172
- return Oi(Je({ locale: r }, n));
4173
- }, Mi = Ee(
4194
+ return Ni(Ke({ locale: r }, n));
4195
+ }, Ri = xe(
4174
4196
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4175
- (e, t = U()) => new ai(e, t, Z().formats, {
4197
+ (e, t = U()) => new li(e, t, Z().formats, {
4176
4198
  ignoreTag: Z().ignoreTag
4177
4199
  })
4178
- ), Ci = (e, t = {}) => {
4200
+ ), Ui = (e, t = {}) => {
4179
4201
  var r, n, i, o;
4180
4202
  let s = t;
4181
4203
  typeof e == "object" && (s = e, e = s.id);
@@ -4188,7 +4210,7 @@ const ie = (e, t) => {
4188
4210
  throw new Error(
4189
4211
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4190
4212
  );
4191
- let l = tr(e, h);
4213
+ let l = or(e, h);
4192
4214
  if (!l)
4193
4215
  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;
4194
4216
  else if (typeof l != "string")
@@ -4199,7 +4221,7 @@ const ie = (e, t) => {
4199
4221
  return l;
4200
4222
  let f = l;
4201
4223
  try {
4202
- f = Mi(l, h).format(a);
4224
+ f = Ri(l, h).format(a);
4203
4225
  } catch (c) {
4204
4226
  c instanceof Error && console.warn(
4205
4227
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4207,20 +4229,30 @@ const ie = (e, t) => {
4207
4229
  );
4208
4230
  }
4209
4231
  return f;
4210
- }, $i = (e, t) => Ni(t).format(e), Ri = (e, t) => Li(t).format(e), Ui = (e, t) => Ii(t).format(e), Gi = (e, t = U()) => tr(e, t), Di = J([Y, ae], () => Ci);
4211
- J([Y], () => $i);
4212
- J([Y], () => Ri);
4213
- J([Y], () => Ui);
4214
- J([Y, ae], () => Gi);
4215
- window.emWidgets = { topic: qr };
4216
- const Fi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4217
- function St(e, t) {
4218
- nr(e, t);
4219
- }
4220
- function ji(e) {
4232
+ }, Di = (e, t) => $i(t).format(e), Gi = (e, t) => Ci(t).format(e), Fi = (e, t) => Mi(t).format(e), ji = (e, t = U()) => or(e, t), ki = J([Y, ae], () => Ui);
4233
+ J([Y], () => Di);
4234
+ J([Y], () => Gi);
4235
+ J([Y], () => Fi);
4236
+ J([Y, ae], () => ji);
4237
+ window.emWidgets = { topic: rn };
4238
+ const Vi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", Xi = (e, t = {}) => {
4239
+ const r = new CustomEvent("track-custom-event", {
4240
+ detail: {
4241
+ type: e,
4242
+ data: t
4243
+ },
4244
+ bubbles: !0,
4245
+ composed: !0
4246
+ });
4247
+ document.dispatchEvent(r);
4248
+ };
4249
+ function Bt(e, t) {
4250
+ ar(e, t);
4251
+ }
4252
+ function Wi(e) {
4221
4253
  Y.set(e);
4222
4254
  }
4223
- const Tt = {
4255
+ const wt = {
4224
4256
  en: {
4225
4257
  logoutButton: "Logout"
4226
4258
  },
@@ -4255,13 +4287,13 @@ const Tt = {
4255
4287
  logoutButton: "Logout"
4256
4288
  }
4257
4289
  };
4258
- function Ht(e, t) {
4290
+ function At(e, t) {
4259
4291
  if (e) {
4260
4292
  const r = document.createElement("style");
4261
4293
  r.innerHTML = t, e.appendChild(r);
4262
4294
  }
4263
4295
  }
4264
- function ki(e, t) {
4296
+ function zi(e, t) {
4265
4297
  const r = new URL(t);
4266
4298
  fetch(r.href).then((n) => n.text()).then((n) => {
4267
4299
  const i = document.createElement("style");
@@ -4270,7 +4302,7 @@ function ki(e, t) {
4270
4302
  console.error("There was an error while trying to load client styling from URL", n);
4271
4303
  });
4272
4304
  }
4273
- function Vi(e, t, r) {
4305
+ function Zi(e, t, r) {
4274
4306
  if (window.emMessageBus) {
4275
4307
  const n = document.createElement("style");
4276
4308
  window.emMessageBus.subscribe(t, (i) => {
@@ -4278,10 +4310,10 @@ function Vi(e, t, r) {
4278
4310
  });
4279
4311
  }
4280
4312
  }
4281
- function Xi(e) {
4282
- br(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))}");
4313
+ function Qi(e) {
4314
+ Er(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))}");
4283
4315
  }
4284
- function Wi(e) {
4316
+ function Ji(e) {
4285
4317
  let t, r, n, i = (
4286
4318
  /*$_*/
4287
4319
  e[2]("logoutButton") + ""
@@ -4291,7 +4323,7 @@ function Wi(e) {
4291
4323
  t = O("div"), r = O("button"), n = O("span"), o = ge(i), H(t, "class", "GeneralLogout");
4292
4324
  },
4293
4325
  m(h, u) {
4294
- se(h, t, u), S(t, r), S(r, n), S(n, o), s || (a = Pt(
4326
+ se(h, t, u), S(t, r), S(r, n), S(n, o), s || (a = Lt(
4295
4327
  r,
4296
4328
  "click",
4297
4329
  /*click_handler_1*/
@@ -4301,19 +4333,19 @@ function Wi(e) {
4301
4333
  p(h, u) {
4302
4334
  u & /*$_*/
4303
4335
  4 && i !== (i = /*$_*/
4304
- h[2]("logoutButton") + "") && Ot(o, i);
4336
+ h[2]("logoutButton") + "") && Nt(o, i);
4305
4337
  },
4306
4338
  d(h) {
4307
4339
  h && Q(t), s = !1, a();
4308
4340
  }
4309
4341
  };
4310
4342
  }
4311
- function zi(e) {
4343
+ function Yi(e) {
4312
4344
  let t, r, n, i, o, s, a, h, u, l, f, c = !/*isMobile*/
4313
- e[3] && Zi(e);
4345
+ e[3] && qi(e);
4314
4346
  return {
4315
4347
  c() {
4316
- t = O("p"), r = O("span"), n = K("svg"), i = K("defs"), o = K("style"), s = ge(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = K("path"), h = K("path"), u = vr(), c && c.c(), H(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), H(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"), H(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), H(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"), H(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), H(n, "data-name", "Layer 1"), H(n, "xmlns", "http://www.w3.org/2000/svg"), H(n, "viewBox", "0 0 150 150"), xr(r, "width", /*isMobile*/
4348
+ t = O("p"), r = O("span"), n = K("svg"), i = K("defs"), o = K("style"), s = ge(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = K("path"), h = K("path"), u = Sr(), c && c.c(), H(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), H(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"), H(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), H(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"), H(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), H(n, "data-name", "Layer 1"), H(n, "xmlns", "http://www.w3.org/2000/svg"), H(n, "viewBox", "0 0 150 150"), Hr(r, "width", /*isMobile*/
4317
4349
  e[3] ? (
4318
4350
  /*mediaQuery*/
4319
4351
  e[4].matches ? "50px" : "24px"
@@ -4323,7 +4355,7 @@ function zi(e) {
4323
4355
  e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
4324
4356
  },
4325
4357
  m(p, d) {
4326
- se(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 = Pt(
4358
+ se(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 = Lt(
4327
4359
  t,
4328
4360
  "click",
4329
4361
  /*click_handler*/
@@ -4339,7 +4371,7 @@ function zi(e) {
4339
4371
  }
4340
4372
  };
4341
4373
  }
4342
- function Zi(e) {
4374
+ function qi(e) {
4343
4375
  let t, r = (
4344
4376
  /*$_*/
4345
4377
  e[2]("logoutButton") + ""
@@ -4354,19 +4386,19 @@ function Zi(e) {
4354
4386
  p(i, o) {
4355
4387
  o & /*$_*/
4356
4388
  4 && r !== (r = /*$_*/
4357
- i[2]("logoutButton") + "") && Ot(n, r);
4389
+ i[2]("logoutButton") + "") && Nt(n, r);
4358
4390
  },
4359
4391
  d(i) {
4360
4392
  i && Q(t);
4361
4393
  }
4362
4394
  };
4363
4395
  }
4364
- function Qi(e) {
4396
+ function Ki(e) {
4365
4397
  let t;
4366
4398
  function r(o, s) {
4367
4399
  return (
4368
4400
  /*buttonlocation*/
4369
- o[0] === "PlayerAccountMenu" ? zi : Wi
4401
+ o[0] === "PlayerAccountMenu" ? Yi : Ji
4370
4402
  );
4371
4403
  }
4372
4404
  let n = r(e), i = n(e);
@@ -4380,44 +4412,44 @@ function Qi(e) {
4380
4412
  p(o, [s]) {
4381
4413
  n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
4382
4414
  },
4383
- i: A,
4384
- o: A,
4415
+ i: w,
4416
+ o: w,
4385
4417
  d(o) {
4386
4418
  o && Q(t), i.d(), e[15](null);
4387
4419
  }
4388
4420
  };
4389
4421
  }
4390
- function Ji(e, t, r) {
4422
+ function eo(e, t, r) {
4391
4423
  let n;
4392
- mr(e, Di, (y) => r(2, n = y));
4393
- 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, B = Fi(v) !== "PC";
4424
+ vr(e, ki, (y) => r(2, n = y));
4425
+ 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, B = Vi(v) !== "PC";
4394
4426
  const $ = window.matchMedia("(min-width: 768px)"), N = () => {
4395
4427
  fetch(f).then((M) => M.json()).then((M) => {
4396
4428
  Object.keys(M).forEach((Se) => {
4397
- St(Se, M[Se]);
4429
+ Bt(Se, M[Se]);
4398
4430
  });
4399
4431
  }).catch((M) => {
4400
4432
  console.log(M);
4401
4433
  });
4402
4434
  };
4403
- Object.keys(Tt).forEach((y) => {
4404
- St(y, Tt[y]);
4435
+ Object.keys(wt).forEach((y) => {
4436
+ Bt(y, wt[y]);
4405
4437
  });
4406
- const E = () => {
4438
+ const x = () => {
4407
4439
  let y = new Headers();
4408
4440
  y.append("Content-type", "application/json"), y.append("X-SessionID", o);
4409
4441
  let M = { method: "DELETE", headers: y };
4410
4442
  fetch(`${i}/v1/player/session/player`, M).then((Se) => {
4411
- window.postMessage({ type: "LogoutSuccessfull" }, window.location.href);
4443
+ window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), Xi("logged_out", {});
4412
4444
  });
4413
4445
  }, R = () => (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), P = () => {
4414
- ji(a);
4446
+ Wi(a);
4415
4447
  };
4416
- Tr(() => () => {
4448
+ Ar(() => () => {
4417
4449
  });
4418
- const G = () => E(), ue = () => E();
4419
- function ur(y) {
4420
- Le[y ? "unshift" : "push"](() => {
4450
+ const D = () => x(), ue = () => x();
4451
+ function fr(y) {
4452
+ Ne[y ? "unshift" : "push"](() => {
4421
4453
  d = y, r(1, d);
4422
4454
  });
4423
4455
  }
@@ -4427,10 +4459,10 @@ function Ji(e, t, r) {
4427
4459
  e.$$.dirty & /*endpoint, session, buttonlocation*/
4428
4460
  193 && i && o && s && R(), e.$$.dirty & /*lang*/
4429
4461
  256 && a && P(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4430
- 1026 && u && d && Ht(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4431
- 1026 && u && d && Ht(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4432
- 2050 && l && d && ki(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4433
- 514 && h && d && Vi(d, `${h}.Style`), e.$$.dirty & /*translationurl*/
4462
+ 1026 && u && d && At(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4463
+ 1026 && u && d && At(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4464
+ 2050 && l && d && zi(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4465
+ 514 && h && d && Zi(d, `${h}.Style`), e.$$.dirty & /*translationurl*/
4434
4466
  4096 && f && N();
4435
4467
  }, [
4436
4468
  s,
@@ -4438,7 +4470,7 @@ function Ji(e, t, r) {
4438
4470
  n,
4439
4471
  B,
4440
4472
  $,
4441
- E,
4473
+ x,
4442
4474
  i,
4443
4475
  o,
4444
4476
  a,
@@ -4446,19 +4478,19 @@ function Ji(e, t, r) {
4446
4478
  u,
4447
4479
  l,
4448
4480
  f,
4449
- G,
4481
+ D,
4450
4482
  ue,
4451
- ur
4483
+ fr
4452
4484
  ];
4453
4485
  }
4454
- class Yi extends $r {
4486
+ class to extends Gr {
4455
4487
  constructor(t) {
4456
- super(), Mr(
4488
+ super(), Ur(
4457
4489
  this,
4458
4490
  t,
4459
- Ji,
4460
- Qi,
4461
- At,
4491
+ eo,
4492
+ Ki,
4493
+ Ot,
4462
4494
  {
4463
4495
  endpoint: 6,
4464
4496
  session: 7,
@@ -4469,59 +4501,59 @@ class Yi extends $r {
4469
4501
  clientstylingurl: 11,
4470
4502
  translationurl: 12
4471
4503
  },
4472
- Xi
4504
+ Qi
4473
4505
  );
4474
4506
  }
4475
4507
  get endpoint() {
4476
4508
  return this.$$.ctx[6];
4477
4509
  }
4478
4510
  set endpoint(t) {
4479
- this.$$set({ endpoint: t }), w();
4511
+ this.$$set({ endpoint: t }), A();
4480
4512
  }
4481
4513
  get session() {
4482
4514
  return this.$$.ctx[7];
4483
4515
  }
4484
4516
  set session(t) {
4485
- this.$$set({ session: t }), w();
4517
+ this.$$set({ session: t }), A();
4486
4518
  }
4487
4519
  get buttonlocation() {
4488
4520
  return this.$$.ctx[0];
4489
4521
  }
4490
4522
  set buttonlocation(t) {
4491
- this.$$set({ buttonlocation: t }), w();
4523
+ this.$$set({ buttonlocation: t }), A();
4492
4524
  }
4493
4525
  get lang() {
4494
4526
  return this.$$.ctx[8];
4495
4527
  }
4496
4528
  set lang(t) {
4497
- this.$$set({ lang: t }), w();
4529
+ this.$$set({ lang: t }), A();
4498
4530
  }
4499
4531
  get mbsource() {
4500
4532
  return this.$$.ctx[9];
4501
4533
  }
4502
4534
  set mbsource(t) {
4503
- this.$$set({ mbsource: t }), w();
4535
+ this.$$set({ mbsource: t }), A();
4504
4536
  }
4505
4537
  get clientstyling() {
4506
4538
  return this.$$.ctx[10];
4507
4539
  }
4508
4540
  set clientstyling(t) {
4509
- this.$$set({ clientstyling: t }), w();
4541
+ this.$$set({ clientstyling: t }), A();
4510
4542
  }
4511
4543
  get clientstylingurl() {
4512
4544
  return this.$$.ctx[11];
4513
4545
  }
4514
4546
  set clientstylingurl(t) {
4515
- this.$$set({ clientstylingurl: t }), w();
4547
+ this.$$set({ clientstylingurl: t }), A();
4516
4548
  }
4517
4549
  get translationurl() {
4518
4550
  return this.$$.ctx[12];
4519
4551
  }
4520
4552
  set translationurl(t) {
4521
- this.$$set({ translationurl: t }), w();
4553
+ this.$$set({ translationurl: t }), A();
4522
4554
  }
4523
4555
  }
4524
- Cr(Yi, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4556
+ Dr(to, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4525
4557
  export {
4526
- Yi as default
4558
+ to as default
4527
4559
  };