@everymatrix/cashier-error 1.90.4 → 1.91.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,31 +1,31 @@
1
1
  var nr = Object.defineProperty, ir = Object.defineProperties;
2
- var or = Object.getOwnPropertyDescriptors;
2
+ var ar = Object.getOwnPropertyDescriptors;
3
3
  var Qe = Object.getOwnPropertySymbols;
4
- var sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable;
4
+ var or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable;
5
5
  var Be = (e, t, r) => t in e ? nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- sr.call(t, r) && Be(e, r, t[r]);
7
+ or.call(t, r) && Be(e, r, t[r]);
8
8
  if (Qe)
9
9
  for (var r of Qe(t))
10
- ar.call(t, r) && Be(e, r, t[r]);
10
+ sr.call(t, r) && Be(e, r, t[r]);
11
11
  return e;
12
- }, et = (e, t) => ir(e, or(t));
13
- var w = (e, t, r) => (Be(e, typeof t != "symbol" ? t + "" : t, r), r);
12
+ }, et = (e, t) => ir(e, ar(t));
13
+ var A = (e, t, r) => (Be(e, typeof t != "symbol" ? t + "" : t, r), r);
14
14
  var tt = (e, t, r) => new Promise((n, i) => {
15
- var o = (l) => {
15
+ var a = (l) => {
16
16
  try {
17
- a(r.next(l));
17
+ s(r.next(l));
18
18
  } catch (u) {
19
19
  i(u);
20
20
  }
21
- }, s = (l) => {
21
+ }, o = (l) => {
22
22
  try {
23
- a(r.throw(l));
23
+ s(r.throw(l));
24
24
  } catch (u) {
25
25
  i(u);
26
26
  }
27
- }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
28
- a((r = r.apply(e, t)).next());
27
+ }, s = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(a, o);
28
+ s((r = r.apply(e, t)).next());
29
29
  });
30
30
  import "../stencil/ui-image-CP8Lp7fB.js";
31
31
  function O() {
@@ -38,24 +38,24 @@ function ur(e, t) {
38
38
  e
39
39
  );
40
40
  }
41
- function wt(e) {
41
+ function At(e) {
42
42
  return e();
43
43
  }
44
44
  function rt() {
45
45
  return /* @__PURE__ */ Object.create(null);
46
46
  }
47
47
  function ne(e) {
48
- e.forEach(wt);
48
+ e.forEach(At);
49
49
  }
50
50
  function qe(e) {
51
51
  return typeof e == "function";
52
52
  }
53
- function At(e, t) {
53
+ function St(e, t) {
54
54
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
55
55
  }
56
- let ae;
56
+ let se;
57
57
  function nt(e, t) {
58
- return e === t ? !0 : (ae || (ae = document.createElement("a")), ae.href = t, e === ae.href);
58
+ return e === t ? !0 : (se || (se = document.createElement("a")), se.href = t, e === se.href);
59
59
  }
60
60
  function lr(e) {
61
61
  return Object.keys(e).length === 0;
@@ -87,19 +87,19 @@ function le(e, t, r, n) {
87
87
  if (t.dirty === void 0)
88
88
  return i;
89
89
  if (typeof i == "object") {
90
- const o = [], s = Math.max(t.dirty.length, i.length);
91
- for (let a = 0; a < s; a += 1)
92
- o[a] = t.dirty[a] | i[a];
93
- return o;
90
+ const a = [], o = Math.max(t.dirty.length, i.length);
91
+ for (let s = 0; s < o; s += 1)
92
+ a[s] = t.dirty[s] | i[s];
93
+ return a;
94
94
  }
95
95
  return t.dirty | i;
96
96
  }
97
97
  return t.dirty;
98
98
  }
99
- function he(e, t, r, n, i, o) {
99
+ function he(e, t, r, n, i, a) {
100
100
  if (i) {
101
- const s = Pt(t, r, n, o);
102
- e.p(s, i);
101
+ const o = Pt(t, r, n, a);
102
+ e.p(o, i);
103
103
  }
104
104
  }
105
105
  function ce(e) {
@@ -141,7 +141,7 @@ function mr(e, t) {
141
141
  function X(e, t, r) {
142
142
  e.insertBefore(t, r || null);
143
143
  }
144
- function M(e) {
144
+ function N(e) {
145
145
  e.parentNode && e.parentNode.removeChild(e);
146
146
  }
147
147
  function I(e) {
@@ -194,14 +194,14 @@ function yr() {
194
194
  function vr(e) {
195
195
  yr().$$.on_mount.push(e);
196
196
  }
197
- const U = [], $e = [];
197
+ const k = [], $e = [];
198
198
  let G = [];
199
- const it = [], _r = /* @__PURE__ */ Promise.resolve();
199
+ const it = [], Er = /* @__PURE__ */ Promise.resolve();
200
200
  let De = !1;
201
- function Er() {
202
- De || (De = !0, _r.then(P));
201
+ function _r() {
202
+ De || (De = !0, Er.then(P));
203
203
  }
204
- function Ue(e) {
204
+ function ke(e) {
205
205
  G.push(e);
206
206
  }
207
207
  const Oe = /* @__PURE__ */ new Set();
@@ -212,21 +212,21 @@ function P() {
212
212
  const e = ee;
213
213
  do {
214
214
  try {
215
- for (; $ < U.length; ) {
216
- const t = U[$];
215
+ for (; $ < k.length; ) {
216
+ const t = k[$];
217
217
  $++, K(t), xr(t.$$);
218
218
  }
219
219
  } catch (t) {
220
- throw U.length = 0, $ = 0, t;
220
+ throw k.length = 0, $ = 0, t;
221
221
  }
222
- for (K(null), U.length = 0, $ = 0; $e.length; )
222
+ for (K(null), k.length = 0, $ = 0; $e.length; )
223
223
  $e.pop()();
224
224
  for (let t = 0; t < G.length; t += 1) {
225
225
  const r = G[t];
226
226
  Oe.has(r) || (Oe.add(r), r());
227
227
  }
228
228
  G.length = 0;
229
- } while (U.length);
229
+ } while (k.length);
230
230
  for (; it.length; )
231
231
  it.pop()();
232
232
  De = !1, Oe.clear(), K(e);
@@ -235,7 +235,7 @@ function xr(e) {
235
235
  if (e.fragment !== null) {
236
236
  e.update(), ne(e.before_update);
237
237
  const t = e.dirty;
238
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ue);
238
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ke);
239
239
  }
240
240
  }
241
241
  function Tr(e) {
@@ -256,28 +256,28 @@ function me(e, t, r, n) {
256
256
  }), e.o(t);
257
257
  }
258
258
  }
259
- function Sr(e, t, r) {
259
+ function wr(e, t, r) {
260
260
  const { fragment: n, after_update: i } = e.$$;
261
- n && n.m(t, r), Ue(() => {
262
- const o = e.$$.on_mount.map(wt).filter(qe);
263
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
264
- }), i.forEach(Ue);
261
+ n && n.m(t, r), ke(() => {
262
+ const a = e.$$.on_mount.map(At).filter(qe);
263
+ e.$$.on_destroy ? e.$$.on_destroy.push(...a) : ne(a), e.$$.on_mount = [];
264
+ }), i.forEach(ke);
265
265
  }
266
- function wr(e, t) {
266
+ function Ar(e, t) {
267
267
  const r = e.$$;
268
268
  r.fragment !== null && (Tr(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
269
269
  }
270
- function Ar(e, t) {
271
- e.$$.dirty[0] === -1 && (U.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
270
+ function Sr(e, t) {
271
+ e.$$.dirty[0] === -1 && (k.push(e), _r(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
272
272
  }
273
- function Br(e, t, r, n, i, o, s = null, a = [-1]) {
273
+ function Br(e, t, r, n, i, a, o = null, s = [-1]) {
274
274
  const l = ee;
275
275
  K(e);
276
276
  const u = e.$$ = {
277
277
  fragment: null,
278
278
  ctx: [],
279
279
  // state
280
- props: o,
280
+ props: a,
281
281
  update: O,
282
282
  not_equal: i,
283
283
  bound: rt(),
@@ -290,22 +290,22 @@ function Br(e, t, r, n, i, o, s = null, a = [-1]) {
290
290
  context: new Map(t.context || (l ? l.$$.context : [])),
291
291
  // everything else
292
292
  callbacks: rt(),
293
- dirty: a,
293
+ dirty: s,
294
294
  skip_bound: !1,
295
295
  root: t.target || l.$$.root
296
296
  };
297
- s && s(u.root);
297
+ o && o(u.root);
298
298
  let h = !1;
299
299
  if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
300
300
  const b = p.length ? p[0] : f;
301
- return u.ctx && i(u.ctx[c], u.ctx[c] = b) && (!u.skip_bound && u.bound[c] && u.bound[c](b), h && Ar(e, c)), f;
301
+ return u.ctx && i(u.ctx[c], u.ctx[c] = b) && (!u.skip_bound && u.bound[c] && u.bound[c](b), h && Sr(e, c)), f;
302
302
  }) : [], u.update(), h = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
303
303
  if (t.hydrate) {
304
304
  const c = br(t.target);
305
- u.fragment && u.fragment.l(c), c.forEach(M);
305
+ u.fragment && u.fragment.l(c), c.forEach(N);
306
306
  } else
307
307
  u.fragment && u.fragment.c();
308
- t.intro && Y(e.$$.fragment), Sr(e, t.target, t.anchor), P();
308
+ t.intro && Y(e.$$.fragment), wr(e, t.target, t.anchor), P();
309
309
  }
310
310
  K(l);
311
311
  }
@@ -314,23 +314,23 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
314
314
  constructor(t, r, n) {
315
315
  super();
316
316
  /** The Svelte component constructor */
317
- w(this, "$$ctor");
317
+ A(this, "$$ctor");
318
318
  /** Slots */
319
- w(this, "$$s");
319
+ A(this, "$$s");
320
320
  /** The Svelte component instance */
321
- w(this, "$$c");
321
+ A(this, "$$c");
322
322
  /** Whether or not the custom element is connected */
323
- w(this, "$$cn", !1);
323
+ A(this, "$$cn", !1);
324
324
  /** Component props data */
325
- w(this, "$$d", {});
325
+ A(this, "$$d", {});
326
326
  /** `true` if currently in the process of reflecting component props back to attributes */
327
- w(this, "$$r", !1);
327
+ A(this, "$$r", !1);
328
328
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
329
- w(this, "$$p_d", {});
329
+ A(this, "$$p_d", {});
330
330
  /** @type {Record<string, Function[]>} Event listeners */
331
- w(this, "$$l", {});
331
+ A(this, "$$l", {});
332
332
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
333
- w(this, "$$l_u", /* @__PURE__ */ new Map());
333
+ A(this, "$$l_u", /* @__PURE__ */ new Map());
334
334
  this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
335
335
  }
336
336
  addEventListener(t, r, n) {
@@ -349,22 +349,22 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
349
349
  connectedCallback() {
350
350
  return tt(this, null, function* () {
351
351
  if (this.$$cn = !0, !this.$$c) {
352
- let t = function(o) {
352
+ let t = function(a) {
353
353
  return () => {
354
- let s;
354
+ let o;
355
355
  return {
356
356
  c: function() {
357
- s = I("slot"), o !== "default" && F(s, "name", o);
357
+ o = I("slot"), a !== "default" && F(o, "name", a);
358
358
  },
359
359
  /**
360
360
  * @param {HTMLElement} target
361
361
  * @param {HTMLElement} [anchor]
362
362
  */
363
363
  m: function(u, h) {
364
- X(u, s, h);
364
+ X(u, o, h);
365
365
  },
366
366
  d: function(u) {
367
- u && M(s);
367
+ u && N(o);
368
368
  }
369
369
  };
370
370
  };
@@ -372,14 +372,14 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
372
372
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
373
373
  return;
374
374
  const r = {}, n = gr(this);
375
- for (const o of this.$$s)
376
- o in n && (r[o] = [t(o)]);
377
- for (const o of this.attributes) {
378
- const s = this.$$g_p(o.name);
379
- s in this.$$d || (this.$$d[s] = be(s, o.value, this.$$p_d, "toProp"));
375
+ for (const a of this.$$s)
376
+ a in n && (r[a] = [t(a)]);
377
+ for (const a of this.attributes) {
378
+ const o = this.$$g_p(a.name);
379
+ o in this.$$d || (this.$$d[o] = be(o, a.value, this.$$p_d, "toProp"));
380
380
  }
381
- for (const o in this.$$p_d)
382
- !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
381
+ for (const a in this.$$p_d)
382
+ !(a in this.$$d) && this[a] !== void 0 && (this.$$d[a] = this[a], delete this[a]);
383
383
  this.$$c = new this.$$ctor({
384
384
  target: this.shadowRoot || this,
385
385
  props: et(Ke({}, this.$$d), {
@@ -391,23 +391,23 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
391
391
  });
392
392
  const i = () => {
393
393
  this.$$r = !0;
394
- for (const o in this.$$p_d)
395
- if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
396
- const s = be(
397
- o,
398
- this.$$d[o],
394
+ for (const a in this.$$p_d)
395
+ if (this.$$d[a] = this.$$c.$$.ctx[this.$$c.$$.props[a]], this.$$p_d[a].reflect) {
396
+ const o = be(
397
+ a,
398
+ this.$$d[a],
399
399
  this.$$p_d,
400
400
  "toAttribute"
401
401
  );
402
- s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
402
+ o == null ? this.removeAttribute(this.$$p_d[a].attribute || a) : this.setAttribute(this.$$p_d[a].attribute || a, o);
403
403
  }
404
404
  this.$$r = !1;
405
405
  };
406
406
  this.$$c.$$.after_update.push(i), i();
407
- for (const o in this.$$l)
408
- for (const s of this.$$l[o]) {
409
- const a = this.$$c.$on(o, s);
410
- this.$$l_u.set(s, a);
407
+ for (const a in this.$$l)
408
+ for (const o of this.$$l[a]) {
409
+ const s = this.$$c.$on(a, o);
410
+ this.$$l_u.set(o, s);
411
411
  }
412
412
  this.$$l = {};
413
413
  }
@@ -431,8 +431,8 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
431
431
  }
432
432
  });
433
433
  function be(e, t, r, n) {
434
- var o;
435
- const i = (o = r[e]) == null ? void 0 : o.type;
434
+ var a;
435
+ const i = (a = r[e]) == null ? void 0 : a.type;
436
436
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
437
437
  return t;
438
438
  if (n === "toAttribute")
@@ -460,36 +460,36 @@ function be(e, t, r, n) {
460
460
  return t;
461
461
  }
462
462
  }
463
- function Pr(e, t, r, n, i, o) {
464
- let s = class extends Ct {
463
+ function Pr(e, t, r, n, i, a) {
464
+ let o = class extends Ct {
465
465
  constructor() {
466
466
  super(e, r, i), this.$$p_d = t;
467
467
  }
468
468
  static get observedAttributes() {
469
469
  return Object.keys(t).map(
470
- (a) => (t[a].attribute || a).toLowerCase()
470
+ (s) => (t[s].attribute || s).toLowerCase()
471
471
  );
472
472
  }
473
473
  };
474
- return Object.keys(t).forEach((a) => {
475
- Object.defineProperty(s.prototype, a, {
474
+ return Object.keys(t).forEach((s) => {
475
+ Object.defineProperty(o.prototype, s, {
476
476
  get() {
477
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
477
+ return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
478
478
  },
479
479
  set(l) {
480
480
  var u;
481
- l = be(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
481
+ l = be(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
482
482
  }
483
483
  });
484
- }), n.forEach((a) => {
485
- Object.defineProperty(s.prototype, a, {
484
+ }), n.forEach((s) => {
485
+ Object.defineProperty(o.prototype, s, {
486
486
  get() {
487
487
  var l;
488
- return (l = this.$$c) == null ? void 0 : l[a];
488
+ return (l = this.$$c) == null ? void 0 : l[s];
489
489
  }
490
490
  });
491
491
  }), e.element = /** @type {any} */
492
- s, s;
492
+ o, o;
493
493
  }
494
494
  class Or {
495
495
  constructor() {
@@ -500,7 +500,7 @@ class Or {
500
500
  *
501
501
  * @type {any}
502
502
  */
503
- w(this, "$$");
503
+ A(this, "$$");
504
504
  /**
505
505
  * ### PRIVATE API
506
506
  *
@@ -508,11 +508,11 @@ class Or {
508
508
  *
509
509
  * @type {any}
510
510
  */
511
- w(this, "$$set");
511
+ A(this, "$$set");
512
512
  }
513
513
  /** @returns {void} */
514
514
  $destroy() {
515
- wr(this, 1), this.$destroy = O;
515
+ Ar(this, 1), this.$destroy = O;
516
516
  }
517
517
  /**
518
518
  * @template {Extract<keyof Events, string>} K
@@ -539,7 +539,7 @@ class Or {
539
539
  }
540
540
  const Cr = "4";
541
541
  typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cr);
542
- const k = "__WIDGET_GLOBAL_STYLE_CACHE__";
542
+ const U = "__WIDGET_GLOBAL_STYLE_CACHE__";
543
543
  function Lr(e, t) {
544
544
  if (e) {
545
545
  const r = document.createElement("style");
@@ -557,22 +557,22 @@ function Ir(e, t) {
557
557
  console.error("There was an error while trying to load client styling from URL", n);
558
558
  });
559
559
  }
560
- function Nr(e, t, r, n = !1) {
560
+ function Mr(e, t, r, n = !1) {
561
561
  if (!window.emMessageBus)
562
562
  return;
563
563
  if (!("adoptedStyleSheets" in Document.prototype) || !n)
564
- return r = Mr(e, t), r;
565
- window[k] || (window[k] = {}), r = Rr(e, t);
566
- const o = r.unsubscribe.bind(r), s = () => {
567
- if (window[k][t]) {
568
- const a = window[k][t];
569
- a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[k][t];
564
+ return r = Nr(e, t), r;
565
+ window[U] || (window[U] = {}), r = Rr(e, t);
566
+ const a = r.unsubscribe.bind(r), o = () => {
567
+ if (window[U][t]) {
568
+ const s = window[U][t];
569
+ s.refCount > 1 ? s.refCount = s.refCount - 1 : delete window[U][t];
570
570
  }
571
- o();
571
+ a();
572
572
  };
573
- return r.unsubscribe = s, r;
573
+ return r.unsubscribe = o, r;
574
574
  }
575
- function Mr(e, t) {
575
+ function Nr(e, t) {
576
576
  const r = document.createElement("style");
577
577
  return window.emMessageBus.subscribe(t, (n) => {
578
578
  e && (r.innerHTML = n, e.appendChild(r));
@@ -582,14 +582,14 @@ function Rr(e, t) {
582
582
  return window.emMessageBus.subscribe(t, (r) => {
583
583
  if (!e)
584
584
  return;
585
- const n = e.getRootNode(), i = window[k];
586
- let o = i[t] && i[t].sheet;
587
- o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
588
- sheet: o,
585
+ const n = e.getRootNode(), i = window[U];
586
+ let a = i[t] && i[t].sheet;
587
+ a ? i[t].refCount = i[t].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(r), i[t] = {
588
+ sheet: a,
589
589
  refCount: 1
590
590
  });
591
- const s = n.adoptedStyleSheets || [];
592
- s.includes(o) || (n.adoptedStyleSheets = [...s, o]);
591
+ const o = n.adoptedStyleSheets || [];
592
+ o.includes(a) || (n.adoptedStyleSheets = [...o, a]);
593
593
  });
594
594
  }
595
595
  const D = [];
@@ -601,8 +601,8 @@ function $r(e, t) {
601
601
  function He(e, t = O) {
602
602
  let r;
603
603
  const n = /* @__PURE__ */ new Set();
604
- function i(a) {
605
- if (At(e, a) && (e = a, r)) {
604
+ function i(s) {
605
+ if (St(e, s) && (e = s, r)) {
606
606
  const l = !D.length;
607
607
  for (const u of n)
608
608
  u[1](), D.push(u, e);
@@ -613,23 +613,23 @@ function He(e, t = O) {
613
613
  }
614
614
  }
615
615
  }
616
- function o(a) {
617
- i(a(e));
616
+ function a(s) {
617
+ i(s(e));
618
618
  }
619
- function s(a, l = O) {
620
- const u = [a, l];
621
- return n.add(u), n.size === 1 && (r = t(i, o) || O), a(e), () => {
619
+ function o(s, l = O) {
620
+ const u = [s, l];
621
+ return n.add(u), n.size === 1 && (r = t(i, a) || O), s(e), () => {
622
622
  n.delete(u), n.size === 0 && r && (r(), r = null);
623
623
  };
624
624
  }
625
- return { set: i, update: o, subscribe: s };
625
+ return { set: i, update: a, subscribe: o };
626
626
  }
627
627
  function q(e, t, r) {
628
628
  const n = !Array.isArray(e), i = n ? [e] : e;
629
629
  if (!i.every(Boolean))
630
630
  throw new Error("derived() expects stores as input, got a falsy value");
631
- const o = t.length < 2;
632
- return $r(r, (s, a) => {
631
+ const a = t.length < 2;
632
+ return $r(r, (o, s) => {
633
633
  let l = !1;
634
634
  const u = [];
635
635
  let h = 0, c = O;
@@ -637,16 +637,16 @@ function q(e, t, r) {
637
637
  if (h)
638
638
  return;
639
639
  c();
640
- const b = t(n ? u[0] : u, s, a);
641
- o ? s(b) : c = qe(b) ? b : O;
640
+ const b = t(n ? u[0] : u, o, s);
641
+ a ? o(b) : c = qe(b) ? b : O;
642
642
  }, p = i.map(
643
- (b, E) => Bt(
643
+ (b, _) => Bt(
644
644
  b,
645
645
  (T) => {
646
- u[E] = T, h &= ~(1 << E), l && f();
646
+ u[_] = T, h &= ~(1 << _), l && f();
647
647
  },
648
648
  () => {
649
- h |= 1 << E;
649
+ h |= 1 << _;
650
650
  }
651
651
  )
652
652
  );
@@ -658,10 +658,10 @@ function q(e, t, r) {
658
658
  function Dr(e) {
659
659
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
660
660
  }
661
- var Ur = function(t) {
662
- return kr(t) && !Gr(t);
661
+ var kr = function(t) {
662
+ return Ur(t) && !Gr(t);
663
663
  };
664
- function kr(e) {
664
+ function Ur(e) {
665
665
  return !!e && typeof e == "object";
666
666
  }
667
667
  function Gr(e) {
@@ -694,7 +694,7 @@ function qr(e) {
694
694
  return Object.propertyIsEnumerable.call(e, t);
695
695
  }) : [];
696
696
  }
697
- function ot(e) {
697
+ function at(e) {
698
698
  return Object.keys(e).concat(qr(e));
699
699
  }
700
700
  function Lt(e, t) {
@@ -709,16 +709,16 @@ function Jr(e, t) {
709
709
  }
710
710
  function Zr(e, t, r) {
711
711
  var n = {};
712
- return r.isMergeableObject(e) && ot(e).forEach(function(i) {
712
+ return r.isMergeableObject(e) && at(e).forEach(function(i) {
713
713
  n[i] = te(e[i], r);
714
- }), ot(t).forEach(function(i) {
714
+ }), at(t).forEach(function(i) {
715
715
  Jr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Xr(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
716
716
  }), n;
717
717
  }
718
718
  function z(e, t, r) {
719
- r = r || {}, r.arrayMerge = r.arrayMerge || Wr, r.isMergeableObject = r.isMergeableObject || Ur, r.cloneUnlessOtherwiseSpecified = te;
720
- var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
721
- return o ? n ? r.arrayMerge(e, t, r) : Zr(e, t, r) : te(t, r);
719
+ r = r || {}, r.arrayMerge = r.arrayMerge || Wr, r.isMergeableObject = r.isMergeableObject || kr, r.cloneUnlessOtherwiseSpecified = te;
720
+ var n = Array.isArray(t), i = Array.isArray(e), a = n === i;
721
+ return a ? n ? r.arrayMerge(e, t, r) : Zr(e, t, r) : te(t, r);
722
722
  }
723
723
  z.all = function(t, r) {
724
724
  if (!Array.isArray(t))
@@ -729,18 +729,18 @@ z.all = function(t, r) {
729
729
  };
730
730
  var Yr = z, Qr = Yr;
731
731
  const Kr = /* @__PURE__ */ Dr(Qr);
732
- var ke = function(e, t) {
733
- return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
732
+ var Ue = function(e, t) {
733
+ return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
734
734
  r.__proto__ = n;
735
735
  } || function(r, n) {
736
736
  for (var i in n)
737
737
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
738
- }, ke(e, t);
738
+ }, Ue(e, t);
739
739
  };
740
- function Se(e, t) {
740
+ function we(e, t) {
741
741
  if (typeof t != "function" && t !== null)
742
742
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
743
- ke(e, t);
743
+ Ue(e, t);
744
744
  function r() {
745
745
  this.constructor = e;
746
746
  }
@@ -750,8 +750,8 @@ var B = function() {
750
750
  return B = Object.assign || function(t) {
751
751
  for (var r, n = 1, i = arguments.length; n < i; n++) {
752
752
  r = arguments[n];
753
- for (var o in r)
754
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
753
+ for (var a in r)
754
+ Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
755
755
  }
756
756
  return t;
757
757
  }, B.apply(this, arguments);
@@ -767,12 +767,12 @@ function en(e, t) {
767
767
  }
768
768
  function Ce(e, t, r) {
769
769
  if (r || arguments.length === 2)
770
- for (var n = 0, i = t.length, o; n < i; n++)
771
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
772
- return e.concat(o || Array.prototype.slice.call(t));
770
+ for (var n = 0, i = t.length, a; n < i; n++)
771
+ (a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
772
+ return e.concat(a || Array.prototype.slice.call(t));
773
773
  }
774
774
  function Le(e, t) {
775
- var r = t && t.cache ? t.cache : un, n = t && t.serializer ? t.serializer : sn, i = t && t.strategy ? t.strategy : nn;
775
+ var r = t && t.cache ? t.cache : un, n = t && t.serializer ? t.serializer : on, i = t && t.strategy ? t.strategy : nn;
776
776
  return i(e, {
777
777
  cache: r,
778
778
  serializer: n
@@ -782,26 +782,26 @@ function tn(e) {
782
782
  return e == null || typeof e == "number" || typeof e == "boolean";
783
783
  }
784
784
  function rn(e, t, r, n) {
785
- var i = tn(n) ? n : r(n), o = t.get(i);
786
- return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
785
+ var i = tn(n) ? n : r(n), a = t.get(i);
786
+ return typeof a == "undefined" && (a = e.call(this, n), t.set(i, a)), a;
787
787
  }
788
788
  function It(e, t, r) {
789
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
790
- return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
789
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), a = t.get(i);
790
+ return typeof a == "undefined" && (a = e.apply(this, n), t.set(i, a)), a;
791
791
  }
792
- function Nt(e, t, r, n, i) {
792
+ function Mt(e, t, r, n, i) {
793
793
  return r.bind(t, e, n, i);
794
794
  }
795
795
  function nn(e, t) {
796
796
  var r = e.length === 1 ? rn : It;
797
- return Nt(e, this, r, t.cache.create(), t.serializer);
797
+ return Mt(e, this, r, t.cache.create(), t.serializer);
798
798
  }
799
- function on(e, t) {
800
- return Nt(e, this, It, t.cache.create(), t.serializer);
799
+ function an(e, t) {
800
+ return Mt(e, this, It, t.cache.create(), t.serializer);
801
801
  }
802
- var sn = function() {
802
+ var on = function() {
803
803
  return JSON.stringify(arguments);
804
- }, an = (
804
+ }, sn = (
805
805
  /** @class */
806
806
  function() {
807
807
  function e() {
@@ -815,16 +815,16 @@ var sn = function() {
815
815
  }()
816
816
  ), un = {
817
817
  create: function() {
818
- return new an();
818
+ return new sn();
819
819
  }
820
820
  }, Ie = {
821
- variadic: on
821
+ variadic: an
822
822
  }, ve = function() {
823
823
  return ve = Object.assign || function(t) {
824
824
  for (var r, n = 1, i = arguments.length; n < i; n++) {
825
825
  r = arguments[n];
826
- for (var o in r)
827
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
826
+ for (var a in r)
827
+ Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
828
828
  }
829
829
  return t;
830
830
  }, ve.apply(this, arguments);
@@ -841,13 +841,13 @@ var j;
841
841
  (function(e) {
842
842
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
843
843
  })(j || (j = {}));
844
- function st(e) {
844
+ function ot(e) {
845
845
  return e.type === v.literal;
846
846
  }
847
847
  function ln(e) {
848
848
  return e.type === v.argument;
849
849
  }
850
- function Mt(e) {
850
+ function Nt(e) {
851
851
  return e.type === v.number;
852
852
  }
853
853
  function Rt(e) {
@@ -859,13 +859,13 @@ function $t(e) {
859
859
  function Dt(e) {
860
860
  return e.type === v.select;
861
861
  }
862
- function Ut(e) {
862
+ function kt(e) {
863
863
  return e.type === v.plural;
864
864
  }
865
865
  function hn(e) {
866
866
  return e.type === v.pound;
867
867
  }
868
- function kt(e) {
868
+ function Ut(e) {
869
869
  return e.type === v.tag;
870
870
  }
871
871
  function Gt(e) {
@@ -966,15 +966,15 @@ function fn(e) {
966
966
  return "";
967
967
  }), t;
968
968
  }
969
- var _ = function() {
970
- return _ = Object.assign || function(t) {
969
+ var E = function() {
970
+ return E = Object.assign || function(t) {
971
971
  for (var r, n = 1, i = arguments.length; n < i; n++) {
972
972
  r = arguments[n];
973
- for (var o in r)
974
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
973
+ for (var a in r)
974
+ Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
975
975
  }
976
976
  return t;
977
- }, _.apply(this, arguments);
977
+ }, E.apply(this, arguments);
978
978
  };
979
979
  var mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
980
980
  function dn(e) {
@@ -983,22 +983,22 @@ function dn(e) {
983
983
  for (var t = e.split(mn).filter(function(f) {
984
984
  return f.length > 0;
985
985
  }), r = [], n = 0, i = t; n < i.length; n++) {
986
- var o = i[n], s = o.split("/");
987
- if (s.length === 0)
986
+ var a = i[n], o = a.split("/");
987
+ if (o.length === 0)
988
988
  throw new Error("Invalid number skeleton");
989
- for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
989
+ for (var s = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
990
990
  var c = h[u];
991
991
  if (c.length === 0)
992
992
  throw new Error("Invalid number skeleton");
993
993
  }
994
- r.push({ stem: a, options: l });
994
+ r.push({ stem: s, options: l });
995
995
  }
996
996
  return r;
997
997
  }
998
998
  function pn(e) {
999
999
  return e.replace(/^(.*?)-/, "");
1000
1000
  }
1001
- var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, bn = /(\*)(0+)|(#+)(0+)|(0+)/g, jt = /^(0+)$/;
1001
+ var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, bn = /(\*)(0+)|(#+)(0+)|(0+)/g, jt = /^(0+)$/;
1002
1002
  function ut(e) {
1003
1003
  var t = {};
1004
1004
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zt, function(r, n, i) {
@@ -1098,13 +1098,13 @@ function yn(e) {
1098
1098
  t.notation = "compact", t.compactDisplay = "long";
1099
1099
  continue;
1100
1100
  case "scientific":
1101
- t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1102
- return _(_({}, l), lt(u));
1101
+ t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1102
+ return E(E({}, l), lt(u));
1103
1103
  }, {}));
1104
1104
  continue;
1105
1105
  case "engineering":
1106
- t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1107
- return _(_({}, l), lt(u));
1106
+ t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1107
+ return E(E({}, l), lt(u));
1108
1108
  }, {}));
1109
1109
  continue;
1110
1110
  case "notation-simple":
@@ -1166,24 +1166,24 @@ function yn(e) {
1166
1166
  t.minimumIntegerDigits = i.stem.length;
1167
1167
  continue;
1168
1168
  }
1169
- if (at.test(i.stem)) {
1169
+ if (st.test(i.stem)) {
1170
1170
  if (i.options.length > 1)
1171
1171
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1172
- i.stem.replace(at, function(l, u, h, c, f, p) {
1172
+ i.stem.replace(st, function(l, u, h, c, f, p) {
1173
1173
  return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1174
1174
  });
1175
- var o = i.options[0];
1176
- o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), ut(o)));
1175
+ var a = i.options[0];
1176
+ a === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = E(E({}, t), ut(a)));
1177
1177
  continue;
1178
1178
  }
1179
1179
  if (zt.test(i.stem)) {
1180
- t = _(_({}, t), ut(i.stem));
1180
+ t = E(E({}, t), ut(i.stem));
1181
1181
  continue;
1182
1182
  }
1183
- var s = Vt(i.stem);
1184
- s && (t = _(_({}, t), s));
1185
- var a = gn(i.stem);
1186
- a && (t = _(_({}, t), a));
1183
+ var o = Vt(i.stem);
1184
+ o && (t = E(E({}, t), o));
1185
+ var s = gn(i.stem);
1186
+ s && (t = E(E({}, t), s));
1187
1187
  }
1188
1188
  return t;
1189
1189
  }
@@ -2606,19 +2606,19 @@ function vn(e, t) {
2606
2606
  for (var r = "", n = 0; n < e.length; n++) {
2607
2607
  var i = e.charAt(n);
2608
2608
  if (i === "j") {
2609
- for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2610
- o++, n++;
2611
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = _n(t);
2612
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2609
+ for (var a = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2610
+ a++, n++;
2611
+ var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), l = "a", u = En(t);
2612
+ for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2613
2613
  r += l;
2614
- for (; s-- > 0; )
2614
+ for (; o-- > 0; )
2615
2615
  r = u + r;
2616
2616
  } else
2617
2617
  i === "J" ? r += "H" : r += i;
2618
2618
  }
2619
2619
  return r;
2620
2620
  }
2621
- function _n(e) {
2621
+ function En(e) {
2622
2622
  var t = e.hourCycle;
2623
2623
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2624
2624
  e.hourCycles && // @ts-ignore
@@ -2640,16 +2640,16 @@ function _n(e) {
2640
2640
  var i = de[n || ""] || de[r || ""] || de["".concat(r, "-001")] || de["001"];
2641
2641
  return i[0];
2642
2642
  }
2643
- var Ne, En = new RegExp("^".concat(Ft.source, "*")), xn = new RegExp("".concat(Ft.source, "*$"));
2643
+ var Me, _n = new RegExp("^".concat(Ft.source, "*")), xn = new RegExp("".concat(Ft.source, "*$"));
2644
2644
  function y(e, t) {
2645
2645
  return { start: e, end: t };
2646
2646
  }
2647
- var Tn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Hn = !!String.fromCodePoint, Sn = !!Object.fromEntries, wn = !!String.prototype.codePointAt, An = !!String.prototype.trimStart, Bn = !!String.prototype.trimEnd, Pn = !!Number.isSafeInteger, On = Pn ? Number.isSafeInteger : function(e) {
2647
+ var Tn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Hn = !!String.fromCodePoint, wn = !!Object.fromEntries, An = !!String.prototype.codePointAt, Sn = !!String.prototype.trimStart, Bn = !!String.prototype.trimEnd, Pn = !!Number.isSafeInteger, On = Pn ? Number.isSafeInteger : function(e) {
2648
2648
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2649
2649
  }, Fe = !0;
2650
2650
  try {
2651
2651
  var Cn = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2652
- Fe = ((Ne = Cn.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
2652
+ Fe = ((Me = Cn.exec("a")) === null || Me === void 0 ? void 0 : Me[0]) === "a";
2653
2653
  } catch (e) {
2654
2654
  Fe = !1;
2655
2655
  }
@@ -2668,26 +2668,26 @@ var ht = Tn ? (
2668
2668
  function() {
2669
2669
  for (var t = [], r = 0; r < arguments.length; r++)
2670
2670
  t[r] = arguments[r];
2671
- for (var n = "", i = t.length, o = 0, s; i > o; ) {
2672
- if (s = t[o++], s > 1114111)
2673
- throw RangeError(s + " is not a valid code point");
2674
- n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2671
+ for (var n = "", i = t.length, a = 0, o; i > a; ) {
2672
+ if (o = t[a++], o > 1114111)
2673
+ throw RangeError(o + " is not a valid code point");
2674
+ n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2675
2675
  }
2676
2676
  return n;
2677
2677
  }
2678
2678
  ), ct = (
2679
2679
  // native
2680
- Sn ? Object.fromEntries : (
2680
+ wn ? Object.fromEntries : (
2681
2681
  // Ponyfill
2682
2682
  function(t) {
2683
2683
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2684
- var o = i[n], s = o[0], a = o[1];
2685
- r[s] = a;
2684
+ var a = i[n], o = a[0], s = a[1];
2685
+ r[o] = s;
2686
2686
  }
2687
2687
  return r;
2688
2688
  }
2689
2689
  )
2690
- ), Wt = wn ? (
2690
+ ), Wt = An ? (
2691
2691
  // Native
2692
2692
  function(t, r) {
2693
2693
  return t.codePointAt(r);
@@ -2697,11 +2697,11 @@ var ht = Tn ? (
2697
2697
  function(t, r) {
2698
2698
  var n = t.length;
2699
2699
  if (!(r < 0 || r >= n)) {
2700
- var i = t.charCodeAt(r), o;
2701
- return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2700
+ var i = t.charCodeAt(r), a;
2701
+ return i < 55296 || i > 56319 || r + 1 === n || (a = t.charCodeAt(r + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2702
2702
  }
2703
2703
  }
2704
- ), Ln = An ? (
2704
+ ), Ln = Sn ? (
2705
2705
  // Native
2706
2706
  function(t) {
2707
2707
  return t.trimStart();
@@ -2709,7 +2709,7 @@ var ht = Tn ? (
2709
2709
  ) : (
2710
2710
  // Ponyfill
2711
2711
  function(t) {
2712
- return t.replace(En, "");
2712
+ return t.replace(_n, "");
2713
2713
  }
2714
2714
  ), In = Bn ? (
2715
2715
  // Native
@@ -2744,7 +2744,7 @@ if (Fe) {
2744
2744
  }
2745
2745
  return ze.apply(void 0, n);
2746
2746
  };
2747
- var Nn = (
2747
+ var Mn = (
2748
2748
  /** @class */
2749
2749
  function() {
2750
2750
  function e(t, r) {
@@ -2756,35 +2756,35 @@ var Nn = (
2756
2756
  return this.parseMessage(0, "", !1);
2757
2757
  }, e.prototype.parseMessage = function(t, r, n) {
2758
2758
  for (var i = []; !this.isEOF(); ) {
2759
- var o = this.char();
2760
- if (o === 123) {
2761
- var s = this.parseArgument(t, n);
2762
- if (s.err)
2763
- return s;
2764
- i.push(s.val);
2759
+ var a = this.char();
2760
+ if (a === 123) {
2761
+ var o = this.parseArgument(t, n);
2762
+ if (o.err)
2763
+ return o;
2764
+ i.push(o.val);
2765
2765
  } else {
2766
- if (o === 125 && t > 0)
2766
+ if (a === 125 && t > 0)
2767
2767
  break;
2768
- if (o === 35 && (r === "plural" || r === "selectordinal")) {
2769
- var a = this.clonePosition();
2768
+ if (a === 35 && (r === "plural" || r === "selectordinal")) {
2769
+ var s = this.clonePosition();
2770
2770
  this.bump(), i.push({
2771
2771
  type: v.pound,
2772
- location: y(a, this.clonePosition())
2772
+ location: y(s, this.clonePosition())
2773
2773
  });
2774
- } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2774
+ } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
2775
2775
  if (n)
2776
2776
  break;
2777
2777
  return this.error(g.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
2778
- } else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
2779
- var s = this.parseTag(t, r);
2780
- if (s.err)
2781
- return s;
2782
- i.push(s.val);
2778
+ } else if (a === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
2779
+ var o = this.parseTag(t, r);
2780
+ if (o.err)
2781
+ return o;
2782
+ i.push(o.val);
2783
2783
  } else {
2784
- var s = this.parseLiteral(t, r);
2785
- if (s.err)
2786
- return s;
2787
- i.push(s.val);
2784
+ var o = this.parseLiteral(t, r);
2785
+ if (o.err)
2786
+ return o;
2787
+ i.push(o.val);
2788
2788
  }
2789
2789
  }
2790
2790
  }
@@ -2803,23 +2803,23 @@ var Nn = (
2803
2803
  err: null
2804
2804
  };
2805
2805
  if (this.bumpIf(">")) {
2806
- var o = this.parseMessage(t + 1, r, !0);
2807
- if (o.err)
2808
- return o;
2809
- var s = o.val, a = this.clonePosition();
2806
+ var a = this.parseMessage(t + 1, r, !0);
2807
+ if (a.err)
2808
+ return a;
2809
+ var o = a.val, s = this.clonePosition();
2810
2810
  if (this.bumpIf("</")) {
2811
2811
  if (this.isEOF() || !Ve(this.char()))
2812
- return this.error(g.INVALID_TAG, y(a, this.clonePosition()));
2812
+ return this.error(g.INVALID_TAG, y(s, this.clonePosition()));
2813
2813
  var l = this.clonePosition(), u = this.parseTagName();
2814
2814
  return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2815
2815
  val: {
2816
2816
  type: v.tag,
2817
2817
  value: i,
2818
- children: s,
2818
+ children: o,
2819
2819
  location: y(n, this.clonePosition())
2820
2820
  },
2821
2821
  err: null
2822
- } : this.error(g.INVALID_TAG, y(a, this.clonePosition())));
2822
+ } : this.error(g.INVALID_TAG, y(s, this.clonePosition())));
2823
2823
  } else
2824
2824
  return this.error(g.UNCLOSED_TAG, y(n, this.clonePosition()));
2825
2825
  } else
@@ -2831,21 +2831,21 @@ var Nn = (
2831
2831
  return this.message.slice(t, this.offset());
2832
2832
  }, e.prototype.parseLiteral = function(t, r) {
2833
2833
  for (var n = this.clonePosition(), i = ""; ; ) {
2834
- var o = this.tryParseQuote(r);
2834
+ var a = this.tryParseQuote(r);
2835
+ if (a) {
2836
+ i += a;
2837
+ continue;
2838
+ }
2839
+ var o = this.tryParseUnquoted(t, r);
2835
2840
  if (o) {
2836
2841
  i += o;
2837
2842
  continue;
2838
2843
  }
2839
- var s = this.tryParseUnquoted(t, r);
2844
+ var s = this.tryParseLeftAngleBracket();
2840
2845
  if (s) {
2841
2846
  i += s;
2842
2847
  continue;
2843
2848
  }
2844
- var a = this.tryParseLeftAngleBracket();
2845
- if (a) {
2846
- i += a;
2847
- continue;
2848
- }
2849
2849
  break;
2850
2850
  }
2851
2851
  var l = y(n, this.clonePosition());
@@ -2855,7 +2855,7 @@ var Nn = (
2855
2855
  };
2856
2856
  }, e.prototype.tryParseLeftAngleBracket = function() {
2857
2857
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2858
- !Mn(this.peek() || 0)) ? (this.bump(), "<") : null;
2858
+ !Nn(this.peek() || 0)) ? (this.bump(), "<") : null;
2859
2859
  }, e.prototype.tryParseQuote = function(t) {
2860
2860
  if (this.isEOF() || this.char() !== 39)
2861
2861
  return null;
@@ -2925,13 +2925,13 @@ var Nn = (
2925
2925
  }, e.prototype.parseIdentifierIfPossible = function() {
2926
2926
  var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
2927
2927
  this.bumpTo(i);
2928
- var o = this.clonePosition(), s = y(t, o);
2929
- return { value: n, location: s };
2928
+ var a = this.clonePosition(), o = y(t, a);
2929
+ return { value: n, location: o };
2930
2930
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2931
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2932
- switch (a) {
2931
+ var a, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2932
+ switch (s) {
2933
2933
  case "":
2934
- return this.error(g.EXPECT_ARGUMENT_TYPE, y(s, l));
2934
+ return this.error(g.EXPECT_ARGUMENT_TYPE, y(o, l));
2935
2935
  case "number":
2936
2936
  case "date":
2937
2937
  case "time": {
@@ -2951,18 +2951,18 @@ var Nn = (
2951
2951
  var b = this.tryParseArgumentClose(i);
2952
2952
  if (b.err)
2953
2953
  return b;
2954
- var E = y(i, this.clonePosition());
2954
+ var _ = y(i, this.clonePosition());
2955
2955
  if (u && ht(u == null ? void 0 : u.style, "::", 0)) {
2956
2956
  var T = Ln(u.style.slice(2));
2957
- if (a === "number") {
2957
+ if (s === "number") {
2958
2958
  var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
2959
2959
  return c.err ? c : {
2960
- val: { type: v.number, value: n, location: E, style: c.val },
2960
+ val: { type: v.number, value: n, location: _, style: c.val },
2961
2961
  err: null
2962
2962
  };
2963
2963
  } else {
2964
2964
  if (T.length === 0)
2965
- return this.error(g.EXPECT_DATE_TIME_SKELETON, E);
2965
+ return this.error(g.EXPECT_DATE_TIME_SKELETON, _);
2966
2966
  var x = T;
2967
2967
  this.locale && (x = vn(T, this.locale));
2968
2968
  var f = {
@@ -2970,19 +2970,19 @@ var Nn = (
2970
2970
  pattern: x,
2971
2971
  location: u.styleLocation,
2972
2972
  parsedOptions: this.shouldParseSkeletons ? fn(x) : {}
2973
- }, d = a === "date" ? v.date : v.time;
2973
+ }, d = s === "date" ? v.date : v.time;
2974
2974
  return {
2975
- val: { type: d, value: n, location: E, style: f },
2975
+ val: { type: d, value: n, location: _, style: f },
2976
2976
  err: null
2977
2977
  };
2978
2978
  }
2979
2979
  }
2980
2980
  return {
2981
2981
  val: {
2982
- type: a === "number" ? v.number : a === "date" ? v.date : v.time,
2982
+ type: s === "number" ? v.number : s === "date" ? v.date : v.time,
2983
2983
  value: n,
2984
- location: E,
2985
- style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
2984
+ location: _,
2985
+ style: (a = u == null ? void 0 : u.style) !== null && a !== void 0 ? a : null
2986
2986
  },
2987
2987
  err: null
2988
2988
  };
@@ -2994,28 +2994,28 @@ var Nn = (
2994
2994
  if (this.bumpSpace(), !this.bumpIf(","))
2995
2995
  return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(m, ve({}, m)));
2996
2996
  this.bumpSpace();
2997
- var S = this.parseIdentifierIfPossible(), A = 0;
2998
- if (a !== "select" && S.value === "offset") {
2997
+ var w = this.parseIdentifierIfPossible(), S = 0;
2998
+ if (s !== "select" && w.value === "offset") {
2999
2999
  if (!this.bumpIf(":"))
3000
3000
  return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
3001
3001
  this.bumpSpace();
3002
3002
  var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3003
3003
  if (c.err)
3004
3004
  return c;
3005
- this.bumpSpace(), S = this.parseIdentifierIfPossible(), A = c.val;
3005
+ this.bumpSpace(), w = this.parseIdentifierIfPossible(), S = c.val;
3006
3006
  }
3007
- var se = this.tryParsePluralOrSelectOptions(t, a, r, S);
3008
- if (se.err)
3009
- return se;
3007
+ var oe = this.tryParsePluralOrSelectOptions(t, s, r, w);
3008
+ if (oe.err)
3009
+ return oe;
3010
3010
  var b = this.tryParseArgumentClose(i);
3011
3011
  if (b.err)
3012
3012
  return b;
3013
3013
  var Ye = y(i, this.clonePosition());
3014
- return a === "select" ? {
3014
+ return s === "select" ? {
3015
3015
  val: {
3016
3016
  type: v.select,
3017
3017
  value: n,
3018
- options: ct(se.val),
3018
+ options: ct(oe.val),
3019
3019
  location: Ye
3020
3020
  },
3021
3021
  err: null
@@ -3023,16 +3023,16 @@ var Nn = (
3023
3023
  val: {
3024
3024
  type: v.plural,
3025
3025
  value: n,
3026
- options: ct(se.val),
3027
- offset: A,
3028
- pluralType: a === "plural" ? "cardinal" : "ordinal",
3026
+ options: ct(oe.val),
3027
+ offset: S,
3028
+ pluralType: s === "plural" ? "cardinal" : "ordinal",
3029
3029
  location: Ye
3030
3030
  },
3031
3031
  err: null
3032
3032
  };
3033
3033
  }
3034
3034
  default:
3035
- return this.error(g.INVALID_ARGUMENT_TYPE, y(s, l));
3035
+ return this.error(g.INVALID_ARGUMENT_TYPE, y(o, l));
3036
3036
  }
3037
3037
  }, e.prototype.tryParseArgumentClose = function(t) {
3038
3038
  return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3088,7 +3088,7 @@ var Nn = (
3088
3088
  err: null
3089
3089
  };
3090
3090
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3091
- for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3091
+ for (var a, o = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3092
3092
  if (u.length === 0) {
3093
3093
  var c = this.clonePosition();
3094
3094
  if (r !== "select" && this.bumpIf("=")) {
@@ -3101,37 +3101,37 @@ var Nn = (
3101
3101
  }
3102
3102
  if (l.has(u))
3103
3103
  return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3104
- u === "other" && (s = !0), this.bumpSpace();
3104
+ u === "other" && (o = !0), this.bumpSpace();
3105
3105
  var p = this.clonePosition();
3106
3106
  if (!this.bumpIf("{"))
3107
3107
  return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
3108
3108
  var b = this.parseMessage(t + 1, r, n);
3109
3109
  if (b.err)
3110
3110
  return b;
3111
- var E = this.tryParseArgumentClose(p);
3112
- if (E.err)
3113
- return E;
3114
- a.push([
3111
+ var _ = this.tryParseArgumentClose(p);
3112
+ if (_.err)
3113
+ return _;
3114
+ s.push([
3115
3115
  u,
3116
3116
  {
3117
3117
  value: b.val,
3118
3118
  location: y(p, this.clonePosition())
3119
3119
  }
3120
- ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
3120
+ ]), l.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, h = a.location;
3121
3121
  }
3122
- return a.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(g.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3122
+ return s.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(g.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3123
3123
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3124
3124
  var n = 1, i = this.clonePosition();
3125
3125
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3126
- for (var o = !1, s = 0; !this.isEOF(); ) {
3127
- var a = this.char();
3128
- if (a >= 48 && a <= 57)
3129
- o = !0, s = s * 10 + (a - 48), this.bump();
3126
+ for (var a = !1, o = 0; !this.isEOF(); ) {
3127
+ var s = this.char();
3128
+ if (s >= 48 && s <= 57)
3129
+ a = !0, o = o * 10 + (s - 48), this.bump();
3130
3130
  else
3131
3131
  break;
3132
3132
  }
3133
3133
  var l = y(i, this.clonePosition());
3134
- return o ? (s *= n, On(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3134
+ return a ? (o *= n, On(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
3135
3135
  }, e.prototype.offset = function() {
3136
3136
  return this.position.offset;
3137
3137
  }, e.prototype.isEOF = function() {
@@ -3200,7 +3200,7 @@ var Nn = (
3200
3200
  function Ve(e) {
3201
3201
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3202
3202
  }
3203
- function Mn(e) {
3203
+ function Nn(e) {
3204
3204
  return Ve(e) || e === 47;
3205
3205
  }
3206
3206
  function Rn(e) {
@@ -3214,16 +3214,16 @@ function $n(e) {
3214
3214
  }
3215
3215
  function We(e) {
3216
3216
  e.forEach(function(t) {
3217
- if (delete t.location, Dt(t) || Ut(t))
3217
+ if (delete t.location, Dt(t) || kt(t))
3218
3218
  for (var r in t.options)
3219
3219
  delete t.options[r].location, We(t.options[r].value);
3220
3220
  else
3221
- Mt(t) && Gt(t.style) || (Rt(t) || $t(t)) && Ge(t.style) ? delete t.style.location : kt(t) && We(t.children);
3221
+ Nt(t) && Gt(t.style) || (Rt(t) || $t(t)) && Ge(t.style) ? delete t.style.location : Ut(t) && We(t.children);
3222
3222
  });
3223
3223
  }
3224
3224
  function Dn(e, t) {
3225
3225
  t === void 0 && (t = {}), t = ve({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3226
- var r = new Nn(e, t).parse();
3226
+ var r = new Mn(e, t).parse();
3227
3227
  if (r.err) {
3228
3228
  var n = SyntaxError(g[r.err.kind]);
3229
3229
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
@@ -3234,13 +3234,13 @@ var V;
3234
3234
  (function(e) {
3235
3235
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3236
3236
  })(V || (V = {}));
3237
- var we = (
3237
+ var Ae = (
3238
3238
  /** @class */
3239
3239
  function(e) {
3240
- Se(t, e);
3240
+ we(t, e);
3241
3241
  function t(r, n, i) {
3242
- var o = e.call(this, r) || this;
3243
- return o.code = n, o.originalMessage = i, o;
3242
+ var a = e.call(this, r) || this;
3243
+ return a.code = n, a.originalMessage = i, a;
3244
3244
  }
3245
3245
  return t.prototype.toString = function() {
3246
3246
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
@@ -3249,30 +3249,30 @@ var we = (
3249
3249
  ), mt = (
3250
3250
  /** @class */
3251
3251
  function(e) {
3252
- Se(t, e);
3253
- function t(r, n, i, o) {
3254
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, o) || this;
3252
+ we(t, e);
3253
+ function t(r, n, i, a) {
3254
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, a) || this;
3255
3255
  }
3256
3256
  return t;
3257
- }(we)
3258
- ), Un = (
3257
+ }(Ae)
3258
+ ), kn = (
3259
3259
  /** @class */
3260
3260
  function(e) {
3261
- Se(t, e);
3261
+ we(t, e);
3262
3262
  function t(r, n, i) {
3263
3263
  return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
3264
3264
  }
3265
3265
  return t;
3266
- }(we)
3267
- ), kn = (
3266
+ }(Ae)
3267
+ ), Un = (
3268
3268
  /** @class */
3269
3269
  function(e) {
3270
- Se(t, e);
3270
+ we(t, e);
3271
3271
  function t(r, n) {
3272
3272
  return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
3273
3273
  }
3274
3274
  return t;
3275
- }(we)
3275
+ }(Ae)
3276
3276
  ), H;
3277
3277
  (function(e) {
3278
3278
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
@@ -3286,36 +3286,36 @@ function Gn(e) {
3286
3286
  function Fn(e) {
3287
3287
  return typeof e == "function";
3288
3288
  }
3289
- function ge(e, t, r, n, i, o, s) {
3290
- if (e.length === 1 && st(e[0]))
3289
+ function ge(e, t, r, n, i, a, o) {
3290
+ if (e.length === 1 && ot(e[0]))
3291
3291
  return [
3292
3292
  {
3293
3293
  type: H.literal,
3294
3294
  value: e[0].value
3295
3295
  }
3296
3296
  ];
3297
- for (var a = [], l = 0, u = e; l < u.length; l++) {
3297
+ for (var s = [], l = 0, u = e; l < u.length; l++) {
3298
3298
  var h = u[l];
3299
- if (st(h)) {
3300
- a.push({
3299
+ if (ot(h)) {
3300
+ s.push({
3301
3301
  type: H.literal,
3302
3302
  value: h.value
3303
3303
  });
3304
3304
  continue;
3305
3305
  }
3306
3306
  if (hn(h)) {
3307
- typeof o == "number" && a.push({
3307
+ typeof a == "number" && s.push({
3308
3308
  type: H.literal,
3309
- value: r.getNumberFormat(t).format(o)
3309
+ value: r.getNumberFormat(t).format(a)
3310
3310
  });
3311
3311
  continue;
3312
3312
  }
3313
3313
  var c = h.value;
3314
3314
  if (!(i && c in i))
3315
- throw new kn(c, s);
3315
+ throw new Un(c, o);
3316
3316
  var f = i[c];
3317
3317
  if (ln(h)) {
3318
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3318
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
3319
3319
  type: typeof f == "string" ? H.literal : H.object,
3320
3320
  value: f
3321
3321
  });
@@ -3323,7 +3323,7 @@ function ge(e, t, r, n, i, o, s) {
3323
3323
  }
3324
3324
  if (Rt(h)) {
3325
3325
  var p = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
3326
- a.push({
3326
+ s.push({
3327
3327
  type: H.literal,
3328
3328
  value: r.getDateTimeFormat(t, p).format(f)
3329
3329
  });
@@ -3331,58 +3331,58 @@ function ge(e, t, r, n, i, o, s) {
3331
3331
  }
3332
3332
  if ($t(h)) {
3333
3333
  var p = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
3334
- a.push({
3334
+ s.push({
3335
3335
  type: H.literal,
3336
3336
  value: r.getDateTimeFormat(t, p).format(f)
3337
3337
  });
3338
3338
  continue;
3339
3339
  }
3340
- if (Mt(h)) {
3340
+ if (Nt(h)) {
3341
3341
  var p = typeof h.style == "string" ? n.number[h.style] : Gt(h.style) ? h.style.parsedOptions : void 0;
3342
- p && p.scale && (f = f * (p.scale || 1)), a.push({
3342
+ p && p.scale && (f = f * (p.scale || 1)), s.push({
3343
3343
  type: H.literal,
3344
3344
  value: r.getNumberFormat(t, p).format(f)
3345
3345
  });
3346
3346
  continue;
3347
3347
  }
3348
- if (kt(h)) {
3349
- var b = h.children, E = h.value, T = i[E];
3348
+ if (Ut(h)) {
3349
+ var b = h.children, _ = h.value, T = i[_];
3350
3350
  if (!Fn(T))
3351
- throw new Un(E, "function", s);
3352
- var x = ge(b, t, r, n, i, o), d = T(x.map(function(A) {
3353
- return A.value;
3351
+ throw new kn(_, "function", o);
3352
+ var x = ge(b, t, r, n, i, a), d = T(x.map(function(S) {
3353
+ return S.value;
3354
3354
  }));
3355
- Array.isArray(d) || (d = [d]), a.push.apply(a, d.map(function(A) {
3355
+ Array.isArray(d) || (d = [d]), s.push.apply(s, d.map(function(S) {
3356
3356
  return {
3357
- type: typeof A == "string" ? H.literal : H.object,
3358
- value: A
3357
+ type: typeof S == "string" ? H.literal : H.object,
3358
+ value: S
3359
3359
  };
3360
3360
  }));
3361
3361
  }
3362
3362
  if (Dt(h)) {
3363
3363
  var m = h.options[f] || h.options.other;
3364
3364
  if (!m)
3365
- throw new mt(h.value, f, Object.keys(h.options), s);
3366
- a.push.apply(a, ge(m.value, t, r, n, i));
3365
+ throw new mt(h.value, f, Object.keys(h.options), o);
3366
+ s.push.apply(s, ge(m.value, t, r, n, i));
3367
3367
  continue;
3368
3368
  }
3369
- if (Ut(h)) {
3369
+ if (kt(h)) {
3370
3370
  var m = h.options["=".concat(f)];
3371
3371
  if (!m) {
3372
3372
  if (!Intl.PluralRules)
3373
- throw new we(`Intl.PluralRules is not available in this environment.
3373
+ throw new Ae(`Intl.PluralRules is not available in this environment.
3374
3374
  Try polyfilling it using "@formatjs/intl-pluralrules"
3375
- `, V.MISSING_INTL_API, s);
3376
- var S = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3377
- m = h.options[S] || h.options.other;
3375
+ `, V.MISSING_INTL_API, o);
3376
+ var w = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3377
+ m = h.options[w] || h.options.other;
3378
3378
  }
3379
3379
  if (!m)
3380
- throw new mt(h.value, f, Object.keys(h.options), s);
3381
- a.push.apply(a, ge(m.value, t, r, n, i, f - (h.offset || 0)));
3380
+ throw new mt(h.value, f, Object.keys(h.options), o);
3381
+ s.push.apply(s, ge(m.value, t, r, n, i, f - (h.offset || 0)));
3382
3382
  continue;
3383
3383
  }
3384
3384
  }
3385
- return Gn(a);
3385
+ return Gn(s);
3386
3386
  }
3387
3387
  function zn(e, t) {
3388
3388
  return t ? B(B(B({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
@@ -3394,7 +3394,7 @@ function jn(e, t) {
3394
3394
  return r[n] = zn(e[n], t[n]), r;
3395
3395
  }, B({}, e)) : e;
3396
3396
  }
3397
- function Me(e) {
3397
+ function Ne(e) {
3398
3398
  return {
3399
3399
  create: function() {
3400
3400
  return {
@@ -3419,7 +3419,7 @@ function Vn(e) {
3419
3419
  r[n] = arguments[n];
3420
3420
  return new ((t = Intl.NumberFormat).bind.apply(t, Ce([void 0], r, !1)))();
3421
3421
  }, {
3422
- cache: Me(e.number),
3422
+ cache: Ne(e.number),
3423
3423
  strategy: Ie.variadic
3424
3424
  }),
3425
3425
  getDateTimeFormat: Le(function() {
@@ -3427,7 +3427,7 @@ function Vn(e) {
3427
3427
  r[n] = arguments[n];
3428
3428
  return new ((t = Intl.DateTimeFormat).bind.apply(t, Ce([void 0], r, !1)))();
3429
3429
  }, {
3430
- cache: Me(e.dateTime),
3430
+ cache: Ne(e.dateTime),
3431
3431
  strategy: Ie.variadic
3432
3432
  }),
3433
3433
  getPluralRules: Le(function() {
@@ -3435,7 +3435,7 @@ function Vn(e) {
3435
3435
  r[n] = arguments[n];
3436
3436
  return new ((t = Intl.PluralRules).bind.apply(t, Ce([void 0], r, !1)))();
3437
3437
  }, {
3438
- cache: Me(e.pluralRules),
3438
+ cache: Ne(e.pluralRules),
3439
3439
  strategy: Ie.variadic
3440
3440
  })
3441
3441
  };
@@ -3445,13 +3445,13 @@ var Jt = (
3445
3445
  function() {
3446
3446
  function e(t, r, n, i) {
3447
3447
  r === void 0 && (r = e.defaultLocale);
3448
- var o = this;
3448
+ var a = this;
3449
3449
  if (this.formatterCache = {
3450
3450
  number: {},
3451
3451
  dateTime: {},
3452
3452
  pluralRules: {}
3453
3453
  }, this.format = function(l) {
3454
- var u = o.formatToParts(l);
3454
+ var u = a.formatToParts(l);
3455
3455
  if (u.length === 1)
3456
3456
  return u[0].value;
3457
3457
  var h = u.reduce(function(c, f) {
@@ -3459,21 +3459,21 @@ var Jt = (
3459
3459
  }, []);
3460
3460
  return h.length <= 1 ? h[0] || "" : h;
3461
3461
  }, this.formatToParts = function(l) {
3462
- return ge(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3462
+ return ge(a.ast, a.locales, a.formatters, a.formats, l, void 0, a.message);
3463
3463
  }, this.resolvedOptions = function() {
3464
3464
  var l;
3465
3465
  return {
3466
- locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3466
+ locale: ((l = a.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3467
3467
  };
3468
3468
  }, this.getAst = function() {
3469
- return o.ast;
3469
+ return a.ast;
3470
3470
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3471
3471
  if (this.message = t, !e.__parse)
3472
3472
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3473
- var s = i || {};
3474
- s.formatters;
3475
- var a = en(s, ["formatters"]);
3476
- this.ast = e.__parse(t, B(B({}, a), { locale: this.resolvedLocale }));
3473
+ var o = i || {};
3474
+ o.formatters;
3475
+ var s = en(o, ["formatters"]);
3476
+ this.ast = e.__parse(t, B(B({}, s), { locale: this.resolvedLocale }));
3477
3477
  } else
3478
3478
  this.ast = t;
3479
3479
  if (!Array.isArray(this.ast))
@@ -3562,9 +3562,9 @@ function Wn(e, t) {
3562
3562
  for (let i = 0; i < r.length; i++)
3563
3563
  if (typeof n == "object") {
3564
3564
  if (i > 0) {
3565
- const o = r.slice(i, r.length).join(".");
3566
- if (o in n) {
3567
- n = n[o];
3565
+ const a = r.slice(i, r.length).join(".");
3566
+ if (a in n) {
3567
+ n = n[a];
3568
3568
  break;
3569
3569
  }
3570
3570
  }
@@ -3578,11 +3578,11 @@ const L = {}, Xn = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][
3578
3578
  return;
3579
3579
  if (t in L && e in L[t])
3580
3580
  return L[t][e];
3581
- const r = oe(t);
3581
+ const r = ae(t);
3582
3582
  for (let n = 0; n < r.length; n++) {
3583
- const i = r[n], o = Jn(i, e);
3584
- if (o)
3585
- return Xn(e, t, o);
3583
+ const i = r[n], a = Jn(i, e);
3584
+ if (a)
3585
+ return Xn(e, t, a);
3586
3586
  }
3587
3587
  };
3588
3588
  let Je;
@@ -3602,7 +3602,7 @@ function Jn(e, t) {
3602
3602
  function Zn(e) {
3603
3603
  if (e == null)
3604
3604
  return;
3605
- const t = oe(e);
3605
+ const t = ae(e);
3606
3606
  for (let r = 0; r < t.length; r++) {
3607
3607
  const n = t[r];
3608
3608
  if (Yt(n))
@@ -3625,13 +3625,13 @@ function Kt(e) {
3625
3625
  return ye[e];
3626
3626
  }
3627
3627
  function Qn(e) {
3628
- return oe(e).map((t) => {
3628
+ return ae(e).map((t) => {
3629
3629
  const r = Kt(t);
3630
3630
  return [t, r ? [...r] : []];
3631
3631
  }).filter(([, t]) => t.length > 0);
3632
3632
  }
3633
- function _e(e) {
3634
- return e == null ? !1 : oe(e).some(
3633
+ function Ee(e) {
3634
+ return e == null ? !1 : ae(e).some(
3635
3635
  (t) => {
3636
3636
  var r;
3637
3637
  return (r = Kt(t)) == null ? void 0 : r.size;
@@ -3645,7 +3645,7 @@ function Kn(e, t) {
3645
3645
  }
3646
3646
  const Z = {};
3647
3647
  function er(e) {
3648
- if (!_e(e))
3648
+ if (!Ee(e))
3649
3649
  return e in Z ? Z[e] : Promise.resolve();
3650
3650
  const t = Qn(e);
3651
3651
  return Z[e] = Promise.all(
@@ -3653,7 +3653,7 @@ function er(e) {
3653
3653
  ([r, n]) => Kn(r, n)
3654
3654
  )
3655
3655
  ).then(() => {
3656
- if (_e(e))
3656
+ if (Ee(e))
3657
3657
  return er(e);
3658
3658
  delete Z[e];
3659
3659
  }), Z[e];
@@ -3699,31 +3699,31 @@ const ni = {
3699
3699
  };
3700
3700
  function ii({ locale: e, id: t }) {
3701
3701
  console.warn(
3702
- `[svelte-i18n] The message "${t}" was not found in "${oe(
3702
+ `[svelte-i18n] The message "${t}" was not found in "${ae(
3703
3703
  e
3704
- ).join('", "')}".${_e(N()) ? `
3704
+ ).join('", "')}".${Ee(M()) ? `
3705
3705
 
3706
3706
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3707
3707
  );
3708
3708
  }
3709
- const oi = {
3709
+ const ai = {
3710
3710
  fallbackLocale: null,
3711
3711
  loadingDelay: 200,
3712
3712
  formats: ni,
3713
3713
  warnOnMissingMessages: !0,
3714
3714
  handleMissingMessage: void 0,
3715
3715
  ignoreTag: !0
3716
- }, Q = oi;
3716
+ }, Q = ai;
3717
3717
  function W() {
3718
3718
  return Q;
3719
3719
  }
3720
- function si(e) {
3720
+ function oi(e) {
3721
3721
  const t = e, { formats: r } = t, n = ri(t, ["formats"]);
3722
3722
  let i = e.fallbackLocale;
3723
3723
  if (e.initialLocale)
3724
3724
  try {
3725
3725
  Jt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3726
- } catch (o) {
3726
+ } catch (a) {
3727
3727
  console.warn(
3728
3728
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3729
3729
  );
@@ -3733,7 +3733,7 @@ function si(e) {
3733
3733
  )), Object.assign(Q, n, { initialLocale: i }), r && ("number" in r && Object.assign(Q.formats.number, r.number), "date" in r && Object.assign(Q.formats.date, r.date), "time" in r && Object.assign(Q.formats.time, r.time)), R.set(i);
3734
3734
  }
3735
3735
  const Re = He(!1);
3736
- var ai = Object.defineProperty, ui = Object.defineProperties, li = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, hi = Object.prototype.hasOwnProperty, ci = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fi = (e, t) => {
3736
+ var si = Object.defineProperty, ui = Object.defineProperties, li = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, hi = Object.prototype.hasOwnProperty, ci = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fi = (e, t) => {
3737
3737
  for (var r in t || (t = {}))
3738
3738
  hi.call(t, r) && bt(e, r, t[r]);
3739
3739
  if (pt)
@@ -3742,37 +3742,37 @@ var ai = Object.defineProperty, ui = Object.defineProperties, li = Object.getOwn
3742
3742
  return e;
3743
3743
  }, mi = (e, t) => ui(e, li(t));
3744
3744
  let Xe;
3745
- const Ee = He(null);
3745
+ const _e = He(null);
3746
3746
  function gt(e) {
3747
3747
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3748
3748
  }
3749
- function oe(e, t = W().fallbackLocale) {
3749
+ function ae(e, t = W().fallbackLocale) {
3750
3750
  const r = gt(e);
3751
3751
  return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
3752
3752
  }
3753
- function N() {
3753
+ function M() {
3754
3754
  return Xe != null ? Xe : void 0;
3755
3755
  }
3756
- Ee.subscribe((e) => {
3756
+ _e.subscribe((e) => {
3757
3757
  Xe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3758
3758
  });
3759
3759
  const di = (e) => {
3760
- if (e && Zn(e) && _e(e)) {
3760
+ if (e && Zn(e) && Ee(e)) {
3761
3761
  const { loadingDelay: t } = W();
3762
3762
  let r;
3763
- return typeof window != "undefined" && N() != null && t ? r = window.setTimeout(
3763
+ return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
3764
3764
  () => Re.set(!0),
3765
3765
  t
3766
3766
  ) : Re.set(!0), er(e).then(() => {
3767
- Ee.set(e);
3767
+ _e.set(e);
3768
3768
  }).finally(() => {
3769
3769
  clearTimeout(r), Re.set(!1);
3770
3770
  });
3771
3771
  }
3772
- return Ee.set(e);
3773
- }, R = mi(fi({}, Ee), {
3772
+ return _e.set(e);
3773
+ }, R = mi(fi({}, _e), {
3774
3774
  set: di
3775
- }), Ae = (e) => {
3775
+ }), Se = (e) => {
3776
3776
  const t = /* @__PURE__ */ Object.create(null);
3777
3777
  return (n) => {
3778
3778
  const i = JSON.stringify(n);
@@ -3800,21 +3800,21 @@ const re = (e, t) => {
3800
3800
  if (e in r && t in r[e])
3801
3801
  return r[e][t];
3802
3802
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3803
- }, bi = Ae(
3803
+ }, bi = Se(
3804
3804
  (e) => {
3805
3805
  var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
3806
3806
  if (r == null)
3807
3807
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3808
3808
  return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
3809
3809
  }
3810
- ), gi = Ae(
3810
+ ), gi = Se(
3811
3811
  (e) => {
3812
3812
  var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
3813
3813
  if (r == null)
3814
3814
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3815
3815
  return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
3816
3816
  }
3817
- ), yi = Ae(
3817
+ ), yi = Se(
3818
3818
  (e) => {
3819
3819
  var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
3820
3820
  if (r == null)
@@ -3825,55 +3825,55 @@ const re = (e, t) => {
3825
3825
  }
3826
3826
  ), vi = (e = {}) => {
3827
3827
  var t = e, {
3828
- locale: r = N()
3828
+ locale: r = M()
3829
3829
  } = t, n = J(t, [
3830
3830
  "locale"
3831
3831
  ]);
3832
3832
  return bi(Ze({ locale: r }, n));
3833
- }, _i = (e = {}) => {
3833
+ }, Ei = (e = {}) => {
3834
3834
  var t = e, {
3835
- locale: r = N()
3835
+ locale: r = M()
3836
3836
  } = t, n = J(t, [
3837
3837
  "locale"
3838
3838
  ]);
3839
3839
  return gi(Ze({ locale: r }, n));
3840
- }, Ei = (e = {}) => {
3840
+ }, _i = (e = {}) => {
3841
3841
  var t = e, {
3842
- locale: r = N()
3842
+ locale: r = M()
3843
3843
  } = t, n = J(t, [
3844
3844
  "locale"
3845
3845
  ]);
3846
3846
  return yi(Ze({ locale: r }, n));
3847
- }, xi = Ae(
3847
+ }, xi = Se(
3848
3848
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3849
- (e, t = N()) => new Jt(e, t, W().formats, {
3849
+ (e, t = M()) => new Jt(e, t, W().formats, {
3850
3850
  ignoreTag: W().ignoreTag
3851
3851
  })
3852
3852
  ), Ti = (e, t = {}) => {
3853
- var r, n, i, o;
3854
- let s = t;
3855
- typeof e == "object" && (s = e, e = s.id);
3853
+ var r, n, i, a;
3854
+ let o = t;
3855
+ typeof e == "object" && (o = e, e = o.id);
3856
3856
  const {
3857
- values: a,
3858
- locale: l = N(),
3857
+ values: s,
3858
+ locale: l = M(),
3859
3859
  default: u
3860
- } = s;
3860
+ } = o;
3861
3861
  if (l == null)
3862
3862
  throw new Error(
3863
3863
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3864
3864
  );
3865
3865
  let h = Zt(e, l);
3866
3866
  if (!h)
3867
- h = (o = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3867
+ h = (a = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
3868
3868
  else if (typeof h != "string")
3869
3869
  return console.warn(
3870
3870
  `[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.`
3871
3871
  ), h;
3872
- if (!a)
3872
+ if (!s)
3873
3873
  return h;
3874
3874
  let c = h;
3875
3875
  try {
3876
- c = xi(h, l).format(a);
3876
+ c = xi(h, l).format(s);
3877
3877
  } catch (f) {
3878
3878
  f instanceof Error && console.warn(
3879
3879
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3881,20 +3881,20 @@ const re = (e, t) => {
3881
3881
  );
3882
3882
  }
3883
3883
  return c;
3884
- }, Hi = (e, t) => Ei(t).format(e), Si = (e, t) => _i(t).format(e), wi = (e, t) => vi(t).format(e), Ai = (e, t = N()) => Zt(e, t), Bi = q([R, ie], () => Ti);
3884
+ }, Hi = (e, t) => _i(t).format(e), wi = (e, t) => Ei(t).format(e), Ai = (e, t) => vi(t).format(e), Si = (e, t = M()) => Zt(e, t), Bi = q([R, ie], () => Ti);
3885
3885
  q([R], () => Hi);
3886
- q([R], () => Si);
3887
3886
  q([R], () => wi);
3888
- q([R, ie], () => Ai);
3887
+ q([R], () => Ai);
3888
+ q([R, ie], () => Si);
3889
3889
  function vt(e, t) {
3890
3890
  Qt(e, t);
3891
3891
  }
3892
3892
  function Pi(e) {
3893
- si({
3893
+ oi({
3894
3894
  fallbackLocale: "en"
3895
3895
  }), R.set(e);
3896
3896
  }
3897
- const _t = {
3897
+ const Et = {
3898
3898
  en: {
3899
3899
  errorGeneralTitle: "Error Occurred",
3900
3900
  errorGeneralText: "Something went wrong",
@@ -3924,7 +3924,17 @@ const _t = {
3924
3924
  OnlyOnePendingTransactionPerUserlsAllowed: "Only one pending transaction per user is allowed",
3925
3925
  TransactionFrequencyLimitReached: "Transaction frequency limit reached",
3926
3926
  NotMappedVendorError: "Your balance is insufficient or you may have reached your transaction limit. Please contact your Telecommunication service provider",
3927
- LOW_BALANCE_OR_PAYEE_LIMIT_REACHED_OR_NOT_ALLOWED: "Your balance is insufficient or you may have reached your transaction limit. Please contact your Telecommunication service provider"
3927
+ LOW_BALANCE_OR_PAYEE_LIMIT_REACHED_OR_NOT_ALLOWED: "Your balance is insufficient or you may have reached your transaction limit. Please contact your Telecommunication service provider",
3928
+ CumulativeLimitExceeded: "Monetary limit exceeded",
3929
+ CumulativeLimitExceededException: "Monetary limit exceeded",
3930
+ InsufficientFunds: "Insufficient funds",
3931
+ DeclinedByBank: "Transaction declined by bank",
3932
+ MaxNumberOfTransactionsReached: "Maximum number of transactions reached",
3933
+ OnlyOnePendingTransactionPerUserIsAllowed: "Only one pending transaction is allowed per user",
3934
+ AuthenticationFailed: "Authentication failed",
3935
+ CommunicationTimeoutError: "Communication timeout",
3936
+ MissingPaymentDetails: "Missing payment details",
3937
+ InvalidAccount: "Invalid account"
3928
3938
  },
3929
3939
  tr: {
3930
3940
  errorGeneralTitle: "Hata oluştu",
@@ -3955,7 +3965,17 @@ const _t = {
3955
3965
  OnlyOnePendingTransactionPerUserlsAllowed: "Devam eden bir talebiniz olduğu için șu anda yeni bir işlem başlatılamaz.",
3956
3966
  TransactionFrequencyLimitReached: "İşlem sıklığı limiti aşıldı",
3957
3967
  NotMappedVendorError: "Bakiyeniz yetersiz veya işlem limitinize ulaşmış olabilirsiniz. Lütfen Telekom servis sağlayıcınızla iletişime geçin",
3958
- LOW_BALANCE_OR_PAYEE_LIMIT_REACHED_OR_NOT_ALLOWED: "Bakiyeniz yetersiz veya işlem limitinize ulaşmış olabilirsiniz. Lütfen Telekom servis sağlayıcınızla iletişime geçin"
3968
+ LOW_BALANCE_OR_PAYEE_LIMIT_REACHED_OR_NOT_ALLOWED: "Bakiyeniz yetersiz veya işlem limitinize ulaşmış olabilirsiniz. Lütfen Telekom servis sağlayıcınızla iletişime geçin",
3969
+ CumulativeLimitExceeded: "Parasal limit aşıldı",
3970
+ CumulativeLimitExceededException: "Parasal limit aşıldı",
3971
+ InsufficientFunds: "Yetersiz bakiye",
3972
+ DeclinedByBank: "İşlem banka tarafından reddedildi",
3973
+ MaxNumberOfTransactionsReached: "Maksimum işlem sayısına ulaşıldı",
3974
+ OnlyOnePendingTransactionPerUserIsAllowed: "Kullanıcı başına yalnızca bir bekleyen işleme izin verilir",
3975
+ AuthenticationFailed: "Kimlik doğrulama başarısız",
3976
+ CommunicationTimeoutError: "İletişim zaman aşımı",
3977
+ MissingPaymentDetails: "Eksik ödeme bilgileri",
3978
+ InvalidAccount: "Geçersiz hesap"
3959
3979
  },
3960
3980
  fr: {
3961
3981
  errorGeneralTitle: "Une erreur s’est produite",
@@ -3986,14 +4006,24 @@ const _t = {
3986
4006
  OnlyOnePendingTransactionPerUserlsAllowed: "Une seule transaction en attente par utilisateur est autorisée",
3987
4007
  TransactionFrequencyLimitReached: "Limite de fréquence des transactions atteinte",
3988
4008
  NotMappedVendorError: "Votre solde est insuffisant ou vous avez peut-être atteint votre limite de transaction. Veuillez contacter votre fournisseur de services de télécommunication",
3989
- LOW_BALANCE_OR_PAYEE_LIMIT_REACHED_OR_NOT_ALLOWED: "Votre solde est insuffisant ou vous avez peut-être atteint votre limite de transaction. Veuillez contacter votre fournisseur de services de télécommunication"
4009
+ LOW_BALANCE_OR_PAYEE_LIMIT_REACHED_OR_NOT_ALLOWED: "Votre solde est insuffisant ou vous avez peut-être atteint votre limite de transaction. Veuillez contacter votre fournisseur de services de télécommunication",
4010
+ CumulativeLimitExceeded: "Limite monétaire dépassée",
4011
+ CumulativeLimitExceededException: "Limite monétaire dépassée",
4012
+ InsufficientFunds: "Fonds insuffisants",
4013
+ DeclinedByBank: "Transaction refusée par la banque",
4014
+ MaxNumberOfTransactionsReached: "Nombre maximum de transactions atteint",
4015
+ OnlyOnePendingTransactionPerUserIsAllowed: "Une seule transaction en attente est autorisée par utilisateur",
4016
+ AuthenticationFailed: "Échec de l'authentification",
4017
+ CommunicationTimeoutError: "Délai de communication dépassé",
4018
+ MissingPaymentDetails: "Détails de paiement manquants",
4019
+ InvalidAccount: "Compte invalide"
3990
4020
  }
3991
4021
  };
3992
4022
  function Oi(e) {
3993
4023
  cr(e, "svelte-m958fw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}");
3994
4024
  }
3995
- const Ci = (e) => ({}), Et = (e) => ({}), Li = (e) => ({}), xt = (e) => ({}), Ii = (e) => ({}), Tt = (e) => ({}), Ni = (e) => ({}), Ht = (e) => ({ class: "CashierErrorIcon" });
3996
- function St(e) {
4025
+ const Ci = (e) => ({}), _t = (e) => ({}), Li = (e) => ({}), xt = (e) => ({}), Ii = (e) => ({}), Tt = (e) => ({}), Mi = (e) => ({}), Ht = (e) => ({ class: "CashierErrorIcon" });
4026
+ function wt(e) {
3997
4027
  let t, r;
3998
4028
  return {
3999
4029
  c() {
@@ -4009,14 +4039,14 @@ function St(e) {
4009
4039
  n[0]}/error-general-icon.png`) && fe(t, "src", r);
4010
4040
  },
4011
4041
  d(n) {
4012
- n && M(t);
4042
+ n && N(t);
4013
4043
  }
4014
4044
  };
4015
4045
  }
4016
- function Mi(e) {
4046
+ function Ni(e) {
4017
4047
  let t, r = (
4018
4048
  /*assetsurl*/
4019
- e[0] && St(e)
4049
+ e[0] && wt(e)
4020
4050
  );
4021
4051
  return {
4022
4052
  c() {
@@ -4027,10 +4057,10 @@ function Mi(e) {
4027
4057
  },
4028
4058
  p(n, i) {
4029
4059
  /*assetsurl*/
4030
- n[0] ? r ? r.p(n, i) : (r = St(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4060
+ n[0] ? r ? r.p(n, i) : (r = wt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4031
4061
  },
4032
4062
  d(n) {
4033
- n && M(t), r && r.d(n);
4063
+ n && N(t), r && r.d(n);
4034
4064
  }
4035
4065
  };
4036
4066
  }
@@ -4044,17 +4074,17 @@ function Ri(e) {
4044
4074
  c() {
4045
4075
  t = I("span"), n = Te(r), F(t, "class", "CashierErrorText");
4046
4076
  },
4047
- m(i, o) {
4048
- X(i, t, o), C(t, n);
4077
+ m(i, a) {
4078
+ X(i, t, a), C(t, n);
4049
4079
  },
4050
- p(i, o) {
4051
- o & /*$_, errorcode*/
4080
+ p(i, a) {
4081
+ a & /*$_, errorcode*/
4052
4082
  10 && r !== (r = /*$_*/
4053
4083
  i[3](`${/*errorcode*/
4054
4084
  i[1] || "errorGeneralText"}`) + "") && Ot(n, r);
4055
4085
  },
4056
4086
  d(i) {
4057
- i && M(t);
4087
+ i && N(t);
4058
4088
  }
4059
4089
  };
4060
4090
  }
@@ -4062,41 +4092,41 @@ function $i(e) {
4062
4092
  let t, r, n = (
4063
4093
  /*$_*/
4064
4094
  e[3]("errorGeneralButton") + ""
4065
- ), i, o, s;
4095
+ ), i, a, o;
4066
4096
  return {
4067
4097
  c() {
4068
4098
  t = I("button"), r = I("span"), i = Te(n), F(t, "class", "CashierErrorButton");
4069
4099
  },
4070
- m(a, l) {
4071
- X(a, t, l), C(t, r), C(r, i), o || (s = pr(
4100
+ m(s, l) {
4101
+ X(s, t, l), C(t, r), C(r, i), a || (o = pr(
4072
4102
  t,
4073
4103
  "click",
4074
4104
  /*close*/
4075
4105
  e[4]
4076
- ), o = !0);
4106
+ ), a = !0);
4077
4107
  },
4078
- p(a, l) {
4108
+ p(s, l) {
4079
4109
  l & /*$_*/
4080
4110
  8 && n !== (n = /*$_*/
4081
- a[3]("errorGeneralButton") + "") && Ot(i, n);
4111
+ s[3]("errorGeneralButton") + "") && Ot(i, n);
4082
4112
  },
4083
- d(a) {
4084
- a && M(t), o = !1, s();
4113
+ d(s) {
4114
+ s && N(t), a = !1, o();
4085
4115
  }
4086
4116
  };
4087
4117
  }
4088
4118
  function Di(e) {
4089
- let t, r, n, i, o, s;
4090
- const a = (
4119
+ let t, r, n, i, a, o;
4120
+ const s = (
4091
4121
  /*#slots*/
4092
4122
  e[11].icon
4093
4123
  ), l = ue(
4094
- a,
4124
+ s,
4095
4125
  e,
4096
4126
  /*$$scope*/
4097
4127
  e[10],
4098
4128
  Ht
4099
- ), u = l || Mi(e), h = (
4129
+ ), u = l || Ni(e), h = (
4100
4130
  /*#slots*/
4101
4131
  e[11].title
4102
4132
  ), c = ue(
@@ -4114,51 +4144,51 @@ function Di(e) {
4114
4144
  /*$$scope*/
4115
4145
  e[10],
4116
4146
  xt
4117
- ), b = p || Ri(e), E = (
4147
+ ), b = p || Ri(e), _ = (
4118
4148
  /*#slots*/
4119
4149
  e[11].button
4120
4150
  ), T = ue(
4121
- E,
4151
+ _,
4122
4152
  e,
4123
4153
  /*$$scope*/
4124
4154
  e[10],
4125
- Et
4155
+ _t
4126
4156
  ), x = T || $i(e);
4127
4157
  return {
4128
4158
  c() {
4129
- t = I("div"), r = I("div"), u && u.c(), n = Pe(), c && c.c(), i = Pe(), b && b.c(), o = Pe(), x && x.c(), F(r, "class", "CashierErrorContent"), F(t, "class", "CashierError");
4159
+ t = I("div"), r = I("div"), u && u.c(), n = Pe(), c && c.c(), i = Pe(), b && b.c(), a = Pe(), x && x.c(), F(r, "class", "CashierErrorContent"), F(t, "class", "CashierError");
4130
4160
  },
4131
4161
  m(d, m) {
4132
- X(d, t, m), C(t, r), u && u.m(r, null), C(r, n), c && c.m(r, null), C(r, i), b && b.m(r, null), C(r, o), x && x.m(r, null), e[12](t), s = !0;
4162
+ X(d, t, m), C(t, r), u && u.m(r, null), C(r, n), c && c.m(r, null), C(r, i), b && b.m(r, null), C(r, a), x && x.m(r, null), e[12](t), o = !0;
4133
4163
  },
4134
4164
  p(d, [m]) {
4135
- l ? l.p && (!s || m & /*$$scope*/
4165
+ l ? l.p && (!o || m & /*$$scope*/
4136
4166
  1024) && he(
4137
4167
  l,
4138
- a,
4168
+ s,
4139
4169
  d,
4140
4170
  /*$$scope*/
4141
4171
  d[10],
4142
- s ? le(
4143
- a,
4172
+ o ? le(
4173
+ s,
4144
4174
  /*$$scope*/
4145
4175
  d[10],
4146
4176
  m,
4147
- Ni
4177
+ Mi
4148
4178
  ) : ce(
4149
4179
  /*$$scope*/
4150
4180
  d[10]
4151
4181
  ),
4152
4182
  Ht
4153
- ) : u && u.p && (!s || m & /*assetsurl*/
4154
- 1) && u.p(d, s ? m : -1), c && c.p && (!s || m & /*$$scope*/
4183
+ ) : u && u.p && (!o || m & /*assetsurl*/
4184
+ 1) && u.p(d, o ? m : -1), c && c.p && (!o || m & /*$$scope*/
4155
4185
  1024) && he(
4156
4186
  c,
4157
4187
  h,
4158
4188
  d,
4159
4189
  /*$$scope*/
4160
4190
  d[10],
4161
- s ? le(
4191
+ o ? le(
4162
4192
  h,
4163
4193
  /*$$scope*/
4164
4194
  d[10],
@@ -4169,14 +4199,14 @@ function Di(e) {
4169
4199
  d[10]
4170
4200
  ),
4171
4201
  Tt
4172
- ), p ? p.p && (!s || m & /*$$scope*/
4202
+ ), p ? p.p && (!o || m & /*$$scope*/
4173
4203
  1024) && he(
4174
4204
  p,
4175
4205
  f,
4176
4206
  d,
4177
4207
  /*$$scope*/
4178
4208
  d[10],
4179
- s ? le(
4209
+ o ? le(
4180
4210
  f,
4181
4211
  /*$$scope*/
4182
4212
  d[10],
@@ -4187,16 +4217,16 @@ function Di(e) {
4187
4217
  d[10]
4188
4218
  ),
4189
4219
  xt
4190
- ) : b && b.p && (!s || m & /*$_, errorcode*/
4191
- 10) && b.p(d, s ? m : -1), T ? T.p && (!s || m & /*$$scope*/
4220
+ ) : b && b.p && (!o || m & /*$_, errorcode*/
4221
+ 10) && b.p(d, o ? m : -1), T ? T.p && (!o || m & /*$$scope*/
4192
4222
  1024) && he(
4193
4223
  T,
4194
- E,
4224
+ _,
4195
4225
  d,
4196
4226
  /*$$scope*/
4197
4227
  d[10],
4198
- s ? le(
4199
- E,
4228
+ o ? le(
4229
+ _,
4200
4230
  /*$$scope*/
4201
4231
  d[10],
4202
4232
  m,
@@ -4205,38 +4235,38 @@ function Di(e) {
4205
4235
  /*$$scope*/
4206
4236
  d[10]
4207
4237
  ),
4208
- Et
4209
- ) : x && x.p && (!s || m & /*$_*/
4210
- 8) && x.p(d, s ? m : -1);
4238
+ _t
4239
+ ) : x && x.p && (!o || m & /*$_*/
4240
+ 8) && x.p(d, o ? m : -1);
4211
4241
  },
4212
4242
  i(d) {
4213
- s || (Y(u, d), Y(c, d), Y(b, d), Y(x, d), s = !0);
4243
+ o || (Y(u, d), Y(c, d), Y(b, d), Y(x, d), o = !0);
4214
4244
  },
4215
4245
  o(d) {
4216
- me(u, d), me(c, d), me(b, d), me(x, d), s = !1;
4246
+ me(u, d), me(c, d), me(b, d), me(x, d), o = !1;
4217
4247
  },
4218
4248
  d(d) {
4219
- d && M(t), u && u.d(d), c && c.d(d), b && b.d(d), x && x.d(d), e[12](null);
4249
+ d && N(t), u && u.d(d), c && c.d(d), b && b.d(d), x && x.d(d), e[12](null);
4220
4250
  }
4221
4251
  };
4222
4252
  }
4223
- function Ui(e, t, r) {
4253
+ function ki(e, t, r) {
4224
4254
  let n;
4225
4255
  hr(e, Bi, (m) => r(3, n = m));
4226
- let { $$slots: i = {}, $$scope: o } = t, { assetsurl: s = "" } = t, { lang: a = "en" } = t, { errorcode: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f = "" } = t, p, b;
4227
- const E = () => {
4228
- Pi(a);
4256
+ let { $$slots: i = {}, $$scope: a } = t, { assetsurl: o = "" } = t, { lang: s = "en" } = t, { errorcode: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f = "" } = t, p, b;
4257
+ const _ = () => {
4258
+ Pi(s);
4229
4259
  }, T = () => {
4230
- fetch(c).then((S) => S.json()).then((S) => {
4231
- Object.keys(S).forEach((A) => {
4232
- vt(A, S[A]);
4260
+ fetch(c).then((w) => w.json()).then((w) => {
4261
+ Object.keys(w).forEach((S) => {
4262
+ vt(S, w[S]);
4233
4263
  });
4234
- }).catch((S) => {
4235
- console.error(S);
4264
+ }).catch((w) => {
4265
+ console.error(w);
4236
4266
  });
4237
4267
  };
4238
- Object.keys(_t).forEach((m) => {
4239
- vt(m, _t[m]);
4268
+ Object.keys(Et).forEach((m) => {
4269
+ vt(m, Et[m]);
4240
4270
  });
4241
4271
  const x = () => {
4242
4272
  window.postMessage({ type: "ErrorClose" }, window.location.href);
@@ -4249,38 +4279,38 @@ function Ui(e, t, r) {
4249
4279
  });
4250
4280
  }
4251
4281
  return e.$$set = (m) => {
4252
- "assetsurl" in m && r(0, s = m.assetsurl), "lang" in m && r(5, a = m.lang), "errorcode" in m && r(1, l = m.errorcode), "clientstyling" in m && r(6, u = m.clientstyling), "clientstylingurl" in m && r(7, h = m.clientstylingurl), "translationurl" in m && r(8, c = m.translationurl), "mbsource" in m && r(9, f = m.mbsource), "$$scope" in m && r(10, o = m.$$scope);
4282
+ "assetsurl" in m && r(0, o = m.assetsurl), "lang" in m && r(5, s = m.lang), "errorcode" in m && r(1, l = m.errorcode), "clientstyling" in m && r(6, u = m.clientstyling), "clientstylingurl" in m && r(7, h = m.clientstylingurl), "translationurl" in m && r(8, c = m.translationurl), "mbsource" in m && r(9, f = m.mbsource), "$$scope" in m && r(10, a = m.$$scope);
4253
4283
  }, e.$$.update = () => {
4254
4284
  e.$$.dirty & /*lang*/
4255
- 32 && a && E(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4285
+ 32 && s && _(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4256
4286
  68 && u && p && Lr(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4257
4287
  132 && h && p && Ir(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4258
- 516 && f && p && Nr(p, `${f}.Style`, b), e.$$.dirty & /*translationurl*/
4288
+ 516 && f && p && Mr(p, `${f}.Style`, b), e.$$.dirty & /*translationurl*/
4259
4289
  256 && c && T();
4260
4290
  }, [
4261
- s,
4291
+ o,
4262
4292
  l,
4263
4293
  p,
4264
4294
  n,
4265
4295
  x,
4266
- a,
4296
+ s,
4267
4297
  u,
4268
4298
  h,
4269
4299
  c,
4270
4300
  f,
4271
- o,
4301
+ a,
4272
4302
  i,
4273
4303
  d
4274
4304
  ];
4275
4305
  }
4276
- class ki extends Or {
4306
+ class Ui extends Or {
4277
4307
  constructor(t) {
4278
4308
  super(), Br(
4279
4309
  this,
4280
4310
  t,
4281
- Ui,
4311
+ ki,
4282
4312
  Di,
4283
- At,
4313
+ St,
4284
4314
  {
4285
4315
  assetsurl: 0,
4286
4316
  lang: 5,
@@ -4336,7 +4366,7 @@ class ki extends Or {
4336
4366
  this.$$set({ mbsource: t }), P();
4337
4367
  }
4338
4368
  }
4339
- Pr(ki, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4369
+ Pr(Ui, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4340
4370
  export {
4341
- ki as default
4371
+ Ui as default
4342
4372
  };