@everymatrix/cashier-iframe-redirect 1.77.19 → 1.77.20

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,17 +1,17 @@
1
- var or = Object.defineProperty, ar = Object.defineProperties;
2
- var ur = Object.getOwnPropertyDescriptors;
3
- var Je = 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) => {
1
+ var ir = Object.defineProperty, sr = Object.defineProperties;
2
+ var or = Object.getOwnPropertyDescriptors;
3
+ var Qe = Object.getOwnPropertySymbols;
4
+ var ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable;
5
+ var xe = (e, t, r) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- hr.call(t, r) && ve(e, r, t[r]);
8
- if (Je)
9
- for (var r of Je(t))
10
- lr.call(t, r) && ve(e, r, t[r]);
7
+ ar.call(t, r) && xe(e, r, t[r]);
8
+ if (Qe)
9
+ for (var r of Qe(t))
10
+ ur.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);
14
- var et = (e, t, r) => new Promise((n, i) => {
12
+ }, Je = (e, t) => sr(e, or(t));
13
+ var B = (e, t, r) => (xe(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var Ye = (e, t, r) => new Promise((n, i) => {
15
15
  var s = (l) => {
16
16
  try {
17
17
  o(r.next(l));
@@ -29,7 +29,7 @@ var et = (e, t, r) => new Promise((n, i) => {
29
29
  });
30
30
  function T() {
31
31
  }
32
- function fr(e, t) {
32
+ function hr(e, t) {
33
33
  for (const r in t)
34
34
  e[r] = t[r];
35
35
  return (
@@ -37,29 +37,29 @@ function fr(e, t) {
37
37
  e
38
38
  );
39
39
  }
40
- function Tt(e) {
40
+ function Ht(e) {
41
41
  return e();
42
42
  }
43
- function tt() {
43
+ function Ke() {
44
44
  return /* @__PURE__ */ Object.create(null);
45
45
  }
46
- function re(e) {
47
- e.forEach(Tt);
46
+ function te(e) {
47
+ e.forEach(Ht);
48
48
  }
49
- function ze(e) {
49
+ function Ve(e) {
50
50
  return typeof e == "function";
51
51
  }
52
- function wt(e, t) {
52
+ function Bt(e, t) {
53
53
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
54
54
  }
55
- let oe;
56
- function Gi(e, t) {
57
- return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
55
+ let se;
56
+ function Ui(e, t) {
57
+ return e === t ? !0 : (se || (se = document.createElement("a")), se.href = t, e === se.href);
58
58
  }
59
- function cr(e) {
59
+ function lr(e) {
60
60
  return Object.keys(e).length === 0;
61
61
  }
62
- function St(e, ...t) {
62
+ function Tt(e, ...t) {
63
63
  if (e == null) {
64
64
  for (const n of t)
65
65
  n(void 0);
@@ -68,19 +68,19 @@ function St(e, ...t) {
68
68
  const r = e.subscribe(...t);
69
69
  return r.unsubscribe ? () => r.unsubscribe() : r;
70
70
  }
71
- function mr(e, t, r) {
72
- e.$$.on_destroy.push(St(t, r));
71
+ function fr(e, t, r) {
72
+ e.$$.on_destroy.push(Tt(t, r));
73
73
  }
74
- function He(e, t, r, n) {
74
+ function Ee(e, t, r, n) {
75
75
  if (e) {
76
- const i = At(e, t, r, n);
76
+ const i = wt(e, t, r, n);
77
77
  return e[0](i);
78
78
  }
79
79
  }
80
- function At(e, t, r, n) {
81
- return e[1] && n ? fr(r.ctx.slice(), e[1](n(t))) : r.ctx;
80
+ function wt(e, t, r, n) {
81
+ return e[1] && n ? hr(r.ctx.slice(), e[1](n(t))) : r.ctx;
82
82
  }
83
- function Be(e, t, r, n) {
83
+ function ve(e, t, r, n) {
84
84
  if (e[2] && n) {
85
85
  const i = e[2](n(r));
86
86
  if (t.dirty === void 0)
@@ -95,13 +95,13 @@ function Be(e, t, r, n) {
95
95
  }
96
96
  return t.dirty;
97
97
  }
98
- function Te(e, t, r, n, i, s) {
98
+ function He(e, t, r, n, i, s) {
99
99
  if (i) {
100
- const a = At(t, r, n, s);
100
+ const a = wt(t, r, n, s);
101
101
  e.p(a, i);
102
102
  }
103
103
  }
104
- function we(e) {
104
+ function Be(e) {
105
105
  if (e.ctx.length > 32) {
106
106
  const t = [], r = e.ctx.length / 32;
107
107
  for (let n = 0; n < r; n++)
@@ -110,17 +110,17 @@ function we(e) {
110
110
  }
111
111
  return -1;
112
112
  }
113
- function me(e, t) {
113
+ function ce(e, t) {
114
114
  e.appendChild(t);
115
115
  }
116
- function pr(e, t, r) {
117
- const n = dr(e);
116
+ function cr(e, t, r) {
117
+ const n = mr(e);
118
118
  if (!n.getElementById(t)) {
119
- const i = z("style");
120
- i.id = t, i.textContent = r, br(n, i);
119
+ const i = X("style");
120
+ i.id = t, i.textContent = r, dr(n, i);
121
121
  }
122
122
  }
123
- function dr(e) {
123
+ function mr(e) {
124
124
  if (!e)
125
125
  return document;
126
126
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -130,49 +130,49 @@ function dr(e) {
130
130
  t
131
131
  ) : e.ownerDocument;
132
132
  }
133
- function br(e, t) {
134
- return me(
133
+ function dr(e, t) {
134
+ return ce(
135
135
  /** @type {Document} */
136
136
  e.head || e,
137
137
  t
138
138
  ), t.sheet;
139
139
  }
140
- function M(e, t, r) {
140
+ function I(e, t, r) {
141
141
  e.insertBefore(t, r || null);
142
142
  }
143
- function L(e) {
143
+ function P(e) {
144
144
  e.parentNode && e.parentNode.removeChild(e);
145
145
  }
146
- function z(e) {
146
+ function X(e) {
147
147
  return document.createElement(e);
148
148
  }
149
- function We(e) {
149
+ function Xe(e) {
150
150
  return document.createTextNode(e);
151
151
  }
152
- function rt() {
153
- return We(" ");
152
+ function et() {
153
+ return Xe(" ");
154
154
  }
155
- function Ot() {
156
- return We("");
155
+ function St() {
156
+ return Xe("");
157
157
  }
158
- function Pt(e, t, r, n) {
158
+ function At(e, t, r, n) {
159
159
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
160
160
  }
161
- function W(e, t, r) {
161
+ function z(e, t, r) {
162
162
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
163
163
  }
164
- function Fi(e, t, r) {
164
+ function Di(e, t, r) {
165
165
  const n = t.toLowerCase();
166
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : W(e, t, r);
166
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : z(e, t, r);
167
167
  }
168
- function gr(e) {
168
+ function br(e) {
169
169
  return Array.from(e.childNodes);
170
170
  }
171
- function _r(e, t) {
171
+ function pr(e, t) {
172
172
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
173
173
  t);
174
174
  }
175
- function yr(e) {
175
+ function gr(e) {
176
176
  const t = {};
177
177
  return e.childNodes.forEach(
178
178
  /** @param {Element} node */
@@ -181,97 +181,97 @@ function yr(e) {
181
181
  }
182
182
  ), t;
183
183
  }
184
- let K;
185
- function Y(e) {
186
- K = e;
184
+ let Y;
185
+ function J(e) {
186
+ Y = e;
187
187
  }
188
- function Er() {
189
- if (!K)
188
+ function _r() {
189
+ if (!Y)
190
190
  throw new Error("Function called outside component initialization");
191
- return K;
191
+ return Y;
192
192
  }
193
- function xr(e) {
194
- Er().$$.on_mount.push(e);
193
+ function yr(e) {
194
+ _r().$$.on_mount.push(e);
195
195
  }
196
- const G = [], Me = [];
197
- let F = [];
198
- const nt = [], vr = /* @__PURE__ */ Promise.resolve();
199
- let $e = !1;
200
- function Hr() {
201
- $e || ($e = !0, vr.then(w));
196
+ const D = [], Ne = [];
197
+ let G = [];
198
+ const tt = [], xr = /* @__PURE__ */ Promise.resolve();
199
+ let Ie = !1;
200
+ function Er() {
201
+ Ie || (Ie = !0, xr.then(w));
202
202
  }
203
- function Re(e) {
204
- F.push(e);
203
+ function Me(e) {
204
+ G.push(e);
205
205
  }
206
- const Se = /* @__PURE__ */ new Set();
207
- let U = 0;
206
+ const Te = /* @__PURE__ */ new Set();
207
+ let R = 0;
208
208
  function w() {
209
- if (U !== 0)
209
+ if (R !== 0)
210
210
  return;
211
- const e = K;
211
+ const e = Y;
212
212
  do {
213
213
  try {
214
- for (; U < G.length; ) {
215
- const t = G[U];
216
- U++, Y(t), Br(t.$$);
214
+ for (; R < D.length; ) {
215
+ const t = D[R];
216
+ R++, J(t), vr(t.$$);
217
217
  }
218
218
  } catch (t) {
219
- throw G.length = 0, U = 0, t;
219
+ throw D.length = 0, R = 0, t;
220
220
  }
221
- for (Y(null), G.length = 0, U = 0; Me.length; )
222
- Me.pop()();
223
- for (let t = 0; t < F.length; t += 1) {
224
- const r = F[t];
225
- Se.has(r) || (Se.add(r), r());
221
+ for (J(null), D.length = 0, R = 0; Ne.length; )
222
+ Ne.pop()();
223
+ for (let t = 0; t < G.length; t += 1) {
224
+ const r = G[t];
225
+ Te.has(r) || (Te.add(r), r());
226
226
  }
227
- F.length = 0;
228
- } while (G.length);
229
- for (; nt.length; )
230
- nt.pop()();
231
- $e = !1, Se.clear(), Y(e);
227
+ G.length = 0;
228
+ } while (D.length);
229
+ for (; tt.length; )
230
+ tt.pop()();
231
+ Ie = !1, Te.clear(), J(e);
232
232
  }
233
- function Br(e) {
233
+ function vr(e) {
234
234
  if (e.fragment !== null) {
235
- e.update(), re(e.before_update);
235
+ e.update(), te(e.before_update);
236
236
  const t = e.dirty;
237
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
237
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
238
238
  }
239
239
  }
240
- function Tr(e) {
240
+ function Hr(e) {
241
241
  const t = [], r = [];
242
- F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
242
+ G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
243
243
  }
244
- const ue = /* @__PURE__ */ new Set();
245
- let wr;
246
- function he(e, t) {
247
- e && e.i && (ue.delete(e), e.i(t));
244
+ const ae = /* @__PURE__ */ new Set();
245
+ let Br;
246
+ function ue(e, t) {
247
+ e && e.i && (ae.delete(e), e.i(t));
248
248
  }
249
- function Ae(e, t, r, n) {
249
+ function we(e, t, r, n) {
250
250
  if (e && e.o) {
251
- if (ue.has(e))
251
+ if (ae.has(e))
252
252
  return;
253
- ue.add(e), wr.c.push(() => {
254
- ue.delete(e);
253
+ ae.add(e), Br.c.push(() => {
254
+ ae.delete(e);
255
255
  }), e.o(t);
256
256
  }
257
257
  }
258
- function Sr(e, t, r) {
258
+ function Tr(e, t, r) {
259
259
  const { fragment: n, after_update: i } = e.$$;
260
- n && n.m(t, r), Re(() => {
261
- const s = e.$$.on_mount.map(Tt).filter(ze);
262
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
263
- }), i.forEach(Re);
260
+ n && n.m(t, r), Me(() => {
261
+ const s = e.$$.on_mount.map(Ht).filter(Ve);
262
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
263
+ }), i.forEach(Me);
264
264
  }
265
- function Ar(e, t) {
265
+ function wr(e, t) {
266
266
  const r = e.$$;
267
- r.fragment !== null && (Tr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
267
+ 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 = []);
268
268
  }
269
- function Or(e, t) {
270
- e.$$.dirty[0] === -1 && (G.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
269
+ function Sr(e, t) {
270
+ e.$$.dirty[0] === -1 && (D.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
271
271
  }
272
- function Pr(e, t, r, n, i, s, a = null, o = [-1]) {
273
- const l = K;
274
- Y(e);
272
+ function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
273
+ const l = Y;
274
+ J(e);
275
275
  const u = e.$$ = {
276
276
  fragment: null,
277
277
  ctx: [],
@@ -279,7 +279,7 @@ function Pr(e, t, r, n, i, s, a = null, o = [-1]) {
279
279
  props: s,
280
280
  update: T,
281
281
  not_equal: i,
282
- bound: tt(),
282
+ bound: Ke(),
283
283
  // lifecycle
284
284
  on_mount: [],
285
285
  on_destroy: [],
@@ -288,28 +288,28 @@ function Pr(e, t, r, n, i, s, a = null, o = [-1]) {
288
288
  after_update: [],
289
289
  context: new Map(t.context || (l ? l.$$.context : [])),
290
290
  // everything else
291
- callbacks: tt(),
291
+ callbacks: Ke(),
292
292
  dirty: o,
293
293
  skip_bound: !1,
294
294
  root: t.target || l.$$.root
295
295
  };
296
296
  a && a(u.root);
297
297
  let h = !1;
298
- if (u.ctx = r ? r(e, t.props || {}, (c, m, ...p) => {
299
- const f = p.length ? p[0] : m;
300
- return u.ctx && i(u.ctx[c], u.ctx[c] = f) && (!u.skip_bound && u.bound[c] && u.bound[c](f), h && Or(e, c)), m;
301
- }) : [], u.update(), h = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
298
+ if (u.ctx = r ? r(e, t.props || {}, (c, m, ...d) => {
299
+ const f = d.length ? d[0] : m;
300
+ return u.ctx && i(u.ctx[c], u.ctx[c] = f) && (!u.skip_bound && u.bound[c] && u.bound[c](f), h && Sr(e, c)), m;
301
+ }) : [], u.update(), h = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
302
302
  if (t.hydrate) {
303
- const c = gr(t.target);
304
- u.fragment && u.fragment.l(c), c.forEach(L);
303
+ const c = br(t.target);
304
+ u.fragment && u.fragment.l(c), c.forEach(P);
305
305
  } else
306
306
  u.fragment && u.fragment.c();
307
- t.intro && he(e.$$.fragment), Sr(e, t.target, t.anchor), w();
307
+ t.intro && ue(e.$$.fragment), Tr(e, t.target, t.anchor), w();
308
308
  }
309
- Y(l);
309
+ J(l);
310
310
  }
311
- let Ct;
312
- typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
311
+ let Ot;
312
+ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
313
313
  constructor(t, r, n) {
314
314
  super();
315
315
  /** The Svelte component constructor */
@@ -346,42 +346,42 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
346
346
  }
347
347
  }
348
348
  connectedCallback() {
349
- return et(this, null, function* () {
349
+ return Ye(this, null, function* () {
350
350
  if (this.$$cn = !0, !this.$$c) {
351
351
  let t = function(s) {
352
352
  return () => {
353
353
  let a;
354
354
  return {
355
355
  c: function() {
356
- a = z("slot"), s !== "default" && W(a, "name", s);
356
+ a = X("slot"), s !== "default" && z(a, "name", s);
357
357
  },
358
358
  /**
359
359
  * @param {HTMLElement} target
360
360
  * @param {HTMLElement} [anchor]
361
361
  */
362
362
  m: function(u, h) {
363
- M(u, a, h);
363
+ I(u, a, h);
364
364
  },
365
365
  d: function(u) {
366
- u && L(a);
366
+ u && P(a);
367
367
  }
368
368
  };
369
369
  };
370
370
  };
371
371
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
372
372
  return;
373
- const r = {}, n = yr(this);
373
+ const r = {}, n = gr(this);
374
374
  for (const s of this.$$s)
375
375
  s in n && (r[s] = [t(s)]);
376
376
  for (const s of this.attributes) {
377
377
  const a = this.$$g_p(s.name);
378
- a in this.$$d || (this.$$d[a] = le(a, s.value, this.$$p_d, "toProp"));
378
+ a in this.$$d || (this.$$d[a] = he(a, s.value, this.$$p_d, "toProp"));
379
379
  }
380
380
  for (const s in this.$$p_d)
381
381
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
382
382
  this.$$c = new this.$$ctor({
383
383
  target: this.shadowRoot || this,
384
- props: Ke(Ye({}, this.$$d), {
384
+ props: Je(qe({}, this.$$d), {
385
385
  $$slots: r,
386
386
  $$scope: {
387
387
  ctx: []
@@ -392,7 +392,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
392
392
  this.$$r = !0;
393
393
  for (const s in this.$$p_d)
394
394
  if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
395
- const a = le(
395
+ const a = he(
396
396
  s,
397
397
  this.$$d[s],
398
398
  this.$$p_d,
@@ -416,7 +416,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
416
416
  // and setting attributes through setAttribute etc, this is helpful
417
417
  attributeChangedCallback(t, r, n) {
418
418
  var i;
419
- 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] }));
419
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = he(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
420
420
  }
421
421
  disconnectedCallback() {
422
422
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -429,7 +429,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
429
429
  ) || t;
430
430
  }
431
431
  });
432
- function le(e, t, r, n) {
432
+ function he(e, t, r, n) {
433
433
  var s;
434
434
  const i = (s = r[e]) == null ? void 0 : s.type;
435
435
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
@@ -459,8 +459,8 @@ function le(e, t, r, n) {
459
459
  return t;
460
460
  }
461
461
  }
462
- function Cr(e, t, r, n, i, s) {
463
- let a = class extends Ct {
462
+ function Or(e, t, r, n, i, s) {
463
+ let a = class extends Ot {
464
464
  constructor() {
465
465
  super(e, r, i), this.$$p_d = t;
466
466
  }
@@ -477,7 +477,7 @@ function Cr(e, t, r, n, i, s) {
477
477
  },
478
478
  set(l) {
479
479
  var u;
480
- l = le(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
480
+ l = he(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
481
481
  }
482
482
  });
483
483
  }), n.forEach((o) => {
@@ -490,7 +490,7 @@ function Cr(e, t, r, n, i, s) {
490
490
  }), e.element = /** @type {any} */
491
491
  a, a;
492
492
  }
493
- class Lr {
493
+ class Cr {
494
494
  constructor() {
495
495
  /**
496
496
  * ### PRIVATE API
@@ -511,7 +511,7 @@ class Lr {
511
511
  }
512
512
  /** @returns {void} */
513
513
  $destroy() {
514
- Ar(this, 1), this.$destroy = T;
514
+ wr(this, 1), this.$destroy = T;
515
515
  }
516
516
  /**
517
517
  * @template {Extract<keyof Events, string>} K
@@ -520,7 +520,7 @@ class Lr {
520
520
  * @returns {() => void}
521
521
  */
522
522
  $on(t, r) {
523
- if (!ze(r))
523
+ if (!Ve(r))
524
524
  return T;
525
525
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
526
526
  return n.push(r), () => {
@@ -533,29 +533,29 @@ class Lr {
533
533
  * @returns {void}
534
534
  */
535
535
  $set(t) {
536
- this.$$set && !cr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
536
+ this.$$set && !lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
537
537
  }
538
538
  }
539
- const Nr = "4";
540
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
541
- const D = [];
542
- function Ir(e, t) {
539
+ const Pr = "4";
540
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pr);
541
+ const U = [];
542
+ function Lr(e, t) {
543
543
  return {
544
- subscribe: _e(e, t).subscribe
544
+ subscribe: pe(e, t).subscribe
545
545
  };
546
546
  }
547
- function _e(e, t = T) {
547
+ function pe(e, t = T) {
548
548
  let r;
549
549
  const n = /* @__PURE__ */ new Set();
550
550
  function i(o) {
551
- if (wt(e, o) && (e = o, r)) {
552
- const l = !D.length;
551
+ if (Bt(e, o) && (e = o, r)) {
552
+ const l = !U.length;
553
553
  for (const u of n)
554
- u[1](), D.push(u, e);
554
+ u[1](), U.push(u, e);
555
555
  if (l) {
556
- for (let u = 0; u < D.length; u += 2)
557
- D[u][0](D[u + 1]);
558
- D.length = 0;
556
+ for (let u = 0; u < U.length; u += 2)
557
+ U[u][0](U[u + 1]);
558
+ U.length = 0;
559
559
  }
560
560
  }
561
561
  }
@@ -570,12 +570,12 @@ function _e(e, t = T) {
570
570
  }
571
571
  return { set: i, update: s, subscribe: a };
572
572
  }
573
- function Z(e, t, r) {
573
+ function W(e, t, r) {
574
574
  const n = !Array.isArray(e), i = n ? [e] : e;
575
575
  if (!i.every(Boolean))
576
576
  throw new Error("derived() expects stores as input, got a falsy value");
577
577
  const s = t.length < 2;
578
- return Ir(r, (a, o) => {
578
+ return Lr(r, (a, o) => {
579
579
  let l = !1;
580
580
  const u = [];
581
581
  let h = 0, c = T;
@@ -584,9 +584,9 @@ function Z(e, t, r) {
584
584
  return;
585
585
  c();
586
586
  const f = t(n ? u[0] : u, a, o);
587
- s ? a(f) : c = ze(f) ? f : T;
588
- }, p = i.map(
589
- (f, _) => St(
587
+ s ? a(f) : c = Ve(f) ? f : T;
588
+ }, d = i.map(
589
+ (f, _) => Tt(
590
590
  f,
591
591
  (v) => {
592
592
  u[_] = v, h &= ~(1 << _), l && m();
@@ -597,112 +597,126 @@ function Z(e, t, r) {
597
597
  )
598
598
  );
599
599
  return l = !0, m(), function() {
600
- re(p), c(), l = !1;
600
+ te(d), c(), l = !1;
601
601
  };
602
602
  });
603
603
  }
604
- function Mr(e) {
604
+ function Nr(e) {
605
605
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
606
606
  }
607
- var $r = function(t) {
608
- return Rr(t) && !Ur(t);
607
+ var Ir = function(t) {
608
+ return Mr(t) && !$r(t);
609
609
  };
610
- function Rr(e) {
610
+ function Mr(e) {
611
611
  return !!e && typeof e == "object";
612
612
  }
613
- function Ur(e) {
613
+ function $r(e) {
614
614
  var t = Object.prototype.toString.call(e);
615
- return t === "[object RegExp]" || t === "[object Date]" || Fr(e);
615
+ return t === "[object RegExp]" || t === "[object Date]" || Dr(e);
616
616
  }
617
- var Dr = typeof Symbol == "function" && Symbol.for, Gr = Dr ? Symbol.for("react.element") : 60103;
618
- function Fr(e) {
619
- return e.$$typeof === Gr;
617
+ var Rr = typeof Symbol == "function" && Symbol.for, Ur = Rr ? Symbol.for("react.element") : 60103;
618
+ function Dr(e) {
619
+ return e.$$typeof === Ur;
620
620
  }
621
- function jr(e) {
621
+ function Gr(e) {
622
622
  return Array.isArray(e) ? [] : {};
623
623
  }
624
- function ee(e, t) {
625
- return t.clone !== !1 && t.isMergeableObject(e) ? j(jr(e), e, t) : e;
624
+ function K(e, t) {
625
+ return t.clone !== !1 && t.isMergeableObject(e) ? F(Gr(e), e, t) : e;
626
626
  }
627
- function kr(e, t, r) {
627
+ function Fr(e, t, r) {
628
628
  return e.concat(t).map(function(n) {
629
- return ee(n, r);
629
+ return K(n, r);
630
630
  });
631
631
  }
632
- function Vr(e, t) {
632
+ function jr(e, t) {
633
633
  if (!t.customMerge)
634
- return j;
634
+ return F;
635
635
  var r = t.customMerge(e);
636
- return typeof r == "function" ? r : j;
636
+ return typeof r == "function" ? r : F;
637
637
  }
638
- function Xr(e) {
638
+ function kr(e) {
639
639
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
640
640
  return Object.propertyIsEnumerable.call(e, t);
641
641
  }) : [];
642
642
  }
643
- function it(e) {
644
- return Object.keys(e).concat(Xr(e));
643
+ function rt(e) {
644
+ return Object.keys(e).concat(kr(e));
645
645
  }
646
- function Lt(e, t) {
646
+ function Ct(e, t) {
647
647
  try {
648
648
  return t in e;
649
649
  } catch (r) {
650
650
  return !1;
651
651
  }
652
652
  }
653
- function zr(e, t) {
654
- return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
653
+ function Vr(e, t) {
654
+ return Ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
655
655
  }
656
- function Wr(e, t, r) {
656
+ function Xr(e, t, r) {
657
657
  var n = {};
658
- return r.isMergeableObject(e) && it(e).forEach(function(i) {
659
- n[i] = ee(e[i], r);
660
- }), it(t).forEach(function(i) {
661
- zr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Vr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
658
+ return r.isMergeableObject(e) && rt(e).forEach(function(i) {
659
+ n[i] = K(e[i], r);
660
+ }), rt(t).forEach(function(i) {
661
+ Vr(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
662
662
  }), n;
663
663
  }
664
- function j(e, t, r) {
665
- r = r || {}, r.arrayMerge = r.arrayMerge || kr, r.isMergeableObject = r.isMergeableObject || $r, r.cloneUnlessOtherwiseSpecified = ee;
664
+ function F(e, t, r) {
665
+ r = r || {}, r.arrayMerge = r.arrayMerge || Fr, r.isMergeableObject = r.isMergeableObject || Ir, r.cloneUnlessOtherwiseSpecified = K;
666
666
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
667
- return s ? n ? r.arrayMerge(e, t, r) : Wr(e, t, r) : ee(t, r);
667
+ return s ? n ? r.arrayMerge(e, t, r) : Xr(e, t, r) : K(t, r);
668
668
  }
669
- j.all = function(t, r) {
669
+ F.all = function(t, r) {
670
670
  if (!Array.isArray(t))
671
671
  throw new Error("first argument should be an array");
672
672
  return t.reduce(function(n, i) {
673
- return j(n, i, r);
673
+ return F(n, i, r);
674
674
  }, {});
675
675
  };
676
- var Zr = j, Qr = Zr;
677
- const qr = /* @__PURE__ */ Mr(Qr);
678
- var Ue = function(e, t) {
679
- return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
676
+ var zr = F, Wr = zr;
677
+ const Zr = /* @__PURE__ */ Nr(Wr);
678
+ /*! *****************************************************************************
679
+ Copyright (c) Microsoft Corporation.
680
+
681
+ Permission to use, copy, modify, and/or distribute this software for any
682
+ purpose with or without fee is hereby granted.
683
+
684
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
685
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
686
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
687
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
688
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
689
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
690
+ PERFORMANCE OF THIS SOFTWARE.
691
+ ***************************************************************************** */
692
+ var $e = function(e, t) {
693
+ return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
680
694
  r.__proto__ = n;
681
695
  } || function(r, n) {
682
696
  for (var i in n)
683
697
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
684
- }, Ue(e, t);
698
+ }, $e(e, t);
685
699
  };
686
- function ye(e, t) {
700
+ function ge(e, t) {
687
701
  if (typeof t != "function" && t !== null)
688
702
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
689
- Ue(e, t);
703
+ $e(e, t);
690
704
  function r() {
691
705
  this.constructor = e;
692
706
  }
693
707
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
694
708
  }
695
- var S = function() {
696
- return S = Object.assign || function(t) {
709
+ var y = function() {
710
+ return y = Object.assign || function(t) {
697
711
  for (var r, n = 1, i = arguments.length; n < i; n++) {
698
712
  r = arguments[n];
699
713
  for (var s in r)
700
714
  Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
701
715
  }
702
716
  return t;
703
- }, S.apply(this, arguments);
717
+ }, y.apply(this, arguments);
704
718
  };
705
- function Jr(e, t) {
719
+ function Qr(e, t) {
706
720
  var r = {};
707
721
  for (var n in e)
708
722
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -711,43 +725,43 @@ function Jr(e, t) {
711
725
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
712
726
  return r;
713
727
  }
714
- function Oe(e, t, r) {
715
- if (r || arguments.length === 2)
728
+ function Se(e, t, r) {
729
+ if (arguments.length === 2)
716
730
  for (var n = 0, i = t.length, s; n < i; n++)
717
731
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
718
- return e.concat(s || Array.prototype.slice.call(t));
732
+ return e.concat(s || t);
719
733
  }
720
- function Pe(e, t) {
721
- var r = t && t.cache ? t.cache : sn, n = t && t.serializer ? t.serializer : rn, i = t && t.strategy ? t.strategy : en;
734
+ function Ae(e, t) {
735
+ var r = t && t.cache ? t.cache : rn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : Yr;
722
736
  return i(e, {
723
737
  cache: r,
724
738
  serializer: n
725
739
  });
726
740
  }
727
- function Yr(e) {
741
+ function qr(e) {
728
742
  return e == null || typeof e == "number" || typeof e == "boolean";
729
743
  }
730
- function Kr(e, t, r, n) {
731
- var i = Yr(n) ? n : r(n), s = t.get(i);
744
+ function Jr(e, t, r, n) {
745
+ var i = qr(n) ? n : r(n), s = t.get(i);
732
746
  return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
733
747
  }
734
- function Nt(e, t, r) {
748
+ function Pt(e, t, r) {
735
749
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
736
750
  return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
737
751
  }
738
- function It(e, t, r, n, i) {
752
+ function Lt(e, t, r, n, i) {
739
753
  return r.bind(t, e, n, i);
740
754
  }
741
- function en(e, t) {
742
- var r = e.length === 1 ? Kr : Nt;
743
- return It(e, this, r, t.cache.create(), t.serializer);
755
+ function Yr(e, t) {
756
+ var r = e.length === 1 ? Jr : Pt;
757
+ return Lt(e, this, r, t.cache.create(), t.serializer);
744
758
  }
745
- function tn(e, t) {
746
- return It(e, this, Nt, t.cache.create(), t.serializer);
759
+ function Kr(e, t) {
760
+ return Lt(e, this, Pt, t.cache.create(), t.serializer);
747
761
  }
748
- var rn = function() {
762
+ var en = function() {
749
763
  return JSON.stringify(arguments);
750
- }, nn = (
764
+ }, tn = (
751
765
  /** @class */
752
766
  function() {
753
767
  function e() {
@@ -759,71 +773,61 @@ var rn = function() {
759
773
  this.cache[t] = r;
760
774
  }, e;
761
775
  }()
762
- ), sn = {
776
+ ), rn = {
763
777
  create: function() {
764
- return new nn();
778
+ return new tn();
765
779
  }
766
- }, Ce = {
767
- variadic: tn
768
- }, pe = function() {
769
- return pe = Object.assign || function(t) {
770
- for (var r, n = 1, i = arguments.length; n < i; n++) {
771
- r = arguments[n];
772
- for (var s in r)
773
- Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
774
- }
775
- return t;
776
- }, pe.apply(this, arguments);
777
- };
778
- var d;
780
+ }, Oe = {
781
+ variadic: Kr
782
+ }, b;
779
783
  (function(e) {
780
784
  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";
781
- })(d || (d = {}));
782
- var y;
785
+ })(b || (b = {}));
786
+ var x;
783
787
  (function(e) {
784
788
  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";
785
- })(y || (y = {}));
786
- var k;
789
+ })(x || (x = {}));
790
+ var j;
787
791
  (function(e) {
788
792
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
789
- })(k || (k = {}));
790
- function st(e) {
791
- return e.type === y.literal;
793
+ })(j || (j = {}));
794
+ function nt(e) {
795
+ return e.type === x.literal;
792
796
  }
793
- function on(e) {
794
- return e.type === y.argument;
797
+ function nn(e) {
798
+ return e.type === x.argument;
799
+ }
800
+ function Nt(e) {
801
+ return e.type === x.number;
802
+ }
803
+ function It(e) {
804
+ return e.type === x.date;
795
805
  }
796
806
  function Mt(e) {
797
- return e.type === y.number;
807
+ return e.type === x.time;
798
808
  }
799
809
  function $t(e) {
800
- return e.type === y.date;
810
+ return e.type === x.select;
801
811
  }
802
812
  function Rt(e) {
803
- return e.type === y.time;
813
+ return e.type === x.plural;
814
+ }
815
+ function sn(e) {
816
+ return e.type === x.pound;
804
817
  }
805
818
  function Ut(e) {
806
- return e.type === y.select;
819
+ return e.type === x.tag;
807
820
  }
808
821
  function Dt(e) {
809
- return e.type === y.plural;
810
- }
811
- function an(e) {
812
- return e.type === y.pound;
813
- }
814
- function Gt(e) {
815
- return e.type === y.tag;
822
+ return !!(e && typeof e == "object" && e.type === j.number);
816
823
  }
817
- function Ft(e) {
818
- return !!(e && typeof e == "object" && e.type === k.number);
819
- }
820
- function De(e) {
821
- return !!(e && typeof e == "object" && e.type === k.dateTime);
824
+ function Re(e) {
825
+ return !!(e && typeof e == "object" && e.type === j.dateTime);
822
826
  }
823
- var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, un = /(?:[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;
824
- function hn(e) {
827
+ var Gt = /[ \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;
828
+ function an(e) {
825
829
  var t = {};
826
- return e.replace(un, function(r) {
830
+ return e.replace(on, function(r) {
827
831
  var n = r.length;
828
832
  switch (r[0]) {
829
833
  case "G":
@@ -912,21 +916,11 @@ function hn(e) {
912
916
  return "";
913
917
  }), t;
914
918
  }
915
- var E = function() {
916
- return E = Object.assign || function(t) {
917
- for (var r, n = 1, i = arguments.length; n < i; n++) {
918
- r = arguments[n];
919
- for (var s in r)
920
- Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
921
- }
922
- return t;
923
- }, E.apply(this, arguments);
924
- };
925
- var ln = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
926
- function fn(e) {
919
+ var un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
920
+ function hn(e) {
927
921
  if (e.length === 0)
928
922
  throw new Error("Number skeleton cannot be empty");
929
- for (var t = e.split(ln).filter(function(m) {
923
+ for (var t = e.split(un).filter(function(m) {
930
924
  return m.length > 0;
931
925
  }), r = [], n = 0, i = t; n < i.length; n++) {
932
926
  var s = i[n], a = s.split("/");
@@ -941,17 +935,17 @@ function fn(e) {
941
935
  }
942
936
  return r;
943
937
  }
944
- function cn(e) {
938
+ function ln(e) {
945
939
  return e.replace(/^(.*?)-/, "");
946
940
  }
947
- var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g, mn = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
948
- function at(e) {
941
+ var it = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, fn = /(\*)(0+)|(#+)(0+)|(0+)/g, jt = /^(0+)$/;
942
+ function st(e) {
949
943
  var t = {};
950
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kt, function(r, n, i) {
944
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(r, n, i) {
951
945
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
952
946
  }), t;
953
947
  }
954
- function Xt(e) {
948
+ function kt(e) {
955
949
  switch (e) {
956
950
  case "sign-auto":
957
951
  return {
@@ -991,7 +985,7 @@ function Xt(e) {
991
985
  };
992
986
  }
993
987
  }
994
- function pn(e) {
988
+ function cn(e) {
995
989
  var t;
996
990
  if (e[0] === "E" && e[1] === "E" ? (t = {
997
991
  notation: "engineering"
@@ -999,17 +993,17 @@ function pn(e) {
999
993
  notation: "scientific"
1000
994
  }, e = e.slice(1)), t) {
1001
995
  var r = e.slice(0, 2);
1002
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Vt.test(e))
996
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jt.test(e))
1003
997
  throw new Error("Malformed concise eng/scientific notation");
1004
998
  t.minimumIntegerDigits = e.length;
1005
999
  }
1006
1000
  return t;
1007
1001
  }
1008
- function ut(e) {
1009
- var t = {}, r = Xt(e);
1002
+ function ot(e) {
1003
+ var t = {}, r = kt(e);
1010
1004
  return r || t;
1011
1005
  }
1012
- function dn(e) {
1006
+ function mn(e) {
1013
1007
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1014
1008
  var i = n[r];
1015
1009
  switch (i.stem) {
@@ -1033,7 +1027,7 @@ function dn(e) {
1033
1027
  continue;
1034
1028
  case "measure-unit":
1035
1029
  case "unit":
1036
- t.style = "unit", t.unit = cn(i.options[0]);
1030
+ t.style = "unit", t.unit = ln(i.options[0]);
1037
1031
  continue;
1038
1032
  case "compact-short":
1039
1033
  case "K":
@@ -1044,13 +1038,13 @@ function dn(e) {
1044
1038
  t.notation = "compact", t.compactDisplay = "long";
1045
1039
  continue;
1046
1040
  case "scientific":
1047
- t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1048
- return E(E({}, l), ut(u));
1041
+ t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1042
+ return y(y({}, l), ot(u));
1049
1043
  }, {}));
1050
1044
  continue;
1051
1045
  case "engineering":
1052
- t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1053
- return E(E({}, l), ut(u));
1046
+ t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1047
+ return y(y({}, l), ot(u));
1054
1048
  }, {}));
1055
1049
  continue;
1056
1050
  case "notation-simple":
@@ -1095,45 +1089,45 @@ function dn(e) {
1095
1089
  case "integer-width":
1096
1090
  if (i.options.length > 1)
1097
1091
  throw new RangeError("integer-width stems only accept a single optional option");
1098
- i.options[0].replace(mn, function(l, u, h, c, m, p) {
1092
+ i.options[0].replace(fn, function(l, u, h, c, m, d) {
1099
1093
  if (u)
1100
1094
  t.minimumIntegerDigits = h.length;
1101
1095
  else {
1102
1096
  if (c && m)
1103
1097
  throw new Error("We currently do not support maximum integer digits");
1104
- if (p)
1098
+ if (d)
1105
1099
  throw new Error("We currently do not support exact integer digits");
1106
1100
  }
1107
1101
  return "";
1108
1102
  });
1109
1103
  continue;
1110
1104
  }
1111
- if (Vt.test(i.stem)) {
1105
+ if (jt.test(i.stem)) {
1112
1106
  t.minimumIntegerDigits = i.stem.length;
1113
1107
  continue;
1114
1108
  }
1115
- if (ot.test(i.stem)) {
1109
+ if (it.test(i.stem)) {
1116
1110
  if (i.options.length > 1)
1117
1111
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1118
- i.stem.replace(ot, function(l, u, h, c, m, p) {
1119
- return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && p ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1112
+ i.stem.replace(it, function(l, u, h, c, m, d) {
1113
+ return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1120
1114
  });
1121
1115
  var s = i.options[0];
1122
- s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), at(s)));
1116
+ s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), st(s)));
1123
1117
  continue;
1124
1118
  }
1125
- if (kt.test(i.stem)) {
1126
- t = E(E({}, t), at(i.stem));
1119
+ if (Ft.test(i.stem)) {
1120
+ t = y(y({}, t), st(i.stem));
1127
1121
  continue;
1128
1122
  }
1129
- var a = Xt(i.stem);
1130
- a && (t = E(E({}, t), a));
1131
- var o = pn(i.stem);
1132
- o && (t = E(E({}, t), o));
1123
+ var a = kt(i.stem);
1124
+ a && (t = y(y({}, t), a));
1125
+ var o = cn(i.stem);
1126
+ o && (t = y(y({}, t), o));
1133
1127
  }
1134
1128
  return t;
1135
1129
  }
1136
- var ae = {
1130
+ var oe = {
1137
1131
  "001": [
1138
1132
  "H",
1139
1133
  "h"
@@ -2548,13 +2542,13 @@ var ae = {
2548
2542
  "h"
2549
2543
  ]
2550
2544
  };
2551
- function bn(e, t) {
2545
+ function dn(e, t) {
2552
2546
  for (var r = "", n = 0; n < e.length; n++) {
2553
2547
  var i = e.charAt(n);
2554
2548
  if (i === "j") {
2555
2549
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2556
2550
  s++, n++;
2557
- var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = gn(t);
2551
+ var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = bn(t);
2558
2552
  for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
2559
2553
  r += l;
2560
2554
  for (; a-- > 0; )
@@ -2564,7 +2558,7 @@ function bn(e, t) {
2564
2558
  }
2565
2559
  return r;
2566
2560
  }
2567
- function gn(e) {
2561
+ function bn(e) {
2568
2562
  var t = e.hourCycle;
2569
2563
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2570
2564
  e.hourCycles && // @ts-ignore
@@ -2583,23 +2577,23 @@ function gn(e) {
2583
2577
  }
2584
2578
  var r = e.language, n;
2585
2579
  r !== "root" && (n = e.maximize().region);
2586
- var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
2580
+ var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
2587
2581
  return i[0];
2588
2582
  }
2589
- var Le, _n = new RegExp("^".concat(jt.source, "*")), yn = new RegExp("".concat(jt.source, "*$"));
2590
- function b(e, t) {
2583
+ var Ce, pn = new RegExp("^".concat(Gt.source, "*")), gn = new RegExp("".concat(Gt.source, "*$"));
2584
+ function p(e, t) {
2591
2585
  return { start: e, end: t };
2592
2586
  }
2593
- var En = !!String.prototype.startsWith && "_a".startsWith("a", 1), xn = !!String.fromCodePoint, vn = !!Object.fromEntries, Hn = !!String.prototype.codePointAt, Bn = !!String.prototype.trimStart, Tn = !!String.prototype.trimEnd, wn = !!Number.isSafeInteger, Sn = wn ? Number.isSafeInteger : function(e) {
2587
+ var _n = !!String.prototype.startsWith && "_a".startsWith("a", 1), yn = !!String.fromCodePoint, xn = !!Object.fromEntries, En = !!String.prototype.codePointAt, vn = !!String.prototype.trimStart, Hn = !!String.prototype.trimEnd, Bn = !!Number.isSafeInteger, Tn = Bn ? Number.isSafeInteger : function(e) {
2594
2588
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2595
- }, Ge = !0;
2589
+ }, Ue = !0;
2596
2590
  try {
2597
- var An = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2598
- Ge = ((Le = An.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
2591
+ var wn = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2592
+ Ue = ((Ce = wn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
2599
2593
  } catch (e) {
2600
- Ge = !1;
2594
+ Ue = !1;
2601
2595
  }
2602
- var ht = En ? (
2596
+ var at = _n ? (
2603
2597
  // Native
2604
2598
  function(t, r, n) {
2605
2599
  return t.startsWith(r, n);
@@ -2609,7 +2603,7 @@ var ht = En ? (
2609
2603
  function(t, r, n) {
2610
2604
  return t.slice(n, n + r.length) === r;
2611
2605
  }
2612
- ), Fe = xn ? String.fromCodePoint : (
2606
+ ), De = yn ? String.fromCodePoint : (
2613
2607
  // IE11
2614
2608
  function() {
2615
2609
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2621,9 +2615,9 @@ var ht = En ? (
2621
2615
  }
2622
2616
  return n;
2623
2617
  }
2624
- ), lt = (
2618
+ ), ut = (
2625
2619
  // native
2626
- vn ? Object.fromEntries : (
2620
+ xn ? Object.fromEntries : (
2627
2621
  // Ponyfill
2628
2622
  function(t) {
2629
2623
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2633,7 +2627,7 @@ var ht = En ? (
2633
2627
  return r;
2634
2628
  }
2635
2629
  )
2636
- ), zt = Hn ? (
2630
+ ), Vt = En ? (
2637
2631
  // Native
2638
2632
  function(t, r) {
2639
2633
  return t.codePointAt(r);
@@ -2647,7 +2641,7 @@ var ht = En ? (
2647
2641
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2648
2642
  }
2649
2643
  }
2650
- ), On = Bn ? (
2644
+ ), Sn = vn ? (
2651
2645
  // Native
2652
2646
  function(t) {
2653
2647
  return t.trimStart();
@@ -2655,9 +2649,9 @@ var ht = En ? (
2655
2649
  ) : (
2656
2650
  // Ponyfill
2657
2651
  function(t) {
2658
- return t.replace(_n, "");
2652
+ return t.replace(pn, "");
2659
2653
  }
2660
- ), Pn = Tn ? (
2654
+ ), An = Hn ? (
2661
2655
  // Native
2662
2656
  function(t) {
2663
2657
  return t.trimEnd();
@@ -2665,32 +2659,32 @@ var ht = En ? (
2665
2659
  ) : (
2666
2660
  // Ponyfill
2667
2661
  function(t) {
2668
- return t.replace(yn, "");
2662
+ return t.replace(gn, "");
2669
2663
  }
2670
2664
  );
2671
- function Wt(e, t) {
2665
+ function Xt(e, t) {
2672
2666
  return new RegExp(e, t);
2673
2667
  }
2674
- var je;
2675
- if (Ge) {
2676
- var ft = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2677
- je = function(t, r) {
2668
+ var Ge;
2669
+ if (Ue) {
2670
+ var ht = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2671
+ Ge = function(t, r) {
2678
2672
  var n;
2679
- ft.lastIndex = r;
2680
- var i = ft.exec(t);
2673
+ ht.lastIndex = r;
2674
+ var i = ht.exec(t);
2681
2675
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2682
2676
  };
2683
2677
  } else
2684
- je = function(t, r) {
2678
+ Ge = function(t, r) {
2685
2679
  for (var n = []; ; ) {
2686
- var i = zt(t, r);
2687
- if (i === void 0 || Zt(i) || In(i))
2680
+ var i = Vt(t, r);
2681
+ if (i === void 0 || zt(i) || Ln(i))
2688
2682
  break;
2689
2683
  n.push(i), r += i >= 65536 ? 2 : 1;
2690
2684
  }
2691
- return Fe.apply(void 0, n);
2685
+ return De.apply(void 0, n);
2692
2686
  };
2693
- var Cn = (
2687
+ var On = (
2694
2688
  /** @class */
2695
2689
  function() {
2696
2690
  function e(t, r) {
@@ -2714,14 +2708,14 @@ var Cn = (
2714
2708
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
2715
2709
  var o = this.clonePosition();
2716
2710
  this.bump(), i.push({
2717
- type: y.pound,
2718
- location: b(o, this.clonePosition())
2711
+ type: x.pound,
2712
+ location: p(o, this.clonePosition())
2719
2713
  });
2720
2714
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2721
2715
  if (n)
2722
2716
  break;
2723
- return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
2724
- } else if (s === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
2717
+ return this.error(b.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
2718
+ } else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
2725
2719
  var a = this.parseTag(t, r);
2726
2720
  if (a.err)
2727
2721
  return a;
@@ -2742,9 +2736,9 @@ var Cn = (
2742
2736
  if (this.bumpSpace(), this.bumpIf("/>"))
2743
2737
  return {
2744
2738
  val: {
2745
- type: y.literal,
2739
+ type: x.literal,
2746
2740
  value: "<".concat(i, "/>"),
2747
- location: b(n, this.clonePosition())
2741
+ location: p(n, this.clonePosition())
2748
2742
  },
2749
2743
  err: null
2750
2744
  };
@@ -2754,25 +2748,25 @@ var Cn = (
2754
2748
  return s;
2755
2749
  var a = s.val, o = this.clonePosition();
2756
2750
  if (this.bumpIf("</")) {
2757
- if (this.isEOF() || !ke(this.char()))
2758
- return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
2751
+ if (this.isEOF() || !Fe(this.char()))
2752
+ return this.error(b.INVALID_TAG, p(o, this.clonePosition()));
2759
2753
  var l = this.clonePosition(), u = this.parseTagName();
2760
- return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2754
+ return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2761
2755
  val: {
2762
- type: y.tag,
2756
+ type: x.tag,
2763
2757
  value: i,
2764
2758
  children: a,
2765
- location: b(n, this.clonePosition())
2759
+ location: p(n, this.clonePosition())
2766
2760
  },
2767
2761
  err: null
2768
- } : this.error(d.INVALID_TAG, b(o, this.clonePosition())));
2762
+ } : this.error(b.INVALID_TAG, p(o, this.clonePosition())));
2769
2763
  } else
2770
- return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
2764
+ return this.error(b.UNCLOSED_TAG, p(n, this.clonePosition()));
2771
2765
  } else
2772
- return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
2766
+ return this.error(b.INVALID_TAG, p(n, this.clonePosition()));
2773
2767
  }, e.prototype.parseTagName = function() {
2774
2768
  var t = this.offset();
2775
- for (this.bump(); !this.isEOF() && Nn(this.char()); )
2769
+ for (this.bump(); !this.isEOF() && Pn(this.char()); )
2776
2770
  this.bump();
2777
2771
  return this.message.slice(t, this.offset());
2778
2772
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2794,14 +2788,14 @@ var Cn = (
2794
2788
  }
2795
2789
  break;
2796
2790
  }
2797
- var l = b(n, this.clonePosition());
2791
+ var l = p(n, this.clonePosition());
2798
2792
  return {
2799
- val: { type: y.literal, value: i, location: l },
2793
+ val: { type: x.literal, value: i, location: l },
2800
2794
  err: null
2801
2795
  };
2802
2796
  }, e.prototype.tryParseLeftAngleBracket = function() {
2803
2797
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2804
- !Ln(this.peek() || 0)) ? (this.bump(), "<") : null;
2798
+ !Cn(this.peek() || 0)) ? (this.bump(), "<") : null;
2805
2799
  }, e.prototype.tryParseQuote = function(t) {
2806
2800
  if (this.isEOF() || this.char() !== 39)
2807
2801
  return null;
@@ -2835,49 +2829,49 @@ var Cn = (
2835
2829
  r.push(n);
2836
2830
  this.bump();
2837
2831
  }
2838
- return Fe.apply(void 0, r);
2832
+ return De.apply(void 0, r);
2839
2833
  }, e.prototype.tryParseUnquoted = function(t, r) {
2840
2834
  if (this.isEOF())
2841
2835
  return null;
2842
2836
  var n = this.char();
2843
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
2837
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
2844
2838
  }, e.prototype.parseArgument = function(t, r) {
2845
2839
  var n = this.clonePosition();
2846
2840
  if (this.bump(), this.bumpSpace(), this.isEOF())
2847
- return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2841
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
2848
2842
  if (this.char() === 125)
2849
- return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
2843
+ return this.bump(), this.error(b.EMPTY_ARGUMENT, p(n, this.clonePosition()));
2850
2844
  var i = this.parseIdentifierIfPossible().value;
2851
2845
  if (!i)
2852
- return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2846
+ return this.error(b.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2853
2847
  if (this.bumpSpace(), this.isEOF())
2854
- return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2848
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
2855
2849
  switch (this.char()) {
2856
2850
  case 125:
2857
2851
  return this.bump(), {
2858
2852
  val: {
2859
- type: y.argument,
2853
+ type: x.argument,
2860
2854
  // value does not include the opening and closing braces.
2861
2855
  value: i,
2862
- location: b(n, this.clonePosition())
2856
+ location: p(n, this.clonePosition())
2863
2857
  },
2864
2858
  err: null
2865
2859
  };
2866
2860
  case 44:
2867
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2861
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2868
2862
  default:
2869
- return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2863
+ return this.error(b.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2870
2864
  }
2871
2865
  }, e.prototype.parseIdentifierIfPossible = function() {
2872
- var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
2866
+ var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
2873
2867
  this.bumpTo(i);
2874
- var s = this.clonePosition(), a = b(t, s);
2868
+ var s = this.clonePosition(), a = p(t, s);
2875
2869
  return { value: n, location: a };
2876
2870
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2877
2871
  var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2878
2872
  switch (o) {
2879
2873
  case "":
2880
- return this.error(d.EXPECT_ARGUMENT_TYPE, b(a, l));
2874
+ return this.error(b.EXPECT_ARGUMENT_TYPE, p(a, l));
2881
2875
  case "number":
2882
2876
  case "date":
2883
2877
  case "time": {
@@ -2888,44 +2882,44 @@ var Cn = (
2888
2882
  var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2889
2883
  if (c.err)
2890
2884
  return c;
2891
- var m = Pn(c.val);
2885
+ var m = An(c.val);
2892
2886
  if (m.length === 0)
2893
- return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2894
- var p = b(h, this.clonePosition());
2895
- u = { style: m, styleLocation: p };
2887
+ return this.error(b.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
2888
+ var d = p(h, this.clonePosition());
2889
+ u = { style: m, styleLocation: d };
2896
2890
  }
2897
2891
  var f = this.tryParseArgumentClose(i);
2898
2892
  if (f.err)
2899
2893
  return f;
2900
- var _ = b(i, this.clonePosition());
2901
- if (u && ht(u == null ? void 0 : u.style, "::", 0)) {
2902
- var v = On(u.style.slice(2));
2894
+ var _ = p(i, this.clonePosition());
2895
+ if (u && at(u == null ? void 0 : u.style, "::", 0)) {
2896
+ var v = Sn(u.style.slice(2));
2903
2897
  if (o === "number") {
2904
2898
  var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
2905
2899
  return c.err ? c : {
2906
- val: { type: y.number, value: n, location: _, style: c.val },
2900
+ val: { type: x.number, value: n, location: _, style: c.val },
2907
2901
  err: null
2908
2902
  };
2909
2903
  } else {
2910
2904
  if (v.length === 0)
2911
- return this.error(d.EXPECT_DATE_TIME_SKELETON, _);
2912
- var O = v;
2913
- this.locale && (O = bn(v, this.locale));
2905
+ return this.error(b.EXPECT_DATE_TIME_SKELETON, _);
2906
+ var A = v;
2907
+ this.locale && (A = dn(v, this.locale));
2914
2908
  var m = {
2915
- type: k.dateTime,
2916
- pattern: O,
2909
+ type: j.dateTime,
2910
+ pattern: A,
2917
2911
  location: u.styleLocation,
2918
- parsedOptions: this.shouldParseSkeletons ? hn(O) : {}
2919
- }, P = o === "date" ? y.date : y.time;
2912
+ parsedOptions: this.shouldParseSkeletons ? an(A) : {}
2913
+ }, O = o === "date" ? x.date : x.time;
2920
2914
  return {
2921
- val: { type: P, value: n, location: _, style: m },
2915
+ val: { type: O, value: n, location: _, style: m },
2922
2916
  err: null
2923
2917
  };
2924
2918
  }
2925
2919
  }
2926
2920
  return {
2927
2921
  val: {
2928
- type: o === "number" ? y.number : o === "date" ? y.date : y.time,
2922
+ type: o === "number" ? x.number : o === "date" ? x.date : x.time,
2929
2923
  value: n,
2930
2924
  location: _,
2931
2925
  style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
@@ -2938,50 +2932,50 @@ var Cn = (
2938
2932
  case "select": {
2939
2933
  var H = this.clonePosition();
2940
2934
  if (this.bumpSpace(), !this.bumpIf(","))
2941
- return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, pe({}, H)));
2935
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, p(H, y({}, H)));
2942
2936
  this.bumpSpace();
2943
- var I = this.parseIdentifierIfPossible(), A = 0;
2944
- if (o !== "select" && I.value === "offset") {
2937
+ var N = this.parseIdentifierIfPossible(), S = 0;
2938
+ if (o !== "select" && N.value === "offset") {
2945
2939
  if (!this.bumpIf(":"))
2946
- return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
2940
+ return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
2947
2941
  this.bumpSpace();
2948
- var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2942
+ var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2949
2943
  if (c.err)
2950
2944
  return c;
2951
- this.bumpSpace(), I = this.parseIdentifierIfPossible(), A = c.val;
2945
+ this.bumpSpace(), N = this.parseIdentifierIfPossible(), S = c.val;
2952
2946
  }
2953
- var R = this.tryParsePluralOrSelectOptions(t, o, r, I);
2954
- if (R.err)
2955
- return R;
2947
+ var $ = this.tryParsePluralOrSelectOptions(t, o, r, N);
2948
+ if ($.err)
2949
+ return $;
2956
2950
  var f = this.tryParseArgumentClose(i);
2957
2951
  if (f.err)
2958
2952
  return f;
2959
- var se = b(i, this.clonePosition());
2953
+ var ie = p(i, this.clonePosition());
2960
2954
  return o === "select" ? {
2961
2955
  val: {
2962
- type: y.select,
2956
+ type: x.select,
2963
2957
  value: n,
2964
- options: lt(R.val),
2965
- location: se
2958
+ options: ut($.val),
2959
+ location: ie
2966
2960
  },
2967
2961
  err: null
2968
2962
  } : {
2969
2963
  val: {
2970
- type: y.plural,
2964
+ type: x.plural,
2971
2965
  value: n,
2972
- options: lt(R.val),
2973
- offset: A,
2966
+ options: ut($.val),
2967
+ offset: S,
2974
2968
  pluralType: o === "plural" ? "cardinal" : "ordinal",
2975
- location: se
2969
+ location: ie
2976
2970
  },
2977
2971
  err: null
2978
2972
  };
2979
2973
  }
2980
2974
  default:
2981
- return this.error(d.INVALID_ARGUMENT_TYPE, b(a, l));
2975
+ return this.error(b.INVALID_ARGUMENT_TYPE, p(a, l));
2982
2976
  }
2983
2977
  }, e.prototype.tryParseArgumentClose = function(t) {
2984
- return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2978
+ return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2985
2979
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2986
2980
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2987
2981
  var n = this.char();
@@ -2990,7 +2984,7 @@ var Cn = (
2990
2984
  this.bump();
2991
2985
  var i = this.clonePosition();
2992
2986
  if (!this.bumpUntil("'"))
2993
- return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
2987
+ return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
2994
2988
  this.bump();
2995
2989
  break;
2996
2990
  }
@@ -3020,16 +3014,16 @@ var Cn = (
3020
3014
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3021
3015
  var n = [];
3022
3016
  try {
3023
- n = fn(t);
3017
+ n = hn(t);
3024
3018
  } catch (i) {
3025
- return this.error(d.INVALID_NUMBER_SKELETON, r);
3019
+ return this.error(b.INVALID_NUMBER_SKELETON, r);
3026
3020
  }
3027
3021
  return {
3028
3022
  val: {
3029
- type: k.number,
3023
+ type: j.number,
3030
3024
  tokens: n,
3031
3025
  location: r,
3032
- parsedOptions: this.shouldParseSkeletons ? dn(n) : {}
3026
+ parsedOptions: this.shouldParseSkeletons ? mn(n) : {}
3033
3027
  },
3034
3028
  err: null
3035
3029
  };
@@ -3038,34 +3032,34 @@ var Cn = (
3038
3032
  if (u.length === 0) {
3039
3033
  var c = this.clonePosition();
3040
3034
  if (r !== "select" && this.bumpIf("=")) {
3041
- var m = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
3035
+ var m = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3042
3036
  if (m.err)
3043
3037
  return m;
3044
- h = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3038
+ h = p(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3045
3039
  } else
3046
3040
  break;
3047
3041
  }
3048
3042
  if (l.has(u))
3049
- return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3043
+ return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3050
3044
  u === "other" && (a = !0), this.bumpSpace();
3051
- var p = this.clonePosition();
3045
+ var d = this.clonePosition();
3052
3046
  if (!this.bumpIf("{"))
3053
- return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
3047
+ return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
3054
3048
  var f = this.parseMessage(t + 1, r, n);
3055
3049
  if (f.err)
3056
3050
  return f;
3057
- var _ = this.tryParseArgumentClose(p);
3051
+ var _ = this.tryParseArgumentClose(d);
3058
3052
  if (_.err)
3059
3053
  return _;
3060
3054
  o.push([
3061
3055
  u,
3062
3056
  {
3063
3057
  value: f.val,
3064
- location: b(p, this.clonePosition())
3058
+ location: p(d, this.clonePosition())
3065
3059
  }
3066
3060
  ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
3067
3061
  }
3068
- 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 };
3062
+ return o.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3069
3063
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3070
3064
  var n = 1, i = this.clonePosition();
3071
3065
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3076,8 +3070,8 @@ var Cn = (
3076
3070
  else
3077
3071
  break;
3078
3072
  }
3079
- var l = b(i, this.clonePosition());
3080
- return s ? (a *= n, Sn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3073
+ var l = p(i, this.clonePosition());
3074
+ return s ? (a *= n, Tn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3081
3075
  }, e.prototype.offset = function() {
3082
3076
  return this.position.offset;
3083
3077
  }, e.prototype.isEOF = function() {
@@ -3092,7 +3086,7 @@ var Cn = (
3092
3086
  var t = this.position.offset;
3093
3087
  if (t >= this.message.length)
3094
3088
  throw Error("out of bound");
3095
- var r = zt(this.message, t);
3089
+ var r = Vt(this.message, t);
3096
3090
  if (r === void 0)
3097
3091
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3098
3092
  return r;
@@ -3111,7 +3105,7 @@ var Cn = (
3111
3105
  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);
3112
3106
  }
3113
3107
  }, e.prototype.bumpIf = function(t) {
3114
- if (ht(this.message, t, this.offset())) {
3108
+ if (at(this.message, t, this.offset())) {
3115
3109
  for (var r = 0; r < t.length; r++)
3116
3110
  this.bump();
3117
3111
  return !0;
@@ -3133,7 +3127,7 @@ var Cn = (
3133
3127
  break;
3134
3128
  }
3135
3129
  }, e.prototype.bumpSpace = function() {
3136
- for (; !this.isEOF() && Zt(this.char()); )
3130
+ for (; !this.isEOF() && zt(this.char()); )
3137
3131
  this.bump();
3138
3132
  }, e.prototype.peek = function() {
3139
3133
  if (this.isEOF())
@@ -3143,47 +3137,47 @@ var Cn = (
3143
3137
  }, e;
3144
3138
  }()
3145
3139
  );
3146
- function ke(e) {
3140
+ function Fe(e) {
3147
3141
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3148
3142
  }
3149
- function Ln(e) {
3150
- return ke(e) || e === 47;
3143
+ function Cn(e) {
3144
+ return Fe(e) || e === 47;
3151
3145
  }
3152
- function Nn(e) {
3146
+ function Pn(e) {
3153
3147
  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;
3154
3148
  }
3155
- function Zt(e) {
3149
+ function zt(e) {
3156
3150
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3157
3151
  }
3158
- function In(e) {
3152
+ function Ln(e) {
3159
3153
  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;
3160
3154
  }
3161
- function Ve(e) {
3155
+ function je(e) {
3162
3156
  e.forEach(function(t) {
3163
- if (delete t.location, Ut(t) || Dt(t))
3157
+ if (delete t.location, $t(t) || Rt(t))
3164
3158
  for (var r in t.options)
3165
- delete t.options[r].location, Ve(t.options[r].value);
3159
+ delete t.options[r].location, je(t.options[r].value);
3166
3160
  else
3167
- Mt(t) && Ft(t.style) || ($t(t) || Rt(t)) && De(t.style) ? delete t.style.location : Gt(t) && Ve(t.children);
3161
+ Nt(t) && Dt(t.style) || (It(t) || Mt(t)) && Re(t.style) ? delete t.style.location : Ut(t) && je(t.children);
3168
3162
  });
3169
3163
  }
3170
- function Mn(e, t) {
3171
- t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3172
- var r = new Cn(e, t).parse();
3164
+ function Nn(e, t) {
3165
+ t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3166
+ var r = new On(e, t).parse();
3173
3167
  if (r.err) {
3174
- var n = SyntaxError(d[r.err.kind]);
3168
+ var n = SyntaxError(b[r.err.kind]);
3175
3169
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3176
3170
  }
3177
- return t != null && t.captureLocation || Ve(r.val), r.val;
3171
+ return t != null && t.captureLocation || je(r.val), r.val;
3178
3172
  }
3179
- var V;
3173
+ var k;
3180
3174
  (function(e) {
3181
3175
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3182
- })(V || (V = {}));
3183
- var Ee = (
3176
+ })(k || (k = {}));
3177
+ var _e = (
3184
3178
  /** @class */
3185
3179
  function(e) {
3186
- ye(t, e);
3180
+ ge(t, e);
3187
3181
  function t(r, n, i) {
3188
3182
  var s = e.call(this, r) || this;
3189
3183
  return s.code = n, s.originalMessage = i, s;
@@ -3192,155 +3186,155 @@ var Ee = (
3192
3186
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3193
3187
  }, t;
3194
3188
  }(Error)
3195
- ), ct = (
3189
+ ), lt = (
3196
3190
  /** @class */
3197
3191
  function(e) {
3198
- ye(t, e);
3192
+ ge(t, e);
3199
3193
  function t(r, n, i, s) {
3200
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
3194
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, s) || this;
3201
3195
  }
3202
3196
  return t;
3203
- }(Ee)
3204
- ), $n = (
3197
+ }(_e)
3198
+ ), In = (
3205
3199
  /** @class */
3206
3200
  function(e) {
3207
- ye(t, e);
3201
+ ge(t, e);
3208
3202
  function t(r, n, i) {
3209
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
3203
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), k.INVALID_VALUE, i) || this;
3210
3204
  }
3211
3205
  return t;
3212
- }(Ee)
3213
- ), Rn = (
3206
+ }(_e)
3207
+ ), Mn = (
3214
3208
  /** @class */
3215
3209
  function(e) {
3216
- ye(t, e);
3210
+ ge(t, e);
3217
3211
  function t(r, n) {
3218
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
3212
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), k.MISSING_VALUE, n) || this;
3219
3213
  }
3220
3214
  return t;
3221
- }(Ee)
3222
- ), x;
3215
+ }(_e)
3216
+ ), E;
3223
3217
  (function(e) {
3224
3218
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3225
- })(x || (x = {}));
3226
- function Un(e) {
3219
+ })(E || (E = {}));
3220
+ function $n(e) {
3227
3221
  return e.length < 2 ? e : e.reduce(function(t, r) {
3228
3222
  var n = t[t.length - 1];
3229
- return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
3223
+ return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
3230
3224
  }, []);
3231
3225
  }
3232
- function Dn(e) {
3226
+ function Rn(e) {
3233
3227
  return typeof e == "function";
3234
3228
  }
3235
- function fe(e, t, r, n, i, s, a) {
3236
- if (e.length === 1 && st(e[0]))
3229
+ function le(e, t, r, n, i, s, a) {
3230
+ if (e.length === 1 && nt(e[0]))
3237
3231
  return [
3238
3232
  {
3239
- type: x.literal,
3233
+ type: E.literal,
3240
3234
  value: e[0].value
3241
3235
  }
3242
3236
  ];
3243
3237
  for (var o = [], l = 0, u = e; l < u.length; l++) {
3244
3238
  var h = u[l];
3245
- if (st(h)) {
3239
+ if (nt(h)) {
3246
3240
  o.push({
3247
- type: x.literal,
3241
+ type: E.literal,
3248
3242
  value: h.value
3249
3243
  });
3250
3244
  continue;
3251
3245
  }
3252
- if (an(h)) {
3246
+ if (sn(h)) {
3253
3247
  typeof s == "number" && o.push({
3254
- type: x.literal,
3248
+ type: E.literal,
3255
3249
  value: r.getNumberFormat(t).format(s)
3256
3250
  });
3257
3251
  continue;
3258
3252
  }
3259
3253
  var c = h.value;
3260
3254
  if (!(i && c in i))
3261
- throw new Rn(c, a);
3255
+ throw new Mn(c, a);
3262
3256
  var m = i[c];
3263
- if (on(h)) {
3257
+ if (nn(h)) {
3264
3258
  (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
3265
- type: typeof m == "string" ? x.literal : x.object,
3259
+ type: typeof m == "string" ? E.literal : E.object,
3266
3260
  value: m
3267
3261
  });
3268
3262
  continue;
3269
3263
  }
3270
- if ($t(h)) {
3271
- var p = typeof h.style == "string" ? n.date[h.style] : De(h.style) ? h.style.parsedOptions : void 0;
3264
+ if (It(h)) {
3265
+ var d = typeof h.style == "string" ? n.date[h.style] : Re(h.style) ? h.style.parsedOptions : void 0;
3272
3266
  o.push({
3273
- type: x.literal,
3274
- value: r.getDateTimeFormat(t, p).format(m)
3267
+ type: E.literal,
3268
+ value: r.getDateTimeFormat(t, d).format(m)
3275
3269
  });
3276
3270
  continue;
3277
3271
  }
3278
- if (Rt(h)) {
3279
- var p = typeof h.style == "string" ? n.time[h.style] : De(h.style) ? h.style.parsedOptions : n.time.medium;
3272
+ if (Mt(h)) {
3273
+ var d = typeof h.style == "string" ? n.time[h.style] : Re(h.style) ? h.style.parsedOptions : n.time.medium;
3280
3274
  o.push({
3281
- type: x.literal,
3282
- value: r.getDateTimeFormat(t, p).format(m)
3275
+ type: E.literal,
3276
+ value: r.getDateTimeFormat(t, d).format(m)
3283
3277
  });
3284
3278
  continue;
3285
3279
  }
3286
- if (Mt(h)) {
3287
- var p = typeof h.style == "string" ? n.number[h.style] : Ft(h.style) ? h.style.parsedOptions : void 0;
3288
- p && p.scale && (m = m * (p.scale || 1)), o.push({
3289
- type: x.literal,
3290
- value: r.getNumberFormat(t, p).format(m)
3280
+ if (Nt(h)) {
3281
+ var d = typeof h.style == "string" ? n.number[h.style] : Dt(h.style) ? h.style.parsedOptions : void 0;
3282
+ d && d.scale && (m = m * (d.scale || 1)), o.push({
3283
+ type: E.literal,
3284
+ value: r.getNumberFormat(t, d).format(m)
3291
3285
  });
3292
3286
  continue;
3293
3287
  }
3294
- if (Gt(h)) {
3288
+ if (Ut(h)) {
3295
3289
  var f = h.children, _ = h.value, v = i[_];
3296
- if (!Dn(v))
3297
- throw new $n(_, "function", a);
3298
- var O = fe(f, t, r, n, i, s), P = v(O.map(function(A) {
3299
- return A.value;
3290
+ if (!Rn(v))
3291
+ throw new In(_, "function", a);
3292
+ var A = le(f, t, r, n, i, s), O = v(A.map(function(S) {
3293
+ return S.value;
3300
3294
  }));
3301
- Array.isArray(P) || (P = [P]), o.push.apply(o, P.map(function(A) {
3295
+ Array.isArray(O) || (O = [O]), o.push.apply(o, O.map(function(S) {
3302
3296
  return {
3303
- type: typeof A == "string" ? x.literal : x.object,
3304
- value: A
3297
+ type: typeof S == "string" ? E.literal : E.object,
3298
+ value: S
3305
3299
  };
3306
3300
  }));
3307
3301
  }
3308
- if (Ut(h)) {
3302
+ if ($t(h)) {
3309
3303
  var H = h.options[m] || h.options.other;
3310
3304
  if (!H)
3311
- throw new ct(h.value, m, Object.keys(h.options), a);
3312
- o.push.apply(o, fe(H.value, t, r, n, i));
3305
+ throw new lt(h.value, m, Object.keys(h.options), a);
3306
+ o.push.apply(o, le(H.value, t, r, n, i));
3313
3307
  continue;
3314
3308
  }
3315
- if (Dt(h)) {
3309
+ if (Rt(h)) {
3316
3310
  var H = h.options["=".concat(m)];
3317
3311
  if (!H) {
3318
3312
  if (!Intl.PluralRules)
3319
- throw new Ee(`Intl.PluralRules is not available in this environment.
3313
+ throw new _e(`Intl.PluralRules is not available in this environment.
3320
3314
  Try polyfilling it using "@formatjs/intl-pluralrules"
3321
- `, V.MISSING_INTL_API, a);
3322
- var I = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
3323
- H = h.options[I] || h.options.other;
3315
+ `, k.MISSING_INTL_API, a);
3316
+ var N = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
3317
+ H = h.options[N] || h.options.other;
3324
3318
  }
3325
3319
  if (!H)
3326
- throw new ct(h.value, m, Object.keys(h.options), a);
3327
- o.push.apply(o, fe(H.value, t, r, n, i, m - (h.offset || 0)));
3320
+ throw new lt(h.value, m, Object.keys(h.options), a);
3321
+ o.push.apply(o, le(H.value, t, r, n, i, m - (h.offset || 0)));
3328
3322
  continue;
3329
3323
  }
3330
3324
  }
3331
- return Un(o);
3325
+ return $n(o);
3332
3326
  }
3333
- function Gn(e, t) {
3334
- return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3335
- return r[n] = S(S({}, e[n]), t[n] || {}), r;
3327
+ function Un(e, t) {
3328
+ return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3329
+ return r[n] = y(y({}, e[n]), t[n] || {}), r;
3336
3330
  }, {})) : e;
3337
3331
  }
3338
- function Fn(e, t) {
3332
+ function Dn(e, t) {
3339
3333
  return t ? Object.keys(e).reduce(function(r, n) {
3340
- return r[n] = Gn(e[n], t[n]), r;
3341
- }, S({}, e)) : e;
3334
+ return r[n] = Un(e[n], t[n]), r;
3335
+ }, y({}, e)) : e;
3342
3336
  }
3343
- function Ne(e) {
3337
+ function Pe(e) {
3344
3338
  return {
3345
3339
  create: function() {
3346
3340
  return {
@@ -3354,39 +3348,39 @@ function Ne(e) {
3354
3348
  }
3355
3349
  };
3356
3350
  }
3357
- function jn(e) {
3351
+ function Gn(e) {
3358
3352
  return e === void 0 && (e = {
3359
3353
  number: {},
3360
3354
  dateTime: {},
3361
3355
  pluralRules: {}
3362
3356
  }), {
3363
- getNumberFormat: Pe(function() {
3357
+ getNumberFormat: Ae(function() {
3364
3358
  for (var t, r = [], n = 0; n < arguments.length; n++)
3365
3359
  r[n] = arguments[n];
3366
- return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
3360
+ return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
3367
3361
  }, {
3368
- cache: Ne(e.number),
3369
- strategy: Ce.variadic
3362
+ cache: Pe(e.number),
3363
+ strategy: Oe.variadic
3370
3364
  }),
3371
- getDateTimeFormat: Pe(function() {
3365
+ getDateTimeFormat: Ae(function() {
3372
3366
  for (var t, r = [], n = 0; n < arguments.length; n++)
3373
3367
  r[n] = arguments[n];
3374
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
3368
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
3375
3369
  }, {
3376
- cache: Ne(e.dateTime),
3377
- strategy: Ce.variadic
3370
+ cache: Pe(e.dateTime),
3371
+ strategy: Oe.variadic
3378
3372
  }),
3379
- getPluralRules: Pe(function() {
3373
+ getPluralRules: Ae(function() {
3380
3374
  for (var t, r = [], n = 0; n < arguments.length; n++)
3381
3375
  r[n] = arguments[n];
3382
- return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
3376
+ return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
3383
3377
  }, {
3384
- cache: Ne(e.pluralRules),
3385
- strategy: Ce.variadic
3378
+ cache: Pe(e.pluralRules),
3379
+ strategy: Oe.variadic
3386
3380
  })
3387
3381
  };
3388
3382
  }
3389
- var Qt = (
3383
+ var Wt = (
3390
3384
  /** @class */
3391
3385
  function() {
3392
3386
  function e(t, r, n, i) {
@@ -3401,11 +3395,11 @@ var Qt = (
3401
3395
  if (u.length === 1)
3402
3396
  return u[0].value;
3403
3397
  var h = u.reduce(function(c, m) {
3404
- return !c.length || m.type !== x.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
3398
+ return !c.length || m.type !== E.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
3405
3399
  }, []);
3406
3400
  return h.length <= 1 ? h[0] || "" : h;
3407
3401
  }, this.formatToParts = function(l) {
3408
- return fe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3402
+ return le(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3409
3403
  }, this.resolvedOptions = function() {
3410
3404
  var l;
3411
3405
  return {
@@ -3418,13 +3412,13 @@ var Qt = (
3418
3412
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3419
3413
  var a = i || {};
3420
3414
  a.formatters;
3421
- var o = Jr(a, ["formatters"]);
3422
- this.ast = e.__parse(t, S(S({}, o), { locale: this.resolvedLocale }));
3415
+ var o = Qr(a, ["formatters"]);
3416
+ this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
3423
3417
  } else
3424
3418
  this.ast = t;
3425
3419
  if (!Array.isArray(this.ast))
3426
3420
  throw new TypeError("A message must be provided as a String or AST.");
3427
- this.formats = Fn(e.formats, n), this.formatters = i && i.formatters || jn(this.formatterCache);
3421
+ this.formats = Dn(e.formats, n), this.formatters = i && i.formatters || Gn(this.formatterCache);
3428
3422
  }
3429
3423
  return Object.defineProperty(e, "defaultLocale", {
3430
3424
  get: function() {
@@ -3437,7 +3431,7 @@ var Qt = (
3437
3431
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3438
3432
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3439
3433
  }
3440
- }, e.__parse = Mn, e.formats = {
3434
+ }, e.__parse = Nn, e.formats = {
3441
3435
  number: {
3442
3436
  integer: {
3443
3437
  maximumFractionDigits: 0
@@ -3498,7 +3492,7 @@ var Qt = (
3498
3492
  }, e;
3499
3493
  }()
3500
3494
  );
3501
- function kn(e, t) {
3495
+ function Fn(e, t) {
3502
3496
  if (t == null)
3503
3497
  return;
3504
3498
  if (t in e)
@@ -3519,101 +3513,101 @@ function kn(e, t) {
3519
3513
  n = void 0;
3520
3514
  return n;
3521
3515
  }
3522
- const C = {}, Vn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), qt = (e, t) => {
3516
+ const C = {}, jn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Zt = (e, t) => {
3523
3517
  if (t == null)
3524
3518
  return;
3525
3519
  if (t in C && e in C[t])
3526
3520
  return C[t][e];
3527
- const r = ie(t);
3521
+ const r = ne(t);
3528
3522
  for (let n = 0; n < r.length; n++) {
3529
- const i = r[n], s = zn(i, e);
3523
+ const i = r[n], s = Vn(i, e);
3530
3524
  if (s)
3531
- return Vn(e, t, s);
3525
+ return jn(e, t, s);
3532
3526
  }
3533
3527
  };
3534
- let Ze;
3535
- const ne = _e({});
3536
- function Xn(e) {
3537
- return Ze[e] || null;
3528
+ let ze;
3529
+ const re = pe({});
3530
+ function kn(e) {
3531
+ return ze[e] || null;
3538
3532
  }
3539
- function Jt(e) {
3540
- return e in Ze;
3533
+ function Qt(e) {
3534
+ return e in ze;
3541
3535
  }
3542
- function zn(e, t) {
3543
- if (!Jt(e))
3536
+ function Vn(e, t) {
3537
+ if (!Qt(e))
3544
3538
  return null;
3545
- const r = Xn(e);
3546
- return kn(r, t);
3539
+ const r = kn(e);
3540
+ return Fn(r, t);
3547
3541
  }
3548
- function Wn(e) {
3542
+ function Xn(e) {
3549
3543
  if (e == null)
3550
3544
  return;
3551
- const t = ie(e);
3545
+ const t = ne(e);
3552
3546
  for (let r = 0; r < t.length; r++) {
3553
3547
  const n = t[r];
3554
- if (Jt(n))
3548
+ if (Qt(n))
3555
3549
  return n;
3556
3550
  }
3557
3551
  }
3558
- function Yt(e, ...t) {
3559
- delete C[e], ne.update((r) => (r[e] = qr.all([r[e] || {}, ...t]), r));
3552
+ function qt(e, ...t) {
3553
+ delete C[e], re.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
3560
3554
  }
3561
- Z(
3562
- [ne],
3555
+ W(
3556
+ [re],
3563
3557
  ([e]) => Object.keys(e)
3564
3558
  );
3565
- ne.subscribe((e) => Ze = e);
3566
- const ce = {};
3567
- function Zn(e, t) {
3568
- ce[e].delete(t), ce[e].size === 0 && delete ce[e];
3559
+ re.subscribe((e) => ze = e);
3560
+ const fe = {};
3561
+ function zn(e, t) {
3562
+ fe[e].delete(t), fe[e].size === 0 && delete fe[e];
3569
3563
  }
3570
- function Kt(e) {
3571
- return ce[e];
3564
+ function Jt(e) {
3565
+ return fe[e];
3572
3566
  }
3573
- function Qn(e) {
3574
- return ie(e).map((t) => {
3575
- const r = Kt(t);
3567
+ function Wn(e) {
3568
+ return ne(e).map((t) => {
3569
+ const r = Jt(t);
3576
3570
  return [t, r ? [...r] : []];
3577
3571
  }).filter(([, t]) => t.length > 0);
3578
3572
  }
3579
- function de(e) {
3580
- return e == null ? !1 : ie(e).some(
3573
+ function me(e) {
3574
+ return e == null ? !1 : ne(e).some(
3581
3575
  (t) => {
3582
3576
  var r;
3583
- return (r = Kt(t)) == null ? void 0 : r.size;
3577
+ return (r = Jt(t)) == null ? void 0 : r.size;
3584
3578
  }
3585
3579
  );
3586
3580
  }
3587
- function qn(e, t) {
3581
+ function Zn(e, t) {
3588
3582
  return Promise.all(
3589
- t.map((n) => (Zn(e, n), n().then((i) => i.default || i)))
3590
- ).then((n) => Yt(e, ...n));
3591
- }
3592
- const q = {};
3593
- function er(e) {
3594
- if (!de(e))
3595
- return e in q ? q[e] : Promise.resolve();
3596
- const t = Qn(e);
3597
- return q[e] = Promise.all(
3583
+ t.map((n) => (zn(e, n), n().then((i) => i.default || i)))
3584
+ ).then((n) => qt(e, ...n));
3585
+ }
3586
+ const Q = {};
3587
+ function Yt(e) {
3588
+ if (!me(e))
3589
+ return e in Q ? Q[e] : Promise.resolve();
3590
+ const t = Wn(e);
3591
+ return Q[e] = Promise.all(
3598
3592
  t.map(
3599
- ([r, n]) => qn(r, n)
3593
+ ([r, n]) => Zn(r, n)
3600
3594
  )
3601
3595
  ).then(() => {
3602
- if (de(e))
3603
- return er(e);
3604
- delete q[e];
3605
- }), q[e];
3596
+ if (me(e))
3597
+ return Yt(e);
3598
+ delete Q[e];
3599
+ }), Q[e];
3606
3600
  }
3607
- var mt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, Kn = (e, t) => {
3601
+ var ft = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, qn = Object.prototype.propertyIsEnumerable, Jn = (e, t) => {
3608
3602
  var r = {};
3609
3603
  for (var n in e)
3610
- Jn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3611
- if (e != null && mt)
3612
- for (var n of mt(e))
3613
- t.indexOf(n) < 0 && Yn.call(e, n) && (r[n] = e[n]);
3604
+ Qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3605
+ if (e != null && ft)
3606
+ for (var n of ft(e))
3607
+ t.indexOf(n) < 0 && qn.call(e, n) && (r[n] = e[n]);
3614
3608
  return r;
3615
3609
  };
3616
- const ei = {
3610
+ const Yn = {
3617
3611
  number: {
3618
3612
  scientific: { notation: "scientific" },
3619
3613
  engineering: { notation: "engineering" },
@@ -3643,174 +3637,174 @@ const ei = {
3643
3637
  }
3644
3638
  }
3645
3639
  };
3646
- function ti({ locale: e, id: t }) {
3640
+ function Kn({ locale: e, id: t }) {
3647
3641
  console.warn(
3648
- `[svelte-i18n] The message "${t}" was not found in "${ie(
3642
+ `[svelte-i18n] The message "${t}" was not found in "${ne(
3649
3643
  e
3650
- ).join('", "')}".${de(N()) ? `
3644
+ ).join('", "')}".${me(L()) ? `
3651
3645
 
3652
3646
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3653
3647
  );
3654
3648
  }
3655
- const ri = {
3649
+ const ei = {
3656
3650
  fallbackLocale: null,
3657
3651
  loadingDelay: 200,
3658
- formats: ei,
3652
+ formats: Yn,
3659
3653
  warnOnMissingMessages: !0,
3660
3654
  handleMissingMessage: void 0,
3661
3655
  ignoreTag: !0
3662
- }, J = ri;
3663
- function X() {
3664
- return J;
3656
+ }, q = ei;
3657
+ function V() {
3658
+ return q;
3665
3659
  }
3666
- function ni(e) {
3667
- const t = e, { formats: r } = t, n = Kn(t, ["formats"]);
3660
+ function ti(e) {
3661
+ const t = e, { formats: r } = t, n = Jn(t, ["formats"]);
3668
3662
  let i = e.fallbackLocale;
3669
3663
  if (e.initialLocale)
3670
3664
  try {
3671
- Qt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3665
+ Wt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3672
3666
  } catch (s) {
3673
3667
  console.warn(
3674
3668
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3675
3669
  );
3676
3670
  }
3677
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ti : console.warn(
3671
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Kn : console.warn(
3678
3672
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3679
- )), Object.assign(J, n, { initialLocale: i }), r && ("number" in r && Object.assign(J.formats.number, r.number), "date" in r && Object.assign(J.formats.date, r.date), "time" in r && Object.assign(J.formats.time, r.time)), $.set(i);
3673
+ )), 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)), M.set(i);
3680
3674
  }
3681
- const Ie = _e(!1);
3682
- var ii = Object.defineProperty, si = Object.defineProperties, oi = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, ai = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hi = (e, t) => {
3675
+ const Le = pe(!1);
3676
+ var ri = Object.defineProperty, ni = Object.defineProperties, ii = Object.getOwnPropertyDescriptors, ct = Object.getOwnPropertySymbols, si = Object.prototype.hasOwnProperty, oi = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ai = (e, t) => {
3683
3677
  for (var r in t || (t = {}))
3684
- ai.call(t, r) && dt(e, r, t[r]);
3685
- if (pt)
3686
- for (var r of pt(t))
3687
- ui.call(t, r) && dt(e, r, t[r]);
3678
+ si.call(t, r) && mt(e, r, t[r]);
3679
+ if (ct)
3680
+ for (var r of ct(t))
3681
+ oi.call(t, r) && mt(e, r, t[r]);
3688
3682
  return e;
3689
- }, li = (e, t) => si(e, oi(t));
3690
- let Xe;
3691
- const be = _e(null);
3692
- function bt(e) {
3683
+ }, ui = (e, t) => ni(e, ii(t));
3684
+ let ke;
3685
+ const de = pe(null);
3686
+ function dt(e) {
3693
3687
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3694
3688
  }
3695
- function ie(e, t = X().fallbackLocale) {
3696
- const r = bt(e);
3697
- return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
3689
+ function ne(e, t = V().fallbackLocale) {
3690
+ const r = dt(e);
3691
+ return t ? [.../* @__PURE__ */ new Set([...r, ...dt(t)])] : r;
3698
3692
  }
3699
- function N() {
3700
- return Xe != null ? Xe : void 0;
3693
+ function L() {
3694
+ return ke != null ? ke : void 0;
3701
3695
  }
3702
- be.subscribe((e) => {
3703
- Xe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3696
+ de.subscribe((e) => {
3697
+ ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3704
3698
  });
3705
- const fi = (e) => {
3706
- if (e && Wn(e) && de(e)) {
3707
- const { loadingDelay: t } = X();
3699
+ const hi = (e) => {
3700
+ if (e && Xn(e) && me(e)) {
3701
+ const { loadingDelay: t } = V();
3708
3702
  let r;
3709
- return typeof window != "undefined" && N() != null && t ? r = window.setTimeout(
3710
- () => Ie.set(!0),
3703
+ return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
3704
+ () => Le.set(!0),
3711
3705
  t
3712
- ) : Ie.set(!0), er(e).then(() => {
3713
- be.set(e);
3706
+ ) : Le.set(!0), Yt(e).then(() => {
3707
+ de.set(e);
3714
3708
  }).finally(() => {
3715
- clearTimeout(r), Ie.set(!1);
3709
+ clearTimeout(r), Le.set(!1);
3716
3710
  });
3717
3711
  }
3718
- return be.set(e);
3719
- }, $ = li(hi({}, be), {
3720
- set: fi
3721
- }), xe = (e) => {
3712
+ return de.set(e);
3713
+ }, M = ui(ai({}, de), {
3714
+ set: hi
3715
+ }), ye = (e) => {
3722
3716
  const t = /* @__PURE__ */ Object.create(null);
3723
3717
  return (n) => {
3724
3718
  const i = JSON.stringify(n);
3725
3719
  return i in t ? t[i] : t[i] = e(n);
3726
3720
  };
3727
3721
  };
3728
- var ci = Object.defineProperty, ge = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
3722
+ var li = Object.defineProperty, be = Object.getOwnPropertySymbols, Kt = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
3729
3723
  for (var r in t || (t = {}))
3730
- tr.call(t, r) && gt(e, r, t[r]);
3731
- if (ge)
3732
- for (var r of ge(t))
3733
- rr.call(t, r) && gt(e, r, t[r]);
3724
+ Kt.call(t, r) && bt(e, r, t[r]);
3725
+ if (be)
3726
+ for (var r of be(t))
3727
+ er.call(t, r) && bt(e, r, t[r]);
3734
3728
  return e;
3735
- }, Q = (e, t) => {
3729
+ }, Z = (e, t) => {
3736
3730
  var r = {};
3737
3731
  for (var n in e)
3738
- tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3739
- if (e != null && ge)
3740
- for (var n of ge(e))
3741
- t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
3732
+ Kt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3733
+ if (e != null && be)
3734
+ for (var n of be(e))
3735
+ t.indexOf(n) < 0 && er.call(e, n) && (r[n] = e[n]);
3742
3736
  return r;
3743
3737
  };
3744
- const te = (e, t) => {
3745
- const { formats: r } = X();
3738
+ const ee = (e, t) => {
3739
+ const { formats: r } = V();
3746
3740
  if (e in r && t in r[e])
3747
3741
  return r[e][t];
3748
3742
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3749
- }, mi = xe(
3743
+ }, fi = ye(
3750
3744
  (e) => {
3751
- var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3745
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3752
3746
  if (r == null)
3753
3747
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3754
- return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
3748
+ return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
3755
3749
  }
3756
- ), pi = xe(
3750
+ ), ci = ye(
3757
3751
  (e) => {
3758
- var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3752
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3759
3753
  if (r == null)
3760
3754
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3761
- return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
3755
+ return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
3762
3756
  }
3763
- ), di = xe(
3757
+ ), mi = ye(
3764
3758
  (e) => {
3765
- var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3759
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3766
3760
  if (r == null)
3767
3761
  throw new Error(
3768
3762
  '[svelte-i18n] A "locale" must be set to format time values'
3769
3763
  );
3770
- return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
3764
+ return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
3771
3765
  }
3772
- ), bi = (e = {}) => {
3766
+ ), di = (e = {}) => {
3773
3767
  var t = e, {
3774
- locale: r = N()
3775
- } = t, n = Q(t, [
3768
+ locale: r = L()
3769
+ } = t, n = Z(t, [
3776
3770
  "locale"
3777
3771
  ]);
3778
- return mi(Qe({ locale: r }, n));
3779
- }, gi = (e = {}) => {
3772
+ return fi(We({ locale: r }, n));
3773
+ }, bi = (e = {}) => {
3780
3774
  var t = e, {
3781
- locale: r = N()
3782
- } = t, n = Q(t, [
3775
+ locale: r = L()
3776
+ } = t, n = Z(t, [
3783
3777
  "locale"
3784
3778
  ]);
3785
- return pi(Qe({ locale: r }, n));
3786
- }, _i = (e = {}) => {
3779
+ return ci(We({ locale: r }, n));
3780
+ }, pi = (e = {}) => {
3787
3781
  var t = e, {
3788
- locale: r = N()
3789
- } = t, n = Q(t, [
3782
+ locale: r = L()
3783
+ } = t, n = Z(t, [
3790
3784
  "locale"
3791
3785
  ]);
3792
- return di(Qe({ locale: r }, n));
3793
- }, yi = xe(
3786
+ return mi(We({ locale: r }, n));
3787
+ }, gi = ye(
3794
3788
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3795
- (e, t = N()) => new Qt(e, t, X().formats, {
3796
- ignoreTag: X().ignoreTag
3789
+ (e, t = L()) => new Wt(e, t, V().formats, {
3790
+ ignoreTag: V().ignoreTag
3797
3791
  })
3798
- ), Ei = (e, t = {}) => {
3792
+ ), _i = (e, t = {}) => {
3799
3793
  var r, n, i, s;
3800
3794
  let a = t;
3801
3795
  typeof e == "object" && (a = e, e = a.id);
3802
3796
  const {
3803
3797
  values: o,
3804
- locale: l = N(),
3798
+ locale: l = L(),
3805
3799
  default: u
3806
3800
  } = a;
3807
3801
  if (l == null)
3808
3802
  throw new Error(
3809
3803
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3810
3804
  );
3811
- let h = qt(e, l);
3805
+ let h = Zt(e, l);
3812
3806
  if (!h)
3813
- h = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3807
+ h = (s = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3814
3808
  else if (typeof h != "string")
3815
3809
  return console.warn(
3816
3810
  `[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.`
@@ -3819,7 +3813,7 @@ const te = (e, t) => {
3819
3813
  return h;
3820
3814
  let c = h;
3821
3815
  try {
3822
- c = yi(h, l).format(o);
3816
+ c = gi(h, l).format(o);
3823
3817
  } catch (m) {
3824
3818
  m instanceof Error && console.warn(
3825
3819
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3827,18 +3821,18 @@ const te = (e, t) => {
3827
3821
  );
3828
3822
  }
3829
3823
  return c;
3830
- }, xi = (e, t) => _i(t).format(e), vi = (e, t) => gi(t).format(e), Hi = (e, t) => bi(t).format(e), Bi = (e, t = N()) => qt(e, t), Ti = Z([$, ne], () => Ei);
3831
- Z([$], () => xi);
3832
- Z([$], () => vi);
3833
- Z([$], () => Hi);
3834
- Z([$, ne], () => Bi);
3835
- function wi(e, t) {
3824
+ }, yi = (e, t) => pi(t).format(e), xi = (e, t) => bi(t).format(e), Ei = (e, t) => di(t).format(e), vi = (e, t = L()) => Zt(e, t), Hi = W([M, re], () => _i);
3825
+ W([M], () => yi);
3826
+ W([M], () => xi);
3827
+ W([M], () => Ei);
3828
+ W([M, re], () => vi);
3829
+ function Bi(e, t) {
3836
3830
  if (e) {
3837
3831
  const r = document.createElement("style");
3838
3832
  r.innerHTML = t, e.appendChild(r);
3839
3833
  }
3840
3834
  }
3841
- function Si(e, t) {
3835
+ function Ti(e, t) {
3842
3836
  const r = new URL(t);
3843
3837
  fetch(r.href).then((n) => n.text()).then((n) => {
3844
3838
  const i = document.createElement("style");
@@ -3847,7 +3841,7 @@ function Si(e, t) {
3847
3841
  console.error("There was an error while trying to load client styling from URL", n);
3848
3842
  });
3849
3843
  }
3850
- function Ai(e, t, r) {
3844
+ function wi(e, t, r) {
3851
3845
  if (window.emMessageBus) {
3852
3846
  const n = document.createElement("style");
3853
3847
  window.emMessageBus.subscribe(t, (i) => {
@@ -3855,15 +3849,15 @@ function Ai(e, t, r) {
3855
3849
  });
3856
3850
  }
3857
3851
  }
3858
- function _t(e, t) {
3859
- Yt(e, t);
3852
+ function pt(e, t) {
3853
+ qt(e, t);
3860
3854
  }
3861
- function Oi(e) {
3862
- ni({
3855
+ function Si(e) {
3856
+ ti({
3863
3857
  fallbackLocale: "en"
3864
- }), $.set(e);
3858
+ }), M.set(e);
3865
3859
  }
3866
- const yt = {
3860
+ const gt = {
3867
3861
  en: {
3868
3862
  header: {
3869
3863
  general: "Cashier",
@@ -3886,18 +3880,18 @@ const yt = {
3886
3880
  }
3887
3881
  }
3888
3882
  };
3889
- function Pi(e) {
3890
- pr(e, "svelte-brbf89", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);width:100%;padding:10px 0}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #3854FF)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #3854FF)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #3854FF);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;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;stroke:var(--emw--color-primary, #3854FF)}");
3883
+ function Ai(e) {
3884
+ cr(e, "svelte-brbf89", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);width:100%;padding:10px 0}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #3854FF)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #3854FF)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #3854FF);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;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;stroke:var(--emw--color-primary, #3854FF)}");
3891
3885
  }
3892
- const Ci = (e) => ({}), Et = (e) => ({}), Li = (e) => ({}), xt = (e) => ({}), Ni = (e) => ({}), vt = (e) => ({});
3893
- function Ht(e) {
3886
+ const Oi = (e) => ({}), _t = (e) => ({}), Ci = (e) => ({}), yt = (e) => ({}), Pi = (e) => ({}), xt = (e) => ({});
3887
+ function Et(e) {
3894
3888
  let t, r, n;
3895
3889
  return {
3896
3890
  c() {
3897
- t = z("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', W(t, "class", "CashierHeaderLeftButton");
3891
+ t = X("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', z(t, "class", "CashierHeaderLeftButton");
3898
3892
  },
3899
3893
  m(i, s) {
3900
- M(i, t, s), r || (n = Pt(
3894
+ I(i, t, s), r || (n = At(
3901
3895
  t,
3902
3896
  "click",
3903
3897
  /*back*/
@@ -3906,32 +3900,32 @@ function Ht(e) {
3906
3900
  },
3907
3901
  p: T,
3908
3902
  d(i) {
3909
- i && L(t), r = !1, n();
3903
+ i && P(t), r = !1, n();
3910
3904
  }
3911
3905
  };
3912
3906
  }
3913
- function Ii(e) {
3907
+ function Li(e) {
3914
3908
  let t, r = (
3915
3909
  /*backButton*/
3916
- e[1] && Ht(e)
3910
+ e[1] && Et(e)
3917
3911
  );
3918
3912
  return {
3919
3913
  c() {
3920
- r && r.c(), t = Ot();
3914
+ r && r.c(), t = St();
3921
3915
  },
3922
3916
  m(n, i) {
3923
- r && r.m(n, i), M(n, t, i);
3917
+ r && r.m(n, i), I(n, t, i);
3924
3918
  },
3925
3919
  p(n, i) {
3926
3920
  /*backButton*/
3927
- n[1] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3921
+ n[1] ? r ? r.p(n, i) : (r = Et(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3928
3922
  },
3929
3923
  d(n) {
3930
- n && L(t), r && r.d(n);
3924
+ n && P(t), r && r.d(n);
3931
3925
  }
3932
3926
  };
3933
3927
  }
3934
- function Mi(e) {
3928
+ function Ni(e) {
3935
3929
  let t, r = (
3936
3930
  /*$_*/
3937
3931
  e[4](
@@ -3941,10 +3935,10 @@ function Mi(e) {
3941
3935
  ), n;
3942
3936
  return {
3943
3937
  c() {
3944
- t = z("span"), n = We(r), W(t, "class", "CashierHeaderTitle");
3938
+ t = X("span"), n = Xe(r), z(t, "class", "CashierHeaderTitle");
3945
3939
  },
3946
3940
  m(i, s) {
3947
- M(i, t, s), me(t, n);
3941
+ I(i, t, s), ce(t, n);
3948
3942
  },
3949
3943
  p(i, s) {
3950
3944
  s & /*$_, titleText*/
@@ -3952,21 +3946,21 @@ function Mi(e) {
3952
3946
  i[4](
3953
3947
  /*titleText*/
3954
3948
  i[2]
3955
- ) + "") && _r(n, r);
3949
+ ) + "") && pr(n, r);
3956
3950
  },
3957
3951
  d(i) {
3958
- i && L(t);
3952
+ i && P(t);
3959
3953
  }
3960
3954
  };
3961
3955
  }
3962
- function Bt(e) {
3956
+ function vt(e) {
3963
3957
  let t, r, n;
3964
3958
  return {
3965
3959
  c() {
3966
- t = z("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', W(t, "class", "CashierHeaderRightButton");
3960
+ t = X("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', z(t, "class", "CashierHeaderRightButton");
3967
3961
  },
3968
3962
  m(i, s) {
3969
- M(i, t, s), r || (n = Pt(
3963
+ I(i, t, s), r || (n = At(
3970
3964
  t,
3971
3965
  "click",
3972
3966
  /*close*/
@@ -3975,195 +3969,195 @@ function Bt(e) {
3975
3969
  },
3976
3970
  p: T,
3977
3971
  d(i) {
3978
- i && L(t), r = !1, n();
3972
+ i && P(t), r = !1, n();
3979
3973
  }
3980
3974
  };
3981
3975
  }
3982
- function $i(e) {
3976
+ function Ii(e) {
3983
3977
  let t, r = (
3984
3978
  /*closeButton*/
3985
- e[3] && Bt(e)
3979
+ e[3] && vt(e)
3986
3980
  );
3987
3981
  return {
3988
3982
  c() {
3989
- r && r.c(), t = Ot();
3983
+ r && r.c(), t = St();
3990
3984
  },
3991
3985
  m(n, i) {
3992
- r && r.m(n, i), M(n, t, i);
3986
+ r && r.m(n, i), I(n, t, i);
3993
3987
  },
3994
3988
  p(n, i) {
3995
3989
  /*closeButton*/
3996
- n[3] ? r ? r.p(n, i) : (r = Bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3990
+ n[3] ? r ? r.p(n, i) : (r = vt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3997
3991
  },
3998
3992
  d(n) {
3999
- n && L(t), r && r.d(n);
3993
+ n && P(t), r && r.d(n);
4000
3994
  }
4001
3995
  };
4002
3996
  }
4003
- function Ri(e) {
3997
+ function Mi(e) {
4004
3998
  let t, r, n, i;
4005
3999
  const s = (
4006
4000
  /*#slots*/
4007
4001
  e[16].leftButton
4008
- ), a = He(
4002
+ ), a = Ee(
4009
4003
  s,
4010
4004
  e,
4011
4005
  /*$$scope*/
4012
4006
  e[15],
4013
- vt
4014
- ), o = a || Ii(e), l = (
4007
+ xt
4008
+ ), o = a || Li(e), l = (
4015
4009
  /*#slots*/
4016
4010
  e[16].title
4017
- ), u = He(
4011
+ ), u = Ee(
4018
4012
  l,
4019
4013
  e,
4020
4014
  /*$$scope*/
4021
4015
  e[15],
4022
- xt
4023
- ), h = u || Mi(e), c = (
4016
+ yt
4017
+ ), h = u || Ni(e), c = (
4024
4018
  /*#slots*/
4025
4019
  e[16].rightButton
4026
- ), m = He(
4020
+ ), m = Ee(
4027
4021
  c,
4028
4022
  e,
4029
4023
  /*$$scope*/
4030
4024
  e[15],
4031
- Et
4032
- ), p = m || $i(e);
4025
+ _t
4026
+ ), d = m || Ii(e);
4033
4027
  return {
4034
4028
  c() {
4035
- t = z("div"), o && o.c(), r = rt(), h && h.c(), n = rt(), p && p.c(), W(t, "class", "CashierHeader");
4029
+ t = X("div"), o && o.c(), r = et(), h && h.c(), n = et(), d && d.c(), z(t, "class", "CashierHeader");
4036
4030
  },
4037
4031
  m(f, _) {
4038
- M(f, t, _), o && o.m(t, null), me(t, r), h && h.m(t, null), me(t, n), p && p.m(t, null), e[17](t), i = !0;
4032
+ I(f, t, _), o && o.m(t, null), ce(t, r), h && h.m(t, null), ce(t, n), d && d.m(t, null), e[17](t), i = !0;
4039
4033
  },
4040
4034
  p(f, [_]) {
4041
4035
  a ? a.p && (!i || _ & /*$$scope*/
4042
- 32768) && Te(
4036
+ 32768) && He(
4043
4037
  a,
4044
4038
  s,
4045
4039
  f,
4046
4040
  /*$$scope*/
4047
4041
  f[15],
4048
- i ? Be(
4042
+ i ? ve(
4049
4043
  s,
4050
4044
  /*$$scope*/
4051
4045
  f[15],
4052
4046
  _,
4053
- Ni
4054
- ) : we(
4047
+ Pi
4048
+ ) : Be(
4055
4049
  /*$$scope*/
4056
4050
  f[15]
4057
4051
  ),
4058
- vt
4052
+ xt
4059
4053
  ) : o && o.p && (!i || _ & /*backButton*/
4060
4054
  2) && o.p(f, i ? _ : -1), u ? u.p && (!i || _ & /*$$scope*/
4061
- 32768) && Te(
4055
+ 32768) && He(
4062
4056
  u,
4063
4057
  l,
4064
4058
  f,
4065
4059
  /*$$scope*/
4066
4060
  f[15],
4067
- i ? Be(
4061
+ i ? ve(
4068
4062
  l,
4069
4063
  /*$$scope*/
4070
4064
  f[15],
4071
4065
  _,
4072
- Li
4073
- ) : we(
4066
+ Ci
4067
+ ) : Be(
4074
4068
  /*$$scope*/
4075
4069
  f[15]
4076
4070
  ),
4077
- xt
4071
+ yt
4078
4072
  ) : h && h.p && (!i || _ & /*$_, titleText*/
4079
4073
  20) && h.p(f, i ? _ : -1), m ? m.p && (!i || _ & /*$$scope*/
4080
- 32768) && Te(
4074
+ 32768) && He(
4081
4075
  m,
4082
4076
  c,
4083
4077
  f,
4084
4078
  /*$$scope*/
4085
4079
  f[15],
4086
- i ? Be(
4080
+ i ? ve(
4087
4081
  c,
4088
4082
  /*$$scope*/
4089
4083
  f[15],
4090
4084
  _,
4091
- Ci
4092
- ) : we(
4085
+ Oi
4086
+ ) : Be(
4093
4087
  /*$$scope*/
4094
4088
  f[15]
4095
4089
  ),
4096
- Et
4097
- ) : p && p.p && (!i || _ & /*closeButton*/
4098
- 8) && p.p(f, i ? _ : -1);
4090
+ _t
4091
+ ) : d && d.p && (!i || _ & /*closeButton*/
4092
+ 8) && d.p(f, i ? _ : -1);
4099
4093
  },
4100
4094
  i(f) {
4101
- i || (he(o, f), he(h, f), he(p, f), i = !0);
4095
+ i || (ue(o, f), ue(h, f), ue(d, f), i = !0);
4102
4096
  },
4103
4097
  o(f) {
4104
- Ae(o, f), Ae(h, f), Ae(p, f), i = !1;
4098
+ we(o, f), we(h, f), we(d, f), i = !1;
4105
4099
  },
4106
4100
  d(f) {
4107
- f && L(t), o && o.d(f), h && h.d(f), p && p.d(f), e[17](null);
4101
+ f && P(t), o && o.d(f), h && h.d(f), d && d.d(f), e[17](null);
4108
4102
  }
4109
4103
  };
4110
4104
  }
4111
- function Ui(e, t, r) {
4105
+ function $i(e, t, r) {
4112
4106
  let n;
4113
- mr(e, Ti, (g) => r(4, n = g));
4114
- let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: p = "" } = t, f, _ = !1, v, O = !1;
4115
- const P = () => {
4107
+ fr(e, Hi, (g) => r(4, n = g));
4108
+ let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: d = "" } = t, f, _ = !1, v, A = !1;
4109
+ const O = () => {
4116
4110
  fetch(l).then((g) => g.json()).then((g) => {
4117
- Object.keys(g).forEach((qe) => {
4118
- _t(qe, g[qe]);
4111
+ Object.keys(g).forEach((Ze) => {
4112
+ pt(Ze, g[Ze]);
4119
4113
  });
4120
4114
  }).catch((g) => {
4121
4115
  console.log(g);
4122
4116
  });
4123
4117
  };
4124
- Object.keys(yt).forEach((g) => {
4125
- _t(g, yt[g]);
4118
+ Object.keys(gt).forEach((g) => {
4119
+ pt(g, gt[g]);
4126
4120
  });
4127
4121
  const H = () => {
4128
- Oi(c);
4129
- }, I = () => {
4122
+ Si(c);
4123
+ }, N = () => {
4130
4124
  window.postMessage({ type: "CloseCashier" }, window.location.href);
4131
- }, A = () => {
4125
+ }, S = () => {
4132
4126
  window.postMessage({ type: "BackCashier" }, window.location.href);
4133
- }, R = () => {
4127
+ }, $ = () => {
4134
4128
  r(1, _ = !!u && u !== "false");
4135
- }, se = () => {
4136
- r(3, O = !!m && m !== "false");
4137
- }, ir = () => {
4129
+ }, ie = () => {
4130
+ r(3, A = !!m && m !== "false");
4131
+ }, rr = () => {
4138
4132
  r(2, v = h || "header.general");
4139
4133
  };
4140
- xr(() => () => {
4134
+ yr(() => () => {
4141
4135
  });
4142
- function sr(g) {
4143
- Me[g ? "unshift" : "push"](() => {
4136
+ function nr(g) {
4137
+ Ne[g ? "unshift" : "push"](() => {
4144
4138
  f = g, r(0, f);
4145
4139
  });
4146
4140
  }
4147
4141
  return e.$$set = (g) => {
4148
- "clientstyling" in g && r(7, a = g.clientstyling), "clientstylingurl" in g && r(8, o = g.clientstylingurl), "translationurl" in g && r(9, l = g.translationurl), "showbackbutton" in g && r(10, u = g.showbackbutton), "title" in g && r(11, h = g.title), "lang" in g && r(12, c = g.lang), "showclosebutton" in g && r(13, m = g.showclosebutton), "mbsource" in g && r(14, p = g.mbsource), "$$scope" in g && r(15, s = g.$$scope);
4142
+ "clientstyling" in g && r(7, a = g.clientstyling), "clientstylingurl" in g && r(8, o = g.clientstylingurl), "translationurl" in g && r(9, l = g.translationurl), "showbackbutton" in g && r(10, u = g.showbackbutton), "title" in g && r(11, h = g.title), "lang" in g && r(12, c = g.lang), "showclosebutton" in g && r(13, m = g.showclosebutton), "mbsource" in g && r(14, d = g.mbsource), "$$scope" in g && r(15, s = g.$$scope);
4149
4143
  }, e.$$.update = () => {
4150
4144
  e.$$.dirty & /*lang*/
4151
4145
  4096 && c && H(), e.$$.dirty & /*lang, title*/
4152
- 6144 && c && h && ir(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4153
- 129 && a && f && wi(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4154
- 257 && o && f && Si(f, o), e.$$.dirty & /*mbsource, customStylingContainer*/
4155
- 16385 && p && f && Ai(f, `${p}.Style`), e.$$.dirty & /*lang, translationurl*/
4156
- 4608 && c && l && P(), e.$$.dirty & /*showbackbutton*/
4157
- 1024 && u && R(), e.$$.dirty & /*showclosebutton*/
4158
- 8192 && m && se();
4146
+ 6144 && c && h && rr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4147
+ 129 && a && f && Bi(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4148
+ 257 && o && f && Ti(f, o), e.$$.dirty & /*mbsource, customStylingContainer*/
4149
+ 16385 && d && f && wi(f, `${d}.Style`), e.$$.dirty & /*lang, translationurl*/
4150
+ 4608 && c && l && O(), e.$$.dirty & /*showbackbutton*/
4151
+ 1024 && u && $(), e.$$.dirty & /*showclosebutton*/
4152
+ 8192 && m && ie();
4159
4153
  }, [
4160
4154
  f,
4161
4155
  _,
4162
4156
  v,
4163
- O,
4164
- n,
4165
- I,
4166
4157
  A,
4158
+ n,
4159
+ N,
4160
+ S,
4167
4161
  a,
4168
4162
  o,
4169
4163
  l,
@@ -4171,20 +4165,20 @@ function Ui(e, t, r) {
4171
4165
  h,
4172
4166
  c,
4173
4167
  m,
4174
- p,
4168
+ d,
4175
4169
  s,
4176
4170
  i,
4177
- sr
4171
+ nr
4178
4172
  ];
4179
4173
  }
4180
- class nr extends Lr {
4174
+ class tr extends Cr {
4181
4175
  constructor(t) {
4182
- super(), Pr(
4176
+ super(), Ar(
4183
4177
  this,
4184
4178
  t,
4185
- Ui,
4186
- Ri,
4187
- wt,
4179
+ $i,
4180
+ Mi,
4181
+ Bt,
4188
4182
  {
4189
4183
  clientstyling: 7,
4190
4184
  clientstylingurl: 8,
@@ -4195,7 +4189,7 @@ class nr extends Lr {
4195
4189
  showclosebutton: 13,
4196
4190
  mbsource: 14
4197
4191
  },
4198
- Pi
4192
+ Ai
4199
4193
  );
4200
4194
  }
4201
4195
  get clientstyling() {
@@ -4247,35 +4241,35 @@ class nr extends Lr {
4247
4241
  this.$$set({ mbsource: t }), w();
4248
4242
  }
4249
4243
  }
4250
- Cr(nr, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
4251
- const ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4244
+ Or(tr, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
4245
+ const Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4252
4246
  __proto__: null,
4253
- default: nr
4247
+ default: tr
4254
4248
  }, Symbol.toStringTag, { value: "Module" }));
4255
4249
  export {
4256
- $,
4257
- ji as C,
4258
- Lr as S,
4259
- Yt as a,
4260
- Pr as b,
4261
- Cr as c,
4262
- pr as d,
4263
- L as e,
4250
+ M as $,
4251
+ Gi as C,
4252
+ Cr as S,
4253
+ qt as a,
4254
+ Ar as b,
4255
+ Or as c,
4256
+ cr as d,
4257
+ P as e,
4264
4258
  w as f,
4265
- Fi as g,
4266
- Gi as h,
4267
- ni as i,
4268
- W as j,
4269
- M as k,
4270
- me as l,
4271
- Pt as m,
4259
+ Di as g,
4260
+ Ui as h,
4261
+ ti as i,
4262
+ z as j,
4263
+ I as k,
4264
+ ce as l,
4265
+ At as m,
4272
4266
  T as n,
4273
- z as o,
4274
- rt as p,
4275
- xr as q,
4276
- Me as r,
4277
- wt as s,
4278
- wi as t,
4279
- Si as u,
4280
- Ai as v
4267
+ X as o,
4268
+ et as p,
4269
+ yr as q,
4270
+ Ne as r,
4271
+ Bt as s,
4272
+ Bi as t,
4273
+ Ti as u,
4274
+ wi as v
4281
4275
  };