@everymatrix/cashier-iframe-redirect 1.55.0 → 1.56.2

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,25 +1,26 @@
1
1
  function B() {
2
2
  }
3
3
  function rr(e, t) {
4
- for (const r in t) e[r] = t[r];
4
+ for (const r in t)
5
+ e[r] = t[r];
5
6
  return (
6
7
  /** @type {T & S} */
7
8
  e
8
9
  );
9
10
  }
10
- function Et(e) {
11
+ function xt(e) {
11
12
  return e();
12
13
  }
13
14
  function qe() {
14
15
  return /* @__PURE__ */ Object.create(null);
15
16
  }
16
17
  function te(e) {
17
- e.forEach(Et);
18
+ e.forEach(xt);
18
19
  }
19
20
  function ke(e) {
20
21
  return typeof e == "function";
21
22
  }
22
- function xt(e, t) {
23
+ function Et(e, t) {
23
24
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
24
25
  }
25
26
  let se;
@@ -41,7 +42,7 @@ function vt(e, ...t) {
41
42
  function ir(e, t, r) {
42
43
  e.$$.on_destroy.push(vt(t, r));
43
44
  }
44
- function Ee(e, t, r, n) {
45
+ function xe(e, t, r, n) {
45
46
  if (e) {
46
47
  const i = Ht(e, t, r, n);
47
48
  return e[0](i);
@@ -50,14 +51,14 @@ function Ee(e, t, r, n) {
50
51
  function Ht(e, t, r, n) {
51
52
  return e[1] && n ? rr(r.ctx.slice(), e[1](n(t))) : r.ctx;
52
53
  }
53
- function xe(e, t, r, n) {
54
+ function Ee(e, t, r, n) {
54
55
  if (e[2] && n) {
55
56
  const i = e[2](n(r));
56
57
  if (t.dirty === void 0)
57
58
  return i;
58
59
  if (typeof i == "object") {
59
- const s = [], u = Math.max(t.dirty.length, i.length);
60
- for (let o = 0; o < u; o += 1)
60
+ const s = [], h = Math.max(t.dirty.length, i.length);
61
+ for (let o = 0; o < h; o += 1)
61
62
  s[o] = t.dirty[o] | i[o];
62
63
  return s;
63
64
  }
@@ -67,8 +68,8 @@ function xe(e, t, r, n) {
67
68
  }
68
69
  function ve(e, t, r, n, i, s) {
69
70
  if (i) {
70
- const u = Ht(t, r, n, s);
71
- e.p(u, i);
71
+ const h = Ht(t, r, n, s);
72
+ e.p(h, i);
72
73
  }
73
74
  }
74
75
  function He(e) {
@@ -91,7 +92,8 @@ function sr(e, t, r) {
91
92
  }
92
93
  }
93
94
  function or(e) {
94
- if (!e) return document;
95
+ if (!e)
96
+ return document;
95
97
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
96
98
  return t && /** @type {ShadowRoot} */
97
99
  t.host ? (
@@ -134,10 +136,10 @@ function Ti(e, t, r) {
134
136
  const n = t.toLowerCase();
135
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);
136
138
  }
137
- function ur(e) {
139
+ function hr(e) {
138
140
  return Array.from(e.childNodes);
139
141
  }
140
- function hr(e, t) {
142
+ function ur(e, t) {
141
143
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
142
144
  t);
143
145
  }
@@ -179,7 +181,8 @@ function S() {
179
181
  } catch (t) {
180
182
  throw G.length = 0, U = 0, t;
181
183
  }
182
- for (Y(null), G.length = 0, U = 0; Le.length; ) Le.pop()();
184
+ for (Y(null), G.length = 0, U = 0; Le.length; )
185
+ Le.pop()();
183
186
  for (let t = 0; t < F.length; t += 1) {
184
187
  const r = F[t];
185
188
  Be.has(r) || (Be.add(r), r());
@@ -197,19 +200,20 @@ function mr(e) {
197
200
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
198
201
  }
199
202
  }
200
- function pr(e) {
203
+ function dr(e) {
201
204
  const t = [], r = [];
202
205
  F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
203
206
  }
204
207
  const ae = /* @__PURE__ */ new Set();
205
- let dr;
206
- function ue(e, t) {
208
+ let pr;
209
+ function he(e, t) {
207
210
  e && e.i && (ae.delete(e), e.i(t));
208
211
  }
209
212
  function Te(e, t, r, n) {
210
213
  if (e && e.o) {
211
- if (ae.has(e)) return;
212
- ae.add(e), dr.c.push(() => {
214
+ if (ae.has(e))
215
+ return;
216
+ ae.add(e), pr.c.push(() => {
213
217
  ae.delete(e);
214
218
  }), e.o(t);
215
219
  }
@@ -217,18 +221,18 @@ function Te(e, t, r, n) {
217
221
  function br(e, t, r) {
218
222
  const { fragment: n, after_update: i } = e.$$;
219
223
  n && n.m(t, r), Ie(() => {
220
- const s = e.$$.on_mount.map(Et).filter(ke);
224
+ const s = e.$$.on_mount.map(xt).filter(ke);
221
225
  e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
222
226
  }), i.forEach(Ie);
223
227
  }
224
228
  function gr(e, t) {
225
229
  const r = e.$$;
226
- r.fragment !== null && (pr(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 = []);
227
231
  }
228
232
  function _r(e, t) {
229
233
  e.$$.dirty[0] === -1 && (G.push(e), cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
230
234
  }
231
- function yr(e, t, r, n, i, s, u = null, o = [-1]) {
235
+ function yr(e, t, r, n, i, s, h = null, o = [-1]) {
232
236
  const l = Xe;
233
237
  Y(e);
234
238
  const a = e.$$ = {
@@ -252,18 +256,18 @@ function yr(e, t, r, n, i, s, u = null, o = [-1]) {
252
256
  skip_bound: !1,
253
257
  root: t.target || l.$$.root
254
258
  };
255
- u && u(a.root);
256
- let h = !1;
257
- if (a.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
258
- const m = p.length ? p[0] : c;
259
- return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m), h && _r(e, f)), c;
260
- }) : [], a.update(), h = !0, te(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
259
+ h && h(a.root);
260
+ let u = !1;
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
+ }) : [], a.update(), u = !0, te(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
261
265
  if (t.hydrate) {
262
- const f = ur(t.target);
266
+ const f = hr(t.target);
263
267
  a.fragment && a.fragment.l(f), f.forEach(O);
264
268
  } else
265
269
  a.fragment && a.fragment.c();
266
- t.intro && ue(e.$$.fragment), br(e, t.target, t.anchor), S();
270
+ t.intro && he(e.$$.fragment), br(e, t.target, t.anchor), S();
267
271
  }
268
272
  Y(l);
269
273
  }
@@ -332,7 +336,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
332
336
  i in r && (t[i] = [e(i)]);
333
337
  for (const i of this.attributes) {
334
338
  const s = this.$$g_p(i.name);
335
- s in this.$$d || (this.$$d[s] = he(s, i.value, this.$$p_d, "toProp"));
339
+ s in this.$$d || (this.$$d[s] = ue(s, i.value, this.$$p_d, "toProp"));
336
340
  }
337
341
  for (const i in this.$$p_d)
338
342
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -350,7 +354,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
350
354
  this.$$r = !0;
351
355
  for (const i in this.$$p_d)
352
356
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
353
- const s = he(
357
+ const s = ue(
354
358
  i,
355
359
  this.$$d[i],
356
360
  this.$$p_d,
@@ -363,8 +367,8 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
363
367
  this.$$c.$$.after_update.push(n), n();
364
368
  for (const i in this.$$l)
365
369
  for (const s of this.$$l[i]) {
366
- const u = this.$$c.$on(i, s);
367
- this.$$l_u.set(s, u);
370
+ const h = this.$$c.$on(i, s);
371
+ this.$$l_u.set(s, h);
368
372
  }
369
373
  this.$$l = {};
370
374
  }
@@ -372,7 +376,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
372
376
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
373
377
  // and setting attributes through setAttribute etc, this is helpful
374
378
  attributeChangedCallback(e, t, r) {
375
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = he(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
379
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ue(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
376
380
  }
377
381
  disconnectedCallback() {
378
382
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -385,7 +389,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
385
389
  ) || e;
386
390
  }
387
391
  });
388
- function he(e, t, r, n) {
392
+ function ue(e, t, r, n) {
389
393
  const i = r[e]?.type;
390
394
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
391
395
  return t;
@@ -414,8 +418,8 @@ function he(e, t, r, n) {
414
418
  return t;
415
419
  }
416
420
  }
417
- function Er(e, t, r, n, i, s) {
418
- let u = class extends wt {
421
+ function xr(e, t, r, n, i, s) {
422
+ let h = class extends wt {
419
423
  constructor() {
420
424
  super(e, r, i), this.$$p_d = t;
421
425
  }
@@ -426,24 +430,24 @@ function Er(e, t, r, n, i, s) {
426
430
  }
427
431
  };
428
432
  return Object.keys(t).forEach((o) => {
429
- Object.defineProperty(u.prototype, o, {
433
+ Object.defineProperty(h.prototype, o, {
430
434
  get() {
431
435
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
432
436
  },
433
437
  set(l) {
434
- l = he(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
438
+ l = ue(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
435
439
  }
436
440
  });
437
441
  }), n.forEach((o) => {
438
- Object.defineProperty(u.prototype, o, {
442
+ Object.defineProperty(h.prototype, o, {
439
443
  get() {
440
444
  return this.$$c?.[o];
441
445
  }
442
446
  });
443
447
  }), e.element = /** @type {any} */
444
- u, u;
448
+ h, h;
445
449
  }
446
- class xr {
450
+ class Er {
447
451
  /**
448
452
  * ### PRIVATE API
449
453
  *
@@ -499,7 +503,7 @@ function be(e, t = B) {
499
503
  let r;
500
504
  const n = /* @__PURE__ */ new Set();
501
505
  function i(o) {
502
- if (xt(e, o) && (e = o, r)) {
506
+ if (Et(e, o) && (e = o, r)) {
503
507
  const l = !D.length;
504
508
  for (const a of n)
505
509
  a[1](), D.push(a, e);
@@ -513,42 +517,42 @@ function be(e, t = B) {
513
517
  function s(o) {
514
518
  i(o(e));
515
519
  }
516
- function u(o, l = B) {
520
+ function h(o, l = B) {
517
521
  const a = [o, l];
518
522
  return n.add(a), n.size === 1 && (r = t(i, s) || B), o(e), () => {
519
523
  n.delete(a), n.size === 0 && r && (r(), r = null);
520
524
  };
521
525
  }
522
- return { set: i, update: s, subscribe: u };
526
+ return { set: i, update: s, subscribe: h };
523
527
  }
524
528
  function Z(e, t, r) {
525
529
  const n = !Array.isArray(e), i = n ? [e] : e;
526
530
  if (!i.every(Boolean))
527
531
  throw new Error("derived() expects stores as input, got a falsy value");
528
532
  const s = t.length < 2;
529
- return Hr(r, (u, o) => {
533
+ return Hr(r, (h, o) => {
530
534
  let l = !1;
531
535
  const a = [];
532
- let h = 0, f = B;
536
+ let u = 0, f = B;
533
537
  const c = () => {
534
- if (h)
538
+ if (u)
535
539
  return;
536
540
  f();
537
- const m = t(n ? a[0] : a, u, o);
538
- s ? u(m) : f = ke(m) ? m : B;
539
- }, p = i.map(
541
+ const m = t(n ? a[0] : a, h, o);
542
+ s ? h(m) : f = ke(m) ? m : B;
543
+ }, d = i.map(
540
544
  (m, g) => vt(
541
545
  m,
542
546
  (v) => {
543
- a[g] = v, h &= ~(1 << g), l && c();
547
+ a[g] = v, u &= ~(1 << g), l && c();
544
548
  },
545
549
  () => {
546
- h |= 1 << g;
550
+ u |= 1 << g;
547
551
  }
548
552
  )
549
553
  );
550
554
  return l = !0, c(), function() {
551
- te(p), f(), l = !1;
555
+ te(d), f(), l = !1;
552
556
  };
553
557
  });
554
558
  }
@@ -626,11 +630,26 @@ j.all = function(t, r) {
626
630
  };
627
631
  var Rr = j, Ur = Rr;
628
632
  const Dr = /* @__PURE__ */ Br(Ur);
633
+ /*! *****************************************************************************
634
+ Copyright (c) Microsoft Corporation.
635
+
636
+ Permission to use, copy, modify, and/or distribute this software for any
637
+ purpose with or without fee is hereby granted.
638
+
639
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
640
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
641
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
642
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
643
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
644
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
645
+ PERFORMANCE OF THIS SOFTWARE.
646
+ ***************************************************************************** */
629
647
  var Me = function(e, t) {
630
648
  return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
631
649
  r.__proto__ = n;
632
650
  } || function(r, n) {
633
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
651
+ for (var i in n)
652
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
634
653
  }, Me(e, t);
635
654
  };
636
655
  function ge(e, t) {
@@ -646,23 +665,26 @@ var y = function() {
646
665
  return y = Object.assign || function(t) {
647
666
  for (var r, n = 1, i = arguments.length; n < i; n++) {
648
667
  r = arguments[n];
649
- for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
668
+ for (var s in r)
669
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
650
670
  }
651
671
  return t;
652
672
  }, y.apply(this, arguments);
653
673
  };
654
674
  function Gr(e, t) {
655
675
  var r = {};
656
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
676
+ for (var n in e)
677
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
657
678
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
658
679
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
659
680
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
660
681
  return r;
661
682
  }
662
683
  function we(e, t, r) {
663
- if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
664
- (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
665
- return e.concat(s || Array.prototype.slice.call(t));
684
+ if (arguments.length === 2)
685
+ for (var n = 0, i = t.length, s; n < i; n++)
686
+ (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
687
+ return e.concat(s || t);
666
688
  }
667
689
  function Se(e, t) {
668
690
  var r = t && t.cache ? t.cache : zr, n = t && t.serializer ? t.serializer : Xr, i = t && t.strategy ? t.strategy : jr;
@@ -714,44 +736,44 @@ var zr = {
714
736
  }, Ae = {
715
737
  variadic: kr,
716
738
  monadic: Vr
717
- }, d;
739
+ }, p;
718
740
  (function(e) {
719
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";
720
- })(d || (d = {}));
721
- var E;
742
+ })(p || (p = {}));
743
+ var x;
722
744
  (function(e) {
723
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";
724
- })(E || (E = {}));
746
+ })(x || (x = {}));
725
747
  var k;
726
748
  (function(e) {
727
749
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
728
750
  })(k || (k = {}));
729
751
  function et(e) {
730
- return e.type === E.literal;
752
+ return e.type === x.literal;
731
753
  }
732
754
  function Wr(e) {
733
- return e.type === E.argument;
755
+ return e.type === x.argument;
734
756
  }
735
757
  function Ot(e) {
736
- return e.type === E.number;
758
+ return e.type === x.number;
737
759
  }
738
760
  function Pt(e) {
739
- return e.type === E.date;
761
+ return e.type === x.date;
740
762
  }
741
763
  function Lt(e) {
742
- return e.type === E.time;
764
+ return e.type === x.time;
743
765
  }
744
766
  function Nt(e) {
745
- return e.type === E.select;
767
+ return e.type === x.select;
746
768
  }
747
769
  function It(e) {
748
- return e.type === E.plural;
770
+ return e.type === x.plural;
749
771
  }
750
772
  function Zr(e) {
751
- return e.type === E.pound;
773
+ return e.type === x.pound;
752
774
  }
753
775
  function Mt(e) {
754
- return e.type === E.tag;
776
+ return e.type === x.tag;
755
777
  }
756
778
  function $t(e) {
757
779
  return !!(e && typeof e == "object" && e.type === k.number);
@@ -858,11 +880,11 @@ function Yr(e) {
858
880
  for (var t = e.split(Jr).filter(function(c) {
859
881
  return c.length > 0;
860
882
  }), r = [], n = 0, i = t; n < i.length; n++) {
861
- var s = i[n], u = s.split("/");
862
- if (u.length === 0)
883
+ var s = i[n], h = s.split("/");
884
+ if (h.length === 0)
863
885
  throw new Error("Invalid number skeleton");
864
- for (var o = u[0], l = u.slice(1), a = 0, h = l; a < h.length; a++) {
865
- var f = h[a];
886
+ for (var o = h[0], l = h.slice(1), a = 0, u = l; a < u.length; a++) {
887
+ var f = u[a];
866
888
  if (f.length === 0)
867
889
  throw new Error("Invalid number skeleton");
868
890
  }
@@ -1024,13 +1046,13 @@ function rn(e) {
1024
1046
  case "integer-width":
1025
1047
  if (i.options.length > 1)
1026
1048
  throw new RangeError("integer-width stems only accept a single optional option");
1027
- i.options[0].replace(en, function(l, a, h, f, c, p) {
1049
+ i.options[0].replace(en, function(l, a, u, f, c, d) {
1028
1050
  if (a)
1029
- t.minimumIntegerDigits = h.length;
1051
+ t.minimumIntegerDigits = u.length;
1030
1052
  else {
1031
1053
  if (f && c)
1032
1054
  throw new Error("We currently do not support maximum integer digits");
1033
- if (p)
1055
+ if (d)
1034
1056
  throw new Error("We currently do not support exact integer digits");
1035
1057
  }
1036
1058
  return "";
@@ -1044,8 +1066,8 @@ function rn(e) {
1044
1066
  if (tt.test(i.stem)) {
1045
1067
  if (i.options.length > 1)
1046
1068
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1047
- i.stem.replace(tt, function(l, a, h, f, c, p) {
1048
- return h === "*" ? 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), "";
1049
1071
  });
1050
1072
  var s = i.options[0];
1051
1073
  s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), rt(s)));
@@ -1055,8 +1077,8 @@ function rn(e) {
1055
1077
  t = y(y({}, t), rt(i.stem));
1056
1078
  continue;
1057
1079
  }
1058
- var u = Gt(i.stem);
1059
- u && (t = y(y({}, t), u));
1080
+ var h = Gt(i.stem);
1081
+ h && (t = y(y({}, t), h));
1060
1082
  var o = tn(i.stem);
1061
1083
  o && (t = y(y({}, t), o));
1062
1084
  }
@@ -2483,12 +2505,13 @@ function nn(e, t) {
2483
2505
  if (i === "j") {
2484
2506
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2485
2507
  s++, n++;
2486
- var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = sn(t);
2508
+ var h = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = sn(t);
2487
2509
  for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
2488
2510
  r += l;
2489
- for (; u-- > 0; )
2511
+ for (; h-- > 0; )
2490
2512
  r = a + r;
2491
- } else i === "J" ? r += "H" : r += i;
2513
+ } else
2514
+ i === "J" ? r += "H" : r += i;
2492
2515
  }
2493
2516
  return r;
2494
2517
  }
@@ -2518,7 +2541,7 @@ var Ce, on = new RegExp("^".concat(Rt.source, "*")), an = new RegExp("".concat(R
2518
2541
  function b(e, t) {
2519
2542
  return { start: e, end: t };
2520
2543
  }
2521
- var un = !!String.prototype.startsWith && "_a".startsWith("a", 1), hn = !!String.fromCodePoint, ln = !!Object.fromEntries, fn = !!String.prototype.codePointAt, cn = !!String.prototype.trimStart, mn = !!String.prototype.trimEnd, pn = !!Number.isSafeInteger, dn = pn ? 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) {
2522
2545
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2523
2546
  }, Re = !0;
2524
2547
  try {
@@ -2527,7 +2550,7 @@ try {
2527
2550
  } catch {
2528
2551
  Re = !1;
2529
2552
  }
2530
- var it = un ? (
2553
+ var it = hn ? (
2531
2554
  // Native
2532
2555
  function(t, r, n) {
2533
2556
  return t.startsWith(r, n);
@@ -2537,15 +2560,15 @@ var it = un ? (
2537
2560
  function(t, r, n) {
2538
2561
  return t.slice(n, n + r.length) === r;
2539
2562
  }
2540
- ), Ue = hn ? String.fromCodePoint : (
2563
+ ), Ue = un ? String.fromCodePoint : (
2541
2564
  // IE11
2542
2565
  function() {
2543
2566
  for (var t = [], r = 0; r < arguments.length; r++)
2544
2567
  t[r] = arguments[r];
2545
- for (var n = "", i = t.length, s = 0, u; i > s; ) {
2546
- if (u = t[s++], u > 1114111)
2547
- throw RangeError(u + " is not a valid code point");
2548
- n += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
2568
+ for (var n = "", i = t.length, s = 0, h; i > s; ) {
2569
+ if (h = t[s++], h > 1114111)
2570
+ throw RangeError(h + " is not a valid code point");
2571
+ n += h < 65536 ? String.fromCharCode(h) : String.fromCharCode(((h -= 65536) >> 10) + 55296, h % 1024 + 56320);
2549
2572
  }
2550
2573
  return n;
2551
2574
  }
@@ -2555,8 +2578,8 @@ var it = un ? (
2555
2578
  // Ponyfill
2556
2579
  function(t) {
2557
2580
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2558
- var s = i[n], u = s[0], o = s[1];
2559
- r[u] = o;
2581
+ var s = i[n], h = s[0], o = s[1];
2582
+ r[h] = o;
2560
2583
  }
2561
2584
  return r;
2562
2585
  }
@@ -2632,33 +2655,33 @@ var yn = (
2632
2655
  for (var i = []; !this.isEOF(); ) {
2633
2656
  var s = this.char();
2634
2657
  if (s === 123) {
2635
- var u = this.parseArgument(t, n);
2636
- if (u.err)
2637
- return u;
2638
- i.push(u.val);
2658
+ var h = this.parseArgument(t, n);
2659
+ if (h.err)
2660
+ return h;
2661
+ i.push(h.val);
2639
2662
  } else {
2640
2663
  if (s === 125 && t > 0)
2641
2664
  break;
2642
2665
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
2643
2666
  var o = this.clonePosition();
2644
2667
  this.bump(), i.push({
2645
- type: E.pound,
2668
+ type: x.pound,
2646
2669
  location: b(o, this.clonePosition())
2647
2670
  });
2648
2671
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2649
2672
  if (n)
2650
2673
  break;
2651
- 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()));
2652
2675
  } else if (s === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
2653
- var u = this.parseTag(t, r);
2654
- if (u.err)
2655
- return u;
2656
- i.push(u.val);
2676
+ var h = this.parseTag(t, r);
2677
+ if (h.err)
2678
+ return h;
2679
+ i.push(h.val);
2657
2680
  } else {
2658
- var u = this.parseLiteral(t, r);
2659
- if (u.err)
2660
- return u;
2661
- i.push(u.val);
2681
+ var h = this.parseLiteral(t, r);
2682
+ if (h.err)
2683
+ return h;
2684
+ i.push(h.val);
2662
2685
  }
2663
2686
  }
2664
2687
  }
@@ -2670,7 +2693,7 @@ var yn = (
2670
2693
  if (this.bumpSpace(), this.bumpIf("/>"))
2671
2694
  return {
2672
2695
  val: {
2673
- type: E.literal,
2696
+ type: x.literal,
2674
2697
  value: "<".concat(i, "/>"),
2675
2698
  location: b(n, this.clonePosition())
2676
2699
  },
@@ -2680,27 +2703,27 @@ var yn = (
2680
2703
  var s = this.parseMessage(t + 1, r, !0);
2681
2704
  if (s.err)
2682
2705
  return s;
2683
- var u = s.val, o = this.clonePosition();
2706
+ var h = s.val, o = this.clonePosition();
2684
2707
  if (this.bumpIf("</")) {
2685
2708
  if (this.isEOF() || !Ge(this.char()))
2686
- return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
2709
+ return this.error(p.INVALID_TAG, b(o, this.clonePosition()));
2687
2710
  var l = this.clonePosition(), a = this.parseTagName();
2688
- 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(">") ? {
2689
2712
  val: {
2690
- type: E.tag,
2713
+ type: x.tag,
2691
2714
  value: i,
2692
- children: u,
2715
+ children: h,
2693
2716
  location: b(n, this.clonePosition())
2694
2717
  },
2695
2718
  err: null
2696
- } : this.error(d.INVALID_TAG, b(o, this.clonePosition())));
2719
+ } : this.error(p.INVALID_TAG, b(o, this.clonePosition())));
2697
2720
  } else
2698
- return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
2721
+ return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
2699
2722
  } else
2700
- return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
2723
+ return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
2701
2724
  }, e.prototype.parseTagName = function() {
2702
2725
  var t = this.offset();
2703
- for (this.bump(); !this.isEOF() && xn(this.char()); )
2726
+ for (this.bump(); !this.isEOF() && En(this.char()); )
2704
2727
  this.bump();
2705
2728
  return this.message.slice(t, this.offset());
2706
2729
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2710,9 +2733,9 @@ var yn = (
2710
2733
  i += s;
2711
2734
  continue;
2712
2735
  }
2713
- var u = this.tryParseUnquoted(t, r);
2714
- if (u) {
2715
- i += u;
2736
+ var h = this.tryParseUnquoted(t, r);
2737
+ if (h) {
2738
+ i += h;
2716
2739
  continue;
2717
2740
  }
2718
2741
  var o = this.tryParseLeftAngleBracket();
@@ -2724,12 +2747,12 @@ var yn = (
2724
2747
  }
2725
2748
  var l = b(n, this.clonePosition());
2726
2749
  return {
2727
- val: { type: E.literal, value: i, location: l },
2750
+ val: { type: x.literal, value: i, location: l },
2728
2751
  err: null
2729
2752
  };
2730
2753
  }, e.prototype.tryParseLeftAngleBracket = function() {
2731
2754
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2732
- !En(this.peek() || 0)) ? (this.bump(), "<") : null;
2755
+ !xn(this.peek() || 0)) ? (this.bump(), "<") : null;
2733
2756
  }, e.prototype.tryParseQuote = function(t) {
2734
2757
  if (this.isEOF() || this.char() !== 39)
2735
2758
  return null;
@@ -2772,19 +2795,19 @@ var yn = (
2772
2795
  }, e.prototype.parseArgument = function(t, r) {
2773
2796
  var n = this.clonePosition();
2774
2797
  if (this.bump(), this.bumpSpace(), this.isEOF())
2775
- 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()));
2776
2799
  if (this.char() === 125)
2777
- 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()));
2778
2801
  var i = this.parseIdentifierIfPossible().value;
2779
2802
  if (!i)
2780
- return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2803
+ return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2781
2804
  if (this.bumpSpace(), this.isEOF())
2782
- 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()));
2783
2806
  switch (this.char()) {
2784
2807
  case 125:
2785
2808
  return this.bump(), {
2786
2809
  val: {
2787
- type: E.argument,
2810
+ type: x.argument,
2788
2811
  // value does not include the opening and closing braces.
2789
2812
  value: i,
2790
2813
  location: b(n, this.clonePosition())
@@ -2792,20 +2815,20 @@ var yn = (
2792
2815
  err: null
2793
2816
  };
2794
2817
  case 44:
2795
- 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);
2796
2819
  default:
2797
- return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2820
+ return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2798
2821
  }
2799
2822
  }, e.prototype.parseIdentifierIfPossible = function() {
2800
2823
  var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
2801
2824
  this.bumpTo(i);
2802
- var s = this.clonePosition(), u = b(t, s);
2803
- return { value: n, location: u };
2825
+ var s = this.clonePosition(), h = b(t, s);
2826
+ return { value: n, location: h };
2804
2827
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2805
- var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2828
+ var s, h = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2806
2829
  switch (o) {
2807
2830
  case "":
2808
- return this.error(d.EXPECT_ARGUMENT_TYPE, b(u, l));
2831
+ return this.error(p.EXPECT_ARGUMENT_TYPE, b(h, l));
2809
2832
  case "number":
2810
2833
  case "date":
2811
2834
  case "time": {
@@ -2813,14 +2836,14 @@ var yn = (
2813
2836
  var a = null;
2814
2837
  if (this.bumpIf(",")) {
2815
2838
  this.bumpSpace();
2816
- var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2839
+ var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2817
2840
  if (f.err)
2818
2841
  return f;
2819
2842
  var c = _n(f.val);
2820
2843
  if (c.length === 0)
2821
- return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2822
- var p = b(h, this.clonePosition());
2823
- 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 };
2824
2847
  }
2825
2848
  var m = this.tryParseArgumentClose(i);
2826
2849
  if (m.err)
@@ -2831,12 +2854,12 @@ var yn = (
2831
2854
  if (o === "number") {
2832
2855
  var f = this.parseNumberSkeletonFromString(v, a.styleLocation);
2833
2856
  return f.err ? f : {
2834
- val: { type: E.number, value: n, location: g, style: f.val },
2857
+ val: { type: x.number, value: n, location: g, style: f.val },
2835
2858
  err: null
2836
2859
  };
2837
2860
  } else {
2838
2861
  if (v.length === 0)
2839
- return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
2862
+ return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
2840
2863
  var L = v;
2841
2864
  this.locale && (L = nn(v, this.locale));
2842
2865
  var c = {
@@ -2844,7 +2867,7 @@ var yn = (
2844
2867
  pattern: L,
2845
2868
  location: a.styleLocation,
2846
2869
  parsedOptions: this.shouldParseSkeletons ? qr(L) : {}
2847
- }, A = o === "date" ? E.date : E.time;
2870
+ }, A = o === "date" ? x.date : x.time;
2848
2871
  return {
2849
2872
  val: { type: A, value: n, location: g, style: c },
2850
2873
  err: null
@@ -2853,7 +2876,7 @@ var yn = (
2853
2876
  }
2854
2877
  return {
2855
2878
  val: {
2856
- type: o === "number" ? E.number : o === "date" ? E.date : E.time,
2879
+ type: o === "number" ? x.number : o === "date" ? x.date : x.time,
2857
2880
  value: n,
2858
2881
  location: g,
2859
2882
  style: (s = a?.style) !== null && s !== void 0 ? s : null
@@ -2866,14 +2889,14 @@ var yn = (
2866
2889
  case "select": {
2867
2890
  var H = this.clonePosition();
2868
2891
  if (this.bumpSpace(), !this.bumpIf(","))
2869
- 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)));
2870
2893
  this.bumpSpace();
2871
2894
  var N = this.parseIdentifierIfPossible(), T = 0;
2872
2895
  if (o !== "select" && N.value === "offset") {
2873
2896
  if (!this.bumpIf(":"))
2874
- 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()));
2875
2898
  this.bumpSpace();
2876
- 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);
2877
2900
  if (f.err)
2878
2901
  return f;
2879
2902
  this.bumpSpace(), N = this.parseIdentifierIfPossible(), T = f.val;
@@ -2887,7 +2910,7 @@ var yn = (
2887
2910
  var ie = b(i, this.clonePosition());
2888
2911
  return o === "select" ? {
2889
2912
  val: {
2890
- type: E.select,
2913
+ type: x.select,
2891
2914
  value: n,
2892
2915
  options: st($.val),
2893
2916
  location: ie
@@ -2895,7 +2918,7 @@ var yn = (
2895
2918
  err: null
2896
2919
  } : {
2897
2920
  val: {
2898
- type: E.plural,
2921
+ type: x.plural,
2899
2922
  value: n,
2900
2923
  options: st($.val),
2901
2924
  offset: T,
@@ -2906,10 +2929,10 @@ var yn = (
2906
2929
  };
2907
2930
  }
2908
2931
  default:
2909
- return this.error(d.INVALID_ARGUMENT_TYPE, b(u, l));
2932
+ return this.error(p.INVALID_ARGUMENT_TYPE, b(h, l));
2910
2933
  }
2911
2934
  }, e.prototype.tryParseArgumentClose = function(t) {
2912
- 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 });
2913
2936
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2914
2937
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2915
2938
  var n = this.char();
@@ -2918,7 +2941,7 @@ var yn = (
2918
2941
  this.bump();
2919
2942
  var i = this.clonePosition();
2920
2943
  if (!this.bumpUntil("'"))
2921
- 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()));
2922
2945
  this.bump();
2923
2946
  break;
2924
2947
  }
@@ -2950,7 +2973,7 @@ var yn = (
2950
2973
  try {
2951
2974
  n = Yr(t);
2952
2975
  } catch {
2953
- return this.error(d.INVALID_NUMBER_SKELETON, r);
2976
+ return this.error(p.INVALID_NUMBER_SKELETON, r);
2954
2977
  }
2955
2978
  return {
2956
2979
  val: {
@@ -2962,50 +2985,50 @@ var yn = (
2962
2985
  err: null
2963
2986
  };
2964
2987
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2965
- for (var s, u = !1, o = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
2988
+ for (var s, h = !1, o = [], l = /* @__PURE__ */ new Set(), a = i.value, u = i.location; ; ) {
2966
2989
  if (a.length === 0) {
2967
2990
  var f = this.clonePosition();
2968
2991
  if (r !== "select" && this.bumpIf("=")) {
2969
- 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);
2970
2993
  if (c.err)
2971
2994
  return c;
2972
- h = b(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
2995
+ u = b(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
2973
2996
  } else
2974
2997
  break;
2975
2998
  }
2976
2999
  if (l.has(a))
2977
- return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2978
- a === "other" && (u = !0), this.bumpSpace();
2979
- var p = this.clonePosition();
3000
+ return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
3001
+ a === "other" && (h = !0), this.bumpSpace();
3002
+ var d = this.clonePosition();
2980
3003
  if (!this.bumpIf("{"))
2981
- 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()));
2982
3005
  var m = this.parseMessage(t + 1, r, n);
2983
3006
  if (m.err)
2984
3007
  return m;
2985
- var g = this.tryParseArgumentClose(p);
3008
+ var g = this.tryParseArgumentClose(d);
2986
3009
  if (g.err)
2987
3010
  return g;
2988
3011
  o.push([
2989
3012
  a,
2990
3013
  {
2991
3014
  value: m.val,
2992
- location: b(p, this.clonePosition())
3015
+ location: b(d, this.clonePosition())
2993
3016
  }
2994
- ]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
3017
+ ]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, u = s.location;
2995
3018
  }
2996
- 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 && !u ? 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 };
2997
3020
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2998
3021
  var n = 1, i = this.clonePosition();
2999
3022
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3000
- for (var s = !1, u = 0; !this.isEOF(); ) {
3023
+ for (var s = !1, h = 0; !this.isEOF(); ) {
3001
3024
  var o = this.char();
3002
3025
  if (o >= 48 && o <= 57)
3003
- s = !0, u = u * 10 + (o - 48), this.bump();
3026
+ s = !0, h = h * 10 + (o - 48), this.bump();
3004
3027
  else
3005
3028
  break;
3006
3029
  }
3007
3030
  var l = b(i, this.clonePosition());
3008
- return s ? (u *= n, dn(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
3031
+ return s ? (h *= n, pn(h) ? { val: h, err: null } : this.error(r, l)) : this.error(t, l);
3009
3032
  }, e.prototype.offset = function() {
3010
3033
  return this.position.offset;
3011
3034
  }, e.prototype.isEOF = function() {
@@ -3074,10 +3097,10 @@ var yn = (
3074
3097
  function Ge(e) {
3075
3098
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3076
3099
  }
3077
- function En(e) {
3100
+ function xn(e) {
3078
3101
  return Ge(e) || e === 47;
3079
3102
  }
3080
- function xn(e) {
3103
+ function En(e) {
3081
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;
3082
3105
  }
3083
3106
  function kt(e) {
@@ -3091,14 +3114,15 @@ function Fe(e) {
3091
3114
  if (delete t.location, Nt(t) || It(t))
3092
3115
  for (var r in t.options)
3093
3116
  delete t.options[r].location, Fe(t.options[r].value);
3094
- else Ot(t) && $t(t.style) || (Pt(t) || Lt(t)) && $e(t.style) ? delete t.style.location : Mt(t) && Fe(t.children);
3117
+ else
3118
+ Ot(t) && $t(t.style) || (Pt(t) || Lt(t)) && $e(t.style) ? delete t.style.location : Mt(t) && Fe(t.children);
3095
3119
  });
3096
3120
  }
3097
3121
  function Hn(e, t) {
3098
3122
  t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3099
3123
  var r = new yn(e, t).parse();
3100
3124
  if (r.err) {
3101
- var n = SyntaxError(d[r.err.kind]);
3125
+ var n = SyntaxError(p[r.err.kind]);
3102
3126
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3103
3127
  }
3104
3128
  return t?.captureLocation || Fe(r.val), r.val;
@@ -3146,112 +3170,112 @@ var _e = (
3146
3170
  }
3147
3171
  return t;
3148
3172
  }(_e)
3149
- ), x;
3173
+ ), E;
3150
3174
  (function(e) {
3151
3175
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3152
- })(x || (x = {}));
3176
+ })(E || (E = {}));
3153
3177
  function wn(e) {
3154
3178
  return e.length < 2 ? e : e.reduce(function(t, r) {
3155
3179
  var n = t[t.length - 1];
3156
- return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
3180
+ return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
3157
3181
  }, []);
3158
3182
  }
3159
3183
  function Sn(e) {
3160
3184
  return typeof e == "function";
3161
3185
  }
3162
- function le(e, t, r, n, i, s, u) {
3186
+ function le(e, t, r, n, i, s, h) {
3163
3187
  if (e.length === 1 && et(e[0]))
3164
3188
  return [
3165
3189
  {
3166
- type: x.literal,
3190
+ type: E.literal,
3167
3191
  value: e[0].value
3168
3192
  }
3169
3193
  ];
3170
3194
  for (var o = [], l = 0, a = e; l < a.length; l++) {
3171
- var h = a[l];
3172
- if (et(h)) {
3195
+ var u = a[l];
3196
+ if (et(u)) {
3173
3197
  o.push({
3174
- type: x.literal,
3175
- value: h.value
3198
+ type: E.literal,
3199
+ value: u.value
3176
3200
  });
3177
3201
  continue;
3178
3202
  }
3179
- if (Zr(h)) {
3203
+ if (Zr(u)) {
3180
3204
  typeof s == "number" && o.push({
3181
- type: x.literal,
3205
+ type: E.literal,
3182
3206
  value: r.getNumberFormat(t).format(s)
3183
3207
  });
3184
3208
  continue;
3185
3209
  }
3186
- var f = h.value;
3210
+ var f = u.value;
3187
3211
  if (!(i && f in i))
3188
- throw new Tn(f, u);
3212
+ throw new Tn(f, h);
3189
3213
  var c = i[f];
3190
- if (Wr(h)) {
3214
+ if (Wr(u)) {
3191
3215
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
3192
- type: typeof c == "string" ? x.literal : x.object,
3216
+ type: typeof c == "string" ? E.literal : E.object,
3193
3217
  value: c
3194
3218
  });
3195
3219
  continue;
3196
3220
  }
3197
- if (Pt(h)) {
3198
- var p = typeof h.style == "string" ? n.date[h.style] : $e(h.style) ? h.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;
3199
3223
  o.push({
3200
- type: x.literal,
3201
- value: r.getDateTimeFormat(t, p).format(c)
3224
+ type: E.literal,
3225
+ value: r.getDateTimeFormat(t, d).format(c)
3202
3226
  });
3203
3227
  continue;
3204
3228
  }
3205
- if (Lt(h)) {
3206
- var p = typeof h.style == "string" ? n.time[h.style] : $e(h.style) ? h.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;
3207
3231
  o.push({
3208
- type: x.literal,
3209
- value: r.getDateTimeFormat(t, p).format(c)
3232
+ type: E.literal,
3233
+ value: r.getDateTimeFormat(t, d).format(c)
3210
3234
  });
3211
3235
  continue;
3212
3236
  }
3213
- if (Ot(h)) {
3214
- var p = typeof h.style == "string" ? n.number[h.style] : $t(h.style) ? h.style.parsedOptions : void 0;
3215
- p && p.scale && (c = c * (p.scale || 1)), o.push({
3216
- type: x.literal,
3217
- value: r.getNumberFormat(t, p).format(c)
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({
3240
+ type: E.literal,
3241
+ value: r.getNumberFormat(t, d).format(c)
3218
3242
  });
3219
3243
  continue;
3220
3244
  }
3221
- if (Mt(h)) {
3222
- var m = h.children, g = h.value, v = i[g];
3245
+ if (Mt(u)) {
3246
+ var m = u.children, g = u.value, v = i[g];
3223
3247
  if (!Sn(v))
3224
- throw new Bn(g, "function", u);
3248
+ throw new Bn(g, "function", h);
3225
3249
  var L = le(m, t, r, n, i, s), A = v(L.map(function(T) {
3226
3250
  return T.value;
3227
3251
  }));
3228
3252
  Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(T) {
3229
3253
  return {
3230
- type: typeof T == "string" ? x.literal : x.object,
3254
+ type: typeof T == "string" ? E.literal : E.object,
3231
3255
  value: T
3232
3256
  };
3233
3257
  }));
3234
3258
  }
3235
- if (Nt(h)) {
3236
- var H = h.options[c] || h.options.other;
3259
+ if (Nt(u)) {
3260
+ var H = u.options[c] || u.options.other;
3237
3261
  if (!H)
3238
- throw new at(h.value, c, Object.keys(h.options), u);
3262
+ throw new at(u.value, c, Object.keys(u.options), h);
3239
3263
  o.push.apply(o, le(H.value, t, r, n, i));
3240
3264
  continue;
3241
3265
  }
3242
- if (It(h)) {
3243
- var H = h.options["=".concat(c)];
3266
+ if (It(u)) {
3267
+ var H = u.options["=".concat(c)];
3244
3268
  if (!H) {
3245
3269
  if (!Intl.PluralRules)
3246
3270
  throw new _e(`Intl.PluralRules is not available in this environment.
3247
3271
  Try polyfilling it using "@formatjs/intl-pluralrules"
3248
- `, V.MISSING_INTL_API, u);
3249
- var N = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3250
- H = h.options[N] || h.options.other;
3272
+ `, V.MISSING_INTL_API, h);
3273
+ var N = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
3274
+ H = u.options[N] || u.options.other;
3251
3275
  }
3252
3276
  if (!H)
3253
- throw new at(h.value, c, Object.keys(h.options), u);
3254
- o.push.apply(o, le(H.value, t, r, n, i, c - (h.offset || 0)));
3277
+ throw new at(u.value, c, Object.keys(u.options), h);
3278
+ o.push.apply(o, le(H.value, t, r, n, i, c - (u.offset || 0)));
3255
3279
  continue;
3256
3280
  }
3257
3281
  }
@@ -3327,10 +3351,10 @@ var Vt = (
3327
3351
  var a = s.formatToParts(l);
3328
3352
  if (a.length === 1)
3329
3353
  return a[0].value;
3330
- var h = a.reduce(function(f, c) {
3331
- return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3354
+ var u = a.reduce(function(f, c) {
3355
+ return !f.length || c.type !== E.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3332
3356
  }, []);
3333
- return h.length <= 1 ? h[0] || "" : h;
3357
+ return u.length <= 1 ? u[0] || "" : u;
3334
3358
  }, this.formatToParts = function(l) {
3335
3359
  return le(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3336
3360
  }, this.resolvedOptions = function() {
@@ -3343,9 +3367,9 @@ var Vt = (
3343
3367
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3344
3368
  if (this.message = t, !e.__parse)
3345
3369
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3346
- var u = i || {};
3347
- u.formatters;
3348
- var o = Gr(u, ["formatters"]);
3370
+ var h = i || {};
3371
+ h.formatters;
3372
+ var o = Gr(h, ["formatters"]);
3349
3373
  this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
3350
3374
  } else
3351
3375
  this.ast = t;
@@ -3531,12 +3555,12 @@ function Qt(e) {
3531
3555
  delete q[e];
3532
3556
  }), q[e];
3533
3557
  }
3534
- var ut = Object.getOwnPropertySymbols, Dn = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, Fn = (e, t) => {
3558
+ var ht = Object.getOwnPropertySymbols, Dn = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, Fn = (e, t) => {
3535
3559
  var r = {};
3536
3560
  for (var n in e)
3537
3561
  Dn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3538
- if (e != null && ut)
3539
- for (var n of ut(e))
3562
+ if (e != null && ht)
3563
+ for (var n of ht(e))
3540
3564
  t.indexOf(n) < 0 && Gn.call(e, n) && (r[n] = e[n]);
3541
3565
  return r;
3542
3566
  };
@@ -3606,16 +3630,16 @@ function Xn(e) {
3606
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);
3607
3631
  }
3608
3632
  const Pe = be(!1);
3609
- var zn = Object.defineProperty, Wn = Object.defineProperties, Zn = Object.getOwnPropertyDescriptors, ht = 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) => {
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) => {
3610
3634
  for (var r in t || (t = {}))
3611
3635
  Qn.call(t, r) && lt(e, r, t[r]);
3612
- if (ht)
3613
- for (var r of ht(t))
3636
+ if (ut)
3637
+ for (var r of ut(t))
3614
3638
  qn.call(t, r) && lt(e, r, t[r]);
3615
3639
  return e;
3616
3640
  }, Yn = (e, t) => Wn(e, Zn(t));
3617
3641
  let je;
3618
- const pe = be(null);
3642
+ const de = be(null);
3619
3643
  function ft(e) {
3620
3644
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3621
3645
  }
@@ -3626,7 +3650,7 @@ function ne(e, t = X().fallbackLocale) {
3626
3650
  function P() {
3627
3651
  return je ?? void 0;
3628
3652
  }
3629
- pe.subscribe((e) => {
3653
+ de.subscribe((e) => {
3630
3654
  je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3631
3655
  });
3632
3656
  const Kn = (e) => {
@@ -3637,13 +3661,13 @@ const Kn = (e) => {
3637
3661
  () => Pe.set(!0),
3638
3662
  t
3639
3663
  ) : Pe.set(!0), Qt(e).then(() => {
3640
- pe.set(e);
3664
+ de.set(e);
3641
3665
  }).finally(() => {
3642
3666
  clearTimeout(r), Pe.set(!1);
3643
3667
  });
3644
3668
  }
3645
- return pe.set(e);
3646
- }, M = Yn(Jn({}, pe), {
3669
+ return de.set(e);
3670
+ }, M = Yn(Jn({}, de), {
3647
3671
  set: Kn
3648
3672
  }), ye = (e) => {
3649
3673
  const t = /* @__PURE__ */ Object.create(null);
@@ -3652,19 +3676,19 @@ const Kn = (e) => {
3652
3676
  return i in t ? t[i] : t[i] = e(n);
3653
3677
  };
3654
3678
  };
3655
- var ei = Object.defineProperty, de = 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) => {
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) => {
3656
3680
  for (var r in t || (t = {}))
3657
3681
  qt.call(t, r) && ct(e, r, t[r]);
3658
- if (de)
3659
- for (var r of de(t))
3682
+ if (pe)
3683
+ for (var r of pe(t))
3660
3684
  Jt.call(t, r) && ct(e, r, t[r]);
3661
3685
  return e;
3662
3686
  }, Q = (e, t) => {
3663
3687
  var r = {};
3664
3688
  for (var n in e)
3665
3689
  qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3666
- if (e != null && de)
3667
- for (var n of de(e))
3690
+ if (e != null && pe)
3691
+ for (var n of pe(e))
3668
3692
  t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
3669
3693
  return r;
3670
3694
  };
@@ -3722,31 +3746,31 @@ const ee = (e, t) => {
3722
3746
  (e, t = P()) => new Vt(e, t, X().formats, {
3723
3747
  ignoreTag: X().ignoreTag
3724
3748
  })
3725
- ), ui = (e, t = {}) => {
3749
+ ), hi = (e, t = {}) => {
3726
3750
  var r, n, i, s;
3727
- let u = t;
3728
- typeof e == "object" && (u = e, e = u.id);
3751
+ let h = t;
3752
+ typeof e == "object" && (h = e, e = h.id);
3729
3753
  const {
3730
3754
  values: o,
3731
3755
  locale: l = P(),
3732
3756
  default: a
3733
- } = u;
3757
+ } = h;
3734
3758
  if (l == null)
3735
3759
  throw new Error(
3736
3760
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3737
3761
  );
3738
- let h = Xt(e, l);
3739
- if (!h)
3740
- h = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3741
- else if (typeof h != "string")
3762
+ let u = Xt(e, l);
3763
+ if (!u)
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;
3765
+ else if (typeof u != "string")
3742
3766
  return console.warn(
3743
- `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3744
- ), h;
3767
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3768
+ ), u;
3745
3769
  if (!o)
3746
- return h;
3747
- let f = h;
3770
+ return u;
3771
+ let f = u;
3748
3772
  try {
3749
- f = ai(h, l).format(o);
3773
+ f = ai(u, l).format(o);
3750
3774
  } catch (c) {
3751
3775
  c instanceof Error && console.warn(
3752
3776
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3754,20 +3778,20 @@ const ee = (e, t) => {
3754
3778
  );
3755
3779
  }
3756
3780
  return f;
3757
- }, hi = (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], () => ui);
3758
- 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);
3782
+ Z([M], () => ui);
3759
3783
  Z([M], () => li);
3760
3784
  Z([M], () => fi);
3761
3785
  Z([M, re], () => ci);
3762
3786
  function mt(e, t) {
3763
3787
  Wt(e, t);
3764
3788
  }
3765
- function pi(e) {
3789
+ function di(e) {
3766
3790
  Xn({
3767
3791
  fallbackLocale: "en"
3768
3792
  }), M.set(e);
3769
3793
  }
3770
- const pt = {
3794
+ const dt = {
3771
3795
  en: {
3772
3796
  header: {
3773
3797
  general: "Cashier",
@@ -3790,10 +3814,10 @@ const pt = {
3790
3814
  }
3791
3815
  }
3792
3816
  };
3793
- function di(e) {
3817
+ function pi(e) {
3794
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}");
3795
3819
  }
3796
- const bi = (e) => ({}), dt = (e) => ({}), gi = (e) => ({}), bt = (e) => ({}), _i = (e) => ({}), gt = (e) => ({});
3820
+ const bi = (e) => ({}), pt = (e) => ({}), gi = (e) => ({}), bt = (e) => ({}), _i = (e) => ({}), gt = (e) => ({});
3797
3821
  function _t(e) {
3798
3822
  let t, r, n;
3799
3823
  return {
@@ -3835,7 +3859,7 @@ function yi(e) {
3835
3859
  }
3836
3860
  };
3837
3861
  }
3838
- function Ei(e) {
3862
+ function xi(e) {
3839
3863
  let t, r = (
3840
3864
  /*$_*/
3841
3865
  e[4](
@@ -3856,7 +3880,7 @@ function Ei(e) {
3856
3880
  i[4](
3857
3881
  /*titleText*/
3858
3882
  i[2]
3859
- ) + "") && hr(n, r);
3883
+ ) + "") && ur(n, r);
3860
3884
  },
3861
3885
  d(i) {
3862
3886
  i && O(t);
@@ -3883,7 +3907,7 @@ function yt(e) {
3883
3907
  }
3884
3908
  };
3885
3909
  }
3886
- function xi(e) {
3910
+ function Ei(e) {
3887
3911
  let t, r = (
3888
3912
  /*closeButton*/
3889
3913
  e[3] && yt(e)
@@ -3909,47 +3933,47 @@ function vi(e) {
3909
3933
  const s = (
3910
3934
  /*#slots*/
3911
3935
  e[15].leftButton
3912
- ), u = Ee(
3936
+ ), h = xe(
3913
3937
  s,
3914
3938
  e,
3915
3939
  /*$$scope*/
3916
3940
  e[14],
3917
3941
  gt
3918
- ), o = u || yi(e), l = (
3942
+ ), o = h || yi(e), l = (
3919
3943
  /*#slots*/
3920
3944
  e[15].title
3921
- ), a = Ee(
3945
+ ), a = xe(
3922
3946
  l,
3923
3947
  e,
3924
3948
  /*$$scope*/
3925
3949
  e[14],
3926
3950
  bt
3927
- ), h = a || Ei(e), f = (
3951
+ ), u = a || xi(e), f = (
3928
3952
  /*#slots*/
3929
3953
  e[15].rightButton
3930
- ), c = Ee(
3954
+ ), c = xe(
3931
3955
  f,
3932
3956
  e,
3933
3957
  /*$$scope*/
3934
3958
  e[14],
3935
- dt
3936
- ), p = c || xi(e);
3959
+ pt
3960
+ ), d = c || Ei(e);
3937
3961
  return {
3938
3962
  c() {
3939
- t = z("div"), o && o.c(), r = Je(), h && h.c(), n = Je(), p && p.c(), W(t, "class", "CashierHeader");
3963
+ t = z("div"), o && o.c(), r = Je(), u && u.c(), n = Je(), d && d.c(), W(t, "class", "CashierHeader");
3940
3964
  },
3941
3965
  m(m, g) {
3942
- I(m, t, g), o && o.m(t, null), ce(t, r), h && h.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;
3943
3967
  },
3944
3968
  p(m, [g]) {
3945
- u ? u.p && (!i || g & /*$$scope*/
3969
+ h ? h.p && (!i || g & /*$$scope*/
3946
3970
  16384) && ve(
3947
- u,
3971
+ h,
3948
3972
  s,
3949
3973
  m,
3950
3974
  /*$$scope*/
3951
3975
  m[14],
3952
- i ? xe(
3976
+ i ? Ee(
3953
3977
  s,
3954
3978
  /*$$scope*/
3955
3979
  m[14],
@@ -3968,7 +3992,7 @@ function vi(e) {
3968
3992
  m,
3969
3993
  /*$$scope*/
3970
3994
  m[14],
3971
- i ? xe(
3995
+ i ? Ee(
3972
3996
  l,
3973
3997
  /*$$scope*/
3974
3998
  m[14],
@@ -3979,15 +4003,15 @@ function vi(e) {
3979
4003
  m[14]
3980
4004
  ),
3981
4005
  bt
3982
- ) : h && h.p && (!i || g & /*$_, titleText*/
3983
- 20) && h.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
4006
+ ) : u && u.p && (!i || g & /*$_, titleText*/
4007
+ 20) && u.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
3984
4008
  16384) && ve(
3985
4009
  c,
3986
4010
  f,
3987
4011
  m,
3988
4012
  /*$$scope*/
3989
4013
  m[14],
3990
- i ? xe(
4014
+ i ? Ee(
3991
4015
  f,
3992
4016
  /*$$scope*/
3993
4017
  m[14],
@@ -3997,25 +4021,25 @@ function vi(e) {
3997
4021
  /*$$scope*/
3998
4022
  m[14]
3999
4023
  ),
4000
- dt
4001
- ) : p && p.p && (!i || g & /*closeButton*/
4002
- 8) && p.p(m, i ? g : -1);
4024
+ pt
4025
+ ) : d && d.p && (!i || g & /*closeButton*/
4026
+ 8) && d.p(m, i ? g : -1);
4003
4027
  },
4004
4028
  i(m) {
4005
- i || (ue(o, m), ue(h, m), ue(p, m), i = !0);
4029
+ i || (he(o, m), he(u, m), he(d, m), i = !0);
4006
4030
  },
4007
4031
  o(m) {
4008
- Te(o, m), Te(h, m), Te(p, m), i = !1;
4032
+ Te(o, m), Te(u, m), Te(d, m), i = !1;
4009
4033
  },
4010
4034
  d(m) {
4011
- m && O(t), o && o.d(m), h && h.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);
4012
4036
  }
4013
4037
  };
4014
4038
  }
4015
4039
  function Hi(e, t, r) {
4016
4040
  let n;
4017
4041
  ir(e, mi, (_) => r(4, n = _));
4018
- let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, p, m = !1, g, v = !1;
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;
4019
4043
  const L = () => {
4020
4044
  let _ = l;
4021
4045
  _ && fetch(_).then((w) => w.json()).then((w) => {
@@ -4026,24 +4050,24 @@ function Hi(e, t, r) {
4026
4050
  console.log(w);
4027
4051
  });
4028
4052
  };
4029
- Object.keys(pt).forEach((_) => {
4030
- mt(_, pt[_]);
4053
+ Object.keys(dt).forEach((_) => {
4054
+ mt(_, dt[_]);
4031
4055
  });
4032
4056
  const A = () => {
4033
4057
  let _ = document.createElement("style");
4034
- _.innerHTML = u, p.appendChild(_);
4058
+ _.innerHTML = h, d.appendChild(_);
4035
4059
  }, H = () => {
4036
4060
  let _ = new URL(o), w = document.createElement("style");
4037
4061
  fetch(_.href).then((R) => R.text()).then((R) => {
4038
4062
  w.innerHTML = R, setTimeout(
4039
4063
  () => {
4040
- p.appendChild(w);
4064
+ d.appendChild(w);
4041
4065
  },
4042
4066
  1
4043
4067
  );
4044
4068
  });
4045
4069
  }, N = () => {
4046
- pi(f);
4070
+ di(f);
4047
4071
  }, T = () => {
4048
4072
  window.postMessage({ type: "CloseCashier" }, window.location.href);
4049
4073
  }, $ = () => {
@@ -4053,37 +4077,37 @@ function Hi(e, t, r) {
4053
4077
  }, Kt = () => {
4054
4078
  r(3, v = !!c && c !== "false");
4055
4079
  }, er = () => {
4056
- r(2, g = h || "header.general");
4080
+ r(2, g = u || "header.general");
4057
4081
  };
4058
4082
  function tr(_) {
4059
4083
  Le[_ ? "unshift" : "push"](() => {
4060
- p = _, r(0, p);
4084
+ d = _, r(0, d);
4061
4085
  });
4062
4086
  }
4063
4087
  return e.$$set = (_) => {
4064
- "clientstyling" in _ && r(7, u = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, a = _.showbackbutton), "title" in _ && r(11, h = _.title), "lang" in _ && r(12, f = _.lang), "showclosebutton" in _ && r(13, c = _.showclosebutton), "$$scope" in _ && r(14, s = _.$$scope);
4088
+ "clientstyling" in _ && r(7, h = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, a = _.showbackbutton), "title" in _ && r(11, u = _.title), "lang" in _ && r(12, f = _.lang), "showclosebutton" in _ && r(13, c = _.showclosebutton), "$$scope" in _ && r(14, s = _.$$scope);
4065
4089
  }, e.$$.update = () => {
4066
4090
  e.$$.dirty & /*lang*/
4067
4091
  4096 && f && N(), e.$$.dirty & /*lang, title*/
4068
- 6144 && f && h && er(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4069
- 129 && u && p && A(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4070
- 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*/
4071
4095
  4608 && f && l && L(), e.$$.dirty & /*showbackbutton*/
4072
4096
  1024 && a && ie(), e.$$.dirty & /*showclosebutton*/
4073
4097
  8192 && c && Kt();
4074
4098
  }, [
4075
- p,
4099
+ d,
4076
4100
  m,
4077
4101
  g,
4078
4102
  v,
4079
4103
  n,
4080
4104
  T,
4081
4105
  $,
4082
- u,
4106
+ h,
4083
4107
  o,
4084
4108
  l,
4085
4109
  a,
4086
- h,
4110
+ u,
4087
4111
  f,
4088
4112
  c,
4089
4113
  s,
@@ -4091,14 +4115,14 @@ function Hi(e, t, r) {
4091
4115
  tr
4092
4116
  ];
4093
4117
  }
4094
- class Yt extends xr {
4118
+ class Yt extends Er {
4095
4119
  constructor(t) {
4096
4120
  super(), yr(
4097
4121
  this,
4098
4122
  t,
4099
4123
  Hi,
4100
4124
  vi,
4101
- xt,
4125
+ Et,
4102
4126
  {
4103
4127
  clientstyling: 7,
4104
4128
  clientstylingurl: 8,
@@ -4108,7 +4132,7 @@ class Yt extends xr {
4108
4132
  lang: 12,
4109
4133
  showclosebutton: 13
4110
4134
  },
4111
- di
4135
+ pi
4112
4136
  );
4113
4137
  }
4114
4138
  get clientstyling() {
@@ -4154,7 +4178,7 @@ class Yt extends xr {
4154
4178
  this.$$set({ showclosebutton: t }), S();
4155
4179
  }
4156
4180
  }
4157
- Er(Yt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
4181
+ xr(Yt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
4158
4182
  const wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4159
4183
  __proto__: null,
4160
4184
  default: Yt
@@ -4162,10 +4186,10 @@ const wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4162
4186
  export {
4163
4187
  M as $,
4164
4188
  wi as C,
4165
- xr as S,
4189
+ Er as S,
4166
4190
  Wt as a,
4167
4191
  yr as b,
4168
- Er as c,
4192
+ xr as c,
4169
4193
  sr as d,
4170
4194
  z as e,
4171
4195
  S as f,
@@ -4180,5 +4204,5 @@ export {
4180
4204
  B as o,
4181
4205
  O as p,
4182
4206
  Le as q,
4183
- xt as s
4207
+ Et as s
4184
4208
  };