@everymatrix/cashier-step-up 0.6.2 → 0.6.3

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.
@@ -9,38 +9,38 @@ function Bt() {
9
9
  function _e(e) {
10
10
  e.forEach(Yt);
11
11
  }
12
- function wt(e) {
12
+ function vt(e) {
13
13
  return typeof e == "function";
14
14
  }
15
15
  function Kt(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function Ur(e) {
18
+ function Gn(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function er(e, ...t) {
21
+ function en(e, ...t) {
22
22
  if (e == null) {
23
- for (const n of t)
24
- n(void 0);
23
+ for (const r of t)
24
+ r(void 0);
25
25
  return Y;
26
26
  }
27
- const r = e.subscribe(...t);
28
- return r.unsubscribe ? () => r.unsubscribe() : r;
27
+ const n = e.subscribe(...t);
28
+ return n.unsubscribe ? () => n.unsubscribe() : n;
29
29
  }
30
- function Gr(e, t, r) {
31
- e.$$.on_destroy.push(er(t, r));
30
+ function Fn(e, t, n) {
31
+ e.$$.on_destroy.push(en(t, n));
32
32
  }
33
- function y(e, t) {
33
+ function _(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function Fr(e, t, r) {
37
- const n = jr(e);
38
- if (!n.getElementById(t)) {
39
- const i = O("style");
40
- i.id = t, i.textContent = r, Vr(n, i);
36
+ function jn(e, t, n) {
37
+ const r = Vn(e);
38
+ if (!r.getElementById(t)) {
39
+ const i = H("style");
40
+ i.id = t, i.textContent = n, $n(r, i);
41
41
  }
42
42
  }
43
- function jr(e) {
43
+ function Vn(e) {
44
44
  if (!e)
45
45
  return document;
46
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -50,27 +50,27 @@ function jr(e) {
50
50
  t
51
51
  ) : e.ownerDocument;
52
52
  }
53
- function Vr(e, t) {
54
- return y(
53
+ function $n(e, t) {
54
+ return _(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
58
58
  ), t.sheet;
59
59
  }
60
- function C(e, t, r) {
61
- e.insertBefore(t, r || null);
60
+ function B(e, t, n) {
61
+ e.insertBefore(t, n || null);
62
62
  }
63
- function H(e) {
63
+ function A(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function $r(e, t) {
67
- for (let r = 0; r < e.length; r += 1)
68
- e[r] && e[r].d(t);
66
+ function zn(e, t) {
67
+ for (let n = 0; n < e.length; n += 1)
68
+ e[n] && e[n].d(t);
69
69
  }
70
- function O(e) {
70
+ function H(e) {
71
71
  return document.createElement(e);
72
72
  }
73
- function ne(e) {
73
+ function re(e) {
74
74
  return document.createElementNS("http://www.w3.org/2000/svg", e);
75
75
  }
76
76
  function k(e) {
@@ -79,118 +79,118 @@ function k(e) {
79
79
  function G() {
80
80
  return k(" ");
81
81
  }
82
- function zr() {
82
+ function Xn() {
83
83
  return k("");
84
84
  }
85
- function ce(e, t, r, n) {
86
- return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
85
+ function he(e, t, n, r) {
86
+ return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
87
87
  }
88
- function p(e, t, r) {
89
- r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
88
+ function p(e, t, n) {
89
+ n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
90
90
  }
91
- function Xr(e) {
91
+ function Wn(e) {
92
92
  return Array.from(e.childNodes);
93
93
  }
94
94
  function F(e, t) {
95
95
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
96
96
  t);
97
97
  }
98
- function ie(e, t, r) {
99
- e.classList.toggle(t, !!r);
98
+ function ie(e, t, n) {
99
+ e.classList.toggle(t, !!n);
100
100
  }
101
- function Wr(e) {
101
+ function Zn(e) {
102
102
  const t = {};
103
103
  return e.childNodes.forEach(
104
104
  /** @param {Element} node */
105
- (r) => {
106
- t[r.slot || "default"] = !0;
105
+ (n) => {
106
+ t[n.slot || "default"] = !0;
107
107
  }
108
108
  ), t;
109
109
  }
110
- let ke;
111
- function Re(e) {
112
- ke = e;
110
+ let Re;
111
+ function Ne(e) {
112
+ Re = e;
113
113
  }
114
- function Zr() {
115
- if (!ke)
114
+ function qn() {
115
+ if (!Re)
116
116
  throw new Error("Function called outside component initialization");
117
- return ke;
117
+ return Re;
118
118
  }
119
- function qr(e) {
120
- Zr().$$.on_mount.push(e);
119
+ function Qn(e) {
120
+ qn().$$.on_mount.push(e);
121
121
  }
122
- const Te = [], We = [];
123
- let Oe = [];
124
- const Pt = [], Qr = /* @__PURE__ */ Promise.resolve();
125
- let ft = !1;
126
- function Jr() {
127
- ft || (ft = !0, Qr.then(oe));
122
+ const Se = [], Xe = [];
123
+ let Te = [];
124
+ const Pt = [], Jn = /* @__PURE__ */ Promise.resolve();
125
+ let ht = !1;
126
+ function Yn() {
127
+ ht || (ht = !0, Jn.then(oe));
128
128
  }
129
- function pt(e) {
130
- Oe.push(e);
129
+ function ct(e) {
130
+ Te.push(e);
131
131
  }
132
- const ot = /* @__PURE__ */ new Set();
133
- let we = 0;
132
+ const rt = /* @__PURE__ */ new Set();
133
+ let xe = 0;
134
134
  function oe() {
135
- if (we !== 0)
135
+ if (xe !== 0)
136
136
  return;
137
- const e = ke;
137
+ const e = Re;
138
138
  do {
139
139
  try {
140
- for (; we < Te.length; ) {
141
- const t = Te[we];
142
- we++, Re(t), Yr(t.$$);
140
+ for (; xe < Se.length; ) {
141
+ const t = Se[xe];
142
+ xe++, Ne(t), Kn(t.$$);
143
143
  }
144
144
  } catch (t) {
145
- throw Te.length = 0, we = 0, t;
145
+ throw Se.length = 0, xe = 0, t;
146
146
  }
147
- for (Re(null), Te.length = 0, we = 0; We.length; )
148
- We.pop()();
149
- for (let t = 0; t < Oe.length; t += 1) {
150
- const r = Oe[t];
151
- ot.has(r) || (ot.add(r), r());
147
+ for (Ne(null), Se.length = 0, xe = 0; Xe.length; )
148
+ Xe.pop()();
149
+ for (let t = 0; t < Te.length; t += 1) {
150
+ const n = Te[t];
151
+ rt.has(n) || (rt.add(n), n());
152
152
  }
153
- Oe.length = 0;
154
- } while (Te.length);
153
+ Te.length = 0;
154
+ } while (Se.length);
155
155
  for (; Pt.length; )
156
156
  Pt.pop()();
157
- ft = !1, ot.clear(), Re(e);
157
+ ht = !1, rt.clear(), Ne(e);
158
158
  }
159
- function Yr(e) {
159
+ function Kn(e) {
160
160
  if (e.fragment !== null) {
161
161
  e.update(), _e(e.before_update);
162
162
  const t = e.dirty;
163
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(pt);
163
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ct);
164
164
  }
165
165
  }
166
- function Kr(e) {
167
- const t = [], r = [];
168
- Oe.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Oe = t;
166
+ function er(e) {
167
+ const t = [], n = [];
168
+ Te.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Te = t;
169
169
  }
170
- const en = /* @__PURE__ */ new Set();
171
- function tn(e, t) {
172
- e && e.i && (en.delete(e), e.i(t));
170
+ const tr = /* @__PURE__ */ new Set();
171
+ function nr(e, t) {
172
+ e && e.i && (tr.delete(e), e.i(t));
173
173
  }
174
174
  function Mt(e) {
175
175
  return e?.length !== void 0 ? e : Array.from(e);
176
176
  }
177
- function rn(e, t, r) {
178
- const { fragment: n, after_update: i } = e.$$;
179
- n && n.m(t, r), pt(() => {
180
- const o = e.$$.on_mount.map(Yt).filter(wt);
177
+ function rr(e, t, n) {
178
+ const { fragment: r, after_update: i } = e.$$;
179
+ r && r.m(t, n), ct(() => {
180
+ const o = e.$$.on_mount.map(Yt).filter(vt);
181
181
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : _e(o), e.$$.on_mount = [];
182
- }), i.forEach(pt);
182
+ }), i.forEach(ct);
183
183
  }
184
- function nn(e, t) {
185
- const r = e.$$;
186
- r.fragment !== null && (Kr(r.after_update), _e(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
184
+ function ir(e, t) {
185
+ const n = e.$$;
186
+ n.fragment !== null && (er(n.after_update), _e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
187
187
  }
188
- function on(e, t) {
189
- e.$$.dirty[0] === -1 && (Te.push(e), Jr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
188
+ function or(e, t) {
189
+ e.$$.dirty[0] === -1 && (Se.push(e), Yn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
190
190
  }
191
- function sn(e, t, r, n, i, o, a = null, s = [-1]) {
192
- const u = ke;
193
- Re(e);
191
+ function sr(e, t, n, r, i, o, a = null, s = [-1]) {
192
+ const u = Re;
193
+ Ne(e);
194
194
  const l = e.$$ = {
195
195
  fragment: null,
196
196
  ctx: [],
@@ -214,21 +214,21 @@ function sn(e, t, r, n, i, o, a = null, s = [-1]) {
214
214
  };
215
215
  a && a(l.root);
216
216
  let h = !1;
217
- if (l.ctx = r ? r(e, t.props || {}, (c, m, ..._) => {
218
- const d = _.length ? _[0] : m;
219
- return l.ctx && i(l.ctx[c], l.ctx[c] = d) && (!l.skip_bound && l.bound[c] && l.bound[c](d), h && on(e, c)), m;
220
- }) : [], l.update(), h = !0, _e(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
217
+ if (l.ctx = n ? n(e, t.props || {}, (c, m, ...y) => {
218
+ const d = y.length ? y[0] : m;
219
+ return l.ctx && i(l.ctx[c], l.ctx[c] = d) && (!l.skip_bound && l.bound[c] && l.bound[c](d), h && or(e, c)), m;
220
+ }) : [], l.update(), h = !0, _e(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
221
221
  if (t.hydrate) {
222
- const c = Xr(t.target);
223
- l.fragment && l.fragment.l(c), c.forEach(H);
222
+ const c = Wn(t.target);
223
+ l.fragment && l.fragment.l(c), c.forEach(A);
224
224
  } else
225
225
  l.fragment && l.fragment.c();
226
- t.intro && tn(e.$$.fragment), rn(e, t.target, t.anchor), oe();
226
+ t.intro && nr(e.$$.fragment), rr(e, t.target, t.anchor), oe();
227
227
  }
228
- Re(u);
228
+ Ne(u);
229
229
  }
230
- let tr;
231
- typeof HTMLElement == "function" && (tr = class extends HTMLElement {
230
+ let tn;
231
+ typeof HTMLElement == "function" && (tn = class extends HTMLElement {
232
232
  /** The Svelte component constructor */
233
233
  $$ctor;
234
234
  /** Slots */
@@ -247,20 +247,20 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
247
247
  $$l = {};
248
248
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
249
249
  $$l_u = /* @__PURE__ */ new Map();
250
- constructor(e, t, r) {
251
- super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
250
+ constructor(e, t, n) {
251
+ super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
252
252
  }
253
- addEventListener(e, t, r) {
253
+ addEventListener(e, t, n) {
254
254
  if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
255
- const n = this.$$c.$on(e, t);
256
- this.$$l_u.set(t, n);
255
+ const r = this.$$c.$on(e, t);
256
+ this.$$l_u.set(t, r);
257
257
  }
258
- super.addEventListener(e, t, r);
258
+ super.addEventListener(e, t, n);
259
259
  }
260
- removeEventListener(e, t, r) {
261
- if (super.removeEventListener(e, t, r), this.$$c) {
262
- const n = this.$$l_u.get(t);
263
- n && (n(), this.$$l_u.delete(t));
260
+ removeEventListener(e, t, n) {
261
+ if (super.removeEventListener(e, t, n), this.$$c) {
262
+ const r = this.$$l_u.get(t);
263
+ r && (r(), this.$$l_u.delete(t));
264
264
  }
265
265
  }
266
266
  async connectedCallback() {
@@ -270,29 +270,29 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
270
270
  let o;
271
271
  return {
272
272
  c: function() {
273
- o = O("slot"), i !== "default" && p(o, "name", i);
273
+ o = H("slot"), i !== "default" && p(o, "name", i);
274
274
  },
275
275
  /**
276
276
  * @param {HTMLElement} target
277
277
  * @param {HTMLElement} [anchor]
278
278
  */
279
279
  m: function(u, l) {
280
- C(u, o, l);
280
+ B(u, o, l);
281
281
  },
282
282
  d: function(u) {
283
- u && H(o);
283
+ u && A(o);
284
284
  }
285
285
  };
286
286
  };
287
287
  };
288
288
  if (await Promise.resolve(), !this.$$cn || this.$$c)
289
289
  return;
290
- const t = {}, r = Wr(this);
290
+ const t = {}, n = Zn(this);
291
291
  for (const i of this.$$s)
292
- i in r && (t[i] = [e(i)]);
292
+ i in n && (t[i] = [e(i)]);
293
293
  for (const i of this.attributes) {
294
294
  const o = this.$$g_p(i.name);
295
- o in this.$$d || (this.$$d[o] = $e(o, i.value, this.$$p_d, "toProp"));
295
+ o in this.$$d || (this.$$d[o] = Ve(o, i.value, this.$$p_d, "toProp"));
296
296
  }
297
297
  for (const i in this.$$p_d)
298
298
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -306,11 +306,11 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
306
306
  }
307
307
  }
308
308
  });
309
- const n = () => {
309
+ const r = () => {
310
310
  this.$$r = !0;
311
311
  for (const i in this.$$p_d)
312
312
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
313
- const o = $e(
313
+ const o = Ve(
314
314
  i,
315
315
  this.$$d[i],
316
316
  this.$$p_d,
@@ -320,7 +320,7 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
320
320
  }
321
321
  this.$$r = !1;
322
322
  };
323
- this.$$c.$$.after_update.push(n), n();
323
+ this.$$c.$$.after_update.push(r), r();
324
324
  for (const i in this.$$l)
325
325
  for (const o of this.$$l[i]) {
326
326
  const a = this.$$c.$on(i, o);
@@ -331,8 +331,8 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
331
331
  }
332
332
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
333
333
  // and setting attributes through setAttribute etc, this is helpful
334
- attributeChangedCallback(e, t, r) {
335
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = $e(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
334
+ attributeChangedCallback(e, t, n) {
335
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ve(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
336
336
  }
337
337
  disconnectedCallback() {
338
338
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -345,11 +345,11 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
345
345
  ) || e;
346
346
  }
347
347
  });
348
- function $e(e, t, r, n) {
349
- const i = r[e]?.type;
350
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
348
+ function Ve(e, t, n, r) {
349
+ const i = n[e]?.type;
350
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
351
351
  return t;
352
- if (n === "toAttribute")
352
+ if (r === "toAttribute")
353
353
  switch (i) {
354
354
  case "Object":
355
355
  case "Array":
@@ -374,10 +374,10 @@ function $e(e, t, r, n) {
374
374
  return t;
375
375
  }
376
376
  }
377
- function an(e, t, r, n, i, o) {
378
- let a = class extends tr {
377
+ function ar(e, t, n, r, i, o) {
378
+ let a = class extends tn {
379
379
  constructor() {
380
- super(e, r, i), this.$$p_d = t;
380
+ super(e, n, i), this.$$p_d = t;
381
381
  }
382
382
  static get observedAttributes() {
383
383
  return Object.keys(t).map(
@@ -391,10 +391,10 @@ function an(e, t, r, n, i, o) {
391
391
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
392
392
  },
393
393
  set(u) {
394
- u = $e(s, u, t), this.$$d[s] = u, this.$$c?.$set({ [s]: u });
394
+ u = Ve(s, u, t), this.$$d[s] = u, this.$$c?.$set({ [s]: u });
395
395
  }
396
396
  });
397
- }), n.forEach((s) => {
397
+ }), r.forEach((s) => {
398
398
  Object.defineProperty(a.prototype, s, {
399
399
  get() {
400
400
  return this.$$c?.[s];
@@ -403,7 +403,7 @@ function an(e, t, r, n, i, o) {
403
403
  }), e.element = /** @type {any} */
404
404
  a, a;
405
405
  }
406
- class ln {
406
+ class lr {
407
407
  /**
408
408
  * ### PRIVATE API
409
409
  *
@@ -422,7 +422,7 @@ class ln {
422
422
  $$set = void 0;
423
423
  /** @returns {void} */
424
424
  $destroy() {
425
- nn(this, 1), this.$destroy = Y;
425
+ ir(this, 1), this.$destroy = Y;
426
426
  }
427
427
  /**
428
428
  * @template {Extract<keyof Events, string>} K
@@ -430,13 +430,13 @@ class ln {
430
430
  * @param {((e: Events[K]) => void) | null | undefined} callback
431
431
  * @returns {() => void}
432
432
  */
433
- $on(t, r) {
434
- if (!wt(r))
433
+ $on(t, n) {
434
+ if (!vt(n))
435
435
  return Y;
436
- const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
437
- return n.push(r), () => {
438
- const i = n.indexOf(r);
439
- i !== -1 && n.splice(i, 1);
436
+ const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
437
+ return r.push(n), () => {
438
+ const i = r.indexOf(n);
439
+ i !== -1 && r.splice(i, 1);
440
440
  };
441
441
  }
442
442
  /**
@@ -444,54 +444,54 @@ class ln {
444
444
  * @returns {void}
445
445
  */
446
446
  $set(t) {
447
- this.$$set && !Ur(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
447
+ this.$$set && !Gn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
448
448
  }
449
449
  }
450
- const un = "4";
451
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(un);
452
- function hn(e, t) {
450
+ const ur = "4";
451
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ur);
452
+ function hr(e, t) {
453
453
  if (e) {
454
- const r = document.createElement("style");
455
- r.innerHTML = t, e.appendChild(r);
454
+ const n = document.createElement("style");
455
+ n.innerHTML = t, e.appendChild(n);
456
456
  }
457
457
  }
458
- function cn(e, t) {
458
+ function cr(e, t) {
459
459
  if (!e || !t)
460
460
  return;
461
- const r = new URL(t);
462
- fetch(r.href).then((n) => n.text()).then((n) => {
461
+ const n = new URL(t);
462
+ fetch(n.href).then((r) => r.text()).then((r) => {
463
463
  const i = document.createElement("style");
464
- i.innerHTML = n, e && e.appendChild(i);
465
- }).catch((n) => {
466
- console.error("There was an error while trying to load client styling from URL", n);
464
+ i.innerHTML = r, e && e.appendChild(i);
465
+ }).catch((r) => {
466
+ console.error("There was an error while trying to load client styling from URL", r);
467
467
  });
468
468
  }
469
- function fn(e, t, r) {
469
+ function fr(e, t, n) {
470
470
  if (window.emMessageBus) {
471
- const n = document.createElement("style");
471
+ const r = document.createElement("style");
472
472
  window.emMessageBus.subscribe(t, (i) => {
473
- n.innerHTML = i, e && e.appendChild(n);
473
+ r.innerHTML = i, e && e.appendChild(r);
474
474
  });
475
475
  }
476
476
  }
477
- const Se = [];
478
- function pn(e, t) {
477
+ const we = [];
478
+ function pr(e, t) {
479
479
  return {
480
- subscribe: Je(e, t).subscribe
480
+ subscribe: qe(e, t).subscribe
481
481
  };
482
482
  }
483
- function Je(e, t = Y) {
484
- let r;
485
- const n = /* @__PURE__ */ new Set();
483
+ function qe(e, t = Y) {
484
+ let n;
485
+ const r = /* @__PURE__ */ new Set();
486
486
  function i(s) {
487
- if (Kt(e, s) && (e = s, r)) {
488
- const u = !Se.length;
489
- for (const l of n)
490
- l[1](), Se.push(l, e);
487
+ if (Kt(e, s) && (e = s, n)) {
488
+ const u = !we.length;
489
+ for (const l of r)
490
+ l[1](), we.push(l, e);
491
491
  if (u) {
492
- for (let l = 0; l < Se.length; l += 2)
493
- Se[l][0](Se[l + 1]);
494
- Se.length = 0;
492
+ for (let l = 0; l < we.length; l += 2)
493
+ we[l][0](we[l + 1]);
494
+ we.length = 0;
495
495
  }
496
496
  }
497
497
  }
@@ -500,18 +500,18 @@ function Je(e, t = Y) {
500
500
  }
501
501
  function a(s, u = Y) {
502
502
  const l = [s, u];
503
- return n.add(l), n.size === 1 && (r = t(i, o) || Y), s(e), () => {
504
- n.delete(l), n.size === 0 && r && (r(), r = null);
503
+ return r.add(l), r.size === 1 && (n = t(i, o) || Y), s(e), () => {
504
+ r.delete(l), r.size === 0 && n && (n(), n = null);
505
505
  };
506
506
  }
507
507
  return { set: i, update: o, subscribe: a };
508
508
  }
509
- function Pe(e, t, r) {
510
- const n = !Array.isArray(e), i = n ? [e] : e;
509
+ function Be(e, t, n) {
510
+ const r = !Array.isArray(e), i = r ? [e] : e;
511
511
  if (!i.every(Boolean))
512
512
  throw new Error("derived() expects stores as input, got a falsy value");
513
513
  const o = t.length < 2;
514
- return pn(r, (a, s) => {
514
+ return pr(n, (a, s) => {
515
515
  let u = !1;
516
516
  const l = [];
517
517
  let h = 0, c = Y;
@@ -519,10 +519,10 @@ function Pe(e, t, r) {
519
519
  if (h)
520
520
  return;
521
521
  c();
522
- const d = t(n ? l[0] : l, a, s);
523
- o ? a(d) : c = wt(d) ? d : Y;
524
- }, _ = i.map(
525
- (d, g) => er(
522
+ const d = t(r ? l[0] : l, a, s);
523
+ o ? a(d) : c = vt(d) ? d : Y;
524
+ }, y = i.map(
525
+ (d, g) => en(
526
526
  d,
527
527
  (E) => {
528
528
  l[g] = E, h &= ~(1 << g), u && m();
@@ -533,240 +533,246 @@ function Pe(e, t, r) {
533
533
  )
534
534
  );
535
535
  return u = !0, m(), function() {
536
- _e(_), c(), u = !1;
536
+ _e(y), c(), u = !1;
537
537
  };
538
538
  });
539
539
  }
540
- function mn(e) {
540
+ function mr(e) {
541
541
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
542
542
  }
543
- var dn = function(t) {
544
- return gn(t) && !bn(t);
543
+ var dr = function(t) {
544
+ return gr(t) && !br(t);
545
545
  };
546
- function gn(e) {
546
+ function gr(e) {
547
547
  return !!e && typeof e == "object";
548
548
  }
549
- function bn(e) {
549
+ function br(e) {
550
550
  var t = Object.prototype.toString.call(e);
551
- return t === "[object RegExp]" || t === "[object Date]" || En(e);
551
+ return t === "[object RegExp]" || t === "[object Date]" || Er(e);
552
552
  }
553
- var yn = typeof Symbol == "function" && Symbol.for, _n = yn ? Symbol.for("react.element") : 60103;
554
- function En(e) {
555
- return e.$$typeof === _n;
553
+ var _r = typeof Symbol == "function" && Symbol.for, yr = _r ? Symbol.for("react.element") : 60103;
554
+ function Er(e) {
555
+ return e.$$typeof === yr;
556
556
  }
557
- function vn(e) {
557
+ function vr(e) {
558
558
  return Array.isArray(e) ? [] : {};
559
559
  }
560
- function De(e, t) {
561
- return t.clone !== !1 && t.isMergeableObject(e) ? He(vn(e), e, t) : e;
560
+ function ke(e, t) {
561
+ return t.clone !== !1 && t.isMergeableObject(e) ? He(vr(e), e, t) : e;
562
562
  }
563
- function xn(e, t, r) {
564
- return e.concat(t).map(function(n) {
565
- return De(n, r);
563
+ function xr(e, t, n) {
564
+ return e.concat(t).map(function(r) {
565
+ return ke(r, n);
566
566
  });
567
567
  }
568
- function wn(e, t) {
568
+ function wr(e, t) {
569
569
  if (!t.customMerge)
570
570
  return He;
571
- var r = t.customMerge(e);
572
- return typeof r == "function" ? r : He;
571
+ var n = t.customMerge(e);
572
+ return typeof n == "function" ? n : He;
573
573
  }
574
- function Sn(e) {
574
+ function Sr(e) {
575
575
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
576
576
  return Object.propertyIsEnumerable.call(e, t);
577
577
  }) : [];
578
578
  }
579
579
  function It(e) {
580
- return Object.keys(e).concat(Sn(e));
580
+ return Object.keys(e).concat(Sr(e));
581
581
  }
582
- function rr(e, t) {
582
+ function nn(e, t) {
583
583
  try {
584
584
  return t in e;
585
585
  } catch {
586
586
  return !1;
587
587
  }
588
588
  }
589
- function Tn(e, t) {
590
- return rr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
589
+ function Tr(e, t) {
590
+ return nn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
591
591
  }
592
- function On(e, t, r) {
593
- var n = {};
594
- return r.isMergeableObject(e) && It(e).forEach(function(i) {
595
- n[i] = De(e[i], r);
592
+ function Hr(e, t, n) {
593
+ var r = {};
594
+ return n.isMergeableObject(e) && It(e).forEach(function(i) {
595
+ r[i] = ke(e[i], n);
596
596
  }), It(t).forEach(function(i) {
597
- Tn(e, i) || (rr(e, i) && r.isMergeableObject(t[i]) ? n[i] = wn(i, r)(e[i], t[i], r) : n[i] = De(t[i], r));
598
- }), n;
597
+ Tr(e, i) || (nn(e, i) && n.isMergeableObject(t[i]) ? r[i] = wr(i, n)(e[i], t[i], n) : r[i] = ke(t[i], n));
598
+ }), r;
599
599
  }
600
- function He(e, t, r) {
601
- r = r || {}, r.arrayMerge = r.arrayMerge || xn, r.isMergeableObject = r.isMergeableObject || dn, r.cloneUnlessOtherwiseSpecified = De;
602
- var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
603
- return o ? n ? r.arrayMerge(e, t, r) : On(e, t, r) : De(t, r);
600
+ function He(e, t, n) {
601
+ n = n || {}, n.arrayMerge = n.arrayMerge || xr, n.isMergeableObject = n.isMergeableObject || dr, n.cloneUnlessOtherwiseSpecified = ke;
602
+ var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
603
+ return o ? r ? n.arrayMerge(e, t, n) : Hr(e, t, n) : ke(t, n);
604
604
  }
605
- He.all = function(t, r) {
605
+ He.all = function(t, n) {
606
606
  if (!Array.isArray(t))
607
607
  throw new Error("first argument should be an array");
608
- return t.reduce(function(n, i) {
609
- return He(n, i, r);
608
+ return t.reduce(function(r, i) {
609
+ return He(r, i, n);
610
610
  }, {});
611
611
  };
612
- var Hn = He, An = Hn;
613
- const Cn = /* @__PURE__ */ mn(An);
614
- var mt = function(e, t) {
615
- return mt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
616
- r.__proto__ = n;
617
- } || function(r, n) {
618
- for (var i in n)
619
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
620
- }, mt(e, t);
612
+ var Or = He, Ar = Or;
613
+ const Cr = /* @__PURE__ */ mr(Ar);
614
+ /*! *****************************************************************************
615
+ Copyright (c) Microsoft Corporation.
616
+
617
+ Permission to use, copy, modify, and/or distribute this software for any
618
+ purpose with or without fee is hereby granted.
619
+
620
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
621
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
622
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
623
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
624
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
625
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
626
+ PERFORMANCE OF THIS SOFTWARE.
627
+ ***************************************************************************** */
628
+ var ft = function(e, t) {
629
+ return ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
630
+ n.__proto__ = r;
631
+ } || function(n, r) {
632
+ for (var i in r)
633
+ Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
634
+ }, ft(e, t);
621
635
  };
622
- function Ye(e, t) {
636
+ function Qe(e, t) {
623
637
  if (typeof t != "function" && t !== null)
624
638
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
625
- mt(e, t);
626
- function r() {
639
+ ft(e, t);
640
+ function n() {
627
641
  this.constructor = e;
628
642
  }
629
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
630
- }
631
- var se = function() {
632
- return se = Object.assign || function(t) {
633
- for (var r, n = 1, i = arguments.length; n < i; n++) {
634
- r = arguments[n];
635
- for (var o in r)
636
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
643
+ e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
644
+ }
645
+ var O = function() {
646
+ return O = Object.assign || function(t) {
647
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
648
+ n = arguments[r];
649
+ for (var o in n)
650
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
637
651
  }
638
652
  return t;
639
- }, se.apply(this, arguments);
653
+ }, O.apply(this, arguments);
640
654
  };
641
- function Bn(e, t) {
642
- var r = {};
643
- for (var n in e)
644
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
655
+ function Br(e, t) {
656
+ var n = {};
657
+ for (var r in e)
658
+ Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
645
659
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
646
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
647
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
648
- return r;
660
+ for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
661
+ t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
662
+ return n;
649
663
  }
650
- function st(e, t, r) {
651
- if (r || arguments.length === 2)
652
- for (var n = 0, i = t.length, o; n < i; n++)
653
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
654
- return e.concat(o || Array.prototype.slice.call(t));
664
+ function it(e, t, n) {
665
+ if (arguments.length === 2)
666
+ for (var r = 0, i = t.length, o; r < i; r++)
667
+ (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
668
+ return e.concat(o || t);
655
669
  }
656
- function at(e, t) {
657
- var r = t && t.cache ? t.cache : kn, n = t && t.serializer ? t.serializer : Nn, i = t && t.strategy ? t.strategy : In;
670
+ function ot(e, t) {
671
+ var n = t && t.cache ? t.cache : Rr, r = t && t.serializer ? t.serializer : Nr, i = t && t.strategy ? t.strategy : Mr;
658
672
  return i(e, {
659
- cache: r,
660
- serializer: n
673
+ cache: n,
674
+ serializer: r
661
675
  });
662
676
  }
663
- function Pn(e) {
677
+ function Pr(e) {
664
678
  return e == null || typeof e == "number" || typeof e == "boolean";
665
679
  }
666
- function Mn(e, t, r, n) {
667
- var i = Pn(n) ? n : r(n), o = t.get(i);
668
- return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
680
+ function rn(e, t, n, r) {
681
+ var i = Pr(r) ? r : n(r), o = t.get(i);
682
+ return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
683
+ }
684
+ function on(e, t, n) {
685
+ var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
686
+ return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
669
687
  }
670
- function nr(e, t, r) {
671
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
672
- return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
688
+ function xt(e, t, n, r, i) {
689
+ return n.bind(t, e, r, i);
673
690
  }
674
- function ir(e, t, r, n, i) {
675
- return r.bind(t, e, n, i);
691
+ function Mr(e, t) {
692
+ var n = e.length === 1 ? rn : on;
693
+ return xt(e, this, n, t.cache.create(), t.serializer);
676
694
  }
677
- function In(e, t) {
678
- var r = e.length === 1 ? Mn : nr;
679
- return ir(e, this, r, t.cache.create(), t.serializer);
695
+ function Ir(e, t) {
696
+ return xt(e, this, on, t.cache.create(), t.serializer);
680
697
  }
681
- function Ln(e, t) {
682
- return ir(e, this, nr, t.cache.create(), t.serializer);
698
+ function Lr(e, t) {
699
+ return xt(e, this, rn, t.cache.create(), t.serializer);
683
700
  }
684
- var Nn = function() {
701
+ var Nr = function() {
685
702
  return JSON.stringify(arguments);
686
- }, Rn = (
687
- /** @class */
688
- function() {
689
- function e() {
690
- this.cache = /* @__PURE__ */ Object.create(null);
691
- }
692
- return e.prototype.get = function(t) {
693
- return this.cache[t];
694
- }, e.prototype.set = function(t, r) {
695
- this.cache[t] = r;
696
- }, e;
697
- }()
698
- ), kn = {
703
+ };
704
+ function wt() {
705
+ this.cache = /* @__PURE__ */ Object.create(null);
706
+ }
707
+ wt.prototype.get = function(e) {
708
+ return this.cache[e];
709
+ };
710
+ wt.prototype.set = function(e, t) {
711
+ this.cache[e] = t;
712
+ };
713
+ var Rr = {
699
714
  create: function() {
700
- return new Rn();
715
+ return new wt();
701
716
  }
702
- }, lt = {
703
- variadic: Ln
704
- }, Ze = function() {
705
- return Ze = Object.assign || function(t) {
706
- for (var r, n = 1, i = arguments.length; n < i; n++) {
707
- r = arguments[n];
708
- for (var o in r)
709
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
710
- }
711
- return t;
712
- }, Ze.apply(this, arguments);
713
- };
714
- var w;
717
+ }, st = {
718
+ variadic: Ir,
719
+ monadic: Lr
720
+ }, w;
715
721
  (function(e) {
716
722
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
717
723
  })(w || (w = {}));
718
- var I;
724
+ var L;
719
725
  (function(e) {
720
726
  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";
721
- })(I || (I = {}));
722
- var Ae;
727
+ })(L || (L = {}));
728
+ var Oe;
723
729
  (function(e) {
724
730
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
725
- })(Ae || (Ae = {}));
731
+ })(Oe || (Oe = {}));
726
732
  function Lt(e) {
727
- return e.type === I.literal;
733
+ return e.type === L.literal;
728
734
  }
729
- function Dn(e) {
730
- return e.type === I.argument;
735
+ function kr(e) {
736
+ return e.type === L.argument;
731
737
  }
732
- function or(e) {
733
- return e.type === I.number;
738
+ function sn(e) {
739
+ return e.type === L.number;
734
740
  }
735
- function sr(e) {
736
- return e.type === I.date;
741
+ function an(e) {
742
+ return e.type === L.date;
737
743
  }
738
- function ar(e) {
739
- return e.type === I.time;
744
+ function ln(e) {
745
+ return e.type === L.time;
740
746
  }
741
- function lr(e) {
742
- return e.type === I.select;
747
+ function un(e) {
748
+ return e.type === L.select;
743
749
  }
744
- function ur(e) {
745
- return e.type === I.plural;
750
+ function hn(e) {
751
+ return e.type === L.plural;
746
752
  }
747
- function Un(e) {
748
- return e.type === I.pound;
753
+ function Dr(e) {
754
+ return e.type === L.pound;
749
755
  }
750
- function hr(e) {
751
- return e.type === I.tag;
756
+ function cn(e) {
757
+ return e.type === L.tag;
752
758
  }
753
- function cr(e) {
754
- return !!(e && typeof e == "object" && e.type === Ae.number);
759
+ function fn(e) {
760
+ return !!(e && typeof e == "object" && e.type === Oe.number);
755
761
  }
756
- function dt(e) {
757
- return !!(e && typeof e == "object" && e.type === Ae.dateTime);
762
+ function pt(e) {
763
+ return !!(e && typeof e == "object" && e.type === Oe.dateTime);
758
764
  }
759
- var fr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gn = /(?:[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;
760
- function Fn(e) {
765
+ var pn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ur = /(?:[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;
766
+ function Gr(e) {
761
767
  var t = {};
762
- return e.replace(Gn, function(r) {
763
- var n = r.length;
764
- switch (r[0]) {
768
+ return e.replace(Ur, function(n) {
769
+ var r = n.length;
770
+ switch (n[0]) {
765
771
  case "G":
766
- t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
772
+ t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
767
773
  break;
768
774
  case "y":
769
- t.year = n === 2 ? "2-digit" : "numeric";
775
+ t.year = r === 2 ? "2-digit" : "numeric";
770
776
  break;
771
777
  case "Y":
772
778
  case "u":
@@ -778,30 +784,30 @@ function Fn(e) {
778
784
  throw new RangeError("`q/Q` (quarter) patterns are not supported");
779
785
  case "M":
780
786
  case "L":
781
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
787
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
782
788
  break;
783
789
  case "w":
784
790
  case "W":
785
791
  throw new RangeError("`w/W` (week) patterns are not supported");
786
792
  case "d":
787
- t.day = ["numeric", "2-digit"][n - 1];
793
+ t.day = ["numeric", "2-digit"][r - 1];
788
794
  break;
789
795
  case "D":
790
796
  case "F":
791
797
  case "g":
792
798
  throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
793
799
  case "E":
794
- t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
800
+ t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
795
801
  break;
796
802
  case "e":
797
- if (n < 4)
803
+ if (r < 4)
798
804
  throw new RangeError("`e..eee` (weekday) patterns are not supported");
799
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
805
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
800
806
  break;
801
807
  case "c":
802
- if (n < 4)
808
+ if (r < 4)
803
809
  throw new RangeError("`c..ccc` (weekday) patterns are not supported");
804
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
810
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
805
811
  break;
806
812
  case "a":
807
813
  t.hour12 = !0;
@@ -810,32 +816,32 @@ function Fn(e) {
810
816
  case "B":
811
817
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
812
818
  case "h":
813
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
819
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
814
820
  break;
815
821
  case "H":
816
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
822
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
817
823
  break;
818
824
  case "K":
819
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
825
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
820
826
  break;
821
827
  case "k":
822
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
828
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
823
829
  break;
824
830
  case "j":
825
831
  case "J":
826
832
  case "C":
827
833
  throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
828
834
  case "m":
829
- t.minute = ["numeric", "2-digit"][n - 1];
835
+ t.minute = ["numeric", "2-digit"][r - 1];
830
836
  break;
831
837
  case "s":
832
- t.second = ["numeric", "2-digit"][n - 1];
838
+ t.second = ["numeric", "2-digit"][r - 1];
833
839
  break;
834
840
  case "S":
835
841
  case "A":
836
842
  throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
837
843
  case "z":
838
- t.timeZoneName = n < 4 ? "short" : "long";
844
+ t.timeZoneName = r < 4 ? "short" : "long";
839
845
  break;
840
846
  case "Z":
841
847
  case "O":
@@ -848,24 +854,14 @@ function Fn(e) {
848
854
  return "";
849
855
  }), t;
850
856
  }
851
- var R = function() {
852
- return R = Object.assign || function(t) {
853
- for (var r, n = 1, i = arguments.length; n < i; n++) {
854
- r = arguments[n];
855
- for (var o in r)
856
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
857
- }
858
- return t;
859
- }, R.apply(this, arguments);
860
- };
861
- var jn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
862
- function Vn(e) {
857
+ var Fr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
858
+ function jr(e) {
863
859
  if (e.length === 0)
864
860
  throw new Error("Number skeleton cannot be empty");
865
- for (var t = e.split(jn).filter(function(m) {
861
+ for (var t = e.split(Fr).filter(function(m) {
866
862
  return m.length > 0;
867
- }), r = [], n = 0, i = t; n < i.length; n++) {
868
- var o = i[n], a = o.split("/");
863
+ }), n = [], r = 0, i = t; r < i.length; r++) {
864
+ var o = i[r], a = o.split("/");
869
865
  if (a.length === 0)
870
866
  throw new Error("Invalid number skeleton");
871
867
  for (var s = a[0], u = a.slice(1), l = 0, h = u; l < h.length; l++) {
@@ -873,21 +869,21 @@ function Vn(e) {
873
869
  if (c.length === 0)
874
870
  throw new Error("Invalid number skeleton");
875
871
  }
876
- r.push({ stem: s, options: u });
872
+ n.push({ stem: s, options: u });
877
873
  }
878
- return r;
874
+ return n;
879
875
  }
880
- function $n(e) {
876
+ function Vr(e) {
881
877
  return e.replace(/^(.*?)-/, "");
882
878
  }
883
- var Nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pr = /^(@+)?(\+|#+)?[rs]?$/g, zn = /(\*)(0+)|(#+)(0+)|(0+)/g, mr = /^(0+)$/;
879
+ var Nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, mn = /^(@+)?(\+|#+)?[rs]?$/g, $r = /(\*)(0+)|(#+)(0+)|(0+)/g, dn = /^(0+)$/;
884
880
  function Rt(e) {
885
881
  var t = {};
886
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pr, function(r, n, i) {
887
- 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)), "";
882
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(mn, function(n, r, i) {
883
+ 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)), "";
888
884
  }), t;
889
885
  }
890
- function dr(e) {
886
+ function gn(e) {
891
887
  switch (e) {
892
888
  case "sign-auto":
893
889
  return {
@@ -927,27 +923,27 @@ function dr(e) {
927
923
  };
928
924
  }
929
925
  }
930
- function Xn(e) {
926
+ function zr(e) {
931
927
  var t;
932
928
  if (e[0] === "E" && e[1] === "E" ? (t = {
933
929
  notation: "engineering"
934
930
  }, e = e.slice(2)) : e[0] === "E" && (t = {
935
931
  notation: "scientific"
936
932
  }, e = e.slice(1)), t) {
937
- var r = e.slice(0, 2);
938
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mr.test(e))
933
+ var n = e.slice(0, 2);
934
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !dn.test(e))
939
935
  throw new Error("Malformed concise eng/scientific notation");
940
936
  t.minimumIntegerDigits = e.length;
941
937
  }
942
938
  return t;
943
939
  }
944
940
  function kt(e) {
945
- var t = {}, r = dr(e);
946
- return r || t;
941
+ var t = {}, n = gn(e);
942
+ return n || t;
947
943
  }
948
- function Wn(e) {
949
- for (var t = {}, r = 0, n = e; r < n.length; r++) {
950
- var i = n[r];
944
+ function Xr(e) {
945
+ for (var t = {}, n = 0, r = e; n < r.length; n++) {
946
+ var i = r[n];
951
947
  switch (i.stem) {
952
948
  case "percent":
953
949
  case "%":
@@ -969,7 +965,7 @@ function Wn(e) {
969
965
  continue;
970
966
  case "measure-unit":
971
967
  case "unit":
972
- t.style = "unit", t.unit = $n(i.options[0]);
968
+ t.style = "unit", t.unit = Vr(i.options[0]);
973
969
  continue;
974
970
  case "compact-short":
975
971
  case "K":
@@ -980,13 +976,13 @@ function Wn(e) {
980
976
  t.notation = "compact", t.compactDisplay = "long";
981
977
  continue;
982
978
  case "scientific":
983
- t = R(R(R({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
984
- return R(R({}, u), kt(l));
979
+ t = O(O(O({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
980
+ return O(O({}, u), kt(l));
985
981
  }, {}));
986
982
  continue;
987
983
  case "engineering":
988
- t = R(R(R({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
989
- return R(R({}, u), kt(l));
984
+ t = O(O(O({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
985
+ return O(O({}, u), kt(l));
990
986
  }, {}));
991
987
  continue;
992
988
  case "notation-simple":
@@ -1031,45 +1027,45 @@ function Wn(e) {
1031
1027
  case "integer-width":
1032
1028
  if (i.options.length > 1)
1033
1029
  throw new RangeError("integer-width stems only accept a single optional option");
1034
- i.options[0].replace(zn, function(u, l, h, c, m, _) {
1030
+ i.options[0].replace($r, function(u, l, h, c, m, y) {
1035
1031
  if (l)
1036
1032
  t.minimumIntegerDigits = h.length;
1037
1033
  else {
1038
1034
  if (c && m)
1039
1035
  throw new Error("We currently do not support maximum integer digits");
1040
- if (_)
1036
+ if (y)
1041
1037
  throw new Error("We currently do not support exact integer digits");
1042
1038
  }
1043
1039
  return "";
1044
1040
  });
1045
1041
  continue;
1046
1042
  }
1047
- if (mr.test(i.stem)) {
1043
+ if (dn.test(i.stem)) {
1048
1044
  t.minimumIntegerDigits = i.stem.length;
1049
1045
  continue;
1050
1046
  }
1051
1047
  if (Nt.test(i.stem)) {
1052
1048
  if (i.options.length > 1)
1053
1049
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1054
- i.stem.replace(Nt, function(u, l, h, c, m, _) {
1055
- return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && _ ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + _.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1050
+ i.stem.replace(Nt, function(u, l, h, c, m, y) {
1051
+ return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && y ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1056
1052
  });
1057
1053
  var o = i.options[0];
1058
- o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t), Rt(o)));
1054
+ o === "w" ? t = O(O({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = O(O({}, t), Rt(o)));
1059
1055
  continue;
1060
1056
  }
1061
- if (pr.test(i.stem)) {
1062
- t = R(R({}, t), Rt(i.stem));
1057
+ if (mn.test(i.stem)) {
1058
+ t = O(O({}, t), Rt(i.stem));
1063
1059
  continue;
1064
1060
  }
1065
- var a = dr(i.stem);
1066
- a && (t = R(R({}, t), a));
1067
- var s = Xn(i.stem);
1068
- s && (t = R(R({}, t), s));
1061
+ var a = gn(i.stem);
1062
+ a && (t = O(O({}, t), a));
1063
+ var s = zr(i.stem);
1064
+ s && (t = O(O({}, t), s));
1069
1065
  }
1070
1066
  return t;
1071
1067
  }
1072
- var Ve = {
1068
+ var je = {
1073
1069
  "001": [
1074
1070
  "H",
1075
1071
  "h"
@@ -2484,23 +2480,23 @@ var Ve = {
2484
2480
  "h"
2485
2481
  ]
2486
2482
  };
2487
- function Zn(e, t) {
2488
- for (var r = "", n = 0; n < e.length; n++) {
2489
- var i = e.charAt(n);
2483
+ function Wr(e, t) {
2484
+ for (var n = "", r = 0; r < e.length; r++) {
2485
+ var i = e.charAt(r);
2490
2486
  if (i === "j") {
2491
- for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2492
- o++, n++;
2493
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = qn(t);
2487
+ for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2488
+ o++, r++;
2489
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Zr(t);
2494
2490
  for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
2495
- r += u;
2491
+ n += u;
2496
2492
  for (; a-- > 0; )
2497
- r = l + r;
2493
+ n = l + n;
2498
2494
  } else
2499
- i === "J" ? r += "H" : r += i;
2495
+ i === "J" ? n += "H" : n += i;
2500
2496
  }
2501
- return r;
2497
+ return n;
2502
2498
  }
2503
- function qn(e) {
2499
+ function Zr(e) {
2504
2500
  var t = e.hourCycle;
2505
2501
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2506
2502
  e.hourCycles && // @ts-ignore
@@ -2517,73 +2513,73 @@ function qn(e) {
2517
2513
  default:
2518
2514
  throw new Error("Invalid hourCycle");
2519
2515
  }
2520
- var r = e.language, n;
2521
- r !== "root" && (n = e.maximize().region);
2522
- var i = Ve[n || ""] || Ve[r || ""] || Ve["".concat(r, "-001")] || Ve["001"];
2516
+ var n = e.language, r;
2517
+ n !== "root" && (r = e.maximize().region);
2518
+ var i = je[r || ""] || je[n || ""] || je["".concat(n, "-001")] || je["001"];
2523
2519
  return i[0];
2524
2520
  }
2525
- var ut, Qn = new RegExp("^".concat(fr.source, "*")), Jn = new RegExp("".concat(fr.source, "*$"));
2521
+ var at, qr = new RegExp("^".concat(pn.source, "*")), Qr = new RegExp("".concat(pn.source, "*$"));
2526
2522
  function T(e, t) {
2527
2523
  return { start: e, end: t };
2528
2524
  }
2529
- var Yn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kn = !!String.fromCodePoint, ei = !!Object.fromEntries, ti = !!String.prototype.codePointAt, ri = !!String.prototype.trimStart, ni = !!String.prototype.trimEnd, ii = !!Number.isSafeInteger, oi = ii ? Number.isSafeInteger : function(e) {
2525
+ var Jr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Yr = !!String.fromCodePoint, Kr = !!Object.fromEntries, ei = !!String.prototype.codePointAt, ti = !!String.prototype.trimStart, ni = !!String.prototype.trimEnd, ri = !!Number.isSafeInteger, ii = ri ? Number.isSafeInteger : function(e) {
2530
2526
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2531
- }, gt = !0;
2527
+ }, mt = !0;
2532
2528
  try {
2533
- var si = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2534
- gt = ((ut = si.exec("a")) === null || ut === void 0 ? void 0 : ut[0]) === "a";
2529
+ var oi = _n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2530
+ mt = ((at = oi.exec("a")) === null || at === void 0 ? void 0 : at[0]) === "a";
2535
2531
  } catch {
2536
- gt = !1;
2532
+ mt = !1;
2537
2533
  }
2538
- var Dt = Yn ? (
2534
+ var Dt = Jr ? (
2539
2535
  // Native
2540
- function(t, r, n) {
2541
- return t.startsWith(r, n);
2536
+ function(t, n, r) {
2537
+ return t.startsWith(n, r);
2542
2538
  }
2543
2539
  ) : (
2544
2540
  // For IE11
2545
- function(t, r, n) {
2546
- return t.slice(n, n + r.length) === r;
2541
+ function(t, n, r) {
2542
+ return t.slice(r, r + n.length) === n;
2547
2543
  }
2548
- ), bt = Kn ? String.fromCodePoint : (
2544
+ ), dt = Yr ? String.fromCodePoint : (
2549
2545
  // IE11
2550
2546
  function() {
2551
- for (var t = [], r = 0; r < arguments.length; r++)
2552
- t[r] = arguments[r];
2553
- for (var n = "", i = t.length, o = 0, a; i > o; ) {
2547
+ for (var t = [], n = 0; n < arguments.length; n++)
2548
+ t[n] = arguments[n];
2549
+ for (var r = "", i = t.length, o = 0, a; i > o; ) {
2554
2550
  if (a = t[o++], a > 1114111)
2555
2551
  throw RangeError(a + " is not a valid code point");
2556
- n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2552
+ r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2557
2553
  }
2558
- return n;
2554
+ return r;
2559
2555
  }
2560
2556
  ), Ut = (
2561
2557
  // native
2562
- ei ? Object.fromEntries : (
2558
+ Kr ? Object.fromEntries : (
2563
2559
  // Ponyfill
2564
2560
  function(t) {
2565
- for (var r = {}, n = 0, i = t; n < i.length; n++) {
2566
- var o = i[n], a = o[0], s = o[1];
2567
- r[a] = s;
2561
+ for (var n = {}, r = 0, i = t; r < i.length; r++) {
2562
+ var o = i[r], a = o[0], s = o[1];
2563
+ n[a] = s;
2568
2564
  }
2569
- return r;
2565
+ return n;
2570
2566
  }
2571
2567
  )
2572
- ), gr = ti ? (
2568
+ ), bn = ei ? (
2573
2569
  // Native
2574
- function(t, r) {
2575
- return t.codePointAt(r);
2570
+ function(t, n) {
2571
+ return t.codePointAt(n);
2576
2572
  }
2577
2573
  ) : (
2578
2574
  // IE 11
2579
- function(t, r) {
2580
- var n = t.length;
2581
- if (!(r < 0 || r >= n)) {
2582
- var i = t.charCodeAt(r), o;
2583
- return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2575
+ function(t, n) {
2576
+ var r = t.length;
2577
+ if (!(n < 0 || n >= r)) {
2578
+ var i = t.charCodeAt(n), o;
2579
+ return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2584
2580
  }
2585
2581
  }
2586
- ), ai = ri ? (
2582
+ ), si = ti ? (
2587
2583
  // Native
2588
2584
  function(t) {
2589
2585
  return t.trimStart();
@@ -2591,9 +2587,9 @@ var Dt = Yn ? (
2591
2587
  ) : (
2592
2588
  // Ponyfill
2593
2589
  function(t) {
2594
- return t.replace(Qn, "");
2590
+ return t.replace(qr, "");
2595
2591
  }
2596
- ), li = ni ? (
2592
+ ), ai = ni ? (
2597
2593
  // Native
2598
2594
  function(t) {
2599
2595
  return t.trimEnd();
@@ -2601,69 +2597,69 @@ var Dt = Yn ? (
2601
2597
  ) : (
2602
2598
  // Ponyfill
2603
2599
  function(t) {
2604
- return t.replace(Jn, "");
2600
+ return t.replace(Qr, "");
2605
2601
  }
2606
2602
  );
2607
- function br(e, t) {
2603
+ function _n(e, t) {
2608
2604
  return new RegExp(e, t);
2609
2605
  }
2610
- var yt;
2611
- if (gt) {
2612
- var Gt = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2613
- yt = function(t, r) {
2614
- var n;
2615
- Gt.lastIndex = r;
2606
+ var gt;
2607
+ if (mt) {
2608
+ var Gt = _n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2609
+ gt = function(t, n) {
2610
+ var r;
2611
+ Gt.lastIndex = n;
2616
2612
  var i = Gt.exec(t);
2617
- return (n = i[1]) !== null && n !== void 0 ? n : "";
2613
+ return (r = i[1]) !== null && r !== void 0 ? r : "";
2618
2614
  };
2619
2615
  } else
2620
- yt = function(t, r) {
2621
- for (var n = []; ; ) {
2622
- var i = gr(t, r);
2623
- if (i === void 0 || yr(i) || fi(i))
2616
+ gt = function(t, n) {
2617
+ for (var r = []; ; ) {
2618
+ var i = bn(t, n);
2619
+ if (i === void 0 || yn(i) || ci(i))
2624
2620
  break;
2625
- n.push(i), r += i >= 65536 ? 2 : 1;
2621
+ r.push(i), n += i >= 65536 ? 2 : 1;
2626
2622
  }
2627
- return bt.apply(void 0, n);
2623
+ return dt.apply(void 0, r);
2628
2624
  };
2629
- var ui = (
2625
+ var li = (
2630
2626
  /** @class */
2631
2627
  function() {
2632
- function e(t, r) {
2633
- 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;
2628
+ function e(t, n) {
2629
+ 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;
2634
2630
  }
2635
2631
  return e.prototype.parse = function() {
2636
2632
  if (this.offset() !== 0)
2637
2633
  throw Error("parser can only be used once");
2638
2634
  return this.parseMessage(0, "", !1);
2639
- }, e.prototype.parseMessage = function(t, r, n) {
2635
+ }, e.prototype.parseMessage = function(t, n, r) {
2640
2636
  for (var i = []; !this.isEOF(); ) {
2641
2637
  var o = this.char();
2642
2638
  if (o === 123) {
2643
- var a = this.parseArgument(t, n);
2639
+ var a = this.parseArgument(t, r);
2644
2640
  if (a.err)
2645
2641
  return a;
2646
2642
  i.push(a.val);
2647
2643
  } else {
2648
2644
  if (o === 125 && t > 0)
2649
2645
  break;
2650
- if (o === 35 && (r === "plural" || r === "selectordinal")) {
2646
+ if (o === 35 && (n === "plural" || n === "selectordinal")) {
2651
2647
  var s = this.clonePosition();
2652
2648
  this.bump(), i.push({
2653
- type: I.pound,
2649
+ type: L.pound,
2654
2650
  location: T(s, this.clonePosition())
2655
2651
  });
2656
2652
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2657
- if (n)
2653
+ if (r)
2658
2654
  break;
2659
2655
  return this.error(w.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
2660
- } else if (o === 60 && !this.ignoreTag && _t(this.peek() || 0)) {
2661
- var a = this.parseTag(t, r);
2656
+ } else if (o === 60 && !this.ignoreTag && bt(this.peek() || 0)) {
2657
+ var a = this.parseTag(t, n);
2662
2658
  if (a.err)
2663
2659
  return a;
2664
2660
  i.push(a.val);
2665
2661
  } else {
2666
- var a = this.parseLiteral(t, r);
2662
+ var a = this.parseLiteral(t, n);
2667
2663
  if (a.err)
2668
2664
  return a;
2669
2665
  i.push(a.val);
@@ -2671,54 +2667,54 @@ var ui = (
2671
2667
  }
2672
2668
  }
2673
2669
  return { val: i, err: null };
2674
- }, e.prototype.parseTag = function(t, r) {
2675
- var n = this.clonePosition();
2670
+ }, e.prototype.parseTag = function(t, n) {
2671
+ var r = this.clonePosition();
2676
2672
  this.bump();
2677
2673
  var i = this.parseTagName();
2678
2674
  if (this.bumpSpace(), this.bumpIf("/>"))
2679
2675
  return {
2680
2676
  val: {
2681
- type: I.literal,
2677
+ type: L.literal,
2682
2678
  value: "<".concat(i, "/>"),
2683
- location: T(n, this.clonePosition())
2679
+ location: T(r, this.clonePosition())
2684
2680
  },
2685
2681
  err: null
2686
2682
  };
2687
2683
  if (this.bumpIf(">")) {
2688
- var o = this.parseMessage(t + 1, r, !0);
2684
+ var o = this.parseMessage(t + 1, n, !0);
2689
2685
  if (o.err)
2690
2686
  return o;
2691
2687
  var a = o.val, s = this.clonePosition();
2692
2688
  if (this.bumpIf("</")) {
2693
- if (this.isEOF() || !_t(this.char()))
2689
+ if (this.isEOF() || !bt(this.char()))
2694
2690
  return this.error(w.INVALID_TAG, T(s, this.clonePosition()));
2695
2691
  var u = this.clonePosition(), l = this.parseTagName();
2696
2692
  return i !== l ? this.error(w.UNMATCHED_CLOSING_TAG, T(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2697
2693
  val: {
2698
- type: I.tag,
2694
+ type: L.tag,
2699
2695
  value: i,
2700
2696
  children: a,
2701
- location: T(n, this.clonePosition())
2697
+ location: T(r, this.clonePosition())
2702
2698
  },
2703
2699
  err: null
2704
2700
  } : this.error(w.INVALID_TAG, T(s, this.clonePosition())));
2705
2701
  } else
2706
- return this.error(w.UNCLOSED_TAG, T(n, this.clonePosition()));
2702
+ return this.error(w.UNCLOSED_TAG, T(r, this.clonePosition()));
2707
2703
  } else
2708
- return this.error(w.INVALID_TAG, T(n, this.clonePosition()));
2704
+ return this.error(w.INVALID_TAG, T(r, this.clonePosition()));
2709
2705
  }, e.prototype.parseTagName = function() {
2710
2706
  var t = this.offset();
2711
- for (this.bump(); !this.isEOF() && ci(this.char()); )
2707
+ for (this.bump(); !this.isEOF() && hi(this.char()); )
2712
2708
  this.bump();
2713
2709
  return this.message.slice(t, this.offset());
2714
- }, e.prototype.parseLiteral = function(t, r) {
2715
- for (var n = this.clonePosition(), i = ""; ; ) {
2716
- var o = this.tryParseQuote(r);
2710
+ }, e.prototype.parseLiteral = function(t, n) {
2711
+ for (var r = this.clonePosition(), i = ""; ; ) {
2712
+ var o = this.tryParseQuote(n);
2717
2713
  if (o) {
2718
2714
  i += o;
2719
2715
  continue;
2720
2716
  }
2721
- var a = this.tryParseUnquoted(t, r);
2717
+ var a = this.tryParseUnquoted(t, n);
2722
2718
  if (a) {
2723
2719
  i += a;
2724
2720
  continue;
@@ -2730,14 +2726,14 @@ var ui = (
2730
2726
  }
2731
2727
  break;
2732
2728
  }
2733
- var u = T(n, this.clonePosition());
2729
+ var u = T(r, this.clonePosition());
2734
2730
  return {
2735
- val: { type: I.literal, value: i, location: u },
2731
+ val: { type: L.literal, value: i, location: u },
2736
2732
  err: null
2737
2733
  };
2738
2734
  }, e.prototype.tryParseLeftAngleBracket = function() {
2739
2735
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2740
- !hi(this.peek() || 0)) ? (this.bump(), "<") : null;
2736
+ !ui(this.peek() || 0)) ? (this.bump(), "<") : null;
2741
2737
  }, e.prototype.tryParseQuote = function(t) {
2742
2738
  if (this.isEOF() || this.char() !== 39)
2743
2739
  return null;
@@ -2757,59 +2753,59 @@ var ui = (
2757
2753
  return null;
2758
2754
  }
2759
2755
  this.bump();
2760
- var r = [this.char()];
2756
+ var n = [this.char()];
2761
2757
  for (this.bump(); !this.isEOF(); ) {
2762
- var n = this.char();
2763
- if (n === 39)
2758
+ var r = this.char();
2759
+ if (r === 39)
2764
2760
  if (this.peek() === 39)
2765
- r.push(39), this.bump();
2761
+ n.push(39), this.bump();
2766
2762
  else {
2767
2763
  this.bump();
2768
2764
  break;
2769
2765
  }
2770
2766
  else
2771
- r.push(n);
2767
+ n.push(r);
2772
2768
  this.bump();
2773
2769
  }
2774
- return bt.apply(void 0, r);
2775
- }, e.prototype.tryParseUnquoted = function(t, r) {
2770
+ return dt.apply(void 0, n);
2771
+ }, e.prototype.tryParseUnquoted = function(t, n) {
2776
2772
  if (this.isEOF())
2777
2773
  return null;
2778
- var n = this.char();
2779
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), bt(n));
2780
- }, e.prototype.parseArgument = function(t, r) {
2781
- var n = this.clonePosition();
2774
+ var r = this.char();
2775
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), dt(r));
2776
+ }, e.prototype.parseArgument = function(t, n) {
2777
+ var r = this.clonePosition();
2782
2778
  if (this.bump(), this.bumpSpace(), this.isEOF())
2783
- return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
2779
+ return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
2784
2780
  if (this.char() === 125)
2785
- return this.bump(), this.error(w.EMPTY_ARGUMENT, T(n, this.clonePosition()));
2781
+ return this.bump(), this.error(w.EMPTY_ARGUMENT, T(r, this.clonePosition()));
2786
2782
  var i = this.parseIdentifierIfPossible().value;
2787
2783
  if (!i)
2788
- return this.error(w.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
2784
+ return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
2789
2785
  if (this.bumpSpace(), this.isEOF())
2790
- return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
2786
+ return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
2791
2787
  switch (this.char()) {
2792
2788
  case 125:
2793
2789
  return this.bump(), {
2794
2790
  val: {
2795
- type: I.argument,
2791
+ type: L.argument,
2796
2792
  // value does not include the opening and closing braces.
2797
2793
  value: i,
2798
- location: T(n, this.clonePosition())
2794
+ location: T(r, this.clonePosition())
2799
2795
  },
2800
2796
  err: null
2801
2797
  };
2802
2798
  case 44:
2803
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2799
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2804
2800
  default:
2805
- return this.error(w.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
2801
+ return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
2806
2802
  }
2807
2803
  }, e.prototype.parseIdentifierIfPossible = function() {
2808
- var t = this.clonePosition(), r = this.offset(), n = yt(this.message, r), i = r + n.length;
2804
+ var t = this.clonePosition(), n = this.offset(), r = gt(this.message, n), i = n + r.length;
2809
2805
  this.bumpTo(i);
2810
2806
  var o = this.clonePosition(), a = T(t, o);
2811
- return { value: n, location: a };
2812
- }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2807
+ return { value: r, location: a };
2808
+ }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2813
2809
  var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2814
2810
  switch (s) {
2815
2811
  case "":
@@ -2824,45 +2820,45 @@ var ui = (
2824
2820
  var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2825
2821
  if (c.err)
2826
2822
  return c;
2827
- var m = li(c.val);
2823
+ var m = ai(c.val);
2828
2824
  if (m.length === 0)
2829
2825
  return this.error(w.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
2830
- var _ = T(h, this.clonePosition());
2831
- l = { style: m, styleLocation: _ };
2826
+ var y = T(h, this.clonePosition());
2827
+ l = { style: m, styleLocation: y };
2832
2828
  }
2833
2829
  var d = this.tryParseArgumentClose(i);
2834
2830
  if (d.err)
2835
2831
  return d;
2836
2832
  var g = T(i, this.clonePosition());
2837
2833
  if (l && Dt(l?.style, "::", 0)) {
2838
- var E = ai(l.style.slice(2));
2834
+ var E = si(l.style.slice(2));
2839
2835
  if (s === "number") {
2840
2836
  var c = this.parseNumberSkeletonFromString(E, l.styleLocation);
2841
2837
  return c.err ? c : {
2842
- val: { type: I.number, value: n, location: g, style: c.val },
2838
+ val: { type: L.number, value: r, location: g, style: c.val },
2843
2839
  err: null
2844
2840
  };
2845
2841
  } else {
2846
2842
  if (E.length === 0)
2847
2843
  return this.error(w.EXPECT_DATE_TIME_SKELETON, g);
2848
2844
  var S = E;
2849
- this.locale && (S = Zn(E, this.locale));
2845
+ this.locale && (S = Wr(E, this.locale));
2850
2846
  var m = {
2851
- type: Ae.dateTime,
2847
+ type: Oe.dateTime,
2852
2848
  pattern: S,
2853
2849
  location: l.styleLocation,
2854
- parsedOptions: this.shouldParseSkeletons ? Fn(S) : {}
2855
- }, P = s === "date" ? I.date : I.time;
2850
+ parsedOptions: this.shouldParseSkeletons ? Gr(S) : {}
2851
+ }, M = s === "date" ? L.date : L.time;
2856
2852
  return {
2857
- val: { type: P, value: n, location: g, style: m },
2853
+ val: { type: M, value: r, location: g, style: m },
2858
2854
  err: null
2859
2855
  };
2860
2856
  }
2861
2857
  }
2862
2858
  return {
2863
2859
  val: {
2864
- type: s === "number" ? I.number : s === "date" ? I.date : I.time,
2865
- value: n,
2860
+ type: s === "number" ? L.number : s === "date" ? L.date : L.time,
2861
+ value: r,
2866
2862
  location: g,
2867
2863
  style: (o = l?.style) !== null && o !== void 0 ? o : null
2868
2864
  },
@@ -2872,11 +2868,11 @@ var ui = (
2872
2868
  case "plural":
2873
2869
  case "selectordinal":
2874
2870
  case "select": {
2875
- var L = this.clonePosition();
2871
+ var N = this.clonePosition();
2876
2872
  if (this.bumpSpace(), !this.bumpIf(","))
2877
- return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, T(L, Ze({}, L)));
2873
+ return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, T(N, O({}, N)));
2878
2874
  this.bumpSpace();
2879
- var D = this.parseIdentifierIfPossible(), M = 0;
2875
+ var D = this.parseIdentifierIfPossible(), I = 0;
2880
2876
  if (s !== "select" && D.value === "offset") {
2881
2877
  if (!this.bumpIf(":"))
2882
2878
  return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
@@ -2884,29 +2880,29 @@ var ui = (
2884
2880
  var c = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2885
2881
  if (c.err)
2886
2882
  return c;
2887
- this.bumpSpace(), D = this.parseIdentifierIfPossible(), M = c.val;
2883
+ this.bumpSpace(), D = this.parseIdentifierIfPossible(), I = c.val;
2888
2884
  }
2889
- var N = this.tryParsePluralOrSelectOptions(t, s, r, D);
2890
- if (N.err)
2891
- return N;
2885
+ var R = this.tryParsePluralOrSelectOptions(t, s, n, D);
2886
+ if (R.err)
2887
+ return R;
2892
2888
  var d = this.tryParseArgumentClose(i);
2893
2889
  if (d.err)
2894
2890
  return d;
2895
2891
  var K = T(i, this.clonePosition());
2896
2892
  return s === "select" ? {
2897
2893
  val: {
2898
- type: I.select,
2899
- value: n,
2900
- options: Ut(N.val),
2894
+ type: L.select,
2895
+ value: r,
2896
+ options: Ut(R.val),
2901
2897
  location: K
2902
2898
  },
2903
2899
  err: null
2904
2900
  } : {
2905
2901
  val: {
2906
- type: I.plural,
2907
- value: n,
2908
- options: Ut(N.val),
2909
- offset: M,
2902
+ type: L.plural,
2903
+ value: r,
2904
+ options: Ut(R.val),
2905
+ offset: I,
2910
2906
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2911
2907
  location: K
2912
2908
  },
@@ -2919,9 +2915,9 @@ var ui = (
2919
2915
  }, e.prototype.tryParseArgumentClose = function(t) {
2920
2916
  return this.isEOF() || this.char() !== 125 ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2921
2917
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2922
- for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2923
- var n = this.char();
2924
- switch (n) {
2918
+ for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2919
+ var r = this.char();
2920
+ switch (r) {
2925
2921
  case 39: {
2926
2922
  this.bump();
2927
2923
  var i = this.clonePosition();
@@ -2939,7 +2935,7 @@ var ui = (
2939
2935
  t -= 1;
2940
2936
  else
2941
2937
  return {
2942
- val: this.message.slice(r.offset, this.offset()),
2938
+ val: this.message.slice(n.offset, this.offset()),
2943
2939
  err: null
2944
2940
  };
2945
2941
  break;
@@ -2950,30 +2946,30 @@ var ui = (
2950
2946
  }
2951
2947
  }
2952
2948
  return {
2953
- val: this.message.slice(r.offset, this.offset()),
2949
+ val: this.message.slice(n.offset, this.offset()),
2954
2950
  err: null
2955
2951
  };
2956
- }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2957
- var n = [];
2952
+ }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2953
+ var r = [];
2958
2954
  try {
2959
- n = Vn(t);
2955
+ r = jr(t);
2960
2956
  } catch {
2961
- return this.error(w.INVALID_NUMBER_SKELETON, r);
2957
+ return this.error(w.INVALID_NUMBER_SKELETON, n);
2962
2958
  }
2963
2959
  return {
2964
2960
  val: {
2965
- type: Ae.number,
2966
- tokens: n,
2967
- location: r,
2968
- parsedOptions: this.shouldParseSkeletons ? Wn(n) : {}
2961
+ type: Oe.number,
2962
+ tokens: r,
2963
+ location: n,
2964
+ parsedOptions: this.shouldParseSkeletons ? Xr(r) : {}
2969
2965
  },
2970
2966
  err: null
2971
2967
  };
2972
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2968
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2973
2969
  for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
2974
2970
  if (l.length === 0) {
2975
2971
  var c = this.clonePosition();
2976
- if (r !== "select" && this.bumpIf("=")) {
2972
+ if (n !== "select" && this.bumpIf("=")) {
2977
2973
  var m = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
2978
2974
  if (m.err)
2979
2975
  return m;
@@ -2982,29 +2978,29 @@ var ui = (
2982
2978
  break;
2983
2979
  }
2984
2980
  if (u.has(l))
2985
- return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2981
+ return this.error(n === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2986
2982
  l === "other" && (a = !0), this.bumpSpace();
2987
- var _ = this.clonePosition();
2983
+ var y = this.clonePosition();
2988
2984
  if (!this.bumpIf("{"))
2989
- return this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
2990
- var d = this.parseMessage(t + 1, r, n);
2985
+ return this.error(n === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
2986
+ var d = this.parseMessage(t + 1, n, r);
2991
2987
  if (d.err)
2992
2988
  return d;
2993
- var g = this.tryParseArgumentClose(_);
2989
+ var g = this.tryParseArgumentClose(y);
2994
2990
  if (g.err)
2995
2991
  return g;
2996
2992
  s.push([
2997
2993
  l,
2998
2994
  {
2999
2995
  value: d.val,
3000
- location: T(_, this.clonePosition())
2996
+ location: T(y, this.clonePosition())
3001
2997
  }
3002
2998
  ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
3003
2999
  }
3004
- 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 };
3005
- }, e.prototype.tryParseDecimalInteger = function(t, r) {
3006
- var n = 1, i = this.clonePosition();
3007
- this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3000
+ 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 };
3001
+ }, e.prototype.tryParseDecimalInteger = function(t, n) {
3002
+ var r = 1, i = this.clonePosition();
3003
+ this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3008
3004
  for (var o = !1, a = 0; !this.isEOF(); ) {
3009
3005
  var s = this.char();
3010
3006
  if (s >= 48 && s <= 57)
@@ -3013,7 +3009,7 @@ var ui = (
3013
3009
  break;
3014
3010
  }
3015
3011
  var u = T(i, this.clonePosition());
3016
- return o ? (a *= n, oi(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
3012
+ return o ? (a *= r, ii(a) ? { val: a, err: null } : this.error(n, u)) : this.error(t, u);
3017
3013
  }, e.prototype.offset = function() {
3018
3014
  return this.position.offset;
3019
3015
  }, e.prototype.isEOF = function() {
@@ -3028,17 +3024,17 @@ var ui = (
3028
3024
  var t = this.position.offset;
3029
3025
  if (t >= this.message.length)
3030
3026
  throw Error("out of bound");
3031
- var r = gr(this.message, t);
3032
- if (r === void 0)
3027
+ var n = bn(this.message, t);
3028
+ if (n === void 0)
3033
3029
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3034
- return r;
3035
- }, e.prototype.error = function(t, r) {
3030
+ return n;
3031
+ }, e.prototype.error = function(t, n) {
3036
3032
  return {
3037
3033
  val: null,
3038
3034
  err: {
3039
3035
  kind: t,
3040
3036
  message: this.message,
3041
- location: r
3037
+ location: n
3042
3038
  }
3043
3039
  };
3044
3040
  }, e.prototype.bump = function() {
@@ -3048,81 +3044,81 @@ var ui = (
3048
3044
  }
3049
3045
  }, e.prototype.bumpIf = function(t) {
3050
3046
  if (Dt(this.message, t, this.offset())) {
3051
- for (var r = 0; r < t.length; r++)
3047
+ for (var n = 0; n < t.length; n++)
3052
3048
  this.bump();
3053
3049
  return !0;
3054
3050
  }
3055
3051
  return !1;
3056
3052
  }, e.prototype.bumpUntil = function(t) {
3057
- var r = this.offset(), n = this.message.indexOf(t, r);
3058
- return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3053
+ var n = this.offset(), r = this.message.indexOf(t, n);
3054
+ return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
3059
3055
  }, e.prototype.bumpTo = function(t) {
3060
3056
  if (this.offset() > t)
3061
3057
  throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3062
3058
  for (t = Math.min(t, this.message.length); ; ) {
3063
- var r = this.offset();
3064
- if (r === t)
3059
+ var n = this.offset();
3060
+ if (n === t)
3065
3061
  break;
3066
- if (r > t)
3062
+ if (n > t)
3067
3063
  throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3068
3064
  if (this.bump(), this.isEOF())
3069
3065
  break;
3070
3066
  }
3071
3067
  }, e.prototype.bumpSpace = function() {
3072
- for (; !this.isEOF() && yr(this.char()); )
3068
+ for (; !this.isEOF() && yn(this.char()); )
3073
3069
  this.bump();
3074
3070
  }, e.prototype.peek = function() {
3075
3071
  if (this.isEOF())
3076
3072
  return null;
3077
- var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3078
- return n ?? null;
3073
+ var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3074
+ return r ?? null;
3079
3075
  }, e;
3080
3076
  }()
3081
3077
  );
3082
- function _t(e) {
3078
+ function bt(e) {
3083
3079
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3084
3080
  }
3085
- function hi(e) {
3086
- return _t(e) || e === 47;
3081
+ function ui(e) {
3082
+ return bt(e) || e === 47;
3087
3083
  }
3088
- function ci(e) {
3084
+ function hi(e) {
3089
3085
  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;
3090
3086
  }
3091
- function yr(e) {
3087
+ function yn(e) {
3092
3088
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3093
3089
  }
3094
- function fi(e) {
3090
+ function ci(e) {
3095
3091
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3096
3092
  }
3097
- function Et(e) {
3093
+ function _t(e) {
3098
3094
  e.forEach(function(t) {
3099
- if (delete t.location, lr(t) || ur(t))
3100
- for (var r in t.options)
3101
- delete t.options[r].location, Et(t.options[r].value);
3095
+ if (delete t.location, un(t) || hn(t))
3096
+ for (var n in t.options)
3097
+ delete t.options[n].location, _t(t.options[n].value);
3102
3098
  else
3103
- or(t) && cr(t.style) || (sr(t) || ar(t)) && dt(t.style) ? delete t.style.location : hr(t) && Et(t.children);
3099
+ sn(t) && fn(t.style) || (an(t) || ln(t)) && pt(t.style) ? delete t.style.location : cn(t) && _t(t.children);
3104
3100
  });
3105
3101
  }
3106
- function pi(e, t) {
3107
- t === void 0 && (t = {}), t = Ze({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3108
- var r = new ui(e, t).parse();
3109
- if (r.err) {
3110
- var n = SyntaxError(w[r.err.kind]);
3111
- throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3102
+ function fi(e, t) {
3103
+ t === void 0 && (t = {}), t = O({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3104
+ var n = new li(e, t).parse();
3105
+ if (n.err) {
3106
+ var r = SyntaxError(w[n.err.kind]);
3107
+ throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3112
3108
  }
3113
- return t?.captureLocation || Et(r.val), r.val;
3109
+ return t?.captureLocation || _t(n.val), n.val;
3114
3110
  }
3115
- var Ce;
3111
+ var Ae;
3116
3112
  (function(e) {
3117
3113
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3118
- })(Ce || (Ce = {}));
3119
- var Ke = (
3114
+ })(Ae || (Ae = {}));
3115
+ var Je = (
3120
3116
  /** @class */
3121
3117
  function(e) {
3122
- Ye(t, e);
3123
- function t(r, n, i) {
3124
- var o = e.call(this, r) || this;
3125
- return o.code = n, o.originalMessage = i, o;
3118
+ Qe(t, e);
3119
+ function t(n, r, i) {
3120
+ var o = e.call(this, n) || this;
3121
+ return o.code = r, o.originalMessage = i, o;
3126
3122
  }
3127
3123
  return t.prototype.toString = function() {
3128
3124
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
@@ -3131,44 +3127,44 @@ var Ke = (
3131
3127
  ), Ft = (
3132
3128
  /** @class */
3133
3129
  function(e) {
3134
- Ye(t, e);
3135
- function t(r, n, i, o) {
3136
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ce.INVALID_VALUE, o) || this;
3130
+ Qe(t, e);
3131
+ function t(n, r, i, o) {
3132
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ae.INVALID_VALUE, o) || this;
3137
3133
  }
3138
3134
  return t;
3139
- }(Ke)
3140
- ), mi = (
3135
+ }(Je)
3136
+ ), pi = (
3141
3137
  /** @class */
3142
3138
  function(e) {
3143
- Ye(t, e);
3144
- function t(r, n, i) {
3145
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ce.INVALID_VALUE, i) || this;
3139
+ Qe(t, e);
3140
+ function t(n, r, i) {
3141
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ae.INVALID_VALUE, i) || this;
3146
3142
  }
3147
3143
  return t;
3148
- }(Ke)
3149
- ), di = (
3144
+ }(Je)
3145
+ ), mi = (
3150
3146
  /** @class */
3151
3147
  function(e) {
3152
- Ye(t, e);
3153
- function t(r, n) {
3154
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ce.MISSING_VALUE, n) || this;
3148
+ Qe(t, e);
3149
+ function t(n, r) {
3150
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ae.MISSING_VALUE, r) || this;
3155
3151
  }
3156
3152
  return t;
3157
- }(Ke)
3153
+ }(Je)
3158
3154
  ), Z;
3159
3155
  (function(e) {
3160
3156
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3161
3157
  })(Z || (Z = {}));
3162
- function gi(e) {
3163
- return e.length < 2 ? e : e.reduce(function(t, r) {
3164
- var n = t[t.length - 1];
3165
- return !n || n.type !== Z.literal || r.type !== Z.literal ? t.push(r) : n.value += r.value, t;
3158
+ function di(e) {
3159
+ return e.length < 2 ? e : e.reduce(function(t, n) {
3160
+ var r = t[t.length - 1];
3161
+ return !r || r.type !== Z.literal || n.type !== Z.literal ? t.push(n) : r.value += n.value, t;
3166
3162
  }, []);
3167
3163
  }
3168
- function bi(e) {
3164
+ function gi(e) {
3169
3165
  return typeof e == "function";
3170
3166
  }
3171
- function ze(e, t, r, n, i, o, a) {
3167
+ function $e(e, t, n, r, i, o, a) {
3172
3168
  if (e.length === 1 && Lt(e[0]))
3173
3169
  return [
3174
3170
  {
@@ -3185,148 +3181,148 @@ function ze(e, t, r, n, i, o, a) {
3185
3181
  });
3186
3182
  continue;
3187
3183
  }
3188
- if (Un(h)) {
3184
+ if (Dr(h)) {
3189
3185
  typeof o == "number" && s.push({
3190
3186
  type: Z.literal,
3191
- value: r.getNumberFormat(t).format(o)
3187
+ value: n.getNumberFormat(t).format(o)
3192
3188
  });
3193
3189
  continue;
3194
3190
  }
3195
3191
  var c = h.value;
3196
3192
  if (!(i && c in i))
3197
- throw new di(c, a);
3193
+ throw new mi(c, a);
3198
3194
  var m = i[c];
3199
- if (Dn(h)) {
3195
+ if (kr(h)) {
3200
3196
  (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
3201
3197
  type: typeof m == "string" ? Z.literal : Z.object,
3202
3198
  value: m
3203
3199
  });
3204
3200
  continue;
3205
3201
  }
3206
- if (sr(h)) {
3207
- var _ = typeof h.style == "string" ? n.date[h.style] : dt(h.style) ? h.style.parsedOptions : void 0;
3202
+ if (an(h)) {
3203
+ var y = typeof h.style == "string" ? r.date[h.style] : pt(h.style) ? h.style.parsedOptions : void 0;
3208
3204
  s.push({
3209
3205
  type: Z.literal,
3210
- value: r.getDateTimeFormat(t, _).format(m)
3206
+ value: n.getDateTimeFormat(t, y).format(m)
3211
3207
  });
3212
3208
  continue;
3213
3209
  }
3214
- if (ar(h)) {
3215
- var _ = typeof h.style == "string" ? n.time[h.style] : dt(h.style) ? h.style.parsedOptions : n.time.medium;
3210
+ if (ln(h)) {
3211
+ var y = typeof h.style == "string" ? r.time[h.style] : pt(h.style) ? h.style.parsedOptions : r.time.medium;
3216
3212
  s.push({
3217
3213
  type: Z.literal,
3218
- value: r.getDateTimeFormat(t, _).format(m)
3214
+ value: n.getDateTimeFormat(t, y).format(m)
3219
3215
  });
3220
3216
  continue;
3221
3217
  }
3222
- if (or(h)) {
3223
- var _ = typeof h.style == "string" ? n.number[h.style] : cr(h.style) ? h.style.parsedOptions : void 0;
3224
- _ && _.scale && (m = m * (_.scale || 1)), s.push({
3218
+ if (sn(h)) {
3219
+ var y = typeof h.style == "string" ? r.number[h.style] : fn(h.style) ? h.style.parsedOptions : void 0;
3220
+ y && y.scale && (m = m * (y.scale || 1)), s.push({
3225
3221
  type: Z.literal,
3226
- value: r.getNumberFormat(t, _).format(m)
3222
+ value: n.getNumberFormat(t, y).format(m)
3227
3223
  });
3228
3224
  continue;
3229
3225
  }
3230
- if (hr(h)) {
3226
+ if (cn(h)) {
3231
3227
  var d = h.children, g = h.value, E = i[g];
3232
- if (!bi(E))
3233
- throw new mi(g, "function", a);
3234
- var S = ze(d, t, r, n, i, o), P = E(S.map(function(M) {
3235
- return M.value;
3228
+ if (!gi(E))
3229
+ throw new pi(g, "function", a);
3230
+ var S = $e(d, t, n, r, i, o), M = E(S.map(function(I) {
3231
+ return I.value;
3236
3232
  }));
3237
- Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(M) {
3233
+ Array.isArray(M) || (M = [M]), s.push.apply(s, M.map(function(I) {
3238
3234
  return {
3239
- type: typeof M == "string" ? Z.literal : Z.object,
3240
- value: M
3235
+ type: typeof I == "string" ? Z.literal : Z.object,
3236
+ value: I
3241
3237
  };
3242
3238
  }));
3243
3239
  }
3244
- if (lr(h)) {
3245
- var L = h.options[m] || h.options.other;
3246
- if (!L)
3240
+ if (un(h)) {
3241
+ var N = h.options[m] || h.options.other;
3242
+ if (!N)
3247
3243
  throw new Ft(h.value, m, Object.keys(h.options), a);
3248
- s.push.apply(s, ze(L.value, t, r, n, i));
3244
+ s.push.apply(s, $e(N.value, t, n, r, i));
3249
3245
  continue;
3250
3246
  }
3251
- if (ur(h)) {
3252
- var L = h.options["=".concat(m)];
3253
- if (!L) {
3247
+ if (hn(h)) {
3248
+ var N = h.options["=".concat(m)];
3249
+ if (!N) {
3254
3250
  if (!Intl.PluralRules)
3255
- throw new Ke(`Intl.PluralRules is not available in this environment.
3251
+ throw new Je(`Intl.PluralRules is not available in this environment.
3256
3252
  Try polyfilling it using "@formatjs/intl-pluralrules"
3257
- `, Ce.MISSING_INTL_API, a);
3258
- var D = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
3259
- L = h.options[D] || h.options.other;
3253
+ `, Ae.MISSING_INTL_API, a);
3254
+ var D = n.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
3255
+ N = h.options[D] || h.options.other;
3260
3256
  }
3261
- if (!L)
3257
+ if (!N)
3262
3258
  throw new Ft(h.value, m, Object.keys(h.options), a);
3263
- s.push.apply(s, ze(L.value, t, r, n, i, m - (h.offset || 0)));
3259
+ s.push.apply(s, $e(N.value, t, n, r, i, m - (h.offset || 0)));
3264
3260
  continue;
3265
3261
  }
3266
3262
  }
3267
- return gi(s);
3263
+ return di(s);
3268
3264
  }
3269
- function yi(e, t) {
3270
- return t ? se(se(se({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3271
- return r[n] = se(se({}, e[n]), t[n] || {}), r;
3265
+ function bi(e, t) {
3266
+ return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3267
+ return n[r] = O(O({}, e[r]), t[r] || {}), n;
3272
3268
  }, {})) : e;
3273
3269
  }
3274
3270
  function _i(e, t) {
3275
- return t ? Object.keys(e).reduce(function(r, n) {
3276
- return r[n] = yi(e[n], t[n]), r;
3277
- }, se({}, e)) : e;
3271
+ return t ? Object.keys(e).reduce(function(n, r) {
3272
+ return n[r] = bi(e[r], t[r]), n;
3273
+ }, O({}, e)) : e;
3278
3274
  }
3279
- function ht(e) {
3275
+ function lt(e) {
3280
3276
  return {
3281
3277
  create: function() {
3282
3278
  return {
3283
3279
  get: function(t) {
3284
3280
  return e[t];
3285
3281
  },
3286
- set: function(t, r) {
3287
- e[t] = r;
3282
+ set: function(t, n) {
3283
+ e[t] = n;
3288
3284
  }
3289
3285
  };
3290
3286
  }
3291
3287
  };
3292
3288
  }
3293
- function Ei(e) {
3289
+ function yi(e) {
3294
3290
  return e === void 0 && (e = {
3295
3291
  number: {},
3296
3292
  dateTime: {},
3297
3293
  pluralRules: {}
3298
3294
  }), {
3299
- getNumberFormat: at(function() {
3300
- for (var t, r = [], n = 0; n < arguments.length; n++)
3301
- r[n] = arguments[n];
3302
- return new ((t = Intl.NumberFormat).bind.apply(t, st([void 0], r, !1)))();
3295
+ getNumberFormat: ot(function() {
3296
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3297
+ n[r] = arguments[r];
3298
+ return new ((t = Intl.NumberFormat).bind.apply(t, it([void 0], n, !1)))();
3303
3299
  }, {
3304
- cache: ht(e.number),
3305
- strategy: lt.variadic
3300
+ cache: lt(e.number),
3301
+ strategy: st.variadic
3306
3302
  }),
3307
- getDateTimeFormat: at(function() {
3308
- for (var t, r = [], n = 0; n < arguments.length; n++)
3309
- r[n] = arguments[n];
3310
- return new ((t = Intl.DateTimeFormat).bind.apply(t, st([void 0], r, !1)))();
3303
+ getDateTimeFormat: ot(function() {
3304
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3305
+ n[r] = arguments[r];
3306
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, it([void 0], n, !1)))();
3311
3307
  }, {
3312
- cache: ht(e.dateTime),
3313
- strategy: lt.variadic
3308
+ cache: lt(e.dateTime),
3309
+ strategy: st.variadic
3314
3310
  }),
3315
- getPluralRules: at(function() {
3316
- for (var t, r = [], n = 0; n < arguments.length; n++)
3317
- r[n] = arguments[n];
3318
- return new ((t = Intl.PluralRules).bind.apply(t, st([void 0], r, !1)))();
3311
+ getPluralRules: ot(function() {
3312
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3313
+ n[r] = arguments[r];
3314
+ return new ((t = Intl.PluralRules).bind.apply(t, it([void 0], n, !1)))();
3319
3315
  }, {
3320
- cache: ht(e.pluralRules),
3321
- strategy: lt.variadic
3316
+ cache: lt(e.pluralRules),
3317
+ strategy: st.variadic
3322
3318
  })
3323
3319
  };
3324
3320
  }
3325
- var vi = (
3321
+ var Ei = (
3326
3322
  /** @class */
3327
3323
  function() {
3328
- function e(t, r, n, i) {
3329
- r === void 0 && (r = e.defaultLocale);
3324
+ function e(t, n, r, i) {
3325
+ n === void 0 && (n = e.defaultLocale);
3330
3326
  var o = this;
3331
3327
  if (this.formatterCache = {
3332
3328
  number: {},
@@ -3341,7 +3337,7 @@ var vi = (
3341
3337
  }, []);
3342
3338
  return h.length <= 1 ? h[0] || "" : h;
3343
3339
  }, this.formatToParts = function(u) {
3344
- return ze(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3340
+ return $e(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3345
3341
  }, this.resolvedOptions = function() {
3346
3342
  var u;
3347
3343
  return {
@@ -3349,18 +3345,18 @@ var vi = (
3349
3345
  };
3350
3346
  }, this.getAst = function() {
3351
3347
  return o.ast;
3352
- }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3348
+ }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3353
3349
  if (this.message = t, !e.__parse)
3354
3350
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3355
3351
  var a = i || {};
3356
3352
  a.formatters;
3357
- var s = Bn(a, ["formatters"]);
3358
- this.ast = e.__parse(t, se(se({}, s), { locale: this.resolvedLocale }));
3353
+ var s = Br(a, ["formatters"]);
3354
+ this.ast = e.__parse(t, O(O({}, s), { locale: this.resolvedLocale }));
3359
3355
  } else
3360
3356
  this.ast = t;
3361
3357
  if (!Array.isArray(this.ast))
3362
3358
  throw new TypeError("A message must be provided as a String or AST.");
3363
- this.formats = _i(e.formats, n), this.formatters = i && i.formatters || Ei(this.formatterCache);
3359
+ this.formats = _i(e.formats, r), this.formatters = i && i.formatters || yi(this.formatterCache);
3364
3360
  }
3365
3361
  return Object.defineProperty(e, "defaultLocale", {
3366
3362
  get: function() {
@@ -3370,10 +3366,10 @@ var vi = (
3370
3366
  configurable: !0
3371
3367
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3372
3368
  if (!(typeof Intl.Locale > "u")) {
3373
- var r = Intl.NumberFormat.supportedLocalesOf(t);
3374
- return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3369
+ var n = Intl.NumberFormat.supportedLocalesOf(t);
3370
+ return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3375
3371
  }
3376
- }, e.__parse = pi, e.formats = {
3372
+ }, e.__parse = fi, e.formats = {
3377
3373
  number: {
3378
3374
  integer: {
3379
3375
  maximumFractionDigits: 0
@@ -3434,113 +3430,113 @@ var vi = (
3434
3430
  }, e;
3435
3431
  }()
3436
3432
  );
3437
- function xi(e, t) {
3433
+ function vi(e, t) {
3438
3434
  if (t == null)
3439
3435
  return;
3440
3436
  if (t in e)
3441
3437
  return e[t];
3442
- const r = t.split(".");
3443
- let n = e;
3444
- for (let i = 0; i < r.length; i++)
3445
- if (typeof n == "object") {
3438
+ const n = t.split(".");
3439
+ let r = e;
3440
+ for (let i = 0; i < n.length; i++)
3441
+ if (typeof r == "object") {
3446
3442
  if (i > 0) {
3447
- const o = r.slice(i, r.length).join(".");
3448
- if (o in n) {
3449
- n = n[o];
3443
+ const o = n.slice(i, n.length).join(".");
3444
+ if (o in r) {
3445
+ r = r[o];
3450
3446
  break;
3451
3447
  }
3452
3448
  }
3453
- n = n[r[i]];
3449
+ r = r[n[i]];
3454
3450
  } else
3455
- n = void 0;
3456
- return n;
3451
+ r = void 0;
3452
+ return r;
3457
3453
  }
3458
- const fe = {}, wi = (e, t, r) => r && (t in fe || (fe[t] = {}), e in fe[t] || (fe[t][e] = r), r), _r = (e, t) => {
3454
+ const ce = {}, xi = (e, t, n) => n && (t in ce || (ce[t] = {}), e in ce[t] || (ce[t][e] = n), n), En = (e, t) => {
3459
3455
  if (t == null)
3460
3456
  return;
3461
- if (t in fe && e in fe[t])
3462
- return fe[t][e];
3463
- const r = et(t);
3464
- for (let n = 0; n < r.length; n++) {
3465
- const i = r[n], o = Ti(i, e);
3457
+ if (t in ce && e in ce[t])
3458
+ return ce[t][e];
3459
+ const n = Ye(t);
3460
+ for (let r = 0; r < n.length; r++) {
3461
+ const i = n[r], o = Si(i, e);
3466
3462
  if (o)
3467
- return wi(e, t, o);
3463
+ return xi(e, t, o);
3468
3464
  }
3469
3465
  };
3470
3466
  let St;
3471
- const Ge = Je({});
3472
- function Si(e) {
3467
+ const Ue = qe({});
3468
+ function wi(e) {
3473
3469
  return St[e] || null;
3474
3470
  }
3475
- function Er(e) {
3471
+ function vn(e) {
3476
3472
  return e in St;
3477
3473
  }
3478
- function Ti(e, t) {
3479
- if (!Er(e))
3474
+ function Si(e, t) {
3475
+ if (!vn(e))
3480
3476
  return null;
3481
- const r = Si(e);
3482
- return xi(r, t);
3477
+ const n = wi(e);
3478
+ return vi(n, t);
3483
3479
  }
3484
- function Oi(e) {
3480
+ function Ti(e) {
3485
3481
  if (e == null)
3486
3482
  return;
3487
- const t = et(e);
3488
- for (let r = 0; r < t.length; r++) {
3489
- const n = t[r];
3490
- if (Er(n))
3491
- return n;
3483
+ const t = Ye(e);
3484
+ for (let n = 0; n < t.length; n++) {
3485
+ const r = t[n];
3486
+ if (vn(r))
3487
+ return r;
3492
3488
  }
3493
3489
  }
3494
- function vr(e, ...t) {
3495
- delete fe[e], Ge.update((r) => (r[e] = Cn.all([r[e] || {}, ...t]), r));
3490
+ function xn(e, ...t) {
3491
+ delete ce[e], Ue.update((n) => (n[e] = Cr.all([n[e] || {}, ...t]), n));
3496
3492
  }
3497
- Pe(
3498
- [Ge],
3493
+ Be(
3494
+ [Ue],
3499
3495
  ([e]) => Object.keys(e)
3500
3496
  );
3501
- Ge.subscribe((e) => St = e);
3502
- const Xe = {};
3497
+ Ue.subscribe((e) => St = e);
3498
+ const ze = {};
3503
3499
  function Hi(e, t) {
3504
- Xe[e].delete(t), Xe[e].size === 0 && delete Xe[e];
3500
+ ze[e].delete(t), ze[e].size === 0 && delete ze[e];
3505
3501
  }
3506
- function xr(e) {
3507
- return Xe[e];
3502
+ function wn(e) {
3503
+ return ze[e];
3508
3504
  }
3509
- function Ai(e) {
3510
- return et(e).map((t) => {
3511
- const r = xr(t);
3512
- return [t, r ? [...r] : []];
3505
+ function Oi(e) {
3506
+ return Ye(e).map((t) => {
3507
+ const n = wn(t);
3508
+ return [t, n ? [...n] : []];
3513
3509
  }).filter(([, t]) => t.length > 0);
3514
3510
  }
3515
- function vt(e) {
3516
- return e == null ? !1 : et(e).some(
3511
+ function yt(e) {
3512
+ return e == null ? !1 : Ye(e).some(
3517
3513
  (t) => {
3518
- var r;
3519
- return (r = xr(t)) == null ? void 0 : r.size;
3514
+ var n;
3515
+ return (n = wn(t)) == null ? void 0 : n.size;
3520
3516
  }
3521
3517
  );
3522
3518
  }
3523
- function Ci(e, t) {
3519
+ function Ai(e, t) {
3524
3520
  return Promise.all(
3525
- t.map((n) => (Hi(e, n), n().then((i) => i.default || i)))
3526
- ).then((n) => vr(e, ...n));
3527
- }
3528
- const Ne = {};
3529
- function wr(e) {
3530
- if (!vt(e))
3531
- return e in Ne ? Ne[e] : Promise.resolve();
3532
- const t = Ai(e);
3533
- return Ne[e] = Promise.all(
3521
+ t.map((r) => (Hi(e, r), r().then((i) => i.default || i)))
3522
+ ).then((r) => xn(e, ...r));
3523
+ }
3524
+ const Le = {};
3525
+ function Sn(e) {
3526
+ if (!yt(e))
3527
+ return e in Le ? Le[e] : Promise.resolve();
3528
+ const t = Oi(e);
3529
+ return Le[e] = Promise.all(
3534
3530
  t.map(
3535
- ([r, n]) => Ci(r, n)
3531
+ ([n, r]) => Ai(n, r)
3536
3532
  )
3537
3533
  ).then(() => {
3538
- if (vt(e))
3539
- return wr(e);
3540
- delete Ne[e];
3541
- }), Ne[e];
3534
+ if (yt(e))
3535
+ return Sn(e);
3536
+ delete Le[e];
3537
+ }), Le[e];
3542
3538
  }
3543
- const Bi = {
3539
+ const Ci = {
3544
3540
  number: {
3545
3541
  scientific: { notation: "scientific" },
3546
3542
  engineering: { notation: "engineering" },
@@ -3569,150 +3565,150 @@ const Bi = {
3569
3565
  timeZoneName: "short"
3570
3566
  }
3571
3567
  }
3572
- }, Pi = {
3568
+ }, Bi = {
3573
3569
  fallbackLocale: null,
3574
3570
  loadingDelay: 200,
3575
- formats: Bi,
3571
+ formats: Ci,
3576
3572
  warnOnMissingMessages: !0,
3577
3573
  handleMissingMessage: void 0,
3578
3574
  ignoreTag: !0
3579
- }, Mi = Pi;
3580
- function Be() {
3581
- return Mi;
3582
- }
3583
- const ct = Je(!1);
3584
- var Ii = Object.defineProperty, Li = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors, jt = Object.getOwnPropertySymbols, Ri = Object.prototype.hasOwnProperty, ki = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Di = (e, t) => {
3585
- for (var r in t || (t = {}))
3586
- Ri.call(t, r) && Vt(e, r, t[r]);
3575
+ }, Pi = Bi;
3576
+ function Ce() {
3577
+ return Pi;
3578
+ }
3579
+ const ut = qe(!1);
3580
+ var Mi = Object.defineProperty, Ii = Object.defineProperties, Li = Object.getOwnPropertyDescriptors, jt = Object.getOwnPropertySymbols, Ni = Object.prototype.hasOwnProperty, Ri = Object.prototype.propertyIsEnumerable, Vt = (e, t, n) => t in e ? Mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ki = (e, t) => {
3581
+ for (var n in t || (t = {}))
3582
+ Ni.call(t, n) && Vt(e, n, t[n]);
3587
3583
  if (jt)
3588
- for (var r of jt(t))
3589
- ki.call(t, r) && Vt(e, r, t[r]);
3584
+ for (var n of jt(t))
3585
+ Ri.call(t, n) && Vt(e, n, t[n]);
3590
3586
  return e;
3591
- }, Ui = (e, t) => Li(e, Ni(t));
3592
- let xt;
3593
- const qe = Je(null);
3587
+ }, Di = (e, t) => Ii(e, Li(t));
3588
+ let Et;
3589
+ const We = qe(null);
3594
3590
  function $t(e) {
3595
- return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3591
+ return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3596
3592
  }
3597
- function et(e, t = Be().fallbackLocale) {
3598
- const r = $t(e);
3599
- return t ? [.../* @__PURE__ */ new Set([...r, ...$t(t)])] : r;
3593
+ function Ye(e, t = Ce().fallbackLocale) {
3594
+ const n = $t(e);
3595
+ return t ? [.../* @__PURE__ */ new Set([...n, ...$t(t)])] : n;
3600
3596
  }
3601
- function Ee() {
3602
- return xt ?? void 0;
3597
+ function ye() {
3598
+ return Et ?? void 0;
3603
3599
  }
3604
- qe.subscribe((e) => {
3605
- xt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3600
+ We.subscribe((e) => {
3601
+ Et = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3606
3602
  });
3607
- const Gi = (e) => {
3608
- if (e && Oi(e) && vt(e)) {
3609
- const { loadingDelay: t } = Be();
3610
- let r;
3611
- return typeof window < "u" && Ee() != null && t ? r = window.setTimeout(
3612
- () => ct.set(!0),
3603
+ const Ui = (e) => {
3604
+ if (e && Ti(e) && yt(e)) {
3605
+ const { loadingDelay: t } = Ce();
3606
+ let n;
3607
+ return typeof window < "u" && ye() != null && t ? n = window.setTimeout(
3608
+ () => ut.set(!0),
3613
3609
  t
3614
- ) : ct.set(!0), wr(e).then(() => {
3615
- qe.set(e);
3610
+ ) : ut.set(!0), Sn(e).then(() => {
3611
+ We.set(e);
3616
3612
  }).finally(() => {
3617
- clearTimeout(r), ct.set(!1);
3613
+ clearTimeout(n), ut.set(!1);
3618
3614
  });
3619
3615
  }
3620
- return qe.set(e);
3621
- }, Me = Ui(Di({}, qe), {
3622
- set: Gi
3623
- }), tt = (e) => {
3616
+ return We.set(e);
3617
+ }, Pe = Di(ki({}, We), {
3618
+ set: Ui
3619
+ }), Ke = (e) => {
3624
3620
  const t = /* @__PURE__ */ Object.create(null);
3625
- return (n) => {
3626
- const i = JSON.stringify(n);
3627
- return i in t ? t[i] : t[i] = e(n);
3621
+ return (r) => {
3622
+ const i = JSON.stringify(r);
3623
+ return i in t ? t[i] : t[i] = e(r);
3628
3624
  };
3629
3625
  };
3630
- var Fi = Object.defineProperty, Qe = Object.getOwnPropertySymbols, Sr = Object.prototype.hasOwnProperty, Tr = Object.prototype.propertyIsEnumerable, zt = (e, t, r) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Tt = (e, t) => {
3631
- for (var r in t || (t = {}))
3632
- Sr.call(t, r) && zt(e, r, t[r]);
3633
- if (Qe)
3634
- for (var r of Qe(t))
3635
- Tr.call(t, r) && zt(e, r, t[r]);
3626
+ var Gi = Object.defineProperty, Ze = Object.getOwnPropertySymbols, Tn = Object.prototype.hasOwnProperty, Hn = Object.prototype.propertyIsEnumerable, zt = (e, t, n) => t in e ? Gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Tt = (e, t) => {
3627
+ for (var n in t || (t = {}))
3628
+ Tn.call(t, n) && zt(e, n, t[n]);
3629
+ if (Ze)
3630
+ for (var n of Ze(t))
3631
+ Hn.call(t, n) && zt(e, n, t[n]);
3636
3632
  return e;
3637
- }, Ie = (e, t) => {
3638
- var r = {};
3639
- for (var n in e)
3640
- Sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3641
- if (e != null && Qe)
3642
- for (var n of Qe(e))
3643
- t.indexOf(n) < 0 && Tr.call(e, n) && (r[n] = e[n]);
3644
- return r;
3633
+ }, Me = (e, t) => {
3634
+ var n = {};
3635
+ for (var r in e)
3636
+ Tn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3637
+ if (e != null && Ze)
3638
+ for (var r of Ze(e))
3639
+ t.indexOf(r) < 0 && Hn.call(e, r) && (n[r] = e[r]);
3640
+ return n;
3645
3641
  };
3646
- const Ue = (e, t) => {
3647
- const { formats: r } = Be();
3648
- if (e in r && t in r[e])
3649
- return r[e][t];
3642
+ const De = (e, t) => {
3643
+ const { formats: n } = Ce();
3644
+ if (e in n && t in n[e])
3645
+ return n[e][t];
3650
3646
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3651
- }, ji = tt(
3647
+ }, Fi = Ke(
3652
3648
  (e) => {
3653
- var t = e, { locale: r, format: n } = t, i = Ie(t, ["locale", "format"]);
3654
- if (r == null)
3649
+ var t = e, { locale: n, format: r } = t, i = Me(t, ["locale", "format"]);
3650
+ if (n == null)
3655
3651
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3656
- return n && (i = Ue("number", n)), new Intl.NumberFormat(r, i);
3652
+ return r && (i = De("number", r)), new Intl.NumberFormat(n, i);
3657
3653
  }
3658
- ), Vi = tt(
3654
+ ), ji = Ke(
3659
3655
  (e) => {
3660
- var t = e, { locale: r, format: n } = t, i = Ie(t, ["locale", "format"]);
3661
- if (r == null)
3656
+ var t = e, { locale: n, format: r } = t, i = Me(t, ["locale", "format"]);
3657
+ if (n == null)
3662
3658
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3663
- return n ? i = Ue("date", n) : Object.keys(i).length === 0 && (i = Ue("date", "short")), new Intl.DateTimeFormat(r, i);
3659
+ return r ? i = De("date", r) : Object.keys(i).length === 0 && (i = De("date", "short")), new Intl.DateTimeFormat(n, i);
3664
3660
  }
3665
- ), $i = tt(
3661
+ ), Vi = Ke(
3666
3662
  (e) => {
3667
- var t = e, { locale: r, format: n } = t, i = Ie(t, ["locale", "format"]);
3668
- if (r == null)
3663
+ var t = e, { locale: n, format: r } = t, i = Me(t, ["locale", "format"]);
3664
+ if (n == null)
3669
3665
  throw new Error(
3670
3666
  '[svelte-i18n] A "locale" must be set to format time values'
3671
3667
  );
3672
- return n ? i = Ue("time", n) : Object.keys(i).length === 0 && (i = Ue("time", "short")), new Intl.DateTimeFormat(r, i);
3668
+ return r ? i = De("time", r) : Object.keys(i).length === 0 && (i = De("time", "short")), new Intl.DateTimeFormat(n, i);
3673
3669
  }
3674
- ), zi = (e = {}) => {
3670
+ ), $i = (e = {}) => {
3675
3671
  var t = e, {
3676
- locale: r = Ee()
3677
- } = t, n = Ie(t, [
3672
+ locale: n = ye()
3673
+ } = t, r = Me(t, [
3678
3674
  "locale"
3679
3675
  ]);
3680
- return ji(Tt({ locale: r }, n));
3681
- }, Xi = (e = {}) => {
3676
+ return Fi(Tt({ locale: n }, r));
3677
+ }, zi = (e = {}) => {
3682
3678
  var t = e, {
3683
- locale: r = Ee()
3684
- } = t, n = Ie(t, [
3679
+ locale: n = ye()
3680
+ } = t, r = Me(t, [
3685
3681
  "locale"
3686
3682
  ]);
3687
- return Vi(Tt({ locale: r }, n));
3688
- }, Wi = (e = {}) => {
3683
+ return ji(Tt({ locale: n }, r));
3684
+ }, Xi = (e = {}) => {
3689
3685
  var t = e, {
3690
- locale: r = Ee()
3691
- } = t, n = Ie(t, [
3686
+ locale: n = ye()
3687
+ } = t, r = Me(t, [
3692
3688
  "locale"
3693
3689
  ]);
3694
- return $i(Tt({ locale: r }, n));
3695
- }, Zi = tt(
3690
+ return Vi(Tt({ locale: n }, r));
3691
+ }, Wi = Ke(
3696
3692
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3697
- (e, t = Ee()) => new vi(e, t, Be().formats, {
3698
- ignoreTag: Be().ignoreTag
3693
+ (e, t = ye()) => new Ei(e, t, Ce().formats, {
3694
+ ignoreTag: Ce().ignoreTag
3699
3695
  })
3700
- ), qi = (e, t = {}) => {
3701
- var r, n, i, o;
3696
+ ), Zi = (e, t = {}) => {
3697
+ var n, r, i, o;
3702
3698
  let a = t;
3703
3699
  typeof e == "object" && (a = e, e = a.id);
3704
3700
  const {
3705
3701
  values: s,
3706
- locale: u = Ee(),
3702
+ locale: u = ye(),
3707
3703
  default: l
3708
3704
  } = a;
3709
3705
  if (u == null)
3710
3706
  throw new Error(
3711
3707
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3712
3708
  );
3713
- let h = _r(e, u);
3709
+ let h = En(e, u);
3714
3710
  if (!h)
3715
- h = (o = (i = (n = (r = Be()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3711
+ h = (o = (i = (r = (n = Ce()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3716
3712
  else if (typeof h != "string")
3717
3713
  return console.warn(
3718
3714
  `[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.`
@@ -3721,7 +3717,7 @@ const Ue = (e, t) => {
3721
3717
  return h;
3722
3718
  let c = h;
3723
3719
  try {
3724
- c = Zi(h, u).format(s);
3720
+ c = Wi(h, u).format(s);
3725
3721
  } catch (m) {
3726
3722
  m instanceof Error && console.warn(
3727
3723
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3729,16 +3725,16 @@ const Ue = (e, t) => {
3729
3725
  );
3730
3726
  }
3731
3727
  return c;
3732
- }, Qi = (e, t) => Wi(t).format(e), Ji = (e, t) => Xi(t).format(e), Yi = (e, t) => zi(t).format(e), Ki = (e, t = Ee()) => _r(e, t), eo = Pe([Me, Ge], () => qi);
3733
- Pe([Me], () => Qi);
3734
- Pe([Me], () => Ji);
3735
- Pe([Me], () => Yi);
3736
- Pe([Me, Ge], () => Ki);
3728
+ }, qi = (e, t) => Xi(t).format(e), Qi = (e, t) => zi(t).format(e), Ji = (e, t) => $i(t).format(e), Yi = (e, t = ye()) => En(e, t), Ki = Be([Pe, Ue], () => Zi);
3729
+ Be([Pe], () => qi);
3730
+ Be([Pe], () => Qi);
3731
+ Be([Pe], () => Ji);
3732
+ Be([Pe, Ue], () => Yi);
3737
3733
  function Xt(e, t) {
3738
- vr(e, t);
3734
+ xn(e, t);
3739
3735
  }
3740
- function to(e) {
3741
- Me.set(e);
3736
+ function eo(e) {
3737
+ Pe.set(e);
3742
3738
  }
3743
3739
  const Wt = {
3744
3740
  en: {
@@ -3788,66 +3784,66 @@ const Wt = {
3788
3784
  waitSeconds: "Tekrar göndermeden önce lütfen bekleyin:"
3789
3785
  }
3790
3786
  };
3791
- function ro(e) {
3792
- Fr(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}}');
3787
+ function to(e) {
3788
+ jn(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}}');
3793
3789
  }
3794
- function Zt(e, t, r) {
3795
- const n = e.slice();
3796
- return n[69] = t[r], n[70] = t, n[71] = r, n;
3790
+ function Zt(e, t, n) {
3791
+ const r = e.slice();
3792
+ return r[69] = t[n], r[70] = t, r[71] = n, r;
3797
3793
  }
3798
3794
  function no(e) {
3799
- let t, r, n, i, o, a, s, u, l, h, c, m, _, d, g, E, S, P = (
3795
+ let t, n, r, i, o, a, s, u, l, h, c, m, y, d, g, E, S, M = (
3800
3796
  /*$_*/
3801
3797
  e[19]("channelSMS") + ""
3802
- ), L, D, M, N, K, q, ae, pe, le, B, U, W, me, de, ge = (
3798
+ ), N, D, I, R, K, q, se, fe, ae, P, U, W, pe, me, de = (
3803
3799
  /*$_*/
3804
3800
  e[19]("channelEmail") + ""
3805
- ), Q, ee, $, ue, te, be, ve;
3806
- function ye(b, A) {
3801
+ ), Q, ee, $, le, te, ge, Ee;
3802
+ function be(b, C) {
3807
3803
  return (
3808
3804
  /*showResendOtp*/
3809
- b[9] ? ao : (
3805
+ b[9] ? so : (
3810
3806
  /*showOtpInput*/
3811
- b[12] ? oo : so
3807
+ b[12] ? io : oo
3812
3808
  )
3813
3809
  );
3814
3810
  }
3815
- let xe = ye(e), J = xe(e), j = (
3811
+ let ve = be(e), J = ve(e), j = (
3816
3812
  /*selectedChannel*/
3817
3813
  e[0] && Qt(e)
3818
3814
  );
3819
- function Fe(b, A) {
3815
+ function Ge(b, C) {
3820
3816
  if (
3821
3817
  /*isLoading*/
3822
3818
  b[3] && /*showOtpInput*/
3823
3819
  b[12]
3824
3820
  )
3825
- return po;
3821
+ return fo;
3826
3822
  if (
3827
3823
  /*showOtpInput*/
3828
3824
  b[12] && /*config*/
3829
3825
  b[4]
3830
3826
  )
3831
- return fo;
3827
+ return co;
3832
3828
  }
3833
- let he = Fe(e), V = he && he(e);
3834
- function je(b, A) {
3829
+ let ue = Ge(e), V = ue && ue(e);
3830
+ function Fe(b, C) {
3835
3831
  if (
3836
3832
  /*showResendOtp*/
3837
3833
  b[9]
3838
3834
  )
3839
- return go;
3835
+ return mo;
3840
3836
  if (
3841
3837
  /*showOtpInput*/
3842
3838
  b[12] && /*config*/
3843
3839
  b[4]
3844
3840
  )
3845
- return mo;
3841
+ return po;
3846
3842
  }
3847
- let re = je(e), z = re && re(e);
3843
+ let ne = Fe(e), z = ne && ne(e);
3848
3844
  return {
3849
3845
  c() {
3850
- t = O("div"), J.c(), r = G(), n = O("div"), i = O("label"), o = O("div"), a = G(), s = O("input"), l = G(), h = O("div"), c = ne("svg"), m = ne("path"), _ = ne("circle"), d = ne("circle"), g = ne("circle"), E = G(), S = O("span"), L = k(P), D = G(), M = O("label"), N = O("div"), K = G(), q = O("input"), pe = G(), le = O("div"), B = ne("svg"), U = ne("rect"), W = ne("path"), me = G(), de = O("span"), Q = k(ge), ee = G(), j && j.c(), $ = G(), V && V.c(), ue = G(), te = O("div"), z && z.c(), p(t, "class", "OtpDescription"), p(o, "class", "RadioIndicator"), ie(
3846
+ t = H("div"), J.c(), n = G(), r = H("div"), i = H("label"), o = H("div"), a = G(), s = H("input"), l = G(), h = H("div"), c = re("svg"), m = re("path"), y = re("circle"), d = re("circle"), g = re("circle"), E = G(), S = H("span"), N = k(M), D = G(), I = H("label"), R = H("div"), K = G(), q = H("input"), fe = G(), ae = H("div"), P = re("svg"), U = re("rect"), W = re("path"), pe = G(), me = H("span"), Q = k(de), ee = G(), j && j.c(), $ = G(), V && V.c(), le = G(), te = H("div"), z && z.c(), p(t, "class", "OtpDescription"), p(o, "class", "RadioIndicator"), ie(
3851
3847
  o,
3852
3848
  "checked",
3853
3849
  /*selectedChannel*/
@@ -3856,138 +3852,138 @@ function no(e) {
3856
3852
  ), p(s, "type", "radio"), p(s, "name", "channel"), s.value = /*channels*/
3857
3853
  e[20].SMS, s.checked = u = /*selectedChannel*/
3858
3854
  e[0] === /*channels*/
3859
- e[20].SMS, p(m, "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(d, "cx", "12"), p(d, "cy", "11"), p(d, "r", "0.5"), p(d, "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"), ie(
3855
+ e[20].SMS, p(m, "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(d, "cx", "12"), p(d, "cy", "11"), p(d, "r", "0.5"), p(d, "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"), ie(
3860
3856
  i,
3861
3857
  "selected",
3862
3858
  /*selectedChannel*/
3863
3859
  e[0] === /*channels*/
3864
3860
  e[20].SMS
3865
- ), p(N, "class", "RadioIndicator"), ie(
3866
- N,
3861
+ ), p(R, "class", "RadioIndicator"), ie(
3862
+ R,
3867
3863
  "checked",
3868
3864
  /*selectedChannel*/
3869
3865
  e[0] === /*channels*/
3870
3866
  e[20].EMAIL
3871
3867
  ), p(q, "type", "radio"), p(q, "name", "channel"), q.value = /*channels*/
3872
- e[20].EMAIL, q.checked = ae = /*selectedChannel*/
3868
+ e[20].EMAIL, q.checked = se = /*selectedChannel*/
3873
3869
  e[0] === /*channels*/
3874
- e[20].EMAIL, p(U, "x", "2"), p(U, "y", "4"), p(U, "width", "20"), p(U, "height", "16"), p(U, "rx", "2"), p(W, "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(le, "class", "ChannelContent"), p(M, "class", "ChannelCheckbox"), ie(
3875
- M,
3870
+ e[20].EMAIL, p(U, "x", "2"), p(U, "y", "4"), p(U, "width", "20"), p(U, "height", "16"), p(U, "rx", "2"), p(W, "d", "m2 7 10 6 10-6"), p(P, "xmlns", "http://www.w3.org/2000/svg"), p(P, "width", "24"), p(P, "height", "24"), p(P, "viewBox", "0 0 24 24"), p(P, "fill", "none"), p(P, "stroke", "currentColor"), p(P, "stroke-width", "2"), p(P, "stroke-linecap", "round"), p(P, "stroke-linejoin", "round"), p(ae, "class", "ChannelContent"), p(I, "class", "ChannelCheckbox"), ie(
3871
+ I,
3876
3872
  "selected",
3877
3873
  /*selectedChannel*/
3878
3874
  e[0] === /*channels*/
3879
3875
  e[20].EMAIL
3880
- ), p(n, "class", "ChannelSelection"), p(te, "class", "OtpActionButtons");
3876
+ ), p(r, "class", "ChannelSelection"), p(te, "class", "OtpActionButtons");
3881
3877
  },
3882
- m(b, A) {
3883
- C(b, t, A), J.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, m), y(c, _), y(c, d), y(c, g), y(h, E), y(h, S), y(S, L), y(n, D), y(n, M), y(M, N), y(M, K), y(M, q), y(M, pe), y(M, le), y(le, B), y(B, U), y(B, W), y(le, me), y(le, de), y(de, Q), C(b, ee, A), j && j.m(b, A), C(b, $, A), V && V.m(b, A), C(b, ue, A), C(b, te, A), z && z.m(te, null), be || (ve = [
3884
- ce(
3878
+ m(b, C) {
3879
+ B(b, t, C), J.m(t, null), B(b, n, C), B(b, r, C), _(r, i), _(i, o), _(i, a), _(i, s), _(i, l), _(i, h), _(h, c), _(c, m), _(c, y), _(c, d), _(c, g), _(h, E), _(h, S), _(S, N), _(r, D), _(r, I), _(I, R), _(I, K), _(I, q), _(I, fe), _(I, ae), _(ae, P), _(P, U), _(P, W), _(ae, pe), _(ae, me), _(me, Q), B(b, ee, C), j && j.m(b, C), B(b, $, C), V && V.m(b, C), B(b, le, C), B(b, te, C), z && z.m(te, null), ge || (Ee = [
3880
+ he(
3885
3881
  s,
3886
3882
  "change",
3887
3883
  /*change_handler*/
3888
3884
  e[39]
3889
3885
  ),
3890
- ce(
3886
+ he(
3891
3887
  q,
3892
3888
  "change",
3893
3889
  /*change_handler_1*/
3894
3890
  e[40]
3895
3891
  )
3896
- ], be = !0);
3892
+ ], ge = !0);
3897
3893
  },
3898
- p(b, A) {
3899
- xe === (xe = ye(b)) && J ? J.p(b, A) : (J.d(1), J = xe(b), J && (J.c(), J.m(t, null))), A[0] & /*selectedChannel, channels*/
3894
+ p(b, C) {
3895
+ ve === (ve = be(b)) && J ? J.p(b, C) : (J.d(1), J = ve(b), J && (J.c(), J.m(t, null))), C[0] & /*selectedChannel, channels*/
3900
3896
  1048577 && ie(
3901
3897
  o,
3902
3898
  "checked",
3903
3899
  /*selectedChannel*/
3904
3900
  b[0] === /*channels*/
3905
3901
  b[20].SMS
3906
- ), A[0] & /*selectedChannel*/
3902
+ ), C[0] & /*selectedChannel*/
3907
3903
  1 && u !== (u = /*selectedChannel*/
3908
3904
  b[0] === /*channels*/
3909
- b[20].SMS) && (s.checked = u), A[0] & /*$_*/
3910
- 524288 && P !== (P = /*$_*/
3911
- b[19]("channelSMS") + "") && F(L, P), A[0] & /*selectedChannel, channels*/
3905
+ b[20].SMS) && (s.checked = u), C[0] & /*$_*/
3906
+ 524288 && M !== (M = /*$_*/
3907
+ b[19]("channelSMS") + "") && F(N, M), C[0] & /*selectedChannel, channels*/
3912
3908
  1048577 && ie(
3913
3909
  i,
3914
3910
  "selected",
3915
3911
  /*selectedChannel*/
3916
3912
  b[0] === /*channels*/
3917
3913
  b[20].SMS
3918
- ), A[0] & /*selectedChannel, channels*/
3914
+ ), C[0] & /*selectedChannel, channels*/
3919
3915
  1048577 && ie(
3920
- N,
3916
+ R,
3921
3917
  "checked",
3922
3918
  /*selectedChannel*/
3923
3919
  b[0] === /*channels*/
3924
3920
  b[20].EMAIL
3925
- ), A[0] & /*selectedChannel*/
3926
- 1 && ae !== (ae = /*selectedChannel*/
3921
+ ), C[0] & /*selectedChannel*/
3922
+ 1 && se !== (se = /*selectedChannel*/
3927
3923
  b[0] === /*channels*/
3928
- b[20].EMAIL) && (q.checked = ae), A[0] & /*$_*/
3929
- 524288 && ge !== (ge = /*$_*/
3930
- b[19]("channelEmail") + "") && F(Q, ge), A[0] & /*selectedChannel, channels*/
3924
+ b[20].EMAIL) && (q.checked = se), C[0] & /*$_*/
3925
+ 524288 && de !== (de = /*$_*/
3926
+ b[19]("channelEmail") + "") && F(Q, de), C[0] & /*selectedChannel, channels*/
3931
3927
  1048577 && ie(
3932
- M,
3928
+ I,
3933
3929
  "selected",
3934
3930
  /*selectedChannel*/
3935
3931
  b[0] === /*channels*/
3936
3932
  b[20].EMAIL
3937
3933
  ), /*selectedChannel*/
3938
- b[0] ? j ? j.p(b, A) : (j = Qt(b), j.c(), j.m($.parentNode, $)) : j && (j.d(1), j = null), he === (he = Fe(b)) && V ? V.p(b, A) : (V && V.d(1), V = he && he(b), V && (V.c(), V.m(ue.parentNode, ue))), re === (re = je(b)) && z ? z.p(b, A) : (z && z.d(1), z = re && re(b), z && (z.c(), z.m(te, null)));
3934
+ b[0] ? j ? j.p(b, C) : (j = Qt(b), j.c(), j.m($.parentNode, $)) : j && (j.d(1), j = null), ue === (ue = Ge(b)) && V ? V.p(b, C) : (V && V.d(1), V = ue && ue(b), V && (V.c(), V.m(le.parentNode, le))), ne === (ne = Fe(b)) && z ? z.p(b, C) : (z && z.d(1), z = ne && ne(b), z && (z.c(), z.m(te, null)));
3939
3935
  },
3940
3936
  d(b) {
3941
- b && (H(t), H(r), H(n), H(ee), H($), H(ue), H(te)), J.d(), j && j.d(b), V && V.d(b), z && z.d(), be = !1, _e(ve);
3937
+ b && (A(t), A(n), A(r), A(ee), A($), A(le), A(te)), J.d(), j && j.d(b), V && V.d(b), z && z.d(), ge = !1, _e(Ee);
3942
3938
  }
3943
3939
  };
3944
3940
  }
3945
- function io(e) {
3946
- let t, r, n, i, o, a, s = (
3941
+ function ro(e) {
3942
+ let t, n, r, i, o, a, s = (
3947
3943
  /*$_*/
3948
3944
  e[19]("errorHeader") + ""
3949
- ), u, l, h, c, m, _, d = (
3945
+ ), u, l, h, c, m, y, d = (
3950
3946
  /*$_*/
3951
3947
  e[19]("close") + ""
3952
3948
  ), g, E, S;
3953
3949
  return {
3954
3950
  c() {
3955
- t = O("div"), r = O("div"), n = ne("svg"), i = ne("path"), o = G(), a = O("h2"), u = k(s), l = G(), h = O("p"), c = k(
3951
+ t = H("div"), n = H("div"), r = re("svg"), i = re("path"), o = G(), a = H("h2"), u = k(s), l = G(), h = H("p"), c = k(
3956
3952
  /*errorMessage*/
3957
3953
  e[8]
3958
- ), m = G(), _ = O("button"), g = k(d), 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");
3954
+ ), m = G(), y = H("button"), g = k(d), 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");
3959
3955
  },
3960
- m(P, L) {
3961
- C(P, t, L), 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, m), y(t, _), y(_, g), E || (S = ce(
3962
- _,
3956
+ m(M, N) {
3957
+ B(M, t, N), _(t, n), _(n, r), _(r, i), _(n, o), _(n, a), _(a, u), _(t, l), _(t, h), _(h, c), _(t, m), _(t, y), _(y, g), E || (S = he(
3958
+ y,
3963
3959
  "click",
3964
3960
  /*manualClosePopup*/
3965
3961
  e[28]
3966
3962
  ), E = !0);
3967
3963
  },
3968
- p(P, L) {
3969
- L[0] & /*$_*/
3964
+ p(M, N) {
3965
+ N[0] & /*$_*/
3970
3966
  524288 && s !== (s = /*$_*/
3971
- P[19]("errorHeader") + "") && F(u, s), L[0] & /*errorMessage*/
3967
+ M[19]("errorHeader") + "") && F(u, s), N[0] & /*errorMessage*/
3972
3968
  256 && F(
3973
3969
  c,
3974
3970
  /*errorMessage*/
3975
- P[8]
3976
- ), L[0] & /*$_*/
3971
+ M[8]
3972
+ ), N[0] & /*$_*/
3977
3973
  524288 && d !== (d = /*$_*/
3978
- P[19]("close") + "") && F(g, d);
3974
+ M[19]("close") + "") && F(g, d);
3979
3975
  },
3980
- d(P) {
3981
- P && H(t), E = !1, S();
3976
+ d(M) {
3977
+ M && A(t), E = !1, S();
3982
3978
  }
3983
3979
  };
3984
3980
  }
3985
- function oo(e) {
3986
- let t, r, n, i;
3981
+ function io(e) {
3982
+ let t, n, r, i;
3987
3983
  function o(l, h) {
3988
3984
  return (
3989
3985
  /*isLastWarning*/
3990
- l[10] ? uo : lo
3986
+ l[10] ? lo : ao
3991
3987
  );
3992
3988
  }
3993
3989
  let a = o(e), s = a(e), u = (
@@ -3996,214 +3992,214 @@ function oo(e) {
3996
3992
  );
3997
3993
  return {
3998
3994
  c() {
3999
- t = O("p"), s.c(), n = G(), u && u.c(), i = zr(), p(t, "class", r = /*isLastWarning*/
3995
+ t = H("p"), s.c(), r = G(), u && u.c(), i = Xn(), p(t, "class", n = /*isLastWarning*/
4000
3996
  e[10] ? "LastWarningMessage" : "");
4001
3997
  },
4002
3998
  m(l, h) {
4003
- C(l, t, h), s.m(t, null), C(l, n, h), u && u.m(l, h), C(l, i, h);
3999
+ B(l, t, h), s.m(t, null), B(l, r, h), u && u.m(l, h), B(l, i, h);
4004
4000
  },
4005
4001
  p(l, h) {
4006
4002
  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*/
4007
- 1024 && r !== (r = /*isLastWarning*/
4008
- l[10] ? "LastWarningMessage" : "") && p(t, "class", r), /*hasErrors*/
4003
+ 1024 && n !== (n = /*isLastWarning*/
4004
+ l[10] ? "LastWarningMessage" : "") && p(t, "class", n), /*hasErrors*/
4009
4005
  l[6] ? u ? u.p(l, h) : (u = qt(l), u.c(), u.m(i.parentNode, i)) : u && (u.d(1), u = null);
4010
4006
  },
4011
4007
  d(l) {
4012
- l && (H(t), H(n), H(i)), s.d(), u && u.d(l);
4008
+ l && (A(t), A(r), A(i)), s.d(), u && u.d(l);
4013
4009
  }
4014
4010
  };
4015
4011
  }
4016
- function so(e) {
4017
- let t, r = (
4012
+ function oo(e) {
4013
+ let t, n = (
4018
4014
  /*$_*/
4019
4015
  (e[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + ""
4020
- ), n;
4016
+ ), r;
4021
4017
  return {
4022
4018
  c() {
4023
- t = O("p"), n = k(r);
4019
+ t = H("p"), r = k(n);
4024
4020
  },
4025
4021
  m(i, o) {
4026
- C(i, t, o), y(t, n);
4022
+ B(i, t, o), _(t, r);
4027
4023
  },
4028
4024
  p(i, o) {
4029
4025
  o[0] & /*$_*/
4030
- 524288 && r !== (r = /*$_*/
4031
- (i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && F(n, r);
4026
+ 524288 && n !== (n = /*$_*/
4027
+ (i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && F(r, n);
4032
4028
  },
4033
4029
  d(i) {
4034
- i && H(t);
4030
+ i && A(t);
4035
4031
  }
4036
4032
  };
4037
4033
  }
4038
- function ao(e) {
4039
- let t, r = (
4034
+ function so(e) {
4035
+ let t, n = (
4040
4036
  /*$_*/
4041
4037
  e[19]("otpExpiredMessage") + ""
4042
- ), n;
4038
+ ), r;
4043
4039
  return {
4044
4040
  c() {
4045
- t = O("p"), n = k(r), p(t, "class", "OtpNoticeMessage"), p(t, "role", "alert");
4041
+ t = H("p"), r = k(n), p(t, "class", "OtpNoticeMessage"), p(t, "role", "alert");
4046
4042
  },
4047
4043
  m(i, o) {
4048
- C(i, t, o), y(t, n);
4044
+ B(i, t, o), _(t, r);
4049
4045
  },
4050
4046
  p(i, o) {
4051
4047
  o[0] & /*$_*/
4052
- 524288 && r !== (r = /*$_*/
4053
- i[19]("otpExpiredMessage") + "") && F(n, r);
4048
+ 524288 && n !== (n = /*$_*/
4049
+ i[19]("otpExpiredMessage") + "") && F(r, n);
4054
4050
  },
4055
4051
  d(i) {
4056
- i && H(t);
4052
+ i && A(t);
4057
4053
  }
4058
4054
  };
4059
4055
  }
4060
- function lo(e) {
4056
+ function ao(e) {
4061
4057
  let t = (
4062
4058
  /*$_*/
4063
4059
  e[19]("popupMessage") + ""
4064
- ), r;
4060
+ ), n;
4065
4061
  return {
4066
4062
  c() {
4067
- r = k(t);
4063
+ n = k(t);
4068
4064
  },
4069
- m(n, i) {
4070
- C(n, r, i);
4065
+ m(r, i) {
4066
+ B(r, n, i);
4071
4067
  },
4072
- p(n, i) {
4068
+ p(r, i) {
4073
4069
  i[0] & /*$_*/
4074
4070
  524288 && t !== (t = /*$_*/
4075
- n[19]("popupMessage") + "") && F(r, t);
4071
+ r[19]("popupMessage") + "") && F(n, t);
4076
4072
  },
4077
- d(n) {
4078
- n && H(r);
4073
+ d(r) {
4074
+ r && A(n);
4079
4075
  }
4080
4076
  };
4081
4077
  }
4082
- function uo(e) {
4078
+ function lo(e) {
4083
4079
  let t = (
4084
4080
  /*$_*/
4085
4081
  e[19]("popupMessageLastWarning") + ""
4086
- ), r;
4082
+ ), n;
4087
4083
  return {
4088
4084
  c() {
4089
- r = k(t);
4085
+ n = k(t);
4090
4086
  },
4091
- m(n, i) {
4092
- C(n, r, i);
4087
+ m(r, i) {
4088
+ B(r, n, i);
4093
4089
  },
4094
- p(n, i) {
4090
+ p(r, i) {
4095
4091
  i[0] & /*$_*/
4096
4092
  524288 && t !== (t = /*$_*/
4097
- n[19]("popupMessageLastWarning") + "") && F(r, t);
4093
+ r[19]("popupMessageLastWarning") + "") && F(n, t);
4098
4094
  },
4099
- d(n) {
4100
- n && H(r);
4095
+ d(r) {
4096
+ r && A(n);
4101
4097
  }
4102
4098
  };
4103
4099
  }
4104
4100
  function qt(e) {
4105
- let t, r;
4101
+ let t, n;
4106
4102
  return {
4107
4103
  c() {
4108
- t = O("p"), r = k(
4104
+ t = H("p"), n = k(
4109
4105
  /*errorMessage*/
4110
4106
  e[8]
4111
4107
  ), p(t, "class", "OtpErrorMessage"), p(t, "role", "alert");
4112
4108
  },
4113
- m(n, i) {
4114
- C(n, t, i), y(t, r);
4109
+ m(r, i) {
4110
+ B(r, t, i), _(t, n);
4115
4111
  },
4116
- p(n, i) {
4112
+ p(r, i) {
4117
4113
  i[0] & /*errorMessage*/
4118
4114
  256 && F(
4119
- r,
4115
+ n,
4120
4116
  /*errorMessage*/
4121
- n[8]
4117
+ r[8]
4122
4118
  );
4123
4119
  },
4124
- d(n) {
4125
- n && H(t);
4120
+ d(r) {
4121
+ r && A(t);
4126
4122
  }
4127
4123
  };
4128
4124
  }
4129
4125
  function Qt(e) {
4130
- let t, r, n, i;
4126
+ let t, n, r, i;
4131
4127
  function o(u, l) {
4132
4128
  return (
4133
4129
  /*currentChannelTimer*/
4134
- u[17] > 0 ? co : ho
4130
+ u[17] > 0 ? ho : uo
4135
4131
  );
4136
4132
  }
4137
4133
  let a = o(e), s = a(e);
4138
4134
  return {
4139
4135
  c() {
4140
- t = O("button"), s.c(), p(t, "class", "OtpButton"), t.disabled = r = !/*canSubmitChannel*/
4136
+ t = H("button"), s.c(), p(t, "class", "OtpButton"), t.disabled = n = !/*canSubmitChannel*/
4141
4137
  e[18], ie(t, "disabled", !/*canSubmitChannel*/
4142
4138
  e[18] || /*waitingForConfig*/
4143
4139
  e[16]);
4144
4140
  },
4145
4141
  m(u, l) {
4146
- C(u, t, l), s.m(t, null), n || (i = ce(
4142
+ B(u, t, l), s.m(t, null), r || (i = he(
4147
4143
  t,
4148
4144
  "click",
4149
4145
  /*handleChannelSubmit*/
4150
4146
  e[22]
4151
- ), n = !0);
4147
+ ), r = !0);
4152
4148
  },
4153
4149
  p(u, l) {
4154
4150
  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*/
4155
- 262144 && r !== (r = !/*canSubmitChannel*/
4156
- u[18]) && (t.disabled = r), l[0] & /*canSubmitChannel, waitingForConfig*/
4151
+ 262144 && n !== (n = !/*canSubmitChannel*/
4152
+ u[18]) && (t.disabled = n), l[0] & /*canSubmitChannel, waitingForConfig*/
4157
4153
  327680 && ie(t, "disabled", !/*canSubmitChannel*/
4158
4154
  u[18] || /*waitingForConfig*/
4159
4155
  u[16]);
4160
4156
  },
4161
4157
  d(u) {
4162
- u && H(t), s.d(), n = !1, i();
4158
+ u && A(t), s.d(), r = !1, i();
4163
4159
  }
4164
4160
  };
4165
4161
  }
4166
- function ho(e) {
4162
+ function uo(e) {
4167
4163
  let t = (
4168
4164
  /*$_*/
4169
4165
  e[19]("sendCode") + ""
4170
- ), r;
4166
+ ), n;
4171
4167
  return {
4172
4168
  c() {
4173
- r = k(t);
4169
+ n = k(t);
4174
4170
  },
4175
- m(n, i) {
4176
- C(n, r, i);
4171
+ m(r, i) {
4172
+ B(r, n, i);
4177
4173
  },
4178
- p(n, i) {
4174
+ p(r, i) {
4179
4175
  i[0] & /*$_*/
4180
4176
  524288 && t !== (t = /*$_*/
4181
- n[19]("sendCode") + "") && F(r, t);
4177
+ r[19]("sendCode") + "") && F(n, t);
4182
4178
  },
4183
- d(n) {
4184
- n && H(r);
4179
+ d(r) {
4180
+ r && A(n);
4185
4181
  }
4186
4182
  };
4187
4183
  }
4188
- function co(e) {
4184
+ function ho(e) {
4189
4185
  let t = (
4190
4186
  /*$_*/
4191
4187
  e[19]("waitSeconds") + ""
4192
- ), r, n, i, o;
4188
+ ), n, r, i, o;
4193
4189
  return {
4194
4190
  c() {
4195
- r = k(t), n = k(" ("), i = k(
4191
+ n = k(t), r = k(" ("), i = k(
4196
4192
  /*currentChannelTimer*/
4197
4193
  e[17]
4198
4194
  ), o = k("s)");
4199
4195
  },
4200
4196
  m(a, s) {
4201
- C(a, r, s), C(a, n, s), C(a, i, s), C(a, o, s);
4197
+ B(a, n, s), B(a, r, s), B(a, i, s), B(a, o, s);
4202
4198
  },
4203
4199
  p(a, s) {
4204
4200
  s[0] & /*$_*/
4205
4201
  524288 && t !== (t = /*$_*/
4206
- a[19]("waitSeconds") + "") && F(r, t), s[0] & /*currentChannelTimer*/
4202
+ a[19]("waitSeconds") + "") && F(n, t), s[0] & /*currentChannelTimer*/
4207
4203
  131072 && F(
4208
4204
  i,
4209
4205
  /*currentChannelTimer*/
@@ -4211,12 +4207,12 @@ function co(e) {
4211
4207
  );
4212
4208
  },
4213
4209
  d(a) {
4214
- a && (H(r), H(n), H(i), H(o));
4210
+ a && (A(n), A(r), A(i), A(o));
4215
4211
  }
4216
4212
  };
4217
4213
  }
4218
- function fo(e) {
4219
- let t, r, n = (
4214
+ function co(e) {
4215
+ let t, n, r = (
4220
4216
  /*$_*/
4221
4217
  e[19]("timeRemaining") + ""
4222
4218
  ), i, o, a = (
@@ -4228,28 +4224,28 @@ function fo(e) {
4228
4224
  ), s, u, l = (
4229
4225
  /*$_*/
4230
4226
  e[19]("minutes") + ""
4231
- ), h, c, m, _ = Mt(
4227
+ ), h, c, m, y = Mt(
4232
4228
  /*otp*/
4233
4229
  e[2]
4234
4230
  ), d = [];
4235
- for (let g = 0; g < _.length; g += 1)
4236
- d[g] = Jt(Zt(e, _, g));
4231
+ for (let g = 0; g < y.length; g += 1)
4232
+ d[g] = Jt(Zt(e, y, g));
4237
4233
  return {
4238
4234
  c() {
4239
- t = O("div"), r = O("div"), i = k(n), o = G(), s = k(a), u = G(), h = k(l), c = G(), m = O("div");
4235
+ t = H("div"), n = H("div"), i = k(r), o = G(), s = k(a), u = G(), h = k(l), c = G(), m = H("div");
4240
4236
  for (let g = 0; g < d.length; g += 1)
4241
4237
  d[g].c();
4242
- p(r, "class", "OtpTimer"), p(m, "class", "OtpField"), p(t, "class", "OtpFieldWrapper");
4238
+ p(n, "class", "OtpTimer"), p(m, "class", "OtpField"), p(t, "class", "OtpFieldWrapper");
4243
4239
  },
4244
4240
  m(g, E) {
4245
- C(g, t, E), y(t, r), y(r, i), y(r, o), y(r, s), y(r, u), y(r, h), y(t, c), y(t, m);
4241
+ B(g, t, E), _(t, n), _(n, i), _(n, o), _(n, s), _(n, u), _(n, h), _(t, c), _(t, m);
4246
4242
  for (let S = 0; S < d.length; S += 1)
4247
4243
  d[S] && d[S].m(m, null);
4248
4244
  },
4249
4245
  p(g, E) {
4250
4246
  if (E[0] & /*$_*/
4251
- 524288 && n !== (n = /*$_*/
4252
- g[19]("timeRemaining") + "") && F(i, n), E[0] & /*timeLeft*/
4247
+ 524288 && r !== (r = /*$_*/
4248
+ g[19]("timeRemaining") + "") && F(i, r), E[0] & /*timeLeft*/
4253
4249
  32 && a !== (a = /*formatTime*/
4254
4250
  g[23](
4255
4251
  /*timeLeft*/
@@ -4258,42 +4254,42 @@ function fo(e) {
4258
4254
  524288 && l !== (l = /*$_*/
4259
4255
  g[19]("minutes") + "") && F(h, l), E[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
4260
4256
  117458964) {
4261
- _ = Mt(
4257
+ y = Mt(
4262
4258
  /*otp*/
4263
4259
  g[2]
4264
4260
  );
4265
4261
  let S;
4266
- for (S = 0; S < _.length; S += 1) {
4267
- const P = Zt(g, _, S);
4268
- d[S] ? d[S].p(P, E) : (d[S] = Jt(P), d[S].c(), d[S].m(m, null));
4262
+ for (S = 0; S < y.length; S += 1) {
4263
+ const M = Zt(g, y, S);
4264
+ d[S] ? d[S].p(M, E) : (d[S] = Jt(M), d[S].c(), d[S].m(m, null));
4269
4265
  }
4270
4266
  for (; S < d.length; S += 1)
4271
4267
  d[S].d(1);
4272
- d.length = _.length;
4268
+ d.length = y.length;
4273
4269
  }
4274
4270
  },
4275
4271
  d(g) {
4276
- g && H(t), $r(d, g);
4272
+ g && A(t), zn(d, g);
4277
4273
  }
4278
4274
  };
4279
4275
  }
4280
- function po(e) {
4276
+ function fo(e) {
4281
4277
  let t;
4282
4278
  return {
4283
4279
  c() {
4284
- t = O("div"), t.innerHTML = '<span class="OtpLoader"></span>', p(t, "class", "OtpLoaderContainer");
4280
+ t = H("div"), t.innerHTML = '<span class="OtpLoader"></span>', p(t, "class", "OtpLoaderContainer");
4285
4281
  },
4286
- m(r, n) {
4287
- C(r, t, n);
4282
+ m(n, r) {
4283
+ B(n, t, r);
4288
4284
  },
4289
4285
  p: Y,
4290
- d(r) {
4291
- r && H(t);
4286
+ d(n) {
4287
+ n && A(t);
4292
4288
  }
4293
4289
  };
4294
4290
  }
4295
4291
  function Jt(e) {
4296
- let t, r, n, i = (
4292
+ let t, n, r, i = (
4297
4293
  /*index*/
4298
4294
  e[71]
4299
4295
  ), o, a;
@@ -4326,19 +4322,19 @@ function Jt(e) {
4326
4322
  }
4327
4323
  return {
4328
4324
  c() {
4329
- t = O("input"), p(t, "id", `otp-input-${/*index*/
4330
- e[71]}`), p(t, "type", "text"), p(t, "class", r = `otp-box ${/*config*/
4325
+ t = H("input"), p(t, "id", `otp-input-${/*index*/
4326
+ e[71]}`), p(t, "type", "text"), p(t, "class", n = `otp-box ${/*config*/
4331
4327
  e[4].inputLength % 2 === 0 && /*index*/
4332
4328
  e[71] === /*config*/
4333
- e[4].inputLength / 2 - 1 ? "space" : ""}`), p(t, "maxlength", 1), t.value = n = /*char*/
4329
+ e[4].inputLength / 2 - 1 ? "space" : ""}`), p(t, "maxlength", 1), t.value = r = /*char*/
4334
4330
  e[69], p(t, "inputmode", "numeric"), t.disabled = /*inputDisabled*/
4335
4331
  e[11], p(t, "autocomplete", "off");
4336
4332
  },
4337
4333
  m(c, m) {
4338
- C(c, t, m), s(), o || (a = [
4339
- ce(t, "input", l),
4340
- ce(t, "keydown", h),
4341
- ce(
4334
+ B(c, t, m), s(), o || (a = [
4335
+ he(t, "input", l),
4336
+ he(t, "keydown", h),
4337
+ he(
4342
4338
  t,
4343
4339
  "paste",
4344
4340
  /*handleOnPasteOtp*/
@@ -4348,37 +4344,37 @@ function Jt(e) {
4348
4344
  },
4349
4345
  p(c, m) {
4350
4346
  e = c, m[0] & /*config*/
4351
- 16 && r !== (r = `otp-box ${/*config*/
4347
+ 16 && n !== (n = `otp-box ${/*config*/
4352
4348
  e[4].inputLength % 2 === 0 && /*index*/
4353
4349
  e[71] === /*config*/
4354
- e[4].inputLength / 2 - 1 ? "space" : ""}`) && p(t, "class", r), m[0] & /*otp*/
4355
- 4 && n !== (n = /*char*/
4356
- e[69]) && t.value !== n && (t.value = n), m[0] & /*inputDisabled*/
4350
+ e[4].inputLength / 2 - 1 ? "space" : ""}`) && p(t, "class", n), m[0] & /*otp*/
4351
+ 4 && r !== (r = /*char*/
4352
+ e[69]) && t.value !== r && (t.value = r), m[0] & /*inputDisabled*/
4357
4353
  2048 && (t.disabled = /*inputDisabled*/
4358
4354
  e[11]), i !== /*index*/
4359
4355
  e[71] && (u(), i = /*index*/
4360
4356
  e[71], s());
4361
4357
  },
4362
4358
  d(c) {
4363
- c && H(t), u(), o = !1, _e(a);
4359
+ c && A(t), u(), o = !1, _e(a);
4364
4360
  }
4365
4361
  };
4366
4362
  }
4367
- function mo(e) {
4368
- let t, r = (
4363
+ function po(e) {
4364
+ let t, n = (
4369
4365
  /*$_*/
4370
4366
  e[19]("submit") + ""
4371
- ), n, i, o, a;
4367
+ ), r, i, o, a;
4372
4368
  return {
4373
4369
  c() {
4374
- t = O("button"), n = k(r), p(t, "class", "OtpButton"), t.disabled = i = /*otp*/
4370
+ t = H("button"), r = k(n), p(t, "class", "OtpButton"), t.disabled = i = /*otp*/
4375
4371
  e[2].join("").length !== /*config*/
4376
4372
  e[4].inputLength || /*isSubmitting*/
4377
4373
  e[13] || /*maxAttempts*/
4378
4374
  e[15];
4379
4375
  },
4380
4376
  m(s, u) {
4381
- C(s, t, u), y(t, n), o || (a = ce(
4377
+ B(s, t, u), _(t, r), o || (a = he(
4382
4378
  t,
4383
4379
  "click",
4384
4380
  /*submitOtp*/
@@ -4387,8 +4383,8 @@ function mo(e) {
4387
4383
  },
4388
4384
  p(s, u) {
4389
4385
  u[0] & /*$_*/
4390
- 524288 && r !== (r = /*$_*/
4391
- s[19]("submit") + "") && F(n, r), u[0] & /*otp, config, isSubmitting, maxAttempts*/
4386
+ 524288 && n !== (n = /*$_*/
4387
+ s[19]("submit") + "") && F(r, n), u[0] & /*otp, config, isSubmitting, maxAttempts*/
4392
4388
  40980 && i !== (i = /*otp*/
4393
4389
  s[2].join("").length !== /*config*/
4394
4390
  s[4].inputLength || /*isSubmitting*/
@@ -4396,21 +4392,21 @@ function mo(e) {
4396
4392
  s[15]) && (t.disabled = i);
4397
4393
  },
4398
4394
  d(s) {
4399
- s && H(t), o = !1, a();
4395
+ s && A(t), o = !1, a();
4400
4396
  }
4401
4397
  };
4402
4398
  }
4403
- function go(e) {
4404
- let t, r = (
4399
+ function mo(e) {
4400
+ let t, n = (
4405
4401
  /*$_*/
4406
4402
  e[19]("resendOtp") + ""
4407
- ), n, i, o;
4403
+ ), r, i, o;
4408
4404
  return {
4409
4405
  c() {
4410
- t = O("button"), n = k(r), p(t, "class", "OtpButton");
4406
+ t = H("button"), r = k(n), p(t, "class", "OtpButton");
4411
4407
  },
4412
4408
  m(a, s) {
4413
- C(a, t, s), y(t, n), i || (o = ce(
4409
+ B(a, t, s), _(t, r), i || (o = he(
4414
4410
  t,
4415
4411
  "click",
4416
4412
  /*handleResendOtp*/
@@ -4419,45 +4415,45 @@ function go(e) {
4419
4415
  },
4420
4416
  p(a, s) {
4421
4417
  s[0] & /*$_*/
4422
- 524288 && r !== (r = /*$_*/
4423
- a[19]("resendOtp") + "") && F(n, r);
4418
+ 524288 && n !== (n = /*$_*/
4419
+ a[19]("resendOtp") + "") && F(r, n);
4424
4420
  },
4425
4421
  d(a) {
4426
- a && H(t), i = !1, o();
4422
+ a && A(t), i = !1, o();
4427
4423
  }
4428
4424
  };
4429
4425
  }
4430
- function bo(e) {
4426
+ function go(e) {
4431
4427
  let t;
4432
- function r(o, a) {
4428
+ function n(o, a) {
4433
4429
  return (
4434
4430
  /*hasConfigErrors*/
4435
- o[7] ? io : no
4431
+ o[7] ? ro : no
4436
4432
  );
4437
4433
  }
4438
- let n = r(e), i = n(e);
4434
+ let r = n(e), i = r(e);
4439
4435
  return {
4440
4436
  c() {
4441
- t = O("div"), i.c(), p(t, "class", "OtpContent");
4437
+ t = H("div"), i.c(), p(t, "class", "OtpContent");
4442
4438
  },
4443
4439
  m(o, a) {
4444
- C(o, t, a), i.m(t, null), e[44](t);
4440
+ B(o, t, a), i.m(t, null), e[44](t);
4445
4441
  },
4446
4442
  p(o, a) {
4447
- n === (n = r(o)) && i ? i.p(o, a) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
4443
+ r === (r = n(o)) && i ? i.p(o, a) : (i.d(1), i = r(o), i && (i.c(), i.m(t, null)));
4448
4444
  },
4449
4445
  i: Y,
4450
4446
  o: Y,
4451
4447
  d(o) {
4452
- o && H(t), i.d(), e[44](null);
4448
+ o && A(t), i.d(), e[44](null);
4453
4449
  }
4454
4450
  };
4455
4451
  }
4456
- function yo(e, t, r) {
4457
- let n, i, o;
4458
- Gr(e, eo, (f) => r(19, o = f));
4459
- let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session: c } = t, { translationurl: m } = t, { templateid: _ } = t, d = [], g = !0, E = null, S = 0, P = "", L = "", D = !1, M = !1, N = "", K = "", q = "", ae = !1, pe = !1, le = !1, B = "", U = {}, W = null, me = !1, de = !1, ge = "", Q, ee = [], $ = null, ue = 0, te = !1, be = !1;
4460
- const ve = { SMS: "sms", EMAIL: "email" }, ye = {
4452
+ function bo(e, t, n) {
4453
+ let r, i, o;
4454
+ Fn(e, Ki, (f) => n(19, o = f));
4455
+ let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session: c } = t, { translationurl: m } = t, { templateid: y } = t, d = [], g = !0, E = null, S = 0, M = "", N = "", D = !1, I = !1, R = "", K = "", q = "", se = !1, fe = !1, ae = !1, P = "", U = {}, W = null, pe = !1, me = !1, de = "", Q, ee = [], $ = null, le = 0, te = !1, ge = !1;
4456
+ const Ee = { SMS: "sms", EMAIL: "email" }, be = {
4461
4457
  MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
4462
4458
  INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
4463
4459
  MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
@@ -4465,8 +4461,8 @@ function yo(e, t, r) {
4465
4461
  Object.keys(Wt).forEach((f) => {
4466
4462
  Xt(f, Wt[f]);
4467
4463
  });
4468
- const xe = () => {
4469
- to(l);
4464
+ const ve = () => {
4465
+ eo(l);
4470
4466
  }, J = () => {
4471
4467
  fetch(m).then((f) => f.json()).then((f) => {
4472
4468
  Object.keys(f).forEach((v) => {
@@ -4477,98 +4473,98 @@ function yo(e, t, r) {
4477
4473
  });
4478
4474
  }, j = async (f) => {
4479
4475
  if (f.detail?.["x-step-up-required"]) {
4480
- if (r(7, M = !1), r(6, D = !1), r(8, N = ""), K = f.detail["x-step-up-token"], q = f.detail.flow, !K || !q) {
4481
- r(3, g = !1), r(7, M = !0), r(8, N = o("configError"));
4476
+ if (n(7, I = !1), n(6, D = !1), n(8, R = ""), K = f.detail["x-step-up-token"], q = f.detail.flow, !K || !q) {
4477
+ n(3, g = !1), n(7, I = !0), n(8, R = o("configError"));
4482
4478
  return;
4483
4479
  }
4484
- r(12, me = !1), r(3, g = !1);
4480
+ n(12, pe = !1), n(3, g = !1);
4485
4481
  }
4486
- }, Fe = () => {
4487
- $ && (clearInterval($), $ = null), W && (clearInterval(W), W = null), r(6, D = !1), r(7, M = !1), r(8, N = ""), r(10, pe = !1), r(2, d = []), r(4, E = null), r(3, g = !0), r(0, B = ""), r(12, me = !1), r(38, U = {});
4488
- }, he = () => {
4489
- Fe();
4482
+ }, Ge = () => {
4483
+ $ && (clearInterval($), $ = null), W && (clearInterval(W), W = null), n(6, D = !1), n(7, I = !1), n(8, R = ""), n(10, fe = !1), n(2, d = []), n(4, E = null), n(3, g = !0), n(0, P = ""), n(12, pe = !1), n(38, U = {});
4484
+ }, ue = () => {
4485
+ Ge();
4490
4486
  }, V = () => new Promise((f, v) => {
4491
4487
  const x = new URL(`${h}/api/pam/v1/mfa/challenge/${K}`), X = new Headers();
4492
- X.append("accept", "application/json"), X.append("Content-Type", "application/json"), X.append("X-SessionId", `${c}`), r(16, be = !0);
4493
- const it = {
4488
+ X.append("accept", "application/json"), X.append("Content-Type", "application/json"), X.append("X-SessionId", `${c}`), n(16, ge = !0);
4489
+ const nt = {
4494
4490
  method: "PATCH",
4495
4491
  headers: X,
4496
4492
  body: JSON.stringify({
4497
- channel: B,
4498
- templateId: _
4493
+ channel: P,
4494
+ templateId: y
4499
4495
  })
4500
4496
  };
4501
- fetch(x, it).then((Ct) => Ct.json()).then(() => {
4502
- r(15, te = !1), b(), A(), f();
4497
+ fetch(x, nt).then((Ct) => Ct.json()).then(() => {
4498
+ n(15, te = !1), b(), C(), f();
4503
4499
  }).catch((Ct) => {
4504
4500
  v();
4505
4501
  });
4506
- }), je = () => {
4502
+ }), Fe = () => {
4507
4503
  W && clearInterval(W), W = setInterval(
4508
4504
  () => {
4509
4505
  const f = { ...U };
4510
4506
  let v = !1;
4511
4507
  Object.keys(f).forEach((x) => {
4512
4508
  f[x] > 0 && (f[x]--, v = !0);
4513
- }), r(38, U = f), !v && W && (clearInterval(W), W = null);
4509
+ }), n(38, U = f), !v && W && (clearInterval(W), W = null);
4514
4510
  },
4515
4511
  1e3
4516
4512
  );
4517
- }, re = (f) => {
4518
- r(0, B = f);
4513
+ }, ne = (f) => {
4514
+ n(0, P = f);
4519
4515
  }, z = async () => {
4520
- if (!(!B || U[B] && U[B] > 0)) {
4521
- r(3, g = !0), _ && _.startsWith("2fa-") && r(30, _ = `2fa-${B}`);
4516
+ if (!(!P || U[P] && U[P] > 0)) {
4517
+ n(3, g = !0), y && y.startsWith("2fa-") && n(30, y = `2fa-${P}`);
4522
4518
  try {
4523
- await V(), await nt(), r(38, U = {
4519
+ await V(), await tt(), n(38, U = {
4524
4520
  ...U,
4525
- [B]: 30
4526
- }), je(), r(12, me = !0), b(), A();
4521
+ [P]: 30
4522
+ }), Fe(), n(12, pe = !0), b(), C();
4527
4523
  } catch (f) {
4528
- console.error("Error submitting channel:", f), r(6, D = !0), r(8, N = o("submissionError"));
4524
+ console.error("Error submitting channel:", f), n(6, D = !0), n(8, R = o("submissionError"));
4529
4525
  } finally {
4530
- r(3, g = !1);
4526
+ n(3, g = !1);
4531
4527
  }
4532
4528
  }
4533
4529
  }, b = () => {
4534
- const f = new Date(P), v = new Date(L), x = /* @__PURE__ */ new Date(), X = v.getTime() - x.getTime();
4535
- ue = f.getTime() - X;
4536
- const Le = Date.now(), it = Math.max(0, Math.floor((ue - Le) / 1e3));
4537
- r(5, S = it);
4538
- }, A = () => {
4530
+ const f = new Date(M), v = new Date(N), x = /* @__PURE__ */ new Date(), X = v.getTime() - x.getTime();
4531
+ le = f.getTime() - X;
4532
+ const Ie = Date.now(), nt = Math.max(0, Math.floor((le - Ie) / 1e3));
4533
+ n(5, S = nt);
4534
+ }, C = () => {
4539
4535
  $ && clearInterval($), $ = setInterval(
4540
4536
  () => {
4541
- const f = Date.now(), v = Math.max(0, Math.floor((ue - f) / 1e3));
4542
- r(5, S = v), r(11, le = v <= 0), v <= 0 && (clearInterval($), $ = null, r(9, ae = !0), r(6, D = !1), r(10, pe = !1));
4537
+ const f = Date.now(), v = Math.max(0, Math.floor((le - f) / 1e3));
4538
+ n(5, S = v), n(11, ae = v <= 0), v <= 0 && (clearInterval($), $ = null, n(9, se = !0), n(6, D = !1), n(10, fe = !1));
4543
4539
  },
4544
4540
  1e3
4545
4541
  );
4546
- }, Or = (f) => {
4542
+ }, On = (f) => {
4547
4543
  const v = Math.floor(f / 60), x = f % 60;
4548
4544
  return `${v.toString().padStart(2, "0")}:${x.toString().padStart(2, "0")}`;
4549
- }, rt = (f, v) => {
4545
+ }, et = (f, v) => {
4550
4546
  const x = [...d];
4551
- x[f] = v.toUpperCase(), r(2, d = x), x.join("") !== ge && r(13, de = !1);
4552
- }, Hr = (f) => {
4547
+ x[f] = v.toUpperCase(), n(2, d = x), x.join("") !== de && n(13, me = !1);
4548
+ }, An = (f) => {
4553
4549
  f.preventDefault();
4554
4550
  const x = (f.clipboardData?.getData("text")?.trim() || "").slice(0, E.inputLength).split("");
4555
- r(2, d = [...x, ...Array(E.inputLength - x.length).fill("")]), ee[x.length]?.focus(), x.length === E.inputLength && At();
4556
- }, Ot = (f, v) => {
4557
- const x = f.target, X = x.value;
4558
- /^[a-z0-9]$/i.test(X) && (rt(v, X), ee[v + 1]?.focus()), x.value = "";
4551
+ n(2, d = [...x, ...Array(E.inputLength - x.length).fill("")]), ee[x.length]?.focus(), x.length === E.inputLength && At();
4559
4552
  }, Ht = (f, v) => {
4553
+ const x = f.target, X = x.value;
4554
+ /^[a-z0-9]$/i.test(X) && (et(v, X), ee[v + 1]?.focus()), x.value = "";
4555
+ }, Ot = (f, v) => {
4560
4556
  const x = f.key, X = f.ctrlKey || f.metaKey;
4561
4557
  if (/^[a-z0-9]$/i.test(x)) {
4562
4558
  if (X && x.toLowerCase() === "v")
4563
4559
  return;
4564
- f.preventDefault(), rt(v, x), ee[v + 1]?.focus();
4560
+ f.preventDefault(), et(v, x), ee[v + 1]?.focus();
4565
4561
  } else
4566
- x === "Backspace" && (f.preventDefault(), d[v] !== "" && rt(v, ""), ee[v - 1]?.focus());
4567
- }, Ar = () => {
4568
- q == "stateful" && (V(), r(9, ae = !1));
4562
+ x === "Backspace" && (f.preventDefault(), d[v] !== "" && et(v, ""), ee[v - 1]?.focus());
4563
+ }, Cn = () => {
4564
+ q == "stateful" && (V(), n(9, se = !1));
4569
4565
  const f = new CustomEvent("otpResendRequested");
4570
4566
  window.dispatchEvent(f);
4571
- }, Cr = (f) => {
4567
+ }, Bn = (f) => {
4572
4568
  window.dispatchEvent(new CustomEvent(
4573
4569
  "otpSubmitted",
4574
4570
  {
@@ -4579,19 +4575,19 @@ function yo(e, t, r) {
4579
4575
  }
4580
4576
  }
4581
4577
  ));
4582
- }, Br = async (f) => {
4578
+ }, Pn = async (f) => {
4583
4579
  const v = new URL(`/api/nwa/api/v1/mfa/challenge/${K}/validate`, h);
4584
4580
  v.searchParams.append("input", f);
4585
4581
  try {
4586
4582
  const x = await fetch(v.href, { method: "POST" });
4587
4583
  if (x.status === 200) {
4588
- Pr();
4584
+ Mn();
4589
4585
  return;
4590
4586
  }
4591
4587
  const X = await x.json();
4592
4588
  throw new Error(X.message);
4593
4589
  } catch (x) {
4594
- if (await nt(), x.message === ye.INTERNAL_SERVER_ERROR) {
4590
+ if (await tt(), x.message === be.INTERNAL_SERVER_ERROR) {
4595
4591
  if (E.numberOfValidateAttempts === E.maxValidationAttempts - 1) {
4596
4592
  window.dispatchEvent(new CustomEvent("otpSetTimeout")), window.postMessage(
4597
4593
  {
@@ -4605,14 +4601,14 @@ function yo(e, t, r) {
4605
4601
  ), window.dispatchEvent(new CustomEvent("manualClosePopup"));
4606
4602
  return;
4607
4603
  }
4608
- r(6, D = !0), r(8, N = o("invalidOtp")), nt();
4604
+ n(6, D = !0), n(8, R = o("invalidOtp")), tt();
4609
4605
  return;
4610
4606
  }
4611
- x.message === ye.MAX_INVALIDATE && (r(6, D = !0), r(8, N = o("invalidOtp"))), x.details === ye.MAX_ATTEMPTS_EXCEEDED && r(15, te = !0), console.error("OTP submission failed:", x), r(6, D = !0), r(8, N = o("submissionError"));
4607
+ x.message === be.MAX_INVALIDATE && (n(6, D = !0), n(8, R = o("invalidOtp"))), x.details === be.MAX_ATTEMPTS_EXCEEDED && n(15, te = !0), console.error("OTP submission failed:", x), n(6, D = !0), n(8, R = o("submissionError"));
4612
4608
  } finally {
4613
- r(3, g = !1);
4609
+ n(3, g = !1);
4614
4610
  }
4615
- }, Pr = () => {
4611
+ }, Mn = () => {
4616
4612
  window.dispatchEvent(new CustomEvent(
4617
4613
  "otpSuccess",
4618
4614
  {
@@ -4621,95 +4617,95 @@ function yo(e, t, r) {
4621
4617
  }
4622
4618
  }
4623
4619
  ));
4624
- }, Mr = () => {
4620
+ }, In = () => {
4625
4621
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
4626
4622
  }, At = async () => {
4627
4623
  if (d.join("").length !== E.inputLength) {
4628
- r(6, D = !0), r(8, N = o("invalidOtp"));
4624
+ n(6, D = !0), n(8, R = o("invalidOtp"));
4629
4625
  return;
4630
4626
  }
4631
4627
  const f = d.join("");
4632
- r(13, de = !0), ge = f, r(3, g = !0), r(6, D = !1), r(8, N = ""), q === "stateless" && Cr(f), q === "stateful" && await Br(f);
4633
- }, nt = async () => {
4628
+ n(13, me = !0), de = f, n(3, g = !0), n(6, D = !1), n(8, R = ""), q === "stateless" && Bn(f), q === "stateful" && await Pn(f);
4629
+ }, tt = async () => {
4634
4630
  if (h)
4635
4631
  try {
4636
- r(3, g = !0);
4632
+ n(3, g = !0);
4637
4633
  const f = new URL(`/api/nwa/api/v1/mfa/challenge/${K}/config`, h), v = await fetch(f.href), x = await v.json();
4638
4634
  if (v.ok)
4639
- r(4, E = x), r(2, d = Array(E.inputLength).fill("")), r(9, ae = !1), P = E.expirationTime, L = E.serverTime, E.numberOfValidateAttempts !== 0 && (r(6, D = !0), r(8, N = o("invalidOtp"))), E.numberOfValidateAttempts === E.maxValidationAttempts - 1 && r(10, pe = !0), r(3, g = !1), b(), A(), r(16, be = !1);
4640
- else if (x && x.details === ye.MAX_ATTEMPTS_EXCEEDED)
4635
+ n(4, E = x), n(2, d = Array(E.inputLength).fill("")), n(9, se = !1), M = E.expirationTime, N = E.serverTime, E.numberOfValidateAttempts !== 0 && (n(6, D = !0), n(8, R = o("invalidOtp"))), E.numberOfValidateAttempts === E.maxValidationAttempts - 1 && n(10, fe = !0), n(3, g = !1), b(), C(), n(16, ge = !1);
4636
+ else if (x && x.details === be.MAX_ATTEMPTS_EXCEEDED)
4641
4637
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
4642
4638
  else {
4643
4639
  const X = x && x.message || `Failed to load config. Status: ${v.status}`;
4644
4640
  throw new Error(X);
4645
4641
  }
4646
4642
  } catch (f) {
4647
- 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);
4643
+ n(3, g = !1), n(7, I = !0), n(8, R = o("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", f);
4648
4644
  }
4649
4645
  };
4650
- qr(() => (window.addEventListener("stepUpAuthRequired", j, !1), window.addEventListener("closePopup", he, !1), () => {
4651
- window.removeEventListener("stepUpAuthRequired", j), window.removeEventListener("closePopup", he, !1), $ && clearInterval($), W && clearInterval(W);
4646
+ Qn(() => (window.addEventListener("stepUpAuthRequired", j, !1), window.addEventListener("closePopup", ue, !1), () => {
4647
+ window.removeEventListener("stepUpAuthRequired", j), window.removeEventListener("closePopup", ue, !1), $ && clearInterval($), W && clearInterval(W);
4652
4648
  }));
4653
- const Ir = () => re(ve.SMS), Lr = () => re(ve.EMAIL);
4654
- function Nr(f, v) {
4655
- We[f ? "unshift" : "push"](() => {
4656
- ee[v] = f, r(14, ee);
4649
+ const Ln = () => ne(Ee.SMS), Nn = () => ne(Ee.EMAIL);
4650
+ function Rn(f, v) {
4651
+ Xe[f ? "unshift" : "push"](() => {
4652
+ ee[v] = f, n(14, ee);
4657
4653
  });
4658
4654
  }
4659
- const Rr = (f, v) => Ot(v, f), kr = (f, v) => Ht(v, f);
4660
- function Dr(f) {
4661
- We[f ? "unshift" : "push"](() => {
4662
- Q = f, r(1, Q);
4655
+ const kn = (f, v) => Ht(v, f), Dn = (f, v) => Ot(v, f);
4656
+ function Un(f) {
4657
+ Xe[f ? "unshift" : "push"](() => {
4658
+ Q = f, n(1, Q);
4663
4659
  });
4664
4660
  }
4665
4661
  return e.$$set = (f) => {
4666
- "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, m = f.translationurl), "templateid" in f && r(30, _ = f.templateid);
4662
+ "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, m = f.translationurl), "templateid" in f && n(30, y = f.templateid);
4667
4663
  }, e.$$.update = () => {
4668
4664
  e.$$.dirty[0] & /*customStylingContainer*/
4669
4665
  2 | e.$$.dirty[1] & /*clientstyling*/
4670
- 1 && a && Q && hn(Q, a), e.$$.dirty[0] & /*customStylingContainer*/
4666
+ 1 && a && Q && hr(Q, a), e.$$.dirty[0] & /*customStylingContainer*/
4671
4667
  2 | e.$$.dirty[1] & /*clientstylingurl*/
4672
- 2 && s && Q && cn(Q, s), e.$$.dirty[0] & /*customStylingContainer*/
4668
+ 2 && s && Q && cr(Q, s), e.$$.dirty[0] & /*customStylingContainer*/
4673
4669
  2 | e.$$.dirty[1] & /*mbsource*/
4674
- 4 && u && Q && fn(Q, `${u}.Style`), e.$$.dirty[1] & /*lang*/
4675
- 8 && l && xe(), e.$$.dirty[1] & /*lang, translationurl*/
4670
+ 4 && u && Q && fr(Q, `${u}.Style`), e.$$.dirty[1] & /*lang*/
4671
+ 8 && l && ve(), e.$$.dirty[1] & /*lang, translationurl*/
4676
4672
  72 && l && m && J(), e.$$.dirty[0] & /*selectedChannel*/
4677
4673
  1 | e.$$.dirty[1] & /*channelSubmitTimers*/
4678
- 128 && r(18, n = B && (!U[B] || U[B] === 0)), e.$$.dirty[0] & /*selectedChannel*/
4674
+ 128 && n(18, r = P && (!U[P] || U[P] === 0)), e.$$.dirty[0] & /*selectedChannel*/
4679
4675
  1 | e.$$.dirty[1] & /*channelSubmitTimers*/
4680
- 128 && r(17, i = B && U[B] || 0);
4676
+ 128 && n(17, i = P && U[P] || 0);
4681
4677
  }, [
4682
- B,
4678
+ P,
4683
4679
  Q,
4684
4680
  d,
4685
4681
  g,
4686
4682
  E,
4687
4683
  S,
4688
4684
  D,
4689
- M,
4690
- N,
4685
+ I,
4686
+ R,
4687
+ se,
4688
+ fe,
4691
4689
  ae,
4692
4690
  pe,
4693
- le,
4694
4691
  me,
4695
- de,
4696
4692
  ee,
4697
4693
  te,
4698
- be,
4694
+ ge,
4699
4695
  i,
4700
- n,
4696
+ r,
4701
4697
  o,
4702
- ve,
4703
- re,
4698
+ Ee,
4699
+ ne,
4704
4700
  z,
4705
- Or,
4706
- Hr,
4707
- Ot,
4701
+ On,
4702
+ An,
4708
4703
  Ht,
4709
- Ar,
4710
- Mr,
4704
+ Ot,
4705
+ Cn,
4706
+ In,
4711
4707
  At,
4712
- _,
4708
+ y,
4713
4709
  a,
4714
4710
  s,
4715
4711
  u,
@@ -4718,21 +4714,21 @@ function yo(e, t, r) {
4718
4714
  c,
4719
4715
  m,
4720
4716
  U,
4721
- Ir,
4722
- Lr,
4723
- Nr,
4724
- Rr,
4725
- kr,
4726
- Dr
4717
+ Ln,
4718
+ Nn,
4719
+ Rn,
4720
+ kn,
4721
+ Dn,
4722
+ Un
4727
4723
  ];
4728
4724
  }
4729
- class _o extends ln {
4725
+ class _o extends lr {
4730
4726
  constructor(t) {
4731
- super(), sn(
4727
+ super(), sr(
4732
4728
  this,
4733
4729
  t,
4734
- yo,
4735
4730
  bo,
4731
+ go,
4736
4732
  Kt,
4737
4733
  {
4738
4734
  clientstyling: 31,
@@ -4744,7 +4740,7 @@ class _o extends ln {
4744
4740
  translationurl: 37,
4745
4741
  templateid: 30
4746
4742
  },
4747
- ro,
4743
+ to,
4748
4744
  [-1, -1, -1]
4749
4745
  );
4750
4746
  }
@@ -4797,7 +4793,7 @@ class _o extends ln {
4797
4793
  this.$$set({ templateid: t }), oe();
4798
4794
  }
4799
4795
  }
4800
- an(_o, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
4796
+ ar(_o, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
4801
4797
  export {
4802
4798
  _o as C
4803
4799
  };