@everymatrix/cashier-header 1.71.1 → 1.72.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,28 +1,28 @@
1
1
  var or = Object.defineProperty, ar = Object.defineProperties;
2
- var hr = Object.getOwnPropertyDescriptors;
2
+ var ur = Object.getOwnPropertyDescriptors;
3
3
  var qe = Object.getOwnPropertySymbols;
4
- var ur = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable;
5
- var xe = (e, t, r) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
4
+ var hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable;
5
+ var ve = (e, t, r) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- ur.call(t, r) && xe(e, r, t[r]);
7
+ hr.call(t, r) && ve(e, r, t[r]);
8
8
  if (qe)
9
9
  for (var r of qe(t))
10
- lr.call(t, r) && xe(e, r, t[r]);
10
+ lr.call(t, r) && ve(e, r, t[r]);
11
11
  return e;
12
- }, Ke = (e, t) => ar(e, hr(t));
13
- var B = (e, t, r) => (xe(e, typeof t != "symbol" ? t + "" : t, r), r);
12
+ }, Ke = (e, t) => ar(e, ur(t));
13
+ var B = (e, t, r) => (ve(e, typeof t != "symbol" ? t + "" : t, r), r);
14
14
  var et = (e, t, r) => new Promise((n, i) => {
15
15
  var s = (l) => {
16
16
  try {
17
17
  o(r.next(l));
18
- } catch (h) {
19
- i(h);
18
+ } catch (u) {
19
+ i(u);
20
20
  }
21
21
  }, a = (l) => {
22
22
  try {
23
23
  o(r.throw(l));
24
- } catch (h) {
25
- i(h);
24
+ } catch (u) {
25
+ i(u);
26
26
  }
27
27
  }, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
28
28
  o((r = r.apply(e, t)).next());
@@ -43,10 +43,10 @@ function Tt(e) {
43
43
  function tt() {
44
44
  return /* @__PURE__ */ Object.create(null);
45
45
  }
46
- function te(e) {
46
+ function re(e) {
47
47
  e.forEach(Tt);
48
48
  }
49
- function Ve(e) {
49
+ function We(e) {
50
50
  return typeof e == "function";
51
51
  }
52
52
  function wt(e, t) {
@@ -67,7 +67,7 @@ function St(e, ...t) {
67
67
  function mr(e, t, r) {
68
68
  e.$$.on_destroy.push(St(t, r));
69
69
  }
70
- function Ee(e, t, r, n) {
70
+ function He(e, t, r, n) {
71
71
  if (e) {
72
72
  const i = At(e, t, r, n);
73
73
  return e[0](i);
@@ -76,7 +76,7 @@ function Ee(e, t, r, n) {
76
76
  function At(e, t, r, n) {
77
77
  return e[1] && n ? fr(r.ctx.slice(), e[1](n(t))) : r.ctx;
78
78
  }
79
- function ve(e, t, r, n) {
79
+ function Be(e, t, r, n) {
80
80
  if (e[2] && n) {
81
81
  const i = e[2](n(r));
82
82
  if (t.dirty === void 0)
@@ -91,13 +91,13 @@ function ve(e, t, r, n) {
91
91
  }
92
92
  return t.dirty;
93
93
  }
94
- function He(e, t, r, n, i, s) {
94
+ function Te(e, t, r, n, i, s) {
95
95
  if (i) {
96
96
  const a = At(t, r, n, s);
97
97
  e.p(a, i);
98
98
  }
99
99
  }
100
- function Be(e) {
100
+ function we(e) {
101
101
  if (e.ctx.length > 32) {
102
102
  const t = [], r = e.ctx.length / 32;
103
103
  for (let n = 0; n < r; n++)
@@ -106,17 +106,17 @@ function Be(e) {
106
106
  }
107
107
  return -1;
108
108
  }
109
- function ce(e, t) {
109
+ function me(e, t) {
110
110
  e.appendChild(t);
111
111
  }
112
- function dr(e, t, r) {
113
- const n = pr(e);
112
+ function pr(e, t, r) {
113
+ const n = dr(e);
114
114
  if (!n.getElementById(t)) {
115
- const i = W("style");
115
+ const i = Z("style");
116
116
  i.id = t, i.textContent = r, br(n, i);
117
117
  }
118
118
  }
119
- function pr(e) {
119
+ function dr(e) {
120
120
  if (!e)
121
121
  return document;
122
122
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -127,34 +127,34 @@ function pr(e) {
127
127
  ) : e.ownerDocument;
128
128
  }
129
129
  function br(e, t) {
130
- return ce(
130
+ return me(
131
131
  /** @type {Document} */
132
132
  e.head || e,
133
133
  t
134
134
  ), t.sheet;
135
135
  }
136
- function M(e, t, r) {
136
+ function $(e, t, r) {
137
137
  e.insertBefore(t, r || null);
138
138
  }
139
- function P(e) {
139
+ function L(e) {
140
140
  e.parentNode && e.parentNode.removeChild(e);
141
141
  }
142
- function W(e) {
142
+ function Z(e) {
143
143
  return document.createElement(e);
144
144
  }
145
- function Xe(e) {
145
+ function ze(e) {
146
146
  return document.createTextNode(e);
147
147
  }
148
148
  function rt() {
149
- return Xe(" ");
149
+ return ze(" ");
150
150
  }
151
- function Ct() {
152
- return Xe("");
151
+ function Ot() {
152
+ return ze("");
153
153
  }
154
- function Ot(e, t, r, n) {
154
+ function Pt(e, t, r, n) {
155
155
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
156
156
  }
157
- function re(e, t, r) {
157
+ function ne(e, t, r) {
158
158
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
159
159
  }
160
160
  function gr(e) {
@@ -173,90 +173,90 @@ function yr(e) {
173
173
  }
174
174
  ), t;
175
175
  }
176
- let ze;
177
- function Y(e) {
178
- ze = e;
176
+ let Ze;
177
+ function K(e) {
178
+ Ze = e;
179
179
  }
180
- const F = [], Ne = [];
181
- let j = [];
182
- const nt = [], xr = /* @__PURE__ */ Promise.resolve();
183
- let Ie = !1;
184
- function Er() {
185
- Ie || (Ie = !0, xr.then(A));
180
+ const j = [], Me = [];
181
+ let k = [];
182
+ const nt = [], Er = /* @__PURE__ */ Promise.resolve();
183
+ let $e = !1;
184
+ function xr() {
185
+ $e || ($e = !0, Er.then(O));
186
186
  }
187
- function Me(e) {
188
- j.push(e);
187
+ function Re(e) {
188
+ k.push(e);
189
189
  }
190
- const Te = /* @__PURE__ */ new Set();
191
- let D = 0;
192
- function A() {
193
- if (D !== 0)
190
+ const Se = /* @__PURE__ */ new Set();
191
+ let G = 0;
192
+ function O() {
193
+ if (G !== 0)
194
194
  return;
195
- const e = ze;
195
+ const e = Ze;
196
196
  do {
197
197
  try {
198
- for (; D < F.length; ) {
199
- const t = F[D];
200
- D++, Y(t), vr(t.$$);
198
+ for (; G < j.length; ) {
199
+ const t = j[G];
200
+ G++, K(t), vr(t.$$);
201
201
  }
202
202
  } catch (t) {
203
- throw F.length = 0, D = 0, t;
203
+ throw j.length = 0, G = 0, t;
204
204
  }
205
- for (Y(null), F.length = 0, D = 0; Ne.length; )
206
- Ne.pop()();
207
- for (let t = 0; t < j.length; t += 1) {
208
- const r = j[t];
209
- Te.has(r) || (Te.add(r), r());
205
+ for (K(null), j.length = 0, G = 0; Me.length; )
206
+ Me.pop()();
207
+ for (let t = 0; t < k.length; t += 1) {
208
+ const r = k[t];
209
+ Se.has(r) || (Se.add(r), r());
210
210
  }
211
- j.length = 0;
212
- } while (F.length);
211
+ k.length = 0;
212
+ } while (j.length);
213
213
  for (; nt.length; )
214
214
  nt.pop()();
215
- Ie = !1, Te.clear(), Y(e);
215
+ $e = !1, Se.clear(), K(e);
216
216
  }
217
217
  function vr(e) {
218
218
  if (e.fragment !== null) {
219
- e.update(), te(e.before_update);
219
+ e.update(), re(e.before_update);
220
220
  const t = e.dirty;
221
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
221
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
222
222
  }
223
223
  }
224
224
  function Hr(e) {
225
225
  const t = [], r = [];
226
- j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
226
+ k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
227
227
  }
228
- const ae = /* @__PURE__ */ new Set();
228
+ const ue = /* @__PURE__ */ new Set();
229
229
  let Br;
230
230
  function he(e, t) {
231
- e && e.i && (ae.delete(e), e.i(t));
231
+ e && e.i && (ue.delete(e), e.i(t));
232
232
  }
233
- function we(e, t, r, n) {
233
+ function Ae(e, t, r, n) {
234
234
  if (e && e.o) {
235
- if (ae.has(e))
235
+ if (ue.has(e))
236
236
  return;
237
- ae.add(e), Br.c.push(() => {
238
- ae.delete(e);
237
+ ue.add(e), Br.c.push(() => {
238
+ ue.delete(e);
239
239
  }), e.o(t);
240
240
  }
241
241
  }
242
242
  function Tr(e, t, r) {
243
243
  const { fragment: n, after_update: i } = e.$$;
244
- n && n.m(t, r), Me(() => {
245
- const s = e.$$.on_mount.map(Tt).filter(Ve);
246
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
247
- }), i.forEach(Me);
244
+ n && n.m(t, r), Re(() => {
245
+ const s = e.$$.on_mount.map(Tt).filter(We);
246
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
247
+ }), i.forEach(Re);
248
248
  }
249
249
  function wr(e, t) {
250
250
  const r = e.$$;
251
- r.fragment !== null && (Hr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
251
+ r.fragment !== null && (Hr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
252
252
  }
253
253
  function Sr(e, t) {
254
- e.$$.dirty[0] === -1 && (F.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
254
+ e.$$.dirty[0] === -1 && (j.push(e), xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
255
255
  }
256
256
  function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
257
- const l = ze;
258
- Y(e);
259
- const h = e.$$ = {
257
+ const l = Ze;
258
+ K(e);
259
+ const u = e.$$ = {
260
260
  fragment: null,
261
261
  ctx: [],
262
262
  // state
@@ -277,23 +277,23 @@ function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
277
277
  skip_bound: !1,
278
278
  root: t.target || l.$$.root
279
279
  };
280
- a && a(h.root);
281
- let u = !1;
282
- if (h.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
283
- const m = d.length ? d[0] : c;
284
- return h.ctx && i(h.ctx[f], h.ctx[f] = m) && (!h.skip_bound && h.bound[f] && h.bound[f](m), u && Sr(e, f)), c;
285
- }) : [], h.update(), u = !0, te(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
280
+ a && a(u.root);
281
+ let h = !1;
282
+ if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
283
+ const m = p.length ? p[0] : c;
284
+ return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && Sr(e, f)), c;
285
+ }) : [], u.update(), h = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
286
286
  if (t.hydrate) {
287
287
  const f = gr(t.target);
288
- h.fragment && h.fragment.l(f), f.forEach(P);
288
+ u.fragment && u.fragment.l(f), f.forEach(L);
289
289
  } else
290
- h.fragment && h.fragment.c();
291
- t.intro && he(e.$$.fragment), Tr(e, t.target, t.anchor), A();
290
+ u.fragment && u.fragment.c();
291
+ t.intro && he(e.$$.fragment), Tr(e, t.target, t.anchor), O();
292
292
  }
293
- Y(l);
293
+ K(l);
294
294
  }
295
- let Pt;
296
- typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
295
+ let Ct;
296
+ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
297
297
  constructor(t, r, n) {
298
298
  super();
299
299
  /** The Svelte component constructor */
@@ -337,17 +337,17 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
337
337
  let a;
338
338
  return {
339
339
  c: function() {
340
- a = W("slot"), s !== "default" && re(a, "name", s);
340
+ a = Z("slot"), s !== "default" && ne(a, "name", s);
341
341
  },
342
342
  /**
343
343
  * @param {HTMLElement} target
344
344
  * @param {HTMLElement} [anchor]
345
345
  */
346
- m: function(h, u) {
347
- M(h, a, u);
346
+ m: function(u, h) {
347
+ $(u, a, h);
348
348
  },
349
- d: function(h) {
350
- h && P(a);
349
+ d: function(u) {
350
+ u && L(a);
351
351
  }
352
352
  };
353
353
  };
@@ -359,7 +359,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
359
359
  s in n && (r[s] = [t(s)]);
360
360
  for (const s of this.attributes) {
361
361
  const a = this.$$g_p(s.name);
362
- a in this.$$d || (this.$$d[a] = ue(a, s.value, this.$$p_d, "toProp"));
362
+ a in this.$$d || (this.$$d[a] = le(a, s.value, this.$$p_d, "toProp"));
363
363
  }
364
364
  for (const s in this.$$p_d)
365
365
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
@@ -376,7 +376,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
376
376
  this.$$r = !0;
377
377
  for (const s in this.$$p_d)
378
378
  if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
379
- const a = ue(
379
+ const a = le(
380
380
  s,
381
381
  this.$$d[s],
382
382
  this.$$p_d,
@@ -400,7 +400,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
400
400
  // and setting attributes through setAttribute etc, this is helpful
401
401
  attributeChangedCallback(t, r, n) {
402
402
  var i;
403
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ue(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
403
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = le(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
404
404
  }
405
405
  disconnectedCallback() {
406
406
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -413,7 +413,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
413
413
  ) || t;
414
414
  }
415
415
  });
416
- function ue(e, t, r, n) {
416
+ function le(e, t, r, n) {
417
417
  var s;
418
418
  const i = (s = r[e]) == null ? void 0 : s.type;
419
419
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
@@ -443,8 +443,8 @@ function ue(e, t, r, n) {
443
443
  return t;
444
444
  }
445
445
  }
446
- function Cr(e, t, r, n, i, s) {
447
- let a = class extends Pt {
446
+ function Or(e, t, r, n, i, s) {
447
+ let a = class extends Ct {
448
448
  constructor() {
449
449
  super(e, r, i), this.$$p_d = t;
450
450
  }
@@ -460,8 +460,8 @@ function Cr(e, t, r, n, i, s) {
460
460
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
461
461
  },
462
462
  set(l) {
463
- var h;
464
- l = ue(o, l, t), this.$$d[o] = l, (h = this.$$c) == null || h.$set({ [o]: l });
463
+ var u;
464
+ l = le(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
465
465
  }
466
466
  });
467
467
  }), n.forEach((o) => {
@@ -474,7 +474,7 @@ function Cr(e, t, r, n, i, s) {
474
474
  }), e.element = /** @type {any} */
475
475
  a, a;
476
476
  }
477
- class Or {
477
+ class Pr {
478
478
  constructor() {
479
479
  /**
480
480
  * ### PRIVATE API
@@ -504,7 +504,7 @@ class Or {
504
504
  * @returns {() => void}
505
505
  */
506
506
  $on(t, r) {
507
- if (!Ve(r))
507
+ if (!We(r))
508
508
  return T;
509
509
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
510
510
  return n.push(r), () => {
@@ -520,26 +520,26 @@ class Or {
520
520
  this.$$set && !cr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
521
521
  }
522
522
  }
523
- const Pr = "4";
524
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pr);
525
- const G = [];
523
+ const Cr = "4";
524
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cr);
525
+ const F = [];
526
526
  function Lr(e, t) {
527
527
  return {
528
- subscribe: be(e, t).subscribe
528
+ subscribe: _e(e, t).subscribe
529
529
  };
530
530
  }
531
- function be(e, t = T) {
531
+ function _e(e, t = T) {
532
532
  let r;
533
533
  const n = /* @__PURE__ */ new Set();
534
534
  function i(o) {
535
535
  if (wt(e, o) && (e = o, r)) {
536
- const l = !G.length;
537
- for (const h of n)
538
- h[1](), G.push(h, e);
536
+ const l = !F.length;
537
+ for (const u of n)
538
+ u[1](), F.push(u, e);
539
539
  if (l) {
540
- for (let h = 0; h < G.length; h += 2)
541
- G[h][0](G[h + 1]);
542
- G.length = 0;
540
+ for (let u = 0; u < F.length; u += 2)
541
+ F[u][0](F[u + 1]);
542
+ F.length = 0;
543
543
  }
544
544
  }
545
545
  }
@@ -547,41 +547,41 @@ function be(e, t = T) {
547
547
  i(o(e));
548
548
  }
549
549
  function a(o, l = T) {
550
- const h = [o, l];
551
- return n.add(h), n.size === 1 && (r = t(i, s) || T), o(e), () => {
552
- n.delete(h), n.size === 0 && r && (r(), r = null);
550
+ const u = [o, l];
551
+ return n.add(u), n.size === 1 && (r = t(i, s) || T), o(e), () => {
552
+ n.delete(u), n.size === 0 && r && (r(), r = null);
553
553
  };
554
554
  }
555
555
  return { set: i, update: s, subscribe: a };
556
556
  }
557
- function Z(e, t, r) {
557
+ function Q(e, t, r) {
558
558
  const n = !Array.isArray(e), i = n ? [e] : e;
559
559
  if (!i.every(Boolean))
560
560
  throw new Error("derived() expects stores as input, got a falsy value");
561
561
  const s = t.length < 2;
562
562
  return Lr(r, (a, o) => {
563
563
  let l = !1;
564
- const h = [];
565
- let u = 0, f = T;
564
+ const u = [];
565
+ let h = 0, f = T;
566
566
  const c = () => {
567
- if (u)
567
+ if (h)
568
568
  return;
569
569
  f();
570
- const m = t(n ? h[0] : h, a, o);
571
- s ? a(m) : f = Ve(m) ? m : T;
572
- }, d = i.map(
570
+ const m = t(n ? u[0] : u, a, o);
571
+ s ? a(m) : f = We(m) ? m : T;
572
+ }, p = i.map(
573
573
  (m, g) => St(
574
574
  m,
575
575
  (v) => {
576
- h[g] = v, u &= ~(1 << g), l && c();
576
+ u[g] = v, h &= ~(1 << g), l && c();
577
577
  },
578
578
  () => {
579
- u |= 1 << g;
579
+ h |= 1 << g;
580
580
  }
581
581
  )
582
582
  );
583
583
  return l = !0, c(), function() {
584
- te(d), f(), l = !1;
584
+ re(p), f(), l = !1;
585
585
  };
586
586
  });
587
587
  }
@@ -605,19 +605,19 @@ function Dr(e) {
605
605
  function Gr(e) {
606
606
  return Array.isArray(e) ? [] : {};
607
607
  }
608
- function K(e, t) {
609
- return t.clone !== !1 && t.isMergeableObject(e) ? k(Gr(e), e, t) : e;
608
+ function ee(e, t) {
609
+ return t.clone !== !1 && t.isMergeableObject(e) ? V(Gr(e), e, t) : e;
610
610
  }
611
611
  function Fr(e, t, r) {
612
612
  return e.concat(t).map(function(n) {
613
- return K(n, r);
613
+ return ee(n, r);
614
614
  });
615
615
  }
616
616
  function jr(e, t) {
617
617
  if (!t.customMerge)
618
- return k;
618
+ return V;
619
619
  var r = t.customMerge(e);
620
- return typeof r == "function" ? r : k;
620
+ return typeof r == "function" ? r : V;
621
621
  }
622
622
  function kr(e) {
623
623
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
@@ -640,65 +640,51 @@ function Vr(e, t) {
640
640
  function Xr(e, t, r) {
641
641
  var n = {};
642
642
  return r.isMergeableObject(e) && it(e).forEach(function(i) {
643
- n[i] = K(e[i], r);
643
+ n[i] = ee(e[i], r);
644
644
  }), it(t).forEach(function(i) {
645
- Vr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
645
+ Vr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
646
646
  }), n;
647
647
  }
648
- function k(e, t, r) {
649
- r = r || {}, r.arrayMerge = r.arrayMerge || Fr, r.isMergeableObject = r.isMergeableObject || Ir, r.cloneUnlessOtherwiseSpecified = K;
648
+ function V(e, t, r) {
649
+ r = r || {}, r.arrayMerge = r.arrayMerge || Fr, r.isMergeableObject = r.isMergeableObject || Ir, r.cloneUnlessOtherwiseSpecified = ee;
650
650
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
651
- return s ? n ? r.arrayMerge(e, t, r) : Xr(e, t, r) : K(t, r);
651
+ return s ? n ? r.arrayMerge(e, t, r) : Xr(e, t, r) : ee(t, r);
652
652
  }
653
- k.all = function(t, r) {
653
+ V.all = function(t, r) {
654
654
  if (!Array.isArray(t))
655
655
  throw new Error("first argument should be an array");
656
656
  return t.reduce(function(n, i) {
657
- return k(n, i, r);
657
+ return V(n, i, r);
658
658
  }, {});
659
659
  };
660
- var zr = k, Wr = zr;
661
- const Zr = /* @__PURE__ */ Nr(Wr);
662
- /*! *****************************************************************************
663
- Copyright (c) Microsoft Corporation.
664
-
665
- Permission to use, copy, modify, and/or distribute this software for any
666
- purpose with or without fee is hereby granted.
667
-
668
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
669
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
670
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
671
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
672
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
673
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
674
- PERFORMANCE OF THIS SOFTWARE.
675
- ***************************************************************************** */
676
- var $e = function(e, t) {
677
- return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
660
+ var Wr = V, zr = Wr;
661
+ const Zr = /* @__PURE__ */ Nr(zr);
662
+ var Ue = function(e, t) {
663
+ return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
678
664
  r.__proto__ = n;
679
665
  } || function(r, n) {
680
666
  for (var i in n)
681
667
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
682
- }, $e(e, t);
668
+ }, Ue(e, t);
683
669
  };
684
- function ge(e, t) {
670
+ function ye(e, t) {
685
671
  if (typeof t != "function" && t !== null)
686
672
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
687
- $e(e, t);
673
+ Ue(e, t);
688
674
  function r() {
689
675
  this.constructor = e;
690
676
  }
691
677
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
692
678
  }
693
- var y = function() {
694
- return y = Object.assign || function(t) {
679
+ var w = function() {
680
+ return w = Object.assign || function(t) {
695
681
  for (var r, n = 1, i = arguments.length; n < i; n++) {
696
682
  r = arguments[n];
697
683
  for (var s in r)
698
684
  Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
699
685
  }
700
686
  return t;
701
- }, y.apply(this, arguments);
687
+ }, w.apply(this, arguments);
702
688
  };
703
689
  function Qr(e, t) {
704
690
  var r = {};
@@ -709,14 +695,14 @@ function Qr(e, t) {
709
695
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
710
696
  return r;
711
697
  }
712
- function Se(e, t, r) {
713
- if (arguments.length === 2)
698
+ function Oe(e, t, r) {
699
+ if (r || arguments.length === 2)
714
700
  for (var n = 0, i = t.length, s; n < i; n++)
715
701
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
716
- return e.concat(s || t);
702
+ return e.concat(s || Array.prototype.slice.call(t));
717
703
  }
718
- function Ae(e, t) {
719
- var r = t && t.cache ? t.cache : tn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : qr;
704
+ function Pe(e, t) {
705
+ var r = t && t.cache ? t.cache : rn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : Yr;
720
706
  return i(e, {
721
707
  cache: r,
722
708
  serializer: n
@@ -725,95 +711,103 @@ function Ae(e, t) {
725
711
  function Jr(e) {
726
712
  return e == null || typeof e == "number" || typeof e == "boolean";
727
713
  }
728
- function Nt(e, t, r, n) {
714
+ function qr(e, t, r, n) {
729
715
  var i = Jr(n) ? n : r(n), s = t.get(i);
730
716
  return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
731
717
  }
732
- function It(e, t, r) {
718
+ function Nt(e, t, r) {
733
719
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
734
720
  return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
735
721
  }
736
- function We(e, t, r, n, i) {
722
+ function It(e, t, r, n, i) {
737
723
  return r.bind(t, e, n, i);
738
724
  }
739
- function qr(e, t) {
740
- var r = e.length === 1 ? Nt : It;
741
- return We(e, this, r, t.cache.create(), t.serializer);
742
- }
743
725
  function Yr(e, t) {
744
- return We(e, this, It, t.cache.create(), t.serializer);
726
+ var r = e.length === 1 ? qr : Nt;
727
+ return It(e, this, r, t.cache.create(), t.serializer);
745
728
  }
746
729
  function Kr(e, t) {
747
- return We(e, this, Nt, t.cache.create(), t.serializer);
730
+ return It(e, this, Nt, t.cache.create(), t.serializer);
748
731
  }
749
732
  var en = function() {
750
733
  return JSON.stringify(arguments);
751
- };
752
- function Ze() {
753
- this.cache = /* @__PURE__ */ Object.create(null);
754
- }
755
- Ze.prototype.get = function(e) {
756
- return this.cache[e];
757
- };
758
- Ze.prototype.set = function(e, t) {
759
- this.cache[e] = t;
760
- };
761
- var tn = {
734
+ }, tn = (
735
+ /** @class */
736
+ function() {
737
+ function e() {
738
+ this.cache = /* @__PURE__ */ Object.create(null);
739
+ }
740
+ return e.prototype.get = function(t) {
741
+ return this.cache[t];
742
+ }, e.prototype.set = function(t, r) {
743
+ this.cache[t] = r;
744
+ }, e;
745
+ }()
746
+ ), rn = {
762
747
  create: function() {
763
- return new Ze();
748
+ return new tn();
764
749
  }
765
750
  }, Ce = {
766
- variadic: Yr,
767
- monadic: Kr
768
- }, p;
751
+ variadic: Kr
752
+ }, pe = function() {
753
+ return pe = Object.assign || function(t) {
754
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
755
+ r = arguments[n];
756
+ for (var s in r)
757
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
758
+ }
759
+ return t;
760
+ }, pe.apply(this, arguments);
761
+ };
762
+ var d;
769
763
  (function(e) {
770
764
  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";
771
- })(p || (p = {}));
772
- var x;
765
+ })(d || (d = {}));
766
+ var y;
773
767
  (function(e) {
774
768
  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";
775
- })(x || (x = {}));
776
- var V;
769
+ })(y || (y = {}));
770
+ var X;
777
771
  (function(e) {
778
772
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
779
- })(V || (V = {}));
773
+ })(X || (X = {}));
780
774
  function st(e) {
781
- return e.type === x.literal;
775
+ return e.type === y.literal;
782
776
  }
783
- function rn(e) {
784
- return e.type === x.argument;
777
+ function nn(e) {
778
+ return e.type === y.argument;
785
779
  }
786
780
  function Mt(e) {
787
- return e.type === x.number;
781
+ return e.type === y.number;
788
782
  }
789
783
  function $t(e) {
790
- return e.type === x.date;
784
+ return e.type === y.date;
791
785
  }
792
786
  function Rt(e) {
793
- return e.type === x.time;
787
+ return e.type === y.time;
794
788
  }
795
789
  function Ut(e) {
796
- return e.type === x.select;
790
+ return e.type === y.select;
797
791
  }
798
792
  function Dt(e) {
799
- return e.type === x.plural;
793
+ return e.type === y.plural;
800
794
  }
801
- function nn(e) {
802
- return e.type === x.pound;
795
+ function sn(e) {
796
+ return e.type === y.pound;
803
797
  }
804
798
  function Gt(e) {
805
- return e.type === x.tag;
799
+ return e.type === y.tag;
806
800
  }
807
801
  function Ft(e) {
808
- return !!(e && typeof e == "object" && e.type === V.number);
802
+ return !!(e && typeof e == "object" && e.type === X.number);
809
803
  }
810
- function Re(e) {
811
- return !!(e && typeof e == "object" && e.type === V.dateTime);
804
+ function De(e) {
805
+ return !!(e && typeof e == "object" && e.type === X.dateTime);
812
806
  }
813
- var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, sn = /(?:[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;
814
- function on(e) {
807
+ var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, on = /(?:[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;
808
+ function an(e) {
815
809
  var t = {};
816
- return e.replace(sn, function(r) {
810
+ return e.replace(on, function(r) {
817
811
  var n = r.length;
818
812
  switch (r[0]) {
819
813
  case "G":
@@ -902,18 +896,28 @@ function on(e) {
902
896
  return "";
903
897
  }), t;
904
898
  }
905
- var an = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
899
+ var E = function() {
900
+ return E = Object.assign || function(t) {
901
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
902
+ r = arguments[n];
903
+ for (var s in r)
904
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
905
+ }
906
+ return t;
907
+ }, E.apply(this, arguments);
908
+ };
909
+ var un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
906
910
  function hn(e) {
907
911
  if (e.length === 0)
908
912
  throw new Error("Number skeleton cannot be empty");
909
- for (var t = e.split(an).filter(function(c) {
913
+ for (var t = e.split(un).filter(function(c) {
910
914
  return c.length > 0;
911
915
  }), r = [], n = 0, i = t; n < i.length; n++) {
912
916
  var s = i[n], a = s.split("/");
913
917
  if (a.length === 0)
914
918
  throw new Error("Invalid number skeleton");
915
- for (var o = a[0], l = a.slice(1), h = 0, u = l; h < u.length; h++) {
916
- var f = u[h];
919
+ for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
920
+ var f = h[u];
917
921
  if (f.length === 0)
918
922
  throw new Error("Invalid number skeleton");
919
923
  }
@@ -921,10 +925,10 @@ function hn(e) {
921
925
  }
922
926
  return r;
923
927
  }
924
- function un(e) {
928
+ function ln(e) {
925
929
  return e.replace(/^(.*?)-/, "");
926
930
  }
927
- var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g, ln = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
931
+ var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g, fn = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
928
932
  function at(e) {
929
933
  var t = {};
930
934
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kt, function(r, n, i) {
@@ -971,7 +975,7 @@ function Xt(e) {
971
975
  };
972
976
  }
973
977
  }
974
- function fn(e) {
978
+ function cn(e) {
975
979
  var t;
976
980
  if (e[0] === "E" && e[1] === "E" ? (t = {
977
981
  notation: "engineering"
@@ -985,11 +989,11 @@ function fn(e) {
985
989
  }
986
990
  return t;
987
991
  }
988
- function ht(e) {
992
+ function ut(e) {
989
993
  var t = {}, r = Xt(e);
990
994
  return r || t;
991
995
  }
992
- function cn(e) {
996
+ function mn(e) {
993
997
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
994
998
  var i = n[r];
995
999
  switch (i.stem) {
@@ -1013,7 +1017,7 @@ function cn(e) {
1013
1017
  continue;
1014
1018
  case "measure-unit":
1015
1019
  case "unit":
1016
- t.style = "unit", t.unit = un(i.options[0]);
1020
+ t.style = "unit", t.unit = ln(i.options[0]);
1017
1021
  continue;
1018
1022
  case "compact-short":
1019
1023
  case "K":
@@ -1024,13 +1028,13 @@ function cn(e) {
1024
1028
  t.notation = "compact", t.compactDisplay = "long";
1025
1029
  continue;
1026
1030
  case "scientific":
1027
- t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, h) {
1028
- return y(y({}, l), ht(h));
1031
+ t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1032
+ return E(E({}, l), ut(u));
1029
1033
  }, {}));
1030
1034
  continue;
1031
1035
  case "engineering":
1032
- t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, h) {
1033
- return y(y({}, l), ht(h));
1036
+ t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1037
+ return E(E({}, l), ut(u));
1034
1038
  }, {}));
1035
1039
  continue;
1036
1040
  case "notation-simple":
@@ -1075,13 +1079,13 @@ function cn(e) {
1075
1079
  case "integer-width":
1076
1080
  if (i.options.length > 1)
1077
1081
  throw new RangeError("integer-width stems only accept a single optional option");
1078
- i.options[0].replace(ln, function(l, h, u, f, c, d) {
1079
- if (h)
1080
- t.minimumIntegerDigits = u.length;
1082
+ i.options[0].replace(fn, function(l, u, h, f, c, p) {
1083
+ if (u)
1084
+ t.minimumIntegerDigits = h.length;
1081
1085
  else {
1082
1086
  if (f && c)
1083
1087
  throw new Error("We currently do not support maximum integer digits");
1084
- if (d)
1088
+ if (p)
1085
1089
  throw new Error("We currently do not support exact integer digits");
1086
1090
  }
1087
1091
  return "";
@@ -1095,25 +1099,25 @@ function cn(e) {
1095
1099
  if (ot.test(i.stem)) {
1096
1100
  if (i.options.length > 1)
1097
1101
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1098
- i.stem.replace(ot, function(l, h, u, f, c, d) {
1099
- return u === "*" ? t.minimumFractionDigits = h.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
1102
+ i.stem.replace(ot, function(l, u, h, f, c, p) {
1103
+ return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1100
1104
  });
1101
1105
  var s = i.options[0];
1102
- s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), at(s)));
1106
+ s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), at(s)));
1103
1107
  continue;
1104
1108
  }
1105
1109
  if (kt.test(i.stem)) {
1106
- t = y(y({}, t), at(i.stem));
1110
+ t = E(E({}, t), at(i.stem));
1107
1111
  continue;
1108
1112
  }
1109
1113
  var a = Xt(i.stem);
1110
- a && (t = y(y({}, t), a));
1111
- var o = fn(i.stem);
1112
- o && (t = y(y({}, t), o));
1114
+ a && (t = E(E({}, t), a));
1115
+ var o = cn(i.stem);
1116
+ o && (t = E(E({}, t), o));
1113
1117
  }
1114
1118
  return t;
1115
1119
  }
1116
- var oe = {
1120
+ var ae = {
1117
1121
  "001": [
1118
1122
  "H",
1119
1123
  "h"
@@ -2528,17 +2532,17 @@ var oe = {
2528
2532
  "h"
2529
2533
  ]
2530
2534
  };
2531
- function mn(e, t) {
2535
+ function pn(e, t) {
2532
2536
  for (var r = "", n = 0; n < e.length; n++) {
2533
2537
  var i = e.charAt(n);
2534
2538
  if (i === "j") {
2535
2539
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2536
2540
  s++, n++;
2537
- var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h = dn(t);
2538
- for ((h == "H" || h == "k") && (o = 0); o-- > 0; )
2541
+ var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = dn(t);
2542
+ for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
2539
2543
  r += l;
2540
2544
  for (; a-- > 0; )
2541
- r = h + r;
2545
+ r = u + r;
2542
2546
  } else
2543
2547
  i === "J" ? r += "H" : r += i;
2544
2548
  }
@@ -2563,23 +2567,23 @@ function dn(e) {
2563
2567
  }
2564
2568
  var r = e.language, n;
2565
2569
  r !== "root" && (n = e.maximize().region);
2566
- var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
2570
+ var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
2567
2571
  return i[0];
2568
2572
  }
2569
- var Oe, pn = new RegExp("^".concat(jt.source, "*")), bn = new RegExp("".concat(jt.source, "*$"));
2573
+ var Le, bn = new RegExp("^".concat(jt.source, "*")), gn = new RegExp("".concat(jt.source, "*$"));
2570
2574
  function b(e, t) {
2571
2575
  return { start: e, end: t };
2572
2576
  }
2573
- var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), _n = !!String.fromCodePoint, yn = !!Object.fromEntries, xn = !!String.prototype.codePointAt, En = !!String.prototype.trimStart, vn = !!String.prototype.trimEnd, Hn = !!Number.isSafeInteger, Bn = Hn ? Number.isSafeInteger : function(e) {
2577
+ var _n = !!String.prototype.startsWith && "_a".startsWith("a", 1), yn = !!String.fromCodePoint, En = !!Object.fromEntries, xn = !!String.prototype.codePointAt, vn = !!String.prototype.trimStart, Hn = !!String.prototype.trimEnd, Bn = !!Number.isSafeInteger, Tn = Bn ? Number.isSafeInteger : function(e) {
2574
2578
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2575
- }, Ue = !0;
2579
+ }, Ge = !0;
2576
2580
  try {
2577
- var Tn = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2578
- Ue = ((Oe = Tn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
2581
+ var wn = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2582
+ Ge = ((Le = wn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
2579
2583
  } catch (e) {
2580
- Ue = !1;
2584
+ Ge = !1;
2581
2585
  }
2582
- var ut = gn ? (
2586
+ var ht = _n ? (
2583
2587
  // Native
2584
2588
  function(t, r, n) {
2585
2589
  return t.startsWith(r, n);
@@ -2589,7 +2593,7 @@ var ut = gn ? (
2589
2593
  function(t, r, n) {
2590
2594
  return t.slice(n, n + r.length) === r;
2591
2595
  }
2592
- ), De = _n ? String.fromCodePoint : (
2596
+ ), Fe = yn ? String.fromCodePoint : (
2593
2597
  // IE11
2594
2598
  function() {
2595
2599
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2603,7 +2607,7 @@ var ut = gn ? (
2603
2607
  }
2604
2608
  ), lt = (
2605
2609
  // native
2606
- yn ? Object.fromEntries : (
2610
+ En ? Object.fromEntries : (
2607
2611
  // Ponyfill
2608
2612
  function(t) {
2609
2613
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2613,7 +2617,7 @@ var ut = gn ? (
2613
2617
  return r;
2614
2618
  }
2615
2619
  )
2616
- ), zt = xn ? (
2620
+ ), Wt = xn ? (
2617
2621
  // Native
2618
2622
  function(t, r) {
2619
2623
  return t.codePointAt(r);
@@ -2627,7 +2631,7 @@ var ut = gn ? (
2627
2631
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2628
2632
  }
2629
2633
  }
2630
- ), wn = En ? (
2634
+ ), Sn = vn ? (
2631
2635
  // Native
2632
2636
  function(t) {
2633
2637
  return t.trimStart();
@@ -2635,9 +2639,9 @@ var ut = gn ? (
2635
2639
  ) : (
2636
2640
  // Ponyfill
2637
2641
  function(t) {
2638
- return t.replace(pn, "");
2642
+ return t.replace(bn, "");
2639
2643
  }
2640
- ), Sn = vn ? (
2644
+ ), An = Hn ? (
2641
2645
  // Native
2642
2646
  function(t) {
2643
2647
  return t.trimEnd();
@@ -2645,32 +2649,32 @@ var ut = gn ? (
2645
2649
  ) : (
2646
2650
  // Ponyfill
2647
2651
  function(t) {
2648
- return t.replace(bn, "");
2652
+ return t.replace(gn, "");
2649
2653
  }
2650
2654
  );
2651
- function Wt(e, t) {
2655
+ function zt(e, t) {
2652
2656
  return new RegExp(e, t);
2653
2657
  }
2654
- var Ge;
2655
- if (Ue) {
2656
- var ft = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2657
- Ge = function(t, r) {
2658
+ var je;
2659
+ if (Ge) {
2660
+ var ft = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2661
+ je = function(t, r) {
2658
2662
  var n;
2659
2663
  ft.lastIndex = r;
2660
2664
  var i = ft.exec(t);
2661
2665
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2662
2666
  };
2663
2667
  } else
2664
- Ge = function(t, r) {
2668
+ je = function(t, r) {
2665
2669
  for (var n = []; ; ) {
2666
- var i = zt(t, r);
2667
- if (i === void 0 || Zt(i) || Pn(i))
2670
+ var i = Wt(t, r);
2671
+ if (i === void 0 || Zt(i) || Ln(i))
2668
2672
  break;
2669
2673
  n.push(i), r += i >= 65536 ? 2 : 1;
2670
2674
  }
2671
- return De.apply(void 0, n);
2675
+ return Fe.apply(void 0, n);
2672
2676
  };
2673
- var An = (
2677
+ var On = (
2674
2678
  /** @class */
2675
2679
  function() {
2676
2680
  function e(t, r) {
@@ -2694,14 +2698,14 @@ var An = (
2694
2698
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
2695
2699
  var o = this.clonePosition();
2696
2700
  this.bump(), i.push({
2697
- type: x.pound,
2701
+ type: y.pound,
2698
2702
  location: b(o, this.clonePosition())
2699
2703
  });
2700
2704
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2701
2705
  if (n)
2702
2706
  break;
2703
- return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
2704
- } else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
2707
+ return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
2708
+ } else if (s === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
2705
2709
  var a = this.parseTag(t, r);
2706
2710
  if (a.err)
2707
2711
  return a;
@@ -2722,7 +2726,7 @@ var An = (
2722
2726
  if (this.bumpSpace(), this.bumpIf("/>"))
2723
2727
  return {
2724
2728
  val: {
2725
- type: x.literal,
2729
+ type: y.literal,
2726
2730
  value: "<".concat(i, "/>"),
2727
2731
  location: b(n, this.clonePosition())
2728
2732
  },
@@ -2734,25 +2738,25 @@ var An = (
2734
2738
  return s;
2735
2739
  var a = s.val, o = this.clonePosition();
2736
2740
  if (this.bumpIf("</")) {
2737
- if (this.isEOF() || !Fe(this.char()))
2738
- return this.error(p.INVALID_TAG, b(o, this.clonePosition()));
2739
- var l = this.clonePosition(), h = this.parseTagName();
2740
- return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2741
+ if (this.isEOF() || !ke(this.char()))
2742
+ return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
2743
+ var l = this.clonePosition(), u = this.parseTagName();
2744
+ return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2741
2745
  val: {
2742
- type: x.tag,
2746
+ type: y.tag,
2743
2747
  value: i,
2744
2748
  children: a,
2745
2749
  location: b(n, this.clonePosition())
2746
2750
  },
2747
2751
  err: null
2748
- } : this.error(p.INVALID_TAG, b(o, this.clonePosition())));
2752
+ } : this.error(d.INVALID_TAG, b(o, this.clonePosition())));
2749
2753
  } else
2750
- return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
2754
+ return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
2751
2755
  } else
2752
- return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
2756
+ return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
2753
2757
  }, e.prototype.parseTagName = function() {
2754
2758
  var t = this.offset();
2755
- for (this.bump(); !this.isEOF() && On(this.char()); )
2759
+ for (this.bump(); !this.isEOF() && Cn(this.char()); )
2756
2760
  this.bump();
2757
2761
  return this.message.slice(t, this.offset());
2758
2762
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2776,12 +2780,12 @@ var An = (
2776
2780
  }
2777
2781
  var l = b(n, this.clonePosition());
2778
2782
  return {
2779
- val: { type: x.literal, value: i, location: l },
2783
+ val: { type: y.literal, value: i, location: l },
2780
2784
  err: null
2781
2785
  };
2782
2786
  }, e.prototype.tryParseLeftAngleBracket = function() {
2783
2787
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2784
- !Cn(this.peek() || 0)) ? (this.bump(), "<") : null;
2788
+ !Pn(this.peek() || 0)) ? (this.bump(), "<") : null;
2785
2789
  }, e.prototype.tryParseQuote = function(t) {
2786
2790
  if (this.isEOF() || this.char() !== 39)
2787
2791
  return null;
@@ -2815,28 +2819,28 @@ var An = (
2815
2819
  r.push(n);
2816
2820
  this.bump();
2817
2821
  }
2818
- return De.apply(void 0, r);
2822
+ return Fe.apply(void 0, r);
2819
2823
  }, e.prototype.tryParseUnquoted = function(t, r) {
2820
2824
  if (this.isEOF())
2821
2825
  return null;
2822
2826
  var n = this.char();
2823
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
2827
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
2824
2828
  }, e.prototype.parseArgument = function(t, r) {
2825
2829
  var n = this.clonePosition();
2826
2830
  if (this.bump(), this.bumpSpace(), this.isEOF())
2827
- return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2831
+ return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2828
2832
  if (this.char() === 125)
2829
- return this.bump(), this.error(p.EMPTY_ARGUMENT, b(n, this.clonePosition()));
2833
+ return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
2830
2834
  var i = this.parseIdentifierIfPossible().value;
2831
2835
  if (!i)
2832
- return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2836
+ return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2833
2837
  if (this.bumpSpace(), this.isEOF())
2834
- return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2838
+ return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2835
2839
  switch (this.char()) {
2836
2840
  case 125:
2837
2841
  return this.bump(), {
2838
2842
  val: {
2839
- type: x.argument,
2843
+ type: y.argument,
2840
2844
  // value does not include the opening and closing braces.
2841
2845
  value: i,
2842
2846
  location: b(n, this.clonePosition())
@@ -2844,12 +2848,12 @@ var An = (
2844
2848
  err: null
2845
2849
  };
2846
2850
  case 44:
2847
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2851
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2848
2852
  default:
2849
- return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2853
+ return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2850
2854
  }
2851
2855
  }, e.prototype.parseIdentifierIfPossible = function() {
2852
- var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
2856
+ var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
2853
2857
  this.bumpTo(i);
2854
2858
  var s = this.clonePosition(), a = b(t, s);
2855
2859
  return { value: n, location: a };
@@ -2857,58 +2861,58 @@ var An = (
2857
2861
  var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2858
2862
  switch (o) {
2859
2863
  case "":
2860
- return this.error(p.EXPECT_ARGUMENT_TYPE, b(a, l));
2864
+ return this.error(d.EXPECT_ARGUMENT_TYPE, b(a, l));
2861
2865
  case "number":
2862
2866
  case "date":
2863
2867
  case "time": {
2864
2868
  this.bumpSpace();
2865
- var h = null;
2869
+ var u = null;
2866
2870
  if (this.bumpIf(",")) {
2867
2871
  this.bumpSpace();
2868
- var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2872
+ var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2869
2873
  if (f.err)
2870
2874
  return f;
2871
- var c = Sn(f.val);
2875
+ var c = An(f.val);
2872
2876
  if (c.length === 0)
2873
- return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2874
- var d = b(u, this.clonePosition());
2875
- h = { style: c, styleLocation: d };
2877
+ return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2878
+ var p = b(h, this.clonePosition());
2879
+ u = { style: c, styleLocation: p };
2876
2880
  }
2877
2881
  var m = this.tryParseArgumentClose(i);
2878
2882
  if (m.err)
2879
2883
  return m;
2880
2884
  var g = b(i, this.clonePosition());
2881
- if (h && ut(h == null ? void 0 : h.style, "::", 0)) {
2882
- var v = wn(h.style.slice(2));
2885
+ if (u && ht(u == null ? void 0 : u.style, "::", 0)) {
2886
+ var v = Sn(u.style.slice(2));
2883
2887
  if (o === "number") {
2884
- var f = this.parseNumberSkeletonFromString(v, h.styleLocation);
2888
+ var f = this.parseNumberSkeletonFromString(v, u.styleLocation);
2885
2889
  return f.err ? f : {
2886
- val: { type: x.number, value: n, location: g, style: f.val },
2890
+ val: { type: y.number, value: n, location: g, style: f.val },
2887
2891
  err: null
2888
2892
  };
2889
2893
  } else {
2890
2894
  if (v.length === 0)
2891
- return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
2892
- var N = v;
2893
- this.locale && (N = mn(v, this.locale));
2895
+ return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
2896
+ var I = v;
2897
+ this.locale && (I = pn(v, this.locale));
2894
2898
  var c = {
2895
- type: V.dateTime,
2896
- pattern: N,
2897
- location: h.styleLocation,
2898
- parsedOptions: this.shouldParseSkeletons ? on(N) : {}
2899
- }, C = o === "date" ? x.date : x.time;
2899
+ type: X.dateTime,
2900
+ pattern: I,
2901
+ location: u.styleLocation,
2902
+ parsedOptions: this.shouldParseSkeletons ? an(I) : {}
2903
+ }, P = o === "date" ? y.date : y.time;
2900
2904
  return {
2901
- val: { type: C, value: n, location: g, style: c },
2905
+ val: { type: P, value: n, location: g, style: c },
2902
2906
  err: null
2903
2907
  };
2904
2908
  }
2905
2909
  }
2906
2910
  return {
2907
2911
  val: {
2908
- type: o === "number" ? x.number : o === "date" ? x.date : x.time,
2912
+ type: o === "number" ? y.number : o === "date" ? y.date : y.time,
2909
2913
  value: n,
2910
2914
  location: g,
2911
- style: (s = h == null ? void 0 : h.style) !== null && s !== void 0 ? s : null
2915
+ style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
2912
2916
  },
2913
2917
  err: null
2914
2918
  };
@@ -2918,50 +2922,50 @@ var An = (
2918
2922
  case "select": {
2919
2923
  var H = this.clonePosition();
2920
2924
  if (this.bumpSpace(), !this.bumpIf(","))
2921
- return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
2925
+ return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, pe({}, H)));
2922
2926
  this.bumpSpace();
2923
- var I = this.parseIdentifierIfPossible(), w = 0;
2924
- if (o !== "select" && I.value === "offset") {
2927
+ var M = this.parseIdentifierIfPossible(), S = 0;
2928
+ if (o !== "select" && M.value === "offset") {
2925
2929
  if (!this.bumpIf(":"))
2926
- return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
2930
+ return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
2927
2931
  this.bumpSpace();
2928
- var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2932
+ var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2929
2933
  if (f.err)
2930
2934
  return f;
2931
- this.bumpSpace(), I = this.parseIdentifierIfPossible(), w = f.val;
2935
+ this.bumpSpace(), M = this.parseIdentifierIfPossible(), S = f.val;
2932
2936
  }
2933
- var R = this.tryParsePluralOrSelectOptions(t, o, r, I);
2934
- if (R.err)
2935
- return R;
2937
+ var U = this.tryParsePluralOrSelectOptions(t, o, r, M);
2938
+ if (U.err)
2939
+ return U;
2936
2940
  var m = this.tryParseArgumentClose(i);
2937
2941
  if (m.err)
2938
2942
  return m;
2939
- var se = b(i, this.clonePosition());
2943
+ var oe = b(i, this.clonePosition());
2940
2944
  return o === "select" ? {
2941
2945
  val: {
2942
- type: x.select,
2946
+ type: y.select,
2943
2947
  value: n,
2944
- options: lt(R.val),
2945
- location: se
2948
+ options: lt(U.val),
2949
+ location: oe
2946
2950
  },
2947
2951
  err: null
2948
2952
  } : {
2949
2953
  val: {
2950
- type: x.plural,
2954
+ type: y.plural,
2951
2955
  value: n,
2952
- options: lt(R.val),
2953
- offset: w,
2956
+ options: lt(U.val),
2957
+ offset: S,
2954
2958
  pluralType: o === "plural" ? "cardinal" : "ordinal",
2955
- location: se
2959
+ location: oe
2956
2960
  },
2957
2961
  err: null
2958
2962
  };
2959
2963
  }
2960
2964
  default:
2961
- return this.error(p.INVALID_ARGUMENT_TYPE, b(a, l));
2965
+ return this.error(d.INVALID_ARGUMENT_TYPE, b(a, l));
2962
2966
  }
2963
2967
  }, e.prototype.tryParseArgumentClose = function(t) {
2964
- return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2968
+ return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2965
2969
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2966
2970
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2967
2971
  var n = this.char();
@@ -2970,7 +2974,7 @@ var An = (
2970
2974
  this.bump();
2971
2975
  var i = this.clonePosition();
2972
2976
  if (!this.bumpUntil("'"))
2973
- return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
2977
+ return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
2974
2978
  this.bump();
2975
2979
  break;
2976
2980
  }
@@ -3002,50 +3006,50 @@ var An = (
3002
3006
  try {
3003
3007
  n = hn(t);
3004
3008
  } catch (i) {
3005
- return this.error(p.INVALID_NUMBER_SKELETON, r);
3009
+ return this.error(d.INVALID_NUMBER_SKELETON, r);
3006
3010
  }
3007
3011
  return {
3008
3012
  val: {
3009
- type: V.number,
3013
+ type: X.number,
3010
3014
  tokens: n,
3011
3015
  location: r,
3012
- parsedOptions: this.shouldParseSkeletons ? cn(n) : {}
3016
+ parsedOptions: this.shouldParseSkeletons ? mn(n) : {}
3013
3017
  },
3014
3018
  err: null
3015
3019
  };
3016
3020
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3017
- for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), h = i.value, u = i.location; ; ) {
3018
- if (h.length === 0) {
3021
+ for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3022
+ if (u.length === 0) {
3019
3023
  var f = this.clonePosition();
3020
3024
  if (r !== "select" && this.bumpIf("=")) {
3021
- var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
3025
+ var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
3022
3026
  if (c.err)
3023
3027
  return c;
3024
- u = b(f, this.clonePosition()), h = this.message.slice(f.offset, this.offset());
3028
+ h = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3025
3029
  } else
3026
3030
  break;
3027
3031
  }
3028
- if (l.has(h))
3029
- return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
3030
- h === "other" && (a = !0), this.bumpSpace();
3031
- var d = this.clonePosition();
3032
+ if (l.has(u))
3033
+ return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3034
+ u === "other" && (a = !0), this.bumpSpace();
3035
+ var p = this.clonePosition();
3032
3036
  if (!this.bumpIf("{"))
3033
- return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
3037
+ return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
3034
3038
  var m = this.parseMessage(t + 1, r, n);
3035
3039
  if (m.err)
3036
3040
  return m;
3037
- var g = this.tryParseArgumentClose(d);
3041
+ var g = this.tryParseArgumentClose(p);
3038
3042
  if (g.err)
3039
3043
  return g;
3040
3044
  o.push([
3041
- h,
3045
+ u,
3042
3046
  {
3043
3047
  value: m.val,
3044
- location: b(d, this.clonePosition())
3048
+ location: b(p, this.clonePosition())
3045
3049
  }
3046
- ]), l.add(h), this.bumpSpace(), s = this.parseIdentifierIfPossible(), h = s.value, u = s.location;
3050
+ ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
3047
3051
  }
3048
- 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 && !a ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3052
+ 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 && !a ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3049
3053
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3050
3054
  var n = 1, i = this.clonePosition();
3051
3055
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3057,7 +3061,7 @@ var An = (
3057
3061
  break;
3058
3062
  }
3059
3063
  var l = b(i, this.clonePosition());
3060
- return s ? (a *= n, Bn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3064
+ return s ? (a *= n, Tn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3061
3065
  }, e.prototype.offset = function() {
3062
3066
  return this.position.offset;
3063
3067
  }, e.prototype.isEOF = function() {
@@ -3072,7 +3076,7 @@ var An = (
3072
3076
  var t = this.position.offset;
3073
3077
  if (t >= this.message.length)
3074
3078
  throw Error("out of bound");
3075
- var r = zt(this.message, t);
3079
+ var r = Wt(this.message, t);
3076
3080
  if (r === void 0)
3077
3081
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3078
3082
  return r;
@@ -3091,7 +3095,7 @@ var An = (
3091
3095
  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);
3092
3096
  }
3093
3097
  }, e.prototype.bumpIf = function(t) {
3094
- if (ut(this.message, t, this.offset())) {
3098
+ if (ht(this.message, t, this.offset())) {
3095
3099
  for (var r = 0; r < t.length; r++)
3096
3100
  this.bump();
3097
3101
  return !0;
@@ -3123,47 +3127,47 @@ var An = (
3123
3127
  }, e;
3124
3128
  }()
3125
3129
  );
3126
- function Fe(e) {
3130
+ function ke(e) {
3127
3131
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3128
3132
  }
3129
- function Cn(e) {
3130
- return Fe(e) || e === 47;
3133
+ function Pn(e) {
3134
+ return ke(e) || e === 47;
3131
3135
  }
3132
- function On(e) {
3136
+ function Cn(e) {
3133
3137
  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;
3134
3138
  }
3135
3139
  function Zt(e) {
3136
3140
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3137
3141
  }
3138
- function Pn(e) {
3142
+ function Ln(e) {
3139
3143
  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;
3140
3144
  }
3141
- function je(e) {
3145
+ function Ve(e) {
3142
3146
  e.forEach(function(t) {
3143
3147
  if (delete t.location, Ut(t) || Dt(t))
3144
3148
  for (var r in t.options)
3145
- delete t.options[r].location, je(t.options[r].value);
3149
+ delete t.options[r].location, Ve(t.options[r].value);
3146
3150
  else
3147
- Mt(t) && Ft(t.style) || ($t(t) || Rt(t)) && Re(t.style) ? delete t.style.location : Gt(t) && je(t.children);
3151
+ Mt(t) && Ft(t.style) || ($t(t) || Rt(t)) && De(t.style) ? delete t.style.location : Gt(t) && Ve(t.children);
3148
3152
  });
3149
3153
  }
3150
- function Ln(e, t) {
3151
- t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3152
- var r = new An(e, t).parse();
3154
+ function Nn(e, t) {
3155
+ t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3156
+ var r = new On(e, t).parse();
3153
3157
  if (r.err) {
3154
- var n = SyntaxError(p[r.err.kind]);
3158
+ var n = SyntaxError(d[r.err.kind]);
3155
3159
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3156
3160
  }
3157
- return t != null && t.captureLocation || je(r.val), r.val;
3161
+ return t != null && t.captureLocation || Ve(r.val), r.val;
3158
3162
  }
3159
- var X;
3163
+ var W;
3160
3164
  (function(e) {
3161
3165
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3162
- })(X || (X = {}));
3163
- var _e = (
3166
+ })(W || (W = {}));
3167
+ var Ee = (
3164
3168
  /** @class */
3165
3169
  function(e) {
3166
- ge(t, e);
3170
+ ye(t, e);
3167
3171
  function t(r, n, i) {
3168
3172
  var s = e.call(this, r) || this;
3169
3173
  return s.code = n, s.originalMessage = i, s;
@@ -3175,152 +3179,152 @@ var _e = (
3175
3179
  ), ct = (
3176
3180
  /** @class */
3177
3181
  function(e) {
3178
- ge(t, e);
3182
+ ye(t, e);
3179
3183
  function t(r, n, i, s) {
3180
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, s) || this;
3184
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, s) || this;
3181
3185
  }
3182
3186
  return t;
3183
- }(_e)
3184
- ), Nn = (
3187
+ }(Ee)
3188
+ ), In = (
3185
3189
  /** @class */
3186
3190
  function(e) {
3187
- ge(t, e);
3191
+ ye(t, e);
3188
3192
  function t(r, n, i) {
3189
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
3193
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
3190
3194
  }
3191
3195
  return t;
3192
- }(_e)
3193
- ), In = (
3196
+ }(Ee)
3197
+ ), Mn = (
3194
3198
  /** @class */
3195
3199
  function(e) {
3196
- ge(t, e);
3200
+ ye(t, e);
3197
3201
  function t(r, n) {
3198
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
3202
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
3199
3203
  }
3200
3204
  return t;
3201
- }(_e)
3202
- ), E;
3205
+ }(Ee)
3206
+ ), x;
3203
3207
  (function(e) {
3204
3208
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3205
- })(E || (E = {}));
3206
- function Mn(e) {
3209
+ })(x || (x = {}));
3210
+ function $n(e) {
3207
3211
  return e.length < 2 ? e : e.reduce(function(t, r) {
3208
3212
  var n = t[t.length - 1];
3209
- return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
3213
+ return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
3210
3214
  }, []);
3211
3215
  }
3212
- function $n(e) {
3216
+ function Rn(e) {
3213
3217
  return typeof e == "function";
3214
3218
  }
3215
- function le(e, t, r, n, i, s, a) {
3219
+ function fe(e, t, r, n, i, s, a) {
3216
3220
  if (e.length === 1 && st(e[0]))
3217
3221
  return [
3218
3222
  {
3219
- type: E.literal,
3223
+ type: x.literal,
3220
3224
  value: e[0].value
3221
3225
  }
3222
3226
  ];
3223
- for (var o = [], l = 0, h = e; l < h.length; l++) {
3224
- var u = h[l];
3225
- if (st(u)) {
3227
+ for (var o = [], l = 0, u = e; l < u.length; l++) {
3228
+ var h = u[l];
3229
+ if (st(h)) {
3226
3230
  o.push({
3227
- type: E.literal,
3228
- value: u.value
3231
+ type: x.literal,
3232
+ value: h.value
3229
3233
  });
3230
3234
  continue;
3231
3235
  }
3232
- if (nn(u)) {
3236
+ if (sn(h)) {
3233
3237
  typeof s == "number" && o.push({
3234
- type: E.literal,
3238
+ type: x.literal,
3235
3239
  value: r.getNumberFormat(t).format(s)
3236
3240
  });
3237
3241
  continue;
3238
3242
  }
3239
- var f = u.value;
3243
+ var f = h.value;
3240
3244
  if (!(i && f in i))
3241
- throw new In(f, a);
3245
+ throw new Mn(f, a);
3242
3246
  var c = i[f];
3243
- if (rn(u)) {
3247
+ if (nn(h)) {
3244
3248
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
3245
- type: typeof c == "string" ? E.literal : E.object,
3249
+ type: typeof c == "string" ? x.literal : x.object,
3246
3250
  value: c
3247
3251
  });
3248
3252
  continue;
3249
3253
  }
3250
- if ($t(u)) {
3251
- var d = typeof u.style == "string" ? n.date[u.style] : Re(u.style) ? u.style.parsedOptions : void 0;
3254
+ if ($t(h)) {
3255
+ var p = typeof h.style == "string" ? n.date[h.style] : De(h.style) ? h.style.parsedOptions : void 0;
3252
3256
  o.push({
3253
- type: E.literal,
3254
- value: r.getDateTimeFormat(t, d).format(c)
3257
+ type: x.literal,
3258
+ value: r.getDateTimeFormat(t, p).format(c)
3255
3259
  });
3256
3260
  continue;
3257
3261
  }
3258
- if (Rt(u)) {
3259
- var d = typeof u.style == "string" ? n.time[u.style] : Re(u.style) ? u.style.parsedOptions : n.time.medium;
3262
+ if (Rt(h)) {
3263
+ var p = typeof h.style == "string" ? n.time[h.style] : De(h.style) ? h.style.parsedOptions : n.time.medium;
3260
3264
  o.push({
3261
- type: E.literal,
3262
- value: r.getDateTimeFormat(t, d).format(c)
3265
+ type: x.literal,
3266
+ value: r.getDateTimeFormat(t, p).format(c)
3263
3267
  });
3264
3268
  continue;
3265
3269
  }
3266
- if (Mt(u)) {
3267
- var d = typeof u.style == "string" ? n.number[u.style] : Ft(u.style) ? u.style.parsedOptions : void 0;
3268
- d && d.scale && (c = c * (d.scale || 1)), o.push({
3269
- type: E.literal,
3270
- value: r.getNumberFormat(t, d).format(c)
3270
+ if (Mt(h)) {
3271
+ var p = typeof h.style == "string" ? n.number[h.style] : Ft(h.style) ? h.style.parsedOptions : void 0;
3272
+ p && p.scale && (c = c * (p.scale || 1)), o.push({
3273
+ type: x.literal,
3274
+ value: r.getNumberFormat(t, p).format(c)
3271
3275
  });
3272
3276
  continue;
3273
3277
  }
3274
- if (Gt(u)) {
3275
- var m = u.children, g = u.value, v = i[g];
3276
- if (!$n(v))
3277
- throw new Nn(g, "function", a);
3278
- var N = le(m, t, r, n, i, s), C = v(N.map(function(w) {
3279
- return w.value;
3278
+ if (Gt(h)) {
3279
+ var m = h.children, g = h.value, v = i[g];
3280
+ if (!Rn(v))
3281
+ throw new In(g, "function", a);
3282
+ var I = fe(m, t, r, n, i, s), P = v(I.map(function(S) {
3283
+ return S.value;
3280
3284
  }));
3281
- Array.isArray(C) || (C = [C]), o.push.apply(o, C.map(function(w) {
3285
+ Array.isArray(P) || (P = [P]), o.push.apply(o, P.map(function(S) {
3282
3286
  return {
3283
- type: typeof w == "string" ? E.literal : E.object,
3284
- value: w
3287
+ type: typeof S == "string" ? x.literal : x.object,
3288
+ value: S
3285
3289
  };
3286
3290
  }));
3287
3291
  }
3288
- if (Ut(u)) {
3289
- var H = u.options[c] || u.options.other;
3292
+ if (Ut(h)) {
3293
+ var H = h.options[c] || h.options.other;
3290
3294
  if (!H)
3291
- throw new ct(u.value, c, Object.keys(u.options), a);
3292
- o.push.apply(o, le(H.value, t, r, n, i));
3295
+ throw new ct(h.value, c, Object.keys(h.options), a);
3296
+ o.push.apply(o, fe(H.value, t, r, n, i));
3293
3297
  continue;
3294
3298
  }
3295
- if (Dt(u)) {
3296
- var H = u.options["=".concat(c)];
3299
+ if (Dt(h)) {
3300
+ var H = h.options["=".concat(c)];
3297
3301
  if (!H) {
3298
3302
  if (!Intl.PluralRules)
3299
- throw new _e(`Intl.PluralRules is not available in this environment.
3303
+ throw new Ee(`Intl.PluralRules is not available in this environment.
3300
3304
  Try polyfilling it using "@formatjs/intl-pluralrules"
3301
- `, X.MISSING_INTL_API, a);
3302
- var I = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
3303
- H = u.options[I] || u.options.other;
3305
+ `, W.MISSING_INTL_API, a);
3306
+ var M = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3307
+ H = h.options[M] || h.options.other;
3304
3308
  }
3305
3309
  if (!H)
3306
- throw new ct(u.value, c, Object.keys(u.options), a);
3307
- o.push.apply(o, le(H.value, t, r, n, i, c - (u.offset || 0)));
3310
+ throw new ct(h.value, c, Object.keys(h.options), a);
3311
+ o.push.apply(o, fe(H.value, t, r, n, i, c - (h.offset || 0)));
3308
3312
  continue;
3309
3313
  }
3310
3314
  }
3311
- return Mn(o);
3315
+ return $n(o);
3312
3316
  }
3313
- function Rn(e, t) {
3314
- return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3315
- return r[n] = y(y({}, e[n]), t[n] || {}), r;
3317
+ function Un(e, t) {
3318
+ return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3319
+ return r[n] = w(w({}, e[n]), t[n] || {}), r;
3316
3320
  }, {})) : e;
3317
3321
  }
3318
- function Un(e, t) {
3322
+ function Dn(e, t) {
3319
3323
  return t ? Object.keys(e).reduce(function(r, n) {
3320
- return r[n] = Rn(e[n], t[n]), r;
3321
- }, y({}, e)) : e;
3324
+ return r[n] = Un(e[n], t[n]), r;
3325
+ }, w({}, e)) : e;
3322
3326
  }
3323
- function Pe(e) {
3327
+ function Ne(e) {
3324
3328
  return {
3325
3329
  create: function() {
3326
3330
  return {
@@ -3334,34 +3338,34 @@ function Pe(e) {
3334
3338
  }
3335
3339
  };
3336
3340
  }
3337
- function Dn(e) {
3341
+ function Gn(e) {
3338
3342
  return e === void 0 && (e = {
3339
3343
  number: {},
3340
3344
  dateTime: {},
3341
3345
  pluralRules: {}
3342
3346
  }), {
3343
- getNumberFormat: Ae(function() {
3347
+ getNumberFormat: Pe(function() {
3344
3348
  for (var t, r = [], n = 0; n < arguments.length; n++)
3345
3349
  r[n] = arguments[n];
3346
- return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
3350
+ return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
3347
3351
  }, {
3348
- cache: Pe(e.number),
3352
+ cache: Ne(e.number),
3349
3353
  strategy: Ce.variadic
3350
3354
  }),
3351
- getDateTimeFormat: Ae(function() {
3355
+ getDateTimeFormat: Pe(function() {
3352
3356
  for (var t, r = [], n = 0; n < arguments.length; n++)
3353
3357
  r[n] = arguments[n];
3354
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
3358
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
3355
3359
  }, {
3356
- cache: Pe(e.dateTime),
3360
+ cache: Ne(e.dateTime),
3357
3361
  strategy: Ce.variadic
3358
3362
  }),
3359
- getPluralRules: Ae(function() {
3363
+ getPluralRules: Pe(function() {
3360
3364
  for (var t, r = [], n = 0; n < arguments.length; n++)
3361
3365
  r[n] = arguments[n];
3362
- return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
3366
+ return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
3363
3367
  }, {
3364
- cache: Pe(e.pluralRules),
3368
+ cache: Ne(e.pluralRules),
3365
3369
  strategy: Ce.variadic
3366
3370
  })
3367
3371
  };
@@ -3377,15 +3381,15 @@ var Qt = (
3377
3381
  dateTime: {},
3378
3382
  pluralRules: {}
3379
3383
  }, this.format = function(l) {
3380
- var h = s.formatToParts(l);
3381
- if (h.length === 1)
3382
- return h[0].value;
3383
- var u = h.reduce(function(f, c) {
3384
- return !f.length || c.type !== E.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3384
+ var u = s.formatToParts(l);
3385
+ if (u.length === 1)
3386
+ return u[0].value;
3387
+ var h = u.reduce(function(f, c) {
3388
+ return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3385
3389
  }, []);
3386
- return u.length <= 1 ? u[0] || "" : u;
3390
+ return h.length <= 1 ? h[0] || "" : h;
3387
3391
  }, this.formatToParts = function(l) {
3388
- return le(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3392
+ return fe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3389
3393
  }, this.resolvedOptions = function() {
3390
3394
  var l;
3391
3395
  return {
@@ -3399,12 +3403,12 @@ var Qt = (
3399
3403
  var a = i || {};
3400
3404
  a.formatters;
3401
3405
  var o = Qr(a, ["formatters"]);
3402
- this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
3406
+ this.ast = e.__parse(t, w(w({}, o), { locale: this.resolvedLocale }));
3403
3407
  } else
3404
3408
  this.ast = t;
3405
3409
  if (!Array.isArray(this.ast))
3406
3410
  throw new TypeError("A message must be provided as a String or AST.");
3407
- this.formats = Un(e.formats, n), this.formatters = i && i.formatters || Dn(this.formatterCache);
3411
+ this.formats = Dn(e.formats, n), this.formatters = i && i.formatters || Gn(this.formatterCache);
3408
3412
  }
3409
3413
  return Object.defineProperty(e, "defaultLocale", {
3410
3414
  get: function() {
@@ -3417,7 +3421,7 @@ var Qt = (
3417
3421
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3418
3422
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3419
3423
  }
3420
- }, e.__parse = Ln, e.formats = {
3424
+ }, e.__parse = Nn, e.formats = {
3421
3425
  number: {
3422
3426
  integer: {
3423
3427
  maximumFractionDigits: 0
@@ -3478,7 +3482,7 @@ var Qt = (
3478
3482
  }, e;
3479
3483
  }()
3480
3484
  );
3481
- function Gn(e, t) {
3485
+ function Fn(e, t) {
3482
3486
  if (t == null)
3483
3487
  return;
3484
3488
  if (t in e)
@@ -3499,36 +3503,36 @@ function Gn(e, t) {
3499
3503
  n = void 0;
3500
3504
  return n;
3501
3505
  }
3502
- const O = {}, Fn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), Jt = (e, t) => {
3506
+ const C = {}, jn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Jt = (e, t) => {
3503
3507
  if (t == null)
3504
3508
  return;
3505
- if (t in O && e in O[t])
3506
- return O[t][e];
3507
- const r = ie(t);
3509
+ if (t in C && e in C[t])
3510
+ return C[t][e];
3511
+ const r = se(t);
3508
3512
  for (let n = 0; n < r.length; n++) {
3509
- const i = r[n], s = kn(i, e);
3513
+ const i = r[n], s = Vn(i, e);
3510
3514
  if (s)
3511
- return Fn(e, t, s);
3515
+ return jn(e, t, s);
3512
3516
  }
3513
3517
  };
3514
3518
  let Qe;
3515
- const ne = be({});
3516
- function jn(e) {
3519
+ const ie = _e({});
3520
+ function kn(e) {
3517
3521
  return Qe[e] || null;
3518
3522
  }
3519
3523
  function qt(e) {
3520
3524
  return e in Qe;
3521
3525
  }
3522
- function kn(e, t) {
3526
+ function Vn(e, t) {
3523
3527
  if (!qt(e))
3524
3528
  return null;
3525
- const r = jn(e);
3526
- return Gn(r, t);
3529
+ const r = kn(e);
3530
+ return Fn(r, t);
3527
3531
  }
3528
- function Vn(e) {
3532
+ function Xn(e) {
3529
3533
  if (e == null)
3530
3534
  return;
3531
- const t = ie(e);
3535
+ const t = se(e);
3532
3536
  for (let r = 0; r < t.length; r++) {
3533
3537
  const n = t[r];
3534
3538
  if (qt(n))
@@ -3536,64 +3540,64 @@ function Vn(e) {
3536
3540
  }
3537
3541
  }
3538
3542
  function Yt(e, ...t) {
3539
- delete O[e], ne.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
3543
+ delete C[e], ie.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
3540
3544
  }
3541
- Z(
3542
- [ne],
3545
+ Q(
3546
+ [ie],
3543
3547
  ([e]) => Object.keys(e)
3544
3548
  );
3545
- ne.subscribe((e) => Qe = e);
3546
- const fe = {};
3547
- function Xn(e, t) {
3548
- fe[e].delete(t), fe[e].size === 0 && delete fe[e];
3549
+ ie.subscribe((e) => Qe = e);
3550
+ const ce = {};
3551
+ function Wn(e, t) {
3552
+ ce[e].delete(t), ce[e].size === 0 && delete ce[e];
3549
3553
  }
3550
3554
  function Kt(e) {
3551
- return fe[e];
3555
+ return ce[e];
3552
3556
  }
3553
3557
  function zn(e) {
3554
- return ie(e).map((t) => {
3558
+ return se(e).map((t) => {
3555
3559
  const r = Kt(t);
3556
3560
  return [t, r ? [...r] : []];
3557
3561
  }).filter(([, t]) => t.length > 0);
3558
3562
  }
3559
- function me(e) {
3560
- return e == null ? !1 : ie(e).some(
3563
+ function de(e) {
3564
+ return e == null ? !1 : se(e).some(
3561
3565
  (t) => {
3562
3566
  var r;
3563
3567
  return (r = Kt(t)) == null ? void 0 : r.size;
3564
3568
  }
3565
3569
  );
3566
3570
  }
3567
- function Wn(e, t) {
3571
+ function Zn(e, t) {
3568
3572
  return Promise.all(
3569
- t.map((n) => (Xn(e, n), n().then((i) => i.default || i)))
3573
+ t.map((n) => (Wn(e, n), n().then((i) => i.default || i)))
3570
3574
  ).then((n) => Yt(e, ...n));
3571
3575
  }
3572
- const J = {};
3576
+ const q = {};
3573
3577
  function er(e) {
3574
- if (!me(e))
3575
- return e in J ? J[e] : Promise.resolve();
3578
+ if (!de(e))
3579
+ return e in q ? q[e] : Promise.resolve();
3576
3580
  const t = zn(e);
3577
- return J[e] = Promise.all(
3581
+ return q[e] = Promise.all(
3578
3582
  t.map(
3579
- ([r, n]) => Wn(r, n)
3583
+ ([r, n]) => Zn(r, n)
3580
3584
  )
3581
3585
  ).then(() => {
3582
- if (me(e))
3586
+ if (de(e))
3583
3587
  return er(e);
3584
- delete J[e];
3585
- }), J[e];
3588
+ delete q[e];
3589
+ }), q[e];
3586
3590
  }
3587
- var mt = Object.getOwnPropertySymbols, Zn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, Jn = (e, t) => {
3591
+ var mt = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, qn = (e, t) => {
3588
3592
  var r = {};
3589
3593
  for (var n in e)
3590
- Zn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3594
+ Qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3591
3595
  if (e != null && mt)
3592
3596
  for (var n of mt(e))
3593
- t.indexOf(n) < 0 && Qn.call(e, n) && (r[n] = e[n]);
3597
+ t.indexOf(n) < 0 && Jn.call(e, n) && (r[n] = e[n]);
3594
3598
  return r;
3595
3599
  };
3596
- const qn = {
3600
+ const Yn = {
3597
3601
  number: {
3598
3602
  scientific: { notation: "scientific" },
3599
3603
  engineering: { notation: "engineering" },
@@ -3623,28 +3627,28 @@ const qn = {
3623
3627
  }
3624
3628
  }
3625
3629
  };
3626
- function Yn({ locale: e, id: t }) {
3630
+ function Kn({ locale: e, id: t }) {
3627
3631
  console.warn(
3628
- `[svelte-i18n] The message "${t}" was not found in "${ie(
3632
+ `[svelte-i18n] The message "${t}" was not found in "${se(
3629
3633
  e
3630
- ).join('", "')}".${me(L()) ? `
3634
+ ).join('", "')}".${de(N()) ? `
3631
3635
 
3632
3636
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3633
3637
  );
3634
3638
  }
3635
- const Kn = {
3639
+ const ei = {
3636
3640
  fallbackLocale: null,
3637
3641
  loadingDelay: 200,
3638
- formats: qn,
3642
+ formats: Yn,
3639
3643
  warnOnMissingMessages: !0,
3640
3644
  handleMissingMessage: void 0,
3641
3645
  ignoreTag: !0
3642
- }, q = Kn;
3646
+ }, Y = ei;
3643
3647
  function z() {
3644
- return q;
3648
+ return Y;
3645
3649
  }
3646
- function ei(e) {
3647
- const t = e, { formats: r } = t, n = Jn(t, ["formats"]);
3650
+ function ti(e) {
3651
+ const t = e, { formats: r } = t, n = qn(t, ["formats"]);
3648
3652
  let i = e.fallbackLocale;
3649
3653
  if (e.initialLocale)
3650
3654
  try {
@@ -3654,152 +3658,152 @@ function ei(e) {
3654
3658
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3655
3659
  );
3656
3660
  }
3657
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Yn : console.warn(
3661
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Kn : console.warn(
3658
3662
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3659
- )), Object.assign(q, n, { initialLocale: i }), r && ("number" in r && Object.assign(q.formats.number, r.number), "date" in r && Object.assign(q.formats.date, r.date), "time" in r && Object.assign(q.formats.time, r.time)), $.set(i);
3663
+ )), Object.assign(Y, n, { initialLocale: i }), r && ("number" in r && Object.assign(Y.formats.number, r.number), "date" in r && Object.assign(Y.formats.date, r.date), "time" in r && Object.assign(Y.formats.time, r.time)), R.set(i);
3660
3664
  }
3661
- const Le = be(!1);
3662
- var ti = Object.defineProperty, ri = Object.defineProperties, ni = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, ii = Object.prototype.hasOwnProperty, si = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, oi = (e, t) => {
3665
+ const Ie = _e(!1);
3666
+ var ri = Object.defineProperty, ni = Object.defineProperties, ii = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, si = Object.prototype.hasOwnProperty, oi = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ai = (e, t) => {
3663
3667
  for (var r in t || (t = {}))
3664
- ii.call(t, r) && pt(e, r, t[r]);
3665
- if (dt)
3666
- for (var r of dt(t))
3667
- si.call(t, r) && pt(e, r, t[r]);
3668
+ si.call(t, r) && dt(e, r, t[r]);
3669
+ if (pt)
3670
+ for (var r of pt(t))
3671
+ oi.call(t, r) && dt(e, r, t[r]);
3668
3672
  return e;
3669
- }, ai = (e, t) => ri(e, ni(t));
3670
- let ke;
3671
- const de = be(null);
3673
+ }, ui = (e, t) => ni(e, ii(t));
3674
+ let Xe;
3675
+ const be = _e(null);
3672
3676
  function bt(e) {
3673
3677
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3674
3678
  }
3675
- function ie(e, t = z().fallbackLocale) {
3679
+ function se(e, t = z().fallbackLocale) {
3676
3680
  const r = bt(e);
3677
3681
  return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
3678
3682
  }
3679
- function L() {
3680
- return ke != null ? ke : void 0;
3683
+ function N() {
3684
+ return Xe != null ? Xe : void 0;
3681
3685
  }
3682
- de.subscribe((e) => {
3683
- ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3686
+ be.subscribe((e) => {
3687
+ Xe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3684
3688
  });
3685
3689
  const hi = (e) => {
3686
- if (e && Vn(e) && me(e)) {
3690
+ if (e && Xn(e) && de(e)) {
3687
3691
  const { loadingDelay: t } = z();
3688
3692
  let r;
3689
- return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
3690
- () => Le.set(!0),
3693
+ return typeof window != "undefined" && N() != null && t ? r = window.setTimeout(
3694
+ () => Ie.set(!0),
3691
3695
  t
3692
- ) : Le.set(!0), er(e).then(() => {
3693
- de.set(e);
3696
+ ) : Ie.set(!0), er(e).then(() => {
3697
+ be.set(e);
3694
3698
  }).finally(() => {
3695
- clearTimeout(r), Le.set(!1);
3699
+ clearTimeout(r), Ie.set(!1);
3696
3700
  });
3697
3701
  }
3698
- return de.set(e);
3699
- }, $ = ai(oi({}, de), {
3702
+ return be.set(e);
3703
+ }, R = ui(ai({}, be), {
3700
3704
  set: hi
3701
- }), ye = (e) => {
3705
+ }), xe = (e) => {
3702
3706
  const t = /* @__PURE__ */ Object.create(null);
3703
3707
  return (n) => {
3704
3708
  const i = JSON.stringify(n);
3705
3709
  return i in t ? t[i] : t[i] = e(n);
3706
3710
  };
3707
3711
  };
3708
- var ui = Object.defineProperty, pe = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
3712
+ var li = Object.defineProperty, ge = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
3709
3713
  for (var r in t || (t = {}))
3710
3714
  tr.call(t, r) && gt(e, r, t[r]);
3711
- if (pe)
3712
- for (var r of pe(t))
3715
+ if (ge)
3716
+ for (var r of ge(t))
3713
3717
  rr.call(t, r) && gt(e, r, t[r]);
3714
3718
  return e;
3715
- }, Q = (e, t) => {
3719
+ }, J = (e, t) => {
3716
3720
  var r = {};
3717
3721
  for (var n in e)
3718
3722
  tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3719
- if (e != null && pe)
3720
- for (var n of pe(e))
3723
+ if (e != null && ge)
3724
+ for (var n of ge(e))
3721
3725
  t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
3722
3726
  return r;
3723
3727
  };
3724
- const ee = (e, t) => {
3728
+ const te = (e, t) => {
3725
3729
  const { formats: r } = z();
3726
3730
  if (e in r && t in r[e])
3727
3731
  return r[e][t];
3728
3732
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3729
- }, li = ye(
3733
+ }, fi = xe(
3730
3734
  (e) => {
3731
- var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3735
+ var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
3732
3736
  if (r == null)
3733
3737
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3734
- return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
3738
+ return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
3735
3739
  }
3736
- ), fi = ye(
3740
+ ), ci = xe(
3737
3741
  (e) => {
3738
- var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3742
+ var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
3739
3743
  if (r == null)
3740
3744
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3741
- return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
3745
+ return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
3742
3746
  }
3743
- ), ci = ye(
3747
+ ), mi = xe(
3744
3748
  (e) => {
3745
- var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3749
+ var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
3746
3750
  if (r == null)
3747
3751
  throw new Error(
3748
3752
  '[svelte-i18n] A "locale" must be set to format time values'
3749
3753
  );
3750
- return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
3754
+ return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
3751
3755
  }
3752
- ), mi = (e = {}) => {
3756
+ ), pi = (e = {}) => {
3753
3757
  var t = e, {
3754
- locale: r = L()
3755
- } = t, n = Q(t, [
3758
+ locale: r = N()
3759
+ } = t, n = J(t, [
3756
3760
  "locale"
3757
3761
  ]);
3758
- return li(Je({ locale: r }, n));
3762
+ return fi(Je({ locale: r }, n));
3759
3763
  }, di = (e = {}) => {
3760
3764
  var t = e, {
3761
- locale: r = L()
3762
- } = t, n = Q(t, [
3765
+ locale: r = N()
3766
+ } = t, n = J(t, [
3763
3767
  "locale"
3764
3768
  ]);
3765
- return fi(Je({ locale: r }, n));
3766
- }, pi = (e = {}) => {
3769
+ return ci(Je({ locale: r }, n));
3770
+ }, bi = (e = {}) => {
3767
3771
  var t = e, {
3768
- locale: r = L()
3769
- } = t, n = Q(t, [
3772
+ locale: r = N()
3773
+ } = t, n = J(t, [
3770
3774
  "locale"
3771
3775
  ]);
3772
- return ci(Je({ locale: r }, n));
3773
- }, bi = ye(
3776
+ return mi(Je({ locale: r }, n));
3777
+ }, gi = xe(
3774
3778
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3775
- (e, t = L()) => new Qt(e, t, z().formats, {
3779
+ (e, t = N()) => new Qt(e, t, z().formats, {
3776
3780
  ignoreTag: z().ignoreTag
3777
3781
  })
3778
- ), gi = (e, t = {}) => {
3782
+ ), _i = (e, t = {}) => {
3779
3783
  var r, n, i, s;
3780
3784
  let a = t;
3781
3785
  typeof e == "object" && (a = e, e = a.id);
3782
3786
  const {
3783
3787
  values: o,
3784
- locale: l = L(),
3785
- default: h
3788
+ locale: l = N(),
3789
+ default: u
3786
3790
  } = a;
3787
3791
  if (l == null)
3788
3792
  throw new Error(
3789
3793
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3790
3794
  );
3791
- let u = Jt(e, l);
3792
- if (!u)
3793
- u = (s = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: h })) != null ? i : h) != null ? s : e;
3794
- else if (typeof u != "string")
3795
+ let h = Jt(e, l);
3796
+ if (!h)
3797
+ h = (s = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3798
+ else if (typeof h != "string")
3795
3799
  return console.warn(
3796
- `[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.`
3797
- ), u;
3800
+ `[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.`
3801
+ ), h;
3798
3802
  if (!o)
3799
- return u;
3800
- let f = u;
3803
+ return h;
3804
+ let f = h;
3801
3805
  try {
3802
- f = bi(u, l).format(o);
3806
+ f = gi(h, l).format(o);
3803
3807
  } catch (c) {
3804
3808
  c instanceof Error && console.warn(
3805
3809
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3807,18 +3811,18 @@ const ee = (e, t) => {
3807
3811
  );
3808
3812
  }
3809
3813
  return f;
3810
- }, _i = (e, t) => pi(t).format(e), yi = (e, t) => di(t).format(e), xi = (e, t) => mi(t).format(e), Ei = (e, t = L()) => Jt(e, t), vi = Z([$, ne], () => gi);
3811
- Z([$], () => _i);
3812
- Z([$], () => yi);
3813
- Z([$], () => xi);
3814
- Z([$, ne], () => Ei);
3814
+ }, yi = (e, t) => bi(t).format(e), Ei = (e, t) => di(t).format(e), xi = (e, t) => pi(t).format(e), vi = (e, t = N()) => Jt(e, t), Hi = Q([R, ie], () => _i);
3815
+ Q([R], () => yi);
3816
+ Q([R], () => Ei);
3817
+ Q([R], () => xi);
3818
+ Q([R, ie], () => vi);
3815
3819
  function _t(e, t) {
3816
3820
  Yt(e, t);
3817
3821
  }
3818
- function Hi(e) {
3819
- ei({
3822
+ function Bi(e) {
3823
+ ti({
3820
3824
  fallbackLocale: "en"
3821
- }), $.set(e);
3825
+ }), R.set(e);
3822
3826
  }
3823
3827
  const yt = {
3824
3828
  en: {
@@ -3843,18 +3847,18 @@ const yt = {
3843
3847
  }
3844
3848
  }
3845
3849
  };
3846
- function Bi(e) {
3847
- dr(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}");
3850
+ function Ti(e) {
3851
+ pr(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}");
3848
3852
  }
3849
- const Ti = (e) => ({}), xt = (e) => ({}), wi = (e) => ({}), Et = (e) => ({}), Si = (e) => ({}), vt = (e) => ({});
3853
+ const wi = (e) => ({}), Et = (e) => ({}), Si = (e) => ({}), xt = (e) => ({}), Ai = (e) => ({}), vt = (e) => ({});
3850
3854
  function Ht(e) {
3851
3855
  let t, r, n;
3852
3856
  return {
3853
3857
  c() {
3854
- 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>', re(t, "class", "CashierHeaderLeftButton");
3858
+ 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>', ne(t, "class", "CashierHeaderLeftButton");
3855
3859
  },
3856
3860
  m(i, s) {
3857
- M(i, t, s), r || (n = Ot(
3861
+ $(i, t, s), r || (n = Pt(
3858
3862
  t,
3859
3863
  "click",
3860
3864
  /*back*/
@@ -3863,32 +3867,32 @@ function Ht(e) {
3863
3867
  },
3864
3868
  p: T,
3865
3869
  d(i) {
3866
- i && P(t), r = !1, n();
3870
+ i && L(t), r = !1, n();
3867
3871
  }
3868
3872
  };
3869
3873
  }
3870
- function Ai(e) {
3874
+ function Oi(e) {
3871
3875
  let t, r = (
3872
3876
  /*backButton*/
3873
3877
  e[1] && Ht(e)
3874
3878
  );
3875
3879
  return {
3876
3880
  c() {
3877
- r && r.c(), t = Ct();
3881
+ r && r.c(), t = Ot();
3878
3882
  },
3879
3883
  m(n, i) {
3880
- r && r.m(n, i), M(n, t, i);
3884
+ r && r.m(n, i), $(n, t, i);
3881
3885
  },
3882
3886
  p(n, i) {
3883
3887
  /*backButton*/
3884
3888
  n[1] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3885
3889
  },
3886
3890
  d(n) {
3887
- n && P(t), r && r.d(n);
3891
+ n && L(t), r && r.d(n);
3888
3892
  }
3889
3893
  };
3890
3894
  }
3891
- function Ci(e) {
3895
+ function Pi(e) {
3892
3896
  let t, r = (
3893
3897
  /*$_*/
3894
3898
  e[4](
@@ -3898,10 +3902,10 @@ function Ci(e) {
3898
3902
  ), n;
3899
3903
  return {
3900
3904
  c() {
3901
- t = W("span"), n = Xe(r), re(t, "class", "CashierHeaderTitle");
3905
+ t = Z("span"), n = ze(r), ne(t, "class", "CashierHeaderTitle");
3902
3906
  },
3903
3907
  m(i, s) {
3904
- M(i, t, s), ce(t, n);
3908
+ $(i, t, s), me(t, n);
3905
3909
  },
3906
3910
  p(i, s) {
3907
3911
  s & /*$_, titleText*/
@@ -3912,7 +3916,7 @@ function Ci(e) {
3912
3916
  ) + "") && _r(n, r);
3913
3917
  },
3914
3918
  d(i) {
3915
- i && P(t);
3919
+ i && L(t);
3916
3920
  }
3917
3921
  };
3918
3922
  }
@@ -3920,10 +3924,10 @@ function Bt(e) {
3920
3924
  let t, r, n;
3921
3925
  return {
3922
3926
  c() {
3923
- 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>', re(t, "class", "CashierHeaderRightButton");
3927
+ 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>', ne(t, "class", "CashierHeaderRightButton");
3924
3928
  },
3925
3929
  m(i, s) {
3926
- M(i, t, s), r || (n = Ot(
3930
+ $(i, t, s), r || (n = Pt(
3927
3931
  t,
3928
3932
  "click",
3929
3933
  /*close*/
@@ -3932,211 +3936,211 @@ function Bt(e) {
3932
3936
  },
3933
3937
  p: T,
3934
3938
  d(i) {
3935
- i && P(t), r = !1, n();
3939
+ i && L(t), r = !1, n();
3936
3940
  }
3937
3941
  };
3938
3942
  }
3939
- function Oi(e) {
3943
+ function Ci(e) {
3940
3944
  let t, r = (
3941
3945
  /*closeButton*/
3942
3946
  e[3] && Bt(e)
3943
3947
  );
3944
3948
  return {
3945
3949
  c() {
3946
- r && r.c(), t = Ct();
3950
+ r && r.c(), t = Ot();
3947
3951
  },
3948
3952
  m(n, i) {
3949
- r && r.m(n, i), M(n, t, i);
3953
+ r && r.m(n, i), $(n, t, i);
3950
3954
  },
3951
3955
  p(n, i) {
3952
3956
  /*closeButton*/
3953
3957
  n[3] ? r ? r.p(n, i) : (r = Bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3954
3958
  },
3955
3959
  d(n) {
3956
- n && P(t), r && r.d(n);
3960
+ n && L(t), r && r.d(n);
3957
3961
  }
3958
3962
  };
3959
3963
  }
3960
- function Pi(e) {
3964
+ function Li(e) {
3961
3965
  let t, r, n, i;
3962
3966
  const s = (
3963
3967
  /*#slots*/
3964
3968
  e[15].leftButton
3965
- ), a = Ee(
3969
+ ), a = He(
3966
3970
  s,
3967
3971
  e,
3968
3972
  /*$$scope*/
3969
3973
  e[14],
3970
3974
  vt
3971
- ), o = a || Ai(e), l = (
3975
+ ), o = a || Oi(e), l = (
3972
3976
  /*#slots*/
3973
3977
  e[15].title
3974
- ), h = Ee(
3978
+ ), u = He(
3975
3979
  l,
3976
3980
  e,
3977
3981
  /*$$scope*/
3978
3982
  e[14],
3979
- Et
3980
- ), u = h || Ci(e), f = (
3983
+ xt
3984
+ ), h = u || Pi(e), f = (
3981
3985
  /*#slots*/
3982
3986
  e[15].rightButton
3983
- ), c = Ee(
3987
+ ), c = He(
3984
3988
  f,
3985
3989
  e,
3986
3990
  /*$$scope*/
3987
3991
  e[14],
3988
- xt
3989
- ), d = c || Oi(e);
3992
+ Et
3993
+ ), p = c || Ci(e);
3990
3994
  return {
3991
3995
  c() {
3992
- t = W("div"), o && o.c(), r = rt(), u && u.c(), n = rt(), d && d.c(), re(t, "class", "CashierHeader");
3996
+ t = Z("div"), o && o.c(), r = rt(), h && h.c(), n = rt(), p && p.c(), ne(t, "class", "CashierHeader");
3993
3997
  },
3994
3998
  m(m, g) {
3995
- M(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;
3999
+ $(m, t, g), o && o.m(t, null), me(t, r), h && h.m(t, null), me(t, n), p && p.m(t, null), e[16](t), i = !0;
3996
4000
  },
3997
4001
  p(m, [g]) {
3998
4002
  a ? a.p && (!i || g & /*$$scope*/
3999
- 16384) && He(
4003
+ 16384) && Te(
4000
4004
  a,
4001
4005
  s,
4002
4006
  m,
4003
4007
  /*$$scope*/
4004
4008
  m[14],
4005
- i ? ve(
4009
+ i ? Be(
4006
4010
  s,
4007
4011
  /*$$scope*/
4008
4012
  m[14],
4009
4013
  g,
4010
- Si
4011
- ) : Be(
4014
+ Ai
4015
+ ) : we(
4012
4016
  /*$$scope*/
4013
4017
  m[14]
4014
4018
  ),
4015
4019
  vt
4016
4020
  ) : o && o.p && (!i || g & /*backButton*/
4017
- 2) && o.p(m, i ? g : -1), h ? h.p && (!i || g & /*$$scope*/
4018
- 16384) && He(
4019
- h,
4021
+ 2) && o.p(m, i ? g : -1), u ? u.p && (!i || g & /*$$scope*/
4022
+ 16384) && Te(
4023
+ u,
4020
4024
  l,
4021
4025
  m,
4022
4026
  /*$$scope*/
4023
4027
  m[14],
4024
- i ? ve(
4028
+ i ? Be(
4025
4029
  l,
4026
4030
  /*$$scope*/
4027
4031
  m[14],
4028
4032
  g,
4029
- wi
4030
- ) : Be(
4033
+ Si
4034
+ ) : we(
4031
4035
  /*$$scope*/
4032
4036
  m[14]
4033
4037
  ),
4034
- Et
4035
- ) : u && u.p && (!i || g & /*$_, titleText*/
4036
- 20) && u.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
4037
- 16384) && He(
4038
+ xt
4039
+ ) : h && h.p && (!i || g & /*$_, titleText*/
4040
+ 20) && h.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
4041
+ 16384) && Te(
4038
4042
  c,
4039
4043
  f,
4040
4044
  m,
4041
4045
  /*$$scope*/
4042
4046
  m[14],
4043
- i ? ve(
4047
+ i ? Be(
4044
4048
  f,
4045
4049
  /*$$scope*/
4046
4050
  m[14],
4047
4051
  g,
4048
- Ti
4049
- ) : Be(
4052
+ wi
4053
+ ) : we(
4050
4054
  /*$$scope*/
4051
4055
  m[14]
4052
4056
  ),
4053
- xt
4054
- ) : d && d.p && (!i || g & /*closeButton*/
4055
- 8) && d.p(m, i ? g : -1);
4057
+ Et
4058
+ ) : p && p.p && (!i || g & /*closeButton*/
4059
+ 8) && p.p(m, i ? g : -1);
4056
4060
  },
4057
4061
  i(m) {
4058
- i || (he(o, m), he(u, m), he(d, m), i = !0);
4062
+ i || (he(o, m), he(h, m), he(p, m), i = !0);
4059
4063
  },
4060
4064
  o(m) {
4061
- we(o, m), we(u, m), we(d, m), i = !1;
4065
+ Ae(o, m), Ae(h, m), Ae(p, m), i = !1;
4062
4066
  },
4063
4067
  d(m) {
4064
- m && P(t), o && o.d(m), u && u.d(m), d && d.d(m), e[16](null);
4068
+ m && L(t), o && o.d(m), h && h.d(m), p && p.d(m), e[16](null);
4065
4069
  }
4066
4070
  };
4067
4071
  }
4068
- function Li(e, t, r) {
4072
+ function Ni(e, t, r) {
4069
4073
  let n;
4070
- mr(e, vi, (_) => r(4, n = _));
4071
- let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: h = "" } = t, { title: u = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, d, m = !1, g, v = !1;
4072
- const N = () => {
4074
+ mr(e, Hi, (_) => r(4, n = _));
4075
+ let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, p, m = !1, g, v = !1;
4076
+ const I = () => {
4073
4077
  let _ = l;
4074
- _ && fetch(_).then((S) => S.json()).then((S) => {
4075
- Object.keys(S).forEach((U) => {
4076
- _t(U, S[U]);
4078
+ _ && fetch(_).then((A) => A.json()).then((A) => {
4079
+ Object.keys(A).forEach((D) => {
4080
+ _t(D, A[D]);
4077
4081
  });
4078
- }).catch((S) => {
4079
- console.log(S);
4082
+ }).catch((A) => {
4083
+ console.log(A);
4080
4084
  });
4081
4085
  };
4082
4086
  Object.keys(yt).forEach((_) => {
4083
4087
  _t(_, yt[_]);
4084
4088
  });
4085
- const C = () => {
4089
+ const P = () => {
4086
4090
  let _ = document.createElement("style");
4087
- _.innerHTML = a, d.appendChild(_);
4091
+ _.innerHTML = a, p.appendChild(_);
4088
4092
  }, H = () => {
4089
- let _ = new URL(o), S = document.createElement("style");
4090
- fetch(_.href).then((U) => U.text()).then((U) => {
4091
- S.innerHTML = U, setTimeout(
4093
+ let _ = new URL(o), A = document.createElement("style");
4094
+ fetch(_.href).then((D) => D.text()).then((D) => {
4095
+ A.innerHTML = D, setTimeout(
4092
4096
  () => {
4093
- d.appendChild(S);
4097
+ p.appendChild(A);
4094
4098
  },
4095
4099
  1
4096
4100
  );
4097
4101
  });
4098
- }, I = () => {
4099
- Hi(f);
4100
- }, w = () => {
4102
+ }, M = () => {
4103
+ Bi(f);
4104
+ }, S = () => {
4101
4105
  window.postMessage({ type: "CloseCashier" }, window.location.href);
4102
- }, R = () => {
4106
+ }, U = () => {
4103
4107
  window.postMessage({ type: "BackCashier" }, window.location.href);
4104
- }, se = () => {
4105
- r(1, m = !!h && h !== "false");
4108
+ }, oe = () => {
4109
+ r(1, m = !!u && u !== "false");
4106
4110
  }, nr = () => {
4107
4111
  r(3, v = !!c && c !== "false");
4108
4112
  }, ir = () => {
4109
- r(2, g = u || "header.general");
4113
+ r(2, g = h || "header.general");
4110
4114
  };
4111
4115
  function sr(_) {
4112
- Ne[_ ? "unshift" : "push"](() => {
4113
- d = _, r(0, d);
4116
+ Me[_ ? "unshift" : "push"](() => {
4117
+ p = _, r(0, p);
4114
4118
  });
4115
4119
  }
4116
4120
  return e.$$set = (_) => {
4117
- "clientstyling" in _ && r(7, a = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, h = _.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);
4121
+ "clientstyling" in _ && r(7, a = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, u = _.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);
4118
4122
  }, e.$$.update = () => {
4119
4123
  e.$$.dirty & /*lang*/
4120
- 4096 && f && I(), e.$$.dirty & /*lang, title*/
4121
- 6144 && f && u && ir(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4122
- 129 && a && d && C(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4123
- 257 && o && d && H(), e.$$.dirty & /*lang, translationurl*/
4124
- 4608 && f && l && N(), e.$$.dirty & /*showbackbutton*/
4125
- 1024 && h && se(), e.$$.dirty & /*showclosebutton*/
4124
+ 4096 && f && M(), e.$$.dirty & /*lang, title*/
4125
+ 6144 && f && h && ir(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4126
+ 129 && a && p && P(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4127
+ 257 && o && p && H(), e.$$.dirty & /*lang, translationurl*/
4128
+ 4608 && f && l && I(), e.$$.dirty & /*showbackbutton*/
4129
+ 1024 && u && oe(), e.$$.dirty & /*showclosebutton*/
4126
4130
  8192 && c && nr();
4127
4131
  }, [
4128
- d,
4132
+ p,
4129
4133
  m,
4130
4134
  g,
4131
4135
  v,
4132
4136
  n,
4133
- w,
4134
- R,
4137
+ S,
4138
+ U,
4135
4139
  a,
4136
4140
  o,
4137
4141
  l,
4138
- h,
4139
4142
  u,
4143
+ h,
4140
4144
  f,
4141
4145
  c,
4142
4146
  s,
@@ -4144,13 +4148,13 @@ function Li(e, t, r) {
4144
4148
  sr
4145
4149
  ];
4146
4150
  }
4147
- class Ni extends Or {
4151
+ class Ii extends Pr {
4148
4152
  constructor(t) {
4149
4153
  super(), Ar(
4150
4154
  this,
4151
4155
  t,
4156
+ Ni,
4152
4157
  Li,
4153
- Pi,
4154
4158
  wt,
4155
4159
  {
4156
4160
  clientstyling: 7,
@@ -4161,53 +4165,53 @@ class Ni extends Or {
4161
4165
  lang: 12,
4162
4166
  showclosebutton: 13
4163
4167
  },
4164
- Bi
4168
+ Ti
4165
4169
  );
4166
4170
  }
4167
4171
  get clientstyling() {
4168
4172
  return this.$$.ctx[7];
4169
4173
  }
4170
4174
  set clientstyling(t) {
4171
- this.$$set({ clientstyling: t }), A();
4175
+ this.$$set({ clientstyling: t }), O();
4172
4176
  }
4173
4177
  get clientstylingurl() {
4174
4178
  return this.$$.ctx[8];
4175
4179
  }
4176
4180
  set clientstylingurl(t) {
4177
- this.$$set({ clientstylingurl: t }), A();
4181
+ this.$$set({ clientstylingurl: t }), O();
4178
4182
  }
4179
4183
  get translationurl() {
4180
4184
  return this.$$.ctx[9];
4181
4185
  }
4182
4186
  set translationurl(t) {
4183
- this.$$set({ translationurl: t }), A();
4187
+ this.$$set({ translationurl: t }), O();
4184
4188
  }
4185
4189
  get showbackbutton() {
4186
4190
  return this.$$.ctx[10];
4187
4191
  }
4188
4192
  set showbackbutton(t) {
4189
- this.$$set({ showbackbutton: t }), A();
4193
+ this.$$set({ showbackbutton: t }), O();
4190
4194
  }
4191
4195
  get title() {
4192
4196
  return this.$$.ctx[11];
4193
4197
  }
4194
4198
  set title(t) {
4195
- this.$$set({ title: t }), A();
4199
+ this.$$set({ title: t }), O();
4196
4200
  }
4197
4201
  get lang() {
4198
4202
  return this.$$.ctx[12];
4199
4203
  }
4200
4204
  set lang(t) {
4201
- this.$$set({ lang: t }), A();
4205
+ this.$$set({ lang: t }), O();
4202
4206
  }
4203
4207
  get showclosebutton() {
4204
4208
  return this.$$.ctx[13];
4205
4209
  }
4206
4210
  set showclosebutton(t) {
4207
- this.$$set({ showclosebutton: t }), A();
4211
+ this.$$set({ showclosebutton: t }), O();
4208
4212
  }
4209
4213
  }
4210
- Cr(Ni, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
4214
+ Or(Ii, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
4211
4215
  export {
4212
- Ni as default
4216
+ Ii as default
4213
4217
  };