@everymatrix/general-player-sms-verification-form 1.55.0 → 1.56.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,47 +1,48 @@
1
- function $() {
1
+ function U() {
2
2
  }
3
- function yt(e) {
3
+ function vt(e) {
4
4
  return e();
5
5
  }
6
- function Ye() {
6
+ function qe() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function oe(e) {
10
- e.forEach(yt);
9
+ function ne(e) {
10
+ e.forEach(vt);
11
11
  }
12
- function We(e) {
12
+ function ze(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function Et(e, t) {
15
+ function yt(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function Wt(e) {
18
+ function zt(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function xt(e, ...t) {
21
+ function Et(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const n of t)
24
24
  n(void 0);
25
- return $;
25
+ return U;
26
26
  }
27
27
  const r = e.subscribe(...t);
28
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
29
29
  }
30
- function Zt(e, t, r) {
31
- e.$$.on_destroy.push(xt(t, r));
30
+ function Wt(e, t, r) {
31
+ e.$$.on_destroy.push(Et(t, r));
32
32
  }
33
33
  function E(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function Jt(e, t, r) {
37
- const n = Qt(e);
36
+ function Zt(e, t, r) {
37
+ const n = Jt(e);
38
38
  if (!n.getElementById(t)) {
39
39
  const i = M("style");
40
- i.id = t, i.textContent = r, qt(n, i);
40
+ i.id = t, i.textContent = r, Qt(n, i);
41
41
  }
42
42
  }
43
- function Qt(e) {
44
- if (!e) return document;
43
+ function Jt(e) {
44
+ if (!e)
45
+ return document;
45
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
46
47
  return t && /** @type {ShadowRoot} */
47
48
  t.host ? (
@@ -49,7 +50,7 @@ function Qt(e) {
49
50
  t
50
51
  ) : e.ownerDocument;
51
52
  }
52
- function qt(e, t) {
53
+ function Qt(e, t) {
53
54
  return E(
54
55
  /** @type {Document} */
55
56
  e.head || e,
@@ -65,29 +66,29 @@ function k(e) {
65
66
  function M(e) {
66
67
  return document.createElement(e);
67
68
  }
68
- function L(e) {
69
+ function O(e) {
69
70
  return document.createTextNode(e);
70
71
  }
71
72
  function X() {
72
- return L(" ");
73
+ return O(" ");
73
74
  }
74
- function be(e, t, r, n) {
75
+ function pe(e, t, r, n) {
75
76
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
76
77
  }
77
78
  function A(e, t, r) {
78
79
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
79
80
  }
80
- function Yt(e) {
81
+ function qt(e) {
81
82
  return Array.from(e.childNodes);
82
83
  }
83
84
  function F(e, t) {
84
85
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
85
86
  t);
86
87
  }
87
- function Ke(e, t) {
88
+ function Ye(e, t) {
88
89
  e.value = t ?? "";
89
90
  }
90
- function Kt(e) {
91
+ function Yt(e) {
91
92
  const t = {};
92
93
  return e.childNodes.forEach(
93
94
  /** @param {Element} node */
@@ -96,93 +97,95 @@ function Kt(e) {
96
97
  }
97
98
  ), t;
98
99
  }
99
- let ce;
100
- function he(e) {
101
- ce = e;
100
+ let fe;
101
+ function ce(e) {
102
+ fe = e;
102
103
  }
103
- function er() {
104
- if (!ce) throw new Error("Function called outside component initialization");
105
- return ce;
104
+ function Kt() {
105
+ if (!fe)
106
+ throw new Error("Function called outside component initialization");
107
+ return fe;
106
108
  }
107
- function tr(e) {
108
- er().$$.on_mount.push(e);
109
+ function er(e) {
110
+ Kt().$$.on_mount.push(e);
109
111
  }
110
- const K = [], Le = [];
111
- let ee = [];
112
- const et = [], rr = /* @__PURE__ */ Promise.resolve();
113
- let Re = !1;
114
- function nr() {
115
- Re || (Re = !0, rr.then(D));
112
+ const q = [], Oe = [];
113
+ let Y = [];
114
+ const Ke = [], tr = /* @__PURE__ */ Promise.resolve();
115
+ let Le = !1;
116
+ function rr() {
117
+ Le || (Le = !0, tr.then($));
116
118
  }
117
- function $e(e) {
118
- ee.push(e);
119
+ function Re(e) {
120
+ Y.push(e);
119
121
  }
120
- const we = /* @__PURE__ */ new Set();
121
- let q = 0;
122
- function D() {
123
- if (q !== 0)
122
+ const Be = /* @__PURE__ */ new Set();
123
+ let J = 0;
124
+ function $() {
125
+ if (J !== 0)
124
126
  return;
125
- const e = ce;
127
+ const e = fe;
126
128
  do {
127
129
  try {
128
- for (; q < K.length; ) {
129
- const t = K[q];
130
- q++, he(t), ir(t.$$);
130
+ for (; J < q.length; ) {
131
+ const t = q[J];
132
+ J++, ce(t), nr(t.$$);
131
133
  }
132
134
  } catch (t) {
133
- throw K.length = 0, q = 0, t;
135
+ throw q.length = 0, J = 0, t;
134
136
  }
135
- for (he(null), K.length = 0, q = 0; Le.length; ) Le.pop()();
136
- for (let t = 0; t < ee.length; t += 1) {
137
- const r = ee[t];
138
- we.has(r) || (we.add(r), r());
137
+ for (ce(null), q.length = 0, J = 0; Oe.length; )
138
+ Oe.pop()();
139
+ for (let t = 0; t < Y.length; t += 1) {
140
+ const r = Y[t];
141
+ Be.has(r) || (Be.add(r), r());
139
142
  }
140
- ee.length = 0;
141
- } while (K.length);
142
- for (; et.length; )
143
- et.pop()();
144
- Re = !1, we.clear(), he(e);
143
+ Y.length = 0;
144
+ } while (q.length);
145
+ for (; Ke.length; )
146
+ Ke.pop()();
147
+ Le = !1, Be.clear(), ce(e);
145
148
  }
146
- function ir(e) {
149
+ function nr(e) {
147
150
  if (e.fragment !== null) {
148
- e.update(), oe(e.before_update);
151
+ e.update(), ne(e.before_update);
149
152
  const t = e.dirty;
150
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
153
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
151
154
  }
152
155
  }
153
- function or(e) {
156
+ function ir(e) {
154
157
  const t = [], r = [];
155
- ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
158
+ Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
156
159
  }
157
- const sr = /* @__PURE__ */ new Set();
158
- function ar(e, t) {
159
- e && e.i && (sr.delete(e), e.i(t));
160
+ const or = /* @__PURE__ */ new Set();
161
+ function sr(e, t) {
162
+ e && e.i && (or.delete(e), e.i(t));
160
163
  }
161
- function ur(e, t, r) {
164
+ function ar(e, t, r) {
162
165
  const { fragment: n, after_update: i } = e.$$;
163
- n && n.m(t, r), $e(() => {
164
- const o = e.$$.on_mount.map(yt).filter(We);
165
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
166
- }), i.forEach($e);
166
+ n && n.m(t, r), Re(() => {
167
+ const o = e.$$.on_mount.map(vt).filter(ze);
168
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
169
+ }), i.forEach(Re);
167
170
  }
168
- function lr(e, t) {
171
+ function ur(e, t) {
169
172
  const r = e.$$;
170
- r.fragment !== null && (or(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
173
+ r.fragment !== null && (ir(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
171
174
  }
172
- function hr(e, t) {
173
- e.$$.dirty[0] === -1 && (K.push(e), nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
175
+ function lr(e, t) {
176
+ e.$$.dirty[0] === -1 && (q.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
174
177
  }
175
- function cr(e, t, r, n, i, o, a = null, s = [-1]) {
176
- const h = ce;
177
- he(e);
178
+ function hr(e, t, r, n, i, o, a = null, s = [-1]) {
179
+ const h = fe;
180
+ ce(e);
178
181
  const u = e.$$ = {
179
182
  fragment: null,
180
183
  ctx: [],
181
184
  // state
182
185
  props: o,
183
- update: $,
186
+ update: U,
184
187
  not_equal: i,
185
- bound: Ye(),
188
+ bound: qe(),
186
189
  // lifecycle
187
190
  on_mount: [],
188
191
  on_destroy: [],
@@ -191,28 +194,28 @@ function cr(e, t, r, n, i, o, a = null, s = [-1]) {
191
194
  after_update: [],
192
195
  context: new Map(t.context || (h ? h.$$.context : [])),
193
196
  // everything else
194
- callbacks: Ye(),
197
+ callbacks: qe(),
195
198
  dirty: s,
196
199
  skip_bound: !1,
197
200
  root: t.target || h.$$.root
198
201
  };
199
202
  a && a(u.root);
200
203
  let l = !1;
201
- if (u.ctx = r ? r(e, t.props || {}, (f, d, ...b) => {
202
- const v = b.length ? b[0] : d;
203
- return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), l && hr(e, f)), d;
204
- }) : [], u.update(), l = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
204
+ if (u.ctx = r ? r(e, t.props || {}, (c, d, ...g) => {
205
+ const y = g.length ? g[0] : d;
206
+ return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && lr(e, c)), d;
207
+ }) : [], u.update(), l = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
205
208
  if (t.hydrate) {
206
- const f = Yt(t.target);
207
- u.fragment && u.fragment.l(f), f.forEach(k);
209
+ const c = qt(t.target);
210
+ u.fragment && u.fragment.l(c), c.forEach(k);
208
211
  } else
209
212
  u.fragment && u.fragment.c();
210
- t.intro && ar(e.$$.fragment), ur(e, t.target, t.anchor), D();
213
+ t.intro && sr(e.$$.fragment), ar(e, t.target, t.anchor), $();
211
214
  }
212
- he(h);
215
+ ce(h);
213
216
  }
214
- let _t;
215
- typeof HTMLElement == "function" && (_t = class extends HTMLElement {
217
+ let xt;
218
+ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
216
219
  /** The Svelte component constructor */
217
220
  $$ctor;
218
221
  /** Slots */
@@ -271,12 +274,12 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
271
274
  };
272
275
  if (await Promise.resolve(), !this.$$cn || this.$$c)
273
276
  return;
274
- const t = {}, r = Kt(this);
277
+ const t = {}, r = Yt(this);
275
278
  for (const i of this.$$s)
276
279
  i in r && (t[i] = [e(i)]);
277
280
  for (const i of this.attributes) {
278
281
  const o = this.$$g_p(i.name);
279
- o in this.$$d || (this.$$d[o] = ve(o, i.value, this.$$p_d, "toProp"));
282
+ o in this.$$d || (this.$$d[o] = ge(o, i.value, this.$$p_d, "toProp"));
280
283
  }
281
284
  for (const i in this.$$p_d)
282
285
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -294,7 +297,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
294
297
  this.$$r = !0;
295
298
  for (const i in this.$$p_d)
296
299
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
297
- const o = ve(
300
+ const o = ge(
298
301
  i,
299
302
  this.$$d[i],
300
303
  this.$$p_d,
@@ -316,7 +319,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
316
319
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
317
320
  // and setting attributes through setAttribute etc, this is helpful
318
321
  attributeChangedCallback(e, t, r) {
319
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ve(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
322
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ge(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
320
323
  }
321
324
  disconnectedCallback() {
322
325
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -329,7 +332,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
329
332
  ) || e;
330
333
  }
331
334
  });
332
- function ve(e, t, r, n) {
335
+ function ge(e, t, r, n) {
333
336
  const i = r[e]?.type;
334
337
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
335
338
  return t;
@@ -358,8 +361,8 @@ function ve(e, t, r, n) {
358
361
  return t;
359
362
  }
360
363
  }
361
- function fr(e, t, r, n, i, o) {
362
- let a = class extends _t {
364
+ function cr(e, t, r, n, i, o) {
365
+ let a = class extends xt {
363
366
  constructor() {
364
367
  super(e, r, i), this.$$p_d = t;
365
368
  }
@@ -375,7 +378,7 @@ function fr(e, t, r, n, i, o) {
375
378
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
376
379
  },
377
380
  set(h) {
378
- h = ve(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
381
+ h = ge(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
379
382
  }
380
383
  });
381
384
  }), n.forEach((s) => {
@@ -387,7 +390,7 @@ function fr(e, t, r, n, i, o) {
387
390
  }), e.element = /** @type {any} */
388
391
  a, a;
389
392
  }
390
- class dr {
393
+ class fr {
391
394
  /**
392
395
  * ### PRIVATE API
393
396
  *
@@ -406,7 +409,7 @@ class dr {
406
409
  $$set = void 0;
407
410
  /** @returns {void} */
408
411
  $destroy() {
409
- lr(this, 1), this.$destroy = $;
412
+ ur(this, 1), this.$destroy = U;
410
413
  }
411
414
  /**
412
415
  * @template {Extract<keyof Events, string>} K
@@ -415,8 +418,8 @@ class dr {
415
418
  * @returns {() => void}
416
419
  */
417
420
  $on(t, r) {
418
- if (!We(r))
419
- return $;
421
+ if (!ze(r))
422
+ return U;
420
423
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
421
424
  return n.push(r), () => {
422
425
  const i = n.indexOf(r);
@@ -428,63 +431,63 @@ class dr {
428
431
  * @returns {void}
429
432
  */
430
433
  $set(t) {
431
- this.$$set && !Wt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
434
+ this.$$set && !zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
432
435
  }
433
436
  }
434
- const mr = "4";
435
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mr);
436
- const Y = [];
437
- function pr(e, t) {
437
+ const dr = "4";
438
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr);
439
+ const Q = [];
440
+ function mr(e, t) {
438
441
  return {
439
- subscribe: Se(e, t).subscribe
442
+ subscribe: _e(e, t).subscribe
440
443
  };
441
444
  }
442
- function Se(e, t = $) {
445
+ function _e(e, t = U) {
443
446
  let r;
444
447
  const n = /* @__PURE__ */ new Set();
445
448
  function i(s) {
446
- if (Et(e, s) && (e = s, r)) {
447
- const h = !Y.length;
449
+ if (yt(e, s) && (e = s, r)) {
450
+ const h = !Q.length;
448
451
  for (const u of n)
449
- u[1](), Y.push(u, e);
452
+ u[1](), Q.push(u, e);
450
453
  if (h) {
451
- for (let u = 0; u < Y.length; u += 2)
452
- Y[u][0](Y[u + 1]);
453
- Y.length = 0;
454
+ for (let u = 0; u < Q.length; u += 2)
455
+ Q[u][0](Q[u + 1]);
456
+ Q.length = 0;
454
457
  }
455
458
  }
456
459
  }
457
460
  function o(s) {
458
461
  i(s(e));
459
462
  }
460
- function a(s, h = $) {
463
+ function a(s, h = U) {
461
464
  const u = [s, h];
462
- return n.add(u), n.size === 1 && (r = t(i, o) || $), s(e), () => {
465
+ return n.add(u), n.size === 1 && (r = t(i, o) || U), s(e), () => {
463
466
  n.delete(u), n.size === 0 && r && (r(), r = null);
464
467
  };
465
468
  }
466
469
  return { set: i, update: o, subscribe: a };
467
470
  }
468
- function se(e, t, r) {
471
+ function ie(e, t, r) {
469
472
  const n = !Array.isArray(e), i = n ? [e] : e;
470
473
  if (!i.every(Boolean))
471
474
  throw new Error("derived() expects stores as input, got a falsy value");
472
475
  const o = t.length < 2;
473
- return pr(r, (a, s) => {
476
+ return mr(r, (a, s) => {
474
477
  let h = !1;
475
478
  const u = [];
476
- let l = 0, f = $;
479
+ let l = 0, c = U;
477
480
  const d = () => {
478
481
  if (l)
479
482
  return;
480
- f();
481
- const v = t(n ? u[0] : u, a, s);
482
- o ? a(v) : f = We(v) ? v : $;
483
- }, b = i.map(
484
- (v, _) => xt(
485
- v,
486
- (S) => {
487
- u[_] = S, l &= ~(1 << _), h && d();
483
+ c();
484
+ const y = t(n ? u[0] : u, a, s);
485
+ o ? a(y) : c = ze(y) ? y : U;
486
+ }, g = i.map(
487
+ (y, _) => Et(
488
+ y,
489
+ (T) => {
490
+ u[_] = T, l &= ~(1 << _), h && d();
488
491
  },
489
492
  () => {
490
493
  l |= 1 << _;
@@ -492,172 +495,190 @@ function se(e, t, r) {
492
495
  )
493
496
  );
494
497
  return h = !0, d(), function() {
495
- oe(b), f(), h = !1;
498
+ ne(g), c(), h = !1;
496
499
  };
497
500
  });
498
501
  }
499
- function br(e) {
502
+ function pr(e) {
500
503
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
501
504
  }
502
- var gr = function(t) {
503
- return vr(t) && !yr(t);
505
+ var br = function(t) {
506
+ return gr(t) && !vr(t);
504
507
  };
505
- function vr(e) {
508
+ function gr(e) {
506
509
  return !!e && typeof e == "object";
507
510
  }
508
- function yr(e) {
511
+ function vr(e) {
509
512
  var t = Object.prototype.toString.call(e);
510
- return t === "[object RegExp]" || t === "[object Date]" || _r(e);
513
+ return t === "[object RegExp]" || t === "[object Date]" || xr(e);
511
514
  }
512
- var Er = typeof Symbol == "function" && Symbol.for, xr = Er ? Symbol.for("react.element") : 60103;
513
- function _r(e) {
514
- return e.$$typeof === xr;
515
+ var yr = typeof Symbol == "function" && Symbol.for, Er = yr ? Symbol.for("react.element") : 60103;
516
+ function xr(e) {
517
+ return e.$$typeof === Er;
515
518
  }
516
- function Sr(e) {
519
+ function _r(e) {
517
520
  return Array.isArray(e) ? [] : {};
518
521
  }
519
- function fe(e, t) {
520
- return t.clone !== !1 && t.isMergeableObject(e) ? te(Sr(e), e, t) : e;
522
+ function de(e, t) {
523
+ return t.clone !== !1 && t.isMergeableObject(e) ? K(_r(e), e, t) : e;
521
524
  }
522
- function Tr(e, t, r) {
525
+ function Sr(e, t, r) {
523
526
  return e.concat(t).map(function(n) {
524
- return fe(n, r);
527
+ return de(n, r);
525
528
  });
526
529
  }
527
- function Hr(e, t) {
530
+ function Tr(e, t) {
528
531
  if (!t.customMerge)
529
- return te;
532
+ return K;
530
533
  var r = t.customMerge(e);
531
- return typeof r == "function" ? r : te;
534
+ return typeof r == "function" ? r : K;
532
535
  }
533
- function Ar(e) {
536
+ function Hr(e) {
534
537
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
535
538
  return Object.propertyIsEnumerable.call(e, t);
536
539
  }) : [];
537
540
  }
538
- function tt(e) {
539
- return Object.keys(e).concat(Ar(e));
541
+ function et(e) {
542
+ return Object.keys(e).concat(Hr(e));
540
543
  }
541
- function St(e, t) {
544
+ function _t(e, t) {
542
545
  try {
543
546
  return t in e;
544
547
  } catch {
545
548
  return !1;
546
549
  }
547
550
  }
548
- function Br(e, t) {
549
- return St(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
551
+ function Ar(e, t) {
552
+ return _t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
550
553
  }
551
- function wr(e, t, r) {
554
+ function Br(e, t, r) {
552
555
  var n = {};
553
- return r.isMergeableObject(e) && tt(e).forEach(function(i) {
554
- n[i] = fe(e[i], r);
555
- }), tt(t).forEach(function(i) {
556
- Br(e, i) || (St(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hr(i, r)(e[i], t[i], r) : n[i] = fe(t[i], r));
556
+ return r.isMergeableObject(e) && et(e).forEach(function(i) {
557
+ n[i] = de(e[i], r);
558
+ }), et(t).forEach(function(i) {
559
+ Ar(e, i) || (_t(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tr(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
557
560
  }), n;
558
561
  }
559
- function te(e, t, r) {
560
- r = r || {}, r.arrayMerge = r.arrayMerge || Tr, r.isMergeableObject = r.isMergeableObject || gr, r.cloneUnlessOtherwiseSpecified = fe;
562
+ function K(e, t, r) {
563
+ r = r || {}, r.arrayMerge = r.arrayMerge || Sr, r.isMergeableObject = r.isMergeableObject || br, r.cloneUnlessOtherwiseSpecified = de;
561
564
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
562
- return o ? n ? r.arrayMerge(e, t, r) : wr(e, t, r) : fe(t, r);
565
+ return o ? n ? r.arrayMerge(e, t, r) : Br(e, t, r) : de(t, r);
563
566
  }
564
- te.all = function(t, r) {
567
+ K.all = function(t, r) {
565
568
  if (!Array.isArray(t))
566
569
  throw new Error("first argument should be an array");
567
570
  return t.reduce(function(n, i) {
568
- return te(n, i, r);
571
+ return K(n, i, r);
569
572
  }, {});
570
573
  };
571
- var Pr = te, Cr = Pr;
572
- const Ir = /* @__PURE__ */ br(Cr);
573
- var Ue = function(e, t) {
574
- return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
574
+ var wr = K, Pr = wr;
575
+ const Cr = /* @__PURE__ */ pr(Pr);
576
+ /*! *****************************************************************************
577
+ Copyright (c) Microsoft Corporation.
578
+
579
+ Permission to use, copy, modify, and/or distribute this software for any
580
+ purpose with or without fee is hereby granted.
581
+
582
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
583
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
584
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
585
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
586
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
587
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
588
+ PERFORMANCE OF THIS SOFTWARE.
589
+ ***************************************************************************** */
590
+ var $e = function(e, t) {
591
+ return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
575
592
  r.__proto__ = n;
576
593
  } || function(r, n) {
577
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
578
- }, Ue(e, t);
594
+ for (var i in n)
595
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
596
+ }, $e(e, t);
579
597
  };
580
- function Te(e, t) {
598
+ function Se(e, t) {
581
599
  if (typeof t != "function" && t !== null)
582
600
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
583
- Ue(e, t);
601
+ $e(e, t);
584
602
  function r() {
585
603
  this.constructor = e;
586
604
  }
587
605
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
588
606
  }
589
- var g = function() {
590
- return g = Object.assign || function(t) {
607
+ var v = function() {
608
+ return v = Object.assign || function(t) {
591
609
  for (var r, n = 1, i = arguments.length; n < i; n++) {
592
610
  r = arguments[n];
593
- for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
611
+ for (var o in r)
612
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
594
613
  }
595
614
  return t;
596
- }, g.apply(this, arguments);
615
+ }, v.apply(this, arguments);
597
616
  };
598
- function Nr(e, t) {
617
+ function Ir(e, t) {
599
618
  var r = {};
600
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
619
+ for (var n in e)
620
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
601
621
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
602
622
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
603
623
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
604
624
  return r;
605
625
  }
606
- function Pe(e, t, r) {
607
- if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
608
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
609
- return e.concat(o || Array.prototype.slice.call(t));
626
+ function we(e, t, r) {
627
+ if (arguments.length === 2)
628
+ for (var n = 0, i = t.length, o; n < i; n++)
629
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
630
+ return e.concat(o || t);
610
631
  }
611
- function Ce(e, t) {
612
- var r = t && t.cache ? t.cache : Ur, n = t && t.serializer ? t.serializer : $r, i = t && t.strategy ? t.strategy : Mr;
632
+ function Pe(e, t) {
633
+ var r = t && t.cache ? t.cache : $r, n = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Mr;
613
634
  return i(e, {
614
635
  cache: r,
615
636
  serializer: n
616
637
  });
617
638
  }
618
- function Or(e) {
639
+ function Nr(e) {
619
640
  return e == null || typeof e == "number" || typeof e == "boolean";
620
641
  }
621
- function Tt(e, t, r, n) {
622
- var i = Or(n) ? n : r(n), o = t.get(i);
642
+ function St(e, t, r, n) {
643
+ var i = Nr(n) ? n : r(n), o = t.get(i);
623
644
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
624
645
  }
625
- function Ht(e, t, r) {
646
+ function Tt(e, t, r) {
626
647
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
627
648
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
628
649
  }
629
- function Ze(e, t, r, n, i) {
650
+ function We(e, t, r, n, i) {
630
651
  return r.bind(t, e, n, i);
631
652
  }
632
653
  function Mr(e, t) {
633
- var r = e.length === 1 ? Tt : Ht;
634
- return Ze(e, this, r, t.cache.create(), t.serializer);
654
+ var r = e.length === 1 ? St : Tt;
655
+ return We(e, this, r, t.cache.create(), t.serializer);
635
656
  }
636
- function Lr(e, t) {
637
- return Ze(e, this, Ht, t.cache.create(), t.serializer);
657
+ function Or(e, t) {
658
+ return We(e, this, Tt, t.cache.create(), t.serializer);
638
659
  }
639
- function Rr(e, t) {
640
- return Ze(e, this, Tt, t.cache.create(), t.serializer);
660
+ function Lr(e, t) {
661
+ return We(e, this, St, t.cache.create(), t.serializer);
641
662
  }
642
- var $r = function() {
663
+ var Rr = function() {
643
664
  return JSON.stringify(arguments);
644
665
  };
645
- function Je() {
666
+ function Ze() {
646
667
  this.cache = /* @__PURE__ */ Object.create(null);
647
668
  }
648
- Je.prototype.get = function(e) {
669
+ Ze.prototype.get = function(e) {
649
670
  return this.cache[e];
650
671
  };
651
- Je.prototype.set = function(e, t) {
672
+ Ze.prototype.set = function(e, t) {
652
673
  this.cache[e] = t;
653
674
  };
654
- var Ur = {
675
+ var $r = {
655
676
  create: function() {
656
- return new Je();
677
+ return new Ze();
657
678
  }
658
- }, Ie = {
659
- variadic: Lr,
660
- monadic: Rr
679
+ }, Ce = {
680
+ variadic: Or,
681
+ monadic: Lr
661
682
  }, m;
662
683
  (function(e) {
663
684
  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";
@@ -666,47 +687,47 @@ var x;
666
687
  (function(e) {
667
688
  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";
668
689
  })(x || (x = {}));
669
- var re;
690
+ var ee;
670
691
  (function(e) {
671
692
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
672
- })(re || (re = {}));
673
- function rt(e) {
693
+ })(ee || (ee = {}));
694
+ function tt(e) {
674
695
  return e.type === x.literal;
675
696
  }
676
- function Dr(e) {
697
+ function Ur(e) {
677
698
  return e.type === x.argument;
678
699
  }
679
- function At(e) {
700
+ function Ht(e) {
680
701
  return e.type === x.number;
681
702
  }
682
- function Bt(e) {
703
+ function At(e) {
683
704
  return e.type === x.date;
684
705
  }
685
- function wt(e) {
706
+ function Bt(e) {
686
707
  return e.type === x.time;
687
708
  }
688
- function Pt(e) {
709
+ function wt(e) {
689
710
  return e.type === x.select;
690
711
  }
691
- function Ct(e) {
712
+ function Pt(e) {
692
713
  return e.type === x.plural;
693
714
  }
694
- function Fr(e) {
715
+ function Dr(e) {
695
716
  return e.type === x.pound;
696
717
  }
697
- function It(e) {
718
+ function Ct(e) {
698
719
  return e.type === x.tag;
699
720
  }
700
- function Nt(e) {
701
- return !!(e && typeof e == "object" && e.type === re.number);
721
+ function It(e) {
722
+ return !!(e && typeof e == "object" && e.type === ee.number);
702
723
  }
703
- function De(e) {
704
- return !!(e && typeof e == "object" && e.type === re.dateTime);
724
+ function Ue(e) {
725
+ return !!(e && typeof e == "object" && e.type === ee.dateTime);
705
726
  }
706
- var Ot = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gr = /(?:[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;
707
- function kr(e) {
727
+ var Nt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Fr = /(?:[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;
728
+ function Gr(e) {
708
729
  var t = {};
709
- return e.replace(Gr, function(r) {
730
+ return e.replace(Fr, function(r) {
710
731
  var n = r.length;
711
732
  switch (r[0]) {
712
733
  case "G":
@@ -795,36 +816,36 @@ function kr(e) {
795
816
  return "";
796
817
  }), t;
797
818
  }
798
- var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
799
- function Vr(e) {
819
+ var kr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
820
+ function jr(e) {
800
821
  if (e.length === 0)
801
822
  throw new Error("Number skeleton cannot be empty");
802
- for (var t = e.split(jr).filter(function(d) {
823
+ for (var t = e.split(kr).filter(function(d) {
803
824
  return d.length > 0;
804
825
  }), r = [], n = 0, i = t; n < i.length; n++) {
805
826
  var o = i[n], a = o.split("/");
806
827
  if (a.length === 0)
807
828
  throw new Error("Invalid number skeleton");
808
829
  for (var s = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
809
- var f = l[u];
810
- if (f.length === 0)
830
+ var c = l[u];
831
+ if (c.length === 0)
811
832
  throw new Error("Invalid number skeleton");
812
833
  }
813
834
  r.push({ stem: s, options: h });
814
835
  }
815
836
  return r;
816
837
  }
817
- function Xr(e) {
838
+ function Vr(e) {
818
839
  return e.replace(/^(.*?)-/, "");
819
840
  }
820
- var nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Mt = /^(@+)?(\+|#+)?[rs]?$/g, zr = /(\*)(0+)|(#+)(0+)|(0+)/g, Lt = /^(0+)$/;
821
- function it(e) {
841
+ var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Mt = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Ot = /^(0+)$/;
842
+ function nt(e) {
822
843
  var t = {};
823
844
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Mt, function(r, n, i) {
824
845
  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)), "";
825
846
  }), t;
826
847
  }
827
- function Rt(e) {
848
+ function Lt(e) {
828
849
  switch (e) {
829
850
  case "sign-auto":
830
851
  return {
@@ -864,7 +885,7 @@ function Rt(e) {
864
885
  };
865
886
  }
866
887
  }
867
- function Wr(e) {
888
+ function zr(e) {
868
889
  var t;
869
890
  if (e[0] === "E" && e[1] === "E" ? (t = {
870
891
  notation: "engineering"
@@ -872,17 +893,17 @@ function Wr(e) {
872
893
  notation: "scientific"
873
894
  }, e = e.slice(1)), t) {
874
895
  var r = e.slice(0, 2);
875
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Lt.test(e))
896
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ot.test(e))
876
897
  throw new Error("Malformed concise eng/scientific notation");
877
898
  t.minimumIntegerDigits = e.length;
878
899
  }
879
900
  return t;
880
901
  }
881
- function ot(e) {
882
- var t = {}, r = Rt(e);
902
+ function it(e) {
903
+ var t = {}, r = Lt(e);
883
904
  return r || t;
884
905
  }
885
- function Zr(e) {
906
+ function Wr(e) {
886
907
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
887
908
  var i = n[r];
888
909
  switch (i.stem) {
@@ -906,7 +927,7 @@ function Zr(e) {
906
927
  continue;
907
928
  case "measure-unit":
908
929
  case "unit":
909
- t.style = "unit", t.unit = Xr(i.options[0]);
930
+ t.style = "unit", t.unit = Vr(i.options[0]);
910
931
  continue;
911
932
  case "compact-short":
912
933
  case "K":
@@ -917,13 +938,13 @@ function Zr(e) {
917
938
  t.notation = "compact", t.compactDisplay = "long";
918
939
  continue;
919
940
  case "scientific":
920
- t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
921
- return g(g({}, h), ot(u));
941
+ t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
942
+ return v(v({}, h), it(u));
922
943
  }, {}));
923
944
  continue;
924
945
  case "engineering":
925
- t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
926
- return g(g({}, h), ot(u));
946
+ t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
947
+ return v(v({}, h), it(u));
927
948
  }, {}));
928
949
  continue;
929
950
  case "notation-simple":
@@ -968,45 +989,45 @@ function Zr(e) {
968
989
  case "integer-width":
969
990
  if (i.options.length > 1)
970
991
  throw new RangeError("integer-width stems only accept a single optional option");
971
- i.options[0].replace(zr, function(h, u, l, f, d, b) {
992
+ i.options[0].replace(Xr, function(h, u, l, c, d, g) {
972
993
  if (u)
973
994
  t.minimumIntegerDigits = l.length;
974
995
  else {
975
- if (f && d)
996
+ if (c && d)
976
997
  throw new Error("We currently do not support maximum integer digits");
977
- if (b)
998
+ if (g)
978
999
  throw new Error("We currently do not support exact integer digits");
979
1000
  }
980
1001
  return "";
981
1002
  });
982
1003
  continue;
983
1004
  }
984
- if (Lt.test(i.stem)) {
1005
+ if (Ot.test(i.stem)) {
985
1006
  t.minimumIntegerDigits = i.stem.length;
986
1007
  continue;
987
1008
  }
988
- if (nt.test(i.stem)) {
1009
+ if (rt.test(i.stem)) {
989
1010
  if (i.options.length > 1)
990
1011
  throw new RangeError("Fraction-precision stems only accept a single optional option");
991
- i.stem.replace(nt, function(h, u, l, f, d, b) {
992
- return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && b ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1012
+ i.stem.replace(rt, function(h, u, l, c, d, g) {
1013
+ return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : d && g ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
993
1014
  });
994
1015
  var o = i.options[0];
995
- o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), it(o)));
1016
+ o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), nt(o)));
996
1017
  continue;
997
1018
  }
998
1019
  if (Mt.test(i.stem)) {
999
- t = g(g({}, t), it(i.stem));
1020
+ t = v(v({}, t), nt(i.stem));
1000
1021
  continue;
1001
1022
  }
1002
- var a = Rt(i.stem);
1003
- a && (t = g(g({}, t), a));
1004
- var s = Wr(i.stem);
1005
- s && (t = g(g({}, t), s));
1023
+ var a = Lt(i.stem);
1024
+ a && (t = v(v({}, t), a));
1025
+ var s = zr(i.stem);
1026
+ s && (t = v(v({}, t), s));
1006
1027
  }
1007
1028
  return t;
1008
1029
  }
1009
- var ge = {
1030
+ var be = {
1010
1031
  "001": [
1011
1032
  "H",
1012
1033
  "h"
@@ -2421,22 +2442,23 @@ var ge = {
2421
2442
  "h"
2422
2443
  ]
2423
2444
  };
2424
- function Jr(e, t) {
2445
+ function Zr(e, t) {
2425
2446
  for (var r = "", n = 0; n < e.length; n++) {
2426
2447
  var i = e.charAt(n);
2427
2448
  if (i === "j") {
2428
2449
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2429
2450
  o++, n++;
2430
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Qr(t);
2451
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Jr(t);
2431
2452
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2432
2453
  r += h;
2433
2454
  for (; a-- > 0; )
2434
2455
  r = u + r;
2435
- } else i === "J" ? r += "H" : r += i;
2456
+ } else
2457
+ i === "J" ? r += "H" : r += i;
2436
2458
  }
2437
2459
  return r;
2438
2460
  }
2439
- function Qr(e) {
2461
+ function Jr(e) {
2440
2462
  var t = e.hourCycle;
2441
2463
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2442
2464
  e.hourCycles && // @ts-ignore
@@ -2455,23 +2477,23 @@ function Qr(e) {
2455
2477
  }
2456
2478
  var r = e.language, n;
2457
2479
  r !== "root" && (n = e.maximize().region);
2458
- var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
2480
+ var i = be[n || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
2459
2481
  return i[0];
2460
2482
  }
2461
- var Ne, qr = new RegExp("^".concat(Ot.source, "*")), Yr = new RegExp("".concat(Ot.source, "*$"));
2462
- function p(e, t) {
2483
+ var Ie, Qr = new RegExp("^".concat(Nt.source, "*")), qr = new RegExp("".concat(Nt.source, "*$"));
2484
+ function b(e, t) {
2463
2485
  return { start: e, end: t };
2464
2486
  }
2465
- var Kr = !!String.prototype.startsWith && "_a".startsWith("a", 1), en = !!String.fromCodePoint, tn = !!Object.fromEntries, rn = !!String.prototype.codePointAt, nn = !!String.prototype.trimStart, on = !!String.prototype.trimEnd, sn = !!Number.isSafeInteger, an = sn ? Number.isSafeInteger : function(e) {
2487
+ var Yr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kr = !!String.fromCodePoint, en = !!Object.fromEntries, tn = !!String.prototype.codePointAt, rn = !!String.prototype.trimStart, nn = !!String.prototype.trimEnd, on = !!Number.isSafeInteger, sn = on ? Number.isSafeInteger : function(e) {
2466
2488
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2467
- }, Fe = !0;
2489
+ }, De = !0;
2468
2490
  try {
2469
- var un = Ut("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2470
- Fe = ((Ne = un.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
2491
+ var an = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2492
+ De = ((Ie = an.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
2471
2493
  } catch {
2472
- Fe = !1;
2494
+ De = !1;
2473
2495
  }
2474
- var st = Kr ? (
2496
+ var ot = Yr ? (
2475
2497
  // Native
2476
2498
  function(t, r, n) {
2477
2499
  return t.startsWith(r, n);
@@ -2481,7 +2503,7 @@ var st = Kr ? (
2481
2503
  function(t, r, n) {
2482
2504
  return t.slice(n, n + r.length) === r;
2483
2505
  }
2484
- ), Ge = en ? String.fromCodePoint : (
2506
+ ), Fe = Kr ? String.fromCodePoint : (
2485
2507
  // IE11
2486
2508
  function() {
2487
2509
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2493,9 +2515,9 @@ var st = Kr ? (
2493
2515
  }
2494
2516
  return n;
2495
2517
  }
2496
- ), at = (
2518
+ ), st = (
2497
2519
  // native
2498
- tn ? Object.fromEntries : (
2520
+ en ? Object.fromEntries : (
2499
2521
  // Ponyfill
2500
2522
  function(t) {
2501
2523
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2505,7 +2527,7 @@ var st = Kr ? (
2505
2527
  return r;
2506
2528
  }
2507
2529
  )
2508
- ), $t = rn ? (
2530
+ ), Rt = tn ? (
2509
2531
  // Native
2510
2532
  function(t, r) {
2511
2533
  return t.codePointAt(r);
@@ -2519,7 +2541,7 @@ var st = Kr ? (
2519
2541
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2520
2542
  }
2521
2543
  }
2522
- ), ln = nn ? (
2544
+ ), un = rn ? (
2523
2545
  // Native
2524
2546
  function(t) {
2525
2547
  return t.trimStart();
@@ -2527,9 +2549,9 @@ var st = Kr ? (
2527
2549
  ) : (
2528
2550
  // Ponyfill
2529
2551
  function(t) {
2530
- return t.replace(qr, "");
2552
+ return t.replace(Qr, "");
2531
2553
  }
2532
- ), hn = on ? (
2554
+ ), ln = nn ? (
2533
2555
  // Native
2534
2556
  function(t) {
2535
2557
  return t.trimEnd();
@@ -2537,32 +2559,32 @@ var st = Kr ? (
2537
2559
  ) : (
2538
2560
  // Ponyfill
2539
2561
  function(t) {
2540
- return t.replace(Yr, "");
2562
+ return t.replace(qr, "");
2541
2563
  }
2542
2564
  );
2543
- function Ut(e, t) {
2565
+ function $t(e, t) {
2544
2566
  return new RegExp(e, t);
2545
2567
  }
2546
- var ke;
2547
- if (Fe) {
2548
- var ut = Ut("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2549
- ke = function(t, r) {
2568
+ var Ge;
2569
+ if (De) {
2570
+ var at = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2571
+ Ge = function(t, r) {
2550
2572
  var n;
2551
- ut.lastIndex = r;
2552
- var i = ut.exec(t);
2573
+ at.lastIndex = r;
2574
+ var i = at.exec(t);
2553
2575
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2554
2576
  };
2555
2577
  } else
2556
- ke = function(t, r) {
2578
+ Ge = function(t, r) {
2557
2579
  for (var n = []; ; ) {
2558
- var i = $t(t, r);
2559
- if (i === void 0 || Dt(i) || mn(i))
2580
+ var i = Rt(t, r);
2581
+ if (i === void 0 || Ut(i) || dn(i))
2560
2582
  break;
2561
2583
  n.push(i), r += i >= 65536 ? 2 : 1;
2562
2584
  }
2563
- return Ge.apply(void 0, n);
2585
+ return Fe.apply(void 0, n);
2564
2586
  };
2565
- var cn = (
2587
+ var hn = (
2566
2588
  /** @class */
2567
2589
  function() {
2568
2590
  function e(t, r) {
@@ -2587,13 +2609,13 @@ var cn = (
2587
2609
  var s = this.clonePosition();
2588
2610
  this.bump(), i.push({
2589
2611
  type: x.pound,
2590
- location: p(s, this.clonePosition())
2612
+ location: b(s, this.clonePosition())
2591
2613
  });
2592
2614
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2593
2615
  if (n)
2594
2616
  break;
2595
- return this.error(m.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
2596
- } else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
2617
+ return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
2618
+ } else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
2597
2619
  var a = this.parseTag(t, r);
2598
2620
  if (a.err)
2599
2621
  return a;
@@ -2616,7 +2638,7 @@ var cn = (
2616
2638
  val: {
2617
2639
  type: x.literal,
2618
2640
  value: "<".concat(i, "/>"),
2619
- location: p(n, this.clonePosition())
2641
+ location: b(n, this.clonePosition())
2620
2642
  },
2621
2643
  err: null
2622
2644
  };
@@ -2626,25 +2648,25 @@ var cn = (
2626
2648
  return o;
2627
2649
  var a = o.val, s = this.clonePosition();
2628
2650
  if (this.bumpIf("</")) {
2629
- if (this.isEOF() || !je(this.char()))
2630
- return this.error(m.INVALID_TAG, p(s, this.clonePosition()));
2651
+ if (this.isEOF() || !ke(this.char()))
2652
+ return this.error(m.INVALID_TAG, b(s, this.clonePosition()));
2631
2653
  var h = this.clonePosition(), u = this.parseTagName();
2632
- return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, p(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2654
+ return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2633
2655
  val: {
2634
2656
  type: x.tag,
2635
2657
  value: i,
2636
2658
  children: a,
2637
- location: p(n, this.clonePosition())
2659
+ location: b(n, this.clonePosition())
2638
2660
  },
2639
2661
  err: null
2640
- } : this.error(m.INVALID_TAG, p(s, this.clonePosition())));
2662
+ } : this.error(m.INVALID_TAG, b(s, this.clonePosition())));
2641
2663
  } else
2642
- return this.error(m.UNCLOSED_TAG, p(n, this.clonePosition()));
2664
+ return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
2643
2665
  } else
2644
- return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
2666
+ return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
2645
2667
  }, e.prototype.parseTagName = function() {
2646
2668
  var t = this.offset();
2647
- for (this.bump(); !this.isEOF() && dn(this.char()); )
2669
+ for (this.bump(); !this.isEOF() && fn(this.char()); )
2648
2670
  this.bump();
2649
2671
  return this.message.slice(t, this.offset());
2650
2672
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2666,14 +2688,14 @@ var cn = (
2666
2688
  }
2667
2689
  break;
2668
2690
  }
2669
- var h = p(n, this.clonePosition());
2691
+ var h = b(n, this.clonePosition());
2670
2692
  return {
2671
2693
  val: { type: x.literal, value: i, location: h },
2672
2694
  err: null
2673
2695
  };
2674
2696
  }, e.prototype.tryParseLeftAngleBracket = function() {
2675
2697
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2676
- !fn(this.peek() || 0)) ? (this.bump(), "<") : null;
2698
+ !cn(this.peek() || 0)) ? (this.bump(), "<") : null;
2677
2699
  }, e.prototype.tryParseQuote = function(t) {
2678
2700
  if (this.isEOF() || this.char() !== 39)
2679
2701
  return null;
@@ -2707,23 +2729,23 @@ var cn = (
2707
2729
  r.push(n);
2708
2730
  this.bump();
2709
2731
  }
2710
- return Ge.apply(void 0, r);
2732
+ return Fe.apply(void 0, r);
2711
2733
  }, e.prototype.tryParseUnquoted = function(t, r) {
2712
2734
  if (this.isEOF())
2713
2735
  return null;
2714
2736
  var n = this.char();
2715
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
2737
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
2716
2738
  }, e.prototype.parseArgument = function(t, r) {
2717
2739
  var n = this.clonePosition();
2718
2740
  if (this.bump(), this.bumpSpace(), this.isEOF())
2719
- return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
2741
+ return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2720
2742
  if (this.char() === 125)
2721
- return this.bump(), this.error(m.EMPTY_ARGUMENT, p(n, this.clonePosition()));
2743
+ return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
2722
2744
  var i = this.parseIdentifierIfPossible().value;
2723
2745
  if (!i)
2724
- return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2746
+ return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2725
2747
  if (this.bumpSpace(), this.isEOF())
2726
- return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
2748
+ return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2727
2749
  switch (this.char()) {
2728
2750
  case 125:
2729
2751
  return this.bump(), {
@@ -2731,25 +2753,25 @@ var cn = (
2731
2753
  type: x.argument,
2732
2754
  // value does not include the opening and closing braces.
2733
2755
  value: i,
2734
- location: p(n, this.clonePosition())
2756
+ location: b(n, this.clonePosition())
2735
2757
  },
2736
2758
  err: null
2737
2759
  };
2738
2760
  case 44:
2739
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2761
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2740
2762
  default:
2741
- return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2763
+ return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2742
2764
  }
2743
2765
  }, e.prototype.parseIdentifierIfPossible = function() {
2744
- var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
2766
+ var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
2745
2767
  this.bumpTo(i);
2746
- var o = this.clonePosition(), a = p(t, o);
2768
+ var o = this.clonePosition(), a = b(t, o);
2747
2769
  return { value: n, location: a };
2748
2770
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2749
2771
  var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2750
2772
  switch (s) {
2751
2773
  case "":
2752
- return this.error(m.EXPECT_ARGUMENT_TYPE, p(a, h));
2774
+ return this.error(m.EXPECT_ARGUMENT_TYPE, b(a, h));
2753
2775
  case "number":
2754
2776
  case "date":
2755
2777
  case "time": {
@@ -2757,40 +2779,40 @@ var cn = (
2757
2779
  var u = null;
2758
2780
  if (this.bumpIf(",")) {
2759
2781
  this.bumpSpace();
2760
- var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2761
- if (f.err)
2762
- return f;
2763
- var d = hn(f.val);
2782
+ var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2783
+ if (c.err)
2784
+ return c;
2785
+ var d = ln(c.val);
2764
2786
  if (d.length === 0)
2765
- return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
2766
- var b = p(l, this.clonePosition());
2767
- u = { style: d, styleLocation: b };
2787
+ return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2788
+ var g = b(l, this.clonePosition());
2789
+ u = { style: d, styleLocation: g };
2768
2790
  }
2769
- var v = this.tryParseArgumentClose(i);
2770
- if (v.err)
2771
- return v;
2772
- var _ = p(i, this.clonePosition());
2773
- if (u && st(u?.style, "::", 0)) {
2774
- var S = ln(u.style.slice(2));
2791
+ var y = this.tryParseArgumentClose(i);
2792
+ if (y.err)
2793
+ return y;
2794
+ var _ = b(i, this.clonePosition());
2795
+ if (u && ot(u?.style, "::", 0)) {
2796
+ var T = un(u.style.slice(2));
2775
2797
  if (s === "number") {
2776
- var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
2777
- return f.err ? f : {
2778
- val: { type: x.number, value: n, location: _, style: f.val },
2798
+ var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
2799
+ return c.err ? c : {
2800
+ val: { type: x.number, value: n, location: _, style: c.val },
2779
2801
  err: null
2780
2802
  };
2781
2803
  } else {
2782
- if (S.length === 0)
2804
+ if (T.length === 0)
2783
2805
  return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
2784
- var R = S;
2785
- this.locale && (R = Jr(S, this.locale));
2806
+ var H = T;
2807
+ this.locale && (H = Zr(T, this.locale));
2786
2808
  var d = {
2787
- type: re.dateTime,
2788
- pattern: R,
2809
+ type: ee.dateTime,
2810
+ pattern: H,
2789
2811
  location: u.styleLocation,
2790
- parsedOptions: this.shouldParseSkeletons ? kr(R) : {}
2791
- }, N = s === "date" ? x.date : x.time;
2812
+ parsedOptions: this.shouldParseSkeletons ? Gr(H) : {}
2813
+ }, L = s === "date" ? x.date : x.time;
2792
2814
  return {
2793
- val: { type: N, value: n, location: _, style: d },
2815
+ val: { type: L, value: n, location: _, style: d },
2794
2816
  err: null
2795
2817
  };
2796
2818
  }
@@ -2808,32 +2830,32 @@ var cn = (
2808
2830
  case "plural":
2809
2831
  case "selectordinal":
2810
2832
  case "select": {
2811
- var T = this.clonePosition();
2833
+ var B = this.clonePosition();
2812
2834
  if (this.bumpSpace(), !this.bumpIf(","))
2813
- return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(T, g({}, T)));
2835
+ return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(B, v({}, B)));
2814
2836
  this.bumpSpace();
2815
- var H = this.parseIdentifierIfPossible(), I = 0;
2816
- if (s !== "select" && H.value === "offset") {
2837
+ var S = this.parseIdentifierIfPossible(), N = 0;
2838
+ if (s !== "select" && S.value === "offset") {
2817
2839
  if (!this.bumpIf(":"))
2818
- return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
2840
+ return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
2819
2841
  this.bumpSpace();
2820
- var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2821
- if (f.err)
2822
- return f;
2823
- this.bumpSpace(), H = this.parseIdentifierIfPossible(), I = f.val;
2842
+ var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2843
+ if (c.err)
2844
+ return c;
2845
+ this.bumpSpace(), S = this.parseIdentifierIfPossible(), N = c.val;
2824
2846
  }
2825
- var U = this.tryParsePluralOrSelectOptions(t, s, r, H);
2826
- if (U.err)
2827
- return U;
2828
- var v = this.tryParseArgumentClose(i);
2829
- if (v.err)
2830
- return v;
2831
- var j = p(i, this.clonePosition());
2847
+ var D = this.tryParsePluralOrSelectOptions(t, s, r, S);
2848
+ if (D.err)
2849
+ return D;
2850
+ var y = this.tryParseArgumentClose(i);
2851
+ if (y.err)
2852
+ return y;
2853
+ var j = b(i, this.clonePosition());
2832
2854
  return s === "select" ? {
2833
2855
  val: {
2834
2856
  type: x.select,
2835
2857
  value: n,
2836
- options: at(U.val),
2858
+ options: st(D.val),
2837
2859
  location: j
2838
2860
  },
2839
2861
  err: null
@@ -2841,8 +2863,8 @@ var cn = (
2841
2863
  val: {
2842
2864
  type: x.plural,
2843
2865
  value: n,
2844
- options: at(U.val),
2845
- offset: I,
2866
+ options: st(D.val),
2867
+ offset: N,
2846
2868
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2847
2869
  location: j
2848
2870
  },
@@ -2850,10 +2872,10 @@ var cn = (
2850
2872
  };
2851
2873
  }
2852
2874
  default:
2853
- return this.error(m.INVALID_ARGUMENT_TYPE, p(a, h));
2875
+ return this.error(m.INVALID_ARGUMENT_TYPE, b(a, h));
2854
2876
  }
2855
2877
  }, e.prototype.tryParseArgumentClose = function(t) {
2856
- return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2878
+ return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2857
2879
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2858
2880
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2859
2881
  var n = this.char();
@@ -2862,7 +2884,7 @@ var cn = (
2862
2884
  this.bump();
2863
2885
  var i = this.clonePosition();
2864
2886
  if (!this.bumpUntil("'"))
2865
- return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
2887
+ return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
2866
2888
  this.bump();
2867
2889
  break;
2868
2890
  }
@@ -2892,52 +2914,52 @@ var cn = (
2892
2914
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2893
2915
  var n = [];
2894
2916
  try {
2895
- n = Vr(t);
2917
+ n = jr(t);
2896
2918
  } catch {
2897
2919
  return this.error(m.INVALID_NUMBER_SKELETON, r);
2898
2920
  }
2899
2921
  return {
2900
2922
  val: {
2901
- type: re.number,
2923
+ type: ee.number,
2902
2924
  tokens: n,
2903
2925
  location: r,
2904
- parsedOptions: this.shouldParseSkeletons ? Zr(n) : {}
2926
+ parsedOptions: this.shouldParseSkeletons ? Wr(n) : {}
2905
2927
  },
2906
2928
  err: null
2907
2929
  };
2908
2930
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2909
2931
  for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
2910
2932
  if (u.length === 0) {
2911
- var f = this.clonePosition();
2933
+ var c = this.clonePosition();
2912
2934
  if (r !== "select" && this.bumpIf("=")) {
2913
2935
  var d = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
2914
2936
  if (d.err)
2915
2937
  return d;
2916
- l = p(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
2938
+ l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
2917
2939
  } else
2918
2940
  break;
2919
2941
  }
2920
2942
  if (h.has(u))
2921
2943
  return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2922
2944
  u === "other" && (a = !0), this.bumpSpace();
2923
- var b = this.clonePosition();
2945
+ var g = this.clonePosition();
2924
2946
  if (!this.bumpIf("{"))
2925
- return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
2926
- var v = this.parseMessage(t + 1, r, n);
2927
- if (v.err)
2928
- return v;
2929
- var _ = this.tryParseArgumentClose(b);
2947
+ return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
2948
+ var y = this.parseMessage(t + 1, r, n);
2949
+ if (y.err)
2950
+ return y;
2951
+ var _ = this.tryParseArgumentClose(g);
2930
2952
  if (_.err)
2931
2953
  return _;
2932
2954
  s.push([
2933
2955
  u,
2934
2956
  {
2935
- value: v.val,
2936
- location: p(b, this.clonePosition())
2957
+ value: y.val,
2958
+ location: b(g, this.clonePosition())
2937
2959
  }
2938
2960
  ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
2939
2961
  }
2940
- return s.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2962
+ return s.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2941
2963
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2942
2964
  var n = 1, i = this.clonePosition();
2943
2965
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -2948,8 +2970,8 @@ var cn = (
2948
2970
  else
2949
2971
  break;
2950
2972
  }
2951
- var h = p(i, this.clonePosition());
2952
- return o ? (a *= n, an(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
2973
+ var h = b(i, this.clonePosition());
2974
+ return o ? (a *= n, sn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
2953
2975
  }, e.prototype.offset = function() {
2954
2976
  return this.position.offset;
2955
2977
  }, e.prototype.isEOF = function() {
@@ -2964,7 +2986,7 @@ var cn = (
2964
2986
  var t = this.position.offset;
2965
2987
  if (t >= this.message.length)
2966
2988
  throw Error("out of bound");
2967
- var r = $t(this.message, t);
2989
+ var r = Rt(this.message, t);
2968
2990
  if (r === void 0)
2969
2991
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2970
2992
  return r;
@@ -2983,7 +3005,7 @@ var cn = (
2983
3005
  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);
2984
3006
  }
2985
3007
  }, e.prototype.bumpIf = function(t) {
2986
- if (st(this.message, t, this.offset())) {
3008
+ if (ot(this.message, t, this.offset())) {
2987
3009
  for (var r = 0; r < t.length; r++)
2988
3010
  this.bump();
2989
3011
  return !0;
@@ -3005,7 +3027,7 @@ var cn = (
3005
3027
  break;
3006
3028
  }
3007
3029
  }, e.prototype.bumpSpace = function() {
3008
- for (; !this.isEOF() && Dt(this.char()); )
3030
+ for (; !this.isEOF() && Ut(this.char()); )
3009
3031
  this.bump();
3010
3032
  }, e.prototype.peek = function() {
3011
3033
  if (this.isEOF())
@@ -3015,46 +3037,47 @@ var cn = (
3015
3037
  }, e;
3016
3038
  }()
3017
3039
  );
3018
- function je(e) {
3040
+ function ke(e) {
3019
3041
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3020
3042
  }
3021
- function fn(e) {
3022
- return je(e) || e === 47;
3043
+ function cn(e) {
3044
+ return ke(e) || e === 47;
3023
3045
  }
3024
- function dn(e) {
3046
+ function fn(e) {
3025
3047
  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;
3026
3048
  }
3027
- function Dt(e) {
3049
+ function Ut(e) {
3028
3050
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3029
3051
  }
3030
- function mn(e) {
3052
+ function dn(e) {
3031
3053
  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;
3032
3054
  }
3033
- function Ve(e) {
3055
+ function je(e) {
3034
3056
  e.forEach(function(t) {
3035
- if (delete t.location, Pt(t) || Ct(t))
3057
+ if (delete t.location, wt(t) || Pt(t))
3036
3058
  for (var r in t.options)
3037
- delete t.options[r].location, Ve(t.options[r].value);
3038
- else At(t) && Nt(t.style) || (Bt(t) || wt(t)) && De(t.style) ? delete t.style.location : It(t) && Ve(t.children);
3059
+ delete t.options[r].location, je(t.options[r].value);
3060
+ else
3061
+ Ht(t) && It(t.style) || (At(t) || Bt(t)) && Ue(t.style) ? delete t.style.location : Ct(t) && je(t.children);
3039
3062
  });
3040
3063
  }
3041
- function pn(e, t) {
3042
- t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3043
- var r = new cn(e, t).parse();
3064
+ function mn(e, t) {
3065
+ t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3066
+ var r = new hn(e, t).parse();
3044
3067
  if (r.err) {
3045
3068
  var n = SyntaxError(m[r.err.kind]);
3046
3069
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3047
3070
  }
3048
- return t?.captureLocation || Ve(r.val), r.val;
3071
+ return t?.captureLocation || je(r.val), r.val;
3049
3072
  }
3050
- var ne;
3073
+ var te;
3051
3074
  (function(e) {
3052
3075
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3053
- })(ne || (ne = {}));
3054
- var He = (
3076
+ })(te || (te = {}));
3077
+ var Te = (
3055
3078
  /** @class */
3056
3079
  function(e) {
3057
- Te(t, e);
3080
+ Se(t, e);
3058
3081
  function t(r, n, i) {
3059
3082
  var o = e.call(this, r) || this;
3060
3083
  return o.code = n, o.originalMessage = i, o;
@@ -3063,155 +3086,155 @@ var He = (
3063
3086
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3064
3087
  }, t;
3065
3088
  }(Error)
3066
- ), lt = (
3089
+ ), ut = (
3067
3090
  /** @class */
3068
3091
  function(e) {
3069
- Te(t, e);
3092
+ Se(t, e);
3070
3093
  function t(r, n, i, o) {
3071
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
3094
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, o) || this;
3072
3095
  }
3073
3096
  return t;
3074
- }(He)
3075
- ), bn = (
3097
+ }(Te)
3098
+ ), pn = (
3076
3099
  /** @class */
3077
3100
  function(e) {
3078
- Te(t, e);
3101
+ Se(t, e);
3079
3102
  function t(r, n, i) {
3080
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
3103
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
3081
3104
  }
3082
3105
  return t;
3083
- }(He)
3084
- ), gn = (
3106
+ }(Te)
3107
+ ), bn = (
3085
3108
  /** @class */
3086
3109
  function(e) {
3087
- Te(t, e);
3110
+ Se(t, e);
3088
3111
  function t(r, n) {
3089
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
3112
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
3090
3113
  }
3091
3114
  return t;
3092
- }(He)
3093
- ), C;
3115
+ }(Te)
3116
+ ), I;
3094
3117
  (function(e) {
3095
3118
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3096
- })(C || (C = {}));
3097
- function vn(e) {
3119
+ })(I || (I = {}));
3120
+ function gn(e) {
3098
3121
  return e.length < 2 ? e : e.reduce(function(t, r) {
3099
3122
  var n = t[t.length - 1];
3100
- return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
3123
+ return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
3101
3124
  }, []);
3102
3125
  }
3103
- function yn(e) {
3126
+ function vn(e) {
3104
3127
  return typeof e == "function";
3105
3128
  }
3106
- function ye(e, t, r, n, i, o, a) {
3107
- if (e.length === 1 && rt(e[0]))
3129
+ function ve(e, t, r, n, i, o, a) {
3130
+ if (e.length === 1 && tt(e[0]))
3108
3131
  return [
3109
3132
  {
3110
- type: C.literal,
3133
+ type: I.literal,
3111
3134
  value: e[0].value
3112
3135
  }
3113
3136
  ];
3114
3137
  for (var s = [], h = 0, u = e; h < u.length; h++) {
3115
3138
  var l = u[h];
3116
- if (rt(l)) {
3139
+ if (tt(l)) {
3117
3140
  s.push({
3118
- type: C.literal,
3141
+ type: I.literal,
3119
3142
  value: l.value
3120
3143
  });
3121
3144
  continue;
3122
3145
  }
3123
- if (Fr(l)) {
3146
+ if (Dr(l)) {
3124
3147
  typeof o == "number" && s.push({
3125
- type: C.literal,
3148
+ type: I.literal,
3126
3149
  value: r.getNumberFormat(t).format(o)
3127
3150
  });
3128
3151
  continue;
3129
3152
  }
3130
- var f = l.value;
3131
- if (!(i && f in i))
3132
- throw new gn(f, a);
3133
- var d = i[f];
3134
- if (Dr(l)) {
3153
+ var c = l.value;
3154
+ if (!(i && c in i))
3155
+ throw new bn(c, a);
3156
+ var d = i[c];
3157
+ if (Ur(l)) {
3135
3158
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
3136
- type: typeof d == "string" ? C.literal : C.object,
3159
+ type: typeof d == "string" ? I.literal : I.object,
3137
3160
  value: d
3138
3161
  });
3139
3162
  continue;
3140
3163
  }
3141
- if (Bt(l)) {
3142
- var b = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
3164
+ if (At(l)) {
3165
+ var g = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
3143
3166
  s.push({
3144
- type: C.literal,
3145
- value: r.getDateTimeFormat(t, b).format(d)
3167
+ type: I.literal,
3168
+ value: r.getDateTimeFormat(t, g).format(d)
3146
3169
  });
3147
3170
  continue;
3148
3171
  }
3149
- if (wt(l)) {
3150
- var b = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
3172
+ if (Bt(l)) {
3173
+ var g = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
3151
3174
  s.push({
3152
- type: C.literal,
3153
- value: r.getDateTimeFormat(t, b).format(d)
3175
+ type: I.literal,
3176
+ value: r.getDateTimeFormat(t, g).format(d)
3154
3177
  });
3155
3178
  continue;
3156
3179
  }
3157
- if (At(l)) {
3158
- var b = typeof l.style == "string" ? n.number[l.style] : Nt(l.style) ? l.style.parsedOptions : void 0;
3159
- b && b.scale && (d = d * (b.scale || 1)), s.push({
3160
- type: C.literal,
3161
- value: r.getNumberFormat(t, b).format(d)
3180
+ if (Ht(l)) {
3181
+ var g = typeof l.style == "string" ? n.number[l.style] : It(l.style) ? l.style.parsedOptions : void 0;
3182
+ g && g.scale && (d = d * (g.scale || 1)), s.push({
3183
+ type: I.literal,
3184
+ value: r.getNumberFormat(t, g).format(d)
3162
3185
  });
3163
3186
  continue;
3164
3187
  }
3165
- if (It(l)) {
3166
- var v = l.children, _ = l.value, S = i[_];
3167
- if (!yn(S))
3168
- throw new bn(_, "function", a);
3169
- var R = ye(v, t, r, n, i, o), N = S(R.map(function(I) {
3170
- return I.value;
3188
+ if (Ct(l)) {
3189
+ var y = l.children, _ = l.value, T = i[_];
3190
+ if (!vn(T))
3191
+ throw new pn(_, "function", a);
3192
+ var H = ve(y, t, r, n, i, o), L = T(H.map(function(N) {
3193
+ return N.value;
3171
3194
  }));
3172
- Array.isArray(N) || (N = [N]), s.push.apply(s, N.map(function(I) {
3195
+ Array.isArray(L) || (L = [L]), s.push.apply(s, L.map(function(N) {
3173
3196
  return {
3174
- type: typeof I == "string" ? C.literal : C.object,
3175
- value: I
3197
+ type: typeof N == "string" ? I.literal : I.object,
3198
+ value: N
3176
3199
  };
3177
3200
  }));
3178
3201
  }
3179
- if (Pt(l)) {
3180
- var T = l.options[d] || l.options.other;
3181
- if (!T)
3182
- throw new lt(l.value, d, Object.keys(l.options), a);
3183
- s.push.apply(s, ye(T.value, t, r, n, i));
3202
+ if (wt(l)) {
3203
+ var B = l.options[d] || l.options.other;
3204
+ if (!B)
3205
+ throw new ut(l.value, d, Object.keys(l.options), a);
3206
+ s.push.apply(s, ve(B.value, t, r, n, i));
3184
3207
  continue;
3185
3208
  }
3186
- if (Ct(l)) {
3187
- var T = l.options["=".concat(d)];
3188
- if (!T) {
3209
+ if (Pt(l)) {
3210
+ var B = l.options["=".concat(d)];
3211
+ if (!B) {
3189
3212
  if (!Intl.PluralRules)
3190
- throw new He(`Intl.PluralRules is not available in this environment.
3213
+ throw new Te(`Intl.PluralRules is not available in this environment.
3191
3214
  Try polyfilling it using "@formatjs/intl-pluralrules"
3192
- `, ne.MISSING_INTL_API, a);
3193
- var H = r.getPluralRules(t, { type: l.pluralType }).select(d - (l.offset || 0));
3194
- T = l.options[H] || l.options.other;
3215
+ `, te.MISSING_INTL_API, a);
3216
+ var S = r.getPluralRules(t, { type: l.pluralType }).select(d - (l.offset || 0));
3217
+ B = l.options[S] || l.options.other;
3195
3218
  }
3196
- if (!T)
3197
- throw new lt(l.value, d, Object.keys(l.options), a);
3198
- s.push.apply(s, ye(T.value, t, r, n, i, d - (l.offset || 0)));
3219
+ if (!B)
3220
+ throw new ut(l.value, d, Object.keys(l.options), a);
3221
+ s.push.apply(s, ve(B.value, t, r, n, i, d - (l.offset || 0)));
3199
3222
  continue;
3200
3223
  }
3201
3224
  }
3202
- return vn(s);
3225
+ return gn(s);
3203
3226
  }
3204
- function En(e, t) {
3205
- return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3206
- return r[n] = g(g({}, e[n]), t[n] || {}), r;
3227
+ function yn(e, t) {
3228
+ return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3229
+ return r[n] = v(v({}, e[n]), t[n] || {}), r;
3207
3230
  }, {})) : e;
3208
3231
  }
3209
- function xn(e, t) {
3232
+ function En(e, t) {
3210
3233
  return t ? Object.keys(e).reduce(function(r, n) {
3211
- return r[n] = En(e[n], t[n]), r;
3212
- }, g({}, e)) : e;
3234
+ return r[n] = yn(e[n], t[n]), r;
3235
+ }, v({}, e)) : e;
3213
3236
  }
3214
- function Oe(e) {
3237
+ function Ne(e) {
3215
3238
  return {
3216
3239
  create: function() {
3217
3240
  return {
@@ -3225,39 +3248,39 @@ function Oe(e) {
3225
3248
  }
3226
3249
  };
3227
3250
  }
3228
- function _n(e) {
3251
+ function xn(e) {
3229
3252
  return e === void 0 && (e = {
3230
3253
  number: {},
3231
3254
  dateTime: {},
3232
3255
  pluralRules: {}
3233
3256
  }), {
3234
- getNumberFormat: Ce(function() {
3257
+ getNumberFormat: Pe(function() {
3235
3258
  for (var t, r = [], n = 0; n < arguments.length; n++)
3236
3259
  r[n] = arguments[n];
3237
- return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
3260
+ return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
3238
3261
  }, {
3239
- cache: Oe(e.number),
3240
- strategy: Ie.variadic
3262
+ cache: Ne(e.number),
3263
+ strategy: Ce.variadic
3241
3264
  }),
3242
- getDateTimeFormat: Ce(function() {
3265
+ getDateTimeFormat: Pe(function() {
3243
3266
  for (var t, r = [], n = 0; n < arguments.length; n++)
3244
3267
  r[n] = arguments[n];
3245
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
3268
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
3246
3269
  }, {
3247
- cache: Oe(e.dateTime),
3248
- strategy: Ie.variadic
3270
+ cache: Ne(e.dateTime),
3271
+ strategy: Ce.variadic
3249
3272
  }),
3250
- getPluralRules: Ce(function() {
3273
+ getPluralRules: Pe(function() {
3251
3274
  for (var t, r = [], n = 0; n < arguments.length; n++)
3252
3275
  r[n] = arguments[n];
3253
- return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
3276
+ return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
3254
3277
  }, {
3255
- cache: Oe(e.pluralRules),
3256
- strategy: Ie.variadic
3278
+ cache: Ne(e.pluralRules),
3279
+ strategy: Ce.variadic
3257
3280
  })
3258
3281
  };
3259
3282
  }
3260
- var Sn = (
3283
+ var _n = (
3261
3284
  /** @class */
3262
3285
  function() {
3263
3286
  function e(t, r, n, i) {
@@ -3271,12 +3294,12 @@ var Sn = (
3271
3294
  var u = o.formatToParts(h);
3272
3295
  if (u.length === 1)
3273
3296
  return u[0].value;
3274
- var l = u.reduce(function(f, d) {
3275
- return !f.length || d.type !== C.literal || typeof f[f.length - 1] != "string" ? f.push(d.value) : f[f.length - 1] += d.value, f;
3297
+ var l = u.reduce(function(c, d) {
3298
+ return !c.length || d.type !== I.literal || typeof c[c.length - 1] != "string" ? c.push(d.value) : c[c.length - 1] += d.value, c;
3276
3299
  }, []);
3277
3300
  return l.length <= 1 ? l[0] || "" : l;
3278
3301
  }, this.formatToParts = function(h) {
3279
- return ye(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3302
+ return ve(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3280
3303
  }, this.resolvedOptions = function() {
3281
3304
  var h;
3282
3305
  return {
@@ -3289,13 +3312,13 @@ var Sn = (
3289
3312
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3290
3313
  var a = i || {};
3291
3314
  a.formatters;
3292
- var s = Nr(a, ["formatters"]);
3293
- this.ast = e.__parse(t, g(g({}, s), { locale: this.resolvedLocale }));
3315
+ var s = Ir(a, ["formatters"]);
3316
+ this.ast = e.__parse(t, v(v({}, s), { locale: this.resolvedLocale }));
3294
3317
  } else
3295
3318
  this.ast = t;
3296
3319
  if (!Array.isArray(this.ast))
3297
3320
  throw new TypeError("A message must be provided as a String or AST.");
3298
- this.formats = xn(e.formats, n), this.formatters = i && i.formatters || _n(this.formatterCache);
3321
+ this.formats = En(e.formats, n), this.formatters = i && i.formatters || xn(this.formatterCache);
3299
3322
  }
3300
3323
  return Object.defineProperty(e, "defaultLocale", {
3301
3324
  get: function() {
@@ -3308,7 +3331,7 @@ var Sn = (
3308
3331
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3309
3332
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3310
3333
  }
3311
- }, e.__parse = pn, e.formats = {
3334
+ }, e.__parse = mn, e.formats = {
3312
3335
  number: {
3313
3336
  integer: {
3314
3337
  maximumFractionDigits: 0
@@ -3369,7 +3392,7 @@ var Sn = (
3369
3392
  }, e;
3370
3393
  }()
3371
3394
  );
3372
- function Tn(e, t) {
3395
+ function Sn(e, t) {
3373
3396
  if (t == null)
3374
3397
  return;
3375
3398
  if (t in e)
@@ -3390,92 +3413,92 @@ function Tn(e, t) {
3390
3413
  n = void 0;
3391
3414
  return n;
3392
3415
  }
3393
- const G = {}, Hn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Ft = (e, t) => {
3416
+ const G = {}, Tn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Dt = (e, t) => {
3394
3417
  if (t == null)
3395
3418
  return;
3396
3419
  if (t in G && e in G[t])
3397
3420
  return G[t][e];
3398
- const r = Ae(t);
3421
+ const r = He(t);
3399
3422
  for (let n = 0; n < r.length; n++) {
3400
- const i = r[n], o = Bn(i, e);
3423
+ const i = r[n], o = An(i, e);
3401
3424
  if (o)
3402
- return Hn(e, t, o);
3425
+ return Tn(e, t, o);
3403
3426
  }
3404
3427
  };
3405
- let Qe;
3406
- const ae = Se({});
3407
- function An(e) {
3408
- return Qe[e] || null;
3428
+ let Je;
3429
+ const oe = _e({});
3430
+ function Hn(e) {
3431
+ return Je[e] || null;
3409
3432
  }
3410
- function Gt(e) {
3411
- return e in Qe;
3433
+ function Ft(e) {
3434
+ return e in Je;
3412
3435
  }
3413
- function Bn(e, t) {
3414
- if (!Gt(e))
3436
+ function An(e, t) {
3437
+ if (!Ft(e))
3415
3438
  return null;
3416
- const r = An(e);
3417
- return Tn(r, t);
3439
+ const r = Hn(e);
3440
+ return Sn(r, t);
3418
3441
  }
3419
- function wn(e) {
3442
+ function Bn(e) {
3420
3443
  if (e == null)
3421
3444
  return;
3422
- const t = Ae(e);
3445
+ const t = He(e);
3423
3446
  for (let r = 0; r < t.length; r++) {
3424
3447
  const n = t[r];
3425
- if (Gt(n))
3448
+ if (Ft(n))
3426
3449
  return n;
3427
3450
  }
3428
3451
  }
3429
- function kt(e, ...t) {
3430
- delete G[e], ae.update((r) => (r[e] = Ir.all([r[e] || {}, ...t]), r));
3452
+ function Gt(e, ...t) {
3453
+ delete G[e], oe.update((r) => (r[e] = Cr.all([r[e] || {}, ...t]), r));
3431
3454
  }
3432
- se(
3433
- [ae],
3455
+ ie(
3456
+ [oe],
3434
3457
  ([e]) => Object.keys(e)
3435
3458
  );
3436
- ae.subscribe((e) => Qe = e);
3437
- const Ee = {};
3438
- function Pn(e, t) {
3439
- Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
3459
+ oe.subscribe((e) => Je = e);
3460
+ const ye = {};
3461
+ function wn(e, t) {
3462
+ ye[e].delete(t), ye[e].size === 0 && delete ye[e];
3440
3463
  }
3441
- function jt(e) {
3442
- return Ee[e];
3464
+ function kt(e) {
3465
+ return ye[e];
3443
3466
  }
3444
- function Cn(e) {
3445
- return Ae(e).map((t) => {
3446
- const r = jt(t);
3467
+ function Pn(e) {
3468
+ return He(e).map((t) => {
3469
+ const r = kt(t);
3447
3470
  return [t, r ? [...r] : []];
3448
3471
  }).filter(([, t]) => t.length > 0);
3449
3472
  }
3450
- function Xe(e) {
3451
- return e == null ? !1 : Ae(e).some(
3473
+ function Ve(e) {
3474
+ return e == null ? !1 : He(e).some(
3452
3475
  (t) => {
3453
3476
  var r;
3454
- return (r = jt(t)) == null ? void 0 : r.size;
3477
+ return (r = kt(t)) == null ? void 0 : r.size;
3455
3478
  }
3456
3479
  );
3457
3480
  }
3458
- function In(e, t) {
3481
+ function Cn(e, t) {
3459
3482
  return Promise.all(
3460
- t.map((n) => (Pn(e, n), n().then((i) => i.default || i)))
3461
- ).then((n) => kt(e, ...n));
3462
- }
3463
- const le = {};
3464
- function Vt(e) {
3465
- if (!Xe(e))
3466
- return e in le ? le[e] : Promise.resolve();
3467
- const t = Cn(e);
3468
- return le[e] = Promise.all(
3483
+ t.map((n) => (wn(e, n), n().then((i) => i.default || i)))
3484
+ ).then((n) => Gt(e, ...n));
3485
+ }
3486
+ const he = {};
3487
+ function jt(e) {
3488
+ if (!Ve(e))
3489
+ return e in he ? he[e] : Promise.resolve();
3490
+ const t = Pn(e);
3491
+ return he[e] = Promise.all(
3469
3492
  t.map(
3470
- ([r, n]) => In(r, n)
3493
+ ([r, n]) => Cn(r, n)
3471
3494
  )
3472
3495
  ).then(() => {
3473
- if (Xe(e))
3474
- return Vt(e);
3475
- delete le[e];
3476
- }), le[e];
3496
+ if (Ve(e))
3497
+ return jt(e);
3498
+ delete he[e];
3499
+ }), he[e];
3477
3500
  }
3478
- const Nn = {
3501
+ const In = {
3479
3502
  number: {
3480
3503
  scientific: { notation: "scientific" },
3481
3504
  engineering: { notation: "engineering" },
@@ -3504,135 +3527,135 @@ const Nn = {
3504
3527
  timeZoneName: "short"
3505
3528
  }
3506
3529
  }
3507
- }, On = {
3530
+ }, Nn = {
3508
3531
  fallbackLocale: null,
3509
3532
  loadingDelay: 200,
3510
- formats: Nn,
3533
+ formats: In,
3511
3534
  warnOnMissingMessages: !0,
3512
3535
  handleMissingMessage: void 0,
3513
3536
  ignoreTag: !0
3514
- }, Mn = On;
3515
- function ie() {
3537
+ }, Mn = Nn;
3538
+ function re() {
3516
3539
  return Mn;
3517
3540
  }
3518
- const Me = Se(!1);
3519
- var Ln = Object.defineProperty, Rn = Object.defineProperties, $n = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fn = (e, t) => {
3541
+ const Me = _e(!1);
3542
+ var On = Object.defineProperty, Ln = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, lt = Object.getOwnPropertySymbols, $n = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Dn = (e, t) => {
3520
3543
  for (var r in t || (t = {}))
3521
- Un.call(t, r) && ct(e, r, t[r]);
3522
- if (ht)
3523
- for (var r of ht(t))
3524
- Dn.call(t, r) && ct(e, r, t[r]);
3544
+ $n.call(t, r) && ht(e, r, t[r]);
3545
+ if (lt)
3546
+ for (var r of lt(t))
3547
+ Un.call(t, r) && ht(e, r, t[r]);
3525
3548
  return e;
3526
- }, Gn = (e, t) => Rn(e, $n(t));
3527
- let ze;
3528
- const xe = Se(null);
3529
- function ft(e) {
3549
+ }, Fn = (e, t) => Ln(e, Rn(t));
3550
+ let Xe;
3551
+ const Ee = _e(null);
3552
+ function ct(e) {
3530
3553
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3531
3554
  }
3532
- function Ae(e, t = ie().fallbackLocale) {
3533
- const r = ft(e);
3534
- return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
3555
+ function He(e, t = re().fallbackLocale) {
3556
+ const r = ct(e);
3557
+ return t ? [.../* @__PURE__ */ new Set([...r, ...ct(t)])] : r;
3535
3558
  }
3536
3559
  function Z() {
3537
- return ze ?? void 0;
3560
+ return Xe ?? void 0;
3538
3561
  }
3539
- xe.subscribe((e) => {
3540
- ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3562
+ Ee.subscribe((e) => {
3563
+ Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3541
3564
  });
3542
- const kn = (e) => {
3543
- if (e && wn(e) && Xe(e)) {
3544
- const { loadingDelay: t } = ie();
3565
+ const Gn = (e) => {
3566
+ if (e && Bn(e) && Ve(e)) {
3567
+ const { loadingDelay: t } = re();
3545
3568
  let r;
3546
3569
  return typeof window < "u" && Z() != null && t ? r = window.setTimeout(
3547
3570
  () => Me.set(!0),
3548
3571
  t
3549
- ) : Me.set(!0), Vt(e).then(() => {
3550
- xe.set(e);
3572
+ ) : Me.set(!0), jt(e).then(() => {
3573
+ Ee.set(e);
3551
3574
  }).finally(() => {
3552
3575
  clearTimeout(r), Me.set(!1);
3553
3576
  });
3554
3577
  }
3555
- return xe.set(e);
3556
- }, z = Gn(Fn({}, xe), {
3557
- set: kn
3558
- }), Be = (e) => {
3578
+ return Ee.set(e);
3579
+ }, z = Fn(Dn({}, Ee), {
3580
+ set: Gn
3581
+ }), Ae = (e) => {
3559
3582
  const t = /* @__PURE__ */ Object.create(null);
3560
3583
  return (n) => {
3561
3584
  const i = JSON.stringify(n);
3562
3585
  return i in t ? t[i] : t[i] = e(n);
3563
3586
  };
3564
3587
  };
3565
- var jn = Object.defineProperty, _e = Object.getOwnPropertySymbols, Xt = Object.prototype.hasOwnProperty, zt = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
3588
+ var kn = Object.defineProperty, xe = Object.getOwnPropertySymbols, Vt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
3566
3589
  for (var r in t || (t = {}))
3567
- Xt.call(t, r) && dt(e, r, t[r]);
3568
- if (_e)
3569
- for (var r of _e(t))
3570
- zt.call(t, r) && dt(e, r, t[r]);
3590
+ Vt.call(t, r) && ft(e, r, t[r]);
3591
+ if (xe)
3592
+ for (var r of xe(t))
3593
+ Xt.call(t, r) && ft(e, r, t[r]);
3571
3594
  return e;
3572
- }, ue = (e, t) => {
3595
+ }, se = (e, t) => {
3573
3596
  var r = {};
3574
3597
  for (var n in e)
3575
- Xt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3576
- if (e != null && _e)
3577
- for (var n of _e(e))
3578
- t.indexOf(n) < 0 && zt.call(e, n) && (r[n] = e[n]);
3598
+ Vt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3599
+ if (e != null && xe)
3600
+ for (var n of xe(e))
3601
+ t.indexOf(n) < 0 && Xt.call(e, n) && (r[n] = e[n]);
3579
3602
  return r;
3580
3603
  };
3581
- const de = (e, t) => {
3582
- const { formats: r } = ie();
3604
+ const me = (e, t) => {
3605
+ const { formats: r } = re();
3583
3606
  if (e in r && t in r[e])
3584
3607
  return r[e][t];
3585
3608
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3586
- }, Vn = Be(
3609
+ }, jn = Ae(
3587
3610
  (e) => {
3588
- var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3611
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3589
3612
  if (r == null)
3590
3613
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3591
- return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
3614
+ return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
3592
3615
  }
3593
- ), Xn = Be(
3616
+ ), Vn = Ae(
3594
3617
  (e) => {
3595
- var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3618
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3596
3619
  if (r == null)
3597
3620
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3598
- return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
3621
+ return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
3599
3622
  }
3600
- ), zn = Be(
3623
+ ), Xn = Ae(
3601
3624
  (e) => {
3602
- var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3625
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3603
3626
  if (r == null)
3604
3627
  throw new Error(
3605
3628
  '[svelte-i18n] A "locale" must be set to format time values'
3606
3629
  );
3607
- return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
3630
+ return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
3608
3631
  }
3609
- ), Wn = (e = {}) => {
3632
+ ), zn = (e = {}) => {
3610
3633
  var t = e, {
3611
3634
  locale: r = Z()
3612
- } = t, n = ue(t, [
3635
+ } = t, n = se(t, [
3613
3636
  "locale"
3614
3637
  ]);
3615
- return Vn(qe({ locale: r }, n));
3616
- }, Zn = (e = {}) => {
3638
+ return jn(Qe({ locale: r }, n));
3639
+ }, Wn = (e = {}) => {
3617
3640
  var t = e, {
3618
3641
  locale: r = Z()
3619
- } = t, n = ue(t, [
3642
+ } = t, n = se(t, [
3620
3643
  "locale"
3621
3644
  ]);
3622
- return Xn(qe({ locale: r }, n));
3623
- }, Jn = (e = {}) => {
3645
+ return Vn(Qe({ locale: r }, n));
3646
+ }, Zn = (e = {}) => {
3624
3647
  var t = e, {
3625
3648
  locale: r = Z()
3626
- } = t, n = ue(t, [
3649
+ } = t, n = se(t, [
3627
3650
  "locale"
3628
3651
  ]);
3629
- return zn(qe({ locale: r }, n));
3630
- }, Qn = Be(
3652
+ return Xn(Qe({ locale: r }, n));
3653
+ }, Jn = Ae(
3631
3654
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3632
- (e, t = Z()) => new Sn(e, t, ie().formats, {
3633
- ignoreTag: ie().ignoreTag
3655
+ (e, t = Z()) => new _n(e, t, re().formats, {
3656
+ ignoreTag: re().ignoreTag
3634
3657
  })
3635
- ), qn = (e, t = {}) => {
3658
+ ), Qn = (e, t = {}) => {
3636
3659
  var r, n, i, o;
3637
3660
  let a = t;
3638
3661
  typeof e == "object" && (a = e, e = a.id);
@@ -3645,39 +3668,39 @@ const de = (e, t) => {
3645
3668
  throw new Error(
3646
3669
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3647
3670
  );
3648
- let l = Ft(e, h);
3671
+ let l = Dt(e, h);
3649
3672
  if (!l)
3650
- l = (o = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3673
+ l = (o = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3651
3674
  else if (typeof l != "string")
3652
3675
  return console.warn(
3653
3676
  `[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.`
3654
3677
  ), l;
3655
3678
  if (!s)
3656
3679
  return l;
3657
- let f = l;
3680
+ let c = l;
3658
3681
  try {
3659
- f = Qn(l, h).format(s);
3682
+ c = Jn(l, h).format(s);
3660
3683
  } catch (d) {
3661
3684
  d instanceof Error && console.warn(
3662
3685
  `[svelte-i18n] Message "${e}" has syntax error:`,
3663
3686
  d.message
3664
3687
  );
3665
3688
  }
3666
- return f;
3667
- }, Yn = (e, t) => Jn(t).format(e), Kn = (e, t) => Zn(t).format(e), ei = (e, t) => Wn(t).format(e), ti = (e, t = Z()) => Ft(e, t), ri = se([z, ae], () => qn);
3668
- se([z], () => Yn);
3669
- se([z], () => Kn);
3670
- se([z], () => ei);
3671
- se([z, ae], () => ti);
3672
- function ni({ withLocale: e, translations: t }) {
3689
+ return c;
3690
+ }, qn = (e, t) => Zn(t).format(e), Yn = (e, t) => Wn(t).format(e), Kn = (e, t) => zn(t).format(e), ei = (e, t = Z()) => Dt(e, t), ti = ie([z, oe], () => Qn);
3691
+ ie([z], () => qn);
3692
+ ie([z], () => Yn);
3693
+ ie([z], () => Kn);
3694
+ ie([z, oe], () => ei);
3695
+ function ri({ withLocale: e, translations: t }) {
3673
3696
  z.subscribe((r) => {
3674
- r == null && (ae.set(t), z.set(e));
3697
+ r == null && (oe.set(t), z.set(e));
3675
3698
  });
3676
3699
  }
3677
- function mt(e, t) {
3678
- kt(e, t);
3700
+ function dt(e, t) {
3701
+ Gt(e, t);
3679
3702
  }
3680
- const pt = {
3703
+ const mt = {
3681
3704
  en: {
3682
3705
  title: "Please enter the verification code you received on your number",
3683
3706
  errorTitle: "Your code was invalid, you can resend the code and try again",
@@ -3784,17 +3807,40 @@ const pt = {
3784
3807
  loginSMSHint: "A new verification code has been sent to your phone number"
3785
3808
  }
3786
3809
  };
3787
- function ii(e) {
3788
- Jt(e, "svelte-uutjwi", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
3810
+ function ni(e, t) {
3811
+ if (e) {
3812
+ const r = document.createElement("style");
3813
+ r.innerHTML = t, e.appendChild(r);
3814
+ }
3815
+ }
3816
+ function ii(e, t) {
3817
+ const r = new URL(t);
3818
+ fetch(r.href).then((n) => n.text()).then((n) => {
3819
+ const i = document.createElement("style");
3820
+ i.innerHTML = n, e && e.appendChild(i);
3821
+ }).catch((n) => {
3822
+ console.error("There was an error while trying to load client styling from URL", n);
3823
+ });
3824
+ }
3825
+ function oi(e, t, r) {
3826
+ if (window.emMessageBus) {
3827
+ const n = document.createElement("style");
3828
+ window.emMessageBus.subscribe(t, (i) => {
3829
+ n.innerHTML = i, e && e.appendChild(n);
3830
+ });
3831
+ }
3832
+ }
3833
+ function si(e) {
3834
+ Zt(e, "svelte-uutjwi", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
3789
3835
  }
3790
- function oi(e) {
3836
+ function ai(e) {
3791
3837
  let t = (
3792
3838
  /*$_*/
3793
3839
  e[5]("errorTitle") + ""
3794
3840
  ), r;
3795
3841
  return {
3796
3842
  c() {
3797
- r = L(t);
3843
+ r = O(t);
3798
3844
  },
3799
3845
  m(n, i) {
3800
3846
  W(n, r, i);
@@ -3809,14 +3855,14 @@ function oi(e) {
3809
3855
  }
3810
3856
  };
3811
3857
  }
3812
- function si(e) {
3858
+ function ui(e) {
3813
3859
  let t = (
3814
3860
  /*$_*/
3815
3861
  e[5]("title") + ""
3816
3862
  ), r;
3817
3863
  return {
3818
3864
  c() {
3819
- r = L(t);
3865
+ r = O(t);
3820
3866
  },
3821
3867
  m(n, i) {
3822
3868
  W(n, r, i);
@@ -3831,14 +3877,14 @@ function si(e) {
3831
3877
  }
3832
3878
  };
3833
3879
  }
3834
- function bt(e) {
3880
+ function pt(e) {
3835
3881
  let t, r = (
3836
3882
  /*$_*/
3837
3883
  e[5]("smsCodeError") + ""
3838
3884
  ), n;
3839
3885
  return {
3840
3886
  c() {
3841
- t = M("p"), n = L(r), A(t, "class", "InvalidInput");
3887
+ t = M("p"), n = O(r), A(t, "class", "InvalidInput");
3842
3888
  },
3843
3889
  m(i, o) {
3844
3890
  W(i, t, o), E(t, n);
@@ -3853,14 +3899,14 @@ function bt(e) {
3853
3899
  }
3854
3900
  };
3855
3901
  }
3856
- function gt(e) {
3902
+ function bt(e) {
3857
3903
  let t, r = (
3858
3904
  /*$_*/
3859
3905
  e[5]("resendMessage") + ""
3860
3906
  ), n;
3861
3907
  return {
3862
3908
  c() {
3863
- t = M("p"), n = L(r), A(t, "class", "SmsVerificationResendMessage");
3909
+ t = M("p"), n = O(r), A(t, "class", "SmsVerificationResendMessage");
3864
3910
  },
3865
3911
  m(i, o) {
3866
3912
  W(i, t, o), E(t, n);
@@ -3875,17 +3921,17 @@ function gt(e) {
3875
3921
  }
3876
3922
  };
3877
3923
  }
3878
- function vt(e) {
3924
+ function gt(e) {
3879
3925
  let t, r, n = (
3880
3926
  /*secondsLeft*/
3881
3927
  e[4] < 10 ? "0" : ""
3882
3928
  ), i, o, a;
3883
3929
  return {
3884
3930
  c() {
3885
- t = M("span"), r = L("(0:"), i = L(n), o = L(
3931
+ t = M("span"), r = O("(0:"), i = O(n), o = O(
3886
3932
  /*secondsLeft*/
3887
3933
  e[4]
3888
- ), a = L(")"), A(t, "class", "SmsVerificationResendTimer");
3934
+ ), a = O(")"), A(t, "class", "SmsVerificationResendTimer");
3889
3935
  },
3890
3936
  m(s, h) {
3891
3937
  W(s, t, h), E(t, r), E(t, i), E(t, o), E(t, a);
@@ -3905,125 +3951,125 @@ function vt(e) {
3905
3951
  }
3906
3952
  };
3907
3953
  }
3908
- function ai(e) {
3954
+ function li(e) {
3909
3955
  let t, r, n, i, o, a = (
3910
3956
  /*$_*/
3911
3957
  e[5]("code") + ""
3912
- ), s, h, u, l, f, d, b, v, _, S, R = (
3958
+ ), s, h, u, l, c, d, g, y, _, T, H = (
3913
3959
  /*$_*/
3914
3960
  e[5]("activate") + ""
3915
- ), N, T, H, I = (
3961
+ ), L, B, S, N = (
3916
3962
  /*$_*/
3917
3963
  e[5]("resend") + ""
3918
- ), U, j, J, me;
3919
- function pe(c, y) {
3964
+ ), D, j, ae, ue;
3965
+ function le(p, C) {
3920
3966
  return (
3921
3967
  /*isSmsValid*/
3922
- c[2] ? si : oi
3968
+ p[2] ? ui : ai
3923
3969
  );
3924
3970
  }
3925
- let V = pe(e), O = V(e), B = !/*isSmsValid*/
3926
- e[2] && bt(e), w = (
3971
+ let V = le(e), R = V(e), w = !/*isSmsValid*/
3972
+ e[2] && pt(e), P = (
3927
3973
  /*timer*/
3928
- e[3] && gt(e)
3929
- ), P = (
3974
+ e[3] && bt(e)
3975
+ ), f = (
3930
3976
  /*timer*/
3931
- e[3] && vt(e)
3977
+ e[3] && gt(e)
3932
3978
  );
3933
3979
  return {
3934
3980
  c() {
3935
- t = M("div"), r = M("h3"), O.c(), n = X(), i = M("div"), o = M("label"), s = L(a), h = L(":"), u = M("span"), u.textContent = "*", l = X(), f = M("input"), d = X(), B && B.c(), v = X(), w && w.c(), _ = X(), S = M("button"), N = L(R), T = X(), H = M("button"), U = L(I), j = X(), P && P.c(), A(r, "class", "Title"), A(u, "class", "FormRequired"), A(o, "for", "SmsCode"), A(f, "type", "text"), A(f, "id", "SmsCode"), A(f, "inputmode", "numeric"), A(f, "pattern", "[0-9]*"), A(f, "maxlength", "6"), A(i, "class", b = "Field SmsVerificationField " + (/*isSmsValid*/
3936
- e[2] ? "" : "InvalidField")), A(S, "class", "Button SmsVerificationValidate"), A(H, "class", "Button SmsVerificationResend"), H.disabled = /*timer*/
3981
+ t = M("div"), r = M("h3"), R.c(), n = X(), i = M("div"), o = M("label"), s = O(a), h = O(":"), u = M("span"), u.textContent = "*", l = X(), c = M("input"), d = X(), w && w.c(), y = X(), P && P.c(), _ = X(), T = M("button"), L = O(H), B = X(), S = M("button"), D = O(N), j = X(), f && f.c(), A(r, "class", "Title"), A(u, "class", "FormRequired"), A(o, "for", "SmsCode"), A(c, "type", "text"), A(c, "id", "SmsCode"), A(c, "inputmode", "numeric"), A(c, "pattern", "[0-9]*"), A(c, "maxlength", "6"), A(i, "class", g = "Field SmsVerificationField " + (/*isSmsValid*/
3982
+ e[2] ? "" : "InvalidField")), A(T, "class", "Button SmsVerificationValidate"), A(S, "class", "Button SmsVerificationResend"), S.disabled = /*timer*/
3937
3983
  e[3], A(t, "class", "Container SmsVerificationContainer");
3938
3984
  },
3939
- m(c, y) {
3940
- W(c, t, y), E(t, r), O.m(r, null), E(t, n), E(t, i), E(i, o), E(o, s), E(o, h), E(o, u), E(i, l), E(i, f), Ke(
3941
- f,
3985
+ m(p, C) {
3986
+ W(p, t, C), E(t, r), R.m(r, null), E(t, n), E(t, i), E(i, o), E(o, s), E(o, h), E(o, u), E(i, l), E(i, c), Ye(
3987
+ c,
3942
3988
  /*smsCode*/
3943
3989
  e[1]
3944
- ), E(i, d), B && B.m(i, null), E(t, v), w && w.m(t, null), E(t, _), E(t, S), E(S, N), E(t, T), E(t, H), E(H, U), E(H, j), P && P.m(H, null), e[19](t), J || (me = [
3945
- be(
3946
- f,
3990
+ ), E(i, d), w && w.m(i, null), E(t, y), P && P.m(t, null), E(t, _), E(t, T), E(T, L), E(t, B), E(t, S), E(S, D), E(S, j), f && f.m(S, null), e[20](t), ae || (ue = [
3991
+ pe(
3992
+ c,
3947
3993
  "input",
3948
3994
  /*input_input_handler*/
3949
- e[17]
3995
+ e[18]
3950
3996
  ),
3951
- be(
3952
- f,
3997
+ pe(
3998
+ c,
3953
3999
  "keydown",
3954
4000
  /*keydown_handler*/
3955
- e[18]
4001
+ e[19]
3956
4002
  ),
3957
- be(
3958
- S,
4003
+ pe(
4004
+ T,
3959
4005
  "click",
3960
4006
  /*activateUser*/
3961
4007
  e[6]
3962
4008
  ),
3963
- be(
3964
- H,
4009
+ pe(
4010
+ S,
3965
4011
  "click",
3966
4012
  /*resendCode*/
3967
4013
  e[7]
3968
4014
  )
3969
- ], J = !0);
4015
+ ], ae = !0);
3970
4016
  },
3971
- p(c, [y]) {
3972
- V === (V = pe(c)) && O ? O.p(c, y) : (O.d(1), O = V(c), O && (O.c(), O.m(r, null))), y & /*$_*/
4017
+ p(p, [C]) {
4018
+ V === (V = le(p)) && R ? R.p(p, C) : (R.d(1), R = V(p), R && (R.c(), R.m(r, null))), C & /*$_*/
3973
4019
  32 && a !== (a = /*$_*/
3974
- c[5]("code") + "") && F(s, a), y & /*smsCode*/
3975
- 2 && f.value !== /*smsCode*/
3976
- c[1] && Ke(
3977
- f,
4020
+ p[5]("code") + "") && F(s, a), C & /*smsCode*/
4021
+ 2 && c.value !== /*smsCode*/
4022
+ p[1] && Ye(
4023
+ c,
3978
4024
  /*smsCode*/
3979
- c[1]
4025
+ p[1]
3980
4026
  ), /*isSmsValid*/
3981
- c[2] ? B && (B.d(1), B = null) : B ? B.p(c, y) : (B = bt(c), B.c(), B.m(i, null)), y & /*isSmsValid*/
3982
- 4 && b !== (b = "Field SmsVerificationField " + (/*isSmsValid*/
3983
- c[2] ? "" : "InvalidField")) && A(i, "class", b), /*timer*/
3984
- c[3] ? w ? w.p(c, y) : (w = gt(c), w.c(), w.m(t, _)) : w && (w.d(1), w = null), y & /*$_*/
3985
- 32 && R !== (R = /*$_*/
3986
- c[5]("activate") + "") && F(N, R), y & /*$_*/
3987
- 32 && I !== (I = /*$_*/
3988
- c[5]("resend") + "") && F(U, I), /*timer*/
3989
- c[3] ? P ? P.p(c, y) : (P = vt(c), P.c(), P.m(H, null)) : P && (P.d(1), P = null), y & /*timer*/
3990
- 8 && (H.disabled = /*timer*/
3991
- c[3]);
4027
+ p[2] ? w && (w.d(1), w = null) : w ? w.p(p, C) : (w = pt(p), w.c(), w.m(i, null)), C & /*isSmsValid*/
4028
+ 4 && g !== (g = "Field SmsVerificationField " + (/*isSmsValid*/
4029
+ p[2] ? "" : "InvalidField")) && A(i, "class", g), /*timer*/
4030
+ p[3] ? P ? P.p(p, C) : (P = bt(p), P.c(), P.m(t, _)) : P && (P.d(1), P = null), C & /*$_*/
4031
+ 32 && H !== (H = /*$_*/
4032
+ p[5]("activate") + "") && F(L, H), C & /*$_*/
4033
+ 32 && N !== (N = /*$_*/
4034
+ p[5]("resend") + "") && F(D, N), /*timer*/
4035
+ p[3] ? f ? f.p(p, C) : (f = gt(p), f.c(), f.m(S, null)) : f && (f.d(1), f = null), C & /*timer*/
4036
+ 8 && (S.disabled = /*timer*/
4037
+ p[3]);
3992
4038
  },
3993
- i: $,
3994
- o: $,
3995
- d(c) {
3996
- c && k(t), O.d(), B && B.d(), w && w.d(), P && P.d(), e[19](null), J = !1, oe(me);
4039
+ i: U,
4040
+ o: U,
4041
+ d(p) {
4042
+ p && k(t), R.d(), w && w.d(), P && P.d(), f && f.d(), e[20](null), ae = !1, ne(ue);
3997
4043
  }
3998
4044
  };
3999
4045
  }
4000
- function ui(e, t, r) {
4046
+ function hi(e, t, r) {
4001
4047
  let n;
4002
- Zt(e, ri, (c) => r(5, n = c));
4003
- let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: a = "" } = t, { smstemplate: s = "Please use this code {0} to activate your accout" } = t, { number: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, d, b = !0, v = !1, _, S, R = +localStorage.getItem("smsTimer") || 0, N = Date.now() / 1e3 - R, T = 60 - Math.floor(N);
4004
- const H = { numeric: /^[0-9]{0,6}$/ };
4005
- ni({ withLocale: "en", translations: {} });
4006
- const I = () => {
4007
- fetch(f).then((y) => y.json()).then((y) => {
4008
- Object.keys(y).forEach((Q) => {
4009
- mt(Q, y[Q]);
4048
+ Wt(e, ti, (f) => r(5, n = f));
4049
+ let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: a = "" } = t, { smstemplate: s = "Please use this code {0} to activate your accout" } = t, { number: h = "" } = t, { mbsource: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: d = "" } = t, g, y = !0, _ = !1, T, H, L = +localStorage.getItem("smsTimer") || 0, B = Date.now() / 1e3 - L, S = 60 - Math.floor(B);
4050
+ const N = { numeric: /^[0-9]{0,6}$/ };
4051
+ ri({ withLocale: "en", translations: {} });
4052
+ const D = () => {
4053
+ fetch(d).then((p) => p.json()).then((p) => {
4054
+ Object.keys(p).forEach((C) => {
4055
+ dt(C, p[C]);
4010
4056
  });
4011
- }).catch((y) => {
4012
- console.log(y);
4057
+ }).catch((p) => {
4058
+ console.log(p);
4013
4059
  });
4014
4060
  };
4015
- Object.keys(pt).forEach((c) => {
4016
- mt(c, pt[c]);
4061
+ Object.keys(mt).forEach((f) => {
4062
+ dt(f, mt[f]);
4017
4063
  });
4018
- const U = async () => {
4064
+ const j = async () => {
4019
4065
  try {
4020
- if ((await fetch(`${i}/v1/player/${a}/activateSMS?tokenId=${o}&validationCode=${d}`, {
4066
+ if ((await fetch(`${i}/v1/player/${a}/activateSMS?tokenId=${o}&validationCode=${g}`, {
4021
4067
  headers: {
4022
4068
  "Content-Type": "application/json",
4023
4069
  accept: "application/json"
4024
4070
  }
4025
4071
  })).ok)
4026
- r(2, b = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
4072
+ r(2, y = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
4027
4073
  else
4028
4074
  throw window.postMessage(
4029
4075
  {
@@ -4034,14 +4080,14 @@ function ui(e, t, r) {
4034
4080
  }
4035
4081
  },
4036
4082
  window.location.href
4037
- ), r(2, b = !1), new Error("Could not activate user");
4038
- } catch (c) {
4039
- console.log(c);
4083
+ ), r(2, y = !1), new Error("Could not activate user");
4084
+ } catch (f) {
4085
+ console.log(f);
4040
4086
  }
4041
- }, j = async () => {
4042
- localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), V();
4087
+ }, ae = async () => {
4088
+ localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), le();
4043
4089
  try {
4044
- const c = await fetch(`${i}/v1/player/sms/token`, {
4090
+ const f = await fetch(`${i}/v1/player/sms/token`, {
4045
4091
  method: "POST",
4046
4092
  headers: {
4047
4093
  "Content-Type": "application/json",
@@ -4052,77 +4098,62 @@ function ui(e, t, r) {
4052
4098
  messageTemplate: s,
4053
4099
  destination: h
4054
4100
  })
4055
- }), y = await c.json();
4056
- if (c.ok)
4057
- r(9, o = y.id), v = !1, J();
4101
+ }), p = await f.json();
4102
+ if (f.ok)
4103
+ r(9, o = p.id), _ = !1, ue();
4058
4104
  else
4059
- throw v = !0, new Error("Failed to fetch");
4060
- } catch (c) {
4061
- v = !0, console.error(c);
4105
+ throw _ = !0, new Error("Failed to fetch");
4106
+ } catch (f) {
4107
+ _ = !0, console.error(f);
4062
4108
  }
4063
- }, J = () => {
4064
- T > 0 ? r(4, T--, T) : (clearInterval(_), r(3, _ = !1), r(4, T = 60));
4065
- }, me = () => {
4066
- let c = document.createElement("style");
4067
- c.innerHTML = u, S.appendChild(c);
4068
- }, pe = () => {
4069
- let c = new URL(l), y = document.createElement("style");
4070
- fetch(c.href).then((Q) => Q.text()).then((Q) => {
4071
- y.innerHTML = Q, setTimeout(
4072
- () => {
4073
- S.appendChild(y);
4074
- },
4075
- 1
4076
- ), setTimeout(
4077
- () => {
4078
- },
4079
- 500
4080
- );
4081
- });
4082
- }, V = () => {
4083
- N < 60 && r(3, _ = setInterval(
4109
+ }, ue = () => {
4110
+ S > 0 ? r(4, S--, S) : (clearInterval(T), r(3, T = !1), r(4, S = 60));
4111
+ }, le = () => {
4112
+ B < 60 && r(3, T = setInterval(
4084
4113
  () => {
4085
- J();
4114
+ ue();
4086
4115
  },
4087
4116
  1e3
4088
4117
  ));
4089
- }, O = (c) => {
4090
- !H.numeric.test(c.key) && c.keyCode !== 8 && c.keyCode !== 9 && c.keyCode !== 46 && c.preventDefault();
4118
+ }, V = (f) => {
4119
+ !N.numeric.test(f.key) && f.keyCode !== 8 && f.keyCode !== 9 && f.keyCode !== 46 && f.preventDefault();
4091
4120
  };
4092
- tr(() => {
4121
+ er(() => {
4093
4122
  if (!a || !h) {
4094
- let c = JSON.parse(localStorage.getItem("playerData"));
4095
- r(10, a = c.playerid), r(11, h = c.number);
4123
+ let f = JSON.parse(localStorage.getItem("playerData"));
4124
+ r(10, a = f.playerid), r(11, h = f.number);
4096
4125
  }
4097
- V();
4126
+ return le(), () => {
4127
+ };
4098
4128
  });
4099
- function B() {
4100
- d = this.value, r(1, d);
4129
+ function R() {
4130
+ g = this.value, r(1, g);
4101
4131
  }
4102
- const w = (c) => O(c);
4103
- function P(c) {
4104
- Le[c ? "unshift" : "push"](() => {
4105
- S = c, r(0, S);
4132
+ const w = (f) => V(f);
4133
+ function P(f) {
4134
+ Oe[f ? "unshift" : "push"](() => {
4135
+ H = f, r(0, H);
4106
4136
  });
4107
4137
  }
4108
- return e.$$set = (c) => {
4109
- "endpoint" in c && r(12, i = c.endpoint), "tokenid" in c && r(9, o = c.tokenid), "playerid" in c && r(10, a = c.playerid), "smstemplate" in c && r(13, s = c.smstemplate), "number" in c && r(11, h = c.number), "clientstyling" in c && r(14, u = c.clientstyling), "clientstylingurl" in c && r(15, l = c.clientstylingurl), "translationurl" in c && r(16, f = c.translationurl);
4138
+ return e.$$set = (f) => {
4139
+ "endpoint" in f && r(12, i = f.endpoint), "tokenid" in f && r(9, o = f.tokenid), "playerid" in f && r(10, a = f.playerid), "smstemplate" in f && r(13, s = f.smstemplate), "number" in f && r(11, h = f.number), "mbsource" in f && r(14, u = f.mbsource), "clientstyling" in f && r(15, l = f.clientstyling), "clientstylingurl" in f && r(16, c = f.clientstylingurl), "translationurl" in f && r(17, d = f.translationurl);
4110
4140
  }, e.$$.update = () => {
4111
4141
  e.$$.dirty & /*tokenid, playerid, endpoint*/
4112
4142
  5632, e.$$.dirty & /*clientstyling, customStylingContainer*/
4113
- 16385 && u && S && me(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4114
- 32769 && l && S && pe(), e.$$.dirty & /*translationurl*/
4115
- 65536 && f && I();
4143
+ 32769 && l && H && ni(H, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4144
+ 65537 && c && H && ii(H, c), e.$$.dirty & /*mbsource, customStylingContainer*/
4145
+ 16385 && u && H && oi(H, `${u}.Style`), e.$$.dirty & /*translationurl*/
4146
+ 131072 && d && D();
4116
4147
  }, [
4117
- S,
4118
- d,
4119
- b,
4120
- _,
4148
+ H,
4149
+ g,
4150
+ y,
4121
4151
  T,
4152
+ S,
4122
4153
  n,
4123
- U,
4124
4154
  j,
4125
- O,
4155
+ ae,
4156
+ V,
4126
4157
  o,
4127
4158
  a,
4128
4159
  h,
@@ -4130,83 +4161,91 @@ function ui(e, t, r) {
4130
4161
  s,
4131
4162
  u,
4132
4163
  l,
4133
- f,
4134
- B,
4164
+ c,
4165
+ d,
4166
+ R,
4135
4167
  w,
4136
4168
  P
4137
4169
  ];
4138
4170
  }
4139
- class li extends dr {
4171
+ class ci extends fr {
4140
4172
  constructor(t) {
4141
- super(), cr(
4173
+ super(), hr(
4142
4174
  this,
4143
4175
  t,
4144
- ui,
4145
- ai,
4146
- Et,
4176
+ hi,
4177
+ li,
4178
+ yt,
4147
4179
  {
4148
4180
  endpoint: 12,
4149
4181
  tokenid: 9,
4150
4182
  playerid: 10,
4151
4183
  smstemplate: 13,
4152
4184
  number: 11,
4153
- clientstyling: 14,
4154
- clientstylingurl: 15,
4155
- translationurl: 16
4185
+ mbsource: 14,
4186
+ clientstyling: 15,
4187
+ clientstylingurl: 16,
4188
+ translationurl: 17
4156
4189
  },
4157
- ii
4190
+ si
4158
4191
  );
4159
4192
  }
4160
4193
  get endpoint() {
4161
4194
  return this.$$.ctx[12];
4162
4195
  }
4163
4196
  set endpoint(t) {
4164
- this.$$set({ endpoint: t }), D();
4197
+ this.$$set({ endpoint: t }), $();
4165
4198
  }
4166
4199
  get tokenid() {
4167
4200
  return this.$$.ctx[9];
4168
4201
  }
4169
4202
  set tokenid(t) {
4170
- this.$$set({ tokenid: t }), D();
4203
+ this.$$set({ tokenid: t }), $();
4171
4204
  }
4172
4205
  get playerid() {
4173
4206
  return this.$$.ctx[10];
4174
4207
  }
4175
4208
  set playerid(t) {
4176
- this.$$set({ playerid: t }), D();
4209
+ this.$$set({ playerid: t }), $();
4177
4210
  }
4178
4211
  get smstemplate() {
4179
4212
  return this.$$.ctx[13];
4180
4213
  }
4181
4214
  set smstemplate(t) {
4182
- this.$$set({ smstemplate: t }), D();
4215
+ this.$$set({ smstemplate: t }), $();
4183
4216
  }
4184
4217
  get number() {
4185
4218
  return this.$$.ctx[11];
4186
4219
  }
4187
4220
  set number(t) {
4188
- this.$$set({ number: t }), D();
4221
+ this.$$set({ number: t }), $();
4189
4222
  }
4190
- get clientstyling() {
4223
+ get mbsource() {
4191
4224
  return this.$$.ctx[14];
4192
4225
  }
4226
+ set mbsource(t) {
4227
+ this.$$set({ mbsource: t }), $();
4228
+ }
4229
+ get clientstyling() {
4230
+ return this.$$.ctx[15];
4231
+ }
4193
4232
  set clientstyling(t) {
4194
- this.$$set({ clientstyling: t }), D();
4233
+ this.$$set({ clientstyling: t }), $();
4195
4234
  }
4196
4235
  get clientstylingurl() {
4197
- return this.$$.ctx[15];
4236
+ return this.$$.ctx[16];
4198
4237
  }
4199
4238
  set clientstylingurl(t) {
4200
- this.$$set({ clientstylingurl: t }), D();
4239
+ this.$$set({ clientstylingurl: t }), $();
4201
4240
  }
4202
4241
  get translationurl() {
4203
- return this.$$.ctx[16];
4242
+ return this.$$.ctx[17];
4204
4243
  }
4205
4244
  set translationurl(t) {
4206
- this.$$set({ translationurl: t }), D();
4245
+ this.$$set({ translationurl: t }), $();
4207
4246
  }
4208
4247
  }
4209
- fr(li, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4248
+ cr(ci, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4210
4249
  export {
4211
- li as G
4250
+ ci as G
4212
4251
  };