@everymatrix/player-withdrawal 1.76.1 → 1.76.3

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,28 +1,28 @@
1
1
  function B() {
2
2
  }
3
- function Ht(e) {
3
+ function St(e) {
4
4
  return e();
5
5
  }
6
- function tt() {
6
+ function Ke() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
9
  function se(e) {
10
- e.forEach(Ht);
10
+ e.forEach(St);
11
11
  }
12
- function Qe(e) {
12
+ function Ze(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function Bt(e, t) {
15
+ function Tt(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
18
  let le;
19
- function rt(e, t) {
19
+ function et(e, t) {
20
20
  return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
21
21
  }
22
- function lr(e) {
22
+ function ar(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
- function Pt(e, ...t) {
25
+ function Ht(e, ...t) {
26
26
  if (e == null) {
27
27
  for (const n of t)
28
28
  n(void 0);
@@ -31,20 +31,20 @@ function Pt(e, ...t) {
31
31
  const r = e.subscribe(...t);
32
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
33
33
  }
34
- function cr(e, t, r) {
35
- e.$$.on_destroy.push(Pt(t, r));
34
+ function ur(e, t, r) {
35
+ e.$$.on_destroy.push(Ht(t, r));
36
36
  }
37
37
  function x(e, t) {
38
38
  e.appendChild(t);
39
39
  }
40
- function fr(e, t, r) {
41
- const n = pr(e);
40
+ function hr(e, t, r) {
41
+ const n = lr(e);
42
42
  if (!n.getElementById(t)) {
43
43
  const i = I("style");
44
- i.id = t, i.textContent = r, dr(n, i);
44
+ i.id = t, i.textContent = r, fr(n, i);
45
45
  }
46
46
  }
47
- function pr(e) {
47
+ function lr(e) {
48
48
  if (!e)
49
49
  return document;
50
50
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -54,7 +54,7 @@ function pr(e) {
54
54
  t
55
55
  ) : e.ownerDocument;
56
56
  }
57
- function dr(e, t) {
57
+ function fr(e, t) {
58
58
  return x(
59
59
  /** @type {Document} */
60
60
  e.head || e,
@@ -76,23 +76,23 @@ function G(e) {
76
76
  function re(e) {
77
77
  return document.createTextNode(e);
78
78
  }
79
- function Ne() {
79
+ function Ie() {
80
80
  return re(" ");
81
81
  }
82
- function mr(e, t, r, n) {
82
+ function cr(e, t, r, n) {
83
83
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
84
84
  }
85
85
  function E(e, t, r) {
86
86
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
87
87
  }
88
- function br(e) {
88
+ function dr(e) {
89
89
  return Array.from(e.childNodes);
90
90
  }
91
- function Je(e, t) {
91
+ function Qe(e, t) {
92
92
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
93
93
  t);
94
94
  }
95
- function gr(e) {
95
+ function pr(e) {
96
96
  const t = {};
97
97
  return e.childNodes.forEach(
98
98
  /** @param {Element} node */
@@ -105,22 +105,22 @@ let ne;
105
105
  function te(e) {
106
106
  ne = e;
107
107
  }
108
- function yr() {
108
+ function mr() {
109
109
  if (!ne)
110
110
  throw new Error("Function called outside component initialization");
111
111
  return ne;
112
112
  }
113
- function vr(e) {
114
- yr().$$.on_mount.push(e);
113
+ function br(e) {
114
+ mr().$$.on_mount.push(e);
115
115
  }
116
- const k = [], Le = [];
116
+ const k = [], Ne = [];
117
117
  let W = [];
118
- const nt = [], _r = /* @__PURE__ */ Promise.resolve();
119
- let Me = !1;
120
- function Er() {
121
- Me || (Me = !0, _r.then(H));
118
+ const tt = [], gr = /* @__PURE__ */ Promise.resolve();
119
+ let Le = !1;
120
+ function yr() {
121
+ Le || (Le = !0, gr.then(H));
122
122
  }
123
- function Ce(e) {
123
+ function Me(e) {
124
124
  W.push(e);
125
125
  }
126
126
  const Se = /* @__PURE__ */ new Set();
@@ -133,53 +133,53 @@ function H() {
133
133
  try {
134
134
  for (; F < k.length; ) {
135
135
  const t = k[F];
136
- F++, te(t), xr(t.$$);
136
+ F++, te(t), vr(t.$$);
137
137
  }
138
138
  } catch (t) {
139
139
  throw k.length = 0, F = 0, t;
140
140
  }
141
- for (te(null), k.length = 0, F = 0; Le.length; )
142
- Le.pop()();
141
+ for (te(null), k.length = 0, F = 0; Ne.length; )
142
+ Ne.pop()();
143
143
  for (let t = 0; t < W.length; t += 1) {
144
144
  const r = W[t];
145
145
  Se.has(r) || (Se.add(r), r());
146
146
  }
147
147
  W.length = 0;
148
148
  } while (k.length);
149
- for (; nt.length; )
150
- nt.pop()();
151
- Me = !1, Se.clear(), te(e);
149
+ for (; tt.length; )
150
+ tt.pop()();
151
+ Le = !1, Se.clear(), te(e);
152
152
  }
153
- function xr(e) {
153
+ function vr(e) {
154
154
  if (e.fragment !== null) {
155
155
  e.update(), se(e.before_update);
156
156
  const t = e.dirty;
157
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
157
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
158
158
  }
159
159
  }
160
- function wr(e) {
160
+ function _r(e) {
161
161
  const t = [], r = [];
162
162
  W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
163
163
  }
164
- const Sr = /* @__PURE__ */ new Set();
165
- function Tr(e, t) {
166
- e && e.i && (Sr.delete(e), e.i(t));
164
+ const Er = /* @__PURE__ */ new Set();
165
+ function xr(e, t) {
166
+ e && e.i && (Er.delete(e), e.i(t));
167
167
  }
168
- function Hr(e, t, r) {
168
+ function wr(e, t, r) {
169
169
  const { fragment: n, after_update: i } = e.$$;
170
- n && n.m(t, r), Ce(() => {
171
- const o = e.$$.on_mount.map(Ht).filter(Qe);
170
+ n && n.m(t, r), Me(() => {
171
+ const o = e.$$.on_mount.map(St).filter(Ze);
172
172
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
173
- }), i.forEach(Ce);
173
+ }), i.forEach(Me);
174
174
  }
175
- function Br(e, t) {
175
+ function Sr(e, t) {
176
176
  const r = e.$$;
177
- r.fragment !== null && (wr(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
177
+ r.fragment !== null && (_r(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
178
178
  }
179
- function Pr(e, t) {
180
- e.$$.dirty[0] === -1 && (k.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
179
+ function Tr(e, t) {
180
+ e.$$.dirty[0] === -1 && (k.push(e), yr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
181
181
  }
182
- function Ar(e, t, r, n, i, o, a = null, s = [-1]) {
182
+ function Hr(e, t, r, n, i, o, a = null, s = [-1]) {
183
183
  const l = ne;
184
184
  te(e);
185
185
  const u = e.$$ = {
@@ -189,7 +189,7 @@ function Ar(e, t, r, n, i, o, a = null, s = [-1]) {
189
189
  props: o,
190
190
  update: B,
191
191
  not_equal: i,
192
- bound: tt(),
192
+ bound: Ke(),
193
193
  // lifecycle
194
194
  on_mount: [],
195
195
  on_destroy: [],
@@ -198,28 +198,28 @@ function Ar(e, t, r, n, i, o, a = null, s = [-1]) {
198
198
  after_update: [],
199
199
  context: new Map(t.context || (l ? l.$$.context : [])),
200
200
  // everything else
201
- callbacks: tt(),
201
+ callbacks: Ke(),
202
202
  dirty: s,
203
203
  skip_bound: !1,
204
204
  root: t.target || l.$$.root
205
205
  };
206
206
  a && a(u.root);
207
207
  let h = !1;
208
- if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
209
- const m = p.length ? p[0] : f;
210
- return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), h && Pr(e, c)), f;
211
- }) : [], u.update(), h = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
208
+ if (u.ctx = r(e, t.props || {}, (f, c, ...d) => {
209
+ const m = d.length ? d[0] : c;
210
+ return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && Tr(e, f)), c;
211
+ }), u.update(), h = !0, se(u.before_update), u.fragment = n(u.ctx), t.target) {
212
212
  if (t.hydrate) {
213
- const c = br(t.target);
214
- u.fragment && u.fragment.l(c), c.forEach(J);
213
+ const f = dr(t.target);
214
+ u.fragment && u.fragment.l(f), f.forEach(J);
215
215
  } else
216
216
  u.fragment && u.fragment.c();
217
- t.intro && Tr(e.$$.fragment), Hr(e, t.target, t.anchor), H();
217
+ t.intro && xr(e.$$.fragment), wr(e, t.target, t.anchor), H();
218
218
  }
219
219
  te(l);
220
220
  }
221
- let At;
222
- typeof HTMLElement == "function" && (At = class extends HTMLElement {
221
+ let Bt;
222
+ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
223
223
  /** The Svelte component constructor */
224
224
  $$ctor;
225
225
  /** Slots */
@@ -278,12 +278,12 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
278
278
  };
279
279
  if (await Promise.resolve(), !this.$$cn || this.$$c)
280
280
  return;
281
- const t = {}, r = gr(this);
281
+ const t = {}, r = pr(this);
282
282
  for (const i of this.$$s)
283
283
  i in r && (t[i] = [e(i)]);
284
284
  for (const i of this.attributes) {
285
285
  const o = this.$$g_p(i.name);
286
- o in this.$$d || (this.$$d[o] = pe(o, i.value, this.$$p_d, "toProp"));
286
+ o in this.$$d || (this.$$d[o] = de(o, i.value, this.$$p_d, "toProp"));
287
287
  }
288
288
  for (const i in this.$$p_d)
289
289
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -301,7 +301,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
301
301
  this.$$r = !0;
302
302
  for (const i in this.$$p_d)
303
303
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
304
- const o = pe(
304
+ const o = de(
305
305
  i,
306
306
  this.$$d[i],
307
307
  this.$$p_d,
@@ -323,7 +323,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
323
323
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
324
324
  // and setting attributes through setAttribute etc, this is helpful
325
325
  attributeChangedCallback(e, t, r) {
326
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = pe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
326
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = de(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
327
327
  }
328
328
  disconnectedCallback() {
329
329
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -336,7 +336,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
336
336
  ) || e;
337
337
  }
338
338
  });
339
- function pe(e, t, r, n) {
339
+ function de(e, t, r, n) {
340
340
  const i = r[e]?.type;
341
341
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
342
342
  return t;
@@ -365,8 +365,8 @@ function pe(e, t, r, n) {
365
365
  return t;
366
366
  }
367
367
  }
368
- function Or(e, t, r, n, i, o) {
369
- let a = class extends At {
368
+ function Br(e, t, r, n, i, o) {
369
+ let a = class extends Bt {
370
370
  constructor() {
371
371
  super(e, r, i), this.$$p_d = t;
372
372
  }
@@ -382,7 +382,7 @@ function Or(e, t, r, n, i, o) {
382
382
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
383
383
  },
384
384
  set(l) {
385
- l = pe(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
385
+ l = de(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
386
386
  }
387
387
  });
388
388
  }), n.forEach((s) => {
@@ -394,7 +394,7 @@ function Or(e, t, r, n, i, o) {
394
394
  }), e.element = /** @type {any} */
395
395
  a, a;
396
396
  }
397
- class Ir {
397
+ class Pr {
398
398
  /**
399
399
  * ### PRIVATE API
400
400
  *
@@ -413,7 +413,7 @@ class Ir {
413
413
  $$set = void 0;
414
414
  /** @returns {void} */
415
415
  $destroy() {
416
- Br(this, 1), this.$destroy = B;
416
+ Sr(this, 1), this.$destroy = B;
417
417
  }
418
418
  /**
419
419
  * @template {Extract<keyof Events, string>} K
@@ -422,7 +422,7 @@ class Ir {
422
422
  * @returns {() => void}
423
423
  */
424
424
  $on(t, r) {
425
- if (!Qe(r))
425
+ if (!Ze(r))
426
426
  return B;
427
427
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
428
428
  return n.push(r), () => {
@@ -435,18 +435,18 @@ class Ir {
435
435
  * @returns {void}
436
436
  */
437
437
  $set(t) {
438
- this.$$set && !lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
438
+ this.$$set && !ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
439
439
  }
440
440
  }
441
- const Nr = "4";
442
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
443
- function Lr(e, t) {
441
+ const Ar = "4";
442
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
443
+ function Or(e, t) {
444
444
  if (e) {
445
445
  const r = document.createElement("style");
446
446
  r.innerHTML = t, e.appendChild(r);
447
447
  }
448
448
  }
449
- function Mr(e, t) {
449
+ function Ir(e, t) {
450
450
  const r = new URL(t);
451
451
  fetch(r.href).then((n) => n.text()).then((n) => {
452
452
  const i = document.createElement("style");
@@ -455,7 +455,7 @@ function Mr(e, t) {
455
455
  console.error("There was an error while trying to load client styling from URL", n);
456
456
  });
457
457
  }
458
- function Cr(e, t, r) {
458
+ function Nr(e, t, r) {
459
459
  if (window.emMessageBus) {
460
460
  const n = document.createElement("style");
461
461
  window.emMessageBus.subscribe(t, (i) => {
@@ -477,18 +477,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
477
477
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
478
478
  PERFORMANCE OF THIS SOFTWARE.
479
479
  ***************************************************************************** */
480
- var Re = function(e, t) {
481
- return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
480
+ var Ce = function(e, t) {
481
+ return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
482
482
  r.__proto__ = n;
483
483
  } || function(r, n) {
484
484
  for (var i in n)
485
485
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
486
- }, Re(e, t);
486
+ }, Ce(e, t);
487
487
  };
488
488
  function N(e, t) {
489
489
  if (typeof t != "function" && t !== null)
490
490
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
491
- Re(e, t);
491
+ Ce(e, t);
492
492
  function r() {
493
493
  this.constructor = e;
494
494
  }
@@ -504,7 +504,7 @@ var v = function() {
504
504
  return t;
505
505
  }, v.apply(this, arguments);
506
506
  };
507
- function Rr(e, t) {
507
+ function Lr(e, t) {
508
508
  var r = {};
509
509
  for (var n in e)
510
510
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -513,7 +513,7 @@ function Rr(e, t) {
513
513
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
514
514
  return r;
515
515
  }
516
- function $e(e) {
516
+ function Re(e) {
517
517
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
518
518
  if (r)
519
519
  return r.call(e);
@@ -525,7 +525,7 @@ function $e(e) {
525
525
  };
526
526
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
527
527
  }
528
- function Ue(e, t) {
528
+ function $e(e, t) {
529
529
  var r = typeof Symbol == "function" && e[Symbol.iterator];
530
530
  if (!r)
531
531
  return e;
@@ -554,13 +554,13 @@ function V(e, t, r) {
554
554
  function O(e) {
555
555
  return typeof e == "function";
556
556
  }
557
- function Ot(e) {
557
+ function Pt(e) {
558
558
  var t = function(n) {
559
559
  Error.call(n), n.stack = new Error().stack;
560
560
  }, r = e(t);
561
561
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
562
562
  }
563
- var Te = Ot(function(e) {
563
+ var Te = Pt(function(e) {
564
564
  return function(r) {
565
565
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
566
566
  ` + r.map(function(n, i) {
@@ -569,7 +569,7 @@ var Te = Ot(function(e) {
569
569
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
570
570
  };
571
571
  });
572
- function De(e, t) {
572
+ function Ue(e, t) {
573
573
  if (e) {
574
574
  var r = e.indexOf(t);
575
575
  0 <= r && e.splice(r, 1);
@@ -587,7 +587,7 @@ var ve = function() {
587
587
  if (a)
588
588
  if (this._parentage = null, Array.isArray(a))
589
589
  try {
590
- for (var s = $e(a), l = s.next(); !l.done; l = s.next()) {
590
+ for (var s = Re(a), l = s.next(); !l.done; l = s.next()) {
591
591
  var u = l.value;
592
592
  u.remove(this);
593
593
  }
@@ -610,23 +610,23 @@ var ve = function() {
610
610
  } catch (g) {
611
611
  o = g instanceof Te ? g.errors : [g];
612
612
  }
613
- var c = this._finalizers;
614
- if (c) {
613
+ var f = this._finalizers;
614
+ if (f) {
615
615
  this._finalizers = null;
616
616
  try {
617
- for (var f = $e(c), p = f.next(); !p.done; p = f.next()) {
618
- var m = p.value;
617
+ for (var c = Re(f), d = c.next(); !d.done; d = c.next()) {
618
+ var m = d.value;
619
619
  try {
620
- it(m);
620
+ rt(m);
621
621
  } catch (g) {
622
- o = o ?? [], g instanceof Te ? o = V(V([], Ue(o)), Ue(g.errors)) : o.push(g);
622
+ o = o ?? [], g instanceof Te ? o = V(V([], $e(o)), $e(g.errors)) : o.push(g);
623
623
  }
624
624
  }
625
625
  } catch (g) {
626
626
  n = { error: g };
627
627
  } finally {
628
628
  try {
629
- p && !p.done && (i = f.return) && i.call(f);
629
+ d && !d.done && (i = c.return) && i.call(c);
630
630
  } finally {
631
631
  if (n)
632
632
  throw n.error;
@@ -640,7 +640,7 @@ var ve = function() {
640
640
  var r;
641
641
  if (t && t !== this)
642
642
  if (this.closed)
643
- it(t);
643
+ rt(t);
644
644
  else {
645
645
  if (t instanceof e) {
646
646
  if (t.closed || t._hasParent(this))
@@ -657,56 +657,56 @@ var ve = function() {
657
657
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
658
658
  }, e.prototype._removeParent = function(t) {
659
659
  var r = this._parentage;
660
- r === t ? this._parentage = null : Array.isArray(r) && De(r, t);
660
+ r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
661
661
  }, e.prototype.remove = function(t) {
662
662
  var r = this._finalizers;
663
- r && De(r, t), t instanceof e && t._removeParent(this);
663
+ r && Ue(r, t), t instanceof e && t._removeParent(this);
664
664
  }, e.EMPTY = function() {
665
665
  var t = new e();
666
666
  return t.closed = !0, t;
667
667
  }(), e;
668
- }(), It = ve.EMPTY;
669
- function Nt(e) {
668
+ }(), At = ve.EMPTY;
669
+ function Ot(e) {
670
670
  return e instanceof ve || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
671
671
  }
672
- function it(e) {
672
+ function rt(e) {
673
673
  O(e) ? e() : e.unsubscribe();
674
674
  }
675
- var Lt = {
675
+ var Mr = {
676
676
  onUnhandledError: null,
677
677
  onStoppedNotification: null,
678
678
  Promise: void 0,
679
679
  useDeprecatedSynchronousErrorHandling: !1,
680
680
  useDeprecatedNextContext: !1
681
- }, $r = {
681
+ }, Cr = {
682
682
  setTimeout: function(e, t) {
683
683
  for (var r = [], n = 2; n < arguments.length; n++)
684
684
  r[n - 2] = arguments[n];
685
- return setTimeout.apply(void 0, V([e, t], Ue(r)));
685
+ return setTimeout.apply(void 0, V([e, t], $e(r)));
686
686
  },
687
687
  clearTimeout: function(e) {
688
688
  return clearTimeout(e);
689
689
  },
690
690
  delegate: void 0
691
691
  };
692
- function Ur(e) {
693
- $r.setTimeout(function() {
692
+ function Rr(e) {
693
+ Cr.setTimeout(function() {
694
694
  throw e;
695
695
  });
696
696
  }
697
- function ot() {
697
+ function nt() {
698
698
  }
699
- function de(e) {
699
+ function pe(e) {
700
700
  e();
701
701
  }
702
- var Mt = function(e) {
702
+ var It = function(e) {
703
703
  N(t, e);
704
704
  function t(r) {
705
705
  var n = e.call(this) || this;
706
- return n.isStopped = !1, r ? (n.destination = r, Nt(r) && r.add(n)) : n.destination = jr, n;
706
+ return n.isStopped = !1, r ? (n.destination = r, Ot(r) && r.add(n)) : n.destination = Dr, n;
707
707
  }
708
708
  return t.create = function(r, n, i) {
709
- return new Ge(r, n, i);
709
+ return new De(r, n, i);
710
710
  }, t.prototype.next = function(r) {
711
711
  this.isStopped || this._next(r);
712
712
  }, t.prototype.error = function(r) {
@@ -730,11 +730,7 @@ var Mt = function(e) {
730
730
  this.unsubscribe();
731
731
  }
732
732
  }, t;
733
- }(ve), Dr = Function.prototype.bind;
734
- function He(e, t) {
735
- return Dr.call(e, t);
736
- }
737
- var Gr = function() {
733
+ }(ve), $r = function() {
738
734
  function e(t) {
739
735
  this.partialObserver = t;
740
736
  }
@@ -744,7 +740,7 @@ var Gr = function() {
744
740
  try {
745
741
  r.next(t);
746
742
  } catch (n) {
747
- ce(n);
743
+ fe(n);
748
744
  }
749
745
  }, e.prototype.error = function(t) {
750
746
  var r = this.partialObserver;
@@ -752,68 +748,56 @@ var Gr = function() {
752
748
  try {
753
749
  r.error(t);
754
750
  } catch (n) {
755
- ce(n);
751
+ fe(n);
756
752
  }
757
753
  else
758
- ce(t);
754
+ fe(t);
759
755
  }, e.prototype.complete = function() {
760
756
  var t = this.partialObserver;
761
757
  if (t.complete)
762
758
  try {
763
759
  t.complete();
764
760
  } catch (r) {
765
- ce(r);
761
+ fe(r);
766
762
  }
767
763
  }, e;
768
- }(), Ge = function(e) {
764
+ }(), De = function(e) {
769
765
  N(t, e);
770
766
  function t(r, n, i) {
771
767
  var o = e.call(this) || this, a;
772
- if (O(r) || !r)
773
- a = {
774
- next: r ?? void 0,
775
- error: n ?? void 0,
776
- complete: i ?? void 0
777
- };
778
- else {
779
- var s;
780
- o && Lt.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
781
- return o.unsubscribe();
782
- }, a = {
783
- next: r.next && He(r.next, s),
784
- error: r.error && He(r.error, s),
785
- complete: r.complete && He(r.complete, s)
786
- }) : a = r;
787
- }
788
- return o.destination = new Gr(a), o;
768
+ return O(r) || !r ? a = {
769
+ next: r ?? void 0,
770
+ error: n ?? void 0,
771
+ complete: i ?? void 0
772
+ } : a = r, o.destination = new $r(a), o;
789
773
  }
790
774
  return t;
791
- }(Mt);
792
- function ce(e) {
793
- Ur(e);
775
+ }(It);
776
+ function fe(e) {
777
+ Rr(e);
794
778
  }
795
- function Fr(e) {
779
+ function Ur(e) {
796
780
  throw e;
797
781
  }
798
- var jr = {
782
+ var Dr = {
799
783
  closed: !0,
800
- next: ot,
801
- error: Fr,
802
- complete: ot
803
- }, kr = function() {
784
+ next: nt,
785
+ error: Ur,
786
+ complete: nt
787
+ }, Gr = function() {
804
788
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
805
789
  }();
806
- function Wr(e) {
790
+ function Fr(e) {
807
791
  return e;
808
792
  }
809
- function Vr(e) {
810
- return e.length === 0 ? Wr : e.length === 1 ? e[0] : function(r) {
793
+ function jr(e) {
794
+ return e.length === 0 ? Fr : e.length === 1 ? e[0] : function(r) {
811
795
  return e.reduce(function(n, i) {
812
796
  return i(n);
813
797
  }, r);
814
798
  };
815
799
  }
816
- var st = function() {
800
+ var it = function() {
817
801
  function e(t) {
818
802
  t && (this._subscribe = t);
819
803
  }
@@ -821,8 +805,8 @@ var st = function() {
821
805
  var r = new e();
822
806
  return r.source = this, r.operator = t, r;
823
807
  }, e.prototype.subscribe = function(t, r, n) {
824
- var i = this, o = zr(t) ? t : new Ge(t, r, n);
825
- return de(function() {
808
+ var i = this, o = Wr(t) ? t : new De(t, r, n);
809
+ return pe(function() {
826
810
  var a = i, s = a.operator, l = a.source;
827
811
  o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
828
812
  }), o;
@@ -834,8 +818,8 @@ var st = function() {
834
818
  }
835
819
  }, e.prototype.forEach = function(t, r) {
836
820
  var n = this;
837
- return r = at(r), new r(function(i, o) {
838
- var a = new Ge({
821
+ return r = ot(r), new r(function(i, o) {
822
+ var a = new De({
839
823
  next: function(s) {
840
824
  try {
841
825
  t(s);
@@ -851,15 +835,15 @@ var st = function() {
851
835
  }, e.prototype._subscribe = function(t) {
852
836
  var r;
853
837
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
854
- }, e.prototype[kr] = function() {
838
+ }, e.prototype[Gr] = function() {
855
839
  return this;
856
840
  }, e.prototype.pipe = function() {
857
841
  for (var t = [], r = 0; r < arguments.length; r++)
858
842
  t[r] = arguments[r];
859
- return Vr(t)(this);
843
+ return jr(t)(this);
860
844
  }, e.prototype.toPromise = function(t) {
861
845
  var r = this;
862
- return t = at(t), new t(function(n, i) {
846
+ return t = ot(t), new t(function(n, i) {
863
847
  var o;
864
848
  r.subscribe(function(a) {
865
849
  return o = a;
@@ -873,40 +857,40 @@ var st = function() {
873
857
  return new e(t);
874
858
  }, e;
875
859
  }();
876
- function at(e) {
860
+ function ot(e) {
877
861
  var t;
878
- return (t = e ?? Lt.Promise) !== null && t !== void 0 ? t : Promise;
862
+ return (t = e ?? Mr.Promise) !== null && t !== void 0 ? t : Promise;
879
863
  }
880
- function Xr(e) {
864
+ function kr(e) {
881
865
  return e && O(e.next) && O(e.error) && O(e.complete);
882
866
  }
883
- function zr(e) {
884
- return e && e instanceof Mt || Xr(e) && Nt(e);
867
+ function Wr(e) {
868
+ return e && e instanceof It || kr(e) && Ot(e);
885
869
  }
886
- var Zr = Ot(function(e) {
870
+ var Vr = Pt(function(e) {
887
871
  return function() {
888
872
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
889
873
  };
890
- }), Ct = function(e) {
874
+ }), Nt = function(e) {
891
875
  N(t, e);
892
876
  function t() {
893
877
  var r = e.call(this) || this;
894
878
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
895
879
  }
896
880
  return t.prototype.lift = function(r) {
897
- var n = new ut(this, this);
881
+ var n = new st(this, this);
898
882
  return n.operator = r, n;
899
883
  }, t.prototype._throwIfClosed = function() {
900
884
  if (this.closed)
901
- throw new Zr();
885
+ throw new Vr();
902
886
  }, t.prototype.next = function(r) {
903
887
  var n = this;
904
- de(function() {
888
+ pe(function() {
905
889
  var i, o;
906
890
  if (n._throwIfClosed(), !n.isStopped) {
907
891
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
908
892
  try {
909
- for (var a = $e(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
893
+ for (var a = Re(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
910
894
  var l = s.value;
911
895
  l.next(r);
912
896
  }
@@ -924,7 +908,7 @@ var Zr = Ot(function(e) {
924
908
  });
925
909
  }, t.prototype.error = function(r) {
926
910
  var n = this;
927
- de(function() {
911
+ pe(function() {
928
912
  if (n._throwIfClosed(), !n.isStopped) {
929
913
  n.hasError = n.isStopped = !0, n.thrownError = r;
930
914
  for (var i = n.observers; i.length; )
@@ -933,7 +917,7 @@ var Zr = Ot(function(e) {
933
917
  });
934
918
  }, t.prototype.complete = function() {
935
919
  var r = this;
936
- de(function() {
920
+ pe(function() {
937
921
  if (r._throwIfClosed(), !r.isStopped) {
938
922
  r.isStopped = !0;
939
923
  for (var n = r.observers; n.length; )
@@ -955,19 +939,19 @@ var Zr = Ot(function(e) {
955
939
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
956
940
  }, t.prototype._innerSubscribe = function(r) {
957
941
  var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
958
- return o || a ? It : (this.currentObservers = null, s.push(r), new ve(function() {
959
- n.currentObservers = null, De(s, r);
942
+ return o || a ? At : (this.currentObservers = null, s.push(r), new ve(function() {
943
+ n.currentObservers = null, Ue(s, r);
960
944
  }));
961
945
  }, t.prototype._checkFinalizedStatuses = function(r) {
962
946
  var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
963
947
  i ? r.error(o) : a && r.complete();
964
948
  }, t.prototype.asObservable = function() {
965
- var r = new st();
949
+ var r = new it();
966
950
  return r.source = this, r;
967
951
  }, t.create = function(r, n) {
968
- return new ut(r, n);
952
+ return new st(r, n);
969
953
  }, t;
970
- }(st), ut = function(e) {
954
+ }(it), st = function(e) {
971
955
  N(t, e);
972
956
  function t(r, n) {
973
957
  var i = e.call(this) || this;
@@ -984,17 +968,17 @@ var Zr = Ot(function(e) {
984
968
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
985
969
  }, t.prototype._subscribe = function(r) {
986
970
  var n, i;
987
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : It;
971
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : At;
988
972
  }, t;
989
- }(Ct), Rt = {
973
+ }(Nt), Lt = {
990
974
  now: function() {
991
- return (Rt.delegate || Date).now();
975
+ return (Lt.delegate || Date).now();
992
976
  },
993
977
  delegate: void 0
994
- }, Qr = function(e) {
978
+ }, Xr = function(e) {
995
979
  N(t, e);
996
980
  function t(r, n, i) {
997
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Rt);
981
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lt);
998
982
  var o = e.call(this) || this;
999
983
  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;
1000
984
  }
@@ -1014,15 +998,15 @@ var Zr = Ot(function(e) {
1014
998
  u && o.splice(0, u + 1);
1015
999
  }
1016
1000
  }, t;
1017
- }(Ct);
1018
- const ht = [], lt = {}, Jr = (e, t = 0) => {
1019
- if (ht.indexOf(e) == -1) {
1020
- const r = new Qr(t);
1021
- lt[e] = r, ht.push(e);
1001
+ }(Nt);
1002
+ const at = [], ut = {}, zr = (e, t = 0) => {
1003
+ if (at.indexOf(e) == -1) {
1004
+ const r = new Xr(t);
1005
+ ut[e] = r, at.push(e);
1022
1006
  }
1023
- return lt[e];
1007
+ return ut[e];
1024
1008
  }, j = [];
1025
- function qr(e, t) {
1009
+ function Zr(e, t) {
1026
1010
  return {
1027
1011
  subscribe: _e(e, t).subscribe
1028
1012
  };
@@ -1031,7 +1015,7 @@ function _e(e, t = B) {
1031
1015
  let r;
1032
1016
  const n = /* @__PURE__ */ new Set();
1033
1017
  function i(s) {
1034
- if (Bt(e, s) && (e = s, r)) {
1018
+ if (Tt(e, s) && (e = s, r)) {
1035
1019
  const l = !j.length;
1036
1020
  for (const u of n)
1037
1021
  u[1](), j.push(u, e);
@@ -1058,96 +1042,96 @@ function q(e, t, r) {
1058
1042
  if (!i.every(Boolean))
1059
1043
  throw new Error("derived() expects stores as input, got a falsy value");
1060
1044
  const o = t.length < 2;
1061
- return qr(r, (a, s) => {
1045
+ return Zr(r, (a, s) => {
1062
1046
  let l = !1;
1063
1047
  const u = [];
1064
- let h = 0, c = B;
1065
- const f = () => {
1048
+ let h = 0, f = B;
1049
+ const c = () => {
1066
1050
  if (h)
1067
1051
  return;
1068
- c();
1052
+ f();
1069
1053
  const m = t(n ? u[0] : u, a, s);
1070
- o ? a(m) : c = Qe(m) ? m : B;
1071
- }, p = i.map(
1072
- (m, g) => Pt(
1054
+ o ? a(m) : f = Ze(m) ? m : B;
1055
+ }, d = i.map(
1056
+ (m, g) => Ht(
1073
1057
  m,
1074
1058
  (w) => {
1075
- u[g] = w, h &= ~(1 << g), l && f();
1059
+ u[g] = w, h &= ~(1 << g), l && c();
1076
1060
  },
1077
1061
  () => {
1078
1062
  h |= 1 << g;
1079
1063
  }
1080
1064
  )
1081
1065
  );
1082
- return l = !0, f(), function() {
1083
- se(p), c(), l = !1;
1066
+ return l = !0, c(), function() {
1067
+ se(d), f(), l = !1;
1084
1068
  };
1085
1069
  });
1086
1070
  }
1087
- function Yr(e) {
1088
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1071
+ function Qr(e) {
1072
+ return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1089
1073
  }
1090
- var Kr = function(t) {
1091
- return en(t) && !tn(t);
1074
+ var Jr = function(t) {
1075
+ return qr(t) && !Yr(t);
1092
1076
  };
1093
- function en(e) {
1077
+ function qr(e) {
1094
1078
  return !!e && typeof e == "object";
1095
1079
  }
1096
- function tn(e) {
1080
+ function Yr(e) {
1097
1081
  var t = Object.prototype.toString.call(e);
1098
- return t === "[object RegExp]" || t === "[object Date]" || on(e);
1082
+ return t === "[object RegExp]" || t === "[object Date]" || tn(e);
1099
1083
  }
1100
- var rn = typeof Symbol == "function" && Symbol.for, nn = rn ? Symbol.for("react.element") : 60103;
1101
- function on(e) {
1102
- return e.$$typeof === nn;
1084
+ var Kr = typeof Symbol == "function" && Symbol.for, en = Kr ? Symbol.for("react.element") : 60103;
1085
+ function tn(e) {
1086
+ return e.$$typeof === en;
1103
1087
  }
1104
- function sn(e) {
1088
+ function rn(e) {
1105
1089
  return Array.isArray(e) ? [] : {};
1106
1090
  }
1107
1091
  function ie(e, t) {
1108
- return t.clone !== !1 && t.isMergeableObject(e) ? X(sn(e), e, t) : e;
1092
+ return t.clone !== !1 && t.isMergeableObject(e) ? X(rn(e), e, t) : e;
1109
1093
  }
1110
- function an(e, t, r) {
1094
+ function nn(e, t, r) {
1111
1095
  return e.concat(t).map(function(n) {
1112
1096
  return ie(n, r);
1113
1097
  });
1114
1098
  }
1115
- function un(e, t) {
1099
+ function on(e, t) {
1116
1100
  if (!t.customMerge)
1117
1101
  return X;
1118
1102
  var r = t.customMerge(e);
1119
1103
  return typeof r == "function" ? r : X;
1120
1104
  }
1121
- function hn(e) {
1105
+ function sn(e) {
1122
1106
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1123
1107
  return Object.propertyIsEnumerable.call(e, t);
1124
1108
  }) : [];
1125
1109
  }
1126
- function ct(e) {
1127
- return Object.keys(e).concat(hn(e));
1110
+ function ht(e) {
1111
+ return Object.keys(e).concat(sn(e));
1128
1112
  }
1129
- function $t(e, t) {
1113
+ function Mt(e, t) {
1130
1114
  try {
1131
1115
  return t in e;
1132
1116
  } catch {
1133
1117
  return !1;
1134
1118
  }
1135
1119
  }
1136
- function ln(e, t) {
1137
- return $t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1120
+ function an(e, t) {
1121
+ return Mt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1138
1122
  }
1139
- function cn(e, t, r) {
1123
+ function un(e, t, r) {
1140
1124
  var n = {};
1141
- return r.isMergeableObject(e) && ct(e).forEach(function(i) {
1125
+ return r.isMergeableObject(e) && ht(e).forEach(function(i) {
1142
1126
  n[i] = ie(e[i], r);
1143
- }), ct(t).forEach(function(i) {
1144
- ln(e, i) || ($t(e, i) && r.isMergeableObject(t[i]) ? n[i] = un(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
1127
+ }), ht(t).forEach(function(i) {
1128
+ an(e, i) || (Mt(e, i) && r.isMergeableObject(t[i]) ? n[i] = on(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
1145
1129
  }), n;
1146
1130
  }
1147
1131
  function X(e, t, r) {
1148
- r = r || {}, r.arrayMerge = r.arrayMerge || an, r.isMergeableObject = r.isMergeableObject || Kr, r.cloneUnlessOtherwiseSpecified = ie;
1132
+ r = r || {}, r.arrayMerge = r.arrayMerge || nn, r.isMergeableObject = r.isMergeableObject || Jr, r.cloneUnlessOtherwiseSpecified = ie;
1149
1133
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1150
- return o ? n ? r.arrayMerge(e, t, r) : cn(e, t, r) : ie(t, r);
1134
+ return o ? n ? r.arrayMerge(e, t, r) : un(e, t, r) : ie(t, r);
1151
1135
  }
1152
1136
  X.all = function(t, r) {
1153
1137
  if (!Array.isArray(t))
@@ -1156,58 +1140,60 @@ X.all = function(t, r) {
1156
1140
  return X(n, i, r);
1157
1141
  }, {});
1158
1142
  };
1159
- var fn = X, pn = fn;
1160
- const dn = /* @__PURE__ */ Yr(pn);
1161
- function Be(e, t) {
1162
- var r = t && t.cache ? t.cache : _n, n = t && t.serializer ? t.serializer : vn, i = t && t.strategy ? t.strategy : bn;
1143
+ var hn = X, ln = hn;
1144
+ const fn = /* @__PURE__ */ Qr(ln);
1145
+ function He(e, t) {
1146
+ var r = t && t.cache ? t.cache : yn, n = t && t.serializer ? t.serializer : bn, i = t && t.strategy ? t.strategy : dn;
1163
1147
  return i(e, {
1164
1148
  cache: r,
1165
1149
  serializer: n
1166
1150
  });
1167
1151
  }
1168
- function mn(e) {
1152
+ function cn(e) {
1169
1153
  return e == null || typeof e == "number" || typeof e == "boolean";
1170
1154
  }
1171
- function Ut(e, t, r, n) {
1172
- var i = mn(n) ? n : r(n), o = t.get(i);
1155
+ function Ct(e, t, r, n) {
1156
+ var i = cn(n) ? n : r(n), o = t.get(i);
1173
1157
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1174
1158
  }
1175
- function Dt(e, t, r) {
1159
+ function Rt(e, t, r) {
1176
1160
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1177
1161
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1178
1162
  }
1179
- function qe(e, t, r, n, i) {
1163
+ function Je(e, t, r, n, i) {
1180
1164
  return r.bind(t, e, n, i);
1181
1165
  }
1182
- function bn(e, t) {
1183
- var r = e.length === 1 ? Ut : Dt;
1184
- return qe(e, this, r, t.cache.create(), t.serializer);
1166
+ function dn(e, t) {
1167
+ var r = e.length === 1 ? Ct : Rt;
1168
+ return Je(e, this, r, t.cache.create(), t.serializer);
1185
1169
  }
1186
- function gn(e, t) {
1187
- return qe(e, this, Dt, t.cache.create(), t.serializer);
1170
+ function pn(e, t) {
1171
+ return Je(e, this, Rt, t.cache.create(), t.serializer);
1188
1172
  }
1189
- function yn(e, t) {
1190
- return qe(e, this, Ut, t.cache.create(), t.serializer);
1173
+ function mn(e, t) {
1174
+ return Je(e, this, Ct, t.cache.create(), t.serializer);
1191
1175
  }
1192
- var vn = function() {
1176
+ var bn = function() {
1193
1177
  return JSON.stringify(arguments);
1194
- };
1195
- function Ye() {
1196
- this.cache = /* @__PURE__ */ Object.create(null);
1197
- }
1198
- Ye.prototype.get = function(e) {
1199
- return this.cache[e];
1200
- };
1201
- Ye.prototype.set = function(e, t) {
1202
- this.cache[e] = t;
1203
- };
1204
- var _n = {
1178
+ }, gn = (
1179
+ /** @class */
1180
+ function() {
1181
+ function e() {
1182
+ this.cache = /* @__PURE__ */ Object.create(null);
1183
+ }
1184
+ return e.prototype.get = function(t) {
1185
+ return this.cache[t];
1186
+ }, e.prototype.set = function(t, r) {
1187
+ this.cache[t] = r;
1188
+ }, e;
1189
+ }()
1190
+ ), yn = {
1205
1191
  create: function() {
1206
- return new Ye();
1192
+ return new gn();
1207
1193
  }
1208
- }, Pe = {
1209
- variadic: gn,
1210
- monadic: yn
1194
+ }, Be = {
1195
+ variadic: pn,
1196
+ monadic: mn
1211
1197
  }, b;
1212
1198
  (function(e) {
1213
1199
  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";
@@ -1220,43 +1206,43 @@ var z;
1220
1206
  (function(e) {
1221
1207
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1222
1208
  })(z || (z = {}));
1223
- function ft(e) {
1209
+ function lt(e) {
1224
1210
  return e.type === _.literal;
1225
1211
  }
1226
- function En(e) {
1212
+ function vn(e) {
1227
1213
  return e.type === _.argument;
1228
1214
  }
1229
- function Gt(e) {
1215
+ function $t(e) {
1230
1216
  return e.type === _.number;
1231
1217
  }
1232
- function Ft(e) {
1218
+ function Ut(e) {
1233
1219
  return e.type === _.date;
1234
1220
  }
1235
- function jt(e) {
1221
+ function Dt(e) {
1236
1222
  return e.type === _.time;
1237
1223
  }
1238
- function kt(e) {
1224
+ function Gt(e) {
1239
1225
  return e.type === _.select;
1240
1226
  }
1241
- function Wt(e) {
1227
+ function Ft(e) {
1242
1228
  return e.type === _.plural;
1243
1229
  }
1244
- function xn(e) {
1230
+ function _n(e) {
1245
1231
  return e.type === _.pound;
1246
1232
  }
1247
- function Vt(e) {
1233
+ function jt(e) {
1248
1234
  return e.type === _.tag;
1249
1235
  }
1250
- function Xt(e) {
1236
+ function kt(e) {
1251
1237
  return !!(e && typeof e == "object" && e.type === z.number);
1252
1238
  }
1253
- function Fe(e) {
1239
+ function Ge(e) {
1254
1240
  return !!(e && typeof e == "object" && e.type === z.dateTime);
1255
1241
  }
1256
- var zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wn = /(?:[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;
1257
- function Sn(e) {
1242
+ var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, En = /(?:[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;
1243
+ function xn(e) {
1258
1244
  var t = {};
1259
- return e.replace(wn, function(r) {
1245
+ return e.replace(En, function(r) {
1260
1246
  var n = r.length;
1261
1247
  switch (r[0]) {
1262
1248
  case "G":
@@ -1345,36 +1331,36 @@ function Sn(e) {
1345
1331
  return "";
1346
1332
  }), t;
1347
1333
  }
1348
- var Tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1349
- function Hn(e) {
1334
+ var wn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1335
+ function Sn(e) {
1350
1336
  if (e.length === 0)
1351
1337
  throw new Error("Number skeleton cannot be empty");
1352
- for (var t = e.split(Tn).filter(function(f) {
1353
- return f.length > 0;
1338
+ for (var t = e.split(wn).filter(function(c) {
1339
+ return c.length > 0;
1354
1340
  }), r = [], n = 0, i = t; n < i.length; n++) {
1355
1341
  var o = i[n], a = o.split("/");
1356
1342
  if (a.length === 0)
1357
1343
  throw new Error("Invalid number skeleton");
1358
1344
  for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
1359
- var c = h[u];
1360
- if (c.length === 0)
1345
+ var f = h[u];
1346
+ if (f.length === 0)
1361
1347
  throw new Error("Invalid number skeleton");
1362
1348
  }
1363
1349
  r.push({ stem: s, options: l });
1364
1350
  }
1365
1351
  return r;
1366
1352
  }
1367
- function Bn(e) {
1353
+ function Tn(e) {
1368
1354
  return e.replace(/^(.*?)-/, "");
1369
1355
  }
1370
- var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, Pn = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
1371
- function dt(e) {
1356
+ var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, Hn = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
1357
+ function ct(e) {
1372
1358
  var t = {};
1373
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
1359
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
1374
1360
  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)), "";
1375
1361
  }), t;
1376
1362
  }
1377
- function Jt(e) {
1363
+ function zt(e) {
1378
1364
  switch (e) {
1379
1365
  case "sign-auto":
1380
1366
  return {
@@ -1414,7 +1400,7 @@ function Jt(e) {
1414
1400
  };
1415
1401
  }
1416
1402
  }
1417
- function An(e) {
1403
+ function Bn(e) {
1418
1404
  var t;
1419
1405
  if (e[0] === "E" && e[1] === "E" ? (t = {
1420
1406
  notation: "engineering"
@@ -1422,17 +1408,17 @@ function An(e) {
1422
1408
  notation: "scientific"
1423
1409
  }, e = e.slice(1)), t) {
1424
1410
  var r = e.slice(0, 2);
1425
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qt.test(e))
1411
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xt.test(e))
1426
1412
  throw new Error("Malformed concise eng/scientific notation");
1427
1413
  t.minimumIntegerDigits = e.length;
1428
1414
  }
1429
1415
  return t;
1430
1416
  }
1431
- function mt(e) {
1432
- var t = {}, r = Jt(e);
1417
+ function dt(e) {
1418
+ var t = {}, r = zt(e);
1433
1419
  return r || t;
1434
1420
  }
1435
- function On(e) {
1421
+ function Pn(e) {
1436
1422
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1437
1423
  var i = n[r];
1438
1424
  switch (i.stem) {
@@ -1456,7 +1442,7 @@ function On(e) {
1456
1442
  continue;
1457
1443
  case "measure-unit":
1458
1444
  case "unit":
1459
- t.style = "unit", t.unit = Bn(i.options[0]);
1445
+ t.style = "unit", t.unit = Tn(i.options[0]);
1460
1446
  continue;
1461
1447
  case "compact-short":
1462
1448
  case "K":
@@ -1468,12 +1454,12 @@ function On(e) {
1468
1454
  continue;
1469
1455
  case "scientific":
1470
1456
  t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1471
- return v(v({}, l), mt(u));
1457
+ return v(v({}, l), dt(u));
1472
1458
  }, {}));
1473
1459
  continue;
1474
1460
  case "engineering":
1475
1461
  t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1476
- return v(v({}, l), mt(u));
1462
+ return v(v({}, l), dt(u));
1477
1463
  }, {}));
1478
1464
  continue;
1479
1465
  case "notation-simple":
@@ -1518,45 +1504,45 @@ function On(e) {
1518
1504
  case "integer-width":
1519
1505
  if (i.options.length > 1)
1520
1506
  throw new RangeError("integer-width stems only accept a single optional option");
1521
- i.options[0].replace(Pn, function(l, u, h, c, f, p) {
1507
+ i.options[0].replace(Hn, function(l, u, h, f, c, d) {
1522
1508
  if (u)
1523
1509
  t.minimumIntegerDigits = h.length;
1524
1510
  else {
1525
- if (c && f)
1511
+ if (f && c)
1526
1512
  throw new Error("We currently do not support maximum integer digits");
1527
- if (p)
1513
+ if (d)
1528
1514
  throw new Error("We currently do not support exact integer digits");
1529
1515
  }
1530
1516
  return "";
1531
1517
  });
1532
1518
  continue;
1533
1519
  }
1534
- if (Qt.test(i.stem)) {
1520
+ if (Xt.test(i.stem)) {
1535
1521
  t.minimumIntegerDigits = i.stem.length;
1536
1522
  continue;
1537
1523
  }
1538
- if (pt.test(i.stem)) {
1524
+ if (ft.test(i.stem)) {
1539
1525
  if (i.options.length > 1)
1540
1526
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1541
- i.stem.replace(pt, function(l, u, h, c, f, p) {
1542
- return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1527
+ i.stem.replace(ft, function(l, u, h, f, c, d) {
1528
+ return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1543
1529
  });
1544
1530
  var o = i.options[0];
1545
- o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), dt(o)));
1531
+ o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), ct(o)));
1546
1532
  continue;
1547
1533
  }
1548
- if (Zt.test(i.stem)) {
1549
- t = v(v({}, t), dt(i.stem));
1534
+ if (Vt.test(i.stem)) {
1535
+ t = v(v({}, t), ct(i.stem));
1550
1536
  continue;
1551
1537
  }
1552
- var a = Jt(i.stem);
1538
+ var a = zt(i.stem);
1553
1539
  a && (t = v(v({}, t), a));
1554
- var s = An(i.stem);
1540
+ var s = Bn(i.stem);
1555
1541
  s && (t = v(v({}, t), s));
1556
1542
  }
1557
1543
  return t;
1558
1544
  }
1559
- var fe = {
1545
+ var ce = {
1560
1546
  "001": [
1561
1547
  "H",
1562
1548
  "h"
@@ -2971,13 +2957,13 @@ var fe = {
2971
2957
  "h"
2972
2958
  ]
2973
2959
  };
2974
- function In(e, t) {
2960
+ function An(e, t) {
2975
2961
  for (var r = "", n = 0; n < e.length; n++) {
2976
2962
  var i = e.charAt(n);
2977
2963
  if (i === "j") {
2978
2964
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2979
2965
  o++, n++;
2980
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Nn(t);
2966
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = On(t);
2981
2967
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2982
2968
  r += l;
2983
2969
  for (; a-- > 0; )
@@ -2987,7 +2973,7 @@ function In(e, t) {
2987
2973
  }
2988
2974
  return r;
2989
2975
  }
2990
- function Nn(e) {
2976
+ function On(e) {
2991
2977
  var t = e.hourCycle;
2992
2978
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2993
2979
  e.hourCycles && // @ts-ignore
@@ -3006,23 +2992,23 @@ function Nn(e) {
3006
2992
  }
3007
2993
  var r = e.language, n;
3008
2994
  r !== "root" && (n = e.maximize().region);
3009
- var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
2995
+ var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
3010
2996
  return i[0];
3011
2997
  }
3012
- var Ae, Ln = new RegExp("^".concat(zt.source, "*")), Mn = new RegExp("".concat(zt.source, "*$"));
2998
+ var Pe, In = new RegExp("^".concat(Wt.source, "*")), Nn = new RegExp("".concat(Wt.source, "*$"));
3013
2999
  function y(e, t) {
3014
3000
  return { start: e, end: t };
3015
3001
  }
3016
- var Cn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Rn = !!String.fromCodePoint, $n = !!Object.fromEntries, Un = !!String.prototype.codePointAt, Dn = !!String.prototype.trimStart, Gn = !!String.prototype.trimEnd, Fn = !!Number.isSafeInteger, jn = Fn ? Number.isSafeInteger : function(e) {
3002
+ var Ln = !!String.prototype.startsWith && "_a".startsWith("a", 1), Mn = !!String.fromCodePoint, Cn = !!Object.fromEntries, Rn = !!String.prototype.codePointAt, $n = !!String.prototype.trimStart, Un = !!String.prototype.trimEnd, Dn = !!Number.isSafeInteger, Gn = Dn ? Number.isSafeInteger : function(e) {
3017
3003
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3018
- }, je = !0;
3004
+ }, Fe = !0;
3019
3005
  try {
3020
- var kn = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3021
- je = ((Ae = kn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
3006
+ var Fn = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3007
+ Fe = ((Pe = Fn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
3022
3008
  } catch {
3023
- je = !1;
3009
+ Fe = !1;
3024
3010
  }
3025
- var bt = Cn ? (
3011
+ var pt = Ln ? (
3026
3012
  // Native
3027
3013
  function(t, r, n) {
3028
3014
  return t.startsWith(r, n);
@@ -3032,7 +3018,7 @@ var bt = Cn ? (
3032
3018
  function(t, r, n) {
3033
3019
  return t.slice(n, n + r.length) === r;
3034
3020
  }
3035
- ), ke = Rn ? String.fromCodePoint : (
3021
+ ), je = Mn ? String.fromCodePoint : (
3036
3022
  // IE11
3037
3023
  function() {
3038
3024
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3044,9 +3030,9 @@ var bt = Cn ? (
3044
3030
  }
3045
3031
  return n;
3046
3032
  }
3047
- ), gt = (
3033
+ ), mt = (
3048
3034
  // native
3049
- $n ? Object.fromEntries : (
3035
+ Cn ? Object.fromEntries : (
3050
3036
  // Ponyfill
3051
3037
  function(t) {
3052
3038
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3056,7 +3042,7 @@ var bt = Cn ? (
3056
3042
  return r;
3057
3043
  }
3058
3044
  )
3059
- ), qt = Un ? (
3045
+ ), Zt = Rn ? (
3060
3046
  // Native
3061
3047
  function(t, r) {
3062
3048
  return t.codePointAt(r);
@@ -3070,7 +3056,7 @@ var bt = Cn ? (
3070
3056
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3071
3057
  }
3072
3058
  }
3073
- ), Wn = Dn ? (
3059
+ ), jn = $n ? (
3074
3060
  // Native
3075
3061
  function(t) {
3076
3062
  return t.trimStart();
@@ -3078,9 +3064,9 @@ var bt = Cn ? (
3078
3064
  ) : (
3079
3065
  // Ponyfill
3080
3066
  function(t) {
3081
- return t.replace(Ln, "");
3067
+ return t.replace(In, "");
3082
3068
  }
3083
- ), Vn = Gn ? (
3069
+ ), kn = Un ? (
3084
3070
  // Native
3085
3071
  function(t) {
3086
3072
  return t.trimEnd();
@@ -3088,32 +3074,32 @@ var bt = Cn ? (
3088
3074
  ) : (
3089
3075
  // Ponyfill
3090
3076
  function(t) {
3091
- return t.replace(Mn, "");
3077
+ return t.replace(Nn, "");
3092
3078
  }
3093
3079
  );
3094
- function Yt(e, t) {
3080
+ function Qt(e, t) {
3095
3081
  return new RegExp(e, t);
3096
3082
  }
3097
- var We;
3098
- if (je) {
3099
- var yt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3100
- We = function(t, r) {
3083
+ var ke;
3084
+ if (Fe) {
3085
+ var bt = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3086
+ ke = function(t, r) {
3101
3087
  var n;
3102
- yt.lastIndex = r;
3103
- var i = yt.exec(t);
3088
+ bt.lastIndex = r;
3089
+ var i = bt.exec(t);
3104
3090
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3105
3091
  };
3106
3092
  } else
3107
- We = function(t, r) {
3093
+ ke = function(t, r) {
3108
3094
  for (var n = []; ; ) {
3109
- var i = qt(t, r);
3110
- if (i === void 0 || Kt(i) || Qn(i))
3095
+ var i = Zt(t, r);
3096
+ if (i === void 0 || Jt(i) || zn(i))
3111
3097
  break;
3112
3098
  n.push(i), r += i >= 65536 ? 2 : 1;
3113
3099
  }
3114
- return ke.apply(void 0, n);
3100
+ return je.apply(void 0, n);
3115
3101
  };
3116
- var Xn = (
3102
+ var Wn = (
3117
3103
  /** @class */
3118
3104
  function() {
3119
3105
  function e(t, r) {
@@ -3144,7 +3130,7 @@ var Xn = (
3144
3130
  if (n)
3145
3131
  break;
3146
3132
  return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
3147
- } else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
3133
+ } else if (o === 60 && !this.ignoreTag && We(this.peek() || 0)) {
3148
3134
  var a = this.parseTag(t, r);
3149
3135
  if (a.err)
3150
3136
  return a;
@@ -3177,7 +3163,7 @@ var Xn = (
3177
3163
  return o;
3178
3164
  var a = o.val, s = this.clonePosition();
3179
3165
  if (this.bumpIf("</")) {
3180
- if (this.isEOF() || !Ve(this.char()))
3166
+ if (this.isEOF() || !We(this.char()))
3181
3167
  return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
3182
3168
  var l = this.clonePosition(), u = this.parseTagName();
3183
3169
  return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -3195,7 +3181,7 @@ var Xn = (
3195
3181
  return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
3196
3182
  }, e.prototype.parseTagName = function() {
3197
3183
  var t = this.offset();
3198
- for (this.bump(); !this.isEOF() && Zn(this.char()); )
3184
+ for (this.bump(); !this.isEOF() && Xn(this.char()); )
3199
3185
  this.bump();
3200
3186
  return this.message.slice(t, this.offset());
3201
3187
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3224,7 +3210,7 @@ var Xn = (
3224
3210
  };
3225
3211
  }, e.prototype.tryParseLeftAngleBracket = function() {
3226
3212
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3227
- !zn(this.peek() || 0)) ? (this.bump(), "<") : null;
3213
+ !Vn(this.peek() || 0)) ? (this.bump(), "<") : null;
3228
3214
  }, e.prototype.tryParseQuote = function(t) {
3229
3215
  if (this.isEOF() || this.char() !== 39)
3230
3216
  return null;
@@ -3258,12 +3244,12 @@ var Xn = (
3258
3244
  r.push(n);
3259
3245
  this.bump();
3260
3246
  }
3261
- return ke.apply(void 0, r);
3247
+ return je.apply(void 0, r);
3262
3248
  }, e.prototype.tryParseUnquoted = function(t, r) {
3263
3249
  if (this.isEOF())
3264
3250
  return null;
3265
3251
  var n = this.char();
3266
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
3252
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
3267
3253
  }, e.prototype.parseArgument = function(t, r) {
3268
3254
  var n = this.clonePosition();
3269
3255
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3292,7 +3278,7 @@ var Xn = (
3292
3278
  return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
3293
3279
  }
3294
3280
  }, e.prototype.parseIdentifierIfPossible = function() {
3295
- var t = this.clonePosition(), r = this.offset(), n = We(this.message, r), i = r + n.length;
3281
+ var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
3296
3282
  this.bumpTo(i);
3297
3283
  var o = this.clonePosition(), a = y(t, o);
3298
3284
  return { value: n, location: a };
@@ -3308,40 +3294,40 @@ var Xn = (
3308
3294
  var u = null;
3309
3295
  if (this.bumpIf(",")) {
3310
3296
  this.bumpSpace();
3311
- var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3312
- if (c.err)
3313
- return c;
3314
- var f = Vn(c.val);
3315
- if (f.length === 0)
3297
+ var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3298
+ if (f.err)
3299
+ return f;
3300
+ var c = kn(f.val);
3301
+ if (c.length === 0)
3316
3302
  return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
3317
- var p = y(h, this.clonePosition());
3318
- u = { style: f, styleLocation: p };
3303
+ var d = y(h, this.clonePosition());
3304
+ u = { style: c, styleLocation: d };
3319
3305
  }
3320
3306
  var m = this.tryParseArgumentClose(i);
3321
3307
  if (m.err)
3322
3308
  return m;
3323
3309
  var g = y(i, this.clonePosition());
3324
- if (u && bt(u?.style, "::", 0)) {
3325
- var w = Wn(u.style.slice(2));
3310
+ if (u && pt(u?.style, "::", 0)) {
3311
+ var w = jn(u.style.slice(2));
3326
3312
  if (s === "number") {
3327
- var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
3328
- return c.err ? c : {
3329
- val: { type: _.number, value: n, location: g, style: c.val },
3313
+ var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
3314
+ return f.err ? f : {
3315
+ val: { type: _.number, value: n, location: g, style: f.val },
3330
3316
  err: null
3331
3317
  };
3332
3318
  } else {
3333
3319
  if (w.length === 0)
3334
3320
  return this.error(b.EXPECT_DATE_TIME_SKELETON, g);
3335
3321
  var L = w;
3336
- this.locale && (L = In(w, this.locale));
3337
- var f = {
3322
+ this.locale && (L = An(w, this.locale));
3323
+ var c = {
3338
3324
  type: z.dateTime,
3339
3325
  pattern: L,
3340
3326
  location: u.styleLocation,
3341
- parsedOptions: this.shouldParseSkeletons ? Sn(L) : {}
3327
+ parsedOptions: this.shouldParseSkeletons ? xn(L) : {}
3342
3328
  }, P = s === "date" ? _.date : _.time;
3343
3329
  return {
3344
- val: { type: P, value: n, location: g, style: f },
3330
+ val: { type: P, value: n, location: g, style: c },
3345
3331
  err: null
3346
3332
  };
3347
3333
  }
@@ -3368,10 +3354,10 @@ var Xn = (
3368
3354
  if (!this.bumpIf(":"))
3369
3355
  return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
3370
3356
  this.bumpSpace();
3371
- var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3372
- if (c.err)
3373
- return c;
3374
- this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A = c.val;
3357
+ var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3358
+ if (f.err)
3359
+ return f;
3360
+ this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A = f.val;
3375
3361
  }
3376
3362
  var U = this.tryParsePluralOrSelectOptions(t, s, r, $);
3377
3363
  if (U.err)
@@ -3384,7 +3370,7 @@ var Xn = (
3384
3370
  val: {
3385
3371
  type: _.select,
3386
3372
  value: n,
3387
- options: gt(U.val),
3373
+ options: mt(U.val),
3388
3374
  location: he
3389
3375
  },
3390
3376
  err: null
@@ -3392,7 +3378,7 @@ var Xn = (
3392
3378
  val: {
3393
3379
  type: _.plural,
3394
3380
  value: n,
3395
- options: gt(U.val),
3381
+ options: mt(U.val),
3396
3382
  offset: A,
3397
3383
  pluralType: s === "plural" ? "cardinal" : "ordinal",
3398
3384
  location: he
@@ -3443,7 +3429,7 @@ var Xn = (
3443
3429
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3444
3430
  var n = [];
3445
3431
  try {
3446
- n = Hn(t);
3432
+ n = Sn(t);
3447
3433
  } catch {
3448
3434
  return this.error(b.INVALID_NUMBER_SKELETON, r);
3449
3435
  }
@@ -3452,39 +3438,39 @@ var Xn = (
3452
3438
  type: z.number,
3453
3439
  tokens: n,
3454
3440
  location: r,
3455
- parsedOptions: this.shouldParseSkeletons ? On(n) : {}
3441
+ parsedOptions: this.shouldParseSkeletons ? Pn(n) : {}
3456
3442
  },
3457
3443
  err: null
3458
3444
  };
3459
3445
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3460
3446
  for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3461
3447
  if (u.length === 0) {
3462
- var c = this.clonePosition();
3448
+ var f = this.clonePosition();
3463
3449
  if (r !== "select" && this.bumpIf("=")) {
3464
- var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3465
- if (f.err)
3466
- return f;
3467
- h = y(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3450
+ var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3451
+ if (c.err)
3452
+ return c;
3453
+ h = y(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3468
3454
  } else
3469
3455
  break;
3470
3456
  }
3471
3457
  if (l.has(u))
3472
3458
  return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3473
3459
  u === "other" && (a = !0), this.bumpSpace();
3474
- var p = this.clonePosition();
3460
+ var d = this.clonePosition();
3475
3461
  if (!this.bumpIf("{"))
3476
3462
  return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
3477
3463
  var m = this.parseMessage(t + 1, r, n);
3478
3464
  if (m.err)
3479
3465
  return m;
3480
- var g = this.tryParseArgumentClose(p);
3466
+ var g = this.tryParseArgumentClose(d);
3481
3467
  if (g.err)
3482
3468
  return g;
3483
3469
  s.push([
3484
3470
  u,
3485
3471
  {
3486
3472
  value: m.val,
3487
- location: y(p, this.clonePosition())
3473
+ location: y(d, this.clonePosition())
3488
3474
  }
3489
3475
  ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
3490
3476
  }
@@ -3500,7 +3486,7 @@ var Xn = (
3500
3486
  break;
3501
3487
  }
3502
3488
  var l = y(i, this.clonePosition());
3503
- return o ? (a *= n, jn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3489
+ return o ? (a *= n, Gn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3504
3490
  }, e.prototype.offset = function() {
3505
3491
  return this.position.offset;
3506
3492
  }, e.prototype.isEOF = function() {
@@ -3515,7 +3501,7 @@ var Xn = (
3515
3501
  var t = this.position.offset;
3516
3502
  if (t >= this.message.length)
3517
3503
  throw Error("out of bound");
3518
- var r = qt(this.message, t);
3504
+ var r = Zt(this.message, t);
3519
3505
  if (r === void 0)
3520
3506
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3521
3507
  return r;
@@ -3534,7 +3520,7 @@ var Xn = (
3534
3520
  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);
3535
3521
  }
3536
3522
  }, e.prototype.bumpIf = function(t) {
3537
- if (bt(this.message, t, this.offset())) {
3523
+ if (pt(this.message, t, this.offset())) {
3538
3524
  for (var r = 0; r < t.length; r++)
3539
3525
  this.bump();
3540
3526
  return !0;
@@ -3556,7 +3542,7 @@ var Xn = (
3556
3542
  break;
3557
3543
  }
3558
3544
  }, e.prototype.bumpSpace = function() {
3559
- for (; !this.isEOF() && Kt(this.char()); )
3545
+ for (; !this.isEOF() && Jt(this.char()); )
3560
3546
  this.bump();
3561
3547
  }, e.prototype.peek = function() {
3562
3548
  if (this.isEOF())
@@ -3566,38 +3552,38 @@ var Xn = (
3566
3552
  }, e;
3567
3553
  }()
3568
3554
  );
3569
- function Ve(e) {
3555
+ function We(e) {
3570
3556
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3571
3557
  }
3572
- function zn(e) {
3573
- return Ve(e) || e === 47;
3558
+ function Vn(e) {
3559
+ return We(e) || e === 47;
3574
3560
  }
3575
- function Zn(e) {
3561
+ function Xn(e) {
3576
3562
  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;
3577
3563
  }
3578
- function Kt(e) {
3564
+ function Jt(e) {
3579
3565
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3580
3566
  }
3581
- function Qn(e) {
3567
+ function zn(e) {
3582
3568
  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;
3583
3569
  }
3584
- function Xe(e) {
3570
+ function Ve(e) {
3585
3571
  e.forEach(function(t) {
3586
- if (delete t.location, kt(t) || Wt(t))
3572
+ if (delete t.location, Gt(t) || Ft(t))
3587
3573
  for (var r in t.options)
3588
- delete t.options[r].location, Xe(t.options[r].value);
3574
+ delete t.options[r].location, Ve(t.options[r].value);
3589
3575
  else
3590
- Gt(t) && Xt(t.style) || (Ft(t) || jt(t)) && Fe(t.style) ? delete t.style.location : Vt(t) && Xe(t.children);
3576
+ $t(t) && kt(t.style) || (Ut(t) || Dt(t)) && Ge(t.style) ? delete t.style.location : jt(t) && Ve(t.children);
3591
3577
  });
3592
3578
  }
3593
- function Jn(e, t) {
3579
+ function Zn(e, t) {
3594
3580
  t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3595
- var r = new Xn(e, t).parse();
3581
+ var r = new Wn(e, t).parse();
3596
3582
  if (r.err) {
3597
3583
  var n = SyntaxError(b[r.err.kind]);
3598
3584
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3599
3585
  }
3600
- return t?.captureLocation || Xe(r.val), r.val;
3586
+ return t?.captureLocation || Ve(r.val), r.val;
3601
3587
  }
3602
3588
  var Z;
3603
3589
  (function(e) {
@@ -3615,7 +3601,7 @@ var Ee = (
3615
3601
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3616
3602
  }, t;
3617
3603
  }(Error)
3618
- ), vt = (
3604
+ ), gt = (
3619
3605
  /** @class */
3620
3606
  function(e) {
3621
3607
  N(t, e);
@@ -3624,7 +3610,7 @@ var Ee = (
3624
3610
  }
3625
3611
  return t;
3626
3612
  }(Ee)
3627
- ), qn = (
3613
+ ), Qn = (
3628
3614
  /** @class */
3629
3615
  function(e) {
3630
3616
  N(t, e);
@@ -3633,7 +3619,7 @@ var Ee = (
3633
3619
  }
3634
3620
  return t;
3635
3621
  }(Ee)
3636
- ), Yn = (
3622
+ ), Jn = (
3637
3623
  /** @class */
3638
3624
  function(e) {
3639
3625
  N(t, e);
@@ -3646,17 +3632,17 @@ var Ee = (
3646
3632
  (function(e) {
3647
3633
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3648
3634
  })(S || (S = {}));
3649
- function Kn(e) {
3635
+ function qn(e) {
3650
3636
  return e.length < 2 ? e : e.reduce(function(t, r) {
3651
3637
  var n = t[t.length - 1];
3652
3638
  return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
3653
3639
  }, []);
3654
3640
  }
3655
- function ei(e) {
3641
+ function Yn(e) {
3656
3642
  return typeof e == "function";
3657
3643
  }
3658
3644
  function me(e, t, r, n, i, o, a) {
3659
- if (e.length === 1 && ft(e[0]))
3645
+ if (e.length === 1 && lt(e[0]))
3660
3646
  return [
3661
3647
  {
3662
3648
  type: S.literal,
@@ -3665,59 +3651,59 @@ function me(e, t, r, n, i, o, a) {
3665
3651
  ];
3666
3652
  for (var s = [], l = 0, u = e; l < u.length; l++) {
3667
3653
  var h = u[l];
3668
- if (ft(h)) {
3654
+ if (lt(h)) {
3669
3655
  s.push({
3670
3656
  type: S.literal,
3671
3657
  value: h.value
3672
3658
  });
3673
3659
  continue;
3674
3660
  }
3675
- if (xn(h)) {
3661
+ if (_n(h)) {
3676
3662
  typeof o == "number" && s.push({
3677
3663
  type: S.literal,
3678
3664
  value: r.getNumberFormat(t).format(o)
3679
3665
  });
3680
3666
  continue;
3681
3667
  }
3682
- var c = h.value;
3683
- if (!(i && c in i))
3684
- throw new Yn(c, a);
3685
- var f = i[c];
3686
- if (En(h)) {
3687
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
3688
- type: typeof f == "string" ? S.literal : S.object,
3689
- value: f
3668
+ var f = h.value;
3669
+ if (!(i && f in i))
3670
+ throw new Jn(f, a);
3671
+ var c = i[f];
3672
+ if (vn(h)) {
3673
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
3674
+ type: typeof c == "string" ? S.literal : S.object,
3675
+ value: c
3690
3676
  });
3691
3677
  continue;
3692
3678
  }
3693
- if (Ft(h)) {
3694
- var p = typeof h.style == "string" ? n.date[h.style] : Fe(h.style) ? h.style.parsedOptions : void 0;
3679
+ if (Ut(h)) {
3680
+ var d = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
3695
3681
  s.push({
3696
3682
  type: S.literal,
3697
- value: r.getDateTimeFormat(t, p).format(f)
3683
+ value: r.getDateTimeFormat(t, d).format(c)
3698
3684
  });
3699
3685
  continue;
3700
3686
  }
3701
- if (jt(h)) {
3702
- var p = typeof h.style == "string" ? n.time[h.style] : Fe(h.style) ? h.style.parsedOptions : n.time.medium;
3687
+ if (Dt(h)) {
3688
+ var d = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
3703
3689
  s.push({
3704
3690
  type: S.literal,
3705
- value: r.getDateTimeFormat(t, p).format(f)
3691
+ value: r.getDateTimeFormat(t, d).format(c)
3706
3692
  });
3707
3693
  continue;
3708
3694
  }
3709
- if (Gt(h)) {
3710
- var p = typeof h.style == "string" ? n.number[h.style] : Xt(h.style) ? h.style.parsedOptions : void 0;
3711
- p && p.scale && (f = f * (p.scale || 1)), s.push({
3695
+ if ($t(h)) {
3696
+ var d = typeof h.style == "string" ? n.number[h.style] : kt(h.style) ? h.style.parsedOptions : void 0;
3697
+ d && d.scale && (c = c * (d.scale || 1)), s.push({
3712
3698
  type: S.literal,
3713
- value: r.getNumberFormat(t, p).format(f)
3699
+ value: r.getNumberFormat(t, d).format(c)
3714
3700
  });
3715
3701
  continue;
3716
3702
  }
3717
- if (Vt(h)) {
3703
+ if (jt(h)) {
3718
3704
  var m = h.children, g = h.value, w = i[g];
3719
- if (!ei(w))
3720
- throw new qn(g, "function", a);
3705
+ if (!Yn(w))
3706
+ throw new Qn(g, "function", a);
3721
3707
  var L = me(m, t, r, n, i, o), P = w(L.map(function(A) {
3722
3708
  return A.value;
3723
3709
  }));
@@ -3728,42 +3714,42 @@ function me(e, t, r, n, i, o, a) {
3728
3714
  };
3729
3715
  }));
3730
3716
  }
3731
- if (kt(h)) {
3732
- var T = h.options[f] || h.options.other;
3717
+ if (Gt(h)) {
3718
+ var T = h.options[c] || h.options.other;
3733
3719
  if (!T)
3734
- throw new vt(h.value, f, Object.keys(h.options), a);
3720
+ throw new gt(h.value, c, Object.keys(h.options), a);
3735
3721
  s.push.apply(s, me(T.value, t, r, n, i));
3736
3722
  continue;
3737
3723
  }
3738
- if (Wt(h)) {
3739
- var T = h.options["=".concat(f)];
3724
+ if (Ft(h)) {
3725
+ var T = h.options["=".concat(c)];
3740
3726
  if (!T) {
3741
3727
  if (!Intl.PluralRules)
3742
3728
  throw new Ee(`Intl.PluralRules is not available in this environment.
3743
3729
  Try polyfilling it using "@formatjs/intl-pluralrules"
3744
3730
  `, Z.MISSING_INTL_API, a);
3745
- var $ = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3731
+ var $ = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3746
3732
  T = h.options[$] || h.options.other;
3747
3733
  }
3748
3734
  if (!T)
3749
- throw new vt(h.value, f, Object.keys(h.options), a);
3750
- s.push.apply(s, me(T.value, t, r, n, i, f - (h.offset || 0)));
3735
+ throw new gt(h.value, c, Object.keys(h.options), a);
3736
+ s.push.apply(s, me(T.value, t, r, n, i, c - (h.offset || 0)));
3751
3737
  continue;
3752
3738
  }
3753
3739
  }
3754
- return Kn(s);
3740
+ return qn(s);
3755
3741
  }
3756
- function ti(e, t) {
3742
+ function Kn(e, t) {
3757
3743
  return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3758
3744
  return r[n] = v(v({}, e[n]), t[n] || {}), r;
3759
3745
  }, {})) : e;
3760
3746
  }
3761
- function ri(e, t) {
3747
+ function ei(e, t) {
3762
3748
  return t ? Object.keys(e).reduce(function(r, n) {
3763
- return r[n] = ti(e[n], t[n]), r;
3749
+ return r[n] = Kn(e[n], t[n]), r;
3764
3750
  }, v({}, e)) : e;
3765
3751
  }
3766
- function Oe(e) {
3752
+ function Ae(e) {
3767
3753
  return {
3768
3754
  create: function() {
3769
3755
  return {
@@ -3777,39 +3763,39 @@ function Oe(e) {
3777
3763
  }
3778
3764
  };
3779
3765
  }
3780
- function ni(e) {
3766
+ function ti(e) {
3781
3767
  return e === void 0 && (e = {
3782
3768
  number: {},
3783
3769
  dateTime: {},
3784
3770
  pluralRules: {}
3785
3771
  }), {
3786
- getNumberFormat: Be(function() {
3772
+ getNumberFormat: He(function() {
3787
3773
  for (var t, r = [], n = 0; n < arguments.length; n++)
3788
3774
  r[n] = arguments[n];
3789
3775
  return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
3790
3776
  }, {
3791
- cache: Oe(e.number),
3792
- strategy: Pe.variadic
3777
+ cache: Ae(e.number),
3778
+ strategy: Be.variadic
3793
3779
  }),
3794
- getDateTimeFormat: Be(function() {
3780
+ getDateTimeFormat: He(function() {
3795
3781
  for (var t, r = [], n = 0; n < arguments.length; n++)
3796
3782
  r[n] = arguments[n];
3797
3783
  return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
3798
3784
  }, {
3799
- cache: Oe(e.dateTime),
3800
- strategy: Pe.variadic
3785
+ cache: Ae(e.dateTime),
3786
+ strategy: Be.variadic
3801
3787
  }),
3802
- getPluralRules: Be(function() {
3788
+ getPluralRules: He(function() {
3803
3789
  for (var t, r = [], n = 0; n < arguments.length; n++)
3804
3790
  r[n] = arguments[n];
3805
3791
  return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
3806
3792
  }, {
3807
- cache: Oe(e.pluralRules),
3808
- strategy: Pe.variadic
3793
+ cache: Ae(e.pluralRules),
3794
+ strategy: Be.variadic
3809
3795
  })
3810
3796
  };
3811
3797
  }
3812
- var ii = (
3798
+ var ri = (
3813
3799
  /** @class */
3814
3800
  function() {
3815
3801
  function e(t, r, n, i) {
@@ -3823,8 +3809,8 @@ var ii = (
3823
3809
  var u = o.formatToParts(l);
3824
3810
  if (u.length === 1)
3825
3811
  return u[0].value;
3826
- var h = u.reduce(function(c, f) {
3827
- return !c.length || f.type !== S.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3812
+ var h = u.reduce(function(f, c) {
3813
+ return !f.length || c.type !== S.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3828
3814
  }, []);
3829
3815
  return h.length <= 1 ? h[0] || "" : h;
3830
3816
  }, this.formatToParts = function(l) {
@@ -3841,13 +3827,13 @@ var ii = (
3841
3827
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3842
3828
  var a = i || {};
3843
3829
  a.formatters;
3844
- var s = Rr(a, ["formatters"]);
3830
+ var s = Lr(a, ["formatters"]);
3845
3831
  this.ast = e.__parse(t, v(v({}, s), { locale: this.resolvedLocale }));
3846
3832
  } else
3847
3833
  this.ast = t;
3848
3834
  if (!Array.isArray(this.ast))
3849
3835
  throw new TypeError("A message must be provided as a String or AST.");
3850
- this.formats = ri(e.formats, n), this.formatters = i && i.formatters || ni(this.formatterCache);
3836
+ this.formats = ei(e.formats, n), this.formatters = i && i.formatters || ti(this.formatterCache);
3851
3837
  }
3852
3838
  return Object.defineProperty(e, "defaultLocale", {
3853
3839
  get: function() {
@@ -3860,7 +3846,7 @@ var ii = (
3860
3846
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3861
3847
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3862
3848
  }
3863
- }, e.__parse = Jn, e.formats = {
3849
+ }, e.__parse = Zn, e.formats = {
3864
3850
  number: {
3865
3851
  integer: {
3866
3852
  maximumFractionDigits: 0
@@ -3921,7 +3907,7 @@ var ii = (
3921
3907
  }, e;
3922
3908
  }()
3923
3909
  );
3924
- function oi(e, t) {
3910
+ function ni(e, t) {
3925
3911
  if (t == null)
3926
3912
  return;
3927
3913
  if (t in e)
@@ -3942,92 +3928,92 @@ function oi(e, t) {
3942
3928
  n = void 0;
3943
3929
  return n;
3944
3930
  }
3945
- const R = {}, si = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), er = (e, t) => {
3931
+ const R = {}, ii = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), qt = (e, t) => {
3946
3932
  if (t == null)
3947
3933
  return;
3948
3934
  if (t in R && e in R[t])
3949
3935
  return R[t][e];
3950
3936
  const r = xe(t);
3951
3937
  for (let n = 0; n < r.length; n++) {
3952
- const i = r[n], o = ui(i, e);
3938
+ const i = r[n], o = si(i, e);
3953
3939
  if (o)
3954
- return si(e, t, o);
3940
+ return ii(e, t, o);
3955
3941
  }
3956
3942
  };
3957
- let Ke;
3943
+ let qe;
3958
3944
  const ue = _e({});
3959
- function ai(e) {
3960
- return Ke[e] || null;
3945
+ function oi(e) {
3946
+ return qe[e] || null;
3961
3947
  }
3962
- function tr(e) {
3963
- return e in Ke;
3948
+ function Yt(e) {
3949
+ return e in qe;
3964
3950
  }
3965
- function ui(e, t) {
3966
- if (!tr(e))
3951
+ function si(e, t) {
3952
+ if (!Yt(e))
3967
3953
  return null;
3968
- const r = ai(e);
3969
- return oi(r, t);
3954
+ const r = oi(e);
3955
+ return ni(r, t);
3970
3956
  }
3971
- function hi(e) {
3957
+ function ai(e) {
3972
3958
  if (e == null)
3973
3959
  return;
3974
3960
  const t = xe(e);
3975
3961
  for (let r = 0; r < t.length; r++) {
3976
3962
  const n = t[r];
3977
- if (tr(n))
3963
+ if (Yt(n))
3978
3964
  return n;
3979
3965
  }
3980
3966
  }
3981
- function rr(e, ...t) {
3982
- delete R[e], ue.update((r) => (r[e] = dn.all([r[e] || {}, ...t]), r));
3967
+ function Kt(e, ...t) {
3968
+ delete R[e], ue.update((r) => (r[e] = fn.all([r[e] || {}, ...t]), r));
3983
3969
  }
3984
3970
  q(
3985
3971
  [ue],
3986
3972
  ([e]) => Object.keys(e)
3987
3973
  );
3988
- ue.subscribe((e) => Ke = e);
3974
+ ue.subscribe((e) => qe = e);
3989
3975
  const be = {};
3990
- function li(e, t) {
3976
+ function ui(e, t) {
3991
3977
  be[e].delete(t), be[e].size === 0 && delete be[e];
3992
3978
  }
3993
- function nr(e) {
3979
+ function er(e) {
3994
3980
  return be[e];
3995
3981
  }
3996
- function ci(e) {
3982
+ function hi(e) {
3997
3983
  return xe(e).map((t) => {
3998
- const r = nr(t);
3984
+ const r = er(t);
3999
3985
  return [t, r ? [...r] : []];
4000
3986
  }).filter(([, t]) => t.length > 0);
4001
3987
  }
4002
- function ze(e) {
3988
+ function Xe(e) {
4003
3989
  return e == null ? !1 : xe(e).some(
4004
3990
  (t) => {
4005
3991
  var r;
4006
- return (r = nr(t)) == null ? void 0 : r.size;
3992
+ return (r = er(t)) == null ? void 0 : r.size;
4007
3993
  }
4008
3994
  );
4009
3995
  }
4010
- function fi(e, t) {
3996
+ function li(e, t) {
4011
3997
  return Promise.all(
4012
- t.map((n) => (li(e, n), n().then((i) => i.default || i)))
4013
- ).then((n) => rr(e, ...n));
3998
+ t.map((n) => (ui(e, n), n().then((i) => i.default || i)))
3999
+ ).then((n) => Kt(e, ...n));
4014
4000
  }
4015
4001
  const ee = {};
4016
- function ir(e) {
4017
- if (!ze(e))
4002
+ function tr(e) {
4003
+ if (!Xe(e))
4018
4004
  return e in ee ? ee[e] : Promise.resolve();
4019
- const t = ci(e);
4005
+ const t = hi(e);
4020
4006
  return ee[e] = Promise.all(
4021
4007
  t.map(
4022
- ([r, n]) => fi(r, n)
4008
+ ([r, n]) => li(r, n)
4023
4009
  )
4024
4010
  ).then(() => {
4025
- if (ze(e))
4026
- return ir(e);
4011
+ if (Xe(e))
4012
+ return tr(e);
4027
4013
  delete ee[e];
4028
4014
  }), ee[e];
4029
4015
  }
4030
- const pi = {
4016
+ const fi = {
4031
4017
  number: {
4032
4018
  scientific: { notation: "scientific" },
4033
4019
  engineering: { notation: "engineering" },
@@ -4056,57 +4042,57 @@ const pi = {
4056
4042
  timeZoneName: "short"
4057
4043
  }
4058
4044
  }
4059
- }, di = {
4045
+ }, ci = {
4060
4046
  fallbackLocale: null,
4061
4047
  loadingDelay: 200,
4062
- formats: pi,
4048
+ formats: fi,
4063
4049
  warnOnMissingMessages: !0,
4064
4050
  handleMissingMessage: void 0,
4065
4051
  ignoreTag: !0
4066
- }, mi = di;
4052
+ }, di = ci;
4067
4053
  function Q() {
4068
- return mi;
4069
- }
4070
- const Ie = _e(!1);
4071
- var bi = Object.defineProperty, gi = Object.defineProperties, yi = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, vi = Object.prototype.hasOwnProperty, _i = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ei = (e, t) => {
4072
- for (var r in t || (t = {}))
4073
- vi.call(t, r) && Et(e, r, t[r]);
4074
- if (_t)
4075
- for (var r of _t(t))
4076
- _i.call(t, r) && Et(e, r, t[r]);
4054
+ return di;
4055
+ }
4056
+ const Oe = _e(!1);
4057
+ var pi = Object.defineProperty, mi = Object.defineProperties, bi = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, gi = Object.prototype.hasOwnProperty, yi = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vi = (e, t) => {
4058
+ for (var r in t)
4059
+ gi.call(t, r) && vt(e, r, t[r]);
4060
+ if (yt)
4061
+ for (var r of yt(t))
4062
+ yi.call(t, r) && vt(e, r, t[r]);
4077
4063
  return e;
4078
- }, xi = (e, t) => gi(e, yi(t));
4079
- let Ze;
4064
+ }, _i = (e, t) => mi(e, bi(t));
4065
+ let ze;
4080
4066
  const ge = _e(null);
4081
- function xt(e) {
4067
+ function _t(e) {
4082
4068
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4083
4069
  }
4084
4070
  function xe(e, t = Q().fallbackLocale) {
4085
- const r = xt(e);
4086
- return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
4071
+ const r = _t(e);
4072
+ return t ? [.../* @__PURE__ */ new Set([...r, ..._t(t)])] : r;
4087
4073
  }
4088
4074
  function D() {
4089
- return Ze ?? void 0;
4075
+ return ze ?? void 0;
4090
4076
  }
4091
4077
  ge.subscribe((e) => {
4092
- Ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4078
+ ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4093
4079
  });
4094
- const wi = (e) => {
4095
- if (e && hi(e) && ze(e)) {
4080
+ const Ei = (e) => {
4081
+ if (e && ai(e) && Xe(e)) {
4096
4082
  const { loadingDelay: t } = Q();
4097
4083
  let r;
4098
4084
  return typeof window < "u" && D() != null && t ? r = window.setTimeout(
4099
- () => Ie.set(!0),
4085
+ () => Oe.set(!0),
4100
4086
  t
4101
- ) : Ie.set(!0), ir(e).then(() => {
4087
+ ) : Oe.set(!0), tr(e).then(() => {
4102
4088
  ge.set(e);
4103
4089
  }).finally(() => {
4104
- clearTimeout(r), Ie.set(!1);
4090
+ clearTimeout(r), Oe.set(!1);
4105
4091
  });
4106
4092
  }
4107
4093
  return ge.set(e);
4108
- }, Y = xi(Ei({}, ge), {
4109
- set: wi
4094
+ }, Y = _i(vi({}, ge), {
4095
+ set: Ei
4110
4096
  }), we = (e) => {
4111
4097
  const t = /* @__PURE__ */ Object.create(null);
4112
4098
  return (n) => {
@@ -4114,20 +4100,20 @@ const wi = (e) => {
4114
4100
  return i in t ? t[i] : t[i] = e(n);
4115
4101
  };
4116
4102
  };
4117
- var Si = Object.defineProperty, ye = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
4103
+ var xi = Object.defineProperty, ye = Object.getOwnPropertySymbols, rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
4118
4104
  for (var r in t || (t = {}))
4119
- or.call(t, r) && wt(e, r, t[r]);
4105
+ rr.call(t, r) && Et(e, r, t[r]);
4120
4106
  if (ye)
4121
4107
  for (var r of ye(t))
4122
- sr.call(t, r) && wt(e, r, t[r]);
4108
+ nr.call(t, r) && Et(e, r, t[r]);
4123
4109
  return e;
4124
4110
  }, K = (e, t) => {
4125
4111
  var r = {};
4126
4112
  for (var n in e)
4127
- or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4113
+ rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4128
4114
  if (e != null && ye)
4129
4115
  for (var n of ye(e))
4130
- t.indexOf(n) < 0 && sr.call(e, n) && (r[n] = e[n]);
4116
+ t.indexOf(n) < 0 && nr.call(e, n) && (r[n] = e[n]);
4131
4117
  return r;
4132
4118
  };
4133
4119
  const oe = (e, t) => {
@@ -4135,21 +4121,21 @@ const oe = (e, t) => {
4135
4121
  if (e in r && t in r[e])
4136
4122
  return r[e][t];
4137
4123
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4138
- }, Ti = we(
4124
+ }, wi = we(
4139
4125
  (e) => {
4140
4126
  var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4141
4127
  if (r == null)
4142
4128
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4143
4129
  return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
4144
4130
  }
4145
- ), Hi = we(
4131
+ ), Si = we(
4146
4132
  (e) => {
4147
4133
  var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4148
4134
  if (r == null)
4149
4135
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4150
4136
  return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
4151
4137
  }
4152
- ), Bi = we(
4138
+ ), Ti = we(
4153
4139
  (e) => {
4154
4140
  var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4155
4141
  if (r == null)
@@ -4158,33 +4144,33 @@ const oe = (e, t) => {
4158
4144
  );
4159
4145
  return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
4160
4146
  }
4161
- ), Pi = (e = {}) => {
4147
+ ), Hi = (e = {}) => {
4162
4148
  var t = e, {
4163
4149
  locale: r = D()
4164
4150
  } = t, n = K(t, [
4165
4151
  "locale"
4166
4152
  ]);
4167
- return Ti(et({ locale: r }, n));
4168
- }, Ai = (e = {}) => {
4153
+ return wi(Ye({ locale: r }, n));
4154
+ }, Bi = (e = {}) => {
4169
4155
  var t = e, {
4170
4156
  locale: r = D()
4171
4157
  } = t, n = K(t, [
4172
4158
  "locale"
4173
4159
  ]);
4174
- return Hi(et({ locale: r }, n));
4175
- }, Oi = (e = {}) => {
4160
+ return Si(Ye({ locale: r }, n));
4161
+ }, Pi = (e = {}) => {
4176
4162
  var t = e, {
4177
4163
  locale: r = D()
4178
4164
  } = t, n = K(t, [
4179
4165
  "locale"
4180
4166
  ]);
4181
- return Bi(et({ locale: r }, n));
4182
- }, Ii = we(
4167
+ return Ti(Ye({ locale: r }, n));
4168
+ }, Ai = we(
4183
4169
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4184
- (e, t = D()) => new ii(e, t, Q().formats, {
4170
+ (e, t = D()) => new ri(e, t, Q().formats, {
4185
4171
  ignoreTag: Q().ignoreTag
4186
4172
  })
4187
- ), Ni = (e, t = {}) => {
4173
+ ), Oi = (e, t = {}) => {
4188
4174
  var r, n, i, o;
4189
4175
  let a = t;
4190
4176
  typeof e == "object" && (a = e, e = a.id);
@@ -4197,7 +4183,7 @@ const oe = (e, t) => {
4197
4183
  throw new Error(
4198
4184
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4199
4185
  );
4200
- let h = er(e, l);
4186
+ let h = qt(e, l);
4201
4187
  if (!h)
4202
4188
  h = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4203
4189
  else if (typeof h != "string")
@@ -4206,30 +4192,30 @@ const oe = (e, t) => {
4206
4192
  ), h;
4207
4193
  if (!s)
4208
4194
  return h;
4209
- let c = h;
4195
+ let f = h;
4210
4196
  try {
4211
- c = Ii(h, l).format(s);
4212
- } catch (f) {
4213
- f instanceof Error && console.warn(
4197
+ f = Ai(h, l).format(s);
4198
+ } catch (c) {
4199
+ c instanceof Error && console.warn(
4214
4200
  `[svelte-i18n] Message "${e}" has syntax error:`,
4215
- f.message
4201
+ c.message
4216
4202
  );
4217
4203
  }
4218
- return c;
4219
- }, Li = (e, t) => Oi(t).format(e), Mi = (e, t) => Ai(t).format(e), Ci = (e, t) => Pi(t).format(e), Ri = (e, t = D()) => er(e, t), $i = q([Y, ue], () => Ni);
4204
+ return f;
4205
+ }, Ii = (e, t) => Pi(t).format(e), Ni = (e, t) => Bi(t).format(e), Li = (e, t) => Hi(t).format(e), Mi = (e, t = D()) => qt(e, t), Ci = q([Y, ue], () => Oi);
4206
+ q([Y], () => Ii);
4207
+ q([Y], () => Ni);
4220
4208
  q([Y], () => Li);
4221
- q([Y], () => Mi);
4222
- q([Y], () => Ci);
4223
- q([Y, ue], () => Ri);
4224
- window.emWidgets = { topic: Jr };
4225
- const Ui = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4226
- function St(e, t) {
4227
- rr(e, t);
4209
+ q([Y, ue], () => Mi);
4210
+ window.emWidgets = { topic: zr };
4211
+ const Ri = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4212
+ function xt(e, t) {
4213
+ Kt(e, t);
4228
4214
  }
4229
- function Di(e) {
4215
+ function $i(e) {
4230
4216
  Y.set(e);
4231
4217
  }
4232
- const Tt = {
4218
+ const wt = {
4233
4219
  en: {
4234
4220
  titlePlayerWithdrawal: "Withdrawal",
4235
4221
  loading: "Loading, please wait ..."
@@ -4263,41 +4249,41 @@ const Tt = {
4263
4249
  loading: "Loading, please wait ..."
4264
4250
  }
4265
4251
  };
4266
- function Gi(e) {
4267
- fr(e, "svelte-19p9ovb", "button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.WithdrawalWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.WithdrawalWrapper.WithdrawalWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.WithdrawalTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.WithdrawalTitleMobile{font-size:var(--emw--size-standard, 16px)}.WithdrawalTitleNone{display:none}.WithdrawalIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 10px)}");
4252
+ function Ui(e) {
4253
+ hr(e, "svelte-19p9ovb", "button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.WithdrawalWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.WithdrawalWrapper.WithdrawalWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.WithdrawalTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.WithdrawalTitleMobile{font-size:var(--emw--size-standard, 16px)}.WithdrawalTitleNone{display:none}.WithdrawalIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 10px)}");
4268
4254
  }
4269
- function Fi(e) {
4270
- let t, r, n, i, o, a, s, l, u, h, c = (
4255
+ function Di(e) {
4256
+ let t, r, n, i, o, a, s, l, u, h, f = (
4271
4257
  /*$_*/
4272
4258
  e[3]("titlePlayerWithdrawal") + ""
4273
- ), f, p, m;
4259
+ ), c, d, m;
4274
4260
  return {
4275
4261
  c() {
4276
- t = I("div"), r = G("svg"), n = G("defs"), i = G("style"), o = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u = Ne(), h = I("h2"), f = re(c), E(l, "class", "aaa"), E(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(l, "transform", "translate(15 15) rotate(180)"), E(s, "transform", "translate(20 158)"), E(a, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(h, "class", "WithdrawalTitleMobile"), E(t, "class", "MenuReturnButton"), E(t, "part", "MenuReturnButton");
4262
+ t = I("div"), r = G("svg"), n = G("defs"), i = G("style"), o = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u = Ie(), h = I("h2"), c = re(f), E(l, "class", "aaa"), E(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(l, "transform", "translate(15 15) rotate(180)"), E(s, "transform", "translate(20 158)"), E(a, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(h, "class", "WithdrawalTitleMobile"), E(t, "class", "MenuReturnButton"), E(t, "part", "MenuReturnButton");
4277
4263
  },
4278
4264
  m(g, w) {
4279
- ae(g, t, w), x(t, r), x(r, n), x(n, i), x(i, o), x(r, a), x(a, s), x(s, l), x(t, u), x(t, h), x(h, f), p || (m = mr(
4265
+ ae(g, t, w), x(t, r), x(r, n), x(n, i), x(i, o), x(r, a), x(a, s), x(s, l), x(t, u), x(t, h), x(h, c), d || (m = cr(
4280
4266
  t,
4281
4267
  "click",
4282
4268
  /*click_handler*/
4283
4269
  e[16]
4284
- ), p = !0);
4270
+ ), d = !0);
4285
4271
  },
4286
4272
  p(g, w) {
4287
4273
  w & /*$_*/
4288
- 8 && c !== (c = /*$_*/
4289
- g[3]("titlePlayerWithdrawal") + "") && Je(f, c);
4274
+ 8 && f !== (f = /*$_*/
4275
+ g[3]("titlePlayerWithdrawal") + "") && Qe(c, f);
4290
4276
  },
4291
4277
  d(g) {
4292
- g && J(t), p = !1, m();
4278
+ g && J(t), d = !1, m();
4293
4279
  }
4294
4280
  };
4295
4281
  }
4296
- function ji(e) {
4282
+ function Gi(e) {
4297
4283
  let t, r, n;
4298
4284
  return {
4299
4285
  c() {
4300
- t = I("div"), r = I("iframe"), rt(r.src, n = /*iframeUrl*/
4286
+ t = I("div"), r = I("iframe"), et(r.src, n = /*iframeUrl*/
4301
4287
  e[2]) || E(r, "src", n), E(r, "title", "Withdrawal Iframe"), E(t, "class", "WithdrawalIframeWrapper");
4302
4288
  },
4303
4289
  m(i, o) {
@@ -4305,7 +4291,7 @@ function ji(e) {
4305
4291
  },
4306
4292
  p(i, o) {
4307
4293
  o & /*iframeUrl*/
4308
- 4 && !rt(r.src, n = /*iframeUrl*/
4294
+ 4 && !et(r.src, n = /*iframeUrl*/
4309
4295
  i[2]) && E(r, "src", n);
4310
4296
  },
4311
4297
  d(i) {
@@ -4313,7 +4299,7 @@ function ji(e) {
4313
4299
  }
4314
4300
  };
4315
4301
  }
4316
- function ki(e) {
4302
+ function Fi(e) {
4317
4303
  let t, r = (
4318
4304
  /*$_*/
4319
4305
  e[3]("loading") + ""
@@ -4328,65 +4314,65 @@ function ki(e) {
4328
4314
  p(i, o) {
4329
4315
  o & /*$_*/
4330
4316
  8 && r !== (r = /*$_*/
4331
- i[3]("loading") + "") && Je(n, r);
4317
+ i[3]("loading") + "") && Qe(n, r);
4332
4318
  },
4333
4319
  d(i) {
4334
4320
  i && J(t);
4335
4321
  }
4336
4322
  };
4337
4323
  }
4338
- function Wi(e) {
4324
+ function ji(e) {
4339
4325
  let t, r, n, i = (
4340
4326
  /*$_*/
4341
4327
  e[3]("titlePlayerWithdrawal") + ""
4342
4328
  ), o, a, s = (
4343
4329
  /*isMobile*/
4344
- e[4] && Fi(e)
4330
+ e[4] && Di(e)
4345
4331
  );
4346
- function l(c, f) {
4332
+ function l(f, c) {
4347
4333
  return (
4348
4334
  /*isLoading*/
4349
- c[1] ? ki : ji
4335
+ f[1] ? Fi : Gi
4350
4336
  );
4351
4337
  }
4352
4338
  let u = l(e), h = u(e);
4353
4339
  return {
4354
4340
  c() {
4355
- t = I("div"), s && s.c(), r = Ne(), n = I("h2"), o = re(i), a = Ne(), h.c(), E(n, "class", "WithdrawalTitle " + /*isMobile*/
4341
+ t = I("div"), s && s.c(), r = Ie(), n = I("h2"), o = re(i), a = Ie(), h.c(), E(n, "class", "WithdrawalTitle " + /*isMobile*/
4356
4342
  (e[4] ? "WithdrawalTitleNone" : "")), E(t, "class", "WithdrawalWrapper " + /*isMobile*/
4357
4343
  (e[4] ? "WithdrawalWrapperMobile" : ""));
4358
4344
  },
4359
- m(c, f) {
4360
- ae(c, t, f), s && s.m(t, null), x(t, r), x(t, n), x(n, o), x(t, a), h.m(t, null), e[17](t);
4345
+ m(f, c) {
4346
+ ae(f, t, c), s && s.m(t, null), x(t, r), x(t, n), x(n, o), x(t, a), h.m(t, null), e[17](t);
4361
4347
  },
4362
- p(c, [f]) {
4348
+ p(f, [c]) {
4363
4349
  /*isMobile*/
4364
- c[4] && s.p(c, f), f & /*$_*/
4350
+ f[4] && s.p(f, c), c & /*$_*/
4365
4351
  8 && i !== (i = /*$_*/
4366
- c[3]("titlePlayerWithdrawal") + "") && Je(o, i), u === (u = l(c)) && h ? h.p(c, f) : (h.d(1), h = u(c), h && (h.c(), h.m(t, null)));
4352
+ f[3]("titlePlayerWithdrawal") + "") && Qe(o, i), u === (u = l(f)) && h ? h.p(f, c) : (h.d(1), h = u(f), h && (h.c(), h.m(t, null)));
4367
4353
  },
4368
4354
  i: B,
4369
4355
  o: B,
4370
- d(c) {
4371
- c && J(t), s && s.d(), h.d(), e[17](null);
4356
+ d(f) {
4357
+ f && J(t), s && s.d(), h.d(), e[17](null);
4372
4358
  }
4373
4359
  };
4374
4360
  }
4375
- function Vi(e, t, r) {
4361
+ function ki(e, t, r) {
4376
4362
  let n;
4377
- cr(e, $i, (d) => r(3, n = d));
4378
- let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { hasdefaultamount: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: c } = t, { translationurl: f = "" } = t, { currency: p = "" } = t, m, g = window.navigator.userAgent, w = Ui(g) !== "PC", L = !0, P = 0, T = "";
4363
+ ur(e, Ci, (p) => r(3, n = p));
4364
+ let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { hasdefaultamount: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: f } = t, { translationurl: c = "" } = t, { currency: d = "" } = t, m, g = window.navigator.userAgent, w = Ri(g) !== "PC", L = !0, P = 0, T = "";
4379
4365
  const $ = () => {
4380
- fetch(f).then((M) => M.json()).then((M) => {
4366
+ fetch(c).then((M) => M.json()).then((M) => {
4381
4367
  Object.keys(M).forEach((C) => {
4382
- St(C, M[C]);
4368
+ xt(C, M[C]);
4383
4369
  });
4384
4370
  }).catch((M) => {
4385
4371
  console.log(M);
4386
4372
  });
4387
4373
  };
4388
- Object.keys(Tt).forEach((d) => {
4389
- St(d, Tt[d]);
4374
+ Object.keys(wt).forEach((p) => {
4375
+ xt(p, wt[p]);
4390
4376
  });
4391
4377
  const A = () => {
4392
4378
  window.postMessage(
@@ -4396,14 +4382,14 @@ function Vi(e, t, r) {
4396
4382
  },
4397
4383
  window.location.href
4398
4384
  );
4399
- }, U = (d) => {
4400
- if (d.data) {
4401
- switch (d.data.type) {
4385
+ }, U = (p) => {
4386
+ if (p.data) {
4387
+ switch (p.data.type) {
4402
4388
  case "ProfileDetailsData":
4403
- r(6, p = d.data.profileDetails.currency);
4389
+ r(6, d = p.data.profileDetails.currency);
4404
4390
  break;
4405
4391
  }
4406
- switch (d.data.redirect) {
4392
+ switch (p.data.redirect) {
4407
4393
  case "mm-hc-casino":
4408
4394
  window.postMessage({ type: "GoToCasino" }, window.location.href);
4409
4395
  break;
@@ -4427,9 +4413,9 @@ function Vi(e, t, r) {
4427
4413
  }
4428
4414
  }
4429
4415
  }, he = () => {
4430
- let d = new URL(`${i}/v1/player/${a}/hostedcashier/initializewithdraw`);
4431
- if (d.searchParams.append("language", s), l)
4432
- switch (p) {
4416
+ let p = new URL(`${i}/v1/player/${a}/hostedcashier/initializewithdraw`);
4417
+ if (p.searchParams.append("language", s), l)
4418
+ switch (d) {
4433
4419
  case "USD":
4434
4420
  P = 0.4;
4435
4421
  break;
@@ -4441,14 +4427,14 @@ function Vi(e, t, r) {
4441
4427
  method: "POST",
4442
4428
  headers: {
4443
4429
  "X-SessionId": o,
4444
- currency: p || "EUR",
4430
+ currency: d || "EUR",
4445
4431
  amount: P,
4446
4432
  cashierMode: "Default",
4447
4433
  IsShortCashier: !1,
4448
4434
  accept: "application/json"
4449
4435
  }
4450
4436
  };
4451
- fetch(d.href, M).then((C) => C.json()).then(
4437
+ fetch(p.href, M).then((C) => C.json()).then(
4452
4438
  (C) => {
4453
4439
  r(1, L = !1), r(2, T = C.CashierUrl);
4454
4440
  },
@@ -4456,28 +4442,28 @@ function Vi(e, t, r) {
4456
4442
  console.error(C);
4457
4443
  }
4458
4444
  );
4459
- }, ar = () => {
4460
- Di(s);
4445
+ }, ir = () => {
4446
+ $i(s);
4461
4447
  };
4462
- vr(() => (window.addEventListener("message", U, !1), () => {
4448
+ br(() => (window.addEventListener("message", U, !1), () => {
4463
4449
  window.removeEventListener("message", U);
4464
4450
  }));
4465
- const ur = () => A();
4466
- function hr(d) {
4467
- Le[d ? "unshift" : "push"](() => {
4468
- m = d, r(0, m);
4451
+ const or = () => A();
4452
+ function sr(p) {
4453
+ Ne[p ? "unshift" : "push"](() => {
4454
+ m = p, r(0, m);
4469
4455
  });
4470
4456
  }
4471
- return e.$$set = (d) => {
4472
- "endpoint" in d && r(7, i = d.endpoint), "session" in d && r(8, o = d.session), "playerid" in d && r(9, a = d.playerid), "lang" in d && r(10, s = d.lang), "hasdefaultamount" in d && r(11, l = d.hasdefaultamount), "clientstyling" in d && r(12, u = d.clientstyling), "clientstylingurl" in d && r(13, h = d.clientstylingurl), "mbsource" in d && r(14, c = d.mbsource), "translationurl" in d && r(15, f = d.translationurl), "currency" in d && r(6, p = d.currency);
4457
+ return e.$$set = (p) => {
4458
+ "endpoint" in p && r(7, i = p.endpoint), "session" in p && r(8, o = p.session), "playerid" in p && r(9, a = p.playerid), "lang" in p && r(10, s = p.lang), "hasdefaultamount" in p && r(11, l = p.hasdefaultamount), "clientstyling" in p && r(12, u = p.clientstyling), "clientstylingurl" in p && r(13, h = p.clientstylingurl), "mbsource" in p && r(14, f = p.mbsource), "translationurl" in p && r(15, c = p.translationurl), "currency" in p && r(6, d = p.currency);
4473
4459
  }, e.$$.update = () => {
4474
4460
  e.$$.dirty & /*lang*/
4475
- 1024 && s && ar(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4476
- 4097 && u && m && Lr(m, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4477
- 8193 && h && m && Mr(m, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4478
- 16385 && c && m && Cr(m, `${c}.Style`), e.$$.dirty & /*translationurl*/
4479
- 32768 && f && $(), e.$$.dirty & /*session, playerid, endpoint, currency, lang*/
4480
- 1984 && o && a && i && p && s && he();
4461
+ 1024 && s && ir(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4462
+ 4097 && u && m && Or(m, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4463
+ 8193 && h && m && Ir(m, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4464
+ 16385 && f && m && Nr(m, `${f}.Style`), e.$$.dirty & /*translationurl*/
4465
+ 32768 && c && $(), e.$$.dirty & /*session, playerid, endpoint, currency, lang*/
4466
+ 1984 && o && a && i && d && s && he();
4481
4467
  }, [
4482
4468
  m,
4483
4469
  L,
@@ -4485,7 +4471,7 @@ function Vi(e, t, r) {
4485
4471
  n,
4486
4472
  w,
4487
4473
  A,
4488
- p,
4474
+ d,
4489
4475
  i,
4490
4476
  o,
4491
4477
  a,
@@ -4493,20 +4479,20 @@ function Vi(e, t, r) {
4493
4479
  l,
4494
4480
  u,
4495
4481
  h,
4496
- c,
4497
4482
  f,
4498
- ur,
4499
- hr
4483
+ c,
4484
+ or,
4485
+ sr
4500
4486
  ];
4501
4487
  }
4502
- class Xi extends Ir {
4488
+ class Wi extends Pr {
4503
4489
  constructor(t) {
4504
- super(), Ar(
4490
+ super(), Hr(
4505
4491
  this,
4506
4492
  t,
4507
- Vi,
4508
- Wi,
4509
- Bt,
4493
+ ki,
4494
+ ji,
4495
+ Tt,
4510
4496
  {
4511
4497
  endpoint: 7,
4512
4498
  session: 8,
@@ -4519,7 +4505,7 @@ class Xi extends Ir {
4519
4505
  translationurl: 15,
4520
4506
  currency: 6
4521
4507
  },
4522
- Gi
4508
+ Ui
4523
4509
  );
4524
4510
  }
4525
4511
  get endpoint() {
@@ -4583,7 +4569,7 @@ class Xi extends Ir {
4583
4569
  this.$$set({ currency: t }), H();
4584
4570
  }
4585
4571
  }
4586
- Or(Xi, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currency: {} }, [], [], !0);
4572
+ Br(Wi, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currency: {} }, [], [], !0);
4587
4573
  export {
4588
- Xi as P
4574
+ Wi as P
4589
4575
  };