@everymatrix/casino-sort 1.54.0 → 1.54.2

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,75 +1,46 @@
1
- var er = Object.defineProperty, tr = Object.defineProperties;
2
- var rr = Object.getOwnPropertyDescriptors;
3
- var et = Object.getOwnPropertySymbols;
4
- var nr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable;
5
- var Te = (e, t, r) => t in e ? er(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
6
- for (var r in t || (t = {}))
7
- nr.call(t, r) && Te(e, r, t[r]);
8
- if (et)
9
- for (var r of et(t))
10
- ir.call(t, r) && Te(e, r, t[r]);
11
- return e;
12
- }, rt = (e, t) => tr(e, rr(t));
13
- var R = (e, t, r) => Te(e, typeof t != "symbol" ? t + "" : t, r);
14
- var nt = (e, t, r) => new Promise((n, i) => {
15
- var o = (l) => {
16
- try {
17
- u(r.next(l));
18
- } catch (a) {
19
- i(a);
20
- }
21
- }, s = (l) => {
22
- try {
23
- u(r.throw(l));
24
- } catch (a) {
25
- i(a);
26
- }
27
- }, u = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
28
- u((r = r.apply(e, t)).next());
29
- });
30
- function D() {
1
+ function $() {
31
2
  }
32
- function Ht(e) {
3
+ function xt(e) {
33
4
  return e();
34
5
  }
35
- function it() {
6
+ function Ye() {
36
7
  return /* @__PURE__ */ Object.create(null);
37
8
  }
38
- function fe(e) {
39
- e.forEach(Ht);
9
+ function he(e) {
10
+ e.forEach(xt);
40
11
  }
41
- function We(e) {
12
+ function Xe(e) {
42
13
  return typeof e == "function";
43
14
  }
44
- function At(e, t) {
15
+ function Et(e, t) {
45
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
17
  }
47
- function or(e) {
18
+ function Wt(e) {
48
19
  return Object.keys(e).length === 0;
49
20
  }
50
- function Tt(e, ...t) {
21
+ function vt(e, ...t) {
51
22
  if (e == null) {
52
23
  for (const n of t)
53
24
  n(void 0);
54
- return D;
25
+ return $;
55
26
  }
56
27
  const r = e.subscribe(...t);
57
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
29
  }
59
- function sr(e, t, r) {
60
- e.$$.on_destroy.push(Tt(t, r));
30
+ function Jt(e, t, r) {
31
+ e.$$.on_destroy.push(vt(t, r));
61
32
  }
62
33
  function E(e, t) {
63
34
  e.appendChild(t);
64
35
  }
65
- function ar(e, t, r) {
66
- const n = ur(e);
36
+ function Qt(e, t, r) {
37
+ const n = qt(e);
67
38
  if (!n.getElementById(t)) {
68
39
  const i = A("style");
69
- i.id = t, i.textContent = r, lr(n, i);
40
+ i.id = t, i.textContent = r, Yt(n, i);
70
41
  }
71
42
  }
72
- function ur(e) {
43
+ function qt(e) {
73
44
  if (!e) return document;
74
45
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
75
46
  return t && /** @type {ShadowRoot} */
@@ -78,49 +49,49 @@ function ur(e) {
78
49
  t
79
50
  ) : e.ownerDocument;
80
51
  }
81
- function lr(e, t) {
52
+ function Yt(e, t) {
82
53
  return E(
83
54
  /** @type {Document} */
84
55
  e.head || e,
85
56
  t
86
57
  ), t.sheet;
87
58
  }
88
- function Ee(e, t, r) {
59
+ function xe(e, t, r) {
89
60
  e.insertBefore(t, r || null);
90
61
  }
91
- function ce(e) {
62
+ function fe(e) {
92
63
  e.parentNode && e.parentNode.removeChild(e);
93
64
  }
94
- function hr(e, t) {
65
+ function Kt(e, t) {
95
66
  for (let r = 0; r < e.length; r += 1)
96
67
  e[r] && e[r].d(t);
97
68
  }
98
69
  function A(e) {
99
70
  return document.createElement(e);
100
71
  }
101
- function j(e) {
72
+ function G(e) {
102
73
  return document.createElementNS("http://www.w3.org/2000/svg", e);
103
74
  }
104
- function Me(e) {
75
+ function Ce(e) {
105
76
  return document.createTextNode(e);
106
77
  }
107
- function V() {
108
- return Me(" ");
78
+ function k() {
79
+ return Ce(" ");
109
80
  }
110
- function Bt(e, t, r, n) {
81
+ function _t(e, t, r, n) {
111
82
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
112
83
  }
113
84
  function p(e, t, r) {
114
85
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
115
86
  }
116
- function fr(e) {
87
+ function er(e) {
117
88
  return Array.from(e.childNodes);
118
89
  }
119
- function ot(e, t) {
90
+ function Ke(e, t) {
120
91
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
121
92
  t);
122
93
  }
123
- function cr(e) {
94
+ function tr(e) {
124
95
  const t = {};
125
96
  return e.childNodes.forEach(
126
97
  /** @param {Element} node */
@@ -129,248 +100,244 @@ function cr(e) {
129
100
  }
130
101
  ), t;
131
102
  }
132
- let ue;
133
- function ae(e) {
134
- ue = e;
103
+ let ae;
104
+ function se(e) {
105
+ ae = e;
135
106
  }
136
- function pr() {
137
- if (!ue) throw new Error("Function called outside component initialization");
138
- return ue;
107
+ function rr() {
108
+ if (!ae) throw new Error("Function called outside component initialization");
109
+ return ae;
139
110
  }
140
- function mr(e) {
141
- pr().$$.on_mount.push(e);
111
+ function nr(e) {
112
+ rr().$$.on_mount.push(e);
142
113
  }
143
- const q = [], Re = [];
144
- let Y = [];
145
- const st = [], dr = /* @__PURE__ */ Promise.resolve();
146
- let $e = !1;
147
- function br() {
148
- $e || ($e = !0, dr.then(k));
114
+ const Q = [], Le = [];
115
+ let q = [];
116
+ const et = [], ir = /* @__PURE__ */ Promise.resolve();
117
+ let Me = !1;
118
+ function or() {
119
+ Me || (Me = !0, ir.then(j));
149
120
  }
150
- function De(e) {
151
- Y.push(e);
121
+ function Re(e) {
122
+ q.push(e);
152
123
  }
153
- const Be = /* @__PURE__ */ new Set();
154
- let J = 0;
155
- function k() {
156
- if (J !== 0)
124
+ const Ae = /* @__PURE__ */ new Set();
125
+ let W = 0;
126
+ function j() {
127
+ if (W !== 0)
157
128
  return;
158
- const e = ue;
129
+ const e = ae;
159
130
  do {
160
131
  try {
161
- for (; J < q.length; ) {
162
- const t = q[J];
163
- J++, ae(t), gr(t.$$);
132
+ for (; W < Q.length; ) {
133
+ const t = Q[W];
134
+ W++, se(t), sr(t.$$);
164
135
  }
165
136
  } catch (t) {
166
- throw q.length = 0, J = 0, t;
137
+ throw Q.length = 0, W = 0, t;
167
138
  }
168
- for (ae(null), q.length = 0, J = 0; Re.length; ) Re.pop()();
169
- for (let t = 0; t < Y.length; t += 1) {
170
- const r = Y[t];
171
- Be.has(r) || (Be.add(r), r());
139
+ for (se(null), Q.length = 0, W = 0; Le.length; ) Le.pop()();
140
+ for (let t = 0; t < q.length; t += 1) {
141
+ const r = q[t];
142
+ Ae.has(r) || (Ae.add(r), r());
172
143
  }
173
- Y.length = 0;
174
- } while (q.length);
175
- for (; st.length; )
176
- st.pop()();
177
- $e = !1, Be.clear(), ae(e);
144
+ q.length = 0;
145
+ } while (Q.length);
146
+ for (; et.length; )
147
+ et.pop()();
148
+ Me = !1, Ae.clear(), se(e);
178
149
  }
179
- function gr(e) {
150
+ function sr(e) {
180
151
  if (e.fragment !== null) {
181
- e.update(), fe(e.before_update);
152
+ e.update(), he(e.before_update);
182
153
  const t = e.dirty;
183
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(De);
154
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
184
155
  }
185
156
  }
186
- function yr(e) {
157
+ function ar(e) {
187
158
  const t = [], r = [];
188
- Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
159
+ q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
189
160
  }
190
- const xr = /* @__PURE__ */ new Set();
191
- function Er(e, t) {
192
- e && e.i && (xr.delete(e), e.i(t));
161
+ const ur = /* @__PURE__ */ new Set();
162
+ function lr(e, t) {
163
+ e && e.i && (ur.delete(e), e.i(t));
193
164
  }
194
- function at(e) {
195
- return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
165
+ function tt(e) {
166
+ return e?.length !== void 0 ? e : Array.from(e);
196
167
  }
197
- function vr(e, t, r) {
168
+ function hr(e, t, r) {
198
169
  const { fragment: n, after_update: i } = e.$$;
199
- n && n.m(t, r), De(() => {
200
- const o = e.$$.on_mount.map(Ht).filter(We);
201
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : fe(o), e.$$.on_mount = [];
202
- }), i.forEach(De);
170
+ n && n.m(t, r), Re(() => {
171
+ const o = e.$$.on_mount.map(xt).filter(Xe);
172
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : he(o), e.$$.on_mount = [];
173
+ }), i.forEach(Re);
203
174
  }
204
- function _r(e, t) {
175
+ function fr(e, t) {
205
176
  const r = e.$$;
206
- r.fragment !== null && (yr(r.after_update), fe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
177
+ r.fragment !== null && (ar(r.after_update), he(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
207
178
  }
208
- function Sr(e, t) {
209
- e.$$.dirty[0] === -1 && (q.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
179
+ function cr(e, t) {
180
+ e.$$.dirty[0] === -1 && (Q.push(e), or(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
210
181
  }
211
- function wr(e, t, r, n, i, o, s = null, u = [-1]) {
212
- const l = ue;
213
- ae(e);
214
- const a = e.$$ = {
182
+ function pr(e, t, r, n, i, o, s = null, a = [-1]) {
183
+ const h = ae;
184
+ se(e);
185
+ const u = e.$$ = {
215
186
  fragment: null,
216
187
  ctx: [],
217
188
  // state
218
189
  props: o,
219
- update: D,
190
+ update: $,
220
191
  not_equal: i,
221
- bound: it(),
192
+ bound: Ye(),
222
193
  // lifecycle
223
194
  on_mount: [],
224
195
  on_destroy: [],
225
196
  on_disconnect: [],
226
197
  before_update: [],
227
198
  after_update: [],
228
- context: new Map(t.context || (l ? l.$$.context : [])),
199
+ context: new Map(t.context || (h ? h.$$.context : [])),
229
200
  // everything else
230
- callbacks: it(),
231
- dirty: u,
201
+ callbacks: Ye(),
202
+ dirty: a,
232
203
  skip_bound: !1,
233
- root: t.target || l.$$.root
204
+ root: t.target || h.$$.root
234
205
  };
235
- s && s(a.root);
236
- let h = !1;
237
- if (a.ctx = r(e, t.props || {}, (c, f, ...m) => {
206
+ s && s(u.root);
207
+ let l = !1;
208
+ if (u.ctx = r(e, t.props || {}, (c, f, ...m) => {
238
209
  const x = m.length ? m[0] : f;
239
- return a.ctx && i(a.ctx[c], a.ctx[c] = x) && (!a.skip_bound && a.bound[c] && a.bound[c](x), h && Sr(e, c)), f;
240
- }), a.update(), h = !0, fe(a.before_update), a.fragment = n(a.ctx), t.target) {
210
+ return u.ctx && i(u.ctx[c], u.ctx[c] = x) && (!u.skip_bound && u.bound[c] && u.bound[c](x), l && cr(e, c)), f;
211
+ }), u.update(), l = !0, he(u.before_update), u.fragment = n(u.ctx), t.target) {
241
212
  if (t.hydrate) {
242
- const c = fr(t.target);
243
- a.fragment && a.fragment.l(c), c.forEach(ce);
213
+ const c = er(t.target);
214
+ u.fragment && u.fragment.l(c), c.forEach(fe);
244
215
  } else
245
- a.fragment && a.fragment.c();
246
- t.intro && Er(e.$$.fragment), vr(e, t.target, t.anchor), k();
216
+ u.fragment && u.fragment.c();
217
+ t.intro && lr(e.$$.fragment), hr(e, t.target, t.anchor), j();
247
218
  }
248
- ae(l);
249
- }
250
- let Nt;
251
- typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
252
- constructor(t, r, n) {
253
- super();
254
- /** The Svelte component constructor */
255
- R(this, "$$ctor");
256
- /** Slots */
257
- R(this, "$$s");
258
- /** The Svelte component instance */
259
- R(this, "$$c");
260
- /** Whether or not the custom element is connected */
261
- R(this, "$$cn", !1);
262
- /** Component props data */
263
- R(this, "$$d", {});
264
- /** `true` if currently in the process of reflecting component props back to attributes */
265
- R(this, "$$r", !1);
266
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
267
- R(this, "$$p_d", {});
268
- /** @type {Record<string, Function[]>} Event listeners */
269
- R(this, "$$l", {});
270
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
271
- R(this, "$$l_u", /* @__PURE__ */ new Map());
272
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
219
+ se(h);
220
+ }
221
+ let St;
222
+ typeof HTMLElement == "function" && (St = class extends HTMLElement {
223
+ /** The Svelte component constructor */
224
+ $$ctor;
225
+ /** Slots */
226
+ $$s;
227
+ /** The Svelte component instance */
228
+ $$c;
229
+ /** Whether or not the custom element is connected */
230
+ $$cn = !1;
231
+ /** Component props data */
232
+ $$d = {};
233
+ /** `true` if currently in the process of reflecting component props back to attributes */
234
+ $$r = !1;
235
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
236
+ $$p_d = {};
237
+ /** @type {Record<string, Function[]>} Event listeners */
238
+ $$l = {};
239
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
240
+ $$l_u = /* @__PURE__ */ new Map();
241
+ constructor(e, t, r) {
242
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
273
243
  }
274
- addEventListener(t, r, n) {
275
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
276
- const i = this.$$c.$on(t, r);
277
- this.$$l_u.set(r, i);
244
+ addEventListener(e, t, r) {
245
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
246
+ const n = this.$$c.$on(e, t);
247
+ this.$$l_u.set(t, n);
278
248
  }
279
- super.addEventListener(t, r, n);
249
+ super.addEventListener(e, t, r);
280
250
  }
281
- removeEventListener(t, r, n) {
282
- if (super.removeEventListener(t, r, n), this.$$c) {
283
- const i = this.$$l_u.get(r);
284
- i && (i(), this.$$l_u.delete(r));
251
+ removeEventListener(e, t, r) {
252
+ if (super.removeEventListener(e, t, r), this.$$c) {
253
+ const n = this.$$l_u.get(t);
254
+ n && (n(), this.$$l_u.delete(t));
285
255
  }
286
256
  }
287
- connectedCallback() {
288
- return nt(this, null, function* () {
289
- if (this.$$cn = !0, !this.$$c) {
290
- let t = function(o) {
291
- return () => {
292
- let s;
293
- return {
294
- c: function() {
295
- s = A("slot"), o !== "default" && p(s, "name", o);
296
- },
297
- /**
298
- * @param {HTMLElement} target
299
- * @param {HTMLElement} [anchor]
300
- */
301
- m: function(a, h) {
302
- Ee(a, s, h);
303
- },
304
- d: function(a) {
305
- a && ce(s);
306
- }
307
- };
257
+ async connectedCallback() {
258
+ if (this.$$cn = !0, !this.$$c) {
259
+ let e = function(i) {
260
+ return () => {
261
+ let o;
262
+ return {
263
+ c: function() {
264
+ o = A("slot"), i !== "default" && p(o, "name", i);
265
+ },
266
+ /**
267
+ * @param {HTMLElement} target
268
+ * @param {HTMLElement} [anchor]
269
+ */
270
+ m: function(h, u) {
271
+ xe(h, o, u);
272
+ },
273
+ d: function(h) {
274
+ h && fe(o);
275
+ }
308
276
  };
309
277
  };
310
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
311
- return;
312
- const r = {}, n = cr(this);
313
- for (const o of this.$$s)
314
- o in n && (r[o] = [t(o)]);
315
- for (const o of this.attributes) {
316
- const s = this.$$g_p(o.name);
317
- s in this.$$d || (this.$$d[s] = de(s, o.value, this.$$p_d, "toProp"));
278
+ };
279
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
280
+ return;
281
+ const t = {}, r = tr(this);
282
+ for (const i of this.$$s)
283
+ i in r && (t[i] = [e(i)]);
284
+ for (const i of this.attributes) {
285
+ const o = this.$$g_p(i.name);
286
+ o in this.$$d || (this.$$d[o] = me(o, i.value, this.$$p_d, "toProp"));
287
+ }
288
+ for (const i in this.$$p_d)
289
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
290
+ this.$$c = new this.$$ctor({
291
+ target: this.shadowRoot || this,
292
+ props: {
293
+ ...this.$$d,
294
+ $$slots: t,
295
+ $$scope: {
296
+ ctx: []
297
+ }
318
298
  }
319
- for (const o in this.$$p_d)
320
- !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
321
- this.$$c = new this.$$ctor({
322
- target: this.shadowRoot || this,
323
- props: rt(tt({}, this.$$d), {
324
- $$slots: r,
325
- $$scope: {
326
- ctx: []
327
- }
328
- })
329
- });
330
- const i = () => {
331
- this.$$r = !0;
332
- for (const o in this.$$p_d)
333
- if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
334
- const s = de(
335
- o,
336
- this.$$d[o],
337
- this.$$p_d,
338
- "toAttribute"
339
- );
340
- s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
341
- }
342
- this.$$r = !1;
343
- };
344
- this.$$c.$$.after_update.push(i), i();
345
- for (const o in this.$$l)
346
- for (const s of this.$$l[o]) {
347
- const u = this.$$c.$on(o, s);
348
- this.$$l_u.set(s, u);
299
+ });
300
+ const n = () => {
301
+ this.$$r = !0;
302
+ for (const i in this.$$p_d)
303
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
304
+ const o = me(
305
+ i,
306
+ this.$$d[i],
307
+ this.$$p_d,
308
+ "toAttribute"
309
+ );
310
+ o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
349
311
  }
350
- this.$$l = {};
351
- }
352
- });
312
+ this.$$r = !1;
313
+ };
314
+ this.$$c.$$.after_update.push(n), n();
315
+ for (const i in this.$$l)
316
+ for (const o of this.$$l[i]) {
317
+ const s = this.$$c.$on(i, o);
318
+ this.$$l_u.set(o, s);
319
+ }
320
+ this.$$l = {};
321
+ }
353
322
  }
354
323
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
355
324
  // and setting attributes through setAttribute etc, this is helpful
356
- attributeChangedCallback(t, r, n) {
357
- var i;
358
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = de(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
325
+ attributeChangedCallback(e, t, r) {
326
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = me(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
359
327
  }
360
328
  disconnectedCallback() {
361
329
  this.$$cn = !1, Promise.resolve().then(() => {
362
330
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
363
331
  });
364
332
  }
365
- $$g_p(t) {
333
+ $$g_p(e) {
366
334
  return Object.keys(this.$$p_d).find(
367
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
368
- ) || t;
335
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
336
+ ) || e;
369
337
  }
370
338
  });
371
- function de(e, t, r, n) {
372
- var o;
373
- const i = (o = r[e]) == null ? void 0 : o.type;
339
+ function me(e, t, r, n) {
340
+ const i = r[e]?.type;
374
341
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
375
342
  return t;
376
343
  if (n === "toAttribute")
@@ -381,7 +348,7 @@ function de(e, t, r, n) {
381
348
  case "Boolean":
382
349
  return t ? "" : null;
383
350
  case "Number":
384
- return t == null ? null : t;
351
+ return t ?? null;
385
352
  default:
386
353
  return t;
387
354
  }
@@ -398,59 +365,55 @@ function de(e, t, r, n) {
398
365
  return t;
399
366
  }
400
367
  }
401
- function Hr(e, t, r, n, i, o) {
402
- let s = class extends Nt {
368
+ function mr(e, t, r, n, i, o) {
369
+ let s = class extends St {
403
370
  constructor() {
404
371
  super(e, r, i), this.$$p_d = t;
405
372
  }
406
373
  static get observedAttributes() {
407
374
  return Object.keys(t).map(
408
- (u) => (t[u].attribute || u).toLowerCase()
375
+ (a) => (t[a].attribute || a).toLowerCase()
409
376
  );
410
377
  }
411
378
  };
412
- return Object.keys(t).forEach((u) => {
413
- Object.defineProperty(s.prototype, u, {
379
+ return Object.keys(t).forEach((a) => {
380
+ Object.defineProperty(s.prototype, a, {
414
381
  get() {
415
- return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
382
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
416
383
  },
417
- set(l) {
418
- var a;
419
- l = de(u, l, t), this.$$d[u] = l, (a = this.$$c) == null || a.$set({ [u]: l });
384
+ set(h) {
385
+ h = me(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
420
386
  }
421
387
  });
422
- }), n.forEach((u) => {
423
- Object.defineProperty(s.prototype, u, {
388
+ }), n.forEach((a) => {
389
+ Object.defineProperty(s.prototype, a, {
424
390
  get() {
425
- var l;
426
- return (l = this.$$c) == null ? void 0 : l[u];
391
+ return this.$$c?.[a];
427
392
  }
428
393
  });
429
394
  }), e.element = /** @type {any} */
430
395
  s, s;
431
396
  }
432
- class Ar {
433
- constructor() {
434
- /**
435
- * ### PRIVATE API
436
- *
437
- * Do not use, may change at any time
438
- *
439
- * @type {any}
440
- */
441
- R(this, "$$");
442
- /**
443
- * ### PRIVATE API
444
- *
445
- * Do not use, may change at any time
446
- *
447
- * @type {any}
448
- */
449
- R(this, "$$set");
450
- }
397
+ class dr {
398
+ /**
399
+ * ### PRIVATE API
400
+ *
401
+ * Do not use, may change at any time
402
+ *
403
+ * @type {any}
404
+ */
405
+ $$ = void 0;
406
+ /**
407
+ * ### PRIVATE API
408
+ *
409
+ * Do not use, may change at any time
410
+ *
411
+ * @type {any}
412
+ */
413
+ $$set = void 0;
451
414
  /** @returns {void} */
452
415
  $destroy() {
453
- _r(this, 1), this.$destroy = D;
416
+ fr(this, 1), this.$destroy = $;
454
417
  }
455
418
  /**
456
419
  * @template {Extract<keyof Events, string>} K
@@ -459,8 +422,8 @@ class Ar {
459
422
  * @returns {() => void}
460
423
  */
461
424
  $on(t, r) {
462
- if (!We(r))
463
- return D;
425
+ if (!Xe(r))
426
+ return $;
464
427
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
465
428
  return n.push(r), () => {
466
429
  const i = n.indexOf(r);
@@ -472,159 +435,159 @@ class Ar {
472
435
  * @returns {void}
473
436
  */
474
437
  $set(t) {
475
- this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
438
+ this.$$set && !Wt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
476
439
  }
477
440
  }
478
- const Tr = "4";
479
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Tr);
480
- const Q = [];
481
- function Br(e, t) {
441
+ const br = "4";
442
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(br);
443
+ const J = [];
444
+ function gr(e, t) {
482
445
  return {
483
- subscribe: ve(e, t).subscribe
446
+ subscribe: Ee(e, t).subscribe
484
447
  };
485
448
  }
486
- function ve(e, t = D) {
449
+ function Ee(e, t = $) {
487
450
  let r;
488
451
  const n = /* @__PURE__ */ new Set();
489
- function i(u) {
490
- if (At(e, u) && (e = u, r)) {
491
- const l = !Q.length;
492
- for (const a of n)
493
- a[1](), Q.push(a, e);
494
- if (l) {
495
- for (let a = 0; a < Q.length; a += 2)
496
- Q[a][0](Q[a + 1]);
497
- Q.length = 0;
452
+ function i(a) {
453
+ if (Et(e, a) && (e = a, r)) {
454
+ const h = !J.length;
455
+ for (const u of n)
456
+ u[1](), J.push(u, e);
457
+ if (h) {
458
+ for (let u = 0; u < J.length; u += 2)
459
+ J[u][0](J[u + 1]);
460
+ J.length = 0;
498
461
  }
499
462
  }
500
463
  }
501
- function o(u) {
502
- i(u(e));
464
+ function o(a) {
465
+ i(a(e));
503
466
  }
504
- function s(u, l = D) {
505
- const a = [u, l];
506
- return n.add(a), n.size === 1 && (r = t(i, o) || D), u(e), () => {
507
- n.delete(a), n.size === 0 && r && (r(), r = null);
467
+ function s(a, h = $) {
468
+ const u = [a, h];
469
+ return n.add(u), n.size === 1 && (r = t(i, o) || $), a(e), () => {
470
+ n.delete(u), n.size === 0 && r && (r(), r = null);
508
471
  };
509
472
  }
510
473
  return { set: i, update: o, subscribe: s };
511
474
  }
512
- function ne(e, t, r) {
475
+ function re(e, t, r) {
513
476
  const n = !Array.isArray(e), i = n ? [e] : e;
514
477
  if (!i.every(Boolean))
515
478
  throw new Error("derived() expects stores as input, got a falsy value");
516
479
  const o = t.length < 2;
517
- return Br(r, (s, u) => {
518
- let l = !1;
519
- const a = [];
520
- let h = 0, c = D;
480
+ return gr(r, (s, a) => {
481
+ let h = !1;
482
+ const u = [];
483
+ let l = 0, c = $;
521
484
  const f = () => {
522
- if (h)
485
+ if (l)
523
486
  return;
524
487
  c();
525
- const x = t(n ? a[0] : a, s, u);
526
- o ? s(x) : c = We(x) ? x : D;
488
+ const x = t(n ? u[0] : u, s, a);
489
+ o ? s(x) : c = Xe(x) ? x : $;
527
490
  }, m = i.map(
528
- (x, _) => Tt(
491
+ (x, v) => vt(
529
492
  x,
530
493
  (N) => {
531
- a[_] = N, h &= ~(1 << _), l && f();
494
+ u[v] = N, l &= ~(1 << v), h && f();
532
495
  },
533
496
  () => {
534
- h |= 1 << _;
497
+ l |= 1 << v;
535
498
  }
536
499
  )
537
500
  );
538
- return l = !0, f(), function() {
539
- fe(m), c(), l = !1;
501
+ return h = !0, f(), function() {
502
+ he(m), c(), h = !1;
540
503
  };
541
504
  });
542
505
  }
543
- function Nr(e) {
506
+ function yr(e) {
544
507
  return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
545
508
  }
546
- var Pr = function(t) {
547
- return Or(t) && !Ir(t);
509
+ var xr = function(t) {
510
+ return Er(t) && !vr(t);
548
511
  };
549
- function Or(e) {
512
+ function Er(e) {
550
513
  return !!e && typeof e == "object";
551
514
  }
552
- function Ir(e) {
515
+ function vr(e) {
553
516
  var t = Object.prototype.toString.call(e);
554
- return t === "[object RegExp]" || t === "[object Date]" || Mr(e);
517
+ return t === "[object RegExp]" || t === "[object Date]" || wr(e);
555
518
  }
556
- var Cr = typeof Symbol == "function" && Symbol.for, Lr = Cr ? Symbol.for("react.element") : 60103;
557
- function Mr(e) {
558
- return e.$$typeof === Lr;
519
+ var _r = typeof Symbol == "function" && Symbol.for, Sr = _r ? Symbol.for("react.element") : 60103;
520
+ function wr(e) {
521
+ return e.$$typeof === Sr;
559
522
  }
560
- function Rr(e) {
523
+ function Hr(e) {
561
524
  return Array.isArray(e) ? [] : {};
562
525
  }
563
- function le(e, t) {
564
- return t.clone !== !1 && t.isMergeableObject(e) ? K(Rr(e), e, t) : e;
526
+ function ue(e, t) {
527
+ return t.clone !== !1 && t.isMergeableObject(e) ? Y(Hr(e), e, t) : e;
565
528
  }
566
- function $r(e, t, r) {
529
+ function Ar(e, t, r) {
567
530
  return e.concat(t).map(function(n) {
568
- return le(n, r);
531
+ return ue(n, r);
569
532
  });
570
533
  }
571
- function Dr(e, t) {
534
+ function Tr(e, t) {
572
535
  if (!t.customMerge)
573
- return K;
536
+ return Y;
574
537
  var r = t.customMerge(e);
575
- return typeof r == "function" ? r : K;
538
+ return typeof r == "function" ? r : Y;
576
539
  }
577
- function Ur(e) {
540
+ function Br(e) {
578
541
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
579
542
  return Object.propertyIsEnumerable.call(e, t);
580
543
  }) : [];
581
544
  }
582
- function ut(e) {
583
- return Object.keys(e).concat(Ur(e));
545
+ function rt(e) {
546
+ return Object.keys(e).concat(Br(e));
584
547
  }
585
- function Pt(e, t) {
548
+ function wt(e, t) {
586
549
  try {
587
550
  return t in e;
588
- } catch (r) {
551
+ } catch {
589
552
  return !1;
590
553
  }
591
554
  }
592
- function Fr(e, t) {
593
- return Pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
555
+ function Nr(e, t) {
556
+ return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
594
557
  }
595
- function Gr(e, t, r) {
558
+ function Pr(e, t, r) {
596
559
  var n = {};
597
- return r.isMergeableObject(e) && ut(e).forEach(function(i) {
598
- n[i] = le(e[i], r);
599
- }), ut(t).forEach(function(i) {
600
- Fr(e, i) || (Pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Dr(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
560
+ return r.isMergeableObject(e) && rt(e).forEach(function(i) {
561
+ n[i] = ue(e[i], r);
562
+ }), rt(t).forEach(function(i) {
563
+ Nr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tr(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
601
564
  }), n;
602
565
  }
603
- function K(e, t, r) {
604
- r = r || {}, r.arrayMerge = r.arrayMerge || $r, r.isMergeableObject = r.isMergeableObject || Pr, r.cloneUnlessOtherwiseSpecified = le;
566
+ function Y(e, t, r) {
567
+ r = r || {}, r.arrayMerge = r.arrayMerge || Ar, r.isMergeableObject = r.isMergeableObject || xr, r.cloneUnlessOtherwiseSpecified = ue;
605
568
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
606
- return o ? n ? r.arrayMerge(e, t, r) : Gr(e, t, r) : le(t, r);
569
+ return o ? n ? r.arrayMerge(e, t, r) : Pr(e, t, r) : ue(t, r);
607
570
  }
608
- K.all = function(t, r) {
571
+ Y.all = function(t, r) {
609
572
  if (!Array.isArray(t))
610
573
  throw new Error("first argument should be an array");
611
574
  return t.reduce(function(n, i) {
612
- return K(n, i, r);
575
+ return Y(n, i, r);
613
576
  }, {});
614
577
  };
615
- var jr = K, kr = jr;
616
- const Vr = /* @__PURE__ */ Nr(kr);
617
- var Ue = function(e, t) {
618
- return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
578
+ var Or = Y, Ir = Or;
579
+ const Cr = /* @__PURE__ */ yr(Ir);
580
+ var $e = function(e, t) {
581
+ return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
619
582
  r.__proto__ = n;
620
583
  } || function(r, n) {
621
584
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
622
- }, Ue(e, t);
585
+ }, $e(e, t);
623
586
  };
624
- function _e(e, t) {
587
+ function ve(e, t) {
625
588
  if (typeof t != "function" && t !== null)
626
589
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
627
- Ue(e, t);
590
+ $e(e, t);
628
591
  function r() {
629
592
  this.constructor = e;
630
593
  }
@@ -639,7 +602,7 @@ var y = function() {
639
602
  return t;
640
603
  }, y.apply(this, arguments);
641
604
  };
642
- function zr(e, t) {
605
+ function Lr(e, t) {
643
606
  var r = {};
644
607
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
645
608
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -647,45 +610,45 @@ function zr(e, t) {
647
610
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
648
611
  return r;
649
612
  }
650
- function Ne(e, t, r) {
613
+ function Te(e, t, r) {
651
614
  if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
652
615
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
653
616
  return e.concat(o || Array.prototype.slice.call(t));
654
617
  }
655
- function Pe(e, t) {
656
- var r = t && t.cache ? t.cache : Yr, n = t && t.serializer ? t.serializer : Qr, i = t && t.strategy ? t.strategy : Zr;
618
+ function Be(e, t) {
619
+ var r = t && t.cache ? t.cache : Gr, n = t && t.serializer ? t.serializer : Ur, i = t && t.strategy ? t.strategy : Rr;
657
620
  return i(e, {
658
621
  cache: r,
659
622
  serializer: n
660
623
  });
661
624
  }
662
- function Xr(e) {
625
+ function Mr(e) {
663
626
  return e == null || typeof e == "number" || typeof e == "boolean";
664
627
  }
665
- function Ot(e, t, r, n) {
666
- var i = Xr(n) ? n : r(n), o = t.get(i);
667
- return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
628
+ function Ht(e, t, r, n) {
629
+ var i = Mr(n) ? n : r(n), o = t.get(i);
630
+ return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
668
631
  }
669
- function It(e, t, r) {
632
+ function At(e, t, r) {
670
633
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
671
- return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
634
+ return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
672
635
  }
673
- function Je(e, t, r, n, i) {
636
+ function Ze(e, t, r, n, i) {
674
637
  return r.bind(t, e, n, i);
675
638
  }
676
- function Zr(e, t) {
677
- var r = e.length === 1 ? Ot : It;
678
- return Je(e, this, r, t.cache.create(), t.serializer);
639
+ function Rr(e, t) {
640
+ var r = e.length === 1 ? Ht : At;
641
+ return Ze(e, this, r, t.cache.create(), t.serializer);
679
642
  }
680
- function Wr(e, t) {
681
- return Je(e, this, It, t.cache.create(), t.serializer);
643
+ function $r(e, t) {
644
+ return Ze(e, this, At, t.cache.create(), t.serializer);
682
645
  }
683
- function Jr(e, t) {
684
- return Je(e, this, Ot, t.cache.create(), t.serializer);
646
+ function Dr(e, t) {
647
+ return Ze(e, this, Ht, t.cache.create(), t.serializer);
685
648
  }
686
- var Qr = function() {
649
+ var Ur = function() {
687
650
  return JSON.stringify(arguments);
688
- }, qr = (
651
+ }, Fr = (
689
652
  /** @class */
690
653
  function() {
691
654
  function e() {
@@ -697,62 +660,62 @@ var Qr = function() {
697
660
  this.cache[t] = r;
698
661
  }, e;
699
662
  }()
700
- ), Yr = {
663
+ ), Gr = {
701
664
  create: function() {
702
- return new qr();
665
+ return new Fr();
703
666
  }
704
- }, Oe = {
705
- variadic: Wr,
706
- monadic: Jr
667
+ }, Ne = {
668
+ variadic: $r,
669
+ monadic: Dr
707
670
  }, b;
708
671
  (function(e) {
709
672
  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";
710
673
  })(b || (b = {}));
711
- var S;
674
+ var _;
712
675
  (function(e) {
713
676
  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";
714
- })(S || (S = {}));
715
- var ee;
677
+ })(_ || (_ = {}));
678
+ var K;
716
679
  (function(e) {
717
680
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
718
- })(ee || (ee = {}));
719
- function lt(e) {
720
- return e.type === S.literal;
681
+ })(K || (K = {}));
682
+ function nt(e) {
683
+ return e.type === _.literal;
721
684
  }
722
- function Kr(e) {
723
- return e.type === S.argument;
685
+ function jr(e) {
686
+ return e.type === _.argument;
724
687
  }
725
- function Ct(e) {
726
- return e.type === S.number;
688
+ function Tt(e) {
689
+ return e.type === _.number;
727
690
  }
728
- function Lt(e) {
729
- return e.type === S.date;
691
+ function Bt(e) {
692
+ return e.type === _.date;
730
693
  }
731
- function Mt(e) {
732
- return e.type === S.time;
694
+ function Nt(e) {
695
+ return e.type === _.time;
733
696
  }
734
- function Rt(e) {
735
- return e.type === S.select;
697
+ function Pt(e) {
698
+ return e.type === _.select;
736
699
  }
737
- function $t(e) {
738
- return e.type === S.plural;
700
+ function Ot(e) {
701
+ return e.type === _.plural;
739
702
  }
740
- function en(e) {
741
- return e.type === S.pound;
703
+ function kr(e) {
704
+ return e.type === _.pound;
742
705
  }
743
- function Dt(e) {
744
- return e.type === S.tag;
706
+ function It(e) {
707
+ return e.type === _.tag;
745
708
  }
746
- function Ut(e) {
747
- return !!(e && typeof e == "object" && e.type === ee.number);
709
+ function Ct(e) {
710
+ return !!(e && typeof e == "object" && e.type === K.number);
748
711
  }
749
- function Fe(e) {
750
- return !!(e && typeof e == "object" && e.type === ee.dateTime);
712
+ function De(e) {
713
+ return !!(e && typeof e == "object" && e.type === K.dateTime);
751
714
  }
752
- var Ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, tn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
753
- function rn(e) {
715
+ var Lt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Vr = /(?:[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;
716
+ function zr(e) {
754
717
  var t = {};
755
- return e.replace(tn, function(r) {
718
+ return e.replace(Vr, function(r) {
756
719
  var n = r.length;
757
720
  switch (r[0]) {
758
721
  case "G":
@@ -841,36 +804,36 @@ function rn(e) {
841
804
  return "";
842
805
  }), t;
843
806
  }
844
- var nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
845
- function on(e) {
807
+ var Xr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
808
+ function Zr(e) {
846
809
  if (e.length === 0)
847
810
  throw new Error("Number skeleton cannot be empty");
848
- for (var t = e.split(nn).filter(function(f) {
811
+ for (var t = e.split(Xr).filter(function(f) {
849
812
  return f.length > 0;
850
813
  }), r = [], n = 0, i = t; n < i.length; n++) {
851
814
  var o = i[n], s = o.split("/");
852
815
  if (s.length === 0)
853
816
  throw new Error("Invalid number skeleton");
854
- for (var u = s[0], l = s.slice(1), a = 0, h = l; a < h.length; a++) {
855
- var c = h[a];
817
+ for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
818
+ var c = l[u];
856
819
  if (c.length === 0)
857
820
  throw new Error("Invalid number skeleton");
858
821
  }
859
- r.push({ stem: u, options: l });
822
+ r.push({ stem: a, options: h });
860
823
  }
861
824
  return r;
862
825
  }
863
- function sn(e) {
826
+ function Wr(e) {
864
827
  return e.replace(/^(.*?)-/, "");
865
828
  }
866
- var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gt = /^(@+)?(\+|#+)?[rs]?$/g, an = /(\*)(0+)|(#+)(0+)|(0+)/g, jt = /^(0+)$/;
867
- function ft(e) {
829
+ var it = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Mt = /^(@+)?(\+|#+)?[rs]?$/g, Jr = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
830
+ function ot(e) {
868
831
  var t = {};
869
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Gt, function(r, n, i) {
832
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Mt, function(r, n, i) {
870
833
  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)), "";
871
834
  }), t;
872
835
  }
873
- function kt(e) {
836
+ function $t(e) {
874
837
  switch (e) {
875
838
  case "sign-auto":
876
839
  return {
@@ -910,7 +873,7 @@ function kt(e) {
910
873
  };
911
874
  }
912
875
  }
913
- function un(e) {
876
+ function Qr(e) {
914
877
  var t;
915
878
  if (e[0] === "E" && e[1] === "E" ? (t = {
916
879
  notation: "engineering"
@@ -918,17 +881,17 @@ function un(e) {
918
881
  notation: "scientific"
919
882
  }, e = e.slice(1)), t) {
920
883
  var r = e.slice(0, 2);
921
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jt.test(e))
884
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rt.test(e))
922
885
  throw new Error("Malformed concise eng/scientific notation");
923
886
  t.minimumIntegerDigits = e.length;
924
887
  }
925
888
  return t;
926
889
  }
927
- function ct(e) {
928
- var t = {}, r = kt(e);
890
+ function st(e) {
891
+ var t = {}, r = $t(e);
929
892
  return r || t;
930
893
  }
931
- function ln(e) {
894
+ function qr(e) {
932
895
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
933
896
  var i = n[r];
934
897
  switch (i.stem) {
@@ -952,7 +915,7 @@ function ln(e) {
952
915
  continue;
953
916
  case "measure-unit":
954
917
  case "unit":
955
- t.style = "unit", t.unit = sn(i.options[0]);
918
+ t.style = "unit", t.unit = Wr(i.options[0]);
956
919
  continue;
957
920
  case "compact-short":
958
921
  case "K":
@@ -963,13 +926,13 @@ function ln(e) {
963
926
  t.notation = "compact", t.compactDisplay = "long";
964
927
  continue;
965
928
  case "scientific":
966
- t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
967
- return y(y({}, l), ct(a));
929
+ t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
930
+ return y(y({}, h), st(u));
968
931
  }, {}));
969
932
  continue;
970
933
  case "engineering":
971
- t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
972
- return y(y({}, l), ct(a));
934
+ t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
935
+ return y(y({}, h), st(u));
973
936
  }, {}));
974
937
  continue;
975
938
  case "notation-simple":
@@ -1014,9 +977,9 @@ function ln(e) {
1014
977
  case "integer-width":
1015
978
  if (i.options.length > 1)
1016
979
  throw new RangeError("integer-width stems only accept a single optional option");
1017
- i.options[0].replace(an, function(l, a, h, c, f, m) {
1018
- if (a)
1019
- t.minimumIntegerDigits = h.length;
980
+ i.options[0].replace(Jr, function(h, u, l, c, f, m) {
981
+ if (u)
982
+ t.minimumIntegerDigits = l.length;
1020
983
  else {
1021
984
  if (c && f)
1022
985
  throw new Error("We currently do not support maximum integer digits");
@@ -1027,32 +990,32 @@ function ln(e) {
1027
990
  });
1028
991
  continue;
1029
992
  }
1030
- if (jt.test(i.stem)) {
993
+ if (Rt.test(i.stem)) {
1031
994
  t.minimumIntegerDigits = i.stem.length;
1032
995
  continue;
1033
996
  }
1034
- if (ht.test(i.stem)) {
997
+ if (it.test(i.stem)) {
1035
998
  if (i.options.length > 1)
1036
999
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1037
- i.stem.replace(ht, function(l, a, h, c, f, m) {
1038
- return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1000
+ i.stem.replace(it, function(h, u, l, c, f, m) {
1001
+ return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1039
1002
  });
1040
1003
  var o = i.options[0];
1041
- o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), ft(o)));
1004
+ o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), ot(o)));
1042
1005
  continue;
1043
1006
  }
1044
- if (Gt.test(i.stem)) {
1045
- t = y(y({}, t), ft(i.stem));
1007
+ if (Mt.test(i.stem)) {
1008
+ t = y(y({}, t), ot(i.stem));
1046
1009
  continue;
1047
1010
  }
1048
- var s = kt(i.stem);
1011
+ var s = $t(i.stem);
1049
1012
  s && (t = y(y({}, t), s));
1050
- var u = un(i.stem);
1051
- u && (t = y(y({}, t), u));
1013
+ var a = Qr(i.stem);
1014
+ a && (t = y(y({}, t), a));
1052
1015
  }
1053
1016
  return t;
1054
1017
  }
1055
- var me = {
1018
+ var pe = {
1056
1019
  "001": [
1057
1020
  "H",
1058
1021
  "h"
@@ -2467,22 +2430,22 @@ var me = {
2467
2430
  "h"
2468
2431
  ]
2469
2432
  };
2470
- function hn(e, t) {
2433
+ function Yr(e, t) {
2471
2434
  for (var r = "", n = 0; n < e.length; n++) {
2472
2435
  var i = e.charAt(n);
2473
2436
  if (i === "j") {
2474
2437
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2475
2438
  o++, n++;
2476
- var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), l = "a", a = fn(t);
2477
- for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
2478
- r += l;
2439
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Kr(t);
2440
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2441
+ r += h;
2479
2442
  for (; s-- > 0; )
2480
- r = a + r;
2443
+ r = u + r;
2481
2444
  } else i === "J" ? r += "H" : r += i;
2482
2445
  }
2483
2446
  return r;
2484
2447
  }
2485
- function fn(e) {
2448
+ function Kr(e) {
2486
2449
  var t = e.hourCycle;
2487
2450
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2488
2451
  e.hourCycles && // @ts-ignore
@@ -2501,23 +2464,23 @@ function fn(e) {
2501
2464
  }
2502
2465
  var r = e.language, n;
2503
2466
  r !== "root" && (n = e.maximize().region);
2504
- var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
2467
+ var i = pe[n || ""] || pe[r || ""] || pe["".concat(r, "-001")] || pe["001"];
2505
2468
  return i[0];
2506
2469
  }
2507
- var Ie, cn = new RegExp("^".concat(Ft.source, "*")), pn = new RegExp("".concat(Ft.source, "*$"));
2470
+ var Pe, en = new RegExp("^".concat(Lt.source, "*")), tn = new RegExp("".concat(Lt.source, "*$"));
2508
2471
  function g(e, t) {
2509
2472
  return { start: e, end: t };
2510
2473
  }
2511
- var mn = !!String.prototype.startsWith && "_a".startsWith("a", 1), dn = !!String.fromCodePoint, bn = !!Object.fromEntries, gn = !!String.prototype.codePointAt, yn = !!String.prototype.trimStart, xn = !!String.prototype.trimEnd, En = !!Number.isSafeInteger, vn = En ? Number.isSafeInteger : function(e) {
2474
+ var rn = !!String.prototype.startsWith && "_a".startsWith("a", 1), nn = !!String.fromCodePoint, on = !!Object.fromEntries, sn = !!String.prototype.codePointAt, an = !!String.prototype.trimStart, un = !!String.prototype.trimEnd, ln = !!Number.isSafeInteger, hn = ln ? Number.isSafeInteger : function(e) {
2512
2475
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2513
- }, Ge = !0;
2476
+ }, Ue = !0;
2514
2477
  try {
2515
- var _n = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2516
- Ge = ((Ie = _n.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
2517
- } catch (e) {
2518
- Ge = !1;
2478
+ var fn = Ut("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2479
+ Ue = ((Pe = fn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
2480
+ } catch {
2481
+ Ue = !1;
2519
2482
  }
2520
- var pt = mn ? (
2483
+ var at = rn ? (
2521
2484
  // Native
2522
2485
  function(t, r, n) {
2523
2486
  return t.startsWith(r, n);
@@ -2527,7 +2490,7 @@ var pt = mn ? (
2527
2490
  function(t, r, n) {
2528
2491
  return t.slice(n, n + r.length) === r;
2529
2492
  }
2530
- ), je = dn ? String.fromCodePoint : (
2493
+ ), Fe = nn ? String.fromCodePoint : (
2531
2494
  // IE11
2532
2495
  function() {
2533
2496
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2539,19 +2502,19 @@ var pt = mn ? (
2539
2502
  }
2540
2503
  return n;
2541
2504
  }
2542
- ), mt = (
2505
+ ), ut = (
2543
2506
  // native
2544
- bn ? Object.fromEntries : (
2507
+ on ? Object.fromEntries : (
2545
2508
  // Ponyfill
2546
2509
  function(t) {
2547
2510
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2548
- var o = i[n], s = o[0], u = o[1];
2549
- r[s] = u;
2511
+ var o = i[n], s = o[0], a = o[1];
2512
+ r[s] = a;
2550
2513
  }
2551
2514
  return r;
2552
2515
  }
2553
2516
  )
2554
- ), Vt = gn ? (
2517
+ ), Dt = sn ? (
2555
2518
  // Native
2556
2519
  function(t, r) {
2557
2520
  return t.codePointAt(r);
@@ -2565,7 +2528,7 @@ var pt = mn ? (
2565
2528
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2566
2529
  }
2567
2530
  }
2568
- ), Sn = yn ? (
2531
+ ), cn = an ? (
2569
2532
  // Native
2570
2533
  function(t) {
2571
2534
  return t.trimStart();
@@ -2573,9 +2536,9 @@ var pt = mn ? (
2573
2536
  ) : (
2574
2537
  // Ponyfill
2575
2538
  function(t) {
2576
- return t.replace(cn, "");
2539
+ return t.replace(en, "");
2577
2540
  }
2578
- ), wn = xn ? (
2541
+ ), pn = un ? (
2579
2542
  // Native
2580
2543
  function(t) {
2581
2544
  return t.trimEnd();
@@ -2583,32 +2546,32 @@ var pt = mn ? (
2583
2546
  ) : (
2584
2547
  // Ponyfill
2585
2548
  function(t) {
2586
- return t.replace(pn, "");
2549
+ return t.replace(tn, "");
2587
2550
  }
2588
2551
  );
2589
- function zt(e, t) {
2552
+ function Ut(e, t) {
2590
2553
  return new RegExp(e, t);
2591
2554
  }
2592
- var ke;
2593
- if (Ge) {
2594
- var dt = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2595
- ke = function(t, r) {
2555
+ var Ge;
2556
+ if (Ue) {
2557
+ var lt = Ut("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2558
+ Ge = function(t, r) {
2596
2559
  var n;
2597
- dt.lastIndex = r;
2598
- var i = dt.exec(t);
2560
+ lt.lastIndex = r;
2561
+ var i = lt.exec(t);
2599
2562
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2600
2563
  };
2601
2564
  } else
2602
- ke = function(t, r) {
2565
+ Ge = function(t, r) {
2603
2566
  for (var n = []; ; ) {
2604
- var i = Vt(t, r);
2605
- if (i === void 0 || Xt(i) || Bn(i))
2567
+ var i = Dt(t, r);
2568
+ if (i === void 0 || Ft(i) || gn(i))
2606
2569
  break;
2607
2570
  n.push(i), r += i >= 65536 ? 2 : 1;
2608
2571
  }
2609
- return je.apply(void 0, n);
2572
+ return Fe.apply(void 0, n);
2610
2573
  };
2611
- var Hn = (
2574
+ var mn = (
2612
2575
  /** @class */
2613
2576
  function() {
2614
2577
  function e(t, r) {
@@ -2630,16 +2593,16 @@ var Hn = (
2630
2593
  if (o === 125 && t > 0)
2631
2594
  break;
2632
2595
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2633
- var u = this.clonePosition();
2596
+ var a = this.clonePosition();
2634
2597
  this.bump(), i.push({
2635
- type: S.pound,
2636
- location: g(u, this.clonePosition())
2598
+ type: _.pound,
2599
+ location: g(a, this.clonePosition())
2637
2600
  });
2638
2601
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2639
2602
  if (n)
2640
2603
  break;
2641
2604
  return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
2642
- } else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
2605
+ } else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
2643
2606
  var s = this.parseTag(t, r);
2644
2607
  if (s.err)
2645
2608
  return s;
@@ -2660,7 +2623,7 @@ var Hn = (
2660
2623
  if (this.bumpSpace(), this.bumpIf("/>"))
2661
2624
  return {
2662
2625
  val: {
2663
- type: S.literal,
2626
+ type: _.literal,
2664
2627
  value: "<".concat(i, "/>"),
2665
2628
  location: g(n, this.clonePosition())
2666
2629
  },
@@ -2670,27 +2633,27 @@ var Hn = (
2670
2633
  var o = this.parseMessage(t + 1, r, !0);
2671
2634
  if (o.err)
2672
2635
  return o;
2673
- var s = o.val, u = this.clonePosition();
2636
+ var s = o.val, a = this.clonePosition();
2674
2637
  if (this.bumpIf("</")) {
2675
- if (this.isEOF() || !Ve(this.char()))
2676
- return this.error(b.INVALID_TAG, g(u, this.clonePosition()));
2677
- var l = this.clonePosition(), a = this.parseTagName();
2678
- return i !== a ? this.error(b.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2638
+ if (this.isEOF() || !je(this.char()))
2639
+ return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
2640
+ var h = this.clonePosition(), u = this.parseTagName();
2641
+ return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2679
2642
  val: {
2680
- type: S.tag,
2643
+ type: _.tag,
2681
2644
  value: i,
2682
2645
  children: s,
2683
2646
  location: g(n, this.clonePosition())
2684
2647
  },
2685
2648
  err: null
2686
- } : this.error(b.INVALID_TAG, g(u, this.clonePosition())));
2649
+ } : this.error(b.INVALID_TAG, g(a, this.clonePosition())));
2687
2650
  } else
2688
2651
  return this.error(b.UNCLOSED_TAG, g(n, this.clonePosition()));
2689
2652
  } else
2690
2653
  return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
2691
2654
  }, e.prototype.parseTagName = function() {
2692
2655
  var t = this.offset();
2693
- for (this.bump(); !this.isEOF() && Tn(this.char()); )
2656
+ for (this.bump(); !this.isEOF() && bn(this.char()); )
2694
2657
  this.bump();
2695
2658
  return this.message.slice(t, this.offset());
2696
2659
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2705,21 +2668,21 @@ var Hn = (
2705
2668
  i += s;
2706
2669
  continue;
2707
2670
  }
2708
- var u = this.tryParseLeftAngleBracket();
2709
- if (u) {
2710
- i += u;
2671
+ var a = this.tryParseLeftAngleBracket();
2672
+ if (a) {
2673
+ i += a;
2711
2674
  continue;
2712
2675
  }
2713
2676
  break;
2714
2677
  }
2715
- var l = g(n, this.clonePosition());
2678
+ var h = g(n, this.clonePosition());
2716
2679
  return {
2717
- val: { type: S.literal, value: i, location: l },
2680
+ val: { type: _.literal, value: i, location: h },
2718
2681
  err: null
2719
2682
  };
2720
2683
  }, e.prototype.tryParseLeftAngleBracket = function() {
2721
2684
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2722
- !An(this.peek() || 0)) ? (this.bump(), "<") : null;
2685
+ !dn(this.peek() || 0)) ? (this.bump(), "<") : null;
2723
2686
  }, e.prototype.tryParseQuote = function(t) {
2724
2687
  if (this.isEOF() || this.char() !== 39)
2725
2688
  return null;
@@ -2753,12 +2716,12 @@ var Hn = (
2753
2716
  r.push(n);
2754
2717
  this.bump();
2755
2718
  }
2756
- return je.apply(void 0, r);
2719
+ return Fe.apply(void 0, r);
2757
2720
  }, e.prototype.tryParseUnquoted = function(t, r) {
2758
2721
  if (this.isEOF())
2759
2722
  return null;
2760
2723
  var n = this.char();
2761
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
2724
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
2762
2725
  }, e.prototype.parseArgument = function(t, r) {
2763
2726
  var n = this.clonePosition();
2764
2727
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2774,7 +2737,7 @@ var Hn = (
2774
2737
  case 125:
2775
2738
  return this.bump(), {
2776
2739
  val: {
2777
- type: S.argument,
2740
+ type: _.argument,
2778
2741
  // value does not include the opening and closing braces.
2779
2742
  value: i,
2780
2743
  location: g(n, this.clonePosition())
@@ -2787,66 +2750,66 @@ var Hn = (
2787
2750
  return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
2788
2751
  }
2789
2752
  }, e.prototype.parseIdentifierIfPossible = function() {
2790
- var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
2753
+ var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
2791
2754
  this.bumpTo(i);
2792
2755
  var o = this.clonePosition(), s = g(t, o);
2793
2756
  return { value: n, location: s };
2794
2757
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2795
- var o, s = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2796
- switch (u) {
2758
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2759
+ switch (a) {
2797
2760
  case "":
2798
- return this.error(b.EXPECT_ARGUMENT_TYPE, g(s, l));
2761
+ return this.error(b.EXPECT_ARGUMENT_TYPE, g(s, h));
2799
2762
  case "number":
2800
2763
  case "date":
2801
2764
  case "time": {
2802
2765
  this.bumpSpace();
2803
- var a = null;
2766
+ var u = null;
2804
2767
  if (this.bumpIf(",")) {
2805
2768
  this.bumpSpace();
2806
- var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2769
+ var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2807
2770
  if (c.err)
2808
2771
  return c;
2809
- var f = wn(c.val);
2772
+ var f = pn(c.val);
2810
2773
  if (f.length === 0)
2811
2774
  return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
2812
- var m = g(h, this.clonePosition());
2813
- a = { style: f, styleLocation: m };
2775
+ var m = g(l, this.clonePosition());
2776
+ u = { style: f, styleLocation: m };
2814
2777
  }
2815
2778
  var x = this.tryParseArgumentClose(i);
2816
2779
  if (x.err)
2817
2780
  return x;
2818
- var _ = g(i, this.clonePosition());
2819
- if (a && pt(a == null ? void 0 : a.style, "::", 0)) {
2820
- var N = Sn(a.style.slice(2));
2821
- if (u === "number") {
2822
- var c = this.parseNumberSkeletonFromString(N, a.styleLocation);
2781
+ var v = g(i, this.clonePosition());
2782
+ if (u && at(u?.style, "::", 0)) {
2783
+ var N = cn(u.style.slice(2));
2784
+ if (a === "number") {
2785
+ var c = this.parseNumberSkeletonFromString(N, u.styleLocation);
2823
2786
  return c.err ? c : {
2824
- val: { type: S.number, value: n, location: _, style: c.val },
2787
+ val: { type: _.number, value: n, location: v, style: c.val },
2825
2788
  err: null
2826
2789
  };
2827
2790
  } else {
2828
2791
  if (N.length === 0)
2829
- return this.error(b.EXPECT_DATE_TIME_SKELETON, _);
2792
+ return this.error(b.EXPECT_DATE_TIME_SKELETON, v);
2830
2793
  var L = N;
2831
- this.locale && (L = hn(N, this.locale));
2794
+ this.locale && (L = Yr(N, this.locale));
2832
2795
  var f = {
2833
- type: ee.dateTime,
2796
+ type: K.dateTime,
2834
2797
  pattern: L,
2835
- location: a.styleLocation,
2836
- parsedOptions: this.shouldParseSkeletons ? rn(L) : {}
2837
- }, M = u === "date" ? S.date : S.time;
2798
+ location: u.styleLocation,
2799
+ parsedOptions: this.shouldParseSkeletons ? zr(L) : {}
2800
+ }, M = a === "date" ? _.date : _.time;
2838
2801
  return {
2839
- val: { type: M, value: n, location: _, style: f },
2802
+ val: { type: M, value: n, location: v, style: f },
2840
2803
  err: null
2841
2804
  };
2842
2805
  }
2843
2806
  }
2844
2807
  return {
2845
2808
  val: {
2846
- type: u === "number" ? S.number : u === "date" ? S.date : S.time,
2809
+ type: a === "number" ? _.number : a === "date" ? _.date : _.time,
2847
2810
  value: n,
2848
- location: _,
2849
- style: (o = a == null ? void 0 : a.style) !== null && o !== void 0 ? o : null
2811
+ location: v,
2812
+ style: (o = u?.style) !== null && o !== void 0 ? o : null
2850
2813
  },
2851
2814
  err: null
2852
2815
  };
@@ -2859,7 +2822,7 @@ var Hn = (
2859
2822
  return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(B, y({}, B)));
2860
2823
  this.bumpSpace();
2861
2824
  var I = this.parseIdentifierIfPossible(), H = 0;
2862
- if (u !== "select" && I.value === "offset") {
2825
+ if (a !== "select" && I.value === "offset") {
2863
2826
  if (!this.bumpIf(":"))
2864
2827
  return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
2865
2828
  this.bumpSpace();
@@ -2868,35 +2831,35 @@ var Hn = (
2868
2831
  return c;
2869
2832
  this.bumpSpace(), I = this.parseIdentifierIfPossible(), H = c.val;
2870
2833
  }
2871
- var C = this.tryParsePluralOrSelectOptions(t, u, r, I);
2834
+ var C = this.tryParsePluralOrSelectOptions(t, a, r, I);
2872
2835
  if (C.err)
2873
2836
  return C;
2874
2837
  var x = this.tryParseArgumentClose(i);
2875
2838
  if (x.err)
2876
2839
  return x;
2877
- var U = g(i, this.clonePosition());
2878
- return u === "select" ? {
2840
+ var D = g(i, this.clonePosition());
2841
+ return a === "select" ? {
2879
2842
  val: {
2880
- type: S.select,
2843
+ type: _.select,
2881
2844
  value: n,
2882
- options: mt(C.val),
2883
- location: U
2845
+ options: ut(C.val),
2846
+ location: D
2884
2847
  },
2885
2848
  err: null
2886
2849
  } : {
2887
2850
  val: {
2888
- type: S.plural,
2851
+ type: _.plural,
2889
2852
  value: n,
2890
- options: mt(C.val),
2853
+ options: ut(C.val),
2891
2854
  offset: H,
2892
- pluralType: u === "plural" ? "cardinal" : "ordinal",
2893
- location: U
2855
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
2856
+ location: D
2894
2857
  },
2895
2858
  err: null
2896
2859
  };
2897
2860
  }
2898
2861
  default:
2899
- return this.error(b.INVALID_ARGUMENT_TYPE, g(s, l));
2862
+ return this.error(b.INVALID_ARGUMENT_TYPE, g(s, h));
2900
2863
  }
2901
2864
  }, e.prototype.tryParseArgumentClose = function(t) {
2902
2865
  return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2938,64 +2901,64 @@ var Hn = (
2938
2901
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2939
2902
  var n = [];
2940
2903
  try {
2941
- n = on(t);
2942
- } catch (i) {
2904
+ n = Zr(t);
2905
+ } catch {
2943
2906
  return this.error(b.INVALID_NUMBER_SKELETON, r);
2944
2907
  }
2945
2908
  return {
2946
2909
  val: {
2947
- type: ee.number,
2910
+ type: K.number,
2948
2911
  tokens: n,
2949
2912
  location: r,
2950
- parsedOptions: this.shouldParseSkeletons ? ln(n) : {}
2913
+ parsedOptions: this.shouldParseSkeletons ? qr(n) : {}
2951
2914
  },
2952
2915
  err: null
2953
2916
  };
2954
2917
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2955
- for (var o, s = !1, u = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
2956
- if (a.length === 0) {
2918
+ for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
2919
+ if (u.length === 0) {
2957
2920
  var c = this.clonePosition();
2958
2921
  if (r !== "select" && this.bumpIf("=")) {
2959
2922
  var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
2960
2923
  if (f.err)
2961
2924
  return f;
2962
- h = g(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
2925
+ l = g(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
2963
2926
  } else
2964
2927
  break;
2965
2928
  }
2966
- if (l.has(a))
2967
- return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2968
- a === "other" && (s = !0), this.bumpSpace();
2929
+ if (h.has(u))
2930
+ return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2931
+ u === "other" && (s = !0), this.bumpSpace();
2969
2932
  var m = this.clonePosition();
2970
2933
  if (!this.bumpIf("{"))
2971
2934
  return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
2972
2935
  var x = this.parseMessage(t + 1, r, n);
2973
2936
  if (x.err)
2974
2937
  return x;
2975
- var _ = this.tryParseArgumentClose(m);
2976
- if (_.err)
2977
- return _;
2978
- u.push([
2979
- a,
2938
+ var v = this.tryParseArgumentClose(m);
2939
+ if (v.err)
2940
+ return v;
2941
+ a.push([
2942
+ u,
2980
2943
  {
2981
2944
  value: x.val,
2982
2945
  location: g(m, this.clonePosition())
2983
2946
  }
2984
- ]), l.add(a), this.bumpSpace(), o = this.parseIdentifierIfPossible(), a = o.value, h = o.location;
2947
+ ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
2985
2948
  }
2986
- return u.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
2949
+ return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2987
2950
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2988
2951
  var n = 1, i = this.clonePosition();
2989
2952
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
2990
2953
  for (var o = !1, s = 0; !this.isEOF(); ) {
2991
- var u = this.char();
2992
- if (u >= 48 && u <= 57)
2993
- o = !0, s = s * 10 + (u - 48), this.bump();
2954
+ var a = this.char();
2955
+ if (a >= 48 && a <= 57)
2956
+ o = !0, s = s * 10 + (a - 48), this.bump();
2994
2957
  else
2995
2958
  break;
2996
2959
  }
2997
- var l = g(i, this.clonePosition());
2998
- return o ? (s *= n, vn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
2960
+ var h = g(i, this.clonePosition());
2961
+ return o ? (s *= n, hn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
2999
2962
  }, e.prototype.offset = function() {
3000
2963
  return this.position.offset;
3001
2964
  }, e.prototype.isEOF = function() {
@@ -3010,7 +2973,7 @@ var Hn = (
3010
2973
  var t = this.position.offset;
3011
2974
  if (t >= this.message.length)
3012
2975
  throw Error("out of bound");
3013
- var r = Vt(this.message, t);
2976
+ var r = Dt(this.message, t);
3014
2977
  if (r === void 0)
3015
2978
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3016
2979
  return r;
@@ -3029,7 +2992,7 @@ var Hn = (
3029
2992
  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);
3030
2993
  }
3031
2994
  }, e.prototype.bumpIf = function(t) {
3032
- if (pt(this.message, t, this.offset())) {
2995
+ if (at(this.message, t, this.offset())) {
3033
2996
  for (var r = 0; r < t.length; r++)
3034
2997
  this.bump();
3035
2998
  return !0;
@@ -3051,56 +3014,56 @@ var Hn = (
3051
3014
  break;
3052
3015
  }
3053
3016
  }, e.prototype.bumpSpace = function() {
3054
- for (; !this.isEOF() && Xt(this.char()); )
3017
+ for (; !this.isEOF() && Ft(this.char()); )
3055
3018
  this.bump();
3056
3019
  }, e.prototype.peek = function() {
3057
3020
  if (this.isEOF())
3058
3021
  return null;
3059
3022
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3060
- return n != null ? n : null;
3023
+ return n ?? null;
3061
3024
  }, e;
3062
3025
  }()
3063
3026
  );
3064
- function Ve(e) {
3027
+ function je(e) {
3065
3028
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3066
3029
  }
3067
- function An(e) {
3068
- return Ve(e) || e === 47;
3030
+ function dn(e) {
3031
+ return je(e) || e === 47;
3069
3032
  }
3070
- function Tn(e) {
3033
+ function bn(e) {
3071
3034
  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;
3072
3035
  }
3073
- function Xt(e) {
3036
+ function Ft(e) {
3074
3037
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3075
3038
  }
3076
- function Bn(e) {
3039
+ function gn(e) {
3077
3040
  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;
3078
3041
  }
3079
- function ze(e) {
3042
+ function ke(e) {
3080
3043
  e.forEach(function(t) {
3081
- if (delete t.location, Rt(t) || $t(t))
3044
+ if (delete t.location, Pt(t) || Ot(t))
3082
3045
  for (var r in t.options)
3083
- delete t.options[r].location, ze(t.options[r].value);
3084
- else Ct(t) && Ut(t.style) || (Lt(t) || Mt(t)) && Fe(t.style) ? delete t.style.location : Dt(t) && ze(t.children);
3046
+ delete t.options[r].location, ke(t.options[r].value);
3047
+ else Tt(t) && Ct(t.style) || (Bt(t) || Nt(t)) && De(t.style) ? delete t.style.location : It(t) && ke(t.children);
3085
3048
  });
3086
3049
  }
3087
- function Nn(e, t) {
3050
+ function yn(e, t) {
3088
3051
  t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3089
- var r = new Hn(e, t).parse();
3052
+ var r = new mn(e, t).parse();
3090
3053
  if (r.err) {
3091
3054
  var n = SyntaxError(b[r.err.kind]);
3092
3055
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3093
3056
  }
3094
- return t != null && t.captureLocation || ze(r.val), r.val;
3057
+ return t?.captureLocation || ke(r.val), r.val;
3095
3058
  }
3096
- var te;
3059
+ var ee;
3097
3060
  (function(e) {
3098
3061
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3099
- })(te || (te = {}));
3100
- var Se = (
3062
+ })(ee || (ee = {}));
3063
+ var _e = (
3101
3064
  /** @class */
3102
3065
  function(e) {
3103
- _e(t, e);
3066
+ ve(t, e);
3104
3067
  function t(r, n, i) {
3105
3068
  var o = e.call(this, r) || this;
3106
3069
  return o.code = n, o.originalMessage = i, o;
@@ -3109,155 +3072,155 @@ var Se = (
3109
3072
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3110
3073
  }, t;
3111
3074
  }(Error)
3112
- ), bt = (
3075
+ ), ht = (
3113
3076
  /** @class */
3114
3077
  function(e) {
3115
- _e(t, e);
3078
+ ve(t, e);
3116
3079
  function t(r, n, i, o) {
3117
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, o) || this;
3080
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
3118
3081
  }
3119
3082
  return t;
3120
- }(Se)
3121
- ), Pn = (
3083
+ }(_e)
3084
+ ), xn = (
3122
3085
  /** @class */
3123
3086
  function(e) {
3124
- _e(t, e);
3087
+ ve(t, e);
3125
3088
  function t(r, n, i) {
3126
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
3089
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
3127
3090
  }
3128
3091
  return t;
3129
- }(Se)
3130
- ), On = (
3092
+ }(_e)
3093
+ ), En = (
3131
3094
  /** @class */
3132
3095
  function(e) {
3133
- _e(t, e);
3096
+ ve(t, e);
3134
3097
  function t(r, n) {
3135
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
3098
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
3136
3099
  }
3137
3100
  return t;
3138
- }(Se)
3101
+ }(_e)
3139
3102
  ), O;
3140
3103
  (function(e) {
3141
3104
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3142
3105
  })(O || (O = {}));
3143
- function In(e) {
3106
+ function vn(e) {
3144
3107
  return e.length < 2 ? e : e.reduce(function(t, r) {
3145
3108
  var n = t[t.length - 1];
3146
3109
  return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
3147
3110
  }, []);
3148
3111
  }
3149
- function Cn(e) {
3112
+ function _n(e) {
3150
3113
  return typeof e == "function";
3151
3114
  }
3152
- function be(e, t, r, n, i, o, s) {
3153
- if (e.length === 1 && lt(e[0]))
3115
+ function de(e, t, r, n, i, o, s) {
3116
+ if (e.length === 1 && nt(e[0]))
3154
3117
  return [
3155
3118
  {
3156
3119
  type: O.literal,
3157
3120
  value: e[0].value
3158
3121
  }
3159
3122
  ];
3160
- for (var u = [], l = 0, a = e; l < a.length; l++) {
3161
- var h = a[l];
3162
- if (lt(h)) {
3163
- u.push({
3123
+ for (var a = [], h = 0, u = e; h < u.length; h++) {
3124
+ var l = u[h];
3125
+ if (nt(l)) {
3126
+ a.push({
3164
3127
  type: O.literal,
3165
- value: h.value
3128
+ value: l.value
3166
3129
  });
3167
3130
  continue;
3168
3131
  }
3169
- if (en(h)) {
3170
- typeof o == "number" && u.push({
3132
+ if (kr(l)) {
3133
+ typeof o == "number" && a.push({
3171
3134
  type: O.literal,
3172
3135
  value: r.getNumberFormat(t).format(o)
3173
3136
  });
3174
3137
  continue;
3175
3138
  }
3176
- var c = h.value;
3139
+ var c = l.value;
3177
3140
  if (!(i && c in i))
3178
- throw new On(c, s);
3141
+ throw new En(c, s);
3179
3142
  var f = i[c];
3180
- if (Kr(h)) {
3181
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
3143
+ if (jr(l)) {
3144
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3182
3145
  type: typeof f == "string" ? O.literal : O.object,
3183
3146
  value: f
3184
3147
  });
3185
3148
  continue;
3186
3149
  }
3187
- if (Lt(h)) {
3188
- var m = typeof h.style == "string" ? n.date[h.style] : Fe(h.style) ? h.style.parsedOptions : void 0;
3189
- u.push({
3150
+ if (Bt(l)) {
3151
+ var m = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
3152
+ a.push({
3190
3153
  type: O.literal,
3191
3154
  value: r.getDateTimeFormat(t, m).format(f)
3192
3155
  });
3193
3156
  continue;
3194
3157
  }
3195
- if (Mt(h)) {
3196
- var m = typeof h.style == "string" ? n.time[h.style] : Fe(h.style) ? h.style.parsedOptions : n.time.medium;
3197
- u.push({
3158
+ if (Nt(l)) {
3159
+ var m = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
3160
+ a.push({
3198
3161
  type: O.literal,
3199
3162
  value: r.getDateTimeFormat(t, m).format(f)
3200
3163
  });
3201
3164
  continue;
3202
3165
  }
3203
- if (Ct(h)) {
3204
- var m = typeof h.style == "string" ? n.number[h.style] : Ut(h.style) ? h.style.parsedOptions : void 0;
3205
- m && m.scale && (f = f * (m.scale || 1)), u.push({
3166
+ if (Tt(l)) {
3167
+ var m = typeof l.style == "string" ? n.number[l.style] : Ct(l.style) ? l.style.parsedOptions : void 0;
3168
+ m && m.scale && (f = f * (m.scale || 1)), a.push({
3206
3169
  type: O.literal,
3207
3170
  value: r.getNumberFormat(t, m).format(f)
3208
3171
  });
3209
3172
  continue;
3210
3173
  }
3211
- if (Dt(h)) {
3212
- var x = h.children, _ = h.value, N = i[_];
3213
- if (!Cn(N))
3214
- throw new Pn(_, "function", s);
3215
- var L = be(x, t, r, n, i, o), M = N(L.map(function(H) {
3174
+ if (It(l)) {
3175
+ var x = l.children, v = l.value, N = i[v];
3176
+ if (!_n(N))
3177
+ throw new xn(v, "function", s);
3178
+ var L = de(x, t, r, n, i, o), M = N(L.map(function(H) {
3216
3179
  return H.value;
3217
3180
  }));
3218
- Array.isArray(M) || (M = [M]), u.push.apply(u, M.map(function(H) {
3181
+ Array.isArray(M) || (M = [M]), a.push.apply(a, M.map(function(H) {
3219
3182
  return {
3220
3183
  type: typeof H == "string" ? O.literal : O.object,
3221
3184
  value: H
3222
3185
  };
3223
3186
  }));
3224
3187
  }
3225
- if (Rt(h)) {
3226
- var B = h.options[f] || h.options.other;
3188
+ if (Pt(l)) {
3189
+ var B = l.options[f] || l.options.other;
3227
3190
  if (!B)
3228
- throw new bt(h.value, f, Object.keys(h.options), s);
3229
- u.push.apply(u, be(B.value, t, r, n, i));
3191
+ throw new ht(l.value, f, Object.keys(l.options), s);
3192
+ a.push.apply(a, de(B.value, t, r, n, i));
3230
3193
  continue;
3231
3194
  }
3232
- if ($t(h)) {
3233
- var B = h.options["=".concat(f)];
3195
+ if (Ot(l)) {
3196
+ var B = l.options["=".concat(f)];
3234
3197
  if (!B) {
3235
3198
  if (!Intl.PluralRules)
3236
- throw new Se(`Intl.PluralRules is not available in this environment.
3199
+ throw new _e(`Intl.PluralRules is not available in this environment.
3237
3200
  Try polyfilling it using "@formatjs/intl-pluralrules"
3238
- `, te.MISSING_INTL_API, s);
3239
- var I = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3240
- B = h.options[I] || h.options.other;
3201
+ `, ee.MISSING_INTL_API, s);
3202
+ var I = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3203
+ B = l.options[I] || l.options.other;
3241
3204
  }
3242
3205
  if (!B)
3243
- throw new bt(h.value, f, Object.keys(h.options), s);
3244
- u.push.apply(u, be(B.value, t, r, n, i, f - (h.offset || 0)));
3206
+ throw new ht(l.value, f, Object.keys(l.options), s);
3207
+ a.push.apply(a, de(B.value, t, r, n, i, f - (l.offset || 0)));
3245
3208
  continue;
3246
3209
  }
3247
3210
  }
3248
- return In(u);
3211
+ return vn(a);
3249
3212
  }
3250
- function Ln(e, t) {
3213
+ function Sn(e, t) {
3251
3214
  return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3252
3215
  return r[n] = y(y({}, e[n]), t[n] || {}), r;
3253
3216
  }, {})) : e;
3254
3217
  }
3255
- function Mn(e, t) {
3218
+ function wn(e, t) {
3256
3219
  return t ? Object.keys(e).reduce(function(r, n) {
3257
- return r[n] = Ln(e[n], t[n]), r;
3220
+ return r[n] = Sn(e[n], t[n]), r;
3258
3221
  }, y({}, e)) : e;
3259
3222
  }
3260
- function Ce(e) {
3223
+ function Oe(e) {
3261
3224
  return {
3262
3225
  create: function() {
3263
3226
  return {
@@ -3271,39 +3234,39 @@ function Ce(e) {
3271
3234
  }
3272
3235
  };
3273
3236
  }
3274
- function Rn(e) {
3237
+ function Hn(e) {
3275
3238
  return e === void 0 && (e = {
3276
3239
  number: {},
3277
3240
  dateTime: {},
3278
3241
  pluralRules: {}
3279
3242
  }), {
3280
- getNumberFormat: Pe(function() {
3243
+ getNumberFormat: Be(function() {
3281
3244
  for (var t, r = [], n = 0; n < arguments.length; n++)
3282
3245
  r[n] = arguments[n];
3283
- return new ((t = Intl.NumberFormat).bind.apply(t, Ne([void 0], r, !1)))();
3246
+ return new ((t = Intl.NumberFormat).bind.apply(t, Te([void 0], r, !1)))();
3284
3247
  }, {
3285
- cache: Ce(e.number),
3286
- strategy: Oe.variadic
3248
+ cache: Oe(e.number),
3249
+ strategy: Ne.variadic
3287
3250
  }),
3288
- getDateTimeFormat: Pe(function() {
3251
+ getDateTimeFormat: Be(function() {
3289
3252
  for (var t, r = [], n = 0; n < arguments.length; n++)
3290
3253
  r[n] = arguments[n];
3291
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ne([void 0], r, !1)))();
3254
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Te([void 0], r, !1)))();
3292
3255
  }, {
3293
- cache: Ce(e.dateTime),
3294
- strategy: Oe.variadic
3256
+ cache: Oe(e.dateTime),
3257
+ strategy: Ne.variadic
3295
3258
  }),
3296
- getPluralRules: Pe(function() {
3259
+ getPluralRules: Be(function() {
3297
3260
  for (var t, r = [], n = 0; n < arguments.length; n++)
3298
3261
  r[n] = arguments[n];
3299
- return new ((t = Intl.PluralRules).bind.apply(t, Ne([void 0], r, !1)))();
3262
+ return new ((t = Intl.PluralRules).bind.apply(t, Te([void 0], r, !1)))();
3300
3263
  }, {
3301
- cache: Ce(e.pluralRules),
3302
- strategy: Oe.variadic
3264
+ cache: Oe(e.pluralRules),
3265
+ strategy: Ne.variadic
3303
3266
  })
3304
3267
  };
3305
3268
  }
3306
- var $n = (
3269
+ var An = (
3307
3270
  /** @class */
3308
3271
  function() {
3309
3272
  function e(t, r, n, i) {
@@ -3313,20 +3276,20 @@ var $n = (
3313
3276
  number: {},
3314
3277
  dateTime: {},
3315
3278
  pluralRules: {}
3316
- }, this.format = function(l) {
3317
- var a = o.formatToParts(l);
3318
- if (a.length === 1)
3319
- return a[0].value;
3320
- var h = a.reduce(function(c, f) {
3279
+ }, this.format = function(h) {
3280
+ var u = o.formatToParts(h);
3281
+ if (u.length === 1)
3282
+ return u[0].value;
3283
+ var l = u.reduce(function(c, f) {
3321
3284
  return !c.length || f.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3322
3285
  }, []);
3323
- return h.length <= 1 ? h[0] || "" : h;
3324
- }, this.formatToParts = function(l) {
3325
- return be(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3286
+ return l.length <= 1 ? l[0] || "" : l;
3287
+ }, this.formatToParts = function(h) {
3288
+ return de(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3326
3289
  }, this.resolvedOptions = function() {
3327
- var l;
3290
+ var h;
3328
3291
  return {
3329
- locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3292
+ locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3330
3293
  };
3331
3294
  }, this.getAst = function() {
3332
3295
  return o.ast;
@@ -3335,13 +3298,13 @@ var $n = (
3335
3298
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3336
3299
  var s = i || {};
3337
3300
  s.formatters;
3338
- var u = zr(s, ["formatters"]);
3339
- this.ast = e.__parse(t, y(y({}, u), { locale: this.resolvedLocale }));
3301
+ var a = Lr(s, ["formatters"]);
3302
+ this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
3340
3303
  } else
3341
3304
  this.ast = t;
3342
3305
  if (!Array.isArray(this.ast))
3343
3306
  throw new TypeError("A message must be provided as a String or AST.");
3344
- this.formats = Mn(e.formats, n), this.formatters = i && i.formatters || Rn(this.formatterCache);
3307
+ this.formats = wn(e.formats, n), this.formatters = i && i.formatters || Hn(this.formatterCache);
3345
3308
  }
3346
3309
  return Object.defineProperty(e, "defaultLocale", {
3347
3310
  get: function() {
@@ -3350,11 +3313,11 @@ var $n = (
3350
3313
  enumerable: !1,
3351
3314
  configurable: !0
3352
3315
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3353
- if (typeof Intl.Locale != "undefined") {
3316
+ if (!(typeof Intl.Locale > "u")) {
3354
3317
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3355
3318
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3356
3319
  }
3357
- }, e.__parse = Nn, e.formats = {
3320
+ }, e.__parse = yn, e.formats = {
3358
3321
  number: {
3359
3322
  integer: {
3360
3323
  maximumFractionDigits: 0
@@ -3415,7 +3378,7 @@ var $n = (
3415
3378
  }, e;
3416
3379
  }()
3417
3380
  );
3418
- function Dn(e, t) {
3381
+ function Tn(e, t) {
3419
3382
  if (t == null)
3420
3383
  return;
3421
3384
  if (t in e)
@@ -3436,92 +3399,92 @@ function Dn(e, t) {
3436
3399
  n = void 0;
3437
3400
  return n;
3438
3401
  }
3439
- const G = {}, Un = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Zt = (e, t) => {
3402
+ const F = {}, Bn = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), Gt = (e, t) => {
3440
3403
  if (t == null)
3441
3404
  return;
3442
- if (t in G && e in G[t])
3443
- return G[t][e];
3444
- const r = we(t);
3405
+ if (t in F && e in F[t])
3406
+ return F[t][e];
3407
+ const r = Se(t);
3445
3408
  for (let n = 0; n < r.length; n++) {
3446
- const i = r[n], o = Gn(i, e);
3409
+ const i = r[n], o = Pn(i, e);
3447
3410
  if (o)
3448
- return Un(e, t, o);
3411
+ return Bn(e, t, o);
3449
3412
  }
3450
3413
  };
3451
- let Qe;
3452
- const ie = ve({});
3453
- function Fn(e) {
3454
- return Qe[e] || null;
3414
+ let We;
3415
+ const ne = Ee({});
3416
+ function Nn(e) {
3417
+ return We[e] || null;
3455
3418
  }
3456
- function Wt(e) {
3457
- return e in Qe;
3419
+ function jt(e) {
3420
+ return e in We;
3458
3421
  }
3459
- function Gn(e, t) {
3460
- if (!Wt(e))
3422
+ function Pn(e, t) {
3423
+ if (!jt(e))
3461
3424
  return null;
3462
- const r = Fn(e);
3463
- return Dn(r, t);
3425
+ const r = Nn(e);
3426
+ return Tn(r, t);
3464
3427
  }
3465
- function jn(e) {
3428
+ function On(e) {
3466
3429
  if (e == null)
3467
3430
  return;
3468
- const t = we(e);
3431
+ const t = Se(e);
3469
3432
  for (let r = 0; r < t.length; r++) {
3470
3433
  const n = t[r];
3471
- if (Wt(n))
3434
+ if (jt(n))
3472
3435
  return n;
3473
3436
  }
3474
3437
  }
3475
- function Jt(e, ...t) {
3476
- delete G[e], ie.update((r) => (r[e] = Vr.all([r[e] || {}, ...t]), r));
3438
+ function kt(e, ...t) {
3439
+ delete F[e], ne.update((r) => (r[e] = Cr.all([r[e] || {}, ...t]), r));
3477
3440
  }
3478
- ne(
3479
- [ie],
3441
+ re(
3442
+ [ne],
3480
3443
  ([e]) => Object.keys(e)
3481
3444
  );
3482
- ie.subscribe((e) => Qe = e);
3483
- const ge = {};
3484
- function kn(e, t) {
3485
- ge[e].delete(t), ge[e].size === 0 && delete ge[e];
3445
+ ne.subscribe((e) => We = e);
3446
+ const be = {};
3447
+ function In(e, t) {
3448
+ be[e].delete(t), be[e].size === 0 && delete be[e];
3486
3449
  }
3487
- function Qt(e) {
3488
- return ge[e];
3450
+ function Vt(e) {
3451
+ return be[e];
3489
3452
  }
3490
- function Vn(e) {
3491
- return we(e).map((t) => {
3492
- const r = Qt(t);
3453
+ function Cn(e) {
3454
+ return Se(e).map((t) => {
3455
+ const r = Vt(t);
3493
3456
  return [t, r ? [...r] : []];
3494
3457
  }).filter(([, t]) => t.length > 0);
3495
3458
  }
3496
- function Xe(e) {
3497
- return e == null ? !1 : we(e).some(
3459
+ function Ve(e) {
3460
+ return e == null ? !1 : Se(e).some(
3498
3461
  (t) => {
3499
3462
  var r;
3500
- return (r = Qt(t)) == null ? void 0 : r.size;
3463
+ return (r = Vt(t)) == null ? void 0 : r.size;
3501
3464
  }
3502
3465
  );
3503
3466
  }
3504
- function zn(e, t) {
3467
+ function Ln(e, t) {
3505
3468
  return Promise.all(
3506
- t.map((n) => (kn(e, n), n().then((i) => i.default || i)))
3507
- ).then((n) => Jt(e, ...n));
3508
- }
3509
- const se = {};
3510
- function qt(e) {
3511
- if (!Xe(e))
3512
- return e in se ? se[e] : Promise.resolve();
3513
- const t = Vn(e);
3514
- return se[e] = Promise.all(
3469
+ t.map((n) => (In(e, n), n().then((i) => i.default || i)))
3470
+ ).then((n) => kt(e, ...n));
3471
+ }
3472
+ const oe = {};
3473
+ function zt(e) {
3474
+ if (!Ve(e))
3475
+ return e in oe ? oe[e] : Promise.resolve();
3476
+ const t = Cn(e);
3477
+ return oe[e] = Promise.all(
3515
3478
  t.map(
3516
- ([r, n]) => zn(r, n)
3479
+ ([r, n]) => Ln(r, n)
3517
3480
  )
3518
3481
  ).then(() => {
3519
- if (Xe(e))
3520
- return qt(e);
3521
- delete se[e];
3522
- }), se[e];
3482
+ if (Ve(e))
3483
+ return zt(e);
3484
+ delete oe[e];
3485
+ }), oe[e];
3523
3486
  }
3524
- const Xn = {
3487
+ const Mn = {
3525
3488
  number: {
3526
3489
  scientific: { notation: "scientific" },
3527
3490
  engineering: { notation: "engineering" },
@@ -3550,159 +3513,159 @@ const Xn = {
3550
3513
  timeZoneName: "short"
3551
3514
  }
3552
3515
  }
3553
- }, Zn = {
3516
+ }, Rn = {
3554
3517
  fallbackLocale: null,
3555
3518
  loadingDelay: 200,
3556
- formats: Xn,
3519
+ formats: Mn,
3557
3520
  warnOnMissingMessages: !0,
3558
3521
  handleMissingMessage: void 0,
3559
3522
  ignoreTag: !0
3560
- }, Wn = Zn;
3561
- function re() {
3562
- return Wn;
3523
+ }, $n = Rn;
3524
+ function te() {
3525
+ return $n;
3563
3526
  }
3564
- const Le = ve(!1);
3565
- var Jn = Object.defineProperty, Qn = Object.defineProperties, qn = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, Yn = Object.prototype.hasOwnProperty, Kn = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? Jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ei = (e, t) => {
3527
+ const Ie = Ee(!1);
3528
+ var Dn = Object.defineProperty, Un = Object.defineProperties, Fn = Object.getOwnPropertyDescriptors, ft = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, jn = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, kn = (e, t) => {
3566
3529
  for (var r in t)
3567
- Yn.call(t, r) && yt(e, r, t[r]);
3568
- if (gt)
3569
- for (var r of gt(t))
3570
- Kn.call(t, r) && yt(e, r, t[r]);
3530
+ Gn.call(t, r) && ct(e, r, t[r]);
3531
+ if (ft)
3532
+ for (var r of ft(t))
3533
+ jn.call(t, r) && ct(e, r, t[r]);
3571
3534
  return e;
3572
- }, ti = (e, t) => Qn(e, qn(t));
3573
- let Ze;
3574
- const ye = ve(null);
3575
- function xt(e) {
3535
+ }, Vn = (e, t) => Un(e, Fn(t));
3536
+ let ze;
3537
+ const ge = Ee(null);
3538
+ function pt(e) {
3576
3539
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3577
3540
  }
3578
- function we(e, t = re().fallbackLocale) {
3579
- const r = xt(e);
3580
- return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
3541
+ function Se(e, t = te().fallbackLocale) {
3542
+ const r = pt(e);
3543
+ return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
3581
3544
  }
3582
- function X() {
3583
- return Ze != null ? Ze : void 0;
3545
+ function z() {
3546
+ return ze ?? void 0;
3584
3547
  }
3585
- ye.subscribe((e) => {
3586
- Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3548
+ ge.subscribe((e) => {
3549
+ ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3587
3550
  });
3588
- const ri = (e) => {
3589
- if (e && jn(e) && Xe(e)) {
3590
- const { loadingDelay: t } = re();
3551
+ const zn = (e) => {
3552
+ if (e && On(e) && Ve(e)) {
3553
+ const { loadingDelay: t } = te();
3591
3554
  let r;
3592
- return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
3593
- () => Le.set(!0),
3555
+ return typeof window < "u" && z() != null && t ? r = window.setTimeout(
3556
+ () => Ie.set(!0),
3594
3557
  t
3595
- ) : Le.set(!0), qt(e).then(() => {
3596
- ye.set(e);
3558
+ ) : Ie.set(!0), zt(e).then(() => {
3559
+ ge.set(e);
3597
3560
  }).finally(() => {
3598
- clearTimeout(r), Le.set(!1);
3561
+ clearTimeout(r), Ie.set(!1);
3599
3562
  });
3600
3563
  }
3601
- return ye.set(e);
3602
- }, z = ti(ei({}, ye), {
3603
- set: ri
3604
- }), He = (e) => {
3564
+ return ge.set(e);
3565
+ }, V = Vn(kn({}, ge), {
3566
+ set: zn
3567
+ }), we = (e) => {
3605
3568
  const t = /* @__PURE__ */ Object.create(null);
3606
3569
  return (n) => {
3607
3570
  const i = JSON.stringify(n);
3608
3571
  return i in t ? t[i] : t[i] = e(n);
3609
3572
  };
3610
3573
  };
3611
- var ni = Object.defineProperty, xe = Object.getOwnPropertySymbols, Yt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
3574
+ var Xn = Object.defineProperty, ye = Object.getOwnPropertySymbols, Xt = Object.prototype.hasOwnProperty, Zt = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
3612
3575
  for (var r in t || (t = {}))
3613
- Yt.call(t, r) && Et(e, r, t[r]);
3614
- if (xe)
3615
- for (var r of xe(t))
3616
- Kt.call(t, r) && Et(e, r, t[r]);
3576
+ Xt.call(t, r) && mt(e, r, t[r]);
3577
+ if (ye)
3578
+ for (var r of ye(t))
3579
+ Zt.call(t, r) && mt(e, r, t[r]);
3617
3580
  return e;
3618
- }, oe = (e, t) => {
3581
+ }, ie = (e, t) => {
3619
3582
  var r = {};
3620
3583
  for (var n in e)
3621
- Yt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3622
- if (e != null && xe)
3623
- for (var n of xe(e))
3624
- t.indexOf(n) < 0 && Kt.call(e, n) && (r[n] = e[n]);
3584
+ Xt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3585
+ if (e != null && ye)
3586
+ for (var n of ye(e))
3587
+ t.indexOf(n) < 0 && Zt.call(e, n) && (r[n] = e[n]);
3625
3588
  return r;
3626
3589
  };
3627
- const he = (e, t) => {
3628
- const { formats: r } = re();
3590
+ const le = (e, t) => {
3591
+ const { formats: r } = te();
3629
3592
  if (e in r && t in r[e])
3630
3593
  return r[e][t];
3631
3594
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3632
- }, ii = He(
3595
+ }, Zn = we(
3633
3596
  (e) => {
3634
- var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
3597
+ var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
3635
3598
  if (r == null)
3636
3599
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3637
- return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
3600
+ return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
3638
3601
  }
3639
- ), oi = He(
3602
+ ), Wn = we(
3640
3603
  (e) => {
3641
- var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
3604
+ var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
3642
3605
  if (r == null)
3643
3606
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3644
- return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
3607
+ return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
3645
3608
  }
3646
- ), si = He(
3609
+ ), Jn = we(
3647
3610
  (e) => {
3648
- var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
3611
+ var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
3649
3612
  if (r == null)
3650
3613
  throw new Error(
3651
3614
  '[svelte-i18n] A "locale" must be set to format time values'
3652
3615
  );
3653
- return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
3616
+ return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
3654
3617
  }
3655
- ), ai = (e = {}) => {
3618
+ ), Qn = (e = {}) => {
3656
3619
  var t = e, {
3657
- locale: r = X()
3658
- } = t, n = oe(t, [
3620
+ locale: r = z()
3621
+ } = t, n = ie(t, [
3659
3622
  "locale"
3660
3623
  ]);
3661
- return ii(qe({ locale: r }, n));
3662
- }, ui = (e = {}) => {
3624
+ return Zn(Je({ locale: r }, n));
3625
+ }, qn = (e = {}) => {
3663
3626
  var t = e, {
3664
- locale: r = X()
3665
- } = t, n = oe(t, [
3627
+ locale: r = z()
3628
+ } = t, n = ie(t, [
3666
3629
  "locale"
3667
3630
  ]);
3668
- return oi(qe({ locale: r }, n));
3669
- }, li = (e = {}) => {
3631
+ return Wn(Je({ locale: r }, n));
3632
+ }, Yn = (e = {}) => {
3670
3633
  var t = e, {
3671
- locale: r = X()
3672
- } = t, n = oe(t, [
3634
+ locale: r = z()
3635
+ } = t, n = ie(t, [
3673
3636
  "locale"
3674
3637
  ]);
3675
- return si(qe({ locale: r }, n));
3676
- }, hi = He(
3638
+ return Jn(Je({ locale: r }, n));
3639
+ }, Kn = we(
3677
3640
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3678
- (e, t = X()) => new $n(e, t, re().formats, {
3679
- ignoreTag: re().ignoreTag
3641
+ (e, t = z()) => new An(e, t, te().formats, {
3642
+ ignoreTag: te().ignoreTag
3680
3643
  })
3681
- ), fi = (e, t = {}) => {
3644
+ ), ei = (e, t = {}) => {
3682
3645
  var r, n, i, o;
3683
3646
  let s = t;
3684
3647
  typeof e == "object" && (s = e, e = s.id);
3685
3648
  const {
3686
- values: u,
3687
- locale: l = X(),
3688
- default: a
3649
+ values: a,
3650
+ locale: h = z(),
3651
+ default: u
3689
3652
  } = s;
3690
- if (l == null)
3653
+ if (h == null)
3691
3654
  throw new Error(
3692
3655
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3693
3656
  );
3694
- let h = Zt(e, l);
3695
- if (!h)
3696
- h = (o = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? o : e;
3697
- else if (typeof h != "string")
3657
+ let l = Gt(e, h);
3658
+ if (!l)
3659
+ l = (o = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3660
+ else if (typeof l != "string")
3698
3661
  return console.warn(
3699
- `[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.`
3700
- ), h;
3701
- if (!u)
3702
- return h;
3703
- let c = h;
3662
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3663
+ ), l;
3664
+ if (!a)
3665
+ return l;
3666
+ let c = l;
3704
3667
  try {
3705
- c = hi(h, l).format(u);
3668
+ c = Kn(l, h).format(a);
3706
3669
  } catch (f) {
3707
3670
  f instanceof Error && console.warn(
3708
3671
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3710,20 +3673,20 @@ const he = (e, t) => {
3710
3673
  );
3711
3674
  }
3712
3675
  return c;
3713
- }, ci = (e, t) => li(t).format(e), pi = (e, t) => ui(t).format(e), mi = (e, t) => ai(t).format(e), di = (e, t = X()) => Zt(e, t), bi = ne([z, ie], () => fi);
3714
- ne([z], () => ci);
3715
- ne([z], () => pi);
3716
- ne([z], () => mi);
3717
- ne([z, ie], () => di);
3718
- function gi({ withLocale: e, translations: t }) {
3719
- z.subscribe((r) => {
3720
- r == null && (ie.set(t), z.set(e));
3676
+ }, ti = (e, t) => Yn(t).format(e), ri = (e, t) => qn(t).format(e), ni = (e, t) => Qn(t).format(e), ii = (e, t = z()) => Gt(e, t), oi = re([V, ne], () => ei);
3677
+ re([V], () => ti);
3678
+ re([V], () => ri);
3679
+ re([V], () => ni);
3680
+ re([V, ne], () => ii);
3681
+ function si({ withLocale: e, translations: t }) {
3682
+ V.subscribe((r) => {
3683
+ r == null && (ne.set(t), V.set(e));
3721
3684
  });
3722
3685
  }
3723
- function vt(e, t) {
3724
- Jt(e, t);
3686
+ function dt(e, t) {
3687
+ kt(e, t);
3725
3688
  }
3726
- const _t = {
3689
+ const bt = {
3727
3690
  en: {
3728
3691
  sortby: "Sort by:",
3729
3692
  all: "All",
@@ -3851,84 +3814,84 @@ const _t = {
3851
3814
  hottest: "Hottest"
3852
3815
  }
3853
3816
  };
3854
- function yi(e) {
3855
- ar(e, "svelte-kh3a1g", ':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.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)}}');
3817
+ function ai(e) {
3818
+ Qt(e, "svelte-kh3a1g", ':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.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)}}');
3856
3819
  }
3857
- function St(e, t, r) {
3820
+ function gt(e, t, r) {
3858
3821
  const n = e.slice();
3859
3822
  return n[23] = t[r], n;
3860
3823
  }
3861
- function xi(e) {
3862
- let t, r, n, i, o, s, u, l, a, h, c, f = (
3824
+ function ui(e) {
3825
+ let t, r, n, i, o, s, a, h, u, l, c, f = (
3863
3826
  /*$_*/
3864
3827
  e[4]("sortby") + ""
3865
- ), m, x, _, N, L = (
3828
+ ), m, x, v, N, L = (
3866
3829
  /*vendorSortingBy*/
3867
3830
  (e[3] || /*$_*/
3868
3831
  e[4]("all")) + ""
3869
- ), M, B, I, H, C, U, Z, d, v, $, pe, Ae, Ye, W = at(Object.values(
3832
+ ), M, B, I, H, C, D, X, d, S, R, ce, He, Qe, Z = tt(Object.values(
3870
3833
  /*vendorMap*/
3871
3834
  e[5]
3872
3835
  )), P = [];
3873
- for (let w = 0; w < W.length; w += 1)
3874
- P[w] = wt(St(e, W, w));
3836
+ for (let w = 0; w < Z.length; w += 1)
3837
+ P[w] = yt(gt(e, Z, w));
3875
3838
  return {
3876
3839
  c() {
3877
- t = A("div"), r = A("div"), n = A("div"), i = j("svg"), o = j("g"), s = j("path"), u = j("path"), l = j("path"), a = V(), h = A("div"), c = A("span"), m = Me(f), x = V(), _ = A("div"), N = A("span"), M = Me(L), B = V(), I = A("span"), H = j("svg"), C = j("path"), d = V(), v = A("div"), $ = A("ul");
3840
+ t = A("div"), r = A("div"), n = A("div"), i = G("svg"), o = G("g"), s = G("path"), a = G("path"), h = G("path"), u = k(), l = A("div"), c = A("span"), m = Ce(f), x = k(), v = A("div"), N = A("span"), M = Ce(L), B = k(), I = A("span"), H = G("svg"), C = G("path"), d = k(), S = A("div"), R = A("ul");
3878
3841
  for (let w = 0; w < P.length; w += 1)
3879
3842
  P[w].c();
3880
- p(s, "id", "Path_5267"), p(s, "data-name", "Path 5267"), p(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"), p(s, "transform", "translate(-206.448 0)"), p(s, "fill", "#fff"), p(u, "id", "Path_5268"), p(u, "data-name", "Path 5268"), p(u, "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"), p(u, "transform", "translate(0 0)"), p(u, "fill", "#fff"), p(l, "id", "Path_5269"), p(l, "data-name", "Path 5269"), p(l, "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"), p(l, "transform", "translate(-412.896 0)"), p(l, "fill", "#fff"), p(o, "id", "sortby"), p(o, "transform", "translate(-306 -342)"), p(i, "xmlns", "http://www.w3.org/2000/svg"), p(i, "width", "20"), p(i, "height", "20"), p(i, "viewBox", "0 0 26.003 22.819"), p(c, "class", "SorterName"), p(_, "class", "SorterValueContainer"), p(h, "class", "SorterTextContainer"), p(n, "class", "SorterMainArea"), p(C, "id", "arrow"), p(C, "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"), p(C, "transform", "translate(-274.511 -441.088)"), p(C, "fill", "#d1d1d1"), p(H, "xmlns", "http://www.w3.org/2000/svg"), p(H, "width", "14"), p(H, "height", "6.835"), p(H, "viewBox", "0 0 14 6.835"), p(I, "class", U = "TriangleInactive " + /*isSorterActive*/
3881
- (e[1] ? "TriangleActive" : "")), p(r, "class", Z = "SorterSelector " + /*isSorterActive*/
3882
- (e[1] ? "SorterSelectorOpen" : "")), p($, "class", "SorterDropdown"), p(v, "class", pe = "SorterDropdownContainer " + /*isSorterActive*/
3843
+ p(s, "id", "Path_5267"), p(s, "data-name", "Path 5267"), p(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"), p(s, "transform", "translate(-206.448 0)"), p(s, "fill", "#fff"), p(a, "id", "Path_5268"), p(a, "data-name", "Path 5268"), p(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"), p(a, "transform", "translate(0 0)"), p(a, "fill", "#fff"), p(h, "id", "Path_5269"), p(h, "data-name", "Path 5269"), p(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"), p(h, "transform", "translate(-412.896 0)"), p(h, "fill", "#fff"), p(o, "id", "sortby"), p(o, "transform", "translate(-306 -342)"), p(i, "xmlns", "http://www.w3.org/2000/svg"), p(i, "width", "20"), p(i, "height", "20"), p(i, "viewBox", "0 0 26.003 22.819"), p(c, "class", "SorterName"), p(v, "class", "SorterValueContainer"), p(l, "class", "SorterTextContainer"), p(n, "class", "SorterMainArea"), p(C, "id", "arrow"), p(C, "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"), p(C, "transform", "translate(-274.511 -441.088)"), p(C, "fill", "#d1d1d1"), p(H, "xmlns", "http://www.w3.org/2000/svg"), p(H, "width", "14"), p(H, "height", "6.835"), p(H, "viewBox", "0 0 14 6.835"), p(I, "class", D = "TriangleInactive " + /*isSorterActive*/
3844
+ (e[1] ? "TriangleActive" : "")), p(r, "class", X = "SorterSelector " + /*isSorterActive*/
3845
+ (e[1] ? "SorterSelectorOpen" : "")), p(R, "class", "SorterDropdown"), p(S, "class", ce = "SorterDropdownContainer " + /*isSorterActive*/
3883
3846
  (e[1] ? "SorterOpen" : "")), p(t, "class", "SorterContainer");
3884
3847
  },
3885
- m(w, F) {
3886
- Ee(w, t, F), E(t, r), E(r, n), E(n, i), E(i, o), E(o, s), E(o, u), E(o, l), E(n, a), E(n, h), E(h, c), E(c, m), E(h, x), E(h, _), E(_, N), E(N, M), E(r, B), E(r, I), E(I, H), E(H, C), E(t, d), E(t, v), E(v, $);
3848
+ m(w, U) {
3849
+ xe(w, t, U), E(t, r), E(r, n), E(n, i), E(i, o), E(o, s), E(o, a), E(o, h), E(n, u), E(n, l), E(l, c), E(c, m), E(l, x), E(l, v), E(v, N), E(N, M), E(r, B), E(r, I), E(I, H), E(H, C), E(t, d), E(t, S), E(S, R);
3887
3850
  for (let T = 0; T < P.length; T += 1)
3888
- P[T] && P[T].m($, null);
3889
- Ae || (Ye = Bt(
3851
+ P[T] && P[T].m(R, null);
3852
+ He || (Qe = _t(
3890
3853
  r,
3891
3854
  "click",
3892
3855
  /*click_handler*/
3893
3856
  e[13]
3894
- ), Ae = !0);
3857
+ ), He = !0);
3895
3858
  },
3896
- p(w, F) {
3897
- if (F & /*$_*/
3859
+ p(w, U) {
3860
+ if (U & /*$_*/
3898
3861
  16 && f !== (f = /*$_*/
3899
- w[4]("sortby") + "") && ot(m, f), F & /*vendorSortingBy, $_*/
3862
+ w[4]("sortby") + "") && Ke(m, f), U & /*vendorSortingBy, $_*/
3900
3863
  24 && L !== (L = /*vendorSortingBy*/
3901
3864
  (w[3] || /*$_*/
3902
- w[4]("all")) + "") && ot(M, L), F & /*isSorterActive*/
3903
- 2 && U !== (U = "TriangleInactive " + /*isSorterActive*/
3904
- (w[1] ? "TriangleActive" : "")) && p(I, "class", U), F & /*isSorterActive*/
3905
- 2 && Z !== (Z = "SorterSelector " + /*isSorterActive*/
3906
- (w[1] ? "SorterSelectorOpen" : "")) && p(r, "class", Z), F & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
3865
+ w[4]("all")) + "") && Ke(M, L), U & /*isSorterActive*/
3866
+ 2 && D !== (D = "TriangleInactive " + /*isSorterActive*/
3867
+ (w[1] ? "TriangleActive" : "")) && p(I, "class", D), U & /*isSorterActive*/
3868
+ 2 && X !== (X = "SorterSelector " + /*isSorterActive*/
3869
+ (w[1] ? "SorterSelectorOpen" : "")) && p(r, "class", X), U & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
3907
3870
  120) {
3908
- W = at(Object.values(
3871
+ Z = tt(Object.values(
3909
3872
  /*vendorMap*/
3910
3873
  w[5]
3911
3874
  ));
3912
3875
  let T;
3913
- for (T = 0; T < W.length; T += 1) {
3914
- const Ke = St(w, W, T);
3915
- P[T] ? P[T].p(Ke, F) : (P[T] = wt(Ke), P[T].c(), P[T].m($, null));
3876
+ for (T = 0; T < Z.length; T += 1) {
3877
+ const qe = gt(w, Z, T);
3878
+ P[T] ? P[T].p(qe, U) : (P[T] = yt(qe), P[T].c(), P[T].m(R, null));
3916
3879
  }
3917
3880
  for (; T < P.length; T += 1)
3918
3881
  P[T].d(1);
3919
- P.length = W.length;
3882
+ P.length = Z.length;
3920
3883
  }
3921
- F & /*isSorterActive*/
3922
- 2 && pe !== (pe = "SorterDropdownContainer " + /*isSorterActive*/
3923
- (w[1] ? "SorterOpen" : "")) && p(v, "class", pe);
3884
+ U & /*isSorterActive*/
3885
+ 2 && ce !== (ce = "SorterDropdownContainer " + /*isSorterActive*/
3886
+ (w[1] ? "SorterOpen" : "")) && p(S, "class", ce);
3924
3887
  },
3925
3888
  d(w) {
3926
- w && ce(t), hr(P, w), Ae = !1, Ye();
3889
+ w && fe(t), Kt(P, w), He = !1, Qe();
3927
3890
  }
3928
3891
  };
3929
3892
  }
3930
- function wt(e) {
3931
- let t, r, n, i, o, s, u, l, a, h, c;
3893
+ function yt(e) {
3894
+ let t, r, n, i, o, s, a, h, u, l, c;
3932
3895
  function f() {
3933
3896
  return (
3934
3897
  /*click_handler_1*/
@@ -3940,8 +3903,8 @@ function wt(e) {
3940
3903
  }
3941
3904
  return {
3942
3905
  c() {
3943
- t = A("li"), r = A("label"), n = A("input"), o = V(), s = A("span"), u = V(), l = A("span"), l.textContent = `${/*sort*/
3944
- e[23]}`, a = V(), p(n, "type", "radio"), p(n, "name", "radio"), n.value = /*sort*/
3906
+ t = A("li"), r = A("label"), n = A("input"), o = k(), s = A("span"), a = k(), h = A("span"), h.textContent = `${/*sort*/
3907
+ e[23]}`, u = k(), p(n, "type", "radio"), p(n, "name", "radio"), n.value = /*sort*/
3945
3908
  e[23], n.checked = i = /*vendorSortingBy*/
3946
3909
  e[3] == /*sort*/
3947
3910
  e[23] ? !0 : (
@@ -3953,7 +3916,7 @@ function wt(e) {
3953
3916
  e[23];
3954
3917
  },
3955
3918
  m(m, x) {
3956
- Ee(m, t, x), E(t, r), E(r, n), E(r, o), E(r, s), E(r, u), E(r, l), E(t, a), h || (c = Bt(n, "click", f), h = !0);
3919
+ xe(m, t, x), E(t, r), E(r, n), E(r, o), E(r, s), E(r, a), E(r, h), E(t, u), l || (c = _t(n, "click", f), l = !0);
3957
3920
  },
3958
3921
  p(m, x) {
3959
3922
  e = m, x & /*vendorSortingBy, $_*/
@@ -3967,15 +3930,15 @@ function wt(e) {
3967
3930
  )) && (n.checked = i);
3968
3931
  },
3969
3932
  d(m) {
3970
- m && ce(t), h = !1, c();
3933
+ m && fe(t), l = !1, c();
3971
3934
  }
3972
3935
  };
3973
3936
  }
3974
- function Ei(e) {
3937
+ function li(e) {
3975
3938
  let t;
3976
3939
  function r(o, s) {
3977
3940
  if (!/*isLoading*/
3978
- o[2]) return xi;
3941
+ o[2]) return ui;
3979
3942
  }
3980
3943
  let n = r(e), i = n && n(e);
3981
3944
  return {
@@ -3983,124 +3946,123 @@ function Ei(e) {
3983
3946
  t = A("div"), i && i.c();
3984
3947
  },
3985
3948
  m(o, s) {
3986
- Ee(o, t, s), i && i.m(t, null), e[15](t);
3949
+ xe(o, t, s), i && i.m(t, null), e[15](t);
3987
3950
  },
3988
3951
  p(o, [s]) {
3989
3952
  n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
3990
3953
  },
3991
- i: D,
3992
- o: D,
3954
+ i: $,
3955
+ o: $,
3993
3956
  d(o) {
3994
- o && ce(t), i && i.d(), e[15](null);
3957
+ o && fe(t), i && i.d(), e[15](null);
3995
3958
  }
3996
3959
  };
3997
3960
  }
3998
- function vi(e, t, r) {
3961
+ function hi(e, t, r) {
3999
3962
  let n;
4000
- sr(e, bi, (d) => r(4, n = d));
4001
- let { lang: i = "" } = t, { translationurl: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: u = "" } = t, { categoryid: l = "" } = t, a, h = !1, c = !0, f = "", m = "All";
4002
- gi({ withLocale: "en", translations: {} });
3963
+ Jt(e, oi, (d) => r(4, n = d));
3964
+ let { lang: i = "" } = t, { translationurl: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { categoryid: h = "" } = t, u, l = !1, c = !0, f = "", m = "All";
3965
+ si({ withLocale: "en", translations: {} });
4003
3966
  const x = () => {
4004
- fetch(o).then((v) => v.json()).then((v) => {
4005
- Object.keys(v).forEach(($) => {
4006
- vt($, v[$]);
3967
+ fetch(o).then((S) => S.json()).then((S) => {
3968
+ Object.keys(S).forEach((R) => {
3969
+ dt(R, S[R]);
4007
3970
  });
4008
- }).catch((v) => {
4009
- console.log(v);
3971
+ }).catch((S) => {
3972
+ console.log(S);
4010
3973
  });
4011
3974
  };
4012
- Object.keys(_t).forEach((d) => {
4013
- vt(d, _t[d]);
3975
+ Object.keys(bt).forEach((d) => {
3976
+ dt(d, bt[d]);
4014
3977
  });
4015
- const _ = {
3978
+ const v = {
4016
3979
  All: n("all"),
4017
3980
  name: n("az"),
4018
3981
  isNew: n("newest"),
4019
3982
  "advancedTags(name(hot))": n("hottest")
4020
3983
  }, N = () => {
4021
3984
  let d = document.createElement("style");
4022
- d.innerHTML = s, a.appendChild(d);
3985
+ d.innerHTML = s, u.appendChild(d);
4023
3986
  }, L = () => {
4024
3987
  let d = document.createElement("style");
4025
- fetch(new URL(u)).then((v) => v.text()).then((v) => {
4026
- d.innerHTML = v, setTimeout(
3988
+ fetch(new URL(a)).then((S) => S.text()).then((S) => {
3989
+ d.innerHTML = S, setTimeout(
4027
3990
  () => {
4028
- a.appendChild(d);
3991
+ u.appendChild(d);
4029
3992
  },
4030
3993
  1
4031
3994
  );
4032
3995
  });
4033
3996
  }, M = () => {
4034
- var v;
4035
- r(3, m = "All"), r(2, c = !1), r(1, h = !1);
4036
- let d = (v = JSON.parse(localStorage.getItem("vendorSortingBy"))) == null ? void 0 : v[l];
4037
- d ? r(3, m = d) : r(3, m = "All"), r(3, m = _[d]);
3997
+ r(3, m = "All"), r(2, c = !1), r(1, l = !1);
3998
+ let d = JSON.parse(localStorage.getItem("vendorSortingBy"))?.[h];
3999
+ d ? r(3, m = d) : r(3, m = "All"), r(3, m = v[d]);
4038
4000
  }, B = (d) => {
4039
4001
  r(3, m = d);
4040
- let v = localStorage.getItem("vendorSortingBy");
4002
+ let S = localStorage.getItem("vendorSortingBy");
4041
4003
  f = d;
4042
- for (let $ in _)
4043
- if (_[$] === d) {
4044
- f = $;
4004
+ for (let R in v)
4005
+ if (v[R] === d) {
4006
+ f = R;
4045
4007
  break;
4046
4008
  }
4047
- v == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [l]: f })) : (v = JSON.parse(v), v[l] = f, localStorage.setItem("vendorSortingBy", JSON.stringify(v))), window.postMessage(
4009
+ S == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [h]: f })) : (S = JSON.parse(S), S[h] = f, localStorage.setItem("vendorSortingBy", JSON.stringify(S))), window.postMessage(
4048
4010
  {
4049
4011
  type: "ApplySorter",
4050
4012
  sortBy: f,
4051
- itemId: l
4013
+ itemId: h
4052
4014
  },
4053
4015
  window.location.href
4054
- ), r(1, h = !h);
4016
+ ), r(1, l = !l);
4055
4017
  }, I = () => {
4056
- r(1, h = !h), window.postMessage({ type: "SortingOpened" }, window.location.href);
4018
+ r(1, l = !l), window.postMessage({ type: "SortingOpened" }, window.location.href);
4057
4019
  }, H = (d) => {
4058
- d.data.type == "FilterOpened" && r(1, h = !1);
4020
+ d.data.type == "FilterOpened" && r(1, l = !1);
4059
4021
  };
4060
- mr(() => (window.addEventListener("message", H, !1), () => {
4022
+ nr(() => (window.addEventListener("message", H, !1), () => {
4061
4023
  window.removeEventListener("message", H);
4062
4024
  }));
4063
- const C = () => I(), U = (d) => B(d);
4064
- function Z(d) {
4065
- Re[d ? "unshift" : "push"](() => {
4066
- a = d, r(0, a);
4025
+ const C = () => I(), D = (d) => B(d);
4026
+ function X(d) {
4027
+ Le[d ? "unshift" : "push"](() => {
4028
+ u = d, r(0, u);
4067
4029
  });
4068
4030
  }
4069
4031
  return e.$$set = (d) => {
4070
- "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, u = d.clientstylingurl), "categoryid" in d && r(12, l = d.categoryid);
4032
+ "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);
4071
4033
  }, e.$$.update = () => {
4072
4034
  e.$$.dirty & /*categoryid*/
4073
- 4096 && l && M(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4074
- 1025 && s && a && N(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4075
- 2049 && u && a && L(), e.$$.dirty & /*translationurl*/
4035
+ 4096 && h && M(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4036
+ 1025 && s && u && N(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4037
+ 2049 && a && u && L(), e.$$.dirty & /*translationurl*/
4076
4038
  512 && o && x();
4077
4039
  }, [
4078
- a,
4079
- h,
4040
+ u,
4041
+ l,
4080
4042
  c,
4081
4043
  m,
4082
4044
  n,
4083
- _,
4045
+ v,
4084
4046
  B,
4085
4047
  I,
4086
4048
  i,
4087
4049
  o,
4088
4050
  s,
4089
- u,
4090
- l,
4051
+ a,
4052
+ h,
4091
4053
  C,
4092
- U,
4093
- Z
4054
+ D,
4055
+ X
4094
4056
  ];
4095
4057
  }
4096
- class _i extends Ar {
4058
+ class fi extends dr {
4097
4059
  constructor(t) {
4098
- super(), wr(
4060
+ super(), pr(
4099
4061
  this,
4100
4062
  t,
4101
- vi,
4102
- Ei,
4103
- At,
4063
+ hi,
4064
+ li,
4065
+ Et,
4104
4066
  {
4105
4067
  lang: 8,
4106
4068
  translationurl: 9,
@@ -4108,41 +4070,41 @@ class _i extends Ar {
4108
4070
  clientstylingurl: 11,
4109
4071
  categoryid: 12
4110
4072
  },
4111
- yi
4073
+ ai
4112
4074
  );
4113
4075
  }
4114
4076
  get lang() {
4115
4077
  return this.$$.ctx[8];
4116
4078
  }
4117
4079
  set lang(t) {
4118
- this.$$set({ lang: t }), k();
4080
+ this.$$set({ lang: t }), j();
4119
4081
  }
4120
4082
  get translationurl() {
4121
4083
  return this.$$.ctx[9];
4122
4084
  }
4123
4085
  set translationurl(t) {
4124
- this.$$set({ translationurl: t }), k();
4086
+ this.$$set({ translationurl: t }), j();
4125
4087
  }
4126
4088
  get clientstyling() {
4127
4089
  return this.$$.ctx[10];
4128
4090
  }
4129
4091
  set clientstyling(t) {
4130
- this.$$set({ clientstyling: t }), k();
4092
+ this.$$set({ clientstyling: t }), j();
4131
4093
  }
4132
4094
  get clientstylingurl() {
4133
4095
  return this.$$.ctx[11];
4134
4096
  }
4135
4097
  set clientstylingurl(t) {
4136
- this.$$set({ clientstylingurl: t }), k();
4098
+ this.$$set({ clientstylingurl: t }), j();
4137
4099
  }
4138
4100
  get categoryid() {
4139
4101
  return this.$$.ctx[12];
4140
4102
  }
4141
4103
  set categoryid(t) {
4142
- this.$$set({ categoryid: t }), k();
4104
+ this.$$set({ categoryid: t }), j();
4143
4105
  }
4144
4106
  }
4145
- Hr(_i, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {} }, [], [], !0);
4107
+ mr(fi, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {} }, [], [], !0);
4146
4108
  export {
4147
- _i as default
4109
+ fi as C
4148
4110
  };