@everymatrix/cashier-iframe-redirect 1.61.1 → 1.62.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,6 +1,6 @@
1
1
  function B() {
2
2
  }
3
- function er(e, t) {
3
+ function rr(e, t) {
4
4
  for (const r in t)
5
5
  e[r] = t[r];
6
6
  return (
@@ -8,29 +8,29 @@ function er(e, t) {
8
8
  e
9
9
  );
10
10
  }
11
- function _t(e) {
11
+ function xt(e) {
12
12
  return e();
13
13
  }
14
- function Ze() {
14
+ function qe() {
15
15
  return /* @__PURE__ */ Object.create(null);
16
16
  }
17
17
  function te(e) {
18
- e.forEach(_t);
18
+ e.forEach(xt);
19
19
  }
20
20
  function ke(e) {
21
21
  return typeof e == "function";
22
22
  }
23
- function yt(e, t) {
23
+ function Et(e, t) {
24
24
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
25
25
  }
26
26
  let se;
27
- function Hi(e, t) {
27
+ function Bi(e, t) {
28
28
  return e === t ? !0 : (se || (se = document.createElement("a")), se.href = t, e === se.href);
29
29
  }
30
- function tr(e) {
30
+ function nr(e) {
31
31
  return Object.keys(e).length === 0;
32
32
  }
33
- function xt(e, ...t) {
33
+ function vt(e, ...t) {
34
34
  if (e == null) {
35
35
  for (const n of t)
36
36
  n(void 0);
@@ -39,17 +39,17 @@ function xt(e, ...t) {
39
39
  const r = e.subscribe(...t);
40
40
  return r.unsubscribe ? () => r.unsubscribe() : r;
41
41
  }
42
- function rr(e, t, r) {
43
- e.$$.on_destroy.push(xt(t, r));
42
+ function ir(e, t, r) {
43
+ e.$$.on_destroy.push(vt(t, r));
44
44
  }
45
45
  function xe(e, t, r, n) {
46
46
  if (e) {
47
- const i = Et(e, t, r, n);
47
+ const i = Ht(e, t, r, n);
48
48
  return e[0](i);
49
49
  }
50
50
  }
51
- function Et(e, t, r, n) {
52
- return e[1] && n ? er(r.ctx.slice(), e[1](n(t))) : r.ctx;
51
+ function Ht(e, t, r, n) {
52
+ return e[1] && n ? rr(r.ctx.slice(), e[1](n(t))) : r.ctx;
53
53
  }
54
54
  function Ee(e, t, r, n) {
55
55
  if (e[2] && n) {
@@ -68,7 +68,7 @@ function Ee(e, t, r, n) {
68
68
  }
69
69
  function ve(e, t, r, n, i, s) {
70
70
  if (i) {
71
- const h = Et(t, r, n, s);
71
+ const h = Ht(t, r, n, s);
72
72
  e.p(h, i);
73
73
  }
74
74
  }
@@ -84,14 +84,14 @@ function He(e) {
84
84
  function ce(e, t) {
85
85
  e.appendChild(t);
86
86
  }
87
- function nr(e, t, r) {
88
- const n = ir(e);
87
+ function sr(e, t, r) {
88
+ const n = or(e);
89
89
  if (!n.getElementById(t)) {
90
- const i = W("style");
91
- i.id = t, i.textContent = r, sr(n, i);
90
+ const i = z("style");
91
+ i.id = t, i.textContent = r, ar(n, i);
92
92
  }
93
93
  }
94
- function ir(e) {
94
+ function or(e) {
95
95
  if (!e)
96
96
  return document;
97
97
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -101,7 +101,7 @@ function ir(e) {
101
101
  t
102
102
  ) : e.ownerDocument;
103
103
  }
104
- function sr(e, t) {
104
+ function ar(e, t) {
105
105
  return ce(
106
106
  /** @type {Document} */
107
107
  e.head || e,
@@ -114,36 +114,36 @@ function I(e, t, r) {
114
114
  function O(e) {
115
115
  e.parentNode && e.parentNode.removeChild(e);
116
116
  }
117
- function W(e) {
117
+ function z(e) {
118
118
  return document.createElement(e);
119
119
  }
120
120
  function Ve(e) {
121
121
  return document.createTextNode(e);
122
122
  }
123
- function Qe() {
123
+ function Je() {
124
124
  return Ve(" ");
125
125
  }
126
- function vt() {
126
+ function Bt() {
127
127
  return Ve("");
128
128
  }
129
- function Ht(e, t, r, n) {
129
+ function Tt(e, t, r, n) {
130
130
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
131
131
  }
132
- function z(e, t, r) {
132
+ function W(e, t, r) {
133
133
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
134
134
  }
135
- function Bi(e, t, r) {
135
+ function Ti(e, t, r) {
136
136
  const n = t.toLowerCase();
137
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : z(e, t, r);
137
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : W(e, t, r);
138
138
  }
139
- function or(e) {
139
+ function hr(e) {
140
140
  return Array.from(e.childNodes);
141
141
  }
142
- function ar(e, t) {
142
+ function ur(e, t) {
143
143
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
144
144
  t);
145
145
  }
146
- function hr(e) {
146
+ function lr(e) {
147
147
  const t = {};
148
148
  return e.childNodes.forEach(
149
149
  /** @param {Element} node */
@@ -158,10 +158,10 @@ function Y(e) {
158
158
  }
159
159
  const G = [], Le = [];
160
160
  let F = [];
161
- const qe = [], ur = /* @__PURE__ */ Promise.resolve();
161
+ const Ye = [], fr = /* @__PURE__ */ Promise.resolve();
162
162
  let Ne = !1;
163
- function lr() {
164
- Ne || (Ne = !0, ur.then(S));
163
+ function cr() {
164
+ Ne || (Ne = !0, fr.then(S));
165
165
  }
166
166
  function Ie(e) {
167
167
  F.push(e);
@@ -176,7 +176,7 @@ function S() {
176
176
  try {
177
177
  for (; U < G.length; ) {
178
178
  const t = G[U];
179
- U++, Y(t), fr(t.$$);
179
+ U++, Y(t), mr(t.$$);
180
180
  }
181
181
  } catch (t) {
182
182
  throw G.length = 0, U = 0, t;
@@ -189,23 +189,23 @@ function S() {
189
189
  }
190
190
  F.length = 0;
191
191
  } while (G.length);
192
- for (; qe.length; )
193
- qe.pop()();
192
+ for (; Ye.length; )
193
+ Ye.pop()();
194
194
  Ne = !1, Be.clear(), Y(e);
195
195
  }
196
- function fr(e) {
196
+ function mr(e) {
197
197
  if (e.fragment !== null) {
198
198
  e.update(), te(e.before_update);
199
199
  const t = e.dirty;
200
200
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
201
201
  }
202
202
  }
203
- function cr(e) {
203
+ function dr(e) {
204
204
  const t = [], r = [];
205
205
  F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
206
206
  }
207
207
  const ae = /* @__PURE__ */ new Set();
208
- let mr;
208
+ let pr;
209
209
  function he(e, t) {
210
210
  e && e.i && (ae.delete(e), e.i(t));
211
211
  }
@@ -213,26 +213,26 @@ function Te(e, t, r, n) {
213
213
  if (e && e.o) {
214
214
  if (ae.has(e))
215
215
  return;
216
- ae.add(e), mr.c.push(() => {
216
+ ae.add(e), pr.c.push(() => {
217
217
  ae.delete(e);
218
218
  }), e.o(t);
219
219
  }
220
220
  }
221
- function pr(e, t, r) {
221
+ function br(e, t, r) {
222
222
  const { fragment: n, after_update: i } = e.$$;
223
223
  n && n.m(t, r), Ie(() => {
224
- const s = e.$$.on_mount.map(_t).filter(ke);
224
+ const s = e.$$.on_mount.map(xt).filter(ke);
225
225
  e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
226
226
  }), i.forEach(Ie);
227
227
  }
228
- function dr(e, t) {
228
+ function gr(e, t) {
229
229
  const r = e.$$;
230
- r.fragment !== null && (cr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
230
+ r.fragment !== null && (dr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
231
231
  }
232
- function br(e, t) {
233
- e.$$.dirty[0] === -1 && (G.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
232
+ function _r(e, t) {
233
+ e.$$.dirty[0] === -1 && (G.push(e), cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
234
234
  }
235
- function gr(e, t, r, n, i, s, h = null, o = [-1]) {
235
+ function yr(e, t, r, n, i, s, h = null, o = [-1]) {
236
236
  const l = Xe;
237
237
  Y(e);
238
238
  const a = e.$$ = {
@@ -242,7 +242,7 @@ function gr(e, t, r, n, i, s, h = null, o = [-1]) {
242
242
  props: s,
243
243
  update: B,
244
244
  not_equal: i,
245
- bound: Ze(),
245
+ bound: qe(),
246
246
  // lifecycle
247
247
  on_mount: [],
248
248
  on_destroy: [],
@@ -251,28 +251,28 @@ function gr(e, t, r, n, i, s, h = null, o = [-1]) {
251
251
  after_update: [],
252
252
  context: new Map(t.context || (l ? l.$$.context : [])),
253
253
  // everything else
254
- callbacks: Ze(),
254
+ callbacks: qe(),
255
255
  dirty: o,
256
256
  skip_bound: !1,
257
257
  root: t.target || l.$$.root
258
258
  };
259
259
  h && h(a.root);
260
260
  let u = !1;
261
- if (a.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
262
- const m = p.length ? p[0] : c;
263
- return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m), u && br(e, f)), c;
261
+ if (a.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
262
+ const m = d.length ? d[0] : c;
263
+ return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m), u && _r(e, f)), c;
264
264
  }) : [], a.update(), u = !0, te(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
265
265
  if (t.hydrate) {
266
- const f = or(t.target);
266
+ const f = hr(t.target);
267
267
  a.fragment && a.fragment.l(f), f.forEach(O);
268
268
  } else
269
269
  a.fragment && a.fragment.c();
270
- t.intro && he(e.$$.fragment), pr(e, t.target, t.anchor), S();
270
+ t.intro && he(e.$$.fragment), br(e, t.target, t.anchor), S();
271
271
  }
272
272
  Y(l);
273
273
  }
274
- let Bt;
275
- typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
274
+ let wt;
275
+ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
276
276
  /** The Svelte component constructor */
277
277
  $$ctor;
278
278
  /** Slots */
@@ -314,7 +314,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
314
314
  let s;
315
315
  return {
316
316
  c: function() {
317
- s = W("slot"), i !== "default" && z(s, "name", i);
317
+ s = z("slot"), i !== "default" && W(s, "name", i);
318
318
  },
319
319
  /**
320
320
  * @param {HTMLElement} target
@@ -331,7 +331,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
331
331
  };
332
332
  if (await Promise.resolve(), !this.$$cn || this.$$c)
333
333
  return;
334
- const t = {}, r = hr(this);
334
+ const t = {}, r = lr(this);
335
335
  for (const i of this.$$s)
336
336
  i in r && (t[i] = [e(i)]);
337
337
  for (const i of this.attributes) {
@@ -418,8 +418,8 @@ function ue(e, t, r, n) {
418
418
  return t;
419
419
  }
420
420
  }
421
- function _r(e, t, r, n, i, s) {
422
- let h = class extends Bt {
421
+ function xr(e, t, r, n, i, s) {
422
+ let h = class extends wt {
423
423
  constructor() {
424
424
  super(e, r, i), this.$$p_d = t;
425
425
  }
@@ -447,7 +447,7 @@ function _r(e, t, r, n, i, s) {
447
447
  }), e.element = /** @type {any} */
448
448
  h, h;
449
449
  }
450
- class yr {
450
+ class Er {
451
451
  /**
452
452
  * ### PRIVATE API
453
453
  *
@@ -466,7 +466,7 @@ class yr {
466
466
  $$set = void 0;
467
467
  /** @returns {void} */
468
468
  $destroy() {
469
- dr(this, 1), this.$destroy = B;
469
+ gr(this, 1), this.$destroy = B;
470
470
  }
471
471
  /**
472
472
  * @template {Extract<keyof Events, string>} K
@@ -488,13 +488,13 @@ class yr {
488
488
  * @returns {void}
489
489
  */
490
490
  $set(t) {
491
- this.$$set && !tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
491
+ this.$$set && !nr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
492
492
  }
493
493
  }
494
- const xr = "4";
495
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(xr);
494
+ const vr = "4";
495
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(vr);
496
496
  const D = [];
497
- function Er(e, t) {
497
+ function Hr(e, t) {
498
498
  return {
499
499
  subscribe: be(e, t).subscribe
500
500
  };
@@ -503,7 +503,7 @@ function be(e, t = B) {
503
503
  let r;
504
504
  const n = /* @__PURE__ */ new Set();
505
505
  function i(o) {
506
- if (yt(e, o) && (e = o, r)) {
506
+ if (Et(e, o) && (e = o, r)) {
507
507
  const l = !D.length;
508
508
  for (const a of n)
509
509
  a[1](), D.push(a, e);
@@ -530,7 +530,7 @@ function Z(e, t, r) {
530
530
  if (!i.every(Boolean))
531
531
  throw new Error("derived() expects stores as input, got a falsy value");
532
532
  const s = t.length < 2;
533
- return Er(r, (h, o) => {
533
+ return Hr(r, (h, o) => {
534
534
  let l = !1;
535
535
  const a = [];
536
536
  let u = 0, f = B;
@@ -540,8 +540,8 @@ function Z(e, t, r) {
540
540
  f();
541
541
  const m = t(n ? a[0] : a, h, o);
542
542
  s ? h(m) : f = ke(m) ? m : B;
543
- }, p = i.map(
544
- (m, g) => xt(
543
+ }, d = i.map(
544
+ (m, g) => vt(
545
545
  m,
546
546
  (v) => {
547
547
  a[g] = v, u &= ~(1 << g), l && c();
@@ -552,74 +552,74 @@ function Z(e, t, r) {
552
552
  )
553
553
  );
554
554
  return l = !0, c(), function() {
555
- te(p), f(), l = !1;
555
+ te(d), f(), l = !1;
556
556
  };
557
557
  });
558
558
  }
559
- function vr(e) {
559
+ function Br(e) {
560
560
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
561
561
  }
562
- var Hr = function(t) {
563
- return Br(t) && !Tr(t);
562
+ var Tr = function(t) {
563
+ return wr(t) && !Sr(t);
564
564
  };
565
- function Br(e) {
565
+ function wr(e) {
566
566
  return !!e && typeof e == "object";
567
567
  }
568
- function Tr(e) {
568
+ function Sr(e) {
569
569
  var t = Object.prototype.toString.call(e);
570
- return t === "[object RegExp]" || t === "[object Date]" || Ar(e);
570
+ return t === "[object RegExp]" || t === "[object Date]" || Or(e);
571
571
  }
572
- var wr = typeof Symbol == "function" && Symbol.for, Sr = wr ? Symbol.for("react.element") : 60103;
573
- function Ar(e) {
574
- return e.$$typeof === Sr;
572
+ var Ar = typeof Symbol == "function" && Symbol.for, Cr = Ar ? Symbol.for("react.element") : 60103;
573
+ function Or(e) {
574
+ return e.$$typeof === Cr;
575
575
  }
576
- function Cr(e) {
576
+ function Pr(e) {
577
577
  return Array.isArray(e) ? [] : {};
578
578
  }
579
579
  function K(e, t) {
580
- return t.clone !== !1 && t.isMergeableObject(e) ? j(Cr(e), e, t) : e;
580
+ return t.clone !== !1 && t.isMergeableObject(e) ? j(Pr(e), e, t) : e;
581
581
  }
582
- function Or(e, t, r) {
582
+ function Lr(e, t, r) {
583
583
  return e.concat(t).map(function(n) {
584
584
  return K(n, r);
585
585
  });
586
586
  }
587
- function Pr(e, t) {
587
+ function Nr(e, t) {
588
588
  if (!t.customMerge)
589
589
  return j;
590
590
  var r = t.customMerge(e);
591
591
  return typeof r == "function" ? r : j;
592
592
  }
593
- function Lr(e) {
593
+ function Ir(e) {
594
594
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
595
595
  return Object.propertyIsEnumerable.call(e, t);
596
596
  }) : [];
597
597
  }
598
- function Je(e) {
599
- return Object.keys(e).concat(Lr(e));
598
+ function Ke(e) {
599
+ return Object.keys(e).concat(Ir(e));
600
600
  }
601
- function Tt(e, t) {
601
+ function St(e, t) {
602
602
  try {
603
603
  return t in e;
604
604
  } catch {
605
605
  return !1;
606
606
  }
607
607
  }
608
- function Nr(e, t) {
609
- return Tt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
608
+ function Mr(e, t) {
609
+ return St(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
610
610
  }
611
- function Ir(e, t, r) {
611
+ function $r(e, t, r) {
612
612
  var n = {};
613
- return r.isMergeableObject(e) && Je(e).forEach(function(i) {
613
+ return r.isMergeableObject(e) && Ke(e).forEach(function(i) {
614
614
  n[i] = K(e[i], r);
615
- }), Je(t).forEach(function(i) {
616
- Nr(e, i) || (Tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
615
+ }), Ke(t).forEach(function(i) {
616
+ Mr(e, i) || (St(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
617
617
  }), n;
618
618
  }
619
619
  function j(e, t, r) {
620
- r = r || {}, r.arrayMerge = r.arrayMerge || Or, r.isMergeableObject = r.isMergeableObject || Hr, r.cloneUnlessOtherwiseSpecified = K;
620
+ r = r || {}, r.arrayMerge = r.arrayMerge || Lr, r.isMergeableObject = r.isMergeableObject || Tr, r.cloneUnlessOtherwiseSpecified = K;
621
621
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
622
- return s ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) : K(t, r);
622
+ return s ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) : K(t, r);
623
623
  }
624
624
  j.all = function(t, r) {
625
625
  if (!Array.isArray(t))
@@ -628,8 +628,8 @@ j.all = function(t, r) {
628
628
  return j(n, i, r);
629
629
  }, {});
630
630
  };
631
- var Mr = j, $r = Mr;
632
- const Rr = /* @__PURE__ */ vr($r);
631
+ var Rr = j, Ur = Rr;
632
+ const Dr = /* @__PURE__ */ Br(Ur);
633
633
  /*! *****************************************************************************
634
634
  Copyright (c) Microsoft Corporation.
635
635
 
@@ -671,7 +671,7 @@ var y = function() {
671
671
  return t;
672
672
  }, y.apply(this, arguments);
673
673
  };
674
- function Ur(e, t) {
674
+ function Gr(e, t) {
675
675
  var r = {};
676
676
  for (var n in e)
677
677
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -687,57 +687,59 @@ function we(e, t, r) {
687
687
  return e.concat(s || t);
688
688
  }
689
689
  function Se(e, t) {
690
- var r = t && t.cache ? t.cache : Xr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Fr;
690
+ var r = t && t.cache ? t.cache : zr, n = t && t.serializer ? t.serializer : Xr, i = t && t.strategy ? t.strategy : jr;
691
691
  return i(e, {
692
692
  cache: r,
693
693
  serializer: n
694
694
  });
695
695
  }
696
- function Dr(e) {
696
+ function Fr(e) {
697
697
  return e == null || typeof e == "number" || typeof e == "boolean";
698
698
  }
699
- function Gr(e, t, r, n) {
700
- var i = Dr(n) ? n : r(n), s = t.get(i);
699
+ function At(e, t, r, n) {
700
+ var i = Fr(n) ? n : r(n), s = t.get(i);
701
701
  return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
702
702
  }
703
- function wt(e, t, r) {
703
+ function Ct(e, t, r) {
704
704
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
705
705
  return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
706
706
  }
707
- function St(e, t, r, n, i) {
707
+ function ze(e, t, r, n, i) {
708
708
  return r.bind(t, e, n, i);
709
709
  }
710
- function Fr(e, t) {
711
- var r = e.length === 1 ? Gr : wt;
712
- return St(e, this, r, t.cache.create(), t.serializer);
713
- }
714
710
  function jr(e, t) {
715
- return St(e, this, wt, t.cache.create(), t.serializer);
711
+ var r = e.length === 1 ? At : Ct;
712
+ return ze(e, this, r, t.cache.create(), t.serializer);
716
713
  }
717
- var kr = function() {
714
+ function kr(e, t) {
715
+ return ze(e, this, Ct, t.cache.create(), t.serializer);
716
+ }
717
+ function Vr(e, t) {
718
+ return ze(e, this, At, t.cache.create(), t.serializer);
719
+ }
720
+ var Xr = function() {
718
721
  return JSON.stringify(arguments);
719
- }, Vr = (
720
- /** @class */
721
- function() {
722
- function e() {
723
- this.cache = /* @__PURE__ */ Object.create(null);
724
- }
725
- return e.prototype.get = function(t) {
726
- return this.cache[t];
727
- }, e.prototype.set = function(t, r) {
728
- this.cache[t] = r;
729
- }, e;
730
- }()
731
- ), Xr = {
722
+ };
723
+ function We() {
724
+ this.cache = /* @__PURE__ */ Object.create(null);
725
+ }
726
+ We.prototype.get = function(e) {
727
+ return this.cache[e];
728
+ };
729
+ We.prototype.set = function(e, t) {
730
+ this.cache[e] = t;
731
+ };
732
+ var zr = {
732
733
  create: function() {
733
- return new Vr();
734
+ return new We();
734
735
  }
735
736
  }, Ae = {
736
- variadic: jr
737
- }, d;
737
+ variadic: kr,
738
+ monadic: Vr
739
+ }, p;
738
740
  (function(e) {
739
741
  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";
740
- })(d || (d = {}));
742
+ })(p || (p = {}));
741
743
  var x;
742
744
  (function(e) {
743
745
  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";
@@ -746,43 +748,43 @@ var k;
746
748
  (function(e) {
747
749
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
748
750
  })(k || (k = {}));
749
- function Ye(e) {
751
+ function et(e) {
750
752
  return e.type === x.literal;
751
753
  }
752
754
  function Wr(e) {
753
755
  return e.type === x.argument;
754
756
  }
755
- function At(e) {
757
+ function Ot(e) {
756
758
  return e.type === x.number;
757
759
  }
758
- function Ct(e) {
760
+ function Pt(e) {
759
761
  return e.type === x.date;
760
762
  }
761
- function Ot(e) {
763
+ function Lt(e) {
762
764
  return e.type === x.time;
763
765
  }
764
- function Pt(e) {
766
+ function Nt(e) {
765
767
  return e.type === x.select;
766
768
  }
767
- function Lt(e) {
769
+ function It(e) {
768
770
  return e.type === x.plural;
769
771
  }
770
- function zr(e) {
772
+ function Zr(e) {
771
773
  return e.type === x.pound;
772
774
  }
773
- function Nt(e) {
775
+ function Mt(e) {
774
776
  return e.type === x.tag;
775
777
  }
776
- function It(e) {
778
+ function $t(e) {
777
779
  return !!(e && typeof e == "object" && e.type === k.number);
778
780
  }
779
781
  function $e(e) {
780
782
  return !!(e && typeof e == "object" && e.type === k.dateTime);
781
783
  }
782
- var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zr = /(?:[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;
783
- function Qr(e) {
784
+ var Rt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Qr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
785
+ function qr(e) {
784
786
  var t = {};
785
- return e.replace(Zr, function(r) {
787
+ return e.replace(Qr, function(r) {
786
788
  var n = r.length;
787
789
  switch (r[0]) {
788
790
  case "G":
@@ -871,11 +873,11 @@ function Qr(e) {
871
873
  return "";
872
874
  }), t;
873
875
  }
874
- var qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
875
- function Jr(e) {
876
+ var Jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
877
+ function Yr(e) {
876
878
  if (e.length === 0)
877
879
  throw new Error("Number skeleton cannot be empty");
878
- for (var t = e.split(qr).filter(function(c) {
880
+ for (var t = e.split(Jr).filter(function(c) {
879
881
  return c.length > 0;
880
882
  }), r = [], n = 0, i = t; n < i.length; n++) {
881
883
  var s = i[n], h = s.split("/");
@@ -890,17 +892,17 @@ function Jr(e) {
890
892
  }
891
893
  return r;
892
894
  }
893
- function Yr(e) {
895
+ function Kr(e) {
894
896
  return e.replace(/^(.*?)-/, "");
895
897
  }
896
- var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, Kr = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
897
- function et(e) {
898
+ var tt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ut = /^(@+)?(\+|#+)?[rs]?$/g, en = /(\*)(0+)|(#+)(0+)|(0+)/g, Dt = /^(0+)$/;
899
+ function rt(e) {
898
900
  var t = {};
899
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
901
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ut, function(r, n, i) {
900
902
  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)), "";
901
903
  }), t;
902
904
  }
903
- function Ut(e) {
905
+ function Gt(e) {
904
906
  switch (e) {
905
907
  case "sign-auto":
906
908
  return {
@@ -940,7 +942,7 @@ function Ut(e) {
940
942
  };
941
943
  }
942
944
  }
943
- function en(e) {
945
+ function tn(e) {
944
946
  var t;
945
947
  if (e[0] === "E" && e[1] === "E" ? (t = {
946
948
  notation: "engineering"
@@ -948,17 +950,17 @@ function en(e) {
948
950
  notation: "scientific"
949
951
  }, e = e.slice(1)), t) {
950
952
  var r = e.slice(0, 2);
951
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rt.test(e))
953
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Dt.test(e))
952
954
  throw new Error("Malformed concise eng/scientific notation");
953
955
  t.minimumIntegerDigits = e.length;
954
956
  }
955
957
  return t;
956
958
  }
957
- function tt(e) {
958
- var t = {}, r = Ut(e);
959
+ function nt(e) {
960
+ var t = {}, r = Gt(e);
959
961
  return r || t;
960
962
  }
961
- function tn(e) {
963
+ function rn(e) {
962
964
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
963
965
  var i = n[r];
964
966
  switch (i.stem) {
@@ -982,7 +984,7 @@ function tn(e) {
982
984
  continue;
983
985
  case "measure-unit":
984
986
  case "unit":
985
- t.style = "unit", t.unit = Yr(i.options[0]);
987
+ t.style = "unit", t.unit = Kr(i.options[0]);
986
988
  continue;
987
989
  case "compact-short":
988
990
  case "K":
@@ -994,12 +996,12 @@ function tn(e) {
994
996
  continue;
995
997
  case "scientific":
996
998
  t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
997
- return y(y({}, l), tt(a));
999
+ return y(y({}, l), nt(a));
998
1000
  }, {}));
999
1001
  continue;
1000
1002
  case "engineering":
1001
1003
  t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
1002
- return y(y({}, l), tt(a));
1004
+ return y(y({}, l), nt(a));
1003
1005
  }, {}));
1004
1006
  continue;
1005
1007
  case "notation-simple":
@@ -1044,40 +1046,40 @@ function tn(e) {
1044
1046
  case "integer-width":
1045
1047
  if (i.options.length > 1)
1046
1048
  throw new RangeError("integer-width stems only accept a single optional option");
1047
- i.options[0].replace(Kr, function(l, a, u, f, c, p) {
1049
+ i.options[0].replace(en, function(l, a, u, f, c, d) {
1048
1050
  if (a)
1049
1051
  t.minimumIntegerDigits = u.length;
1050
1052
  else {
1051
1053
  if (f && c)
1052
1054
  throw new Error("We currently do not support maximum integer digits");
1053
- if (p)
1055
+ if (d)
1054
1056
  throw new Error("We currently do not support exact integer digits");
1055
1057
  }
1056
1058
  return "";
1057
1059
  });
1058
1060
  continue;
1059
1061
  }
1060
- if (Rt.test(i.stem)) {
1062
+ if (Dt.test(i.stem)) {
1061
1063
  t.minimumIntegerDigits = i.stem.length;
1062
1064
  continue;
1063
1065
  }
1064
- if (Ke.test(i.stem)) {
1066
+ if (tt.test(i.stem)) {
1065
1067
  if (i.options.length > 1)
1066
1068
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1067
- i.stem.replace(Ke, function(l, a, u, f, c, p) {
1068
- return u === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1069
+ i.stem.replace(tt, function(l, a, u, f, c, d) {
1070
+ return u === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1069
1071
  });
1070
1072
  var s = i.options[0];
1071
- s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), et(s)));
1073
+ s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), rt(s)));
1072
1074
  continue;
1073
1075
  }
1074
- if ($t.test(i.stem)) {
1075
- t = y(y({}, t), et(i.stem));
1076
+ if (Ut.test(i.stem)) {
1077
+ t = y(y({}, t), rt(i.stem));
1076
1078
  continue;
1077
1079
  }
1078
- var h = Ut(i.stem);
1080
+ var h = Gt(i.stem);
1079
1081
  h && (t = y(y({}, t), h));
1080
- var o = en(i.stem);
1082
+ var o = tn(i.stem);
1081
1083
  o && (t = y(y({}, t), o));
1082
1084
  }
1083
1085
  return t;
@@ -2497,13 +2499,13 @@ var oe = {
2497
2499
  "h"
2498
2500
  ]
2499
2501
  };
2500
- function rn(e, t) {
2502
+ function nn(e, t) {
2501
2503
  for (var r = "", n = 0; n < e.length; n++) {
2502
2504
  var i = e.charAt(n);
2503
2505
  if (i === "j") {
2504
2506
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2505
2507
  s++, n++;
2506
- var h = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = nn(t);
2508
+ var h = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = sn(t);
2507
2509
  for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
2508
2510
  r += l;
2509
2511
  for (; h-- > 0; )
@@ -2513,7 +2515,7 @@ function rn(e, t) {
2513
2515
  }
2514
2516
  return r;
2515
2517
  }
2516
- function nn(e) {
2518
+ function sn(e) {
2517
2519
  var t = e.hourCycle;
2518
2520
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2519
2521
  e.hourCycles && // @ts-ignore
@@ -2535,20 +2537,20 @@ function nn(e) {
2535
2537
  var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
2536
2538
  return i[0];
2537
2539
  }
2538
- var Ce, sn = new RegExp("^".concat(Mt.source, "*")), on = new RegExp("".concat(Mt.source, "*$"));
2540
+ var Ce, on = new RegExp("^".concat(Rt.source, "*")), an = new RegExp("".concat(Rt.source, "*$"));
2539
2541
  function b(e, t) {
2540
2542
  return { start: e, end: t };
2541
2543
  }
2542
- var an = !!String.prototype.startsWith && "_a".startsWith("a", 1), hn = !!String.fromCodePoint, un = !!Object.fromEntries, ln = !!String.prototype.codePointAt, fn = !!String.prototype.trimStart, cn = !!String.prototype.trimEnd, mn = !!Number.isSafeInteger, pn = mn ? Number.isSafeInteger : function(e) {
2544
+ var hn = !!String.prototype.startsWith && "_a".startsWith("a", 1), un = !!String.fromCodePoint, ln = !!Object.fromEntries, fn = !!String.prototype.codePointAt, cn = !!String.prototype.trimStart, mn = !!String.prototype.trimEnd, dn = !!Number.isSafeInteger, pn = dn ? Number.isSafeInteger : function(e) {
2543
2545
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2544
2546
  }, Re = !0;
2545
2547
  try {
2546
- var dn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2547
- Re = ((Ce = dn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
2548
+ var bn = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2549
+ Re = ((Ce = bn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
2548
2550
  } catch {
2549
2551
  Re = !1;
2550
2552
  }
2551
- var rt = an ? (
2553
+ var it = hn ? (
2552
2554
  // Native
2553
2555
  function(t, r, n) {
2554
2556
  return t.startsWith(r, n);
@@ -2558,7 +2560,7 @@ var rt = an ? (
2558
2560
  function(t, r, n) {
2559
2561
  return t.slice(n, n + r.length) === r;
2560
2562
  }
2561
- ), Ue = hn ? String.fromCodePoint : (
2563
+ ), Ue = un ? String.fromCodePoint : (
2562
2564
  // IE11
2563
2565
  function() {
2564
2566
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2570,9 +2572,9 @@ var rt = an ? (
2570
2572
  }
2571
2573
  return n;
2572
2574
  }
2573
- ), nt = (
2575
+ ), st = (
2574
2576
  // native
2575
- un ? Object.fromEntries : (
2577
+ ln ? Object.fromEntries : (
2576
2578
  // Ponyfill
2577
2579
  function(t) {
2578
2580
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2582,7 +2584,7 @@ var rt = an ? (
2582
2584
  return r;
2583
2585
  }
2584
2586
  )
2585
- ), Dt = ln ? (
2587
+ ), Ft = fn ? (
2586
2588
  // Native
2587
2589
  function(t, r) {
2588
2590
  return t.codePointAt(r);
@@ -2596,7 +2598,7 @@ var rt = an ? (
2596
2598
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2597
2599
  }
2598
2600
  }
2599
- ), bn = fn ? (
2601
+ ), gn = cn ? (
2600
2602
  // Native
2601
2603
  function(t) {
2602
2604
  return t.trimStart();
@@ -2604,9 +2606,9 @@ var rt = an ? (
2604
2606
  ) : (
2605
2607
  // Ponyfill
2606
2608
  function(t) {
2607
- return t.replace(sn, "");
2609
+ return t.replace(on, "");
2608
2610
  }
2609
- ), gn = cn ? (
2611
+ ), _n = mn ? (
2610
2612
  // Native
2611
2613
  function(t) {
2612
2614
  return t.trimEnd();
@@ -2614,32 +2616,32 @@ var rt = an ? (
2614
2616
  ) : (
2615
2617
  // Ponyfill
2616
2618
  function(t) {
2617
- return t.replace(on, "");
2619
+ return t.replace(an, "");
2618
2620
  }
2619
2621
  );
2620
- function Gt(e, t) {
2622
+ function jt(e, t) {
2621
2623
  return new RegExp(e, t);
2622
2624
  }
2623
2625
  var De;
2624
2626
  if (Re) {
2625
- var it = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2627
+ var ot = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2626
2628
  De = function(t, r) {
2627
2629
  var n;
2628
- it.lastIndex = r;
2629
- var i = it.exec(t);
2630
+ ot.lastIndex = r;
2631
+ var i = ot.exec(t);
2630
2632
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2631
2633
  };
2632
2634
  } else
2633
2635
  De = function(t, r) {
2634
2636
  for (var n = []; ; ) {
2635
- var i = Dt(t, r);
2636
- if (i === void 0 || Ft(i) || En(i))
2637
+ var i = Ft(t, r);
2638
+ if (i === void 0 || kt(i) || vn(i))
2637
2639
  break;
2638
2640
  n.push(i), r += i >= 65536 ? 2 : 1;
2639
2641
  }
2640
2642
  return Ue.apply(void 0, n);
2641
2643
  };
2642
- var _n = (
2644
+ var yn = (
2643
2645
  /** @class */
2644
2646
  function() {
2645
2647
  function e(t, r) {
@@ -2669,7 +2671,7 @@ var _n = (
2669
2671
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2670
2672
  if (n)
2671
2673
  break;
2672
- return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
2674
+ return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
2673
2675
  } else if (s === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
2674
2676
  var h = this.parseTag(t, r);
2675
2677
  if (h.err)
@@ -2704,9 +2706,9 @@ var _n = (
2704
2706
  var h = s.val, o = this.clonePosition();
2705
2707
  if (this.bumpIf("</")) {
2706
2708
  if (this.isEOF() || !Ge(this.char()))
2707
- return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
2709
+ return this.error(p.INVALID_TAG, b(o, this.clonePosition()));
2708
2710
  var l = this.clonePosition(), a = this.parseTagName();
2709
- return i !== a ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2711
+ return i !== a ? this.error(p.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2710
2712
  val: {
2711
2713
  type: x.tag,
2712
2714
  value: i,
@@ -2714,14 +2716,14 @@ var _n = (
2714
2716
  location: b(n, this.clonePosition())
2715
2717
  },
2716
2718
  err: null
2717
- } : this.error(d.INVALID_TAG, b(o, this.clonePosition())));
2719
+ } : this.error(p.INVALID_TAG, b(o, this.clonePosition())));
2718
2720
  } else
2719
- return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
2721
+ return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
2720
2722
  } else
2721
- return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
2723
+ return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
2722
2724
  }, e.prototype.parseTagName = function() {
2723
2725
  var t = this.offset();
2724
- for (this.bump(); !this.isEOF() && xn(this.char()); )
2726
+ for (this.bump(); !this.isEOF() && En(this.char()); )
2725
2727
  this.bump();
2726
2728
  return this.message.slice(t, this.offset());
2727
2729
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2750,7 +2752,7 @@ var _n = (
2750
2752
  };
2751
2753
  }, e.prototype.tryParseLeftAngleBracket = function() {
2752
2754
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2753
- !yn(this.peek() || 0)) ? (this.bump(), "<") : null;
2755
+ !xn(this.peek() || 0)) ? (this.bump(), "<") : null;
2754
2756
  }, e.prototype.tryParseQuote = function(t) {
2755
2757
  if (this.isEOF() || this.char() !== 39)
2756
2758
  return null;
@@ -2793,14 +2795,14 @@ var _n = (
2793
2795
  }, e.prototype.parseArgument = function(t, r) {
2794
2796
  var n = this.clonePosition();
2795
2797
  if (this.bump(), this.bumpSpace(), this.isEOF())
2796
- return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2798
+ return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2797
2799
  if (this.char() === 125)
2798
- return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
2800
+ return this.bump(), this.error(p.EMPTY_ARGUMENT, b(n, this.clonePosition()));
2799
2801
  var i = this.parseIdentifierIfPossible().value;
2800
2802
  if (!i)
2801
- return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2803
+ return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2802
2804
  if (this.bumpSpace(), this.isEOF())
2803
- return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2805
+ return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2804
2806
  switch (this.char()) {
2805
2807
  case 125:
2806
2808
  return this.bump(), {
@@ -2813,9 +2815,9 @@ var _n = (
2813
2815
  err: null
2814
2816
  };
2815
2817
  case 44:
2816
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2818
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2817
2819
  default:
2818
- return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2820
+ return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2819
2821
  }
2820
2822
  }, e.prototype.parseIdentifierIfPossible = function() {
2821
2823
  var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
@@ -2826,7 +2828,7 @@ var _n = (
2826
2828
  var s, h = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2827
2829
  switch (o) {
2828
2830
  case "":
2829
- return this.error(d.EXPECT_ARGUMENT_TYPE, b(h, l));
2831
+ return this.error(p.EXPECT_ARGUMENT_TYPE, b(h, l));
2830
2832
  case "number":
2831
2833
  case "date":
2832
2834
  case "time": {
@@ -2837,18 +2839,18 @@ var _n = (
2837
2839
  var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2838
2840
  if (f.err)
2839
2841
  return f;
2840
- var c = gn(f.val);
2842
+ var c = _n(f.val);
2841
2843
  if (c.length === 0)
2842
- return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2843
- var p = b(u, this.clonePosition());
2844
- a = { style: c, styleLocation: p };
2844
+ return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2845
+ var d = b(u, this.clonePosition());
2846
+ a = { style: c, styleLocation: d };
2845
2847
  }
2846
2848
  var m = this.tryParseArgumentClose(i);
2847
2849
  if (m.err)
2848
2850
  return m;
2849
2851
  var g = b(i, this.clonePosition());
2850
- if (a && rt(a?.style, "::", 0)) {
2851
- var v = bn(a.style.slice(2));
2852
+ if (a && it(a?.style, "::", 0)) {
2853
+ var v = gn(a.style.slice(2));
2852
2854
  if (o === "number") {
2853
2855
  var f = this.parseNumberSkeletonFromString(v, a.styleLocation);
2854
2856
  return f.err ? f : {
@@ -2857,14 +2859,14 @@ var _n = (
2857
2859
  };
2858
2860
  } else {
2859
2861
  if (v.length === 0)
2860
- return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
2862
+ return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
2861
2863
  var L = v;
2862
- this.locale && (L = rn(v, this.locale));
2864
+ this.locale && (L = nn(v, this.locale));
2863
2865
  var c = {
2864
2866
  type: k.dateTime,
2865
2867
  pattern: L,
2866
2868
  location: a.styleLocation,
2867
- parsedOptions: this.shouldParseSkeletons ? Qr(L) : {}
2869
+ parsedOptions: this.shouldParseSkeletons ? qr(L) : {}
2868
2870
  }, A = o === "date" ? x.date : x.time;
2869
2871
  return {
2870
2872
  val: { type: A, value: n, location: g, style: c },
@@ -2887,14 +2889,14 @@ var _n = (
2887
2889
  case "select": {
2888
2890
  var H = this.clonePosition();
2889
2891
  if (this.bumpSpace(), !this.bumpIf(","))
2890
- return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
2892
+ return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
2891
2893
  this.bumpSpace();
2892
2894
  var N = this.parseIdentifierIfPossible(), T = 0;
2893
2895
  if (o !== "select" && N.value === "offset") {
2894
2896
  if (!this.bumpIf(":"))
2895
- return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
2897
+ return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
2896
2898
  this.bumpSpace();
2897
- var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2899
+ var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2898
2900
  if (f.err)
2899
2901
  return f;
2900
2902
  this.bumpSpace(), N = this.parseIdentifierIfPossible(), T = f.val;
@@ -2910,7 +2912,7 @@ var _n = (
2910
2912
  val: {
2911
2913
  type: x.select,
2912
2914
  value: n,
2913
- options: nt($.val),
2915
+ options: st($.val),
2914
2916
  location: ie
2915
2917
  },
2916
2918
  err: null
@@ -2918,7 +2920,7 @@ var _n = (
2918
2920
  val: {
2919
2921
  type: x.plural,
2920
2922
  value: n,
2921
- options: nt($.val),
2923
+ options: st($.val),
2922
2924
  offset: T,
2923
2925
  pluralType: o === "plural" ? "cardinal" : "ordinal",
2924
2926
  location: ie
@@ -2927,10 +2929,10 @@ var _n = (
2927
2929
  };
2928
2930
  }
2929
2931
  default:
2930
- return this.error(d.INVALID_ARGUMENT_TYPE, b(h, l));
2932
+ return this.error(p.INVALID_ARGUMENT_TYPE, b(h, l));
2931
2933
  }
2932
2934
  }, e.prototype.tryParseArgumentClose = function(t) {
2933
- return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2935
+ return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2934
2936
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2935
2937
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2936
2938
  var n = this.char();
@@ -2939,7 +2941,7 @@ var _n = (
2939
2941
  this.bump();
2940
2942
  var i = this.clonePosition();
2941
2943
  if (!this.bumpUntil("'"))
2942
- return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
2944
+ return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
2943
2945
  this.bump();
2944
2946
  break;
2945
2947
  }
@@ -2969,16 +2971,16 @@ var _n = (
2969
2971
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2970
2972
  var n = [];
2971
2973
  try {
2972
- n = Jr(t);
2974
+ n = Yr(t);
2973
2975
  } catch {
2974
- return this.error(d.INVALID_NUMBER_SKELETON, r);
2976
+ return this.error(p.INVALID_NUMBER_SKELETON, r);
2975
2977
  }
2976
2978
  return {
2977
2979
  val: {
2978
2980
  type: k.number,
2979
2981
  tokens: n,
2980
2982
  location: r,
2981
- parsedOptions: this.shouldParseSkeletons ? tn(n) : {}
2983
+ parsedOptions: this.shouldParseSkeletons ? rn(n) : {}
2982
2984
  },
2983
2985
  err: null
2984
2986
  };
@@ -2987,7 +2989,7 @@ var _n = (
2987
2989
  if (a.length === 0) {
2988
2990
  var f = this.clonePosition();
2989
2991
  if (r !== "select" && this.bumpIf("=")) {
2990
- var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
2992
+ var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
2991
2993
  if (c.err)
2992
2994
  return c;
2993
2995
  u = b(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
@@ -2995,26 +2997,26 @@ var _n = (
2995
2997
  break;
2996
2998
  }
2997
2999
  if (l.has(a))
2998
- return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
3000
+ return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
2999
3001
  a === "other" && (h = !0), this.bumpSpace();
3000
- var p = this.clonePosition();
3002
+ var d = this.clonePosition();
3001
3003
  if (!this.bumpIf("{"))
3002
- return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
3004
+ return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
3003
3005
  var m = this.parseMessage(t + 1, r, n);
3004
3006
  if (m.err)
3005
3007
  return m;
3006
- var g = this.tryParseArgumentClose(p);
3008
+ var g = this.tryParseArgumentClose(d);
3007
3009
  if (g.err)
3008
3010
  return g;
3009
3011
  o.push([
3010
3012
  a,
3011
3013
  {
3012
3014
  value: m.val,
3013
- location: b(p, this.clonePosition())
3015
+ location: b(d, this.clonePosition())
3014
3016
  }
3015
3017
  ]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, u = s.location;
3016
3018
  }
3017
- return o.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !h ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3019
+ return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !h ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3018
3020
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3019
3021
  var n = 1, i = this.clonePosition();
3020
3022
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3041,7 +3043,7 @@ var _n = (
3041
3043
  var t = this.position.offset;
3042
3044
  if (t >= this.message.length)
3043
3045
  throw Error("out of bound");
3044
- var r = Dt(this.message, t);
3046
+ var r = Ft(this.message, t);
3045
3047
  if (r === void 0)
3046
3048
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3047
3049
  return r;
@@ -3060,7 +3062,7 @@ var _n = (
3060
3062
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3061
3063
  }
3062
3064
  }, e.prototype.bumpIf = function(t) {
3063
- if (rt(this.message, t, this.offset())) {
3065
+ if (it(this.message, t, this.offset())) {
3064
3066
  for (var r = 0; r < t.length; r++)
3065
3067
  this.bump();
3066
3068
  return !0;
@@ -3082,7 +3084,7 @@ var _n = (
3082
3084
  break;
3083
3085
  }
3084
3086
  }, e.prototype.bumpSpace = function() {
3085
- for (; !this.isEOF() && Ft(this.char()); )
3087
+ for (; !this.isEOF() && kt(this.char()); )
3086
3088
  this.bump();
3087
3089
  }, e.prototype.peek = function() {
3088
3090
  if (this.isEOF())
@@ -3095,32 +3097,32 @@ var _n = (
3095
3097
  function Ge(e) {
3096
3098
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3097
3099
  }
3098
- function yn(e) {
3100
+ function xn(e) {
3099
3101
  return Ge(e) || e === 47;
3100
3102
  }
3101
- function xn(e) {
3103
+ function En(e) {
3102
3104
  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;
3103
3105
  }
3104
- function Ft(e) {
3106
+ function kt(e) {
3105
3107
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3106
3108
  }
3107
- function En(e) {
3109
+ function vn(e) {
3108
3110
  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;
3109
3111
  }
3110
3112
  function Fe(e) {
3111
3113
  e.forEach(function(t) {
3112
- if (delete t.location, Pt(t) || Lt(t))
3114
+ if (delete t.location, Nt(t) || It(t))
3113
3115
  for (var r in t.options)
3114
3116
  delete t.options[r].location, Fe(t.options[r].value);
3115
3117
  else
3116
- At(t) && It(t.style) || (Ct(t) || Ot(t)) && $e(t.style) ? delete t.style.location : Nt(t) && Fe(t.children);
3118
+ Ot(t) && $t(t.style) || (Pt(t) || Lt(t)) && $e(t.style) ? delete t.style.location : Mt(t) && Fe(t.children);
3117
3119
  });
3118
3120
  }
3119
- function vn(e, t) {
3121
+ function Hn(e, t) {
3120
3122
  t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3121
- var r = new _n(e, t).parse();
3123
+ var r = new yn(e, t).parse();
3122
3124
  if (r.err) {
3123
- var n = SyntaxError(d[r.err.kind]);
3125
+ var n = SyntaxError(p[r.err.kind]);
3124
3126
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3125
3127
  }
3126
3128
  return t?.captureLocation || Fe(r.val), r.val;
@@ -3141,7 +3143,7 @@ var _e = (
3141
3143
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3142
3144
  }, t;
3143
3145
  }(Error)
3144
- ), st = (
3146
+ ), at = (
3145
3147
  /** @class */
3146
3148
  function(e) {
3147
3149
  ge(t, e);
@@ -3150,7 +3152,7 @@ var _e = (
3150
3152
  }
3151
3153
  return t;
3152
3154
  }(_e)
3153
- ), Hn = (
3155
+ ), Bn = (
3154
3156
  /** @class */
3155
3157
  function(e) {
3156
3158
  ge(t, e);
@@ -3159,7 +3161,7 @@ var _e = (
3159
3161
  }
3160
3162
  return t;
3161
3163
  }(_e)
3162
- ), Bn = (
3164
+ ), Tn = (
3163
3165
  /** @class */
3164
3166
  function(e) {
3165
3167
  ge(t, e);
@@ -3172,17 +3174,17 @@ var _e = (
3172
3174
  (function(e) {
3173
3175
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3174
3176
  })(E || (E = {}));
3175
- function Tn(e) {
3177
+ function wn(e) {
3176
3178
  return e.length < 2 ? e : e.reduce(function(t, r) {
3177
3179
  var n = t[t.length - 1];
3178
3180
  return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
3179
3181
  }, []);
3180
3182
  }
3181
- function wn(e) {
3183
+ function Sn(e) {
3182
3184
  return typeof e == "function";
3183
3185
  }
3184
3186
  function le(e, t, r, n, i, s, h) {
3185
- if (e.length === 1 && Ye(e[0]))
3187
+ if (e.length === 1 && et(e[0]))
3186
3188
  return [
3187
3189
  {
3188
3190
  type: E.literal,
@@ -3191,14 +3193,14 @@ function le(e, t, r, n, i, s, h) {
3191
3193
  ];
3192
3194
  for (var o = [], l = 0, a = e; l < a.length; l++) {
3193
3195
  var u = a[l];
3194
- if (Ye(u)) {
3196
+ if (et(u)) {
3195
3197
  o.push({
3196
3198
  type: E.literal,
3197
3199
  value: u.value
3198
3200
  });
3199
3201
  continue;
3200
3202
  }
3201
- if (zr(u)) {
3203
+ if (Zr(u)) {
3202
3204
  typeof s == "number" && o.push({
3203
3205
  type: E.literal,
3204
3206
  value: r.getNumberFormat(t).format(s)
@@ -3207,7 +3209,7 @@ function le(e, t, r, n, i, s, h) {
3207
3209
  }
3208
3210
  var f = u.value;
3209
3211
  if (!(i && f in i))
3210
- throw new Bn(f, h);
3212
+ throw new Tn(f, h);
3211
3213
  var c = i[f];
3212
3214
  if (Wr(u)) {
3213
3215
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
@@ -3216,34 +3218,34 @@ function le(e, t, r, n, i, s, h) {
3216
3218
  });
3217
3219
  continue;
3218
3220
  }
3219
- if (Ct(u)) {
3220
- var p = typeof u.style == "string" ? n.date[u.style] : $e(u.style) ? u.style.parsedOptions : void 0;
3221
+ if (Pt(u)) {
3222
+ var d = typeof u.style == "string" ? n.date[u.style] : $e(u.style) ? u.style.parsedOptions : void 0;
3221
3223
  o.push({
3222
3224
  type: E.literal,
3223
- value: r.getDateTimeFormat(t, p).format(c)
3225
+ value: r.getDateTimeFormat(t, d).format(c)
3224
3226
  });
3225
3227
  continue;
3226
3228
  }
3227
- if (Ot(u)) {
3228
- var p = typeof u.style == "string" ? n.time[u.style] : $e(u.style) ? u.style.parsedOptions : n.time.medium;
3229
+ if (Lt(u)) {
3230
+ var d = typeof u.style == "string" ? n.time[u.style] : $e(u.style) ? u.style.parsedOptions : n.time.medium;
3229
3231
  o.push({
3230
3232
  type: E.literal,
3231
- value: r.getDateTimeFormat(t, p).format(c)
3233
+ value: r.getDateTimeFormat(t, d).format(c)
3232
3234
  });
3233
3235
  continue;
3234
3236
  }
3235
- if (At(u)) {
3236
- var p = typeof u.style == "string" ? n.number[u.style] : It(u.style) ? u.style.parsedOptions : void 0;
3237
- p && p.scale && (c = c * (p.scale || 1)), o.push({
3237
+ if (Ot(u)) {
3238
+ var d = typeof u.style == "string" ? n.number[u.style] : $t(u.style) ? u.style.parsedOptions : void 0;
3239
+ d && d.scale && (c = c * (d.scale || 1)), o.push({
3238
3240
  type: E.literal,
3239
- value: r.getNumberFormat(t, p).format(c)
3241
+ value: r.getNumberFormat(t, d).format(c)
3240
3242
  });
3241
3243
  continue;
3242
3244
  }
3243
- if (Nt(u)) {
3245
+ if (Mt(u)) {
3244
3246
  var m = u.children, g = u.value, v = i[g];
3245
- if (!wn(v))
3246
- throw new Hn(g, "function", h);
3247
+ if (!Sn(v))
3248
+ throw new Bn(g, "function", h);
3247
3249
  var L = le(m, t, r, n, i, s), A = v(L.map(function(T) {
3248
3250
  return T.value;
3249
3251
  }));
@@ -3254,14 +3256,14 @@ function le(e, t, r, n, i, s, h) {
3254
3256
  };
3255
3257
  }));
3256
3258
  }
3257
- if (Pt(u)) {
3259
+ if (Nt(u)) {
3258
3260
  var H = u.options[c] || u.options.other;
3259
3261
  if (!H)
3260
- throw new st(u.value, c, Object.keys(u.options), h);
3262
+ throw new at(u.value, c, Object.keys(u.options), h);
3261
3263
  o.push.apply(o, le(H.value, t, r, n, i));
3262
3264
  continue;
3263
3265
  }
3264
- if (Lt(u)) {
3266
+ if (It(u)) {
3265
3267
  var H = u.options["=".concat(c)];
3266
3268
  if (!H) {
3267
3269
  if (!Intl.PluralRules)
@@ -3272,21 +3274,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3272
3274
  H = u.options[N] || u.options.other;
3273
3275
  }
3274
3276
  if (!H)
3275
- throw new st(u.value, c, Object.keys(u.options), h);
3277
+ throw new at(u.value, c, Object.keys(u.options), h);
3276
3278
  o.push.apply(o, le(H.value, t, r, n, i, c - (u.offset || 0)));
3277
3279
  continue;
3278
3280
  }
3279
3281
  }
3280
- return Tn(o);
3282
+ return wn(o);
3281
3283
  }
3282
- function Sn(e, t) {
3284
+ function An(e, t) {
3283
3285
  return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3284
3286
  return r[n] = y(y({}, e[n]), t[n] || {}), r;
3285
3287
  }, {})) : e;
3286
3288
  }
3287
- function An(e, t) {
3289
+ function Cn(e, t) {
3288
3290
  return t ? Object.keys(e).reduce(function(r, n) {
3289
- return r[n] = Sn(e[n], t[n]), r;
3291
+ return r[n] = An(e[n], t[n]), r;
3290
3292
  }, y({}, e)) : e;
3291
3293
  }
3292
3294
  function Oe(e) {
@@ -3303,7 +3305,7 @@ function Oe(e) {
3303
3305
  }
3304
3306
  };
3305
3307
  }
3306
- function Cn(e) {
3308
+ function On(e) {
3307
3309
  return e === void 0 && (e = {
3308
3310
  number: {},
3309
3311
  dateTime: {},
@@ -3335,7 +3337,7 @@ function Cn(e) {
3335
3337
  })
3336
3338
  };
3337
3339
  }
3338
- var jt = (
3340
+ var Vt = (
3339
3341
  /** @class */
3340
3342
  function() {
3341
3343
  function e(t, r, n, i) {
@@ -3367,13 +3369,13 @@ var jt = (
3367
3369
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3368
3370
  var h = i || {};
3369
3371
  h.formatters;
3370
- var o = Ur(h, ["formatters"]);
3372
+ var o = Gr(h, ["formatters"]);
3371
3373
  this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
3372
3374
  } else
3373
3375
  this.ast = t;
3374
3376
  if (!Array.isArray(this.ast))
3375
3377
  throw new TypeError("A message must be provided as a String or AST.");
3376
- this.formats = An(e.formats, n), this.formatters = i && i.formatters || Cn(this.formatterCache);
3378
+ this.formats = Cn(e.formats, n), this.formatters = i && i.formatters || On(this.formatterCache);
3377
3379
  }
3378
3380
  return Object.defineProperty(e, "defaultLocale", {
3379
3381
  get: function() {
@@ -3386,7 +3388,7 @@ var jt = (
3386
3388
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3387
3389
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3388
3390
  }
3389
- }, e.__parse = vn, e.formats = {
3391
+ }, e.__parse = Hn, e.formats = {
3390
3392
  number: {
3391
3393
  integer: {
3392
3394
  maximumFractionDigits: 0
@@ -3447,7 +3449,7 @@ var jt = (
3447
3449
  }, e;
3448
3450
  }()
3449
3451
  );
3450
- function On(e, t) {
3452
+ function Pn(e, t) {
3451
3453
  if (t == null)
3452
3454
  return;
3453
3455
  if (t in e)
@@ -3468,60 +3470,60 @@ function On(e, t) {
3468
3470
  n = void 0;
3469
3471
  return n;
3470
3472
  }
3471
- const C = {}, Pn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), kt = (e, t) => {
3473
+ const C = {}, Ln = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Xt = (e, t) => {
3472
3474
  if (t == null)
3473
3475
  return;
3474
3476
  if (t in C && e in C[t])
3475
3477
  return C[t][e];
3476
3478
  const r = ne(t);
3477
3479
  for (let n = 0; n < r.length; n++) {
3478
- const i = r[n], s = Nn(i, e);
3480
+ const i = r[n], s = In(i, e);
3479
3481
  if (s)
3480
- return Pn(e, t, s);
3482
+ return Ln(e, t, s);
3481
3483
  }
3482
3484
  };
3483
- let We;
3485
+ let Ze;
3484
3486
  const re = be({});
3485
- function Ln(e) {
3486
- return We[e] || null;
3487
+ function Nn(e) {
3488
+ return Ze[e] || null;
3487
3489
  }
3488
- function Vt(e) {
3489
- return e in We;
3490
+ function zt(e) {
3491
+ return e in Ze;
3490
3492
  }
3491
- function Nn(e, t) {
3492
- if (!Vt(e))
3493
+ function In(e, t) {
3494
+ if (!zt(e))
3493
3495
  return null;
3494
- const r = Ln(e);
3495
- return On(r, t);
3496
+ const r = Nn(e);
3497
+ return Pn(r, t);
3496
3498
  }
3497
- function In(e) {
3499
+ function Mn(e) {
3498
3500
  if (e == null)
3499
3501
  return;
3500
3502
  const t = ne(e);
3501
3503
  for (let r = 0; r < t.length; r++) {
3502
3504
  const n = t[r];
3503
- if (Vt(n))
3505
+ if (zt(n))
3504
3506
  return n;
3505
3507
  }
3506
3508
  }
3507
- function Xt(e, ...t) {
3508
- delete C[e], re.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
3509
+ function Wt(e, ...t) {
3510
+ delete C[e], re.update((r) => (r[e] = Dr.all([r[e] || {}, ...t]), r));
3509
3511
  }
3510
3512
  Z(
3511
3513
  [re],
3512
3514
  ([e]) => Object.keys(e)
3513
3515
  );
3514
- re.subscribe((e) => We = e);
3516
+ re.subscribe((e) => Ze = e);
3515
3517
  const fe = {};
3516
- function Mn(e, t) {
3518
+ function $n(e, t) {
3517
3519
  fe[e].delete(t), fe[e].size === 0 && delete fe[e];
3518
3520
  }
3519
- function Wt(e) {
3521
+ function Zt(e) {
3520
3522
  return fe[e];
3521
3523
  }
3522
- function $n(e) {
3524
+ function Rn(e) {
3523
3525
  return ne(e).map((t) => {
3524
- const r = Wt(t);
3526
+ const r = Zt(t);
3525
3527
  return [t, r ? [...r] : []];
3526
3528
  }).filter(([, t]) => t.length > 0);
3527
3529
  }
@@ -3529,40 +3531,40 @@ function me(e) {
3529
3531
  return e == null ? !1 : ne(e).some(
3530
3532
  (t) => {
3531
3533
  var r;
3532
- return (r = Wt(t)) == null ? void 0 : r.size;
3534
+ return (r = Zt(t)) == null ? void 0 : r.size;
3533
3535
  }
3534
3536
  );
3535
3537
  }
3536
- function Rn(e, t) {
3538
+ function Un(e, t) {
3537
3539
  return Promise.all(
3538
- t.map((n) => (Mn(e, n), n().then((i) => i.default || i)))
3539
- ).then((n) => Xt(e, ...n));
3540
+ t.map((n) => ($n(e, n), n().then((i) => i.default || i)))
3541
+ ).then((n) => Wt(e, ...n));
3540
3542
  }
3541
3543
  const q = {};
3542
- function zt(e) {
3544
+ function Qt(e) {
3543
3545
  if (!me(e))
3544
3546
  return e in q ? q[e] : Promise.resolve();
3545
- const t = $n(e);
3547
+ const t = Rn(e);
3546
3548
  return q[e] = Promise.all(
3547
3549
  t.map(
3548
- ([r, n]) => Rn(r, n)
3550
+ ([r, n]) => Un(r, n)
3549
3551
  )
3550
3552
  ).then(() => {
3551
3553
  if (me(e))
3552
- return zt(e);
3554
+ return Qt(e);
3553
3555
  delete q[e];
3554
3556
  }), q[e];
3555
3557
  }
3556
- var ot = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, Gn = (e, t) => {
3558
+ var ht = Object.getOwnPropertySymbols, Dn = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, Fn = (e, t) => {
3557
3559
  var r = {};
3558
3560
  for (var n in e)
3559
- Un.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3560
- if (e != null && ot)
3561
- for (var n of ot(e))
3562
- t.indexOf(n) < 0 && Dn.call(e, n) && (r[n] = e[n]);
3561
+ Dn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3562
+ if (e != null && ht)
3563
+ for (var n of ht(e))
3564
+ t.indexOf(n) < 0 && Gn.call(e, n) && (r[n] = e[n]);
3563
3565
  return r;
3564
3566
  };
3565
- const Fn = {
3567
+ const jn = {
3566
3568
  number: {
3567
3569
  scientific: { notation: "scientific" },
3568
3570
  engineering: { notation: "engineering" },
@@ -3592,7 +3594,7 @@ const Fn = {
3592
3594
  }
3593
3595
  }
3594
3596
  };
3595
- function jn({ locale: e, id: t }) {
3597
+ function kn({ locale: e, id: t }) {
3596
3598
  console.warn(
3597
3599
  `[svelte-i18n] The message "${t}" was not found in "${ne(
3598
3600
  e
@@ -3601,72 +3603,72 @@ function jn({ locale: e, id: t }) {
3601
3603
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3602
3604
  );
3603
3605
  }
3604
- const kn = {
3606
+ const Vn = {
3605
3607
  fallbackLocale: null,
3606
3608
  loadingDelay: 200,
3607
- formats: Fn,
3609
+ formats: jn,
3608
3610
  warnOnMissingMessages: !0,
3609
3611
  handleMissingMessage: void 0,
3610
3612
  ignoreTag: !0
3611
- }, J = kn;
3613
+ }, J = Vn;
3612
3614
  function X() {
3613
3615
  return J;
3614
3616
  }
3615
- function Vn(e) {
3616
- const t = e, { formats: r } = t, n = Gn(t, ["formats"]);
3617
+ function Xn(e) {
3618
+ const t = e, { formats: r } = t, n = Fn(t, ["formats"]);
3617
3619
  let i = e.fallbackLocale;
3618
3620
  if (e.initialLocale)
3619
3621
  try {
3620
- jt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3622
+ Vt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3621
3623
  } catch {
3622
3624
  console.warn(
3623
3625
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3624
3626
  );
3625
3627
  }
3626
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = jn : console.warn(
3628
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = kn : console.warn(
3627
3629
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3628
3630
  )), Object.assign(J, n, { initialLocale: i }), r && ("number" in r && Object.assign(J.formats.number, r.number), "date" in r && Object.assign(J.formats.date, r.date), "time" in r && Object.assign(J.formats.time, r.time)), M.set(i);
3629
3631
  }
3630
3632
  const Pe = be(!1);
3631
- var Xn = Object.defineProperty, Wn = Object.defineProperties, zn = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, Zn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qn = (e, t) => {
3633
+ var zn = Object.defineProperty, Wn = Object.defineProperties, Zn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, qn = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Jn = (e, t) => {
3632
3634
  for (var r in t || (t = {}))
3633
- Zn.call(t, r) && ht(e, r, t[r]);
3634
- if (at)
3635
- for (var r of at(t))
3636
- Qn.call(t, r) && ht(e, r, t[r]);
3635
+ Qn.call(t, r) && lt(e, r, t[r]);
3636
+ if (ut)
3637
+ for (var r of ut(t))
3638
+ qn.call(t, r) && lt(e, r, t[r]);
3637
3639
  return e;
3638
- }, Jn = (e, t) => Wn(e, zn(t));
3640
+ }, Yn = (e, t) => Wn(e, Zn(t));
3639
3641
  let je;
3640
- const pe = be(null);
3641
- function ut(e) {
3642
+ const de = be(null);
3643
+ function ft(e) {
3642
3644
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3643
3645
  }
3644
3646
  function ne(e, t = X().fallbackLocale) {
3645
- const r = ut(e);
3646
- return t ? [.../* @__PURE__ */ new Set([...r, ...ut(t)])] : r;
3647
+ const r = ft(e);
3648
+ return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
3647
3649
  }
3648
3650
  function P() {
3649
3651
  return je ?? void 0;
3650
3652
  }
3651
- pe.subscribe((e) => {
3653
+ de.subscribe((e) => {
3652
3654
  je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3653
3655
  });
3654
- const Yn = (e) => {
3655
- if (e && In(e) && me(e)) {
3656
+ const Kn = (e) => {
3657
+ if (e && Mn(e) && me(e)) {
3656
3658
  const { loadingDelay: t } = X();
3657
3659
  let r;
3658
3660
  return typeof window < "u" && P() != null && t ? r = window.setTimeout(
3659
3661
  () => Pe.set(!0),
3660
3662
  t
3661
- ) : Pe.set(!0), zt(e).then(() => {
3662
- pe.set(e);
3663
+ ) : Pe.set(!0), Qt(e).then(() => {
3664
+ de.set(e);
3663
3665
  }).finally(() => {
3664
3666
  clearTimeout(r), Pe.set(!1);
3665
3667
  });
3666
3668
  }
3667
- return pe.set(e);
3668
- }, M = Jn(qn({}, pe), {
3669
- set: Yn
3669
+ return de.set(e);
3670
+ }, M = Yn(Jn({}, de), {
3671
+ set: Kn
3670
3672
  }), ye = (e) => {
3671
3673
  const t = /* @__PURE__ */ Object.create(null);
3672
3674
  return (n) => {
@@ -3674,20 +3676,20 @@ const Yn = (e) => {
3674
3676
  return i in t ? t[i] : t[i] = e(n);
3675
3677
  };
3676
3678
  };
3677
- var Kn = Object.defineProperty, de = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
3679
+ var ei = Object.defineProperty, pe = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
3678
3680
  for (var r in t || (t = {}))
3679
- Zt.call(t, r) && lt(e, r, t[r]);
3680
- if (de)
3681
- for (var r of de(t))
3682
- Qt.call(t, r) && lt(e, r, t[r]);
3681
+ qt.call(t, r) && ct(e, r, t[r]);
3682
+ if (pe)
3683
+ for (var r of pe(t))
3684
+ Jt.call(t, r) && ct(e, r, t[r]);
3683
3685
  return e;
3684
3686
  }, Q = (e, t) => {
3685
3687
  var r = {};
3686
3688
  for (var n in e)
3687
- Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3688
- if (e != null && de)
3689
- for (var n of de(e))
3690
- t.indexOf(n) < 0 && Qt.call(e, n) && (r[n] = e[n]);
3689
+ qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3690
+ if (e != null && pe)
3691
+ for (var n of pe(e))
3692
+ t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
3691
3693
  return r;
3692
3694
  };
3693
3695
  const ee = (e, t) => {
@@ -3695,21 +3697,21 @@ const ee = (e, t) => {
3695
3697
  if (e in r && t in r[e])
3696
3698
  return r[e][t];
3697
3699
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3698
- }, ei = ye(
3700
+ }, ti = ye(
3699
3701
  (e) => {
3700
3702
  var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3701
3703
  if (r == null)
3702
3704
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3703
3705
  return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
3704
3706
  }
3705
- ), ti = ye(
3707
+ ), ri = ye(
3706
3708
  (e) => {
3707
3709
  var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3708
3710
  if (r == null)
3709
3711
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3710
3712
  return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
3711
3713
  }
3712
- ), ri = ye(
3714
+ ), ni = ye(
3713
3715
  (e) => {
3714
3716
  var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3715
3717
  if (r == null)
@@ -3718,33 +3720,33 @@ const ee = (e, t) => {
3718
3720
  );
3719
3721
  return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
3720
3722
  }
3721
- ), ni = (e = {}) => {
3723
+ ), ii = (e = {}) => {
3722
3724
  var t = e, {
3723
3725
  locale: r = P()
3724
3726
  } = t, n = Q(t, [
3725
3727
  "locale"
3726
3728
  ]);
3727
- return ei(ze({ locale: r }, n));
3728
- }, ii = (e = {}) => {
3729
+ return ti(Qe({ locale: r }, n));
3730
+ }, si = (e = {}) => {
3729
3731
  var t = e, {
3730
3732
  locale: r = P()
3731
3733
  } = t, n = Q(t, [
3732
3734
  "locale"
3733
3735
  ]);
3734
- return ti(ze({ locale: r }, n));
3735
- }, si = (e = {}) => {
3736
+ return ri(Qe({ locale: r }, n));
3737
+ }, oi = (e = {}) => {
3736
3738
  var t = e, {
3737
3739
  locale: r = P()
3738
3740
  } = t, n = Q(t, [
3739
3741
  "locale"
3740
3742
  ]);
3741
- return ri(ze({ locale: r }, n));
3742
- }, oi = ye(
3743
+ return ni(Qe({ locale: r }, n));
3744
+ }, ai = ye(
3743
3745
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3744
- (e, t = P()) => new jt(e, t, X().formats, {
3746
+ (e, t = P()) => new Vt(e, t, X().formats, {
3745
3747
  ignoreTag: X().ignoreTag
3746
3748
  })
3747
- ), ai = (e, t = {}) => {
3749
+ ), hi = (e, t = {}) => {
3748
3750
  var r, n, i, s;
3749
3751
  let h = t;
3750
3752
  typeof e == "object" && (h = e, e = h.id);
@@ -3757,7 +3759,7 @@ const ee = (e, t) => {
3757
3759
  throw new Error(
3758
3760
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3759
3761
  );
3760
- let u = kt(e, l);
3762
+ let u = Xt(e, l);
3761
3763
  if (!u)
3762
3764
  u = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3763
3765
  else if (typeof u != "string")
@@ -3768,7 +3770,7 @@ const ee = (e, t) => {
3768
3770
  return u;
3769
3771
  let f = u;
3770
3772
  try {
3771
- f = oi(u, l).format(o);
3773
+ f = ai(u, l).format(o);
3772
3774
  } catch (c) {
3773
3775
  c instanceof Error && console.warn(
3774
3776
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3776,20 +3778,20 @@ const ee = (e, t) => {
3776
3778
  );
3777
3779
  }
3778
3780
  return f;
3779
- }, hi = (e, t) => si(t).format(e), ui = (e, t) => ii(t).format(e), li = (e, t) => ni(t).format(e), fi = (e, t = P()) => kt(e, t), ci = Z([M, re], () => ai);
3780
- Z([M], () => hi);
3781
+ }, ui = (e, t) => oi(t).format(e), li = (e, t) => si(t).format(e), fi = (e, t) => ii(t).format(e), ci = (e, t = P()) => Xt(e, t), mi = Z([M, re], () => hi);
3781
3782
  Z([M], () => ui);
3782
3783
  Z([M], () => li);
3783
- Z([M, re], () => fi);
3784
- function ft(e, t) {
3785
- Xt(e, t);
3784
+ Z([M], () => fi);
3785
+ Z([M, re], () => ci);
3786
+ function mt(e, t) {
3787
+ Wt(e, t);
3786
3788
  }
3787
- function mi(e) {
3788
- Vn({
3789
+ function di(e) {
3790
+ Xn({
3789
3791
  fallbackLocale: "en"
3790
3792
  }), M.set(e);
3791
3793
  }
3792
- const ct = {
3794
+ const dt = {
3793
3795
  en: {
3794
3796
  header: {
3795
3797
  general: "Cashier",
@@ -3813,17 +3815,17 @@ const ct = {
3813
3815
  }
3814
3816
  };
3815
3817
  function pi(e) {
3816
- nr(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
3818
+ sr(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
3817
3819
  }
3818
- const di = (e) => ({}), mt = (e) => ({}), bi = (e) => ({}), pt = (e) => ({}), gi = (e) => ({}), dt = (e) => ({});
3819
- function bt(e) {
3820
+ const bi = (e) => ({}), pt = (e) => ({}), gi = (e) => ({}), bt = (e) => ({}), _i = (e) => ({}), gt = (e) => ({});
3821
+ function _t(e) {
3820
3822
  let t, r, n;
3821
3823
  return {
3822
3824
  c() {
3823
- t = W("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', z(t, "class", "CashierHeaderLeftButton");
3825
+ t = z("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', W(t, "class", "CashierHeaderLeftButton");
3824
3826
  },
3825
3827
  m(i, s) {
3826
- I(i, t, s), r || (n = Ht(
3828
+ I(i, t, s), r || (n = Tt(
3827
3829
  t,
3828
3830
  "click",
3829
3831
  /*back*/
@@ -3836,28 +3838,28 @@ function bt(e) {
3836
3838
  }
3837
3839
  };
3838
3840
  }
3839
- function _i(e) {
3841
+ function yi(e) {
3840
3842
  let t, r = (
3841
3843
  /*backButton*/
3842
- e[1] && bt(e)
3844
+ e[1] && _t(e)
3843
3845
  );
3844
3846
  return {
3845
3847
  c() {
3846
- r && r.c(), t = vt();
3848
+ r && r.c(), t = Bt();
3847
3849
  },
3848
3850
  m(n, i) {
3849
3851
  r && r.m(n, i), I(n, t, i);
3850
3852
  },
3851
3853
  p(n, i) {
3852
3854
  /*backButton*/
3853
- n[1] ? r ? r.p(n, i) : (r = bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3855
+ n[1] ? r ? r.p(n, i) : (r = _t(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3854
3856
  },
3855
3857
  d(n) {
3856
3858
  n && O(t), r && r.d(n);
3857
3859
  }
3858
3860
  };
3859
3861
  }
3860
- function yi(e) {
3862
+ function xi(e) {
3861
3863
  let t, r = (
3862
3864
  /*$_*/
3863
3865
  e[4](
@@ -3867,7 +3869,7 @@ function yi(e) {
3867
3869
  ), n;
3868
3870
  return {
3869
3871
  c() {
3870
- t = W("span"), n = Ve(r), z(t, "class", "CashierHeaderTitle");
3872
+ t = z("span"), n = Ve(r), W(t, "class", "CashierHeaderTitle");
3871
3873
  },
3872
3874
  m(i, s) {
3873
3875
  I(i, t, s), ce(t, n);
@@ -3878,21 +3880,21 @@ function yi(e) {
3878
3880
  i[4](
3879
3881
  /*titleText*/
3880
3882
  i[2]
3881
- ) + "") && ar(n, r);
3883
+ ) + "") && ur(n, r);
3882
3884
  },
3883
3885
  d(i) {
3884
3886
  i && O(t);
3885
3887
  }
3886
3888
  };
3887
3889
  }
3888
- function gt(e) {
3890
+ function yt(e) {
3889
3891
  let t, r, n;
3890
3892
  return {
3891
3893
  c() {
3892
- t = W("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', z(t, "class", "CashierHeaderRightButton");
3894
+ t = z("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', W(t, "class", "CashierHeaderRightButton");
3893
3895
  },
3894
3896
  m(i, s) {
3895
- I(i, t, s), r || (n = Ht(
3897
+ I(i, t, s), r || (n = Tt(
3896
3898
  t,
3897
3899
  "click",
3898
3900
  /*close*/
@@ -3905,28 +3907,28 @@ function gt(e) {
3905
3907
  }
3906
3908
  };
3907
3909
  }
3908
- function xi(e) {
3910
+ function Ei(e) {
3909
3911
  let t, r = (
3910
3912
  /*closeButton*/
3911
- e[3] && gt(e)
3913
+ e[3] && yt(e)
3912
3914
  );
3913
3915
  return {
3914
3916
  c() {
3915
- r && r.c(), t = vt();
3917
+ r && r.c(), t = Bt();
3916
3918
  },
3917
3919
  m(n, i) {
3918
3920
  r && r.m(n, i), I(n, t, i);
3919
3921
  },
3920
3922
  p(n, i) {
3921
3923
  /*closeButton*/
3922
- n[3] ? r ? r.p(n, i) : (r = gt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3924
+ n[3] ? r ? r.p(n, i) : (r = yt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3923
3925
  },
3924
3926
  d(n) {
3925
3927
  n && O(t), r && r.d(n);
3926
3928
  }
3927
3929
  };
3928
3930
  }
3929
- function Ei(e) {
3931
+ function vi(e) {
3930
3932
  let t, r, n, i;
3931
3933
  const s = (
3932
3934
  /*#slots*/
@@ -3936,8 +3938,8 @@ function Ei(e) {
3936
3938
  e,
3937
3939
  /*$$scope*/
3938
3940
  e[14],
3939
- dt
3940
- ), o = h || _i(e), l = (
3941
+ gt
3942
+ ), o = h || yi(e), l = (
3941
3943
  /*#slots*/
3942
3944
  e[15].title
3943
3945
  ), a = xe(
@@ -3945,8 +3947,8 @@ function Ei(e) {
3945
3947
  e,
3946
3948
  /*$$scope*/
3947
3949
  e[14],
3948
- pt
3949
- ), u = a || yi(e), f = (
3950
+ bt
3951
+ ), u = a || xi(e), f = (
3950
3952
  /*#slots*/
3951
3953
  e[15].rightButton
3952
3954
  ), c = xe(
@@ -3954,14 +3956,14 @@ function Ei(e) {
3954
3956
  e,
3955
3957
  /*$$scope*/
3956
3958
  e[14],
3957
- mt
3958
- ), p = c || xi(e);
3959
+ pt
3960
+ ), d = c || Ei(e);
3959
3961
  return {
3960
3962
  c() {
3961
- t = W("div"), o && o.c(), r = Qe(), u && u.c(), n = Qe(), p && p.c(), z(t, "class", "CashierHeader");
3963
+ t = z("div"), o && o.c(), r = Je(), u && u.c(), n = Je(), d && d.c(), W(t, "class", "CashierHeader");
3962
3964
  },
3963
3965
  m(m, g) {
3964
- I(m, t, g), o && o.m(t, null), ce(t, r), u && u.m(t, null), ce(t, n), p && p.m(t, null), e[16](t), i = !0;
3966
+ I(m, t, g), o && o.m(t, null), ce(t, r), u && u.m(t, null), ce(t, n), d && d.m(t, null), e[16](t), i = !0;
3965
3967
  },
3966
3968
  p(m, [g]) {
3967
3969
  h ? h.p && (!i || g & /*$$scope*/
@@ -3976,12 +3978,12 @@ function Ei(e) {
3976
3978
  /*$$scope*/
3977
3979
  m[14],
3978
3980
  g,
3979
- gi
3981
+ _i
3980
3982
  ) : He(
3981
3983
  /*$$scope*/
3982
3984
  m[14]
3983
3985
  ),
3984
- dt
3986
+ gt
3985
3987
  ) : o && o.p && (!i || g & /*backButton*/
3986
3988
  2) && o.p(m, i ? g : -1), a ? a.p && (!i || g & /*$$scope*/
3987
3989
  16384) && ve(
@@ -3995,12 +3997,12 @@ function Ei(e) {
3995
3997
  /*$$scope*/
3996
3998
  m[14],
3997
3999
  g,
3998
- bi
4000
+ gi
3999
4001
  ) : He(
4000
4002
  /*$$scope*/
4001
4003
  m[14]
4002
4004
  ),
4003
- pt
4005
+ bt
4004
4006
  ) : u && u.p && (!i || g & /*$_, titleText*/
4005
4007
  20) && u.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
4006
4008
  16384) && ve(
@@ -4014,72 +4016,72 @@ function Ei(e) {
4014
4016
  /*$$scope*/
4015
4017
  m[14],
4016
4018
  g,
4017
- di
4019
+ bi
4018
4020
  ) : He(
4019
4021
  /*$$scope*/
4020
4022
  m[14]
4021
4023
  ),
4022
- mt
4023
- ) : p && p.p && (!i || g & /*closeButton*/
4024
- 8) && p.p(m, i ? g : -1);
4024
+ pt
4025
+ ) : d && d.p && (!i || g & /*closeButton*/
4026
+ 8) && d.p(m, i ? g : -1);
4025
4027
  },
4026
4028
  i(m) {
4027
- i || (he(o, m), he(u, m), he(p, m), i = !0);
4029
+ i || (he(o, m), he(u, m), he(d, m), i = !0);
4028
4030
  },
4029
4031
  o(m) {
4030
- Te(o, m), Te(u, m), Te(p, m), i = !1;
4032
+ Te(o, m), Te(u, m), Te(d, m), i = !1;
4031
4033
  },
4032
4034
  d(m) {
4033
- m && O(t), o && o.d(m), u && u.d(m), p && p.d(m), e[16](null);
4035
+ m && O(t), o && o.d(m), u && u.d(m), d && d.d(m), e[16](null);
4034
4036
  }
4035
4037
  };
4036
4038
  }
4037
- function vi(e, t, r) {
4039
+ function Hi(e, t, r) {
4038
4040
  let n;
4039
- rr(e, ci, (_) => r(4, n = _));
4040
- let { $$slots: i = {}, $$scope: s } = t, { clientstyling: h = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: u = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, p, m = !1, g, v = !1;
4041
+ ir(e, mi, (_) => r(4, n = _));
4042
+ let { $$slots: i = {}, $$scope: s } = t, { clientstyling: h = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: u = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, d, m = !1, g, v = !1;
4041
4043
  const L = () => {
4042
4044
  let _ = l;
4043
4045
  _ && fetch(_).then((w) => w.json()).then((w) => {
4044
4046
  Object.keys(w).forEach((R) => {
4045
- ft(R, w[R]);
4047
+ mt(R, w[R]);
4046
4048
  });
4047
4049
  }).catch((w) => {
4048
4050
  console.log(w);
4049
4051
  });
4050
4052
  };
4051
- Object.keys(ct).forEach((_) => {
4052
- ft(_, ct[_]);
4053
+ Object.keys(dt).forEach((_) => {
4054
+ mt(_, dt[_]);
4053
4055
  });
4054
4056
  const A = () => {
4055
4057
  let _ = document.createElement("style");
4056
- _.innerHTML = h, p.appendChild(_);
4058
+ _.innerHTML = h, d.appendChild(_);
4057
4059
  }, H = () => {
4058
4060
  let _ = new URL(o), w = document.createElement("style");
4059
4061
  fetch(_.href).then((R) => R.text()).then((R) => {
4060
4062
  w.innerHTML = R, setTimeout(
4061
4063
  () => {
4062
- p.appendChild(w);
4064
+ d.appendChild(w);
4063
4065
  },
4064
4066
  1
4065
4067
  );
4066
4068
  });
4067
4069
  }, N = () => {
4068
- mi(f);
4070
+ di(f);
4069
4071
  }, T = () => {
4070
4072
  window.postMessage({ type: "CloseCashier" }, window.location.href);
4071
4073
  }, $ = () => {
4072
4074
  window.postMessage({ type: "BackCashier" }, window.location.href);
4073
4075
  }, ie = () => {
4074
4076
  r(1, m = !!a && a !== "false");
4075
- }, Jt = () => {
4077
+ }, Kt = () => {
4076
4078
  r(3, v = !!c && c !== "false");
4077
- }, Yt = () => {
4079
+ }, er = () => {
4078
4080
  r(2, g = u || "header.general");
4079
4081
  };
4080
- function Kt(_) {
4082
+ function tr(_) {
4081
4083
  Le[_ ? "unshift" : "push"](() => {
4082
- p = _, r(0, p);
4084
+ d = _, r(0, d);
4083
4085
  });
4084
4086
  }
4085
4087
  return e.$$set = (_) => {
@@ -4087,14 +4089,14 @@ function vi(e, t, r) {
4087
4089
  }, e.$$.update = () => {
4088
4090
  e.$$.dirty & /*lang*/
4089
4091
  4096 && f && N(), e.$$.dirty & /*lang, title*/
4090
- 6144 && f && u && Yt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4091
- 129 && h && p && A(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4092
- 257 && o && p && H(), e.$$.dirty & /*lang, translationurl*/
4092
+ 6144 && f && u && er(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4093
+ 129 && h && d && A(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4094
+ 257 && o && d && H(), e.$$.dirty & /*lang, translationurl*/
4093
4095
  4608 && f && l && L(), e.$$.dirty & /*showbackbutton*/
4094
4096
  1024 && a && ie(), e.$$.dirty & /*showclosebutton*/
4095
- 8192 && c && Jt();
4097
+ 8192 && c && Kt();
4096
4098
  }, [
4097
- p,
4099
+ d,
4098
4100
  m,
4099
4101
  g,
4100
4102
  v,
@@ -4110,17 +4112,17 @@ function vi(e, t, r) {
4110
4112
  c,
4111
4113
  s,
4112
4114
  i,
4113
- Kt
4115
+ tr
4114
4116
  ];
4115
4117
  }
4116
- class qt extends yr {
4118
+ class Yt extends Er {
4117
4119
  constructor(t) {
4118
- super(), gr(
4120
+ super(), yr(
4119
4121
  this,
4120
4122
  t,
4123
+ Hi,
4121
4124
  vi,
4122
- Ei,
4123
- yt,
4125
+ Et,
4124
4126
  {
4125
4127
  clientstyling: 7,
4126
4128
  clientstylingurl: 8,
@@ -4176,31 +4178,31 @@ class qt extends yr {
4176
4178
  this.$$set({ showclosebutton: t }), S();
4177
4179
  }
4178
4180
  }
4179
- _r(qt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
4180
- const Ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4181
+ xr(Yt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
4182
+ const wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4181
4183
  __proto__: null,
4182
- default: qt
4184
+ default: Yt
4183
4185
  }, Symbol.toStringTag, { value: "Module" }));
4184
4186
  export {
4185
4187
  M as $,
4186
- Ti as C,
4187
- yr as S,
4188
- Xt as a,
4189
- gr as b,
4190
- _r as c,
4191
- nr as d,
4192
- O as e,
4188
+ wi as C,
4189
+ Er as S,
4190
+ Wt as a,
4191
+ yr as b,
4192
+ xr as c,
4193
+ sr as d,
4194
+ z as e,
4193
4195
  S as f,
4194
- Bi as g,
4195
- Hi as h,
4196
- Vn as i,
4197
- z as j,
4198
- I as k,
4199
- ce as l,
4200
- Ht as m,
4201
- B as n,
4202
- W as o,
4203
- Qe as p,
4196
+ Je as g,
4197
+ Ti as h,
4198
+ Xn as i,
4199
+ Bi as j,
4200
+ W as k,
4201
+ I as l,
4202
+ ce as m,
4203
+ Tt as n,
4204
+ B as o,
4205
+ O as p,
4204
4206
  Le as q,
4205
- yt as s
4207
+ Et as s
4206
4208
  };