@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,53 +1,53 @@
1
- var Kt = Object.defineProperty, er = Object.defineProperties;
2
- var tr = Object.getOwnPropertyDescriptors;
3
- var Ke = Object.getOwnPropertySymbols;
4
- var rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable;
5
- var Te = (e, t, r) => t in e ? Kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
1
+ var tr = Object.defineProperty, rr = Object.defineProperties;
2
+ var nr = Object.getOwnPropertyDescriptors;
3
+ var tt = Object.getOwnPropertySymbols;
4
+ var ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable;
5
+ var Te = (e, t, r) => t in e ? tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- rr.call(t, r) && Te(e, r, t[r]);
8
- if (Ke)
9
- for (var r of Ke(t))
10
- nr.call(t, r) && Te(e, r, t[r]);
7
+ ir.call(t, r) && Te(e, r, t[r]);
8
+ if (tt)
9
+ for (var r of tt(t))
10
+ or.call(t, r) && Te(e, r, t[r]);
11
11
  return e;
12
- }, tt = (e, t) => er(e, tr(t));
13
- var R = (e, t, r) => Te(e, typeof t != "symbol" ? t + "" : t, r);
14
- var rt = (e, t, r) => new Promise((n, i) => {
15
- var o = (h) => {
12
+ }, nt = (e, t) => rr(e, nr(t));
13
+ var R = (e, t, r) => (Te(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var it = (e, t, r) => new Promise((n, i) => {
15
+ var o = (u) => {
16
16
  try {
17
- a(r.next(h));
17
+ a(r.next(u));
18
18
  } catch (l) {
19
19
  i(l);
20
20
  }
21
- }, s = (h) => {
21
+ }, s = (u) => {
22
22
  try {
23
- a(r.throw(h));
23
+ a(r.throw(u));
24
24
  } catch (l) {
25
25
  i(l);
26
26
  }
27
- }, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
27
+ }, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
28
28
  a((r = r.apply(e, t)).next());
29
29
  });
30
30
  function D() {
31
31
  }
32
- function wt(e) {
32
+ function At(e) {
33
33
  return e();
34
34
  }
35
- function nt() {
35
+ function ot() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
38
  function ce(e) {
39
- e.forEach(wt);
39
+ e.forEach(At);
40
40
  }
41
41
  function We(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function Ht(e, t) {
44
+ function Tt(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function ir(e) {
47
+ function sr(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function At(e, ...t) {
50
+ function Bt(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const n of t)
53
53
  n(void 0);
@@ -56,21 +56,22 @@ function At(e, ...t) {
56
56
  const r = e.subscribe(...t);
57
57
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
58
  }
59
- function or(e, t, r) {
60
- e.$$.on_destroy.push(At(t, r));
59
+ function ar(e, t, r) {
60
+ e.$$.on_destroy.push(Bt(t, r));
61
61
  }
62
62
  function v(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
- function sr(e, t, r) {
66
- const n = ar(e);
65
+ function lr(e, t, r) {
66
+ const n = ur(e);
67
67
  if (!n.getElementById(t)) {
68
68
  const i = A("style");
69
- i.id = t, i.textContent = r, lr(n, i);
69
+ i.id = t, i.textContent = r, hr(n, i);
70
70
  }
71
71
  }
72
- function ar(e) {
73
- if (!e) return document;
72
+ function ur(e) {
73
+ if (!e)
74
+ return document;
74
75
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
75
76
  return t && /** @type {ShadowRoot} */
76
77
  t.host ? (
@@ -78,7 +79,7 @@ function ar(e) {
78
79
  t
79
80
  ) : e.ownerDocument;
80
81
  }
81
- function lr(e, t) {
82
+ function hr(e, t) {
82
83
  return v(
83
84
  /** @type {Document} */
84
85
  e.head || e,
@@ -91,7 +92,7 @@ function ve(e, t, r) {
91
92
  function fe(e) {
92
93
  e.parentNode && e.parentNode.removeChild(e);
93
94
  }
94
- function ur(e, t) {
95
+ function cr(e, t) {
95
96
  for (let r = 0; r < e.length; r += 1)
96
97
  e[r] && e[r].d(t);
97
98
  }
@@ -107,20 +108,20 @@ function Me(e) {
107
108
  function V() {
108
109
  return Me(" ");
109
110
  }
110
- function Tt(e, t, r, n) {
111
+ function Nt(e, t, r, n) {
111
112
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
112
113
  }
113
114
  function m(e, t, r) {
114
115
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
115
116
  }
116
- function hr(e) {
117
+ function fr(e) {
117
118
  return Array.from(e.childNodes);
118
119
  }
119
- function it(e, t) {
120
+ function st(e, t) {
120
121
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
121
122
  t);
122
123
  }
123
- function cr(e) {
124
+ function mr(e) {
124
125
  const t = {};
125
126
  return e.childNodes.forEach(
126
127
  /** @param {Element} node */
@@ -133,83 +134,85 @@ let le;
133
134
  function ae(e) {
134
135
  le = e;
135
136
  }
136
- function fr() {
137
- if (!le) throw new Error("Function called outside component initialization");
137
+ function pr() {
138
+ if (!le)
139
+ throw new Error("Function called outside component initialization");
138
140
  return le;
139
141
  }
140
- function mr(e) {
141
- fr().$$.on_mount.push(e);
142
+ function dr(e) {
143
+ pr().$$.on_mount.push(e);
142
144
  }
143
- const Q = [], Re = [];
144
- let q = [];
145
- const ot = [], pr = /* @__PURE__ */ Promise.resolve();
145
+ const q = [], Re = [];
146
+ let Y = [];
147
+ const at = [], br = /* @__PURE__ */ Promise.resolve();
146
148
  let $e = !1;
147
- function dr() {
148
- $e || ($e = !0, pr.then(G));
149
+ function gr() {
150
+ $e || ($e = !0, br.then(G));
149
151
  }
150
152
  function De(e) {
151
- q.push(e);
153
+ Y.push(e);
152
154
  }
153
155
  const Be = /* @__PURE__ */ new Set();
154
- let W = 0;
156
+ let J = 0;
155
157
  function G() {
156
- if (W !== 0)
158
+ if (J !== 0)
157
159
  return;
158
160
  const e = le;
159
161
  do {
160
162
  try {
161
- for (; W < Q.length; ) {
162
- const t = Q[W];
163
- W++, ae(t), br(t.$$);
163
+ for (; J < q.length; ) {
164
+ const t = q[J];
165
+ J++, ae(t), yr(t.$$);
164
166
  }
165
167
  } catch (t) {
166
- throw Q.length = 0, W = 0, t;
168
+ throw q.length = 0, J = 0, t;
167
169
  }
168
- for (ae(null), Q.length = 0, W = 0; Re.length; ) Re.pop()();
169
- for (let t = 0; t < q.length; t += 1) {
170
- const r = q[t];
170
+ for (ae(null), q.length = 0, J = 0; Re.length; )
171
+ Re.pop()();
172
+ for (let t = 0; t < Y.length; t += 1) {
173
+ const r = Y[t];
171
174
  Be.has(r) || (Be.add(r), r());
172
175
  }
173
- q.length = 0;
174
- } while (Q.length);
175
- for (; ot.length; )
176
- ot.pop()();
176
+ Y.length = 0;
177
+ } while (q.length);
178
+ for (; at.length; )
179
+ at.pop()();
177
180
  $e = !1, Be.clear(), ae(e);
178
181
  }
179
- function br(e) {
182
+ function yr(e) {
180
183
  if (e.fragment !== null) {
181
184
  e.update(), ce(e.before_update);
182
185
  const t = e.dirty;
183
186
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(De);
184
187
  }
185
188
  }
186
- function gr(e) {
189
+ function xr(e) {
187
190
  const t = [], r = [];
188
- q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
191
+ Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
189
192
  }
190
- const yr = /* @__PURE__ */ new Set();
191
- function xr(e, t) {
192
- e && e.i && (yr.delete(e), e.i(t));
193
+ const vr = /* @__PURE__ */ new Set();
194
+ function Er(e, t) {
195
+ e && e.i && (vr.delete(e), e.i(t));
193
196
  }
194
- function st(e) {
197
+ function lt(e) {
195
198
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
196
199
  }
197
- function vr(e, t, r) {
200
+ function _r(e, t, r) {
198
201
  const { fragment: n, after_update: i } = e.$$;
199
202
  n && n.m(t, r), De(() => {
200
- const o = e.$$.on_mount.map(wt).filter(We);
203
+ const o = e.$$.on_mount.map(At).filter(We);
201
204
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ce(o), e.$$.on_mount = [];
202
205
  }), i.forEach(De);
203
206
  }
204
- function Er(e, t) {
207
+ function Sr(e, t) {
205
208
  const r = e.$$;
206
- r.fragment !== null && (gr(r.after_update), ce(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
209
+ r.fragment !== null && (xr(r.after_update), ce(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
207
210
  }
208
- function _r(e, t) {
209
- e.$$.dirty[0] === -1 && (Q.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
211
+ function wr(e, t) {
212
+ e.$$.dirty[0] === -1 && (q.push(e), gr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
210
213
  }
211
- function Sr(e, t, r, n, i, o, s = null, a = [-1]) {
212
- const h = le;
214
+ function Hr(e, t, r, n, i, o, s = null, a = [-1]) {
215
+ const u = le;
213
216
  ae(e);
214
217
  const l = e.$$ = {
215
218
  fragment: null,
@@ -218,37 +221,37 @@ function Sr(e, t, r, n, i, o, s = null, a = [-1]) {
218
221
  props: o,
219
222
  update: D,
220
223
  not_equal: i,
221
- bound: nt(),
224
+ bound: ot(),
222
225
  // lifecycle
223
226
  on_mount: [],
224
227
  on_destroy: [],
225
228
  on_disconnect: [],
226
229
  before_update: [],
227
230
  after_update: [],
228
- context: new Map(t.context || (h ? h.$$.context : [])),
231
+ context: new Map(t.context || (u ? u.$$.context : [])),
229
232
  // everything else
230
- callbacks: nt(),
233
+ callbacks: ot(),
231
234
  dirty: a,
232
235
  skip_bound: !1,
233
- root: t.target || h.$$.root
236
+ root: t.target || u.$$.root
234
237
  };
235
238
  s && s(l.root);
236
- let u = !1;
239
+ let h = !1;
237
240
  if (l.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
238
- const b = p.length ? p[0] : f;
239
- return l.ctx && i(l.ctx[c], l.ctx[c] = b) && (!l.skip_bound && l.bound[c] && l.bound[c](b), u && _r(e, c)), f;
240
- }) : [], l.update(), u = !0, ce(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
241
+ const g = p.length ? p[0] : f;
242
+ return l.ctx && i(l.ctx[c], l.ctx[c] = g) && (!l.skip_bound && l.bound[c] && l.bound[c](g), h && wr(e, c)), f;
243
+ }) : [], l.update(), h = !0, ce(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
241
244
  if (t.hydrate) {
242
- const c = hr(t.target);
245
+ const c = fr(t.target);
243
246
  l.fragment && l.fragment.l(c), c.forEach(fe);
244
247
  } else
245
248
  l.fragment && l.fragment.c();
246
- t.intro && xr(e.$$.fragment), vr(e, t.target, t.anchor), G();
249
+ t.intro && Er(e.$$.fragment), _r(e, t.target, t.anchor), G();
247
250
  }
248
- ae(h);
251
+ ae(u);
249
252
  }
250
- let Bt;
251
- typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
253
+ let Pt;
254
+ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
252
255
  constructor(t, r, n) {
253
256
  super();
254
257
  /** The Svelte component constructor */
@@ -285,7 +288,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
285
288
  }
286
289
  }
287
290
  connectedCallback() {
288
- return rt(this, null, function* () {
291
+ return it(this, null, function* () {
289
292
  if (this.$$cn = !0, !this.$$c) {
290
293
  let t = function(o) {
291
294
  return () => {
@@ -298,8 +301,8 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
298
301
  * @param {HTMLElement} target
299
302
  * @param {HTMLElement} [anchor]
300
303
  */
301
- m: function(l, u) {
302
- ve(l, s, u);
304
+ m: function(l, h) {
305
+ ve(l, s, h);
303
306
  },
304
307
  d: function(l) {
305
308
  l && fe(s);
@@ -309,7 +312,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
309
312
  };
310
313
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
311
314
  return;
312
- const r = {}, n = cr(this);
315
+ const r = {}, n = mr(this);
313
316
  for (const o of this.$$s)
314
317
  o in n && (r[o] = [t(o)]);
315
318
  for (const o of this.attributes) {
@@ -320,7 +323,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
320
323
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
321
324
  this.$$c = new this.$$ctor({
322
325
  target: this.shadowRoot || this,
323
- props: tt(et({}, this.$$d), {
326
+ props: nt(rt({}, this.$$d), {
324
327
  $$slots: r,
325
328
  $$scope: {
326
329
  ctx: []
@@ -398,8 +401,8 @@ function de(e, t, r, n) {
398
401
  return t;
399
402
  }
400
403
  }
401
- function wr(e, t, r, n, i, o) {
402
- let s = class extends Bt {
404
+ function Ar(e, t, r, n, i, o) {
405
+ let s = class extends Pt {
403
406
  constructor() {
404
407
  super(e, r, i), this.$$p_d = t;
405
408
  }
@@ -414,22 +417,22 @@ function wr(e, t, r, n, i, o) {
414
417
  get() {
415
418
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
416
419
  },
417
- set(h) {
420
+ set(u) {
418
421
  var l;
419
- h = de(a, h, t), this.$$d[a] = h, (l = this.$$c) == null || l.$set({ [a]: h });
422
+ u = de(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
420
423
  }
421
424
  });
422
425
  }), n.forEach((a) => {
423
426
  Object.defineProperty(s.prototype, a, {
424
427
  get() {
425
- var h;
426
- return (h = this.$$c) == null ? void 0 : h[a];
428
+ var u;
429
+ return (u = this.$$c) == null ? void 0 : u[a];
427
430
  }
428
431
  });
429
432
  }), e.element = /** @type {any} */
430
433
  s, s;
431
434
  }
432
- class Hr {
435
+ class Tr {
433
436
  constructor() {
434
437
  /**
435
438
  * ### PRIVATE API
@@ -450,7 +453,7 @@ class Hr {
450
453
  }
451
454
  /** @returns {void} */
452
455
  $destroy() {
453
- Er(this, 1), this.$destroy = D;
456
+ Sr(this, 1), this.$destroy = D;
454
457
  }
455
458
  /**
456
459
  * @template {Extract<keyof Events, string>} K
@@ -472,18 +475,18 @@ class Hr {
472
475
  * @returns {void}
473
476
  */
474
477
  $set(t) {
475
- this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
478
+ this.$$set && !sr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
476
479
  }
477
480
  }
478
- const Ar = "4";
479
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
480
- function Tr(e, t) {
481
+ const Br = "4";
482
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Br);
483
+ function Nr(e, t) {
481
484
  if (e) {
482
485
  const r = document.createElement("style");
483
486
  r.innerHTML = t, e.appendChild(r);
484
487
  }
485
488
  }
486
- function Br(e, t) {
489
+ function Pr(e, t) {
487
490
  const r = new URL(t);
488
491
  fetch(r.href).then((n) => n.text()).then((n) => {
489
492
  const i = document.createElement("style");
@@ -492,7 +495,7 @@ function Br(e, t) {
492
495
  console.error("There was an error while trying to load client styling from URL", n);
493
496
  });
494
497
  }
495
- function Nr(e, t, r) {
498
+ function Or(e, t, r) {
496
499
  if (window.emMessageBus) {
497
500
  const n = document.createElement("style");
498
501
  window.emMessageBus.subscribe(t, (i) => {
@@ -500,8 +503,8 @@ function Nr(e, t, r) {
500
503
  });
501
504
  }
502
505
  }
503
- const J = [];
504
- function Pr(e, t) {
506
+ const Q = [];
507
+ function Ir(e, t) {
505
508
  return {
506
509
  subscribe: Ee(e, t).subscribe
507
510
  };
@@ -510,138 +513,153 @@ function Ee(e, t = D) {
510
513
  let r;
511
514
  const n = /* @__PURE__ */ new Set();
512
515
  function i(a) {
513
- if (Ht(e, a) && (e = a, r)) {
514
- const h = !J.length;
516
+ if (Tt(e, a) && (e = a, r)) {
517
+ const u = !Q.length;
515
518
  for (const l of n)
516
- l[1](), J.push(l, e);
517
- if (h) {
518
- for (let l = 0; l < J.length; l += 2)
519
- J[l][0](J[l + 1]);
520
- J.length = 0;
519
+ l[1](), Q.push(l, e);
520
+ if (u) {
521
+ for (let l = 0; l < Q.length; l += 2)
522
+ Q[l][0](Q[l + 1]);
523
+ Q.length = 0;
521
524
  }
522
525
  }
523
526
  }
524
527
  function o(a) {
525
528
  i(a(e));
526
529
  }
527
- function s(a, h = D) {
528
- const l = [a, h];
530
+ function s(a, u = D) {
531
+ const l = [a, u];
529
532
  return n.add(l), n.size === 1 && (r = t(i, o) || D), a(e), () => {
530
533
  n.delete(l), n.size === 0 && r && (r(), r = null);
531
534
  };
532
535
  }
533
536
  return { set: i, update: o, subscribe: s };
534
537
  }
535
- function re(e, t, r) {
538
+ function ne(e, t, r) {
536
539
  const n = !Array.isArray(e), i = n ? [e] : e;
537
540
  if (!i.every(Boolean))
538
541
  throw new Error("derived() expects stores as input, got a falsy value");
539
542
  const o = t.length < 2;
540
- return Pr(r, (s, a) => {
541
- let h = !1;
543
+ return Ir(r, (s, a) => {
544
+ let u = !1;
542
545
  const l = [];
543
- let u = 0, c = D;
546
+ let h = 0, c = D;
544
547
  const f = () => {
545
- if (u)
548
+ if (h)
546
549
  return;
547
550
  c();
548
- const b = t(n ? l[0] : l, s, a);
549
- o ? s(b) : c = We(b) ? b : D;
551
+ const g = t(n ? l[0] : l, s, a);
552
+ o ? s(g) : c = We(g) ? g : D;
550
553
  }, p = i.map(
551
- (b, S) => At(
552
- b,
553
- (w) => {
554
- l[S] = w, u &= ~(1 << S), h && f();
554
+ (g, E) => Bt(
555
+ g,
556
+ (N) => {
557
+ l[E] = N, h &= ~(1 << E), u && f();
555
558
  },
556
559
  () => {
557
- u |= 1 << S;
560
+ h |= 1 << E;
558
561
  }
559
562
  )
560
563
  );
561
- return h = !0, f(), function() {
562
- ce(p), c(), h = !1;
564
+ return u = !0, f(), function() {
565
+ ce(p), c(), u = !1;
563
566
  };
564
567
  });
565
568
  }
566
- function Or(e) {
569
+ function Cr(e) {
567
570
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
568
571
  }
569
- var Ir = function(t) {
570
- return Cr(t) && !Lr(t);
572
+ var Lr = function(t) {
573
+ return Mr(t) && !Rr(t);
571
574
  };
572
- function Cr(e) {
575
+ function Mr(e) {
573
576
  return !!e && typeof e == "object";
574
577
  }
575
- function Lr(e) {
578
+ function Rr(e) {
576
579
  var t = Object.prototype.toString.call(e);
577
- return t === "[object RegExp]" || t === "[object Date]" || $r(e);
580
+ return t === "[object RegExp]" || t === "[object Date]" || Ur(e);
578
581
  }
579
- var Mr = typeof Symbol == "function" && Symbol.for, Rr = Mr ? Symbol.for("react.element") : 60103;
580
- function $r(e) {
581
- return e.$$typeof === Rr;
582
+ var $r = typeof Symbol == "function" && Symbol.for, Dr = $r ? Symbol.for("react.element") : 60103;
583
+ function Ur(e) {
584
+ return e.$$typeof === Dr;
582
585
  }
583
- function Dr(e) {
586
+ function Fr(e) {
584
587
  return Array.isArray(e) ? [] : {};
585
588
  }
586
589
  function ue(e, t) {
587
- return t.clone !== !1 && t.isMergeableObject(e) ? Y(Dr(e), e, t) : e;
590
+ return t.clone !== !1 && t.isMergeableObject(e) ? K(Fr(e), e, t) : e;
588
591
  }
589
- function Ur(e, t, r) {
592
+ function Gr(e, t, r) {
590
593
  return e.concat(t).map(function(n) {
591
594
  return ue(n, r);
592
595
  });
593
596
  }
594
- function Fr(e, t) {
597
+ function jr(e, t) {
595
598
  if (!t.customMerge)
596
- return Y;
599
+ return K;
597
600
  var r = t.customMerge(e);
598
- return typeof r == "function" ? r : Y;
601
+ return typeof r == "function" ? r : K;
599
602
  }
600
- function Gr(e) {
603
+ function kr(e) {
601
604
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
602
605
  return Object.propertyIsEnumerable.call(e, t);
603
606
  }) : [];
604
607
  }
605
- function at(e) {
606
- return Object.keys(e).concat(Gr(e));
608
+ function ut(e) {
609
+ return Object.keys(e).concat(kr(e));
607
610
  }
608
- function Nt(e, t) {
611
+ function Ot(e, t) {
609
612
  try {
610
613
  return t in e;
611
614
  } catch (r) {
612
615
  return !1;
613
616
  }
614
617
  }
615
- function jr(e, t) {
616
- return Nt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
618
+ function Vr(e, t) {
619
+ return Ot(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
617
620
  }
618
- function kr(e, t, r) {
621
+ function zr(e, t, r) {
619
622
  var n = {};
620
- return r.isMergeableObject(e) && at(e).forEach(function(i) {
623
+ return r.isMergeableObject(e) && ut(e).forEach(function(i) {
621
624
  n[i] = ue(e[i], r);
622
- }), at(t).forEach(function(i) {
623
- jr(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Fr(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
625
+ }), ut(t).forEach(function(i) {
626
+ Vr(e, i) || (Ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
624
627
  }), n;
625
628
  }
626
- function Y(e, t, r) {
627
- r = r || {}, r.arrayMerge = r.arrayMerge || Ur, r.isMergeableObject = r.isMergeableObject || Ir, r.cloneUnlessOtherwiseSpecified = ue;
629
+ function K(e, t, r) {
630
+ r = r || {}, r.arrayMerge = r.arrayMerge || Gr, r.isMergeableObject = r.isMergeableObject || Lr, r.cloneUnlessOtherwiseSpecified = ue;
628
631
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
629
- return o ? n ? r.arrayMerge(e, t, r) : kr(e, t, r) : ue(t, r);
632
+ return o ? n ? r.arrayMerge(e, t, r) : zr(e, t, r) : ue(t, r);
630
633
  }
631
- Y.all = function(t, r) {
634
+ K.all = function(t, r) {
632
635
  if (!Array.isArray(t))
633
636
  throw new Error("first argument should be an array");
634
637
  return t.reduce(function(n, i) {
635
- return Y(n, i, r);
638
+ return K(n, i, r);
636
639
  }, {});
637
640
  };
638
- var Vr = Y, zr = Vr;
639
- const Xr = /* @__PURE__ */ Or(zr);
641
+ var Xr = K, Zr = Xr;
642
+ const Wr = /* @__PURE__ */ Cr(Zr);
643
+ /*! *****************************************************************************
644
+ Copyright (c) Microsoft Corporation.
645
+
646
+ Permission to use, copy, modify, and/or distribute this software for any
647
+ purpose with or without fee is hereby granted.
648
+
649
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
650
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
651
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
652
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
653
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
654
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
655
+ PERFORMANCE OF THIS SOFTWARE.
656
+ ***************************************************************************** */
640
657
  var Ue = function(e, t) {
641
658
  return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
642
659
  r.__proto__ = n;
643
660
  } || function(r, n) {
644
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
661
+ for (var i in n)
662
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
645
663
  }, Ue(e, t);
646
664
  };
647
665
  function _e(e, t) {
@@ -657,121 +675,126 @@ var x = function() {
657
675
  return x = Object.assign || function(t) {
658
676
  for (var r, n = 1, i = arguments.length; n < i; n++) {
659
677
  r = arguments[n];
660
- for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
678
+ for (var o in r)
679
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
661
680
  }
662
681
  return t;
663
682
  }, x.apply(this, arguments);
664
683
  };
665
- function Zr(e, t) {
684
+ function Jr(e, t) {
666
685
  var r = {};
667
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
686
+ for (var n in e)
687
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
668
688
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
669
689
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
670
690
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
671
691
  return r;
672
692
  }
673
693
  function Ne(e, t, r) {
674
- if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
675
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
676
- return e.concat(o || Array.prototype.slice.call(t));
694
+ if (arguments.length === 2)
695
+ for (var n = 0, i = t.length, o; n < i; n++)
696
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
697
+ return e.concat(o || t);
677
698
  }
678
699
  function Pe(e, t) {
679
- var r = t && t.cache ? t.cache : en, n = t && t.serializer ? t.serializer : Yr, i = t && t.strategy ? t.strategy : Qr;
700
+ var r = t && t.cache ? t.cache : tn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : qr;
680
701
  return i(e, {
681
702
  cache: r,
682
703
  serializer: n
683
704
  });
684
705
  }
685
- function Wr(e) {
706
+ function Qr(e) {
686
707
  return e == null || typeof e == "number" || typeof e == "boolean";
687
708
  }
688
- function Jr(e, t, r, n) {
689
- var i = Wr(n) ? n : r(n), o = t.get(i);
709
+ function It(e, t, r, n) {
710
+ var i = Qr(n) ? n : r(n), o = t.get(i);
690
711
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
691
712
  }
692
- function Pt(e, t, r) {
713
+ function Ct(e, t, r) {
693
714
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
694
715
  return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
695
716
  }
696
- function Ot(e, t, r, n, i) {
717
+ function Je(e, t, r, n, i) {
697
718
  return r.bind(t, e, n, i);
698
719
  }
699
- function Qr(e, t) {
700
- var r = e.length === 1 ? Jr : Pt;
701
- return Ot(e, this, r, t.cache.create(), t.serializer);
702
- }
703
720
  function qr(e, t) {
704
- return Ot(e, this, Pt, t.cache.create(), t.serializer);
721
+ var r = e.length === 1 ? It : Ct;
722
+ return Je(e, this, r, t.cache.create(), t.serializer);
723
+ }
724
+ function Yr(e, t) {
725
+ return Je(e, this, Ct, t.cache.create(), t.serializer);
726
+ }
727
+ function Kr(e, t) {
728
+ return Je(e, this, It, t.cache.create(), t.serializer);
705
729
  }
706
- var Yr = function() {
730
+ var en = function() {
707
731
  return JSON.stringify(arguments);
708
- }, Kr = (
709
- /** @class */
710
- function() {
711
- function e() {
712
- this.cache = /* @__PURE__ */ Object.create(null);
713
- }
714
- return e.prototype.get = function(t) {
715
- return this.cache[t];
716
- }, e.prototype.set = function(t, r) {
717
- this.cache[t] = r;
718
- }, e;
719
- }()
720
- ), en = {
732
+ };
733
+ function Qe() {
734
+ this.cache = /* @__PURE__ */ Object.create(null);
735
+ }
736
+ Qe.prototype.get = function(e) {
737
+ return this.cache[e];
738
+ };
739
+ Qe.prototype.set = function(e, t) {
740
+ this.cache[e] = t;
741
+ };
742
+ var tn = {
721
743
  create: function() {
722
- return new Kr();
744
+ return new Qe();
723
745
  }
724
746
  }, Oe = {
725
- variadic: qr
726
- }, g;
747
+ variadic: Yr,
748
+ monadic: Kr
749
+ }, b;
727
750
  (function(e) {
728
751
  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";
729
- })(g || (g = {}));
730
- var E;
752
+ })(b || (b = {}));
753
+ var _;
731
754
  (function(e) {
732
755
  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";
733
- })(E || (E = {}));
734
- var K;
756
+ })(_ || (_ = {}));
757
+ var ee;
735
758
  (function(e) {
736
759
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
737
- })(K || (K = {}));
738
- function lt(e) {
739
- return e.type === E.literal;
740
- }
741
- function tn(e) {
742
- return e.type === E.argument;
743
- }
744
- function It(e) {
745
- return e.type === E.number;
760
+ })(ee || (ee = {}));
761
+ function ht(e) {
762
+ return e.type === _.literal;
746
763
  }
747
- function Ct(e) {
748
- return e.type === E.date;
764
+ function rn(e) {
765
+ return e.type === _.argument;
749
766
  }
750
767
  function Lt(e) {
751
- return e.type === E.time;
768
+ return e.type === _.number;
752
769
  }
753
770
  function Mt(e) {
754
- return e.type === E.select;
771
+ return e.type === _.date;
755
772
  }
756
773
  function Rt(e) {
757
- return e.type === E.plural;
758
- }
759
- function rn(e) {
760
- return e.type === E.pound;
774
+ return e.type === _.time;
761
775
  }
762
776
  function $t(e) {
763
- return e.type === E.tag;
777
+ return e.type === _.select;
764
778
  }
765
779
  function Dt(e) {
766
- return !!(e && typeof e == "object" && e.type === K.number);
780
+ return e.type === _.plural;
781
+ }
782
+ function nn(e) {
783
+ return e.type === _.pound;
784
+ }
785
+ function Ut(e) {
786
+ return e.type === _.tag;
787
+ }
788
+ function Ft(e) {
789
+ return !!(e && typeof e == "object" && e.type === ee.number);
767
790
  }
768
791
  function Fe(e) {
769
- return !!(e && typeof e == "object" && e.type === K.dateTime);
792
+ return !!(e && typeof e == "object" && e.type === ee.dateTime);
770
793
  }
771
- var Ut = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, nn = /(?:[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;
772
- function on(e) {
794
+ var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, on = /(?:[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;
795
+ function sn(e) {
773
796
  var t = {};
774
- return e.replace(nn, function(r) {
797
+ return e.replace(on, function(r) {
775
798
  var n = r.length;
776
799
  switch (r[0]) {
777
800
  case "G":
@@ -860,36 +883,36 @@ function on(e) {
860
883
  return "";
861
884
  }), t;
862
885
  }
863
- var sn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
864
- function an(e) {
886
+ var an = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
887
+ function ln(e) {
865
888
  if (e.length === 0)
866
889
  throw new Error("Number skeleton cannot be empty");
867
- for (var t = e.split(sn).filter(function(f) {
890
+ for (var t = e.split(an).filter(function(f) {
868
891
  return f.length > 0;
869
892
  }), r = [], n = 0, i = t; n < i.length; n++) {
870
893
  var o = i[n], s = o.split("/");
871
894
  if (s.length === 0)
872
895
  throw new Error("Invalid number skeleton");
873
- for (var a = s[0], h = s.slice(1), l = 0, u = h; l < u.length; l++) {
874
- var c = u[l];
896
+ for (var a = s[0], u = s.slice(1), l = 0, h = u; l < h.length; l++) {
897
+ var c = h[l];
875
898
  if (c.length === 0)
876
899
  throw new Error("Invalid number skeleton");
877
900
  }
878
- r.push({ stem: a, options: h });
901
+ r.push({ stem: a, options: u });
879
902
  }
880
903
  return r;
881
904
  }
882
- function ln(e) {
905
+ function un(e) {
883
906
  return e.replace(/^(.*?)-/, "");
884
907
  }
885
- var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, un = /(\*)(0+)|(#+)(0+)|(0+)/g, Gt = /^(0+)$/;
886
- function ht(e) {
908
+ var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jt = /^(@+)?(\+|#+)?[rs]?$/g, hn = /(\*)(0+)|(#+)(0+)|(0+)/g, kt = /^(0+)$/;
909
+ function ft(e) {
887
910
  var t = {};
888
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(r, n, i) {
911
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jt, function(r, n, i) {
889
912
  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)), "";
890
913
  }), t;
891
914
  }
892
- function jt(e) {
915
+ function Vt(e) {
893
916
  switch (e) {
894
917
  case "sign-auto":
895
918
  return {
@@ -929,7 +952,7 @@ function jt(e) {
929
952
  };
930
953
  }
931
954
  }
932
- function hn(e) {
955
+ function cn(e) {
933
956
  var t;
934
957
  if (e[0] === "E" && e[1] === "E" ? (t = {
935
958
  notation: "engineering"
@@ -937,17 +960,17 @@ function hn(e) {
937
960
  notation: "scientific"
938
961
  }, e = e.slice(1)), t) {
939
962
  var r = e.slice(0, 2);
940
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Gt.test(e))
963
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !kt.test(e))
941
964
  throw new Error("Malformed concise eng/scientific notation");
942
965
  t.minimumIntegerDigits = e.length;
943
966
  }
944
967
  return t;
945
968
  }
946
- function ct(e) {
947
- var t = {}, r = jt(e);
969
+ function mt(e) {
970
+ var t = {}, r = Vt(e);
948
971
  return r || t;
949
972
  }
950
- function cn(e) {
973
+ function fn(e) {
951
974
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
952
975
  var i = n[r];
953
976
  switch (i.stem) {
@@ -971,7 +994,7 @@ function cn(e) {
971
994
  continue;
972
995
  case "measure-unit":
973
996
  case "unit":
974
- t.style = "unit", t.unit = ln(i.options[0]);
997
+ t.style = "unit", t.unit = un(i.options[0]);
975
998
  continue;
976
999
  case "compact-short":
977
1000
  case "K":
@@ -982,13 +1005,13 @@ function cn(e) {
982
1005
  t.notation = "compact", t.compactDisplay = "long";
983
1006
  continue;
984
1007
  case "scientific":
985
- t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
986
- return x(x({}, h), ct(l));
1008
+ t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
1009
+ return x(x({}, u), mt(l));
987
1010
  }, {}));
988
1011
  continue;
989
1012
  case "engineering":
990
- t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
991
- return x(x({}, h), ct(l));
1013
+ t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
1014
+ return x(x({}, u), mt(l));
992
1015
  }, {}));
993
1016
  continue;
994
1017
  case "notation-simple":
@@ -1033,9 +1056,9 @@ function cn(e) {
1033
1056
  case "integer-width":
1034
1057
  if (i.options.length > 1)
1035
1058
  throw new RangeError("integer-width stems only accept a single optional option");
1036
- i.options[0].replace(un, function(h, l, u, c, f, p) {
1059
+ i.options[0].replace(hn, function(u, l, h, c, f, p) {
1037
1060
  if (l)
1038
- t.minimumIntegerDigits = u.length;
1061
+ t.minimumIntegerDigits = h.length;
1039
1062
  else {
1040
1063
  if (c && f)
1041
1064
  throw new Error("We currently do not support maximum integer digits");
@@ -1046,27 +1069,27 @@ function cn(e) {
1046
1069
  });
1047
1070
  continue;
1048
1071
  }
1049
- if (Gt.test(i.stem)) {
1072
+ if (kt.test(i.stem)) {
1050
1073
  t.minimumIntegerDigits = i.stem.length;
1051
1074
  continue;
1052
1075
  }
1053
- if (ut.test(i.stem)) {
1076
+ if (ct.test(i.stem)) {
1054
1077
  if (i.options.length > 1)
1055
1078
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1056
- i.stem.replace(ut, function(h, l, u, c, f, p) {
1057
- 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), "";
1079
+ i.stem.replace(ct, function(u, l, h, c, f, p) {
1080
+ return h === "*" ? 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), "";
1058
1081
  });
1059
1082
  var o = i.options[0];
1060
- o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), ht(o)));
1083
+ o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), ft(o)));
1061
1084
  continue;
1062
1085
  }
1063
- if (Ft.test(i.stem)) {
1064
- t = x(x({}, t), ht(i.stem));
1086
+ if (jt.test(i.stem)) {
1087
+ t = x(x({}, t), ft(i.stem));
1065
1088
  continue;
1066
1089
  }
1067
- var s = jt(i.stem);
1090
+ var s = Vt(i.stem);
1068
1091
  s && (t = x(x({}, t), s));
1069
- var a = hn(i.stem);
1092
+ var a = cn(i.stem);
1070
1093
  a && (t = x(x({}, t), a));
1071
1094
  }
1072
1095
  return t;
@@ -2486,22 +2509,23 @@ var pe = {
2486
2509
  "h"
2487
2510
  ]
2488
2511
  };
2489
- function fn(e, t) {
2512
+ function mn(e, t) {
2490
2513
  for (var r = "", n = 0; n < e.length; n++) {
2491
2514
  var i = e.charAt(n);
2492
2515
  if (i === "j") {
2493
2516
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2494
2517
  o++, n++;
2495
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = mn(t);
2518
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = pn(t);
2496
2519
  for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2497
- r += h;
2520
+ r += u;
2498
2521
  for (; s-- > 0; )
2499
2522
  r = l + r;
2500
- } else i === "J" ? r += "H" : r += i;
2523
+ } else
2524
+ i === "J" ? r += "H" : r += i;
2501
2525
  }
2502
2526
  return r;
2503
2527
  }
2504
- function mn(e) {
2528
+ function pn(e) {
2505
2529
  var t = e.hourCycle;
2506
2530
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2507
2531
  e.hourCycles && // @ts-ignore
@@ -2523,20 +2547,20 @@ function mn(e) {
2523
2547
  var i = pe[n || ""] || pe[r || ""] || pe["".concat(r, "-001")] || pe["001"];
2524
2548
  return i[0];
2525
2549
  }
2526
- var Ie, pn = new RegExp("^".concat(Ut.source, "*")), dn = new RegExp("".concat(Ut.source, "*$"));
2550
+ var Ie, dn = new RegExp("^".concat(Gt.source, "*")), bn = new RegExp("".concat(Gt.source, "*$"));
2527
2551
  function y(e, t) {
2528
2552
  return { start: e, end: t };
2529
2553
  }
2530
- var bn = !!String.prototype.startsWith && "_a".startsWith("a", 1), gn = !!String.fromCodePoint, yn = !!Object.fromEntries, xn = !!String.prototype.codePointAt, vn = !!String.prototype.trimStart, En = !!String.prototype.trimEnd, _n = !!Number.isSafeInteger, Sn = _n ? Number.isSafeInteger : function(e) {
2554
+ var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), yn = !!String.fromCodePoint, xn = !!Object.fromEntries, vn = !!String.prototype.codePointAt, En = !!String.prototype.trimStart, _n = !!String.prototype.trimEnd, Sn = !!Number.isSafeInteger, wn = Sn ? Number.isSafeInteger : function(e) {
2531
2555
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2532
2556
  }, Ge = !0;
2533
2557
  try {
2534
- var wn = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2535
- Ge = ((Ie = wn.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
2558
+ var Hn = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2559
+ Ge = ((Ie = Hn.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
2536
2560
  } catch (e) {
2537
2561
  Ge = !1;
2538
2562
  }
2539
- var ft = bn ? (
2563
+ var pt = gn ? (
2540
2564
  // Native
2541
2565
  function(t, r, n) {
2542
2566
  return t.startsWith(r, n);
@@ -2546,7 +2570,7 @@ var ft = bn ? (
2546
2570
  function(t, r, n) {
2547
2571
  return t.slice(n, n + r.length) === r;
2548
2572
  }
2549
- ), je = gn ? String.fromCodePoint : (
2573
+ ), je = yn ? String.fromCodePoint : (
2550
2574
  // IE11
2551
2575
  function() {
2552
2576
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2558,9 +2582,9 @@ var ft = bn ? (
2558
2582
  }
2559
2583
  return n;
2560
2584
  }
2561
- ), mt = (
2585
+ ), dt = (
2562
2586
  // native
2563
- yn ? Object.fromEntries : (
2587
+ xn ? Object.fromEntries : (
2564
2588
  // Ponyfill
2565
2589
  function(t) {
2566
2590
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2570,7 +2594,7 @@ var ft = bn ? (
2570
2594
  return r;
2571
2595
  }
2572
2596
  )
2573
- ), kt = xn ? (
2597
+ ), zt = vn ? (
2574
2598
  // Native
2575
2599
  function(t, r) {
2576
2600
  return t.codePointAt(r);
@@ -2584,7 +2608,7 @@ var ft = bn ? (
2584
2608
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2585
2609
  }
2586
2610
  }
2587
- ), Hn = vn ? (
2611
+ ), An = En ? (
2588
2612
  // Native
2589
2613
  function(t) {
2590
2614
  return t.trimStart();
@@ -2592,9 +2616,9 @@ var ft = bn ? (
2592
2616
  ) : (
2593
2617
  // Ponyfill
2594
2618
  function(t) {
2595
- return t.replace(pn, "");
2619
+ return t.replace(dn, "");
2596
2620
  }
2597
- ), An = En ? (
2621
+ ), Tn = _n ? (
2598
2622
  // Native
2599
2623
  function(t) {
2600
2624
  return t.trimEnd();
@@ -2602,32 +2626,32 @@ var ft = bn ? (
2602
2626
  ) : (
2603
2627
  // Ponyfill
2604
2628
  function(t) {
2605
- return t.replace(dn, "");
2629
+ return t.replace(bn, "");
2606
2630
  }
2607
2631
  );
2608
- function Vt(e, t) {
2632
+ function Xt(e, t) {
2609
2633
  return new RegExp(e, t);
2610
2634
  }
2611
2635
  var ke;
2612
2636
  if (Ge) {
2613
- var pt = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2637
+ var bt = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2614
2638
  ke = function(t, r) {
2615
2639
  var n;
2616
- pt.lastIndex = r;
2617
- var i = pt.exec(t);
2640
+ bt.lastIndex = r;
2641
+ var i = bt.exec(t);
2618
2642
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2619
2643
  };
2620
2644
  } else
2621
2645
  ke = function(t, r) {
2622
2646
  for (var n = []; ; ) {
2623
- var i = kt(t, r);
2624
- if (i === void 0 || zt(i) || Pn(i))
2647
+ var i = zt(t, r);
2648
+ if (i === void 0 || Zt(i) || On(i))
2625
2649
  break;
2626
2650
  n.push(i), r += i >= 65536 ? 2 : 1;
2627
2651
  }
2628
2652
  return je.apply(void 0, n);
2629
2653
  };
2630
- var Tn = (
2654
+ var Bn = (
2631
2655
  /** @class */
2632
2656
  function() {
2633
2657
  function e(t, r) {
@@ -2651,13 +2675,13 @@ var Tn = (
2651
2675
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2652
2676
  var a = this.clonePosition();
2653
2677
  this.bump(), i.push({
2654
- type: E.pound,
2678
+ type: _.pound,
2655
2679
  location: y(a, this.clonePosition())
2656
2680
  });
2657
2681
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2658
2682
  if (n)
2659
2683
  break;
2660
- return this.error(g.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
2684
+ return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
2661
2685
  } else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
2662
2686
  var s = this.parseTag(t, r);
2663
2687
  if (s.err)
@@ -2679,7 +2703,7 @@ var Tn = (
2679
2703
  if (this.bumpSpace(), this.bumpIf("/>"))
2680
2704
  return {
2681
2705
  val: {
2682
- type: E.literal,
2706
+ type: _.literal,
2683
2707
  value: "<".concat(i, "/>"),
2684
2708
  location: y(n, this.clonePosition())
2685
2709
  },
@@ -2692,24 +2716,24 @@ var Tn = (
2692
2716
  var s = o.val, a = this.clonePosition();
2693
2717
  if (this.bumpIf("</")) {
2694
2718
  if (this.isEOF() || !Ve(this.char()))
2695
- return this.error(g.INVALID_TAG, y(a, this.clonePosition()));
2696
- var h = this.clonePosition(), l = this.parseTagName();
2697
- return i !== l ? this.error(g.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2719
+ return this.error(b.INVALID_TAG, y(a, this.clonePosition()));
2720
+ var u = this.clonePosition(), l = this.parseTagName();
2721
+ return i !== l ? this.error(b.UNMATCHED_CLOSING_TAG, y(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2698
2722
  val: {
2699
- type: E.tag,
2723
+ type: _.tag,
2700
2724
  value: i,
2701
2725
  children: s,
2702
2726
  location: y(n, this.clonePosition())
2703
2727
  },
2704
2728
  err: null
2705
- } : this.error(g.INVALID_TAG, y(a, this.clonePosition())));
2729
+ } : this.error(b.INVALID_TAG, y(a, this.clonePosition())));
2706
2730
  } else
2707
- return this.error(g.UNCLOSED_TAG, y(n, this.clonePosition()));
2731
+ return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
2708
2732
  } else
2709
- return this.error(g.INVALID_TAG, y(n, this.clonePosition()));
2733
+ return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
2710
2734
  }, e.prototype.parseTagName = function() {
2711
2735
  var t = this.offset();
2712
- for (this.bump(); !this.isEOF() && Nn(this.char()); )
2736
+ for (this.bump(); !this.isEOF() && Pn(this.char()); )
2713
2737
  this.bump();
2714
2738
  return this.message.slice(t, this.offset());
2715
2739
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2731,14 +2755,14 @@ var Tn = (
2731
2755
  }
2732
2756
  break;
2733
2757
  }
2734
- var h = y(n, this.clonePosition());
2758
+ var u = y(n, this.clonePosition());
2735
2759
  return {
2736
- val: { type: E.literal, value: i, location: h },
2760
+ val: { type: _.literal, value: i, location: u },
2737
2761
  err: null
2738
2762
  };
2739
2763
  }, e.prototype.tryParseLeftAngleBracket = function() {
2740
2764
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2741
- !Bn(this.peek() || 0)) ? (this.bump(), "<") : null;
2765
+ !Nn(this.peek() || 0)) ? (this.bump(), "<") : null;
2742
2766
  }, e.prototype.tryParseQuote = function(t) {
2743
2767
  if (this.isEOF() || this.char() !== 39)
2744
2768
  return null;
@@ -2781,19 +2805,19 @@ var Tn = (
2781
2805
  }, e.prototype.parseArgument = function(t, r) {
2782
2806
  var n = this.clonePosition();
2783
2807
  if (this.bump(), this.bumpSpace(), this.isEOF())
2784
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2808
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2785
2809
  if (this.char() === 125)
2786
- return this.bump(), this.error(g.EMPTY_ARGUMENT, y(n, this.clonePosition()));
2810
+ return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
2787
2811
  var i = this.parseIdentifierIfPossible().value;
2788
2812
  if (!i)
2789
- return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2813
+ return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2790
2814
  if (this.bumpSpace(), this.isEOF())
2791
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2815
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2792
2816
  switch (this.char()) {
2793
2817
  case 125:
2794
2818
  return this.bump(), {
2795
2819
  val: {
2796
- type: E.argument,
2820
+ type: _.argument,
2797
2821
  // value does not include the opening and closing braces.
2798
2822
  value: i,
2799
2823
  location: y(n, this.clonePosition())
@@ -2801,9 +2825,9 @@ var Tn = (
2801
2825
  err: null
2802
2826
  };
2803
2827
  case 44:
2804
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2828
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2805
2829
  default:
2806
- return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2830
+ return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2807
2831
  }
2808
2832
  }, e.prototype.parseIdentifierIfPossible = function() {
2809
2833
  var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
@@ -2811,10 +2835,10 @@ var Tn = (
2811
2835
  var o = this.clonePosition(), s = y(t, o);
2812
2836
  return { value: n, location: s };
2813
2837
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2814
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2838
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2815
2839
  switch (a) {
2816
2840
  case "":
2817
- return this.error(g.EXPECT_ARGUMENT_TYPE, y(s, h));
2841
+ return this.error(b.EXPECT_ARGUMENT_TYPE, y(s, u));
2818
2842
  case "number":
2819
2843
  case "date":
2820
2844
  case "time": {
@@ -2822,49 +2846,49 @@ var Tn = (
2822
2846
  var l = null;
2823
2847
  if (this.bumpIf(",")) {
2824
2848
  this.bumpSpace();
2825
- var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2849
+ var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2826
2850
  if (c.err)
2827
2851
  return c;
2828
- var f = An(c.val);
2852
+ var f = Tn(c.val);
2829
2853
  if (f.length === 0)
2830
- return this.error(g.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
2831
- var p = y(u, this.clonePosition());
2854
+ return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
2855
+ var p = y(h, this.clonePosition());
2832
2856
  l = { style: f, styleLocation: p };
2833
2857
  }
2834
- var b = this.tryParseArgumentClose(i);
2835
- if (b.err)
2836
- return b;
2837
- var S = y(i, this.clonePosition());
2838
- if (l && ft(l == null ? void 0 : l.style, "::", 0)) {
2839
- var w = Hn(l.style.slice(2));
2858
+ var g = this.tryParseArgumentClose(i);
2859
+ if (g.err)
2860
+ return g;
2861
+ var E = y(i, this.clonePosition());
2862
+ if (l && pt(l == null ? void 0 : l.style, "::", 0)) {
2863
+ var N = An(l.style.slice(2));
2840
2864
  if (a === "number") {
2841
- var c = this.parseNumberSkeletonFromString(w, l.styleLocation);
2865
+ var c = this.parseNumberSkeletonFromString(N, l.styleLocation);
2842
2866
  return c.err ? c : {
2843
- val: { type: E.number, value: n, location: S, style: c.val },
2867
+ val: { type: _.number, value: n, location: E, style: c.val },
2844
2868
  err: null
2845
2869
  };
2846
2870
  } else {
2847
- if (w.length === 0)
2848
- return this.error(g.EXPECT_DATE_TIME_SKELETON, S);
2849
- var M = w;
2850
- this.locale && (M = fn(w, this.locale));
2871
+ if (N.length === 0)
2872
+ return this.error(b.EXPECT_DATE_TIME_SKELETON, E);
2873
+ var P = N;
2874
+ this.locale && (P = mn(N, this.locale));
2851
2875
  var f = {
2852
- type: K.dateTime,
2853
- pattern: M,
2876
+ type: ee.dateTime,
2877
+ pattern: P,
2854
2878
  location: l.styleLocation,
2855
- parsedOptions: this.shouldParseSkeletons ? on(M) : {}
2856
- }, C = a === "date" ? E.date : E.time;
2879
+ parsedOptions: this.shouldParseSkeletons ? sn(P) : {}
2880
+ }, M = a === "date" ? _.date : _.time;
2857
2881
  return {
2858
- val: { type: C, value: n, location: S, style: f },
2882
+ val: { type: M, value: n, location: E, style: f },
2859
2883
  err: null
2860
2884
  };
2861
2885
  }
2862
2886
  }
2863
2887
  return {
2864
2888
  val: {
2865
- type: a === "number" ? E.number : a === "date" ? E.date : E.time,
2889
+ type: a === "number" ? _.number : a === "date" ? _.date : _.time,
2866
2890
  value: n,
2867
- location: S,
2891
+ location: E,
2868
2892
  style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
2869
2893
  },
2870
2894
  err: null
@@ -2873,41 +2897,41 @@ var Tn = (
2873
2897
  case "plural":
2874
2898
  case "selectordinal":
2875
2899
  case "select": {
2876
- var N = this.clonePosition();
2900
+ var B = this.clonePosition();
2877
2901
  if (this.bumpSpace(), !this.bumpIf(","))
2878
- return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(N, x({}, N)));
2902
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(B, x({}, B)));
2879
2903
  this.bumpSpace();
2880
- var I = this.parseIdentifierIfPossible(), T = 0;
2881
- if (a !== "select" && I.value === "offset") {
2904
+ var C = this.parseIdentifierIfPossible(), H = 0;
2905
+ if (a !== "select" && C.value === "offset") {
2882
2906
  if (!this.bumpIf(":"))
2883
- return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
2907
+ return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
2884
2908
  this.bumpSpace();
2885
- var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2909
+ var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2886
2910
  if (c.err)
2887
2911
  return c;
2888
- this.bumpSpace(), I = this.parseIdentifierIfPossible(), T = c.val;
2912
+ this.bumpSpace(), C = this.parseIdentifierIfPossible(), H = c.val;
2889
2913
  }
2890
- var L = this.tryParsePluralOrSelectOptions(t, a, r, I);
2914
+ var L = this.tryParsePluralOrSelectOptions(t, a, r, C);
2891
2915
  if (L.err)
2892
2916
  return L;
2893
- var b = this.tryParseArgumentClose(i);
2894
- if (b.err)
2895
- return b;
2917
+ var g = this.tryParseArgumentClose(i);
2918
+ if (g.err)
2919
+ return g;
2896
2920
  var U = y(i, this.clonePosition());
2897
2921
  return a === "select" ? {
2898
2922
  val: {
2899
- type: E.select,
2923
+ type: _.select,
2900
2924
  value: n,
2901
- options: mt(L.val),
2925
+ options: dt(L.val),
2902
2926
  location: U
2903
2927
  },
2904
2928
  err: null
2905
2929
  } : {
2906
2930
  val: {
2907
- type: E.plural,
2931
+ type: _.plural,
2908
2932
  value: n,
2909
- options: mt(L.val),
2910
- offset: T,
2933
+ options: dt(L.val),
2934
+ offset: H,
2911
2935
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2912
2936
  location: U
2913
2937
  },
@@ -2915,10 +2939,10 @@ var Tn = (
2915
2939
  };
2916
2940
  }
2917
2941
  default:
2918
- return this.error(g.INVALID_ARGUMENT_TYPE, y(s, h));
2942
+ return this.error(b.INVALID_ARGUMENT_TYPE, y(s, u));
2919
2943
  }
2920
2944
  }, e.prototype.tryParseArgumentClose = function(t) {
2921
- return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2945
+ return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2922
2946
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2923
2947
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2924
2948
  var n = this.char();
@@ -2927,7 +2951,7 @@ var Tn = (
2927
2951
  this.bump();
2928
2952
  var i = this.clonePosition();
2929
2953
  if (!this.bumpUntil("'"))
2930
- return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
2954
+ return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
2931
2955
  this.bump();
2932
2956
  break;
2933
2957
  }
@@ -2957,52 +2981,52 @@ var Tn = (
2957
2981
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2958
2982
  var n = [];
2959
2983
  try {
2960
- n = an(t);
2984
+ n = ln(t);
2961
2985
  } catch (i) {
2962
- return this.error(g.INVALID_NUMBER_SKELETON, r);
2986
+ return this.error(b.INVALID_NUMBER_SKELETON, r);
2963
2987
  }
2964
2988
  return {
2965
2989
  val: {
2966
- type: K.number,
2990
+ type: ee.number,
2967
2991
  tokens: n,
2968
2992
  location: r,
2969
- parsedOptions: this.shouldParseSkeletons ? cn(n) : {}
2993
+ parsedOptions: this.shouldParseSkeletons ? fn(n) : {}
2970
2994
  },
2971
2995
  err: null
2972
2996
  };
2973
2997
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2974
- for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
2998
+ for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
2975
2999
  if (l.length === 0) {
2976
3000
  var c = this.clonePosition();
2977
3001
  if (r !== "select" && this.bumpIf("=")) {
2978
- var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
3002
+ var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
2979
3003
  if (f.err)
2980
3004
  return f;
2981
- u = y(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
3005
+ h = y(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
2982
3006
  } else
2983
3007
  break;
2984
3008
  }
2985
- if (h.has(l))
2986
- return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
3009
+ if (u.has(l))
3010
+ return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2987
3011
  l === "other" && (s = !0), this.bumpSpace();
2988
3012
  var p = this.clonePosition();
2989
3013
  if (!this.bumpIf("{"))
2990
- return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
2991
- var b = this.parseMessage(t + 1, r, n);
2992
- if (b.err)
2993
- return b;
2994
- var S = this.tryParseArgumentClose(p);
2995
- if (S.err)
2996
- return S;
3014
+ return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
3015
+ var g = this.parseMessage(t + 1, r, n);
3016
+ if (g.err)
3017
+ return g;
3018
+ var E = this.tryParseArgumentClose(p);
3019
+ if (E.err)
3020
+ return E;
2997
3021
  a.push([
2998
3022
  l,
2999
3023
  {
3000
- value: b.val,
3024
+ value: g.val,
3001
3025
  location: y(p, this.clonePosition())
3002
3026
  }
3003
- ]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
3027
+ ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
3004
3028
  }
3005
- 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 };
3029
+ 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 };
3006
3030
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3007
3031
  var n = 1, i = this.clonePosition();
3008
3032
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3013,8 +3037,8 @@ var Tn = (
3013
3037
  else
3014
3038
  break;
3015
3039
  }
3016
- var h = y(i, this.clonePosition());
3017
- return o ? (s *= n, Sn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3040
+ var u = y(i, this.clonePosition());
3041
+ return o ? (s *= n, wn(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
3018
3042
  }, e.prototype.offset = function() {
3019
3043
  return this.position.offset;
3020
3044
  }, e.prototype.isEOF = function() {
@@ -3029,7 +3053,7 @@ var Tn = (
3029
3053
  var t = this.position.offset;
3030
3054
  if (t >= this.message.length)
3031
3055
  throw Error("out of bound");
3032
- var r = kt(this.message, t);
3056
+ var r = zt(this.message, t);
3033
3057
  if (r === void 0)
3034
3058
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3035
3059
  return r;
@@ -3048,7 +3072,7 @@ var Tn = (
3048
3072
  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);
3049
3073
  }
3050
3074
  }, e.prototype.bumpIf = function(t) {
3051
- if (ft(this.message, t, this.offset())) {
3075
+ if (pt(this.message, t, this.offset())) {
3052
3076
  for (var r = 0; r < t.length; r++)
3053
3077
  this.bump();
3054
3078
  return !0;
@@ -3070,7 +3094,7 @@ var Tn = (
3070
3094
  break;
3071
3095
  }
3072
3096
  }, e.prototype.bumpSpace = function() {
3073
- for (; !this.isEOF() && zt(this.char()); )
3097
+ for (; !this.isEOF() && Zt(this.char()); )
3074
3098
  this.bump();
3075
3099
  }, e.prototype.peek = function() {
3076
3100
  if (this.isEOF())
@@ -3083,39 +3107,40 @@ var Tn = (
3083
3107
  function Ve(e) {
3084
3108
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3085
3109
  }
3086
- function Bn(e) {
3110
+ function Nn(e) {
3087
3111
  return Ve(e) || e === 47;
3088
3112
  }
3089
- function Nn(e) {
3113
+ function Pn(e) {
3090
3114
  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;
3091
3115
  }
3092
- function zt(e) {
3116
+ function Zt(e) {
3093
3117
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3094
3118
  }
3095
- function Pn(e) {
3119
+ function On(e) {
3096
3120
  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;
3097
3121
  }
3098
3122
  function ze(e) {
3099
3123
  e.forEach(function(t) {
3100
- if (delete t.location, Mt(t) || Rt(t))
3124
+ if (delete t.location, $t(t) || Dt(t))
3101
3125
  for (var r in t.options)
3102
3126
  delete t.options[r].location, ze(t.options[r].value);
3103
- else It(t) && Dt(t.style) || (Ct(t) || Lt(t)) && Fe(t.style) ? delete t.style.location : $t(t) && ze(t.children);
3127
+ else
3128
+ Lt(t) && Ft(t.style) || (Mt(t) || Rt(t)) && Fe(t.style) ? delete t.style.location : Ut(t) && ze(t.children);
3104
3129
  });
3105
3130
  }
3106
- function On(e, t) {
3131
+ function In(e, t) {
3107
3132
  t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3108
- var r = new Tn(e, t).parse();
3133
+ var r = new Bn(e, t).parse();
3109
3134
  if (r.err) {
3110
- var n = SyntaxError(g[r.err.kind]);
3135
+ var n = SyntaxError(b[r.err.kind]);
3111
3136
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3112
3137
  }
3113
3138
  return t != null && t.captureLocation || ze(r.val), r.val;
3114
3139
  }
3115
- var ee;
3140
+ var te;
3116
3141
  (function(e) {
3117
3142
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3118
- })(ee || (ee = {}));
3143
+ })(te || (te = {}));
3119
3144
  var Se = (
3120
3145
  /** @class */
3121
3146
  function(e) {
@@ -3128,152 +3153,152 @@ var Se = (
3128
3153
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3129
3154
  }, t;
3130
3155
  }(Error)
3131
- ), dt = (
3156
+ ), gt = (
3132
3157
  /** @class */
3133
3158
  function(e) {
3134
3159
  _e(t, e);
3135
3160
  function t(r, n, i, o) {
3136
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
3161
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, o) || this;
3137
3162
  }
3138
3163
  return t;
3139
3164
  }(Se)
3140
- ), In = (
3165
+ ), Cn = (
3141
3166
  /** @class */
3142
3167
  function(e) {
3143
3168
  _e(t, e);
3144
3169
  function t(r, n, i) {
3145
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
3170
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
3146
3171
  }
3147
3172
  return t;
3148
3173
  }(Se)
3149
- ), Cn = (
3174
+ ), Ln = (
3150
3175
  /** @class */
3151
3176
  function(e) {
3152
3177
  _e(t, e);
3153
3178
  function t(r, n) {
3154
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
3179
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
3155
3180
  }
3156
3181
  return t;
3157
3182
  }(Se)
3158
- ), O;
3183
+ ), I;
3159
3184
  (function(e) {
3160
3185
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3161
- })(O || (O = {}));
3162
- function Ln(e) {
3186
+ })(I || (I = {}));
3187
+ function Mn(e) {
3163
3188
  return e.length < 2 ? e : e.reduce(function(t, r) {
3164
3189
  var n = t[t.length - 1];
3165
- return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
3190
+ return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
3166
3191
  }, []);
3167
3192
  }
3168
- function Mn(e) {
3193
+ function Rn(e) {
3169
3194
  return typeof e == "function";
3170
3195
  }
3171
3196
  function be(e, t, r, n, i, o, s) {
3172
- if (e.length === 1 && lt(e[0]))
3197
+ if (e.length === 1 && ht(e[0]))
3173
3198
  return [
3174
3199
  {
3175
- type: O.literal,
3200
+ type: I.literal,
3176
3201
  value: e[0].value
3177
3202
  }
3178
3203
  ];
3179
- for (var a = [], h = 0, l = e; h < l.length; h++) {
3180
- var u = l[h];
3181
- if (lt(u)) {
3204
+ for (var a = [], u = 0, l = e; u < l.length; u++) {
3205
+ var h = l[u];
3206
+ if (ht(h)) {
3182
3207
  a.push({
3183
- type: O.literal,
3184
- value: u.value
3208
+ type: I.literal,
3209
+ value: h.value
3185
3210
  });
3186
3211
  continue;
3187
3212
  }
3188
- if (rn(u)) {
3213
+ if (nn(h)) {
3189
3214
  typeof o == "number" && a.push({
3190
- type: O.literal,
3215
+ type: I.literal,
3191
3216
  value: r.getNumberFormat(t).format(o)
3192
3217
  });
3193
3218
  continue;
3194
3219
  }
3195
- var c = u.value;
3220
+ var c = h.value;
3196
3221
  if (!(i && c in i))
3197
- throw new Cn(c, s);
3222
+ throw new Ln(c, s);
3198
3223
  var f = i[c];
3199
- if (tn(u)) {
3224
+ if (rn(h)) {
3200
3225
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3201
- type: typeof f == "string" ? O.literal : O.object,
3226
+ type: typeof f == "string" ? I.literal : I.object,
3202
3227
  value: f
3203
3228
  });
3204
3229
  continue;
3205
3230
  }
3206
- if (Ct(u)) {
3207
- var p = typeof u.style == "string" ? n.date[u.style] : Fe(u.style) ? u.style.parsedOptions : void 0;
3231
+ if (Mt(h)) {
3232
+ var p = typeof h.style == "string" ? n.date[h.style] : Fe(h.style) ? h.style.parsedOptions : void 0;
3208
3233
  a.push({
3209
- type: O.literal,
3234
+ type: I.literal,
3210
3235
  value: r.getDateTimeFormat(t, p).format(f)
3211
3236
  });
3212
3237
  continue;
3213
3238
  }
3214
- if (Lt(u)) {
3215
- var p = typeof u.style == "string" ? n.time[u.style] : Fe(u.style) ? u.style.parsedOptions : n.time.medium;
3239
+ if (Rt(h)) {
3240
+ var p = typeof h.style == "string" ? n.time[h.style] : Fe(h.style) ? h.style.parsedOptions : n.time.medium;
3216
3241
  a.push({
3217
- type: O.literal,
3242
+ type: I.literal,
3218
3243
  value: r.getDateTimeFormat(t, p).format(f)
3219
3244
  });
3220
3245
  continue;
3221
3246
  }
3222
- if (It(u)) {
3223
- var p = typeof u.style == "string" ? n.number[u.style] : Dt(u.style) ? u.style.parsedOptions : void 0;
3247
+ if (Lt(h)) {
3248
+ var p = typeof h.style == "string" ? n.number[h.style] : Ft(h.style) ? h.style.parsedOptions : void 0;
3224
3249
  p && p.scale && (f = f * (p.scale || 1)), a.push({
3225
- type: O.literal,
3250
+ type: I.literal,
3226
3251
  value: r.getNumberFormat(t, p).format(f)
3227
3252
  });
3228
3253
  continue;
3229
3254
  }
3230
- if ($t(u)) {
3231
- var b = u.children, S = u.value, w = i[S];
3232
- if (!Mn(w))
3233
- throw new In(S, "function", s);
3234
- var M = be(b, t, r, n, i, o), C = w(M.map(function(T) {
3235
- return T.value;
3255
+ if (Ut(h)) {
3256
+ var g = h.children, E = h.value, N = i[E];
3257
+ if (!Rn(N))
3258
+ throw new Cn(E, "function", s);
3259
+ var P = be(g, t, r, n, i, o), M = N(P.map(function(H) {
3260
+ return H.value;
3236
3261
  }));
3237
- Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(T) {
3262
+ Array.isArray(M) || (M = [M]), a.push.apply(a, M.map(function(H) {
3238
3263
  return {
3239
- type: typeof T == "string" ? O.literal : O.object,
3240
- value: T
3264
+ type: typeof H == "string" ? I.literal : I.object,
3265
+ value: H
3241
3266
  };
3242
3267
  }));
3243
3268
  }
3244
- if (Mt(u)) {
3245
- var N = u.options[f] || u.options.other;
3246
- if (!N)
3247
- throw new dt(u.value, f, Object.keys(u.options), s);
3248
- a.push.apply(a, be(N.value, t, r, n, i));
3269
+ if ($t(h)) {
3270
+ var B = h.options[f] || h.options.other;
3271
+ if (!B)
3272
+ throw new gt(h.value, f, Object.keys(h.options), s);
3273
+ a.push.apply(a, be(B.value, t, r, n, i));
3249
3274
  continue;
3250
3275
  }
3251
- if (Rt(u)) {
3252
- var N = u.options["=".concat(f)];
3253
- if (!N) {
3276
+ if (Dt(h)) {
3277
+ var B = h.options["=".concat(f)];
3278
+ if (!B) {
3254
3279
  if (!Intl.PluralRules)
3255
3280
  throw new Se(`Intl.PluralRules is not available in this environment.
3256
3281
  Try polyfilling it using "@formatjs/intl-pluralrules"
3257
- `, ee.MISSING_INTL_API, s);
3258
- var I = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
3259
- N = u.options[I] || u.options.other;
3282
+ `, te.MISSING_INTL_API, s);
3283
+ var C = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3284
+ B = h.options[C] || h.options.other;
3260
3285
  }
3261
- if (!N)
3262
- throw new dt(u.value, f, Object.keys(u.options), s);
3263
- a.push.apply(a, be(N.value, t, r, n, i, f - (u.offset || 0)));
3286
+ if (!B)
3287
+ throw new gt(h.value, f, Object.keys(h.options), s);
3288
+ a.push.apply(a, be(B.value, t, r, n, i, f - (h.offset || 0)));
3264
3289
  continue;
3265
3290
  }
3266
3291
  }
3267
- return Ln(a);
3292
+ return Mn(a);
3268
3293
  }
3269
- function Rn(e, t) {
3294
+ function $n(e, t) {
3270
3295
  return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3271
3296
  return r[n] = x(x({}, e[n]), t[n] || {}), r;
3272
3297
  }, {})) : e;
3273
3298
  }
3274
- function $n(e, t) {
3299
+ function Dn(e, t) {
3275
3300
  return t ? Object.keys(e).reduce(function(r, n) {
3276
- return r[n] = Rn(e[n], t[n]), r;
3301
+ return r[n] = $n(e[n], t[n]), r;
3277
3302
  }, x({}, e)) : e;
3278
3303
  }
3279
3304
  function Ce(e) {
@@ -3290,7 +3315,7 @@ function Ce(e) {
3290
3315
  }
3291
3316
  };
3292
3317
  }
3293
- function Dn(e) {
3318
+ function Un(e) {
3294
3319
  return e === void 0 && (e = {
3295
3320
  number: {},
3296
3321
  dateTime: {},
@@ -3322,7 +3347,7 @@ function Dn(e) {
3322
3347
  })
3323
3348
  };
3324
3349
  }
3325
- var Un = (
3350
+ var Fn = (
3326
3351
  /** @class */
3327
3352
  function() {
3328
3353
  function e(t, r, n, i) {
@@ -3332,20 +3357,20 @@ var Un = (
3332
3357
  number: {},
3333
3358
  dateTime: {},
3334
3359
  pluralRules: {}
3335
- }, this.format = function(h) {
3336
- var l = o.formatToParts(h);
3360
+ }, this.format = function(u) {
3361
+ var l = o.formatToParts(u);
3337
3362
  if (l.length === 1)
3338
3363
  return l[0].value;
3339
- var u = l.reduce(function(c, f) {
3340
- return !c.length || f.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3364
+ var h = l.reduce(function(c, f) {
3365
+ return !c.length || f.type !== I.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3341
3366
  }, []);
3342
- return u.length <= 1 ? u[0] || "" : u;
3343
- }, this.formatToParts = function(h) {
3344
- return be(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3367
+ return h.length <= 1 ? h[0] || "" : h;
3368
+ }, this.formatToParts = function(u) {
3369
+ return be(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3345
3370
  }, this.resolvedOptions = function() {
3346
- var h;
3371
+ var u;
3347
3372
  return {
3348
- locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3373
+ locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3349
3374
  };
3350
3375
  }, this.getAst = function() {
3351
3376
  return o.ast;
@@ -3354,13 +3379,13 @@ var Un = (
3354
3379
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3355
3380
  var s = i || {};
3356
3381
  s.formatters;
3357
- var a = Zr(s, ["formatters"]);
3382
+ var a = Jr(s, ["formatters"]);
3358
3383
  this.ast = e.__parse(t, x(x({}, a), { locale: this.resolvedLocale }));
3359
3384
  } else
3360
3385
  this.ast = t;
3361
3386
  if (!Array.isArray(this.ast))
3362
3387
  throw new TypeError("A message must be provided as a String or AST.");
3363
- this.formats = $n(e.formats, n), this.formatters = i && i.formatters || Dn(this.formatterCache);
3388
+ this.formats = Dn(e.formats, n), this.formatters = i && i.formatters || Un(this.formatterCache);
3364
3389
  }
3365
3390
  return Object.defineProperty(e, "defaultLocale", {
3366
3391
  get: function() {
@@ -3373,7 +3398,7 @@ var Un = (
3373
3398
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3374
3399
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3375
3400
  }
3376
- }, e.__parse = On, e.formats = {
3401
+ }, e.__parse = In, e.formats = {
3377
3402
  number: {
3378
3403
  integer: {
3379
3404
  maximumFractionDigits: 0
@@ -3434,7 +3459,7 @@ var Un = (
3434
3459
  }, e;
3435
3460
  }()
3436
3461
  );
3437
- function Fn(e, t) {
3462
+ function Gn(e, t) {
3438
3463
  if (t == null)
3439
3464
  return;
3440
3465
  if (t in e)
@@ -3455,60 +3480,60 @@ function Fn(e, t) {
3455
3480
  n = void 0;
3456
3481
  return n;
3457
3482
  }
3458
- const j = {}, Gn = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), Xt = (e, t) => {
3483
+ const j = {}, jn = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), Wt = (e, t) => {
3459
3484
  if (t == null)
3460
3485
  return;
3461
3486
  if (t in j && e in j[t])
3462
3487
  return j[t][e];
3463
3488
  const r = we(t);
3464
3489
  for (let n = 0; n < r.length; n++) {
3465
- const i = r[n], o = kn(i, e);
3490
+ const i = r[n], o = Vn(i, e);
3466
3491
  if (o)
3467
- return Gn(e, t, o);
3492
+ return jn(e, t, o);
3468
3493
  }
3469
3494
  };
3470
- let Je;
3471
- const ne = Ee({});
3472
- function jn(e) {
3473
- return Je[e] || null;
3495
+ let qe;
3496
+ const ie = Ee({});
3497
+ function kn(e) {
3498
+ return qe[e] || null;
3474
3499
  }
3475
- function Zt(e) {
3476
- return e in Je;
3500
+ function Jt(e) {
3501
+ return e in qe;
3477
3502
  }
3478
- function kn(e, t) {
3479
- if (!Zt(e))
3503
+ function Vn(e, t) {
3504
+ if (!Jt(e))
3480
3505
  return null;
3481
- const r = jn(e);
3482
- return Fn(r, t);
3506
+ const r = kn(e);
3507
+ return Gn(r, t);
3483
3508
  }
3484
- function Vn(e) {
3509
+ function zn(e) {
3485
3510
  if (e == null)
3486
3511
  return;
3487
3512
  const t = we(e);
3488
3513
  for (let r = 0; r < t.length; r++) {
3489
3514
  const n = t[r];
3490
- if (Zt(n))
3515
+ if (Jt(n))
3491
3516
  return n;
3492
3517
  }
3493
3518
  }
3494
- function Wt(e, ...t) {
3495
- delete j[e], ne.update((r) => (r[e] = Xr.all([r[e] || {}, ...t]), r));
3519
+ function Qt(e, ...t) {
3520
+ delete j[e], ie.update((r) => (r[e] = Wr.all([r[e] || {}, ...t]), r));
3496
3521
  }
3497
- re(
3498
- [ne],
3522
+ ne(
3523
+ [ie],
3499
3524
  ([e]) => Object.keys(e)
3500
3525
  );
3501
- ne.subscribe((e) => Je = e);
3526
+ ie.subscribe((e) => qe = e);
3502
3527
  const ge = {};
3503
- function zn(e, t) {
3528
+ function Xn(e, t) {
3504
3529
  ge[e].delete(t), ge[e].size === 0 && delete ge[e];
3505
3530
  }
3506
- function Jt(e) {
3531
+ function qt(e) {
3507
3532
  return ge[e];
3508
3533
  }
3509
- function Xn(e) {
3534
+ function Zn(e) {
3510
3535
  return we(e).map((t) => {
3511
- const r = Jt(t);
3536
+ const r = qt(t);
3512
3537
  return [t, r ? [...r] : []];
3513
3538
  }).filter(([, t]) => t.length > 0);
3514
3539
  }
@@ -3516,31 +3541,31 @@ function Xe(e) {
3516
3541
  return e == null ? !1 : we(e).some(
3517
3542
  (t) => {
3518
3543
  var r;
3519
- return (r = Jt(t)) == null ? void 0 : r.size;
3544
+ return (r = qt(t)) == null ? void 0 : r.size;
3520
3545
  }
3521
3546
  );
3522
3547
  }
3523
- function Zn(e, t) {
3548
+ function Wn(e, t) {
3524
3549
  return Promise.all(
3525
- t.map((n) => (zn(e, n), n().then((i) => i.default || i)))
3526
- ).then((n) => Wt(e, ...n));
3550
+ t.map((n) => (Xn(e, n), n().then((i) => i.default || i)))
3551
+ ).then((n) => Qt(e, ...n));
3527
3552
  }
3528
3553
  const se = {};
3529
- function Qt(e) {
3554
+ function Yt(e) {
3530
3555
  if (!Xe(e))
3531
3556
  return e in se ? se[e] : Promise.resolve();
3532
- const t = Xn(e);
3557
+ const t = Zn(e);
3533
3558
  return se[e] = Promise.all(
3534
3559
  t.map(
3535
- ([r, n]) => Zn(r, n)
3560
+ ([r, n]) => Wn(r, n)
3536
3561
  )
3537
3562
  ).then(() => {
3538
3563
  if (Xe(e))
3539
- return Qt(e);
3564
+ return Yt(e);
3540
3565
  delete se[e];
3541
3566
  }), se[e];
3542
3567
  }
3543
- const Wn = {
3568
+ const Jn = {
3544
3569
  number: {
3545
3570
  scientific: { notation: "scientific" },
3546
3571
  engineering: { notation: "engineering" },
@@ -3569,34 +3594,34 @@ const Wn = {
3569
3594
  timeZoneName: "short"
3570
3595
  }
3571
3596
  }
3572
- }, Jn = {
3597
+ }, Qn = {
3573
3598
  fallbackLocale: null,
3574
3599
  loadingDelay: 200,
3575
- formats: Wn,
3600
+ formats: Jn,
3576
3601
  warnOnMissingMessages: !0,
3577
3602
  handleMissingMessage: void 0,
3578
3603
  ignoreTag: !0
3579
- }, Qn = Jn;
3580
- function te() {
3581
- return Qn;
3604
+ }, qn = Qn;
3605
+ function re() {
3606
+ return qn;
3582
3607
  }
3583
3608
  const Le = Ee(!1);
3584
- var qn = Object.defineProperty, Yn = Object.defineProperties, Kn = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, ei = Object.prototype.hasOwnProperty, ti = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ri = (e, t) => {
3609
+ var Yn = Object.defineProperty, Kn = Object.defineProperties, ei = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, ti = Object.prototype.hasOwnProperty, ri = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ni = (e, t) => {
3585
3610
  for (var r in t || (t = {}))
3586
- ei.call(t, r) && gt(e, r, t[r]);
3587
- if (bt)
3588
- for (var r of bt(t))
3589
- ti.call(t, r) && gt(e, r, t[r]);
3611
+ ti.call(t, r) && xt(e, r, t[r]);
3612
+ if (yt)
3613
+ for (var r of yt(t))
3614
+ ri.call(t, r) && xt(e, r, t[r]);
3590
3615
  return e;
3591
- }, ni = (e, t) => Yn(e, Kn(t));
3616
+ }, ii = (e, t) => Kn(e, ei(t));
3592
3617
  let Ze;
3593
3618
  const ye = Ee(null);
3594
- function yt(e) {
3619
+ function vt(e) {
3595
3620
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3596
3621
  }
3597
- function we(e, t = te().fallbackLocale) {
3598
- const r = yt(e);
3599
- return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
3622
+ function we(e, t = re().fallbackLocale) {
3623
+ const r = vt(e);
3624
+ return t ? [.../* @__PURE__ */ new Set([...r, ...vt(t)])] : r;
3600
3625
  }
3601
3626
  function X() {
3602
3627
  return Ze != null ? Ze : void 0;
@@ -3604,22 +3629,22 @@ function X() {
3604
3629
  ye.subscribe((e) => {
3605
3630
  Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3606
3631
  });
3607
- const ii = (e) => {
3608
- if (e && Vn(e) && Xe(e)) {
3609
- const { loadingDelay: t } = te();
3632
+ const oi = (e) => {
3633
+ if (e && zn(e) && Xe(e)) {
3634
+ const { loadingDelay: t } = re();
3610
3635
  let r;
3611
3636
  return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
3612
3637
  () => Le.set(!0),
3613
3638
  t
3614
- ) : Le.set(!0), Qt(e).then(() => {
3639
+ ) : Le.set(!0), Yt(e).then(() => {
3615
3640
  ye.set(e);
3616
3641
  }).finally(() => {
3617
3642
  clearTimeout(r), Le.set(!1);
3618
3643
  });
3619
3644
  }
3620
3645
  return ye.set(e);
3621
- }, z = ni(ri({}, ye), {
3622
- set: ii
3646
+ }, z = ii(ni({}, ye), {
3647
+ set: oi
3623
3648
  }), He = (e) => {
3624
3649
  const t = /* @__PURE__ */ Object.create(null);
3625
3650
  return (n) => {
@@ -3627,101 +3652,101 @@ const ii = (e) => {
3627
3652
  return i in t ? t[i] : t[i] = e(n);
3628
3653
  };
3629
3654
  };
3630
- var oi = Object.defineProperty, xe = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
3655
+ var si = Object.defineProperty, xe = Object.getOwnPropertySymbols, Kt = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
3631
3656
  for (var r in t || (t = {}))
3632
- qt.call(t, r) && xt(e, r, t[r]);
3657
+ Kt.call(t, r) && Et(e, r, t[r]);
3633
3658
  if (xe)
3634
3659
  for (var r of xe(t))
3635
- Yt.call(t, r) && xt(e, r, t[r]);
3660
+ er.call(t, r) && Et(e, r, t[r]);
3636
3661
  return e;
3637
- }, ie = (e, t) => {
3662
+ }, oe = (e, t) => {
3638
3663
  var r = {};
3639
3664
  for (var n in e)
3640
- qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3665
+ Kt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3641
3666
  if (e != null && xe)
3642
3667
  for (var n of xe(e))
3643
- t.indexOf(n) < 0 && Yt.call(e, n) && (r[n] = e[n]);
3668
+ t.indexOf(n) < 0 && er.call(e, n) && (r[n] = e[n]);
3644
3669
  return r;
3645
3670
  };
3646
3671
  const he = (e, t) => {
3647
- const { formats: r } = te();
3672
+ const { formats: r } = re();
3648
3673
  if (e in r && t in r[e])
3649
3674
  return r[e][t];
3650
3675
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3651
- }, si = He(
3676
+ }, ai = He(
3652
3677
  (e) => {
3653
- var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
3678
+ var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
3654
3679
  if (r == null)
3655
3680
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3656
3681
  return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
3657
3682
  }
3658
- ), ai = He(
3683
+ ), li = He(
3659
3684
  (e) => {
3660
- var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
3685
+ var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
3661
3686
  if (r == null)
3662
3687
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3663
3688
  return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
3664
3689
  }
3665
- ), li = He(
3690
+ ), ui = He(
3666
3691
  (e) => {
3667
- var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
3692
+ var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
3668
3693
  if (r == null)
3669
3694
  throw new Error(
3670
3695
  '[svelte-i18n] A "locale" must be set to format time values'
3671
3696
  );
3672
3697
  return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
3673
3698
  }
3674
- ), ui = (e = {}) => {
3699
+ ), hi = (e = {}) => {
3675
3700
  var t = e, {
3676
3701
  locale: r = X()
3677
- } = t, n = ie(t, [
3702
+ } = t, n = oe(t, [
3678
3703
  "locale"
3679
3704
  ]);
3680
- return si(Qe({ locale: r }, n));
3681
- }, hi = (e = {}) => {
3705
+ return ai(Ye({ locale: r }, n));
3706
+ }, ci = (e = {}) => {
3682
3707
  var t = e, {
3683
3708
  locale: r = X()
3684
- } = t, n = ie(t, [
3709
+ } = t, n = oe(t, [
3685
3710
  "locale"
3686
3711
  ]);
3687
- return ai(Qe({ locale: r }, n));
3688
- }, ci = (e = {}) => {
3712
+ return li(Ye({ locale: r }, n));
3713
+ }, fi = (e = {}) => {
3689
3714
  var t = e, {
3690
3715
  locale: r = X()
3691
- } = t, n = ie(t, [
3716
+ } = t, n = oe(t, [
3692
3717
  "locale"
3693
3718
  ]);
3694
- return li(Qe({ locale: r }, n));
3695
- }, fi = He(
3719
+ return ui(Ye({ locale: r }, n));
3720
+ }, mi = He(
3696
3721
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3697
- (e, t = X()) => new Un(e, t, te().formats, {
3698
- ignoreTag: te().ignoreTag
3722
+ (e, t = X()) => new Fn(e, t, re().formats, {
3723
+ ignoreTag: re().ignoreTag
3699
3724
  })
3700
- ), mi = (e, t = {}) => {
3725
+ ), pi = (e, t = {}) => {
3701
3726
  var r, n, i, o;
3702
3727
  let s = t;
3703
3728
  typeof e == "object" && (s = e, e = s.id);
3704
3729
  const {
3705
3730
  values: a,
3706
- locale: h = X(),
3731
+ locale: u = X(),
3707
3732
  default: l
3708
3733
  } = s;
3709
- if (h == null)
3734
+ if (u == null)
3710
3735
  throw new Error(
3711
3736
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3712
3737
  );
3713
- let u = Xt(e, h);
3714
- if (!u)
3715
- 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;
3716
- else if (typeof u != "string")
3738
+ let h = Wt(e, u);
3739
+ if (!h)
3740
+ h = (o = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3741
+ else if (typeof h != "string")
3717
3742
  return console.warn(
3718
- `[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.`
3719
- ), u;
3743
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3744
+ ), h;
3720
3745
  if (!a)
3721
- return u;
3722
- let c = u;
3746
+ return h;
3747
+ let c = h;
3723
3748
  try {
3724
- c = fi(u, h).format(a);
3749
+ c = mi(h, u).format(a);
3725
3750
  } catch (f) {
3726
3751
  f instanceof Error && console.warn(
3727
3752
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3729,20 +3754,20 @@ const he = (e, t) => {
3729
3754
  );
3730
3755
  }
3731
3756
  return c;
3732
- }, pi = (e, t) => ci(t).format(e), di = (e, t) => hi(t).format(e), bi = (e, t) => ui(t).format(e), gi = (e, t = X()) => Xt(e, t), yi = re([z, ne], () => mi);
3733
- re([z], () => pi);
3734
- re([z], () => di);
3735
- re([z], () => bi);
3736
- re([z, ne], () => gi);
3737
- function xi({ withLocale: e, translations: t }) {
3757
+ }, di = (e, t) => fi(t).format(e), bi = (e, t) => ci(t).format(e), gi = (e, t) => hi(t).format(e), yi = (e, t = X()) => Wt(e, t), xi = ne([z, ie], () => pi);
3758
+ ne([z], () => di);
3759
+ ne([z], () => bi);
3760
+ ne([z], () => gi);
3761
+ ne([z, ie], () => yi);
3762
+ function vi({ withLocale: e, translations: t }) {
3738
3763
  z.subscribe((r) => {
3739
- r == null && (ne.set(t), z.set(e));
3764
+ r == null && (ie.set(t), z.set(e));
3740
3765
  });
3741
3766
  }
3742
- function vt(e, t) {
3743
- Wt(e, t);
3767
+ function _t(e, t) {
3768
+ Qt(e, t);
3744
3769
  }
3745
- const Et = {
3770
+ const St = {
3746
3771
  en: {
3747
3772
  sortby: "Sort by:",
3748
3773
  all: "All",
@@ -3870,84 +3895,84 @@ const Et = {
3870
3895
  hottest: "Hottest"
3871
3896
  }
3872
3897
  };
3873
- function vi(e) {
3874
- sr(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)}}');
3898
+ function Ei(e) {
3899
+ lr(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)}}');
3875
3900
  }
3876
- function _t(e, t, r) {
3901
+ function wt(e, t, r) {
3877
3902
  const n = e.slice();
3878
3903
  return n[23] = t[r], n;
3879
3904
  }
3880
- function Ei(e) {
3881
- let t, r, n, i, o, s, a, h, l, u, c, f = (
3905
+ function _i(e) {
3906
+ let t, r, n, i, o, s, a, u, l, h, c, f = (
3882
3907
  /*$_*/
3883
3908
  e[4]("sortby") + ""
3884
- ), p, b, S, w, M = (
3909
+ ), p, g, E, N, P = (
3885
3910
  /*vendorSortingBy*/
3886
3911
  (e[3] || /*$_*/
3887
3912
  e[4]("all")) + ""
3888
- ), C, N, I, T, L, U, d, H, $, oe, me, Ae, qe, Z = st(Object.values(
3913
+ ), M, B, C, H, L, U, Z, d, w, $, me, Ae, Ke, W = lt(Object.values(
3889
3914
  /*vendorMap*/
3890
3915
  e[5]
3891
- )), P = [];
3892
- for (let _ = 0; _ < Z.length; _ += 1)
3893
- P[_] = St(_t(e, Z, _));
3916
+ )), O = [];
3917
+ for (let S = 0; S < W.length; S += 1)
3918
+ O[S] = Ht(wt(e, W, S));
3894
3919
  return {
3895
3920
  c() {
3896
- t = A("div"), r = A("div"), n = A("div"), i = k("svg"), o = k("g"), s = k("path"), a = k("path"), h = k("path"), l = V(), u = A("div"), c = A("span"), p = Me(f), b = V(), S = A("div"), w = A("span"), C = Me(M), N = V(), I = A("span"), T = k("svg"), L = k("path"), H = V(), $ = A("div"), oe = A("ul");
3897
- for (let _ = 0; _ < P.length; _ += 1)
3898
- P[_].c();
3899
- 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(T, "xmlns", "http://www.w3.org/2000/svg"), m(T, "width", "14"), m(T, "height", "6.835"), m(T, "viewBox", "0 0 14 6.835"), m(I, "class", U = "TriangleInactive " + /*isSorterActive*/
3900
- (e[1] ? "TriangleActive" : "")), m(r, "class", d = "SorterSelector " + /*isSorterActive*/
3901
- (e[1] ? "SorterSelectorOpen" : "")), m(oe, "class", "SorterDropdown"), m($, "class", me = "SorterDropdownContainer " + /*isSorterActive*/
3921
+ t = A("div"), r = A("div"), n = A("div"), i = k("svg"), o = k("g"), s = k("path"), a = k("path"), u = k("path"), l = V(), h = A("div"), c = A("span"), p = Me(f), g = V(), E = A("div"), N = A("span"), M = Me(P), B = V(), C = A("span"), H = k("svg"), L = k("path"), d = V(), w = A("div"), $ = A("ul");
3922
+ for (let S = 0; S < O.length; S += 1)
3923
+ O[S].c();
3924
+ 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(u, "id", "Path_5269"), m(u, "data-name", "Path 5269"), m(u, "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(u, "transform", "translate(-412.896 0)"), m(u, "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(h, "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(H, "xmlns", "http://www.w3.org/2000/svg"), m(H, "width", "14"), m(H, "height", "6.835"), m(H, "viewBox", "0 0 14 6.835"), m(C, "class", U = "TriangleInactive " + /*isSorterActive*/
3925
+ (e[1] ? "TriangleActive" : "")), m(r, "class", Z = "SorterSelector " + /*isSorterActive*/
3926
+ (e[1] ? "SorterSelectorOpen" : "")), m($, "class", "SorterDropdown"), m(w, "class", me = "SorterDropdownContainer " + /*isSorterActive*/
3902
3927
  (e[1] ? "SorterOpen" : "")), m(t, "class", "SorterContainer");
3903
3928
  },
3904
- m(_, F) {
3905
- ve(_, t, F), 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, N), v(r, I), v(I, T), v(T, L), v(t, H), v(t, $), v($, oe);
3906
- for (let B = 0; B < P.length; B += 1)
3907
- P[B] && P[B].m(oe, null);
3908
- Ae || (qe = Tt(
3929
+ m(S, F) {
3930
+ ve(S, t, F), v(t, r), v(r, n), v(n, i), v(i, o), v(o, s), v(o, a), v(o, u), v(n, l), v(n, h), v(h, c), v(c, p), v(h, g), v(h, E), v(E, N), v(N, M), v(r, B), v(r, C), v(C, H), v(H, L), v(t, d), v(t, w), v(w, $);
3931
+ for (let T = 0; T < O.length; T += 1)
3932
+ O[T] && O[T].m($, null);
3933
+ Ae || (Ke = Nt(
3909
3934
  r,
3910
3935
  "click",
3911
3936
  /*click_handler*/
3912
3937
  e[14]
3913
3938
  ), Ae = !0);
3914
3939
  },
3915
- p(_, F) {
3940
+ p(S, F) {
3916
3941
  if (F & /*$_*/
3917
3942
  16 && f !== (f = /*$_*/
3918
- _[4]("sortby") + "") && it(p, f), F & /*vendorSortingBy, $_*/
3919
- 24 && M !== (M = /*vendorSortingBy*/
3920
- (_[3] || /*$_*/
3921
- _[4]("all")) + "") && it(C, M), F & /*isSorterActive*/
3943
+ S[4]("sortby") + "") && st(p, f), F & /*vendorSortingBy, $_*/
3944
+ 24 && P !== (P = /*vendorSortingBy*/
3945
+ (S[3] || /*$_*/
3946
+ S[4]("all")) + "") && st(M, P), F & /*isSorterActive*/
3922
3947
  2 && U !== (U = "TriangleInactive " + /*isSorterActive*/
3923
- (_[1] ? "TriangleActive" : "")) && m(I, "class", U), F & /*isSorterActive*/
3924
- 2 && d !== (d = "SorterSelector " + /*isSorterActive*/
3925
- (_[1] ? "SorterSelectorOpen" : "")) && m(r, "class", d), F & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
3948
+ (S[1] ? "TriangleActive" : "")) && m(C, "class", U), F & /*isSorterActive*/
3949
+ 2 && Z !== (Z = "SorterSelector " + /*isSorterActive*/
3950
+ (S[1] ? "SorterSelectorOpen" : "")) && m(r, "class", Z), F & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
3926
3951
  120) {
3927
- Z = st(Object.values(
3952
+ W = lt(Object.values(
3928
3953
  /*vendorMap*/
3929
- _[5]
3954
+ S[5]
3930
3955
  ));
3931
- let B;
3932
- for (B = 0; B < Z.length; B += 1) {
3933
- const Ye = _t(_, Z, B);
3934
- P[B] ? P[B].p(Ye, F) : (P[B] = St(Ye), P[B].c(), P[B].m(oe, null));
3956
+ let T;
3957
+ for (T = 0; T < W.length; T += 1) {
3958
+ const et = wt(S, W, T);
3959
+ O[T] ? O[T].p(et, F) : (O[T] = Ht(et), O[T].c(), O[T].m($, null));
3935
3960
  }
3936
- for (; B < P.length; B += 1)
3937
- P[B].d(1);
3938
- P.length = Z.length;
3961
+ for (; T < O.length; T += 1)
3962
+ O[T].d(1);
3963
+ O.length = W.length;
3939
3964
  }
3940
3965
  F & /*isSorterActive*/
3941
3966
  2 && me !== (me = "SorterDropdownContainer " + /*isSorterActive*/
3942
- (_[1] ? "SorterOpen" : "")) && m($, "class", me);
3967
+ (S[1] ? "SorterOpen" : "")) && m(w, "class", me);
3943
3968
  },
3944
- d(_) {
3945
- _ && fe(t), ur(P, _), Ae = !1, qe();
3969
+ d(S) {
3970
+ S && fe(t), cr(O, S), Ae = !1, Ke();
3946
3971
  }
3947
3972
  };
3948
3973
  }
3949
- function St(e) {
3950
- let t, r, n, i, o, s, a, h, l, u, c;
3974
+ function Ht(e) {
3975
+ let t, r, n, i, o, s, a, u, l, h, c;
3951
3976
  function f() {
3952
3977
  return (
3953
3978
  /*click_handler_1*/
@@ -3959,7 +3984,7 @@ function St(e) {
3959
3984
  }
3960
3985
  return {
3961
3986
  c() {
3962
- t = A("li"), r = A("label"), n = A("input"), o = V(), s = A("span"), a = V(), h = A("span"), h.textContent = `${/*sort*/
3987
+ t = A("li"), r = A("label"), n = A("input"), o = V(), s = A("span"), a = V(), u = A("span"), u.textContent = `${/*sort*/
3963
3988
  e[23]}`, l = V(), m(n, "type", "radio"), m(n, "name", "radio"), n.value = /*sort*/
3964
3989
  e[23], n.checked = i = /*vendorSortingBy*/
3965
3990
  e[3] == /*sort*/
@@ -3971,11 +3996,11 @@ function St(e) {
3971
3996
  ), m(s, "class", "SortersCheckmark"), m(r, "class", "SorterLabel CustomRadioButton"), m(t, "class", "SorterItem"), t.value = /*sort*/
3972
3997
  e[23];
3973
3998
  },
3974
- m(p, b) {
3975
- ve(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 = Tt(n, "click", f), u = !0);
3999
+ m(p, g) {
4000
+ ve(p, t, g), v(t, r), v(r, n), v(r, o), v(r, s), v(r, a), v(r, u), v(t, l), h || (c = Nt(n, "click", f), h = !0);
3976
4001
  },
3977
- p(p, b) {
3978
- e = p, b & /*vendorSortingBy, $_*/
4002
+ p(p, g) {
4003
+ e = p, g & /*vendorSortingBy, $_*/
3979
4004
  24 && i !== (i = /*vendorSortingBy*/
3980
4005
  e[3] == /*sort*/
3981
4006
  e[23] ? !0 : (
@@ -3986,15 +4011,16 @@ function St(e) {
3986
4011
  )) && (n.checked = i);
3987
4012
  },
3988
4013
  d(p) {
3989
- p && fe(t), u = !1, c();
4014
+ p && fe(t), h = !1, c();
3990
4015
  }
3991
4016
  };
3992
4017
  }
3993
- function _i(e) {
4018
+ function Si(e) {
3994
4019
  let t;
3995
4020
  function r(o, s) {
3996
4021
  if (!/*isLoading*/
3997
- o[2]) return Ei;
4022
+ o[2])
4023
+ return _i;
3998
4024
  }
3999
4025
  let n = r(e), i = n && n(e);
4000
4026
  return {
@@ -4014,101 +4040,101 @@ function _i(e) {
4014
4040
  }
4015
4041
  };
4016
4042
  }
4017
- function Si(e, t, r) {
4043
+ function wi(e, t, r) {
4018
4044
  let n;
4019
- or(e, yi, (d) => r(4, n = d));
4020
- 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";
4021
- xi({ withLocale: "en", translations: {} });
4022
- const S = () => {
4023
- fetch(o).then((H) => H.json()).then((H) => {
4024
- Object.keys(H).forEach(($) => {
4025
- vt($, H[$]);
4045
+ ar(e, xi, (d) => r(4, n = d));
4046
+ let { lang: i = "" } = t, { translationurl: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { categoryid: u = "" } = t, { mbsource: l } = t, h, c, f = !1, p = !0, g = "", E = "All";
4047
+ vi({ withLocale: "en", translations: {} });
4048
+ const N = () => {
4049
+ fetch(o).then((w) => w.json()).then((w) => {
4050
+ Object.keys(w).forEach(($) => {
4051
+ _t($, w[$]);
4026
4052
  });
4027
- }).catch((H) => {
4028
- console.log(H);
4053
+ }).catch((w) => {
4054
+ console.log(w);
4029
4055
  });
4030
4056
  };
4031
- Object.keys(Et).forEach((d) => {
4032
- vt(d, Et[d]);
4057
+ Object.keys(St).forEach((d) => {
4058
+ _t(d, St[d]);
4033
4059
  });
4034
- const w = {
4060
+ const P = {
4035
4061
  All: n("all"),
4036
4062
  name: n("az"),
4037
4063
  isNew: n("newest"),
4038
4064
  "advancedTags(name(hot))": n("hottest")
4039
4065
  }, M = () => {
4040
- var H;
4041
- r(3, b = "All"), r(2, f = !1), r(1, c = !1);
4042
- let d = (H = JSON.parse(localStorage.getItem("vendorSortingBy"))) == null ? void 0 : H[h];
4043
- d ? r(3, b = d) : r(3, b = "All"), r(3, b = w[d]);
4044
- }, C = (d) => {
4045
- r(3, b = d);
4046
- let H = localStorage.getItem("vendorSortingBy");
4047
- p = d;
4048
- for (let $ in w)
4049
- if (w[$] === d) {
4050
- p = $;
4066
+ var w;
4067
+ r(3, E = "All"), r(2, p = !1), r(1, f = !1);
4068
+ let d = (w = JSON.parse(localStorage.getItem("vendorSortingBy"))) == null ? void 0 : w[u];
4069
+ d ? r(3, E = d) : r(3, E = "All"), r(3, E = P[d]);
4070
+ }, B = (d) => {
4071
+ r(3, E = d);
4072
+ let w = localStorage.getItem("vendorSortingBy");
4073
+ g = d;
4074
+ for (let $ in P)
4075
+ if (P[$] === d) {
4076
+ g = $;
4051
4077
  break;
4052
4078
  }
4053
- H == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [h]: p })) : (H = JSON.parse(H), H[h] = p, localStorage.setItem("vendorSortingBy", JSON.stringify(H))), window.postMessage(
4079
+ w == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [u]: g })) : (w = JSON.parse(w), w[u] = g, localStorage.setItem("vendorSortingBy", JSON.stringify(w))), window.postMessage(
4054
4080
  {
4055
4081
  type: "ApplySorter",
4056
- sortBy: p,
4057
- itemId: h
4082
+ sortBy: g,
4083
+ itemId: u
4058
4084
  },
4059
4085
  window.location.href
4060
- ), r(1, c = !c);
4061
- }, N = () => {
4062
- r(1, c = !c), window.postMessage({ type: "SortingOpened" }, window.location.href);
4063
- }, I = (d) => {
4064
- d.data.type == "FilterOpened" && r(1, c = !1);
4086
+ ), r(1, f = !f);
4087
+ }, C = () => {
4088
+ r(1, f = !f), window.postMessage({ type: "SortingOpened" }, window.location.href);
4089
+ }, H = (d) => {
4090
+ d.data.type == "FilterOpened" && r(1, f = !1);
4065
4091
  };
4066
- mr(() => (window.addEventListener("message", I, !1), () => {
4067
- window.removeEventListener("message", I);
4092
+ dr(() => (window.addEventListener("message", H, !1), () => {
4093
+ window.emMessageBus != null && h && h.unsubscribe(), window.removeEventListener("message", H);
4068
4094
  }));
4069
- const T = () => N(), L = (d) => C(d);
4070
- function U(d) {
4095
+ const L = () => C(), U = (d) => B(d);
4096
+ function Z(d) {
4071
4097
  Re[d ? "unshift" : "push"](() => {
4072
- u = d, r(0, u);
4098
+ c = d, r(0, c);
4073
4099
  });
4074
4100
  }
4075
4101
  return e.$$set = (d) => {
4076
- "lang" in d && r(8, i = d.lang), "translationurl" in d && r(9, o = d.translationurl), "clientstyling" in d && r(10, s = d.clientstyling), "clientstylingurl" in d && r(11, a = d.clientstylingurl), "categoryid" in d && r(12, h = d.categoryid), "mbsource" in d && r(13, l = d.mbsource);
4102
+ "lang" in d && r(8, i = d.lang), "translationurl" in d && r(9, o = d.translationurl), "clientstyling" in d && r(10, s = d.clientstyling), "clientstylingurl" in d && r(11, a = d.clientstylingurl), "categoryid" in d && r(12, u = d.categoryid), "mbsource" in d && r(13, l = d.mbsource);
4077
4103
  }, e.$$.update = () => {
4078
4104
  e.$$.dirty & /*categoryid*/
4079
- 4096 && h && M(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4080
- 1025 && s && u && Tr(u, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4081
- 2049 && a && u && Br(u, a), e.$$.dirty & /*customStylingContainer, mbsource*/
4082
- 8193 && u && Nr(u, `${l}.Style`), e.$$.dirty & /*translationurl*/
4083
- 512 && o && S();
4105
+ 4096 && u && M(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4106
+ 1025 && s && c && Nr(c, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4107
+ 2049 && a && c && Pr(c, a), e.$$.dirty & /*customStylingContainer, mbsource*/
4108
+ 8193 && c && Or(c, `${l}.Style`), e.$$.dirty & /*translationurl*/
4109
+ 512 && o && N();
4084
4110
  }, [
4085
- u,
4086
4111
  c,
4087
4112
  f,
4088
- b,
4113
+ p,
4114
+ E,
4089
4115
  n,
4090
- w,
4116
+ P,
4117
+ B,
4091
4118
  C,
4092
- N,
4093
4119
  i,
4094
4120
  o,
4095
4121
  s,
4096
4122
  a,
4097
- h,
4123
+ u,
4098
4124
  l,
4099
- T,
4100
4125
  L,
4101
- U
4126
+ U,
4127
+ Z
4102
4128
  ];
4103
4129
  }
4104
- class wi extends Hr {
4130
+ class Hi extends Tr {
4105
4131
  constructor(t) {
4106
- super(), Sr(
4132
+ super(), Hr(
4107
4133
  this,
4108
4134
  t,
4135
+ wi,
4109
4136
  Si,
4110
- _i,
4111
- Ht,
4137
+ Tt,
4112
4138
  {
4113
4139
  lang: 8,
4114
4140
  translationurl: 9,
@@ -4117,7 +4143,7 @@ class wi extends Hr {
4117
4143
  categoryid: 12,
4118
4144
  mbsource: 13
4119
4145
  },
4120
- vi
4146
+ Ei
4121
4147
  );
4122
4148
  }
4123
4149
  get lang() {
@@ -4157,7 +4183,7 @@ class wi extends Hr {
4157
4183
  this.$$set({ mbsource: t }), G();
4158
4184
  }
4159
4185
  }
4160
- wr(wi, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, mbsource: {} }, [], [], !0);
4186
+ Ar(Hi, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, mbsource: {} }, [], [], !0);
4161
4187
  export {
4162
- wi as default
4188
+ Hi as default
4163
4189
  };