@everymatrix/cashier-step-up 0.14.36 → 0.14.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,75 +1,75 @@
1
- var Wr = Object.defineProperty, Zr = Object.defineProperties;
2
- var qr = Object.getOwnPropertyDescriptors;
1
+ var Zn = Object.defineProperty, qn = Object.defineProperties;
2
+ var Qn = Object.getOwnPropertyDescriptors;
3
3
  var kt = Object.getOwnPropertySymbols;
4
- var Qr = Object.prototype.hasOwnProperty, Jr = Object.prototype.propertyIsEnumerable;
5
- var ht = (e, t, r) => t in e ? Wr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
6
- for (var r in t || (t = {}))
7
- Qr.call(t, r) && ht(e, r, t[r]);
4
+ var Jn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable;
5
+ var ht = (e, t, n) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, We = (e, t) => {
6
+ for (var n in t || (t = {}))
7
+ Jn.call(t, n) && ht(e, n, t[n]);
8
8
  if (kt)
9
- for (var r of kt(t))
10
- Jr.call(t, r) && ht(e, r, t[r]);
9
+ for (var n of kt(t))
10
+ Yn.call(t, n) && ht(e, n, t[n]);
11
11
  return e;
12
- }, ct = (e, t) => Zr(e, qr(t));
13
- var ee = (e, t, r) => (ht(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var Ee = (e, t, r) => new Promise((n, i) => {
12
+ }, ct = (e, t) => qn(e, Qn(t));
13
+ var ee = (e, t, n) => (ht(e, typeof t != "symbol" ? t + "" : t, n), n);
14
+ var Ee = (e, t, n) => new Promise((r, i) => {
15
15
  var o = (u) => {
16
16
  try {
17
- s(r.next(u));
17
+ s(n.next(u));
18
18
  } catch (l) {
19
19
  i(l);
20
20
  }
21
21
  }, a = (u) => {
22
22
  try {
23
- s(r.throw(u));
23
+ s(n.throw(u));
24
24
  } catch (l) {
25
25
  i(l);
26
26
  }
27
- }, s = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, a);
28
- s((r = r.apply(e, t)).next());
27
+ }, s = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(o, a);
28
+ s((n = n.apply(e, t)).next());
29
29
  });
30
30
  function te() {
31
31
  }
32
- function sr(e) {
32
+ function an(e) {
33
33
  return e();
34
34
  }
35
35
  function Dt() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function ve(e) {
39
- e.forEach(sr);
38
+ function _e(e) {
39
+ e.forEach(an);
40
40
  }
41
41
  function Bt(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function ar(e, t) {
44
+ function ln(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function Yr(e) {
47
+ function Kn(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function lr(e, ...t) {
50
+ function un(e, ...t) {
51
51
  if (e == null) {
52
- for (const n of t)
53
- n(void 0);
52
+ for (const r of t)
53
+ r(void 0);
54
54
  return te;
55
55
  }
56
- const r = e.subscribe(...t);
57
- return r.unsubscribe ? () => r.unsubscribe() : r;
56
+ const n = e.subscribe(...t);
57
+ return n.unsubscribe ? () => n.unsubscribe() : n;
58
58
  }
59
- function Kr(e, t, r) {
60
- e.$$.on_destroy.push(lr(t, r));
59
+ function er(e, t, n) {
60
+ e.$$.on_destroy.push(un(t, n));
61
61
  }
62
- function y(e, t) {
62
+ function v(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
- function en(e, t, r) {
66
- const n = tn(e);
67
- if (!n.getElementById(t)) {
65
+ function tr(e, t, n) {
66
+ const r = nr(e);
67
+ if (!r.getElementById(t)) {
68
68
  const i = O("style");
69
- i.id = t, i.textContent = r, rn(n, i);
69
+ i.id = t, i.textContent = n, rr(r, i);
70
70
  }
71
71
  }
72
- function tn(e) {
72
+ function nr(e) {
73
73
  if (!e)
74
74
  return document;
75
75
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -79,22 +79,22 @@ function tn(e) {
79
79
  t
80
80
  ) : e.ownerDocument;
81
81
  }
82
- function rn(e, t) {
83
- return y(
82
+ function rr(e, t) {
83
+ return v(
84
84
  /** @type {Document} */
85
85
  e.head || e,
86
86
  t
87
87
  ), t.sheet;
88
88
  }
89
- function C(e, t, r) {
90
- e.insertBefore(t, r || null);
89
+ function A(e, t, n) {
90
+ e.insertBefore(t, n || null);
91
91
  }
92
92
  function H(e) {
93
93
  e.parentNode && e.parentNode.removeChild(e);
94
94
  }
95
- function nn(e, t) {
96
- for (let r = 0; r < e.length; r += 1)
97
- e[r] && e[r].d(t);
95
+ function ir(e, t) {
96
+ for (let n = 0; n < e.length; n += 1)
97
+ e[n] && e[n].d(t);
98
98
  }
99
99
  function O(e) {
100
100
  return document.createElement(e);
@@ -108,31 +108,31 @@ function k(e) {
108
108
  function j() {
109
109
  return k(" ");
110
110
  }
111
- function on() {
111
+ function or() {
112
112
  return k("");
113
113
  }
114
- function ce(e, t, r, n) {
115
- return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
114
+ function ce(e, t, n, r) {
115
+ return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
116
116
  }
117
- function p(e, t, r) {
118
- r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
117
+ function p(e, t, n) {
118
+ n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
119
119
  }
120
- function sn(e) {
120
+ function sr(e) {
121
121
  return Array.from(e.childNodes);
122
122
  }
123
123
  function V(e, t) {
124
124
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
125
125
  t);
126
126
  }
127
- function oe(e, t, r) {
128
- e.classList.toggle(t, !!r);
127
+ function oe(e, t, n) {
128
+ e.classList.toggle(t, !!n);
129
129
  }
130
- function an(e) {
130
+ function ar(e) {
131
131
  const t = {};
132
132
  return e.childNodes.forEach(
133
133
  /** @param {Element} node */
134
- (r) => {
135
- t[r.slot || "default"] = !0;
134
+ (n) => {
135
+ t[n.slot || "default"] = !0;
136
136
  }
137
137
  ), t;
138
138
  }
@@ -140,20 +140,20 @@ let Ve;
140
140
  function je(e) {
141
141
  Ve = e;
142
142
  }
143
- function ln() {
143
+ function lr() {
144
144
  if (!Ve)
145
145
  throw new Error("Function called outside component initialization");
146
146
  return Ve;
147
147
  }
148
- function un(e) {
149
- ln().$$.on_mount.push(e);
148
+ function ur(e) {
149
+ lr().$$.on_mount.push(e);
150
150
  }
151
- const Ae = [], Ye = [];
151
+ const Ce = [], Ye = [];
152
152
  let Be = [];
153
- const Ut = [], hn = /* @__PURE__ */ Promise.resolve();
154
- let _t = !1;
155
- function cn() {
156
- _t || (_t = !0, hn.then(se));
153
+ const Ut = [], hr = /* @__PURE__ */ Promise.resolve();
154
+ let yt = !1;
155
+ function cr() {
156
+ yt || (yt = !0, hr.then(se));
157
157
  }
158
158
  function Et(e) {
159
159
  Be.push(e);
@@ -166,58 +166,58 @@ function se() {
166
166
  const e = Ve;
167
167
  do {
168
168
  try {
169
- for (; Oe < Ae.length; ) {
170
- const t = Ae[Oe];
171
- Oe++, je(t), fn(t.$$);
169
+ for (; Oe < Ce.length; ) {
170
+ const t = Ce[Oe];
171
+ Oe++, je(t), fr(t.$$);
172
172
  }
173
173
  } catch (t) {
174
- throw Ae.length = 0, Oe = 0, t;
174
+ throw Ce.length = 0, Oe = 0, t;
175
175
  }
176
- for (je(null), Ae.length = 0, Oe = 0; Ye.length; )
176
+ for (je(null), Ce.length = 0, Oe = 0; Ye.length; )
177
177
  Ye.pop()();
178
178
  for (let t = 0; t < Be.length; t += 1) {
179
- const r = Be[t];
180
- ft.has(r) || (ft.add(r), r());
179
+ const n = Be[t];
180
+ ft.has(n) || (ft.add(n), n());
181
181
  }
182
182
  Be.length = 0;
183
- } while (Ae.length);
183
+ } while (Ce.length);
184
184
  for (; Ut.length; )
185
185
  Ut.pop()();
186
- _t = !1, ft.clear(), je(e);
186
+ yt = !1, ft.clear(), je(e);
187
187
  }
188
- function fn(e) {
188
+ function fr(e) {
189
189
  if (e.fragment !== null) {
190
- e.update(), ve(e.before_update);
190
+ e.update(), _e(e.before_update);
191
191
  const t = e.dirty;
192
192
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Et);
193
193
  }
194
194
  }
195
- function pn(e) {
196
- const t = [], r = [];
197
- Be.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Be = t;
195
+ function pr(e) {
196
+ const t = [], n = [];
197
+ Be.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Be = t;
198
198
  }
199
- const dn = /* @__PURE__ */ new Set();
200
- function mn(e, t) {
201
- e && e.i && (dn.delete(e), e.i(t));
199
+ const dr = /* @__PURE__ */ new Set();
200
+ function mr(e, t) {
201
+ e && e.i && (dr.delete(e), e.i(t));
202
202
  }
203
203
  function Gt(e) {
204
204
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
205
205
  }
206
- function gn(e, t, r) {
207
- const { fragment: n, after_update: i } = e.$$;
208
- n && n.m(t, r), Et(() => {
209
- const o = e.$$.on_mount.map(sr).filter(Bt);
210
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ve(o), e.$$.on_mount = [];
206
+ function gr(e, t, n) {
207
+ const { fragment: r, after_update: i } = e.$$;
208
+ r && r.m(t, n), Et(() => {
209
+ const o = e.$$.on_mount.map(an).filter(Bt);
210
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : _e(o), e.$$.on_mount = [];
211
211
  }), i.forEach(Et);
212
212
  }
213
- function bn(e, t) {
214
- const r = e.$$;
215
- r.fragment !== null && (pn(r.after_update), ve(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
213
+ function br(e, t) {
214
+ const n = e.$$;
215
+ n.fragment !== null && (pr(n.after_update), _e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
216
216
  }
217
- function yn(e, t) {
218
- e.$$.dirty[0] === -1 && (Ae.push(e), cn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
217
+ function vr(e, t) {
218
+ e.$$.dirty[0] === -1 && (Ce.push(e), cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
219
219
  }
220
- function _n(e, t, r, n, i, o, a = null, s = [-1]) {
220
+ function yr(e, t, n, r, i, o, a = null, s = [-1]) {
221
221
  const u = Ve;
222
222
  je(e);
223
223
  const l = e.$$ = {
@@ -243,22 +243,22 @@ function _n(e, t, r, n, i, o, a = null, s = [-1]) {
243
243
  };
244
244
  a && a(l.root);
245
245
  let h = !1;
246
- if (l.ctx = r ? r(e, t.props || {}, (c, d, ..._) => {
247
- const m = _.length ? _[0] : d;
248
- return l.ctx && i(l.ctx[c], l.ctx[c] = m) && (!l.skip_bound && l.bound[c] && l.bound[c](m), h && yn(e, c)), d;
249
- }) : [], l.update(), h = !0, ve(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
246
+ if (l.ctx = n ? n(e, t.props || {}, (c, d, ...y) => {
247
+ const m = y.length ? y[0] : d;
248
+ return l.ctx && i(l.ctx[c], l.ctx[c] = m) && (!l.skip_bound && l.bound[c] && l.bound[c](m), h && vr(e, c)), d;
249
+ }) : [], l.update(), h = !0, _e(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
250
250
  if (t.hydrate) {
251
- const c = sn(t.target);
251
+ const c = sr(t.target);
252
252
  l.fragment && l.fragment.l(c), c.forEach(H);
253
253
  } else
254
254
  l.fragment && l.fragment.c();
255
- t.intro && mn(e.$$.fragment), gn(e, t.target, t.anchor), se();
255
+ t.intro && mr(e.$$.fragment), gr(e, t.target, t.anchor), se();
256
256
  }
257
257
  je(u);
258
258
  }
259
- let ur;
260
- typeof HTMLElement == "function" && (ur = class extends HTMLElement {
261
- constructor(t, r, n) {
259
+ let hn;
260
+ typeof HTMLElement == "function" && (hn = class extends HTMLElement {
261
+ constructor(t, n, r) {
262
262
  super();
263
263
  /** The Svelte component constructor */
264
264
  ee(this, "$$ctor");
@@ -278,19 +278,19 @@ typeof HTMLElement == "function" && (ur = class extends HTMLElement {
278
278
  ee(this, "$$l", {});
279
279
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
280
280
  ee(this, "$$l_u", /* @__PURE__ */ new Map());
281
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
281
+ this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
282
282
  }
283
- addEventListener(t, r, n) {
284
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
285
- const i = this.$$c.$on(t, r);
286
- this.$$l_u.set(r, i);
283
+ addEventListener(t, n, r) {
284
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
285
+ const i = this.$$c.$on(t, n);
286
+ this.$$l_u.set(n, i);
287
287
  }
288
- super.addEventListener(t, r, n);
288
+ super.addEventListener(t, n, r);
289
289
  }
290
- removeEventListener(t, r, n) {
291
- if (super.removeEventListener(t, r, n), this.$$c) {
292
- const i = this.$$l_u.get(r);
293
- i && (i(), this.$$l_u.delete(r));
290
+ removeEventListener(t, n, r) {
291
+ if (super.removeEventListener(t, n, r), this.$$c) {
292
+ const i = this.$$l_u.get(n);
293
+ i && (i(), this.$$l_u.delete(n));
294
294
  }
295
295
  }
296
296
  connectedCallback() {
@@ -308,7 +308,7 @@ typeof HTMLElement == "function" && (ur = class extends HTMLElement {
308
308
  * @param {HTMLElement} [anchor]
309
309
  */
310
310
  m: function(l, h) {
311
- C(l, a, h);
311
+ A(l, a, h);
312
312
  },
313
313
  d: function(l) {
314
314
  l && H(a);
@@ -318,9 +318,9 @@ typeof HTMLElement == "function" && (ur = class extends HTMLElement {
318
318
  };
319
319
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
320
320
  return;
321
- const r = {}, n = an(this);
321
+ const n = {}, r = ar(this);
322
322
  for (const o of this.$$s)
323
- o in n && (r[o] = [t(o)]);
323
+ o in r && (n[o] = [t(o)]);
324
324
  for (const o of this.attributes) {
325
325
  const a = this.$$g_p(o.name);
326
326
  a in this.$$d || (this.$$d[a] = qe(a, o.value, this.$$p_d, "toProp"));
@@ -330,7 +330,7 @@ typeof HTMLElement == "function" && (ur = class extends HTMLElement {
330
330
  this.$$c = new this.$$ctor({
331
331
  target: this.shadowRoot || this,
332
332
  props: ct(We({}, this.$$d), {
333
- $$slots: r,
333
+ $$slots: n,
334
334
  $$scope: {
335
335
  ctx: []
336
336
  }
@@ -362,9 +362,9 @@ typeof HTMLElement == "function" && (ur = class extends HTMLElement {
362
362
  }
363
363
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
364
364
  // and setting attributes through setAttribute etc, this is helpful
365
- attributeChangedCallback(t, r, n) {
365
+ attributeChangedCallback(t, n, r) {
366
366
  var i;
367
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = qe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
367
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = qe(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
368
368
  }
369
369
  disconnectedCallback() {
370
370
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -373,16 +373,16 @@ typeof HTMLElement == "function" && (ur = class extends HTMLElement {
373
373
  }
374
374
  $$g_p(t) {
375
375
  return Object.keys(this.$$p_d).find(
376
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
376
+ (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
377
377
  ) || t;
378
378
  }
379
379
  });
380
- function qe(e, t, r, n) {
380
+ function qe(e, t, n, r) {
381
381
  var o;
382
- const i = (o = r[e]) == null ? void 0 : o.type;
383
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
382
+ const i = (o = n[e]) == null ? void 0 : o.type;
383
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
384
384
  return t;
385
- if (n === "toAttribute")
385
+ if (r === "toAttribute")
386
386
  switch (i) {
387
387
  case "Object":
388
388
  case "Array":
@@ -407,10 +407,10 @@ function qe(e, t, r, n) {
407
407
  return t;
408
408
  }
409
409
  }
410
- function En(e, t, r, n, i, o) {
411
- let a = class extends ur {
410
+ function Er(e, t, n, r, i, o) {
411
+ let a = class extends hn {
412
412
  constructor() {
413
- super(e, r, i), this.$$p_d = t;
413
+ super(e, n, i), this.$$p_d = t;
414
414
  }
415
415
  static get observedAttributes() {
416
416
  return Object.keys(t).map(
@@ -428,7 +428,7 @@ function En(e, t, r, n, i, o) {
428
428
  u = qe(s, u, t), this.$$d[s] = u, (l = this.$$c) == null || l.$set({ [s]: u });
429
429
  }
430
430
  });
431
- }), n.forEach((s) => {
431
+ }), r.forEach((s) => {
432
432
  Object.defineProperty(a.prototype, s, {
433
433
  get() {
434
434
  var u;
@@ -438,7 +438,7 @@ function En(e, t, r, n, i, o) {
438
438
  }), e.element = /** @type {any} */
439
439
  a, a;
440
440
  }
441
- class vn {
441
+ class _r {
442
442
  constructor() {
443
443
  /**
444
444
  * ### PRIVATE API
@@ -459,7 +459,7 @@ class vn {
459
459
  }
460
460
  /** @returns {void} */
461
461
  $destroy() {
462
- bn(this, 1), this.$destroy = te;
462
+ br(this, 1), this.$destroy = te;
463
463
  }
464
464
  /**
465
465
  * @template {Extract<keyof Events, string>} K
@@ -467,13 +467,13 @@ class vn {
467
467
  * @param {((e: Events[K]) => void) | null | undefined} callback
468
468
  * @returns {() => void}
469
469
  */
470
- $on(t, r) {
471
- if (!Bt(r))
470
+ $on(t, n) {
471
+ if (!Bt(n))
472
472
  return te;
473
- const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
474
- return n.push(r), () => {
475
- const i = n.indexOf(r);
476
- i !== -1 && n.splice(i, 1);
473
+ const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
474
+ return r.push(n), () => {
475
+ const i = r.indexOf(n);
476
+ i !== -1 && r.splice(i, 1);
477
477
  };
478
478
  }
479
479
  /**
@@ -481,77 +481,77 @@ class vn {
481
481
  * @returns {void}
482
482
  */
483
483
  $set(t) {
484
- this.$$set && !Yr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
484
+ this.$$set && !Kn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
485
485
  }
486
486
  }
487
- const xn = "4";
488
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(xn);
489
- const Ce = "__WIDGET_GLOBAL_STYLE_CACHE__";
490
- function wn(e, t) {
487
+ const xr = "4";
488
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(xr);
489
+ const Ae = "__WIDGET_GLOBAL_STYLE_CACHE__";
490
+ function wr(e, t) {
491
491
  if (e) {
492
- const r = document.createElement("style");
493
- r.innerHTML = t, e.appendChild(r);
492
+ const n = document.createElement("style");
493
+ n.innerHTML = t, e.appendChild(n);
494
494
  }
495
495
  }
496
- function Sn(e, t) {
496
+ function Sr(e, t) {
497
497
  if (!e || !t)
498
498
  return;
499
- const r = new URL(t);
500
- fetch(r.href).then((n) => n.text()).then((n) => {
499
+ const n = new URL(t);
500
+ fetch(n.href).then((r) => r.text()).then((r) => {
501
501
  const i = document.createElement("style");
502
- i.innerHTML = n, e && e.appendChild(i);
503
- }).catch((n) => {
504
- console.error("There was an error while trying to load client styling from URL", n);
502
+ i.innerHTML = r, e && e.appendChild(i);
503
+ }).catch((r) => {
504
+ console.error("There was an error while trying to load client styling from URL", r);
505
505
  });
506
506
  }
507
- function Tn(e, t, r, n = !1) {
507
+ function Tr(e, t, n, r = !1) {
508
508
  if (!window.emMessageBus)
509
509
  return;
510
- if (!("adoptedStyleSheets" in Document.prototype) || !n)
511
- return r = On(e, t), r;
512
- window[Ce] || (window[Ce] = {}), r = Hn(e, t);
513
- const o = r.unsubscribe.bind(r), a = () => {
514
- if (window[Ce][t]) {
515
- const s = window[Ce][t];
516
- s.refCount > 1 ? s.refCount = s.refCount - 1 : delete window[Ce][t];
510
+ if (!("adoptedStyleSheets" in Document.prototype) || !r)
511
+ return n = Or(e, t), n;
512
+ window[Ae] || (window[Ae] = {}), n = Hr(e, t);
513
+ const o = n.unsubscribe.bind(n), a = () => {
514
+ if (window[Ae][t]) {
515
+ const s = window[Ae][t];
516
+ s.refCount > 1 ? s.refCount = s.refCount - 1 : delete window[Ae][t];
517
517
  }
518
518
  o();
519
519
  };
520
- return r.unsubscribe = a, r;
520
+ return n.unsubscribe = a, n;
521
521
  }
522
- function On(e, t) {
523
- const r = document.createElement("style");
524
- return window.emMessageBus.subscribe(t, (n) => {
525
- e && (r.innerHTML = n, e.appendChild(r));
522
+ function Or(e, t) {
523
+ const n = document.createElement("style");
524
+ return window.emMessageBus.subscribe(t, (r) => {
525
+ e && (n.innerHTML = r, e.appendChild(n));
526
526
  });
527
527
  }
528
- function Hn(e, t) {
529
- return window.emMessageBus.subscribe(t, (r) => {
528
+ function Hr(e, t) {
529
+ return window.emMessageBus.subscribe(t, (n) => {
530
530
  if (!e)
531
531
  return;
532
- const n = e.getRootNode(), i = window[Ce];
532
+ const r = e.getRootNode(), i = window[Ae];
533
533
  let o = i[t] && i[t].sheet;
534
- o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
534
+ o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(n), i[t] = {
535
535
  sheet: o,
536
536
  refCount: 1
537
537
  });
538
- const a = n.adoptedStyleSheets || [];
539
- a.includes(o) || (n.adoptedStyleSheets = [...a, o]);
538
+ const a = r.adoptedStyleSheets || [];
539
+ a.includes(o) || (r.adoptedStyleSheets = [...a, o]);
540
540
  });
541
541
  }
542
542
  const He = [];
543
- function An(e, t) {
543
+ function Cr(e, t) {
544
544
  return {
545
- subscribe: rt(e, t).subscribe
545
+ subscribe: nt(e, t).subscribe
546
546
  };
547
547
  }
548
- function rt(e, t = te) {
549
- let r;
550
- const n = /* @__PURE__ */ new Set();
548
+ function nt(e, t = te) {
549
+ let n;
550
+ const r = /* @__PURE__ */ new Set();
551
551
  function i(s) {
552
- if (ar(e, s) && (e = s, r)) {
552
+ if (ln(e, s) && (e = s, n)) {
553
553
  const u = !He.length;
554
- for (const l of n)
554
+ for (const l of r)
555
555
  l[1](), He.push(l, e);
556
556
  if (u) {
557
557
  for (let l = 0; l < He.length; l += 2)
@@ -565,18 +565,18 @@ function rt(e, t = te) {
565
565
  }
566
566
  function a(s, u = te) {
567
567
  const l = [s, u];
568
- return n.add(l), n.size === 1 && (r = t(i, o) || te), s(e), () => {
569
- n.delete(l), n.size === 0 && r && (r(), r = null);
568
+ return r.add(l), r.size === 1 && (n = t(i, o) || te), s(e), () => {
569
+ r.delete(l), r.size === 0 && n && (n(), n = null);
570
570
  };
571
571
  }
572
572
  return { set: i, update: o, subscribe: a };
573
573
  }
574
- function Ne(e, t, r) {
575
- const n = !Array.isArray(e), i = n ? [e] : e;
574
+ function Ne(e, t, n) {
575
+ const r = !Array.isArray(e), i = r ? [e] : e;
576
576
  if (!i.every(Boolean))
577
577
  throw new Error("derived() expects stores as input, got a falsy value");
578
578
  const o = t.length < 2;
579
- return An(r, (a, s) => {
579
+ return Cr(n, (a, s) => {
580
580
  let u = !1;
581
581
  const l = [];
582
582
  let h = 0, c = te;
@@ -584,13 +584,13 @@ function Ne(e, t, r) {
584
584
  if (h)
585
585
  return;
586
586
  c();
587
- const m = t(n ? l[0] : l, a, s);
587
+ const m = t(r ? l[0] : l, a, s);
588
588
  o ? a(m) : c = Bt(m) ? m : te;
589
- }, _ = i.map(
590
- (m, g) => lr(
589
+ }, y = i.map(
590
+ (m, g) => un(
591
591
  m,
592
- (v) => {
593
- l[g] = v, h &= ~(1 << g), u && d();
592
+ (_) => {
593
+ l[g] = _, h &= ~(1 << g), u && d();
594
594
  },
595
595
  () => {
596
596
  h |= 1 << g;
@@ -598,157 +598,157 @@ function Ne(e, t, r) {
598
598
  )
599
599
  );
600
600
  return u = !0, d(), function() {
601
- ve(_), c(), u = !1;
601
+ _e(y), c(), u = !1;
602
602
  };
603
603
  });
604
604
  }
605
- function Cn(e) {
605
+ function Ar(e) {
606
606
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
607
607
  }
608
- var Bn = function(t) {
609
- return Pn(t) && !Mn(t);
608
+ var Br = function(t) {
609
+ return Mr(t) && !Pr(t);
610
610
  };
611
- function Pn(e) {
611
+ function Mr(e) {
612
612
  return !!e && typeof e == "object";
613
613
  }
614
- function Mn(e) {
614
+ function Pr(e) {
615
615
  var t = Object.prototype.toString.call(e);
616
- return t === "[object RegExp]" || t === "[object Date]" || Nn(e);
616
+ return t === "[object RegExp]" || t === "[object Date]" || Nr(e);
617
617
  }
618
- var Ln = typeof Symbol == "function" && Symbol.for, In = Ln ? Symbol.for("react.element") : 60103;
619
- function Nn(e) {
620
- return e.$$typeof === In;
618
+ var Lr = typeof Symbol == "function" && Symbol.for, Ir = Lr ? Symbol.for("react.element") : 60103;
619
+ function Nr(e) {
620
+ return e.$$typeof === Ir;
621
621
  }
622
- function Rn(e) {
622
+ function Rr(e) {
623
623
  return Array.isArray(e) ? [] : {};
624
624
  }
625
- function $e(e, t) {
626
- return t.clone !== !1 && t.isMergeableObject(e) ? Pe(Rn(e), e, t) : e;
625
+ function ze(e, t) {
626
+ return t.clone !== !1 && t.isMergeableObject(e) ? Me(Rr(e), e, t) : e;
627
627
  }
628
- function kn(e, t, r) {
629
- return e.concat(t).map(function(n) {
630
- return $e(n, r);
628
+ function kr(e, t, n) {
629
+ return e.concat(t).map(function(r) {
630
+ return ze(r, n);
631
631
  });
632
632
  }
633
- function Dn(e, t) {
633
+ function Dr(e, t) {
634
634
  if (!t.customMerge)
635
- return Pe;
636
- var r = t.customMerge(e);
637
- return typeof r == "function" ? r : Pe;
635
+ return Me;
636
+ var n = t.customMerge(e);
637
+ return typeof n == "function" ? n : Me;
638
638
  }
639
- function Un(e) {
639
+ function Ur(e) {
640
640
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
641
641
  return Object.propertyIsEnumerable.call(e, t);
642
642
  }) : [];
643
643
  }
644
644
  function Ft(e) {
645
- return Object.keys(e).concat(Un(e));
645
+ return Object.keys(e).concat(Ur(e));
646
646
  }
647
- function hr(e, t) {
647
+ function cn(e, t) {
648
648
  try {
649
649
  return t in e;
650
- } catch (r) {
650
+ } catch (n) {
651
651
  return !1;
652
652
  }
653
653
  }
654
- function Gn(e, t) {
655
- return hr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
654
+ function Gr(e, t) {
655
+ return cn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
656
656
  }
657
- function Fn(e, t, r) {
658
- var n = {};
659
- return r.isMergeableObject(e) && Ft(e).forEach(function(i) {
660
- n[i] = $e(e[i], r);
657
+ function Fr(e, t, n) {
658
+ var r = {};
659
+ return n.isMergeableObject(e) && Ft(e).forEach(function(i) {
660
+ r[i] = ze(e[i], n);
661
661
  }), Ft(t).forEach(function(i) {
662
- Gn(e, i) || (hr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Dn(i, r)(e[i], t[i], r) : n[i] = $e(t[i], r));
663
- }), n;
662
+ Gr(e, i) || (cn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Dr(i, n)(e[i], t[i], n) : r[i] = ze(t[i], n));
663
+ }), r;
664
664
  }
665
- function Pe(e, t, r) {
666
- r = r || {}, r.arrayMerge = r.arrayMerge || kn, r.isMergeableObject = r.isMergeableObject || Bn, r.cloneUnlessOtherwiseSpecified = $e;
667
- var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
668
- return o ? n ? r.arrayMerge(e, t, r) : Fn(e, t, r) : $e(t, r);
665
+ function Me(e, t, n) {
666
+ n = n || {}, n.arrayMerge = n.arrayMerge || kr, n.isMergeableObject = n.isMergeableObject || Br, n.cloneUnlessOtherwiseSpecified = ze;
667
+ var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
668
+ return o ? r ? n.arrayMerge(e, t, n) : Fr(e, t, n) : ze(t, n);
669
669
  }
670
- Pe.all = function(t, r) {
670
+ Me.all = function(t, n) {
671
671
  if (!Array.isArray(t))
672
672
  throw new Error("first argument should be an array");
673
- return t.reduce(function(n, i) {
674
- return Pe(n, i, r);
673
+ return t.reduce(function(r, i) {
674
+ return Me(r, i, n);
675
675
  }, {});
676
676
  };
677
- var jn = Pe, Vn = jn;
678
- const $n = /* @__PURE__ */ Cn(Vn);
679
- var vt = function(e, t) {
680
- return vt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
681
- r.__proto__ = n;
682
- } || function(r, n) {
683
- for (var i in n)
684
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
685
- }, vt(e, t);
677
+ var jr = Me, Vr = jr;
678
+ const zr = /* @__PURE__ */ Ar(Vr);
679
+ var _t = function(e, t) {
680
+ return _t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
681
+ n.__proto__ = r;
682
+ } || function(n, r) {
683
+ for (var i in r)
684
+ Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
685
+ }, _t(e, t);
686
686
  };
687
- function nt(e, t) {
687
+ function rt(e, t) {
688
688
  if (typeof t != "function" && t !== null)
689
689
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
690
- vt(e, t);
691
- function r() {
690
+ _t(e, t);
691
+ function n() {
692
692
  this.constructor = e;
693
693
  }
694
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
694
+ e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
695
695
  }
696
696
  var ae = function() {
697
697
  return ae = Object.assign || function(t) {
698
- for (var r, n = 1, i = arguments.length; n < i; n++) {
699
- r = arguments[n];
700
- for (var o in r)
701
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
698
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
699
+ n = arguments[r];
700
+ for (var o in n)
701
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
702
702
  }
703
703
  return t;
704
704
  }, ae.apply(this, arguments);
705
705
  };
706
- function zn(e, t) {
707
- var r = {};
708
- for (var n in e)
709
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
706
+ function $r(e, t) {
707
+ var n = {};
708
+ for (var r in e)
709
+ Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
710
710
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
711
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
712
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
713
- return r;
711
+ for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
712
+ t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
713
+ return n;
714
714
  }
715
- function pt(e, t, r) {
716
- if (r || arguments.length === 2)
717
- for (var n = 0, i = t.length, o; n < i; n++)
718
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
715
+ function pt(e, t, n) {
716
+ if (n || arguments.length === 2)
717
+ for (var r = 0, i = t.length, o; r < i; r++)
718
+ (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
719
719
  return e.concat(o || Array.prototype.slice.call(t));
720
720
  }
721
721
  function dt(e, t) {
722
- var r = t && t.cache ? t.cache : Yn, n = t && t.serializer ? t.serializer : Qn, i = t && t.strategy ? t.strategy : Zn;
722
+ var n = t && t.cache ? t.cache : Yr, r = t && t.serializer ? t.serializer : Qr, i = t && t.strategy ? t.strategy : Zr;
723
723
  return i(e, {
724
- cache: r,
725
- serializer: n
724
+ cache: n,
725
+ serializer: r
726
726
  });
727
727
  }
728
- function Xn(e) {
728
+ function Xr(e) {
729
729
  return e == null || typeof e == "number" || typeof e == "boolean";
730
730
  }
731
- function Wn(e, t, r, n) {
732
- var i = Xn(n) ? n : r(n), o = t.get(i);
733
- return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
731
+ function Wr(e, t, n, r) {
732
+ var i = Xr(r) ? r : n(r), o = t.get(i);
733
+ return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
734
734
  }
735
- function cr(e, t, r) {
736
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
737
- return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
735
+ function fn(e, t, n) {
736
+ var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
737
+ return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
738
738
  }
739
- function fr(e, t, r, n, i) {
740
- return r.bind(t, e, n, i);
739
+ function pn(e, t, n, r, i) {
740
+ return n.bind(t, e, r, i);
741
741
  }
742
- function Zn(e, t) {
743
- var r = e.length === 1 ? Wn : cr;
744
- return fr(e, this, r, t.cache.create(), t.serializer);
742
+ function Zr(e, t) {
743
+ var n = e.length === 1 ? Wr : fn;
744
+ return pn(e, this, n, t.cache.create(), t.serializer);
745
745
  }
746
- function qn(e, t) {
747
- return fr(e, this, cr, t.cache.create(), t.serializer);
746
+ function qr(e, t) {
747
+ return pn(e, this, fn, t.cache.create(), t.serializer);
748
748
  }
749
- var Qn = function() {
749
+ var Qr = function() {
750
750
  return JSON.stringify(arguments);
751
- }, Jn = (
751
+ }, Jr = (
752
752
  /** @class */
753
753
  function() {
754
754
  function e() {
@@ -756,22 +756,22 @@ var Qn = function() {
756
756
  }
757
757
  return e.prototype.get = function(t) {
758
758
  return this.cache[t];
759
- }, e.prototype.set = function(t, r) {
760
- this.cache[t] = r;
759
+ }, e.prototype.set = function(t, n) {
760
+ this.cache[t] = n;
761
761
  }, e;
762
762
  }()
763
- ), Yn = {
763
+ ), Yr = {
764
764
  create: function() {
765
- return new Jn();
765
+ return new Jr();
766
766
  }
767
767
  }, mt = {
768
- variadic: qn
768
+ variadic: qr
769
769
  }, Ke = function() {
770
770
  return Ke = Object.assign || function(t) {
771
- for (var r, n = 1, i = arguments.length; n < i; n++) {
772
- r = arguments[n];
773
- for (var o in r)
774
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
771
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
772
+ n = arguments[r];
773
+ for (var o in n)
774
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
775
775
  }
776
776
  return t;
777
777
  }, Ke.apply(this, arguments);
@@ -784,54 +784,54 @@ var L;
784
784
  (function(e) {
785
785
  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";
786
786
  })(L || (L = {}));
787
- var Me;
787
+ var Pe;
788
788
  (function(e) {
789
789
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
790
- })(Me || (Me = {}));
790
+ })(Pe || (Pe = {}));
791
791
  function jt(e) {
792
792
  return e.type === L.literal;
793
793
  }
794
- function Kn(e) {
794
+ function Kr(e) {
795
795
  return e.type === L.argument;
796
796
  }
797
- function pr(e) {
797
+ function dn(e) {
798
798
  return e.type === L.number;
799
799
  }
800
- function dr(e) {
800
+ function mn(e) {
801
801
  return e.type === L.date;
802
802
  }
803
- function mr(e) {
803
+ function gn(e) {
804
804
  return e.type === L.time;
805
805
  }
806
- function gr(e) {
806
+ function bn(e) {
807
807
  return e.type === L.select;
808
808
  }
809
- function br(e) {
809
+ function vn(e) {
810
810
  return e.type === L.plural;
811
811
  }
812
812
  function ei(e) {
813
813
  return e.type === L.pound;
814
814
  }
815
- function yr(e) {
815
+ function yn(e) {
816
816
  return e.type === L.tag;
817
817
  }
818
- function _r(e) {
819
- return !!(e && typeof e == "object" && e.type === Me.number);
818
+ function En(e) {
819
+ return !!(e && typeof e == "object" && e.type === Pe.number);
820
820
  }
821
821
  function xt(e) {
822
- return !!(e && typeof e == "object" && e.type === Me.dateTime);
822
+ return !!(e && typeof e == "object" && e.type === Pe.dateTime);
823
823
  }
824
- var Er = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ti = /(?:[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;
825
- function ri(e) {
824
+ var _n = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ti = /(?:[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;
825
+ function ni(e) {
826
826
  var t = {};
827
- return e.replace(ti, function(r) {
828
- var n = r.length;
829
- switch (r[0]) {
827
+ return e.replace(ti, function(n) {
828
+ var r = n.length;
829
+ switch (n[0]) {
830
830
  case "G":
831
- t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
831
+ t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
832
832
  break;
833
833
  case "y":
834
- t.year = n === 2 ? "2-digit" : "numeric";
834
+ t.year = r === 2 ? "2-digit" : "numeric";
835
835
  break;
836
836
  case "Y":
837
837
  case "u":
@@ -843,30 +843,30 @@ function ri(e) {
843
843
  throw new RangeError("`q/Q` (quarter) patterns are not supported");
844
844
  case "M":
845
845
  case "L":
846
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
846
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
847
847
  break;
848
848
  case "w":
849
849
  case "W":
850
850
  throw new RangeError("`w/W` (week) patterns are not supported");
851
851
  case "d":
852
- t.day = ["numeric", "2-digit"][n - 1];
852
+ t.day = ["numeric", "2-digit"][r - 1];
853
853
  break;
854
854
  case "D":
855
855
  case "F":
856
856
  case "g":
857
857
  throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
858
858
  case "E":
859
- t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
859
+ t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
860
860
  break;
861
861
  case "e":
862
- if (n < 4)
862
+ if (r < 4)
863
863
  throw new RangeError("`e..eee` (weekday) patterns are not supported");
864
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
864
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
865
865
  break;
866
866
  case "c":
867
- if (n < 4)
867
+ if (r < 4)
868
868
  throw new RangeError("`c..ccc` (weekday) patterns are not supported");
869
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
869
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
870
870
  break;
871
871
  case "a":
872
872
  t.hour12 = !0;
@@ -875,32 +875,32 @@ function ri(e) {
875
875
  case "B":
876
876
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
877
877
  case "h":
878
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
878
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
879
879
  break;
880
880
  case "H":
881
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
881
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
882
882
  break;
883
883
  case "K":
884
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
884
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
885
885
  break;
886
886
  case "k":
887
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
887
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
888
888
  break;
889
889
  case "j":
890
890
  case "J":
891
891
  case "C":
892
892
  throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
893
893
  case "m":
894
- t.minute = ["numeric", "2-digit"][n - 1];
894
+ t.minute = ["numeric", "2-digit"][r - 1];
895
895
  break;
896
896
  case "s":
897
- t.second = ["numeric", "2-digit"][n - 1];
897
+ t.second = ["numeric", "2-digit"][r - 1];
898
898
  break;
899
899
  case "S":
900
900
  case "A":
901
901
  throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
902
902
  case "z":
903
- t.timeZoneName = n < 4 ? "short" : "long";
903
+ t.timeZoneName = r < 4 ? "short" : "long";
904
904
  break;
905
905
  case "Z":
906
906
  case "O":
@@ -915,22 +915,22 @@ function ri(e) {
915
915
  }
916
916
  var R = function() {
917
917
  return R = Object.assign || function(t) {
918
- for (var r, n = 1, i = arguments.length; n < i; n++) {
919
- r = arguments[n];
920
- for (var o in r)
921
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
918
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
919
+ n = arguments[r];
920
+ for (var o in n)
921
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
922
922
  }
923
923
  return t;
924
924
  }, R.apply(this, arguments);
925
925
  };
926
- var ni = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
926
+ var ri = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
927
927
  function ii(e) {
928
928
  if (e.length === 0)
929
929
  throw new Error("Number skeleton cannot be empty");
930
- for (var t = e.split(ni).filter(function(d) {
930
+ for (var t = e.split(ri).filter(function(d) {
931
931
  return d.length > 0;
932
- }), r = [], n = 0, i = t; n < i.length; n++) {
933
- var o = i[n], a = o.split("/");
932
+ }), n = [], r = 0, i = t; r < i.length; r++) {
933
+ var o = i[r], a = o.split("/");
934
934
  if (a.length === 0)
935
935
  throw new Error("Invalid number skeleton");
936
936
  for (var s = a[0], u = a.slice(1), l = 0, h = u; l < h.length; l++) {
@@ -938,21 +938,21 @@ function ii(e) {
938
938
  if (c.length === 0)
939
939
  throw new Error("Invalid number skeleton");
940
940
  }
941
- r.push({ stem: s, options: u });
941
+ n.push({ stem: s, options: u });
942
942
  }
943
- return r;
943
+ return n;
944
944
  }
945
945
  function oi(e) {
946
946
  return e.replace(/^(.*?)-/, "");
947
947
  }
948
- var Vt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, vr = /^(@+)?(\+|#+)?[rs]?$/g, si = /(\*)(0+)|(#+)(0+)|(0+)/g, xr = /^(0+)$/;
949
- function $t(e) {
948
+ var Vt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, xn = /^(@+)?(\+|#+)?[rs]?$/g, si = /(\*)(0+)|(#+)(0+)|(0+)/g, wn = /^(0+)$/;
949
+ function zt(e) {
950
950
  var t = {};
951
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(vr, function(r, n, i) {
952
- 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)), "";
951
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(xn, function(n, r, i) {
952
+ return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
953
953
  }), t;
954
954
  }
955
- function wr(e) {
955
+ function Sn(e) {
956
956
  switch (e) {
957
957
  case "sign-auto":
958
958
  return {
@@ -999,20 +999,20 @@ function ai(e) {
999
999
  }, e = e.slice(2)) : e[0] === "E" && (t = {
1000
1000
  notation: "scientific"
1001
1001
  }, e = e.slice(1)), t) {
1002
- var r = e.slice(0, 2);
1003
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !xr.test(e))
1002
+ var n = e.slice(0, 2);
1003
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !wn.test(e))
1004
1004
  throw new Error("Malformed concise eng/scientific notation");
1005
1005
  t.minimumIntegerDigits = e.length;
1006
1006
  }
1007
1007
  return t;
1008
1008
  }
1009
- function zt(e) {
1010
- var t = {}, r = wr(e);
1011
- return r || t;
1009
+ function $t(e) {
1010
+ var t = {}, n = Sn(e);
1011
+ return n || t;
1012
1012
  }
1013
1013
  function li(e) {
1014
- for (var t = {}, r = 0, n = e; r < n.length; r++) {
1015
- var i = n[r];
1014
+ for (var t = {}, n = 0, r = e; n < r.length; n++) {
1015
+ var i = r[n];
1016
1016
  switch (i.stem) {
1017
1017
  case "percent":
1018
1018
  case "%":
@@ -1046,12 +1046,12 @@ function li(e) {
1046
1046
  continue;
1047
1047
  case "scientific":
1048
1048
  t = R(R(R({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
1049
- return R(R({}, u), zt(l));
1049
+ return R(R({}, u), $t(l));
1050
1050
  }, {}));
1051
1051
  continue;
1052
1052
  case "engineering":
1053
1053
  t = R(R(R({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
1054
- return R(R({}, u), zt(l));
1054
+ return R(R({}, u), $t(l));
1055
1055
  }, {}));
1056
1056
  continue;
1057
1057
  case "notation-simple":
@@ -1096,38 +1096,38 @@ function li(e) {
1096
1096
  case "integer-width":
1097
1097
  if (i.options.length > 1)
1098
1098
  throw new RangeError("integer-width stems only accept a single optional option");
1099
- i.options[0].replace(si, function(u, l, h, c, d, _) {
1099
+ i.options[0].replace(si, function(u, l, h, c, d, y) {
1100
1100
  if (l)
1101
1101
  t.minimumIntegerDigits = h.length;
1102
1102
  else {
1103
1103
  if (c && d)
1104
1104
  throw new Error("We currently do not support maximum integer digits");
1105
- if (_)
1105
+ if (y)
1106
1106
  throw new Error("We currently do not support exact integer digits");
1107
1107
  }
1108
1108
  return "";
1109
1109
  });
1110
1110
  continue;
1111
1111
  }
1112
- if (xr.test(i.stem)) {
1112
+ if (wn.test(i.stem)) {
1113
1113
  t.minimumIntegerDigits = i.stem.length;
1114
1114
  continue;
1115
1115
  }
1116
1116
  if (Vt.test(i.stem)) {
1117
1117
  if (i.options.length > 1)
1118
1118
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1119
- i.stem.replace(Vt, function(u, l, h, c, d, _) {
1120
- return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : d && _ ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + _.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1119
+ i.stem.replace(Vt, function(u, l, h, c, d, y) {
1120
+ return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : d && y ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1121
1121
  });
1122
1122
  var o = i.options[0];
1123
- o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t), $t(o)));
1123
+ o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t), zt(o)));
1124
1124
  continue;
1125
1125
  }
1126
- if (vr.test(i.stem)) {
1127
- t = R(R({}, t), $t(i.stem));
1126
+ if (xn.test(i.stem)) {
1127
+ t = R(R({}, t), zt(i.stem));
1128
1128
  continue;
1129
1129
  }
1130
- var a = wr(i.stem);
1130
+ var a = Sn(i.stem);
1131
1131
  a && (t = R(R({}, t), a));
1132
1132
  var s = ai(i.stem);
1133
1133
  s && (t = R(R({}, t), s));
@@ -2550,20 +2550,20 @@ var Ze = {
2550
2550
  ]
2551
2551
  };
2552
2552
  function ui(e, t) {
2553
- for (var r = "", n = 0; n < e.length; n++) {
2554
- var i = e.charAt(n);
2553
+ for (var n = "", r = 0; r < e.length; r++) {
2554
+ var i = e.charAt(r);
2555
2555
  if (i === "j") {
2556
- for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2557
- o++, n++;
2556
+ for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2557
+ o++, r++;
2558
2558
  var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = hi(t);
2559
2559
  for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
2560
- r += u;
2560
+ n += u;
2561
2561
  for (; a-- > 0; )
2562
- r = l + r;
2562
+ n = l + n;
2563
2563
  } else
2564
- i === "J" ? r += "H" : r += i;
2564
+ i === "J" ? n += "H" : n += i;
2565
2565
  }
2566
- return r;
2566
+ return n;
2567
2567
  }
2568
2568
  function hi(e) {
2569
2569
  var t = e.hourCycle;
@@ -2582,70 +2582,70 @@ function hi(e) {
2582
2582
  default:
2583
2583
  throw new Error("Invalid hourCycle");
2584
2584
  }
2585
- var r = e.language, n;
2586
- r !== "root" && (n = e.maximize().region);
2587
- var i = Ze[n || ""] || Ze[r || ""] || Ze["".concat(r, "-001")] || Ze["001"];
2585
+ var n = e.language, r;
2586
+ n !== "root" && (r = e.maximize().region);
2587
+ var i = Ze[r || ""] || Ze[n || ""] || Ze["".concat(n, "-001")] || Ze["001"];
2588
2588
  return i[0];
2589
2589
  }
2590
- var gt, ci = new RegExp("^".concat(Er.source, "*")), fi = new RegExp("".concat(Er.source, "*$"));
2590
+ var gt, ci = new RegExp("^".concat(_n.source, "*")), fi = new RegExp("".concat(_n.source, "*$"));
2591
2591
  function T(e, t) {
2592
2592
  return { start: e, end: t };
2593
2593
  }
2594
- var pi = !!String.prototype.startsWith && "_a".startsWith("a", 1), di = !!String.fromCodePoint, mi = !!Object.fromEntries, gi = !!String.prototype.codePointAt, bi = !!String.prototype.trimStart, yi = !!String.prototype.trimEnd, _i = !!Number.isSafeInteger, Ei = _i ? Number.isSafeInteger : function(e) {
2594
+ var pi = !!String.prototype.startsWith && "_a".startsWith("a", 1), di = !!String.fromCodePoint, mi = !!Object.fromEntries, gi = !!String.prototype.codePointAt, bi = !!String.prototype.trimStart, vi = !!String.prototype.trimEnd, yi = !!Number.isSafeInteger, Ei = yi ? Number.isSafeInteger : function(e) {
2595
2595
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2596
2596
  }, wt = !0;
2597
2597
  try {
2598
- var vi = Tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2599
- wt = ((gt = vi.exec("a")) === null || gt === void 0 ? void 0 : gt[0]) === "a";
2598
+ var _i = On("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2599
+ wt = ((gt = _i.exec("a")) === null || gt === void 0 ? void 0 : gt[0]) === "a";
2600
2600
  } catch (e) {
2601
2601
  wt = !1;
2602
2602
  }
2603
2603
  var Xt = pi ? (
2604
2604
  // Native
2605
- function(t, r, n) {
2606
- return t.startsWith(r, n);
2605
+ function(t, n, r) {
2606
+ return t.startsWith(n, r);
2607
2607
  }
2608
2608
  ) : (
2609
2609
  // For IE11
2610
- function(t, r, n) {
2611
- return t.slice(n, n + r.length) === r;
2610
+ function(t, n, r) {
2611
+ return t.slice(r, r + n.length) === n;
2612
2612
  }
2613
2613
  ), St = di ? String.fromCodePoint : (
2614
2614
  // IE11
2615
2615
  function() {
2616
- for (var t = [], r = 0; r < arguments.length; r++)
2617
- t[r] = arguments[r];
2618
- for (var n = "", i = t.length, o = 0, a; i > o; ) {
2616
+ for (var t = [], n = 0; n < arguments.length; n++)
2617
+ t[n] = arguments[n];
2618
+ for (var r = "", i = t.length, o = 0, a; i > o; ) {
2619
2619
  if (a = t[o++], a > 1114111)
2620
2620
  throw RangeError(a + " is not a valid code point");
2621
- n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2621
+ r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2622
2622
  }
2623
- return n;
2623
+ return r;
2624
2624
  }
2625
2625
  ), Wt = (
2626
2626
  // native
2627
2627
  mi ? Object.fromEntries : (
2628
2628
  // Ponyfill
2629
2629
  function(t) {
2630
- for (var r = {}, n = 0, i = t; n < i.length; n++) {
2631
- var o = i[n], a = o[0], s = o[1];
2632
- r[a] = s;
2630
+ for (var n = {}, r = 0, i = t; r < i.length; r++) {
2631
+ var o = i[r], a = o[0], s = o[1];
2632
+ n[a] = s;
2633
2633
  }
2634
- return r;
2634
+ return n;
2635
2635
  }
2636
2636
  )
2637
- ), Sr = gi ? (
2637
+ ), Tn = gi ? (
2638
2638
  // Native
2639
- function(t, r) {
2640
- return t.codePointAt(r);
2639
+ function(t, n) {
2640
+ return t.codePointAt(n);
2641
2641
  }
2642
2642
  ) : (
2643
2643
  // IE 11
2644
- function(t, r) {
2645
- var n = t.length;
2646
- if (!(r < 0 || r >= n)) {
2647
- var i = t.charCodeAt(r), o;
2648
- return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2644
+ function(t, n) {
2645
+ var r = t.length;
2646
+ if (!(n < 0 || n >= r)) {
2647
+ var i = t.charCodeAt(n), o;
2648
+ return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2649
2649
  }
2650
2650
  }
2651
2651
  ), xi = bi ? (
@@ -2658,7 +2658,7 @@ var Xt = pi ? (
2658
2658
  function(t) {
2659
2659
  return t.replace(ci, "");
2660
2660
  }
2661
- ), wi = yi ? (
2661
+ ), wi = vi ? (
2662
2662
  // Native
2663
2663
  function(t) {
2664
2664
  return t.trimEnd();
@@ -2669,66 +2669,66 @@ var Xt = pi ? (
2669
2669
  return t.replace(fi, "");
2670
2670
  }
2671
2671
  );
2672
- function Tr(e, t) {
2672
+ function On(e, t) {
2673
2673
  return new RegExp(e, t);
2674
2674
  }
2675
2675
  var Tt;
2676
2676
  if (wt) {
2677
- var Zt = Tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2678
- Tt = function(t, r) {
2679
- var n;
2680
- Zt.lastIndex = r;
2677
+ var Zt = On("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2678
+ Tt = function(t, n) {
2679
+ var r;
2680
+ Zt.lastIndex = n;
2681
2681
  var i = Zt.exec(t);
2682
- return (n = i[1]) !== null && n !== void 0 ? n : "";
2682
+ return (r = i[1]) !== null && r !== void 0 ? r : "";
2683
2683
  };
2684
2684
  } else
2685
- Tt = function(t, r) {
2686
- for (var n = []; ; ) {
2687
- var i = Sr(t, r);
2688
- if (i === void 0 || Or(i) || Hi(i))
2685
+ Tt = function(t, n) {
2686
+ for (var r = []; ; ) {
2687
+ var i = Tn(t, n);
2688
+ if (i === void 0 || Hn(i) || Hi(i))
2689
2689
  break;
2690
- n.push(i), r += i >= 65536 ? 2 : 1;
2690
+ r.push(i), n += i >= 65536 ? 2 : 1;
2691
2691
  }
2692
- return St.apply(void 0, n);
2692
+ return St.apply(void 0, r);
2693
2693
  };
2694
2694
  var Si = (
2695
2695
  /** @class */
2696
2696
  function() {
2697
- function e(t, r) {
2698
- r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
2697
+ function e(t, n) {
2698
+ n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
2699
2699
  }
2700
2700
  return e.prototype.parse = function() {
2701
2701
  if (this.offset() !== 0)
2702
2702
  throw Error("parser can only be used once");
2703
2703
  return this.parseMessage(0, "", !1);
2704
- }, e.prototype.parseMessage = function(t, r, n) {
2704
+ }, e.prototype.parseMessage = function(t, n, r) {
2705
2705
  for (var i = []; !this.isEOF(); ) {
2706
2706
  var o = this.char();
2707
2707
  if (o === 123) {
2708
- var a = this.parseArgument(t, n);
2708
+ var a = this.parseArgument(t, r);
2709
2709
  if (a.err)
2710
2710
  return a;
2711
2711
  i.push(a.val);
2712
2712
  } else {
2713
2713
  if (o === 125 && t > 0)
2714
2714
  break;
2715
- if (o === 35 && (r === "plural" || r === "selectordinal")) {
2715
+ if (o === 35 && (n === "plural" || n === "selectordinal")) {
2716
2716
  var s = this.clonePosition();
2717
2717
  this.bump(), i.push({
2718
2718
  type: L.pound,
2719
2719
  location: T(s, this.clonePosition())
2720
2720
  });
2721
2721
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2722
- if (n)
2722
+ if (r)
2723
2723
  break;
2724
2724
  return this.error(w.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
2725
2725
  } else if (o === 60 && !this.ignoreTag && Ot(this.peek() || 0)) {
2726
- var a = this.parseTag(t, r);
2726
+ var a = this.parseTag(t, n);
2727
2727
  if (a.err)
2728
2728
  return a;
2729
2729
  i.push(a.val);
2730
2730
  } else {
2731
- var a = this.parseLiteral(t, r);
2731
+ var a = this.parseLiteral(t, n);
2732
2732
  if (a.err)
2733
2733
  return a;
2734
2734
  i.push(a.val);
@@ -2736,8 +2736,8 @@ var Si = (
2736
2736
  }
2737
2737
  }
2738
2738
  return { val: i, err: null };
2739
- }, e.prototype.parseTag = function(t, r) {
2740
- var n = this.clonePosition();
2739
+ }, e.prototype.parseTag = function(t, n) {
2740
+ var r = this.clonePosition();
2741
2741
  this.bump();
2742
2742
  var i = this.parseTagName();
2743
2743
  if (this.bumpSpace(), this.bumpIf("/>"))
@@ -2745,12 +2745,12 @@ var Si = (
2745
2745
  val: {
2746
2746
  type: L.literal,
2747
2747
  value: "<".concat(i, "/>"),
2748
- location: T(n, this.clonePosition())
2748
+ location: T(r, this.clonePosition())
2749
2749
  },
2750
2750
  err: null
2751
2751
  };
2752
2752
  if (this.bumpIf(">")) {
2753
- var o = this.parseMessage(t + 1, r, !0);
2753
+ var o = this.parseMessage(t + 1, n, !0);
2754
2754
  if (o.err)
2755
2755
  return o;
2756
2756
  var a = o.val, s = this.clonePosition();
@@ -2763,27 +2763,27 @@ var Si = (
2763
2763
  type: L.tag,
2764
2764
  value: i,
2765
2765
  children: a,
2766
- location: T(n, this.clonePosition())
2766
+ location: T(r, this.clonePosition())
2767
2767
  },
2768
2768
  err: null
2769
2769
  } : this.error(w.INVALID_TAG, T(s, this.clonePosition())));
2770
2770
  } else
2771
- return this.error(w.UNCLOSED_TAG, T(n, this.clonePosition()));
2771
+ return this.error(w.UNCLOSED_TAG, T(r, this.clonePosition()));
2772
2772
  } else
2773
- return this.error(w.INVALID_TAG, T(n, this.clonePosition()));
2773
+ return this.error(w.INVALID_TAG, T(r, this.clonePosition()));
2774
2774
  }, e.prototype.parseTagName = function() {
2775
2775
  var t = this.offset();
2776
2776
  for (this.bump(); !this.isEOF() && Oi(this.char()); )
2777
2777
  this.bump();
2778
2778
  return this.message.slice(t, this.offset());
2779
- }, e.prototype.parseLiteral = function(t, r) {
2780
- for (var n = this.clonePosition(), i = ""; ; ) {
2781
- var o = this.tryParseQuote(r);
2779
+ }, e.prototype.parseLiteral = function(t, n) {
2780
+ for (var r = this.clonePosition(), i = ""; ; ) {
2781
+ var o = this.tryParseQuote(n);
2782
2782
  if (o) {
2783
2783
  i += o;
2784
2784
  continue;
2785
2785
  }
2786
- var a = this.tryParseUnquoted(t, r);
2786
+ var a = this.tryParseUnquoted(t, n);
2787
2787
  if (a) {
2788
2788
  i += a;
2789
2789
  continue;
@@ -2795,7 +2795,7 @@ var Si = (
2795
2795
  }
2796
2796
  break;
2797
2797
  }
2798
- var u = T(n, this.clonePosition());
2798
+ var u = T(r, this.clonePosition());
2799
2799
  return {
2800
2800
  val: { type: L.literal, value: i, location: u },
2801
2801
  err: null
@@ -2822,37 +2822,37 @@ var Si = (
2822
2822
  return null;
2823
2823
  }
2824
2824
  this.bump();
2825
- var r = [this.char()];
2825
+ var n = [this.char()];
2826
2826
  for (this.bump(); !this.isEOF(); ) {
2827
- var n = this.char();
2828
- if (n === 39)
2827
+ var r = this.char();
2828
+ if (r === 39)
2829
2829
  if (this.peek() === 39)
2830
- r.push(39), this.bump();
2830
+ n.push(39), this.bump();
2831
2831
  else {
2832
2832
  this.bump();
2833
2833
  break;
2834
2834
  }
2835
2835
  else
2836
- r.push(n);
2836
+ n.push(r);
2837
2837
  this.bump();
2838
2838
  }
2839
- return St.apply(void 0, r);
2840
- }, e.prototype.tryParseUnquoted = function(t, r) {
2839
+ return St.apply(void 0, n);
2840
+ }, e.prototype.tryParseUnquoted = function(t, n) {
2841
2841
  if (this.isEOF())
2842
2842
  return null;
2843
- var n = this.char();
2844
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), St(n));
2845
- }, e.prototype.parseArgument = function(t, r) {
2846
- var n = this.clonePosition();
2843
+ var r = this.char();
2844
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), St(r));
2845
+ }, e.prototype.parseArgument = function(t, n) {
2846
+ var r = this.clonePosition();
2847
2847
  if (this.bump(), this.bumpSpace(), this.isEOF())
2848
- return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
2848
+ return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
2849
2849
  if (this.char() === 125)
2850
- return this.bump(), this.error(w.EMPTY_ARGUMENT, T(n, this.clonePosition()));
2850
+ return this.bump(), this.error(w.EMPTY_ARGUMENT, T(r, this.clonePosition()));
2851
2851
  var i = this.parseIdentifierIfPossible().value;
2852
2852
  if (!i)
2853
- return this.error(w.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
2853
+ return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
2854
2854
  if (this.bumpSpace(), this.isEOF())
2855
- return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
2855
+ return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
2856
2856
  switch (this.char()) {
2857
2857
  case 125:
2858
2858
  return this.bump(), {
@@ -2860,21 +2860,21 @@ var Si = (
2860
2860
  type: L.argument,
2861
2861
  // value does not include the opening and closing braces.
2862
2862
  value: i,
2863
- location: T(n, this.clonePosition())
2863
+ location: T(r, this.clonePosition())
2864
2864
  },
2865
2865
  err: null
2866
2866
  };
2867
2867
  case 44:
2868
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2868
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2869
2869
  default:
2870
- return this.error(w.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
2870
+ return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
2871
2871
  }
2872
2872
  }, e.prototype.parseIdentifierIfPossible = function() {
2873
- var t = this.clonePosition(), r = this.offset(), n = Tt(this.message, r), i = r + n.length;
2873
+ var t = this.clonePosition(), n = this.offset(), r = Tt(this.message, n), i = n + r.length;
2874
2874
  this.bumpTo(i);
2875
2875
  var o = this.clonePosition(), a = T(t, o);
2876
- return { value: n, location: a };
2877
- }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2876
+ return { value: r, location: a };
2877
+ }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2878
2878
  var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2879
2879
  switch (s) {
2880
2880
  case "":
@@ -2892,34 +2892,34 @@ var Si = (
2892
2892
  var d = wi(c.val);
2893
2893
  if (d.length === 0)
2894
2894
  return this.error(w.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
2895
- var _ = T(h, this.clonePosition());
2896
- l = { style: d, styleLocation: _ };
2895
+ var y = T(h, this.clonePosition());
2896
+ l = { style: d, styleLocation: y };
2897
2897
  }
2898
2898
  var m = this.tryParseArgumentClose(i);
2899
2899
  if (m.err)
2900
2900
  return m;
2901
2901
  var g = T(i, this.clonePosition());
2902
2902
  if (l && Xt(l == null ? void 0 : l.style, "::", 0)) {
2903
- var v = xi(l.style.slice(2));
2903
+ var _ = xi(l.style.slice(2));
2904
2904
  if (s === "number") {
2905
- var c = this.parseNumberSkeletonFromString(v, l.styleLocation);
2905
+ var c = this.parseNumberSkeletonFromString(_, l.styleLocation);
2906
2906
  return c.err ? c : {
2907
- val: { type: L.number, value: n, location: g, style: c.val },
2907
+ val: { type: L.number, value: r, location: g, style: c.val },
2908
2908
  err: null
2909
2909
  };
2910
2910
  } else {
2911
- if (v.length === 0)
2911
+ if (_.length === 0)
2912
2912
  return this.error(w.EXPECT_DATE_TIME_SKELETON, g);
2913
- var S = v;
2914
- this.locale && (S = ui(v, this.locale));
2913
+ var S = _;
2914
+ this.locale && (S = ui(_, this.locale));
2915
2915
  var d = {
2916
- type: Me.dateTime,
2916
+ type: Pe.dateTime,
2917
2917
  pattern: S,
2918
2918
  location: l.styleLocation,
2919
- parsedOptions: this.shouldParseSkeletons ? ri(S) : {}
2920
- }, P = s === "date" ? L.date : L.time;
2919
+ parsedOptions: this.shouldParseSkeletons ? ni(S) : {}
2920
+ }, M = s === "date" ? L.date : L.time;
2921
2921
  return {
2922
- val: { type: P, value: n, location: g, style: d },
2922
+ val: { type: M, value: r, location: g, style: d },
2923
2923
  err: null
2924
2924
  };
2925
2925
  }
@@ -2927,7 +2927,7 @@ var Si = (
2927
2927
  return {
2928
2928
  val: {
2929
2929
  type: s === "number" ? L.number : s === "date" ? L.date : L.time,
2930
- value: n,
2930
+ value: r,
2931
2931
  location: g,
2932
2932
  style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
2933
2933
  },
@@ -2941,7 +2941,7 @@ var Si = (
2941
2941
  if (this.bumpSpace(), !this.bumpIf(","))
2942
2942
  return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, T(I, Ke({}, I)));
2943
2943
  this.bumpSpace();
2944
- var D = this.parseIdentifierIfPossible(), M = 0;
2944
+ var D = this.parseIdentifierIfPossible(), P = 0;
2945
2945
  if (s !== "select" && D.value === "offset") {
2946
2946
  if (!this.bumpIf(":"))
2947
2947
  return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
@@ -2949,31 +2949,31 @@ var Si = (
2949
2949
  var c = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2950
2950
  if (c.err)
2951
2951
  return c;
2952
- this.bumpSpace(), D = this.parseIdentifierIfPossible(), M = c.val;
2952
+ this.bumpSpace(), D = this.parseIdentifierIfPossible(), P = c.val;
2953
2953
  }
2954
- var N = this.tryParsePluralOrSelectOptions(t, s, r, D);
2954
+ var N = this.tryParsePluralOrSelectOptions(t, s, n, D);
2955
2955
  if (N.err)
2956
2956
  return N;
2957
2957
  var m = this.tryParseArgumentClose(i);
2958
2958
  if (m.err)
2959
2959
  return m;
2960
- var re = T(i, this.clonePosition());
2960
+ var ne = T(i, this.clonePosition());
2961
2961
  return s === "select" ? {
2962
2962
  val: {
2963
2963
  type: L.select,
2964
- value: n,
2964
+ value: r,
2965
2965
  options: Wt(N.val),
2966
- location: re
2966
+ location: ne
2967
2967
  },
2968
2968
  err: null
2969
2969
  } : {
2970
2970
  val: {
2971
2971
  type: L.plural,
2972
- value: n,
2972
+ value: r,
2973
2973
  options: Wt(N.val),
2974
- offset: M,
2974
+ offset: P,
2975
2975
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2976
- location: re
2976
+ location: ne
2977
2977
  },
2978
2978
  err: null
2979
2979
  };
@@ -2984,9 +2984,9 @@ var Si = (
2984
2984
  }, e.prototype.tryParseArgumentClose = function(t) {
2985
2985
  return this.isEOF() || this.char() !== 125 ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2986
2986
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2987
- for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2988
- var n = this.char();
2989
- switch (n) {
2987
+ for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2988
+ var r = this.char();
2989
+ switch (r) {
2990
2990
  case 39: {
2991
2991
  this.bump();
2992
2992
  var i = this.clonePosition();
@@ -3004,7 +3004,7 @@ var Si = (
3004
3004
  t -= 1;
3005
3005
  else
3006
3006
  return {
3007
- val: this.message.slice(r.offset, this.offset()),
3007
+ val: this.message.slice(n.offset, this.offset()),
3008
3008
  err: null
3009
3009
  };
3010
3010
  break;
@@ -3015,30 +3015,30 @@ var Si = (
3015
3015
  }
3016
3016
  }
3017
3017
  return {
3018
- val: this.message.slice(r.offset, this.offset()),
3018
+ val: this.message.slice(n.offset, this.offset()),
3019
3019
  err: null
3020
3020
  };
3021
- }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3022
- var n = [];
3021
+ }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
3022
+ var r = [];
3023
3023
  try {
3024
- n = ii(t);
3024
+ r = ii(t);
3025
3025
  } catch (i) {
3026
- return this.error(w.INVALID_NUMBER_SKELETON, r);
3026
+ return this.error(w.INVALID_NUMBER_SKELETON, n);
3027
3027
  }
3028
3028
  return {
3029
3029
  val: {
3030
- type: Me.number,
3031
- tokens: n,
3032
- location: r,
3033
- parsedOptions: this.shouldParseSkeletons ? li(n) : {}
3030
+ type: Pe.number,
3031
+ tokens: r,
3032
+ location: n,
3033
+ parsedOptions: this.shouldParseSkeletons ? li(r) : {}
3034
3034
  },
3035
3035
  err: null
3036
3036
  };
3037
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3037
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
3038
3038
  for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
3039
3039
  if (l.length === 0) {
3040
3040
  var c = this.clonePosition();
3041
- if (r !== "select" && this.bumpIf("=")) {
3041
+ if (n !== "select" && this.bumpIf("=")) {
3042
3042
  var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
3043
3043
  if (d.err)
3044
3044
  return d;
@@ -3047,29 +3047,29 @@ var Si = (
3047
3047
  break;
3048
3048
  }
3049
3049
  if (u.has(l))
3050
- return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3050
+ return this.error(n === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3051
3051
  l === "other" && (a = !0), this.bumpSpace();
3052
- var _ = this.clonePosition();
3052
+ var y = this.clonePosition();
3053
3053
  if (!this.bumpIf("{"))
3054
- return this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
3055
- var m = this.parseMessage(t + 1, r, n);
3054
+ return this.error(n === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
3055
+ var m = this.parseMessage(t + 1, n, r);
3056
3056
  if (m.err)
3057
3057
  return m;
3058
- var g = this.tryParseArgumentClose(_);
3058
+ var g = this.tryParseArgumentClose(y);
3059
3059
  if (g.err)
3060
3060
  return g;
3061
3061
  s.push([
3062
3062
  l,
3063
3063
  {
3064
3064
  value: m.val,
3065
- location: T(_, this.clonePosition())
3065
+ location: T(y, this.clonePosition())
3066
3066
  }
3067
3067
  ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
3068
3068
  }
3069
- return s.length === 0 ? this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR : w.EXPECT_PLURAL_ARGUMENT_SELECTOR, T(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(w.MISSING_OTHER_CLAUSE, T(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3070
- }, e.prototype.tryParseDecimalInteger = function(t, r) {
3071
- var n = 1, i = this.clonePosition();
3072
- this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3069
+ return s.length === 0 ? this.error(n === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR : w.EXPECT_PLURAL_ARGUMENT_SELECTOR, T(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(w.MISSING_OTHER_CLAUSE, T(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3070
+ }, e.prototype.tryParseDecimalInteger = function(t, n) {
3071
+ var r = 1, i = this.clonePosition();
3072
+ this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3073
3073
  for (var o = !1, a = 0; !this.isEOF(); ) {
3074
3074
  var s = this.char();
3075
3075
  if (s >= 48 && s <= 57)
@@ -3078,7 +3078,7 @@ var Si = (
3078
3078
  break;
3079
3079
  }
3080
3080
  var u = T(i, this.clonePosition());
3081
- return o ? (a *= n, Ei(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
3081
+ return o ? (a *= r, Ei(a) ? { val: a, err: null } : this.error(n, u)) : this.error(t, u);
3082
3082
  }, e.prototype.offset = function() {
3083
3083
  return this.position.offset;
3084
3084
  }, e.prototype.isEOF = function() {
@@ -3093,17 +3093,17 @@ var Si = (
3093
3093
  var t = this.position.offset;
3094
3094
  if (t >= this.message.length)
3095
3095
  throw Error("out of bound");
3096
- var r = Sr(this.message, t);
3097
- if (r === void 0)
3096
+ var n = Tn(this.message, t);
3097
+ if (n === void 0)
3098
3098
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3099
- return r;
3100
- }, e.prototype.error = function(t, r) {
3099
+ return n;
3100
+ }, e.prototype.error = function(t, n) {
3101
3101
  return {
3102
3102
  val: null,
3103
3103
  err: {
3104
3104
  kind: t,
3105
3105
  message: this.message,
3106
- location: r
3106
+ location: n
3107
3107
  }
3108
3108
  };
3109
3109
  }, e.prototype.bump = function() {
@@ -3113,34 +3113,34 @@ var Si = (
3113
3113
  }
3114
3114
  }, e.prototype.bumpIf = function(t) {
3115
3115
  if (Xt(this.message, t, this.offset())) {
3116
- for (var r = 0; r < t.length; r++)
3116
+ for (var n = 0; n < t.length; n++)
3117
3117
  this.bump();
3118
3118
  return !0;
3119
3119
  }
3120
3120
  return !1;
3121
3121
  }, e.prototype.bumpUntil = function(t) {
3122
- var r = this.offset(), n = this.message.indexOf(t, r);
3123
- return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3122
+ var n = this.offset(), r = this.message.indexOf(t, n);
3123
+ return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
3124
3124
  }, e.prototype.bumpTo = function(t) {
3125
3125
  if (this.offset() > t)
3126
3126
  throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3127
3127
  for (t = Math.min(t, this.message.length); ; ) {
3128
- var r = this.offset();
3129
- if (r === t)
3128
+ var n = this.offset();
3129
+ if (n === t)
3130
3130
  break;
3131
- if (r > t)
3131
+ if (n > t)
3132
3132
  throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3133
3133
  if (this.bump(), this.isEOF())
3134
3134
  break;
3135
3135
  }
3136
3136
  }, e.prototype.bumpSpace = function() {
3137
- for (; !this.isEOF() && Or(this.char()); )
3137
+ for (; !this.isEOF() && Hn(this.char()); )
3138
3138
  this.bump();
3139
3139
  }, e.prototype.peek = function() {
3140
3140
  if (this.isEOF())
3141
3141
  return null;
3142
- var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3143
- return n != null ? n : null;
3142
+ var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3143
+ return r != null ? r : null;
3144
3144
  }, e;
3145
3145
  }()
3146
3146
  );
@@ -3153,7 +3153,7 @@ function Ti(e) {
3153
3153
  function Oi(e) {
3154
3154
  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;
3155
3155
  }
3156
- function Or(e) {
3156
+ function Hn(e) {
3157
3157
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3158
3158
  }
3159
3159
  function Hi(e) {
@@ -3161,21 +3161,21 @@ function Hi(e) {
3161
3161
  }
3162
3162
  function Ht(e) {
3163
3163
  e.forEach(function(t) {
3164
- if (delete t.location, gr(t) || br(t))
3165
- for (var r in t.options)
3166
- delete t.options[r].location, Ht(t.options[r].value);
3164
+ if (delete t.location, bn(t) || vn(t))
3165
+ for (var n in t.options)
3166
+ delete t.options[n].location, Ht(t.options[n].value);
3167
3167
  else
3168
- pr(t) && _r(t.style) || (dr(t) || mr(t)) && xt(t.style) ? delete t.style.location : yr(t) && Ht(t.children);
3168
+ dn(t) && En(t.style) || (mn(t) || gn(t)) && xt(t.style) ? delete t.style.location : yn(t) && Ht(t.children);
3169
3169
  });
3170
3170
  }
3171
- function Ai(e, t) {
3171
+ function Ci(e, t) {
3172
3172
  t === void 0 && (t = {}), t = Ke({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3173
- var r = new Si(e, t).parse();
3174
- if (r.err) {
3175
- var n = SyntaxError(w[r.err.kind]);
3176
- throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3173
+ var n = new Si(e, t).parse();
3174
+ if (n.err) {
3175
+ var r = SyntaxError(w[n.err.kind]);
3176
+ throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3177
3177
  }
3178
- return t != null && t.captureLocation || Ht(r.val), r.val;
3178
+ return t != null && t.captureLocation || Ht(n.val), n.val;
3179
3179
  }
3180
3180
  var Le;
3181
3181
  (function(e) {
@@ -3184,10 +3184,10 @@ var Le;
3184
3184
  var it = (
3185
3185
  /** @class */
3186
3186
  function(e) {
3187
- nt(t, e);
3188
- function t(r, n, i) {
3189
- var o = e.call(this, r) || this;
3190
- return o.code = n, o.originalMessage = i, o;
3187
+ rt(t, e);
3188
+ function t(n, r, i) {
3189
+ var o = e.call(this, n) || this;
3190
+ return o.code = r, o.originalMessage = i, o;
3191
3191
  }
3192
3192
  return t.prototype.toString = function() {
3193
3193
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
@@ -3196,27 +3196,27 @@ var it = (
3196
3196
  ), qt = (
3197
3197
  /** @class */
3198
3198
  function(e) {
3199
- nt(t, e);
3200
- function t(r, n, i, o) {
3201
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Le.INVALID_VALUE, o) || this;
3199
+ rt(t, e);
3200
+ function t(n, r, i, o) {
3201
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Le.INVALID_VALUE, o) || this;
3202
3202
  }
3203
3203
  return t;
3204
3204
  }(it)
3205
- ), Ci = (
3205
+ ), Ai = (
3206
3206
  /** @class */
3207
3207
  function(e) {
3208
- nt(t, e);
3209
- function t(r, n, i) {
3210
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Le.INVALID_VALUE, i) || this;
3208
+ rt(t, e);
3209
+ function t(n, r, i) {
3210
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Le.INVALID_VALUE, i) || this;
3211
3211
  }
3212
3212
  return t;
3213
3213
  }(it)
3214
3214
  ), Bi = (
3215
3215
  /** @class */
3216
3216
  function(e) {
3217
- nt(t, e);
3218
- function t(r, n) {
3219
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Le.MISSING_VALUE, n) || this;
3217
+ rt(t, e);
3218
+ function t(n, r) {
3219
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Le.MISSING_VALUE, r) || this;
3220
3220
  }
3221
3221
  return t;
3222
3222
  }(it)
@@ -3224,16 +3224,16 @@ var it = (
3224
3224
  (function(e) {
3225
3225
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3226
3226
  })(q || (q = {}));
3227
- function Pi(e) {
3228
- return e.length < 2 ? e : e.reduce(function(t, r) {
3229
- var n = t[t.length - 1];
3230
- return !n || n.type !== q.literal || r.type !== q.literal ? t.push(r) : n.value += r.value, t;
3227
+ function Mi(e) {
3228
+ return e.length < 2 ? e : e.reduce(function(t, n) {
3229
+ var r = t[t.length - 1];
3230
+ return !r || r.type !== q.literal || n.type !== q.literal ? t.push(n) : r.value += n.value, t;
3231
3231
  }, []);
3232
3232
  }
3233
- function Mi(e) {
3233
+ function Pi(e) {
3234
3234
  return typeof e == "function";
3235
3235
  }
3236
- function Qe(e, t, r, n, i, o, a) {
3236
+ function Qe(e, t, n, r, i, o, a) {
3237
3237
  if (e.length === 1 && jt(e[0]))
3238
3238
  return [
3239
3239
  {
@@ -3253,7 +3253,7 @@ function Qe(e, t, r, n, i, o, a) {
3253
3253
  if (ei(h)) {
3254
3254
  typeof o == "number" && s.push({
3255
3255
  type: q.literal,
3256
- value: r.getNumberFormat(t).format(o)
3256
+ value: n.getNumberFormat(t).format(o)
3257
3257
  });
3258
3258
  continue;
3259
3259
  }
@@ -3261,84 +3261,84 @@ function Qe(e, t, r, n, i, o, a) {
3261
3261
  if (!(i && c in i))
3262
3262
  throw new Bi(c, a);
3263
3263
  var d = i[c];
3264
- if (Kn(h)) {
3264
+ if (Kr(h)) {
3265
3265
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
3266
3266
  type: typeof d == "string" ? q.literal : q.object,
3267
3267
  value: d
3268
3268
  });
3269
3269
  continue;
3270
3270
  }
3271
- if (dr(h)) {
3272
- var _ = typeof h.style == "string" ? n.date[h.style] : xt(h.style) ? h.style.parsedOptions : void 0;
3271
+ if (mn(h)) {
3272
+ var y = typeof h.style == "string" ? r.date[h.style] : xt(h.style) ? h.style.parsedOptions : void 0;
3273
3273
  s.push({
3274
3274
  type: q.literal,
3275
- value: r.getDateTimeFormat(t, _).format(d)
3275
+ value: n.getDateTimeFormat(t, y).format(d)
3276
3276
  });
3277
3277
  continue;
3278
3278
  }
3279
- if (mr(h)) {
3280
- var _ = typeof h.style == "string" ? n.time[h.style] : xt(h.style) ? h.style.parsedOptions : n.time.medium;
3279
+ if (gn(h)) {
3280
+ var y = typeof h.style == "string" ? r.time[h.style] : xt(h.style) ? h.style.parsedOptions : r.time.medium;
3281
3281
  s.push({
3282
3282
  type: q.literal,
3283
- value: r.getDateTimeFormat(t, _).format(d)
3283
+ value: n.getDateTimeFormat(t, y).format(d)
3284
3284
  });
3285
3285
  continue;
3286
3286
  }
3287
- if (pr(h)) {
3288
- var _ = typeof h.style == "string" ? n.number[h.style] : _r(h.style) ? h.style.parsedOptions : void 0;
3289
- _ && _.scale && (d = d * (_.scale || 1)), s.push({
3287
+ if (dn(h)) {
3288
+ var y = typeof h.style == "string" ? r.number[h.style] : En(h.style) ? h.style.parsedOptions : void 0;
3289
+ y && y.scale && (d = d * (y.scale || 1)), s.push({
3290
3290
  type: q.literal,
3291
- value: r.getNumberFormat(t, _).format(d)
3291
+ value: n.getNumberFormat(t, y).format(d)
3292
3292
  });
3293
3293
  continue;
3294
3294
  }
3295
- if (yr(h)) {
3296
- var m = h.children, g = h.value, v = i[g];
3297
- if (!Mi(v))
3298
- throw new Ci(g, "function", a);
3299
- var S = Qe(m, t, r, n, i, o), P = v(S.map(function(M) {
3300
- return M.value;
3295
+ if (yn(h)) {
3296
+ var m = h.children, g = h.value, _ = i[g];
3297
+ if (!Pi(_))
3298
+ throw new Ai(g, "function", a);
3299
+ var S = Qe(m, t, n, r, i, o), M = _(S.map(function(P) {
3300
+ return P.value;
3301
3301
  }));
3302
- Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(M) {
3302
+ Array.isArray(M) || (M = [M]), s.push.apply(s, M.map(function(P) {
3303
3303
  return {
3304
- type: typeof M == "string" ? q.literal : q.object,
3305
- value: M
3304
+ type: typeof P == "string" ? q.literal : q.object,
3305
+ value: P
3306
3306
  };
3307
3307
  }));
3308
3308
  }
3309
- if (gr(h)) {
3309
+ if (bn(h)) {
3310
3310
  var I = h.options[d] || h.options.other;
3311
3311
  if (!I)
3312
3312
  throw new qt(h.value, d, Object.keys(h.options), a);
3313
- s.push.apply(s, Qe(I.value, t, r, n, i));
3313
+ s.push.apply(s, Qe(I.value, t, n, r, i));
3314
3314
  continue;
3315
3315
  }
3316
- if (br(h)) {
3316
+ if (vn(h)) {
3317
3317
  var I = h.options["=".concat(d)];
3318
3318
  if (!I) {
3319
3319
  if (!Intl.PluralRules)
3320
3320
  throw new it(`Intl.PluralRules is not available in this environment.
3321
3321
  Try polyfilling it using "@formatjs/intl-pluralrules"
3322
3322
  `, Le.MISSING_INTL_API, a);
3323
- var D = r.getPluralRules(t, { type: h.pluralType }).select(d - (h.offset || 0));
3323
+ var D = n.getPluralRules(t, { type: h.pluralType }).select(d - (h.offset || 0));
3324
3324
  I = h.options[D] || h.options.other;
3325
3325
  }
3326
3326
  if (!I)
3327
3327
  throw new qt(h.value, d, Object.keys(h.options), a);
3328
- s.push.apply(s, Qe(I.value, t, r, n, i, d - (h.offset || 0)));
3328
+ s.push.apply(s, Qe(I.value, t, n, r, i, d - (h.offset || 0)));
3329
3329
  continue;
3330
3330
  }
3331
3331
  }
3332
- return Pi(s);
3332
+ return Mi(s);
3333
3333
  }
3334
3334
  function Li(e, t) {
3335
- return t ? ae(ae(ae({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3336
- return r[n] = ae(ae({}, e[n]), t[n] || {}), r;
3335
+ return t ? ae(ae(ae({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3336
+ return n[r] = ae(ae({}, e[r]), t[r] || {}), n;
3337
3337
  }, {})) : e;
3338
3338
  }
3339
3339
  function Ii(e, t) {
3340
- return t ? Object.keys(e).reduce(function(r, n) {
3341
- return r[n] = Li(e[n], t[n]), r;
3340
+ return t ? Object.keys(e).reduce(function(n, r) {
3341
+ return n[r] = Li(e[r], t[r]), n;
3342
3342
  }, ae({}, e)) : e;
3343
3343
  }
3344
3344
  function bt(e) {
@@ -3348,8 +3348,8 @@ function bt(e) {
3348
3348
  get: function(t) {
3349
3349
  return e[t];
3350
3350
  },
3351
- set: function(t, r) {
3352
- e[t] = r;
3351
+ set: function(t, n) {
3352
+ e[t] = n;
3353
3353
  }
3354
3354
  };
3355
3355
  }
@@ -3362,25 +3362,25 @@ function Ni(e) {
3362
3362
  pluralRules: {}
3363
3363
  }), {
3364
3364
  getNumberFormat: dt(function() {
3365
- for (var t, r = [], n = 0; n < arguments.length; n++)
3366
- r[n] = arguments[n];
3367
- return new ((t = Intl.NumberFormat).bind.apply(t, pt([void 0], r, !1)))();
3365
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3366
+ n[r] = arguments[r];
3367
+ return new ((t = Intl.NumberFormat).bind.apply(t, pt([void 0], n, !1)))();
3368
3368
  }, {
3369
3369
  cache: bt(e.number),
3370
3370
  strategy: mt.variadic
3371
3371
  }),
3372
3372
  getDateTimeFormat: dt(function() {
3373
- for (var t, r = [], n = 0; n < arguments.length; n++)
3374
- r[n] = arguments[n];
3375
- return new ((t = Intl.DateTimeFormat).bind.apply(t, pt([void 0], r, !1)))();
3373
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3374
+ n[r] = arguments[r];
3375
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, pt([void 0], n, !1)))();
3376
3376
  }, {
3377
3377
  cache: bt(e.dateTime),
3378
3378
  strategy: mt.variadic
3379
3379
  }),
3380
3380
  getPluralRules: dt(function() {
3381
- for (var t, r = [], n = 0; n < arguments.length; n++)
3382
- r[n] = arguments[n];
3383
- return new ((t = Intl.PluralRules).bind.apply(t, pt([void 0], r, !1)))();
3381
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3382
+ n[r] = arguments[r];
3383
+ return new ((t = Intl.PluralRules).bind.apply(t, pt([void 0], n, !1)))();
3384
3384
  }, {
3385
3385
  cache: bt(e.pluralRules),
3386
3386
  strategy: mt.variadic
@@ -3390,8 +3390,8 @@ function Ni(e) {
3390
3390
  var Ri = (
3391
3391
  /** @class */
3392
3392
  function() {
3393
- function e(t, r, n, i) {
3394
- r === void 0 && (r = e.defaultLocale);
3393
+ function e(t, n, r, i) {
3394
+ n === void 0 && (n = e.defaultLocale);
3395
3395
  var o = this;
3396
3396
  if (this.formatterCache = {
3397
3397
  number: {},
@@ -3414,18 +3414,18 @@ var Ri = (
3414
3414
  };
3415
3415
  }, this.getAst = function() {
3416
3416
  return o.ast;
3417
- }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3417
+ }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3418
3418
  if (this.message = t, !e.__parse)
3419
3419
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3420
3420
  var a = i || {};
3421
3421
  a.formatters;
3422
- var s = zn(a, ["formatters"]);
3422
+ var s = $r(a, ["formatters"]);
3423
3423
  this.ast = e.__parse(t, ae(ae({}, s), { locale: this.resolvedLocale }));
3424
3424
  } else
3425
3425
  this.ast = t;
3426
3426
  if (!Array.isArray(this.ast))
3427
3427
  throw new TypeError("A message must be provided as a String or AST.");
3428
- this.formats = Ii(e.formats, n), this.formatters = i && i.formatters || Ni(this.formatterCache);
3428
+ this.formats = Ii(e.formats, r), this.formatters = i && i.formatters || Ni(this.formatterCache);
3429
3429
  }
3430
3430
  return Object.defineProperty(e, "defaultLocale", {
3431
3431
  get: function() {
@@ -3435,10 +3435,10 @@ var Ri = (
3435
3435
  configurable: !0
3436
3436
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3437
3437
  if (typeof Intl.Locale != "undefined") {
3438
- var r = Intl.NumberFormat.supportedLocalesOf(t);
3439
- return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3438
+ var n = Intl.NumberFormat.supportedLocalesOf(t);
3439
+ return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3440
3440
  }
3441
- }, e.__parse = Ai, e.formats = {
3441
+ }, e.__parse = Ci, e.formats = {
3442
3442
  number: {
3443
3443
  integer: {
3444
3444
  maximumFractionDigits: 0
@@ -3504,108 +3504,108 @@ function ki(e, t) {
3504
3504
  return;
3505
3505
  if (t in e)
3506
3506
  return e[t];
3507
- const r = t.split(".");
3508
- let n = e;
3509
- for (let i = 0; i < r.length; i++)
3510
- if (typeof n == "object") {
3507
+ const n = t.split(".");
3508
+ let r = e;
3509
+ for (let i = 0; i < n.length; i++)
3510
+ if (typeof r == "object") {
3511
3511
  if (i > 0) {
3512
- const o = r.slice(i, r.length).join(".");
3513
- if (o in n) {
3514
- n = n[o];
3512
+ const o = n.slice(i, n.length).join(".");
3513
+ if (o in r) {
3514
+ r = r[o];
3515
3515
  break;
3516
3516
  }
3517
3517
  }
3518
- n = n[r[i]];
3518
+ r = r[n[i]];
3519
3519
  } else
3520
- n = void 0;
3521
- return n;
3520
+ r = void 0;
3521
+ return r;
3522
3522
  }
3523
- const de = {}, Di = (e, t, r) => r && (t in de || (de[t] = {}), e in de[t] || (de[t][e] = r), r), Hr = (e, t) => {
3523
+ const de = {}, Di = (e, t, n) => n && (t in de || (de[t] = {}), e in de[t] || (de[t][e] = n), n), Cn = (e, t) => {
3524
3524
  if (t == null)
3525
3525
  return;
3526
3526
  if (t in de && e in de[t])
3527
3527
  return de[t][e];
3528
- const r = ot(t);
3529
- for (let n = 0; n < r.length; n++) {
3530
- const i = r[n], o = Gi(i, e);
3528
+ const n = ot(t);
3529
+ for (let r = 0; r < n.length; r++) {
3530
+ const i = n[r], o = Gi(i, e);
3531
3531
  if (o)
3532
3532
  return Di(e, t, o);
3533
3533
  }
3534
3534
  };
3535
- let Pt;
3536
- const Xe = rt({});
3535
+ let Mt;
3536
+ const Xe = nt({});
3537
3537
  function Ui(e) {
3538
- return Pt[e] || null;
3538
+ return Mt[e] || null;
3539
3539
  }
3540
- function Ar(e) {
3541
- return e in Pt;
3540
+ function An(e) {
3541
+ return e in Mt;
3542
3542
  }
3543
3543
  function Gi(e, t) {
3544
- if (!Ar(e))
3544
+ if (!An(e))
3545
3545
  return null;
3546
- const r = Ui(e);
3547
- return ki(r, t);
3546
+ const n = Ui(e);
3547
+ return ki(n, t);
3548
3548
  }
3549
3549
  function Fi(e) {
3550
3550
  if (e == null)
3551
3551
  return;
3552
3552
  const t = ot(e);
3553
- for (let r = 0; r < t.length; r++) {
3554
- const n = t[r];
3555
- if (Ar(n))
3556
- return n;
3553
+ for (let n = 0; n < t.length; n++) {
3554
+ const r = t[n];
3555
+ if (An(r))
3556
+ return r;
3557
3557
  }
3558
3558
  }
3559
- function Cr(e, ...t) {
3560
- delete de[e], Xe.update((r) => (r[e] = $n.all([r[e] || {}, ...t]), r));
3559
+ function Bn(e, ...t) {
3560
+ delete de[e], Xe.update((n) => (n[e] = zr.all([n[e] || {}, ...t]), n));
3561
3561
  }
3562
3562
  Ne(
3563
3563
  [Xe],
3564
3564
  ([e]) => Object.keys(e)
3565
3565
  );
3566
- Xe.subscribe((e) => Pt = e);
3566
+ Xe.subscribe((e) => Mt = e);
3567
3567
  const Je = {};
3568
3568
  function ji(e, t) {
3569
3569
  Je[e].delete(t), Je[e].size === 0 && delete Je[e];
3570
3570
  }
3571
- function Br(e) {
3571
+ function Mn(e) {
3572
3572
  return Je[e];
3573
3573
  }
3574
3574
  function Vi(e) {
3575
3575
  return ot(e).map((t) => {
3576
- const r = Br(t);
3577
- return [t, r ? [...r] : []];
3576
+ const n = Mn(t);
3577
+ return [t, n ? [...n] : []];
3578
3578
  }).filter(([, t]) => t.length > 0);
3579
3579
  }
3580
- function At(e) {
3580
+ function Ct(e) {
3581
3581
  return e == null ? !1 : ot(e).some(
3582
3582
  (t) => {
3583
- var r;
3584
- return (r = Br(t)) == null ? void 0 : r.size;
3583
+ var n;
3584
+ return (n = Mn(t)) == null ? void 0 : n.size;
3585
3585
  }
3586
3586
  );
3587
3587
  }
3588
- function $i(e, t) {
3588
+ function zi(e, t) {
3589
3589
  return Promise.all(
3590
- t.map((n) => (ji(e, n), n().then((i) => i.default || i)))
3591
- ).then((n) => Cr(e, ...n));
3590
+ t.map((r) => (ji(e, r), r().then((i) => i.default || i)))
3591
+ ).then((r) => Bn(e, ...r));
3592
3592
  }
3593
3593
  const Fe = {};
3594
- function Pr(e) {
3595
- if (!At(e))
3594
+ function Pn(e) {
3595
+ if (!Ct(e))
3596
3596
  return e in Fe ? Fe[e] : Promise.resolve();
3597
3597
  const t = Vi(e);
3598
3598
  return Fe[e] = Promise.all(
3599
3599
  t.map(
3600
- ([r, n]) => $i(r, n)
3600
+ ([n, r]) => zi(n, r)
3601
3601
  )
3602
3602
  ).then(() => {
3603
- if (At(e))
3604
- return Pr(e);
3603
+ if (Ct(e))
3604
+ return Pn(e);
3605
3605
  delete Fe[e];
3606
3606
  }), Fe[e];
3607
3607
  }
3608
- const zi = {
3608
+ const $i = {
3609
3609
  number: {
3610
3610
  scientific: { notation: "scientific" },
3611
3611
  engineering: { notation: "engineering" },
@@ -3637,7 +3637,7 @@ const zi = {
3637
3637
  }, Xi = {
3638
3638
  fallbackLocale: null,
3639
3639
  loadingDelay: 200,
3640
- formats: zi,
3640
+ formats: $i,
3641
3641
  warnOnMissingMessages: !0,
3642
3642
  handleMissingMessage: void 0,
3643
3643
  ignoreTag: !0
@@ -3645,41 +3645,41 @@ const zi = {
3645
3645
  function Ie() {
3646
3646
  return Wi;
3647
3647
  }
3648
- const yt = rt(!1);
3649
- var Zi = Object.defineProperty, qi = Object.defineProperties, Qi = Object.getOwnPropertyDescriptors, Qt = Object.getOwnPropertySymbols, Ji = Object.prototype.hasOwnProperty, Yi = Object.prototype.propertyIsEnumerable, Jt = (e, t, r) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ki = (e, t) => {
3650
- for (var r in t || (t = {}))
3651
- Ji.call(t, r) && Jt(e, r, t[r]);
3648
+ const vt = nt(!1);
3649
+ var Zi = Object.defineProperty, qi = Object.defineProperties, Qi = Object.getOwnPropertyDescriptors, Qt = Object.getOwnPropertySymbols, Ji = Object.prototype.hasOwnProperty, Yi = Object.prototype.propertyIsEnumerable, Jt = (e, t, n) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ki = (e, t) => {
3650
+ for (var n in t || (t = {}))
3651
+ Ji.call(t, n) && Jt(e, n, t[n]);
3652
3652
  if (Qt)
3653
- for (var r of Qt(t))
3654
- Yi.call(t, r) && Jt(e, r, t[r]);
3653
+ for (var n of Qt(t))
3654
+ Yi.call(t, n) && Jt(e, n, t[n]);
3655
3655
  return e;
3656
3656
  }, eo = (e, t) => qi(e, Qi(t));
3657
- let Ct;
3658
- const et = rt(null);
3657
+ let At;
3658
+ const et = nt(null);
3659
3659
  function Yt(e) {
3660
- return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3660
+ return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3661
3661
  }
3662
3662
  function ot(e, t = Ie().fallbackLocale) {
3663
- const r = Yt(e);
3664
- return t ? [.../* @__PURE__ */ new Set([...r, ...Yt(t)])] : r;
3663
+ const n = Yt(e);
3664
+ return t ? [.../* @__PURE__ */ new Set([...n, ...Yt(t)])] : n;
3665
3665
  }
3666
3666
  function xe() {
3667
- return Ct != null ? Ct : void 0;
3667
+ return At != null ? At : void 0;
3668
3668
  }
3669
3669
  et.subscribe((e) => {
3670
- Ct = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3670
+ At = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3671
3671
  });
3672
3672
  const to = (e) => {
3673
- if (e && Fi(e) && At(e)) {
3673
+ if (e && Fi(e) && Ct(e)) {
3674
3674
  const { loadingDelay: t } = Ie();
3675
- let r;
3676
- return typeof window != "undefined" && xe() != null && t ? r = window.setTimeout(
3677
- () => yt.set(!0),
3675
+ let n;
3676
+ return typeof window != "undefined" && xe() != null && t ? n = window.setTimeout(
3677
+ () => vt.set(!0),
3678
3678
  t
3679
- ) : yt.set(!0), Pr(e).then(() => {
3679
+ ) : vt.set(!0), Pn(e).then(() => {
3680
3680
  et.set(e);
3681
3681
  }).finally(() => {
3682
- clearTimeout(r), yt.set(!1);
3682
+ clearTimeout(n), vt.set(!1);
3683
3683
  });
3684
3684
  }
3685
3685
  return et.set(e);
@@ -3687,83 +3687,83 @@ const to = (e) => {
3687
3687
  set: to
3688
3688
  }), st = (e) => {
3689
3689
  const t = /* @__PURE__ */ Object.create(null);
3690
- return (n) => {
3691
- const i = JSON.stringify(n);
3692
- return i in t ? t[i] : t[i] = e(n);
3690
+ return (r) => {
3691
+ const i = JSON.stringify(r);
3692
+ return i in t ? t[i] : t[i] = e(r);
3693
3693
  };
3694
3694
  };
3695
- var ro = Object.defineProperty, tt = Object.getOwnPropertySymbols, Mr = Object.prototype.hasOwnProperty, Lr = Object.prototype.propertyIsEnumerable, Kt = (e, t, r) => t in e ? ro(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mt = (e, t) => {
3696
- for (var r in t || (t = {}))
3697
- Mr.call(t, r) && Kt(e, r, t[r]);
3695
+ var no = Object.defineProperty, tt = Object.getOwnPropertySymbols, Ln = Object.prototype.hasOwnProperty, In = Object.prototype.propertyIsEnumerable, Kt = (e, t, n) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Pt = (e, t) => {
3696
+ for (var n in t || (t = {}))
3697
+ Ln.call(t, n) && Kt(e, n, t[n]);
3698
3698
  if (tt)
3699
- for (var r of tt(t))
3700
- Lr.call(t, r) && Kt(e, r, t[r]);
3699
+ for (var n of tt(t))
3700
+ In.call(t, n) && Kt(e, n, t[n]);
3701
3701
  return e;
3702
3702
  }, ke = (e, t) => {
3703
- var r = {};
3704
- for (var n in e)
3705
- Mr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3703
+ var n = {};
3704
+ for (var r in e)
3705
+ Ln.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3706
3706
  if (e != null && tt)
3707
- for (var n of tt(e))
3708
- t.indexOf(n) < 0 && Lr.call(e, n) && (r[n] = e[n]);
3709
- return r;
3707
+ for (var r of tt(e))
3708
+ t.indexOf(r) < 0 && In.call(e, r) && (n[r] = e[r]);
3709
+ return n;
3710
3710
  };
3711
- const ze = (e, t) => {
3712
- const { formats: r } = Ie();
3713
- if (e in r && t in r[e])
3714
- return r[e][t];
3711
+ const $e = (e, t) => {
3712
+ const { formats: n } = Ie();
3713
+ if (e in n && t in n[e])
3714
+ return n[e][t];
3715
3715
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3716
- }, no = st(
3716
+ }, ro = st(
3717
3717
  (e) => {
3718
- var t = e, { locale: r, format: n } = t, i = ke(t, ["locale", "format"]);
3719
- if (r == null)
3718
+ var t = e, { locale: n, format: r } = t, i = ke(t, ["locale", "format"]);
3719
+ if (n == null)
3720
3720
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3721
- return n && (i = ze("number", n)), new Intl.NumberFormat(r, i);
3721
+ return r && (i = $e("number", r)), new Intl.NumberFormat(n, i);
3722
3722
  }
3723
3723
  ), io = st(
3724
3724
  (e) => {
3725
- var t = e, { locale: r, format: n } = t, i = ke(t, ["locale", "format"]);
3726
- if (r == null)
3725
+ var t = e, { locale: n, format: r } = t, i = ke(t, ["locale", "format"]);
3726
+ if (n == null)
3727
3727
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3728
- return n ? i = ze("date", n) : Object.keys(i).length === 0 && (i = ze("date", "short")), new Intl.DateTimeFormat(r, i);
3728
+ return r ? i = $e("date", r) : Object.keys(i).length === 0 && (i = $e("date", "short")), new Intl.DateTimeFormat(n, i);
3729
3729
  }
3730
3730
  ), oo = st(
3731
3731
  (e) => {
3732
- var t = e, { locale: r, format: n } = t, i = ke(t, ["locale", "format"]);
3733
- if (r == null)
3732
+ var t = e, { locale: n, format: r } = t, i = ke(t, ["locale", "format"]);
3733
+ if (n == null)
3734
3734
  throw new Error(
3735
3735
  '[svelte-i18n] A "locale" must be set to format time values'
3736
3736
  );
3737
- return n ? i = ze("time", n) : Object.keys(i).length === 0 && (i = ze("time", "short")), new Intl.DateTimeFormat(r, i);
3737
+ return r ? i = $e("time", r) : Object.keys(i).length === 0 && (i = $e("time", "short")), new Intl.DateTimeFormat(n, i);
3738
3738
  }
3739
3739
  ), so = (e = {}) => {
3740
3740
  var t = e, {
3741
- locale: r = xe()
3742
- } = t, n = ke(t, [
3741
+ locale: n = xe()
3742
+ } = t, r = ke(t, [
3743
3743
  "locale"
3744
3744
  ]);
3745
- return no(Mt({ locale: r }, n));
3745
+ return ro(Pt({ locale: n }, r));
3746
3746
  }, ao = (e = {}) => {
3747
3747
  var t = e, {
3748
- locale: r = xe()
3749
- } = t, n = ke(t, [
3748
+ locale: n = xe()
3749
+ } = t, r = ke(t, [
3750
3750
  "locale"
3751
3751
  ]);
3752
- return io(Mt({ locale: r }, n));
3752
+ return io(Pt({ locale: n }, r));
3753
3753
  }, lo = (e = {}) => {
3754
3754
  var t = e, {
3755
- locale: r = xe()
3756
- } = t, n = ke(t, [
3755
+ locale: n = xe()
3756
+ } = t, r = ke(t, [
3757
3757
  "locale"
3758
3758
  ]);
3759
- return oo(Mt({ locale: r }, n));
3759
+ return oo(Pt({ locale: n }, r));
3760
3760
  }, uo = st(
3761
3761
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3762
3762
  (e, t = xe()) => new Ri(e, t, Ie().formats, {
3763
3763
  ignoreTag: Ie().ignoreTag
3764
3764
  })
3765
3765
  ), ho = (e, t = {}) => {
3766
- var r, n, i, o;
3766
+ var n, r, i, o;
3767
3767
  let a = t;
3768
3768
  typeof e == "object" && (a = e, e = a.id);
3769
3769
  const {
@@ -3775,9 +3775,9 @@ const ze = (e, t) => {
3775
3775
  throw new Error(
3776
3776
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3777
3777
  );
3778
- let h = Hr(e, u);
3778
+ let h = Cn(e, u);
3779
3779
  if (!h)
3780
- h = (o = (i = (n = (r = Ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3780
+ h = (o = (i = (r = (n = Ie()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3781
3781
  else if (typeof h != "string")
3782
3782
  return console.warn(
3783
3783
  `[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.`
@@ -3794,18 +3794,18 @@ const ze = (e, t) => {
3794
3794
  );
3795
3795
  }
3796
3796
  return c;
3797
- }, co = (e, t) => lo(t).format(e), fo = (e, t) => ao(t).format(e), po = (e, t) => so(t).format(e), mo = (e, t = xe()) => Hr(e, t), go = Ne([Re, Xe], () => ho);
3797
+ }, co = (e, t) => lo(t).format(e), fo = (e, t) => ao(t).format(e), po = (e, t) => so(t).format(e), mo = (e, t = xe()) => Cn(e, t), go = Ne([Re, Xe], () => ho);
3798
3798
  Ne([Re], () => co);
3799
3799
  Ne([Re], () => fo);
3800
3800
  Ne([Re], () => po);
3801
3801
  Ne([Re, Xe], () => mo);
3802
- function er(e, t) {
3803
- Cr(e, t);
3802
+ function en(e, t) {
3803
+ Bn(e, t);
3804
3804
  }
3805
3805
  function bo(e) {
3806
3806
  Re.set(e);
3807
3807
  }
3808
- const tr = {
3808
+ const tn = {
3809
3809
  en: {
3810
3810
  otpTitle: "Code verification is required",
3811
3811
  popupMessage: "Please enter the security code received on your SMS/email address to perform the update.",
@@ -3854,7 +3854,7 @@ const tr = {
3854
3854
  },
3855
3855
  fr: {
3856
3856
  otpTitle: "La vérification par code est requise",
3857
- popupMessage: "Veuillez saisir le code de sécurité reçu par SMS ou par e-mail afin deffectuer la mise à jour.",
3857
+ popupMessage: "Veuillez saisir le code de sécurité reçu par SMS ou par e-mail afin d'effectuer la mise à jour.",
3858
3858
  popupMessageLastWarning: "Si la prochaine tentative de validation échoue, votre transaction échouera et vous serez redirigé vers le moyen de paiement.",
3859
3859
  minutes: "minutes",
3860
3860
  errorHeader: "Erreur",
@@ -3863,9 +3863,9 @@ const tr = {
3863
3863
  resendOtp: "Renvoyer le code OTP",
3864
3864
  submit: "Valider",
3865
3865
  close: "Fermer",
3866
- invalidOtp: "Le code que vous avez saisi nest pas valide. Veuillez réessayer.",
3866
+ invalidOtp: "Le code que vous avez saisi n'est pas valide. Veuillez réessayer.",
3867
3867
  accountBlocked: "Trop de tentatives de code OTP. Votre compte a été bloqué pendant une heure.",
3868
- submissionError: "Une erreur sest produite. Veuillez réessayer.",
3868
+ submissionError: "Une erreur s'est produite. Veuillez réessayer.",
3869
3869
  otpExpiredMessage: "Le code de validation a expiré. Veuillez en demander un nouveau pour continuer.",
3870
3870
  timeRemaining: "Le code expire dans :",
3871
3871
  selectChannelTitle: "Sélectionner la méthode de vérification",
@@ -3874,57 +3874,126 @@ const tr = {
3874
3874
  channelEmail: "E-mail",
3875
3875
  sendCode: "Envoyer le code",
3876
3876
  waitSeconds: "Veuillez patienter avant de renvoyer le code :"
3877
+ },
3878
+ da: {
3879
+ otpTitle: "Kodebekræftelse er påkrævet",
3880
+ popupMessage: "Indtast venligst sikkerhedskoden modtaget på din SMS/e-mailadresse for at udføre opdateringen.",
3881
+ popupMessageLastWarning: "Hvis det næste valideringsforsøg mislykkes, vil din transaktion mislykkes, og du vil blive sendt tilbage til betalingsmetoden.",
3882
+ minutes: "minutter",
3883
+ errorHeader: "Fejl",
3884
+ configError: "Kan ikke indlæse OTP-data. Prøv venligst igen senere.",
3885
+ otpHeading: "Indtast OTP",
3886
+ resendOtp: "Send OTP igen",
3887
+ submit: "Indsend",
3888
+ close: "Luk",
3889
+ invalidOtp: "Koden du har sendt er ikke gyldig. Prøv venligst igen.",
3890
+ accountBlocked: "For mange forsøg på OTP. Din konto er blevet blokeret i en time.",
3891
+ submissionError: "Noget gik galt. Prøv venligst igen.",
3892
+ otpExpiredMessage: "Valideringskoden er udløbet. Anmod venligst om en ny for at fortsætte.",
3893
+ timeRemaining: "Koden udløber om:",
3894
+ selectChannelTitle: "Vælg bekræftelsesmetode",
3895
+ selectChannelMessage: "Vælg, hvordan du gerne vil modtage din bekræftelseskode",
3896
+ channelSMS: "SMS",
3897
+ channelEmail: "E-mail",
3898
+ sendCode: "Send kode",
3899
+ waitSeconds: "Vent venligst før genafsendelse:"
3900
+ },
3901
+ de: {
3902
+ otpTitle: "Code-Verifizierung ist erforderlich",
3903
+ popupMessage: "Bitte geben Sie den Sicherheitscode ein, den Sie per SMS/E-Mail erhalten haben, um die Aktualisierung durchzuführen.",
3904
+ popupMessageLastWarning: "Wenn der nächste Validierungsversuch fehlschlägt, schlägt Ihre Transaktion fehl und Sie werden zur Zahlungsmethode zurückgeleitet.",
3905
+ minutes: "Minuten",
3906
+ errorHeader: "Fehler",
3907
+ configError: "OTP-Daten können nicht geladen werden. Bitte versuchen Sie es später erneut.",
3908
+ otpHeading: "OTP eingeben",
3909
+ resendOtp: "OTP erneut senden",
3910
+ submit: "Absenden",
3911
+ close: "Schließen",
3912
+ invalidOtp: "Der von Ihnen gesendete Code ist ungültig. Bitte versuchen Sie es erneut.",
3913
+ accountBlocked: "Zu viele OTP-Versuche. Ihr Konto wurde für eine Stunde gesperrt.",
3914
+ submissionError: "Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",
3915
+ otpExpiredMessage: "Der Validierungscode ist abgelaufen. Bitte fordern Sie einen neuen an, um fortzufahren.",
3916
+ timeRemaining: "Code läuft ab in:",
3917
+ selectChannelTitle: "Verifizierungsmethode auswählen",
3918
+ selectChannelMessage: "Wählen Sie, wie Sie Ihren Verifizierungscode erhalten möchten",
3919
+ channelSMS: "SMS",
3920
+ channelEmail: "E-Mail",
3921
+ sendCode: "Code senden",
3922
+ waitSeconds: "Bitte warten Sie, bevor Sie erneut senden:"
3923
+ },
3924
+ nl: {
3925
+ otpTitle: "Codeverificatie is vereist",
3926
+ popupMessage: "Voer de beveiligingscode in die u via SMS/e-mail heeft ontvangen om de update uit te voeren.",
3927
+ popupMessageLastWarning: "Als de volgende validatiepoging mislukt, zal uw transactie mislukken en wordt u teruggestuurd naar de betaalmethode.",
3928
+ minutes: "minuten",
3929
+ errorHeader: "Fout",
3930
+ configError: "Kan OTP-gegevens niet laden. Probeer het later opnieuw.",
3931
+ otpHeading: "OTP invoeren",
3932
+ resendOtp: "OTP opnieuw verzenden",
3933
+ submit: "Verzenden",
3934
+ close: "Sluiten",
3935
+ invalidOtp: "De code die u heeft verzonden is niet geldig. Probeer het opnieuw.",
3936
+ accountBlocked: "Te veel OTP-pogingen. Uw account is voor één uur geblokkeerd.",
3937
+ submissionError: "Er is iets misgegaan. Probeer het opnieuw.",
3938
+ otpExpiredMessage: "De validatiecode is verlopen. Vraag een nieuwe aan om door te gaan.",
3939
+ timeRemaining: "Code verloopt over:",
3940
+ selectChannelTitle: "Verificatiemethode selecteren",
3941
+ selectChannelMessage: "Kies hoe u uw verificatiecode wilt ontvangen",
3942
+ channelSMS: "SMS",
3943
+ channelEmail: "E-mail",
3944
+ sendCode: "Code verzenden",
3945
+ waitSeconds: "Wacht even voordat u opnieuw verzendt:"
3877
3946
  }
3878
3947
  };
3879
- function yo(e) {
3880
- en(e, "svelte-gpy3mu", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.RadioIndicator{width:20px;height:20px;border-radius:50%;border:2px solid var(--emw--color-typography, #fff);position:relative;flex-shrink:0;margin-right:8px;transition:all 0.2s ease;opacity:0.7}.RadioIndicator.checked::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;opacity:1;background:var(--emw--color-primary, #fff)}.RadioIndicator.checked{border:2px solid var(--emw--color-primary, #fff)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:all 0.3s ease}.ModalCloseIcon svg{width:11px;height:11px;fill:var(--emw--color-primary, red);cursor:pointer}.ModalCloseIcon:hover{transform:rotate(90deg)}.OtpContent{width:100%;display:flex;flex-direction:column;gap:var(--emw--spacing-large, 20px)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpButton{text-transform:uppercase;font-weight:var(--emw--font-weight-medium, 500);color:var(--emw--color-typography-button, #000000);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear}.OtpButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-active, #fecd1c)}.OtpButton[disabled],.OtpButton.disabled{filter:saturate(50%);opacity:0.5;cursor:not-allowed;pointer-events:none}.OtpButton:hover:not([disabled]):not(.disabled){box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-hover, #dbac03)}@container (max-width: 500px){.OtpDescription{font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-size-big, 20px)}}.OtpDescription{display:flex;color:var(--emw--color-typography, #fff);flex-direction:column;gap:12px;font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-medium, 16px);font-weight:var(--emw--font-weight-medium, 600)}.OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px;align-items:center}.OtpError h2{margin:0;color:var(--emw--color-typography, #fff)}.OtpError p{color:var(--emw--color-typography, #fff);text-align:center;font-size:var(--emw--font-size-small, 12px)}.OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.ChannelSelection{display:flex;flex-direction:row;justify-content:space-between}.ChannelCheckbox{display:flex;align-items:center;padding:var(--emw--spacing-medium, 16px);cursor:pointer;transition:all 0.2s ease}.ChannelCheckbox input[type=radio]{display:none}.ChannelCheckbox .ChannelContent{display:flex;align-items:center;gap:3px;width:100%;color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500)}.ChannelCheckbox .ChannelContent svg{flex-shrink:0;opacity:0.7;width:20px;height:20px}.ChannelCheckbox .ChannelContent span{text-transform:uppercase}.ChannelCheckbox.selected .ChannelContent{color:var(--emw--color-primary, #000000)}.ChannelCheckbox.selected .ChannelContent svg{stroke:var(--emw--color-primary, #000000);opacity:1}.ChannelCheckbox:hover:not(.selected){color:var(--emw--color-active, #fff)}.OtpField{display:flex;justify-content:space-between;margin:10px}.OtpField input{width:45px;font-size:32px;padding:5px;text-align:center;border-radius:5px;margin:6px;font-weight:bold;outline:none;background:var(--emw--color-background);border:0;transition:all 0.1s;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);color:var(--emw--color-typography, #fff)}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{box-shadow:0 0 1px 1px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between;gap:40px}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpNoticeMessage{color:var(--emw--color-primary, #f9c408);font-weight:bold}.LastWarningMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;display:flex;justify-content:center;align-items:center;padding:20px 0}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.OtpTimer{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-small, 12px);opacity:0.8}@container (max-width: 500px){.OtpContent{padding:var(--emw--spacing-small, 10px)}.OtpField input{width:40px;font-size:28px;margin:4px}}');
3948
+ function vo(e) {
3949
+ tr(e, "svelte-gpy3mu", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.RadioIndicator{width:20px;height:20px;border-radius:50%;border:2px solid var(--emw--color-typography, #fff);position:relative;flex-shrink:0;margin-right:8px;transition:all 0.2s ease;opacity:0.7}.RadioIndicator.checked::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;opacity:1;background:var(--emw--color-primary, #fff)}.RadioIndicator.checked{border:2px solid var(--emw--color-primary, #fff)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:all 0.3s ease}.ModalCloseIcon svg{width:11px;height:11px;fill:var(--emw--color-primary, red);cursor:pointer}.ModalCloseIcon:hover{transform:rotate(90deg)}.OtpContent{width:100%;display:flex;flex-direction:column;gap:var(--emw--spacing-large, 20px)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpButton{text-transform:uppercase;font-weight:var(--emw--font-weight-medium, 500);color:var(--emw--color-typography-button, #000000);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear}.OtpButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-active, #fecd1c)}.OtpButton[disabled],.OtpButton.disabled{filter:saturate(50%);opacity:0.5;cursor:not-allowed;pointer-events:none}.OtpButton:hover:not([disabled]):not(.disabled){box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-hover, #dbac03)}@container (max-width: 500px){.OtpDescription{font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-size-big, 20px)}}.OtpDescription{display:flex;color:var(--emw--color-typography, #fff);flex-direction:column;gap:12px;font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-medium, 16px);font-weight:var(--emw--font-weight-medium, 600)}.OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px;align-items:center}.OtpError h2{margin:0;color:var(--emw--color-typography, #fff)}.OtpError p{color:var(--emw--color-typography, #fff);text-align:center;font-size:var(--emw--font-size-small, 12px)}.OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.ChannelSelection{display:flex;flex-direction:row;justify-content:space-between}.ChannelCheckbox{display:flex;align-items:center;padding:var(--emw--spacing-medium, 16px);cursor:pointer;transition:all 0.2s ease}.ChannelCheckbox input[type=radio]{display:none}.ChannelCheckbox .ChannelContent{display:flex;align-items:center;gap:3px;width:100%;color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500)}.ChannelCheckbox .ChannelContent svg{flex-shrink:0;opacity:0.7;width:20px;height:20px}.ChannelCheckbox .ChannelContent span{text-transform:uppercase}.ChannelCheckbox.selected .ChannelContent{color:var(--emw--color-primary, #000000)}.ChannelCheckbox.selected .ChannelContent svg{stroke:var(--emw--color-primary, #000000);opacity:1}.ChannelCheckbox:hover:not(.selected){color:var(--emw--color-active, #fff)}.OtpField{display:flex;justify-content:space-between;margin:10px}.OtpField input{width:45px;font-size:32px;padding:5px;text-align:center;border-radius:5px;margin:6px;font-weight:bold;outline:none;background:var(--emw--color-background);border:0;transition:all 0.1s;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);color:var(--emw--color-typography, #fff)}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{box-shadow:0 0 1px 1px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between;gap:40px}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpNoticeMessage{color:var(--emw--color-primary, #f9c408);font-weight:bold}.LastWarningMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;display:flex;justify-content:center;align-items:center;padding:20px 0}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.OtpTimer{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-small, 12px);opacity:0.8}@container (max-width: 500px){.OtpContent{padding:var(--emw--spacing-small, 10px)}.OtpField input{width:40px;font-size:28px;margin:4px}}');
3881
3950
  }
3882
- function rr(e, t, r) {
3883
- const n = e.slice();
3884
- return n[69] = t[r], n[70] = t, n[71] = r, n;
3951
+ function nn(e, t, n) {
3952
+ const r = e.slice();
3953
+ return r[69] = t[n], r[70] = t, r[71] = n, r;
3885
3954
  }
3886
- function _o(e) {
3887
- let t, r, n, i, o, a, s, u, l, h, c, d, _, m, g, v, S, P = (
3955
+ function yo(e) {
3956
+ let t, n, r, i, o, a, s, u, l, h, c, d, y, m, g, _, S, M = (
3888
3957
  /*$_*/
3889
3958
  e[19]("channelSMS") + ""
3890
- ), I, D, M, N, re, Q, le, me, ue, B, U, Z, ge, be, ye = (
3959
+ ), I, D, P, N, ne, Q, le, me, ue, B, U, Z, ge, be, ve = (
3891
3960
  /*$_*/
3892
3961
  e[19]("channelEmail") + ""
3893
- ), J, De, Y, X, ne, _e, we;
3894
- function Se(b, A) {
3962
+ ), J, De, Y, X, re, ye, we;
3963
+ function Se(b, C) {
3895
3964
  return (
3896
3965
  /*showResendOtp*/
3897
3966
  b[9] ? wo : (
3898
3967
  /*showOtpInput*/
3899
- b[12] ? vo : xo
3968
+ b[12] ? _o : xo
3900
3969
  )
3901
3970
  );
3902
3971
  }
3903
3972
  let he = Se(e), K = he(e), W = (
3904
3973
  /*selectedChannel*/
3905
- e[0] && ir(e)
3974
+ e[0] && on(e)
3906
3975
  );
3907
- function Ue(b, A) {
3976
+ function Ue(b, C) {
3908
3977
  if (
3909
3978
  /*isLoading*/
3910
3979
  b[3] && /*showOtpInput*/
3911
3980
  b[12]
3912
3981
  )
3913
- return Co;
3982
+ return Ao;
3914
3983
  if (
3915
3984
  /*showOtpInput*/
3916
3985
  b[12] && /*config*/
3917
3986
  b[4]
3918
3987
  )
3919
- return Ao;
3988
+ return Co;
3920
3989
  }
3921
- let fe = Ue(e), $ = fe && fe(e);
3922
- function Ge(b, A) {
3990
+ let fe = Ue(e), z = fe && fe(e);
3991
+ function Ge(b, C) {
3923
3992
  if (
3924
3993
  /*showResendOtp*/
3925
3994
  b[9]
3926
3995
  )
3927
- return Po;
3996
+ return Mo;
3928
3997
  if (
3929
3998
  /*showOtpInput*/
3930
3999
  b[12] && /*config*/
@@ -3935,7 +4004,7 @@ function _o(e) {
3935
4004
  let pe = Ge(e), F = pe && pe(e);
3936
4005
  return {
3937
4006
  c() {
3938
- t = O("div"), K.c(), r = j(), n = O("div"), i = O("label"), o = O("div"), a = j(), s = O("input"), l = j(), h = O("div"), c = ie("svg"), d = ie("path"), _ = ie("circle"), m = ie("circle"), g = ie("circle"), v = j(), S = O("span"), I = k(P), D = j(), M = O("label"), N = O("div"), re = j(), Q = O("input"), me = j(), ue = O("div"), B = ie("svg"), U = ie("rect"), Z = ie("path"), ge = j(), be = O("span"), J = k(ye), De = j(), W && W.c(), Y = j(), $ && $.c(), X = j(), ne = O("div"), F && F.c(), p(t, "class", "OtpDescription"), p(o, "class", "RadioIndicator"), oe(
4007
+ t = O("div"), K.c(), n = j(), r = O("div"), i = O("label"), o = O("div"), a = j(), s = O("input"), l = j(), h = O("div"), c = ie("svg"), d = ie("path"), y = ie("circle"), m = ie("circle"), g = ie("circle"), _ = j(), S = O("span"), I = k(M), D = j(), P = O("label"), N = O("div"), ne = j(), Q = O("input"), me = j(), ue = O("div"), B = ie("svg"), U = ie("rect"), Z = ie("path"), ge = j(), be = O("span"), J = k(ve), De = j(), W && W.c(), Y = j(), z && z.c(), X = j(), re = O("div"), F && F.c(), p(t, "class", "OtpDescription"), p(o, "class", "RadioIndicator"), oe(
3939
4008
  o,
3940
4009
  "checked",
3941
4010
  /*selectedChannel*/
@@ -3944,7 +4013,7 @@ function _o(e) {
3944
4013
  ), p(s, "type", "radio"), p(s, "name", "channel"), s.value = /*channels*/
3945
4014
  e[20].SMS, s.checked = u = /*selectedChannel*/
3946
4015
  e[0] === /*channels*/
3947
- e[20].SMS, p(d, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), p(_, "cx", "9"), p(_, "cy", "11"), p(_, "r", "0.5"), p(_, "fill", "currentColor"), p(m, "cx", "12"), p(m, "cy", "11"), p(m, "r", "0.5"), p(m, "fill", "currentColor"), p(g, "cx", "15"), p(g, "cy", "11"), p(g, "r", "0.5"), p(g, "fill", "currentColor"), p(c, "xmlns", "http://www.w3.org/2000/svg"), p(c, "width", "24"), p(c, "height", "24"), p(c, "viewBox", "0 0 24 24"), p(c, "fill", "none"), p(c, "stroke", "currentColor"), p(c, "stroke-width", "2"), p(c, "stroke-linecap", "round"), p(c, "stroke-linejoin", "round"), p(h, "class", "ChannelContent"), p(i, "class", "ChannelCheckbox"), oe(
4016
+ e[20].SMS, p(d, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), p(y, "cx", "9"), p(y, "cy", "11"), p(y, "r", "0.5"), p(y, "fill", "currentColor"), p(m, "cx", "12"), p(m, "cy", "11"), p(m, "r", "0.5"), p(m, "fill", "currentColor"), p(g, "cx", "15"), p(g, "cy", "11"), p(g, "r", "0.5"), p(g, "fill", "currentColor"), p(c, "xmlns", "http://www.w3.org/2000/svg"), p(c, "width", "24"), p(c, "height", "24"), p(c, "viewBox", "0 0 24 24"), p(c, "fill", "none"), p(c, "stroke", "currentColor"), p(c, "stroke-width", "2"), p(c, "stroke-linecap", "round"), p(c, "stroke-linejoin", "round"), p(h, "class", "ChannelContent"), p(i, "class", "ChannelCheckbox"), oe(
3948
4017
  i,
3949
4018
  "selected",
3950
4019
  /*selectedChannel*/
@@ -3959,16 +4028,16 @@ function _o(e) {
3959
4028
  ), p(Q, "type", "radio"), p(Q, "name", "channel"), Q.value = /*channels*/
3960
4029
  e[20].EMAIL, Q.checked = le = /*selectedChannel*/
3961
4030
  e[0] === /*channels*/
3962
- e[20].EMAIL, p(U, "x", "2"), p(U, "y", "4"), p(U, "width", "20"), p(U, "height", "16"), p(U, "rx", "2"), p(Z, "d", "m2 7 10 6 10-6"), p(B, "xmlns", "http://www.w3.org/2000/svg"), p(B, "width", "24"), p(B, "height", "24"), p(B, "viewBox", "0 0 24 24"), p(B, "fill", "none"), p(B, "stroke", "currentColor"), p(B, "stroke-width", "2"), p(B, "stroke-linecap", "round"), p(B, "stroke-linejoin", "round"), p(ue, "class", "ChannelContent"), p(M, "class", "ChannelCheckbox"), oe(
3963
- M,
4031
+ e[20].EMAIL, p(U, "x", "2"), p(U, "y", "4"), p(U, "width", "20"), p(U, "height", "16"), p(U, "rx", "2"), p(Z, "d", "m2 7 10 6 10-6"), p(B, "xmlns", "http://www.w3.org/2000/svg"), p(B, "width", "24"), p(B, "height", "24"), p(B, "viewBox", "0 0 24 24"), p(B, "fill", "none"), p(B, "stroke", "currentColor"), p(B, "stroke-width", "2"), p(B, "stroke-linecap", "round"), p(B, "stroke-linejoin", "round"), p(ue, "class", "ChannelContent"), p(P, "class", "ChannelCheckbox"), oe(
4032
+ P,
3964
4033
  "selected",
3965
4034
  /*selectedChannel*/
3966
4035
  e[0] === /*channels*/
3967
4036
  e[20].EMAIL
3968
- ), p(n, "class", "ChannelSelection"), p(ne, "class", "OtpActionButtons");
4037
+ ), p(r, "class", "ChannelSelection"), p(re, "class", "OtpActionButtons");
3969
4038
  },
3970
- m(b, A) {
3971
- C(b, t, A), K.m(t, null), C(b, r, A), C(b, n, A), y(n, i), y(i, o), y(i, a), y(i, s), y(i, l), y(i, h), y(h, c), y(c, d), y(c, _), y(c, m), y(c, g), y(h, v), y(h, S), y(S, I), y(n, D), y(n, M), y(M, N), y(M, re), y(M, Q), y(M, me), y(M, ue), y(ue, B), y(B, U), y(B, Z), y(ue, ge), y(ue, be), y(be, J), C(b, De, A), W && W.m(b, A), C(b, Y, A), $ && $.m(b, A), C(b, X, A), C(b, ne, A), F && F.m(ne, null), _e || (we = [
4039
+ m(b, C) {
4040
+ A(b, t, C), K.m(t, null), A(b, n, C), A(b, r, C), v(r, i), v(i, o), v(i, a), v(i, s), v(i, l), v(i, h), v(h, c), v(c, d), v(c, y), v(c, m), v(c, g), v(h, _), v(h, S), v(S, I), v(r, D), v(r, P), v(P, N), v(P, ne), v(P, Q), v(P, me), v(P, ue), v(ue, B), v(B, U), v(B, Z), v(ue, ge), v(ue, be), v(be, J), A(b, De, C), W && W.m(b, C), A(b, Y, C), z && z.m(b, C), A(b, X, C), A(b, re, C), F && F.m(re, null), ye || (we = [
3972
4041
  ce(
3973
4042
  s,
3974
4043
  "change",
@@ -3981,97 +4050,97 @@ function _o(e) {
3981
4050
  /*change_handler_1*/
3982
4051
  e[40]
3983
4052
  )
3984
- ], _e = !0);
4053
+ ], ye = !0);
3985
4054
  },
3986
- p(b, A) {
3987
- he === (he = Se(b)) && K ? K.p(b, A) : (K.d(1), K = he(b), K && (K.c(), K.m(t, null))), A[0] & /*selectedChannel, channels*/
4055
+ p(b, C) {
4056
+ he === (he = Se(b)) && K ? K.p(b, C) : (K.d(1), K = he(b), K && (K.c(), K.m(t, null))), C[0] & /*selectedChannel, channels*/
3988
4057
  1048577 && oe(
3989
4058
  o,
3990
4059
  "checked",
3991
4060
  /*selectedChannel*/
3992
4061
  b[0] === /*channels*/
3993
4062
  b[20].SMS
3994
- ), A[0] & /*selectedChannel*/
4063
+ ), C[0] & /*selectedChannel*/
3995
4064
  1 && u !== (u = /*selectedChannel*/
3996
4065
  b[0] === /*channels*/
3997
- b[20].SMS) && (s.checked = u), A[0] & /*$_*/
3998
- 524288 && P !== (P = /*$_*/
3999
- b[19]("channelSMS") + "") && V(I, P), A[0] & /*selectedChannel, channels*/
4066
+ b[20].SMS) && (s.checked = u), C[0] & /*$_*/
4067
+ 524288 && M !== (M = /*$_*/
4068
+ b[19]("channelSMS") + "") && V(I, M), C[0] & /*selectedChannel, channels*/
4000
4069
  1048577 && oe(
4001
4070
  i,
4002
4071
  "selected",
4003
4072
  /*selectedChannel*/
4004
4073
  b[0] === /*channels*/
4005
4074
  b[20].SMS
4006
- ), A[0] & /*selectedChannel, channels*/
4075
+ ), C[0] & /*selectedChannel, channels*/
4007
4076
  1048577 && oe(
4008
4077
  N,
4009
4078
  "checked",
4010
4079
  /*selectedChannel*/
4011
4080
  b[0] === /*channels*/
4012
4081
  b[20].EMAIL
4013
- ), A[0] & /*selectedChannel*/
4082
+ ), C[0] & /*selectedChannel*/
4014
4083
  1 && le !== (le = /*selectedChannel*/
4015
4084
  b[0] === /*channels*/
4016
- b[20].EMAIL) && (Q.checked = le), A[0] & /*$_*/
4017
- 524288 && ye !== (ye = /*$_*/
4018
- b[19]("channelEmail") + "") && V(J, ye), A[0] & /*selectedChannel, channels*/
4085
+ b[20].EMAIL) && (Q.checked = le), C[0] & /*$_*/
4086
+ 524288 && ve !== (ve = /*$_*/
4087
+ b[19]("channelEmail") + "") && V(J, ve), C[0] & /*selectedChannel, channels*/
4019
4088
  1048577 && oe(
4020
- M,
4089
+ P,
4021
4090
  "selected",
4022
4091
  /*selectedChannel*/
4023
4092
  b[0] === /*channels*/
4024
4093
  b[20].EMAIL
4025
4094
  ), /*selectedChannel*/
4026
- b[0] ? W ? W.p(b, A) : (W = ir(b), W.c(), W.m(Y.parentNode, Y)) : W && (W.d(1), W = null), fe === (fe = Ue(b)) && $ ? $.p(b, A) : ($ && $.d(1), $ = fe && fe(b), $ && ($.c(), $.m(X.parentNode, X))), pe === (pe = Ge(b)) && F ? F.p(b, A) : (F && F.d(1), F = pe && pe(b), F && (F.c(), F.m(ne, null)));
4095
+ b[0] ? W ? W.p(b, C) : (W = on(b), W.c(), W.m(Y.parentNode, Y)) : W && (W.d(1), W = null), fe === (fe = Ue(b)) && z ? z.p(b, C) : (z && z.d(1), z = fe && fe(b), z && (z.c(), z.m(X.parentNode, X))), pe === (pe = Ge(b)) && F ? F.p(b, C) : (F && F.d(1), F = pe && pe(b), F && (F.c(), F.m(re, null)));
4027
4096
  },
4028
4097
  d(b) {
4029
- b && (H(t), H(r), H(n), H(De), H(Y), H(X), H(ne)), K.d(), W && W.d(b), $ && $.d(b), F && F.d(), _e = !1, ve(we);
4098
+ b && (H(t), H(n), H(r), H(De), H(Y), H(X), H(re)), K.d(), W && W.d(b), z && z.d(b), F && F.d(), ye = !1, _e(we);
4030
4099
  }
4031
4100
  };
4032
4101
  }
4033
4102
  function Eo(e) {
4034
- let t, r, n, i, o, a, s = (
4103
+ let t, n, r, i, o, a, s = (
4035
4104
  /*$_*/
4036
4105
  e[19]("errorHeader") + ""
4037
- ), u, l, h, c, d, _, m = (
4106
+ ), u, l, h, c, d, y, m = (
4038
4107
  /*$_*/
4039
4108
  e[19]("close") + ""
4040
- ), g, v, S;
4109
+ ), g, _, S;
4041
4110
  return {
4042
4111
  c() {
4043
- t = O("div"), r = O("div"), n = ie("svg"), i = ie("path"), o = j(), a = O("h2"), u = k(s), l = j(), h = O("p"), c = k(
4112
+ t = O("div"), n = O("div"), r = ie("svg"), i = ie("path"), o = j(), a = O("h2"), u = k(s), l = j(), h = O("p"), c = k(
4044
4113
  /*errorMessage*/
4045
4114
  e[8]
4046
- ), d = j(), _ = O("button"), g = k(m), p(i, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), p(n, "xmlns", "http://www.w3.org/2000/svg"), p(n, "viewBox", "0 0 512 512"), p(r, "class", "OtpErrorHeader"), p(_, "class", "OtpButton error"), p(t, "class", "OtpError");
4115
+ ), d = j(), y = O("button"), g = k(m), p(i, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), p(r, "xmlns", "http://www.w3.org/2000/svg"), p(r, "viewBox", "0 0 512 512"), p(n, "class", "OtpErrorHeader"), p(y, "class", "OtpButton error"), p(t, "class", "OtpError");
4047
4116
  },
4048
- m(P, I) {
4049
- C(P, t, I), y(t, r), y(r, n), y(n, i), y(r, o), y(r, a), y(a, u), y(t, l), y(t, h), y(h, c), y(t, d), y(t, _), y(_, g), v || (S = ce(
4050
- _,
4117
+ m(M, I) {
4118
+ A(M, t, I), v(t, n), v(n, r), v(r, i), v(n, o), v(n, a), v(a, u), v(t, l), v(t, h), v(h, c), v(t, d), v(t, y), v(y, g), _ || (S = ce(
4119
+ y,
4051
4120
  "click",
4052
4121
  /*manualClosePopup*/
4053
4122
  e[28]
4054
- ), v = !0);
4123
+ ), _ = !0);
4055
4124
  },
4056
- p(P, I) {
4125
+ p(M, I) {
4057
4126
  I[0] & /*$_*/
4058
4127
  524288 && s !== (s = /*$_*/
4059
- P[19]("errorHeader") + "") && V(u, s), I[0] & /*errorMessage*/
4128
+ M[19]("errorHeader") + "") && V(u, s), I[0] & /*errorMessage*/
4060
4129
  256 && V(
4061
4130
  c,
4062
4131
  /*errorMessage*/
4063
- P[8]
4132
+ M[8]
4064
4133
  ), I[0] & /*$_*/
4065
4134
  524288 && m !== (m = /*$_*/
4066
- P[19]("close") + "") && V(g, m);
4135
+ M[19]("close") + "") && V(g, m);
4067
4136
  },
4068
- d(P) {
4069
- P && H(t), v = !1, S();
4137
+ d(M) {
4138
+ M && H(t), _ = !1, S();
4070
4139
  }
4071
4140
  };
4072
4141
  }
4073
- function vo(e) {
4074
- let t, r, n, i;
4142
+ function _o(e) {
4143
+ let t, n, r, i;
4075
4144
  function o(l, h) {
4076
4145
  return (
4077
4146
  /*isLastWarning*/
@@ -4080,43 +4149,43 @@ function vo(e) {
4080
4149
  }
4081
4150
  let a = o(e), s = a(e), u = (
4082
4151
  /*hasErrors*/
4083
- e[6] && nr(e)
4152
+ e[6] && rn(e)
4084
4153
  );
4085
4154
  return {
4086
4155
  c() {
4087
- t = O("p"), s.c(), n = j(), u && u.c(), i = on(), p(t, "class", r = /*isLastWarning*/
4156
+ t = O("p"), s.c(), r = j(), u && u.c(), i = or(), p(t, "class", n = /*isLastWarning*/
4088
4157
  e[10] ? "LastWarningMessage" : "");
4089
4158
  },
4090
4159
  m(l, h) {
4091
- C(l, t, h), s.m(t, null), C(l, n, h), u && u.m(l, h), C(l, i, h);
4160
+ A(l, t, h), s.m(t, null), A(l, r, h), u && u.m(l, h), A(l, i, h);
4092
4161
  },
4093
4162
  p(l, h) {
4094
4163
  a === (a = o(l)) && s ? s.p(l, h) : (s.d(1), s = a(l), s && (s.c(), s.m(t, null))), h[0] & /*isLastWarning*/
4095
- 1024 && r !== (r = /*isLastWarning*/
4096
- l[10] ? "LastWarningMessage" : "") && p(t, "class", r), /*hasErrors*/
4097
- l[6] ? u ? u.p(l, h) : (u = nr(l), u.c(), u.m(i.parentNode, i)) : u && (u.d(1), u = null);
4164
+ 1024 && n !== (n = /*isLastWarning*/
4165
+ l[10] ? "LastWarningMessage" : "") && p(t, "class", n), /*hasErrors*/
4166
+ l[6] ? u ? u.p(l, h) : (u = rn(l), u.c(), u.m(i.parentNode, i)) : u && (u.d(1), u = null);
4098
4167
  },
4099
4168
  d(l) {
4100
- l && (H(t), H(n), H(i)), s.d(), u && u.d(l);
4169
+ l && (H(t), H(r), H(i)), s.d(), u && u.d(l);
4101
4170
  }
4102
4171
  };
4103
4172
  }
4104
4173
  function xo(e) {
4105
- let t, r = (
4174
+ let t, n = (
4106
4175
  /*$_*/
4107
4176
  (e[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + ""
4108
- ), n;
4177
+ ), r;
4109
4178
  return {
4110
4179
  c() {
4111
- t = O("p"), n = k(r);
4180
+ t = O("p"), r = k(n);
4112
4181
  },
4113
4182
  m(i, o) {
4114
- C(i, t, o), y(t, n);
4183
+ A(i, t, o), v(t, r);
4115
4184
  },
4116
4185
  p(i, o) {
4117
4186
  o[0] & /*$_*/
4118
- 524288 && r !== (r = /*$_*/
4119
- (i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && V(n, r);
4187
+ 524288 && n !== (n = /*$_*/
4188
+ (i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && V(r, n);
4120
4189
  },
4121
4190
  d(i) {
4122
4191
  i && H(t);
@@ -4124,21 +4193,21 @@ function xo(e) {
4124
4193
  };
4125
4194
  }
4126
4195
  function wo(e) {
4127
- let t, r = (
4196
+ let t, n = (
4128
4197
  /*$_*/
4129
4198
  e[19]("otpExpiredMessage") + ""
4130
- ), n;
4199
+ ), r;
4131
4200
  return {
4132
4201
  c() {
4133
- t = O("p"), n = k(r), p(t, "class", "OtpNoticeMessage"), p(t, "role", "alert");
4202
+ t = O("p"), r = k(n), p(t, "class", "OtpNoticeMessage"), p(t, "role", "alert");
4134
4203
  },
4135
4204
  m(i, o) {
4136
- C(i, t, o), y(t, n);
4205
+ A(i, t, o), v(t, r);
4137
4206
  },
4138
4207
  p(i, o) {
4139
4208
  o[0] & /*$_*/
4140
- 524288 && r !== (r = /*$_*/
4141
- i[19]("otpExpiredMessage") + "") && V(n, r);
4209
+ 524288 && n !== (n = /*$_*/
4210
+ i[19]("otpExpiredMessage") + "") && V(r, n);
4142
4211
  },
4143
4212
  d(i) {
4144
4213
  i && H(t);
@@ -4149,21 +4218,21 @@ function So(e) {
4149
4218
  let t = (
4150
4219
  /*$_*/
4151
4220
  e[19]("popupMessage") + ""
4152
- ), r;
4221
+ ), n;
4153
4222
  return {
4154
4223
  c() {
4155
- r = k(t);
4224
+ n = k(t);
4156
4225
  },
4157
- m(n, i) {
4158
- C(n, r, i);
4226
+ m(r, i) {
4227
+ A(r, n, i);
4159
4228
  },
4160
- p(n, i) {
4229
+ p(r, i) {
4161
4230
  i[0] & /*$_*/
4162
4231
  524288 && t !== (t = /*$_*/
4163
- n[19]("popupMessage") + "") && V(r, t);
4232
+ r[19]("popupMessage") + "") && V(n, t);
4164
4233
  },
4165
- d(n) {
4166
- n && H(r);
4234
+ d(r) {
4235
+ r && H(n);
4167
4236
  }
4168
4237
  };
4169
4238
  }
@@ -4171,51 +4240,51 @@ function To(e) {
4171
4240
  let t = (
4172
4241
  /*$_*/
4173
4242
  e[19]("popupMessageLastWarning") + ""
4174
- ), r;
4243
+ ), n;
4175
4244
  return {
4176
4245
  c() {
4177
- r = k(t);
4246
+ n = k(t);
4178
4247
  },
4179
- m(n, i) {
4180
- C(n, r, i);
4248
+ m(r, i) {
4249
+ A(r, n, i);
4181
4250
  },
4182
- p(n, i) {
4251
+ p(r, i) {
4183
4252
  i[0] & /*$_*/
4184
4253
  524288 && t !== (t = /*$_*/
4185
- n[19]("popupMessageLastWarning") + "") && V(r, t);
4254
+ r[19]("popupMessageLastWarning") + "") && V(n, t);
4186
4255
  },
4187
- d(n) {
4188
- n && H(r);
4256
+ d(r) {
4257
+ r && H(n);
4189
4258
  }
4190
4259
  };
4191
4260
  }
4192
- function nr(e) {
4193
- let t, r;
4261
+ function rn(e) {
4262
+ let t, n;
4194
4263
  return {
4195
4264
  c() {
4196
- t = O("p"), r = k(
4265
+ t = O("p"), n = k(
4197
4266
  /*errorMessage*/
4198
4267
  e[8]
4199
4268
  ), p(t, "class", "OtpErrorMessage"), p(t, "role", "alert");
4200
4269
  },
4201
- m(n, i) {
4202
- C(n, t, i), y(t, r);
4270
+ m(r, i) {
4271
+ A(r, t, i), v(t, n);
4203
4272
  },
4204
- p(n, i) {
4273
+ p(r, i) {
4205
4274
  i[0] & /*errorMessage*/
4206
4275
  256 && V(
4207
- r,
4276
+ n,
4208
4277
  /*errorMessage*/
4209
- n[8]
4278
+ r[8]
4210
4279
  );
4211
4280
  },
4212
- d(n) {
4213
- n && H(t);
4281
+ d(r) {
4282
+ r && H(t);
4214
4283
  }
4215
4284
  };
4216
4285
  }
4217
- function ir(e) {
4218
- let t, r, n, i;
4286
+ function on(e) {
4287
+ let t, n, r, i;
4219
4288
  function o(u, l) {
4220
4289
  return (
4221
4290
  /*currentChannelTimer*/
@@ -4225,29 +4294,29 @@ function ir(e) {
4225
4294
  let a = o(e), s = a(e);
4226
4295
  return {
4227
4296
  c() {
4228
- t = O("button"), s.c(), p(t, "class", "OtpButton"), t.disabled = r = !/*canSubmitChannel*/
4297
+ t = O("button"), s.c(), p(t, "class", "OtpButton"), t.disabled = n = !/*canSubmitChannel*/
4229
4298
  e[18], oe(t, "disabled", !/*canSubmitChannel*/
4230
4299
  e[18] || /*waitingForConfig*/
4231
4300
  e[16]);
4232
4301
  },
4233
4302
  m(u, l) {
4234
- C(u, t, l), s.m(t, null), n || (i = ce(
4303
+ A(u, t, l), s.m(t, null), r || (i = ce(
4235
4304
  t,
4236
4305
  "click",
4237
4306
  /*handleChannelSubmit*/
4238
4307
  e[22]
4239
- ), n = !0);
4308
+ ), r = !0);
4240
4309
  },
4241
4310
  p(u, l) {
4242
4311
  a === (a = o(u)) && s ? s.p(u, l) : (s.d(1), s = a(u), s && (s.c(), s.m(t, null))), l[0] & /*canSubmitChannel*/
4243
- 262144 && r !== (r = !/*canSubmitChannel*/
4244
- u[18]) && (t.disabled = r), l[0] & /*canSubmitChannel, waitingForConfig*/
4312
+ 262144 && n !== (n = !/*canSubmitChannel*/
4313
+ u[18]) && (t.disabled = n), l[0] & /*canSubmitChannel, waitingForConfig*/
4245
4314
  327680 && oe(t, "disabled", !/*canSubmitChannel*/
4246
4315
  u[18] || /*waitingForConfig*/
4247
4316
  u[16]);
4248
4317
  },
4249
4318
  d(u) {
4250
- u && H(t), s.d(), n = !1, i();
4319
+ u && H(t), s.d(), r = !1, i();
4251
4320
  }
4252
4321
  };
4253
4322
  }
@@ -4255,21 +4324,21 @@ function Oo(e) {
4255
4324
  let t = (
4256
4325
  /*$_*/
4257
4326
  e[19]("sendCode") + ""
4258
- ), r;
4327
+ ), n;
4259
4328
  return {
4260
4329
  c() {
4261
- r = k(t);
4330
+ n = k(t);
4262
4331
  },
4263
- m(n, i) {
4264
- C(n, r, i);
4332
+ m(r, i) {
4333
+ A(r, n, i);
4265
4334
  },
4266
- p(n, i) {
4335
+ p(r, i) {
4267
4336
  i[0] & /*$_*/
4268
4337
  524288 && t !== (t = /*$_*/
4269
- n[19]("sendCode") + "") && V(r, t);
4338
+ r[19]("sendCode") + "") && V(n, t);
4270
4339
  },
4271
- d(n) {
4272
- n && H(r);
4340
+ d(r) {
4341
+ r && H(n);
4273
4342
  }
4274
4343
  };
4275
4344
  }
@@ -4277,21 +4346,21 @@ function Ho(e) {
4277
4346
  let t = (
4278
4347
  /*$_*/
4279
4348
  e[19]("waitSeconds") + ""
4280
- ), r, n, i, o;
4349
+ ), n, r, i, o;
4281
4350
  return {
4282
4351
  c() {
4283
- r = k(t), n = k(" ("), i = k(
4352
+ n = k(t), r = k(" ("), i = k(
4284
4353
  /*currentChannelTimer*/
4285
4354
  e[17]
4286
4355
  ), o = k("s)");
4287
4356
  },
4288
4357
  m(a, s) {
4289
- C(a, r, s), C(a, n, s), C(a, i, s), C(a, o, s);
4358
+ A(a, n, s), A(a, r, s), A(a, i, s), A(a, o, s);
4290
4359
  },
4291
4360
  p(a, s) {
4292
4361
  s[0] & /*$_*/
4293
4362
  524288 && t !== (t = /*$_*/
4294
- a[19]("waitSeconds") + "") && V(r, t), s[0] & /*currentChannelTimer*/
4363
+ a[19]("waitSeconds") + "") && V(n, t), s[0] & /*currentChannelTimer*/
4295
4364
  131072 && V(
4296
4365
  i,
4297
4366
  /*currentChannelTimer*/
@@ -4299,12 +4368,12 @@ function Ho(e) {
4299
4368
  );
4300
4369
  },
4301
4370
  d(a) {
4302
- a && (H(r), H(n), H(i), H(o));
4371
+ a && (H(n), H(r), H(i), H(o));
4303
4372
  }
4304
4373
  };
4305
4374
  }
4306
- function Ao(e) {
4307
- let t, r, n = (
4375
+ function Co(e) {
4376
+ let t, n, r = (
4308
4377
  /*$_*/
4309
4378
  e[19]("timeRemaining") + ""
4310
4379
  ), i, o, a = (
@@ -4316,72 +4385,72 @@ function Ao(e) {
4316
4385
  ), s, u, l = (
4317
4386
  /*$_*/
4318
4387
  e[19]("minutes") + ""
4319
- ), h, c, d, _ = Gt(
4388
+ ), h, c, d, y = Gt(
4320
4389
  /*otp*/
4321
4390
  e[2]
4322
4391
  ), m = [];
4323
- for (let g = 0; g < _.length; g += 1)
4324
- m[g] = or(rr(e, _, g));
4392
+ for (let g = 0; g < y.length; g += 1)
4393
+ m[g] = sn(nn(e, y, g));
4325
4394
  return {
4326
4395
  c() {
4327
- t = O("div"), r = O("div"), i = k(n), o = j(), s = k(a), u = j(), h = k(l), c = j(), d = O("div");
4396
+ t = O("div"), n = O("div"), i = k(r), o = j(), s = k(a), u = j(), h = k(l), c = j(), d = O("div");
4328
4397
  for (let g = 0; g < m.length; g += 1)
4329
4398
  m[g].c();
4330
- p(r, "class", "OtpTimer"), p(d, "class", "OtpField"), p(t, "class", "OtpFieldWrapper");
4399
+ p(n, "class", "OtpTimer"), p(d, "class", "OtpField"), p(t, "class", "OtpFieldWrapper");
4331
4400
  },
4332
- m(g, v) {
4333
- C(g, t, v), y(t, r), y(r, i), y(r, o), y(r, s), y(r, u), y(r, h), y(t, c), y(t, d);
4401
+ m(g, _) {
4402
+ A(g, t, _), v(t, n), v(n, i), v(n, o), v(n, s), v(n, u), v(n, h), v(t, c), v(t, d);
4334
4403
  for (let S = 0; S < m.length; S += 1)
4335
4404
  m[S] && m[S].m(d, null);
4336
4405
  },
4337
- p(g, v) {
4338
- if (v[0] & /*$_*/
4339
- 524288 && n !== (n = /*$_*/
4340
- g[19]("timeRemaining") + "") && V(i, n), v[0] & /*timeLeft*/
4406
+ p(g, _) {
4407
+ if (_[0] & /*$_*/
4408
+ 524288 && r !== (r = /*$_*/
4409
+ g[19]("timeRemaining") + "") && V(i, r), _[0] & /*timeLeft*/
4341
4410
  32 && a !== (a = /*formatTime*/
4342
4411
  g[23](
4343
4412
  /*timeLeft*/
4344
4413
  g[5]
4345
- ) + "") && V(s, a), v[0] & /*$_*/
4414
+ ) + "") && V(s, a), _[0] & /*$_*/
4346
4415
  524288 && l !== (l = /*$_*/
4347
- g[19]("minutes") + "") && V(h, l), v[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
4416
+ g[19]("minutes") + "") && V(h, l), _[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
4348
4417
  117458964) {
4349
- _ = Gt(
4418
+ y = Gt(
4350
4419
  /*otp*/
4351
4420
  g[2]
4352
4421
  );
4353
4422
  let S;
4354
- for (S = 0; S < _.length; S += 1) {
4355
- const P = rr(g, _, S);
4356
- m[S] ? m[S].p(P, v) : (m[S] = or(P), m[S].c(), m[S].m(d, null));
4423
+ for (S = 0; S < y.length; S += 1) {
4424
+ const M = nn(g, y, S);
4425
+ m[S] ? m[S].p(M, _) : (m[S] = sn(M), m[S].c(), m[S].m(d, null));
4357
4426
  }
4358
4427
  for (; S < m.length; S += 1)
4359
4428
  m[S].d(1);
4360
- m.length = _.length;
4429
+ m.length = y.length;
4361
4430
  }
4362
4431
  },
4363
4432
  d(g) {
4364
- g && H(t), nn(m, g);
4433
+ g && H(t), ir(m, g);
4365
4434
  }
4366
4435
  };
4367
4436
  }
4368
- function Co(e) {
4437
+ function Ao(e) {
4369
4438
  let t;
4370
4439
  return {
4371
4440
  c() {
4372
4441
  t = O("div"), t.innerHTML = '<span class="OtpLoader"></span>', p(t, "class", "OtpLoaderContainer");
4373
4442
  },
4374
- m(r, n) {
4375
- C(r, t, n);
4443
+ m(n, r) {
4444
+ A(n, t, r);
4376
4445
  },
4377
4446
  p: te,
4378
- d(r) {
4379
- r && H(t);
4447
+ d(n) {
4448
+ n && H(t);
4380
4449
  }
4381
4450
  };
4382
4451
  }
4383
- function or(e) {
4384
- let t, r, n, i = (
4452
+ function sn(e) {
4453
+ let t, n, r, i = (
4385
4454
  /*index*/
4386
4455
  e[71]
4387
4456
  ), o, a;
@@ -4415,15 +4484,15 @@ function or(e) {
4415
4484
  return {
4416
4485
  c() {
4417
4486
  t = O("input"), p(t, "id", `otp-input-${/*index*/
4418
- e[71]}`), p(t, "type", "text"), p(t, "class", r = `otp-box ${/*config*/
4487
+ e[71]}`), p(t, "type", "text"), p(t, "class", n = `otp-box ${/*config*/
4419
4488
  e[4].inputLength % 2 === 0 && /*index*/
4420
4489
  e[71] === /*config*/
4421
- e[4].inputLength / 2 - 1 ? "space" : ""}`), p(t, "maxlength", 1), t.value = n = /*char*/
4490
+ e[4].inputLength / 2 - 1 ? "space" : ""}`), p(t, "maxlength", 1), t.value = r = /*char*/
4422
4491
  e[69], p(t, "inputmode", "numeric"), t.disabled = /*inputDisabled*/
4423
4492
  e[11], p(t, "autocomplete", "off");
4424
4493
  },
4425
4494
  m(c, d) {
4426
- C(c, t, d), s(), o || (a = [
4495
+ A(c, t, d), s(), o || (a = [
4427
4496
  ce(t, "input", l),
4428
4497
  ce(t, "keydown", h),
4429
4498
  ce(
@@ -4436,37 +4505,37 @@ function or(e) {
4436
4505
  },
4437
4506
  p(c, d) {
4438
4507
  e = c, d[0] & /*config*/
4439
- 16 && r !== (r = `otp-box ${/*config*/
4508
+ 16 && n !== (n = `otp-box ${/*config*/
4440
4509
  e[4].inputLength % 2 === 0 && /*index*/
4441
4510
  e[71] === /*config*/
4442
- e[4].inputLength / 2 - 1 ? "space" : ""}`) && p(t, "class", r), d[0] & /*otp*/
4443
- 4 && n !== (n = /*char*/
4444
- e[69]) && t.value !== n && (t.value = n), d[0] & /*inputDisabled*/
4511
+ e[4].inputLength / 2 - 1 ? "space" : ""}`) && p(t, "class", n), d[0] & /*otp*/
4512
+ 4 && r !== (r = /*char*/
4513
+ e[69]) && t.value !== r && (t.value = r), d[0] & /*inputDisabled*/
4445
4514
  2048 && (t.disabled = /*inputDisabled*/
4446
4515
  e[11]), i !== /*index*/
4447
4516
  e[71] && (u(), i = /*index*/
4448
4517
  e[71], s());
4449
4518
  },
4450
4519
  d(c) {
4451
- c && H(t), u(), o = !1, ve(a);
4520
+ c && H(t), u(), o = !1, _e(a);
4452
4521
  }
4453
4522
  };
4454
4523
  }
4455
4524
  function Bo(e) {
4456
- let t, r = (
4525
+ let t, n = (
4457
4526
  /*$_*/
4458
4527
  e[19]("submit") + ""
4459
- ), n, i, o, a;
4528
+ ), r, i, o, a;
4460
4529
  return {
4461
4530
  c() {
4462
- t = O("button"), n = k(r), p(t, "class", "OtpButton"), t.disabled = i = /*otp*/
4531
+ t = O("button"), r = k(n), p(t, "class", "OtpButton"), t.disabled = i = /*otp*/
4463
4532
  e[2].join("").length !== /*config*/
4464
4533
  e[4].inputLength || /*isSubmitting*/
4465
4534
  e[13] || /*maxAttempts*/
4466
4535
  e[15];
4467
4536
  },
4468
4537
  m(s, u) {
4469
- C(s, t, u), y(t, n), o || (a = ce(
4538
+ A(s, t, u), v(t, r), o || (a = ce(
4470
4539
  t,
4471
4540
  "click",
4472
4541
  /*submitOtp*/
@@ -4475,8 +4544,8 @@ function Bo(e) {
4475
4544
  },
4476
4545
  p(s, u) {
4477
4546
  u[0] & /*$_*/
4478
- 524288 && r !== (r = /*$_*/
4479
- s[19]("submit") + "") && V(n, r), u[0] & /*otp, config, isSubmitting, maxAttempts*/
4547
+ 524288 && n !== (n = /*$_*/
4548
+ s[19]("submit") + "") && V(r, n), u[0] & /*otp, config, isSubmitting, maxAttempts*/
4480
4549
  40980 && i !== (i = /*otp*/
4481
4550
  s[2].join("").length !== /*config*/
4482
4551
  s[4].inputLength || /*isSubmitting*/
@@ -4488,17 +4557,17 @@ function Bo(e) {
4488
4557
  }
4489
4558
  };
4490
4559
  }
4491
- function Po(e) {
4492
- let t, r = (
4560
+ function Mo(e) {
4561
+ let t, n = (
4493
4562
  /*$_*/
4494
4563
  e[19]("resendOtp") + ""
4495
- ), n, i, o;
4564
+ ), r, i, o;
4496
4565
  return {
4497
4566
  c() {
4498
- t = O("button"), n = k(r), p(t, "class", "OtpButton");
4567
+ t = O("button"), r = k(n), p(t, "class", "OtpButton");
4499
4568
  },
4500
4569
  m(a, s) {
4501
- C(a, t, s), y(t, n), i || (o = ce(
4570
+ A(a, t, s), v(t, r), i || (o = ce(
4502
4571
  t,
4503
4572
  "click",
4504
4573
  /*handleResendOtp*/
@@ -4507,32 +4576,32 @@ function Po(e) {
4507
4576
  },
4508
4577
  p(a, s) {
4509
4578
  s[0] & /*$_*/
4510
- 524288 && r !== (r = /*$_*/
4511
- a[19]("resendOtp") + "") && V(n, r);
4579
+ 524288 && n !== (n = /*$_*/
4580
+ a[19]("resendOtp") + "") && V(r, n);
4512
4581
  },
4513
4582
  d(a) {
4514
4583
  a && H(t), i = !1, o();
4515
4584
  }
4516
4585
  };
4517
4586
  }
4518
- function Mo(e) {
4587
+ function Po(e) {
4519
4588
  let t;
4520
- function r(o, a) {
4589
+ function n(o, a) {
4521
4590
  return (
4522
4591
  /*hasConfigErrors*/
4523
- o[7] ? Eo : _o
4592
+ o[7] ? Eo : yo
4524
4593
  );
4525
4594
  }
4526
- let n = r(e), i = n(e);
4595
+ let r = n(e), i = r(e);
4527
4596
  return {
4528
4597
  c() {
4529
4598
  t = O("div"), i.c(), p(t, "class", "OtpContent");
4530
4599
  },
4531
4600
  m(o, a) {
4532
- C(o, t, a), i.m(t, null), e[44](t);
4601
+ A(o, t, a), i.m(t, null), e[44](t);
4533
4602
  },
4534
4603
  p(o, a) {
4535
- n === (n = r(o)) && i ? i.p(o, a) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
4604
+ r === (r = n(o)) && i ? i.p(o, a) : (i.d(1), i = r(o), i && (i.c(), i.m(t, null)));
4536
4605
  },
4537
4606
  i: te,
4538
4607
  o: te,
@@ -4541,24 +4610,24 @@ function Mo(e) {
4541
4610
  }
4542
4611
  };
4543
4612
  }
4544
- function Lo(e, t, r) {
4545
- let n, i, o;
4546
- Kr(e, go, (f) => r(19, o = f));
4547
- let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session: c } = t, { translationurl: d } = t, { templateid: _ } = t, m = [], g = !0, v = null, S = 0, P = "", I = "", D = !1, M = !1, N = "", re = "", Q = "", le = !1, me = !1, ue = !1, B = "", U = {}, Z = null, ge = !1, be = !1, ye = "", J, De, Y = [], X = null, ne = 0, _e = !1, we = !1;
4613
+ function Lo(e, t, n) {
4614
+ let r, i, o;
4615
+ er(e, go, (f) => n(19, o = f));
4616
+ let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session: c } = t, { translationurl: d } = t, { templateid: y } = t, m = [], g = !0, _ = null, S = 0, M = "", I = "", D = !1, P = !1, N = "", ne = "", Q = "", le = !1, me = !1, ue = !1, B = "", U = {}, Z = null, ge = !1, be = !1, ve = "", J, De, Y = [], X = null, re = 0, ye = !1, we = !1;
4548
4617
  const Se = { SMS: "sms", EMAIL: "email" }, he = {
4549
4618
  MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
4550
4619
  INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
4551
4620
  MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
4552
4621
  };
4553
- Object.keys(tr).forEach((f) => {
4554
- er(f, tr[f]);
4622
+ Object.keys(tn).forEach((f) => {
4623
+ en(f, tn[f]);
4555
4624
  });
4556
4625
  const K = () => {
4557
4626
  bo(l);
4558
4627
  }, W = () => {
4559
4628
  fetch(d).then((f) => f.json()).then((f) => {
4560
4629
  Object.keys(f).forEach((E) => {
4561
- er(E, f[E]);
4630
+ en(E, f[E]);
4562
4631
  });
4563
4632
  }).catch((f) => {
4564
4633
  console.log(f);
@@ -4566,29 +4635,29 @@ function Lo(e, t, r) {
4566
4635
  }, Ue = (f) => Ee(this, null, function* () {
4567
4636
  var E;
4568
4637
  if ((E = f.detail) != null && E["x-step-up-required"]) {
4569
- if (r(7, M = !1), r(6, D = !1), r(8, N = ""), re = f.detail["x-step-up-token"], Q = f.detail.flow, !re || !Q) {
4570
- r(3, g = !1), r(7, M = !0), r(8, N = o("configError"));
4638
+ if (n(7, P = !1), n(6, D = !1), n(8, N = ""), ne = f.detail["x-step-up-token"], Q = f.detail.flow, !ne || !Q) {
4639
+ n(3, g = !1), n(7, P = !0), n(8, N = o("configError"));
4571
4640
  return;
4572
4641
  }
4573
- r(12, ge = !1), r(3, g = !1);
4642
+ n(12, ge = !1), n(3, g = !1);
4574
4643
  }
4575
4644
  }), fe = () => {
4576
- X && (clearInterval(X), X = null), Z && (clearInterval(Z), Z = null), r(6, D = !1), r(7, M = !1), r(8, N = ""), r(10, me = !1), r(2, m = []), r(4, v = null), r(3, g = !0), r(0, B = ""), r(12, ge = !1), r(38, U = {});
4577
- }, $ = () => {
4645
+ X && (clearInterval(X), X = null), Z && (clearInterval(Z), Z = null), n(6, D = !1), n(7, P = !1), n(8, N = ""), n(10, me = !1), n(2, m = []), n(4, _ = null), n(3, g = !0), n(0, B = ""), n(12, ge = !1), n(38, U = {});
4646
+ }, z = () => {
4578
4647
  fe();
4579
4648
  }, Ge = () => new Promise((f, E) => {
4580
- const x = new URL(`${h}/api/pam/v1/mfa/challenge/${re}`), G = new Headers();
4581
- G.append("accept", "application/json"), G.append("Content-Type", "application/json"), G.append("X-SessionId", `${c}`), r(16, we = !0);
4649
+ const x = new URL(`${h}/api/pam/v1/mfa/challenge/${ne}`), G = new Headers();
4650
+ G.append("accept", "application/json"), G.append("Content-Type", "application/json"), G.append("X-SessionId", `${c}`), n(16, we = !0);
4582
4651
  const Te = {
4583
4652
  method: "PATCH",
4584
4653
  headers: G,
4585
4654
  body: JSON.stringify({
4586
4655
  channel: B,
4587
- templateId: _
4656
+ templateId: y
4588
4657
  })
4589
4658
  };
4590
4659
  fetch(x, Te).then((Rt) => Rt.json()).then(() => {
4591
- r(15, _e = !1), A(), at(), f();
4660
+ n(15, ye = !1), C(), at(), f();
4592
4661
  }).catch((Rt) => {
4593
4662
  E();
4594
4663
  });
@@ -4599,55 +4668,55 @@ function Lo(e, t, r) {
4599
4668
  let E = !1;
4600
4669
  Object.keys(f).forEach((x) => {
4601
4670
  f[x] > 0 && (f[x]--, E = !0);
4602
- }), r(38, U = f), !E && Z && (clearInterval(Z), Z = null);
4671
+ }), n(38, U = f), !E && Z && (clearInterval(Z), Z = null);
4603
4672
  },
4604
4673
  1e3
4605
4674
  );
4606
4675
  }, F = (f) => {
4607
- r(0, B = f);
4676
+ n(0, B = f);
4608
4677
  }, b = () => Ee(this, null, function* () {
4609
4678
  if (!(!B || U[B] && U[B] > 0)) {
4610
- r(3, g = !0), _ && _.startsWith("2fa-") && r(30, _ = `2fa-${B}`);
4679
+ n(3, g = !0), y && y.startsWith("2fa-") && n(30, y = `2fa-${B}`);
4611
4680
  try {
4612
- yield Ge(), yield ut(), r(38, U = ct(We({}, U), {
4681
+ yield Ge(), yield ut(), n(38, U = ct(We({}, U), {
4613
4682
  [B]: 30
4614
- })), pe(), r(12, ge = !0), A(), at();
4683
+ })), pe(), n(12, ge = !0), C(), at();
4615
4684
  } catch (f) {
4616
- console.error("Error submitting channel:", f), r(6, D = !0), r(8, N = o("submissionError"));
4685
+ console.error("Error submitting channel:", f), n(6, D = !0), n(8, N = o("submissionError"));
4617
4686
  } finally {
4618
- r(3, g = !1);
4687
+ n(3, g = !1);
4619
4688
  }
4620
4689
  }
4621
- }), A = () => {
4622
- const f = new Date(P), E = new Date(I), x = /* @__PURE__ */ new Date(), G = E.getTime() - x.getTime();
4623
- ne = f.getTime() - G;
4624
- const z = Date.now(), Te = Math.max(0, Math.floor((ne - z) / 1e3));
4625
- r(5, S = Te);
4690
+ }), C = () => {
4691
+ const f = new Date(M), E = new Date(I), x = /* @__PURE__ */ new Date(), G = E.getTime() - x.getTime();
4692
+ re = f.getTime() - G;
4693
+ const $ = Date.now(), Te = Math.max(0, Math.floor((re - $) / 1e3));
4694
+ n(5, S = Te);
4626
4695
  }, at = () => {
4627
4696
  X && clearInterval(X), X = setInterval(
4628
4697
  () => {
4629
- const f = Date.now(), E = Math.max(0, Math.floor((ne - f) / 1e3));
4630
- r(5, S = E), r(11, ue = E <= 0), E <= 0 && (clearInterval(X), X = null, r(9, le = !0), r(6, D = !1), r(10, me = !1));
4698
+ const f = Date.now(), E = Math.max(0, Math.floor((re - f) / 1e3));
4699
+ n(5, S = E), n(11, ue = E <= 0), E <= 0 && (clearInterval(X), X = null, n(9, le = !0), n(6, D = !1), n(10, me = !1));
4631
4700
  },
4632
4701
  1e3
4633
4702
  );
4634
- }, Ir = (f) => {
4703
+ }, Nn = (f) => {
4635
4704
  const E = Math.floor(f / 60), x = f % 60;
4636
4705
  return `${E.toString().padStart(2, "0")}:${x.toString().padStart(2, "0")}`;
4637
4706
  }, lt = (f, E) => {
4638
4707
  const x = [...m];
4639
- x[f] = E.toUpperCase(), r(2, m = x), x.join("") !== ye && r(13, be = !1);
4640
- }, Nr = (f) => {
4641
- var G, z, Te;
4708
+ x[f] = E.toUpperCase(), n(2, m = x), x.join("") !== ve && n(13, be = !1);
4709
+ }, Rn = (f) => {
4710
+ var G, $, Te;
4642
4711
  f.preventDefault();
4643
- const x = (((z = (G = f.clipboardData) == null ? void 0 : G.getData("text")) == null ? void 0 : z.trim()) || "").slice(0, v.inputLength).split("");
4644
- r(2, m = [...x, ...Array(v.inputLength - x.length).fill("")]), (Te = Y[x.length]) == null || Te.focus(), x.length === v.inputLength && Nt();
4712
+ const x = ((($ = (G = f.clipboardData) == null ? void 0 : G.getData("text")) == null ? void 0 : $.trim()) || "").slice(0, _.inputLength).split("");
4713
+ n(2, m = [...x, ...Array(_.inputLength - x.length).fill("")]), (Te = Y[x.length]) == null || Te.focus(), x.length === _.inputLength && Nt();
4645
4714
  }, Lt = (f, E) => {
4646
4715
  const x = f.target, G = x.value;
4647
4716
  if (/^[a-z0-9]$/i.test(G)) {
4648
4717
  lt(E, G);
4649
- const z = Y[E + 1];
4650
- z == null || z.focus();
4718
+ const $ = Y[E + 1];
4719
+ $ == null || $.focus();
4651
4720
  }
4652
4721
  x.value = "";
4653
4722
  }, It = (f, E) => {
@@ -4656,42 +4725,42 @@ function Lo(e, t, r) {
4656
4725
  if (G && x.toLowerCase() === "v")
4657
4726
  return;
4658
4727
  f.preventDefault(), lt(E, x);
4659
- const z = Y[E + 1];
4660
- z == null || z.focus();
4728
+ const $ = Y[E + 1];
4729
+ $ == null || $.focus();
4661
4730
  } else if (x === "Backspace") {
4662
4731
  f.preventDefault(), m[E] !== "" && lt(E, "");
4663
- const z = Y[E - 1];
4664
- z == null || z.focus();
4732
+ const $ = Y[E - 1];
4733
+ $ == null || $.focus();
4665
4734
  }
4666
- }, Rr = () => {
4667
- Q == "stateful" && (Ge(), r(9, le = !1));
4735
+ }, kn = () => {
4736
+ Q == "stateful" && (Ge(), n(9, le = !1));
4668
4737
  const f = new CustomEvent("otpResendRequested");
4669
4738
  window.dispatchEvent(f);
4670
- }, kr = (f) => {
4739
+ }, Dn = (f) => {
4671
4740
  window.dispatchEvent(new CustomEvent(
4672
4741
  "otpSubmitted",
4673
4742
  {
4674
4743
  detail: {
4675
4744
  code: f,
4676
- maxAttempts: v.maxValidationAttempts,
4677
- validatedAttempts: v.numberOfValidateAttempts
4745
+ maxAttempts: _.maxValidationAttempts,
4746
+ validatedAttempts: _.numberOfValidateAttempts
4678
4747
  }
4679
4748
  }
4680
4749
  ));
4681
- }, Dr = (f) => Ee(this, null, function* () {
4682
- const E = new URL(`/api/nwa/api/v1/mfa/challenge/${re}/validate`, h);
4750
+ }, Un = (f) => Ee(this, null, function* () {
4751
+ const E = new URL(`/api/nwa/api/v1/mfa/challenge/${ne}/validate`, h);
4683
4752
  E.searchParams.append("input", f);
4684
4753
  try {
4685
4754
  const x = yield fetch(E.href, { method: "POST" });
4686
4755
  if (x.status === 200) {
4687
- Ur();
4756
+ Gn();
4688
4757
  return;
4689
4758
  }
4690
4759
  const G = yield x.json();
4691
4760
  throw new Error(G.message);
4692
4761
  } catch (x) {
4693
4762
  if (yield ut(), x.message === he.INTERNAL_SERVER_ERROR) {
4694
- if (v.numberOfValidateAttempts === v.maxValidationAttempts - 1) {
4763
+ if (_.numberOfValidateAttempts === _.maxValidationAttempts - 1) {
4695
4764
  window.dispatchEvent(new CustomEvent("otpSetTimeout")), window.postMessage(
4696
4765
  {
4697
4766
  type: "WidgetNotification",
@@ -4704,14 +4773,14 @@ function Lo(e, t, r) {
4704
4773
  ), window.dispatchEvent(new CustomEvent("manualClosePopup"));
4705
4774
  return;
4706
4775
  }
4707
- r(6, D = !0), r(8, N = o("invalidOtp")), ut();
4776
+ n(6, D = !0), n(8, N = o("invalidOtp")), ut();
4708
4777
  return;
4709
4778
  }
4710
- x.message === he.MAX_INVALIDATE && (r(6, D = !0), r(8, N = o("invalidOtp"))), x.details === he.MAX_ATTEMPTS_EXCEEDED && r(15, _e = !0), console.error("OTP submission failed:", x), r(6, D = !0), r(8, N = o("submissionError"));
4779
+ x.message === he.MAX_INVALIDATE && (n(6, D = !0), n(8, N = o("invalidOtp"))), x.details === he.MAX_ATTEMPTS_EXCEEDED && n(15, ye = !0), console.error("OTP submission failed:", x), n(6, D = !0), n(8, N = o("submissionError"));
4711
4780
  } finally {
4712
- r(3, g = !1);
4781
+ n(3, g = !1);
4713
4782
  }
4714
- }), Ur = () => {
4783
+ }), Gn = () => {
4715
4784
  window.dispatchEvent(new CustomEvent(
4716
4785
  "otpSuccess",
4717
4786
  {
@@ -4720,22 +4789,22 @@ function Lo(e, t, r) {
4720
4789
  }
4721
4790
  }
4722
4791
  ));
4723
- }, Gr = () => {
4792
+ }, Fn = () => {
4724
4793
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
4725
4794
  }, Nt = () => Ee(this, null, function* () {
4726
- if (m.join("").length !== v.inputLength) {
4727
- r(6, D = !0), r(8, N = o("invalidOtp"));
4795
+ if (m.join("").length !== _.inputLength) {
4796
+ n(6, D = !0), n(8, N = o("invalidOtp"));
4728
4797
  return;
4729
4798
  }
4730
4799
  const f = m.join("");
4731
- r(13, be = !0), ye = f, r(3, g = !0), r(6, D = !1), r(8, N = ""), Q === "stateless" && kr(f), Q === "stateful" && (yield Dr(f));
4800
+ n(13, be = !0), ve = f, n(3, g = !0), n(6, D = !1), n(8, N = ""), Q === "stateless" && Dn(f), Q === "stateful" && (yield Un(f));
4732
4801
  }), ut = () => Ee(this, null, function* () {
4733
4802
  if (h)
4734
4803
  try {
4735
- r(3, g = !0);
4736
- const f = new URL(`/api/nwa/api/v1/mfa/challenge/${re}/config`, h), E = yield fetch(f.href), x = yield E.json();
4804
+ n(3, g = !0);
4805
+ const f = new URL(`/api/nwa/api/v1/mfa/challenge/${ne}/config`, h), E = yield fetch(f.href), x = yield E.json();
4737
4806
  if (E.ok)
4738
- r(4, v = x), r(2, m = Array(v.inputLength).fill("")), r(9, le = !1), P = v.expirationTime, I = v.serverTime, v.numberOfValidateAttempts !== 0 && (r(6, D = !0), r(8, N = o("invalidOtp"))), v.numberOfValidateAttempts === v.maxValidationAttempts - 1 && r(10, me = !0), r(3, g = !1), A(), at(), r(16, we = !1);
4807
+ n(4, _ = x), n(2, m = Array(_.inputLength).fill("")), n(9, le = !1), M = _.expirationTime, I = _.serverTime, _.numberOfValidateAttempts !== 0 && (n(6, D = !0), n(8, N = o("invalidOtp"))), _.numberOfValidateAttempts === _.maxValidationAttempts - 1 && n(10, me = !0), n(3, g = !1), C(), at(), n(16, we = !1);
4739
4808
  else if (x && x.details === he.MAX_ATTEMPTS_EXCEEDED)
4740
4809
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
4741
4810
  else {
@@ -4743,49 +4812,49 @@ function Lo(e, t, r) {
4743
4812
  throw new Error(G);
4744
4813
  }
4745
4814
  } catch (f) {
4746
- r(3, g = !1), r(7, M = !0), r(8, N = o("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", f);
4815
+ n(3, g = !1), n(7, P = !0), n(8, N = o("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", f);
4747
4816
  }
4748
4817
  });
4749
- un(() => (window.addEventListener("stepUpAuthRequired", Ue, !1), window.addEventListener("closePopup", $, !1), () => {
4750
- window.removeEventListener("stepUpAuthRequired", Ue), window.removeEventListener("closePopup", $, !1), X && clearInterval(X), Z && clearInterval(Z);
4818
+ ur(() => (window.addEventListener("stepUpAuthRequired", Ue, !1), window.addEventListener("closePopup", z, !1), () => {
4819
+ window.removeEventListener("stepUpAuthRequired", Ue), window.removeEventListener("closePopup", z, !1), X && clearInterval(X), Z && clearInterval(Z);
4751
4820
  }));
4752
- const Fr = () => F(Se.SMS), jr = () => F(Se.EMAIL);
4753
- function Vr(f, E) {
4821
+ const jn = () => F(Se.SMS), Vn = () => F(Se.EMAIL);
4822
+ function zn(f, E) {
4754
4823
  Ye[f ? "unshift" : "push"](() => {
4755
- Y[E] = f, r(14, Y);
4824
+ Y[E] = f, n(14, Y);
4756
4825
  });
4757
4826
  }
4758
- const $r = (f, E) => Lt(E, f), zr = (f, E) => It(E, f);
4759
- function Xr(f) {
4827
+ const $n = (f, E) => Lt(E, f), Xn = (f, E) => It(E, f);
4828
+ function Wn(f) {
4760
4829
  Ye[f ? "unshift" : "push"](() => {
4761
- J = f, r(1, J);
4830
+ J = f, n(1, J);
4762
4831
  });
4763
4832
  }
4764
4833
  return e.$$set = (f) => {
4765
- "clientstyling" in f && r(31, a = f.clientstyling), "clientstylingurl" in f && r(32, s = f.clientstylingurl), "mbsource" in f && r(33, u = f.mbsource), "lang" in f && r(34, l = f.lang), "endpoint" in f && r(35, h = f.endpoint), "session" in f && r(36, c = f.session), "translationurl" in f && r(37, d = f.translationurl), "templateid" in f && r(30, _ = f.templateid);
4834
+ "clientstyling" in f && n(31, a = f.clientstyling), "clientstylingurl" in f && n(32, s = f.clientstylingurl), "mbsource" in f && n(33, u = f.mbsource), "lang" in f && n(34, l = f.lang), "endpoint" in f && n(35, h = f.endpoint), "session" in f && n(36, c = f.session), "translationurl" in f && n(37, d = f.translationurl), "templateid" in f && n(30, y = f.templateid);
4766
4835
  }, e.$$.update = () => {
4767
4836
  e.$$.dirty[0] & /*customStylingContainer*/
4768
4837
  2 | e.$$.dirty[1] & /*clientstyling*/
4769
- 1 && a && J && wn(J, a), e.$$.dirty[0] & /*customStylingContainer*/
4838
+ 1 && a && J && wr(J, a), e.$$.dirty[0] & /*customStylingContainer*/
4770
4839
  2 | e.$$.dirty[1] & /*clientstylingurl*/
4771
- 2 && s && J && Sn(J, s), e.$$.dirty[0] & /*customStylingContainer*/
4840
+ 2 && s && J && Sr(J, s), e.$$.dirty[0] & /*customStylingContainer*/
4772
4841
  2 | e.$$.dirty[1] & /*mbsource*/
4773
- 4 && u && J && Tn(J, `${u}.Style`, De), e.$$.dirty[1] & /*lang*/
4842
+ 4 && u && J && Tr(J, `${u}.Style`, De), e.$$.dirty[1] & /*lang*/
4774
4843
  8 && l && K(), e.$$.dirty[1] & /*lang, translationurl*/
4775
4844
  72 && l && d && W(), e.$$.dirty[0] & /*selectedChannel*/
4776
4845
  1 | e.$$.dirty[1] & /*channelSubmitTimers*/
4777
- 128 && r(18, n = B && (!U[B] || U[B] === 0)), e.$$.dirty[0] & /*selectedChannel*/
4846
+ 128 && n(18, r = B && (!U[B] || U[B] === 0)), e.$$.dirty[0] & /*selectedChannel*/
4778
4847
  1 | e.$$.dirty[1] & /*channelSubmitTimers*/
4779
- 128 && r(17, i = B && U[B] || 0);
4848
+ 128 && n(17, i = B && U[B] || 0);
4780
4849
  }, [
4781
4850
  B,
4782
4851
  J,
4783
4852
  m,
4784
4853
  g,
4785
- v,
4854
+ _,
4786
4855
  S,
4787
4856
  D,
4788
- M,
4857
+ P,
4789
4858
  N,
4790
4859
  le,
4791
4860
  me,
@@ -4793,22 +4862,22 @@ function Lo(e, t, r) {
4793
4862
  ge,
4794
4863
  be,
4795
4864
  Y,
4796
- _e,
4865
+ ye,
4797
4866
  we,
4798
4867
  i,
4799
- n,
4868
+ r,
4800
4869
  o,
4801
4870
  Se,
4802
4871
  F,
4803
4872
  b,
4804
- Ir,
4805
- Nr,
4873
+ Nn,
4874
+ Rn,
4806
4875
  Lt,
4807
4876
  It,
4808
- Rr,
4809
- Gr,
4877
+ kn,
4878
+ Fn,
4810
4879
  Nt,
4811
- _,
4880
+ y,
4812
4881
  a,
4813
4882
  s,
4814
4883
  u,
@@ -4817,22 +4886,22 @@ function Lo(e, t, r) {
4817
4886
  c,
4818
4887
  d,
4819
4888
  U,
4820
- Fr,
4821
- jr,
4822
- Vr,
4823
- $r,
4824
- zr,
4825
- Xr
4889
+ jn,
4890
+ Vn,
4891
+ zn,
4892
+ $n,
4893
+ Xn,
4894
+ Wn
4826
4895
  ];
4827
4896
  }
4828
- class Io extends vn {
4897
+ class Io extends _r {
4829
4898
  constructor(t) {
4830
- super(), _n(
4899
+ super(), yr(
4831
4900
  this,
4832
4901
  t,
4833
4902
  Lo,
4834
- Mo,
4835
- ar,
4903
+ Po,
4904
+ ln,
4836
4905
  {
4837
4906
  clientstyling: 31,
4838
4907
  clientstylingurl: 32,
@@ -4843,7 +4912,7 @@ class Io extends vn {
4843
4912
  translationurl: 37,
4844
4913
  templateid: 30
4845
4914
  },
4846
- yo,
4915
+ vo,
4847
4916
  [-1, -1, -1]
4848
4917
  );
4849
4918
  }
@@ -4896,7 +4965,7 @@ class Io extends vn {
4896
4965
  this.$$set({ templateid: t }), se();
4897
4966
  }
4898
4967
  }
4899
- En(Io, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
4968
+ Er(Io, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
4900
4969
  export {
4901
4970
  Io as default
4902
4971
  };