@everymatrix/casino-sort 1.56.0 → 1.56.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,24 @@
1
1
  function $() {
2
2
  }
3
- function yt(e) {
3
+ function vt(e) {
4
4
  return e();
5
5
  }
6
- function qe() {
6
+ function Ke() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
9
  function he(e) {
10
- e.forEach(yt);
10
+ e.forEach(vt);
11
11
  }
12
12
  function Xe(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function xt(e, t) {
15
+ function Et(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function Zt(e) {
18
+ function Jt(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function vt(e, ...t) {
21
+ function _t(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const n of t)
24
24
  n(void 0);
@@ -27,21 +27,22 @@ function vt(e, ...t) {
27
27
  const r = e.subscribe(...t);
28
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
29
29
  }
30
- function Wt(e, t, r) {
31
- e.$$.on_destroy.push(vt(t, r));
30
+ function Qt(e, t, r) {
31
+ e.$$.on_destroy.push(_t(t, r));
32
32
  }
33
33
  function v(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function Jt(e, t, r) {
37
- const n = Qt(e);
36
+ function qt(e, t, r) {
37
+ const n = Yt(e);
38
38
  if (!n.getElementById(t)) {
39
- const i = H("style");
40
- i.id = t, i.textContent = r, qt(n, i);
39
+ const i = A("style");
40
+ i.id = t, i.textContent = r, Kt(n, i);
41
41
  }
42
42
  }
43
- function Qt(e) {
44
- if (!e) return document;
43
+ function Yt(e) {
44
+ if (!e)
45
+ return document;
45
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
46
47
  return t && /** @type {ShadowRoot} */
47
48
  t.host ? (
@@ -49,7 +50,7 @@ function Qt(e) {
49
50
  t
50
51
  ) : e.ownerDocument;
51
52
  }
52
- function qt(e, t) {
53
+ function Kt(e, t) {
53
54
  return v(
54
55
  /** @type {Document} */
55
56
  e.head || e,
@@ -62,11 +63,11 @@ function xe(e, t, r) {
62
63
  function ce(e) {
63
64
  e.parentNode && e.parentNode.removeChild(e);
64
65
  }
65
- function Yt(e, t) {
66
+ function er(e, t) {
66
67
  for (let r = 0; r < e.length; r += 1)
67
68
  e[r] && e[r].d(t);
68
69
  }
69
- function H(e) {
70
+ function A(e) {
70
71
  return document.createElement(e);
71
72
  }
72
73
  function j(e) {
@@ -78,20 +79,20 @@ function Ce(e) {
78
79
  function k() {
79
80
  return Ce(" ");
80
81
  }
81
- function Et(e, t, r, n) {
82
+ function St(e, t, r, n) {
82
83
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
83
84
  }
84
85
  function m(e, t, r) {
85
86
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
86
87
  }
87
- function Kt(e) {
88
+ function tr(e) {
88
89
  return Array.from(e.childNodes);
89
90
  }
90
- function Ye(e, t) {
91
+ function et(e, t) {
91
92
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
92
93
  t);
93
94
  }
94
- function er(e) {
95
+ function rr(e) {
95
96
  const t = {};
96
97
  return e.childNodes.forEach(
97
98
  /** @param {Element} node */
@@ -104,82 +105,84 @@ let ae;
104
105
  function se(e) {
105
106
  ae = e;
106
107
  }
107
- function tr() {
108
- if (!ae) throw new Error("Function called outside component initialization");
108
+ function nr() {
109
+ if (!ae)
110
+ throw new Error("Function called outside component initialization");
109
111
  return ae;
110
112
  }
111
- function rr(e) {
112
- tr().$$.on_mount.push(e);
113
+ function ir(e) {
114
+ nr().$$.on_mount.push(e);
113
115
  }
114
- const J = [], Le = [];
115
- let Q = [];
116
- const Ke = [], nr = /* @__PURE__ */ Promise.resolve();
116
+ const Q = [], Le = [];
117
+ let q = [];
118
+ const tt = [], or = /* @__PURE__ */ Promise.resolve();
117
119
  let Me = !1;
118
- function ir() {
119
- Me || (Me = !0, nr.then(F));
120
+ function sr() {
121
+ Me || (Me = !0, or.then(F));
120
122
  }
121
123
  function Re(e) {
122
- Q.push(e);
124
+ q.push(e);
123
125
  }
124
126
  const Ae = /* @__PURE__ */ new Set();
125
- let Z = 0;
127
+ let W = 0;
126
128
  function F() {
127
- if (Z !== 0)
129
+ if (W !== 0)
128
130
  return;
129
131
  const e = ae;
130
132
  do {
131
133
  try {
132
- for (; Z < J.length; ) {
133
- const t = J[Z];
134
- Z++, se(t), or(t.$$);
134
+ for (; W < Q.length; ) {
135
+ const t = Q[W];
136
+ W++, se(t), ar(t.$$);
135
137
  }
136
138
  } catch (t) {
137
- throw J.length = 0, Z = 0, t;
139
+ throw Q.length = 0, W = 0, t;
138
140
  }
139
- for (se(null), J.length = 0, Z = 0; Le.length; ) Le.pop()();
140
- for (let t = 0; t < Q.length; t += 1) {
141
- const r = Q[t];
141
+ for (se(null), Q.length = 0, W = 0; Le.length; )
142
+ Le.pop()();
143
+ for (let t = 0; t < q.length; t += 1) {
144
+ const r = q[t];
142
145
  Ae.has(r) || (Ae.add(r), r());
143
146
  }
144
- Q.length = 0;
145
- } while (J.length);
146
- for (; Ke.length; )
147
- Ke.pop()();
147
+ q.length = 0;
148
+ } while (Q.length);
149
+ for (; tt.length; )
150
+ tt.pop()();
148
151
  Me = !1, Ae.clear(), se(e);
149
152
  }
150
- function or(e) {
153
+ function ar(e) {
151
154
  if (e.fragment !== null) {
152
155
  e.update(), he(e.before_update);
153
156
  const t = e.dirty;
154
157
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
155
158
  }
156
159
  }
157
- function sr(e) {
160
+ function lr(e) {
158
161
  const t = [], r = [];
159
- Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
162
+ q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
160
163
  }
161
- const ar = /* @__PURE__ */ new Set();
162
- function lr(e, t) {
163
- e && e.i && (ar.delete(e), e.i(t));
164
+ const ur = /* @__PURE__ */ new Set();
165
+ function hr(e, t) {
166
+ e && e.i && (ur.delete(e), e.i(t));
164
167
  }
165
- function et(e) {
168
+ function rt(e) {
166
169
  return e?.length !== void 0 ? e : Array.from(e);
167
170
  }
168
- function ur(e, t, r) {
171
+ function cr(e, t, r) {
169
172
  const { fragment: n, after_update: i } = e.$$;
170
173
  n && n.m(t, r), Re(() => {
171
- const o = e.$$.on_mount.map(yt).filter(Xe);
174
+ const o = e.$$.on_mount.map(vt).filter(Xe);
172
175
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : he(o), e.$$.on_mount = [];
173
176
  }), i.forEach(Re);
174
177
  }
175
- function hr(e, t) {
178
+ function fr(e, t) {
176
179
  const r = e.$$;
177
- r.fragment !== null && (sr(r.after_update), he(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
180
+ r.fragment !== null && (lr(r.after_update), he(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
178
181
  }
179
- function cr(e, t) {
180
- e.$$.dirty[0] === -1 && (J.push(e), ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
182
+ function mr(e, t) {
183
+ e.$$.dirty[0] === -1 && (Q.push(e), sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
181
184
  }
182
- function fr(e, t, r, n, i, o, s = null, a = [-1]) {
185
+ function pr(e, t, r, n, i, o, s = null, a = [-1]) {
183
186
  const h = ae;
184
187
  se(e);
185
188
  const l = e.$$ = {
@@ -189,7 +192,7 @@ function fr(e, t, r, n, i, o, s = null, a = [-1]) {
189
192
  props: o,
190
193
  update: $,
191
194
  not_equal: i,
192
- bound: qe(),
195
+ bound: Ke(),
193
196
  // lifecycle
194
197
  on_mount: [],
195
198
  on_destroy: [],
@@ -198,7 +201,7 @@ function fr(e, t, r, n, i, o, s = null, a = [-1]) {
198
201
  after_update: [],
199
202
  context: new Map(t.context || (h ? h.$$.context : [])),
200
203
  // everything else
201
- callbacks: qe(),
204
+ callbacks: Ke(),
202
205
  dirty: a,
203
206
  skip_bound: !1,
204
207
  root: t.target || h.$$.root
@@ -206,20 +209,20 @@ function fr(e, t, r, n, i, o, s = null, a = [-1]) {
206
209
  s && s(l.root);
207
210
  let u = !1;
208
211
  if (l.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
209
- const b = p.length ? p[0] : f;
210
- return l.ctx && i(l.ctx[c], l.ctx[c] = b) && (!l.skip_bound && l.bound[c] && l.bound[c](b), u && cr(e, c)), f;
212
+ const g = p.length ? p[0] : f;
213
+ return l.ctx && i(l.ctx[c], l.ctx[c] = g) && (!l.skip_bound && l.bound[c] && l.bound[c](g), u && mr(e, c)), f;
211
214
  }) : [], l.update(), u = !0, he(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
212
215
  if (t.hydrate) {
213
- const c = Kt(t.target);
216
+ const c = tr(t.target);
214
217
  l.fragment && l.fragment.l(c), c.forEach(ce);
215
218
  } else
216
219
  l.fragment && l.fragment.c();
217
- t.intro && lr(e.$$.fragment), ur(e, t.target, t.anchor), F();
220
+ t.intro && hr(e.$$.fragment), cr(e, t.target, t.anchor), F();
218
221
  }
219
222
  se(h);
220
223
  }
221
- let _t;
222
- typeof HTMLElement == "function" && (_t = class extends HTMLElement {
224
+ let wt;
225
+ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
223
226
  /** The Svelte component constructor */
224
227
  $$ctor;
225
228
  /** Slots */
@@ -261,7 +264,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
261
264
  let o;
262
265
  return {
263
266
  c: function() {
264
- o = H("slot"), i !== "default" && m(o, "name", i);
267
+ o = A("slot"), i !== "default" && m(o, "name", i);
265
268
  },
266
269
  /**
267
270
  * @param {HTMLElement} target
@@ -278,7 +281,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
278
281
  };
279
282
  if (await Promise.resolve(), !this.$$cn || this.$$c)
280
283
  return;
281
- const t = {}, r = er(this);
284
+ const t = {}, r = rr(this);
282
285
  for (const i of this.$$s)
283
286
  i in r && (t[i] = [e(i)]);
284
287
  for (const i of this.attributes) {
@@ -365,8 +368,8 @@ function pe(e, t, r, n) {
365
368
  return t;
366
369
  }
367
370
  }
368
- function mr(e, t, r, n, i, o) {
369
- let s = class extends _t {
371
+ function dr(e, t, r, n, i, o) {
372
+ let s = class extends wt {
370
373
  constructor() {
371
374
  super(e, r, i), this.$$p_d = t;
372
375
  }
@@ -394,7 +397,7 @@ function mr(e, t, r, n, i, o) {
394
397
  }), e.element = /** @type {any} */
395
398
  s, s;
396
399
  }
397
- class pr {
400
+ class br {
398
401
  /**
399
402
  * ### PRIVATE API
400
403
  *
@@ -413,7 +416,7 @@ class pr {
413
416
  $$set = void 0;
414
417
  /** @returns {void} */
415
418
  $destroy() {
416
- hr(this, 1), this.$destroy = $;
419
+ fr(this, 1), this.$destroy = $;
417
420
  }
418
421
  /**
419
422
  * @template {Extract<keyof Events, string>} K
@@ -435,18 +438,18 @@ class pr {
435
438
  * @returns {void}
436
439
  */
437
440
  $set(t) {
438
- this.$$set && !Zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
441
+ this.$$set && !Jt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
439
442
  }
440
443
  }
441
- const dr = "4";
442
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr);
443
- function br(e, t) {
444
+ const gr = "4";
445
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(gr);
446
+ function yr(e, t) {
444
447
  if (e) {
445
448
  const r = document.createElement("style");
446
449
  r.innerHTML = t, e.appendChild(r);
447
450
  }
448
451
  }
449
- function gr(e, t) {
452
+ function xr(e, t) {
450
453
  const r = new URL(t);
451
454
  fetch(r.href).then((n) => n.text()).then((n) => {
452
455
  const i = document.createElement("style");
@@ -455,7 +458,7 @@ function gr(e, t) {
455
458
  console.error("There was an error while trying to load client styling from URL", n);
456
459
  });
457
460
  }
458
- function yr(e, t, r) {
461
+ function vr(e, t, r) {
459
462
  if (window.emMessageBus) {
460
463
  const n = document.createElement("style");
461
464
  window.emMessageBus.subscribe(t, (i) => {
@@ -463,8 +466,8 @@ function yr(e, t, r) {
463
466
  });
464
467
  }
465
468
  }
466
- const W = [];
467
- function xr(e, t) {
469
+ const J = [];
470
+ function Er(e, t) {
468
471
  return {
469
472
  subscribe: ve(e, t).subscribe
470
473
  };
@@ -473,14 +476,14 @@ function ve(e, t = $) {
473
476
  let r;
474
477
  const n = /* @__PURE__ */ new Set();
475
478
  function i(a) {
476
- if (xt(e, a) && (e = a, r)) {
477
- const h = !W.length;
479
+ if (Et(e, a) && (e = a, r)) {
480
+ const h = !J.length;
478
481
  for (const l of n)
479
- l[1](), W.push(l, e);
482
+ l[1](), J.push(l, e);
480
483
  if (h) {
481
- for (let l = 0; l < W.length; l += 2)
482
- W[l][0](W[l + 1]);
483
- W.length = 0;
484
+ for (let l = 0; l < J.length; l += 2)
485
+ J[l][0](J[l + 1]);
486
+ J.length = 0;
484
487
  }
485
488
  }
486
489
  }
@@ -495,12 +498,12 @@ function ve(e, t = $) {
495
498
  }
496
499
  return { set: i, update: o, subscribe: s };
497
500
  }
498
- function te(e, t, r) {
501
+ function re(e, t, r) {
499
502
  const n = !Array.isArray(e), i = n ? [e] : e;
500
503
  if (!i.every(Boolean))
501
504
  throw new Error("derived() expects stores as input, got a falsy value");
502
505
  const o = t.length < 2;
503
- return xr(r, (s, a) => {
506
+ return Er(r, (s, a) => {
504
507
  let h = !1;
505
508
  const l = [];
506
509
  let u = 0, c = $;
@@ -508,16 +511,16 @@ function te(e, t, r) {
508
511
  if (u)
509
512
  return;
510
513
  c();
511
- const b = t(n ? l[0] : l, s, a);
512
- o ? s(b) : c = Xe(b) ? b : $;
514
+ const g = t(n ? l[0] : l, s, a);
515
+ o ? s(g) : c = Xe(g) ? g : $;
513
516
  }, p = i.map(
514
- (b, S) => vt(
515
- b,
516
- (w) => {
517
- l[S] = w, u &= ~(1 << S), h && f();
517
+ (g, E) => _t(
518
+ g,
519
+ (N) => {
520
+ l[E] = N, u &= ~(1 << E), h && f();
518
521
  },
519
522
  () => {
520
- u |= 1 << S;
523
+ u |= 1 << E;
521
524
  }
522
525
  )
523
526
  );
@@ -526,85 +529,100 @@ function te(e, t, r) {
526
529
  };
527
530
  });
528
531
  }
529
- function vr(e) {
532
+ function _r(e) {
530
533
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
531
534
  }
532
- var Er = function(t) {
533
- return _r(t) && !Sr(t);
535
+ var Sr = function(t) {
536
+ return wr(t) && !Hr(t);
534
537
  };
535
- function _r(e) {
538
+ function wr(e) {
536
539
  return !!e && typeof e == "object";
537
540
  }
538
- function Sr(e) {
541
+ function Hr(e) {
539
542
  var t = Object.prototype.toString.call(e);
540
- return t === "[object RegExp]" || t === "[object Date]" || Ar(e);
543
+ return t === "[object RegExp]" || t === "[object Date]" || Br(e);
541
544
  }
542
- var wr = typeof Symbol == "function" && Symbol.for, Hr = wr ? Symbol.for("react.element") : 60103;
543
- function Ar(e) {
544
- return e.$$typeof === Hr;
545
+ var Ar = typeof Symbol == "function" && Symbol.for, Tr = Ar ? Symbol.for("react.element") : 60103;
546
+ function Br(e) {
547
+ return e.$$typeof === Tr;
545
548
  }
546
- function Tr(e) {
549
+ function Nr(e) {
547
550
  return Array.isArray(e) ? [] : {};
548
551
  }
549
552
  function le(e, t) {
550
- return t.clone !== !1 && t.isMergeableObject(e) ? q(Tr(e), e, t) : e;
553
+ return t.clone !== !1 && t.isMergeableObject(e) ? Y(Nr(e), e, t) : e;
551
554
  }
552
- function Br(e, t, r) {
555
+ function Pr(e, t, r) {
553
556
  return e.concat(t).map(function(n) {
554
557
  return le(n, r);
555
558
  });
556
559
  }
557
- function Nr(e, t) {
560
+ function Or(e, t) {
558
561
  if (!t.customMerge)
559
- return q;
562
+ return Y;
560
563
  var r = t.customMerge(e);
561
- return typeof r == "function" ? r : q;
564
+ return typeof r == "function" ? r : Y;
562
565
  }
563
- function Pr(e) {
566
+ function Ir(e) {
564
567
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
565
568
  return Object.propertyIsEnumerable.call(e, t);
566
569
  }) : [];
567
570
  }
568
- function tt(e) {
569
- return Object.keys(e).concat(Pr(e));
571
+ function nt(e) {
572
+ return Object.keys(e).concat(Ir(e));
570
573
  }
571
- function St(e, t) {
574
+ function Ht(e, t) {
572
575
  try {
573
576
  return t in e;
574
577
  } catch {
575
578
  return !1;
576
579
  }
577
580
  }
578
- function Or(e, t) {
579
- return St(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
581
+ function Cr(e, t) {
582
+ return Ht(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
580
583
  }
581
- function Ir(e, t, r) {
584
+ function Lr(e, t, r) {
582
585
  var n = {};
583
- return r.isMergeableObject(e) && tt(e).forEach(function(i) {
586
+ return r.isMergeableObject(e) && nt(e).forEach(function(i) {
584
587
  n[i] = le(e[i], r);
585
- }), tt(t).forEach(function(i) {
586
- Or(e, i) || (St(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
588
+ }), nt(t).forEach(function(i) {
589
+ Cr(e, i) || (Ht(e, i) && r.isMergeableObject(t[i]) ? n[i] = Or(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
587
590
  }), n;
588
591
  }
589
- function q(e, t, r) {
590
- r = r || {}, r.arrayMerge = r.arrayMerge || Br, r.isMergeableObject = r.isMergeableObject || Er, r.cloneUnlessOtherwiseSpecified = le;
592
+ function Y(e, t, r) {
593
+ r = r || {}, r.arrayMerge = r.arrayMerge || Pr, r.isMergeableObject = r.isMergeableObject || Sr, r.cloneUnlessOtherwiseSpecified = le;
591
594
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
592
- return o ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) : le(t, r);
595
+ return o ? n ? r.arrayMerge(e, t, r) : Lr(e, t, r) : le(t, r);
593
596
  }
594
- q.all = function(t, r) {
597
+ Y.all = function(t, r) {
595
598
  if (!Array.isArray(t))
596
599
  throw new Error("first argument should be an array");
597
600
  return t.reduce(function(n, i) {
598
- return q(n, i, r);
601
+ return Y(n, i, r);
599
602
  }, {});
600
603
  };
601
- var Cr = q, Lr = Cr;
602
- const Mr = /* @__PURE__ */ vr(Lr);
604
+ var Mr = Y, Rr = Mr;
605
+ const $r = /* @__PURE__ */ _r(Rr);
606
+ /*! *****************************************************************************
607
+ Copyright (c) Microsoft Corporation.
608
+
609
+ Permission to use, copy, modify, and/or distribute this software for any
610
+ purpose with or without fee is hereby granted.
611
+
612
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
613
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
614
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
615
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
616
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
617
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
618
+ PERFORMANCE OF THIS SOFTWARE.
619
+ ***************************************************************************** */
603
620
  var $e = function(e, t) {
604
621
  return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
605
622
  r.__proto__ = n;
606
623
  } || function(r, n) {
607
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
624
+ for (var i in n)
625
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
608
626
  }, $e(e, t);
609
627
  };
610
628
  function Ee(e, t) {
@@ -620,121 +638,126 @@ var x = function() {
620
638
  return x = Object.assign || function(t) {
621
639
  for (var r, n = 1, i = arguments.length; n < i; n++) {
622
640
  r = arguments[n];
623
- for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
641
+ for (var o in r)
642
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
624
643
  }
625
644
  return t;
626
645
  }, x.apply(this, arguments);
627
646
  };
628
- function Rr(e, t) {
647
+ function Dr(e, t) {
629
648
  var r = {};
630
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
649
+ for (var n in e)
650
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
631
651
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
632
652
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
633
653
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
634
654
  return r;
635
655
  }
636
656
  function Te(e, t, r) {
637
- if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
638
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
639
- return e.concat(o || Array.prototype.slice.call(t));
657
+ if (arguments.length === 2)
658
+ for (var n = 0, i = t.length, o; n < i; n++)
659
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
660
+ return e.concat(o || t);
640
661
  }
641
662
  function Be(e, t) {
642
- var r = t && t.cache ? t.cache : kr, n = t && t.serializer ? t.serializer : Gr, i = t && t.strategy ? t.strategy : Ur;
663
+ var r = t && t.cache ? t.cache : Vr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Fr;
643
664
  return i(e, {
644
665
  cache: r,
645
666
  serializer: n
646
667
  });
647
668
  }
648
- function $r(e) {
669
+ function Ur(e) {
649
670
  return e == null || typeof e == "number" || typeof e == "boolean";
650
671
  }
651
- function Dr(e, t, r, n) {
652
- var i = $r(n) ? n : r(n), o = t.get(i);
672
+ function At(e, t, r, n) {
673
+ var i = Ur(n) ? n : r(n), o = t.get(i);
653
674
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
654
675
  }
655
- function wt(e, t, r) {
676
+ function Tt(e, t, r) {
656
677
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
657
678
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
658
679
  }
659
- function Ht(e, t, r, n, i) {
680
+ function Ze(e, t, r, n, i) {
660
681
  return r.bind(t, e, n, i);
661
682
  }
662
- function Ur(e, t) {
663
- var r = e.length === 1 ? Dr : wt;
664
- return Ht(e, this, r, t.cache.create(), t.serializer);
665
- }
666
683
  function Fr(e, t) {
667
- return Ht(e, this, wt, t.cache.create(), t.serializer);
684
+ var r = e.length === 1 ? At : Tt;
685
+ return Ze(e, this, r, t.cache.create(), t.serializer);
686
+ }
687
+ function Gr(e, t) {
688
+ return Ze(e, this, Tt, t.cache.create(), t.serializer);
668
689
  }
669
- var Gr = function() {
690
+ function jr(e, t) {
691
+ return Ze(e, this, At, t.cache.create(), t.serializer);
692
+ }
693
+ var kr = function() {
670
694
  return JSON.stringify(arguments);
671
- }, jr = (
672
- /** @class */
673
- function() {
674
- function e() {
675
- this.cache = /* @__PURE__ */ Object.create(null);
676
- }
677
- return e.prototype.get = function(t) {
678
- return this.cache[t];
679
- }, e.prototype.set = function(t, r) {
680
- this.cache[t] = r;
681
- }, e;
682
- }()
683
- ), kr = {
695
+ };
696
+ function We() {
697
+ this.cache = /* @__PURE__ */ Object.create(null);
698
+ }
699
+ We.prototype.get = function(e) {
700
+ return this.cache[e];
701
+ };
702
+ We.prototype.set = function(e, t) {
703
+ this.cache[e] = t;
704
+ };
705
+ var Vr = {
684
706
  create: function() {
685
- return new jr();
707
+ return new We();
686
708
  }
687
709
  }, Ne = {
688
- variadic: Fr
689
- }, g;
710
+ variadic: Gr,
711
+ monadic: jr
712
+ }, b;
690
713
  (function(e) {
691
714
  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";
692
- })(g || (g = {}));
693
- var E;
715
+ })(b || (b = {}));
716
+ var _;
694
717
  (function(e) {
695
718
  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";
696
- })(E || (E = {}));
697
- var Y;
719
+ })(_ || (_ = {}));
720
+ var K;
698
721
  (function(e) {
699
722
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
700
- })(Y || (Y = {}));
701
- function rt(e) {
702
- return e.type === E.literal;
703
- }
704
- function Vr(e) {
705
- return e.type === E.argument;
706
- }
707
- function At(e) {
708
- return e.type === E.number;
723
+ })(K || (K = {}));
724
+ function it(e) {
725
+ return e.type === _.literal;
709
726
  }
710
- function Tt(e) {
711
- return e.type === E.date;
727
+ function zr(e) {
728
+ return e.type === _.argument;
712
729
  }
713
730
  function Bt(e) {
714
- return e.type === E.time;
731
+ return e.type === _.number;
715
732
  }
716
733
  function Nt(e) {
717
- return e.type === E.select;
734
+ return e.type === _.date;
718
735
  }
719
736
  function Pt(e) {
720
- return e.type === E.plural;
721
- }
722
- function zr(e) {
723
- return e.type === E.pound;
737
+ return e.type === _.time;
724
738
  }
725
739
  function Ot(e) {
726
- return e.type === E.tag;
740
+ return e.type === _.select;
727
741
  }
728
742
  function It(e) {
729
- return !!(e && typeof e == "object" && e.type === Y.number);
743
+ return e.type === _.plural;
744
+ }
745
+ function Xr(e) {
746
+ return e.type === _.pound;
747
+ }
748
+ function Ct(e) {
749
+ return e.type === _.tag;
750
+ }
751
+ function Lt(e) {
752
+ return !!(e && typeof e == "object" && e.type === K.number);
730
753
  }
731
754
  function De(e) {
732
- return !!(e && typeof e == "object" && e.type === Y.dateTime);
755
+ return !!(e && typeof e == "object" && e.type === K.dateTime);
733
756
  }
734
- var Ct = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Xr = /(?:[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;
735
- function Zr(e) {
757
+ var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zr = /(?:[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;
758
+ function Wr(e) {
736
759
  var t = {};
737
- return e.replace(Xr, function(r) {
760
+ return e.replace(Zr, function(r) {
738
761
  var n = r.length;
739
762
  switch (r[0]) {
740
763
  case "G":
@@ -823,11 +846,11 @@ function Zr(e) {
823
846
  return "";
824
847
  }), t;
825
848
  }
826
- var Wr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
827
- function Jr(e) {
849
+ var Jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
850
+ function Qr(e) {
828
851
  if (e.length === 0)
829
852
  throw new Error("Number skeleton cannot be empty");
830
- for (var t = e.split(Wr).filter(function(f) {
853
+ for (var t = e.split(Jr).filter(function(f) {
831
854
  return f.length > 0;
832
855
  }), r = [], n = 0, i = t; n < i.length; n++) {
833
856
  var o = i[n], s = o.split("/");
@@ -842,17 +865,17 @@ function Jr(e) {
842
865
  }
843
866
  return r;
844
867
  }
845
- function Qr(e) {
868
+ function qr(e) {
846
869
  return e.replace(/^(.*?)-/, "");
847
870
  }
848
- var nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Lt = /^(@+)?(\+|#+)?[rs]?$/g, qr = /(\*)(0+)|(#+)(0+)|(0+)/g, Mt = /^(0+)$/;
849
- function it(e) {
871
+ var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, Yr = /(\*)(0+)|(#+)(0+)|(0+)/g, $t = /^(0+)$/;
872
+ function st(e) {
850
873
  var t = {};
851
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Lt, function(r, n, i) {
874
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
852
875
  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)), "";
853
876
  }), t;
854
877
  }
855
- function Rt(e) {
878
+ function Dt(e) {
856
879
  switch (e) {
857
880
  case "sign-auto":
858
881
  return {
@@ -892,7 +915,7 @@ function Rt(e) {
892
915
  };
893
916
  }
894
917
  }
895
- function Yr(e) {
918
+ function Kr(e) {
896
919
  var t;
897
920
  if (e[0] === "E" && e[1] === "E" ? (t = {
898
921
  notation: "engineering"
@@ -900,17 +923,17 @@ function Yr(e) {
900
923
  notation: "scientific"
901
924
  }, e = e.slice(1)), t) {
902
925
  var r = e.slice(0, 2);
903
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Mt.test(e))
926
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !$t.test(e))
904
927
  throw new Error("Malformed concise eng/scientific notation");
905
928
  t.minimumIntegerDigits = e.length;
906
929
  }
907
930
  return t;
908
931
  }
909
- function ot(e) {
910
- var t = {}, r = Rt(e);
932
+ function at(e) {
933
+ var t = {}, r = Dt(e);
911
934
  return r || t;
912
935
  }
913
- function Kr(e) {
936
+ function en(e) {
914
937
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
915
938
  var i = n[r];
916
939
  switch (i.stem) {
@@ -934,7 +957,7 @@ function Kr(e) {
934
957
  continue;
935
958
  case "measure-unit":
936
959
  case "unit":
937
- t.style = "unit", t.unit = Qr(i.options[0]);
960
+ t.style = "unit", t.unit = qr(i.options[0]);
938
961
  continue;
939
962
  case "compact-short":
940
963
  case "K":
@@ -946,12 +969,12 @@ function Kr(e) {
946
969
  continue;
947
970
  case "scientific":
948
971
  t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
949
- return x(x({}, h), ot(l));
972
+ return x(x({}, h), at(l));
950
973
  }, {}));
951
974
  continue;
952
975
  case "engineering":
953
976
  t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
954
- return x(x({}, h), ot(l));
977
+ return x(x({}, h), at(l));
955
978
  }, {}));
956
979
  continue;
957
980
  case "notation-simple":
@@ -996,7 +1019,7 @@ function Kr(e) {
996
1019
  case "integer-width":
997
1020
  if (i.options.length > 1)
998
1021
  throw new RangeError("integer-width stems only accept a single optional option");
999
- i.options[0].replace(qr, function(h, l, u, c, f, p) {
1022
+ i.options[0].replace(Yr, function(h, l, u, c, f, p) {
1000
1023
  if (l)
1001
1024
  t.minimumIntegerDigits = u.length;
1002
1025
  else {
@@ -1009,27 +1032,27 @@ function Kr(e) {
1009
1032
  });
1010
1033
  continue;
1011
1034
  }
1012
- if (Mt.test(i.stem)) {
1035
+ if ($t.test(i.stem)) {
1013
1036
  t.minimumIntegerDigits = i.stem.length;
1014
1037
  continue;
1015
1038
  }
1016
- if (nt.test(i.stem)) {
1039
+ if (ot.test(i.stem)) {
1017
1040
  if (i.options.length > 1)
1018
1041
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1019
- i.stem.replace(nt, function(h, l, u, c, f, p) {
1042
+ i.stem.replace(ot, function(h, l, u, c, f, p) {
1020
1043
  return u === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1021
1044
  });
1022
1045
  var o = i.options[0];
1023
- o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), it(o)));
1046
+ o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), st(o)));
1024
1047
  continue;
1025
1048
  }
1026
- if (Lt.test(i.stem)) {
1027
- t = x(x({}, t), it(i.stem));
1049
+ if (Rt.test(i.stem)) {
1050
+ t = x(x({}, t), st(i.stem));
1028
1051
  continue;
1029
1052
  }
1030
- var s = Rt(i.stem);
1053
+ var s = Dt(i.stem);
1031
1054
  s && (t = x(x({}, t), s));
1032
- var a = Yr(i.stem);
1055
+ var a = Kr(i.stem);
1033
1056
  a && (t = x(x({}, t), a));
1034
1057
  }
1035
1058
  return t;
@@ -2449,22 +2472,23 @@ var me = {
2449
2472
  "h"
2450
2473
  ]
2451
2474
  };
2452
- function en(e, t) {
2475
+ function tn(e, t) {
2453
2476
  for (var r = "", n = 0; n < e.length; n++) {
2454
2477
  var i = e.charAt(n);
2455
2478
  if (i === "j") {
2456
2479
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2457
2480
  o++, n++;
2458
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = tn(t);
2481
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = rn(t);
2459
2482
  for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2460
2483
  r += h;
2461
2484
  for (; s-- > 0; )
2462
2485
  r = l + r;
2463
- } else i === "J" ? r += "H" : r += i;
2486
+ } else
2487
+ i === "J" ? r += "H" : r += i;
2464
2488
  }
2465
2489
  return r;
2466
2490
  }
2467
- function tn(e) {
2491
+ function rn(e) {
2468
2492
  var t = e.hourCycle;
2469
2493
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2470
2494
  e.hourCycles && // @ts-ignore
@@ -2486,20 +2510,20 @@ function tn(e) {
2486
2510
  var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
2487
2511
  return i[0];
2488
2512
  }
2489
- var Pe, rn = new RegExp("^".concat(Ct.source, "*")), nn = new RegExp("".concat(Ct.source, "*$"));
2513
+ var Pe, nn = new RegExp("^".concat(Mt.source, "*")), on = new RegExp("".concat(Mt.source, "*$"));
2490
2514
  function y(e, t) {
2491
2515
  return { start: e, end: t };
2492
2516
  }
2493
- var on = !!String.prototype.startsWith && "_a".startsWith("a", 1), sn = !!String.fromCodePoint, an = !!Object.fromEntries, ln = !!String.prototype.codePointAt, un = !!String.prototype.trimStart, hn = !!String.prototype.trimEnd, cn = !!Number.isSafeInteger, fn = cn ? Number.isSafeInteger : function(e) {
2517
+ var sn = !!String.prototype.startsWith && "_a".startsWith("a", 1), an = !!String.fromCodePoint, ln = !!Object.fromEntries, un = !!String.prototype.codePointAt, hn = !!String.prototype.trimStart, cn = !!String.prototype.trimEnd, fn = !!Number.isSafeInteger, mn = fn ? Number.isSafeInteger : function(e) {
2494
2518
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2495
2519
  }, Ue = !0;
2496
2520
  try {
2497
- var mn = Dt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2498
- Ue = ((Pe = mn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
2521
+ var pn = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2522
+ Ue = ((Pe = pn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
2499
2523
  } catch {
2500
2524
  Ue = !1;
2501
2525
  }
2502
- var st = on ? (
2526
+ var lt = sn ? (
2503
2527
  // Native
2504
2528
  function(t, r, n) {
2505
2529
  return t.startsWith(r, n);
@@ -2509,7 +2533,7 @@ var st = on ? (
2509
2533
  function(t, r, n) {
2510
2534
  return t.slice(n, n + r.length) === r;
2511
2535
  }
2512
- ), Fe = sn ? String.fromCodePoint : (
2536
+ ), Fe = an ? String.fromCodePoint : (
2513
2537
  // IE11
2514
2538
  function() {
2515
2539
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2521,9 +2545,9 @@ var st = on ? (
2521
2545
  }
2522
2546
  return n;
2523
2547
  }
2524
- ), at = (
2548
+ ), ut = (
2525
2549
  // native
2526
- an ? Object.fromEntries : (
2550
+ ln ? Object.fromEntries : (
2527
2551
  // Ponyfill
2528
2552
  function(t) {
2529
2553
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2533,7 +2557,7 @@ var st = on ? (
2533
2557
  return r;
2534
2558
  }
2535
2559
  )
2536
- ), $t = ln ? (
2560
+ ), Ut = un ? (
2537
2561
  // Native
2538
2562
  function(t, r) {
2539
2563
  return t.codePointAt(r);
@@ -2547,7 +2571,7 @@ var st = on ? (
2547
2571
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2548
2572
  }
2549
2573
  }
2550
- ), pn = un ? (
2574
+ ), dn = hn ? (
2551
2575
  // Native
2552
2576
  function(t) {
2553
2577
  return t.trimStart();
@@ -2555,9 +2579,9 @@ var st = on ? (
2555
2579
  ) : (
2556
2580
  // Ponyfill
2557
2581
  function(t) {
2558
- return t.replace(rn, "");
2582
+ return t.replace(nn, "");
2559
2583
  }
2560
- ), dn = hn ? (
2584
+ ), bn = cn ? (
2561
2585
  // Native
2562
2586
  function(t) {
2563
2587
  return t.trimEnd();
@@ -2565,32 +2589,32 @@ var st = on ? (
2565
2589
  ) : (
2566
2590
  // Ponyfill
2567
2591
  function(t) {
2568
- return t.replace(nn, "");
2592
+ return t.replace(on, "");
2569
2593
  }
2570
2594
  );
2571
- function Dt(e, t) {
2595
+ function Ft(e, t) {
2572
2596
  return new RegExp(e, t);
2573
2597
  }
2574
2598
  var Ge;
2575
2599
  if (Ue) {
2576
- var lt = Dt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2600
+ var ht = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2577
2601
  Ge = function(t, r) {
2578
2602
  var n;
2579
- lt.lastIndex = r;
2580
- var i = lt.exec(t);
2603
+ ht.lastIndex = r;
2604
+ var i = ht.exec(t);
2581
2605
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2582
2606
  };
2583
2607
  } else
2584
2608
  Ge = function(t, r) {
2585
2609
  for (var n = []; ; ) {
2586
- var i = $t(t, r);
2587
- if (i === void 0 || Ut(i) || xn(i))
2610
+ var i = Ut(t, r);
2611
+ if (i === void 0 || Gt(i) || vn(i))
2588
2612
  break;
2589
2613
  n.push(i), r += i >= 65536 ? 2 : 1;
2590
2614
  }
2591
2615
  return Fe.apply(void 0, n);
2592
2616
  };
2593
- var bn = (
2617
+ var gn = (
2594
2618
  /** @class */
2595
2619
  function() {
2596
2620
  function e(t, r) {
@@ -2614,13 +2638,13 @@ var bn = (
2614
2638
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2615
2639
  var a = this.clonePosition();
2616
2640
  this.bump(), i.push({
2617
- type: E.pound,
2641
+ type: _.pound,
2618
2642
  location: y(a, this.clonePosition())
2619
2643
  });
2620
2644
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2621
2645
  if (n)
2622
2646
  break;
2623
- return this.error(g.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
2647
+ return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
2624
2648
  } else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
2625
2649
  var s = this.parseTag(t, r);
2626
2650
  if (s.err)
@@ -2642,7 +2666,7 @@ var bn = (
2642
2666
  if (this.bumpSpace(), this.bumpIf("/>"))
2643
2667
  return {
2644
2668
  val: {
2645
- type: E.literal,
2669
+ type: _.literal,
2646
2670
  value: "<".concat(i, "/>"),
2647
2671
  location: y(n, this.clonePosition())
2648
2672
  },
@@ -2655,24 +2679,24 @@ var bn = (
2655
2679
  var s = o.val, a = this.clonePosition();
2656
2680
  if (this.bumpIf("</")) {
2657
2681
  if (this.isEOF() || !je(this.char()))
2658
- return this.error(g.INVALID_TAG, y(a, this.clonePosition()));
2682
+ return this.error(b.INVALID_TAG, y(a, this.clonePosition()));
2659
2683
  var h = this.clonePosition(), l = this.parseTagName();
2660
- return i !== l ? this.error(g.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2684
+ return i !== l ? this.error(b.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2661
2685
  val: {
2662
- type: E.tag,
2686
+ type: _.tag,
2663
2687
  value: i,
2664
2688
  children: s,
2665
2689
  location: y(n, this.clonePosition())
2666
2690
  },
2667
2691
  err: null
2668
- } : this.error(g.INVALID_TAG, y(a, this.clonePosition())));
2692
+ } : this.error(b.INVALID_TAG, y(a, this.clonePosition())));
2669
2693
  } else
2670
- return this.error(g.UNCLOSED_TAG, y(n, this.clonePosition()));
2694
+ return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
2671
2695
  } else
2672
- return this.error(g.INVALID_TAG, y(n, this.clonePosition()));
2696
+ return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
2673
2697
  }, e.prototype.parseTagName = function() {
2674
2698
  var t = this.offset();
2675
- for (this.bump(); !this.isEOF() && yn(this.char()); )
2699
+ for (this.bump(); !this.isEOF() && xn(this.char()); )
2676
2700
  this.bump();
2677
2701
  return this.message.slice(t, this.offset());
2678
2702
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2696,12 +2720,12 @@ var bn = (
2696
2720
  }
2697
2721
  var h = y(n, this.clonePosition());
2698
2722
  return {
2699
- val: { type: E.literal, value: i, location: h },
2723
+ val: { type: _.literal, value: i, location: h },
2700
2724
  err: null
2701
2725
  };
2702
2726
  }, e.prototype.tryParseLeftAngleBracket = function() {
2703
2727
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2704
- !gn(this.peek() || 0)) ? (this.bump(), "<") : null;
2728
+ !yn(this.peek() || 0)) ? (this.bump(), "<") : null;
2705
2729
  }, e.prototype.tryParseQuote = function(t) {
2706
2730
  if (this.isEOF() || this.char() !== 39)
2707
2731
  return null;
@@ -2744,19 +2768,19 @@ var bn = (
2744
2768
  }, e.prototype.parseArgument = function(t, r) {
2745
2769
  var n = this.clonePosition();
2746
2770
  if (this.bump(), this.bumpSpace(), this.isEOF())
2747
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2771
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2748
2772
  if (this.char() === 125)
2749
- return this.bump(), this.error(g.EMPTY_ARGUMENT, y(n, this.clonePosition()));
2773
+ return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
2750
2774
  var i = this.parseIdentifierIfPossible().value;
2751
2775
  if (!i)
2752
- return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2776
+ return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2753
2777
  if (this.bumpSpace(), this.isEOF())
2754
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2778
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2755
2779
  switch (this.char()) {
2756
2780
  case 125:
2757
2781
  return this.bump(), {
2758
2782
  val: {
2759
- type: E.argument,
2783
+ type: _.argument,
2760
2784
  // value does not include the opening and closing braces.
2761
2785
  value: i,
2762
2786
  location: y(n, this.clonePosition())
@@ -2764,9 +2788,9 @@ var bn = (
2764
2788
  err: null
2765
2789
  };
2766
2790
  case 44:
2767
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2791
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2768
2792
  default:
2769
- return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2793
+ return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2770
2794
  }
2771
2795
  }, e.prototype.parseIdentifierIfPossible = function() {
2772
2796
  var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
@@ -2777,7 +2801,7 @@ var bn = (
2777
2801
  var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2778
2802
  switch (a) {
2779
2803
  case "":
2780
- return this.error(g.EXPECT_ARGUMENT_TYPE, y(s, h));
2804
+ return this.error(b.EXPECT_ARGUMENT_TYPE, y(s, h));
2781
2805
  case "number":
2782
2806
  case "date":
2783
2807
  case "time": {
@@ -2788,46 +2812,46 @@ var bn = (
2788
2812
  var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2789
2813
  if (c.err)
2790
2814
  return c;
2791
- var f = dn(c.val);
2815
+ var f = bn(c.val);
2792
2816
  if (f.length === 0)
2793
- return this.error(g.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
2817
+ return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
2794
2818
  var p = y(u, this.clonePosition());
2795
2819
  l = { style: f, styleLocation: p };
2796
2820
  }
2797
- var b = this.tryParseArgumentClose(i);
2798
- if (b.err)
2799
- return b;
2800
- var S = y(i, this.clonePosition());
2801
- if (l && st(l?.style, "::", 0)) {
2802
- var w = pn(l.style.slice(2));
2821
+ var g = this.tryParseArgumentClose(i);
2822
+ if (g.err)
2823
+ return g;
2824
+ var E = y(i, this.clonePosition());
2825
+ if (l && lt(l?.style, "::", 0)) {
2826
+ var N = dn(l.style.slice(2));
2803
2827
  if (a === "number") {
2804
- var c = this.parseNumberSkeletonFromString(w, l.styleLocation);
2828
+ var c = this.parseNumberSkeletonFromString(N, l.styleLocation);
2805
2829
  return c.err ? c : {
2806
- val: { type: E.number, value: n, location: S, style: c.val },
2830
+ val: { type: _.number, value: n, location: E, style: c.val },
2807
2831
  err: null
2808
2832
  };
2809
2833
  } else {
2810
- if (w.length === 0)
2811
- return this.error(g.EXPECT_DATE_TIME_SKELETON, S);
2812
- var M = w;
2813
- this.locale && (M = en(w, this.locale));
2834
+ if (N.length === 0)
2835
+ return this.error(b.EXPECT_DATE_TIME_SKELETON, E);
2836
+ var P = N;
2837
+ this.locale && (P = tn(N, this.locale));
2814
2838
  var f = {
2815
- type: Y.dateTime,
2816
- pattern: M,
2839
+ type: K.dateTime,
2840
+ pattern: P,
2817
2841
  location: l.styleLocation,
2818
- parsedOptions: this.shouldParseSkeletons ? Zr(M) : {}
2819
- }, C = a === "date" ? E.date : E.time;
2842
+ parsedOptions: this.shouldParseSkeletons ? Wr(P) : {}
2843
+ }, M = a === "date" ? _.date : _.time;
2820
2844
  return {
2821
- val: { type: C, value: n, location: S, style: f },
2845
+ val: { type: M, value: n, location: E, style: f },
2822
2846
  err: null
2823
2847
  };
2824
2848
  }
2825
2849
  }
2826
2850
  return {
2827
2851
  val: {
2828
- type: a === "number" ? E.number : a === "date" ? E.date : E.time,
2852
+ type: a === "number" ? _.number : a === "date" ? _.date : _.time,
2829
2853
  value: n,
2830
- location: S,
2854
+ location: E,
2831
2855
  style: (o = l?.style) !== null && o !== void 0 ? o : null
2832
2856
  },
2833
2857
  err: null
@@ -2838,39 +2862,39 @@ var bn = (
2838
2862
  case "select": {
2839
2863
  var B = this.clonePosition();
2840
2864
  if (this.bumpSpace(), !this.bumpIf(","))
2841
- return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(B, x({}, B)));
2865
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(B, x({}, B)));
2842
2866
  this.bumpSpace();
2843
- var I = this.parseIdentifierIfPossible(), A = 0;
2844
- if (a !== "select" && I.value === "offset") {
2867
+ var C = this.parseIdentifierIfPossible(), w = 0;
2868
+ if (a !== "select" && C.value === "offset") {
2845
2869
  if (!this.bumpIf(":"))
2846
- return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
2870
+ return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
2847
2871
  this.bumpSpace();
2848
- var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2872
+ var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2849
2873
  if (c.err)
2850
2874
  return c;
2851
- this.bumpSpace(), I = this.parseIdentifierIfPossible(), A = c.val;
2875
+ this.bumpSpace(), C = this.parseIdentifierIfPossible(), w = c.val;
2852
2876
  }
2853
- var L = this.tryParsePluralOrSelectOptions(t, a, r, I);
2877
+ var L = this.tryParsePluralOrSelectOptions(t, a, r, C);
2854
2878
  if (L.err)
2855
2879
  return L;
2856
- var b = this.tryParseArgumentClose(i);
2857
- if (b.err)
2858
- return b;
2880
+ var g = this.tryParseArgumentClose(i);
2881
+ if (g.err)
2882
+ return g;
2859
2883
  var D = y(i, this.clonePosition());
2860
2884
  return a === "select" ? {
2861
2885
  val: {
2862
- type: E.select,
2886
+ type: _.select,
2863
2887
  value: n,
2864
- options: at(L.val),
2888
+ options: ut(L.val),
2865
2889
  location: D
2866
2890
  },
2867
2891
  err: null
2868
2892
  } : {
2869
2893
  val: {
2870
- type: E.plural,
2894
+ type: _.plural,
2871
2895
  value: n,
2872
- options: at(L.val),
2873
- offset: A,
2896
+ options: ut(L.val),
2897
+ offset: w,
2874
2898
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2875
2899
  location: D
2876
2900
  },
@@ -2878,10 +2902,10 @@ var bn = (
2878
2902
  };
2879
2903
  }
2880
2904
  default:
2881
- return this.error(g.INVALID_ARGUMENT_TYPE, y(s, h));
2905
+ return this.error(b.INVALID_ARGUMENT_TYPE, y(s, h));
2882
2906
  }
2883
2907
  }, e.prototype.tryParseArgumentClose = function(t) {
2884
- return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2908
+ return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2885
2909
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2886
2910
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2887
2911
  var n = this.char();
@@ -2890,7 +2914,7 @@ var bn = (
2890
2914
  this.bump();
2891
2915
  var i = this.clonePosition();
2892
2916
  if (!this.bumpUntil("'"))
2893
- return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
2917
+ return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
2894
2918
  this.bump();
2895
2919
  break;
2896
2920
  }
@@ -2920,16 +2944,16 @@ var bn = (
2920
2944
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2921
2945
  var n = [];
2922
2946
  try {
2923
- n = Jr(t);
2947
+ n = Qr(t);
2924
2948
  } catch {
2925
- return this.error(g.INVALID_NUMBER_SKELETON, r);
2949
+ return this.error(b.INVALID_NUMBER_SKELETON, r);
2926
2950
  }
2927
2951
  return {
2928
2952
  val: {
2929
- type: Y.number,
2953
+ type: K.number,
2930
2954
  tokens: n,
2931
2955
  location: r,
2932
- parsedOptions: this.shouldParseSkeletons ? Kr(n) : {}
2956
+ parsedOptions: this.shouldParseSkeletons ? en(n) : {}
2933
2957
  },
2934
2958
  err: null
2935
2959
  };
@@ -2938,7 +2962,7 @@ var bn = (
2938
2962
  if (l.length === 0) {
2939
2963
  var c = this.clonePosition();
2940
2964
  if (r !== "select" && this.bumpIf("=")) {
2941
- var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
2965
+ var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
2942
2966
  if (f.err)
2943
2967
  return f;
2944
2968
  u = y(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
@@ -2946,26 +2970,26 @@ var bn = (
2946
2970
  break;
2947
2971
  }
2948
2972
  if (h.has(l))
2949
- return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
2973
+ return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
2950
2974
  l === "other" && (s = !0), this.bumpSpace();
2951
2975
  var p = this.clonePosition();
2952
2976
  if (!this.bumpIf("{"))
2953
- return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
2954
- var b = this.parseMessage(t + 1, r, n);
2955
- if (b.err)
2956
- return b;
2957
- var S = this.tryParseArgumentClose(p);
2958
- if (S.err)
2959
- return S;
2977
+ return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
2978
+ var g = this.parseMessage(t + 1, r, n);
2979
+ if (g.err)
2980
+ return g;
2981
+ var E = this.tryParseArgumentClose(p);
2982
+ if (E.err)
2983
+ return E;
2960
2984
  a.push([
2961
2985
  l,
2962
2986
  {
2963
- value: b.val,
2987
+ value: g.val,
2964
2988
  location: y(p, this.clonePosition())
2965
2989
  }
2966
2990
  ]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
2967
2991
  }
2968
- return a.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(g.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2992
+ return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2969
2993
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2970
2994
  var n = 1, i = this.clonePosition();
2971
2995
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -2977,7 +3001,7 @@ var bn = (
2977
3001
  break;
2978
3002
  }
2979
3003
  var h = y(i, this.clonePosition());
2980
- return o ? (s *= n, fn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3004
+ return o ? (s *= n, mn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
2981
3005
  }, e.prototype.offset = function() {
2982
3006
  return this.position.offset;
2983
3007
  }, e.prototype.isEOF = function() {
@@ -2992,7 +3016,7 @@ var bn = (
2992
3016
  var t = this.position.offset;
2993
3017
  if (t >= this.message.length)
2994
3018
  throw Error("out of bound");
2995
- var r = $t(this.message, t);
3019
+ var r = Ut(this.message, t);
2996
3020
  if (r === void 0)
2997
3021
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2998
3022
  return r;
@@ -3011,7 +3035,7 @@ var bn = (
3011
3035
  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);
3012
3036
  }
3013
3037
  }, e.prototype.bumpIf = function(t) {
3014
- if (st(this.message, t, this.offset())) {
3038
+ if (lt(this.message, t, this.offset())) {
3015
3039
  for (var r = 0; r < t.length; r++)
3016
3040
  this.bump();
3017
3041
  return !0;
@@ -3033,7 +3057,7 @@ var bn = (
3033
3057
  break;
3034
3058
  }
3035
3059
  }, e.prototype.bumpSpace = function() {
3036
- for (; !this.isEOF() && Ut(this.char()); )
3060
+ for (; !this.isEOF() && Gt(this.char()); )
3037
3061
  this.bump();
3038
3062
  }, e.prototype.peek = function() {
3039
3063
  if (this.isEOF())
@@ -3046,39 +3070,40 @@ var bn = (
3046
3070
  function je(e) {
3047
3071
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3048
3072
  }
3049
- function gn(e) {
3073
+ function yn(e) {
3050
3074
  return je(e) || e === 47;
3051
3075
  }
3052
- function yn(e) {
3076
+ function xn(e) {
3053
3077
  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;
3054
3078
  }
3055
- function Ut(e) {
3079
+ function Gt(e) {
3056
3080
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3057
3081
  }
3058
- function xn(e) {
3082
+ function vn(e) {
3059
3083
  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;
3060
3084
  }
3061
3085
  function ke(e) {
3062
3086
  e.forEach(function(t) {
3063
- if (delete t.location, Nt(t) || Pt(t))
3087
+ if (delete t.location, Ot(t) || It(t))
3064
3088
  for (var r in t.options)
3065
3089
  delete t.options[r].location, ke(t.options[r].value);
3066
- else At(t) && It(t.style) || (Tt(t) || Bt(t)) && De(t.style) ? delete t.style.location : Ot(t) && ke(t.children);
3090
+ else
3091
+ Bt(t) && Lt(t.style) || (Nt(t) || Pt(t)) && De(t.style) ? delete t.style.location : Ct(t) && ke(t.children);
3067
3092
  });
3068
3093
  }
3069
- function vn(e, t) {
3094
+ function En(e, t) {
3070
3095
  t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3071
- var r = new bn(e, t).parse();
3096
+ var r = new gn(e, t).parse();
3072
3097
  if (r.err) {
3073
- var n = SyntaxError(g[r.err.kind]);
3098
+ var n = SyntaxError(b[r.err.kind]);
3074
3099
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3075
3100
  }
3076
3101
  return t?.captureLocation || ke(r.val), r.val;
3077
3102
  }
3078
- var K;
3103
+ var ee;
3079
3104
  (function(e) {
3080
3105
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3081
- })(K || (K = {}));
3106
+ })(ee || (ee = {}));
3082
3107
  var _e = (
3083
3108
  /** @class */
3084
3109
  function(e) {
@@ -3091,152 +3116,152 @@ var _e = (
3091
3116
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3092
3117
  }, t;
3093
3118
  }(Error)
3094
- ), ut = (
3119
+ ), ct = (
3095
3120
  /** @class */
3096
3121
  function(e) {
3097
3122
  Ee(t, e);
3098
3123
  function t(r, n, i, o) {
3099
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), K.INVALID_VALUE, o) || this;
3124
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
3100
3125
  }
3101
3126
  return t;
3102
3127
  }(_e)
3103
- ), En = (
3128
+ ), _n = (
3104
3129
  /** @class */
3105
3130
  function(e) {
3106
3131
  Ee(t, e);
3107
3132
  function t(r, n, i) {
3108
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), K.INVALID_VALUE, i) || this;
3133
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
3109
3134
  }
3110
3135
  return t;
3111
3136
  }(_e)
3112
- ), _n = (
3137
+ ), Sn = (
3113
3138
  /** @class */
3114
3139
  function(e) {
3115
3140
  Ee(t, e);
3116
3141
  function t(r, n) {
3117
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), K.MISSING_VALUE, n) || this;
3142
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
3118
3143
  }
3119
3144
  return t;
3120
3145
  }(_e)
3121
- ), O;
3146
+ ), I;
3122
3147
  (function(e) {
3123
3148
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3124
- })(O || (O = {}));
3125
- function Sn(e) {
3149
+ })(I || (I = {}));
3150
+ function wn(e) {
3126
3151
  return e.length < 2 ? e : e.reduce(function(t, r) {
3127
3152
  var n = t[t.length - 1];
3128
- return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
3153
+ return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
3129
3154
  }, []);
3130
3155
  }
3131
- function wn(e) {
3156
+ function Hn(e) {
3132
3157
  return typeof e == "function";
3133
3158
  }
3134
3159
  function de(e, t, r, n, i, o, s) {
3135
- if (e.length === 1 && rt(e[0]))
3160
+ if (e.length === 1 && it(e[0]))
3136
3161
  return [
3137
3162
  {
3138
- type: O.literal,
3163
+ type: I.literal,
3139
3164
  value: e[0].value
3140
3165
  }
3141
3166
  ];
3142
3167
  for (var a = [], h = 0, l = e; h < l.length; h++) {
3143
3168
  var u = l[h];
3144
- if (rt(u)) {
3169
+ if (it(u)) {
3145
3170
  a.push({
3146
- type: O.literal,
3171
+ type: I.literal,
3147
3172
  value: u.value
3148
3173
  });
3149
3174
  continue;
3150
3175
  }
3151
- if (zr(u)) {
3176
+ if (Xr(u)) {
3152
3177
  typeof o == "number" && a.push({
3153
- type: O.literal,
3178
+ type: I.literal,
3154
3179
  value: r.getNumberFormat(t).format(o)
3155
3180
  });
3156
3181
  continue;
3157
3182
  }
3158
3183
  var c = u.value;
3159
3184
  if (!(i && c in i))
3160
- throw new _n(c, s);
3185
+ throw new Sn(c, s);
3161
3186
  var f = i[c];
3162
- if (Vr(u)) {
3187
+ if (zr(u)) {
3163
3188
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3164
- type: typeof f == "string" ? O.literal : O.object,
3189
+ type: typeof f == "string" ? I.literal : I.object,
3165
3190
  value: f
3166
3191
  });
3167
3192
  continue;
3168
3193
  }
3169
- if (Tt(u)) {
3194
+ if (Nt(u)) {
3170
3195
  var p = typeof u.style == "string" ? n.date[u.style] : De(u.style) ? u.style.parsedOptions : void 0;
3171
3196
  a.push({
3172
- type: O.literal,
3197
+ type: I.literal,
3173
3198
  value: r.getDateTimeFormat(t, p).format(f)
3174
3199
  });
3175
3200
  continue;
3176
3201
  }
3177
- if (Bt(u)) {
3202
+ if (Pt(u)) {
3178
3203
  var p = typeof u.style == "string" ? n.time[u.style] : De(u.style) ? u.style.parsedOptions : n.time.medium;
3179
3204
  a.push({
3180
- type: O.literal,
3205
+ type: I.literal,
3181
3206
  value: r.getDateTimeFormat(t, p).format(f)
3182
3207
  });
3183
3208
  continue;
3184
3209
  }
3185
- if (At(u)) {
3186
- var p = typeof u.style == "string" ? n.number[u.style] : It(u.style) ? u.style.parsedOptions : void 0;
3210
+ if (Bt(u)) {
3211
+ var p = typeof u.style == "string" ? n.number[u.style] : Lt(u.style) ? u.style.parsedOptions : void 0;
3187
3212
  p && p.scale && (f = f * (p.scale || 1)), a.push({
3188
- type: O.literal,
3213
+ type: I.literal,
3189
3214
  value: r.getNumberFormat(t, p).format(f)
3190
3215
  });
3191
3216
  continue;
3192
3217
  }
3193
- if (Ot(u)) {
3194
- var b = u.children, S = u.value, w = i[S];
3195
- if (!wn(w))
3196
- throw new En(S, "function", s);
3197
- var M = de(b, t, r, n, i, o), C = w(M.map(function(A) {
3198
- return A.value;
3218
+ if (Ct(u)) {
3219
+ var g = u.children, E = u.value, N = i[E];
3220
+ if (!Hn(N))
3221
+ throw new _n(E, "function", s);
3222
+ var P = de(g, t, r, n, i, o), M = N(P.map(function(w) {
3223
+ return w.value;
3199
3224
  }));
3200
- Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(A) {
3225
+ Array.isArray(M) || (M = [M]), a.push.apply(a, M.map(function(w) {
3201
3226
  return {
3202
- type: typeof A == "string" ? O.literal : O.object,
3203
- value: A
3227
+ type: typeof w == "string" ? I.literal : I.object,
3228
+ value: w
3204
3229
  };
3205
3230
  }));
3206
3231
  }
3207
- if (Nt(u)) {
3232
+ if (Ot(u)) {
3208
3233
  var B = u.options[f] || u.options.other;
3209
3234
  if (!B)
3210
- throw new ut(u.value, f, Object.keys(u.options), s);
3235
+ throw new ct(u.value, f, Object.keys(u.options), s);
3211
3236
  a.push.apply(a, de(B.value, t, r, n, i));
3212
3237
  continue;
3213
3238
  }
3214
- if (Pt(u)) {
3239
+ if (It(u)) {
3215
3240
  var B = u.options["=".concat(f)];
3216
3241
  if (!B) {
3217
3242
  if (!Intl.PluralRules)
3218
3243
  throw new _e(`Intl.PluralRules is not available in this environment.
3219
3244
  Try polyfilling it using "@formatjs/intl-pluralrules"
3220
- `, K.MISSING_INTL_API, s);
3221
- var I = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
3222
- B = u.options[I] || u.options.other;
3245
+ `, ee.MISSING_INTL_API, s);
3246
+ var C = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
3247
+ B = u.options[C] || u.options.other;
3223
3248
  }
3224
3249
  if (!B)
3225
- throw new ut(u.value, f, Object.keys(u.options), s);
3250
+ throw new ct(u.value, f, Object.keys(u.options), s);
3226
3251
  a.push.apply(a, de(B.value, t, r, n, i, f - (u.offset || 0)));
3227
3252
  continue;
3228
3253
  }
3229
3254
  }
3230
- return Sn(a);
3255
+ return wn(a);
3231
3256
  }
3232
- function Hn(e, t) {
3257
+ function An(e, t) {
3233
3258
  return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3234
3259
  return r[n] = x(x({}, e[n]), t[n] || {}), r;
3235
3260
  }, {})) : e;
3236
3261
  }
3237
- function An(e, t) {
3262
+ function Tn(e, t) {
3238
3263
  return t ? Object.keys(e).reduce(function(r, n) {
3239
- return r[n] = Hn(e[n], t[n]), r;
3264
+ return r[n] = An(e[n], t[n]), r;
3240
3265
  }, x({}, e)) : e;
3241
3266
  }
3242
3267
  function Oe(e) {
@@ -3253,7 +3278,7 @@ function Oe(e) {
3253
3278
  }
3254
3279
  };
3255
3280
  }
3256
- function Tn(e) {
3281
+ function Bn(e) {
3257
3282
  return e === void 0 && (e = {
3258
3283
  number: {},
3259
3284
  dateTime: {},
@@ -3285,7 +3310,7 @@ function Tn(e) {
3285
3310
  })
3286
3311
  };
3287
3312
  }
3288
- var Bn = (
3313
+ var Nn = (
3289
3314
  /** @class */
3290
3315
  function() {
3291
3316
  function e(t, r, n, i) {
@@ -3300,7 +3325,7 @@ var Bn = (
3300
3325
  if (l.length === 1)
3301
3326
  return l[0].value;
3302
3327
  var u = l.reduce(function(c, f) {
3303
- return !c.length || f.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3328
+ return !c.length || f.type !== I.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3304
3329
  }, []);
3305
3330
  return u.length <= 1 ? u[0] || "" : u;
3306
3331
  }, this.formatToParts = function(h) {
@@ -3317,13 +3342,13 @@ var Bn = (
3317
3342
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3318
3343
  var s = i || {};
3319
3344
  s.formatters;
3320
- var a = Rr(s, ["formatters"]);
3345
+ var a = Dr(s, ["formatters"]);
3321
3346
  this.ast = e.__parse(t, x(x({}, a), { locale: this.resolvedLocale }));
3322
3347
  } else
3323
3348
  this.ast = t;
3324
3349
  if (!Array.isArray(this.ast))
3325
3350
  throw new TypeError("A message must be provided as a String or AST.");
3326
- this.formats = An(e.formats, n), this.formatters = i && i.formatters || Tn(this.formatterCache);
3351
+ this.formats = Tn(e.formats, n), this.formatters = i && i.formatters || Bn(this.formatterCache);
3327
3352
  }
3328
3353
  return Object.defineProperty(e, "defaultLocale", {
3329
3354
  get: function() {
@@ -3336,7 +3361,7 @@ var Bn = (
3336
3361
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3337
3362
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3338
3363
  }
3339
- }, e.__parse = vn, e.formats = {
3364
+ }, e.__parse = En, e.formats = {
3340
3365
  number: {
3341
3366
  integer: {
3342
3367
  maximumFractionDigits: 0
@@ -3397,7 +3422,7 @@ var Bn = (
3397
3422
  }, e;
3398
3423
  }()
3399
3424
  );
3400
- function Nn(e, t) {
3425
+ function Pn(e, t) {
3401
3426
  if (t == null)
3402
3427
  return;
3403
3428
  if (t in e)
@@ -3418,60 +3443,60 @@ function Nn(e, t) {
3418
3443
  n = void 0;
3419
3444
  return n;
3420
3445
  }
3421
- const G = {}, Pn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Ft = (e, t) => {
3446
+ const G = {}, On = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), jt = (e, t) => {
3422
3447
  if (t == null)
3423
3448
  return;
3424
3449
  if (t in G && e in G[t])
3425
3450
  return G[t][e];
3426
3451
  const r = Se(t);
3427
3452
  for (let n = 0; n < r.length; n++) {
3428
- const i = r[n], o = In(i, e);
3453
+ const i = r[n], o = Cn(i, e);
3429
3454
  if (o)
3430
- return Pn(e, t, o);
3455
+ return On(e, t, o);
3431
3456
  }
3432
3457
  };
3433
- let Ze;
3434
- const re = ve({});
3435
- function On(e) {
3436
- return Ze[e] || null;
3458
+ let Je;
3459
+ const ne = ve({});
3460
+ function In(e) {
3461
+ return Je[e] || null;
3437
3462
  }
3438
- function Gt(e) {
3439
- return e in Ze;
3463
+ function kt(e) {
3464
+ return e in Je;
3440
3465
  }
3441
- function In(e, t) {
3442
- if (!Gt(e))
3466
+ function Cn(e, t) {
3467
+ if (!kt(e))
3443
3468
  return null;
3444
- const r = On(e);
3445
- return Nn(r, t);
3469
+ const r = In(e);
3470
+ return Pn(r, t);
3446
3471
  }
3447
- function Cn(e) {
3472
+ function Ln(e) {
3448
3473
  if (e == null)
3449
3474
  return;
3450
3475
  const t = Se(e);
3451
3476
  for (let r = 0; r < t.length; r++) {
3452
3477
  const n = t[r];
3453
- if (Gt(n))
3478
+ if (kt(n))
3454
3479
  return n;
3455
3480
  }
3456
3481
  }
3457
- function jt(e, ...t) {
3458
- delete G[e], re.update((r) => (r[e] = Mr.all([r[e] || {}, ...t]), r));
3482
+ function Vt(e, ...t) {
3483
+ delete G[e], ne.update((r) => (r[e] = $r.all([r[e] || {}, ...t]), r));
3459
3484
  }
3460
- te(
3461
- [re],
3485
+ re(
3486
+ [ne],
3462
3487
  ([e]) => Object.keys(e)
3463
3488
  );
3464
- re.subscribe((e) => Ze = e);
3489
+ ne.subscribe((e) => Je = e);
3465
3490
  const be = {};
3466
- function Ln(e, t) {
3491
+ function Mn(e, t) {
3467
3492
  be[e].delete(t), be[e].size === 0 && delete be[e];
3468
3493
  }
3469
- function kt(e) {
3494
+ function zt(e) {
3470
3495
  return be[e];
3471
3496
  }
3472
- function Mn(e) {
3497
+ function Rn(e) {
3473
3498
  return Se(e).map((t) => {
3474
- const r = kt(t);
3499
+ const r = zt(t);
3475
3500
  return [t, r ? [...r] : []];
3476
3501
  }).filter(([, t]) => t.length > 0);
3477
3502
  }
@@ -3479,31 +3504,31 @@ function Ve(e) {
3479
3504
  return e == null ? !1 : Se(e).some(
3480
3505
  (t) => {
3481
3506
  var r;
3482
- return (r = kt(t)) == null ? void 0 : r.size;
3507
+ return (r = zt(t)) == null ? void 0 : r.size;
3483
3508
  }
3484
3509
  );
3485
3510
  }
3486
- function Rn(e, t) {
3511
+ function $n(e, t) {
3487
3512
  return Promise.all(
3488
- t.map((n) => (Ln(e, n), n().then((i) => i.default || i)))
3489
- ).then((n) => jt(e, ...n));
3513
+ t.map((n) => (Mn(e, n), n().then((i) => i.default || i)))
3514
+ ).then((n) => Vt(e, ...n));
3490
3515
  }
3491
3516
  const oe = {};
3492
- function Vt(e) {
3517
+ function Xt(e) {
3493
3518
  if (!Ve(e))
3494
3519
  return e in oe ? oe[e] : Promise.resolve();
3495
- const t = Mn(e);
3520
+ const t = Rn(e);
3496
3521
  return oe[e] = Promise.all(
3497
3522
  t.map(
3498
- ([r, n]) => Rn(r, n)
3523
+ ([r, n]) => $n(r, n)
3499
3524
  )
3500
3525
  ).then(() => {
3501
3526
  if (Ve(e))
3502
- return Vt(e);
3527
+ return Xt(e);
3503
3528
  delete oe[e];
3504
3529
  }), oe[e];
3505
3530
  }
3506
- const $n = {
3531
+ const Dn = {
3507
3532
  number: {
3508
3533
  scientific: { notation: "scientific" },
3509
3534
  engineering: { notation: "engineering" },
@@ -3532,34 +3557,34 @@ const $n = {
3532
3557
  timeZoneName: "short"
3533
3558
  }
3534
3559
  }
3535
- }, Dn = {
3560
+ }, Un = {
3536
3561
  fallbackLocale: null,
3537
3562
  loadingDelay: 200,
3538
- formats: $n,
3563
+ formats: Dn,
3539
3564
  warnOnMissingMessages: !0,
3540
3565
  handleMissingMessage: void 0,
3541
3566
  ignoreTag: !0
3542
- }, Un = Dn;
3543
- function ee() {
3544
- return Un;
3567
+ }, Fn = Un;
3568
+ function te() {
3569
+ return Fn;
3545
3570
  }
3546
3571
  const Ie = ve(!1);
3547
- var Fn = Object.defineProperty, Gn = Object.defineProperties, jn = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, kn = Object.prototype.hasOwnProperty, Vn = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zn = (e, t) => {
3572
+ var Gn = Object.defineProperty, jn = Object.defineProperties, kn = Object.getOwnPropertyDescriptors, ft = Object.getOwnPropertySymbols, Vn = Object.prototype.hasOwnProperty, zn = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xn = (e, t) => {
3548
3573
  for (var r in t || (t = {}))
3549
- kn.call(t, r) && ct(e, r, t[r]);
3550
- if (ht)
3551
- for (var r of ht(t))
3552
- Vn.call(t, r) && ct(e, r, t[r]);
3574
+ Vn.call(t, r) && mt(e, r, t[r]);
3575
+ if (ft)
3576
+ for (var r of ft(t))
3577
+ zn.call(t, r) && mt(e, r, t[r]);
3553
3578
  return e;
3554
- }, Xn = (e, t) => Gn(e, jn(t));
3579
+ }, Zn = (e, t) => jn(e, kn(t));
3555
3580
  let ze;
3556
3581
  const ge = ve(null);
3557
- function ft(e) {
3582
+ function pt(e) {
3558
3583
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3559
3584
  }
3560
- function Se(e, t = ee().fallbackLocale) {
3561
- const r = ft(e);
3562
- return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
3585
+ function Se(e, t = te().fallbackLocale) {
3586
+ const r = pt(e);
3587
+ return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
3563
3588
  }
3564
3589
  function z() {
3565
3590
  return ze ?? void 0;
@@ -3567,22 +3592,22 @@ function z() {
3567
3592
  ge.subscribe((e) => {
3568
3593
  ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3569
3594
  });
3570
- const Zn = (e) => {
3571
- if (e && Cn(e) && Ve(e)) {
3572
- const { loadingDelay: t } = ee();
3595
+ const Wn = (e) => {
3596
+ if (e && Ln(e) && Ve(e)) {
3597
+ const { loadingDelay: t } = te();
3573
3598
  let r;
3574
3599
  return typeof window < "u" && z() != null && t ? r = window.setTimeout(
3575
3600
  () => Ie.set(!0),
3576
3601
  t
3577
- ) : Ie.set(!0), Vt(e).then(() => {
3602
+ ) : Ie.set(!0), Xt(e).then(() => {
3578
3603
  ge.set(e);
3579
3604
  }).finally(() => {
3580
3605
  clearTimeout(r), Ie.set(!1);
3581
3606
  });
3582
3607
  }
3583
3608
  return ge.set(e);
3584
- }, V = Xn(zn({}, ge), {
3585
- set: Zn
3609
+ }, V = Zn(Xn({}, ge), {
3610
+ set: Wn
3586
3611
  }), we = (e) => {
3587
3612
  const t = /* @__PURE__ */ Object.create(null);
3588
3613
  return (n) => {
@@ -3590,77 +3615,77 @@ const Zn = (e) => {
3590
3615
  return i in t ? t[i] : t[i] = e(n);
3591
3616
  };
3592
3617
  };
3593
- var Wn = Object.defineProperty, ye = Object.getOwnPropertySymbols, zt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
3618
+ var Jn = Object.defineProperty, ye = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Wt = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? Jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
3594
3619
  for (var r in t || (t = {}))
3595
- zt.call(t, r) && mt(e, r, t[r]);
3620
+ Zt.call(t, r) && dt(e, r, t[r]);
3596
3621
  if (ye)
3597
3622
  for (var r of ye(t))
3598
- Xt.call(t, r) && mt(e, r, t[r]);
3623
+ Wt.call(t, r) && dt(e, r, t[r]);
3599
3624
  return e;
3600
- }, ne = (e, t) => {
3625
+ }, ie = (e, t) => {
3601
3626
  var r = {};
3602
3627
  for (var n in e)
3603
- zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3628
+ Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3604
3629
  if (e != null && ye)
3605
3630
  for (var n of ye(e))
3606
- t.indexOf(n) < 0 && Xt.call(e, n) && (r[n] = e[n]);
3631
+ t.indexOf(n) < 0 && Wt.call(e, n) && (r[n] = e[n]);
3607
3632
  return r;
3608
3633
  };
3609
3634
  const ue = (e, t) => {
3610
- const { formats: r } = ee();
3635
+ const { formats: r } = te();
3611
3636
  if (e in r && t in r[e])
3612
3637
  return r[e][t];
3613
3638
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3614
- }, Jn = we(
3639
+ }, Qn = we(
3615
3640
  (e) => {
3616
- var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
3641
+ var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
3617
3642
  if (r == null)
3618
3643
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3619
3644
  return n && (i = ue("number", n)), new Intl.NumberFormat(r, i);
3620
3645
  }
3621
- ), Qn = we(
3646
+ ), qn = we(
3622
3647
  (e) => {
3623
- var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
3648
+ var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
3624
3649
  if (r == null)
3625
3650
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3626
3651
  return n ? i = ue("date", n) : Object.keys(i).length === 0 && (i = ue("date", "short")), new Intl.DateTimeFormat(r, i);
3627
3652
  }
3628
- ), qn = we(
3653
+ ), Yn = we(
3629
3654
  (e) => {
3630
- var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
3655
+ var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
3631
3656
  if (r == null)
3632
3657
  throw new Error(
3633
3658
  '[svelte-i18n] A "locale" must be set to format time values'
3634
3659
  );
3635
3660
  return n ? i = ue("time", n) : Object.keys(i).length === 0 && (i = ue("time", "short")), new Intl.DateTimeFormat(r, i);
3636
3661
  }
3637
- ), Yn = (e = {}) => {
3662
+ ), Kn = (e = {}) => {
3638
3663
  var t = e, {
3639
3664
  locale: r = z()
3640
- } = t, n = ne(t, [
3665
+ } = t, n = ie(t, [
3641
3666
  "locale"
3642
3667
  ]);
3643
- return Jn(We({ locale: r }, n));
3644
- }, Kn = (e = {}) => {
3668
+ return Qn(Qe({ locale: r }, n));
3669
+ }, ei = (e = {}) => {
3645
3670
  var t = e, {
3646
3671
  locale: r = z()
3647
- } = t, n = ne(t, [
3672
+ } = t, n = ie(t, [
3648
3673
  "locale"
3649
3674
  ]);
3650
- return Qn(We({ locale: r }, n));
3651
- }, ei = (e = {}) => {
3675
+ return qn(Qe({ locale: r }, n));
3676
+ }, ti = (e = {}) => {
3652
3677
  var t = e, {
3653
3678
  locale: r = z()
3654
- } = t, n = ne(t, [
3679
+ } = t, n = ie(t, [
3655
3680
  "locale"
3656
3681
  ]);
3657
- return qn(We({ locale: r }, n));
3658
- }, ti = we(
3682
+ return Yn(Qe({ locale: r }, n));
3683
+ }, ri = we(
3659
3684
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3660
- (e, t = z()) => new Bn(e, t, ee().formats, {
3661
- ignoreTag: ee().ignoreTag
3685
+ (e, t = z()) => new Nn(e, t, te().formats, {
3686
+ ignoreTag: te().ignoreTag
3662
3687
  })
3663
- ), ri = (e, t = {}) => {
3688
+ ), ni = (e, t = {}) => {
3664
3689
  var r, n, i, o;
3665
3690
  let s = t;
3666
3691
  typeof e == "object" && (s = e, e = s.id);
@@ -3673,9 +3698,9 @@ const ue = (e, t) => {
3673
3698
  throw new Error(
3674
3699
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3675
3700
  );
3676
- let u = Ft(e, h);
3701
+ let u = jt(e, h);
3677
3702
  if (!u)
3678
- u = (o = (i = (n = (r = ee()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3703
+ u = (o = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3679
3704
  else if (typeof u != "string")
3680
3705
  return console.warn(
3681
3706
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -3684,7 +3709,7 @@ const ue = (e, t) => {
3684
3709
  return u;
3685
3710
  let c = u;
3686
3711
  try {
3687
- c = ti(u, h).format(a);
3712
+ c = ri(u, h).format(a);
3688
3713
  } catch (f) {
3689
3714
  f instanceof Error && console.warn(
3690
3715
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3692,20 +3717,20 @@ const ue = (e, t) => {
3692
3717
  );
3693
3718
  }
3694
3719
  return c;
3695
- }, ni = (e, t) => ei(t).format(e), ii = (e, t) => Kn(t).format(e), oi = (e, t) => Yn(t).format(e), si = (e, t = z()) => Ft(e, t), ai = te([V, re], () => ri);
3696
- te([V], () => ni);
3697
- te([V], () => ii);
3698
- te([V], () => oi);
3699
- te([V, re], () => si);
3700
- function li({ withLocale: e, translations: t }) {
3720
+ }, ii = (e, t) => ti(t).format(e), oi = (e, t) => ei(t).format(e), si = (e, t) => Kn(t).format(e), ai = (e, t = z()) => jt(e, t), li = re([V, ne], () => ni);
3721
+ re([V], () => ii);
3722
+ re([V], () => oi);
3723
+ re([V], () => si);
3724
+ re([V, ne], () => ai);
3725
+ function ui({ withLocale: e, translations: t }) {
3701
3726
  V.subscribe((r) => {
3702
- r == null && (re.set(t), V.set(e));
3727
+ r == null && (ne.set(t), V.set(e));
3703
3728
  });
3704
3729
  }
3705
- function pt(e, t) {
3706
- jt(e, t);
3730
+ function bt(e, t) {
3731
+ Vt(e, t);
3707
3732
  }
3708
- const dt = {
3733
+ const gt = {
3709
3734
  en: {
3710
3735
  sortby: "Sort by:",
3711
3736
  all: "All",
@@ -3833,83 +3858,83 @@ const dt = {
3833
3858
  hottest: "Hottest"
3834
3859
  }
3835
3860
  };
3836
- function ui(e) {
3837
- Jt(e, "svelte-54zse8", ':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.SorterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid var(--emw--color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:14px;height:14px;border-radius:50%;position:absolute;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}.ClearSorters{margin:20px auto;border:0;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearSorters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}@media(max-width: 480px){.SorterSelector{min-height:var(--min-height)}.SorterDropdownContainer{top:var(--min-height)}}');
3861
+ function hi(e) {
3862
+ qt(e, "svelte-54zse8", ':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.SorterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid var(--emw--color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:14px;height:14px;border-radius:50%;position:absolute;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}.ClearSorters{margin:20px auto;border:0;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearSorters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}@media(max-width: 480px){.SorterSelector{min-height:var(--min-height)}.SorterDropdownContainer{top:var(--min-height)}}');
3838
3863
  }
3839
- function bt(e, t, r) {
3864
+ function yt(e, t, r) {
3840
3865
  const n = e.slice();
3841
3866
  return n[23] = t[r], n;
3842
3867
  }
3843
- function hi(e) {
3868
+ function ci(e) {
3844
3869
  let t, r, n, i, o, s, a, h, l, u, c, f = (
3845
3870
  /*$_*/
3846
3871
  e[4]("sortby") + ""
3847
- ), p, b, S, w, M = (
3872
+ ), p, g, E, N, P = (
3848
3873
  /*vendorSortingBy*/
3849
3874
  (e[3] || /*$_*/
3850
3875
  e[4]("all")) + ""
3851
- ), C, B, I, A, L, D, d, N, R, ie, fe, He, Je, X = et(Object.values(
3876
+ ), M, B, C, w, L, D, X, d, H, R, fe, He, qe, Z = rt(Object.values(
3852
3877
  /*vendorMap*/
3853
3878
  e[5]
3854
- )), P = [];
3855
- for (let _ = 0; _ < X.length; _ += 1)
3856
- P[_] = gt(bt(e, X, _));
3879
+ )), O = [];
3880
+ for (let S = 0; S < Z.length; S += 1)
3881
+ O[S] = xt(yt(e, Z, S));
3857
3882
  return {
3858
3883
  c() {
3859
- t = H("div"), r = H("div"), n = H("div"), i = j("svg"), o = j("g"), s = j("path"), a = j("path"), h = j("path"), l = k(), u = H("div"), c = H("span"), p = Ce(f), b = k(), S = H("div"), w = H("span"), C = Ce(M), B = k(), I = H("span"), A = j("svg"), L = j("path"), N = k(), R = H("div"), ie = H("ul");
3860
- for (let _ = 0; _ < P.length; _ += 1)
3861
- P[_].c();
3862
- m(s, "id", "Path_5267"), m(s, "data-name", "Path 5267"), m(s, "d", "M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"), m(s, "transform", "translate(-206.448 0)"), m(s, "fill", "#fff"), m(a, "id", "Path_5268"), m(a, "data-name", "Path 5268"), m(a, "d", "M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"), m(a, "transform", "translate(0 0)"), m(a, "fill", "#fff"), m(h, "id", "Path_5269"), m(h, "data-name", "Path 5269"), m(h, "d", "M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"), m(h, "transform", "translate(-412.896 0)"), m(h, "fill", "#fff"), m(o, "id", "sortby"), m(o, "transform", "translate(-306 -342)"), m(i, "xmlns", "http://www.w3.org/2000/svg"), m(i, "width", "20"), m(i, "height", "20"), m(i, "viewBox", "0 0 26.003 22.819"), m(c, "class", "SorterName"), m(S, "class", "SorterValueContainer"), m(u, "class", "SorterTextContainer"), m(n, "class", "SorterMainArea"), m(L, "id", "arrow"), m(L, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), m(L, "transform", "translate(-274.511 -441.088)"), m(L, "fill", "#d1d1d1"), m(A, "xmlns", "http://www.w3.org/2000/svg"), m(A, "width", "14"), m(A, "height", "6.835"), m(A, "viewBox", "0 0 14 6.835"), m(I, "class", D = "TriangleInactive " + /*isSorterActive*/
3863
- (e[1] ? "TriangleActive" : "")), m(r, "class", d = "SorterSelector " + /*isSorterActive*/
3864
- (e[1] ? "SorterSelectorOpen" : "")), m(ie, "class", "SorterDropdown"), m(R, "class", fe = "SorterDropdownContainer " + /*isSorterActive*/
3884
+ t = A("div"), r = A("div"), n = A("div"), i = j("svg"), o = j("g"), s = j("path"), a = j("path"), h = j("path"), l = k(), u = A("div"), c = A("span"), p = Ce(f), g = k(), E = A("div"), N = A("span"), M = Ce(P), B = k(), C = A("span"), w = j("svg"), L = j("path"), d = k(), H = A("div"), R = A("ul");
3885
+ for (let S = 0; S < O.length; S += 1)
3886
+ O[S].c();
3887
+ m(s, "id", "Path_5267"), m(s, "data-name", "Path 5267"), m(s, "d", "M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"), m(s, "transform", "translate(-206.448 0)"), m(s, "fill", "#fff"), m(a, "id", "Path_5268"), m(a, "data-name", "Path 5268"), m(a, "d", "M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"), m(a, "transform", "translate(0 0)"), m(a, "fill", "#fff"), m(h, "id", "Path_5269"), m(h, "data-name", "Path 5269"), m(h, "d", "M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"), m(h, "transform", "translate(-412.896 0)"), m(h, "fill", "#fff"), m(o, "id", "sortby"), m(o, "transform", "translate(-306 -342)"), m(i, "xmlns", "http://www.w3.org/2000/svg"), m(i, "width", "20"), m(i, "height", "20"), m(i, "viewBox", "0 0 26.003 22.819"), m(c, "class", "SorterName"), m(E, "class", "SorterValueContainer"), m(u, "class", "SorterTextContainer"), m(n, "class", "SorterMainArea"), m(L, "id", "arrow"), m(L, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), m(L, "transform", "translate(-274.511 -441.088)"), m(L, "fill", "#d1d1d1"), m(w, "xmlns", "http://www.w3.org/2000/svg"), m(w, "width", "14"), m(w, "height", "6.835"), m(w, "viewBox", "0 0 14 6.835"), m(C, "class", D = "TriangleInactive " + /*isSorterActive*/
3888
+ (e[1] ? "TriangleActive" : "")), m(r, "class", X = "SorterSelector " + /*isSorterActive*/
3889
+ (e[1] ? "SorterSelectorOpen" : "")), m(R, "class", "SorterDropdown"), m(H, "class", fe = "SorterDropdownContainer " + /*isSorterActive*/
3865
3890
  (e[1] ? "SorterOpen" : "")), m(t, "class", "SorterContainer");
3866
3891
  },
3867
- m(_, U) {
3868
- xe(_, t, U), v(t, r), v(r, n), v(n, i), v(i, o), v(o, s), v(o, a), v(o, h), v(n, l), v(n, u), v(u, c), v(c, p), v(u, b), v(u, S), v(S, w), v(w, C), v(r, B), v(r, I), v(I, A), v(A, L), v(t, N), v(t, R), v(R, ie);
3869
- for (let T = 0; T < P.length; T += 1)
3870
- P[T] && P[T].m(ie, null);
3871
- He || (Je = Et(
3892
+ m(S, U) {
3893
+ xe(S, t, U), v(t, r), v(r, n), v(n, i), v(i, o), v(o, s), v(o, a), v(o, h), v(n, l), v(n, u), v(u, c), v(c, p), v(u, g), v(u, E), v(E, N), v(N, M), v(r, B), v(r, C), v(C, w), v(w, L), v(t, d), v(t, H), v(H, R);
3894
+ for (let T = 0; T < O.length; T += 1)
3895
+ O[T] && O[T].m(R, null);
3896
+ He || (qe = St(
3872
3897
  r,
3873
3898
  "click",
3874
3899
  /*click_handler*/
3875
3900
  e[14]
3876
3901
  ), He = !0);
3877
3902
  },
3878
- p(_, U) {
3903
+ p(S, U) {
3879
3904
  if (U & /*$_*/
3880
3905
  16 && f !== (f = /*$_*/
3881
- _[4]("sortby") + "") && Ye(p, f), U & /*vendorSortingBy, $_*/
3882
- 24 && M !== (M = /*vendorSortingBy*/
3883
- (_[3] || /*$_*/
3884
- _[4]("all")) + "") && Ye(C, M), U & /*isSorterActive*/
3906
+ S[4]("sortby") + "") && et(p, f), U & /*vendorSortingBy, $_*/
3907
+ 24 && P !== (P = /*vendorSortingBy*/
3908
+ (S[3] || /*$_*/
3909
+ S[4]("all")) + "") && et(M, P), U & /*isSorterActive*/
3885
3910
  2 && D !== (D = "TriangleInactive " + /*isSorterActive*/
3886
- (_[1] ? "TriangleActive" : "")) && m(I, "class", D), U & /*isSorterActive*/
3887
- 2 && d !== (d = "SorterSelector " + /*isSorterActive*/
3888
- (_[1] ? "SorterSelectorOpen" : "")) && m(r, "class", d), U & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
3911
+ (S[1] ? "TriangleActive" : "")) && m(C, "class", D), U & /*isSorterActive*/
3912
+ 2 && X !== (X = "SorterSelector " + /*isSorterActive*/
3913
+ (S[1] ? "SorterSelectorOpen" : "")) && m(r, "class", X), U & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
3889
3914
  120) {
3890
- X = et(Object.values(
3915
+ Z = rt(Object.values(
3891
3916
  /*vendorMap*/
3892
- _[5]
3917
+ S[5]
3893
3918
  ));
3894
3919
  let T;
3895
- for (T = 0; T < X.length; T += 1) {
3896
- const Qe = bt(_, X, T);
3897
- P[T] ? P[T].p(Qe, U) : (P[T] = gt(Qe), P[T].c(), P[T].m(ie, null));
3920
+ for (T = 0; T < Z.length; T += 1) {
3921
+ const Ye = yt(S, Z, T);
3922
+ O[T] ? O[T].p(Ye, U) : (O[T] = xt(Ye), O[T].c(), O[T].m(R, null));
3898
3923
  }
3899
- for (; T < P.length; T += 1)
3900
- P[T].d(1);
3901
- P.length = X.length;
3924
+ for (; T < O.length; T += 1)
3925
+ O[T].d(1);
3926
+ O.length = Z.length;
3902
3927
  }
3903
3928
  U & /*isSorterActive*/
3904
3929
  2 && fe !== (fe = "SorterDropdownContainer " + /*isSorterActive*/
3905
- (_[1] ? "SorterOpen" : "")) && m(R, "class", fe);
3930
+ (S[1] ? "SorterOpen" : "")) && m(H, "class", fe);
3906
3931
  },
3907
- d(_) {
3908
- _ && ce(t), Yt(P, _), He = !1, Je();
3932
+ d(S) {
3933
+ S && ce(t), er(O, S), He = !1, qe();
3909
3934
  }
3910
3935
  };
3911
3936
  }
3912
- function gt(e) {
3937
+ function xt(e) {
3913
3938
  let t, r, n, i, o, s, a, h, l, u, c;
3914
3939
  function f() {
3915
3940
  return (
@@ -3922,7 +3947,7 @@ function gt(e) {
3922
3947
  }
3923
3948
  return {
3924
3949
  c() {
3925
- t = H("li"), r = H("label"), n = H("input"), o = k(), s = H("span"), a = k(), h = H("span"), h.textContent = `${/*sort*/
3950
+ t = A("li"), r = A("label"), n = A("input"), o = k(), s = A("span"), a = k(), h = A("span"), h.textContent = `${/*sort*/
3926
3951
  e[23]}`, l = k(), m(n, "type", "radio"), m(n, "name", "radio"), n.value = /*sort*/
3927
3952
  e[23], n.checked = i = /*vendorSortingBy*/
3928
3953
  e[3] == /*sort*/
@@ -3934,11 +3959,11 @@ function gt(e) {
3934
3959
  ), m(s, "class", "SortersCheckmark"), m(r, "class", "SorterLabel CustomRadioButton"), m(t, "class", "SorterItem"), t.value = /*sort*/
3935
3960
  e[23];
3936
3961
  },
3937
- m(p, b) {
3938
- xe(p, t, b), v(t, r), v(r, n), v(r, o), v(r, s), v(r, a), v(r, h), v(t, l), u || (c = Et(n, "click", f), u = !0);
3962
+ m(p, g) {
3963
+ xe(p, t, g), v(t, r), v(r, n), v(r, o), v(r, s), v(r, a), v(r, h), v(t, l), u || (c = St(n, "click", f), u = !0);
3939
3964
  },
3940
- p(p, b) {
3941
- e = p, b & /*vendorSortingBy, $_*/
3965
+ p(p, g) {
3966
+ e = p, g & /*vendorSortingBy, $_*/
3942
3967
  24 && i !== (i = /*vendorSortingBy*/
3943
3968
  e[3] == /*sort*/
3944
3969
  e[23] ? !0 : (
@@ -3953,16 +3978,17 @@ function gt(e) {
3953
3978
  }
3954
3979
  };
3955
3980
  }
3956
- function ci(e) {
3981
+ function fi(e) {
3957
3982
  let t;
3958
3983
  function r(o, s) {
3959
3984
  if (!/*isLoading*/
3960
- o[2]) return hi;
3985
+ o[2])
3986
+ return ci;
3961
3987
  }
3962
3988
  let n = r(e), i = n && n(e);
3963
3989
  return {
3964
3990
  c() {
3965
- t = H("div"), i && i.c();
3991
+ t = A("div"), i && i.c();
3966
3992
  },
3967
3993
  m(o, s) {
3968
3994
  xe(o, t, s), i && i.m(t, null), e[16](t);
@@ -3977,61 +4003,61 @@ function ci(e) {
3977
4003
  }
3978
4004
  };
3979
4005
  }
3980
- function fi(e, t, r) {
4006
+ function mi(e, t, r) {
3981
4007
  let n;
3982
- Wt(e, ai, (d) => r(4, n = d));
3983
- let { lang: i = "" } = t, { translationurl: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { categoryid: h = "" } = t, { mbsource: l } = t, u, c = !1, f = !0, p = "", b = "All";
3984
- li({ withLocale: "en", translations: {} });
3985
- const S = () => {
3986
- fetch(o).then((N) => N.json()).then((N) => {
3987
- Object.keys(N).forEach((R) => {
3988
- pt(R, N[R]);
4008
+ Qt(e, li, (d) => r(4, n = d));
4009
+ let { lang: i = "" } = t, { translationurl: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { categoryid: h = "" } = t, { mbsource: l } = t, u, c, f = !1, p = !0, g = "", E = "All";
4010
+ ui({ withLocale: "en", translations: {} });
4011
+ const N = () => {
4012
+ fetch(o).then((H) => H.json()).then((H) => {
4013
+ Object.keys(H).forEach((R) => {
4014
+ bt(R, H[R]);
3989
4015
  });
3990
- }).catch((N) => {
3991
- console.log(N);
4016
+ }).catch((H) => {
4017
+ console.log(H);
3992
4018
  });
3993
4019
  };
3994
- Object.keys(dt).forEach((d) => {
3995
- pt(d, dt[d]);
4020
+ Object.keys(gt).forEach((d) => {
4021
+ bt(d, gt[d]);
3996
4022
  });
3997
- const w = {
4023
+ const P = {
3998
4024
  All: n("all"),
3999
4025
  name: n("az"),
4000
4026
  isNew: n("newest"),
4001
4027
  "advancedTags(name(hot))": n("hottest")
4002
4028
  }, M = () => {
4003
- r(3, b = "All"), r(2, f = !1), r(1, c = !1);
4029
+ r(3, E = "All"), r(2, p = !1), r(1, f = !1);
4004
4030
  let d = JSON.parse(localStorage.getItem("vendorSortingBy"))?.[h];
4005
- d ? r(3, b = d) : r(3, b = "All"), r(3, b = w[d]);
4006
- }, C = (d) => {
4007
- r(3, b = d);
4008
- let N = localStorage.getItem("vendorSortingBy");
4009
- p = d;
4010
- for (let R in w)
4011
- if (w[R] === d) {
4012
- p = R;
4031
+ d ? r(3, E = d) : r(3, E = "All"), r(3, E = P[d]);
4032
+ }, B = (d) => {
4033
+ r(3, E = d);
4034
+ let H = localStorage.getItem("vendorSortingBy");
4035
+ g = d;
4036
+ for (let R in P)
4037
+ if (P[R] === d) {
4038
+ g = R;
4013
4039
  break;
4014
4040
  }
4015
- N == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [h]: p })) : (N = JSON.parse(N), N[h] = p, localStorage.setItem("vendorSortingBy", JSON.stringify(N))), window.postMessage(
4041
+ H == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [h]: g })) : (H = JSON.parse(H), H[h] = g, localStorage.setItem("vendorSortingBy", JSON.stringify(H))), window.postMessage(
4016
4042
  {
4017
4043
  type: "ApplySorter",
4018
- sortBy: p,
4044
+ sortBy: g,
4019
4045
  itemId: h
4020
4046
  },
4021
4047
  window.location.href
4022
- ), r(1, c = !c);
4023
- }, B = () => {
4024
- r(1, c = !c), window.postMessage({ type: "SortingOpened" }, window.location.href);
4025
- }, I = (d) => {
4026
- d.data.type == "FilterOpened" && r(1, c = !1);
4048
+ ), r(1, f = !f);
4049
+ }, C = () => {
4050
+ r(1, f = !f), window.postMessage({ type: "SortingOpened" }, window.location.href);
4051
+ }, w = (d) => {
4052
+ d.data.type == "FilterOpened" && r(1, f = !1);
4027
4053
  };
4028
- rr(() => (window.addEventListener("message", I, !1), () => {
4029
- window.removeEventListener("message", I);
4054
+ ir(() => (window.addEventListener("message", w, !1), () => {
4055
+ window.emMessageBus != null && u && u.unsubscribe(), window.removeEventListener("message", w);
4030
4056
  }));
4031
- const A = () => B(), L = (d) => C(d);
4032
- function D(d) {
4057
+ const L = () => C(), D = (d) => B(d);
4058
+ function X(d) {
4033
4059
  Le[d ? "unshift" : "push"](() => {
4034
- u = d, r(0, u);
4060
+ c = d, r(0, c);
4035
4061
  });
4036
4062
  }
4037
4063
  return e.$$set = (d) => {
@@ -4039,38 +4065,38 @@ function fi(e, t, r) {
4039
4065
  }, e.$$.update = () => {
4040
4066
  e.$$.dirty & /*categoryid*/
4041
4067
  4096 && h && M(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4042
- 1025 && s && u && br(u, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4043
- 2049 && a && u && gr(u, a), e.$$.dirty & /*customStylingContainer, mbsource*/
4044
- 8193 && u && yr(u, `${l}.Style`), e.$$.dirty & /*translationurl*/
4045
- 512 && o && S();
4068
+ 1025 && s && c && yr(c, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4069
+ 2049 && a && c && xr(c, a), e.$$.dirty & /*customStylingContainer, mbsource*/
4070
+ 8193 && c && vr(c, `${l}.Style`), e.$$.dirty & /*translationurl*/
4071
+ 512 && o && N();
4046
4072
  }, [
4047
- u,
4048
4073
  c,
4049
4074
  f,
4050
- b,
4075
+ p,
4076
+ E,
4051
4077
  n,
4052
- w,
4053
- C,
4078
+ P,
4054
4079
  B,
4080
+ C,
4055
4081
  i,
4056
4082
  o,
4057
4083
  s,
4058
4084
  a,
4059
4085
  h,
4060
4086
  l,
4061
- A,
4062
4087
  L,
4063
- D
4088
+ D,
4089
+ X
4064
4090
  ];
4065
4091
  }
4066
- class mi extends pr {
4092
+ class pi extends br {
4067
4093
  constructor(t) {
4068
- super(), fr(
4094
+ super(), pr(
4069
4095
  this,
4070
4096
  t,
4097
+ mi,
4071
4098
  fi,
4072
- ci,
4073
- xt,
4099
+ Et,
4074
4100
  {
4075
4101
  lang: 8,
4076
4102
  translationurl: 9,
@@ -4079,7 +4105,7 @@ class mi extends pr {
4079
4105
  categoryid: 12,
4080
4106
  mbsource: 13
4081
4107
  },
4082
- ui
4108
+ hi
4083
4109
  );
4084
4110
  }
4085
4111
  get lang() {
@@ -4119,7 +4145,7 @@ class mi extends pr {
4119
4145
  this.$$set({ mbsource: t }), F();
4120
4146
  }
4121
4147
  }
4122
- mr(mi, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, mbsource: {} }, [], [], !0);
4148
+ dr(pi, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, mbsource: {} }, [], [], !0);
4123
4149
  export {
4124
- mi as C
4150
+ pi as C
4125
4151
  };