@everymatrix/player-withdrawal 1.76.3 → 1.76.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,50 +1,50 @@
1
- function B() {
1
+ function P() {
2
2
  }
3
- function St(e) {
3
+ function Bt(e) {
4
4
  return e();
5
5
  }
6
- function Ke() {
6
+ function nt() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function se(e) {
10
- e.forEach(St);
9
+ function oe(e) {
10
+ e.forEach(Bt);
11
11
  }
12
- function Ze(e) {
12
+ function Ke(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function Tt(e, t) {
15
+ function At(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 et(e, t) {
19
+ function it(e, t) {
20
20
  return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
21
21
  }
22
- function ar(e) {
22
+ function cr(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
- function Ht(e, ...t) {
25
+ function Ot(e, ...t) {
26
26
  if (e == null) {
27
27
  for (const n of t)
28
28
  n(void 0);
29
- return B;
29
+ return P;
30
30
  }
31
31
  const r = e.subscribe(...t);
32
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
33
33
  }
34
- function ur(e, t, r) {
35
- e.$$.on_destroy.push(Ht(t, r));
34
+ function fr(e, t, r) {
35
+ e.$$.on_destroy.push(Ot(t, r));
36
36
  }
37
37
  function x(e, t) {
38
38
  e.appendChild(t);
39
39
  }
40
- function hr(e, t, r) {
41
- const n = lr(e);
40
+ function pr(e, t, r) {
41
+ const n = dr(e);
42
42
  if (!n.getElementById(t)) {
43
- const i = I("style");
44
- i.id = t, i.textContent = r, fr(n, i);
43
+ const i = N("style");
44
+ i.id = t, i.textContent = r, mr(n, i);
45
45
  }
46
46
  }
47
- function lr(e) {
47
+ function dr(e) {
48
48
  if (!e)
49
49
  return document;
50
50
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -54,45 +54,45 @@ function lr(e) {
54
54
  t
55
55
  ) : e.ownerDocument;
56
56
  }
57
- function fr(e, t) {
57
+ function mr(e, t) {
58
58
  return x(
59
59
  /** @type {Document} */
60
60
  e.head || e,
61
61
  t
62
62
  ), t.sheet;
63
63
  }
64
- function ae(e, t, r) {
64
+ function se(e, t, r) {
65
65
  e.insertBefore(t, r || null);
66
66
  }
67
- function J(e) {
67
+ function Q(e) {
68
68
  e.parentNode && e.parentNode.removeChild(e);
69
69
  }
70
- function I(e) {
70
+ function N(e) {
71
71
  return document.createElement(e);
72
72
  }
73
73
  function G(e) {
74
74
  return document.createElementNS("http://www.w3.org/2000/svg", e);
75
75
  }
76
- function re(e) {
76
+ function te(e) {
77
77
  return document.createTextNode(e);
78
78
  }
79
- function Ie() {
80
- return re(" ");
79
+ function Me() {
80
+ return te(" ");
81
81
  }
82
- function cr(e, t, r, n) {
82
+ function br(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 dr(e) {
88
+ function yr(e) {
89
89
  return Array.from(e.childNodes);
90
90
  }
91
- function Qe(e, t) {
91
+ function et(e, t) {
92
92
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
93
93
  t);
94
94
  }
95
- function pr(e) {
95
+ function gr(e) {
96
96
  const t = {};
97
97
  return e.childNodes.forEach(
98
98
  /** @param {Element} node */
@@ -101,95 +101,95 @@ function pr(e) {
101
101
  }
102
102
  ), t;
103
103
  }
104
- let ne;
105
- function te(e) {
106
- ne = e;
104
+ let re;
105
+ function ee(e) {
106
+ re = e;
107
107
  }
108
- function mr() {
109
- if (!ne)
108
+ function vr() {
109
+ if (!re)
110
110
  throw new Error("Function called outside component initialization");
111
- return ne;
111
+ return re;
112
112
  }
113
- function br(e) {
114
- mr().$$.on_mount.push(e);
113
+ function _r(e) {
114
+ vr().$$.on_mount.push(e);
115
115
  }
116
- const k = [], Ne = [];
116
+ const k = [], Ce = [];
117
117
  let W = [];
118
- const tt = [], gr = /* @__PURE__ */ Promise.resolve();
119
- let Le = !1;
120
- function yr() {
121
- Le || (Le = !0, gr.then(H));
118
+ const ot = [], Er = /* @__PURE__ */ Promise.resolve();
119
+ let Re = !1;
120
+ function xr() {
121
+ Re || (Re = !0, Er.then(H));
122
122
  }
123
- function Me(e) {
123
+ function $e(e) {
124
124
  W.push(e);
125
125
  }
126
- const Se = /* @__PURE__ */ new Set();
126
+ const He = /* @__PURE__ */ new Set();
127
127
  let F = 0;
128
128
  function H() {
129
129
  if (F !== 0)
130
130
  return;
131
- const e = ne;
131
+ const e = re;
132
132
  do {
133
133
  try {
134
134
  for (; F < k.length; ) {
135
135
  const t = k[F];
136
- F++, te(t), vr(t.$$);
136
+ F++, ee(t), wr(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; Ne.length; )
142
- Ne.pop()();
141
+ for (ee(null), k.length = 0, F = 0; Ce.length; )
142
+ Ce.pop()();
143
143
  for (let t = 0; t < W.length; t += 1) {
144
144
  const r = W[t];
145
- Se.has(r) || (Se.add(r), r());
145
+ He.has(r) || (He.add(r), r());
146
146
  }
147
147
  W.length = 0;
148
148
  } while (k.length);
149
- for (; tt.length; )
150
- tt.pop()();
151
- Le = !1, Se.clear(), te(e);
149
+ for (; ot.length; )
150
+ ot.pop()();
151
+ Re = !1, He.clear(), ee(e);
152
152
  }
153
- function vr(e) {
153
+ function wr(e) {
154
154
  if (e.fragment !== null) {
155
- e.update(), se(e.before_update);
155
+ e.update(), oe(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(Me);
157
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
158
158
  }
159
159
  }
160
- function _r(e) {
160
+ function Sr(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 Er = /* @__PURE__ */ new Set();
165
- function xr(e, t) {
166
- e && e.i && (Er.delete(e), e.i(t));
164
+ const Tr = /* @__PURE__ */ new Set();
165
+ function Hr(e, t) {
166
+ e && e.i && (Tr.delete(e), e.i(t));
167
167
  }
168
- function wr(e, t, r) {
168
+ function Pr(e, t, r) {
169
169
  const { fragment: n, after_update: i } = e.$$;
170
- n && n.m(t, r), Me(() => {
171
- const o = e.$$.on_mount.map(St).filter(Ze);
172
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
173
- }), i.forEach(Me);
170
+ n && n.m(t, r), $e(() => {
171
+ const o = e.$$.on_mount.map(Bt).filter(Ke);
172
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
173
+ }), i.forEach($e);
174
174
  }
175
- function Sr(e, t) {
175
+ function Br(e, t) {
176
176
  const r = e.$$;
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 = []);
177
+ r.fragment !== null && (Sr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
178
178
  }
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;
179
+ function Ar(e, t) {
180
+ e.$$.dirty[0] === -1 && (k.push(e), xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
181
181
  }
182
- function Hr(e, t, r, n, i, o, a = null, s = [-1]) {
183
- const l = ne;
184
- te(e);
182
+ function Or(e, t, r, n, i, o, a = null, s = [-1]) {
183
+ const l = re;
184
+ ee(e);
185
185
  const u = e.$$ = {
186
186
  fragment: null,
187
187
  ctx: [],
188
188
  // state
189
189
  props: o,
190
- update: B,
190
+ update: P,
191
191
  not_equal: i,
192
- bound: Ke(),
192
+ bound: nt(),
193
193
  // lifecycle
194
194
  on_mount: [],
195
195
  on_destroy: [],
@@ -198,28 +198,28 @@ function Hr(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: Ke(),
201
+ callbacks: nt(),
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(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) {
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 && Ar(e, c)), f;
211
+ }) : [], u.update(), h = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
212
212
  if (t.hydrate) {
213
- const f = dr(t.target);
214
- u.fragment && u.fragment.l(f), f.forEach(J);
213
+ const c = yr(t.target);
214
+ u.fragment && u.fragment.l(c), c.forEach(Q);
215
215
  } else
216
216
  u.fragment && u.fragment.c();
217
- t.intro && xr(e.$$.fragment), wr(e, t.target, t.anchor), H();
217
+ t.intro && Hr(e.$$.fragment), Pr(e, t.target, t.anchor), H();
218
218
  }
219
- te(l);
219
+ ee(l);
220
220
  }
221
- let Bt;
222
- typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
221
+ let It;
222
+ typeof HTMLElement == "function" && (It = class extends HTMLElement {
223
223
  /** The Svelte component constructor */
224
224
  $$ctor;
225
225
  /** Slots */
@@ -261,29 +261,29 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
261
261
  let o;
262
262
  return {
263
263
  c: function() {
264
- o = I("slot"), i !== "default" && E(o, "name", i);
264
+ o = N("slot"), i !== "default" && E(o, "name", i);
265
265
  },
266
266
  /**
267
267
  * @param {HTMLElement} target
268
268
  * @param {HTMLElement} [anchor]
269
269
  */
270
270
  m: function(l, u) {
271
- ae(l, o, u);
271
+ se(l, o, u);
272
272
  },
273
273
  d: function(l) {
274
- l && J(o);
274
+ l && Q(o);
275
275
  }
276
276
  };
277
277
  };
278
278
  };
279
279
  if (await Promise.resolve(), !this.$$cn || this.$$c)
280
280
  return;
281
- const t = {}, r = pr(this);
281
+ const t = {}, r = gr(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] = de(o, i.value, this.$$p_d, "toProp"));
286
+ o in this.$$d || (this.$$d[o] = pe(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" && (Bt = 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 = de(
304
+ const o = pe(
305
305
  i,
306
306
  this.$$d[i],
307
307
  this.$$p_d,
@@ -323,7 +323,7 @@ typeof HTMLElement == "function" && (Bt = 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] = de(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
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] }));
327
327
  }
328
328
  disconnectedCallback() {
329
329
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -336,7 +336,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
336
336
  ) || e;
337
337
  }
338
338
  });
339
- function de(e, t, r, n) {
339
+ function pe(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 de(e, t, r, n) {
365
365
  return t;
366
366
  }
367
367
  }
368
- function Br(e, t, r, n, i, o) {
369
- let a = class extends Bt {
368
+ function Ir(e, t, r, n, i, o) {
369
+ let a = class extends It {
370
370
  constructor() {
371
371
  super(e, r, i), this.$$p_d = t;
372
372
  }
@@ -382,7 +382,7 @@ function Br(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 = de(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
385
+ l = pe(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 Br(e, t, r, n, i, o) {
394
394
  }), e.element = /** @type {any} */
395
395
  a, a;
396
396
  }
397
- class Pr {
397
+ class Nr {
398
398
  /**
399
399
  * ### PRIVATE API
400
400
  *
@@ -413,7 +413,7 @@ class Pr {
413
413
  $$set = void 0;
414
414
  /** @returns {void} */
415
415
  $destroy() {
416
- Sr(this, 1), this.$destroy = B;
416
+ Br(this, 1), this.$destroy = P;
417
417
  }
418
418
  /**
419
419
  * @template {Extract<keyof Events, string>} K
@@ -422,8 +422,8 @@ class Pr {
422
422
  * @returns {() => void}
423
423
  */
424
424
  $on(t, r) {
425
- if (!Ze(r))
426
- return B;
425
+ if (!Ke(r))
426
+ return P;
427
427
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
428
428
  return n.push(r), () => {
429
429
  const i = n.indexOf(r);
@@ -435,18 +435,18 @@ class Pr {
435
435
  * @returns {void}
436
436
  */
437
437
  $set(t) {
438
- this.$$set && !ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
438
+ this.$$set && !cr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
439
439
  }
440
440
  }
441
- const Ar = "4";
442
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
443
- function Or(e, t) {
441
+ const Lr = "4";
442
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Lr);
443
+ function Mr(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 Ir(e, t) {
449
+ function Cr(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 Ir(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 Nr(e, t, r) {
458
+ function Rr(e, t, r) {
459
459
  if (window.emMessageBus) {
460
460
  const n = document.createElement("style");
461
461
  window.emMessageBus.subscribe(t, (i) => {
@@ -477,43 +477,24 @@ 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 Ce = function(e, t) {
481
- return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
480
+ var Ue = function(e, t) {
481
+ return Ue = 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
- }, Ce(e, t);
486
+ }, Ue(e, t);
487
487
  };
488
- function N(e, t) {
488
+ function ae(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
- Ce(e, t);
491
+ Ue(e, t);
492
492
  function r() {
493
493
  this.constructor = e;
494
494
  }
495
495
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
496
496
  }
497
- var v = function() {
498
- return v = Object.assign || function(t) {
499
- for (var r, n = 1, i = arguments.length; n < i; n++) {
500
- r = arguments[n];
501
- for (var o in r)
502
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
503
- }
504
- return t;
505
- }, v.apply(this, arguments);
506
- };
507
- function Lr(e, t) {
508
- var r = {};
509
- for (var n in e)
510
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
511
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
512
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
513
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
514
- return r;
515
- }
516
- function Re(e) {
497
+ function De(e) {
517
498
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
518
499
  if (r)
519
500
  return r.call(e);
@@ -525,7 +506,7 @@ function Re(e) {
525
506
  };
526
507
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
527
508
  }
528
- function $e(e, t) {
509
+ function Ge(e, t) {
529
510
  var r = typeof Symbol == "function" && e[Symbol.iterator];
530
511
  if (!r)
531
512
  return e;
@@ -545,22 +526,22 @@ function $e(e, t) {
545
526
  }
546
527
  return o;
547
528
  }
548
- function V(e, t, r) {
549
- if (r || arguments.length === 2)
529
+ function Fe(e, t, r) {
530
+ if (arguments.length === 2)
550
531
  for (var n = 0, i = t.length, o; n < i; n++)
551
532
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
552
533
  return e.concat(o || t);
553
534
  }
554
- function O(e) {
535
+ function I(e) {
555
536
  return typeof e == "function";
556
537
  }
557
- function Pt(e) {
538
+ function Nt(e) {
558
539
  var t = function(n) {
559
540
  Error.call(n), n.stack = new Error().stack;
560
541
  }, r = e(t);
561
542
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
562
543
  }
563
- var Te = Pt(function(e) {
544
+ var Pe = Nt(function(e) {
564
545
  return function(r) {
565
546
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
566
547
  ` + r.map(function(n, i) {
@@ -569,13 +550,13 @@ var Te = Pt(function(e) {
569
550
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
570
551
  };
571
552
  });
572
- function Ue(e, t) {
553
+ function je(e, t) {
573
554
  if (e) {
574
555
  var r = e.indexOf(t);
575
556
  0 <= r && e.splice(r, 1);
576
557
  }
577
558
  }
578
- var ve = function() {
559
+ var _e = function() {
579
560
  function e(t) {
580
561
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
581
562
  }
@@ -587,12 +568,12 @@ var ve = function() {
587
568
  if (a)
588
569
  if (this._parentage = null, Array.isArray(a))
589
570
  try {
590
- for (var s = Re(a), l = s.next(); !l.done; l = s.next()) {
571
+ for (var s = De(a), l = s.next(); !l.done; l = s.next()) {
591
572
  var u = l.value;
592
573
  u.remove(this);
593
574
  }
594
- } catch (g) {
595
- t = { error: g };
575
+ } catch (y) {
576
+ t = { error: y };
596
577
  } finally {
597
578
  try {
598
579
  l && !l.done && (r = s.return) && r.call(s);
@@ -604,29 +585,29 @@ var ve = function() {
604
585
  else
605
586
  a.remove(this);
606
587
  var h = this.initialTeardown;
607
- if (O(h))
588
+ if (I(h))
608
589
  try {
609
590
  h();
610
- } catch (g) {
611
- o = g instanceof Te ? g.errors : [g];
591
+ } catch (y) {
592
+ o = y instanceof Pe ? y.errors : [y];
612
593
  }
613
- var f = this._finalizers;
614
- if (f) {
594
+ var c = this._finalizers;
595
+ if (c) {
615
596
  this._finalizers = null;
616
597
  try {
617
- for (var c = Re(f), d = c.next(); !d.done; d = c.next()) {
618
- var m = d.value;
598
+ for (var f = De(c), p = f.next(); !p.done; p = f.next()) {
599
+ var m = p.value;
619
600
  try {
620
- rt(m);
621
- } catch (g) {
622
- o = o ?? [], g instanceof Te ? o = V(V([], $e(o)), $e(g.errors)) : o.push(g);
601
+ st(m);
602
+ } catch (y) {
603
+ o = o ?? [], y instanceof Pe ? o = Fe(Fe([], Ge(o)), Ge(y.errors)) : o.push(y);
623
604
  }
624
605
  }
625
- } catch (g) {
626
- n = { error: g };
606
+ } catch (y) {
607
+ n = { error: y };
627
608
  } finally {
628
609
  try {
629
- d && !d.done && (i = c.return) && i.call(c);
610
+ p && !p.done && (i = f.return) && i.call(f);
630
611
  } finally {
631
612
  if (n)
632
613
  throw n.error;
@@ -634,13 +615,13 @@ var ve = function() {
634
615
  }
635
616
  }
636
617
  if (o)
637
- throw new Te(o);
618
+ throw new Pe(o);
638
619
  }
639
620
  }, e.prototype.add = function(t) {
640
621
  var r;
641
622
  if (t && t !== this)
642
623
  if (this.closed)
643
- rt(t);
624
+ st(t);
644
625
  else {
645
626
  if (t instanceof e) {
646
627
  if (t.closed || t._hasParent(this))
@@ -657,56 +638,52 @@ var ve = function() {
657
638
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
658
639
  }, e.prototype._removeParent = function(t) {
659
640
  var r = this._parentage;
660
- r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
641
+ r === t ? this._parentage = null : Array.isArray(r) && je(r, t);
661
642
  }, e.prototype.remove = function(t) {
662
643
  var r = this._finalizers;
663
- r && Ue(r, t), t instanceof e && t._removeParent(this);
644
+ r && je(r, t), t instanceof e && t._removeParent(this);
664
645
  }, e.EMPTY = function() {
665
646
  var t = new e();
666
647
  return t.closed = !0, t;
667
648
  }(), e;
668
- }(), At = ve.EMPTY;
669
- function Ot(e) {
670
- return e instanceof ve || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
671
- }
672
- function rt(e) {
673
- O(e) ? e() : e.unsubscribe();
674
- }
675
- var Mr = {
676
- onUnhandledError: null,
677
- onStoppedNotification: null,
678
- Promise: void 0,
679
- useDeprecatedSynchronousErrorHandling: !1,
680
- useDeprecatedNextContext: !1
681
- }, Cr = {
649
+ }(), Lt = _e.EMPTY;
650
+ function Mt(e) {
651
+ return e instanceof _e || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
652
+ }
653
+ function st(e) {
654
+ I(e) ? e() : e.unsubscribe();
655
+ }
656
+ var $r = {
657
+ Promise: void 0
658
+ }, Ur = {
682
659
  setTimeout: function(e, t) {
683
660
  for (var r = [], n = 2; n < arguments.length; n++)
684
661
  r[n - 2] = arguments[n];
685
- return setTimeout.apply(void 0, V([e, t], $e(r)));
662
+ return setTimeout.apply(void 0, Fe([e, t], Ge(r)));
686
663
  },
687
664
  clearTimeout: function(e) {
688
665
  return clearTimeout(e);
689
666
  },
690
667
  delegate: void 0
691
668
  };
692
- function Rr(e) {
693
- Cr.setTimeout(function() {
669
+ function Dr(e) {
670
+ Ur.setTimeout(function() {
694
671
  throw e;
695
672
  });
696
673
  }
697
- function nt() {
674
+ function at() {
698
675
  }
699
- function pe(e) {
676
+ function de(e) {
700
677
  e();
701
678
  }
702
- var It = function(e) {
703
- N(t, e);
679
+ var Ct = function(e) {
680
+ ae(t, e);
704
681
  function t(r) {
705
682
  var n = e.call(this) || this;
706
- return n.isStopped = !1, r ? (n.destination = r, Ot(r) && r.add(n)) : n.destination = Dr, n;
683
+ return n.isStopped = !1, r ? (n.destination = r, Mt(r) && r.add(n)) : n.destination = jr, n;
707
684
  }
708
685
  return t.create = function(r, n, i) {
709
- return new De(r, n, i);
686
+ return new ke(r, n, i);
710
687
  }, t.prototype.next = function(r) {
711
688
  this.isStopped || this._next(r);
712
689
  }, t.prototype.error = function(r) {
@@ -730,7 +707,7 @@ var It = function(e) {
730
707
  this.unsubscribe();
731
708
  }
732
709
  }, t;
733
- }(ve), $r = function() {
710
+ }(_e), Gr = function() {
734
711
  function e(t) {
735
712
  this.partialObserver = t;
736
713
  }
@@ -740,7 +717,7 @@ var It = function(e) {
740
717
  try {
741
718
  r.next(t);
742
719
  } catch (n) {
743
- fe(n);
720
+ ce(n);
744
721
  }
745
722
  }, e.prototype.error = function(t) {
746
723
  var r = this.partialObserver;
@@ -748,56 +725,56 @@ var It = function(e) {
748
725
  try {
749
726
  r.error(t);
750
727
  } catch (n) {
751
- fe(n);
728
+ ce(n);
752
729
  }
753
730
  else
754
- fe(t);
731
+ ce(t);
755
732
  }, e.prototype.complete = function() {
756
733
  var t = this.partialObserver;
757
734
  if (t.complete)
758
735
  try {
759
736
  t.complete();
760
737
  } catch (r) {
761
- fe(r);
738
+ ce(r);
762
739
  }
763
740
  }, e;
764
- }(), De = function(e) {
765
- N(t, e);
741
+ }(), ke = function(e) {
742
+ ae(t, e);
766
743
  function t(r, n, i) {
767
744
  var o = e.call(this) || this, a;
768
- return O(r) || !r ? a = {
745
+ return I(r) || !r ? a = {
769
746
  next: r ?? void 0,
770
747
  error: n ?? void 0,
771
748
  complete: i ?? void 0
772
- } : a = r, o.destination = new $r(a), o;
749
+ } : a = r, o.destination = new Gr(a), o;
773
750
  }
774
751
  return t;
775
- }(It);
776
- function fe(e) {
777
- Rr(e);
752
+ }(Ct);
753
+ function ce(e) {
754
+ Dr(e);
778
755
  }
779
- function Ur(e) {
756
+ function Fr(e) {
780
757
  throw e;
781
758
  }
782
- var Dr = {
759
+ var jr = {
783
760
  closed: !0,
784
- next: nt,
785
- error: Ur,
786
- complete: nt
787
- }, Gr = function() {
761
+ next: at,
762
+ error: Fr,
763
+ complete: at
764
+ }, kr = function() {
788
765
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
789
766
  }();
790
- function Fr(e) {
767
+ function Wr(e) {
791
768
  return e;
792
769
  }
793
- function jr(e) {
794
- return e.length === 0 ? Fr : e.length === 1 ? e[0] : function(r) {
770
+ function Vr(e) {
771
+ return e.length === 0 ? Wr : e.length === 1 ? e[0] : function(r) {
795
772
  return e.reduce(function(n, i) {
796
773
  return i(n);
797
774
  }, r);
798
775
  };
799
776
  }
800
- var it = function() {
777
+ var ut = function() {
801
778
  function e(t) {
802
779
  t && (this._subscribe = t);
803
780
  }
@@ -805,8 +782,8 @@ var it = function() {
805
782
  var r = new e();
806
783
  return r.source = this, r.operator = t, r;
807
784
  }, e.prototype.subscribe = function(t, r, n) {
808
- var i = this, o = Wr(t) ? t : new De(t, r, n);
809
- return pe(function() {
785
+ var i = this, o = zr(t) ? t : new ke(t, r, n);
786
+ return de(function() {
810
787
  var a = i, s = a.operator, l = a.source;
811
788
  o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
812
789
  }), o;
@@ -818,8 +795,8 @@ var it = function() {
818
795
  }
819
796
  }, e.prototype.forEach = function(t, r) {
820
797
  var n = this;
821
- return r = ot(r), new r(function(i, o) {
822
- var a = new De({
798
+ return r = ht(r), new r(function(i, o) {
799
+ var a = new ke({
823
800
  next: function(s) {
824
801
  try {
825
802
  t(s);
@@ -835,15 +812,15 @@ var it = function() {
835
812
  }, e.prototype._subscribe = function(t) {
836
813
  var r;
837
814
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
838
- }, e.prototype[Gr] = function() {
815
+ }, e.prototype[kr] = function() {
839
816
  return this;
840
817
  }, e.prototype.pipe = function() {
841
818
  for (var t = [], r = 0; r < arguments.length; r++)
842
819
  t[r] = arguments[r];
843
- return jr(t)(this);
820
+ return Vr(t)(this);
844
821
  }, e.prototype.toPromise = function(t) {
845
822
  var r = this;
846
- return t = ot(t), new t(function(n, i) {
823
+ return t = ht(t), new t(function(n, i) {
847
824
  var o;
848
825
  r.subscribe(function(a) {
849
826
  return o = a;
@@ -857,40 +834,40 @@ var it = function() {
857
834
  return new e(t);
858
835
  }, e;
859
836
  }();
860
- function ot(e) {
837
+ function ht(e) {
861
838
  var t;
862
- return (t = e ?? Mr.Promise) !== null && t !== void 0 ? t : Promise;
839
+ return (t = e ?? $r.Promise) !== null && t !== void 0 ? t : Promise;
863
840
  }
864
- function kr(e) {
865
- return e && O(e.next) && O(e.error) && O(e.complete);
841
+ function Xr(e) {
842
+ return e && I(e.next) && I(e.error) && I(e.complete);
866
843
  }
867
- function Wr(e) {
868
- return e && e instanceof It || kr(e) && Ot(e);
844
+ function zr(e) {
845
+ return e && e instanceof Ct || Xr(e) && Mt(e);
869
846
  }
870
- var Vr = Pt(function(e) {
847
+ var Zr = Nt(function(e) {
871
848
  return function() {
872
849
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
873
850
  };
874
- }), Nt = function(e) {
875
- N(t, e);
851
+ }), Rt = function(e) {
852
+ ae(t, e);
876
853
  function t() {
877
854
  var r = e.call(this) || this;
878
855
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
879
856
  }
880
857
  return t.prototype.lift = function(r) {
881
- var n = new st(this, this);
858
+ var n = new lt(this, this);
882
859
  return n.operator = r, n;
883
860
  }, t.prototype._throwIfClosed = function() {
884
861
  if (this.closed)
885
- throw new Vr();
862
+ throw new Zr();
886
863
  }, t.prototype.next = function(r) {
887
864
  var n = this;
888
- pe(function() {
865
+ de(function() {
889
866
  var i, o;
890
867
  if (n._throwIfClosed(), !n.isStopped) {
891
868
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
892
869
  try {
893
- for (var a = Re(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
870
+ for (var a = De(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
894
871
  var l = s.value;
895
872
  l.next(r);
896
873
  }
@@ -908,7 +885,7 @@ var Vr = Pt(function(e) {
908
885
  });
909
886
  }, t.prototype.error = function(r) {
910
887
  var n = this;
911
- pe(function() {
888
+ de(function() {
912
889
  if (n._throwIfClosed(), !n.isStopped) {
913
890
  n.hasError = n.isStopped = !0, n.thrownError = r;
914
891
  for (var i = n.observers; i.length; )
@@ -917,7 +894,7 @@ var Vr = Pt(function(e) {
917
894
  });
918
895
  }, t.prototype.complete = function() {
919
896
  var r = this;
920
- pe(function() {
897
+ de(function() {
921
898
  if (r._throwIfClosed(), !r.isStopped) {
922
899
  r.isStopped = !0;
923
900
  for (var n = r.observers; n.length; )
@@ -939,20 +916,20 @@ var Vr = Pt(function(e) {
939
916
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
940
917
  }, t.prototype._innerSubscribe = function(r) {
941
918
  var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
942
- return o || a ? At : (this.currentObservers = null, s.push(r), new ve(function() {
943
- n.currentObservers = null, Ue(s, r);
919
+ return o || a ? Lt : (this.currentObservers = null, s.push(r), new _e(function() {
920
+ n.currentObservers = null, je(s, r);
944
921
  }));
945
922
  }, t.prototype._checkFinalizedStatuses = function(r) {
946
923
  var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
947
924
  i ? r.error(o) : a && r.complete();
948
925
  }, t.prototype.asObservable = function() {
949
- var r = new it();
926
+ var r = new ut();
950
927
  return r.source = this, r;
951
928
  }, t.create = function(r, n) {
952
- return new st(r, n);
929
+ return new lt(r, n);
953
930
  }, t;
954
- }(it), st = function(e) {
955
- N(t, e);
931
+ }(ut), lt = function(e) {
932
+ ae(t, e);
956
933
  function t(r, n) {
957
934
  var i = e.call(this) || this;
958
935
  return i.destination = r, i.source = n, i;
@@ -968,17 +945,17 @@ var Vr = Pt(function(e) {
968
945
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
969
946
  }, t.prototype._subscribe = function(r) {
970
947
  var n, i;
971
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : At;
948
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Lt;
972
949
  }, t;
973
- }(Nt), Lt = {
950
+ }(Rt), $t = {
974
951
  now: function() {
975
- return (Lt.delegate || Date).now();
952
+ return ($t.delegate || Date).now();
976
953
  },
977
954
  delegate: void 0
978
- }, Xr = function(e) {
979
- N(t, e);
955
+ }, Qr = function(e) {
956
+ ae(t, e);
980
957
  function t(r, n, i) {
981
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lt);
958
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = $t);
982
959
  var o = e.call(this) || this;
983
960
  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;
984
961
  }
@@ -998,24 +975,24 @@ var Vr = Pt(function(e) {
998
975
  u && o.splice(0, u + 1);
999
976
  }
1000
977
  }, t;
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);
978
+ }(Rt);
979
+ const ct = [], ft = {}, Jr = (e, t = 0) => {
980
+ if (ct.indexOf(e) == -1) {
981
+ const r = new Qr(t);
982
+ ft[e] = r, ct.push(e);
1006
983
  }
1007
- return ut[e];
984
+ return ft[e];
1008
985
  }, j = [];
1009
- function Zr(e, t) {
986
+ function qr(e, t) {
1010
987
  return {
1011
- subscribe: _e(e, t).subscribe
988
+ subscribe: Ee(e, t).subscribe
1012
989
  };
1013
990
  }
1014
- function _e(e, t = B) {
991
+ function Ee(e, t = P) {
1015
992
  let r;
1016
993
  const n = /* @__PURE__ */ new Set();
1017
994
  function i(s) {
1018
- if (Tt(e, s) && (e = s, r)) {
995
+ if (At(e, s) && (e = s, r)) {
1019
996
  const l = !j.length;
1020
997
  for (const u of n)
1021
998
  u[1](), j.push(u, e);
@@ -1029,153 +1006,192 @@ function _e(e, t = B) {
1029
1006
  function o(s) {
1030
1007
  i(s(e));
1031
1008
  }
1032
- function a(s, l = B) {
1009
+ function a(s, l = P) {
1033
1010
  const u = [s, l];
1034
- return n.add(u), n.size === 1 && (r = t(i, o) || B), s(e), () => {
1011
+ return n.add(u), n.size === 1 && (r = t(i, o) || P), s(e), () => {
1035
1012
  n.delete(u), n.size === 0 && r && (r(), r = null);
1036
1013
  };
1037
1014
  }
1038
1015
  return { set: i, update: o, subscribe: a };
1039
1016
  }
1040
- function q(e, t, r) {
1017
+ function J(e, t, r) {
1041
1018
  const n = !Array.isArray(e), i = n ? [e] : e;
1042
1019
  if (!i.every(Boolean))
1043
1020
  throw new Error("derived() expects stores as input, got a falsy value");
1044
1021
  const o = t.length < 2;
1045
- return Zr(r, (a, s) => {
1022
+ return qr(r, (a, s) => {
1046
1023
  let l = !1;
1047
1024
  const u = [];
1048
- let h = 0, f = B;
1049
- const c = () => {
1025
+ let h = 0, c = P;
1026
+ const f = () => {
1050
1027
  if (h)
1051
1028
  return;
1052
- f();
1029
+ c();
1053
1030
  const m = t(n ? u[0] : u, a, s);
1054
- o ? a(m) : f = Ze(m) ? m : B;
1055
- }, d = i.map(
1056
- (m, g) => Ht(
1031
+ o ? a(m) : c = Ke(m) ? m : P;
1032
+ }, p = i.map(
1033
+ (m, y) => Ot(
1057
1034
  m,
1058
1035
  (w) => {
1059
- u[g] = w, h &= ~(1 << g), l && c();
1036
+ u[y] = w, h &= ~(1 << y), l && f();
1060
1037
  },
1061
1038
  () => {
1062
- h |= 1 << g;
1039
+ h |= 1 << y;
1063
1040
  }
1064
1041
  )
1065
1042
  );
1066
- return l = !0, c(), function() {
1067
- se(d), f(), l = !1;
1043
+ return l = !0, f(), function() {
1044
+ oe(p), c(), l = !1;
1068
1045
  };
1069
1046
  });
1070
1047
  }
1071
- function Qr(e) {
1072
- return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1048
+ function Yr(e) {
1049
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1073
1050
  }
1074
- var Jr = function(t) {
1075
- return qr(t) && !Yr(t);
1051
+ var Kr = function(t) {
1052
+ return en(t) && !tn(t);
1076
1053
  };
1077
- function qr(e) {
1054
+ function en(e) {
1078
1055
  return !!e && typeof e == "object";
1079
1056
  }
1080
- function Yr(e) {
1057
+ function tn(e) {
1081
1058
  var t = Object.prototype.toString.call(e);
1082
- return t === "[object RegExp]" || t === "[object Date]" || tn(e);
1059
+ return t === "[object RegExp]" || t === "[object Date]" || on(e);
1083
1060
  }
1084
- var Kr = typeof Symbol == "function" && Symbol.for, en = Kr ? Symbol.for("react.element") : 60103;
1085
- function tn(e) {
1086
- return e.$$typeof === en;
1061
+ var rn = typeof Symbol == "function" && Symbol.for, nn = rn ? Symbol.for("react.element") : 60103;
1062
+ function on(e) {
1063
+ return e.$$typeof === nn;
1087
1064
  }
1088
- function rn(e) {
1065
+ function sn(e) {
1089
1066
  return Array.isArray(e) ? [] : {};
1090
1067
  }
1091
- function ie(e, t) {
1092
- return t.clone !== !1 && t.isMergeableObject(e) ? X(rn(e), e, t) : e;
1068
+ function ne(e, t) {
1069
+ return t.clone !== !1 && t.isMergeableObject(e) ? V(sn(e), e, t) : e;
1093
1070
  }
1094
- function nn(e, t, r) {
1071
+ function an(e, t, r) {
1095
1072
  return e.concat(t).map(function(n) {
1096
- return ie(n, r);
1073
+ return ne(n, r);
1097
1074
  });
1098
1075
  }
1099
- function on(e, t) {
1076
+ function un(e, t) {
1100
1077
  if (!t.customMerge)
1101
- return X;
1078
+ return V;
1102
1079
  var r = t.customMerge(e);
1103
- return typeof r == "function" ? r : X;
1080
+ return typeof r == "function" ? r : V;
1104
1081
  }
1105
- function sn(e) {
1082
+ function hn(e) {
1106
1083
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1107
1084
  return Object.propertyIsEnumerable.call(e, t);
1108
1085
  }) : [];
1109
1086
  }
1110
- function ht(e) {
1111
- return Object.keys(e).concat(sn(e));
1087
+ function pt(e) {
1088
+ return Object.keys(e).concat(hn(e));
1112
1089
  }
1113
- function Mt(e, t) {
1090
+ function Ut(e, t) {
1114
1091
  try {
1115
1092
  return t in e;
1116
1093
  } catch {
1117
1094
  return !1;
1118
1095
  }
1119
1096
  }
1120
- function an(e, t) {
1121
- return Mt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1097
+ function ln(e, t) {
1098
+ return Ut(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1122
1099
  }
1123
- function un(e, t, r) {
1100
+ function cn(e, t, r) {
1124
1101
  var n = {};
1125
- return r.isMergeableObject(e) && ht(e).forEach(function(i) {
1126
- n[i] = ie(e[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));
1102
+ return r.isMergeableObject(e) && pt(e).forEach(function(i) {
1103
+ n[i] = ne(e[i], r);
1104
+ }), pt(t).forEach(function(i) {
1105
+ ln(e, i) || (Ut(e, i) && r.isMergeableObject(t[i]) ? n[i] = un(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
1129
1106
  }), n;
1130
1107
  }
1131
- function X(e, t, r) {
1132
- r = r || {}, r.arrayMerge = r.arrayMerge || nn, r.isMergeableObject = r.isMergeableObject || Jr, r.cloneUnlessOtherwiseSpecified = ie;
1108
+ function V(e, t, r) {
1109
+ r = r || {}, r.arrayMerge = r.arrayMerge || an, r.isMergeableObject = r.isMergeableObject || Kr, r.cloneUnlessOtherwiseSpecified = ne;
1133
1110
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1134
- return o ? n ? r.arrayMerge(e, t, r) : un(e, t, r) : ie(t, r);
1111
+ return o ? n ? r.arrayMerge(e, t, r) : cn(e, t, r) : ne(t, r);
1135
1112
  }
1136
- X.all = function(t, r) {
1113
+ V.all = function(t, r) {
1137
1114
  if (!Array.isArray(t))
1138
1115
  throw new Error("first argument should be an array");
1139
1116
  return t.reduce(function(n, i) {
1140
- return X(n, i, r);
1117
+ return V(n, i, r);
1141
1118
  }, {});
1142
1119
  };
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;
1120
+ var fn = V, pn = fn;
1121
+ const dn = /* @__PURE__ */ Yr(pn);
1122
+ var We = function(e, t) {
1123
+ return We = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1124
+ r.__proto__ = n;
1125
+ } || function(r, n) {
1126
+ for (var i in n)
1127
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1128
+ }, We(e, t);
1129
+ };
1130
+ function xe(e, t) {
1131
+ if (typeof t != "function" && t !== null)
1132
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1133
+ We(e, t);
1134
+ function r() {
1135
+ this.constructor = e;
1136
+ }
1137
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1138
+ }
1139
+ var O = function() {
1140
+ return O = Object.assign || function(t) {
1141
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
1142
+ r = arguments[n];
1143
+ for (var o in r)
1144
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1145
+ }
1146
+ return t;
1147
+ }, O.apply(this, arguments);
1148
+ };
1149
+ function mn(e, t) {
1150
+ var r = {};
1151
+ for (var n in e)
1152
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1153
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
1154
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1155
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1156
+ return r;
1157
+ }
1158
+ function Be(e, t, r) {
1159
+ if (r || arguments.length === 2)
1160
+ for (var n = 0, i = t.length, o; n < i; n++)
1161
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1162
+ return e.concat(o || Array.prototype.slice.call(t));
1163
+ }
1164
+ function Ae(e, t) {
1165
+ var r = t && t.cache ? t.cache : xn, n = t && t.serializer ? t.serializer : _n, i = t && t.strategy ? t.strategy : gn;
1147
1166
  return i(e, {
1148
1167
  cache: r,
1149
1168
  serializer: n
1150
1169
  });
1151
1170
  }
1152
- function cn(e) {
1171
+ function bn(e) {
1153
1172
  return e == null || typeof e == "number" || typeof e == "boolean";
1154
1173
  }
1155
- function Ct(e, t, r, n) {
1156
- var i = cn(n) ? n : r(n), o = t.get(i);
1174
+ function yn(e, t, r, n) {
1175
+ var i = bn(n) ? n : r(n), o = t.get(i);
1157
1176
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1158
1177
  }
1159
- function Rt(e, t, r) {
1178
+ function Dt(e, t, r) {
1160
1179
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1161
1180
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1162
1181
  }
1163
- function Je(e, t, r, n, i) {
1182
+ function Gt(e, t, r, n, i) {
1164
1183
  return r.bind(t, e, n, i);
1165
1184
  }
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
+ function gn(e, t) {
1186
+ var r = e.length === 1 ? yn : Dt;
1187
+ return Gt(e, this, r, t.cache.create(), t.serializer);
1169
1188
  }
1170
- function pn(e, t) {
1171
- return Je(e, this, Rt, t.cache.create(), t.serializer);
1189
+ function vn(e, t) {
1190
+ return Gt(e, this, Dt, t.cache.create(), t.serializer);
1172
1191
  }
1173
- function mn(e, t) {
1174
- return Je(e, this, Ct, t.cache.create(), t.serializer);
1175
- }
1176
- var bn = function() {
1192
+ var _n = function() {
1177
1193
  return JSON.stringify(arguments);
1178
- }, gn = (
1194
+ }, En = (
1179
1195
  /** @class */
1180
1196
  function() {
1181
1197
  function e() {
@@ -1187,62 +1203,71 @@ var bn = function() {
1187
1203
  this.cache[t] = r;
1188
1204
  }, e;
1189
1205
  }()
1190
- ), yn = {
1206
+ ), xn = {
1191
1207
  create: function() {
1192
- return new gn();
1208
+ return new En();
1193
1209
  }
1194
- }, Be = {
1195
- variadic: pn,
1196
- monadic: mn
1197
- }, b;
1210
+ }, Oe = {
1211
+ variadic: vn
1212
+ }, ye = function() {
1213
+ return ye = Object.assign || function(t) {
1214
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
1215
+ r = arguments[n];
1216
+ for (var o in r)
1217
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1218
+ }
1219
+ return t;
1220
+ }, ye.apply(this, arguments);
1221
+ };
1222
+ var b;
1198
1223
  (function(e) {
1199
1224
  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";
1200
1225
  })(b || (b = {}));
1201
- var _;
1226
+ var v;
1202
1227
  (function(e) {
1203
1228
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
1204
- })(_ || (_ = {}));
1205
- var z;
1229
+ })(v || (v = {}));
1230
+ var X;
1206
1231
  (function(e) {
1207
1232
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1208
- })(z || (z = {}));
1209
- function lt(e) {
1210
- return e.type === _.literal;
1233
+ })(X || (X = {}));
1234
+ function dt(e) {
1235
+ return e.type === v.literal;
1211
1236
  }
1212
- function vn(e) {
1213
- return e.type === _.argument;
1237
+ function wn(e) {
1238
+ return e.type === v.argument;
1214
1239
  }
1215
- function $t(e) {
1216
- return e.type === _.number;
1240
+ function Ft(e) {
1241
+ return e.type === v.number;
1217
1242
  }
1218
- function Ut(e) {
1219
- return e.type === _.date;
1243
+ function jt(e) {
1244
+ return e.type === v.date;
1220
1245
  }
1221
- function Dt(e) {
1222
- return e.type === _.time;
1246
+ function kt(e) {
1247
+ return e.type === v.time;
1223
1248
  }
1224
- function Gt(e) {
1225
- return e.type === _.select;
1249
+ function Wt(e) {
1250
+ return e.type === v.select;
1226
1251
  }
1227
- function Ft(e) {
1228
- return e.type === _.plural;
1252
+ function Vt(e) {
1253
+ return e.type === v.plural;
1229
1254
  }
1230
- function _n(e) {
1231
- return e.type === _.pound;
1255
+ function Sn(e) {
1256
+ return e.type === v.pound;
1232
1257
  }
1233
- function jt(e) {
1234
- return e.type === _.tag;
1258
+ function Xt(e) {
1259
+ return e.type === v.tag;
1235
1260
  }
1236
- function kt(e) {
1237
- return !!(e && typeof e == "object" && e.type === z.number);
1261
+ function zt(e) {
1262
+ return !!(e && typeof e == "object" && e.type === X.number);
1238
1263
  }
1239
- function Ge(e) {
1240
- return !!(e && typeof e == "object" && e.type === z.dateTime);
1264
+ function Ve(e) {
1265
+ return !!(e && typeof e == "object" && e.type === X.dateTime);
1241
1266
  }
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) {
1267
+ var Zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Tn = /(?:[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;
1268
+ function Hn(e) {
1244
1269
  var t = {};
1245
- return e.replace(En, function(r) {
1270
+ return e.replace(Tn, function(r) {
1246
1271
  var n = r.length;
1247
1272
  switch (r[0]) {
1248
1273
  case "G":
@@ -1331,36 +1356,46 @@ function xn(e) {
1331
1356
  return "";
1332
1357
  }), t;
1333
1358
  }
1334
- var wn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1335
- function Sn(e) {
1359
+ var _ = function() {
1360
+ return _ = Object.assign || function(t) {
1361
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
1362
+ r = arguments[n];
1363
+ for (var o in r)
1364
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1365
+ }
1366
+ return t;
1367
+ }, _.apply(this, arguments);
1368
+ };
1369
+ var Pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1370
+ function Bn(e) {
1336
1371
  if (e.length === 0)
1337
1372
  throw new Error("Number skeleton cannot be empty");
1338
- for (var t = e.split(wn).filter(function(c) {
1339
- return c.length > 0;
1373
+ for (var t = e.split(Pn).filter(function(f) {
1374
+ return f.length > 0;
1340
1375
  }), r = [], n = 0, i = t; n < i.length; n++) {
1341
1376
  var o = i[n], a = o.split("/");
1342
1377
  if (a.length === 0)
1343
1378
  throw new Error("Invalid number skeleton");
1344
1379
  for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
1345
- var f = h[u];
1346
- if (f.length === 0)
1380
+ var c = h[u];
1381
+ if (c.length === 0)
1347
1382
  throw new Error("Invalid number skeleton");
1348
1383
  }
1349
1384
  r.push({ stem: s, options: l });
1350
1385
  }
1351
1386
  return r;
1352
1387
  }
1353
- function Tn(e) {
1388
+ function An(e) {
1354
1389
  return e.replace(/^(.*?)-/, "");
1355
1390
  }
1356
- var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, Hn = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
1357
- function ct(e) {
1391
+ var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qt = /^(@+)?(\+|#+)?[rs]?$/g, On = /(\*)(0+)|(#+)(0+)|(0+)/g, Jt = /^(0+)$/;
1392
+ function bt(e) {
1358
1393
  var t = {};
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) {
1394
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qt, function(r, n, i) {
1360
1395
  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)), "";
1361
1396
  }), t;
1362
1397
  }
1363
- function zt(e) {
1398
+ function qt(e) {
1364
1399
  switch (e) {
1365
1400
  case "sign-auto":
1366
1401
  return {
@@ -1400,7 +1435,7 @@ function zt(e) {
1400
1435
  };
1401
1436
  }
1402
1437
  }
1403
- function Bn(e) {
1438
+ function In(e) {
1404
1439
  var t;
1405
1440
  if (e[0] === "E" && e[1] === "E" ? (t = {
1406
1441
  notation: "engineering"
@@ -1408,17 +1443,17 @@ function Bn(e) {
1408
1443
  notation: "scientific"
1409
1444
  }, e = e.slice(1)), t) {
1410
1445
  var r = e.slice(0, 2);
1411
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xt.test(e))
1446
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jt.test(e))
1412
1447
  throw new Error("Malformed concise eng/scientific notation");
1413
1448
  t.minimumIntegerDigits = e.length;
1414
1449
  }
1415
1450
  return t;
1416
1451
  }
1417
- function dt(e) {
1418
- var t = {}, r = zt(e);
1452
+ function yt(e) {
1453
+ var t = {}, r = qt(e);
1419
1454
  return r || t;
1420
1455
  }
1421
- function Pn(e) {
1456
+ function Nn(e) {
1422
1457
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1423
1458
  var i = n[r];
1424
1459
  switch (i.stem) {
@@ -1442,7 +1477,7 @@ function Pn(e) {
1442
1477
  continue;
1443
1478
  case "measure-unit":
1444
1479
  case "unit":
1445
- t.style = "unit", t.unit = Tn(i.options[0]);
1480
+ t.style = "unit", t.unit = An(i.options[0]);
1446
1481
  continue;
1447
1482
  case "compact-short":
1448
1483
  case "K":
@@ -1453,13 +1488,13 @@ function Pn(e) {
1453
1488
  t.notation = "compact", t.compactDisplay = "long";
1454
1489
  continue;
1455
1490
  case "scientific":
1456
- t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1457
- return v(v({}, l), dt(u));
1491
+ t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1492
+ return _(_({}, l), yt(u));
1458
1493
  }, {}));
1459
1494
  continue;
1460
1495
  case "engineering":
1461
- t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1462
- return v(v({}, l), dt(u));
1496
+ t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1497
+ return _(_({}, l), yt(u));
1463
1498
  }, {}));
1464
1499
  continue;
1465
1500
  case "notation-simple":
@@ -1504,45 +1539,45 @@ function Pn(e) {
1504
1539
  case "integer-width":
1505
1540
  if (i.options.length > 1)
1506
1541
  throw new RangeError("integer-width stems only accept a single optional option");
1507
- i.options[0].replace(Hn, function(l, u, h, f, c, d) {
1542
+ i.options[0].replace(On, function(l, u, h, c, f, p) {
1508
1543
  if (u)
1509
1544
  t.minimumIntegerDigits = h.length;
1510
1545
  else {
1511
- if (f && c)
1546
+ if (c && f)
1512
1547
  throw new Error("We currently do not support maximum integer digits");
1513
- if (d)
1548
+ if (p)
1514
1549
  throw new Error("We currently do not support exact integer digits");
1515
1550
  }
1516
1551
  return "";
1517
1552
  });
1518
1553
  continue;
1519
1554
  }
1520
- if (Xt.test(i.stem)) {
1555
+ if (Jt.test(i.stem)) {
1521
1556
  t.minimumIntegerDigits = i.stem.length;
1522
1557
  continue;
1523
1558
  }
1524
- if (ft.test(i.stem)) {
1559
+ if (mt.test(i.stem)) {
1525
1560
  if (i.options.length > 1)
1526
1561
  throw new RangeError("Fraction-precision stems only accept a single optional option");
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), "";
1562
+ i.stem.replace(mt, function(l, u, h, c, f, p) {
1563
+ 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), "";
1529
1564
  });
1530
1565
  var o = i.options[0];
1531
- o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), ct(o)));
1566
+ o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), bt(o)));
1532
1567
  continue;
1533
1568
  }
1534
- if (Vt.test(i.stem)) {
1535
- t = v(v({}, t), ct(i.stem));
1569
+ if (Qt.test(i.stem)) {
1570
+ t = _(_({}, t), bt(i.stem));
1536
1571
  continue;
1537
1572
  }
1538
- var a = zt(i.stem);
1539
- a && (t = v(v({}, t), a));
1540
- var s = Bn(i.stem);
1541
- s && (t = v(v({}, t), s));
1573
+ var a = qt(i.stem);
1574
+ a && (t = _(_({}, t), a));
1575
+ var s = In(i.stem);
1576
+ s && (t = _(_({}, t), s));
1542
1577
  }
1543
1578
  return t;
1544
1579
  }
1545
- var ce = {
1580
+ var fe = {
1546
1581
  "001": [
1547
1582
  "H",
1548
1583
  "h"
@@ -2957,13 +2992,13 @@ var ce = {
2957
2992
  "h"
2958
2993
  ]
2959
2994
  };
2960
- function An(e, t) {
2995
+ function Ln(e, t) {
2961
2996
  for (var r = "", n = 0; n < e.length; n++) {
2962
2997
  var i = e.charAt(n);
2963
2998
  if (i === "j") {
2964
2999
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2965
3000
  o++, n++;
2966
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = On(t);
3001
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Mn(t);
2967
3002
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2968
3003
  r += l;
2969
3004
  for (; a-- > 0; )
@@ -2973,7 +3008,7 @@ function An(e, t) {
2973
3008
  }
2974
3009
  return r;
2975
3010
  }
2976
- function On(e) {
3011
+ function Mn(e) {
2977
3012
  var t = e.hourCycle;
2978
3013
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2979
3014
  e.hourCycles && // @ts-ignore
@@ -2992,23 +3027,23 @@ function On(e) {
2992
3027
  }
2993
3028
  var r = e.language, n;
2994
3029
  r !== "root" && (n = e.maximize().region);
2995
- var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
3030
+ var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
2996
3031
  return i[0];
2997
3032
  }
2998
- var Pe, In = new RegExp("^".concat(Wt.source, "*")), Nn = new RegExp("".concat(Wt.source, "*$"));
2999
- function y(e, t) {
3033
+ var Ie, Cn = new RegExp("^".concat(Zt.source, "*")), Rn = new RegExp("".concat(Zt.source, "*$"));
3034
+ function g(e, t) {
3000
3035
  return { start: e, end: t };
3001
3036
  }
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) {
3037
+ var $n = !!String.prototype.startsWith && "_a".startsWith("a", 1), Un = !!String.fromCodePoint, Dn = !!Object.fromEntries, Gn = !!String.prototype.codePointAt, Fn = !!String.prototype.trimStart, jn = !!String.prototype.trimEnd, kn = !!Number.isSafeInteger, Wn = kn ? Number.isSafeInteger : function(e) {
3003
3038
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3004
- }, Fe = !0;
3039
+ }, Xe = !0;
3005
3040
  try {
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";
3041
+ var Vn = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3042
+ Xe = ((Ie = Vn.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
3008
3043
  } catch {
3009
- Fe = !1;
3044
+ Xe = !1;
3010
3045
  }
3011
- var pt = Ln ? (
3046
+ var gt = $n ? (
3012
3047
  // Native
3013
3048
  function(t, r, n) {
3014
3049
  return t.startsWith(r, n);
@@ -3018,7 +3053,7 @@ var pt = Ln ? (
3018
3053
  function(t, r, n) {
3019
3054
  return t.slice(n, n + r.length) === r;
3020
3055
  }
3021
- ), je = Mn ? String.fromCodePoint : (
3056
+ ), ze = Un ? String.fromCodePoint : (
3022
3057
  // IE11
3023
3058
  function() {
3024
3059
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3030,9 +3065,9 @@ var pt = Ln ? (
3030
3065
  }
3031
3066
  return n;
3032
3067
  }
3033
- ), mt = (
3068
+ ), vt = (
3034
3069
  // native
3035
- Cn ? Object.fromEntries : (
3070
+ Dn ? Object.fromEntries : (
3036
3071
  // Ponyfill
3037
3072
  function(t) {
3038
3073
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3042,7 +3077,7 @@ var pt = Ln ? (
3042
3077
  return r;
3043
3078
  }
3044
3079
  )
3045
- ), Zt = Rn ? (
3080
+ ), Yt = Gn ? (
3046
3081
  // Native
3047
3082
  function(t, r) {
3048
3083
  return t.codePointAt(r);
@@ -3056,7 +3091,7 @@ var pt = Ln ? (
3056
3091
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3057
3092
  }
3058
3093
  }
3059
- ), jn = $n ? (
3094
+ ), Xn = Fn ? (
3060
3095
  // Native
3061
3096
  function(t) {
3062
3097
  return t.trimStart();
@@ -3064,9 +3099,9 @@ var pt = Ln ? (
3064
3099
  ) : (
3065
3100
  // Ponyfill
3066
3101
  function(t) {
3067
- return t.replace(In, "");
3102
+ return t.replace(Cn, "");
3068
3103
  }
3069
- ), kn = Un ? (
3104
+ ), zn = jn ? (
3070
3105
  // Native
3071
3106
  function(t) {
3072
3107
  return t.trimEnd();
@@ -3074,32 +3109,32 @@ var pt = Ln ? (
3074
3109
  ) : (
3075
3110
  // Ponyfill
3076
3111
  function(t) {
3077
- return t.replace(Nn, "");
3112
+ return t.replace(Rn, "");
3078
3113
  }
3079
3114
  );
3080
- function Qt(e, t) {
3115
+ function Kt(e, t) {
3081
3116
  return new RegExp(e, t);
3082
3117
  }
3083
- var ke;
3084
- if (Fe) {
3085
- var bt = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3086
- ke = function(t, r) {
3118
+ var Ze;
3119
+ if (Xe) {
3120
+ var _t = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3121
+ Ze = function(t, r) {
3087
3122
  var n;
3088
- bt.lastIndex = r;
3089
- var i = bt.exec(t);
3123
+ _t.lastIndex = r;
3124
+ var i = _t.exec(t);
3090
3125
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3091
3126
  };
3092
3127
  } else
3093
- ke = function(t, r) {
3128
+ Ze = function(t, r) {
3094
3129
  for (var n = []; ; ) {
3095
- var i = Zt(t, r);
3096
- if (i === void 0 || Jt(i) || zn(i))
3130
+ var i = Yt(t, r);
3131
+ if (i === void 0 || er(i) || qn(i))
3097
3132
  break;
3098
3133
  n.push(i), r += i >= 65536 ? 2 : 1;
3099
3134
  }
3100
- return je.apply(void 0, n);
3135
+ return ze.apply(void 0, n);
3101
3136
  };
3102
- var Wn = (
3137
+ var Zn = (
3103
3138
  /** @class */
3104
3139
  function() {
3105
3140
  function e(t, r) {
@@ -3123,14 +3158,14 @@ var Wn = (
3123
3158
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3124
3159
  var s = this.clonePosition();
3125
3160
  this.bump(), i.push({
3126
- type: _.pound,
3127
- location: y(s, this.clonePosition())
3161
+ type: v.pound,
3162
+ location: g(s, this.clonePosition())
3128
3163
  });
3129
3164
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3130
3165
  if (n)
3131
3166
  break;
3132
- return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
3133
- } else if (o === 60 && !this.ignoreTag && We(this.peek() || 0)) {
3167
+ return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
3168
+ } else if (o === 60 && !this.ignoreTag && Qe(this.peek() || 0)) {
3134
3169
  var a = this.parseTag(t, r);
3135
3170
  if (a.err)
3136
3171
  return a;
@@ -3151,9 +3186,9 @@ var Wn = (
3151
3186
  if (this.bumpSpace(), this.bumpIf("/>"))
3152
3187
  return {
3153
3188
  val: {
3154
- type: _.literal,
3189
+ type: v.literal,
3155
3190
  value: "<".concat(i, "/>"),
3156
- location: y(n, this.clonePosition())
3191
+ location: g(n, this.clonePosition())
3157
3192
  },
3158
3193
  err: null
3159
3194
  };
@@ -3163,25 +3198,25 @@ var Wn = (
3163
3198
  return o;
3164
3199
  var a = o.val, s = this.clonePosition();
3165
3200
  if (this.bumpIf("</")) {
3166
- if (this.isEOF() || !We(this.char()))
3167
- return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
3201
+ if (this.isEOF() || !Qe(this.char()))
3202
+ return this.error(b.INVALID_TAG, g(s, this.clonePosition()));
3168
3203
  var l = this.clonePosition(), u = this.parseTagName();
3169
- return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3204
+ return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3170
3205
  val: {
3171
- type: _.tag,
3206
+ type: v.tag,
3172
3207
  value: i,
3173
3208
  children: a,
3174
- location: y(n, this.clonePosition())
3209
+ location: g(n, this.clonePosition())
3175
3210
  },
3176
3211
  err: null
3177
- } : this.error(b.INVALID_TAG, y(s, this.clonePosition())));
3212
+ } : this.error(b.INVALID_TAG, g(s, this.clonePosition())));
3178
3213
  } else
3179
- return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
3214
+ return this.error(b.UNCLOSED_TAG, g(n, this.clonePosition()));
3180
3215
  } else
3181
- return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
3216
+ return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
3182
3217
  }, e.prototype.parseTagName = function() {
3183
3218
  var t = this.offset();
3184
- for (this.bump(); !this.isEOF() && Xn(this.char()); )
3219
+ for (this.bump(); !this.isEOF() && Jn(this.char()); )
3185
3220
  this.bump();
3186
3221
  return this.message.slice(t, this.offset());
3187
3222
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3203,14 +3238,14 @@ var Wn = (
3203
3238
  }
3204
3239
  break;
3205
3240
  }
3206
- var l = y(n, this.clonePosition());
3241
+ var l = g(n, this.clonePosition());
3207
3242
  return {
3208
- val: { type: _.literal, value: i, location: l },
3243
+ val: { type: v.literal, value: i, location: l },
3209
3244
  err: null
3210
3245
  };
3211
3246
  }, e.prototype.tryParseLeftAngleBracket = function() {
3212
3247
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3213
- !Vn(this.peek() || 0)) ? (this.bump(), "<") : null;
3248
+ !Qn(this.peek() || 0)) ? (this.bump(), "<") : null;
3214
3249
  }, e.prototype.tryParseQuote = function(t) {
3215
3250
  if (this.isEOF() || this.char() !== 39)
3216
3251
  return null;
@@ -3244,49 +3279,49 @@ var Wn = (
3244
3279
  r.push(n);
3245
3280
  this.bump();
3246
3281
  }
3247
- return je.apply(void 0, r);
3282
+ return ze.apply(void 0, r);
3248
3283
  }, e.prototype.tryParseUnquoted = function(t, r) {
3249
3284
  if (this.isEOF())
3250
3285
  return null;
3251
3286
  var n = this.char();
3252
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
3287
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ze(n));
3253
3288
  }, e.prototype.parseArgument = function(t, r) {
3254
3289
  var n = this.clonePosition();
3255
3290
  if (this.bump(), this.bumpSpace(), this.isEOF())
3256
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
3291
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
3257
3292
  if (this.char() === 125)
3258
- return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
3293
+ return this.bump(), this.error(b.EMPTY_ARGUMENT, g(n, this.clonePosition()));
3259
3294
  var i = this.parseIdentifierIfPossible().value;
3260
3295
  if (!i)
3261
- return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
3296
+ return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
3262
3297
  if (this.bumpSpace(), this.isEOF())
3263
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
3298
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
3264
3299
  switch (this.char()) {
3265
3300
  case 125:
3266
3301
  return this.bump(), {
3267
3302
  val: {
3268
- type: _.argument,
3303
+ type: v.argument,
3269
3304
  // value does not include the opening and closing braces.
3270
3305
  value: i,
3271
- location: y(n, this.clonePosition())
3306
+ location: g(n, this.clonePosition())
3272
3307
  },
3273
3308
  err: null
3274
3309
  };
3275
3310
  case 44:
3276
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3311
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3277
3312
  default:
3278
- return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
3313
+ return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
3279
3314
  }
3280
3315
  }, e.prototype.parseIdentifierIfPossible = function() {
3281
- var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
3316
+ var t = this.clonePosition(), r = this.offset(), n = Ze(this.message, r), i = r + n.length;
3282
3317
  this.bumpTo(i);
3283
- var o = this.clonePosition(), a = y(t, o);
3318
+ var o = this.clonePosition(), a = g(t, o);
3284
3319
  return { value: n, location: a };
3285
3320
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3286
3321
  var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3287
3322
  switch (s) {
3288
3323
  case "":
3289
- return this.error(b.EXPECT_ARGUMENT_TYPE, y(a, l));
3324
+ return this.error(b.EXPECT_ARGUMENT_TYPE, g(a, l));
3290
3325
  case "number":
3291
3326
  case "date":
3292
3327
  case "time": {
@@ -3294,49 +3329,49 @@ var Wn = (
3294
3329
  var u = null;
3295
3330
  if (this.bumpIf(",")) {
3296
3331
  this.bumpSpace();
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)
3302
- return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
3303
- var d = y(h, this.clonePosition());
3304
- u = { style: c, styleLocation: d };
3332
+ var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3333
+ if (c.err)
3334
+ return c;
3335
+ var f = zn(c.val);
3336
+ if (f.length === 0)
3337
+ return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
3338
+ var p = g(h, this.clonePosition());
3339
+ u = { style: f, styleLocation: p };
3305
3340
  }
3306
3341
  var m = this.tryParseArgumentClose(i);
3307
3342
  if (m.err)
3308
3343
  return m;
3309
- var g = y(i, this.clonePosition());
3310
- if (u && pt(u?.style, "::", 0)) {
3311
- var w = jn(u.style.slice(2));
3344
+ var y = g(i, this.clonePosition());
3345
+ if (u && gt(u?.style, "::", 0)) {
3346
+ var w = Xn(u.style.slice(2));
3312
3347
  if (s === "number") {
3313
- var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
3314
- return f.err ? f : {
3315
- val: { type: _.number, value: n, location: g, style: f.val },
3348
+ var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
3349
+ return c.err ? c : {
3350
+ val: { type: v.number, value: n, location: y, style: c.val },
3316
3351
  err: null
3317
3352
  };
3318
3353
  } else {
3319
3354
  if (w.length === 0)
3320
- return this.error(b.EXPECT_DATE_TIME_SKELETON, g);
3355
+ return this.error(b.EXPECT_DATE_TIME_SKELETON, y);
3321
3356
  var L = w;
3322
- this.locale && (L = An(w, this.locale));
3323
- var c = {
3324
- type: z.dateTime,
3357
+ this.locale && (L = Ln(w, this.locale));
3358
+ var f = {
3359
+ type: X.dateTime,
3325
3360
  pattern: L,
3326
3361
  location: u.styleLocation,
3327
- parsedOptions: this.shouldParseSkeletons ? xn(L) : {}
3328
- }, P = s === "date" ? _.date : _.time;
3362
+ parsedOptions: this.shouldParseSkeletons ? Hn(L) : {}
3363
+ }, B = s === "date" ? v.date : v.time;
3329
3364
  return {
3330
- val: { type: P, value: n, location: g, style: c },
3365
+ val: { type: B, value: n, location: y, style: f },
3331
3366
  err: null
3332
3367
  };
3333
3368
  }
3334
3369
  }
3335
3370
  return {
3336
3371
  val: {
3337
- type: s === "number" ? _.number : s === "date" ? _.date : _.time,
3372
+ type: s === "number" ? v.number : s === "date" ? v.date : v.time,
3338
3373
  value: n,
3339
- location: g,
3374
+ location: y,
3340
3375
  style: (o = u?.style) !== null && o !== void 0 ? o : null
3341
3376
  },
3342
3377
  err: null
@@ -3347,17 +3382,17 @@ var Wn = (
3347
3382
  case "select": {
3348
3383
  var T = this.clonePosition();
3349
3384
  if (this.bumpSpace(), !this.bumpIf(","))
3350
- return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(T, v({}, T)));
3385
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(T, ye({}, T)));
3351
3386
  this.bumpSpace();
3352
3387
  var $ = this.parseIdentifierIfPossible(), A = 0;
3353
3388
  if (s !== "select" && $.value === "offset") {
3354
3389
  if (!this.bumpIf(":"))
3355
- return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
3390
+ return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
3356
3391
  this.bumpSpace();
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;
3392
+ var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3393
+ if (c.err)
3394
+ return c;
3395
+ this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A = c.val;
3361
3396
  }
3362
3397
  var U = this.tryParsePluralOrSelectOptions(t, s, r, $);
3363
3398
  if (U.err)
@@ -3365,20 +3400,20 @@ var Wn = (
3365
3400
  var m = this.tryParseArgumentClose(i);
3366
3401
  if (m.err)
3367
3402
  return m;
3368
- var he = y(i, this.clonePosition());
3403
+ var he = g(i, this.clonePosition());
3369
3404
  return s === "select" ? {
3370
3405
  val: {
3371
- type: _.select,
3406
+ type: v.select,
3372
3407
  value: n,
3373
- options: mt(U.val),
3408
+ options: vt(U.val),
3374
3409
  location: he
3375
3410
  },
3376
3411
  err: null
3377
3412
  } : {
3378
3413
  val: {
3379
- type: _.plural,
3414
+ type: v.plural,
3380
3415
  value: n,
3381
- options: mt(U.val),
3416
+ options: vt(U.val),
3382
3417
  offset: A,
3383
3418
  pluralType: s === "plural" ? "cardinal" : "ordinal",
3384
3419
  location: he
@@ -3387,10 +3422,10 @@ var Wn = (
3387
3422
  };
3388
3423
  }
3389
3424
  default:
3390
- return this.error(b.INVALID_ARGUMENT_TYPE, y(a, l));
3425
+ return this.error(b.INVALID_ARGUMENT_TYPE, g(a, l));
3391
3426
  }
3392
3427
  }, e.prototype.tryParseArgumentClose = function(t) {
3393
- return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3428
+ return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3394
3429
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3395
3430
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3396
3431
  var n = this.char();
@@ -3399,7 +3434,7 @@ var Wn = (
3399
3434
  this.bump();
3400
3435
  var i = this.clonePosition();
3401
3436
  if (!this.bumpUntil("'"))
3402
- return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
3437
+ return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
3403
3438
  this.bump();
3404
3439
  break;
3405
3440
  }
@@ -3429,52 +3464,52 @@ var Wn = (
3429
3464
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3430
3465
  var n = [];
3431
3466
  try {
3432
- n = Sn(t);
3467
+ n = Bn(t);
3433
3468
  } catch {
3434
3469
  return this.error(b.INVALID_NUMBER_SKELETON, r);
3435
3470
  }
3436
3471
  return {
3437
3472
  val: {
3438
- type: z.number,
3473
+ type: X.number,
3439
3474
  tokens: n,
3440
3475
  location: r,
3441
- parsedOptions: this.shouldParseSkeletons ? Pn(n) : {}
3476
+ parsedOptions: this.shouldParseSkeletons ? Nn(n) : {}
3442
3477
  },
3443
3478
  err: null
3444
3479
  };
3445
3480
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3446
3481
  for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3447
3482
  if (u.length === 0) {
3448
- var f = this.clonePosition();
3483
+ var c = this.clonePosition();
3449
3484
  if (r !== "select" && this.bumpIf("=")) {
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());
3485
+ var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3486
+ if (f.err)
3487
+ return f;
3488
+ h = g(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3454
3489
  } else
3455
3490
  break;
3456
3491
  }
3457
3492
  if (l.has(u))
3458
3493
  return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3459
3494
  u === "other" && (a = !0), this.bumpSpace();
3460
- var d = this.clonePosition();
3495
+ var p = this.clonePosition();
3461
3496
  if (!this.bumpIf("{"))
3462
- return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
3497
+ return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
3463
3498
  var m = this.parseMessage(t + 1, r, n);
3464
3499
  if (m.err)
3465
3500
  return m;
3466
- var g = this.tryParseArgumentClose(d);
3467
- if (g.err)
3468
- return g;
3501
+ var y = this.tryParseArgumentClose(p);
3502
+ if (y.err)
3503
+ return y;
3469
3504
  s.push([
3470
3505
  u,
3471
3506
  {
3472
3507
  value: m.val,
3473
- location: y(d, this.clonePosition())
3508
+ location: g(p, this.clonePosition())
3474
3509
  }
3475
3510
  ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
3476
3511
  }
3477
- return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3512
+ return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3478
3513
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3479
3514
  var n = 1, i = this.clonePosition();
3480
3515
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3485,8 +3520,8 @@ var Wn = (
3485
3520
  else
3486
3521
  break;
3487
3522
  }
3488
- var l = y(i, this.clonePosition());
3489
- return o ? (a *= n, Gn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3523
+ var l = g(i, this.clonePosition());
3524
+ return o ? (a *= n, Wn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3490
3525
  }, e.prototype.offset = function() {
3491
3526
  return this.position.offset;
3492
3527
  }, e.prototype.isEOF = function() {
@@ -3501,7 +3536,7 @@ var Wn = (
3501
3536
  var t = this.position.offset;
3502
3537
  if (t >= this.message.length)
3503
3538
  throw Error("out of bound");
3504
- var r = Zt(this.message, t);
3539
+ var r = Yt(this.message, t);
3505
3540
  if (r === void 0)
3506
3541
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3507
3542
  return r;
@@ -3520,7 +3555,7 @@ var Wn = (
3520
3555
  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);
3521
3556
  }
3522
3557
  }, e.prototype.bumpIf = function(t) {
3523
- if (pt(this.message, t, this.offset())) {
3558
+ if (gt(this.message, t, this.offset())) {
3524
3559
  for (var r = 0; r < t.length; r++)
3525
3560
  this.bump();
3526
3561
  return !0;
@@ -3542,7 +3577,7 @@ var Wn = (
3542
3577
  break;
3543
3578
  }
3544
3579
  }, e.prototype.bumpSpace = function() {
3545
- for (; !this.isEOF() && Jt(this.char()); )
3580
+ for (; !this.isEOF() && er(this.char()); )
3546
3581
  this.bump();
3547
3582
  }, e.prototype.peek = function() {
3548
3583
  if (this.isEOF())
@@ -3552,47 +3587,47 @@ var Wn = (
3552
3587
  }, e;
3553
3588
  }()
3554
3589
  );
3555
- function We(e) {
3590
+ function Qe(e) {
3556
3591
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3557
3592
  }
3558
- function Vn(e) {
3559
- return We(e) || e === 47;
3593
+ function Qn(e) {
3594
+ return Qe(e) || e === 47;
3560
3595
  }
3561
- function Xn(e) {
3596
+ function Jn(e) {
3562
3597
  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;
3563
3598
  }
3564
- function Jt(e) {
3599
+ function er(e) {
3565
3600
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3566
3601
  }
3567
- function zn(e) {
3602
+ function qn(e) {
3568
3603
  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;
3569
3604
  }
3570
- function Ve(e) {
3605
+ function Je(e) {
3571
3606
  e.forEach(function(t) {
3572
- if (delete t.location, Gt(t) || Ft(t))
3607
+ if (delete t.location, Wt(t) || Vt(t))
3573
3608
  for (var r in t.options)
3574
- delete t.options[r].location, Ve(t.options[r].value);
3609
+ delete t.options[r].location, Je(t.options[r].value);
3575
3610
  else
3576
- $t(t) && kt(t.style) || (Ut(t) || Dt(t)) && Ge(t.style) ? delete t.style.location : jt(t) && Ve(t.children);
3611
+ Ft(t) && zt(t.style) || (jt(t) || kt(t)) && Ve(t.style) ? delete t.style.location : Xt(t) && Je(t.children);
3577
3612
  });
3578
3613
  }
3579
- function Zn(e, t) {
3580
- t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3581
- var r = new Wn(e, t).parse();
3614
+ function Yn(e, t) {
3615
+ t === void 0 && (t = {}), t = ye({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3616
+ var r = new Zn(e, t).parse();
3582
3617
  if (r.err) {
3583
3618
  var n = SyntaxError(b[r.err.kind]);
3584
3619
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3585
3620
  }
3586
- return t?.captureLocation || Ve(r.val), r.val;
3621
+ return t?.captureLocation || Je(r.val), r.val;
3587
3622
  }
3588
- var Z;
3623
+ var z;
3589
3624
  (function(e) {
3590
3625
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3591
- })(Z || (Z = {}));
3592
- var Ee = (
3626
+ })(z || (z = {}));
3627
+ var we = (
3593
3628
  /** @class */
3594
3629
  function(e) {
3595
- N(t, e);
3630
+ xe(t, e);
3596
3631
  function t(r, n, i) {
3597
3632
  var o = e.call(this, r) || this;
3598
3633
  return o.code = n, o.originalMessage = i, o;
@@ -3601,48 +3636,48 @@ var Ee = (
3601
3636
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3602
3637
  }, t;
3603
3638
  }(Error)
3604
- ), gt = (
3639
+ ), Et = (
3605
3640
  /** @class */
3606
3641
  function(e) {
3607
- N(t, e);
3642
+ xe(t, e);
3608
3643
  function t(r, n, i, o) {
3609
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
3644
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
3610
3645
  }
3611
3646
  return t;
3612
- }(Ee)
3613
- ), Qn = (
3647
+ }(we)
3648
+ ), Kn = (
3614
3649
  /** @class */
3615
3650
  function(e) {
3616
- N(t, e);
3651
+ xe(t, e);
3617
3652
  function t(r, n, i) {
3618
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
3653
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
3619
3654
  }
3620
3655
  return t;
3621
- }(Ee)
3622
- ), Jn = (
3656
+ }(we)
3657
+ ), ei = (
3623
3658
  /** @class */
3624
3659
  function(e) {
3625
- N(t, e);
3660
+ xe(t, e);
3626
3661
  function t(r, n) {
3627
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
3662
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
3628
3663
  }
3629
3664
  return t;
3630
- }(Ee)
3665
+ }(we)
3631
3666
  ), S;
3632
3667
  (function(e) {
3633
3668
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3634
3669
  })(S || (S = {}));
3635
- function qn(e) {
3670
+ function ti(e) {
3636
3671
  return e.length < 2 ? e : e.reduce(function(t, r) {
3637
3672
  var n = t[t.length - 1];
3638
3673
  return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
3639
3674
  }, []);
3640
3675
  }
3641
- function Yn(e) {
3676
+ function ri(e) {
3642
3677
  return typeof e == "function";
3643
3678
  }
3644
3679
  function me(e, t, r, n, i, o, a) {
3645
- if (e.length === 1 && lt(e[0]))
3680
+ if (e.length === 1 && dt(e[0]))
3646
3681
  return [
3647
3682
  {
3648
3683
  type: S.literal,
@@ -3651,105 +3686,105 @@ function me(e, t, r, n, i, o, a) {
3651
3686
  ];
3652
3687
  for (var s = [], l = 0, u = e; l < u.length; l++) {
3653
3688
  var h = u[l];
3654
- if (lt(h)) {
3689
+ if (dt(h)) {
3655
3690
  s.push({
3656
3691
  type: S.literal,
3657
3692
  value: h.value
3658
3693
  });
3659
3694
  continue;
3660
3695
  }
3661
- if (_n(h)) {
3696
+ if (Sn(h)) {
3662
3697
  typeof o == "number" && s.push({
3663
3698
  type: S.literal,
3664
3699
  value: r.getNumberFormat(t).format(o)
3665
3700
  });
3666
3701
  continue;
3667
3702
  }
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
3703
+ var c = h.value;
3704
+ if (!(i && c in i))
3705
+ throw new ei(c, a);
3706
+ var f = i[c];
3707
+ if (wn(h)) {
3708
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
3709
+ type: typeof f == "string" ? S.literal : S.object,
3710
+ value: f
3676
3711
  });
3677
3712
  continue;
3678
3713
  }
3679
- if (Ut(h)) {
3680
- var d = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
3714
+ if (jt(h)) {
3715
+ var p = typeof h.style == "string" ? n.date[h.style] : Ve(h.style) ? h.style.parsedOptions : void 0;
3681
3716
  s.push({
3682
3717
  type: S.literal,
3683
- value: r.getDateTimeFormat(t, d).format(c)
3718
+ value: r.getDateTimeFormat(t, p).format(f)
3684
3719
  });
3685
3720
  continue;
3686
3721
  }
3687
- if (Dt(h)) {
3688
- var d = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
3722
+ if (kt(h)) {
3723
+ var p = typeof h.style == "string" ? n.time[h.style] : Ve(h.style) ? h.style.parsedOptions : n.time.medium;
3689
3724
  s.push({
3690
3725
  type: S.literal,
3691
- value: r.getDateTimeFormat(t, d).format(c)
3726
+ value: r.getDateTimeFormat(t, p).format(f)
3692
3727
  });
3693
3728
  continue;
3694
3729
  }
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({
3730
+ if (Ft(h)) {
3731
+ var p = typeof h.style == "string" ? n.number[h.style] : zt(h.style) ? h.style.parsedOptions : void 0;
3732
+ p && p.scale && (f = f * (p.scale || 1)), s.push({
3698
3733
  type: S.literal,
3699
- value: r.getNumberFormat(t, d).format(c)
3734
+ value: r.getNumberFormat(t, p).format(f)
3700
3735
  });
3701
3736
  continue;
3702
3737
  }
3703
- if (jt(h)) {
3704
- var m = h.children, g = h.value, w = i[g];
3705
- if (!Yn(w))
3706
- throw new Qn(g, "function", a);
3707
- var L = me(m, t, r, n, i, o), P = w(L.map(function(A) {
3738
+ if (Xt(h)) {
3739
+ var m = h.children, y = h.value, w = i[y];
3740
+ if (!ri(w))
3741
+ throw new Kn(y, "function", a);
3742
+ var L = me(m, t, r, n, i, o), B = w(L.map(function(A) {
3708
3743
  return A.value;
3709
3744
  }));
3710
- Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(A) {
3745
+ Array.isArray(B) || (B = [B]), s.push.apply(s, B.map(function(A) {
3711
3746
  return {
3712
3747
  type: typeof A == "string" ? S.literal : S.object,
3713
3748
  value: A
3714
3749
  };
3715
3750
  }));
3716
3751
  }
3717
- if (Gt(h)) {
3718
- var T = h.options[c] || h.options.other;
3752
+ if (Wt(h)) {
3753
+ var T = h.options[f] || h.options.other;
3719
3754
  if (!T)
3720
- throw new gt(h.value, c, Object.keys(h.options), a);
3755
+ throw new Et(h.value, f, Object.keys(h.options), a);
3721
3756
  s.push.apply(s, me(T.value, t, r, n, i));
3722
3757
  continue;
3723
3758
  }
3724
- if (Ft(h)) {
3725
- var T = h.options["=".concat(c)];
3759
+ if (Vt(h)) {
3760
+ var T = h.options["=".concat(f)];
3726
3761
  if (!T) {
3727
3762
  if (!Intl.PluralRules)
3728
- throw new Ee(`Intl.PluralRules is not available in this environment.
3763
+ throw new we(`Intl.PluralRules is not available in this environment.
3729
3764
  Try polyfilling it using "@formatjs/intl-pluralrules"
3730
- `, Z.MISSING_INTL_API, a);
3731
- var $ = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3765
+ `, z.MISSING_INTL_API, a);
3766
+ var $ = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3732
3767
  T = h.options[$] || h.options.other;
3733
3768
  }
3734
3769
  if (!T)
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)));
3770
+ throw new Et(h.value, f, Object.keys(h.options), a);
3771
+ s.push.apply(s, me(T.value, t, r, n, i, f - (h.offset || 0)));
3737
3772
  continue;
3738
3773
  }
3739
3774
  }
3740
- return qn(s);
3775
+ return ti(s);
3741
3776
  }
3742
- function Kn(e, t) {
3743
- return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3744
- return r[n] = v(v({}, e[n]), t[n] || {}), r;
3777
+ function ni(e, t) {
3778
+ return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3779
+ return r[n] = O(O({}, e[n]), t[n] || {}), r;
3745
3780
  }, {})) : e;
3746
3781
  }
3747
- function ei(e, t) {
3782
+ function ii(e, t) {
3748
3783
  return t ? Object.keys(e).reduce(function(r, n) {
3749
- return r[n] = Kn(e[n], t[n]), r;
3750
- }, v({}, e)) : e;
3784
+ return r[n] = ni(e[n], t[n]), r;
3785
+ }, O({}, e)) : e;
3751
3786
  }
3752
- function Ae(e) {
3787
+ function Ne(e) {
3753
3788
  return {
3754
3789
  create: function() {
3755
3790
  return {
@@ -3763,39 +3798,39 @@ function Ae(e) {
3763
3798
  }
3764
3799
  };
3765
3800
  }
3766
- function ti(e) {
3801
+ function oi(e) {
3767
3802
  return e === void 0 && (e = {
3768
3803
  number: {},
3769
3804
  dateTime: {},
3770
3805
  pluralRules: {}
3771
3806
  }), {
3772
- getNumberFormat: He(function() {
3807
+ getNumberFormat: Ae(function() {
3773
3808
  for (var t, r = [], n = 0; n < arguments.length; n++)
3774
3809
  r[n] = arguments[n];
3775
- return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
3810
+ return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
3776
3811
  }, {
3777
- cache: Ae(e.number),
3778
- strategy: Be.variadic
3812
+ cache: Ne(e.number),
3813
+ strategy: Oe.variadic
3779
3814
  }),
3780
- getDateTimeFormat: He(function() {
3815
+ getDateTimeFormat: Ae(function() {
3781
3816
  for (var t, r = [], n = 0; n < arguments.length; n++)
3782
3817
  r[n] = arguments[n];
3783
- return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
3818
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
3784
3819
  }, {
3785
- cache: Ae(e.dateTime),
3786
- strategy: Be.variadic
3820
+ cache: Ne(e.dateTime),
3821
+ strategy: Oe.variadic
3787
3822
  }),
3788
- getPluralRules: He(function() {
3823
+ getPluralRules: Ae(function() {
3789
3824
  for (var t, r = [], n = 0; n < arguments.length; n++)
3790
3825
  r[n] = arguments[n];
3791
- return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
3826
+ return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
3792
3827
  }, {
3793
- cache: Ae(e.pluralRules),
3794
- strategy: Be.variadic
3828
+ cache: Ne(e.pluralRules),
3829
+ strategy: Oe.variadic
3795
3830
  })
3796
3831
  };
3797
3832
  }
3798
- var ri = (
3833
+ var si = (
3799
3834
  /** @class */
3800
3835
  function() {
3801
3836
  function e(t, r, n, i) {
@@ -3809,8 +3844,8 @@ var ri = (
3809
3844
  var u = o.formatToParts(l);
3810
3845
  if (u.length === 1)
3811
3846
  return u[0].value;
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;
3847
+ var h = u.reduce(function(c, f) {
3848
+ return !c.length || f.type !== S.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3814
3849
  }, []);
3815
3850
  return h.length <= 1 ? h[0] || "" : h;
3816
3851
  }, this.formatToParts = function(l) {
@@ -3827,13 +3862,13 @@ var ri = (
3827
3862
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3828
3863
  var a = i || {};
3829
3864
  a.formatters;
3830
- var s = Lr(a, ["formatters"]);
3831
- this.ast = e.__parse(t, v(v({}, s), { locale: this.resolvedLocale }));
3865
+ var s = mn(a, ["formatters"]);
3866
+ this.ast = e.__parse(t, O(O({}, s), { locale: this.resolvedLocale }));
3832
3867
  } else
3833
3868
  this.ast = t;
3834
3869
  if (!Array.isArray(this.ast))
3835
3870
  throw new TypeError("A message must be provided as a String or AST.");
3836
- this.formats = ei(e.formats, n), this.formatters = i && i.formatters || ti(this.formatterCache);
3871
+ this.formats = ii(e.formats, n), this.formatters = i && i.formatters || oi(this.formatterCache);
3837
3872
  }
3838
3873
  return Object.defineProperty(e, "defaultLocale", {
3839
3874
  get: function() {
@@ -3846,7 +3881,7 @@ var ri = (
3846
3881
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3847
3882
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3848
3883
  }
3849
- }, e.__parse = Zn, e.formats = {
3884
+ }, e.__parse = Yn, e.formats = {
3850
3885
  number: {
3851
3886
  integer: {
3852
3887
  maximumFractionDigits: 0
@@ -3907,7 +3942,7 @@ var ri = (
3907
3942
  }, e;
3908
3943
  }()
3909
3944
  );
3910
- function ni(e, t) {
3945
+ function ai(e, t) {
3911
3946
  if (t == null)
3912
3947
  return;
3913
3948
  if (t in e)
@@ -3928,92 +3963,92 @@ function ni(e, t) {
3928
3963
  n = void 0;
3929
3964
  return n;
3930
3965
  }
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) => {
3966
+ const R = {}, ui = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), tr = (e, t) => {
3932
3967
  if (t == null)
3933
3968
  return;
3934
3969
  if (t in R && e in R[t])
3935
3970
  return R[t][e];
3936
- const r = xe(t);
3971
+ const r = Se(t);
3937
3972
  for (let n = 0; n < r.length; n++) {
3938
- const i = r[n], o = si(i, e);
3973
+ const i = r[n], o = li(i, e);
3939
3974
  if (o)
3940
- return ii(e, t, o);
3975
+ return ui(e, t, o);
3941
3976
  }
3942
3977
  };
3943
- let qe;
3944
- const ue = _e({});
3945
- function oi(e) {
3946
- return qe[e] || null;
3978
+ let tt;
3979
+ const ue = Ee({});
3980
+ function hi(e) {
3981
+ return tt[e] || null;
3947
3982
  }
3948
- function Yt(e) {
3949
- return e in qe;
3983
+ function rr(e) {
3984
+ return e in tt;
3950
3985
  }
3951
- function si(e, t) {
3952
- if (!Yt(e))
3986
+ function li(e, t) {
3987
+ if (!rr(e))
3953
3988
  return null;
3954
- const r = oi(e);
3955
- return ni(r, t);
3989
+ const r = hi(e);
3990
+ return ai(r, t);
3956
3991
  }
3957
- function ai(e) {
3992
+ function ci(e) {
3958
3993
  if (e == null)
3959
3994
  return;
3960
- const t = xe(e);
3995
+ const t = Se(e);
3961
3996
  for (let r = 0; r < t.length; r++) {
3962
3997
  const n = t[r];
3963
- if (Yt(n))
3998
+ if (rr(n))
3964
3999
  return n;
3965
4000
  }
3966
4001
  }
3967
- function Kt(e, ...t) {
3968
- delete R[e], ue.update((r) => (r[e] = fn.all([r[e] || {}, ...t]), r));
4002
+ function nr(e, ...t) {
4003
+ delete R[e], ue.update((r) => (r[e] = dn.all([r[e] || {}, ...t]), r));
3969
4004
  }
3970
- q(
4005
+ J(
3971
4006
  [ue],
3972
4007
  ([e]) => Object.keys(e)
3973
4008
  );
3974
- ue.subscribe((e) => qe = e);
4009
+ ue.subscribe((e) => tt = e);
3975
4010
  const be = {};
3976
- function ui(e, t) {
4011
+ function fi(e, t) {
3977
4012
  be[e].delete(t), be[e].size === 0 && delete be[e];
3978
4013
  }
3979
- function er(e) {
4014
+ function ir(e) {
3980
4015
  return be[e];
3981
4016
  }
3982
- function hi(e) {
3983
- return xe(e).map((t) => {
3984
- const r = er(t);
4017
+ function pi(e) {
4018
+ return Se(e).map((t) => {
4019
+ const r = ir(t);
3985
4020
  return [t, r ? [...r] : []];
3986
4021
  }).filter(([, t]) => t.length > 0);
3987
4022
  }
3988
- function Xe(e) {
3989
- return e == null ? !1 : xe(e).some(
4023
+ function qe(e) {
4024
+ return e == null ? !1 : Se(e).some(
3990
4025
  (t) => {
3991
4026
  var r;
3992
- return (r = er(t)) == null ? void 0 : r.size;
4027
+ return (r = ir(t)) == null ? void 0 : r.size;
3993
4028
  }
3994
4029
  );
3995
4030
  }
3996
- function li(e, t) {
4031
+ function di(e, t) {
3997
4032
  return Promise.all(
3998
- t.map((n) => (ui(e, n), n().then((i) => i.default || i)))
3999
- ).then((n) => Kt(e, ...n));
4000
- }
4001
- const ee = {};
4002
- function tr(e) {
4003
- if (!Xe(e))
4004
- return e in ee ? ee[e] : Promise.resolve();
4005
- const t = hi(e);
4006
- return ee[e] = Promise.all(
4033
+ t.map((n) => (fi(e, n), n().then((i) => i.default || i)))
4034
+ ).then((n) => nr(e, ...n));
4035
+ }
4036
+ const K = {};
4037
+ function or(e) {
4038
+ if (!qe(e))
4039
+ return e in K ? K[e] : Promise.resolve();
4040
+ const t = pi(e);
4041
+ return K[e] = Promise.all(
4007
4042
  t.map(
4008
- ([r, n]) => li(r, n)
4043
+ ([r, n]) => di(r, n)
4009
4044
  )
4010
4045
  ).then(() => {
4011
- if (Xe(e))
4012
- return tr(e);
4013
- delete ee[e];
4014
- }), ee[e];
4046
+ if (qe(e))
4047
+ return or(e);
4048
+ delete K[e];
4049
+ }), K[e];
4015
4050
  }
4016
- const fi = {
4051
+ const mi = {
4017
4052
  number: {
4018
4053
  scientific: { notation: "scientific" },
4019
4054
  engineering: { notation: "engineering" },
@@ -4042,135 +4077,135 @@ const fi = {
4042
4077
  timeZoneName: "short"
4043
4078
  }
4044
4079
  }
4045
- }, ci = {
4080
+ }, bi = {
4046
4081
  fallbackLocale: null,
4047
4082
  loadingDelay: 200,
4048
- formats: fi,
4083
+ formats: mi,
4049
4084
  warnOnMissingMessages: !0,
4050
4085
  handleMissingMessage: void 0,
4051
4086
  ignoreTag: !0
4052
- }, di = ci;
4053
- function Q() {
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]);
4087
+ }, yi = bi;
4088
+ function Z() {
4089
+ return yi;
4090
+ }
4091
+ const Le = Ee(!1);
4092
+ var gi = Object.defineProperty, vi = Object.defineProperties, _i = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Ei = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wi = (e, t) => {
4093
+ for (var r in t || (t = {}))
4094
+ Ei.call(t, r) && wt(e, r, t[r]);
4095
+ if (xt)
4096
+ for (var r of xt(t))
4097
+ xi.call(t, r) && wt(e, r, t[r]);
4063
4098
  return e;
4064
- }, _i = (e, t) => mi(e, bi(t));
4065
- let ze;
4066
- const ge = _e(null);
4067
- function _t(e) {
4099
+ }, Si = (e, t) => vi(e, _i(t));
4100
+ let Ye;
4101
+ const ge = Ee(null);
4102
+ function St(e) {
4068
4103
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4069
4104
  }
4070
- function xe(e, t = Q().fallbackLocale) {
4071
- const r = _t(e);
4072
- return t ? [.../* @__PURE__ */ new Set([...r, ..._t(t)])] : r;
4105
+ function Se(e, t = Z().fallbackLocale) {
4106
+ const r = St(e);
4107
+ return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
4073
4108
  }
4074
4109
  function D() {
4075
- return ze ?? void 0;
4110
+ return Ye ?? void 0;
4076
4111
  }
4077
4112
  ge.subscribe((e) => {
4078
- ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4113
+ Ye = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4079
4114
  });
4080
- const Ei = (e) => {
4081
- if (e && ai(e) && Xe(e)) {
4082
- const { loadingDelay: t } = Q();
4115
+ const Ti = (e) => {
4116
+ if (e && ci(e) && qe(e)) {
4117
+ const { loadingDelay: t } = Z();
4083
4118
  let r;
4084
4119
  return typeof window < "u" && D() != null && t ? r = window.setTimeout(
4085
- () => Oe.set(!0),
4120
+ () => Le.set(!0),
4086
4121
  t
4087
- ) : Oe.set(!0), tr(e).then(() => {
4122
+ ) : Le.set(!0), or(e).then(() => {
4088
4123
  ge.set(e);
4089
4124
  }).finally(() => {
4090
- clearTimeout(r), Oe.set(!1);
4125
+ clearTimeout(r), Le.set(!1);
4091
4126
  });
4092
4127
  }
4093
4128
  return ge.set(e);
4094
- }, Y = _i(vi({}, ge), {
4095
- set: Ei
4096
- }), we = (e) => {
4129
+ }, q = Si(wi({}, ge), {
4130
+ set: Ti
4131
+ }), Te = (e) => {
4097
4132
  const t = /* @__PURE__ */ Object.create(null);
4098
4133
  return (n) => {
4099
4134
  const i = JSON.stringify(n);
4100
4135
  return i in t ? t[i] : t[i] = e(n);
4101
4136
  };
4102
4137
  };
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) => {
4138
+ var Hi = Object.defineProperty, ve = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
4104
4139
  for (var r in t || (t = {}))
4105
- rr.call(t, r) && Et(e, r, t[r]);
4106
- if (ye)
4107
- for (var r of ye(t))
4108
- nr.call(t, r) && Et(e, r, t[r]);
4140
+ sr.call(t, r) && Tt(e, r, t[r]);
4141
+ if (ve)
4142
+ for (var r of ve(t))
4143
+ ar.call(t, r) && Tt(e, r, t[r]);
4109
4144
  return e;
4110
- }, K = (e, t) => {
4145
+ }, Y = (e, t) => {
4111
4146
  var r = {};
4112
4147
  for (var n in e)
4113
- rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4114
- if (e != null && ye)
4115
- for (var n of ye(e))
4116
- t.indexOf(n) < 0 && nr.call(e, n) && (r[n] = e[n]);
4148
+ sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4149
+ if (e != null && ve)
4150
+ for (var n of ve(e))
4151
+ t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
4117
4152
  return r;
4118
4153
  };
4119
- const oe = (e, t) => {
4120
- const { formats: r } = Q();
4154
+ const ie = (e, t) => {
4155
+ const { formats: r } = Z();
4121
4156
  if (e in r && t in r[e])
4122
4157
  return r[e][t];
4123
4158
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4124
- }, wi = we(
4159
+ }, Pi = Te(
4125
4160
  (e) => {
4126
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4161
+ var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
4127
4162
  if (r == null)
4128
4163
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4129
- return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
4164
+ return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
4130
4165
  }
4131
- ), Si = we(
4166
+ ), Bi = Te(
4132
4167
  (e) => {
4133
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4168
+ var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
4134
4169
  if (r == null)
4135
4170
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4136
- return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
4171
+ return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
4137
4172
  }
4138
- ), Ti = we(
4173
+ ), Ai = Te(
4139
4174
  (e) => {
4140
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4175
+ var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
4141
4176
  if (r == null)
4142
4177
  throw new Error(
4143
4178
  '[svelte-i18n] A "locale" must be set to format time values'
4144
4179
  );
4145
- return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
4180
+ return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
4146
4181
  }
4147
- ), Hi = (e = {}) => {
4182
+ ), Oi = (e = {}) => {
4148
4183
  var t = e, {
4149
4184
  locale: r = D()
4150
- } = t, n = K(t, [
4185
+ } = t, n = Y(t, [
4151
4186
  "locale"
4152
4187
  ]);
4153
- return wi(Ye({ locale: r }, n));
4154
- }, Bi = (e = {}) => {
4188
+ return Pi(rt({ locale: r }, n));
4189
+ }, Ii = (e = {}) => {
4155
4190
  var t = e, {
4156
4191
  locale: r = D()
4157
- } = t, n = K(t, [
4192
+ } = t, n = Y(t, [
4158
4193
  "locale"
4159
4194
  ]);
4160
- return Si(Ye({ locale: r }, n));
4161
- }, Pi = (e = {}) => {
4195
+ return Bi(rt({ locale: r }, n));
4196
+ }, Ni = (e = {}) => {
4162
4197
  var t = e, {
4163
4198
  locale: r = D()
4164
- } = t, n = K(t, [
4199
+ } = t, n = Y(t, [
4165
4200
  "locale"
4166
4201
  ]);
4167
- return Ti(Ye({ locale: r }, n));
4168
- }, Ai = we(
4202
+ return Ai(rt({ locale: r }, n));
4203
+ }, Li = Te(
4169
4204
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4170
- (e, t = D()) => new ri(e, t, Q().formats, {
4171
- ignoreTag: Q().ignoreTag
4205
+ (e, t = D()) => new si(e, t, Z().formats, {
4206
+ ignoreTag: Z().ignoreTag
4172
4207
  })
4173
- ), Oi = (e, t = {}) => {
4208
+ ), Mi = (e, t = {}) => {
4174
4209
  var r, n, i, o;
4175
4210
  let a = t;
4176
4211
  typeof e == "object" && (a = e, e = a.id);
@@ -4183,39 +4218,39 @@ const oe = (e, t) => {
4183
4218
  throw new Error(
4184
4219
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4185
4220
  );
4186
- let h = qt(e, l);
4221
+ let h = tr(e, l);
4187
4222
  if (!h)
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;
4223
+ h = (o = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4189
4224
  else if (typeof h != "string")
4190
4225
  return console.warn(
4191
4226
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4192
4227
  ), h;
4193
4228
  if (!s)
4194
4229
  return h;
4195
- let f = h;
4230
+ let c = h;
4196
4231
  try {
4197
- f = Ai(h, l).format(s);
4198
- } catch (c) {
4199
- c instanceof Error && console.warn(
4232
+ c = Li(h, l).format(s);
4233
+ } catch (f) {
4234
+ f instanceof Error && console.warn(
4200
4235
  `[svelte-i18n] Message "${e}" has syntax error:`,
4201
- c.message
4236
+ f.message
4202
4237
  );
4203
4238
  }
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);
4208
- q([Y], () => Li);
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);
4214
- }
4215
- function $i(e) {
4216
- Y.set(e);
4217
- }
4218
- const wt = {
4239
+ return c;
4240
+ }, Ci = (e, t) => Ni(t).format(e), Ri = (e, t) => Ii(t).format(e), $i = (e, t) => Oi(t).format(e), Ui = (e, t = D()) => tr(e, t), Di = J([q, ue], () => Mi);
4241
+ J([q], () => Ci);
4242
+ J([q], () => Ri);
4243
+ J([q], () => $i);
4244
+ J([q, ue], () => Ui);
4245
+ window.emWidgets = { topic: Jr };
4246
+ const Gi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4247
+ function Ht(e, t) {
4248
+ nr(e, t);
4249
+ }
4250
+ function Fi(e) {
4251
+ q.set(e);
4252
+ }
4253
+ const Pt = {
4219
4254
  en: {
4220
4255
  titlePlayerWithdrawal: "Withdrawal",
4221
4256
  loading: "Loading, please wait ..."
@@ -4249,130 +4284,130 @@ const wt = {
4249
4284
  loading: "Loading, please wait ..."
4250
4285
  }
4251
4286
  };
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)}");
4287
+ function ji(e) {
4288
+ pr(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)}");
4254
4289
  }
4255
- function Di(e) {
4256
- let t, r, n, i, o, a, s, l, u, h, f = (
4290
+ function ki(e) {
4291
+ let t, r, n, i, o, a, s, l, u, h, c = (
4257
4292
  /*$_*/
4258
4293
  e[3]("titlePlayerWithdrawal") + ""
4259
- ), c, d, m;
4294
+ ), f, p, m;
4260
4295
  return {
4261
4296
  c() {
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");
4297
+ t = N("div"), r = G("svg"), n = G("defs"), i = G("style"), o = te(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u = Me(), h = N("h2"), f = te(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");
4263
4298
  },
4264
- m(g, w) {
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(
4299
+ m(y, w) {
4300
+ se(y, 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 = br(
4266
4301
  t,
4267
4302
  "click",
4268
4303
  /*click_handler*/
4269
4304
  e[16]
4270
- ), d = !0);
4305
+ ), p = !0);
4271
4306
  },
4272
- p(g, w) {
4307
+ p(y, w) {
4273
4308
  w & /*$_*/
4274
- 8 && f !== (f = /*$_*/
4275
- g[3]("titlePlayerWithdrawal") + "") && Qe(c, f);
4309
+ 8 && c !== (c = /*$_*/
4310
+ y[3]("titlePlayerWithdrawal") + "") && et(f, c);
4276
4311
  },
4277
- d(g) {
4278
- g && J(t), d = !1, m();
4312
+ d(y) {
4313
+ y && Q(t), p = !1, m();
4279
4314
  }
4280
4315
  };
4281
4316
  }
4282
- function Gi(e) {
4317
+ function Wi(e) {
4283
4318
  let t, r, n;
4284
4319
  return {
4285
4320
  c() {
4286
- t = I("div"), r = I("iframe"), et(r.src, n = /*iframeUrl*/
4321
+ t = N("div"), r = N("iframe"), it(r.src, n = /*iframeUrl*/
4287
4322
  e[2]) || E(r, "src", n), E(r, "title", "Withdrawal Iframe"), E(t, "class", "WithdrawalIframeWrapper");
4288
4323
  },
4289
4324
  m(i, o) {
4290
- ae(i, t, o), x(t, r);
4325
+ se(i, t, o), x(t, r);
4291
4326
  },
4292
4327
  p(i, o) {
4293
4328
  o & /*iframeUrl*/
4294
- 4 && !et(r.src, n = /*iframeUrl*/
4329
+ 4 && !it(r.src, n = /*iframeUrl*/
4295
4330
  i[2]) && E(r, "src", n);
4296
4331
  },
4297
4332
  d(i) {
4298
- i && J(t);
4333
+ i && Q(t);
4299
4334
  }
4300
4335
  };
4301
4336
  }
4302
- function Fi(e) {
4337
+ function Vi(e) {
4303
4338
  let t, r = (
4304
4339
  /*$_*/
4305
4340
  e[3]("loading") + ""
4306
4341
  ), n;
4307
4342
  return {
4308
4343
  c() {
4309
- t = I("p"), n = re(r);
4344
+ t = N("p"), n = te(r);
4310
4345
  },
4311
4346
  m(i, o) {
4312
- ae(i, t, o), x(t, n);
4347
+ se(i, t, o), x(t, n);
4313
4348
  },
4314
4349
  p(i, o) {
4315
4350
  o & /*$_*/
4316
4351
  8 && r !== (r = /*$_*/
4317
- i[3]("loading") + "") && Qe(n, r);
4352
+ i[3]("loading") + "") && et(n, r);
4318
4353
  },
4319
4354
  d(i) {
4320
- i && J(t);
4355
+ i && Q(t);
4321
4356
  }
4322
4357
  };
4323
4358
  }
4324
- function ji(e) {
4359
+ function Xi(e) {
4325
4360
  let t, r, n, i = (
4326
4361
  /*$_*/
4327
4362
  e[3]("titlePlayerWithdrawal") + ""
4328
4363
  ), o, a, s = (
4329
4364
  /*isMobile*/
4330
- e[4] && Di(e)
4365
+ e[4] && ki(e)
4331
4366
  );
4332
- function l(f, c) {
4367
+ function l(c, f) {
4333
4368
  return (
4334
4369
  /*isLoading*/
4335
- f[1] ? Fi : Gi
4370
+ c[1] ? Vi : Wi
4336
4371
  );
4337
4372
  }
4338
4373
  let u = l(e), h = u(e);
4339
4374
  return {
4340
4375
  c() {
4341
- t = I("div"), s && s.c(), r = Ie(), n = I("h2"), o = re(i), a = Ie(), h.c(), E(n, "class", "WithdrawalTitle " + /*isMobile*/
4376
+ t = N("div"), s && s.c(), r = Me(), n = N("h2"), o = te(i), a = Me(), h.c(), E(n, "class", "WithdrawalTitle " + /*isMobile*/
4342
4377
  (e[4] ? "WithdrawalTitleNone" : "")), E(t, "class", "WithdrawalWrapper " + /*isMobile*/
4343
4378
  (e[4] ? "WithdrawalWrapperMobile" : ""));
4344
4379
  },
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);
4380
+ m(c, f) {
4381
+ se(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);
4347
4382
  },
4348
- p(f, [c]) {
4383
+ p(c, [f]) {
4349
4384
  /*isMobile*/
4350
- f[4] && s.p(f, c), c & /*$_*/
4385
+ c[4] && s.p(c, f), f & /*$_*/
4351
4386
  8 && i !== (i = /*$_*/
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)));
4387
+ c[3]("titlePlayerWithdrawal") + "") && et(o, i), u === (u = l(c)) && h ? h.p(c, f) : (h.d(1), h = u(c), h && (h.c(), h.m(t, null)));
4353
4388
  },
4354
- i: B,
4355
- o: B,
4356
- d(f) {
4357
- f && J(t), s && s.d(), h.d(), e[17](null);
4389
+ i: P,
4390
+ o: P,
4391
+ d(c) {
4392
+ c && Q(t), s && s.d(), h.d(), e[17](null);
4358
4393
  }
4359
4394
  };
4360
4395
  }
4361
- function ki(e, t, r) {
4396
+ function zi(e, t, r) {
4362
4397
  let n;
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 = "";
4398
+ fr(e, Di, (d) => r(3, n = d));
4399
+ 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, y = window.navigator.userAgent, w = Gi(y) !== "PC", L = !0, B = 0, T = "";
4365
4400
  const $ = () => {
4366
- fetch(c).then((M) => M.json()).then((M) => {
4401
+ fetch(f).then((M) => M.json()).then((M) => {
4367
4402
  Object.keys(M).forEach((C) => {
4368
- xt(C, M[C]);
4403
+ Ht(C, M[C]);
4369
4404
  });
4370
4405
  }).catch((M) => {
4371
4406
  console.log(M);
4372
4407
  });
4373
4408
  };
4374
- Object.keys(wt).forEach((p) => {
4375
- xt(p, wt[p]);
4409
+ Object.keys(Pt).forEach((d) => {
4410
+ Ht(d, Pt[d]);
4376
4411
  });
4377
4412
  const A = () => {
4378
4413
  window.postMessage(
@@ -4382,14 +4417,14 @@ function ki(e, t, r) {
4382
4417
  },
4383
4418
  window.location.href
4384
4419
  );
4385
- }, U = (p) => {
4386
- if (p.data) {
4387
- switch (p.data.type) {
4420
+ }, U = (d) => {
4421
+ if (d.data) {
4422
+ switch (d.data.type) {
4388
4423
  case "ProfileDetailsData":
4389
- r(6, d = p.data.profileDetails.currency);
4424
+ r(6, p = d.data.profileDetails.currency);
4390
4425
  break;
4391
4426
  }
4392
- switch (p.data.redirect) {
4427
+ switch (d.data.redirect) {
4393
4428
  case "mm-hc-casino":
4394
4429
  window.postMessage({ type: "GoToCasino" }, window.location.href);
4395
4430
  break;
@@ -4413,28 +4448,28 @@ function ki(e, t, r) {
4413
4448
  }
4414
4449
  }
4415
4450
  }, he = () => {
4416
- let p = new URL(`${i}/v1/player/${a}/hostedcashier/initializewithdraw`);
4417
- if (p.searchParams.append("language", s), l)
4418
- switch (d) {
4451
+ let d = new URL(`${i}/v1/player/${a}/hostedcashier/initializewithdraw`);
4452
+ if (d.searchParams.append("language", s), l)
4453
+ switch (p) {
4419
4454
  case "USD":
4420
- P = 0.4;
4455
+ B = 0.4;
4421
4456
  break;
4422
4457
  case "CDF":
4423
- P = 1e3;
4458
+ B = 1e3;
4424
4459
  break;
4425
4460
  }
4426
4461
  let M = {
4427
4462
  method: "POST",
4428
4463
  headers: {
4429
4464
  "X-SessionId": o,
4430
- currency: d || "EUR",
4431
- amount: P,
4465
+ currency: p || "EUR",
4466
+ amount: B,
4432
4467
  cashierMode: "Default",
4433
4468
  IsShortCashier: !1,
4434
4469
  accept: "application/json"
4435
4470
  }
4436
4471
  };
4437
- fetch(p.href, M).then((C) => C.json()).then(
4472
+ fetch(d.href, M).then((C) => C.json()).then(
4438
4473
  (C) => {
4439
4474
  r(1, L = !1), r(2, T = C.CashierUrl);
4440
4475
  },
@@ -4442,28 +4477,28 @@ function ki(e, t, r) {
4442
4477
  console.error(C);
4443
4478
  }
4444
4479
  );
4445
- }, ir = () => {
4446
- $i(s);
4480
+ }, ur = () => {
4481
+ Fi(s);
4447
4482
  };
4448
- br(() => (window.addEventListener("message", U, !1), () => {
4483
+ _r(() => (window.addEventListener("message", U, !1), () => {
4449
4484
  window.removeEventListener("message", U);
4450
4485
  }));
4451
- const or = () => A();
4452
- function sr(p) {
4453
- Ne[p ? "unshift" : "push"](() => {
4454
- m = p, r(0, m);
4486
+ const hr = () => A();
4487
+ function lr(d) {
4488
+ Ce[d ? "unshift" : "push"](() => {
4489
+ m = d, r(0, m);
4455
4490
  });
4456
4491
  }
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);
4492
+ return e.$$set = (d) => {
4493
+ "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);
4459
4494
  }, e.$$.update = () => {
4460
4495
  e.$$.dirty & /*lang*/
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();
4496
+ 1024 && s && ur(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4497
+ 4097 && u && m && Mr(m, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4498
+ 8193 && h && m && Cr(m, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4499
+ 16385 && c && m && Rr(m, `${c}.Style`), e.$$.dirty & /*translationurl*/
4500
+ 32768 && f && $(), e.$$.dirty & /*session, playerid, endpoint, currency, lang*/
4501
+ 1984 && o && a && i && p && s && he();
4467
4502
  }, [
4468
4503
  m,
4469
4504
  L,
@@ -4471,7 +4506,7 @@ function ki(e, t, r) {
4471
4506
  n,
4472
4507
  w,
4473
4508
  A,
4474
- d,
4509
+ p,
4475
4510
  i,
4476
4511
  o,
4477
4512
  a,
@@ -4479,20 +4514,20 @@ function ki(e, t, r) {
4479
4514
  l,
4480
4515
  u,
4481
4516
  h,
4482
- f,
4483
4517
  c,
4484
- or,
4485
- sr
4518
+ f,
4519
+ hr,
4520
+ lr
4486
4521
  ];
4487
4522
  }
4488
- class Wi extends Pr {
4523
+ class Zi extends Nr {
4489
4524
  constructor(t) {
4490
- super(), Hr(
4525
+ super(), Or(
4491
4526
  this,
4492
4527
  t,
4493
- ki,
4494
- ji,
4495
- Tt,
4528
+ zi,
4529
+ Xi,
4530
+ At,
4496
4531
  {
4497
4532
  endpoint: 7,
4498
4533
  session: 8,
@@ -4505,7 +4540,7 @@ class Wi extends Pr {
4505
4540
  translationurl: 15,
4506
4541
  currency: 6
4507
4542
  },
4508
- Ui
4543
+ ji
4509
4544
  );
4510
4545
  }
4511
4546
  get endpoint() {
@@ -4569,7 +4604,7 @@ class Wi extends Pr {
4569
4604
  this.$$set({ currency: t }), H();
4570
4605
  }
4571
4606
  }
4572
- Br(Wi, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currency: {} }, [], [], !0);
4607
+ Ir(Zi, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currency: {} }, [], [], !0);
4573
4608
  export {
4574
- Wi as P
4609
+ Zi as P
4575
4610
  };