@everymatrix/general-player-sms-verification-form 1.54.12 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- var qt = Object.defineProperty, Yt = Object.defineProperties;
2
- var Kt = Object.getOwnPropertyDescriptors;
3
- var Ke = Object.getOwnPropertySymbols;
4
- var er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable;
5
- var Ce = (e, t, r) => t in e ? qt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
1
+ var Qt = Object.defineProperty, qt = Object.defineProperties;
2
+ var Yt = Object.getOwnPropertyDescriptors;
3
+ var Ye = Object.getOwnPropertySymbols;
4
+ var Kt = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable;
5
+ var Pe = (e, t, r) => t in e ? Qt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- er.call(t, r) && Ce(e, r, t[r]);
8
- if (Ke)
9
- for (var r of Ke(t))
10
- tr.call(t, r) && Ce(e, r, t[r]);
7
+ Kt.call(t, r) && Pe(e, r, t[r]);
8
+ if (Ye)
9
+ for (var r of Ye(t))
10
+ er.call(t, r) && Pe(e, r, t[r]);
11
11
  return e;
12
- }, tt = (e, t) => Yt(e, Kt(t));
13
- var $ = (e, t, r) => Ce(e, typeof t != "symbol" ? t + "" : t, r);
14
- var ge = (e, t, r) => new Promise((n, i) => {
12
+ }, et = (e, t) => qt(e, Yt(t));
13
+ var $ = (e, t, r) => Pe(e, typeof t != "symbol" ? t + "" : t, r);
14
+ var be = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (l) => {
16
16
  try {
17
17
  a(r.next(l));
@@ -27,49 +27,49 @@ var ge = (e, t, r) => new Promise((n, i) => {
27
27
  }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
28
28
  a((r = r.apply(e, t)).next());
29
29
  });
30
- function U() {
30
+ function D() {
31
31
  }
32
- function St(e) {
32
+ function _t(e) {
33
33
  return e();
34
34
  }
35
- function rt() {
35
+ function tt() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function se(e) {
39
- e.forEach(St);
38
+ function ie(e) {
39
+ e.forEach(_t);
40
40
  }
41
- function Qe(e) {
41
+ function Je(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function Tt(e, t) {
44
+ function St(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function rr(e) {
47
+ function tr(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function Ht(e, ...t) {
50
+ function Tt(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const n of t)
53
53
  n(void 0);
54
- return U;
54
+ return D;
55
55
  }
56
56
  const r = e.subscribe(...t);
57
57
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
58
  }
59
- function nr(e, t, r) {
60
- e.$$.on_destroy.push(Ht(t, r));
59
+ function rr(e, t, r) {
60
+ e.$$.on_destroy.push(Tt(t, r));
61
61
  }
62
62
  function E(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
- function ir(e, t, r) {
66
- const n = or(e);
65
+ function nr(e, t, r) {
66
+ const n = ir(e);
67
67
  if (!n.getElementById(t)) {
68
- const i = M("style");
69
- i.id = t, i.textContent = r, sr(n, i);
68
+ const i = O("style");
69
+ i.id = t, i.textContent = r, or(n, i);
70
70
  }
71
71
  }
72
- function or(e) {
72
+ function ir(e) {
73
73
  if (!e) return document;
74
74
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
75
75
  return t && /** @type {ShadowRoot} */
@@ -78,7 +78,7 @@ function or(e) {
78
78
  t
79
79
  ) : e.ownerDocument;
80
80
  }
81
- function sr(e, t) {
81
+ function or(e, t) {
82
82
  return E(
83
83
  /** @type {Document} */
84
84
  e.head || e,
@@ -91,32 +91,32 @@ function Z(e, t, r) {
91
91
  function j(e) {
92
92
  e.parentNode && e.parentNode.removeChild(e);
93
93
  }
94
- function M(e) {
94
+ function O(e) {
95
95
  return document.createElement(e);
96
96
  }
97
- function L(e) {
97
+ function M(e) {
98
98
  return document.createTextNode(e);
99
99
  }
100
100
  function z() {
101
- return L(" ");
101
+ return M(" ");
102
102
  }
103
- function ve(e, t, r, n) {
103
+ function ge(e, t, r, n) {
104
104
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
105
105
  }
106
106
  function A(e, t, r) {
107
107
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
108
108
  }
109
- function ar(e) {
109
+ function sr(e) {
110
110
  return Array.from(e.childNodes);
111
111
  }
112
112
  function G(e, t) {
113
113
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
114
114
  t);
115
115
  }
116
- function nt(e, t) {
116
+ function rt(e, t) {
117
117
  e.value = t == null ? "" : t;
118
118
  }
119
- function ur(e) {
119
+ function ar(e) {
120
120
  const t = {};
121
121
  return e.childNodes.forEach(
122
122
  /** @param {Element} node */
@@ -125,93 +125,93 @@ function ur(e) {
125
125
  }
126
126
  ), t;
127
127
  }
128
- let fe;
129
- function ce(e) {
130
- fe = e;
128
+ let de;
129
+ function fe(e) {
130
+ de = e;
131
131
  }
132
- function lr() {
133
- if (!fe) throw new Error("Function called outside component initialization");
134
- return fe;
132
+ function ur() {
133
+ if (!de) throw new Error("Function called outside component initialization");
134
+ return de;
135
135
  }
136
- function hr(e) {
137
- lr().$$.on_mount.push(e);
136
+ function lr(e) {
137
+ ur().$$.on_mount.push(e);
138
138
  }
139
- const ee = [], Ue = [];
140
- let te = [];
141
- const it = [], cr = /* @__PURE__ */ Promise.resolve();
142
- let De = !1;
143
- function fr() {
144
- De || (De = !0, cr.then(F));
139
+ const Y = [], $e = [];
140
+ let K = [];
141
+ const nt = [], hr = /* @__PURE__ */ Promise.resolve();
142
+ let Ue = !1;
143
+ function cr() {
144
+ Ue || (Ue = !0, hr.then(U));
145
145
  }
146
- function Fe(e) {
147
- te.push(e);
146
+ function De(e) {
147
+ K.push(e);
148
148
  }
149
- const Ie = /* @__PURE__ */ new Set();
150
- let Y = 0;
151
- function F() {
152
- if (Y !== 0)
149
+ const Ce = /* @__PURE__ */ new Set();
150
+ let Q = 0;
151
+ function U() {
152
+ if (Q !== 0)
153
153
  return;
154
- const e = fe;
154
+ const e = de;
155
155
  do {
156
156
  try {
157
- for (; Y < ee.length; ) {
158
- const t = ee[Y];
159
- Y++, ce(t), dr(t.$$);
157
+ for (; Q < Y.length; ) {
158
+ const t = Y[Q];
159
+ Q++, fe(t), fr(t.$$);
160
160
  }
161
161
  } catch (t) {
162
- throw ee.length = 0, Y = 0, t;
162
+ throw Y.length = 0, Q = 0, t;
163
163
  }
164
- for (ce(null), ee.length = 0, Y = 0; Ue.length; ) Ue.pop()();
165
- for (let t = 0; t < te.length; t += 1) {
166
- const r = te[t];
167
- Ie.has(r) || (Ie.add(r), r());
164
+ for (fe(null), Y.length = 0, Q = 0; $e.length; ) $e.pop()();
165
+ for (let t = 0; t < K.length; t += 1) {
166
+ const r = K[t];
167
+ Ce.has(r) || (Ce.add(r), r());
168
168
  }
169
- te.length = 0;
170
- } while (ee.length);
171
- for (; it.length; )
172
- it.pop()();
173
- De = !1, Ie.clear(), ce(e);
169
+ K.length = 0;
170
+ } while (Y.length);
171
+ for (; nt.length; )
172
+ nt.pop()();
173
+ Ue = !1, Ce.clear(), fe(e);
174
174
  }
175
- function dr(e) {
175
+ function fr(e) {
176
176
  if (e.fragment !== null) {
177
- e.update(), se(e.before_update);
177
+ e.update(), ie(e.before_update);
178
178
  const t = e.dirty;
179
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Fe);
179
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(De);
180
180
  }
181
181
  }
182
- function mr(e) {
182
+ function dr(e) {
183
183
  const t = [], r = [];
184
- te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), te = t;
184
+ K.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), K = t;
185
185
  }
186
- const pr = /* @__PURE__ */ new Set();
187
- function br(e, t) {
188
- e && e.i && (pr.delete(e), e.i(t));
186
+ const mr = /* @__PURE__ */ new Set();
187
+ function pr(e, t) {
188
+ e && e.i && (mr.delete(e), e.i(t));
189
189
  }
190
- function gr(e, t, r) {
190
+ function br(e, t, r) {
191
191
  const { fragment: n, after_update: i } = e.$$;
192
- n && n.m(t, r), Fe(() => {
193
- const o = e.$$.on_mount.map(St).filter(Qe);
194
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
195
- }), i.forEach(Fe);
192
+ n && n.m(t, r), De(() => {
193
+ const o = e.$$.on_mount.map(_t).filter(Je);
194
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
195
+ }), i.forEach(De);
196
196
  }
197
- function vr(e, t) {
197
+ function gr(e, t) {
198
198
  const r = e.$$;
199
- r.fragment !== null && (mr(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
199
+ r.fragment !== null && (dr(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
200
200
  }
201
- function yr(e, t) {
202
- e.$$.dirty[0] === -1 && (ee.push(e), fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
201
+ function vr(e, t) {
202
+ e.$$.dirty[0] === -1 && (Y.push(e), cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
203
203
  }
204
- function Er(e, t, r, n, i, o, s = null, a = [-1]) {
205
- const l = fe;
206
- ce(e);
204
+ function yr(e, t, r, n, i, o, s = null, a = [-1]) {
205
+ const l = de;
206
+ fe(e);
207
207
  const u = e.$$ = {
208
208
  fragment: null,
209
209
  ctx: [],
210
210
  // state
211
211
  props: o,
212
- update: U,
212
+ update: D,
213
213
  not_equal: i,
214
- bound: rt(),
214
+ bound: tt(),
215
215
  // lifecycle
216
216
  on_mount: [],
217
217
  on_destroy: [],
@@ -220,28 +220,28 @@ function Er(e, t, r, n, i, o, s = null, a = [-1]) {
220
220
  after_update: [],
221
221
  context: new Map(t.context || (l ? l.$$.context : [])),
222
222
  // everything else
223
- callbacks: rt(),
223
+ callbacks: tt(),
224
224
  dirty: a,
225
225
  skip_bound: !1,
226
226
  root: t.target || l.$$.root
227
227
  };
228
228
  s && s(u.root);
229
229
  let h = !1;
230
- if (u.ctx = r ? r(e, t.props || {}, (f, d, ...b) => {
231
- const v = b.length ? b[0] : d;
232
- return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), h && yr(e, f)), d;
233
- }) : [], u.update(), h = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
230
+ if (u.ctx = r ? r(e, t.props || {}, (c, d, ...g) => {
231
+ const y = g.length ? g[0] : d;
232
+ return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h && vr(e, c)), d;
233
+ }) : [], u.update(), h = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
234
234
  if (t.hydrate) {
235
- const f = ar(t.target);
236
- u.fragment && u.fragment.l(f), f.forEach(j);
235
+ const c = sr(t.target);
236
+ u.fragment && u.fragment.l(c), c.forEach(j);
237
237
  } else
238
238
  u.fragment && u.fragment.c();
239
- t.intro && br(e.$$.fragment), gr(e, t.target, t.anchor), F();
239
+ t.intro && pr(e.$$.fragment), br(e, t.target, t.anchor), U();
240
240
  }
241
- ce(l);
241
+ fe(l);
242
242
  }
243
- let At;
244
- typeof HTMLElement == "function" && (At = class extends HTMLElement {
243
+ let Ht;
244
+ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
245
245
  constructor(t, r, n) {
246
246
  super();
247
247
  /** The Svelte component constructor */
@@ -278,14 +278,14 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
278
278
  }
279
279
  }
280
280
  connectedCallback() {
281
- return ge(this, null, function* () {
281
+ return be(this, null, function* () {
282
282
  if (this.$$cn = !0, !this.$$c) {
283
283
  let t = function(o) {
284
284
  return () => {
285
285
  let s;
286
286
  return {
287
287
  c: function() {
288
- s = M("slot"), o !== "default" && A(s, "name", o);
288
+ s = O("slot"), o !== "default" && A(s, "name", o);
289
289
  },
290
290
  /**
291
291
  * @param {HTMLElement} target
@@ -302,18 +302,18 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
302
302
  };
303
303
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
304
304
  return;
305
- const r = {}, n = ur(this);
305
+ const r = {}, n = ar(this);
306
306
  for (const o of this.$$s)
307
307
  o in n && (r[o] = [t(o)]);
308
308
  for (const o of this.attributes) {
309
309
  const s = this.$$g_p(o.name);
310
- s in this.$$d || (this.$$d[s] = Ee(s, o.value, this.$$p_d, "toProp"));
310
+ s in this.$$d || (this.$$d[s] = ye(s, o.value, this.$$p_d, "toProp"));
311
311
  }
312
312
  for (const o in this.$$p_d)
313
313
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
314
314
  this.$$c = new this.$$ctor({
315
315
  target: this.shadowRoot || this,
316
- props: tt(et({}, this.$$d), {
316
+ props: et(Ke({}, this.$$d), {
317
317
  $$slots: r,
318
318
  $$scope: {
319
319
  ctx: []
@@ -324,7 +324,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
324
324
  this.$$r = !0;
325
325
  for (const o in this.$$p_d)
326
326
  if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
327
- const s = Ee(
327
+ const s = ye(
328
328
  o,
329
329
  this.$$d[o],
330
330
  this.$$p_d,
@@ -348,7 +348,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
348
348
  // and setting attributes through setAttribute etc, this is helpful
349
349
  attributeChangedCallback(t, r, n) {
350
350
  var i;
351
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ee(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
351
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ye(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
352
352
  }
353
353
  disconnectedCallback() {
354
354
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -361,7 +361,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
361
361
  ) || t;
362
362
  }
363
363
  });
364
- function Ee(e, t, r, n) {
364
+ function ye(e, t, r, n) {
365
365
  var o;
366
366
  const i = (o = r[e]) == null ? void 0 : o.type;
367
367
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
@@ -391,8 +391,8 @@ function Ee(e, t, r, n) {
391
391
  return t;
392
392
  }
393
393
  }
394
- function xr(e, t, r, n, i, o) {
395
- let s = class extends At {
394
+ function Er(e, t, r, n, i, o) {
395
+ let s = class extends Ht {
396
396
  constructor() {
397
397
  super(e, r, i), this.$$p_d = t;
398
398
  }
@@ -409,7 +409,7 @@ function xr(e, t, r, n, i, o) {
409
409
  },
410
410
  set(l) {
411
411
  var u;
412
- l = Ee(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
412
+ l = ye(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
413
413
  }
414
414
  });
415
415
  }), n.forEach((a) => {
@@ -422,7 +422,7 @@ function xr(e, t, r, n, i, o) {
422
422
  }), e.element = /** @type {any} */
423
423
  s, s;
424
424
  }
425
- class _r {
425
+ class xr {
426
426
  constructor() {
427
427
  /**
428
428
  * ### PRIVATE API
@@ -443,7 +443,7 @@ class _r {
443
443
  }
444
444
  /** @returns {void} */
445
445
  $destroy() {
446
- vr(this, 1), this.$destroy = U;
446
+ gr(this, 1), this.$destroy = D;
447
447
  }
448
448
  /**
449
449
  * @template {Extract<keyof Events, string>} K
@@ -452,8 +452,8 @@ class _r {
452
452
  * @returns {() => void}
453
453
  */
454
454
  $on(t, r) {
455
- if (!Qe(r))
456
- return U;
455
+ if (!Je(r))
456
+ return D;
457
457
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
458
458
  return n.push(r), () => {
459
459
  const i = n.indexOf(r);
@@ -465,63 +465,63 @@ class _r {
465
465
  * @returns {void}
466
466
  */
467
467
  $set(t) {
468
- this.$$set && !rr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
468
+ this.$$set && !tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
469
469
  }
470
470
  }
471
- const Sr = "4";
472
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Sr);
473
- const K = [];
474
- function Tr(e, t) {
471
+ const _r = "4";
472
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_r);
473
+ const q = [];
474
+ function Sr(e, t) {
475
475
  return {
476
- subscribe: He(e, t).subscribe
476
+ subscribe: Te(e, t).subscribe
477
477
  };
478
478
  }
479
- function He(e, t = U) {
479
+ function Te(e, t = D) {
480
480
  let r;
481
481
  const n = /* @__PURE__ */ new Set();
482
482
  function i(a) {
483
- if (Tt(e, a) && (e = a, r)) {
484
- const l = !K.length;
483
+ if (St(e, a) && (e = a, r)) {
484
+ const l = !q.length;
485
485
  for (const u of n)
486
- u[1](), K.push(u, e);
486
+ u[1](), q.push(u, e);
487
487
  if (l) {
488
- for (let u = 0; u < K.length; u += 2)
489
- K[u][0](K[u + 1]);
490
- K.length = 0;
488
+ for (let u = 0; u < q.length; u += 2)
489
+ q[u][0](q[u + 1]);
490
+ q.length = 0;
491
491
  }
492
492
  }
493
493
  }
494
494
  function o(a) {
495
495
  i(a(e));
496
496
  }
497
- function s(a, l = U) {
497
+ function s(a, l = D) {
498
498
  const u = [a, l];
499
- return n.add(u), n.size === 1 && (r = t(i, o) || U), a(e), () => {
499
+ return n.add(u), n.size === 1 && (r = t(i, o) || D), a(e), () => {
500
500
  n.delete(u), n.size === 0 && r && (r(), r = null);
501
501
  };
502
502
  }
503
503
  return { set: i, update: o, subscribe: s };
504
504
  }
505
- function ae(e, t, r) {
505
+ function oe(e, t, r) {
506
506
  const n = !Array.isArray(e), i = n ? [e] : e;
507
507
  if (!i.every(Boolean))
508
508
  throw new Error("derived() expects stores as input, got a falsy value");
509
509
  const o = t.length < 2;
510
- return Tr(r, (s, a) => {
510
+ return Sr(r, (s, a) => {
511
511
  let l = !1;
512
512
  const u = [];
513
- let h = 0, f = U;
513
+ let h = 0, c = D;
514
514
  const d = () => {
515
515
  if (h)
516
516
  return;
517
- f();
518
- const v = t(n ? u[0] : u, s, a);
519
- o ? s(v) : f = Qe(v) ? v : U;
520
- }, b = i.map(
521
- (v, _) => Ht(
522
- v,
523
- (S) => {
524
- u[_] = S, h &= ~(1 << _), l && d();
517
+ c();
518
+ const y = t(n ? u[0] : u, s, a);
519
+ o ? s(y) : c = Je(y) ? y : D;
520
+ }, g = i.map(
521
+ (y, _) => Tt(
522
+ y,
523
+ (T) => {
524
+ u[_] = T, h &= ~(1 << _), l && d();
525
525
  },
526
526
  () => {
527
527
  h |= 1 << _;
@@ -529,110 +529,110 @@ function ae(e, t, r) {
529
529
  )
530
530
  );
531
531
  return l = !0, d(), function() {
532
- se(b), f(), l = !1;
532
+ ie(g), c(), l = !1;
533
533
  };
534
534
  });
535
535
  }
536
- function Hr(e) {
536
+ function Tr(e) {
537
537
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
538
538
  }
539
- var Ar = function(t) {
540
- return Br(t) && !wr(t);
539
+ var Hr = function(t) {
540
+ return Ar(t) && !Br(t);
541
541
  };
542
- function Br(e) {
542
+ function Ar(e) {
543
543
  return !!e && typeof e == "object";
544
544
  }
545
- function wr(e) {
545
+ function Br(e) {
546
546
  var t = Object.prototype.toString.call(e);
547
- return t === "[object RegExp]" || t === "[object Date]" || Ir(e);
547
+ return t === "[object RegExp]" || t === "[object Date]" || Cr(e);
548
548
  }
549
- var Pr = typeof Symbol == "function" && Symbol.for, Cr = Pr ? Symbol.for("react.element") : 60103;
550
- function Ir(e) {
551
- return e.$$typeof === Cr;
549
+ var wr = typeof Symbol == "function" && Symbol.for, Pr = wr ? Symbol.for("react.element") : 60103;
550
+ function Cr(e) {
551
+ return e.$$typeof === Pr;
552
552
  }
553
- function Nr(e) {
553
+ function Ir(e) {
554
554
  return Array.isArray(e) ? [] : {};
555
555
  }
556
- function de(e, t) {
557
- return t.clone !== !1 && t.isMergeableObject(e) ? re(Nr(e), e, t) : e;
556
+ function me(e, t) {
557
+ return t.clone !== !1 && t.isMergeableObject(e) ? ee(Ir(e), e, t) : e;
558
558
  }
559
- function Or(e, t, r) {
559
+ function Nr(e, t, r) {
560
560
  return e.concat(t).map(function(n) {
561
- return de(n, r);
561
+ return me(n, r);
562
562
  });
563
563
  }
564
- function Mr(e, t) {
564
+ function Or(e, t) {
565
565
  if (!t.customMerge)
566
- return re;
566
+ return ee;
567
567
  var r = t.customMerge(e);
568
- return typeof r == "function" ? r : re;
568
+ return typeof r == "function" ? r : ee;
569
569
  }
570
- function Lr(e) {
570
+ function Mr(e) {
571
571
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
572
572
  return Object.propertyIsEnumerable.call(e, t);
573
573
  }) : [];
574
574
  }
575
- function ot(e) {
576
- return Object.keys(e).concat(Lr(e));
575
+ function it(e) {
576
+ return Object.keys(e).concat(Mr(e));
577
577
  }
578
- function Bt(e, t) {
578
+ function At(e, t) {
579
579
  try {
580
580
  return t in e;
581
581
  } catch (r) {
582
582
  return !1;
583
583
  }
584
584
  }
585
- function Rr(e, t) {
586
- return Bt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
585
+ function Lr(e, t) {
586
+ return At(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
587
587
  }
588
- function $r(e, t, r) {
588
+ function Rr(e, t, r) {
589
589
  var n = {};
590
- return r.isMergeableObject(e) && ot(e).forEach(function(i) {
591
- n[i] = de(e[i], r);
592
- }), ot(t).forEach(function(i) {
593
- Rr(e, i) || (Bt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Mr(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
590
+ return r.isMergeableObject(e) && it(e).forEach(function(i) {
591
+ n[i] = me(e[i], r);
592
+ }), it(t).forEach(function(i) {
593
+ Lr(e, i) || (At(e, i) && r.isMergeableObject(t[i]) ? n[i] = Or(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
594
594
  }), n;
595
595
  }
596
- function re(e, t, r) {
597
- r = r || {}, r.arrayMerge = r.arrayMerge || Or, r.isMergeableObject = r.isMergeableObject || Ar, r.cloneUnlessOtherwiseSpecified = de;
596
+ function ee(e, t, r) {
597
+ r = r || {}, r.arrayMerge = r.arrayMerge || Nr, r.isMergeableObject = r.isMergeableObject || Hr, r.cloneUnlessOtherwiseSpecified = me;
598
598
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
599
- return o ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) : de(t, r);
599
+ return o ? n ? r.arrayMerge(e, t, r) : Rr(e, t, r) : me(t, r);
600
600
  }
601
- re.all = function(t, r) {
601
+ ee.all = function(t, r) {
602
602
  if (!Array.isArray(t))
603
603
  throw new Error("first argument should be an array");
604
604
  return t.reduce(function(n, i) {
605
- return re(n, i, r);
605
+ return ee(n, i, r);
606
606
  }, {});
607
607
  };
608
- var Ur = re, Dr = Ur;
609
- const Fr = /* @__PURE__ */ Hr(Dr);
610
- var Ge = function(e, t) {
611
- return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
608
+ var $r = ee, Ur = $r;
609
+ const Dr = /* @__PURE__ */ Tr(Ur);
610
+ var Fe = function(e, t) {
611
+ return Fe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
612
612
  r.__proto__ = n;
613
613
  } || function(r, n) {
614
614
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
615
- }, Ge(e, t);
615
+ }, Fe(e, t);
616
616
  };
617
- function Ae(e, t) {
617
+ function He(e, t) {
618
618
  if (typeof t != "function" && t !== null)
619
619
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
620
- Ge(e, t);
620
+ Fe(e, t);
621
621
  function r() {
622
622
  this.constructor = e;
623
623
  }
624
624
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
625
625
  }
626
- var g = function() {
627
- return g = Object.assign || function(t) {
626
+ var v = function() {
627
+ return v = Object.assign || function(t) {
628
628
  for (var r, n = 1, i = arguments.length; n < i; n++) {
629
629
  r = arguments[n];
630
630
  for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
631
631
  }
632
632
  return t;
633
- }, g.apply(this, arguments);
633
+ }, v.apply(this, arguments);
634
634
  };
635
- function Gr(e, t) {
635
+ function Fr(e, t) {
636
636
  var r = {};
637
637
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
638
638
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -640,42 +640,42 @@ function Gr(e, t) {
640
640
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
641
641
  return r;
642
642
  }
643
- function Ne(e, t, r) {
643
+ function Ie(e, t, r) {
644
644
  if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
645
645
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
646
646
  return e.concat(o || Array.prototype.slice.call(t));
647
647
  }
648
- function Oe(e, t) {
649
- var r = t && t.cache ? t.cache : Zr, n = t && t.serializer ? t.serializer : zr, i = t && t.strategy ? t.strategy : Vr;
648
+ function Ne(e, t) {
649
+ var r = t && t.cache ? t.cache : Wr, n = t && t.serializer ? t.serializer : Xr, i = t && t.strategy ? t.strategy : jr;
650
650
  return i(e, {
651
651
  cache: r,
652
652
  serializer: n
653
653
  });
654
654
  }
655
- function kr(e) {
655
+ function Gr(e) {
656
656
  return e == null || typeof e == "number" || typeof e == "boolean";
657
657
  }
658
- function jr(e, t, r, n) {
659
- var i = kr(n) ? n : r(n), o = t.get(i);
658
+ function kr(e, t, r, n) {
659
+ var i = Gr(n) ? n : r(n), o = t.get(i);
660
660
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
661
661
  }
662
- function wt(e, t, r) {
662
+ function Bt(e, t, r) {
663
663
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
664
664
  return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
665
665
  }
666
- function Pt(e, t, r, n, i) {
666
+ function wt(e, t, r, n, i) {
667
667
  return r.bind(t, e, n, i);
668
668
  }
669
- function Vr(e, t) {
670
- var r = e.length === 1 ? jr : wt;
671
- return Pt(e, this, r, t.cache.create(), t.serializer);
669
+ function jr(e, t) {
670
+ var r = e.length === 1 ? kr : Bt;
671
+ return wt(e, this, r, t.cache.create(), t.serializer);
672
672
  }
673
- function Xr(e, t) {
674
- return Pt(e, this, wt, t.cache.create(), t.serializer);
673
+ function Vr(e, t) {
674
+ return wt(e, this, Bt, t.cache.create(), t.serializer);
675
675
  }
676
- var zr = function() {
676
+ var Xr = function() {
677
677
  return JSON.stringify(arguments);
678
- }, Wr = (
678
+ }, zr = (
679
679
  /** @class */
680
680
  function() {
681
681
  function e() {
@@ -687,12 +687,12 @@ var zr = function() {
687
687
  this.cache[t] = r;
688
688
  }, e;
689
689
  }()
690
- ), Zr = {
690
+ ), Wr = {
691
691
  create: function() {
692
- return new Wr();
692
+ return new zr();
693
693
  }
694
- }, Me = {
695
- variadic: Xr
694
+ }, Oe = {
695
+ variadic: Vr
696
696
  }, m;
697
697
  (function(e) {
698
698
  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";
@@ -701,47 +701,47 @@ var x;
701
701
  (function(e) {
702
702
  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";
703
703
  })(x || (x = {}));
704
- var ne;
704
+ var te;
705
705
  (function(e) {
706
706
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
707
- })(ne || (ne = {}));
708
- function st(e) {
707
+ })(te || (te = {}));
708
+ function ot(e) {
709
709
  return e.type === x.literal;
710
710
  }
711
- function Jr(e) {
711
+ function Zr(e) {
712
712
  return e.type === x.argument;
713
713
  }
714
- function Ct(e) {
714
+ function Pt(e) {
715
715
  return e.type === x.number;
716
716
  }
717
- function It(e) {
717
+ function Ct(e) {
718
718
  return e.type === x.date;
719
719
  }
720
- function Nt(e) {
720
+ function It(e) {
721
721
  return e.type === x.time;
722
722
  }
723
- function Ot(e) {
723
+ function Nt(e) {
724
724
  return e.type === x.select;
725
725
  }
726
- function Mt(e) {
726
+ function Ot(e) {
727
727
  return e.type === x.plural;
728
728
  }
729
- function Qr(e) {
729
+ function Jr(e) {
730
730
  return e.type === x.pound;
731
731
  }
732
- function Lt(e) {
732
+ function Mt(e) {
733
733
  return e.type === x.tag;
734
734
  }
735
- function Rt(e) {
736
- return !!(e && typeof e == "object" && e.type === ne.number);
735
+ function Lt(e) {
736
+ return !!(e && typeof e == "object" && e.type === te.number);
737
737
  }
738
- function ke(e) {
739
- return !!(e && typeof e == "object" && e.type === ne.dateTime);
738
+ function Ge(e) {
739
+ return !!(e && typeof e == "object" && e.type === te.dateTime);
740
740
  }
741
- var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, qr = /(?:[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;
742
- function Yr(e) {
741
+ var Rt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Qr = /(?:[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;
742
+ function qr(e) {
743
743
  var t = {};
744
- return e.replace(qr, function(r) {
744
+ return e.replace(Qr, function(r) {
745
745
  var n = r.length;
746
746
  switch (r[0]) {
747
747
  case "G":
@@ -830,36 +830,36 @@ function Yr(e) {
830
830
  return "";
831
831
  }), t;
832
832
  }
833
- var Kr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
834
- function en(e) {
833
+ var Yr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
834
+ function Kr(e) {
835
835
  if (e.length === 0)
836
836
  throw new Error("Number skeleton cannot be empty");
837
- for (var t = e.split(Kr).filter(function(d) {
837
+ for (var t = e.split(Yr).filter(function(d) {
838
838
  return d.length > 0;
839
839
  }), r = [], n = 0, i = t; n < i.length; n++) {
840
840
  var o = i[n], s = o.split("/");
841
841
  if (s.length === 0)
842
842
  throw new Error("Invalid number skeleton");
843
843
  for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
844
- var f = h[u];
845
- if (f.length === 0)
844
+ var c = h[u];
845
+ if (c.length === 0)
846
846
  throw new Error("Invalid number skeleton");
847
847
  }
848
848
  r.push({ stem: a, options: l });
849
849
  }
850
850
  return r;
851
851
  }
852
- function tn(e) {
852
+ function en(e) {
853
853
  return e.replace(/^(.*?)-/, "");
854
854
  }
855
- var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ut = /^(@+)?(\+|#+)?[rs]?$/g, rn = /(\*)(0+)|(#+)(0+)|(0+)/g, Dt = /^(0+)$/;
856
- function ut(e) {
855
+ var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, tn = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
856
+ function at(e) {
857
857
  var t = {};
858
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ut, function(r, n, i) {
858
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
859
859
  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)), "";
860
860
  }), t;
861
861
  }
862
- function Ft(e) {
862
+ function Dt(e) {
863
863
  switch (e) {
864
864
  case "sign-auto":
865
865
  return {
@@ -899,7 +899,7 @@ function Ft(e) {
899
899
  };
900
900
  }
901
901
  }
902
- function nn(e) {
902
+ function rn(e) {
903
903
  var t;
904
904
  if (e[0] === "E" && e[1] === "E" ? (t = {
905
905
  notation: "engineering"
@@ -907,17 +907,17 @@ function nn(e) {
907
907
  notation: "scientific"
908
908
  }, e = e.slice(1)), t) {
909
909
  var r = e.slice(0, 2);
910
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Dt.test(e))
910
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ut.test(e))
911
911
  throw new Error("Malformed concise eng/scientific notation");
912
912
  t.minimumIntegerDigits = e.length;
913
913
  }
914
914
  return t;
915
915
  }
916
- function lt(e) {
917
- var t = {}, r = Ft(e);
916
+ function ut(e) {
917
+ var t = {}, r = Dt(e);
918
918
  return r || t;
919
919
  }
920
- function on(e) {
920
+ function nn(e) {
921
921
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
922
922
  var i = n[r];
923
923
  switch (i.stem) {
@@ -941,7 +941,7 @@ function on(e) {
941
941
  continue;
942
942
  case "measure-unit":
943
943
  case "unit":
944
- t.style = "unit", t.unit = tn(i.options[0]);
944
+ t.style = "unit", t.unit = en(i.options[0]);
945
945
  continue;
946
946
  case "compact-short":
947
947
  case "K":
@@ -952,13 +952,13 @@ function on(e) {
952
952
  t.notation = "compact", t.compactDisplay = "long";
953
953
  continue;
954
954
  case "scientific":
955
- t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
956
- return g(g({}, l), lt(u));
955
+ t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
956
+ return v(v({}, l), ut(u));
957
957
  }, {}));
958
958
  continue;
959
959
  case "engineering":
960
- t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
961
- return g(g({}, l), lt(u));
960
+ t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
961
+ return v(v({}, l), ut(u));
962
962
  }, {}));
963
963
  continue;
964
964
  case "notation-simple":
@@ -1003,45 +1003,45 @@ function on(e) {
1003
1003
  case "integer-width":
1004
1004
  if (i.options.length > 1)
1005
1005
  throw new RangeError("integer-width stems only accept a single optional option");
1006
- i.options[0].replace(rn, function(l, u, h, f, d, b) {
1006
+ i.options[0].replace(tn, function(l, u, h, c, d, g) {
1007
1007
  if (u)
1008
1008
  t.minimumIntegerDigits = h.length;
1009
1009
  else {
1010
- if (f && d)
1010
+ if (c && d)
1011
1011
  throw new Error("We currently do not support maximum integer digits");
1012
- if (b)
1012
+ if (g)
1013
1013
  throw new Error("We currently do not support exact integer digits");
1014
1014
  }
1015
1015
  return "";
1016
1016
  });
1017
1017
  continue;
1018
1018
  }
1019
- if (Dt.test(i.stem)) {
1019
+ if (Ut.test(i.stem)) {
1020
1020
  t.minimumIntegerDigits = i.stem.length;
1021
1021
  continue;
1022
1022
  }
1023
- if (at.test(i.stem)) {
1023
+ if (st.test(i.stem)) {
1024
1024
  if (i.options.length > 1)
1025
1025
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1026
- i.stem.replace(at, function(l, u, h, f, d, b) {
1027
- return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && b ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1026
+ i.stem.replace(st, function(l, u, h, c, d, g) {
1027
+ return h === "*" ? 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), "";
1028
1028
  });
1029
1029
  var o = i.options[0];
1030
- o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), ut(o)));
1030
+ o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), at(o)));
1031
1031
  continue;
1032
1032
  }
1033
- if (Ut.test(i.stem)) {
1034
- t = g(g({}, t), ut(i.stem));
1033
+ if ($t.test(i.stem)) {
1034
+ t = v(v({}, t), at(i.stem));
1035
1035
  continue;
1036
1036
  }
1037
- var s = Ft(i.stem);
1038
- s && (t = g(g({}, t), s));
1039
- var a = nn(i.stem);
1040
- a && (t = g(g({}, t), a));
1037
+ var s = Dt(i.stem);
1038
+ s && (t = v(v({}, t), s));
1039
+ var a = rn(i.stem);
1040
+ a && (t = v(v({}, t), a));
1041
1041
  }
1042
1042
  return t;
1043
1043
  }
1044
- var ye = {
1044
+ var ve = {
1045
1045
  "001": [
1046
1046
  "H",
1047
1047
  "h"
@@ -2456,13 +2456,13 @@ var ye = {
2456
2456
  "h"
2457
2457
  ]
2458
2458
  };
2459
- function sn(e, t) {
2459
+ function on(e, t) {
2460
2460
  for (var r = "", n = 0; n < e.length; n++) {
2461
2461
  var i = e.charAt(n);
2462
2462
  if (i === "j") {
2463
2463
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2464
2464
  o++, n++;
2465
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = an(t);
2465
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = sn(t);
2466
2466
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2467
2467
  r += l;
2468
2468
  for (; s-- > 0; )
@@ -2471,7 +2471,7 @@ function sn(e, t) {
2471
2471
  }
2472
2472
  return r;
2473
2473
  }
2474
- function an(e) {
2474
+ function sn(e) {
2475
2475
  var t = e.hourCycle;
2476
2476
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2477
2477
  e.hourCycles && // @ts-ignore
@@ -2490,23 +2490,23 @@ function an(e) {
2490
2490
  }
2491
2491
  var r = e.language, n;
2492
2492
  r !== "root" && (n = e.maximize().region);
2493
- var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
2493
+ var i = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
2494
2494
  return i[0];
2495
2495
  }
2496
- var Le, un = new RegExp("^".concat($t.source, "*")), ln = new RegExp("".concat($t.source, "*$"));
2497
- function p(e, t) {
2496
+ var Me, an = new RegExp("^".concat(Rt.source, "*")), un = new RegExp("".concat(Rt.source, "*$"));
2497
+ function b(e, t) {
2498
2498
  return { start: e, end: t };
2499
2499
  }
2500
- var hn = !!String.prototype.startsWith && "_a".startsWith("a", 1), cn = !!String.fromCodePoint, fn = !!Object.fromEntries, dn = !!String.prototype.codePointAt, mn = !!String.prototype.trimStart, pn = !!String.prototype.trimEnd, bn = !!Number.isSafeInteger, gn = bn ? Number.isSafeInteger : function(e) {
2500
+ var ln = !!String.prototype.startsWith && "_a".startsWith("a", 1), hn = !!String.fromCodePoint, cn = !!Object.fromEntries, fn = !!String.prototype.codePointAt, dn = !!String.prototype.trimStart, mn = !!String.prototype.trimEnd, pn = !!Number.isSafeInteger, bn = pn ? Number.isSafeInteger : function(e) {
2501
2501
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2502
- }, je = !0;
2502
+ }, ke = !0;
2503
2503
  try {
2504
- var vn = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2505
- je = ((Le = vn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
2504
+ var gn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2505
+ ke = ((Me = gn.exec("a")) === null || Me === void 0 ? void 0 : Me[0]) === "a";
2506
2506
  } catch (e) {
2507
- je = !1;
2507
+ ke = !1;
2508
2508
  }
2509
- var ht = hn ? (
2509
+ var lt = ln ? (
2510
2510
  // Native
2511
2511
  function(t, r, n) {
2512
2512
  return t.startsWith(r, n);
@@ -2516,7 +2516,7 @@ var ht = hn ? (
2516
2516
  function(t, r, n) {
2517
2517
  return t.slice(n, n + r.length) === r;
2518
2518
  }
2519
- ), Ve = cn ? String.fromCodePoint : (
2519
+ ), je = hn ? String.fromCodePoint : (
2520
2520
  // IE11
2521
2521
  function() {
2522
2522
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2528,9 +2528,9 @@ var ht = hn ? (
2528
2528
  }
2529
2529
  return n;
2530
2530
  }
2531
- ), ct = (
2531
+ ), ht = (
2532
2532
  // native
2533
- fn ? Object.fromEntries : (
2533
+ cn ? Object.fromEntries : (
2534
2534
  // Ponyfill
2535
2535
  function(t) {
2536
2536
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2540,7 +2540,7 @@ var ht = hn ? (
2540
2540
  return r;
2541
2541
  }
2542
2542
  )
2543
- ), Gt = dn ? (
2543
+ ), Ft = fn ? (
2544
2544
  // Native
2545
2545
  function(t, r) {
2546
2546
  return t.codePointAt(r);
@@ -2554,7 +2554,7 @@ var ht = hn ? (
2554
2554
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2555
2555
  }
2556
2556
  }
2557
- ), yn = mn ? (
2557
+ ), vn = dn ? (
2558
2558
  // Native
2559
2559
  function(t) {
2560
2560
  return t.trimStart();
@@ -2562,9 +2562,9 @@ var ht = hn ? (
2562
2562
  ) : (
2563
2563
  // Ponyfill
2564
2564
  function(t) {
2565
- return t.replace(un, "");
2565
+ return t.replace(an, "");
2566
2566
  }
2567
- ), En = pn ? (
2567
+ ), yn = mn ? (
2568
2568
  // Native
2569
2569
  function(t) {
2570
2570
  return t.trimEnd();
@@ -2572,32 +2572,32 @@ var ht = hn ? (
2572
2572
  ) : (
2573
2573
  // Ponyfill
2574
2574
  function(t) {
2575
- return t.replace(ln, "");
2575
+ return t.replace(un, "");
2576
2576
  }
2577
2577
  );
2578
- function kt(e, t) {
2578
+ function Gt(e, t) {
2579
2579
  return new RegExp(e, t);
2580
2580
  }
2581
- var Xe;
2582
- if (je) {
2583
- var ft = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2584
- Xe = function(t, r) {
2581
+ var Ve;
2582
+ if (ke) {
2583
+ var ct = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2584
+ Ve = function(t, r) {
2585
2585
  var n;
2586
- ft.lastIndex = r;
2587
- var i = ft.exec(t);
2586
+ ct.lastIndex = r;
2587
+ var i = ct.exec(t);
2588
2588
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2589
2589
  };
2590
2590
  } else
2591
- Xe = function(t, r) {
2591
+ Ve = function(t, r) {
2592
2592
  for (var n = []; ; ) {
2593
- var i = Gt(t, r);
2594
- if (i === void 0 || jt(i) || Tn(i))
2593
+ var i = Ft(t, r);
2594
+ if (i === void 0 || kt(i) || Sn(i))
2595
2595
  break;
2596
2596
  n.push(i), r += i >= 65536 ? 2 : 1;
2597
2597
  }
2598
- return Ve.apply(void 0, n);
2598
+ return je.apply(void 0, n);
2599
2599
  };
2600
- var xn = (
2600
+ var En = (
2601
2601
  /** @class */
2602
2602
  function() {
2603
2603
  function e(t, r) {
@@ -2622,13 +2622,13 @@ var xn = (
2622
2622
  var a = this.clonePosition();
2623
2623
  this.bump(), i.push({
2624
2624
  type: x.pound,
2625
- location: p(a, this.clonePosition())
2625
+ location: b(a, this.clonePosition())
2626
2626
  });
2627
2627
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2628
2628
  if (n)
2629
2629
  break;
2630
- return this.error(m.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
2631
- } else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
2630
+ return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
2631
+ } else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
2632
2632
  var s = this.parseTag(t, r);
2633
2633
  if (s.err)
2634
2634
  return s;
@@ -2651,7 +2651,7 @@ var xn = (
2651
2651
  val: {
2652
2652
  type: x.literal,
2653
2653
  value: "<".concat(i, "/>"),
2654
- location: p(n, this.clonePosition())
2654
+ location: b(n, this.clonePosition())
2655
2655
  },
2656
2656
  err: null
2657
2657
  };
@@ -2661,25 +2661,25 @@ var xn = (
2661
2661
  return o;
2662
2662
  var s = o.val, a = this.clonePosition();
2663
2663
  if (this.bumpIf("</")) {
2664
- if (this.isEOF() || !ze(this.char()))
2665
- return this.error(m.INVALID_TAG, p(a, this.clonePosition()));
2664
+ if (this.isEOF() || !Xe(this.char()))
2665
+ return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
2666
2666
  var l = this.clonePosition(), u = this.parseTagName();
2667
- return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2667
+ return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2668
2668
  val: {
2669
2669
  type: x.tag,
2670
2670
  value: i,
2671
2671
  children: s,
2672
- location: p(n, this.clonePosition())
2672
+ location: b(n, this.clonePosition())
2673
2673
  },
2674
2674
  err: null
2675
- } : this.error(m.INVALID_TAG, p(a, this.clonePosition())));
2675
+ } : this.error(m.INVALID_TAG, b(a, this.clonePosition())));
2676
2676
  } else
2677
- return this.error(m.UNCLOSED_TAG, p(n, this.clonePosition()));
2677
+ return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
2678
2678
  } else
2679
- return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
2679
+ return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
2680
2680
  }, e.prototype.parseTagName = function() {
2681
2681
  var t = this.offset();
2682
- for (this.bump(); !this.isEOF() && Sn(this.char()); )
2682
+ for (this.bump(); !this.isEOF() && _n(this.char()); )
2683
2683
  this.bump();
2684
2684
  return this.message.slice(t, this.offset());
2685
2685
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2701,14 +2701,14 @@ var xn = (
2701
2701
  }
2702
2702
  break;
2703
2703
  }
2704
- var l = p(n, this.clonePosition());
2704
+ var l = b(n, this.clonePosition());
2705
2705
  return {
2706
2706
  val: { type: x.literal, value: i, location: l },
2707
2707
  err: null
2708
2708
  };
2709
2709
  }, e.prototype.tryParseLeftAngleBracket = function() {
2710
2710
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2711
- !_n(this.peek() || 0)) ? (this.bump(), "<") : null;
2711
+ !xn(this.peek() || 0)) ? (this.bump(), "<") : null;
2712
2712
  }, e.prototype.tryParseQuote = function(t) {
2713
2713
  if (this.isEOF() || this.char() !== 39)
2714
2714
  return null;
@@ -2742,23 +2742,23 @@ var xn = (
2742
2742
  r.push(n);
2743
2743
  this.bump();
2744
2744
  }
2745
- return Ve.apply(void 0, r);
2745
+ return je.apply(void 0, r);
2746
2746
  }, e.prototype.tryParseUnquoted = function(t, r) {
2747
2747
  if (this.isEOF())
2748
2748
  return null;
2749
2749
  var n = this.char();
2750
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
2750
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
2751
2751
  }, e.prototype.parseArgument = function(t, r) {
2752
2752
  var n = this.clonePosition();
2753
2753
  if (this.bump(), this.bumpSpace(), this.isEOF())
2754
- return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
2754
+ return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2755
2755
  if (this.char() === 125)
2756
- return this.bump(), this.error(m.EMPTY_ARGUMENT, p(n, this.clonePosition()));
2756
+ return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
2757
2757
  var i = this.parseIdentifierIfPossible().value;
2758
2758
  if (!i)
2759
- return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2759
+ return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2760
2760
  if (this.bumpSpace(), this.isEOF())
2761
- return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
2761
+ return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2762
2762
  switch (this.char()) {
2763
2763
  case 125:
2764
2764
  return this.bump(), {
@@ -2766,25 +2766,25 @@ var xn = (
2766
2766
  type: x.argument,
2767
2767
  // value does not include the opening and closing braces.
2768
2768
  value: i,
2769
- location: p(n, this.clonePosition())
2769
+ location: b(n, this.clonePosition())
2770
2770
  },
2771
2771
  err: null
2772
2772
  };
2773
2773
  case 44:
2774
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2774
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2775
2775
  default:
2776
- return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2776
+ return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2777
2777
  }
2778
2778
  }, e.prototype.parseIdentifierIfPossible = function() {
2779
- var t = this.clonePosition(), r = this.offset(), n = Xe(this.message, r), i = r + n.length;
2779
+ var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
2780
2780
  this.bumpTo(i);
2781
- var o = this.clonePosition(), s = p(t, o);
2781
+ var o = this.clonePosition(), s = b(t, o);
2782
2782
  return { value: n, location: s };
2783
2783
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2784
2784
  var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2785
2785
  switch (a) {
2786
2786
  case "":
2787
- return this.error(m.EXPECT_ARGUMENT_TYPE, p(s, l));
2787
+ return this.error(m.EXPECT_ARGUMENT_TYPE, b(s, l));
2788
2788
  case "number":
2789
2789
  case "date":
2790
2790
  case "time": {
@@ -2792,40 +2792,40 @@ var xn = (
2792
2792
  var u = null;
2793
2793
  if (this.bumpIf(",")) {
2794
2794
  this.bumpSpace();
2795
- var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2796
- if (f.err)
2797
- return f;
2798
- var d = En(f.val);
2795
+ var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2796
+ if (c.err)
2797
+ return c;
2798
+ var d = yn(c.val);
2799
2799
  if (d.length === 0)
2800
- return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
2801
- var b = p(h, this.clonePosition());
2802
- u = { style: d, styleLocation: b };
2800
+ return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2801
+ var g = b(h, this.clonePosition());
2802
+ u = { style: d, styleLocation: g };
2803
2803
  }
2804
- var v = this.tryParseArgumentClose(i);
2805
- if (v.err)
2806
- return v;
2807
- var _ = p(i, this.clonePosition());
2808
- if (u && ht(u == null ? void 0 : u.style, "::", 0)) {
2809
- var S = yn(u.style.slice(2));
2804
+ var y = this.tryParseArgumentClose(i);
2805
+ if (y.err)
2806
+ return y;
2807
+ var _ = b(i, this.clonePosition());
2808
+ if (u && lt(u == null ? void 0 : u.style, "::", 0)) {
2809
+ var T = vn(u.style.slice(2));
2810
2810
  if (a === "number") {
2811
- var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
2812
- return f.err ? f : {
2813
- val: { type: x.number, value: n, location: _, style: f.val },
2811
+ var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
2812
+ return c.err ? c : {
2813
+ val: { type: x.number, value: n, location: _, style: c.val },
2814
2814
  err: null
2815
2815
  };
2816
2816
  } else {
2817
- if (S.length === 0)
2817
+ if (T.length === 0)
2818
2818
  return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
2819
- var R = S;
2820
- this.locale && (R = sn(S, this.locale));
2819
+ var H = T;
2820
+ this.locale && (H = on(T, this.locale));
2821
2821
  var d = {
2822
- type: ne.dateTime,
2823
- pattern: R,
2822
+ type: te.dateTime,
2823
+ pattern: H,
2824
2824
  location: u.styleLocation,
2825
- parsedOptions: this.shouldParseSkeletons ? Yr(R) : {}
2826
- }, N = a === "date" ? x.date : x.time;
2825
+ parsedOptions: this.shouldParseSkeletons ? qr(H) : {}
2826
+ }, L = a === "date" ? x.date : x.time;
2827
2827
  return {
2828
- val: { type: N, value: n, location: _, style: d },
2828
+ val: { type: L, value: n, location: _, style: d },
2829
2829
  err: null
2830
2830
  };
2831
2831
  }
@@ -2843,32 +2843,32 @@ var xn = (
2843
2843
  case "plural":
2844
2844
  case "selectordinal":
2845
2845
  case "select": {
2846
- var T = this.clonePosition();
2846
+ var B = this.clonePosition();
2847
2847
  if (this.bumpSpace(), !this.bumpIf(","))
2848
- return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(T, g({}, T)));
2848
+ return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(B, v({}, B)));
2849
2849
  this.bumpSpace();
2850
- var H = this.parseIdentifierIfPossible(), I = 0;
2851
- if (a !== "select" && H.value === "offset") {
2850
+ var S = this.parseIdentifierIfPossible(), N = 0;
2851
+ if (a !== "select" && S.value === "offset") {
2852
2852
  if (!this.bumpIf(":"))
2853
- return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
2853
+ return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
2854
2854
  this.bumpSpace();
2855
- var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2856
- if (f.err)
2857
- return f;
2858
- this.bumpSpace(), H = this.parseIdentifierIfPossible(), I = f.val;
2855
+ var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2856
+ if (c.err)
2857
+ return c;
2858
+ this.bumpSpace(), S = this.parseIdentifierIfPossible(), N = c.val;
2859
2859
  }
2860
- var D = this.tryParsePluralOrSelectOptions(t, a, r, H);
2861
- if (D.err)
2862
- return D;
2863
- var v = this.tryParseArgumentClose(i);
2864
- if (v.err)
2865
- return v;
2866
- var V = p(i, this.clonePosition());
2860
+ var F = this.tryParsePluralOrSelectOptions(t, a, r, S);
2861
+ if (F.err)
2862
+ return F;
2863
+ var y = this.tryParseArgumentClose(i);
2864
+ if (y.err)
2865
+ return y;
2866
+ var V = b(i, this.clonePosition());
2867
2867
  return a === "select" ? {
2868
2868
  val: {
2869
2869
  type: x.select,
2870
2870
  value: n,
2871
- options: ct(D.val),
2871
+ options: ht(F.val),
2872
2872
  location: V
2873
2873
  },
2874
2874
  err: null
@@ -2876,8 +2876,8 @@ var xn = (
2876
2876
  val: {
2877
2877
  type: x.plural,
2878
2878
  value: n,
2879
- options: ct(D.val),
2880
- offset: I,
2879
+ options: ht(F.val),
2880
+ offset: N,
2881
2881
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2882
2882
  location: V
2883
2883
  },
@@ -2885,10 +2885,10 @@ var xn = (
2885
2885
  };
2886
2886
  }
2887
2887
  default:
2888
- return this.error(m.INVALID_ARGUMENT_TYPE, p(s, l));
2888
+ return this.error(m.INVALID_ARGUMENT_TYPE, b(s, l));
2889
2889
  }
2890
2890
  }, e.prototype.tryParseArgumentClose = function(t) {
2891
- return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2891
+ return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2892
2892
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2893
2893
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2894
2894
  var n = this.char();
@@ -2897,7 +2897,7 @@ var xn = (
2897
2897
  this.bump();
2898
2898
  var i = this.clonePosition();
2899
2899
  if (!this.bumpUntil("'"))
2900
- return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
2900
+ return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
2901
2901
  this.bump();
2902
2902
  break;
2903
2903
  }
@@ -2927,52 +2927,52 @@ var xn = (
2927
2927
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2928
2928
  var n = [];
2929
2929
  try {
2930
- n = en(t);
2930
+ n = Kr(t);
2931
2931
  } catch (i) {
2932
2932
  return this.error(m.INVALID_NUMBER_SKELETON, r);
2933
2933
  }
2934
2934
  return {
2935
2935
  val: {
2936
- type: ne.number,
2936
+ type: te.number,
2937
2937
  tokens: n,
2938
2938
  location: r,
2939
- parsedOptions: this.shouldParseSkeletons ? on(n) : {}
2939
+ parsedOptions: this.shouldParseSkeletons ? nn(n) : {}
2940
2940
  },
2941
2941
  err: null
2942
2942
  };
2943
2943
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2944
2944
  for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
2945
2945
  if (u.length === 0) {
2946
- var f = this.clonePosition();
2946
+ var c = this.clonePosition();
2947
2947
  if (r !== "select" && this.bumpIf("=")) {
2948
2948
  var d = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
2949
2949
  if (d.err)
2950
2950
  return d;
2951
- h = p(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
2951
+ h = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
2952
2952
  } else
2953
2953
  break;
2954
2954
  }
2955
2955
  if (l.has(u))
2956
2956
  return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2957
2957
  u === "other" && (s = !0), this.bumpSpace();
2958
- var b = this.clonePosition();
2958
+ var g = this.clonePosition();
2959
2959
  if (!this.bumpIf("{"))
2960
- return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
2961
- var v = this.parseMessage(t + 1, r, n);
2962
- if (v.err)
2963
- return v;
2964
- var _ = this.tryParseArgumentClose(b);
2960
+ return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
2961
+ var y = this.parseMessage(t + 1, r, n);
2962
+ if (y.err)
2963
+ return y;
2964
+ var _ = this.tryParseArgumentClose(g);
2965
2965
  if (_.err)
2966
2966
  return _;
2967
2967
  a.push([
2968
2968
  u,
2969
2969
  {
2970
- value: v.val,
2971
- location: p(b, this.clonePosition())
2970
+ value: y.val,
2971
+ location: b(g, this.clonePosition())
2972
2972
  }
2973
2973
  ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
2974
2974
  }
2975
- return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2975
+ return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2976
2976
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2977
2977
  var n = 1, i = this.clonePosition();
2978
2978
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -2983,8 +2983,8 @@ var xn = (
2983
2983
  else
2984
2984
  break;
2985
2985
  }
2986
- var l = p(i, this.clonePosition());
2987
- return o ? (s *= n, gn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
2986
+ var l = b(i, this.clonePosition());
2987
+ return o ? (s *= n, bn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
2988
2988
  }, e.prototype.offset = function() {
2989
2989
  return this.position.offset;
2990
2990
  }, e.prototype.isEOF = function() {
@@ -2999,7 +2999,7 @@ var xn = (
2999
2999
  var t = this.position.offset;
3000
3000
  if (t >= this.message.length)
3001
3001
  throw Error("out of bound");
3002
- var r = Gt(this.message, t);
3002
+ var r = Ft(this.message, t);
3003
3003
  if (r === void 0)
3004
3004
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3005
3005
  return r;
@@ -3018,7 +3018,7 @@ var xn = (
3018
3018
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3019
3019
  }
3020
3020
  }, e.prototype.bumpIf = function(t) {
3021
- if (ht(this.message, t, this.offset())) {
3021
+ if (lt(this.message, t, this.offset())) {
3022
3022
  for (var r = 0; r < t.length; r++)
3023
3023
  this.bump();
3024
3024
  return !0;
@@ -3040,7 +3040,7 @@ var xn = (
3040
3040
  break;
3041
3041
  }
3042
3042
  }, e.prototype.bumpSpace = function() {
3043
- for (; !this.isEOF() && jt(this.char()); )
3043
+ for (; !this.isEOF() && kt(this.char()); )
3044
3044
  this.bump();
3045
3045
  }, e.prototype.peek = function() {
3046
3046
  if (this.isEOF())
@@ -3050,46 +3050,46 @@ var xn = (
3050
3050
  }, e;
3051
3051
  }()
3052
3052
  );
3053
- function ze(e) {
3053
+ function Xe(e) {
3054
3054
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3055
3055
  }
3056
- function _n(e) {
3057
- return ze(e) || e === 47;
3056
+ function xn(e) {
3057
+ return Xe(e) || e === 47;
3058
3058
  }
3059
- function Sn(e) {
3059
+ function _n(e) {
3060
3060
  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;
3061
3061
  }
3062
- function jt(e) {
3062
+ function kt(e) {
3063
3063
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3064
3064
  }
3065
- function Tn(e) {
3065
+ function Sn(e) {
3066
3066
  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;
3067
3067
  }
3068
- function We(e) {
3068
+ function ze(e) {
3069
3069
  e.forEach(function(t) {
3070
- if (delete t.location, Ot(t) || Mt(t))
3070
+ if (delete t.location, Nt(t) || Ot(t))
3071
3071
  for (var r in t.options)
3072
- delete t.options[r].location, We(t.options[r].value);
3073
- else Ct(t) && Rt(t.style) || (It(t) || Nt(t)) && ke(t.style) ? delete t.style.location : Lt(t) && We(t.children);
3072
+ delete t.options[r].location, ze(t.options[r].value);
3073
+ else Pt(t) && Lt(t.style) || (Ct(t) || It(t)) && Ge(t.style) ? delete t.style.location : Mt(t) && ze(t.children);
3074
3074
  });
3075
3075
  }
3076
- function Hn(e, t) {
3077
- t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3078
- var r = new xn(e, t).parse();
3076
+ function Tn(e, t) {
3077
+ t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3078
+ var r = new En(e, t).parse();
3079
3079
  if (r.err) {
3080
3080
  var n = SyntaxError(m[r.err.kind]);
3081
3081
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3082
3082
  }
3083
- return t != null && t.captureLocation || We(r.val), r.val;
3083
+ return t != null && t.captureLocation || ze(r.val), r.val;
3084
3084
  }
3085
- var ie;
3085
+ var re;
3086
3086
  (function(e) {
3087
3087
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3088
- })(ie || (ie = {}));
3089
- var Be = (
3088
+ })(re || (re = {}));
3089
+ var Ae = (
3090
3090
  /** @class */
3091
3091
  function(e) {
3092
- Ae(t, e);
3092
+ He(t, e);
3093
3093
  function t(r, n, i) {
3094
3094
  var o = e.call(this, r) || this;
3095
3095
  return o.code = n, o.originalMessage = i, o;
@@ -3098,155 +3098,155 @@ var Be = (
3098
3098
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3099
3099
  }, t;
3100
3100
  }(Error)
3101
- ), dt = (
3101
+ ), ft = (
3102
3102
  /** @class */
3103
3103
  function(e) {
3104
- Ae(t, e);
3104
+ He(t, e);
3105
3105
  function t(r, n, i, o) {
3106
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, o) || this;
3106
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, o) || this;
3107
3107
  }
3108
3108
  return t;
3109
- }(Be)
3110
- ), An = (
3109
+ }(Ae)
3110
+ ), Hn = (
3111
3111
  /** @class */
3112
3112
  function(e) {
3113
- Ae(t, e);
3113
+ He(t, e);
3114
3114
  function t(r, n, i) {
3115
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
3115
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, i) || this;
3116
3116
  }
3117
3117
  return t;
3118
- }(Be)
3119
- ), Bn = (
3118
+ }(Ae)
3119
+ ), An = (
3120
3120
  /** @class */
3121
3121
  function(e) {
3122
- Ae(t, e);
3122
+ He(t, e);
3123
3123
  function t(r, n) {
3124
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
3124
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), re.MISSING_VALUE, n) || this;
3125
3125
  }
3126
3126
  return t;
3127
- }(Be)
3128
- ), C;
3127
+ }(Ae)
3128
+ ), I;
3129
3129
  (function(e) {
3130
3130
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3131
- })(C || (C = {}));
3132
- function wn(e) {
3131
+ })(I || (I = {}));
3132
+ function Bn(e) {
3133
3133
  return e.length < 2 ? e : e.reduce(function(t, r) {
3134
3134
  var n = t[t.length - 1];
3135
- return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
3135
+ return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
3136
3136
  }, []);
3137
3137
  }
3138
- function Pn(e) {
3138
+ function wn(e) {
3139
3139
  return typeof e == "function";
3140
3140
  }
3141
- function xe(e, t, r, n, i, o, s) {
3142
- if (e.length === 1 && st(e[0]))
3141
+ function Ee(e, t, r, n, i, o, s) {
3142
+ if (e.length === 1 && ot(e[0]))
3143
3143
  return [
3144
3144
  {
3145
- type: C.literal,
3145
+ type: I.literal,
3146
3146
  value: e[0].value
3147
3147
  }
3148
3148
  ];
3149
3149
  for (var a = [], l = 0, u = e; l < u.length; l++) {
3150
3150
  var h = u[l];
3151
- if (st(h)) {
3151
+ if (ot(h)) {
3152
3152
  a.push({
3153
- type: C.literal,
3153
+ type: I.literal,
3154
3154
  value: h.value
3155
3155
  });
3156
3156
  continue;
3157
3157
  }
3158
- if (Qr(h)) {
3158
+ if (Jr(h)) {
3159
3159
  typeof o == "number" && a.push({
3160
- type: C.literal,
3160
+ type: I.literal,
3161
3161
  value: r.getNumberFormat(t).format(o)
3162
3162
  });
3163
3163
  continue;
3164
3164
  }
3165
- var f = h.value;
3166
- if (!(i && f in i))
3167
- throw new Bn(f, s);
3168
- var d = i[f];
3169
- if (Jr(h)) {
3165
+ var c = h.value;
3166
+ if (!(i && c in i))
3167
+ throw new An(c, s);
3168
+ var d = i[c];
3169
+ if (Zr(h)) {
3170
3170
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
3171
- type: typeof d == "string" ? C.literal : C.object,
3171
+ type: typeof d == "string" ? I.literal : I.object,
3172
3172
  value: d
3173
3173
  });
3174
3174
  continue;
3175
3175
  }
3176
- if (It(h)) {
3177
- var b = typeof h.style == "string" ? n.date[h.style] : ke(h.style) ? h.style.parsedOptions : void 0;
3176
+ if (Ct(h)) {
3177
+ var g = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
3178
3178
  a.push({
3179
- type: C.literal,
3180
- value: r.getDateTimeFormat(t, b).format(d)
3179
+ type: I.literal,
3180
+ value: r.getDateTimeFormat(t, g).format(d)
3181
3181
  });
3182
3182
  continue;
3183
3183
  }
3184
- if (Nt(h)) {
3185
- var b = typeof h.style == "string" ? n.time[h.style] : ke(h.style) ? h.style.parsedOptions : n.time.medium;
3184
+ if (It(h)) {
3185
+ var g = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
3186
3186
  a.push({
3187
- type: C.literal,
3188
- value: r.getDateTimeFormat(t, b).format(d)
3187
+ type: I.literal,
3188
+ value: r.getDateTimeFormat(t, g).format(d)
3189
3189
  });
3190
3190
  continue;
3191
3191
  }
3192
- if (Ct(h)) {
3193
- var b = typeof h.style == "string" ? n.number[h.style] : Rt(h.style) ? h.style.parsedOptions : void 0;
3194
- b && b.scale && (d = d * (b.scale || 1)), a.push({
3195
- type: C.literal,
3196
- value: r.getNumberFormat(t, b).format(d)
3192
+ if (Pt(h)) {
3193
+ var g = typeof h.style == "string" ? n.number[h.style] : Lt(h.style) ? h.style.parsedOptions : void 0;
3194
+ g && g.scale && (d = d * (g.scale || 1)), a.push({
3195
+ type: I.literal,
3196
+ value: r.getNumberFormat(t, g).format(d)
3197
3197
  });
3198
3198
  continue;
3199
3199
  }
3200
- if (Lt(h)) {
3201
- var v = h.children, _ = h.value, S = i[_];
3202
- if (!Pn(S))
3203
- throw new An(_, "function", s);
3204
- var R = xe(v, t, r, n, i, o), N = S(R.map(function(I) {
3205
- return I.value;
3200
+ if (Mt(h)) {
3201
+ var y = h.children, _ = h.value, T = i[_];
3202
+ if (!wn(T))
3203
+ throw new Hn(_, "function", s);
3204
+ var H = Ee(y, t, r, n, i, o), L = T(H.map(function(N) {
3205
+ return N.value;
3206
3206
  }));
3207
- Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(I) {
3207
+ Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(N) {
3208
3208
  return {
3209
- type: typeof I == "string" ? C.literal : C.object,
3210
- value: I
3209
+ type: typeof N == "string" ? I.literal : I.object,
3210
+ value: N
3211
3211
  };
3212
3212
  }));
3213
3213
  }
3214
- if (Ot(h)) {
3215
- var T = h.options[d] || h.options.other;
3216
- if (!T)
3217
- throw new dt(h.value, d, Object.keys(h.options), s);
3218
- a.push.apply(a, xe(T.value, t, r, n, i));
3214
+ if (Nt(h)) {
3215
+ var B = h.options[d] || h.options.other;
3216
+ if (!B)
3217
+ throw new ft(h.value, d, Object.keys(h.options), s);
3218
+ a.push.apply(a, Ee(B.value, t, r, n, i));
3219
3219
  continue;
3220
3220
  }
3221
- if (Mt(h)) {
3222
- var T = h.options["=".concat(d)];
3223
- if (!T) {
3221
+ if (Ot(h)) {
3222
+ var B = h.options["=".concat(d)];
3223
+ if (!B) {
3224
3224
  if (!Intl.PluralRules)
3225
- throw new Be(`Intl.PluralRules is not available in this environment.
3225
+ throw new Ae(`Intl.PluralRules is not available in this environment.
3226
3226
  Try polyfilling it using "@formatjs/intl-pluralrules"
3227
- `, ie.MISSING_INTL_API, s);
3228
- var H = r.getPluralRules(t, { type: h.pluralType }).select(d - (h.offset || 0));
3229
- T = h.options[H] || h.options.other;
3227
+ `, re.MISSING_INTL_API, s);
3228
+ var S = r.getPluralRules(t, { type: h.pluralType }).select(d - (h.offset || 0));
3229
+ B = h.options[S] || h.options.other;
3230
3230
  }
3231
- if (!T)
3232
- throw new dt(h.value, d, Object.keys(h.options), s);
3233
- a.push.apply(a, xe(T.value, t, r, n, i, d - (h.offset || 0)));
3231
+ if (!B)
3232
+ throw new ft(h.value, d, Object.keys(h.options), s);
3233
+ a.push.apply(a, Ee(B.value, t, r, n, i, d - (h.offset || 0)));
3234
3234
  continue;
3235
3235
  }
3236
3236
  }
3237
- return wn(a);
3237
+ return Bn(a);
3238
3238
  }
3239
- function Cn(e, t) {
3240
- return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3241
- return r[n] = g(g({}, e[n]), t[n] || {}), r;
3239
+ function Pn(e, t) {
3240
+ return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3241
+ return r[n] = v(v({}, e[n]), t[n] || {}), r;
3242
3242
  }, {})) : e;
3243
3243
  }
3244
- function In(e, t) {
3244
+ function Cn(e, t) {
3245
3245
  return t ? Object.keys(e).reduce(function(r, n) {
3246
- return r[n] = Cn(e[n], t[n]), r;
3247
- }, g({}, e)) : e;
3246
+ return r[n] = Pn(e[n], t[n]), r;
3247
+ }, v({}, e)) : e;
3248
3248
  }
3249
- function Re(e) {
3249
+ function Le(e) {
3250
3250
  return {
3251
3251
  create: function() {
3252
3252
  return {
@@ -3260,39 +3260,39 @@ function Re(e) {
3260
3260
  }
3261
3261
  };
3262
3262
  }
3263
- function Nn(e) {
3263
+ function In(e) {
3264
3264
  return e === void 0 && (e = {
3265
3265
  number: {},
3266
3266
  dateTime: {},
3267
3267
  pluralRules: {}
3268
3268
  }), {
3269
- getNumberFormat: Oe(function() {
3269
+ getNumberFormat: Ne(function() {
3270
3270
  for (var t, r = [], n = 0; n < arguments.length; n++)
3271
3271
  r[n] = arguments[n];
3272
- return new ((t = Intl.NumberFormat).bind.apply(t, Ne([void 0], r, !1)))();
3272
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ie([void 0], r, !1)))();
3273
3273
  }, {
3274
- cache: Re(e.number),
3275
- strategy: Me.variadic
3274
+ cache: Le(e.number),
3275
+ strategy: Oe.variadic
3276
3276
  }),
3277
- getDateTimeFormat: Oe(function() {
3277
+ getDateTimeFormat: Ne(function() {
3278
3278
  for (var t, r = [], n = 0; n < arguments.length; n++)
3279
3279
  r[n] = arguments[n];
3280
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ne([void 0], r, !1)))();
3280
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ie([void 0], r, !1)))();
3281
3281
  }, {
3282
- cache: Re(e.dateTime),
3283
- strategy: Me.variadic
3282
+ cache: Le(e.dateTime),
3283
+ strategy: Oe.variadic
3284
3284
  }),
3285
- getPluralRules: Oe(function() {
3285
+ getPluralRules: Ne(function() {
3286
3286
  for (var t, r = [], n = 0; n < arguments.length; n++)
3287
3287
  r[n] = arguments[n];
3288
- return new ((t = Intl.PluralRules).bind.apply(t, Ne([void 0], r, !1)))();
3288
+ return new ((t = Intl.PluralRules).bind.apply(t, Ie([void 0], r, !1)))();
3289
3289
  }, {
3290
- cache: Re(e.pluralRules),
3291
- strategy: Me.variadic
3290
+ cache: Le(e.pluralRules),
3291
+ strategy: Oe.variadic
3292
3292
  })
3293
3293
  };
3294
3294
  }
3295
- var On = (
3295
+ var Nn = (
3296
3296
  /** @class */
3297
3297
  function() {
3298
3298
  function e(t, r, n, i) {
@@ -3306,12 +3306,12 @@ var On = (
3306
3306
  var u = o.formatToParts(l);
3307
3307
  if (u.length === 1)
3308
3308
  return u[0].value;
3309
- var h = u.reduce(function(f, d) {
3310
- return !f.length || d.type !== C.literal || typeof f[f.length - 1] != "string" ? f.push(d.value) : f[f.length - 1] += d.value, f;
3309
+ var h = u.reduce(function(c, d) {
3310
+ return !c.length || d.type !== I.literal || typeof c[c.length - 1] != "string" ? c.push(d.value) : c[c.length - 1] += d.value, c;
3311
3311
  }, []);
3312
3312
  return h.length <= 1 ? h[0] || "" : h;
3313
3313
  }, this.formatToParts = function(l) {
3314
- return xe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3314
+ return Ee(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3315
3315
  }, this.resolvedOptions = function() {
3316
3316
  var l;
3317
3317
  return {
@@ -3324,13 +3324,13 @@ var On = (
3324
3324
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3325
3325
  var s = i || {};
3326
3326
  s.formatters;
3327
- var a = Gr(s, ["formatters"]);
3328
- this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
3327
+ var a = Fr(s, ["formatters"]);
3328
+ this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
3329
3329
  } else
3330
3330
  this.ast = t;
3331
3331
  if (!Array.isArray(this.ast))
3332
3332
  throw new TypeError("A message must be provided as a String or AST.");
3333
- this.formats = In(e.formats, n), this.formatters = i && i.formatters || Nn(this.formatterCache);
3333
+ this.formats = Cn(e.formats, n), this.formatters = i && i.formatters || In(this.formatterCache);
3334
3334
  }
3335
3335
  return Object.defineProperty(e, "defaultLocale", {
3336
3336
  get: function() {
@@ -3343,7 +3343,7 @@ var On = (
3343
3343
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3344
3344
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3345
3345
  }
3346
- }, e.__parse = Hn, e.formats = {
3346
+ }, e.__parse = Tn, e.formats = {
3347
3347
  number: {
3348
3348
  integer: {
3349
3349
  maximumFractionDigits: 0
@@ -3404,7 +3404,7 @@ var On = (
3404
3404
  }, e;
3405
3405
  }()
3406
3406
  );
3407
- function Mn(e, t) {
3407
+ function On(e, t) {
3408
3408
  if (t == null)
3409
3409
  return;
3410
3410
  if (t in e)
@@ -3425,92 +3425,92 @@ function Mn(e, t) {
3425
3425
  n = void 0;
3426
3426
  return n;
3427
3427
  }
3428
- const k = {}, Ln = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), Vt = (e, t) => {
3428
+ const k = {}, Mn = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), jt = (e, t) => {
3429
3429
  if (t == null)
3430
3430
  return;
3431
3431
  if (t in k && e in k[t])
3432
3432
  return k[t][e];
3433
- const r = we(t);
3433
+ const r = Be(t);
3434
3434
  for (let n = 0; n < r.length; n++) {
3435
- const i = r[n], o = $n(i, e);
3435
+ const i = r[n], o = Rn(i, e);
3436
3436
  if (o)
3437
- return Ln(e, t, o);
3437
+ return Mn(e, t, o);
3438
3438
  }
3439
3439
  };
3440
- let qe;
3441
- const ue = He({});
3442
- function Rn(e) {
3443
- return qe[e] || null;
3440
+ let Qe;
3441
+ const se = Te({});
3442
+ function Ln(e) {
3443
+ return Qe[e] || null;
3444
3444
  }
3445
- function Xt(e) {
3446
- return e in qe;
3445
+ function Vt(e) {
3446
+ return e in Qe;
3447
3447
  }
3448
- function $n(e, t) {
3449
- if (!Xt(e))
3448
+ function Rn(e, t) {
3449
+ if (!Vt(e))
3450
3450
  return null;
3451
- const r = Rn(e);
3452
- return Mn(r, t);
3451
+ const r = Ln(e);
3452
+ return On(r, t);
3453
3453
  }
3454
- function Un(e) {
3454
+ function $n(e) {
3455
3455
  if (e == null)
3456
3456
  return;
3457
- const t = we(e);
3457
+ const t = Be(e);
3458
3458
  for (let r = 0; r < t.length; r++) {
3459
3459
  const n = t[r];
3460
- if (Xt(n))
3460
+ if (Vt(n))
3461
3461
  return n;
3462
3462
  }
3463
3463
  }
3464
- function zt(e, ...t) {
3465
- delete k[e], ue.update((r) => (r[e] = Fr.all([r[e] || {}, ...t]), r));
3464
+ function Xt(e, ...t) {
3465
+ delete k[e], se.update((r) => (r[e] = Dr.all([r[e] || {}, ...t]), r));
3466
3466
  }
3467
- ae(
3468
- [ue],
3467
+ oe(
3468
+ [se],
3469
3469
  ([e]) => Object.keys(e)
3470
3470
  );
3471
- ue.subscribe((e) => qe = e);
3472
- const _e = {};
3473
- function Dn(e, t) {
3474
- _e[e].delete(t), _e[e].size === 0 && delete _e[e];
3471
+ se.subscribe((e) => Qe = e);
3472
+ const xe = {};
3473
+ function Un(e, t) {
3474
+ xe[e].delete(t), xe[e].size === 0 && delete xe[e];
3475
3475
  }
3476
- function Wt(e) {
3477
- return _e[e];
3476
+ function zt(e) {
3477
+ return xe[e];
3478
3478
  }
3479
- function Fn(e) {
3480
- return we(e).map((t) => {
3481
- const r = Wt(t);
3479
+ function Dn(e) {
3480
+ return Be(e).map((t) => {
3481
+ const r = zt(t);
3482
3482
  return [t, r ? [...r] : []];
3483
3483
  }).filter(([, t]) => t.length > 0);
3484
3484
  }
3485
- function Ze(e) {
3486
- return e == null ? !1 : we(e).some(
3485
+ function We(e) {
3486
+ return e == null ? !1 : Be(e).some(
3487
3487
  (t) => {
3488
3488
  var r;
3489
- return (r = Wt(t)) == null ? void 0 : r.size;
3489
+ return (r = zt(t)) == null ? void 0 : r.size;
3490
3490
  }
3491
3491
  );
3492
3492
  }
3493
- function Gn(e, t) {
3493
+ function Fn(e, t) {
3494
3494
  return Promise.all(
3495
- t.map((n) => (Dn(e, n), n().then((i) => i.default || i)))
3496
- ).then((n) => zt(e, ...n));
3497
- }
3498
- const he = {};
3499
- function Zt(e) {
3500
- if (!Ze(e))
3501
- return e in he ? he[e] : Promise.resolve();
3502
- const t = Fn(e);
3503
- return he[e] = Promise.all(
3495
+ t.map((n) => (Un(e, n), n().then((i) => i.default || i)))
3496
+ ).then((n) => Xt(e, ...n));
3497
+ }
3498
+ const ce = {};
3499
+ function Wt(e) {
3500
+ if (!We(e))
3501
+ return e in ce ? ce[e] : Promise.resolve();
3502
+ const t = Dn(e);
3503
+ return ce[e] = Promise.all(
3504
3504
  t.map(
3505
- ([r, n]) => Gn(r, n)
3505
+ ([r, n]) => Fn(r, n)
3506
3506
  )
3507
3507
  ).then(() => {
3508
- if (Ze(e))
3509
- return Zt(e);
3510
- delete he[e];
3511
- }), he[e];
3508
+ if (We(e))
3509
+ return Wt(e);
3510
+ delete ce[e];
3511
+ }), ce[e];
3512
3512
  }
3513
- const kn = {
3513
+ const Gn = {
3514
3514
  number: {
3515
3515
  scientific: { notation: "scientific" },
3516
3516
  engineering: { notation: "engineering" },
@@ -3539,135 +3539,135 @@ const kn = {
3539
3539
  timeZoneName: "short"
3540
3540
  }
3541
3541
  }
3542
- }, jn = {
3542
+ }, kn = {
3543
3543
  fallbackLocale: null,
3544
3544
  loadingDelay: 200,
3545
- formats: kn,
3545
+ formats: Gn,
3546
3546
  warnOnMissingMessages: !0,
3547
3547
  handleMissingMessage: void 0,
3548
3548
  ignoreTag: !0
3549
- }, Vn = jn;
3550
- function oe() {
3551
- return Vn;
3549
+ }, jn = kn;
3550
+ function ne() {
3551
+ return jn;
3552
3552
  }
3553
- const $e = He(!1);
3554
- var Xn = Object.defineProperty, zn = Object.defineProperties, Wn = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, Zn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qn = (e, t) => {
3553
+ const Re = Te(!1);
3554
+ var Vn = Object.defineProperty, Xn = Object.defineProperties, zn = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, Wn = Object.prototype.hasOwnProperty, Zn = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? Vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Jn = (e, t) => {
3555
3555
  for (var r in t || (t = {}))
3556
- Zn.call(t, r) && pt(e, r, t[r]);
3557
- if (mt)
3558
- for (var r of mt(t))
3559
- Jn.call(t, r) && pt(e, r, t[r]);
3556
+ Wn.call(t, r) && mt(e, r, t[r]);
3557
+ if (dt)
3558
+ for (var r of dt(t))
3559
+ Zn.call(t, r) && mt(e, r, t[r]);
3560
3560
  return e;
3561
- }, qn = (e, t) => zn(e, Wn(t));
3562
- let Je;
3563
- const Se = He(null);
3564
- function bt(e) {
3561
+ }, Qn = (e, t) => Xn(e, zn(t));
3562
+ let Ze;
3563
+ const _e = Te(null);
3564
+ function pt(e) {
3565
3565
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3566
3566
  }
3567
- function we(e, t = oe().fallbackLocale) {
3568
- const r = bt(e);
3569
- return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
3567
+ function Be(e, t = ne().fallbackLocale) {
3568
+ const r = pt(e);
3569
+ return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
3570
3570
  }
3571
3571
  function J() {
3572
- return Je != null ? Je : void 0;
3572
+ return Ze != null ? Ze : void 0;
3573
3573
  }
3574
- Se.subscribe((e) => {
3575
- Je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3574
+ _e.subscribe((e) => {
3575
+ Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3576
3576
  });
3577
- const Yn = (e) => {
3578
- if (e && Un(e) && Ze(e)) {
3579
- const { loadingDelay: t } = oe();
3577
+ const qn = (e) => {
3578
+ if (e && $n(e) && We(e)) {
3579
+ const { loadingDelay: t } = ne();
3580
3580
  let r;
3581
3581
  return typeof window != "undefined" && J() != null && t ? r = window.setTimeout(
3582
- () => $e.set(!0),
3582
+ () => Re.set(!0),
3583
3583
  t
3584
- ) : $e.set(!0), Zt(e).then(() => {
3585
- Se.set(e);
3584
+ ) : Re.set(!0), Wt(e).then(() => {
3585
+ _e.set(e);
3586
3586
  }).finally(() => {
3587
- clearTimeout(r), $e.set(!1);
3587
+ clearTimeout(r), Re.set(!1);
3588
3588
  });
3589
3589
  }
3590
- return Se.set(e);
3591
- }, W = qn(Qn({}, Se), {
3592
- set: Yn
3593
- }), Pe = (e) => {
3590
+ return _e.set(e);
3591
+ }, W = Qn(Jn({}, _e), {
3592
+ set: qn
3593
+ }), we = (e) => {
3594
3594
  const t = /* @__PURE__ */ Object.create(null);
3595
3595
  return (n) => {
3596
3596
  const i = JSON.stringify(n);
3597
3597
  return i in t ? t[i] : t[i] = e(n);
3598
3598
  };
3599
3599
  };
3600
- var Kn = Object.defineProperty, Te = Object.getOwnPropertySymbols, Jt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? Kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
3600
+ var Yn = Object.defineProperty, Se = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
3601
3601
  for (var r in t || (t = {}))
3602
- Jt.call(t, r) && gt(e, r, t[r]);
3603
- if (Te)
3604
- for (var r of Te(t))
3605
- Qt.call(t, r) && gt(e, r, t[r]);
3602
+ Zt.call(t, r) && bt(e, r, t[r]);
3603
+ if (Se)
3604
+ for (var r of Se(t))
3605
+ Jt.call(t, r) && bt(e, r, t[r]);
3606
3606
  return e;
3607
- }, le = (e, t) => {
3607
+ }, ae = (e, t) => {
3608
3608
  var r = {};
3609
3609
  for (var n in e)
3610
- Jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3611
- if (e != null && Te)
3612
- for (var n of Te(e))
3613
- t.indexOf(n) < 0 && Qt.call(e, n) && (r[n] = e[n]);
3610
+ Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3611
+ if (e != null && Se)
3612
+ for (var n of Se(e))
3613
+ t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
3614
3614
  return r;
3615
3615
  };
3616
- const me = (e, t) => {
3617
- const { formats: r } = oe();
3616
+ const pe = (e, t) => {
3617
+ const { formats: r } = ne();
3618
3618
  if (e in r && t in r[e])
3619
3619
  return r[e][t];
3620
3620
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3621
- }, ei = Pe(
3621
+ }, Kn = we(
3622
3622
  (e) => {
3623
- var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
3623
+ var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3624
3624
  if (r == null)
3625
3625
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3626
- return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
3626
+ return n && (i = pe("number", n)), new Intl.NumberFormat(r, i);
3627
3627
  }
3628
- ), ti = Pe(
3628
+ ), ei = we(
3629
3629
  (e) => {
3630
- var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
3630
+ var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3631
3631
  if (r == null)
3632
3632
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3633
- return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
3633
+ return n ? i = pe("date", n) : Object.keys(i).length === 0 && (i = pe("date", "short")), new Intl.DateTimeFormat(r, i);
3634
3634
  }
3635
- ), ri = Pe(
3635
+ ), ti = we(
3636
3636
  (e) => {
3637
- var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
3637
+ var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3638
3638
  if (r == null)
3639
3639
  throw new Error(
3640
3640
  '[svelte-i18n] A "locale" must be set to format time values'
3641
3641
  );
3642
- return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
3642
+ return n ? i = pe("time", n) : Object.keys(i).length === 0 && (i = pe("time", "short")), new Intl.DateTimeFormat(r, i);
3643
3643
  }
3644
- ), ni = (e = {}) => {
3644
+ ), ri = (e = {}) => {
3645
3645
  var t = e, {
3646
3646
  locale: r = J()
3647
- } = t, n = le(t, [
3647
+ } = t, n = ae(t, [
3648
3648
  "locale"
3649
3649
  ]);
3650
- return ei(Ye({ locale: r }, n));
3651
- }, ii = (e = {}) => {
3650
+ return Kn(qe({ locale: r }, n));
3651
+ }, ni = (e = {}) => {
3652
3652
  var t = e, {
3653
3653
  locale: r = J()
3654
- } = t, n = le(t, [
3654
+ } = t, n = ae(t, [
3655
3655
  "locale"
3656
3656
  ]);
3657
- return ti(Ye({ locale: r }, n));
3658
- }, oi = (e = {}) => {
3657
+ return ei(qe({ locale: r }, n));
3658
+ }, ii = (e = {}) => {
3659
3659
  var t = e, {
3660
3660
  locale: r = J()
3661
- } = t, n = le(t, [
3661
+ } = t, n = ae(t, [
3662
3662
  "locale"
3663
3663
  ]);
3664
- return ri(Ye({ locale: r }, n));
3665
- }, si = Pe(
3664
+ return ti(qe({ locale: r }, n));
3665
+ }, oi = we(
3666
3666
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3667
- (e, t = J()) => new On(e, t, oe().formats, {
3668
- ignoreTag: oe().ignoreTag
3667
+ (e, t = J()) => new Nn(e, t, ne().formats, {
3668
+ ignoreTag: ne().ignoreTag
3669
3669
  })
3670
- ), ai = (e, t = {}) => {
3670
+ ), si = (e, t = {}) => {
3671
3671
  var r, n, i, o;
3672
3672
  let s = t;
3673
3673
  typeof e == "object" && (s = e, e = s.id);
@@ -3680,39 +3680,39 @@ const me = (e, t) => {
3680
3680
  throw new Error(
3681
3681
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3682
3682
  );
3683
- let h = Vt(e, l);
3683
+ let h = jt(e, l);
3684
3684
  if (!h)
3685
- h = (o = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3685
+ h = (o = (i = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3686
3686
  else if (typeof h != "string")
3687
3687
  return console.warn(
3688
3688
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3689
3689
  ), h;
3690
3690
  if (!a)
3691
3691
  return h;
3692
- let f = h;
3692
+ let c = h;
3693
3693
  try {
3694
- f = si(h, l).format(a);
3694
+ c = oi(h, l).format(a);
3695
3695
  } catch (d) {
3696
3696
  d instanceof Error && console.warn(
3697
3697
  `[svelte-i18n] Message "${e}" has syntax error:`,
3698
3698
  d.message
3699
3699
  );
3700
3700
  }
3701
- return f;
3702
- }, ui = (e, t) => oi(t).format(e), li = (e, t) => ii(t).format(e), hi = (e, t) => ni(t).format(e), ci = (e, t = J()) => Vt(e, t), fi = ae([W, ue], () => ai);
3703
- ae([W], () => ui);
3704
- ae([W], () => li);
3705
- ae([W], () => hi);
3706
- ae([W, ue], () => ci);
3707
- function di({ withLocale: e, translations: t }) {
3701
+ return c;
3702
+ }, ai = (e, t) => ii(t).format(e), ui = (e, t) => ni(t).format(e), li = (e, t) => ri(t).format(e), hi = (e, t = J()) => jt(e, t), ci = oe([W, se], () => si);
3703
+ oe([W], () => ai);
3704
+ oe([W], () => ui);
3705
+ oe([W], () => li);
3706
+ oe([W, se], () => hi);
3707
+ function fi({ withLocale: e, translations: t }) {
3708
3708
  W.subscribe((r) => {
3709
- r == null && (ue.set(t), W.set(e));
3709
+ r == null && (se.set(t), W.set(e));
3710
3710
  });
3711
3711
  }
3712
- function vt(e, t) {
3713
- zt(e, t);
3712
+ function gt(e, t) {
3713
+ Xt(e, t);
3714
3714
  }
3715
- const yt = {
3715
+ const vt = {
3716
3716
  en: {
3717
3717
  title: "Please enter the verification code you received on your number",
3718
3718
  errorTitle: "Your code was invalid, you can resend the code and try again",
@@ -3819,17 +3819,40 @@ const yt = {
3819
3819
  loginSMSHint: "A new verification code has been sent to your phone number"
3820
3820
  }
3821
3821
  };
3822
- function mi(e) {
3823
- ir(e, "svelte-uutjwi", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
3822
+ function di(e, t) {
3823
+ if (e) {
3824
+ const r = document.createElement("style");
3825
+ r.innerHTML = t, e.appendChild(r);
3826
+ }
3824
3827
  }
3825
- function pi(e) {
3828
+ function mi(e, t) {
3829
+ const r = new URL(t);
3830
+ fetch(r.href).then((n) => n.text()).then((n) => {
3831
+ const i = document.createElement("style");
3832
+ i.innerHTML = n, e && e.appendChild(i);
3833
+ }).catch((n) => {
3834
+ console.error("There was an error while trying to load client styling from URL", n);
3835
+ });
3836
+ }
3837
+ function pi(e, t, r) {
3838
+ if (window.emMessageBus) {
3839
+ const n = document.createElement("style");
3840
+ window.emMessageBus.subscribe(t, (i) => {
3841
+ n.innerHTML = i, e && e.appendChild(n);
3842
+ });
3843
+ }
3844
+ }
3845
+ function bi(e) {
3846
+ nr(e, "svelte-uutjwi", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
3847
+ }
3848
+ function gi(e) {
3826
3849
  let t = (
3827
3850
  /*$_*/
3828
3851
  e[5]("errorTitle") + ""
3829
3852
  ), r;
3830
3853
  return {
3831
3854
  c() {
3832
- r = L(t);
3855
+ r = M(t);
3833
3856
  },
3834
3857
  m(n, i) {
3835
3858
  Z(n, r, i);
@@ -3844,14 +3867,14 @@ function pi(e) {
3844
3867
  }
3845
3868
  };
3846
3869
  }
3847
- function bi(e) {
3870
+ function vi(e) {
3848
3871
  let t = (
3849
3872
  /*$_*/
3850
3873
  e[5]("title") + ""
3851
3874
  ), r;
3852
3875
  return {
3853
3876
  c() {
3854
- r = L(t);
3877
+ r = M(t);
3855
3878
  },
3856
3879
  m(n, i) {
3857
3880
  Z(n, r, i);
@@ -3866,14 +3889,14 @@ function bi(e) {
3866
3889
  }
3867
3890
  };
3868
3891
  }
3869
- function Et(e) {
3892
+ function yt(e) {
3870
3893
  let t, r = (
3871
3894
  /*$_*/
3872
3895
  e[5]("smsCodeError") + ""
3873
3896
  ), n;
3874
3897
  return {
3875
3898
  c() {
3876
- t = M("p"), n = L(r), A(t, "class", "InvalidInput");
3899
+ t = O("p"), n = M(r), A(t, "class", "InvalidInput");
3877
3900
  },
3878
3901
  m(i, o) {
3879
3902
  Z(i, t, o), E(t, n);
@@ -3888,14 +3911,14 @@ function Et(e) {
3888
3911
  }
3889
3912
  };
3890
3913
  }
3891
- function xt(e) {
3914
+ function Et(e) {
3892
3915
  let t, r = (
3893
3916
  /*$_*/
3894
3917
  e[5]("resendMessage") + ""
3895
3918
  ), n;
3896
3919
  return {
3897
3920
  c() {
3898
- t = M("p"), n = L(r), A(t, "class", "SmsVerificationResendMessage");
3921
+ t = O("p"), n = M(r), A(t, "class", "SmsVerificationResendMessage");
3899
3922
  },
3900
3923
  m(i, o) {
3901
3924
  Z(i, t, o), E(t, n);
@@ -3910,17 +3933,17 @@ function xt(e) {
3910
3933
  }
3911
3934
  };
3912
3935
  }
3913
- function _t(e) {
3936
+ function xt(e) {
3914
3937
  let t, r, n = (
3915
3938
  /*secondsLeft*/
3916
3939
  e[4] < 10 ? "0" : ""
3917
3940
  ), i, o, s;
3918
3941
  return {
3919
3942
  c() {
3920
- t = M("span"), r = L("(0:"), i = L(n), o = L(
3943
+ t = O("span"), r = M("(0:"), i = M(n), o = M(
3921
3944
  /*secondsLeft*/
3922
3945
  e[4]
3923
- ), s = L(")"), A(t, "class", "SmsVerificationResendTimer");
3946
+ ), s = M(")"), A(t, "class", "SmsVerificationResendTimer");
3924
3947
  },
3925
3948
  m(a, l) {
3926
3949
  Z(a, t, l), E(t, r), E(t, i), E(t, o), E(t, s);
@@ -3940,125 +3963,125 @@ function _t(e) {
3940
3963
  }
3941
3964
  };
3942
3965
  }
3943
- function gi(e) {
3966
+ function yi(e) {
3944
3967
  let t, r, n, i, o, s = (
3945
3968
  /*$_*/
3946
3969
  e[5]("code") + ""
3947
- ), a, l, u, h, f, d, b, v, _, S, R = (
3970
+ ), a, l, u, h, c, d, g, y, _, T, H = (
3948
3971
  /*$_*/
3949
3972
  e[5]("activate") + ""
3950
- ), N, T, H, I = (
3973
+ ), L, B, S, N = (
3951
3974
  /*$_*/
3952
3975
  e[5]("resend") + ""
3953
- ), D, V, Q, pe;
3954
- function be(c, y) {
3976
+ ), F, V, ue, le;
3977
+ function he(p, C) {
3955
3978
  return (
3956
3979
  /*isSmsValid*/
3957
- c[2] ? bi : pi
3980
+ p[2] ? vi : gi
3958
3981
  );
3959
3982
  }
3960
- let X = be(e), O = X(e), B = !/*isSmsValid*/
3961
- e[2] && Et(e), w = (
3983
+ let X = he(e), R = X(e), w = !/*isSmsValid*/
3984
+ e[2] && yt(e), P = (
3962
3985
  /*timer*/
3963
- e[3] && xt(e)
3964
- ), P = (
3986
+ e[3] && Et(e)
3987
+ ), f = (
3965
3988
  /*timer*/
3966
- e[3] && _t(e)
3989
+ e[3] && xt(e)
3967
3990
  );
3968
3991
  return {
3969
3992
  c() {
3970
- t = M("div"), r = M("h3"), O.c(), n = z(), i = M("div"), o = M("label"), a = L(s), l = L(":"), u = M("span"), u.textContent = "*", h = z(), f = M("input"), d = z(), B && B.c(), v = z(), w && w.c(), _ = z(), S = M("button"), N = L(R), T = z(), H = M("button"), D = L(I), V = z(), P && P.c(), A(r, "class", "Title"), A(u, "class", "FormRequired"), A(o, "for", "SmsCode"), A(f, "type", "text"), A(f, "id", "SmsCode"), A(f, "inputmode", "numeric"), A(f, "pattern", "[0-9]*"), A(f, "maxlength", "6"), A(i, "class", b = "Field SmsVerificationField " + (/*isSmsValid*/
3971
- e[2] ? "" : "InvalidField")), A(S, "class", "Button SmsVerificationValidate"), A(H, "class", "Button SmsVerificationResend"), H.disabled = /*timer*/
3993
+ t = O("div"), r = O("h3"), R.c(), n = z(), i = O("div"), o = O("label"), a = M(s), l = M(":"), u = O("span"), u.textContent = "*", h = z(), c = O("input"), d = z(), w && w.c(), y = z(), P && P.c(), _ = z(), T = O("button"), L = M(H), B = z(), S = O("button"), F = M(N), 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*/
3994
+ e[2] ? "" : "InvalidField")), A(T, "class", "Button SmsVerificationValidate"), A(S, "class", "Button SmsVerificationResend"), S.disabled = /*timer*/
3972
3995
  e[3], A(t, "class", "Container SmsVerificationContainer");
3973
3996
  },
3974
- m(c, y) {
3975
- Z(c, t, y), E(t, r), O.m(r, null), E(t, n), E(t, i), E(i, o), E(o, a), E(o, l), E(o, u), E(i, h), E(i, f), nt(
3976
- f,
3997
+ m(p, C) {
3998
+ Z(p, t, C), E(t, r), R.m(r, null), E(t, n), E(t, i), E(i, o), E(o, a), E(o, l), E(o, u), E(i, h), E(i, c), rt(
3999
+ c,
3977
4000
  /*smsCode*/
3978
4001
  e[1]
3979
- ), E(i, d), B && B.m(i, null), E(t, v), w && w.m(t, null), E(t, _), E(t, S), E(S, N), E(t, T), E(t, H), E(H, D), E(H, V), P && P.m(H, null), e[19](t), Q || (pe = [
3980
- ve(
3981
- f,
4002
+ ), E(i, d), w && w.m(i, null), E(t, y), P && P.m(t, null), E(t, _), E(t, T), E(T, L), E(t, B), E(t, S), E(S, F), E(S, V), f && f.m(S, null), e[20](t), ue || (le = [
4003
+ ge(
4004
+ c,
3982
4005
  "input",
3983
4006
  /*input_input_handler*/
3984
- e[17]
4007
+ e[18]
3985
4008
  ),
3986
- ve(
3987
- f,
4009
+ ge(
4010
+ c,
3988
4011
  "keydown",
3989
4012
  /*keydown_handler*/
3990
- e[18]
4013
+ e[19]
3991
4014
  ),
3992
- ve(
3993
- S,
4015
+ ge(
4016
+ T,
3994
4017
  "click",
3995
4018
  /*activateUser*/
3996
4019
  e[6]
3997
4020
  ),
3998
- ve(
3999
- H,
4021
+ ge(
4022
+ S,
4000
4023
  "click",
4001
4024
  /*resendCode*/
4002
4025
  e[7]
4003
4026
  )
4004
- ], Q = !0);
4027
+ ], ue = !0);
4005
4028
  },
4006
- p(c, [y]) {
4007
- X === (X = be(c)) && O ? O.p(c, y) : (O.d(1), O = X(c), O && (O.c(), O.m(r, null))), y & /*$_*/
4029
+ p(p, [C]) {
4030
+ X === (X = he(p)) && R ? R.p(p, C) : (R.d(1), R = X(p), R && (R.c(), R.m(r, null))), C & /*$_*/
4008
4031
  32 && s !== (s = /*$_*/
4009
- c[5]("code") + "") && G(a, s), y & /*smsCode*/
4010
- 2 && f.value !== /*smsCode*/
4011
- c[1] && nt(
4012
- f,
4032
+ p[5]("code") + "") && G(a, s), C & /*smsCode*/
4033
+ 2 && c.value !== /*smsCode*/
4034
+ p[1] && rt(
4035
+ c,
4013
4036
  /*smsCode*/
4014
- c[1]
4037
+ p[1]
4015
4038
  ), /*isSmsValid*/
4016
- c[2] ? B && (B.d(1), B = null) : B ? B.p(c, y) : (B = Et(c), B.c(), B.m(i, null)), y & /*isSmsValid*/
4017
- 4 && b !== (b = "Field SmsVerificationField " + (/*isSmsValid*/
4018
- c[2] ? "" : "InvalidField")) && A(i, "class", b), /*timer*/
4019
- c[3] ? w ? w.p(c, y) : (w = xt(c), w.c(), w.m(t, _)) : w && (w.d(1), w = null), y & /*$_*/
4020
- 32 && R !== (R = /*$_*/
4021
- c[5]("activate") + "") && G(N, R), y & /*$_*/
4022
- 32 && I !== (I = /*$_*/
4023
- c[5]("resend") + "") && G(D, I), /*timer*/
4024
- c[3] ? P ? P.p(c, y) : (P = _t(c), P.c(), P.m(H, null)) : P && (P.d(1), P = null), y & /*timer*/
4025
- 8 && (H.disabled = /*timer*/
4026
- c[3]);
4039
+ p[2] ? w && (w.d(1), w = null) : w ? w.p(p, C) : (w = yt(p), w.c(), w.m(i, null)), C & /*isSmsValid*/
4040
+ 4 && g !== (g = "Field SmsVerificationField " + (/*isSmsValid*/
4041
+ p[2] ? "" : "InvalidField")) && A(i, "class", g), /*timer*/
4042
+ p[3] ? P ? P.p(p, C) : (P = Et(p), P.c(), P.m(t, _)) : P && (P.d(1), P = null), C & /*$_*/
4043
+ 32 && H !== (H = /*$_*/
4044
+ p[5]("activate") + "") && G(L, H), C & /*$_*/
4045
+ 32 && N !== (N = /*$_*/
4046
+ p[5]("resend") + "") && G(F, N), /*timer*/
4047
+ p[3] ? f ? f.p(p, C) : (f = xt(p), f.c(), f.m(S, null)) : f && (f.d(1), f = null), C & /*timer*/
4048
+ 8 && (S.disabled = /*timer*/
4049
+ p[3]);
4027
4050
  },
4028
- i: U,
4029
- o: U,
4030
- d(c) {
4031
- c && j(t), O.d(), B && B.d(), w && w.d(), P && P.d(), e[19](null), Q = !1, se(pe);
4051
+ i: D,
4052
+ o: D,
4053
+ d(p) {
4054
+ p && j(t), R.d(), w && w.d(), P && P.d(), f && f.d(), e[20](null), ue = !1, ie(le);
4032
4055
  }
4033
4056
  };
4034
4057
  }
4035
- function vi(e, t, r) {
4058
+ function Ei(e, t, r) {
4036
4059
  let n;
4037
- nr(e, fi, (c) => r(5, n = c));
4038
- let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: s = "" } = t, { smstemplate: a = "Please use this code {0} to activate your accout" } = t, { number: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, d, b = !0, v = !1, _, S, R = +localStorage.getItem("smsTimer") || 0, N = Date.now() / 1e3 - R, T = 60 - Math.floor(N);
4039
- const H = { numeric: /^[0-9]{0,6}$/ };
4040
- di({ withLocale: "en", translations: {} });
4041
- const I = () => {
4042
- fetch(f).then((y) => y.json()).then((y) => {
4043
- Object.keys(y).forEach((q) => {
4044
- vt(q, y[q]);
4060
+ rr(e, ci, (f) => r(5, n = f));
4061
+ let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: s = "" } = t, { smstemplate: a = "Please use this code {0} to activate your accout" } = t, { number: l = "" } = t, { mbsource: u } = t, { clientstyling: h = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: d = "" } = t, g, y = !0, _ = !1, T, H, L = +localStorage.getItem("smsTimer") || 0, B = Date.now() / 1e3 - L, S = 60 - Math.floor(B);
4062
+ const N = { numeric: /^[0-9]{0,6}$/ };
4063
+ fi({ withLocale: "en", translations: {} });
4064
+ const F = () => {
4065
+ fetch(d).then((p) => p.json()).then((p) => {
4066
+ Object.keys(p).forEach((C) => {
4067
+ gt(C, p[C]);
4045
4068
  });
4046
- }).catch((y) => {
4047
- console.log(y);
4069
+ }).catch((p) => {
4070
+ console.log(p);
4048
4071
  });
4049
4072
  };
4050
- Object.keys(yt).forEach((c) => {
4051
- vt(c, yt[c]);
4073
+ Object.keys(vt).forEach((f) => {
4074
+ gt(f, vt[f]);
4052
4075
  });
4053
- const D = () => ge(this, null, function* () {
4076
+ const V = () => be(this, null, function* () {
4054
4077
  try {
4055
- if ((yield fetch(`${i}/v1/player/${s}/activateSMS?tokenId=${o}&validationCode=${d}`, {
4078
+ if ((yield fetch(`${i}/v1/player/${s}/activateSMS?tokenId=${o}&validationCode=${g}`, {
4056
4079
  headers: {
4057
4080
  "Content-Type": "application/json",
4058
4081
  accept: "application/json"
4059
4082
  }
4060
4083
  })).ok)
4061
- r(2, b = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
4084
+ r(2, y = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
4062
4085
  else
4063
4086
  throw window.postMessage(
4064
4087
  {
@@ -4069,14 +4092,14 @@ function vi(e, t, r) {
4069
4092
  }
4070
4093
  },
4071
4094
  window.location.href
4072
- ), r(2, b = !1), new Error("Could not activate user");
4073
- } catch (c) {
4074
- console.log(c);
4095
+ ), r(2, y = !1), new Error("Could not activate user");
4096
+ } catch (f) {
4097
+ console.log(f);
4075
4098
  }
4076
- }), V = () => ge(this, null, function* () {
4077
- localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), X();
4099
+ }), ue = () => be(this, null, function* () {
4100
+ localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), he();
4078
4101
  try {
4079
- const c = yield fetch(`${i}/v1/player/sms/token`, {
4102
+ const f = yield fetch(`${i}/v1/player/sms/token`, {
4080
4103
  method: "POST",
4081
4104
  headers: {
4082
4105
  "Content-Type": "application/json",
@@ -4087,77 +4110,62 @@ function vi(e, t, r) {
4087
4110
  messageTemplate: a,
4088
4111
  destination: l
4089
4112
  })
4090
- }), y = yield c.json();
4091
- if (c.ok)
4092
- r(9, o = y.id), v = !1, Q();
4113
+ }), p = yield f.json();
4114
+ if (f.ok)
4115
+ r(9, o = p.id), _ = !1, le();
4093
4116
  else
4094
- throw v = !0, new Error("Failed to fetch");
4095
- } catch (c) {
4096
- v = !0, console.error(c);
4117
+ throw _ = !0, new Error("Failed to fetch");
4118
+ } catch (f) {
4119
+ _ = !0, console.error(f);
4097
4120
  }
4098
- }), Q = () => {
4099
- T > 0 ? r(4, T--, T) : (clearInterval(_), r(3, _ = !1), r(4, T = 60));
4100
- }, pe = () => {
4101
- let c = document.createElement("style");
4102
- c.innerHTML = u, S.appendChild(c);
4103
- }, be = () => {
4104
- let c = new URL(h), y = document.createElement("style");
4105
- fetch(c.href).then((q) => q.text()).then((q) => {
4106
- y.innerHTML = q, setTimeout(
4107
- () => {
4108
- S.appendChild(y);
4109
- },
4110
- 1
4111
- ), setTimeout(
4112
- () => {
4113
- },
4114
- 500
4115
- );
4116
- });
4117
- }, X = () => {
4118
- N < 60 && r(3, _ = setInterval(
4121
+ }), le = () => {
4122
+ S > 0 ? r(4, S--, S) : (clearInterval(T), r(3, T = !1), r(4, S = 60));
4123
+ }, he = () => {
4124
+ B < 60 && r(3, T = setInterval(
4119
4125
  () => {
4120
- Q();
4126
+ le();
4121
4127
  },
4122
4128
  1e3
4123
4129
  ));
4124
- }, O = (c) => {
4125
- !H.numeric.test(c.key) && c.keyCode !== 8 && c.keyCode !== 9 && c.keyCode !== 46 && c.preventDefault();
4130
+ }, X = (f) => {
4131
+ !N.numeric.test(f.key) && f.keyCode !== 8 && f.keyCode !== 9 && f.keyCode !== 46 && f.preventDefault();
4126
4132
  };
4127
- hr(() => {
4133
+ lr(() => {
4128
4134
  if (!s || !l) {
4129
- let c = JSON.parse(localStorage.getItem("playerData"));
4130
- r(10, s = c.playerid), r(11, l = c.number);
4135
+ let f = JSON.parse(localStorage.getItem("playerData"));
4136
+ r(10, s = f.playerid), r(11, l = f.number);
4131
4137
  }
4132
- X();
4138
+ return he(), () => {
4139
+ };
4133
4140
  });
4134
- function B() {
4135
- d = this.value, r(1, d);
4141
+ function R() {
4142
+ g = this.value, r(1, g);
4136
4143
  }
4137
- const w = (c) => O(c);
4138
- function P(c) {
4139
- Ue[c ? "unshift" : "push"](() => {
4140
- S = c, r(0, S);
4144
+ const w = (f) => X(f);
4145
+ function P(f) {
4146
+ $e[f ? "unshift" : "push"](() => {
4147
+ H = f, r(0, H);
4141
4148
  });
4142
4149
  }
4143
- return e.$$set = (c) => {
4144
- "endpoint" in c && r(12, i = c.endpoint), "tokenid" in c && r(9, o = c.tokenid), "playerid" in c && r(10, s = c.playerid), "smstemplate" in c && r(13, a = c.smstemplate), "number" in c && r(11, l = c.number), "clientstyling" in c && r(14, u = c.clientstyling), "clientstylingurl" in c && r(15, h = c.clientstylingurl), "translationurl" in c && r(16, f = c.translationurl);
4150
+ return e.$$set = (f) => {
4151
+ "endpoint" in f && r(12, i = f.endpoint), "tokenid" in f && r(9, o = f.tokenid), "playerid" in f && r(10, s = f.playerid), "smstemplate" in f && r(13, a = f.smstemplate), "number" in f && r(11, l = f.number), "mbsource" in f && r(14, u = f.mbsource), "clientstyling" in f && r(15, h = f.clientstyling), "clientstylingurl" in f && r(16, c = f.clientstylingurl), "translationurl" in f && r(17, d = f.translationurl);
4145
4152
  }, e.$$.update = () => {
4146
4153
  e.$$.dirty & /*tokenid, playerid, endpoint*/
4147
4154
  5632, e.$$.dirty & /*clientstyling, customStylingContainer*/
4148
- 16385 && u && S && pe(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4149
- 32769 && h && S && be(), e.$$.dirty & /*translationurl*/
4150
- 65536 && f && I();
4155
+ 32769 && h && H && di(H, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4156
+ 65537 && c && H && mi(H, c), e.$$.dirty & /*mbsource, customStylingContainer*/
4157
+ 16385 && u && H && pi(H, `${u}.Style`), e.$$.dirty & /*translationurl*/
4158
+ 131072 && d && F();
4151
4159
  }, [
4152
- S,
4153
- d,
4154
- b,
4155
- _,
4160
+ H,
4161
+ g,
4162
+ y,
4156
4163
  T,
4164
+ S,
4157
4165
  n,
4158
- D,
4159
4166
  V,
4160
- O,
4167
+ ue,
4168
+ X,
4161
4169
  o,
4162
4170
  s,
4163
4171
  l,
@@ -4165,83 +4173,91 @@ function vi(e, t, r) {
4165
4173
  a,
4166
4174
  u,
4167
4175
  h,
4168
- f,
4169
- B,
4176
+ c,
4177
+ d,
4178
+ R,
4170
4179
  w,
4171
4180
  P
4172
4181
  ];
4173
4182
  }
4174
- class yi extends _r {
4183
+ class xi extends xr {
4175
4184
  constructor(t) {
4176
- super(), Er(
4185
+ super(), yr(
4177
4186
  this,
4178
4187
  t,
4179
- vi,
4180
- gi,
4181
- Tt,
4188
+ Ei,
4189
+ yi,
4190
+ St,
4182
4191
  {
4183
4192
  endpoint: 12,
4184
4193
  tokenid: 9,
4185
4194
  playerid: 10,
4186
4195
  smstemplate: 13,
4187
4196
  number: 11,
4188
- clientstyling: 14,
4189
- clientstylingurl: 15,
4190
- translationurl: 16
4197
+ mbsource: 14,
4198
+ clientstyling: 15,
4199
+ clientstylingurl: 16,
4200
+ translationurl: 17
4191
4201
  },
4192
- mi
4202
+ bi
4193
4203
  );
4194
4204
  }
4195
4205
  get endpoint() {
4196
4206
  return this.$$.ctx[12];
4197
4207
  }
4198
4208
  set endpoint(t) {
4199
- this.$$set({ endpoint: t }), F();
4209
+ this.$$set({ endpoint: t }), U();
4200
4210
  }
4201
4211
  get tokenid() {
4202
4212
  return this.$$.ctx[9];
4203
4213
  }
4204
4214
  set tokenid(t) {
4205
- this.$$set({ tokenid: t }), F();
4215
+ this.$$set({ tokenid: t }), U();
4206
4216
  }
4207
4217
  get playerid() {
4208
4218
  return this.$$.ctx[10];
4209
4219
  }
4210
4220
  set playerid(t) {
4211
- this.$$set({ playerid: t }), F();
4221
+ this.$$set({ playerid: t }), U();
4212
4222
  }
4213
4223
  get smstemplate() {
4214
4224
  return this.$$.ctx[13];
4215
4225
  }
4216
4226
  set smstemplate(t) {
4217
- this.$$set({ smstemplate: t }), F();
4227
+ this.$$set({ smstemplate: t }), U();
4218
4228
  }
4219
4229
  get number() {
4220
4230
  return this.$$.ctx[11];
4221
4231
  }
4222
4232
  set number(t) {
4223
- this.$$set({ number: t }), F();
4233
+ this.$$set({ number: t }), U();
4224
4234
  }
4225
- get clientstyling() {
4235
+ get mbsource() {
4226
4236
  return this.$$.ctx[14];
4227
4237
  }
4238
+ set mbsource(t) {
4239
+ this.$$set({ mbsource: t }), U();
4240
+ }
4241
+ get clientstyling() {
4242
+ return this.$$.ctx[15];
4243
+ }
4228
4244
  set clientstyling(t) {
4229
- this.$$set({ clientstyling: t }), F();
4245
+ this.$$set({ clientstyling: t }), U();
4230
4246
  }
4231
4247
  get clientstylingurl() {
4232
- return this.$$.ctx[15];
4248
+ return this.$$.ctx[16];
4233
4249
  }
4234
4250
  set clientstylingurl(t) {
4235
- this.$$set({ clientstylingurl: t }), F();
4251
+ this.$$set({ clientstylingurl: t }), U();
4236
4252
  }
4237
4253
  get translationurl() {
4238
- return this.$$.ctx[16];
4254
+ return this.$$.ctx[17];
4239
4255
  }
4240
4256
  set translationurl(t) {
4241
- this.$$set({ translationurl: t }), F();
4257
+ this.$$set({ translationurl: t }), U();
4242
4258
  }
4243
4259
  }
4244
- xr(yi, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4260
+ Er(xi, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4245
4261
  export {
4246
- yi as default
4262
+ xi as default
4247
4263
  };