@everymatrix/general-player-sms-verification-form 1.77.25 → 1.77.26

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.
@@ -6,10 +6,10 @@ function vt(e) {
6
6
  function qe() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function ie(e) {
9
+ function ne(e) {
10
10
  e.forEach(vt);
11
11
  }
12
- function Ze(e) {
12
+ function ze(e) {
13
13
  return typeof e == "function";
14
14
  }
15
15
  function yt(e, t) {
@@ -30,13 +30,13 @@ function Et(e, ...t) {
30
30
  function Wt(e, t, r) {
31
31
  e.$$.on_destroy.push(Et(t, r));
32
32
  }
33
- function y(e, t) {
33
+ function E(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
36
  function Zt(e, t, r) {
37
37
  const n = Jt(e);
38
38
  if (!n.getElementById(t)) {
39
- const i = N("style");
39
+ const i = M("style");
40
40
  i.id = t, i.textContent = r, Qt(n, i);
41
41
  }
42
42
  }
@@ -51,37 +51,37 @@ function Jt(e) {
51
51
  ) : e.ownerDocument;
52
52
  }
53
53
  function Qt(e, t) {
54
- return y(
54
+ return E(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
58
58
  ), t.sheet;
59
59
  }
60
- function Z(e, t, r) {
60
+ function W(e, t, r) {
61
61
  e.insertBefore(t, r || null);
62
62
  }
63
- function j(e) {
63
+ function k(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function N(e) {
66
+ function M(e) {
67
67
  return document.createElement(e);
68
68
  }
69
- function M(e) {
69
+ function O(e) {
70
70
  return document.createTextNode(e);
71
71
  }
72
- function z() {
73
- return M(" ");
72
+ function X() {
73
+ return O(" ");
74
74
  }
75
- function be(e, t, r, n) {
75
+ function pe(e, t, r, n) {
76
76
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
77
77
  }
78
- function A(e, t, r) {
78
+ function B(e, t, r) {
79
79
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
80
80
  }
81
81
  function qt(e) {
82
82
  return Array.from(e.childNodes);
83
83
  }
84
- function G(e, t) {
84
+ function F(e, t) {
85
85
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
86
86
  t);
87
87
  }
@@ -97,65 +97,65 @@ function Yt(e) {
97
97
  }
98
98
  ), t;
99
99
  }
100
- let de;
101
- function fe(e) {
102
- de = e;
100
+ let fe;
101
+ function ce(e) {
102
+ fe = e;
103
103
  }
104
104
  function Kt() {
105
- if (!de)
105
+ if (!fe)
106
106
  throw new Error("Function called outside component initialization");
107
- return de;
107
+ return fe;
108
108
  }
109
109
  function er(e) {
110
110
  Kt().$$.on_mount.push(e);
111
111
  }
112
- const Y = [], Re = [];
113
- let K = [];
112
+ const q = [], Oe = [];
113
+ let Y = [];
114
114
  const Ke = [], tr = /* @__PURE__ */ Promise.resolve();
115
- let $e = !1;
115
+ let Le = !1;
116
116
  function rr() {
117
- $e || ($e = !0, tr.then($));
117
+ Le || (Le = !0, tr.then($));
118
118
  }
119
- function Ue(e) {
120
- K.push(e);
119
+ function Re(e) {
120
+ Y.push(e);
121
121
  }
122
- const Pe = /* @__PURE__ */ new Set();
123
- let Q = 0;
122
+ const Ae = /* @__PURE__ */ new Set();
123
+ let J = 0;
124
124
  function $() {
125
- if (Q !== 0)
125
+ if (J !== 0)
126
126
  return;
127
- const e = de;
127
+ const e = fe;
128
128
  do {
129
129
  try {
130
- for (; Q < Y.length; ) {
131
- const t = Y[Q];
132
- Q++, fe(t), nr(t.$$);
130
+ for (; J < q.length; ) {
131
+ const t = q[J];
132
+ J++, ce(t), nr(t.$$);
133
133
  }
134
134
  } catch (t) {
135
- throw Y.length = 0, Q = 0, t;
135
+ throw q.length = 0, J = 0, t;
136
136
  }
137
- for (fe(null), Y.length = 0, Q = 0; Re.length; )
138
- Re.pop()();
139
- for (let t = 0; t < K.length; t += 1) {
140
- const r = K[t];
141
- Pe.has(r) || (Pe.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
+ Ae.has(r) || (Ae.add(r), r());
142
142
  }
143
- K.length = 0;
144
- } while (Y.length);
143
+ Y.length = 0;
144
+ } while (q.length);
145
145
  for (; Ke.length; )
146
146
  Ke.pop()();
147
- $e = !1, Pe.clear(), fe(e);
147
+ Le = !1, Ae.clear(), ce(e);
148
148
  }
149
149
  function nr(e) {
150
150
  if (e.fragment !== null) {
151
- e.update(), ie(e.before_update);
151
+ e.update(), ne(e.before_update);
152
152
  const t = e.dirty;
153
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ue);
153
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
154
154
  }
155
155
  }
156
156
  function ir(e) {
157
157
  const t = [], r = [];
158
- K.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), K = t;
158
+ Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
159
159
  }
160
160
  const or = /* @__PURE__ */ new Set();
161
161
  function sr(e, t) {
@@ -163,21 +163,21 @@ function sr(e, t) {
163
163
  }
164
164
  function ar(e, t, r) {
165
165
  const { fragment: n, after_update: i } = e.$$;
166
- n && n.m(t, r), Ue(() => {
167
- const o = e.$$.on_mount.map(vt).filter(Ze);
168
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
169
- }), i.forEach(Ue);
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);
170
170
  }
171
171
  function ur(e, t) {
172
172
  const r = e.$$;
173
- r.fragment !== null && (ir(r.after_update), ie(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 = []);
174
174
  }
175
175
  function lr(e, t) {
176
- e.$$.dirty[0] === -1 && (Y.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
176
+ e.$$.dirty[0] === -1 && (q.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
177
177
  }
178
178
  function hr(e, t, r, n, i, o, a = null, s = [-1]) {
179
- const h = de;
180
- fe(e);
179
+ const h = fe;
180
+ ce(e);
181
181
  const u = e.$$ = {
182
182
  fragment: null,
183
183
  ctx: [],
@@ -202,20 +202,20 @@ function hr(e, t, r, n, i, o, a = null, s = [-1]) {
202
202
  a && a(u.root);
203
203
  let l = !1;
204
204
  if (u.ctx = r ? r(e, t.props || {}, (c, d, ...g) => {
205
- const v = g.length ? g[0] : d;
206
- return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), l && lr(e, c)), d;
207
- }) : [], u.update(), l = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
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) {
208
208
  if (t.hydrate) {
209
209
  const c = qt(t.target);
210
- u.fragment && u.fragment.l(c), c.forEach(j);
210
+ u.fragment && u.fragment.l(c), c.forEach(k);
211
211
  } else
212
212
  u.fragment && u.fragment.c();
213
213
  t.intro && sr(e.$$.fragment), ar(e, t.target, t.anchor), $();
214
214
  }
215
- fe(h);
215
+ ce(h);
216
216
  }
217
- let _t;
218
- typeof HTMLElement == "function" && (_t = class extends HTMLElement {
217
+ let xt;
218
+ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
219
219
  /** The Svelte component constructor */
220
220
  $$ctor;
221
221
  /** Slots */
@@ -257,17 +257,17 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
257
257
  let o;
258
258
  return {
259
259
  c: function() {
260
- o = N("slot"), i !== "default" && A(o, "name", i);
260
+ o = M("slot"), i !== "default" && B(o, "name", i);
261
261
  },
262
262
  /**
263
263
  * @param {HTMLElement} target
264
264
  * @param {HTMLElement} [anchor]
265
265
  */
266
266
  m: function(h, u) {
267
- Z(h, o, u);
267
+ W(h, o, u);
268
268
  },
269
269
  d: function(h) {
270
- h && j(o);
270
+ h && k(o);
271
271
  }
272
272
  };
273
273
  };
@@ -279,7 +279,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
279
279
  i in r && (t[i] = [e(i)]);
280
280
  for (const i of this.attributes) {
281
281
  const o = this.$$g_p(i.name);
282
- 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"));
283
283
  }
284
284
  for (const i in this.$$p_d)
285
285
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -297,7 +297,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
297
297
  this.$$r = !0;
298
298
  for (const i in this.$$p_d)
299
299
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
300
- const o = ve(
300
+ const o = ge(
301
301
  i,
302
302
  this.$$d[i],
303
303
  this.$$p_d,
@@ -319,7 +319,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
319
319
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
320
320
  // and setting attributes through setAttribute etc, this is helpful
321
321
  attributeChangedCallback(e, t, r) {
322
- 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] }));
323
323
  }
324
324
  disconnectedCallback() {
325
325
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -332,7 +332,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
332
332
  ) || e;
333
333
  }
334
334
  });
335
- function ve(e, t, r, n) {
335
+ function ge(e, t, r, n) {
336
336
  const i = r[e]?.type;
337
337
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
338
338
  return t;
@@ -362,7 +362,7 @@ function ve(e, t, r, n) {
362
362
  }
363
363
  }
364
364
  function cr(e, t, r, n, i, o) {
365
- let a = class extends _t {
365
+ let a = class extends xt {
366
366
  constructor() {
367
367
  super(e, r, i), this.$$p_d = t;
368
368
  }
@@ -378,7 +378,7 @@ function cr(e, t, r, n, i, o) {
378
378
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
379
379
  },
380
380
  set(h) {
381
- 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 });
382
382
  }
383
383
  });
384
384
  }), n.forEach((s) => {
@@ -418,7 +418,7 @@ class fr {
418
418
  * @returns {() => void}
419
419
  */
420
420
  $on(t, r) {
421
- if (!Ze(r))
421
+ if (!ze(r))
422
422
  return U;
423
423
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
424
424
  return n.push(r), () => {
@@ -436,24 +436,24 @@ class fr {
436
436
  }
437
437
  const dr = "4";
438
438
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr);
439
- const q = [];
439
+ const Q = [];
440
440
  function mr(e, t) {
441
441
  return {
442
- subscribe: Te(e, t).subscribe
442
+ subscribe: _e(e, t).subscribe
443
443
  };
444
444
  }
445
- function Te(e, t = U) {
445
+ function _e(e, t = U) {
446
446
  let r;
447
447
  const n = /* @__PURE__ */ new Set();
448
448
  function i(s) {
449
449
  if (yt(e, s) && (e = s, r)) {
450
- const h = !q.length;
450
+ const h = !Q.length;
451
451
  for (const u of n)
452
- u[1](), q.push(u, e);
452
+ u[1](), Q.push(u, e);
453
453
  if (h) {
454
- for (let u = 0; u < q.length; u += 2)
455
- q[u][0](q[u + 1]);
456
- q.length = 0;
454
+ for (let u = 0; u < Q.length; u += 2)
455
+ Q[u][0](Q[u + 1]);
456
+ Q.length = 0;
457
457
  }
458
458
  }
459
459
  }
@@ -468,7 +468,7 @@ function Te(e, t = U) {
468
468
  }
469
469
  return { set: i, update: o, subscribe: a };
470
470
  }
471
- function oe(e, t, r) {
471
+ function ie(e, t, r) {
472
472
  const n = !Array.isArray(e), i = n ? [e] : e;
473
473
  if (!i.every(Boolean))
474
474
  throw new Error("derived() expects stores as input, got a falsy value");
@@ -481,11 +481,11 @@ function oe(e, t, r) {
481
481
  if (l)
482
482
  return;
483
483
  c();
484
- const v = t(n ? u[0] : u, a, s);
485
- o ? a(v) : c = Ze(v) ? v : U;
484
+ const y = t(n ? u[0] : u, a, s);
485
+ o ? a(y) : c = ze(y) ? y : U;
486
486
  }, g = i.map(
487
- (v, _) => Et(
488
- v,
487
+ (y, _) => Et(
488
+ y,
489
489
  (T) => {
490
490
  u[_] = T, l &= ~(1 << _), h && d();
491
491
  },
@@ -495,7 +495,7 @@ function oe(e, t, r) {
495
495
  )
496
496
  );
497
497
  return h = !0, d(), function() {
498
- ie(g), c(), h = !1;
498
+ ne(g), c(), h = !1;
499
499
  };
500
500
  });
501
501
  }
@@ -510,28 +510,28 @@ function gr(e) {
510
510
  }
511
511
  function vr(e) {
512
512
  var t = Object.prototype.toString.call(e);
513
- return t === "[object RegExp]" || t === "[object Date]" || _r(e);
513
+ return t === "[object RegExp]" || t === "[object Date]" || xr(e);
514
514
  }
515
515
  var yr = typeof Symbol == "function" && Symbol.for, Er = yr ? Symbol.for("react.element") : 60103;
516
- function _r(e) {
516
+ function xr(e) {
517
517
  return e.$$typeof === Er;
518
518
  }
519
- function xr(e) {
519
+ function _r(e) {
520
520
  return Array.isArray(e) ? [] : {};
521
521
  }
522
- function me(e, t) {
523
- return t.clone !== !1 && t.isMergeableObject(e) ? ee(xr(e), e, t) : e;
522
+ function de(e, t) {
523
+ return t.clone !== !1 && t.isMergeableObject(e) ? K(_r(e), e, t) : e;
524
524
  }
525
525
  function Sr(e, t, r) {
526
526
  return e.concat(t).map(function(n) {
527
- return me(n, r);
527
+ return de(n, r);
528
528
  });
529
529
  }
530
530
  function Tr(e, t) {
531
531
  if (!t.customMerge)
532
- return ee;
532
+ return K;
533
533
  var r = t.customMerge(e);
534
- return typeof r == "function" ? r : ee;
534
+ return typeof r == "function" ? r : K;
535
535
  }
536
536
  function Hr(e) {
537
537
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
@@ -541,66 +541,80 @@ function Hr(e) {
541
541
  function et(e) {
542
542
  return Object.keys(e).concat(Hr(e));
543
543
  }
544
- function xt(e, t) {
544
+ function _t(e, t) {
545
545
  try {
546
546
  return t in e;
547
547
  } catch {
548
548
  return !1;
549
549
  }
550
550
  }
551
- function Ar(e, t) {
552
- return xt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
551
+ function Br(e, t) {
552
+ return _t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
553
553
  }
554
- function Br(e, t, r) {
554
+ function Ar(e, t, r) {
555
555
  var n = {};
556
556
  return r.isMergeableObject(e) && et(e).forEach(function(i) {
557
- n[i] = me(e[i], r);
557
+ n[i] = de(e[i], r);
558
558
  }), et(t).forEach(function(i) {
559
- Ar(e, i) || (xt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tr(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
559
+ Br(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));
560
560
  }), n;
561
561
  }
562
- function ee(e, t, r) {
563
- r = r || {}, r.arrayMerge = r.arrayMerge || Sr, r.isMergeableObject = r.isMergeableObject || br, r.cloneUnlessOtherwiseSpecified = me;
562
+ function K(e, t, r) {
563
+ r = r || {}, r.arrayMerge = r.arrayMerge || Sr, r.isMergeableObject = r.isMergeableObject || br, r.cloneUnlessOtherwiseSpecified = de;
564
564
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
565
- return o ? n ? r.arrayMerge(e, t, r) : Br(e, t, r) : me(t, r);
565
+ return o ? n ? r.arrayMerge(e, t, r) : Ar(e, t, r) : de(t, r);
566
566
  }
567
- ee.all = function(t, r) {
567
+ K.all = function(t, r) {
568
568
  if (!Array.isArray(t))
569
569
  throw new Error("first argument should be an array");
570
570
  return t.reduce(function(n, i) {
571
- return ee(n, i, r);
571
+ return K(n, i, r);
572
572
  }, {});
573
573
  };
574
- var wr = ee, Pr = wr;
575
- const Cr = /* @__PURE__ */ pr(Pr);
576
- var De = function(e, t) {
577
- return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
574
+ var wr = K, Pr = wr;
575
+ const Ir = /* @__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) {
578
592
  r.__proto__ = n;
579
593
  } || function(r, n) {
580
594
  for (var i in n)
581
595
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
582
- }, De(e, t);
596
+ }, $e(e, t);
583
597
  };
584
- function He(e, t) {
598
+ function Se(e, t) {
585
599
  if (typeof t != "function" && t !== null)
586
600
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
587
- De(e, t);
601
+ $e(e, t);
588
602
  function r() {
589
603
  this.constructor = e;
590
604
  }
591
605
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
592
606
  }
593
- var F = function() {
594
- return F = Object.assign || function(t) {
607
+ var v = function() {
608
+ return v = Object.assign || function(t) {
595
609
  for (var r, n = 1, i = arguments.length; n < i; n++) {
596
610
  r = arguments[n];
597
611
  for (var o in r)
598
612
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
599
613
  }
600
614
  return t;
601
- }, F.apply(this, arguments);
615
+ }, v.apply(this, arguments);
602
616
  };
603
- function Ir(e, t) {
617
+ function Cr(e, t) {
604
618
  var r = {};
605
619
  for (var n in e)
606
620
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -609,119 +623,111 @@ function Ir(e, t) {
609
623
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
610
624
  return r;
611
625
  }
612
- function Ce(e, t, r) {
613
- if (r || arguments.length === 2)
626
+ function we(e, t, r) {
627
+ if (arguments.length === 2)
614
628
  for (var n = 0, i = t.length, o; n < i; n++)
615
629
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
616
- return e.concat(o || Array.prototype.slice.call(t));
630
+ return e.concat(o || t);
617
631
  }
618
- function Ie(e, t) {
619
- var r = t && t.cache ? t.cache : Ur, n = t && t.serializer ? t.serializer : Rr, 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;
620
634
  return i(e, {
621
635
  cache: r,
622
636
  serializer: n
623
637
  });
624
638
  }
625
- function Or(e) {
639
+ function Nr(e) {
626
640
  return e == null || typeof e == "number" || typeof e == "boolean";
627
641
  }
628
- function Nr(e, t, r, n) {
629
- 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);
630
644
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
631
645
  }
632
- function St(e, t, r) {
646
+ function Tt(e, t, r) {
633
647
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
634
648
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
635
649
  }
636
- function Tt(e, t, r, n, i) {
650
+ function We(e, t, r, n, i) {
637
651
  return r.bind(t, e, n, i);
638
652
  }
639
653
  function Mr(e, t) {
640
- var r = e.length === 1 ? Nr : St;
641
- return Tt(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);
656
+ }
657
+ function Or(e, t) {
658
+ return We(e, this, Tt, t.cache.create(), t.serializer);
642
659
  }
643
660
  function Lr(e, t) {
644
- return Tt(e, this, St, t.cache.create(), t.serializer);
661
+ return We(e, this, St, t.cache.create(), t.serializer);
645
662
  }
646
663
  var Rr = function() {
647
664
  return JSON.stringify(arguments);
648
- }, $r = (
649
- /** @class */
650
- function() {
651
- function e() {
652
- this.cache = /* @__PURE__ */ Object.create(null);
653
- }
654
- return e.prototype.get = function(t) {
655
- return this.cache[t];
656
- }, e.prototype.set = function(t, r) {
657
- this.cache[t] = r;
658
- }, e;
659
- }()
660
- ), Ur = {
665
+ };
666
+ function Ze() {
667
+ this.cache = /* @__PURE__ */ Object.create(null);
668
+ }
669
+ Ze.prototype.get = function(e) {
670
+ return this.cache[e];
671
+ };
672
+ Ze.prototype.set = function(e, t) {
673
+ this.cache[e] = t;
674
+ };
675
+ var $r = {
661
676
  create: function() {
662
- return new $r();
677
+ return new Ze();
663
678
  }
664
- }, Oe = {
665
- variadic: Lr
666
- }, _e = function() {
667
- return _e = Object.assign || function(t) {
668
- for (var r, n = 1, i = arguments.length; n < i; n++) {
669
- r = arguments[n];
670
- for (var o in r)
671
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
672
- }
673
- return t;
674
- }, _e.apply(this, arguments);
675
- };
676
- var m;
679
+ }, Ie = {
680
+ variadic: Or,
681
+ monadic: Lr
682
+ }, m;
677
683
  (function(e) {
678
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";
679
685
  })(m || (m = {}));
680
- var E;
686
+ var x;
681
687
  (function(e) {
682
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";
683
- })(E || (E = {}));
684
- var te;
689
+ })(x || (x = {}));
690
+ var ee;
685
691
  (function(e) {
686
692
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
687
- })(te || (te = {}));
693
+ })(ee || (ee = {}));
688
694
  function tt(e) {
689
- return e.type === E.literal;
695
+ return e.type === x.literal;
690
696
  }
691
- function Dr(e) {
692
- return e.type === E.argument;
697
+ function Ur(e) {
698
+ return e.type === x.argument;
693
699
  }
694
700
  function Ht(e) {
695
- return e.type === E.number;
696
- }
697
- function At(e) {
698
- return e.type === E.date;
701
+ return e.type === x.number;
699
702
  }
700
703
  function Bt(e) {
701
- return e.type === E.time;
704
+ return e.type === x.date;
705
+ }
706
+ function At(e) {
707
+ return e.type === x.time;
702
708
  }
703
709
  function wt(e) {
704
- return e.type === E.select;
710
+ return e.type === x.select;
705
711
  }
706
712
  function Pt(e) {
707
- return e.type === E.plural;
713
+ return e.type === x.plural;
708
714
  }
709
- function Fr(e) {
710
- return e.type === E.pound;
711
- }
712
- function Ct(e) {
713
- return e.type === E.tag;
715
+ function Dr(e) {
716
+ return e.type === x.pound;
714
717
  }
715
718
  function It(e) {
716
- return !!(e && typeof e == "object" && e.type === te.number);
719
+ return e.type === x.tag;
717
720
  }
718
- function Fe(e) {
719
- return !!(e && typeof e == "object" && e.type === te.dateTime);
721
+ function Ct(e) {
722
+ return !!(e && typeof e == "object" && e.type === ee.number);
723
+ }
724
+ function Ue(e) {
725
+ return !!(e && typeof e == "object" && e.type === ee.dateTime);
720
726
  }
721
- 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;
722
- 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) {
723
729
  var t = {};
724
- return e.replace(Gr, function(r) {
730
+ return e.replace(Fr, function(r) {
725
731
  var n = r.length;
726
732
  switch (r[0]) {
727
733
  case "G":
@@ -810,21 +816,11 @@ function kr(e) {
810
816
  return "";
811
817
  }), t;
812
818
  }
813
- var S = function() {
814
- return S = Object.assign || function(t) {
815
- for (var r, n = 1, i = arguments.length; n < i; n++) {
816
- r = arguments[n];
817
- for (var o in r)
818
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
819
- }
820
- return t;
821
- }, S.apply(this, arguments);
822
- };
823
- var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
824
- function Vr(e) {
819
+ var kr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
820
+ function jr(e) {
825
821
  if (e.length === 0)
826
822
  throw new Error("Number skeleton cannot be empty");
827
- for (var t = e.split(jr).filter(function(d) {
823
+ for (var t = e.split(kr).filter(function(d) {
828
824
  return d.length > 0;
829
825
  }), r = [], n = 0, i = t; n < i.length; n++) {
830
826
  var o = i[n], a = o.split("/");
@@ -839,13 +835,13 @@ function Vr(e) {
839
835
  }
840
836
  return r;
841
837
  }
842
- function Xr(e) {
838
+ function Vr(e) {
843
839
  return e.replace(/^(.*?)-/, "");
844
840
  }
845
- var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nt = /^(@+)?(\+|#+)?[rs]?$/g, zr = /(\*)(0+)|(#+)(0+)|(0+)/g, Mt = /^(0+)$/;
841
+ var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Mt = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Ot = /^(0+)$/;
846
842
  function nt(e) {
847
843
  var t = {};
848
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Nt, function(r, n, i) {
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) {
849
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)), "";
850
846
  }), t;
851
847
  }
@@ -889,7 +885,7 @@ function Lt(e) {
889
885
  };
890
886
  }
891
887
  }
892
- function Wr(e) {
888
+ function zr(e) {
893
889
  var t;
894
890
  if (e[0] === "E" && e[1] === "E" ? (t = {
895
891
  notation: "engineering"
@@ -897,7 +893,7 @@ function Wr(e) {
897
893
  notation: "scientific"
898
894
  }, e = e.slice(1)), t) {
899
895
  var r = e.slice(0, 2);
900
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Mt.test(e))
896
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ot.test(e))
901
897
  throw new Error("Malformed concise eng/scientific notation");
902
898
  t.minimumIntegerDigits = e.length;
903
899
  }
@@ -907,7 +903,7 @@ function it(e) {
907
903
  var t = {}, r = Lt(e);
908
904
  return r || t;
909
905
  }
910
- function Zr(e) {
906
+ function Wr(e) {
911
907
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
912
908
  var i = n[r];
913
909
  switch (i.stem) {
@@ -931,7 +927,7 @@ function Zr(e) {
931
927
  continue;
932
928
  case "measure-unit":
933
929
  case "unit":
934
- t.style = "unit", t.unit = Xr(i.options[0]);
930
+ t.style = "unit", t.unit = Vr(i.options[0]);
935
931
  continue;
936
932
  case "compact-short":
937
933
  case "K":
@@ -942,13 +938,13 @@ function Zr(e) {
942
938
  t.notation = "compact", t.compactDisplay = "long";
943
939
  continue;
944
940
  case "scientific":
945
- t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
946
- return S(S({}, h), it(u));
941
+ t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
942
+ return v(v({}, h), it(u));
947
943
  }, {}));
948
944
  continue;
949
945
  case "engineering":
950
- t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
951
- return S(S({}, h), it(u));
946
+ t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
947
+ return v(v({}, h), it(u));
952
948
  }, {}));
953
949
  continue;
954
950
  case "notation-simple":
@@ -993,7 +989,7 @@ function Zr(e) {
993
989
  case "integer-width":
994
990
  if (i.options.length > 1)
995
991
  throw new RangeError("integer-width stems only accept a single optional option");
996
- i.options[0].replace(zr, function(h, u, l, c, d, g) {
992
+ i.options[0].replace(Xr, function(h, u, l, c, d, g) {
997
993
  if (u)
998
994
  t.minimumIntegerDigits = l.length;
999
995
  else {
@@ -1006,7 +1002,7 @@ function Zr(e) {
1006
1002
  });
1007
1003
  continue;
1008
1004
  }
1009
- if (Mt.test(i.stem)) {
1005
+ if (Ot.test(i.stem)) {
1010
1006
  t.minimumIntegerDigits = i.stem.length;
1011
1007
  continue;
1012
1008
  }
@@ -1017,21 +1013,21 @@ function Zr(e) {
1017
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), "";
1018
1014
  });
1019
1015
  var o = i.options[0];
1020
- o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), nt(o)));
1016
+ o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), nt(o)));
1021
1017
  continue;
1022
1018
  }
1023
- if (Nt.test(i.stem)) {
1024
- t = S(S({}, t), nt(i.stem));
1019
+ if (Mt.test(i.stem)) {
1020
+ t = v(v({}, t), nt(i.stem));
1025
1021
  continue;
1026
1022
  }
1027
1023
  var a = Lt(i.stem);
1028
- a && (t = S(S({}, t), a));
1029
- var s = Wr(i.stem);
1030
- s && (t = S(S({}, t), s));
1024
+ a && (t = v(v({}, t), a));
1025
+ var s = zr(i.stem);
1026
+ s && (t = v(v({}, t), s));
1031
1027
  }
1032
1028
  return t;
1033
1029
  }
1034
- var ge = {
1030
+ var be = {
1035
1031
  "001": [
1036
1032
  "H",
1037
1033
  "h"
@@ -2446,13 +2442,13 @@ var ge = {
2446
2442
  "h"
2447
2443
  ]
2448
2444
  };
2449
- function Jr(e, t) {
2445
+ function Zr(e, t) {
2450
2446
  for (var r = "", n = 0; n < e.length; n++) {
2451
2447
  var i = e.charAt(n);
2452
2448
  if (i === "j") {
2453
2449
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2454
2450
  o++, n++;
2455
- 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);
2456
2452
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2457
2453
  r += h;
2458
2454
  for (; a-- > 0; )
@@ -2462,7 +2458,7 @@ function Jr(e, t) {
2462
2458
  }
2463
2459
  return r;
2464
2460
  }
2465
- function Qr(e) {
2461
+ function Jr(e) {
2466
2462
  var t = e.hourCycle;
2467
2463
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2468
2464
  e.hourCycles && // @ts-ignore
@@ -2481,23 +2477,23 @@ function Qr(e) {
2481
2477
  }
2482
2478
  var r = e.language, n;
2483
2479
  r !== "root" && (n = e.maximize().region);
2484
- 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"];
2485
2481
  return i[0];
2486
2482
  }
2487
- var Ne, qr = new RegExp("^".concat(Ot.source, "*")), Yr = new RegExp("".concat(Ot.source, "*$"));
2483
+ var Ce, Qr = new RegExp("^".concat(Nt.source, "*")), qr = new RegExp("".concat(Nt.source, "*$"));
2488
2484
  function b(e, t) {
2489
2485
  return { start: e, end: t };
2490
2486
  }
2491
- 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) {
2492
2488
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2493
- }, Ge = !0;
2489
+ }, De = !0;
2494
2490
  try {
2495
- var un = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2496
- Ge = ((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 = ((Ce = an.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
2497
2493
  } catch {
2498
- Ge = !1;
2494
+ De = !1;
2499
2495
  }
2500
- var ot = Kr ? (
2496
+ var ot = Yr ? (
2501
2497
  // Native
2502
2498
  function(t, r, n) {
2503
2499
  return t.startsWith(r, n);
@@ -2507,7 +2503,7 @@ var ot = Kr ? (
2507
2503
  function(t, r, n) {
2508
2504
  return t.slice(n, n + r.length) === r;
2509
2505
  }
2510
- ), ke = en ? String.fromCodePoint : (
2506
+ ), Fe = Kr ? String.fromCodePoint : (
2511
2507
  // IE11
2512
2508
  function() {
2513
2509
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2521,7 +2517,7 @@ var ot = Kr ? (
2521
2517
  }
2522
2518
  ), st = (
2523
2519
  // native
2524
- tn ? Object.fromEntries : (
2520
+ en ? Object.fromEntries : (
2525
2521
  // Ponyfill
2526
2522
  function(t) {
2527
2523
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2531,7 +2527,7 @@ var ot = Kr ? (
2531
2527
  return r;
2532
2528
  }
2533
2529
  )
2534
- ), Rt = rn ? (
2530
+ ), Rt = tn ? (
2535
2531
  // Native
2536
2532
  function(t, r) {
2537
2533
  return t.codePointAt(r);
@@ -2545,7 +2541,7 @@ var ot = Kr ? (
2545
2541
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2546
2542
  }
2547
2543
  }
2548
- ), ln = nn ? (
2544
+ ), un = rn ? (
2549
2545
  // Native
2550
2546
  function(t) {
2551
2547
  return t.trimStart();
@@ -2553,9 +2549,9 @@ var ot = Kr ? (
2553
2549
  ) : (
2554
2550
  // Ponyfill
2555
2551
  function(t) {
2556
- return t.replace(qr, "");
2552
+ return t.replace(Qr, "");
2557
2553
  }
2558
- ), hn = on ? (
2554
+ ), ln = nn ? (
2559
2555
  // Native
2560
2556
  function(t) {
2561
2557
  return t.trimEnd();
@@ -2563,32 +2559,32 @@ var ot = Kr ? (
2563
2559
  ) : (
2564
2560
  // Ponyfill
2565
2561
  function(t) {
2566
- return t.replace(Yr, "");
2562
+ return t.replace(qr, "");
2567
2563
  }
2568
2564
  );
2569
2565
  function $t(e, t) {
2570
2566
  return new RegExp(e, t);
2571
2567
  }
2572
- var je;
2573
- if (Ge) {
2568
+ var Ge;
2569
+ if (De) {
2574
2570
  var at = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2575
- je = function(t, r) {
2571
+ Ge = function(t, r) {
2576
2572
  var n;
2577
2573
  at.lastIndex = r;
2578
2574
  var i = at.exec(t);
2579
2575
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2580
2576
  };
2581
2577
  } else
2582
- je = function(t, r) {
2578
+ Ge = function(t, r) {
2583
2579
  for (var n = []; ; ) {
2584
2580
  var i = Rt(t, r);
2585
- if (i === void 0 || Ut(i) || mn(i))
2581
+ if (i === void 0 || Ut(i) || dn(i))
2586
2582
  break;
2587
2583
  n.push(i), r += i >= 65536 ? 2 : 1;
2588
2584
  }
2589
- return ke.apply(void 0, n);
2585
+ return Fe.apply(void 0, n);
2590
2586
  };
2591
- var cn = (
2587
+ var hn = (
2592
2588
  /** @class */
2593
2589
  function() {
2594
2590
  function e(t, r) {
@@ -2612,14 +2608,14 @@ var cn = (
2612
2608
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2613
2609
  var s = this.clonePosition();
2614
2610
  this.bump(), i.push({
2615
- type: E.pound,
2611
+ type: x.pound,
2616
2612
  location: b(s, this.clonePosition())
2617
2613
  });
2618
2614
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2619
2615
  if (n)
2620
2616
  break;
2621
2617
  return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
2622
- } else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
2618
+ } else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
2623
2619
  var a = this.parseTag(t, r);
2624
2620
  if (a.err)
2625
2621
  return a;
@@ -2640,7 +2636,7 @@ var cn = (
2640
2636
  if (this.bumpSpace(), this.bumpIf("/>"))
2641
2637
  return {
2642
2638
  val: {
2643
- type: E.literal,
2639
+ type: x.literal,
2644
2640
  value: "<".concat(i, "/>"),
2645
2641
  location: b(n, this.clonePosition())
2646
2642
  },
@@ -2652,12 +2648,12 @@ var cn = (
2652
2648
  return o;
2653
2649
  var a = o.val, s = this.clonePosition();
2654
2650
  if (this.bumpIf("</")) {
2655
- if (this.isEOF() || !Ve(this.char()))
2651
+ if (this.isEOF() || !ke(this.char()))
2656
2652
  return this.error(m.INVALID_TAG, b(s, this.clonePosition()));
2657
2653
  var h = this.clonePosition(), u = this.parseTagName();
2658
2654
  return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2659
2655
  val: {
2660
- type: E.tag,
2656
+ type: x.tag,
2661
2657
  value: i,
2662
2658
  children: a,
2663
2659
  location: b(n, this.clonePosition())
@@ -2670,7 +2666,7 @@ var cn = (
2670
2666
  return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
2671
2667
  }, e.prototype.parseTagName = function() {
2672
2668
  var t = this.offset();
2673
- for (this.bump(); !this.isEOF() && dn(this.char()); )
2669
+ for (this.bump(); !this.isEOF() && fn(this.char()); )
2674
2670
  this.bump();
2675
2671
  return this.message.slice(t, this.offset());
2676
2672
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2694,12 +2690,12 @@ var cn = (
2694
2690
  }
2695
2691
  var h = b(n, this.clonePosition());
2696
2692
  return {
2697
- val: { type: E.literal, value: i, location: h },
2693
+ val: { type: x.literal, value: i, location: h },
2698
2694
  err: null
2699
2695
  };
2700
2696
  }, e.prototype.tryParseLeftAngleBracket = function() {
2701
2697
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2702
- !fn(this.peek() || 0)) ? (this.bump(), "<") : null;
2698
+ !cn(this.peek() || 0)) ? (this.bump(), "<") : null;
2703
2699
  }, e.prototype.tryParseQuote = function(t) {
2704
2700
  if (this.isEOF() || this.char() !== 39)
2705
2701
  return null;
@@ -2733,12 +2729,12 @@ var cn = (
2733
2729
  r.push(n);
2734
2730
  this.bump();
2735
2731
  }
2736
- return ke.apply(void 0, r);
2732
+ return Fe.apply(void 0, r);
2737
2733
  }, e.prototype.tryParseUnquoted = function(t, r) {
2738
2734
  if (this.isEOF())
2739
2735
  return null;
2740
2736
  var n = this.char();
2741
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
2737
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
2742
2738
  }, e.prototype.parseArgument = function(t, r) {
2743
2739
  var n = this.clonePosition();
2744
2740
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2754,7 +2750,7 @@ var cn = (
2754
2750
  case 125:
2755
2751
  return this.bump(), {
2756
2752
  val: {
2757
- type: E.argument,
2753
+ type: x.argument,
2758
2754
  // value does not include the opening and closing braces.
2759
2755
  value: i,
2760
2756
  location: b(n, this.clonePosition())
@@ -2767,7 +2763,7 @@ var cn = (
2767
2763
  return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2768
2764
  }
2769
2765
  }, e.prototype.parseIdentifierIfPossible = function() {
2770
- var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
2766
+ var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
2771
2767
  this.bumpTo(i);
2772
2768
  var o = this.clonePosition(), a = b(t, o);
2773
2769
  return { value: n, location: a };
@@ -2786,35 +2782,35 @@ var cn = (
2786
2782
  var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2787
2783
  if (c.err)
2788
2784
  return c;
2789
- var d = hn(c.val);
2785
+ var d = ln(c.val);
2790
2786
  if (d.length === 0)
2791
2787
  return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2792
2788
  var g = b(l, this.clonePosition());
2793
2789
  u = { style: d, styleLocation: g };
2794
2790
  }
2795
- var v = this.tryParseArgumentClose(i);
2796
- if (v.err)
2797
- return v;
2791
+ var y = this.tryParseArgumentClose(i);
2792
+ if (y.err)
2793
+ return y;
2798
2794
  var _ = b(i, this.clonePosition());
2799
2795
  if (u && ot(u?.style, "::", 0)) {
2800
- var T = ln(u.style.slice(2));
2796
+ var T = un(u.style.slice(2));
2801
2797
  if (s === "number") {
2802
2798
  var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
2803
2799
  return c.err ? c : {
2804
- val: { type: E.number, value: n, location: _, style: c.val },
2800
+ val: { type: x.number, value: n, location: _, style: c.val },
2805
2801
  err: null
2806
2802
  };
2807
2803
  } else {
2808
2804
  if (T.length === 0)
2809
2805
  return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
2810
2806
  var H = T;
2811
- this.locale && (H = Jr(T, this.locale));
2807
+ this.locale && (H = Zr(T, this.locale));
2812
2808
  var d = {
2813
- type: te.dateTime,
2809
+ type: ee.dateTime,
2814
2810
  pattern: H,
2815
2811
  location: u.styleLocation,
2816
- parsedOptions: this.shouldParseSkeletons ? kr(H) : {}
2817
- }, L = s === "date" ? E.date : E.time;
2812
+ parsedOptions: this.shouldParseSkeletons ? Gr(H) : {}
2813
+ }, L = s === "date" ? x.date : x.time;
2818
2814
  return {
2819
2815
  val: { type: L, value: n, location: _, style: d },
2820
2816
  err: null
@@ -2823,7 +2819,7 @@ var cn = (
2823
2819
  }
2824
2820
  return {
2825
2821
  val: {
2826
- type: s === "number" ? E.number : s === "date" ? E.date : E.time,
2822
+ type: s === "number" ? x.number : s === "date" ? x.date : x.time,
2827
2823
  value: n,
2828
2824
  location: _,
2829
2825
  style: (o = u?.style) !== null && o !== void 0 ? o : null
@@ -2834,43 +2830,43 @@ var cn = (
2834
2830
  case "plural":
2835
2831
  case "selectordinal":
2836
2832
  case "select": {
2837
- var B = this.clonePosition();
2833
+ var A = this.clonePosition();
2838
2834
  if (this.bumpSpace(), !this.bumpIf(","))
2839
- return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(B, _e({}, B)));
2835
+ return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(A, v({}, A)));
2840
2836
  this.bumpSpace();
2841
- var x = this.parseIdentifierIfPossible(), O = 0;
2842
- if (s !== "select" && x.value === "offset") {
2837
+ var S = this.parseIdentifierIfPossible(), N = 0;
2838
+ if (s !== "select" && S.value === "offset") {
2843
2839
  if (!this.bumpIf(":"))
2844
2840
  return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
2845
2841
  this.bumpSpace();
2846
2842
  var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2847
2843
  if (c.err)
2848
2844
  return c;
2849
- this.bumpSpace(), x = this.parseIdentifierIfPossible(), O = c.val;
2845
+ this.bumpSpace(), S = this.parseIdentifierIfPossible(), N = c.val;
2850
2846
  }
2851
- var D = this.tryParsePluralOrSelectOptions(t, s, r, x);
2847
+ var D = this.tryParsePluralOrSelectOptions(t, s, r, S);
2852
2848
  if (D.err)
2853
2849
  return D;
2854
- var v = this.tryParseArgumentClose(i);
2855
- if (v.err)
2856
- return v;
2857
- var V = b(i, this.clonePosition());
2850
+ var y = this.tryParseArgumentClose(i);
2851
+ if (y.err)
2852
+ return y;
2853
+ var j = b(i, this.clonePosition());
2858
2854
  return s === "select" ? {
2859
2855
  val: {
2860
- type: E.select,
2856
+ type: x.select,
2861
2857
  value: n,
2862
2858
  options: st(D.val),
2863
- location: V
2859
+ location: j
2864
2860
  },
2865
2861
  err: null
2866
2862
  } : {
2867
2863
  val: {
2868
- type: E.plural,
2864
+ type: x.plural,
2869
2865
  value: n,
2870
2866
  options: st(D.val),
2871
- offset: O,
2867
+ offset: N,
2872
2868
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2873
- location: V
2869
+ location: j
2874
2870
  },
2875
2871
  err: null
2876
2872
  };
@@ -2918,16 +2914,16 @@ var cn = (
2918
2914
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2919
2915
  var n = [];
2920
2916
  try {
2921
- n = Vr(t);
2917
+ n = jr(t);
2922
2918
  } catch {
2923
2919
  return this.error(m.INVALID_NUMBER_SKELETON, r);
2924
2920
  }
2925
2921
  return {
2926
2922
  val: {
2927
- type: te.number,
2923
+ type: ee.number,
2928
2924
  tokens: n,
2929
2925
  location: r,
2930
- parsedOptions: this.shouldParseSkeletons ? Zr(n) : {}
2926
+ parsedOptions: this.shouldParseSkeletons ? Wr(n) : {}
2931
2927
  },
2932
2928
  err: null
2933
2929
  };
@@ -2949,16 +2945,16 @@ var cn = (
2949
2945
  var g = this.clonePosition();
2950
2946
  if (!this.bumpIf("{"))
2951
2947
  return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
2952
- var v = this.parseMessage(t + 1, r, n);
2953
- if (v.err)
2954
- return v;
2948
+ var y = this.parseMessage(t + 1, r, n);
2949
+ if (y.err)
2950
+ return y;
2955
2951
  var _ = this.tryParseArgumentClose(g);
2956
2952
  if (_.err)
2957
2953
  return _;
2958
2954
  s.push([
2959
2955
  u,
2960
2956
  {
2961
- value: v.val,
2957
+ value: y.val,
2962
2958
  location: b(g, this.clonePosition())
2963
2959
  }
2964
2960
  ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
@@ -2975,7 +2971,7 @@ var cn = (
2975
2971
  break;
2976
2972
  }
2977
2973
  var h = b(i, this.clonePosition());
2978
- return o ? (a *= n, an(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
2974
+ return o ? (a *= n, sn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
2979
2975
  }, e.prototype.offset = function() {
2980
2976
  return this.position.offset;
2981
2977
  }, e.prototype.isEOF = function() {
@@ -3041,47 +3037,47 @@ var cn = (
3041
3037
  }, e;
3042
3038
  }()
3043
3039
  );
3044
- function Ve(e) {
3040
+ function ke(e) {
3045
3041
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3046
3042
  }
3047
- function fn(e) {
3048
- return Ve(e) || e === 47;
3043
+ function cn(e) {
3044
+ return ke(e) || e === 47;
3049
3045
  }
3050
- function dn(e) {
3046
+ function fn(e) {
3051
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;
3052
3048
  }
3053
3049
  function Ut(e) {
3054
3050
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3055
3051
  }
3056
- function mn(e) {
3052
+ function dn(e) {
3057
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;
3058
3054
  }
3059
- function Xe(e) {
3055
+ function je(e) {
3060
3056
  e.forEach(function(t) {
3061
3057
  if (delete t.location, wt(t) || Pt(t))
3062
3058
  for (var r in t.options)
3063
- delete t.options[r].location, Xe(t.options[r].value);
3059
+ delete t.options[r].location, je(t.options[r].value);
3064
3060
  else
3065
- Ht(t) && It(t.style) || (At(t) || Bt(t)) && Fe(t.style) ? delete t.style.location : Ct(t) && Xe(t.children);
3061
+ Ht(t) && Ct(t.style) || (Bt(t) || At(t)) && Ue(t.style) ? delete t.style.location : It(t) && je(t.children);
3066
3062
  });
3067
3063
  }
3068
- function pn(e, t) {
3069
- t === void 0 && (t = {}), t = _e({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3070
- 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();
3071
3067
  if (r.err) {
3072
3068
  var n = SyntaxError(m[r.err.kind]);
3073
3069
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3074
3070
  }
3075
- return t?.captureLocation || Xe(r.val), r.val;
3071
+ return t?.captureLocation || je(r.val), r.val;
3076
3072
  }
3077
- var re;
3073
+ var te;
3078
3074
  (function(e) {
3079
3075
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3080
- })(re || (re = {}));
3081
- var Ae = (
3076
+ })(te || (te = {}));
3077
+ var Te = (
3082
3078
  /** @class */
3083
3079
  function(e) {
3084
- He(t, e);
3080
+ Se(t, e);
3085
3081
  function t(r, n, i) {
3086
3082
  var o = e.call(this, r) || this;
3087
3083
  return o.code = n, o.originalMessage = i, o;
@@ -3093,48 +3089,48 @@ var Ae = (
3093
3089
  ), ut = (
3094
3090
  /** @class */
3095
3091
  function(e) {
3096
- He(t, e);
3092
+ Se(t, e);
3097
3093
  function t(r, n, i, o) {
3098
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.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;
3099
3095
  }
3100
3096
  return t;
3101
- }(Ae)
3102
- ), bn = (
3097
+ }(Te)
3098
+ ), pn = (
3103
3099
  /** @class */
3104
3100
  function(e) {
3105
- He(t, e);
3101
+ Se(t, e);
3106
3102
  function t(r, n, i) {
3107
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, i) || this;
3103
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
3108
3104
  }
3109
3105
  return t;
3110
- }(Ae)
3111
- ), gn = (
3106
+ }(Te)
3107
+ ), bn = (
3112
3108
  /** @class */
3113
3109
  function(e) {
3114
- He(t, e);
3110
+ Se(t, e);
3115
3111
  function t(r, n) {
3116
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), re.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;
3117
3113
  }
3118
3114
  return t;
3119
- }(Ae)
3120
- ), I;
3115
+ }(Te)
3116
+ ), C;
3121
3117
  (function(e) {
3122
3118
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3123
- })(I || (I = {}));
3124
- function vn(e) {
3119
+ })(C || (C = {}));
3120
+ function gn(e) {
3125
3121
  return e.length < 2 ? e : e.reduce(function(t, r) {
3126
3122
  var n = t[t.length - 1];
3127
- return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
3123
+ return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
3128
3124
  }, []);
3129
3125
  }
3130
- function yn(e) {
3126
+ function vn(e) {
3131
3127
  return typeof e == "function";
3132
3128
  }
3133
- function ye(e, t, r, n, i, o, a) {
3129
+ function ve(e, t, r, n, i, o, a) {
3134
3130
  if (e.length === 1 && tt(e[0]))
3135
3131
  return [
3136
3132
  {
3137
- type: I.literal,
3133
+ type: C.literal,
3138
3134
  value: e[0].value
3139
3135
  }
3140
3136
  ];
@@ -3142,103 +3138,103 @@ function ye(e, t, r, n, i, o, a) {
3142
3138
  var l = u[h];
3143
3139
  if (tt(l)) {
3144
3140
  s.push({
3145
- type: I.literal,
3141
+ type: C.literal,
3146
3142
  value: l.value
3147
3143
  });
3148
3144
  continue;
3149
3145
  }
3150
- if (Fr(l)) {
3146
+ if (Dr(l)) {
3151
3147
  typeof o == "number" && s.push({
3152
- type: I.literal,
3148
+ type: C.literal,
3153
3149
  value: r.getNumberFormat(t).format(o)
3154
3150
  });
3155
3151
  continue;
3156
3152
  }
3157
3153
  var c = l.value;
3158
3154
  if (!(i && c in i))
3159
- throw new gn(c, a);
3155
+ throw new bn(c, a);
3160
3156
  var d = i[c];
3161
- if (Dr(l)) {
3157
+ if (Ur(l)) {
3162
3158
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
3163
- type: typeof d == "string" ? I.literal : I.object,
3159
+ type: typeof d == "string" ? C.literal : C.object,
3164
3160
  value: d
3165
3161
  });
3166
3162
  continue;
3167
3163
  }
3168
- if (At(l)) {
3169
- var g = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
3164
+ if (Bt(l)) {
3165
+ var g = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
3170
3166
  s.push({
3171
- type: I.literal,
3167
+ type: C.literal,
3172
3168
  value: r.getDateTimeFormat(t, g).format(d)
3173
3169
  });
3174
3170
  continue;
3175
3171
  }
3176
- if (Bt(l)) {
3177
- var g = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
3172
+ if (At(l)) {
3173
+ var g = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
3178
3174
  s.push({
3179
- type: I.literal,
3175
+ type: C.literal,
3180
3176
  value: r.getDateTimeFormat(t, g).format(d)
3181
3177
  });
3182
3178
  continue;
3183
3179
  }
3184
3180
  if (Ht(l)) {
3185
- var g = typeof l.style == "string" ? n.number[l.style] : It(l.style) ? l.style.parsedOptions : void 0;
3181
+ var g = typeof l.style == "string" ? n.number[l.style] : Ct(l.style) ? l.style.parsedOptions : void 0;
3186
3182
  g && g.scale && (d = d * (g.scale || 1)), s.push({
3187
- type: I.literal,
3183
+ type: C.literal,
3188
3184
  value: r.getNumberFormat(t, g).format(d)
3189
3185
  });
3190
3186
  continue;
3191
3187
  }
3192
- if (Ct(l)) {
3193
- var v = l.children, _ = l.value, T = i[_];
3194
- if (!yn(T))
3195
- throw new bn(_, "function", a);
3196
- var H = ye(v, t, r, n, i, o), L = T(H.map(function(O) {
3197
- return O.value;
3188
+ if (It(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;
3198
3194
  }));
3199
- Array.isArray(L) || (L = [L]), s.push.apply(s, L.map(function(O) {
3195
+ Array.isArray(L) || (L = [L]), s.push.apply(s, L.map(function(N) {
3200
3196
  return {
3201
- type: typeof O == "string" ? I.literal : I.object,
3202
- value: O
3197
+ type: typeof N == "string" ? C.literal : C.object,
3198
+ value: N
3203
3199
  };
3204
3200
  }));
3205
3201
  }
3206
3202
  if (wt(l)) {
3207
- var B = l.options[d] || l.options.other;
3208
- if (!B)
3203
+ var A = l.options[d] || l.options.other;
3204
+ if (!A)
3209
3205
  throw new ut(l.value, d, Object.keys(l.options), a);
3210
- s.push.apply(s, ye(B.value, t, r, n, i));
3206
+ s.push.apply(s, ve(A.value, t, r, n, i));
3211
3207
  continue;
3212
3208
  }
3213
3209
  if (Pt(l)) {
3214
- var B = l.options["=".concat(d)];
3215
- if (!B) {
3210
+ var A = l.options["=".concat(d)];
3211
+ if (!A) {
3216
3212
  if (!Intl.PluralRules)
3217
- throw new Ae(`Intl.PluralRules is not available in this environment.
3213
+ throw new Te(`Intl.PluralRules is not available in this environment.
3218
3214
  Try polyfilling it using "@formatjs/intl-pluralrules"
3219
- `, re.MISSING_INTL_API, a);
3220
- var x = r.getPluralRules(t, { type: l.pluralType }).select(d - (l.offset || 0));
3221
- B = l.options[x] || l.options.other;
3215
+ `, te.MISSING_INTL_API, a);
3216
+ var S = r.getPluralRules(t, { type: l.pluralType }).select(d - (l.offset || 0));
3217
+ A = l.options[S] || l.options.other;
3222
3218
  }
3223
- if (!B)
3219
+ if (!A)
3224
3220
  throw new ut(l.value, d, Object.keys(l.options), a);
3225
- s.push.apply(s, ye(B.value, t, r, n, i, d - (l.offset || 0)));
3221
+ s.push.apply(s, ve(A.value, t, r, n, i, d - (l.offset || 0)));
3226
3222
  continue;
3227
3223
  }
3228
3224
  }
3229
- return vn(s);
3225
+ return gn(s);
3230
3226
  }
3231
- function En(e, t) {
3232
- return t ? F(F(F({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3233
- return r[n] = F(F({}, 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;
3234
3230
  }, {})) : e;
3235
3231
  }
3236
- function _n(e, t) {
3232
+ function En(e, t) {
3237
3233
  return t ? Object.keys(e).reduce(function(r, n) {
3238
- return r[n] = En(e[n], t[n]), r;
3239
- }, F({}, e)) : e;
3234
+ return r[n] = yn(e[n], t[n]), r;
3235
+ }, v({}, e)) : e;
3240
3236
  }
3241
- function Me(e) {
3237
+ function Ne(e) {
3242
3238
  return {
3243
3239
  create: function() {
3244
3240
  return {
@@ -3258,33 +3254,33 @@ function xn(e) {
3258
3254
  dateTime: {},
3259
3255
  pluralRules: {}
3260
3256
  }), {
3261
- getNumberFormat: Ie(function() {
3257
+ getNumberFormat: Pe(function() {
3262
3258
  for (var t, r = [], n = 0; n < arguments.length; n++)
3263
3259
  r[n] = arguments[n];
3264
- return new ((t = Intl.NumberFormat).bind.apply(t, Ce([void 0], r, !1)))();
3260
+ return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
3265
3261
  }, {
3266
- cache: Me(e.number),
3267
- strategy: Oe.variadic
3262
+ cache: Ne(e.number),
3263
+ strategy: Ie.variadic
3268
3264
  }),
3269
- getDateTimeFormat: Ie(function() {
3265
+ getDateTimeFormat: Pe(function() {
3270
3266
  for (var t, r = [], n = 0; n < arguments.length; n++)
3271
3267
  r[n] = arguments[n];
3272
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ce([void 0], r, !1)))();
3268
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
3273
3269
  }, {
3274
- cache: Me(e.dateTime),
3275
- strategy: Oe.variadic
3270
+ cache: Ne(e.dateTime),
3271
+ strategy: Ie.variadic
3276
3272
  }),
3277
- getPluralRules: Ie(function() {
3273
+ getPluralRules: Pe(function() {
3278
3274
  for (var t, r = [], n = 0; n < arguments.length; n++)
3279
3275
  r[n] = arguments[n];
3280
- return new ((t = Intl.PluralRules).bind.apply(t, Ce([void 0], r, !1)))();
3276
+ return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
3281
3277
  }, {
3282
- cache: Me(e.pluralRules),
3283
- strategy: Oe.variadic
3278
+ cache: Ne(e.pluralRules),
3279
+ strategy: Ie.variadic
3284
3280
  })
3285
3281
  };
3286
3282
  }
3287
- var Sn = (
3283
+ var _n = (
3288
3284
  /** @class */
3289
3285
  function() {
3290
3286
  function e(t, r, n, i) {
@@ -3299,11 +3295,11 @@ var Sn = (
3299
3295
  if (u.length === 1)
3300
3296
  return u[0].value;
3301
3297
  var l = u.reduce(function(c, d) {
3302
- return !c.length || d.type !== I.literal || typeof c[c.length - 1] != "string" ? c.push(d.value) : c[c.length - 1] += d.value, c;
3298
+ return !c.length || d.type !== C.literal || typeof c[c.length - 1] != "string" ? c.push(d.value) : c[c.length - 1] += d.value, c;
3303
3299
  }, []);
3304
3300
  return l.length <= 1 ? l[0] || "" : l;
3305
3301
  }, this.formatToParts = function(h) {
3306
- 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);
3307
3303
  }, this.resolvedOptions = function() {
3308
3304
  var h;
3309
3305
  return {
@@ -3316,13 +3312,13 @@ var Sn = (
3316
3312
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3317
3313
  var a = i || {};
3318
3314
  a.formatters;
3319
- var s = Ir(a, ["formatters"]);
3320
- this.ast = e.__parse(t, F(F({}, s), { locale: this.resolvedLocale }));
3315
+ var s = Cr(a, ["formatters"]);
3316
+ this.ast = e.__parse(t, v(v({}, s), { locale: this.resolvedLocale }));
3321
3317
  } else
3322
3318
  this.ast = t;
3323
3319
  if (!Array.isArray(this.ast))
3324
3320
  throw new TypeError("A message must be provided as a String or AST.");
3325
- this.formats = _n(e.formats, n), this.formatters = i && i.formatters || xn(this.formatterCache);
3321
+ this.formats = En(e.formats, n), this.formatters = i && i.formatters || xn(this.formatterCache);
3326
3322
  }
3327
3323
  return Object.defineProperty(e, "defaultLocale", {
3328
3324
  get: function() {
@@ -3335,7 +3331,7 @@ var Sn = (
3335
3331
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3336
3332
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3337
3333
  }
3338
- }, e.__parse = pn, e.formats = {
3334
+ }, e.__parse = mn, e.formats = {
3339
3335
  number: {
3340
3336
  integer: {
3341
3337
  maximumFractionDigits: 0
@@ -3396,7 +3392,7 @@ var Sn = (
3396
3392
  }, e;
3397
3393
  }()
3398
3394
  );
3399
- function Tn(e, t) {
3395
+ function Sn(e, t) {
3400
3396
  if (t == null)
3401
3397
  return;
3402
3398
  if (t in e)
@@ -3417,21 +3413,21 @@ function Tn(e, t) {
3417
3413
  n = void 0;
3418
3414
  return n;
3419
3415
  }
3420
- const k = {}, Hn = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), Dt = (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) => {
3421
3417
  if (t == null)
3422
3418
  return;
3423
- if (t in k && e in k[t])
3424
- return k[t][e];
3425
- const r = Be(t);
3419
+ if (t in G && e in G[t])
3420
+ return G[t][e];
3421
+ const r = He(t);
3426
3422
  for (let n = 0; n < r.length; n++) {
3427
3423
  const i = r[n], o = Bn(i, e);
3428
3424
  if (o)
3429
- return Hn(e, t, o);
3425
+ return Tn(e, t, o);
3430
3426
  }
3431
3427
  };
3432
3428
  let Je;
3433
- const se = Te({});
3434
- function An(e) {
3429
+ const oe = _e({});
3430
+ function Hn(e) {
3435
3431
  return Je[e] || null;
3436
3432
  }
3437
3433
  function Ft(e) {
@@ -3440,13 +3436,13 @@ function Ft(e) {
3440
3436
  function Bn(e, t) {
3441
3437
  if (!Ft(e))
3442
3438
  return null;
3443
- const r = An(e);
3444
- return Tn(r, t);
3439
+ const r = Hn(e);
3440
+ return Sn(r, t);
3445
3441
  }
3446
- function wn(e) {
3442
+ function An(e) {
3447
3443
  if (e == null)
3448
3444
  return;
3449
- const t = Be(e);
3445
+ const t = He(e);
3450
3446
  for (let r = 0; r < t.length; r++) {
3451
3447
  const n = t[r];
3452
3448
  if (Ft(n))
@@ -3454,28 +3450,28 @@ function wn(e) {
3454
3450
  }
3455
3451
  }
3456
3452
  function Gt(e, ...t) {
3457
- delete k[e], se.update((r) => (r[e] = Cr.all([r[e] || {}, ...t]), r));
3453
+ delete G[e], oe.update((r) => (r[e] = Ir.all([r[e] || {}, ...t]), r));
3458
3454
  }
3459
- oe(
3460
- [se],
3455
+ ie(
3456
+ [oe],
3461
3457
  ([e]) => Object.keys(e)
3462
3458
  );
3463
- se.subscribe((e) => Je = e);
3464
- const Ee = {};
3465
- function Pn(e, t) {
3466
- 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];
3467
3463
  }
3468
3464
  function kt(e) {
3469
- return Ee[e];
3465
+ return ye[e];
3470
3466
  }
3471
- function Cn(e) {
3472
- return Be(e).map((t) => {
3467
+ function Pn(e) {
3468
+ return He(e).map((t) => {
3473
3469
  const r = kt(t);
3474
3470
  return [t, r ? [...r] : []];
3475
3471
  }).filter(([, t]) => t.length > 0);
3476
3472
  }
3477
- function ze(e) {
3478
- return e == null ? !1 : Be(e).some(
3473
+ function Ve(e) {
3474
+ return e == null ? !1 : He(e).some(
3479
3475
  (t) => {
3480
3476
  var r;
3481
3477
  return (r = kt(t)) == null ? void 0 : r.size;
@@ -3484,25 +3480,25 @@ function ze(e) {
3484
3480
  }
3485
3481
  function In(e, t) {
3486
3482
  return Promise.all(
3487
- t.map((n) => (Pn(e, n), n().then((i) => i.default || i)))
3483
+ t.map((n) => (wn(e, n), n().then((i) => i.default || i)))
3488
3484
  ).then((n) => Gt(e, ...n));
3489
3485
  }
3490
- const ce = {};
3486
+ const he = {};
3491
3487
  function jt(e) {
3492
- if (!ze(e))
3493
- return e in ce ? ce[e] : Promise.resolve();
3494
- const t = Cn(e);
3495
- return ce[e] = Promise.all(
3488
+ if (!Ve(e))
3489
+ return e in he ? he[e] : Promise.resolve();
3490
+ const t = Pn(e);
3491
+ return he[e] = Promise.all(
3496
3492
  t.map(
3497
3493
  ([r, n]) => In(r, n)
3498
3494
  )
3499
3495
  ).then(() => {
3500
- if (ze(e))
3496
+ if (Ve(e))
3501
3497
  return jt(e);
3502
- delete ce[e];
3503
- }), ce[e];
3498
+ delete he[e];
3499
+ }), he[e];
3504
3500
  }
3505
- const On = {
3501
+ const Cn = {
3506
3502
  number: {
3507
3503
  scientific: { notation: "scientific" },
3508
3504
  engineering: { notation: "engineering" },
@@ -3534,138 +3530,138 @@ const On = {
3534
3530
  }, Nn = {
3535
3531
  fallbackLocale: null,
3536
3532
  loadingDelay: 200,
3537
- formats: On,
3533
+ formats: Cn,
3538
3534
  warnOnMissingMessages: !0,
3539
3535
  handleMissingMessage: void 0,
3540
3536
  ignoreTag: !0
3541
3537
  }, Mn = Nn;
3542
- function ne() {
3538
+ function re() {
3543
3539
  return Mn;
3544
3540
  }
3545
- const Le = Te(!1);
3546
- var Ln = Object.defineProperty, Rn = Object.defineProperties, $n = Object.getOwnPropertyDescriptors, lt = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, ht = (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) => {
3547
3543
  for (var r in t || (t = {}))
3548
- Un.call(t, r) && ht(e, r, t[r]);
3544
+ $n.call(t, r) && ht(e, r, t[r]);
3549
3545
  if (lt)
3550
3546
  for (var r of lt(t))
3551
- Dn.call(t, r) && ht(e, r, t[r]);
3547
+ Un.call(t, r) && ht(e, r, t[r]);
3552
3548
  return e;
3553
- }, Gn = (e, t) => Rn(e, $n(t));
3554
- let We;
3555
- const xe = Te(null);
3549
+ }, Fn = (e, t) => Ln(e, Rn(t));
3550
+ let Xe;
3551
+ const Ee = _e(null);
3556
3552
  function ct(e) {
3557
3553
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3558
3554
  }
3559
- function Be(e, t = ne().fallbackLocale) {
3555
+ function He(e, t = re().fallbackLocale) {
3560
3556
  const r = ct(e);
3561
3557
  return t ? [.../* @__PURE__ */ new Set([...r, ...ct(t)])] : r;
3562
3558
  }
3563
- function J() {
3564
- return We ?? void 0;
3559
+ function Z() {
3560
+ return Xe ?? void 0;
3565
3561
  }
3566
- xe.subscribe((e) => {
3567
- We = 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);
3568
3564
  });
3569
- const kn = (e) => {
3570
- if (e && wn(e) && ze(e)) {
3571
- const { loadingDelay: t } = ne();
3565
+ const Gn = (e) => {
3566
+ if (e && An(e) && Ve(e)) {
3567
+ const { loadingDelay: t } = re();
3572
3568
  let r;
3573
- return typeof window < "u" && J() != null && t ? r = window.setTimeout(
3574
- () => Le.set(!0),
3569
+ return typeof window < "u" && Z() != null && t ? r = window.setTimeout(
3570
+ () => Me.set(!0),
3575
3571
  t
3576
- ) : Le.set(!0), jt(e).then(() => {
3577
- xe.set(e);
3572
+ ) : Me.set(!0), jt(e).then(() => {
3573
+ Ee.set(e);
3578
3574
  }).finally(() => {
3579
- clearTimeout(r), Le.set(!1);
3575
+ clearTimeout(r), Me.set(!1);
3580
3576
  });
3581
3577
  }
3582
- return xe.set(e);
3583
- }, W = Gn(Fn({}, xe), {
3584
- set: kn
3585
- }), we = (e) => {
3578
+ return Ee.set(e);
3579
+ }, z = Fn(Dn({}, Ee), {
3580
+ set: Gn
3581
+ }), Be = (e) => {
3586
3582
  const t = /* @__PURE__ */ Object.create(null);
3587
3583
  return (n) => {
3588
3584
  const i = JSON.stringify(n);
3589
3585
  return i in t ? t[i] : t[i] = e(n);
3590
3586
  };
3591
3587
  };
3592
- var jn = Object.defineProperty, Se = Object.getOwnPropertySymbols, Vt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable, ft = (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) => {
3593
3589
  for (var r in t || (t = {}))
3594
3590
  Vt.call(t, r) && ft(e, r, t[r]);
3595
- if (Se)
3596
- for (var r of Se(t))
3591
+ if (xe)
3592
+ for (var r of xe(t))
3597
3593
  Xt.call(t, r) && ft(e, r, t[r]);
3598
3594
  return e;
3599
- }, ae = (e, t) => {
3595
+ }, se = (e, t) => {
3600
3596
  var r = {};
3601
3597
  for (var n in e)
3602
3598
  Vt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3603
- if (e != null && Se)
3604
- for (var n of Se(e))
3599
+ if (e != null && xe)
3600
+ for (var n of xe(e))
3605
3601
  t.indexOf(n) < 0 && Xt.call(e, n) && (r[n] = e[n]);
3606
3602
  return r;
3607
3603
  };
3608
- const pe = (e, t) => {
3609
- const { formats: r } = ne();
3604
+ const me = (e, t) => {
3605
+ const { formats: r } = re();
3610
3606
  if (e in r && t in r[e])
3611
3607
  return r[e][t];
3612
3608
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3613
- }, Vn = we(
3609
+ }, jn = Be(
3614
3610
  (e) => {
3615
- var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3611
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3616
3612
  if (r == null)
3617
3613
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3618
- return n && (i = pe("number", n)), new Intl.NumberFormat(r, i);
3614
+ return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
3619
3615
  }
3620
- ), Xn = we(
3616
+ ), Vn = Be(
3621
3617
  (e) => {
3622
- var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3618
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3623
3619
  if (r == null)
3624
3620
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3625
- return n ? i = pe("date", n) : Object.keys(i).length === 0 && (i = pe("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);
3626
3622
  }
3627
- ), zn = we(
3623
+ ), Xn = Be(
3628
3624
  (e) => {
3629
- var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3625
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3630
3626
  if (r == null)
3631
3627
  throw new Error(
3632
3628
  '[svelte-i18n] A "locale" must be set to format time values'
3633
3629
  );
3634
- return n ? i = pe("time", n) : Object.keys(i).length === 0 && (i = pe("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);
3635
3631
  }
3636
- ), Wn = (e = {}) => {
3632
+ ), zn = (e = {}) => {
3637
3633
  var t = e, {
3638
- locale: r = J()
3639
- } = t, n = ae(t, [
3634
+ locale: r = Z()
3635
+ } = t, n = se(t, [
3640
3636
  "locale"
3641
3637
  ]);
3642
- return Vn(Qe({ locale: r }, n));
3643
- }, Zn = (e = {}) => {
3638
+ return jn(Qe({ locale: r }, n));
3639
+ }, Wn = (e = {}) => {
3644
3640
  var t = e, {
3645
- locale: r = J()
3646
- } = t, n = ae(t, [
3641
+ locale: r = Z()
3642
+ } = t, n = se(t, [
3647
3643
  "locale"
3648
3644
  ]);
3649
- return Xn(Qe({ locale: r }, n));
3650
- }, Jn = (e = {}) => {
3645
+ return Vn(Qe({ locale: r }, n));
3646
+ }, Zn = (e = {}) => {
3651
3647
  var t = e, {
3652
- locale: r = J()
3653
- } = t, n = ae(t, [
3648
+ locale: r = Z()
3649
+ } = t, n = se(t, [
3654
3650
  "locale"
3655
3651
  ]);
3656
- return zn(Qe({ locale: r }, n));
3657
- }, Qn = we(
3652
+ return Xn(Qe({ locale: r }, n));
3653
+ }, Jn = Be(
3658
3654
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3659
- (e, t = J()) => new Sn(e, t, ne().formats, {
3660
- ignoreTag: ne().ignoreTag
3655
+ (e, t = Z()) => new _n(e, t, re().formats, {
3656
+ ignoreTag: re().ignoreTag
3661
3657
  })
3662
- ), qn = (e, t = {}) => {
3658
+ ), Qn = (e, t = {}) => {
3663
3659
  var r, n, i, o;
3664
3660
  let a = t;
3665
3661
  typeof e == "object" && (a = e, e = a.id);
3666
3662
  const {
3667
3663
  values: s,
3668
- locale: h = J(),
3664
+ locale: h = Z(),
3669
3665
  default: u
3670
3666
  } = a;
3671
3667
  if (h == null)
@@ -3674,7 +3670,7 @@ const pe = (e, t) => {
3674
3670
  );
3675
3671
  let l = Dt(e, h);
3676
3672
  if (!l)
3677
- l = (o = (i = (n = (r = ne()).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;
3678
3674
  else if (typeof l != "string")
3679
3675
  return console.warn(
3680
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.`
@@ -3683,7 +3679,7 @@ const pe = (e, t) => {
3683
3679
  return l;
3684
3680
  let c = l;
3685
3681
  try {
3686
- c = Qn(l, h).format(s);
3682
+ c = Jn(l, h).format(s);
3687
3683
  } catch (d) {
3688
3684
  d instanceof Error && console.warn(
3689
3685
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3691,14 +3687,14 @@ const pe = (e, t) => {
3691
3687
  );
3692
3688
  }
3693
3689
  return c;
3694
- }, Yn = (e, t) => Jn(t).format(e), Kn = (e, t) => Zn(t).format(e), ei = (e, t) => Wn(t).format(e), ti = (e, t = J()) => Dt(e, t), ri = oe([W, se], () => qn);
3695
- oe([W], () => Yn);
3696
- oe([W], () => Kn);
3697
- oe([W], () => ei);
3698
- oe([W, se], () => ti);
3699
- function ni({ withLocale: e, translations: t }) {
3700
- W.subscribe((r) => {
3701
- r == null && (se.set(t), W.set(e));
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 }) {
3696
+ z.subscribe((r) => {
3697
+ r == null && (oe.set(t), z.set(e));
3702
3698
  });
3703
3699
  }
3704
3700
  function dt(e, t) {
@@ -3811,13 +3807,13 @@ const mt = {
3811
3807
  loginSMSHint: "A new verification code has been sent to your phone number"
3812
3808
  }
3813
3809
  };
3814
- function ii(e, t) {
3810
+ function ni(e, t) {
3815
3811
  if (e) {
3816
3812
  const r = document.createElement("style");
3817
3813
  r.innerHTML = t, e.appendChild(r);
3818
3814
  }
3819
3815
  }
3820
- function oi(e, t) {
3816
+ function ii(e, t) {
3821
3817
  const r = new URL(t);
3822
3818
  fetch(r.href).then((n) => n.text()).then((n) => {
3823
3819
  const i = document.createElement("style");
@@ -3826,7 +3822,7 @@ function oi(e, t) {
3826
3822
  console.error("There was an error while trying to load client styling from URL", n);
3827
3823
  });
3828
3824
  }
3829
- function si(e, t, r) {
3825
+ function oi(e, t, r) {
3830
3826
  if (window.emMessageBus) {
3831
3827
  const n = document.createElement("style");
3832
3828
  window.emMessageBus.subscribe(t, (i) => {
@@ -3834,50 +3830,50 @@ function si(e, t, r) {
3834
3830
  });
3835
3831
  }
3836
3832
  }
3837
- function ai(e) {
3833
+ function si(e) {
3838
3834
  Zt(e, "svelte-c25n4u", "*,*::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, #22B04E));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.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, #22B04E));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));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))}");
3839
3835
  }
3840
- function ui(e) {
3836
+ function ai(e) {
3841
3837
  let t = (
3842
3838
  /*$_*/
3843
3839
  e[5]("errorTitle") + ""
3844
3840
  ), r;
3845
3841
  return {
3846
3842
  c() {
3847
- r = M(t);
3843
+ r = O(t);
3848
3844
  },
3849
3845
  m(n, i) {
3850
- Z(n, r, i);
3846
+ W(n, r, i);
3851
3847
  },
3852
3848
  p(n, i) {
3853
3849
  i & /*$_*/
3854
3850
  32 && t !== (t = /*$_*/
3855
- n[5]("errorTitle") + "") && G(r, t);
3851
+ n[5]("errorTitle") + "") && F(r, t);
3856
3852
  },
3857
3853
  d(n) {
3858
- n && j(r);
3854
+ n && k(r);
3859
3855
  }
3860
3856
  };
3861
3857
  }
3862
- function li(e) {
3858
+ function ui(e) {
3863
3859
  let t = (
3864
3860
  /*$_*/
3865
3861
  e[5]("title") + ""
3866
3862
  ), r;
3867
3863
  return {
3868
3864
  c() {
3869
- r = M(t);
3865
+ r = O(t);
3870
3866
  },
3871
3867
  m(n, i) {
3872
- Z(n, r, i);
3868
+ W(n, r, i);
3873
3869
  },
3874
3870
  p(n, i) {
3875
3871
  i & /*$_*/
3876
3872
  32 && t !== (t = /*$_*/
3877
- n[5]("title") + "") && G(r, t);
3873
+ n[5]("title") + "") && F(r, t);
3878
3874
  },
3879
3875
  d(n) {
3880
- n && j(r);
3876
+ n && k(r);
3881
3877
  }
3882
3878
  };
3883
3879
  }
@@ -3888,18 +3884,18 @@ function pt(e) {
3888
3884
  ), n;
3889
3885
  return {
3890
3886
  c() {
3891
- t = N("p"), n = M(r), A(t, "class", "InvalidInput");
3887
+ t = M("p"), n = O(r), B(t, "class", "InvalidInput");
3892
3888
  },
3893
3889
  m(i, o) {
3894
- Z(i, t, o), y(t, n);
3890
+ W(i, t, o), E(t, n);
3895
3891
  },
3896
3892
  p(i, o) {
3897
3893
  o & /*$_*/
3898
3894
  32 && r !== (r = /*$_*/
3899
- i[5]("smsCodeError") + "") && G(n, r);
3895
+ i[5]("smsCodeError") + "") && F(n, r);
3900
3896
  },
3901
3897
  d(i) {
3902
- i && j(t);
3898
+ i && k(t);
3903
3899
  }
3904
3900
  };
3905
3901
  }
@@ -3910,18 +3906,18 @@ function bt(e) {
3910
3906
  ), n;
3911
3907
  return {
3912
3908
  c() {
3913
- t = N("p"), n = M(r), A(t, "class", "SmsVerificationResendMessage");
3909
+ t = M("p"), n = O(r), B(t, "class", "SmsVerificationResendMessage");
3914
3910
  },
3915
3911
  m(i, o) {
3916
- Z(i, t, o), y(t, n);
3912
+ W(i, t, o), E(t, n);
3917
3913
  },
3918
3914
  p(i, o) {
3919
3915
  o & /*$_*/
3920
3916
  32 && r !== (r = /*$_*/
3921
- i[5]("resendMessage") + "") && G(n, r);
3917
+ i[5]("resendMessage") + "") && F(n, r);
3922
3918
  },
3923
3919
  d(i) {
3924
- i && j(t);
3920
+ i && k(t);
3925
3921
  }
3926
3922
  };
3927
3923
  }
@@ -3932,47 +3928,47 @@ function gt(e) {
3932
3928
  ), i, o, a;
3933
3929
  return {
3934
3930
  c() {
3935
- t = N("span"), r = M("(0:"), i = M(n), o = M(
3931
+ t = M("span"), r = O("(0:"), i = O(n), o = O(
3936
3932
  /*secondsLeft*/
3937
3933
  e[4]
3938
- ), a = M(")"), A(t, "class", "SmsVerificationResendTimer");
3934
+ ), a = O(")"), B(t, "class", "SmsVerificationResendTimer");
3939
3935
  },
3940
3936
  m(s, h) {
3941
- Z(s, t, h), y(t, r), y(t, i), y(t, o), y(t, a);
3937
+ W(s, t, h), E(t, r), E(t, i), E(t, o), E(t, a);
3942
3938
  },
3943
3939
  p(s, h) {
3944
3940
  h & /*secondsLeft*/
3945
3941
  16 && n !== (n = /*secondsLeft*/
3946
- s[4] < 10 ? "0" : "") && G(i, n), h & /*secondsLeft*/
3947
- 16 && G(
3942
+ s[4] < 10 ? "0" : "") && F(i, n), h & /*secondsLeft*/
3943
+ 16 && F(
3948
3944
  o,
3949
3945
  /*secondsLeft*/
3950
3946
  s[4]
3951
3947
  );
3952
3948
  },
3953
3949
  d(s) {
3954
- s && j(t);
3950
+ s && k(t);
3955
3951
  }
3956
3952
  };
3957
3953
  }
3958
- function hi(e) {
3954
+ function li(e) {
3959
3955
  let t, r, n, i, o, a = (
3960
3956
  /*$_*/
3961
3957
  e[5]("code") + ""
3962
- ), s, h, u, l, c, d, g, v, _, T, H = (
3958
+ ), s, h, u, l, c, d, g, y, _, T, H = (
3963
3959
  /*$_*/
3964
3960
  e[5]("activate") + ""
3965
- ), L, B, x, O = (
3961
+ ), L, A, S, N = (
3966
3962
  /*$_*/
3967
3963
  e[5]("resend") + ""
3968
- ), D, V, ue, le;
3969
- function he(p, C) {
3964
+ ), D, j, ae, ue;
3965
+ function le(p, I) {
3970
3966
  return (
3971
3967
  /*isSmsValid*/
3972
- p[2] ? li : ui
3968
+ p[2] ? ui : ai
3973
3969
  );
3974
3970
  }
3975
- let X = he(e), R = X(e), w = !/*isSmsValid*/
3971
+ let V = le(e), R = V(e), w = !/*isSmsValid*/
3976
3972
  e[2] && pt(e), P = (
3977
3973
  /*timer*/
3978
3974
  e[3] && bt(e)
@@ -3982,81 +3978,81 @@ function hi(e) {
3982
3978
  );
3983
3979
  return {
3984
3980
  c() {
3985
- t = N("div"), r = N("h3"), R.c(), n = z(), i = N("div"), o = N("label"), s = M(a), h = M(":"), u = N("span"), u.textContent = "*", l = z(), c = N("input"), d = z(), w && w.c(), v = z(), P && P.c(), _ = z(), T = N("button"), L = M(H), B = z(), x = N("button"), D = M(O), V = z(), 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*/
3986
- e[2] ? "" : "InvalidField")), A(T, "class", "Button SmsVerificationValidate"), A(x, "class", "Button SmsVerificationResend"), x.disabled = /*timer*/
3987
- e[3], A(t, "class", "Container SmsVerificationContainer");
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), A = X(), S = M("button"), D = O(N), j = X(), f && f.c(), B(r, "class", "Title"), B(u, "class", "FormRequired"), B(o, "for", "SmsCode"), B(c, "type", "text"), B(c, "id", "SmsCode"), B(c, "inputmode", "numeric"), B(c, "pattern", "[0-9]*"), B(c, "maxlength", "6"), B(i, "class", g = "Field SmsVerificationField " + (/*isSmsValid*/
3982
+ e[2] ? "" : "InvalidField")), B(T, "class", "Button SmsVerificationValidate"), B(S, "class", "Button SmsVerificationResend"), S.disabled = /*timer*/
3983
+ e[3], B(t, "class", "Container SmsVerificationContainer");
3988
3984
  },
3989
- m(p, C) {
3990
- Z(p, t, C), y(t, r), R.m(r, null), y(t, n), y(t, i), y(i, o), y(o, s), y(o, h), y(o, u), y(i, l), y(i, c), Ye(
3985
+ m(p, I) {
3986
+ W(p, t, I), 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(
3991
3987
  c,
3992
3988
  /*smsCode*/
3993
3989
  e[1]
3994
- ), y(i, d), w && w.m(i, null), y(t, v), P && P.m(t, null), y(t, _), y(t, T), y(T, L), y(t, B), y(t, x), y(x, D), y(x, V), f && f.m(x, null), e[20](t), ue || (le = [
3995
- be(
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, A), E(t, S), E(S, D), E(S, j), f && f.m(S, null), e[20](t), ae || (ue = [
3991
+ pe(
3996
3992
  c,
3997
3993
  "input",
3998
3994
  /*input_input_handler*/
3999
3995
  e[18]
4000
3996
  ),
4001
- be(
3997
+ pe(
4002
3998
  c,
4003
3999
  "keydown",
4004
4000
  /*keydown_handler*/
4005
4001
  e[19]
4006
4002
  ),
4007
- be(
4003
+ pe(
4008
4004
  T,
4009
4005
  "click",
4010
4006
  /*activateUser*/
4011
4007
  e[6]
4012
4008
  ),
4013
- be(
4014
- x,
4009
+ pe(
4010
+ S,
4015
4011
  "click",
4016
4012
  /*resendCode*/
4017
4013
  e[7]
4018
4014
  )
4019
- ], ue = !0);
4015
+ ], ae = !0);
4020
4016
  },
4021
- p(p, [C]) {
4022
- X === (X = he(p)) && R ? R.p(p, C) : (R.d(1), R = X(p), R && (R.c(), R.m(r, null))), C & /*$_*/
4017
+ p(p, [I]) {
4018
+ V === (V = le(p)) && R ? R.p(p, I) : (R.d(1), R = V(p), R && (R.c(), R.m(r, null))), I & /*$_*/
4023
4019
  32 && a !== (a = /*$_*/
4024
- p[5]("code") + "") && G(s, a), C & /*smsCode*/
4020
+ p[5]("code") + "") && F(s, a), I & /*smsCode*/
4025
4021
  2 && c.value !== /*smsCode*/
4026
4022
  p[1] && Ye(
4027
4023
  c,
4028
4024
  /*smsCode*/
4029
4025
  p[1]
4030
4026
  ), /*isSmsValid*/
4031
- p[2] ? w && (w.d(1), w = null) : w ? w.p(p, C) : (w = pt(p), w.c(), w.m(i, null)), C & /*isSmsValid*/
4027
+ p[2] ? w && (w.d(1), w = null) : w ? w.p(p, I) : (w = pt(p), w.c(), w.m(i, null)), I & /*isSmsValid*/
4032
4028
  4 && g !== (g = "Field SmsVerificationField " + (/*isSmsValid*/
4033
- p[2] ? "" : "InvalidField")) && A(i, "class", g), /*timer*/
4034
- p[3] ? P ? P.p(p, C) : (P = bt(p), P.c(), P.m(t, _)) : P && (P.d(1), P = null), C & /*$_*/
4029
+ p[2] ? "" : "InvalidField")) && B(i, "class", g), /*timer*/
4030
+ p[3] ? P ? P.p(p, I) : (P = bt(p), P.c(), P.m(t, _)) : P && (P.d(1), P = null), I & /*$_*/
4035
4031
  32 && H !== (H = /*$_*/
4036
- p[5]("activate") + "") && G(L, H), C & /*$_*/
4037
- 32 && O !== (O = /*$_*/
4038
- p[5]("resend") + "") && G(D, O), /*timer*/
4039
- p[3] ? f ? f.p(p, C) : (f = gt(p), f.c(), f.m(x, null)) : f && (f.d(1), f = null), C & /*timer*/
4040
- 8 && (x.disabled = /*timer*/
4032
+ p[5]("activate") + "") && F(L, H), I & /*$_*/
4033
+ 32 && N !== (N = /*$_*/
4034
+ p[5]("resend") + "") && F(D, N), /*timer*/
4035
+ p[3] ? f ? f.p(p, I) : (f = gt(p), f.c(), f.m(S, null)) : f && (f.d(1), f = null), I & /*timer*/
4036
+ 8 && (S.disabled = /*timer*/
4041
4037
  p[3]);
4042
4038
  },
4043
4039
  i: U,
4044
4040
  o: U,
4045
4041
  d(p) {
4046
- p && j(t), R.d(), w && w.d(), P && P.d(), f && f.d(), e[20](null), ue = !1, ie(le);
4042
+ p && k(t), R.d(), w && w.d(), P && P.d(), f && f.d(), e[20](null), ae = !1, ne(ue);
4047
4043
  }
4048
4044
  };
4049
4045
  }
4050
- function ci(e, t, r) {
4046
+ function hi(e, t, r) {
4051
4047
  let n;
4052
- Wt(e, ri, (f) => r(5, n = f));
4053
- 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, v = !0, _ = !1, T, H, L = +localStorage.getItem("smsTimer") || 0, B = Date.now() / 1e3 - L, x = 60 - Math.floor(B);
4054
- const O = { numeric: /^[0-9]{0,6}$/ };
4055
- ni({ withLocale: "en", translations: {} });
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, A = Date.now() / 1e3 - L, S = 60 - Math.floor(A);
4050
+ const N = { numeric: /^[0-9]{0,6}$/ };
4051
+ ri({ withLocale: "en", translations: {} });
4056
4052
  const D = () => {
4057
4053
  fetch(d).then((p) => p.json()).then((p) => {
4058
- Object.keys(p).forEach((C) => {
4059
- dt(C, p[C]);
4054
+ Object.keys(p).forEach((I) => {
4055
+ dt(I, p[I]);
4060
4056
  });
4061
4057
  }).catch((p) => {
4062
4058
  console.log(p);
@@ -4065,7 +4061,7 @@ function ci(e, t, r) {
4065
4061
  Object.keys(mt).forEach((f) => {
4066
4062
  dt(f, mt[f]);
4067
4063
  });
4068
- const V = async () => {
4064
+ const j = async () => {
4069
4065
  try {
4070
4066
  if ((await fetch(`${i}/v1/player/${a}/activateSMS?tokenId=${o}&validationCode=${g}`, {
4071
4067
  headers: {
@@ -4073,7 +4069,7 @@ function ci(e, t, r) {
4073
4069
  accept: "application/json"
4074
4070
  }
4075
4071
  })).ok)
4076
- r(2, v = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
4072
+ r(2, y = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
4077
4073
  else
4078
4074
  throw window.postMessage(
4079
4075
  {
@@ -4084,12 +4080,12 @@ function ci(e, t, r) {
4084
4080
  }
4085
4081
  },
4086
4082
  window.location.href
4087
- ), r(2, v = !1), new Error("Could not activate user");
4083
+ ), r(2, y = !1), new Error("Could not activate user");
4088
4084
  } catch (f) {
4089
4085
  console.log(f);
4090
4086
  }
4091
- }, ue = async () => {
4092
- localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), he();
4087
+ }, ae = async () => {
4088
+ localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), le();
4093
4089
  try {
4094
4090
  const f = await fetch(`${i}/v1/player/sms/token`, {
4095
4091
  method: "POST",
@@ -4104,38 +4100,38 @@ function ci(e, t, r) {
4104
4100
  })
4105
4101
  }), p = await f.json();
4106
4102
  if (f.ok)
4107
- r(9, o = p.id), _ = !1, le();
4103
+ r(9, o = p.id), _ = !1, ue();
4108
4104
  else
4109
4105
  throw _ = !0, new Error("Failed to fetch");
4110
4106
  } catch (f) {
4111
4107
  _ = !0, console.error(f);
4112
4108
  }
4109
+ }, ue = () => {
4110
+ S > 0 ? r(4, S--, S) : (clearInterval(T), r(3, T = !1), r(4, S = 60));
4113
4111
  }, le = () => {
4114
- x > 0 ? r(4, x--, x) : (clearInterval(T), r(3, T = !1), r(4, x = 60));
4115
- }, he = () => {
4116
- B < 60 && r(3, T = setInterval(
4112
+ A < 60 && r(3, T = setInterval(
4117
4113
  () => {
4118
- le();
4114
+ ue();
4119
4115
  },
4120
4116
  1e3
4121
4117
  ));
4122
- }, X = (f) => {
4123
- !O.numeric.test(f.key) && f.keyCode !== 8 && f.keyCode !== 9 && f.keyCode !== 46 && f.preventDefault();
4118
+ }, V = (f) => {
4119
+ !N.numeric.test(f.key) && f.keyCode !== 8 && f.keyCode !== 9 && f.keyCode !== 46 && f.preventDefault();
4124
4120
  };
4125
4121
  er(() => {
4126
4122
  if (!a || !h) {
4127
4123
  let f = JSON.parse(localStorage.getItem("playerData"));
4128
4124
  r(10, a = f.playerid), r(11, h = f.number);
4129
4125
  }
4130
- return he(), () => {
4126
+ return le(), () => {
4131
4127
  };
4132
4128
  });
4133
4129
  function R() {
4134
4130
  g = this.value, r(1, g);
4135
4131
  }
4136
- const w = (f) => X(f);
4132
+ const w = (f) => V(f);
4137
4133
  function P(f) {
4138
- Re[f ? "unshift" : "push"](() => {
4134
+ Oe[f ? "unshift" : "push"](() => {
4139
4135
  H = f, r(0, H);
4140
4136
  });
4141
4137
  }
@@ -4144,20 +4140,20 @@ function ci(e, t, r) {
4144
4140
  }, e.$$.update = () => {
4145
4141
  e.$$.dirty & /*tokenid, playerid, endpoint*/
4146
4142
  5632, e.$$.dirty & /*clientstyling, customStylingContainer*/
4147
- 32769 && l && H && ii(H, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4148
- 65537 && c && H && oi(H, c), e.$$.dirty & /*mbsource, customStylingContainer*/
4149
- 16385 && u && H && si(H, `${u}.Style`), e.$$.dirty & /*translationurl*/
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*/
4150
4146
  131072 && d && D();
4151
4147
  }, [
4152
4148
  H,
4153
4149
  g,
4154
- v,
4150
+ y,
4155
4151
  T,
4156
- x,
4152
+ S,
4157
4153
  n,
4154
+ j,
4155
+ ae,
4158
4156
  V,
4159
- ue,
4160
- X,
4161
4157
  o,
4162
4158
  a,
4163
4159
  h,
@@ -4172,13 +4168,13 @@ function ci(e, t, r) {
4172
4168
  P
4173
4169
  ];
4174
4170
  }
4175
- class fi extends fr {
4171
+ class ci extends fr {
4176
4172
  constructor(t) {
4177
4173
  super(), hr(
4178
4174
  this,
4179
4175
  t,
4180
- ci,
4181
4176
  hi,
4177
+ li,
4182
4178
  yt,
4183
4179
  {
4184
4180
  endpoint: 12,
@@ -4191,7 +4187,7 @@ class fi extends fr {
4191
4187
  clientstylingurl: 16,
4192
4188
  translationurl: 17
4193
4189
  },
4194
- ai
4190
+ si
4195
4191
  );
4196
4192
  }
4197
4193
  get endpoint() {
@@ -4249,7 +4245,7 @@ class fi extends fr {
4249
4245
  this.$$set({ translationurl: t }), $();
4250
4246
  }
4251
4247
  }
4252
- cr(fi, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4248
+ cr(ci, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4253
4249
  export {
4254
- fi as G
4250
+ ci as G
4255
4251
  };