@everymatrix/cashier-header 1.70.1 → 1.71.1

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