@everymatrix/casino-tournaments-thumbnail 1.53.0 → 1.53.11

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,78 +1,49 @@
1
- var cr = Object.defineProperty, fr = Object.defineProperties;
2
- var mr = Object.getOwnPropertyDescriptors;
3
- var nt = Object.getOwnPropertySymbols;
4
- var dr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable;
5
- var Ne = (e, t, r) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
6
- for (var r in t || (t = {}))
7
- dr.call(t, r) && Ne(e, r, t[r]);
8
- if (nt)
9
- for (var r of nt(t))
10
- br.call(t, r) && Ne(e, r, t[r]);
11
- return e;
12
- }, st = (e, t) => fr(e, mr(t));
13
- var D = (e, t, r) => Ne(e, typeof t != "symbol" ? t + "" : t, r);
14
- var at = (e, t, r) => new Promise((n, i) => {
15
- var s = (l) => {
16
- try {
17
- o(r.next(l));
18
- } catch (u) {
19
- i(u);
20
- }
21
- }, a = (l) => {
22
- try {
23
- o(r.throw(l));
24
- } catch (u) {
25
- i(u);
26
- }
27
- }, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
28
- o((r = r.apply(e, t)).next());
29
- });
30
- function k() {
1
+ function D() {
31
2
  }
32
- function Nt(e) {
3
+ function vt(e) {
33
4
  return e();
34
5
  }
35
- function ot() {
6
+ function et() {
36
7
  return /* @__PURE__ */ Object.create(null);
37
8
  }
38
- function ne(e) {
39
- e.forEach(Nt);
9
+ function re(e) {
10
+ e.forEach(vt);
40
11
  }
41
12
  function fe(e) {
42
13
  return typeof e == "function";
43
14
  }
44
- function Pt(e, t) {
15
+ function St(e, t) {
45
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
17
  }
47
- function gr(e) {
18
+ function ir(e) {
48
19
  return Object.keys(e).length === 0;
49
20
  }
50
- function It(e, ...t) {
21
+ function Tt(e, ...t) {
51
22
  if (e == null) {
52
23
  for (const n of t)
53
24
  n(void 0);
54
- return k;
25
+ return D;
55
26
  }
56
27
  const r = e.subscribe(...t);
57
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
29
  }
59
- function pr(e, t, r) {
60
- e.$$.on_destroy.push(It(t, r));
30
+ function sr(e, t, r) {
31
+ e.$$.on_destroy.push(Tt(t, r));
61
32
  }
62
- function me(e) {
63
- return e && fe(e.destroy) ? e.destroy : k;
33
+ function ce(e) {
34
+ return e && fe(e.destroy) ? e.destroy : D;
64
35
  }
65
36
  function S(e, t) {
66
37
  e.appendChild(t);
67
38
  }
68
- function yr(e, t, r) {
69
- const n = _r(e);
39
+ function ar(e, t, r) {
40
+ const n = or(e);
70
41
  if (!n.getElementById(t)) {
71
42
  const i = I("style");
72
- i.id = t, i.textContent = r, Er(n, i);
43
+ i.id = t, i.textContent = r, ur(n, i);
73
44
  }
74
45
  }
75
- function _r(e) {
46
+ function or(e) {
76
47
  if (!e) return document;
77
48
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
78
49
  return t && /** @type {ShadowRoot} */
@@ -81,17 +52,17 @@ function _r(e) {
81
52
  t
82
53
  ) : e.ownerDocument;
83
54
  }
84
- function Er(e, t) {
55
+ function ur(e, t) {
85
56
  return S(
86
57
  /** @type {Document} */
87
58
  e.head || e,
88
59
  t
89
60
  ), t.sheet;
90
61
  }
91
- function G(e, t, r) {
62
+ function F(e, t, r) {
92
63
  e.insertBefore(t, r || null);
93
64
  }
94
- function U(e) {
65
+ function k(e) {
95
66
  e.parentNode && e.parentNode.removeChild(e);
96
67
  }
97
68
  function I(e) {
@@ -100,29 +71,29 @@ function I(e) {
100
71
  function M(e) {
101
72
  return document.createTextNode(e);
102
73
  }
103
- function z() {
74
+ function J() {
104
75
  return M(" ");
105
76
  }
106
- function vr() {
77
+ function lr() {
107
78
  return M("");
108
79
  }
109
- function xr(e, t, r, n) {
80
+ function hr(e, t, r, n) {
110
81
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
111
82
  }
112
83
  function _(e, t, r) {
113
84
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
114
85
  }
115
- function Sr(e) {
86
+ function fr(e) {
116
87
  return Array.from(e.childNodes);
117
88
  }
118
- function $(e, t) {
89
+ function G(e, t) {
119
90
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
120
91
  t);
121
92
  }
122
- function De(e, t, r, n) {
93
+ function Re(e, t, r, n) {
123
94
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
124
95
  }
125
- function Tr(e) {
96
+ function cr(e) {
126
97
  const t = {};
127
98
  return e.childNodes.forEach(
128
99
  /** @param {Element} node */
@@ -131,245 +102,241 @@ function Tr(e) {
131
102
  }
132
103
  ), t;
133
104
  }
134
- let le;
135
- function ue(e) {
136
- le = e;
105
+ let ue;
106
+ function oe(e) {
107
+ ue = e;
137
108
  }
138
- function Ar() {
139
- if (!le) throw new Error("Function called outside component initialization");
140
- return le;
109
+ function mr() {
110
+ if (!ue) throw new Error("Function called outside component initialization");
111
+ return ue;
141
112
  }
142
- function Hr(e) {
143
- Ar().$$.on_mount.push(e);
113
+ function dr(e) {
114
+ mr().$$.on_mount.push(e);
144
115
  }
145
- const q = [], ke = [];
146
- let Y = [];
147
- const ut = [], Cr = /* @__PURE__ */ Promise.resolve();
148
- let Ue = !1;
149
- function Br() {
150
- Ue || (Ue = !0, Cr.then(N));
116
+ const Q = [], Le = [];
117
+ let q = [];
118
+ const tt = [], br = /* @__PURE__ */ Promise.resolve();
119
+ let De = !1;
120
+ function gr() {
121
+ De || (De = !0, br.then(N));
151
122
  }
152
- function Fe(e) {
153
- Y.push(e);
123
+ function ke(e) {
124
+ q.push(e);
154
125
  }
155
- const Pe = /* @__PURE__ */ new Set();
156
- let Z = 0;
126
+ const Be = /* @__PURE__ */ new Set();
127
+ let X = 0;
157
128
  function N() {
158
- if (Z !== 0)
129
+ if (X !== 0)
159
130
  return;
160
- const e = le;
131
+ const e = ue;
161
132
  do {
162
133
  try {
163
- for (; Z < q.length; ) {
164
- const t = q[Z];
165
- Z++, ue(t), Nr(t.$$);
134
+ for (; X < Q.length; ) {
135
+ const t = Q[X];
136
+ X++, oe(t), pr(t.$$);
166
137
  }
167
138
  } catch (t) {
168
- throw q.length = 0, Z = 0, t;
139
+ throw Q.length = 0, X = 0, t;
169
140
  }
170
- for (ue(null), q.length = 0, Z = 0; ke.length; ) ke.pop()();
171
- for (let t = 0; t < Y.length; t += 1) {
172
- const r = Y[t];
173
- Pe.has(r) || (Pe.add(r), r());
141
+ for (oe(null), Q.length = 0, X = 0; Le.length; ) Le.pop()();
142
+ for (let t = 0; t < q.length; t += 1) {
143
+ const r = q[t];
144
+ Be.has(r) || (Be.add(r), r());
174
145
  }
175
- Y.length = 0;
176
- } while (q.length);
177
- for (; ut.length; )
178
- ut.pop()();
179
- Ue = !1, Pe.clear(), ue(e);
146
+ q.length = 0;
147
+ } while (Q.length);
148
+ for (; tt.length; )
149
+ tt.pop()();
150
+ De = !1, Be.clear(), oe(e);
180
151
  }
181
- function Nr(e) {
152
+ function pr(e) {
182
153
  if (e.fragment !== null) {
183
- e.update(), ne(e.before_update);
154
+ e.update(), re(e.before_update);
184
155
  const t = e.dirty;
185
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Fe);
156
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ke);
186
157
  }
187
158
  }
188
- function Pr(e) {
159
+ function yr(e) {
189
160
  const t = [], r = [];
190
- Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
161
+ q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
191
162
  }
192
- const Ir = /* @__PURE__ */ new Set();
193
- function Or(e, t) {
194
- e && e.i && (Ir.delete(e), e.i(t));
163
+ const _r = /* @__PURE__ */ new Set();
164
+ function Er(e, t) {
165
+ e && e.i && (_r.delete(e), e.i(t));
195
166
  }
196
- function wr(e, t, r) {
167
+ function xr(e, t, r) {
197
168
  const { fragment: n, after_update: i } = e.$$;
198
- n && n.m(t, r), Fe(() => {
199
- const s = e.$$.on_mount.map(Nt).filter(fe);
200
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ne(s), e.$$.on_mount = [];
201
- }), i.forEach(Fe);
169
+ n && n.m(t, r), ke(() => {
170
+ const s = e.$$.on_mount.map(vt).filter(fe);
171
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
172
+ }), i.forEach(ke);
202
173
  }
203
- function Mr(e, t) {
174
+ function vr(e, t) {
204
175
  const r = e.$$;
205
- r.fragment !== null && (Pr(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
176
+ r.fragment !== null && (yr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
206
177
  }
207
- function Rr(e, t) {
208
- e.$$.dirty[0] === -1 && (q.push(e), Br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
178
+ function Sr(e, t) {
179
+ e.$$.dirty[0] === -1 && (Q.push(e), gr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
209
180
  }
210
- function Lr(e, t, r, n, i, s, a = null, o = [-1]) {
211
- const l = le;
212
- ue(e);
181
+ function Tr(e, t, r, n, i, s, a = null, o = [-1]) {
182
+ const h = ue;
183
+ oe(e);
213
184
  const u = e.$$ = {
214
185
  fragment: null,
215
186
  ctx: [],
216
187
  // state
217
188
  props: s,
218
- update: k,
189
+ update: D,
219
190
  not_equal: i,
220
- bound: ot(),
191
+ bound: et(),
221
192
  // lifecycle
222
193
  on_mount: [],
223
194
  on_destroy: [],
224
195
  on_disconnect: [],
225
196
  before_update: [],
226
197
  after_update: [],
227
- context: new Map(t.context || (l ? l.$$.context : [])),
198
+ context: new Map(t.context || (h ? h.$$.context : [])),
228
199
  // everything else
229
- callbacks: ot(),
200
+ callbacks: et(),
230
201
  dirty: o,
231
202
  skip_bound: !1,
232
- root: t.target || l.$$.root
203
+ root: t.target || h.$$.root
233
204
  };
234
205
  a && a(u.root);
235
- let h = !1;
236
- if (u.ctx = r ? r(e, t.props || {}, (c, f, ...E) => {
237
- const d = E.length ? E[0] : f;
238
- return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && Rr(e, c)), f;
239
- }) : [], u.update(), h = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
206
+ let l = !1;
207
+ if (u.ctx = r(e, t.props || {}, (f, c, ...E) => {
208
+ const d = E.length ? E[0] : c;
209
+ return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l && Sr(e, f)), c;
210
+ }), u.update(), l = !0, re(u.before_update), u.fragment = n(u.ctx), t.target) {
240
211
  if (t.hydrate) {
241
- const c = Sr(t.target);
242
- u.fragment && u.fragment.l(c), c.forEach(U);
212
+ const f = fr(t.target);
213
+ u.fragment && u.fragment.l(f), f.forEach(k);
243
214
  } else
244
215
  u.fragment && u.fragment.c();
245
- t.intro && Or(e.$$.fragment), wr(e, t.target, t.anchor), N();
216
+ t.intro && Er(e.$$.fragment), xr(e, t.target, t.anchor), N();
246
217
  }
247
- ue(l);
248
- }
249
- let Ot;
250
- typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
251
- constructor(t, r, n) {
252
- super();
253
- /** The Svelte component constructor */
254
- D(this, "$$ctor");
255
- /** Slots */
256
- D(this, "$$s");
257
- /** The Svelte component instance */
258
- D(this, "$$c");
259
- /** Whether or not the custom element is connected */
260
- D(this, "$$cn", !1);
261
- /** Component props data */
262
- D(this, "$$d", {});
263
- /** `true` if currently in the process of reflecting component props back to attributes */
264
- D(this, "$$r", !1);
265
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
266
- D(this, "$$p_d", {});
267
- /** @type {Record<string, Function[]>} Event listeners */
268
- D(this, "$$l", {});
269
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
270
- D(this, "$$l_u", /* @__PURE__ */ new Map());
271
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
218
+ oe(h);
219
+ }
220
+ let At;
221
+ typeof HTMLElement == "function" && (At = class extends HTMLElement {
222
+ /** The Svelte component constructor */
223
+ $$ctor;
224
+ /** Slots */
225
+ $$s;
226
+ /** The Svelte component instance */
227
+ $$c;
228
+ /** Whether or not the custom element is connected */
229
+ $$cn = !1;
230
+ /** Component props data */
231
+ $$d = {};
232
+ /** `true` if currently in the process of reflecting component props back to attributes */
233
+ $$r = !1;
234
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
235
+ $$p_d = {};
236
+ /** @type {Record<string, Function[]>} Event listeners */
237
+ $$l = {};
238
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
239
+ $$l_u = /* @__PURE__ */ new Map();
240
+ constructor(e, t, r) {
241
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
272
242
  }
273
- addEventListener(t, r, n) {
274
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
275
- const i = this.$$c.$on(t, r);
276
- this.$$l_u.set(r, i);
243
+ addEventListener(e, t, r) {
244
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
245
+ const n = this.$$c.$on(e, t);
246
+ this.$$l_u.set(t, n);
277
247
  }
278
- super.addEventListener(t, r, n);
248
+ super.addEventListener(e, t, r);
279
249
  }
280
- removeEventListener(t, r, n) {
281
- if (super.removeEventListener(t, r, n), this.$$c) {
282
- const i = this.$$l_u.get(r);
283
- i && (i(), this.$$l_u.delete(r));
250
+ removeEventListener(e, t, r) {
251
+ if (super.removeEventListener(e, t, r), this.$$c) {
252
+ const n = this.$$l_u.get(t);
253
+ n && (n(), this.$$l_u.delete(t));
284
254
  }
285
255
  }
286
- connectedCallback() {
287
- return at(this, null, function* () {
288
- if (this.$$cn = !0, !this.$$c) {
289
- let t = function(s) {
290
- return () => {
291
- let a;
292
- return {
293
- c: function() {
294
- a = I("slot"), s !== "default" && _(a, "name", s);
295
- },
296
- /**
297
- * @param {HTMLElement} target
298
- * @param {HTMLElement} [anchor]
299
- */
300
- m: function(u, h) {
301
- G(u, a, h);
302
- },
303
- d: function(u) {
304
- u && U(a);
305
- }
306
- };
256
+ async connectedCallback() {
257
+ if (this.$$cn = !0, !this.$$c) {
258
+ let e = function(i) {
259
+ return () => {
260
+ let s;
261
+ return {
262
+ c: function() {
263
+ s = I("slot"), i !== "default" && _(s, "name", i);
264
+ },
265
+ /**
266
+ * @param {HTMLElement} target
267
+ * @param {HTMLElement} [anchor]
268
+ */
269
+ m: function(h, u) {
270
+ F(h, s, u);
271
+ },
272
+ d: function(h) {
273
+ h && k(s);
274
+ }
307
275
  };
308
276
  };
309
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
310
- return;
311
- const r = {}, n = Tr(this);
312
- for (const s of this.$$s)
313
- s in n && (r[s] = [t(s)]);
314
- for (const s of this.attributes) {
315
- const a = this.$$g_p(s.name);
316
- a in this.$$d || (this.$$d[a] = ge(a, s.value, this.$$p_d, "toProp"));
277
+ };
278
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
279
+ return;
280
+ const t = {}, r = cr(this);
281
+ for (const i of this.$$s)
282
+ i in r && (t[i] = [e(i)]);
283
+ for (const i of this.attributes) {
284
+ const s = this.$$g_p(i.name);
285
+ s in this.$$d || (this.$$d[s] = be(s, i.value, this.$$p_d, "toProp"));
286
+ }
287
+ for (const i in this.$$p_d)
288
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
289
+ this.$$c = new this.$$ctor({
290
+ target: this.shadowRoot || this,
291
+ props: {
292
+ ...this.$$d,
293
+ $$slots: t,
294
+ $$scope: {
295
+ ctx: []
296
+ }
317
297
  }
318
- for (const s in this.$$p_d)
319
- !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
320
- this.$$c = new this.$$ctor({
321
- target: this.shadowRoot || this,
322
- props: st(it({}, this.$$d), {
323
- $$slots: r,
324
- $$scope: {
325
- ctx: []
326
- }
327
- })
328
- });
329
- const i = () => {
330
- this.$$r = !0;
331
- for (const s in this.$$p_d)
332
- if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
333
- const a = ge(
334
- s,
335
- this.$$d[s],
336
- this.$$p_d,
337
- "toAttribute"
338
- );
339
- a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
340
- }
341
- this.$$r = !1;
342
- };
343
- this.$$c.$$.after_update.push(i), i();
344
- for (const s in this.$$l)
345
- for (const a of this.$$l[s]) {
346
- const o = this.$$c.$on(s, a);
347
- this.$$l_u.set(a, o);
298
+ });
299
+ const n = () => {
300
+ this.$$r = !0;
301
+ for (const i in this.$$p_d)
302
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
303
+ const s = be(
304
+ i,
305
+ this.$$d[i],
306
+ this.$$p_d,
307
+ "toAttribute"
308
+ );
309
+ s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
348
310
  }
349
- this.$$l = {};
350
- }
351
- });
311
+ this.$$r = !1;
312
+ };
313
+ this.$$c.$$.after_update.push(n), n();
314
+ for (const i in this.$$l)
315
+ for (const s of this.$$l[i]) {
316
+ const a = this.$$c.$on(i, s);
317
+ this.$$l_u.set(s, a);
318
+ }
319
+ this.$$l = {};
320
+ }
352
321
  }
353
322
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
354
323
  // and setting attributes through setAttribute etc, this is helpful
355
- attributeChangedCallback(t, r, n) {
356
- var i;
357
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ge(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
324
+ attributeChangedCallback(e, t, r) {
325
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = be(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
358
326
  }
359
327
  disconnectedCallback() {
360
328
  this.$$cn = !1, Promise.resolve().then(() => {
361
329
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
362
330
  });
363
331
  }
364
- $$g_p(t) {
332
+ $$g_p(e) {
365
333
  return Object.keys(this.$$p_d).find(
366
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
367
- ) || t;
334
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
335
+ ) || e;
368
336
  }
369
337
  });
370
- function ge(e, t, r, n) {
371
- var s;
372
- const i = (s = r[e]) == null ? void 0 : s.type;
338
+ function be(e, t, r, n) {
339
+ const i = r[e]?.type;
373
340
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
374
341
  return t;
375
342
  if (n === "toAttribute")
@@ -380,7 +347,7 @@ function ge(e, t, r, n) {
380
347
  case "Boolean":
381
348
  return t ? "" : null;
382
349
  case "Number":
383
- return t == null ? null : t;
350
+ return t ?? null;
384
351
  default:
385
352
  return t;
386
353
  }
@@ -397,8 +364,8 @@ function ge(e, t, r, n) {
397
364
  return t;
398
365
  }
399
366
  }
400
- function Dr(e, t, r, n, i, s) {
401
- let a = class extends Ot {
367
+ function Ar(e, t, r, n, i, s) {
368
+ let a = class extends At {
402
369
  constructor() {
403
370
  super(e, r, i), this.$$p_d = t;
404
371
  }
@@ -413,43 +380,39 @@ function Dr(e, t, r, n, i, s) {
413
380
  get() {
414
381
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
415
382
  },
416
- set(l) {
417
- var u;
418
- l = ge(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
383
+ set(h) {
384
+ h = be(o, h, t), this.$$d[o] = h, this.$$c?.$set({ [o]: h });
419
385
  }
420
386
  });
421
387
  }), n.forEach((o) => {
422
388
  Object.defineProperty(a.prototype, o, {
423
389
  get() {
424
- var l;
425
- return (l = this.$$c) == null ? void 0 : l[o];
390
+ return this.$$c?.[o];
426
391
  }
427
392
  });
428
393
  }), e.element = /** @type {any} */
429
394
  a, a;
430
395
  }
431
- class kr {
432
- constructor() {
433
- /**
434
- * ### PRIVATE API
435
- *
436
- * Do not use, may change at any time
437
- *
438
- * @type {any}
439
- */
440
- D(this, "$$");
441
- /**
442
- * ### PRIVATE API
443
- *
444
- * Do not use, may change at any time
445
- *
446
- * @type {any}
447
- */
448
- D(this, "$$set");
449
- }
396
+ class Hr {
397
+ /**
398
+ * ### PRIVATE API
399
+ *
400
+ * Do not use, may change at any time
401
+ *
402
+ * @type {any}
403
+ */
404
+ $$ = void 0;
405
+ /**
406
+ * ### PRIVATE API
407
+ *
408
+ * Do not use, may change at any time
409
+ *
410
+ * @type {any}
411
+ */
412
+ $$set = void 0;
450
413
  /** @returns {void} */
451
414
  $destroy() {
452
- Mr(this, 1), this.$destroy = k;
415
+ vr(this, 1), this.$destroy = D;
453
416
  }
454
417
  /**
455
418
  * @template {Extract<keyof Events, string>} K
@@ -459,7 +422,7 @@ class kr {
459
422
  */
460
423
  $on(t, r) {
461
424
  if (!fe(r))
462
- return k;
425
+ return D;
463
426
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
464
427
  return n.push(r), () => {
465
428
  const i = n.indexOf(r);
@@ -471,174 +434,174 @@ class kr {
471
434
  * @returns {void}
472
435
  */
473
436
  $set(t) {
474
- this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
437
+ this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
475
438
  }
476
439
  }
477
- const Ur = "4";
478
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ur);
479
- const Q = [];
480
- function Fr(e, t) {
440
+ const Cr = "4";
441
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cr);
442
+ const Z = [];
443
+ function Br(e, t) {
481
444
  return {
482
- subscribe: ve(e, t).subscribe
445
+ subscribe: Ee(e, t).subscribe
483
446
  };
484
447
  }
485
- function ve(e, t = k) {
448
+ function Ee(e, t = D) {
486
449
  let r;
487
450
  const n = /* @__PURE__ */ new Set();
488
451
  function i(o) {
489
- if (Pt(e, o) && (e = o, r)) {
490
- const l = !Q.length;
452
+ if (St(e, o) && (e = o, r)) {
453
+ const h = !Z.length;
491
454
  for (const u of n)
492
- u[1](), Q.push(u, e);
493
- if (l) {
494
- for (let u = 0; u < Q.length; u += 2)
495
- Q[u][0](Q[u + 1]);
496
- Q.length = 0;
455
+ u[1](), Z.push(u, e);
456
+ if (h) {
457
+ for (let u = 0; u < Z.length; u += 2)
458
+ Z[u][0](Z[u + 1]);
459
+ Z.length = 0;
497
460
  }
498
461
  }
499
462
  }
500
463
  function s(o) {
501
464
  i(o(e));
502
465
  }
503
- function a(o, l = k) {
504
- const u = [o, l];
505
- return n.add(u), n.size === 1 && (r = t(i, s) || k), o(e), () => {
466
+ function a(o, h = D) {
467
+ const u = [o, h];
468
+ return n.add(u), n.size === 1 && (r = t(i, s) || D), o(e), () => {
506
469
  n.delete(u), n.size === 0 && r && (r(), r = null);
507
470
  };
508
471
  }
509
472
  return { set: i, update: s, subscribe: a };
510
473
  }
511
- function ie(e, t, r) {
474
+ function ne(e, t, r) {
512
475
  const n = !Array.isArray(e), i = n ? [e] : e;
513
476
  if (!i.every(Boolean))
514
477
  throw new Error("derived() expects stores as input, got a falsy value");
515
478
  const s = t.length < 2;
516
- return Fr(r, (a, o) => {
517
- let l = !1;
479
+ return Br(r, (a, o) => {
480
+ let h = !1;
518
481
  const u = [];
519
- let h = 0, c = k;
520
- const f = () => {
521
- if (h)
482
+ let l = 0, f = D;
483
+ const c = () => {
484
+ if (l)
522
485
  return;
523
- c();
486
+ f();
524
487
  const d = t(n ? u[0] : u, a, o);
525
- s ? a(d) : c = fe(d) ? d : k;
488
+ s ? a(d) : f = fe(d) ? d : D;
526
489
  }, E = i.map(
527
- (d, b) => It(
490
+ (d, b) => Tt(
528
491
  d,
529
492
  (g) => {
530
- u[b] = g, h &= ~(1 << b), l && f();
493
+ u[b] = g, l &= ~(1 << b), h && c();
531
494
  },
532
495
  () => {
533
- h |= 1 << b;
496
+ l |= 1 << b;
534
497
  }
535
498
  )
536
499
  );
537
- return l = !0, f(), function() {
538
- ne(E), c(), l = !1;
500
+ return h = !0, c(), function() {
501
+ re(E), f(), h = !1;
539
502
  };
540
503
  });
541
504
  }
542
- function Gr(e) {
543
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
505
+ function Nr(e) {
506
+ return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
544
507
  }
545
- var $r = function(t) {
546
- return jr(t) && !Vr(t);
508
+ var Pr = function(t) {
509
+ return Ir(t) && !Or(t);
547
510
  };
548
- function jr(e) {
511
+ function Ir(e) {
549
512
  return !!e && typeof e == "object";
550
513
  }
551
- function Vr(e) {
514
+ function Or(e) {
552
515
  var t = Object.prototype.toString.call(e);
553
- return t === "[object RegExp]" || t === "[object Date]" || Wr(e);
516
+ return t === "[object RegExp]" || t === "[object Date]" || Rr(e);
554
517
  }
555
- var Jr = typeof Symbol == "function" && Symbol.for, zr = Jr ? Symbol.for("react.element") : 60103;
556
- function Wr(e) {
557
- return e.$$typeof === zr;
518
+ var wr = typeof Symbol == "function" && Symbol.for, Mr = wr ? Symbol.for("react.element") : 60103;
519
+ function Rr(e) {
520
+ return e.$$typeof === Mr;
558
521
  }
559
- function Xr(e) {
522
+ function Lr(e) {
560
523
  return Array.isArray(e) ? [] : {};
561
524
  }
562
- function he(e, t) {
563
- return t.clone !== !1 && t.isMergeableObject(e) ? K(Xr(e), e, t) : e;
525
+ function le(e, t) {
526
+ return t.clone !== !1 && t.isMergeableObject(e) ? Y(Lr(e), e, t) : e;
564
527
  }
565
- function Zr(e, t, r) {
528
+ function Dr(e, t, r) {
566
529
  return e.concat(t).map(function(n) {
567
- return he(n, r);
530
+ return le(n, r);
568
531
  });
569
532
  }
570
- function Qr(e, t) {
533
+ function kr(e, t) {
571
534
  if (!t.customMerge)
572
- return K;
535
+ return Y;
573
536
  var r = t.customMerge(e);
574
- return typeof r == "function" ? r : K;
537
+ return typeof r == "function" ? r : Y;
575
538
  }
576
- function qr(e) {
539
+ function Ur(e) {
577
540
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
578
541
  return Object.propertyIsEnumerable.call(e, t);
579
542
  }) : [];
580
543
  }
581
- function lt(e) {
582
- return Object.keys(e).concat(qr(e));
544
+ function rt(e) {
545
+ return Object.keys(e).concat(Ur(e));
583
546
  }
584
- function wt(e, t) {
547
+ function Ht(e, t) {
585
548
  try {
586
549
  return t in e;
587
- } catch (r) {
550
+ } catch {
588
551
  return !1;
589
552
  }
590
553
  }
591
- function Yr(e, t) {
592
- return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
554
+ function Fr(e, t) {
555
+ return Ht(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
593
556
  }
594
- function Kr(e, t, r) {
557
+ function Gr(e, t, r) {
595
558
  var n = {};
596
- return r.isMergeableObject(e) && lt(e).forEach(function(i) {
597
- n[i] = he(e[i], r);
598
- }), lt(t).forEach(function(i) {
599
- Yr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Qr(i, r)(e[i], t[i], r) : n[i] = he(t[i], r));
559
+ return r.isMergeableObject(e) && rt(e).forEach(function(i) {
560
+ n[i] = le(e[i], r);
561
+ }), rt(t).forEach(function(i) {
562
+ Fr(e, i) || (Ht(e, i) && r.isMergeableObject(t[i]) ? n[i] = kr(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
600
563
  }), n;
601
564
  }
602
- function K(e, t, r) {
603
- r = r || {}, r.arrayMerge = r.arrayMerge || Zr, r.isMergeableObject = r.isMergeableObject || $r, r.cloneUnlessOtherwiseSpecified = he;
565
+ function Y(e, t, r) {
566
+ r = r || {}, r.arrayMerge = r.arrayMerge || Dr, r.isMergeableObject = r.isMergeableObject || Pr, r.cloneUnlessOtherwiseSpecified = le;
604
567
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
605
- return s ? n ? r.arrayMerge(e, t, r) : Kr(e, t, r) : he(t, r);
568
+ return s ? n ? r.arrayMerge(e, t, r) : Gr(e, t, r) : le(t, r);
606
569
  }
607
- K.all = function(t, r) {
570
+ Y.all = function(t, r) {
608
571
  if (!Array.isArray(t))
609
572
  throw new Error("first argument should be an array");
610
573
  return t.reduce(function(n, i) {
611
- return K(n, i, r);
574
+ return Y(n, i, r);
612
575
  }, {});
613
576
  };
614
- var en = K, tn = en;
615
- const rn = /* @__PURE__ */ Gr(tn);
616
- var Ge = function(e, t) {
617
- return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
577
+ var $r = Y, jr = $r;
578
+ const Vr = /* @__PURE__ */ Nr(jr);
579
+ var Ue = function(e, t) {
580
+ return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
618
581
  r.__proto__ = n;
619
582
  } || function(r, n) {
620
583
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
621
- }, Ge(e, t);
584
+ }, Ue(e, t);
622
585
  };
623
586
  function xe(e, t) {
624
587
  if (typeof t != "function" && t !== null)
625
588
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
626
- Ge(e, t);
589
+ Ue(e, t);
627
590
  function r() {
628
591
  this.constructor = e;
629
592
  }
630
593
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
631
594
  }
632
- var x = function() {
633
- return x = Object.assign || function(t) {
595
+ var v = function() {
596
+ return v = Object.assign || function(t) {
634
597
  for (var r, n = 1, i = arguments.length; n < i; n++) {
635
598
  r = arguments[n];
636
599
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
637
600
  }
638
601
  return t;
639
- }, x.apply(this, arguments);
602
+ }, v.apply(this, arguments);
640
603
  };
641
- function nn(e, t) {
604
+ function Jr(e, t) {
642
605
  var r = {};
643
606
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
644
607
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -646,61 +609,63 @@ function nn(e, t) {
646
609
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
647
610
  return r;
648
611
  }
649
- function Ie(e, t, r) {
612
+ function Ne(e, t, r) {
650
613
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
651
614
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
652
615
  return e.concat(s || Array.prototype.slice.call(t));
653
616
  }
654
- function Oe(e, t) {
655
- var r = t && t.cache ? t.cache : hn, n = t && t.serializer ? t.serializer : ln, i = t && t.strategy ? t.strategy : an;
617
+ function Pe(e, t) {
618
+ var r = t && t.cache ? t.cache : Yr, n = t && t.serializer ? t.serializer : Qr, i = t && t.strategy ? t.strategy : Wr;
656
619
  return i(e, {
657
620
  cache: r,
658
621
  serializer: n
659
622
  });
660
623
  }
661
- function sn(e) {
624
+ function zr(e) {
662
625
  return e == null || typeof e == "number" || typeof e == "boolean";
663
626
  }
664
- function Mt(e, t, r, n) {
665
- var i = sn(n) ? n : r(n), s = t.get(i);
666
- return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
627
+ function Ct(e, t, r, n) {
628
+ var i = zr(n) ? n : r(n), s = t.get(i);
629
+ return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
667
630
  }
668
- function Rt(e, t, r) {
631
+ function Bt(e, t, r) {
669
632
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
670
- return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
633
+ return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
671
634
  }
672
- function Qe(e, t, r, n, i) {
635
+ function Xe(e, t, r, n, i) {
673
636
  return r.bind(t, e, n, i);
674
637
  }
675
- function an(e, t) {
676
- var r = e.length === 1 ? Mt : Rt;
677
- return Qe(e, this, r, t.cache.create(), t.serializer);
638
+ function Wr(e, t) {
639
+ var r = e.length === 1 ? Ct : Bt;
640
+ return Xe(e, this, r, t.cache.create(), t.serializer);
678
641
  }
679
- function on(e, t) {
680
- return Qe(e, this, Rt, t.cache.create(), t.serializer);
642
+ function Xr(e, t) {
643
+ return Xe(e, this, Bt, t.cache.create(), t.serializer);
681
644
  }
682
- function un(e, t) {
683
- return Qe(e, this, Mt, t.cache.create(), t.serializer);
645
+ function Zr(e, t) {
646
+ return Xe(e, this, Ct, t.cache.create(), t.serializer);
684
647
  }
685
- var ln = function() {
648
+ var Qr = function() {
686
649
  return JSON.stringify(arguments);
687
- };
688
- function qe() {
689
- this.cache = /* @__PURE__ */ Object.create(null);
690
- }
691
- qe.prototype.get = function(e) {
692
- return this.cache[e];
693
- };
694
- qe.prototype.set = function(e, t) {
695
- this.cache[e] = t;
696
- };
697
- var hn = {
650
+ }, qr = (
651
+ /** @class */
652
+ function() {
653
+ function e() {
654
+ this.cache = /* @__PURE__ */ Object.create(null);
655
+ }
656
+ return e.prototype.get = function(t) {
657
+ return this.cache[t];
658
+ }, e.prototype.set = function(t, r) {
659
+ this.cache[t] = r;
660
+ }, e;
661
+ }()
662
+ ), Yr = {
698
663
  create: function() {
699
- return new qe();
664
+ return new qr();
700
665
  }
701
- }, we = {
702
- variadic: on,
703
- monadic: un
666
+ }, Ie = {
667
+ variadic: Xr,
668
+ monadic: Zr
704
669
  }, y;
705
670
  (function(e) {
706
671
  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";
@@ -709,47 +674,47 @@ var A;
709
674
  (function(e) {
710
675
  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";
711
676
  })(A || (A = {}));
712
- var ee;
677
+ var K;
713
678
  (function(e) {
714
679
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
715
- })(ee || (ee = {}));
716
- function ht(e) {
680
+ })(K || (K = {}));
681
+ function nt(e) {
717
682
  return e.type === A.literal;
718
683
  }
719
- function cn(e) {
684
+ function Kr(e) {
720
685
  return e.type === A.argument;
721
686
  }
722
- function Lt(e) {
687
+ function Nt(e) {
723
688
  return e.type === A.number;
724
689
  }
725
- function Dt(e) {
690
+ function Pt(e) {
726
691
  return e.type === A.date;
727
692
  }
728
- function kt(e) {
693
+ function It(e) {
729
694
  return e.type === A.time;
730
695
  }
731
- function Ut(e) {
696
+ function Ot(e) {
732
697
  return e.type === A.select;
733
698
  }
734
- function Ft(e) {
699
+ function wt(e) {
735
700
  return e.type === A.plural;
736
701
  }
737
- function fn(e) {
702
+ function en(e) {
738
703
  return e.type === A.pound;
739
704
  }
740
- function Gt(e) {
705
+ function Mt(e) {
741
706
  return e.type === A.tag;
742
707
  }
743
- function $t(e) {
744
- return !!(e && typeof e == "object" && e.type === ee.number);
708
+ function Rt(e) {
709
+ return !!(e && typeof e == "object" && e.type === K.number);
745
710
  }
746
- function $e(e) {
747
- return !!(e && typeof e == "object" && e.type === ee.dateTime);
711
+ function Fe(e) {
712
+ return !!(e && typeof e == "object" && e.type === K.dateTime);
748
713
  }
749
- var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, mn = /(?:[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;
750
- function dn(e) {
714
+ var Lt = /[ \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;
715
+ function rn(e) {
751
716
  var t = {};
752
- return e.replace(mn, function(r) {
717
+ return e.replace(tn, function(r) {
753
718
  var n = r.length;
754
719
  switch (r[0]) {
755
720
  case "G":
@@ -838,36 +803,36 @@ function dn(e) {
838
803
  return "";
839
804
  }), t;
840
805
  }
841
- var bn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
842
- function gn(e) {
806
+ var nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
807
+ function sn(e) {
843
808
  if (e.length === 0)
844
809
  throw new Error("Number skeleton cannot be empty");
845
- for (var t = e.split(bn).filter(function(f) {
846
- return f.length > 0;
810
+ for (var t = e.split(nn).filter(function(c) {
811
+ return c.length > 0;
847
812
  }), r = [], n = 0, i = t; n < i.length; n++) {
848
813
  var s = i[n], a = s.split("/");
849
814
  if (a.length === 0)
850
815
  throw new Error("Invalid number skeleton");
851
- for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
852
- var c = h[u];
853
- if (c.length === 0)
816
+ for (var o = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
817
+ var f = l[u];
818
+ if (f.length === 0)
854
819
  throw new Error("Invalid number skeleton");
855
820
  }
856
- r.push({ stem: o, options: l });
821
+ r.push({ stem: o, options: h });
857
822
  }
858
823
  return r;
859
824
  }
860
- function pn(e) {
825
+ function an(e) {
861
826
  return e.replace(/^(.*?)-/, "");
862
827
  }
863
- var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, yn = /(\*)(0+)|(#+)(0+)|(0+)/g, Jt = /^(0+)$/;
864
- function ft(e) {
828
+ var it = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g, on = /(\*)(0+)|(#+)(0+)|(0+)/g, kt = /^(0+)$/;
829
+ function st(e) {
865
830
  var t = {};
866
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
831
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dt, function(r, n, i) {
867
832
  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)), "";
868
833
  }), t;
869
834
  }
870
- function zt(e) {
835
+ function Ut(e) {
871
836
  switch (e) {
872
837
  case "sign-auto":
873
838
  return {
@@ -907,7 +872,7 @@ function zt(e) {
907
872
  };
908
873
  }
909
874
  }
910
- function _n(e) {
875
+ function un(e) {
911
876
  var t;
912
877
  if (e[0] === "E" && e[1] === "E" ? (t = {
913
878
  notation: "engineering"
@@ -915,17 +880,17 @@ function _n(e) {
915
880
  notation: "scientific"
916
881
  }, e = e.slice(1)), t) {
917
882
  var r = e.slice(0, 2);
918
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jt.test(e))
883
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !kt.test(e))
919
884
  throw new Error("Malformed concise eng/scientific notation");
920
885
  t.minimumIntegerDigits = e.length;
921
886
  }
922
887
  return t;
923
888
  }
924
- function mt(e) {
925
- var t = {}, r = zt(e);
889
+ function at(e) {
890
+ var t = {}, r = Ut(e);
926
891
  return r || t;
927
892
  }
928
- function En(e) {
893
+ function ln(e) {
929
894
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
930
895
  var i = n[r];
931
896
  switch (i.stem) {
@@ -949,7 +914,7 @@ function En(e) {
949
914
  continue;
950
915
  case "measure-unit":
951
916
  case "unit":
952
- t.style = "unit", t.unit = pn(i.options[0]);
917
+ t.style = "unit", t.unit = an(i.options[0]);
953
918
  continue;
954
919
  case "compact-short":
955
920
  case "K":
@@ -960,13 +925,13 @@ function En(e) {
960
925
  t.notation = "compact", t.compactDisplay = "long";
961
926
  continue;
962
927
  case "scientific":
963
- t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
964
- return x(x({}, l), mt(u));
928
+ t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
929
+ return v(v({}, h), at(u));
965
930
  }, {}));
966
931
  continue;
967
932
  case "engineering":
968
- t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
969
- return x(x({}, l), mt(u));
933
+ t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
934
+ return v(v({}, h), at(u));
970
935
  }, {}));
971
936
  continue;
972
937
  case "notation-simple":
@@ -1011,11 +976,11 @@ function En(e) {
1011
976
  case "integer-width":
1012
977
  if (i.options.length > 1)
1013
978
  throw new RangeError("integer-width stems only accept a single optional option");
1014
- i.options[0].replace(yn, function(l, u, h, c, f, E) {
979
+ i.options[0].replace(on, function(h, u, l, f, c, E) {
1015
980
  if (u)
1016
- t.minimumIntegerDigits = h.length;
981
+ t.minimumIntegerDigits = l.length;
1017
982
  else {
1018
- if (c && f)
983
+ if (f && c)
1019
984
  throw new Error("We currently do not support maximum integer digits");
1020
985
  if (E)
1021
986
  throw new Error("We currently do not support exact integer digits");
@@ -1024,32 +989,32 @@ function En(e) {
1024
989
  });
1025
990
  continue;
1026
991
  }
1027
- if (Jt.test(i.stem)) {
992
+ if (kt.test(i.stem)) {
1028
993
  t.minimumIntegerDigits = i.stem.length;
1029
994
  continue;
1030
995
  }
1031
- if (ct.test(i.stem)) {
996
+ if (it.test(i.stem)) {
1032
997
  if (i.options.length > 1)
1033
998
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1034
- i.stem.replace(ct, function(l, u, h, c, f, E) {
1035
- return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && E ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + E.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
999
+ i.stem.replace(it, function(h, u, l, f, c, E) {
1000
+ return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && E ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + E.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1036
1001
  });
1037
1002
  var s = i.options[0];
1038
- s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), ft(s)));
1003
+ s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), st(s)));
1039
1004
  continue;
1040
1005
  }
1041
- if (Vt.test(i.stem)) {
1042
- t = x(x({}, t), ft(i.stem));
1006
+ if (Dt.test(i.stem)) {
1007
+ t = v(v({}, t), st(i.stem));
1043
1008
  continue;
1044
1009
  }
1045
- var a = zt(i.stem);
1046
- a && (t = x(x({}, t), a));
1047
- var o = _n(i.stem);
1048
- o && (t = x(x({}, t), o));
1010
+ var a = Ut(i.stem);
1011
+ a && (t = v(v({}, t), a));
1012
+ var o = un(i.stem);
1013
+ o && (t = v(v({}, t), o));
1049
1014
  }
1050
1015
  return t;
1051
1016
  }
1052
- var be = {
1017
+ var de = {
1053
1018
  "001": [
1054
1019
  "H",
1055
1020
  "h"
@@ -2464,22 +2429,22 @@ var be = {
2464
2429
  "h"
2465
2430
  ]
2466
2431
  };
2467
- function vn(e, t) {
2432
+ function hn(e, t) {
2468
2433
  for (var r = "", n = 0; n < e.length; n++) {
2469
2434
  var i = e.charAt(n);
2470
2435
  if (i === "j") {
2471
2436
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2472
2437
  s++, n++;
2473
- var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = xn(t);
2438
+ var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = fn(t);
2474
2439
  for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
2475
- r += l;
2440
+ r += h;
2476
2441
  for (; a-- > 0; )
2477
2442
  r = u + r;
2478
2443
  } else i === "J" ? r += "H" : r += i;
2479
2444
  }
2480
2445
  return r;
2481
2446
  }
2482
- function xn(e) {
2447
+ function fn(e) {
2483
2448
  var t = e.hourCycle;
2484
2449
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2485
2450
  e.hourCycles && // @ts-ignore
@@ -2498,23 +2463,23 @@ function xn(e) {
2498
2463
  }
2499
2464
  var r = e.language, n;
2500
2465
  r !== "root" && (n = e.maximize().region);
2501
- var i = be[n || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
2466
+ var i = de[n || ""] || de[r || ""] || de["".concat(r, "-001")] || de["001"];
2502
2467
  return i[0];
2503
2468
  }
2504
- var Me, Sn = new RegExp("^".concat(jt.source, "*")), Tn = new RegExp("".concat(jt.source, "*$"));
2505
- function v(e, t) {
2469
+ var Oe, cn = new RegExp("^".concat(Lt.source, "*")), mn = new RegExp("".concat(Lt.source, "*$"));
2470
+ function x(e, t) {
2506
2471
  return { start: e, end: t };
2507
2472
  }
2508
- var An = !!String.prototype.startsWith && "_a".startsWith("a", 1), Hn = !!String.fromCodePoint, Cn = !!Object.fromEntries, Bn = !!String.prototype.codePointAt, Nn = !!String.prototype.trimStart, Pn = !!String.prototype.trimEnd, In = !!Number.isSafeInteger, On = In ? Number.isSafeInteger : function(e) {
2473
+ var dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), bn = !!String.fromCodePoint, gn = !!Object.fromEntries, pn = !!String.prototype.codePointAt, yn = !!String.prototype.trimStart, _n = !!String.prototype.trimEnd, En = !!Number.isSafeInteger, xn = En ? Number.isSafeInteger : function(e) {
2509
2474
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2510
- }, je = !0;
2475
+ }, Ge = !0;
2511
2476
  try {
2512
- var wn = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2513
- je = ((Me = wn.exec("a")) === null || Me === void 0 ? void 0 : Me[0]) === "a";
2514
- } catch (e) {
2515
- je = !1;
2477
+ var vn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2478
+ Ge = ((Oe = vn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
2479
+ } catch {
2480
+ Ge = !1;
2516
2481
  }
2517
- var dt = An ? (
2482
+ var ot = dn ? (
2518
2483
  // Native
2519
2484
  function(t, r, n) {
2520
2485
  return t.startsWith(r, n);
@@ -2524,7 +2489,7 @@ var dt = An ? (
2524
2489
  function(t, r, n) {
2525
2490
  return t.slice(n, n + r.length) === r;
2526
2491
  }
2527
- ), Ve = Hn ? String.fromCodePoint : (
2492
+ ), $e = bn ? String.fromCodePoint : (
2528
2493
  // IE11
2529
2494
  function() {
2530
2495
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2536,9 +2501,9 @@ var dt = An ? (
2536
2501
  }
2537
2502
  return n;
2538
2503
  }
2539
- ), bt = (
2504
+ ), ut = (
2540
2505
  // native
2541
- Cn ? Object.fromEntries : (
2506
+ gn ? Object.fromEntries : (
2542
2507
  // Ponyfill
2543
2508
  function(t) {
2544
2509
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2548,7 +2513,7 @@ var dt = An ? (
2548
2513
  return r;
2549
2514
  }
2550
2515
  )
2551
- ), Wt = Bn ? (
2516
+ ), Ft = pn ? (
2552
2517
  // Native
2553
2518
  function(t, r) {
2554
2519
  return t.codePointAt(r);
@@ -2562,7 +2527,7 @@ var dt = An ? (
2562
2527
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2563
2528
  }
2564
2529
  }
2565
- ), Mn = Nn ? (
2530
+ ), Sn = yn ? (
2566
2531
  // Native
2567
2532
  function(t) {
2568
2533
  return t.trimStart();
@@ -2570,9 +2535,9 @@ var dt = An ? (
2570
2535
  ) : (
2571
2536
  // Ponyfill
2572
2537
  function(t) {
2573
- return t.replace(Sn, "");
2538
+ return t.replace(cn, "");
2574
2539
  }
2575
- ), Rn = Pn ? (
2540
+ ), Tn = _n ? (
2576
2541
  // Native
2577
2542
  function(t) {
2578
2543
  return t.trimEnd();
@@ -2580,32 +2545,32 @@ var dt = An ? (
2580
2545
  ) : (
2581
2546
  // Ponyfill
2582
2547
  function(t) {
2583
- return t.replace(Tn, "");
2548
+ return t.replace(mn, "");
2584
2549
  }
2585
2550
  );
2586
- function Xt(e, t) {
2551
+ function Gt(e, t) {
2587
2552
  return new RegExp(e, t);
2588
2553
  }
2589
- var Je;
2590
- if (je) {
2591
- var gt = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2592
- Je = function(t, r) {
2554
+ var je;
2555
+ if (Ge) {
2556
+ var lt = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2557
+ je = function(t, r) {
2593
2558
  var n;
2594
- gt.lastIndex = r;
2595
- var i = gt.exec(t);
2559
+ lt.lastIndex = r;
2560
+ var i = lt.exec(t);
2596
2561
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2597
2562
  };
2598
2563
  } else
2599
- Je = function(t, r) {
2564
+ je = function(t, r) {
2600
2565
  for (var n = []; ; ) {
2601
- var i = Wt(t, r);
2602
- if (i === void 0 || Zt(i) || Un(i))
2566
+ var i = Ft(t, r);
2567
+ if (i === void 0 || $t(i) || Bn(i))
2603
2568
  break;
2604
2569
  n.push(i), r += i >= 65536 ? 2 : 1;
2605
2570
  }
2606
- return Ve.apply(void 0, n);
2571
+ return $e.apply(void 0, n);
2607
2572
  };
2608
- var Ln = (
2573
+ var An = (
2609
2574
  /** @class */
2610
2575
  function() {
2611
2576
  function e(t, r) {
@@ -2630,13 +2595,13 @@ var Ln = (
2630
2595
  var o = this.clonePosition();
2631
2596
  this.bump(), i.push({
2632
2597
  type: A.pound,
2633
- location: v(o, this.clonePosition())
2598
+ location: x(o, this.clonePosition())
2634
2599
  });
2635
2600
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2636
2601
  if (n)
2637
2602
  break;
2638
- return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
2639
- } else if (s === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
2603
+ return this.error(y.UNMATCHED_CLOSING_TAG, x(this.clonePosition(), this.clonePosition()));
2604
+ } else if (s === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
2640
2605
  var a = this.parseTag(t, r);
2641
2606
  if (a.err)
2642
2607
  return a;
@@ -2659,7 +2624,7 @@ var Ln = (
2659
2624
  val: {
2660
2625
  type: A.literal,
2661
2626
  value: "<".concat(i, "/>"),
2662
- location: v(n, this.clonePosition())
2627
+ location: x(n, this.clonePosition())
2663
2628
  },
2664
2629
  err: null
2665
2630
  };
@@ -2669,25 +2634,25 @@ var Ln = (
2669
2634
  return s;
2670
2635
  var a = s.val, o = this.clonePosition();
2671
2636
  if (this.bumpIf("</")) {
2672
- if (this.isEOF() || !ze(this.char()))
2673
- return this.error(y.INVALID_TAG, v(o, this.clonePosition()));
2674
- var l = this.clonePosition(), u = this.parseTagName();
2675
- return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2637
+ if (this.isEOF() || !Ve(this.char()))
2638
+ return this.error(y.INVALID_TAG, x(o, this.clonePosition()));
2639
+ var h = this.clonePosition(), u = this.parseTagName();
2640
+ return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, x(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2676
2641
  val: {
2677
2642
  type: A.tag,
2678
2643
  value: i,
2679
2644
  children: a,
2680
- location: v(n, this.clonePosition())
2645
+ location: x(n, this.clonePosition())
2681
2646
  },
2682
2647
  err: null
2683
- } : this.error(y.INVALID_TAG, v(o, this.clonePosition())));
2648
+ } : this.error(y.INVALID_TAG, x(o, this.clonePosition())));
2684
2649
  } else
2685
- return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
2650
+ return this.error(y.UNCLOSED_TAG, x(n, this.clonePosition()));
2686
2651
  } else
2687
- return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
2652
+ return this.error(y.INVALID_TAG, x(n, this.clonePosition()));
2688
2653
  }, e.prototype.parseTagName = function() {
2689
2654
  var t = this.offset();
2690
- for (this.bump(); !this.isEOF() && kn(this.char()); )
2655
+ for (this.bump(); !this.isEOF() && Cn(this.char()); )
2691
2656
  this.bump();
2692
2657
  return this.message.slice(t, this.offset());
2693
2658
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2709,14 +2674,14 @@ var Ln = (
2709
2674
  }
2710
2675
  break;
2711
2676
  }
2712
- var l = v(n, this.clonePosition());
2677
+ var h = x(n, this.clonePosition());
2713
2678
  return {
2714
- val: { type: A.literal, value: i, location: l },
2679
+ val: { type: A.literal, value: i, location: h },
2715
2680
  err: null
2716
2681
  };
2717
2682
  }, e.prototype.tryParseLeftAngleBracket = function() {
2718
2683
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2719
- !Dn(this.peek() || 0)) ? (this.bump(), "<") : null;
2684
+ !Hn(this.peek() || 0)) ? (this.bump(), "<") : null;
2720
2685
  }, e.prototype.tryParseQuote = function(t) {
2721
2686
  if (this.isEOF() || this.char() !== 39)
2722
2687
  return null;
@@ -2750,23 +2715,23 @@ var Ln = (
2750
2715
  r.push(n);
2751
2716
  this.bump();
2752
2717
  }
2753
- return Ve.apply(void 0, r);
2718
+ return $e.apply(void 0, r);
2754
2719
  }, e.prototype.tryParseUnquoted = function(t, r) {
2755
2720
  if (this.isEOF())
2756
2721
  return null;
2757
2722
  var n = this.char();
2758
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
2723
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), $e(n));
2759
2724
  }, e.prototype.parseArgument = function(t, r) {
2760
2725
  var n = this.clonePosition();
2761
2726
  if (this.bump(), this.bumpSpace(), this.isEOF())
2762
- return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
2727
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition()));
2763
2728
  if (this.char() === 125)
2764
- return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
2729
+ return this.bump(), this.error(y.EMPTY_ARGUMENT, x(n, this.clonePosition()));
2765
2730
  var i = this.parseIdentifierIfPossible().value;
2766
2731
  if (!i)
2767
- return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
2732
+ return this.error(y.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
2768
2733
  if (this.bumpSpace(), this.isEOF())
2769
- return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
2734
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition()));
2770
2735
  switch (this.char()) {
2771
2736
  case 125:
2772
2737
  return this.bump(), {
@@ -2774,25 +2739,25 @@ var Ln = (
2774
2739
  type: A.argument,
2775
2740
  // value does not include the opening and closing braces.
2776
2741
  value: i,
2777
- location: v(n, this.clonePosition())
2742
+ location: x(n, this.clonePosition())
2778
2743
  },
2779
2744
  err: null
2780
2745
  };
2781
2746
  case 44:
2782
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2747
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2783
2748
  default:
2784
- return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
2749
+ return this.error(y.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
2785
2750
  }
2786
2751
  }, e.prototype.parseIdentifierIfPossible = function() {
2787
- var t = this.clonePosition(), r = this.offset(), n = Je(this.message, r), i = r + n.length;
2752
+ var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
2788
2753
  this.bumpTo(i);
2789
- var s = this.clonePosition(), a = v(t, s);
2754
+ var s = this.clonePosition(), a = x(t, s);
2790
2755
  return { value: n, location: a };
2791
2756
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2792
- var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2757
+ var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2793
2758
  switch (o) {
2794
2759
  case "":
2795
- return this.error(y.EXPECT_ARGUMENT_TYPE, v(a, l));
2760
+ return this.error(y.EXPECT_ARGUMENT_TYPE, x(a, h));
2796
2761
  case "number":
2797
2762
  case "date":
2798
2763
  case "time": {
@@ -2800,40 +2765,40 @@ var Ln = (
2800
2765
  var u = null;
2801
2766
  if (this.bumpIf(",")) {
2802
2767
  this.bumpSpace();
2803
- var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2804
- if (c.err)
2805
- return c;
2806
- var f = Rn(c.val);
2807
- if (f.length === 0)
2808
- return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
2809
- var E = v(h, this.clonePosition());
2810
- u = { style: f, styleLocation: E };
2768
+ var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2769
+ if (f.err)
2770
+ return f;
2771
+ var c = Tn(f.val);
2772
+ if (c.length === 0)
2773
+ return this.error(y.EXPECT_ARGUMENT_STYLE, x(this.clonePosition(), this.clonePosition()));
2774
+ var E = x(l, this.clonePosition());
2775
+ u = { style: c, styleLocation: E };
2811
2776
  }
2812
2777
  var d = this.tryParseArgumentClose(i);
2813
2778
  if (d.err)
2814
2779
  return d;
2815
- var b = v(i, this.clonePosition());
2816
- if (u && dt(u == null ? void 0 : u.style, "::", 0)) {
2817
- var g = Mn(u.style.slice(2));
2780
+ var b = x(i, this.clonePosition());
2781
+ if (u && ot(u?.style, "::", 0)) {
2782
+ var g = Sn(u.style.slice(2));
2818
2783
  if (o === "number") {
2819
- var c = this.parseNumberSkeletonFromString(g, u.styleLocation);
2820
- return c.err ? c : {
2821
- val: { type: A.number, value: n, location: b, style: c.val },
2784
+ var f = this.parseNumberSkeletonFromString(g, u.styleLocation);
2785
+ return f.err ? f : {
2786
+ val: { type: A.number, value: n, location: b, style: f.val },
2822
2787
  err: null
2823
2788
  };
2824
2789
  } else {
2825
2790
  if (g.length === 0)
2826
2791
  return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
2827
2792
  var p = g;
2828
- this.locale && (p = vn(g, this.locale));
2829
- var f = {
2830
- type: ee.dateTime,
2793
+ this.locale && (p = hn(g, this.locale));
2794
+ var c = {
2795
+ type: K.dateTime,
2831
2796
  pattern: p,
2832
2797
  location: u.styleLocation,
2833
- parsedOptions: this.shouldParseSkeletons ? dn(p) : {}
2798
+ parsedOptions: this.shouldParseSkeletons ? rn(p) : {}
2834
2799
  }, T = o === "date" ? A.date : A.time;
2835
2800
  return {
2836
- val: { type: T, value: n, location: b, style: f },
2801
+ val: { type: T, value: n, location: b, style: c },
2837
2802
  err: null
2838
2803
  };
2839
2804
  }
@@ -2843,7 +2808,7 @@ var Ln = (
2843
2808
  type: o === "number" ? A.number : o === "date" ? A.date : A.time,
2844
2809
  value: n,
2845
2810
  location: b,
2846
- style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
2811
+ style: (s = u?.style) !== null && s !== void 0 ? s : null
2847
2812
  },
2848
2813
  err: null
2849
2814
  };
@@ -2853,30 +2818,30 @@ var Ln = (
2853
2818
  case "select": {
2854
2819
  var P = this.clonePosition();
2855
2820
  if (this.bumpSpace(), !this.bumpIf(","))
2856
- return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(P, x({}, P)));
2821
+ return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, x(P, v({}, P)));
2857
2822
  this.bumpSpace();
2858
2823
  var H = this.parseIdentifierIfPossible(), C = 0;
2859
2824
  if (o !== "select" && H.value === "offset") {
2860
2825
  if (!this.bumpIf(":"))
2861
- return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
2826
+ return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x(this.clonePosition(), this.clonePosition()));
2862
2827
  this.bumpSpace();
2863
- var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2864
- if (c.err)
2865
- return c;
2866
- this.bumpSpace(), H = this.parseIdentifierIfPossible(), C = c.val;
2828
+ var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2829
+ if (f.err)
2830
+ return f;
2831
+ this.bumpSpace(), H = this.parseIdentifierIfPossible(), C = f.val;
2867
2832
  }
2868
- var F = this.tryParsePluralOrSelectOptions(t, o, r, H);
2869
- if (F.err)
2870
- return F;
2833
+ var U = this.tryParsePluralOrSelectOptions(t, o, r, H);
2834
+ if (U.err)
2835
+ return U;
2871
2836
  var d = this.tryParseArgumentClose(i);
2872
2837
  if (d.err)
2873
2838
  return d;
2874
- var L = v(i, this.clonePosition());
2839
+ var L = x(i, this.clonePosition());
2875
2840
  return o === "select" ? {
2876
2841
  val: {
2877
2842
  type: A.select,
2878
2843
  value: n,
2879
- options: bt(F.val),
2844
+ options: ut(U.val),
2880
2845
  location: L
2881
2846
  },
2882
2847
  err: null
@@ -2884,7 +2849,7 @@ var Ln = (
2884
2849
  val: {
2885
2850
  type: A.plural,
2886
2851
  value: n,
2887
- options: bt(F.val),
2852
+ options: ut(U.val),
2888
2853
  offset: C,
2889
2854
  pluralType: o === "plural" ? "cardinal" : "ordinal",
2890
2855
  location: L
@@ -2893,10 +2858,10 @@ var Ln = (
2893
2858
  };
2894
2859
  }
2895
2860
  default:
2896
- return this.error(y.INVALID_ARGUMENT_TYPE, v(a, l));
2861
+ return this.error(y.INVALID_ARGUMENT_TYPE, x(a, h));
2897
2862
  }
2898
2863
  }, e.prototype.tryParseArgumentClose = function(t) {
2899
- return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2864
+ return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, x(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2900
2865
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2901
2866
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2902
2867
  var n = this.char();
@@ -2905,7 +2870,7 @@ var Ln = (
2905
2870
  this.bump();
2906
2871
  var i = this.clonePosition();
2907
2872
  if (!this.bumpUntil("'"))
2908
- return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
2873
+ return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, x(i, this.clonePosition()));
2909
2874
  this.bump();
2910
2875
  break;
2911
2876
  }
@@ -2935,37 +2900,37 @@ var Ln = (
2935
2900
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2936
2901
  var n = [];
2937
2902
  try {
2938
- n = gn(t);
2939
- } catch (i) {
2903
+ n = sn(t);
2904
+ } catch {
2940
2905
  return this.error(y.INVALID_NUMBER_SKELETON, r);
2941
2906
  }
2942
2907
  return {
2943
2908
  val: {
2944
- type: ee.number,
2909
+ type: K.number,
2945
2910
  tokens: n,
2946
2911
  location: r,
2947
- parsedOptions: this.shouldParseSkeletons ? En(n) : {}
2912
+ parsedOptions: this.shouldParseSkeletons ? ln(n) : {}
2948
2913
  },
2949
2914
  err: null
2950
2915
  };
2951
2916
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2952
- for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
2917
+ for (var s, a = !1, o = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
2953
2918
  if (u.length === 0) {
2954
- var c = this.clonePosition();
2919
+ var f = this.clonePosition();
2955
2920
  if (r !== "select" && this.bumpIf("=")) {
2956
- var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
2957
- if (f.err)
2958
- return f;
2959
- h = v(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
2921
+ var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
2922
+ if (c.err)
2923
+ return c;
2924
+ l = x(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
2960
2925
  } else
2961
2926
  break;
2962
2927
  }
2963
- if (l.has(u))
2964
- return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2928
+ if (h.has(u))
2929
+ return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2965
2930
  u === "other" && (a = !0), this.bumpSpace();
2966
2931
  var E = this.clonePosition();
2967
2932
  if (!this.bumpIf("{"))
2968
- return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
2933
+ return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, x(this.clonePosition(), this.clonePosition()));
2969
2934
  var d = this.parseMessage(t + 1, r, n);
2970
2935
  if (d.err)
2971
2936
  return d;
@@ -2976,11 +2941,11 @@ var Ln = (
2976
2941
  u,
2977
2942
  {
2978
2943
  value: d.val,
2979
- location: v(E, this.clonePosition())
2944
+ location: x(E, this.clonePosition())
2980
2945
  }
2981
- ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
2946
+ ]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
2982
2947
  }
2983
- return o.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
2948
+ return o.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, x(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(y.MISSING_OTHER_CLAUSE, x(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
2984
2949
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2985
2950
  var n = 1, i = this.clonePosition();
2986
2951
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -2991,8 +2956,8 @@ var Ln = (
2991
2956
  else
2992
2957
  break;
2993
2958
  }
2994
- var l = v(i, this.clonePosition());
2995
- return s ? (a *= n, On(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
2959
+ var h = x(i, this.clonePosition());
2960
+ return s ? (a *= n, xn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
2996
2961
  }, e.prototype.offset = function() {
2997
2962
  return this.position.offset;
2998
2963
  }, e.prototype.isEOF = function() {
@@ -3007,7 +2972,7 @@ var Ln = (
3007
2972
  var t = this.position.offset;
3008
2973
  if (t >= this.message.length)
3009
2974
  throw Error("out of bound");
3010
- var r = Wt(this.message, t);
2975
+ var r = Ft(this.message, t);
3011
2976
  if (r === void 0)
3012
2977
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3013
2978
  return r;
@@ -3026,7 +2991,7 @@ var Ln = (
3026
2991
  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);
3027
2992
  }
3028
2993
  }, e.prototype.bumpIf = function(t) {
3029
- if (dt(this.message, t, this.offset())) {
2994
+ if (ot(this.message, t, this.offset())) {
3030
2995
  for (var r = 0; r < t.length; r++)
3031
2996
  this.bump();
3032
2997
  return !0;
@@ -3048,53 +3013,53 @@ var Ln = (
3048
3013
  break;
3049
3014
  }
3050
3015
  }, e.prototype.bumpSpace = function() {
3051
- for (; !this.isEOF() && Zt(this.char()); )
3016
+ for (; !this.isEOF() && $t(this.char()); )
3052
3017
  this.bump();
3053
3018
  }, e.prototype.peek = function() {
3054
3019
  if (this.isEOF())
3055
3020
  return null;
3056
3021
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3057
- return n != null ? n : null;
3022
+ return n ?? null;
3058
3023
  }, e;
3059
3024
  }()
3060
3025
  );
3061
- function ze(e) {
3026
+ function Ve(e) {
3062
3027
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3063
3028
  }
3064
- function Dn(e) {
3065
- return ze(e) || e === 47;
3029
+ function Hn(e) {
3030
+ return Ve(e) || e === 47;
3066
3031
  }
3067
- function kn(e) {
3032
+ function Cn(e) {
3068
3033
  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;
3069
3034
  }
3070
- function Zt(e) {
3035
+ function $t(e) {
3071
3036
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3072
3037
  }
3073
- function Un(e) {
3038
+ function Bn(e) {
3074
3039
  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;
3075
3040
  }
3076
- function We(e) {
3041
+ function Je(e) {
3077
3042
  e.forEach(function(t) {
3078
- if (delete t.location, Ut(t) || Ft(t))
3043
+ if (delete t.location, Ot(t) || wt(t))
3079
3044
  for (var r in t.options)
3080
- delete t.options[r].location, We(t.options[r].value);
3081
- else Lt(t) && $t(t.style) || (Dt(t) || kt(t)) && $e(t.style) ? delete t.style.location : Gt(t) && We(t.children);
3045
+ delete t.options[r].location, Je(t.options[r].value);
3046
+ else Nt(t) && Rt(t.style) || (Pt(t) || It(t)) && Fe(t.style) ? delete t.style.location : Mt(t) && Je(t.children);
3082
3047
  });
3083
3048
  }
3084
- function Fn(e, t) {
3085
- t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3086
- var r = new Ln(e, t).parse();
3049
+ function Nn(e, t) {
3050
+ t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3051
+ var r = new An(e, t).parse();
3087
3052
  if (r.err) {
3088
3053
  var n = SyntaxError(y[r.err.kind]);
3089
3054
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3090
3055
  }
3091
- return t != null && t.captureLocation || We(r.val), r.val;
3056
+ return t?.captureLocation || Je(r.val), r.val;
3092
3057
  }
3093
- var te;
3058
+ var ee;
3094
3059
  (function(e) {
3095
3060
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3096
- })(te || (te = {}));
3097
- var Se = (
3061
+ })(ee || (ee = {}));
3062
+ var ve = (
3098
3063
  /** @class */
3099
3064
  function(e) {
3100
3065
  xe(t, e);
@@ -3106,110 +3071,110 @@ var Se = (
3106
3071
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3107
3072
  }, t;
3108
3073
  }(Error)
3109
- ), pt = (
3074
+ ), ht = (
3110
3075
  /** @class */
3111
3076
  function(e) {
3112
3077
  xe(t, e);
3113
3078
  function t(r, n, i, s) {
3114
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, s) || this;
3079
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, s) || this;
3115
3080
  }
3116
3081
  return t;
3117
- }(Se)
3118
- ), Gn = (
3082
+ }(ve)
3083
+ ), Pn = (
3119
3084
  /** @class */
3120
3085
  function(e) {
3121
3086
  xe(t, e);
3122
3087
  function t(r, n, i) {
3123
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
3088
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
3124
3089
  }
3125
3090
  return t;
3126
- }(Se)
3127
- ), $n = (
3091
+ }(ve)
3092
+ ), In = (
3128
3093
  /** @class */
3129
3094
  function(e) {
3130
3095
  xe(t, e);
3131
3096
  function t(r, n) {
3132
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
3097
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
3133
3098
  }
3134
3099
  return t;
3135
- }(Se)
3100
+ }(ve)
3136
3101
  ), w;
3137
3102
  (function(e) {
3138
3103
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3139
3104
  })(w || (w = {}));
3140
- function jn(e) {
3105
+ function On(e) {
3141
3106
  return e.length < 2 ? e : e.reduce(function(t, r) {
3142
3107
  var n = t[t.length - 1];
3143
3108
  return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
3144
3109
  }, []);
3145
3110
  }
3146
- function Vn(e) {
3111
+ function wn(e) {
3147
3112
  return typeof e == "function";
3148
3113
  }
3149
- function pe(e, t, r, n, i, s, a) {
3150
- if (e.length === 1 && ht(e[0]))
3114
+ function ge(e, t, r, n, i, s, a) {
3115
+ if (e.length === 1 && nt(e[0]))
3151
3116
  return [
3152
3117
  {
3153
3118
  type: w.literal,
3154
3119
  value: e[0].value
3155
3120
  }
3156
3121
  ];
3157
- for (var o = [], l = 0, u = e; l < u.length; l++) {
3158
- var h = u[l];
3159
- if (ht(h)) {
3122
+ for (var o = [], h = 0, u = e; h < u.length; h++) {
3123
+ var l = u[h];
3124
+ if (nt(l)) {
3160
3125
  o.push({
3161
3126
  type: w.literal,
3162
- value: h.value
3127
+ value: l.value
3163
3128
  });
3164
3129
  continue;
3165
3130
  }
3166
- if (fn(h)) {
3131
+ if (en(l)) {
3167
3132
  typeof s == "number" && o.push({
3168
3133
  type: w.literal,
3169
3134
  value: r.getNumberFormat(t).format(s)
3170
3135
  });
3171
3136
  continue;
3172
3137
  }
3173
- var c = h.value;
3174
- if (!(i && c in i))
3175
- throw new $n(c, a);
3176
- var f = i[c];
3177
- if (cn(h)) {
3178
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
3179
- type: typeof f == "string" ? w.literal : w.object,
3180
- value: f
3138
+ var f = l.value;
3139
+ if (!(i && f in i))
3140
+ throw new In(f, a);
3141
+ var c = i[f];
3142
+ if (Kr(l)) {
3143
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
3144
+ type: typeof c == "string" ? w.literal : w.object,
3145
+ value: c
3181
3146
  });
3182
3147
  continue;
3183
3148
  }
3184
- if (Dt(h)) {
3185
- var E = typeof h.style == "string" ? n.date[h.style] : $e(h.style) ? h.style.parsedOptions : void 0;
3149
+ if (Pt(l)) {
3150
+ var E = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
3186
3151
  o.push({
3187
3152
  type: w.literal,
3188
- value: r.getDateTimeFormat(t, E).format(f)
3153
+ value: r.getDateTimeFormat(t, E).format(c)
3189
3154
  });
3190
3155
  continue;
3191
3156
  }
3192
- if (kt(h)) {
3193
- var E = typeof h.style == "string" ? n.time[h.style] : $e(h.style) ? h.style.parsedOptions : n.time.medium;
3157
+ if (It(l)) {
3158
+ var E = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
3194
3159
  o.push({
3195
3160
  type: w.literal,
3196
- value: r.getDateTimeFormat(t, E).format(f)
3161
+ value: r.getDateTimeFormat(t, E).format(c)
3197
3162
  });
3198
3163
  continue;
3199
3164
  }
3200
- if (Lt(h)) {
3201
- var E = typeof h.style == "string" ? n.number[h.style] : $t(h.style) ? h.style.parsedOptions : void 0;
3202
- E && E.scale && (f = f * (E.scale || 1)), o.push({
3165
+ if (Nt(l)) {
3166
+ var E = typeof l.style == "string" ? n.number[l.style] : Rt(l.style) ? l.style.parsedOptions : void 0;
3167
+ E && E.scale && (c = c * (E.scale || 1)), o.push({
3203
3168
  type: w.literal,
3204
- value: r.getNumberFormat(t, E).format(f)
3169
+ value: r.getNumberFormat(t, E).format(c)
3205
3170
  });
3206
3171
  continue;
3207
3172
  }
3208
- if (Gt(h)) {
3209
- var d = h.children, b = h.value, g = i[b];
3210
- if (!Vn(g))
3211
- throw new Gn(b, "function", a);
3212
- var p = pe(d, t, r, n, i, s), T = g(p.map(function(C) {
3173
+ if (Mt(l)) {
3174
+ var d = l.children, b = l.value, g = i[b];
3175
+ if (!wn(g))
3176
+ throw new Pn(b, "function", a);
3177
+ var p = ge(d, t, r, n, i, s), T = g(p.map(function(C) {
3213
3178
  return C.value;
3214
3179
  }));
3215
3180
  Array.isArray(T) || (T = [T]), o.push.apply(o, T.map(function(C) {
@@ -3219,42 +3184,42 @@ function pe(e, t, r, n, i, s, a) {
3219
3184
  };
3220
3185
  }));
3221
3186
  }
3222
- if (Ut(h)) {
3223
- var P = h.options[f] || h.options.other;
3187
+ if (Ot(l)) {
3188
+ var P = l.options[c] || l.options.other;
3224
3189
  if (!P)
3225
- throw new pt(h.value, f, Object.keys(h.options), a);
3226
- o.push.apply(o, pe(P.value, t, r, n, i));
3190
+ throw new ht(l.value, c, Object.keys(l.options), a);
3191
+ o.push.apply(o, ge(P.value, t, r, n, i));
3227
3192
  continue;
3228
3193
  }
3229
- if (Ft(h)) {
3230
- var P = h.options["=".concat(f)];
3194
+ if (wt(l)) {
3195
+ var P = l.options["=".concat(c)];
3231
3196
  if (!P) {
3232
3197
  if (!Intl.PluralRules)
3233
- throw new Se(`Intl.PluralRules is not available in this environment.
3198
+ throw new ve(`Intl.PluralRules is not available in this environment.
3234
3199
  Try polyfilling it using "@formatjs/intl-pluralrules"
3235
- `, te.MISSING_INTL_API, a);
3236
- var H = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3237
- P = h.options[H] || h.options.other;
3200
+ `, ee.MISSING_INTL_API, a);
3201
+ var H = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3202
+ P = l.options[H] || l.options.other;
3238
3203
  }
3239
3204
  if (!P)
3240
- throw new pt(h.value, f, Object.keys(h.options), a);
3241
- o.push.apply(o, pe(P.value, t, r, n, i, f - (h.offset || 0)));
3205
+ throw new ht(l.value, c, Object.keys(l.options), a);
3206
+ o.push.apply(o, ge(P.value, t, r, n, i, c - (l.offset || 0)));
3242
3207
  continue;
3243
3208
  }
3244
3209
  }
3245
- return jn(o);
3210
+ return On(o);
3246
3211
  }
3247
- function Jn(e, t) {
3248
- return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3249
- return r[n] = x(x({}, e[n]), t[n] || {}), r;
3212
+ function Mn(e, t) {
3213
+ return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3214
+ return r[n] = v(v({}, e[n]), t[n] || {}), r;
3250
3215
  }, {})) : e;
3251
3216
  }
3252
- function zn(e, t) {
3217
+ function Rn(e, t) {
3253
3218
  return t ? Object.keys(e).reduce(function(r, n) {
3254
- return r[n] = Jn(e[n], t[n]), r;
3255
- }, x({}, e)) : e;
3219
+ return r[n] = Mn(e[n], t[n]), r;
3220
+ }, v({}, e)) : e;
3256
3221
  }
3257
- function Re(e) {
3222
+ function we(e) {
3258
3223
  return {
3259
3224
  create: function() {
3260
3225
  return {
@@ -3268,39 +3233,39 @@ function Re(e) {
3268
3233
  }
3269
3234
  };
3270
3235
  }
3271
- function Wn(e) {
3236
+ function Ln(e) {
3272
3237
  return e === void 0 && (e = {
3273
3238
  number: {},
3274
3239
  dateTime: {},
3275
3240
  pluralRules: {}
3276
3241
  }), {
3277
- getNumberFormat: Oe(function() {
3242
+ getNumberFormat: Pe(function() {
3278
3243
  for (var t, r = [], n = 0; n < arguments.length; n++)
3279
3244
  r[n] = arguments[n];
3280
- return new ((t = Intl.NumberFormat).bind.apply(t, Ie([void 0], r, !1)))();
3245
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ne([void 0], r, !1)))();
3281
3246
  }, {
3282
- cache: Re(e.number),
3283
- strategy: we.variadic
3247
+ cache: we(e.number),
3248
+ strategy: Ie.variadic
3284
3249
  }),
3285
- getDateTimeFormat: Oe(function() {
3250
+ getDateTimeFormat: Pe(function() {
3286
3251
  for (var t, r = [], n = 0; n < arguments.length; n++)
3287
3252
  r[n] = arguments[n];
3288
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ie([void 0], r, !1)))();
3253
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ne([void 0], r, !1)))();
3289
3254
  }, {
3290
- cache: Re(e.dateTime),
3291
- strategy: we.variadic
3255
+ cache: we(e.dateTime),
3256
+ strategy: Ie.variadic
3292
3257
  }),
3293
- getPluralRules: Oe(function() {
3258
+ getPluralRules: Pe(function() {
3294
3259
  for (var t, r = [], n = 0; n < arguments.length; n++)
3295
3260
  r[n] = arguments[n];
3296
- return new ((t = Intl.PluralRules).bind.apply(t, Ie([void 0], r, !1)))();
3261
+ return new ((t = Intl.PluralRules).bind.apply(t, Ne([void 0], r, !1)))();
3297
3262
  }, {
3298
- cache: Re(e.pluralRules),
3299
- strategy: we.variadic
3263
+ cache: we(e.pluralRules),
3264
+ strategy: Ie.variadic
3300
3265
  })
3301
3266
  };
3302
3267
  }
3303
- var Xn = (
3268
+ var Dn = (
3304
3269
  /** @class */
3305
3270
  function() {
3306
3271
  function e(t, r, n, i) {
@@ -3310,20 +3275,20 @@ var Xn = (
3310
3275
  number: {},
3311
3276
  dateTime: {},
3312
3277
  pluralRules: {}
3313
- }, this.format = function(l) {
3314
- var u = s.formatToParts(l);
3278
+ }, this.format = function(h) {
3279
+ var u = s.formatToParts(h);
3315
3280
  if (u.length === 1)
3316
3281
  return u[0].value;
3317
- var h = u.reduce(function(c, f) {
3318
- return !c.length || f.type !== w.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3282
+ var l = u.reduce(function(f, c) {
3283
+ return !f.length || c.type !== w.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3319
3284
  }, []);
3320
- return h.length <= 1 ? h[0] || "" : h;
3321
- }, this.formatToParts = function(l) {
3322
- return pe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3285
+ return l.length <= 1 ? l[0] || "" : l;
3286
+ }, this.formatToParts = function(h) {
3287
+ return ge(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3323
3288
  }, this.resolvedOptions = function() {
3324
- var l;
3289
+ var h;
3325
3290
  return {
3326
- locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3291
+ locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3327
3292
  };
3328
3293
  }, this.getAst = function() {
3329
3294
  return s.ast;
@@ -3332,13 +3297,13 @@ var Xn = (
3332
3297
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3333
3298
  var a = i || {};
3334
3299
  a.formatters;
3335
- var o = nn(a, ["formatters"]);
3336
- this.ast = e.__parse(t, x(x({}, o), { locale: this.resolvedLocale }));
3300
+ var o = Jr(a, ["formatters"]);
3301
+ this.ast = e.__parse(t, v(v({}, o), { locale: this.resolvedLocale }));
3337
3302
  } else
3338
3303
  this.ast = t;
3339
3304
  if (!Array.isArray(this.ast))
3340
3305
  throw new TypeError("A message must be provided as a String or AST.");
3341
- this.formats = zn(e.formats, n), this.formatters = i && i.formatters || Wn(this.formatterCache);
3306
+ this.formats = Rn(e.formats, n), this.formatters = i && i.formatters || Ln(this.formatterCache);
3342
3307
  }
3343
3308
  return Object.defineProperty(e, "defaultLocale", {
3344
3309
  get: function() {
@@ -3347,11 +3312,11 @@ var Xn = (
3347
3312
  enumerable: !1,
3348
3313
  configurable: !0
3349
3314
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3350
- if (typeof Intl.Locale != "undefined") {
3315
+ if (!(typeof Intl.Locale > "u")) {
3351
3316
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3352
3317
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3353
3318
  }
3354
- }, e.__parse = Fn, e.formats = {
3319
+ }, e.__parse = Nn, e.formats = {
3355
3320
  number: {
3356
3321
  integer: {
3357
3322
  maximumFractionDigits: 0
@@ -3412,7 +3377,7 @@ var Xn = (
3412
3377
  }, e;
3413
3378
  }()
3414
3379
  );
3415
- function Zn(e, t) {
3380
+ function kn(e, t) {
3416
3381
  if (t == null)
3417
3382
  return;
3418
3383
  if (t in e)
@@ -3433,92 +3398,92 @@ function Zn(e, t) {
3433
3398
  n = void 0;
3434
3399
  return n;
3435
3400
  }
3436
- const W = {}, Qn = (e, t, r) => r && (t in W || (W[t] = {}), e in W[t] || (W[t][e] = r), r), Qt = (e, t) => {
3401
+ const z = {}, Un = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), jt = (e, t) => {
3437
3402
  if (t == null)
3438
3403
  return;
3439
- if (t in W && e in W[t])
3440
- return W[t][e];
3441
- const r = Te(t);
3404
+ if (t in z && e in z[t])
3405
+ return z[t][e];
3406
+ const r = Se(t);
3442
3407
  for (let n = 0; n < r.length; n++) {
3443
- const i = r[n], s = Yn(i, e);
3408
+ const i = r[n], s = Gn(i, e);
3444
3409
  if (s)
3445
- return Qn(e, t, s);
3410
+ return Un(e, t, s);
3446
3411
  }
3447
3412
  };
3448
- let Ye;
3449
- const de = ve({});
3450
- function qn(e) {
3451
- return Ye[e] || null;
3413
+ let Ze;
3414
+ const me = Ee({});
3415
+ function Fn(e) {
3416
+ return Ze[e] || null;
3452
3417
  }
3453
- function qt(e) {
3454
- return e in Ye;
3418
+ function Vt(e) {
3419
+ return e in Ze;
3455
3420
  }
3456
- function Yn(e, t) {
3457
- if (!qt(e))
3421
+ function Gn(e, t) {
3422
+ if (!Vt(e))
3458
3423
  return null;
3459
- const r = qn(e);
3460
- return Zn(r, t);
3424
+ const r = Fn(e);
3425
+ return kn(r, t);
3461
3426
  }
3462
- function Kn(e) {
3427
+ function $n(e) {
3463
3428
  if (e == null)
3464
3429
  return;
3465
- const t = Te(e);
3430
+ const t = Se(e);
3466
3431
  for (let r = 0; r < t.length; r++) {
3467
3432
  const n = t[r];
3468
- if (qt(n))
3433
+ if (Vt(n))
3469
3434
  return n;
3470
3435
  }
3471
3436
  }
3472
- function Yt(e, ...t) {
3473
- delete W[e], de.update((r) => (r[e] = rn.all([r[e] || {}, ...t]), r));
3437
+ function Jt(e, ...t) {
3438
+ delete z[e], me.update((r) => (r[e] = Vr.all([r[e] || {}, ...t]), r));
3474
3439
  }
3475
- ie(
3476
- [de],
3440
+ ne(
3441
+ [me],
3477
3442
  ([e]) => Object.keys(e)
3478
3443
  );
3479
- de.subscribe((e) => Ye = e);
3480
- const ye = {};
3481
- function ei(e, t) {
3482
- ye[e].delete(t), ye[e].size === 0 && delete ye[e];
3444
+ me.subscribe((e) => Ze = e);
3445
+ const pe = {};
3446
+ function jn(e, t) {
3447
+ pe[e].delete(t), pe[e].size === 0 && delete pe[e];
3483
3448
  }
3484
- function Kt(e) {
3485
- return ye[e];
3449
+ function zt(e) {
3450
+ return pe[e];
3486
3451
  }
3487
- function ti(e) {
3488
- return Te(e).map((t) => {
3489
- const r = Kt(t);
3452
+ function Vn(e) {
3453
+ return Se(e).map((t) => {
3454
+ const r = zt(t);
3490
3455
  return [t, r ? [...r] : []];
3491
3456
  }).filter(([, t]) => t.length > 0);
3492
3457
  }
3493
- function Xe(e) {
3494
- return e == null ? !1 : Te(e).some(
3458
+ function ze(e) {
3459
+ return e == null ? !1 : Se(e).some(
3495
3460
  (t) => {
3496
3461
  var r;
3497
- return (r = Kt(t)) == null ? void 0 : r.size;
3462
+ return (r = zt(t)) == null ? void 0 : r.size;
3498
3463
  }
3499
3464
  );
3500
3465
  }
3501
- function ri(e, t) {
3466
+ function Jn(e, t) {
3502
3467
  return Promise.all(
3503
- t.map((n) => (ei(e, n), n().then((i) => i.default || i)))
3504
- ).then((n) => Yt(e, ...n));
3505
- }
3506
- const oe = {};
3507
- function er(e) {
3508
- if (!Xe(e))
3509
- return e in oe ? oe[e] : Promise.resolve();
3510
- const t = ti(e);
3511
- return oe[e] = Promise.all(
3468
+ t.map((n) => (jn(e, n), n().then((i) => i.default || i)))
3469
+ ).then((n) => Jt(e, ...n));
3470
+ }
3471
+ const ae = {};
3472
+ function Wt(e) {
3473
+ if (!ze(e))
3474
+ return e in ae ? ae[e] : Promise.resolve();
3475
+ const t = Vn(e);
3476
+ return ae[e] = Promise.all(
3512
3477
  t.map(
3513
- ([r, n]) => ri(r, n)
3478
+ ([r, n]) => Jn(r, n)
3514
3479
  )
3515
3480
  ).then(() => {
3516
- if (Xe(e))
3517
- return er(e);
3518
- delete oe[e];
3519
- }), oe[e];
3481
+ if (ze(e))
3482
+ return Wt(e);
3483
+ delete ae[e];
3484
+ }), ae[e];
3520
3485
  }
3521
- const ni = {
3486
+ const zn = {
3522
3487
  number: {
3523
3488
  scientific: { notation: "scientific" },
3524
3489
  engineering: { notation: "engineering" },
@@ -3547,178 +3512,178 @@ const ni = {
3547
3512
  timeZoneName: "short"
3548
3513
  }
3549
3514
  }
3550
- }, ii = {
3515
+ }, Wn = {
3551
3516
  fallbackLocale: null,
3552
3517
  loadingDelay: 200,
3553
- formats: ni,
3518
+ formats: zn,
3554
3519
  warnOnMissingMessages: !0,
3555
3520
  handleMissingMessage: void 0,
3556
3521
  ignoreTag: !0
3557
- }, si = ii;
3558
- function re() {
3559
- return si;
3560
- }
3561
- const Le = ve(!1);
3562
- var ai = Object.defineProperty, oi = Object.defineProperties, ui = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ci = (e, t) => {
3563
- for (var r in t || (t = {}))
3564
- li.call(t, r) && _t(e, r, t[r]);
3565
- if (yt)
3566
- for (var r of yt(t))
3567
- hi.call(t, r) && _t(e, r, t[r]);
3522
+ }, Xn = Wn;
3523
+ function te() {
3524
+ return Xn;
3525
+ }
3526
+ const Me = Ee(!1);
3527
+ var Zn = Object.defineProperty, Qn = Object.defineProperties, qn = Object.getOwnPropertyDescriptors, ft = Object.getOwnPropertySymbols, Yn = Object.prototype.hasOwnProperty, Kn = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ei = (e, t) => {
3528
+ for (var r in t)
3529
+ Yn.call(t, r) && ct(e, r, t[r]);
3530
+ if (ft)
3531
+ for (var r of ft(t))
3532
+ Kn.call(t, r) && ct(e, r, t[r]);
3568
3533
  return e;
3569
- }, fi = (e, t) => oi(e, ui(t));
3570
- let Ze;
3571
- const _e = ve(null);
3572
- function Et(e) {
3534
+ }, ti = (e, t) => Qn(e, qn(t));
3535
+ let We;
3536
+ const ye = Ee(null);
3537
+ function mt(e) {
3573
3538
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3574
3539
  }
3575
- function Te(e, t = re().fallbackLocale) {
3576
- const r = Et(e);
3577
- return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
3540
+ function Se(e, t = te().fallbackLocale) {
3541
+ const r = mt(e);
3542
+ return t ? [.../* @__PURE__ */ new Set([...r, ...mt(t)])] : r;
3578
3543
  }
3579
- function X() {
3580
- return Ze != null ? Ze : void 0;
3544
+ function W() {
3545
+ return We ?? void 0;
3581
3546
  }
3582
- _e.subscribe((e) => {
3583
- Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3547
+ ye.subscribe((e) => {
3548
+ We = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3584
3549
  });
3585
- const mi = (e) => {
3586
- if (e && Kn(e) && Xe(e)) {
3587
- const { loadingDelay: t } = re();
3550
+ const ri = (e) => {
3551
+ if (e && $n(e) && ze(e)) {
3552
+ const { loadingDelay: t } = te();
3588
3553
  let r;
3589
- return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
3590
- () => Le.set(!0),
3554
+ return typeof window < "u" && W() != null && t ? r = window.setTimeout(
3555
+ () => Me.set(!0),
3591
3556
  t
3592
- ) : Le.set(!0), er(e).then(() => {
3593
- _e.set(e);
3557
+ ) : Me.set(!0), Wt(e).then(() => {
3558
+ ye.set(e);
3594
3559
  }).finally(() => {
3595
- clearTimeout(r), Le.set(!1);
3560
+ clearTimeout(r), Me.set(!1);
3596
3561
  });
3597
3562
  }
3598
- return _e.set(e);
3599
- }, se = fi(ci({}, _e), {
3600
- set: mi
3601
- }), Ae = (e) => {
3563
+ return ye.set(e);
3564
+ }, ie = ti(ei({}, ye), {
3565
+ set: ri
3566
+ }), Te = (e) => {
3602
3567
  const t = /* @__PURE__ */ Object.create(null);
3603
3568
  return (n) => {
3604
3569
  const i = JSON.stringify(n);
3605
3570
  return i in t ? t[i] : t[i] = e(n);
3606
3571
  };
3607
3572
  };
3608
- var di = Object.defineProperty, Ee = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
3573
+ var ni = Object.defineProperty, _e = Object.getOwnPropertySymbols, Xt = Object.prototype.hasOwnProperty, Zt = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
3609
3574
  for (var r in t || (t = {}))
3610
- tr.call(t, r) && vt(e, r, t[r]);
3611
- if (Ee)
3612
- for (var r of Ee(t))
3613
- rr.call(t, r) && vt(e, r, t[r]);
3575
+ Xt.call(t, r) && dt(e, r, t[r]);
3576
+ if (_e)
3577
+ for (var r of _e(t))
3578
+ Zt.call(t, r) && dt(e, r, t[r]);
3614
3579
  return e;
3615
- }, ae = (e, t) => {
3580
+ }, se = (e, t) => {
3616
3581
  var r = {};
3617
3582
  for (var n in e)
3618
- tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3619
- if (e != null && Ee)
3620
- for (var n of Ee(e))
3621
- t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
3583
+ Xt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3584
+ if (e != null && _e)
3585
+ for (var n of _e(e))
3586
+ t.indexOf(n) < 0 && Zt.call(e, n) && (r[n] = e[n]);
3622
3587
  return r;
3623
3588
  };
3624
- const ce = (e, t) => {
3625
- const { formats: r } = re();
3589
+ const he = (e, t) => {
3590
+ const { formats: r } = te();
3626
3591
  if (e in r && t in r[e])
3627
3592
  return r[e][t];
3628
3593
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3629
- }, bi = Ae(
3594
+ }, ii = Te(
3630
3595
  (e) => {
3631
- var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3596
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3632
3597
  if (r == null)
3633
3598
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3634
- return n && (i = ce("number", n)), new Intl.NumberFormat(r, i);
3599
+ return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
3635
3600
  }
3636
- ), gi = Ae(
3601
+ ), si = Te(
3637
3602
  (e) => {
3638
- var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3603
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3639
3604
  if (r == null)
3640
3605
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3641
- return n ? i = ce("date", n) : Object.keys(i).length === 0 && (i = ce("date", "short")), new Intl.DateTimeFormat(r, i);
3606
+ return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
3642
3607
  }
3643
- ), pi = Ae(
3608
+ ), ai = Te(
3644
3609
  (e) => {
3645
- var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3610
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3646
3611
  if (r == null)
3647
3612
  throw new Error(
3648
3613
  '[svelte-i18n] A "locale" must be set to format time values'
3649
3614
  );
3650
- return n ? i = ce("time", n) : Object.keys(i).length === 0 && (i = ce("time", "short")), new Intl.DateTimeFormat(r, i);
3615
+ return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
3651
3616
  }
3652
- ), yi = (e = {}) => {
3617
+ ), oi = (e = {}) => {
3653
3618
  var t = e, {
3654
- locale: r = X()
3655
- } = t, n = ae(t, [
3619
+ locale: r = W()
3620
+ } = t, n = se(t, [
3656
3621
  "locale"
3657
3622
  ]);
3658
- return bi(Ke({ locale: r }, n));
3659
- }, _i = (e = {}) => {
3623
+ return ii(Qe({ locale: r }, n));
3624
+ }, ui = (e = {}) => {
3660
3625
  var t = e, {
3661
- locale: r = X()
3662
- } = t, n = ae(t, [
3626
+ locale: r = W()
3627
+ } = t, n = se(t, [
3663
3628
  "locale"
3664
3629
  ]);
3665
- return gi(Ke({ locale: r }, n));
3666
- }, Ei = (e = {}) => {
3630
+ return si(Qe({ locale: r }, n));
3631
+ }, li = (e = {}) => {
3667
3632
  var t = e, {
3668
- locale: r = X()
3669
- } = t, n = ae(t, [
3633
+ locale: r = W()
3634
+ } = t, n = se(t, [
3670
3635
  "locale"
3671
3636
  ]);
3672
- return pi(Ke({ locale: r }, n));
3673
- }, vi = Ae(
3637
+ return ai(Qe({ locale: r }, n));
3638
+ }, hi = Te(
3674
3639
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3675
- (e, t = X()) => new Xn(e, t, re().formats, {
3676
- ignoreTag: re().ignoreTag
3640
+ (e, t = W()) => new Dn(e, t, te().formats, {
3641
+ ignoreTag: te().ignoreTag
3677
3642
  })
3678
- ), xi = (e, t = {}) => {
3643
+ ), fi = (e, t = {}) => {
3679
3644
  var r, n, i, s;
3680
3645
  let a = t;
3681
3646
  typeof e == "object" && (a = e, e = a.id);
3682
3647
  const {
3683
3648
  values: o,
3684
- locale: l = X(),
3649
+ locale: h = W(),
3685
3650
  default: u
3686
3651
  } = a;
3687
- if (l == null)
3652
+ if (h == null)
3688
3653
  throw new Error(
3689
3654
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3690
3655
  );
3691
- let h = Qt(e, l);
3692
- if (!h)
3693
- h = (s = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3694
- else if (typeof h != "string")
3656
+ let l = jt(e, h);
3657
+ if (!l)
3658
+ l = (s = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3659
+ else if (typeof l != "string")
3695
3660
  return console.warn(
3696
- `[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.`
3697
- ), h;
3661
+ `[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.`
3662
+ ), l;
3698
3663
  if (!o)
3699
- return h;
3700
- let c = h;
3664
+ return l;
3665
+ let f = l;
3701
3666
  try {
3702
- c = vi(h, l).format(o);
3703
- } catch (f) {
3704
- f instanceof Error && console.warn(
3667
+ f = hi(l, h).format(o);
3668
+ } catch (c) {
3669
+ c instanceof Error && console.warn(
3705
3670
  `[svelte-i18n] Message "${e}" has syntax error:`,
3706
- f.message
3671
+ c.message
3707
3672
  );
3708
3673
  }
3709
- return c;
3710
- }, Si = (e, t) => Ei(t).format(e), Ti = (e, t) => _i(t).format(e), Ai = (e, t) => yi(t).format(e), Hi = (e, t = X()) => Qt(e, t), Ci = ie([se, de], () => xi);
3711
- ie([se], () => Si);
3712
- ie([se], () => Ti);
3713
- ie([se], () => Ai);
3714
- ie([se, de], () => Hi);
3715
- function xt(e, t) {
3716
- Yt(e, t);
3717
- }
3718
- function Bi(e) {
3719
- se.set(e);
3720
- }
3721
- const St = {
3674
+ return f;
3675
+ }, ci = (e, t) => li(t).format(e), mi = (e, t) => ui(t).format(e), di = (e, t) => oi(t).format(e), bi = (e, t = W()) => jt(e, t), gi = ne([ie, me], () => fi);
3676
+ ne([ie], () => ci);
3677
+ ne([ie], () => mi);
3678
+ ne([ie], () => di);
3679
+ ne([ie, me], () => bi);
3680
+ function bt(e, t) {
3681
+ Jt(e, t);
3682
+ }
3683
+ function pi(e) {
3684
+ ie.set(e);
3685
+ }
3686
+ const gt = {
3722
3687
  en: {
3723
3688
  enrolled: "Enrolled",
3724
3689
  scoreCriteria: "Score Criteria",
@@ -4050,10 +4015,10 @@ const St = {
4050
4015
  December: "December"
4051
4016
  }
4052
4017
  };
4053
- function Ni(e) {
4054
- yr(e, "svelte-1gxooas", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
4018
+ function yi(e) {
4019
+ ar(e, "svelte-1gxooas", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
4055
4020
  }
4056
- function Tt(e) {
4021
+ function pt(e) {
4057
4022
  let t, r, n, i, s, a;
4058
4023
  return {
4059
4024
  c() {
@@ -4064,51 +4029,51 @@ function Tt(e) {
4064
4029
  e[15]), _(t, "part", i = "Status " + /*statusClass*/
4065
4030
  e[15]);
4066
4031
  },
4067
- m(o, l) {
4068
- G(o, t, l), S(t, r), s || (a = me(
4032
+ m(o, h) {
4033
+ F(o, t, h), S(t, r), s || (a = ce(
4069
4034
  /*matchStatus*/
4070
4035
  e[18].call(null, t)
4071
4036
  ), s = !0);
4072
4037
  },
4073
- p(o, l) {
4074
- l[0] & /*shownStatus*/
4075
- 8192 && $(
4038
+ p(o, h) {
4039
+ h[0] & /*shownStatus*/
4040
+ 8192 && G(
4076
4041
  r,
4077
4042
  /*shownStatus*/
4078
4043
  o[13]
4079
- ), l[0] & /*statusClass*/
4044
+ ), h[0] & /*statusClass*/
4080
4045
  32768 && n !== (n = "Status " + /*statusClass*/
4081
- o[15]) && _(t, "class", n), l[0] & /*statusClass*/
4046
+ o[15]) && _(t, "class", n), h[0] & /*statusClass*/
4082
4047
  32768 && i !== (i = "Status " + /*statusClass*/
4083
4048
  o[15]) && _(t, "part", i);
4084
4049
  },
4085
4050
  d(o) {
4086
- o && U(t), s = !1, a();
4051
+ o && k(t), s = !1, a();
4087
4052
  }
4088
4053
  };
4089
4054
  }
4090
- function At(e) {
4055
+ function yt(e) {
4091
4056
  let t, r = (
4092
4057
  /*userenrolled*/
4093
- e[5] && Ht(e)
4058
+ e[5] && _t(e)
4094
4059
  );
4095
4060
  return {
4096
4061
  c() {
4097
- r && r.c(), t = vr();
4062
+ r && r.c(), t = lr();
4098
4063
  },
4099
4064
  m(n, i) {
4100
- r && r.m(n, i), G(n, t, i);
4065
+ r && r.m(n, i), F(n, t, i);
4101
4066
  },
4102
4067
  p(n, i) {
4103
4068
  /*userenrolled*/
4104
- n[5] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4069
+ n[5] ? r ? r.p(n, i) : (r = _t(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4105
4070
  },
4106
4071
  d(n) {
4107
- n && U(t), r && r.d(n);
4072
+ n && k(t), r && r.d(n);
4108
4073
  }
4109
4074
  };
4110
4075
  }
4111
- function Ht(e) {
4076
+ function _t(e) {
4112
4077
  let t, r = (
4113
4078
  /*$_*/
4114
4079
  e[16]("enrolled") + ""
@@ -4118,19 +4083,19 @@ function Ht(e) {
4118
4083
  t = I("div"), n = M(r), _(t, "class", "Enrolled"), _(t, "part", "Enrolled");
4119
4084
  },
4120
4085
  m(i, s) {
4121
- G(i, t, s), S(t, n);
4086
+ F(i, t, s), S(t, n);
4122
4087
  },
4123
4088
  p(i, s) {
4124
4089
  s[0] & /*$_*/
4125
4090
  65536 && r !== (r = /*$_*/
4126
- i[16]("enrolled") + "") && $(n, r);
4091
+ i[16]("enrolled") + "") && G(n, r);
4127
4092
  },
4128
4093
  d(i) {
4129
- i && U(t);
4094
+ i && k(t);
4130
4095
  }
4131
4096
  };
4132
4097
  }
4133
- function Pi(e) {
4098
+ function _i(e) {
4134
4099
  let t, r, n, i, s;
4135
4100
  return {
4136
4101
  c() {
@@ -4138,10 +4103,10 @@ function Pi(e) {
4138
4103
  (e[0] == "Closing" || /*status*/
4139
4104
  e[0] == "Closed" ? "CardImgFinished" : "")), _(t, "part", n = "CardImg " + /*status*/
4140
4105
  (e[0] == "Closing" || /*status*/
4141
- e[0] == "Closed" ? "CardImgFinished" : "")), De(t, "background-image", "url('https://i.stack.imgur.com/y9DpT.jpg')");
4106
+ e[0] == "Closed" ? "CardImgFinished" : "")), Re(t, "background-image", "url('https://i.stack.imgur.com/y9DpT.jpg')");
4142
4107
  },
4143
4108
  m(a, o) {
4144
- G(a, t, o), i || (s = me(
4109
+ F(a, t, o), i || (s = ce(
4145
4110
  /*matchStatus*/
4146
4111
  e[18].call(null, t)
4147
4112
  ), i = !0);
@@ -4156,11 +4121,11 @@ function Pi(e) {
4156
4121
  a[0] == "Closed" ? "CardImgFinished" : "")) && _(t, "part", n);
4157
4122
  },
4158
4123
  d(a) {
4159
- a && U(t), i = !1, s();
4124
+ a && k(t), i = !1, s();
4160
4125
  }
4161
4126
  };
4162
4127
  }
4163
- function Ii(e) {
4128
+ function Ei(e) {
4164
4129
  let t, r, n, i, s;
4165
4130
  return {
4166
4131
  c() {
@@ -4168,11 +4133,11 @@ function Ii(e) {
4168
4133
  (e[0] == "Closing" || /*status*/
4169
4134
  e[0] == "Closed" ? "CardImgFinished" : "")), _(t, "part", n = "CardImg " + /*status*/
4170
4135
  (e[0] == "Closing" || /*status*/
4171
- e[0] == "Closed" ? "CardImgFinished" : "")), De(t, "background-image", "url('" + /*thumbnail*/
4136
+ e[0] == "Closed" ? "CardImgFinished" : "")), Re(t, "background-image", "url('" + /*thumbnail*/
4172
4137
  e[4] + "')");
4173
4138
  },
4174
4139
  m(a, o) {
4175
- G(a, t, o), i || (s = me(
4140
+ F(a, t, o), i || (s = ce(
4176
4141
  /*matchStatus*/
4177
4142
  e[18].call(null, t)
4178
4143
  ), i = !0);
@@ -4185,15 +4150,15 @@ function Ii(e) {
4185
4150
  1 && n !== (n = "CardImg " + /*status*/
4186
4151
  (a[0] == "Closing" || /*status*/
4187
4152
  a[0] == "Closed" ? "CardImgFinished" : "")) && _(t, "part", n), o[0] & /*thumbnail*/
4188
- 16 && De(t, "background-image", "url('" + /*thumbnail*/
4153
+ 16 && Re(t, "background-image", "url('" + /*thumbnail*/
4189
4154
  a[4] + "')");
4190
4155
  },
4191
4156
  d(a) {
4192
- a && U(t), i = !1, s();
4157
+ a && k(t), i = !1, s();
4193
4158
  }
4194
4159
  };
4195
4160
  }
4196
- function Ct(e) {
4161
+ function Et(e) {
4197
4162
  let t, r, n, i, s;
4198
4163
  return {
4199
4164
  c() {
@@ -4203,7 +4168,7 @@ function Ct(e) {
4203
4168
  ), _(t, "class", "Date"), _(t, "part", "Date");
4204
4169
  },
4205
4170
  m(a, o) {
4206
- G(a, t, o), S(t, r), i || (s = me(n = /*formatDate*/
4171
+ F(a, t, o), S(t, r), i || (s = ce(n = /*formatDate*/
4207
4172
  e[17].call(
4208
4173
  null,
4209
4174
  t,
@@ -4213,7 +4178,7 @@ function Ct(e) {
4213
4178
  },
4214
4179
  p(a, o) {
4215
4180
  o[0] & /*shownDate*/
4216
- 2048 && $(
4181
+ 2048 && G(
4217
4182
  r,
4218
4183
  /*shownDate*/
4219
4184
  a[11]
@@ -4225,24 +4190,24 @@ function Ct(e) {
4225
4190
  );
4226
4191
  },
4227
4192
  d(a) {
4228
- a && U(t), i = !1, s();
4193
+ a && k(t), i = !1, s();
4229
4194
  }
4230
4195
  };
4231
4196
  }
4232
- function Bt(e) {
4197
+ function xt(e) {
4233
4198
  let t, r, n = (
4234
4199
  /*$_*/
4235
4200
  e[16]("scoreCriteria") + ""
4236
- ), i, s, a, o, l, u = (
4201
+ ), i, s, a, o, h, u = (
4237
4202
  /*$_*/
4238
4203
  e[16]("minbet") + ""
4239
- ), h, c, f, E, d, b, g, p = (
4204
+ ), l, f, c, E, d, b, g, p = (
4240
4205
  /*$_*/
4241
4206
  e[16]("seegames") + ""
4242
4207
  ), T, P, H, C = (
4243
4208
  /*$_*/
4244
4209
  e[16]("here") + ""
4245
- ), F, L, j, V;
4210
+ ), U, L, $, j;
4246
4211
  return {
4247
4212
  c() {
4248
4213
  t = I("div"), r = I("p"), i = M(n), s = M(`:
@@ -4250,11 +4215,11 @@ function Bt(e) {
4250
4215
  `), a = I("span"), o = M(
4251
4216
  /*showScoreCriteria*/
4252
4217
  e[14]
4253
- ), l = M(`
4254
- (`), h = M(u), c = z(), f = M(
4218
+ ), h = M(`
4219
+ (`), l = M(u), f = J(), c = M(
4255
4220
  /*minbetcount*/
4256
4221
  e[6]
4257
- ), E = M(")"), d = z(), b = I("div"), g = I("p"), T = M(p), P = z(), H = I("a"), F = M(C), _(a, "part", "ScoreCriteriaSpan"), _(r, "part", "ScoreCriteriaP"), _(t, "class", "ScoreCriteria"), _(t, "part", "ScoreCriteria"), _(H, "part", "GamesAnchor"), _(
4222
+ ), E = M(")"), d = J(), b = I("div"), g = I("p"), T = M(p), P = J(), H = I("a"), U = M(C), _(a, "part", "ScoreCriteriaSpan"), _(r, "part", "ScoreCriteriaP"), _(t, "class", "ScoreCriteria"), _(t, "part", "ScoreCriteria"), _(H, "part", "GamesAnchor"), _(
4258
4223
  H,
4259
4224
  "href",
4260
4225
  /*gameurl*/
@@ -4263,39 +4228,39 @@ function Bt(e) {
4263
4228
  e[9] === "true" ? "_self" : "_blank"), _(g, "part", "GamesP"), _(b, "class", "Games"), _(b, "part", "Games");
4264
4229
  },
4265
4230
  m(B, R) {
4266
- G(B, t, R), S(t, r), S(r, i), S(r, s), S(r, a), S(a, o), S(r, l), S(r, h), S(r, c), S(r, f), S(r, E), G(B, d, R), G(B, b, R), S(b, g), S(g, T), S(g, P), S(g, H), S(H, F), j || (V = [
4267
- me(
4231
+ F(B, t, R), S(t, r), S(r, i), S(r, s), S(r, a), S(a, o), S(r, h), S(r, l), S(r, f), S(r, c), S(r, E), F(B, d, R), F(B, b, R), S(b, g), S(g, T), S(g, P), S(g, H), S(H, U), $ || (j = [
4232
+ ce(
4268
4233
  /*matchScoreCriteria*/
4269
4234
  e[19].call(null, a)
4270
4235
  ),
4271
- xr(
4236
+ hr(
4272
4237
  H,
4273
4238
  "click",
4274
4239
  /*click_handler*/
4275
4240
  e[28]
4276
4241
  )
4277
- ], j = !0);
4242
+ ], $ = !0);
4278
4243
  },
4279
4244
  p(B, R) {
4280
4245
  R[0] & /*$_*/
4281
4246
  65536 && n !== (n = /*$_*/
4282
- B[16]("scoreCriteria") + "") && $(i, n), R[0] & /*showScoreCriteria*/
4283
- 16384 && $(
4247
+ B[16]("scoreCriteria") + "") && G(i, n), R[0] & /*showScoreCriteria*/
4248
+ 16384 && G(
4284
4249
  o,
4285
4250
  /*showScoreCriteria*/
4286
4251
  B[14]
4287
4252
  ), R[0] & /*$_*/
4288
4253
  65536 && u !== (u = /*$_*/
4289
- B[16]("minbet") + "") && $(h, u), R[0] & /*minbetcount*/
4290
- 64 && $(
4291
- f,
4254
+ B[16]("minbet") + "") && G(l, u), R[0] & /*minbetcount*/
4255
+ 64 && G(
4256
+ c,
4292
4257
  /*minbetcount*/
4293
4258
  B[6]
4294
4259
  ), R[0] & /*$_*/
4295
4260
  65536 && p !== (p = /*$_*/
4296
- B[16]("seegames") + "") && $(T, p), R[0] & /*$_*/
4261
+ B[16]("seegames") + "") && G(T, p), R[0] & /*$_*/
4297
4262
  65536 && C !== (C = /*$_*/
4298
- B[16]("here") + "") && $(F, C), R[0] & /*gameurl*/
4263
+ B[16]("here") + "") && G(U, C), R[0] & /*gameurl*/
4299
4264
  256 && _(
4300
4265
  H,
4301
4266
  "href",
@@ -4306,102 +4271,102 @@ function Bt(e) {
4306
4271
  B[9] === "true" ? "_self" : "_blank") && _(H, "target", L);
4307
4272
  },
4308
4273
  d(B) {
4309
- B && (U(t), U(d), U(b)), j = !1, ne(V);
4274
+ B && (k(t), k(d), k(b)), $ = !1, re(j);
4310
4275
  }
4311
4276
  };
4312
4277
  }
4313
- function Oi(e) {
4314
- let t, r, n, i, s, a, o, l, u, h = (
4278
+ function xi(e) {
4279
+ let t, r, n, i, s, a, o, h, u, l = (
4315
4280
  /*status*/
4316
- e[0] && Tt(e)
4317
- ), c = (
4281
+ e[0] && pt(e)
4282
+ ), f = (
4318
4283
  /*showenrolled*/
4319
- e[7] == "true" && At(e)
4284
+ e[7] == "true" && yt(e)
4320
4285
  );
4321
- function f(p, T) {
4286
+ function c(p, T) {
4322
4287
  return (
4323
4288
  /*thumbnail*/
4324
- p[4] ? Ii : Pi
4289
+ p[4] ? Ei : _i
4325
4290
  );
4326
4291
  }
4327
- let E = f(e), d = E(e), b = (
4292
+ let E = c(e), d = E(e), b = (
4328
4293
  /*startdate*/
4329
- e[2] && Ct(e)
4294
+ e[2] && Et(e)
4330
4295
  ), g = (
4331
4296
  /*isLoggedIn*/
4332
- e[12] && Bt(e)
4297
+ e[12] && xt(e)
4333
4298
  );
4334
4299
  return {
4335
4300
  c() {
4336
- t = I("div"), h && h.c(), r = z(), c && c.c(), n = z(), d.c(), i = z(), s = I("div"), a = I("div"), o = M(
4301
+ t = I("div"), l && l.c(), r = J(), f && f.c(), n = J(), d.c(), i = J(), s = I("div"), a = I("div"), o = M(
4337
4302
  /*title*/
4338
4303
  e[1]
4339
- ), l = z(), b && b.c(), u = z(), g && g.c(), _(a, "class", "Title"), _(a, "part", "Title"), _(s, "class", "Details"), _(s, "part", "Details"), _(t, "class", "Thumbnail"), _(t, "part", "Thumbnail");
4304
+ ), h = J(), b && b.c(), u = J(), g && g.c(), _(a, "class", "Title"), _(a, "part", "Title"), _(s, "class", "Details"), _(s, "part", "Details"), _(t, "class", "Thumbnail"), _(t, "part", "Thumbnail");
4340
4305
  },
4341
4306
  m(p, T) {
4342
- G(p, t, T), h && h.m(t, null), S(t, r), c && c.m(t, null), S(t, n), d.m(t, null), S(t, i), S(t, s), S(s, a), S(a, o), S(s, l), b && b.m(s, null), S(s, u), g && g.m(s, null), e[29](t);
4307
+ F(p, t, T), l && l.m(t, null), S(t, r), f && f.m(t, null), S(t, n), d.m(t, null), S(t, i), S(t, s), S(s, a), S(a, o), S(s, h), b && b.m(s, null), S(s, u), g && g.m(s, null), e[29](t);
4343
4308
  },
4344
4309
  p(p, T) {
4345
4310
  /*status*/
4346
- p[0] ? h ? h.p(p, T) : (h = Tt(p), h.c(), h.m(t, r)) : h && (h.d(1), h = null), /*showenrolled*/
4347
- p[7] == "true" ? c ? c.p(p, T) : (c = At(p), c.c(), c.m(t, n)) : c && (c.d(1), c = null), E === (E = f(p)) && d ? d.p(p, T) : (d.d(1), d = E(p), d && (d.c(), d.m(t, i))), T[0] & /*title*/
4348
- 2 && $(
4311
+ p[0] ? l ? l.p(p, T) : (l = pt(p), l.c(), l.m(t, r)) : l && (l.d(1), l = null), /*showenrolled*/
4312
+ p[7] == "true" ? f ? f.p(p, T) : (f = yt(p), f.c(), f.m(t, n)) : f && (f.d(1), f = null), E === (E = c(p)) && d ? d.p(p, T) : (d.d(1), d = E(p), d && (d.c(), d.m(t, i))), T[0] & /*title*/
4313
+ 2 && G(
4349
4314
  o,
4350
4315
  /*title*/
4351
4316
  p[1]
4352
4317
  ), /*startdate*/
4353
- p[2] ? b ? b.p(p, T) : (b = Ct(p), b.c(), b.m(s, u)) : b && (b.d(1), b = null), /*isLoggedIn*/
4354
- p[12] ? g ? g.p(p, T) : (g = Bt(p), g.c(), g.m(s, null)) : g && (g.d(1), g = null);
4318
+ p[2] ? b ? b.p(p, T) : (b = Et(p), b.c(), b.m(s, u)) : b && (b.d(1), b = null), /*isLoggedIn*/
4319
+ p[12] ? g ? g.p(p, T) : (g = xt(p), g.c(), g.m(s, null)) : g && (g.d(1), g = null);
4355
4320
  },
4356
- i: k,
4357
- o: k,
4321
+ i: D,
4322
+ o: D,
4358
4323
  d(p) {
4359
- p && U(t), h && h.d(), c && c.d(), d.d(), b && b.d(), g && g.d(), e[29](null);
4324
+ p && k(t), l && l.d(), f && f.d(), d.d(), b && b.d(), g && g.d(), e[29](null);
4360
4325
  }
4361
4326
  };
4362
4327
  }
4363
- function wi(e, t, r) {
4328
+ function vi(e, t, r) {
4364
4329
  let n;
4365
- pr(e, Ci, (m) => r(16, n = m));
4366
- let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: o = "" } = t, { status: l = "" } = t, { tourid: u = "" } = t, { thumbnail: h = "" } = t, { userenrolled: c = "" } = t, { scorecriteria: f = "" } = t, { minbetcount: E = "" } = t, { showenrolled: d = "false" } = t, { gameurl: b = "" } = t, { lang: g = "en" } = t, { keepbrowsercontext: p = "false" } = t, { clientstyling: T = "" } = t, { clientstylingurl: P = "" } = t, { translationurl: H = "" } = t, C, F = "", L = !1, j = "", V = "", B = "";
4330
+ sr(e, gi, (m) => r(16, n = m));
4331
+ let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: o = "" } = t, { status: h = "" } = t, { tourid: u = "" } = t, { thumbnail: l = "" } = t, { userenrolled: f = "" } = t, { scorecriteria: c = "" } = t, { minbetcount: E = "" } = t, { showenrolled: d = "false" } = t, { gameurl: b = "" } = t, { lang: g = "en" } = t, { keepbrowsercontext: p = "false" } = t, { clientstyling: T = "" } = t, { clientstylingurl: P = "" } = t, { translationurl: H = "" } = t, C, U = "", L = !1, $ = "", j = "", B = "";
4367
4332
  const R = () => {
4368
4333
  fetch(H).then((O) => O.json()).then((O) => {
4369
- Object.keys(O).forEach((J) => {
4370
- xt(J, O[J]);
4334
+ Object.keys(O).forEach((V) => {
4335
+ bt(V, O[V]);
4371
4336
  });
4372
4337
  }).catch((O) => {
4373
4338
  console.log(O);
4374
4339
  });
4375
4340
  };
4376
- Object.keys(St).forEach((m) => {
4377
- xt(m, St[m]);
4341
+ Object.keys(gt).forEach((m) => {
4342
+ bt(m, gt[m]);
4378
4343
  });
4379
- const et = (m) => {
4380
- m.data && (m.data && m.data.type == "SessionID" && r(12, L = !0), m.data.type == `TournamentStatus_${u}` && r(0, l = m.data.status));
4381
- }, He = () => {
4344
+ const qe = (m) => {
4345
+ m.data && (m.data && m.data.type == "SessionID" && r(12, L = !0), m.data.type == `TournamentStatus_${u}` && r(0, h = m.data.status));
4346
+ }, Ae = () => {
4382
4347
  const m = { month: "long" };
4383
- let O = new Date(o), J = new Intl.DateTimeFormat("en", m).format(O), ur = O.getDate(), lr = O.toLocaleString("en-GB", {
4348
+ let O = new Date(o), V = new Intl.DateTimeFormat("en", m).format(O), tr = O.getDate(), rr = O.toLocaleString("en-GB", {
4384
4349
  hour: "numeric",
4385
4350
  minute: "numeric",
4386
4351
  hour12: !1
4387
4352
  });
4388
- const hr = () => n(l === "Running" ? "startedAt" : "startingAt");
4389
- r(11, F = `${ur} ` + n(`${J}`) + ", " + hr() + ` ${lr}`);
4353
+ const nr = () => n(h === "Running" ? "startedAt" : "startingAt");
4354
+ r(11, U = `${tr} ` + n(`${V}`) + ", " + nr() + ` ${rr}`);
4355
+ }, He = () => {
4356
+ h == "Unstarted" && (r(13, $ = n("scheduled")), r(15, B = "StatusUnstarted")), h == "Running" && (r(13, $ = n("ongoing")), r(15, B = "StatusRunning")), (h == "Closed" || h == "Closing") && r(13, $ = n("finished")), h == "Closed" && r(15, B = "StatusClosed"), h == "Closing" && r(15, B = "StatusClosing");
4390
4357
  }, Ce = () => {
4391
- l == "Unstarted" && (r(13, j = n("scheduled")), r(15, B = "StatusUnstarted")), l == "Running" && (r(13, j = n("ongoing")), r(15, B = "StatusRunning")), (l == "Closed" || l == "Closing") && r(13, j = n("finished")), l == "Closed" && r(15, B = "StatusClosed"), l == "Closing" && r(15, B = "StatusClosing");
4392
- }, Be = () => {
4393
- f == "BetCount" && r(14, V = n("betCount")), f == "MaxWinStakeRatio" && r(14, V = n("maxWinStakeRatio")), f == "WinStakeRatio" && r(14, V = n("winStakeRatio")), f == "Stake" && r(14, V = n("stake"));
4394
- }, tt = (m, O) => {
4358
+ c == "BetCount" && r(14, j = n("betCount")), c == "MaxWinStakeRatio" && r(14, j = n("maxWinStakeRatio")), c == "WinStakeRatio" && r(14, j = n("winStakeRatio")), c == "Stake" && r(14, j = n("stake"));
4359
+ }, Ye = (m, O) => {
4395
4360
  window.postMessage({ type: "tournamentGamesClicked", tourId: O }, window.location.href);
4396
- }, nr = () => {
4361
+ }, Qt = () => {
4397
4362
  i.length > 0 && i != "false" ? r(12, L = !0) : r(12, L = !1);
4398
- }, ir = () => {
4363
+ }, qt = () => {
4399
4364
  let m = document.createElement("style");
4400
4365
  m.innerHTML = T, C.appendChild(m);
4401
- }, sr = () => {
4366
+ }, Yt = () => {
4402
4367
  let m = new URL(P), O = document.createElement("style");
4403
- fetch(m.href).then((J) => J.text()).then((J) => {
4404
- O.innerHTML = J, setTimeout(
4368
+ fetch(m.href).then((V) => V.text()).then((V) => {
4369
+ O.innerHTML = V, setTimeout(
4405
4370
  () => {
4406
4371
  C.appendChild(O);
4407
4372
  },
@@ -4413,70 +4378,70 @@ function wi(e, t, r) {
4413
4378
  );
4414
4379
  });
4415
4380
  };
4416
- Hr(() => (setTimeout(() => rt(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", et, !1), () => {
4417
- window.removeEventListener("message", et);
4381
+ dr(() => (setTimeout(() => Ke(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", qe, !1), () => {
4382
+ window.removeEventListener("message", qe);
4418
4383
  }));
4419
- const rt = () => {
4420
- Bi(g), Be(), Ce(), o && He();
4421
- }, ar = () => tt();
4422
- function or(m) {
4423
- ke[m ? "unshift" : "push"](() => {
4384
+ const Ke = () => {
4385
+ pi(g), Ce(), He(), o && Ae();
4386
+ }, Kt = () => Ye();
4387
+ function er(m) {
4388
+ Le[m ? "unshift" : "push"](() => {
4424
4389
  C = m, r(10, C);
4425
4390
  });
4426
4391
  }
4427
4392
  return e.$$set = (m) => {
4428
- "session" in m && r(21, i = m.session), "userid" in m && r(22, s = m.userid), "title" in m && r(1, a = m.title), "startdate" in m && r(2, o = m.startdate), "status" in m && r(0, l = m.status), "tourid" in m && r(3, u = m.tourid), "thumbnail" in m && r(4, h = m.thumbnail), "userenrolled" in m && r(5, c = m.userenrolled), "scorecriteria" in m && r(23, f = m.scorecriteria), "minbetcount" in m && r(6, E = m.minbetcount), "showenrolled" in m && r(7, d = m.showenrolled), "gameurl" in m && r(8, b = m.gameurl), "lang" in m && r(24, g = m.lang), "keepbrowsercontext" in m && r(9, p = m.keepbrowsercontext), "clientstyling" in m && r(25, T = m.clientstyling), "clientstylingurl" in m && r(26, P = m.clientstylingurl), "translationurl" in m && r(27, H = m.translationurl);
4393
+ "session" in m && r(21, i = m.session), "userid" in m && r(22, s = m.userid), "title" in m && r(1, a = m.title), "startdate" in m && r(2, o = m.startdate), "status" in m && r(0, h = m.status), "tourid" in m && r(3, u = m.tourid), "thumbnail" in m && r(4, l = m.thumbnail), "userenrolled" in m && r(5, f = m.userenrolled), "scorecriteria" in m && r(23, c = m.scorecriteria), "minbetcount" in m && r(6, E = m.minbetcount), "showenrolled" in m && r(7, d = m.showenrolled), "gameurl" in m && r(8, b = m.gameurl), "lang" in m && r(24, g = m.lang), "keepbrowsercontext" in m && r(9, p = m.keepbrowsercontext), "clientstyling" in m && r(25, T = m.clientstyling), "clientstylingurl" in m && r(26, P = m.clientstylingurl), "translationurl" in m && r(27, H = m.translationurl);
4429
4394
  }, e.$$.update = () => {
4430
4395
  e.$$.dirty[0] & /*customStylingContainer, clientstyling*/
4431
- 33555456 && C && T && ir(), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
4432
- 67109888 && C && P && sr(), e.$$.dirty[0] & /*translationurl*/
4396
+ 33555456 && C && T && qt(), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
4397
+ 67109888 && C && P && Yt(), e.$$.dirty[0] & /*translationurl*/
4433
4398
  134217728 && H && R(), e.$$.dirty[0] & /*session*/
4434
- 2097152 && i && nr(), e.$$.dirty[0] & /*status*/
4435
- 1 && l && Ce(), e.$$.dirty[0] & /*title, lang*/
4436
- 16777218 && a && g && rt(), e.$$.dirty[0] & /*startdate*/
4437
- 4 && o && He(), e.$$.dirty[0] & /*scorecriteria*/
4438
- 8388608 && f && Be();
4399
+ 2097152 && i && Qt(), e.$$.dirty[0] & /*status*/
4400
+ 1 && h && He(), e.$$.dirty[0] & /*title, lang*/
4401
+ 16777218 && a && g && Ke(), e.$$.dirty[0] & /*startdate*/
4402
+ 4 && o && Ae(), e.$$.dirty[0] & /*scorecriteria*/
4403
+ 8388608 && c && Ce();
4439
4404
  }, [
4440
- l,
4405
+ h,
4441
4406
  a,
4442
4407
  o,
4443
4408
  u,
4444
- h,
4445
- c,
4409
+ l,
4410
+ f,
4446
4411
  E,
4447
4412
  d,
4448
4413
  b,
4449
4414
  p,
4450
4415
  C,
4451
- F,
4416
+ U,
4452
4417
  L,
4418
+ $,
4453
4419
  j,
4454
- V,
4455
4420
  B,
4456
4421
  n,
4422
+ Ae,
4457
4423
  He,
4458
4424
  Ce,
4459
- Be,
4460
- tt,
4425
+ Ye,
4461
4426
  i,
4462
4427
  s,
4463
- f,
4428
+ c,
4464
4429
  g,
4465
4430
  T,
4466
4431
  P,
4467
4432
  H,
4468
- ar,
4469
- or
4433
+ Kt,
4434
+ er
4470
4435
  ];
4471
4436
  }
4472
- class Mi extends kr {
4437
+ class Si extends Hr {
4473
4438
  constructor(t) {
4474
- super(), Lr(
4439
+ super(), Tr(
4475
4440
  this,
4476
4441
  t,
4477
- wi,
4478
- Oi,
4479
- Pt,
4442
+ vi,
4443
+ xi,
4444
+ St,
4480
4445
  {
4481
4446
  session: 21,
4482
4447
  userid: 22,
@@ -4496,7 +4461,7 @@ class Mi extends kr {
4496
4461
  clientstylingurl: 26,
4497
4462
  translationurl: 27
4498
4463
  },
4499
- Ni,
4464
+ yi,
4500
4465
  [-1, -1]
4501
4466
  );
4502
4467
  }
@@ -4603,7 +4568,7 @@ class Mi extends kr {
4603
4568
  this.$$set({ translationurl: t }), N();
4604
4569
  }
4605
4570
  }
4606
- Dr(Mi, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4571
+ Ar(Si, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4607
4572
  export {
4608
- Mi as default
4573
+ Si as C
4609
4574
  };