@everymatrix/cashier-header 1.53.11 → 1.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,73 +1,102 @@
1
- function B() {
1
+ var sr = Object.defineProperty, or = Object.defineProperties;
2
+ var ar = Object.getOwnPropertyDescriptors;
3
+ var Je = Object.getOwnPropertySymbols;
4
+ var ur = Object.prototype.hasOwnProperty, hr = Object.prototype.propertyIsEnumerable;
5
+ var xe = (e, t, r) => t in e ? sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
6
+ for (var r in t || (t = {}))
7
+ ur.call(t, r) && xe(e, r, t[r]);
8
+ if (Je)
9
+ for (var r of Je(t))
10
+ hr.call(t, r) && xe(e, r, t[r]);
11
+ return e;
12
+ }, Ye = (e, t) => or(e, ar(t));
13
+ var B = (e, t, r) => xe(e, typeof t != "symbol" ? t + "" : t, r);
14
+ var Ke = (e, t, r) => new Promise((n, i) => {
15
+ var s = (l) => {
16
+ try {
17
+ a(r.next(l));
18
+ } catch (u) {
19
+ i(u);
20
+ }
21
+ }, o = (l) => {
22
+ try {
23
+ a(r.throw(l));
24
+ } catch (u) {
25
+ i(u);
26
+ }
27
+ }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, o);
28
+ a((r = r.apply(e, t)).next());
29
+ });
30
+ function T() {
2
31
  }
3
- function Kt(e, t) {
32
+ function lr(e, t) {
4
33
  for (const r in t) e[r] = t[r];
5
34
  return (
6
35
  /** @type {T & S} */
7
36
  e
8
37
  );
9
38
  }
10
- function _t(e) {
39
+ function Bt(e) {
11
40
  return e();
12
41
  }
13
- function Ze() {
42
+ function et() {
14
43
  return /* @__PURE__ */ Object.create(null);
15
44
  }
16
- function ee(e) {
17
- e.forEach(_t);
45
+ function te(e) {
46
+ e.forEach(Bt);
18
47
  }
19
- function je(e) {
48
+ function Ve(e) {
20
49
  return typeof e == "function";
21
50
  }
22
- function yt(e, t) {
51
+ function Tt(e, t) {
23
52
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
24
53
  }
25
- function er(e) {
54
+ function fr(e) {
26
55
  return Object.keys(e).length === 0;
27
56
  }
28
- function xt(e, ...t) {
57
+ function wt(e, ...t) {
29
58
  if (e == null) {
30
59
  for (const n of t)
31
60
  n(void 0);
32
- return B;
61
+ return T;
33
62
  }
34
63
  const r = e.subscribe(...t);
35
64
  return r.unsubscribe ? () => r.unsubscribe() : r;
36
65
  }
37
- function tr(e, t, r) {
38
- e.$$.on_destroy.push(xt(t, r));
66
+ function cr(e, t, r) {
67
+ e.$$.on_destroy.push(wt(t, r));
39
68
  }
40
- function ye(e, t, r, n) {
69
+ function Ee(e, t, r, n) {
41
70
  if (e) {
42
- const i = Et(e, t, r, n);
71
+ const i = St(e, t, r, n);
43
72
  return e[0](i);
44
73
  }
45
74
  }
46
- function Et(e, t, r, n) {
47
- return e[1] && n ? Kt(r.ctx.slice(), e[1](n(t))) : r.ctx;
75
+ function St(e, t, r, n) {
76
+ return e[1] && n ? lr(r.ctx.slice(), e[1](n(t))) : r.ctx;
48
77
  }
49
- function xe(e, t, r, n) {
78
+ function ve(e, t, r, n) {
50
79
  if (e[2] && n) {
51
80
  const i = e[2](n(r));
52
81
  if (t.dirty === void 0)
53
82
  return i;
54
83
  if (typeof i == "object") {
55
- const s = [], u = Math.max(t.dirty.length, i.length);
56
- for (let o = 0; o < u; o += 1)
57
- s[o] = t.dirty[o] | i[o];
84
+ const s = [], o = Math.max(t.dirty.length, i.length);
85
+ for (let a = 0; a < o; a += 1)
86
+ s[a] = t.dirty[a] | i[a];
58
87
  return s;
59
88
  }
60
89
  return t.dirty | i;
61
90
  }
62
91
  return t.dirty;
63
92
  }
64
- function Ee(e, t, r, n, i, s) {
93
+ function He(e, t, r, n, i, s) {
65
94
  if (i) {
66
- const u = Et(t, r, n, s);
67
- e.p(u, i);
95
+ const o = St(t, r, n, s);
96
+ e.p(o, i);
68
97
  }
69
98
  }
70
- function ve(e) {
99
+ function Be(e) {
71
100
  if (e.ctx.length > 32) {
72
101
  const t = [], r = e.ctx.length / 32;
73
102
  for (let n = 0; n < r; n++)
@@ -76,17 +105,17 @@ function ve(e) {
76
105
  }
77
106
  return -1;
78
107
  }
79
- function fe(e, t) {
108
+ function ce(e, t) {
80
109
  e.appendChild(t);
81
110
  }
82
- function rr(e, t, r) {
83
- const n = nr(e);
111
+ function mr(e, t, r) {
112
+ const n = dr(e);
84
113
  if (!n.getElementById(t)) {
85
- const i = W("style");
86
- i.id = t, i.textContent = r, ir(n, i);
114
+ const i = z("style");
115
+ i.id = t, i.textContent = r, pr(n, i);
87
116
  }
88
117
  }
89
- function nr(e) {
118
+ function dr(e) {
90
119
  if (!e) return document;
91
120
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
92
121
  return t && /** @type {ShadowRoot} */
@@ -95,45 +124,45 @@ function nr(e) {
95
124
  t
96
125
  ) : e.ownerDocument;
97
126
  }
98
- function ir(e, t) {
99
- return fe(
127
+ function pr(e, t) {
128
+ return ce(
100
129
  /** @type {Document} */
101
130
  e.head || e,
102
131
  t
103
132
  ), t.sheet;
104
133
  }
105
- function I(e, t, r) {
134
+ function M(e, t, r) {
106
135
  e.insertBefore(t, r || null);
107
136
  }
108
- function O(e) {
137
+ function P(e) {
109
138
  e.parentNode && e.parentNode.removeChild(e);
110
139
  }
111
- function W(e) {
140
+ function z(e) {
112
141
  return document.createElement(e);
113
142
  }
114
- function ke(e) {
143
+ function Xe(e) {
115
144
  return document.createTextNode(e);
116
145
  }
117
- function Qe() {
118
- return ke(" ");
146
+ function tt() {
147
+ return Xe(" ");
119
148
  }
120
- function vt() {
121
- return ke("");
149
+ function At() {
150
+ return Xe("");
122
151
  }
123
- function Ht(e, t, r, n) {
152
+ function Ct(e, t, r, n) {
124
153
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
125
154
  }
126
- function te(e, t, r) {
155
+ function re(e, t, r) {
127
156
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
128
157
  }
129
- function sr(e) {
158
+ function br(e) {
130
159
  return Array.from(e.childNodes);
131
160
  }
132
- function or(e, t) {
161
+ function gr(e, t) {
133
162
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
134
163
  t);
135
164
  }
136
- function ar(e) {
165
+ function _r(e) {
137
166
  const t = {};
138
167
  return e.childNodes.forEach(
139
168
  /** @param {Element} node */
@@ -142,95 +171,95 @@ function ar(e) {
142
171
  }
143
172
  ), t;
144
173
  }
145
- let Ve;
146
- function q(e) {
147
- Ve = e;
174
+ let We;
175
+ function Y(e) {
176
+ We = e;
148
177
  }
149
- const G = [], Pe = [];
150
- let F = [];
151
- const Je = [], ur = /* @__PURE__ */ Promise.resolve();
152
- let Le = !1;
153
- function hr() {
154
- Le || (Le = !0, ur.then(S));
178
+ const F = [], Ne = [];
179
+ let j = [];
180
+ const rt = [], yr = /* @__PURE__ */ Promise.resolve();
181
+ let Ie = !1;
182
+ function xr() {
183
+ Ie || (Ie = !0, yr.then(A));
155
184
  }
156
- function Ne(e) {
157
- F.push(e);
185
+ function Me(e) {
186
+ j.push(e);
158
187
  }
159
- const He = /* @__PURE__ */ new Set();
160
- let U = 0;
161
- function S() {
162
- if (U !== 0)
188
+ const Te = /* @__PURE__ */ new Set();
189
+ let D = 0;
190
+ function A() {
191
+ if (D !== 0)
163
192
  return;
164
- const e = Ve;
193
+ const e = We;
165
194
  do {
166
195
  try {
167
- for (; U < G.length; ) {
168
- const t = G[U];
169
- U++, q(t), lr(t.$$);
196
+ for (; D < F.length; ) {
197
+ const t = F[D];
198
+ D++, Y(t), Er(t.$$);
170
199
  }
171
200
  } catch (t) {
172
- throw G.length = 0, U = 0, t;
201
+ throw F.length = 0, D = 0, t;
173
202
  }
174
- for (q(null), G.length = 0, U = 0; Pe.length; ) Pe.pop()();
175
- for (let t = 0; t < F.length; t += 1) {
176
- const r = F[t];
177
- He.has(r) || (He.add(r), r());
203
+ for (Y(null), F.length = 0, D = 0; Ne.length; ) Ne.pop()();
204
+ for (let t = 0; t < j.length; t += 1) {
205
+ const r = j[t];
206
+ Te.has(r) || (Te.add(r), r());
178
207
  }
179
- F.length = 0;
180
- } while (G.length);
181
- for (; Je.length; )
182
- Je.pop()();
183
- Le = !1, He.clear(), q(e);
208
+ j.length = 0;
209
+ } while (F.length);
210
+ for (; rt.length; )
211
+ rt.pop()();
212
+ Ie = !1, Te.clear(), Y(e);
184
213
  }
185
- function lr(e) {
214
+ function Er(e) {
186
215
  if (e.fragment !== null) {
187
- e.update(), ee(e.before_update);
216
+ e.update(), te(e.before_update);
188
217
  const t = e.dirty;
189
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
218
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
190
219
  }
191
220
  }
192
- function fr(e) {
221
+ function vr(e) {
193
222
  const t = [], r = [];
194
- F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
223
+ j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
195
224
  }
196
- const oe = /* @__PURE__ */ new Set();
197
- let cr;
198
- function ae(e, t) {
199
- e && e.i && (oe.delete(e), e.i(t));
225
+ const ae = /* @__PURE__ */ new Set();
226
+ let Hr;
227
+ function ue(e, t) {
228
+ e && e.i && (ae.delete(e), e.i(t));
200
229
  }
201
- function Be(e, t, r, n) {
230
+ function we(e, t, r, n) {
202
231
  if (e && e.o) {
203
- if (oe.has(e)) return;
204
- oe.add(e), cr.c.push(() => {
205
- oe.delete(e);
232
+ if (ae.has(e)) return;
233
+ ae.add(e), Hr.c.push(() => {
234
+ ae.delete(e);
206
235
  }), e.o(t);
207
236
  }
208
237
  }
209
- function mr(e, t, r) {
238
+ function Br(e, t, r) {
210
239
  const { fragment: n, after_update: i } = e.$$;
211
- n && n.m(t, r), Ne(() => {
212
- const s = e.$$.on_mount.map(_t).filter(je);
213
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
214
- }), i.forEach(Ne);
240
+ n && n.m(t, r), Me(() => {
241
+ const s = e.$$.on_mount.map(Bt).filter(Ve);
242
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
243
+ }), i.forEach(Me);
215
244
  }
216
- function dr(e, t) {
245
+ function Tr(e, t) {
217
246
  const r = e.$$;
218
- r.fragment !== null && (fr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
247
+ r.fragment !== null && (vr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
219
248
  }
220
- function pr(e, t) {
221
- e.$$.dirty[0] === -1 && (G.push(e), hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
249
+ function wr(e, t) {
250
+ e.$$.dirty[0] === -1 && (F.push(e), xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
222
251
  }
223
- function br(e, t, r, n, i, s, u = null, o = [-1]) {
224
- const l = Ve;
225
- q(e);
226
- const a = e.$$ = {
252
+ function Sr(e, t, r, n, i, s, o = null, a = [-1]) {
253
+ const l = We;
254
+ Y(e);
255
+ const u = e.$$ = {
227
256
  fragment: null,
228
257
  ctx: [],
229
258
  // state
230
259
  props: s,
231
- update: B,
260
+ update: T,
232
261
  not_equal: i,
233
- bound: Ze(),
262
+ bound: et(),
234
263
  // lifecycle
235
264
  on_mount: [],
236
265
  on_destroy: [],
@@ -239,146 +268,150 @@ function br(e, t, r, n, i, s, u = null, o = [-1]) {
239
268
  after_update: [],
240
269
  context: new Map(t.context || (l ? l.$$.context : [])),
241
270
  // everything else
242
- callbacks: Ze(),
243
- dirty: o,
271
+ callbacks: et(),
272
+ dirty: a,
244
273
  skip_bound: !1,
245
274
  root: t.target || l.$$.root
246
275
  };
247
- u && u(a.root);
276
+ o && o(u.root);
248
277
  let h = !1;
249
- if (a.ctx = r(e, t.props || {}, (f, c, ...d) => {
278
+ if (u.ctx = r(e, t.props || {}, (f, c, ...d) => {
250
279
  const m = d.length ? d[0] : c;
251
- return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m), h && pr(e, f)), c;
252
- }), a.update(), h = !0, ee(a.before_update), a.fragment = n(a.ctx), t.target) {
280
+ return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && wr(e, f)), c;
281
+ }), u.update(), h = !0, te(u.before_update), u.fragment = n(u.ctx), t.target) {
253
282
  if (t.hydrate) {
254
- const f = sr(t.target);
255
- a.fragment && a.fragment.l(f), f.forEach(O);
283
+ const f = br(t.target);
284
+ u.fragment && u.fragment.l(f), f.forEach(P);
256
285
  } else
257
- a.fragment && a.fragment.c();
258
- t.intro && ae(e.$$.fragment), mr(e, t.target, t.anchor), S();
286
+ u.fragment && u.fragment.c();
287
+ t.intro && ue(e.$$.fragment), Br(e, t.target, t.anchor), A();
259
288
  }
260
- q(l);
261
- }
262
- let Bt;
263
- typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
264
- /** The Svelte component constructor */
265
- $$ctor;
266
- /** Slots */
267
- $$s;
268
- /** The Svelte component instance */
269
- $$c;
270
- /** Whether or not the custom element is connected */
271
- $$cn = !1;
272
- /** Component props data */
273
- $$d = {};
274
- /** `true` if currently in the process of reflecting component props back to attributes */
275
- $$r = !1;
276
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
277
- $$p_d = {};
278
- /** @type {Record<string, Function[]>} Event listeners */
279
- $$l = {};
280
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
281
- $$l_u = /* @__PURE__ */ new Map();
282
- constructor(e, t, r) {
283
- super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
289
+ Y(l);
290
+ }
291
+ let Ot;
292
+ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
293
+ constructor(t, r, n) {
294
+ super();
295
+ /** The Svelte component constructor */
296
+ B(this, "$$ctor");
297
+ /** Slots */
298
+ B(this, "$$s");
299
+ /** The Svelte component instance */
300
+ B(this, "$$c");
301
+ /** Whether or not the custom element is connected */
302
+ B(this, "$$cn", !1);
303
+ /** Component props data */
304
+ B(this, "$$d", {});
305
+ /** `true` if currently in the process of reflecting component props back to attributes */
306
+ B(this, "$$r", !1);
307
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
308
+ B(this, "$$p_d", {});
309
+ /** @type {Record<string, Function[]>} Event listeners */
310
+ B(this, "$$l", {});
311
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
312
+ B(this, "$$l_u", /* @__PURE__ */ new Map());
313
+ this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
284
314
  }
285
- addEventListener(e, t, r) {
286
- if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
287
- const n = this.$$c.$on(e, t);
288
- this.$$l_u.set(t, n);
315
+ addEventListener(t, r, n) {
316
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
317
+ const i = this.$$c.$on(t, r);
318
+ this.$$l_u.set(r, i);
289
319
  }
290
- super.addEventListener(e, t, r);
320
+ super.addEventListener(t, r, n);
291
321
  }
292
- removeEventListener(e, t, r) {
293
- if (super.removeEventListener(e, t, r), this.$$c) {
294
- const n = this.$$l_u.get(t);
295
- n && (n(), this.$$l_u.delete(t));
322
+ removeEventListener(t, r, n) {
323
+ if (super.removeEventListener(t, r, n), this.$$c) {
324
+ const i = this.$$l_u.get(r);
325
+ i && (i(), this.$$l_u.delete(r));
296
326
  }
297
327
  }
298
- async connectedCallback() {
299
- if (this.$$cn = !0, !this.$$c) {
300
- let e = function(i) {
301
- return () => {
302
- let s;
303
- return {
304
- c: function() {
305
- s = W("slot"), i !== "default" && te(s, "name", i);
306
- },
307
- /**
308
- * @param {HTMLElement} target
309
- * @param {HTMLElement} [anchor]
310
- */
311
- m: function(l, a) {
312
- I(l, s, a);
313
- },
314
- d: function(l) {
315
- l && O(s);
316
- }
328
+ connectedCallback() {
329
+ return Ke(this, null, function* () {
330
+ if (this.$$cn = !0, !this.$$c) {
331
+ let t = function(s) {
332
+ return () => {
333
+ let o;
334
+ return {
335
+ c: function() {
336
+ o = z("slot"), s !== "default" && re(o, "name", s);
337
+ },
338
+ /**
339
+ * @param {HTMLElement} target
340
+ * @param {HTMLElement} [anchor]
341
+ */
342
+ m: function(u, h) {
343
+ M(u, o, h);
344
+ },
345
+ d: function(u) {
346
+ u && P(o);
347
+ }
348
+ };
317
349
  };
318
350
  };
319
- };
320
- if (await Promise.resolve(), !this.$$cn || this.$$c)
321
- return;
322
- const t = {}, r = ar(this);
323
- for (const i of this.$$s)
324
- i in r && (t[i] = [e(i)]);
325
- for (const i of this.attributes) {
326
- const s = this.$$g_p(i.name);
327
- s in this.$$d || (this.$$d[s] = ue(s, i.value, this.$$p_d, "toProp"));
328
- }
329
- for (const i in this.$$p_d)
330
- !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
331
- this.$$c = new this.$$ctor({
332
- target: this.shadowRoot || this,
333
- props: {
334
- ...this.$$d,
335
- $$slots: t,
336
- $$scope: {
337
- ctx: []
338
- }
351
+ if (yield Promise.resolve(), !this.$$cn || this.$$c)
352
+ return;
353
+ const r = {}, n = _r(this);
354
+ for (const s of this.$$s)
355
+ s in n && (r[s] = [t(s)]);
356
+ for (const s of this.attributes) {
357
+ const o = this.$$g_p(s.name);
358
+ o in this.$$d || (this.$$d[o] = he(o, s.value, this.$$p_d, "toProp"));
339
359
  }
340
- });
341
- const n = () => {
342
- this.$$r = !0;
343
- for (const i in this.$$p_d)
344
- if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
345
- const s = ue(
346
- i,
347
- this.$$d[i],
348
- this.$$p_d,
349
- "toAttribute"
350
- );
351
- s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
360
+ for (const s in this.$$p_d)
361
+ !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
362
+ this.$$c = new this.$$ctor({
363
+ target: this.shadowRoot || this,
364
+ props: Ye(qe({}, this.$$d), {
365
+ $$slots: r,
366
+ $$scope: {
367
+ ctx: []
368
+ }
369
+ })
370
+ });
371
+ const i = () => {
372
+ this.$$r = !0;
373
+ for (const s in this.$$p_d)
374
+ if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
375
+ const o = he(
376
+ s,
377
+ this.$$d[s],
378
+ this.$$p_d,
379
+ "toAttribute"
380
+ );
381
+ o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
382
+ }
383
+ this.$$r = !1;
384
+ };
385
+ this.$$c.$$.after_update.push(i), i();
386
+ for (const s in this.$$l)
387
+ for (const o of this.$$l[s]) {
388
+ const a = this.$$c.$on(s, o);
389
+ this.$$l_u.set(o, a);
352
390
  }
353
- this.$$r = !1;
354
- };
355
- this.$$c.$$.after_update.push(n), n();
356
- for (const i in this.$$l)
357
- for (const s of this.$$l[i]) {
358
- const u = this.$$c.$on(i, s);
359
- this.$$l_u.set(s, u);
360
- }
361
- this.$$l = {};
362
- }
391
+ this.$$l = {};
392
+ }
393
+ });
363
394
  }
364
395
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
365
396
  // and setting attributes through setAttribute etc, this is helpful
366
- attributeChangedCallback(e, t, r) {
367
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ue(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
397
+ attributeChangedCallback(t, r, n) {
398
+ var i;
399
+ 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] }));
368
400
  }
369
401
  disconnectedCallback() {
370
402
  this.$$cn = !1, Promise.resolve().then(() => {
371
403
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
372
404
  });
373
405
  }
374
- $$g_p(e) {
406
+ $$g_p(t) {
375
407
  return Object.keys(this.$$p_d).find(
376
- (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
377
- ) || e;
408
+ (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
409
+ ) || t;
378
410
  }
379
411
  });
380
- function ue(e, t, r, n) {
381
- const i = r[e]?.type;
412
+ function he(e, t, r, n) {
413
+ var s;
414
+ const i = (s = r[e]) == null ? void 0 : s.type;
382
415
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
383
416
  return t;
384
417
  if (n === "toAttribute")
@@ -389,7 +422,7 @@ function ue(e, t, r, n) {
389
422
  case "Boolean":
390
423
  return t ? "" : null;
391
424
  case "Number":
392
- return t ?? null;
425
+ return t == null ? null : t;
393
426
  default:
394
427
  return t;
395
428
  }
@@ -406,55 +439,59 @@ function ue(e, t, r, n) {
406
439
  return t;
407
440
  }
408
441
  }
409
- function gr(e, t, r, n, i, s) {
410
- let u = class extends Bt {
442
+ function Ar(e, t, r, n, i, s) {
443
+ let o = class extends Ot {
411
444
  constructor() {
412
445
  super(e, r, i), this.$$p_d = t;
413
446
  }
414
447
  static get observedAttributes() {
415
448
  return Object.keys(t).map(
416
- (o) => (t[o].attribute || o).toLowerCase()
449
+ (a) => (t[a].attribute || a).toLowerCase()
417
450
  );
418
451
  }
419
452
  };
420
- return Object.keys(t).forEach((o) => {
421
- Object.defineProperty(u.prototype, o, {
453
+ return Object.keys(t).forEach((a) => {
454
+ Object.defineProperty(o.prototype, a, {
422
455
  get() {
423
- return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
456
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
424
457
  },
425
458
  set(l) {
426
- l = ue(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
459
+ var u;
460
+ l = he(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
427
461
  }
428
462
  });
429
- }), n.forEach((o) => {
430
- Object.defineProperty(u.prototype, o, {
463
+ }), n.forEach((a) => {
464
+ Object.defineProperty(o.prototype, a, {
431
465
  get() {
432
- return this.$$c?.[o];
466
+ var l;
467
+ return (l = this.$$c) == null ? void 0 : l[a];
433
468
  }
434
469
  });
435
470
  }), e.element = /** @type {any} */
436
- u, u;
437
- }
438
- class _r {
439
- /**
440
- * ### PRIVATE API
441
- *
442
- * Do not use, may change at any time
443
- *
444
- * @type {any}
445
- */
446
- $$ = void 0;
447
- /**
448
- * ### PRIVATE API
449
- *
450
- * Do not use, may change at any time
451
- *
452
- * @type {any}
453
- */
454
- $$set = void 0;
471
+ o, o;
472
+ }
473
+ class Cr {
474
+ constructor() {
475
+ /**
476
+ * ### PRIVATE API
477
+ *
478
+ * Do not use, may change at any time
479
+ *
480
+ * @type {any}
481
+ */
482
+ B(this, "$$");
483
+ /**
484
+ * ### PRIVATE API
485
+ *
486
+ * Do not use, may change at any time
487
+ *
488
+ * @type {any}
489
+ */
490
+ B(this, "$$set");
491
+ }
455
492
  /** @returns {void} */
456
493
  $destroy() {
457
- dr(this, 1), this.$destroy = B;
494
+ Tr(this, 1), this.$destroy = T;
458
495
  }
459
496
  /**
460
497
  * @template {Extract<keyof Events, string>} K
@@ -463,8 +500,8 @@ class _r {
463
500
  * @returns {() => void}
464
501
  */
465
502
  $on(t, r) {
466
- if (!je(r))
467
- return B;
503
+ if (!Ve(r))
504
+ return T;
468
505
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
469
506
  return n.push(r), () => {
470
507
  const i = n.indexOf(r);
@@ -476,63 +513,63 @@ class _r {
476
513
  * @returns {void}
477
514
  */
478
515
  $set(t) {
479
- this.$$set && !er(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
516
+ this.$$set && !fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
480
517
  }
481
518
  }
482
- const yr = "4";
483
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yr);
484
- const D = [];
485
- function xr(e, t) {
519
+ const Or = "4";
520
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Or);
521
+ const G = [];
522
+ function Pr(e, t) {
486
523
  return {
487
- subscribe: pe(e, t).subscribe
524
+ subscribe: be(e, t).subscribe
488
525
  };
489
526
  }
490
- function pe(e, t = B) {
527
+ function be(e, t = T) {
491
528
  let r;
492
529
  const n = /* @__PURE__ */ new Set();
493
- function i(o) {
494
- if (yt(e, o) && (e = o, r)) {
495
- const l = !D.length;
496
- for (const a of n)
497
- a[1](), D.push(a, e);
530
+ function i(a) {
531
+ if (Tt(e, a) && (e = a, r)) {
532
+ const l = !G.length;
533
+ for (const u of n)
534
+ u[1](), G.push(u, e);
498
535
  if (l) {
499
- for (let a = 0; a < D.length; a += 2)
500
- D[a][0](D[a + 1]);
501
- D.length = 0;
536
+ for (let u = 0; u < G.length; u += 2)
537
+ G[u][0](G[u + 1]);
538
+ G.length = 0;
502
539
  }
503
540
  }
504
541
  }
505
- function s(o) {
506
- i(o(e));
542
+ function s(a) {
543
+ i(a(e));
507
544
  }
508
- function u(o, l = B) {
509
- const a = [o, l];
510
- return n.add(a), n.size === 1 && (r = t(i, s) || B), o(e), () => {
511
- n.delete(a), n.size === 0 && r && (r(), r = null);
545
+ function o(a, l = T) {
546
+ const u = [a, l];
547
+ return n.add(u), n.size === 1 && (r = t(i, s) || T), a(e), () => {
548
+ n.delete(u), n.size === 0 && r && (r(), r = null);
512
549
  };
513
550
  }
514
- return { set: i, update: s, subscribe: u };
551
+ return { set: i, update: s, subscribe: o };
515
552
  }
516
- function z(e, t, r) {
553
+ function Z(e, t, r) {
517
554
  const n = !Array.isArray(e), i = n ? [e] : e;
518
555
  if (!i.every(Boolean))
519
556
  throw new Error("derived() expects stores as input, got a falsy value");
520
557
  const s = t.length < 2;
521
- return xr(r, (u, o) => {
558
+ return Pr(r, (o, a) => {
522
559
  let l = !1;
523
- const a = [];
524
- let h = 0, f = B;
560
+ const u = [];
561
+ let h = 0, f = T;
525
562
  const c = () => {
526
563
  if (h)
527
564
  return;
528
565
  f();
529
- const m = t(n ? a[0] : a, u, o);
530
- s ? u(m) : f = je(m) ? m : B;
566
+ const m = t(n ? u[0] : u, o, a);
567
+ s ? o(m) : f = Ve(m) ? m : T;
531
568
  }, d = i.map(
532
- (m, g) => xt(
569
+ (m, g) => wt(
533
570
  m,
534
571
  (v) => {
535
- a[g] = v, h &= ~(1 << g), l && c();
572
+ u[g] = v, h &= ~(1 << g), l && c();
536
573
  },
537
574
  () => {
538
575
  h |= 1 << g;
@@ -540,95 +577,95 @@ function z(e, t, r) {
540
577
  )
541
578
  );
542
579
  return l = !0, c(), function() {
543
- ee(d), f(), l = !1;
580
+ te(d), f(), l = !1;
544
581
  };
545
582
  });
546
583
  }
547
- function Er(e) {
584
+ function Lr(e) {
548
585
  return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
549
586
  }
550
- var vr = function(t) {
551
- return Hr(t) && !Br(t);
587
+ var Nr = function(t) {
588
+ return Ir(t) && !Mr(t);
552
589
  };
553
- function Hr(e) {
590
+ function Ir(e) {
554
591
  return !!e && typeof e == "object";
555
592
  }
556
- function Br(e) {
593
+ function Mr(e) {
557
594
  var t = Object.prototype.toString.call(e);
558
- return t === "[object RegExp]" || t === "[object Date]" || Sr(e);
595
+ return t === "[object RegExp]" || t === "[object Date]" || Ur(e);
559
596
  }
560
- var Tr = typeof Symbol == "function" && Symbol.for, wr = Tr ? Symbol.for("react.element") : 60103;
561
- function Sr(e) {
562
- return e.$$typeof === wr;
597
+ var $r = typeof Symbol == "function" && Symbol.for, Rr = $r ? Symbol.for("react.element") : 60103;
598
+ function Ur(e) {
599
+ return e.$$typeof === Rr;
563
600
  }
564
- function Ar(e) {
601
+ function Dr(e) {
565
602
  return Array.isArray(e) ? [] : {};
566
603
  }
567
- function Y(e, t) {
568
- return t.clone !== !1 && t.isMergeableObject(e) ? j(Ar(e), e, t) : e;
604
+ function K(e, t) {
605
+ return t.clone !== !1 && t.isMergeableObject(e) ? k(Dr(e), e, t) : e;
569
606
  }
570
- function Cr(e, t, r) {
607
+ function Gr(e, t, r) {
571
608
  return e.concat(t).map(function(n) {
572
- return Y(n, r);
609
+ return K(n, r);
573
610
  });
574
611
  }
575
- function Or(e, t) {
612
+ function Fr(e, t) {
576
613
  if (!t.customMerge)
577
- return j;
614
+ return k;
578
615
  var r = t.customMerge(e);
579
- return typeof r == "function" ? r : j;
616
+ return typeof r == "function" ? r : k;
580
617
  }
581
- function Pr(e) {
618
+ function jr(e) {
582
619
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
583
620
  return Object.propertyIsEnumerable.call(e, t);
584
621
  }) : [];
585
622
  }
586
- function qe(e) {
587
- return Object.keys(e).concat(Pr(e));
623
+ function nt(e) {
624
+ return Object.keys(e).concat(jr(e));
588
625
  }
589
- function Tt(e, t) {
626
+ function Pt(e, t) {
590
627
  try {
591
628
  return t in e;
592
- } catch {
629
+ } catch (r) {
593
630
  return !1;
594
631
  }
595
632
  }
596
- function Lr(e, t) {
597
- return Tt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
633
+ function kr(e, t) {
634
+ return Pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
598
635
  }
599
- function Nr(e, t, r) {
636
+ function Vr(e, t, r) {
600
637
  var n = {};
601
- return r.isMergeableObject(e) && qe(e).forEach(function(i) {
602
- n[i] = Y(e[i], r);
603
- }), qe(t).forEach(function(i) {
604
- Lr(e, i) || (Tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Or(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
638
+ return r.isMergeableObject(e) && nt(e).forEach(function(i) {
639
+ n[i] = K(e[i], r);
640
+ }), nt(t).forEach(function(i) {
641
+ kr(e, i) || (Pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Fr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
605
642
  }), n;
606
643
  }
607
- function j(e, t, r) {
608
- r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject || vr, r.cloneUnlessOtherwiseSpecified = Y;
644
+ function k(e, t, r) {
645
+ r = r || {}, r.arrayMerge = r.arrayMerge || Gr, r.isMergeableObject = r.isMergeableObject || Nr, r.cloneUnlessOtherwiseSpecified = K;
609
646
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
610
- return s ? n ? r.arrayMerge(e, t, r) : Nr(e, t, r) : Y(t, r);
647
+ return s ? n ? r.arrayMerge(e, t, r) : Vr(e, t, r) : K(t, r);
611
648
  }
612
- j.all = function(t, r) {
649
+ k.all = function(t, r) {
613
650
  if (!Array.isArray(t))
614
651
  throw new Error("first argument should be an array");
615
652
  return t.reduce(function(n, i) {
616
- return j(n, i, r);
653
+ return k(n, i, r);
617
654
  }, {});
618
655
  };
619
- var Ir = j, Mr = Ir;
620
- const $r = /* @__PURE__ */ Er(Mr);
621
- var Ie = function(e, t) {
622
- return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
656
+ var Xr = k, Wr = Xr;
657
+ const zr = /* @__PURE__ */ Lr(Wr);
658
+ var $e = function(e, t) {
659
+ return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
623
660
  r.__proto__ = n;
624
661
  } || function(r, n) {
625
662
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
626
- }, Ie(e, t);
663
+ }, $e(e, t);
627
664
  };
628
- function be(e, t) {
665
+ function ge(e, t) {
629
666
  if (typeof t != "function" && t !== null)
630
667
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
631
- Ie(e, t);
668
+ $e(e, t);
632
669
  function r() {
633
670
  this.constructor = e;
634
671
  }
@@ -643,7 +680,7 @@ var y = function() {
643
680
  return t;
644
681
  }, y.apply(this, arguments);
645
682
  };
646
- function Rr(e, t) {
683
+ function Zr(e, t) {
647
684
  var r = {};
648
685
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
649
686
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -651,45 +688,45 @@ function Rr(e, t) {
651
688
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
652
689
  return r;
653
690
  }
654
- function Te(e, t, r) {
691
+ function Se(e, t, r) {
655
692
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
656
693
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
657
694
  return e.concat(s || Array.prototype.slice.call(t));
658
695
  }
659
- function we(e, t) {
660
- var r = t && t.cache ? t.cache : Vr, n = t && t.serializer ? t.serializer : jr, i = t && t.strategy ? t.strategy : Dr;
696
+ function Ae(e, t) {
697
+ var r = t && t.cache ? t.cache : tn, n = t && t.serializer ? t.serializer : Kr, i = t && t.strategy ? t.strategy : Jr;
661
698
  return i(e, {
662
699
  cache: r,
663
700
  serializer: n
664
701
  });
665
702
  }
666
- function Ur(e) {
703
+ function Qr(e) {
667
704
  return e == null || typeof e == "number" || typeof e == "boolean";
668
705
  }
669
- function wt(e, t, r, n) {
670
- var i = Ur(n) ? n : r(n), s = t.get(i);
671
- return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
706
+ function Lt(e, t, r, n) {
707
+ var i = Qr(n) ? n : r(n), s = t.get(i);
708
+ return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
672
709
  }
673
- function St(e, t, r) {
710
+ function Nt(e, t, r) {
674
711
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
675
- return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
712
+ return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
676
713
  }
677
- function Xe(e, t, r, n, i) {
714
+ function ze(e, t, r, n, i) {
678
715
  return r.bind(t, e, n, i);
679
716
  }
680
- function Dr(e, t) {
681
- var r = e.length === 1 ? wt : St;
682
- return Xe(e, this, r, t.cache.create(), t.serializer);
717
+ function Jr(e, t) {
718
+ var r = e.length === 1 ? Lt : Nt;
719
+ return ze(e, this, r, t.cache.create(), t.serializer);
683
720
  }
684
- function Gr(e, t) {
685
- return Xe(e, this, St, t.cache.create(), t.serializer);
721
+ function qr(e, t) {
722
+ return ze(e, this, Nt, t.cache.create(), t.serializer);
686
723
  }
687
- function Fr(e, t) {
688
- return Xe(e, this, wt, t.cache.create(), t.serializer);
724
+ function Yr(e, t) {
725
+ return ze(e, this, Lt, t.cache.create(), t.serializer);
689
726
  }
690
- var jr = function() {
727
+ var Kr = function() {
691
728
  return JSON.stringify(arguments);
692
- }, kr = (
729
+ }, en = (
693
730
  /** @class */
694
731
  function() {
695
732
  function e() {
@@ -701,13 +738,13 @@ var jr = function() {
701
738
  this.cache[t] = r;
702
739
  }, e;
703
740
  }()
704
- ), Vr = {
741
+ ), tn = {
705
742
  create: function() {
706
- return new kr();
743
+ return new en();
707
744
  }
708
- }, Se = {
709
- variadic: Gr,
710
- monadic: Fr
745
+ }, Ce = {
746
+ variadic: qr,
747
+ monadic: Yr
711
748
  }, p;
712
749
  (function(e) {
713
750
  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";
@@ -716,47 +753,47 @@ var x;
716
753
  (function(e) {
717
754
  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";
718
755
  })(x || (x = {}));
719
- var k;
756
+ var V;
720
757
  (function(e) {
721
758
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
722
- })(k || (k = {}));
723
- function Ye(e) {
759
+ })(V || (V = {}));
760
+ function it(e) {
724
761
  return e.type === x.literal;
725
762
  }
726
- function Xr(e) {
763
+ function rn(e) {
727
764
  return e.type === x.argument;
728
765
  }
729
- function At(e) {
766
+ function It(e) {
730
767
  return e.type === x.number;
731
768
  }
732
- function Ct(e) {
769
+ function Mt(e) {
733
770
  return e.type === x.date;
734
771
  }
735
- function Ot(e) {
772
+ function $t(e) {
736
773
  return e.type === x.time;
737
774
  }
738
- function Pt(e) {
775
+ function Rt(e) {
739
776
  return e.type === x.select;
740
777
  }
741
- function Lt(e) {
778
+ function Ut(e) {
742
779
  return e.type === x.plural;
743
780
  }
744
- function Wr(e) {
781
+ function nn(e) {
745
782
  return e.type === x.pound;
746
783
  }
747
- function Nt(e) {
784
+ function Dt(e) {
748
785
  return e.type === x.tag;
749
786
  }
750
- function It(e) {
751
- return !!(e && typeof e == "object" && e.type === k.number);
787
+ function Gt(e) {
788
+ return !!(e && typeof e == "object" && e.type === V.number);
752
789
  }
753
- function Me(e) {
754
- return !!(e && typeof e == "object" && e.type === k.dateTime);
790
+ function Re(e) {
791
+ return !!(e && typeof e == "object" && e.type === V.dateTime);
755
792
  }
756
- var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
757
- function Zr(e) {
793
+ var Ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, sn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
794
+ function on(e) {
758
795
  var t = {};
759
- return e.replace(zr, function(r) {
796
+ return e.replace(sn, function(r) {
760
797
  var n = r.length;
761
798
  switch (r[0]) {
762
799
  case "G":
@@ -845,36 +882,36 @@ function Zr(e) {
845
882
  return "";
846
883
  }), t;
847
884
  }
848
- var Qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
849
- function Jr(e) {
885
+ var an = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
886
+ function un(e) {
850
887
  if (e.length === 0)
851
888
  throw new Error("Number skeleton cannot be empty");
852
- for (var t = e.split(Qr).filter(function(c) {
889
+ for (var t = e.split(an).filter(function(c) {
853
890
  return c.length > 0;
854
891
  }), r = [], n = 0, i = t; n < i.length; n++) {
855
- var s = i[n], u = s.split("/");
856
- if (u.length === 0)
892
+ var s = i[n], o = s.split("/");
893
+ if (o.length === 0)
857
894
  throw new Error("Invalid number skeleton");
858
- for (var o = u[0], l = u.slice(1), a = 0, h = l; a < h.length; a++) {
859
- var f = h[a];
895
+ for (var a = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
896
+ var f = h[u];
860
897
  if (f.length === 0)
861
898
  throw new Error("Invalid number skeleton");
862
899
  }
863
- r.push({ stem: o, options: l });
900
+ r.push({ stem: a, options: l });
864
901
  }
865
902
  return r;
866
903
  }
867
- function qr(e) {
904
+ function hn(e) {
868
905
  return e.replace(/^(.*?)-/, "");
869
906
  }
870
- var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, Yr = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
871
- function et(e) {
907
+ var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jt = /^(@+)?(\+|#+)?[rs]?$/g, ln = /(\*)(0+)|(#+)(0+)|(0+)/g, kt = /^(0+)$/;
908
+ function ot(e) {
872
909
  var t = {};
873
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
910
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jt, function(r, n, i) {
874
911
  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)), "";
875
912
  }), t;
876
913
  }
877
- function Ut(e) {
914
+ function Vt(e) {
878
915
  switch (e) {
879
916
  case "sign-auto":
880
917
  return {
@@ -914,7 +951,7 @@ function Ut(e) {
914
951
  };
915
952
  }
916
953
  }
917
- function Kr(e) {
954
+ function fn(e) {
918
955
  var t;
919
956
  if (e[0] === "E" && e[1] === "E" ? (t = {
920
957
  notation: "engineering"
@@ -922,17 +959,17 @@ function Kr(e) {
922
959
  notation: "scientific"
923
960
  }, e = e.slice(1)), t) {
924
961
  var r = e.slice(0, 2);
925
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rt.test(e))
962
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !kt.test(e))
926
963
  throw new Error("Malformed concise eng/scientific notation");
927
964
  t.minimumIntegerDigits = e.length;
928
965
  }
929
966
  return t;
930
967
  }
931
- function tt(e) {
932
- var t = {}, r = Ut(e);
968
+ function at(e) {
969
+ var t = {}, r = Vt(e);
933
970
  return r || t;
934
971
  }
935
- function en(e) {
972
+ function cn(e) {
936
973
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
937
974
  var i = n[r];
938
975
  switch (i.stem) {
@@ -956,7 +993,7 @@ function en(e) {
956
993
  continue;
957
994
  case "measure-unit":
958
995
  case "unit":
959
- t.style = "unit", t.unit = qr(i.options[0]);
996
+ t.style = "unit", t.unit = hn(i.options[0]);
960
997
  continue;
961
998
  case "compact-short":
962
999
  case "K":
@@ -967,13 +1004,13 @@ function en(e) {
967
1004
  t.notation = "compact", t.compactDisplay = "long";
968
1005
  continue;
969
1006
  case "scientific":
970
- t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
971
- return y(y({}, l), tt(a));
1007
+ t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1008
+ return y(y({}, l), at(u));
972
1009
  }, {}));
973
1010
  continue;
974
1011
  case "engineering":
975
- t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
976
- return y(y({}, l), tt(a));
1012
+ t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1013
+ return y(y({}, l), at(u));
977
1014
  }, {}));
978
1015
  continue;
979
1016
  case "notation-simple":
@@ -1018,8 +1055,8 @@ function en(e) {
1018
1055
  case "integer-width":
1019
1056
  if (i.options.length > 1)
1020
1057
  throw new RangeError("integer-width stems only accept a single optional option");
1021
- i.options[0].replace(Yr, function(l, a, h, f, c, d) {
1022
- if (a)
1058
+ i.options[0].replace(ln, function(l, u, h, f, c, d) {
1059
+ if (u)
1023
1060
  t.minimumIntegerDigits = h.length;
1024
1061
  else {
1025
1062
  if (f && c)
@@ -1031,32 +1068,32 @@ function en(e) {
1031
1068
  });
1032
1069
  continue;
1033
1070
  }
1034
- if (Rt.test(i.stem)) {
1071
+ if (kt.test(i.stem)) {
1035
1072
  t.minimumIntegerDigits = i.stem.length;
1036
1073
  continue;
1037
1074
  }
1038
- if (Ke.test(i.stem)) {
1075
+ if (st.test(i.stem)) {
1039
1076
  if (i.options.length > 1)
1040
1077
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1041
- i.stem.replace(Ke, function(l, a, h, f, c, d) {
1042
- return h === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1078
+ i.stem.replace(st, function(l, u, h, f, c, d) {
1079
+ return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1043
1080
  });
1044
1081
  var s = i.options[0];
1045
- s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), et(s)));
1082
+ s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), ot(s)));
1046
1083
  continue;
1047
1084
  }
1048
- if ($t.test(i.stem)) {
1049
- t = y(y({}, t), et(i.stem));
1085
+ if (jt.test(i.stem)) {
1086
+ t = y(y({}, t), ot(i.stem));
1050
1087
  continue;
1051
1088
  }
1052
- var u = Ut(i.stem);
1053
- u && (t = y(y({}, t), u));
1054
- var o = Kr(i.stem);
1089
+ var o = Vt(i.stem);
1055
1090
  o && (t = y(y({}, t), o));
1091
+ var a = fn(i.stem);
1092
+ a && (t = y(y({}, t), a));
1056
1093
  }
1057
1094
  return t;
1058
1095
  }
1059
- var se = {
1096
+ var oe = {
1060
1097
  "001": [
1061
1098
  "H",
1062
1099
  "h"
@@ -2471,22 +2508,22 @@ var se = {
2471
2508
  "h"
2472
2509
  ]
2473
2510
  };
2474
- function tn(e, t) {
2511
+ function mn(e, t) {
2475
2512
  for (var r = "", n = 0; n < e.length; n++) {
2476
2513
  var i = e.charAt(n);
2477
2514
  if (i === "j") {
2478
2515
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2479
2516
  s++, n++;
2480
- var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = rn(t);
2481
- for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
2517
+ var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = dn(t);
2518
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2482
2519
  r += l;
2483
- for (; u-- > 0; )
2484
- r = a + r;
2520
+ for (; o-- > 0; )
2521
+ r = u + r;
2485
2522
  } else i === "J" ? r += "H" : r += i;
2486
2523
  }
2487
2524
  return r;
2488
2525
  }
2489
- function rn(e) {
2526
+ function dn(e) {
2490
2527
  var t = e.hourCycle;
2491
2528
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2492
2529
  e.hourCycles && // @ts-ignore
@@ -2505,23 +2542,23 @@ function rn(e) {
2505
2542
  }
2506
2543
  var r = e.language, n;
2507
2544
  r !== "root" && (n = e.maximize().region);
2508
- var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
2545
+ var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
2509
2546
  return i[0];
2510
2547
  }
2511
- var Ae, nn = new RegExp("^".concat(Mt.source, "*")), sn = new RegExp("".concat(Mt.source, "*$"));
2548
+ var Oe, pn = new RegExp("^".concat(Ft.source, "*")), bn = new RegExp("".concat(Ft.source, "*$"));
2512
2549
  function b(e, t) {
2513
2550
  return { start: e, end: t };
2514
2551
  }
2515
- var on = !!String.prototype.startsWith && "_a".startsWith("a", 1), an = !!String.fromCodePoint, un = !!Object.fromEntries, hn = !!String.prototype.codePointAt, ln = !!String.prototype.trimStart, fn = !!String.prototype.trimEnd, cn = !!Number.isSafeInteger, mn = cn ? Number.isSafeInteger : function(e) {
2552
+ var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), _n = !!String.fromCodePoint, yn = !!Object.fromEntries, xn = !!String.prototype.codePointAt, En = !!String.prototype.trimStart, vn = !!String.prototype.trimEnd, Hn = !!Number.isSafeInteger, Bn = Hn ? Number.isSafeInteger : function(e) {
2516
2553
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2517
- }, $e = !0;
2554
+ }, Ue = !0;
2518
2555
  try {
2519
- var dn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2520
- $e = ((Ae = dn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
2521
- } catch {
2522
- $e = !1;
2556
+ var Tn = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2557
+ Ue = ((Oe = Tn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
2558
+ } catch (e) {
2559
+ Ue = !1;
2523
2560
  }
2524
- var rt = on ? (
2561
+ var ut = gn ? (
2525
2562
  // Native
2526
2563
  function(t, r, n) {
2527
2564
  return t.startsWith(r, n);
@@ -2531,31 +2568,31 @@ var rt = on ? (
2531
2568
  function(t, r, n) {
2532
2569
  return t.slice(n, n + r.length) === r;
2533
2570
  }
2534
- ), Re = an ? String.fromCodePoint : (
2571
+ ), De = _n ? String.fromCodePoint : (
2535
2572
  // IE11
2536
2573
  function() {
2537
2574
  for (var t = [], r = 0; r < arguments.length; r++)
2538
2575
  t[r] = arguments[r];
2539
- for (var n = "", i = t.length, s = 0, u; i > s; ) {
2540
- if (u = t[s++], u > 1114111)
2541
- throw RangeError(u + " is not a valid code point");
2542
- n += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
2576
+ for (var n = "", i = t.length, s = 0, o; i > s; ) {
2577
+ if (o = t[s++], o > 1114111)
2578
+ throw RangeError(o + " is not a valid code point");
2579
+ n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2543
2580
  }
2544
2581
  return n;
2545
2582
  }
2546
- ), nt = (
2583
+ ), ht = (
2547
2584
  // native
2548
- un ? Object.fromEntries : (
2585
+ yn ? Object.fromEntries : (
2549
2586
  // Ponyfill
2550
2587
  function(t) {
2551
2588
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2552
- var s = i[n], u = s[0], o = s[1];
2553
- r[u] = o;
2589
+ var s = i[n], o = s[0], a = s[1];
2590
+ r[o] = a;
2554
2591
  }
2555
2592
  return r;
2556
2593
  }
2557
2594
  )
2558
- ), Dt = hn ? (
2595
+ ), Xt = xn ? (
2559
2596
  // Native
2560
2597
  function(t, r) {
2561
2598
  return t.codePointAt(r);
@@ -2569,7 +2606,7 @@ var rt = on ? (
2569
2606
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2570
2607
  }
2571
2608
  }
2572
- ), pn = ln ? (
2609
+ ), wn = En ? (
2573
2610
  // Native
2574
2611
  function(t) {
2575
2612
  return t.trimStart();
@@ -2577,9 +2614,9 @@ var rt = on ? (
2577
2614
  ) : (
2578
2615
  // Ponyfill
2579
2616
  function(t) {
2580
- return t.replace(nn, "");
2617
+ return t.replace(pn, "");
2581
2618
  }
2582
- ), bn = fn ? (
2619
+ ), Sn = vn ? (
2583
2620
  // Native
2584
2621
  function(t) {
2585
2622
  return t.trimEnd();
@@ -2587,32 +2624,32 @@ var rt = on ? (
2587
2624
  ) : (
2588
2625
  // Ponyfill
2589
2626
  function(t) {
2590
- return t.replace(sn, "");
2627
+ return t.replace(bn, "");
2591
2628
  }
2592
2629
  );
2593
- function Gt(e, t) {
2630
+ function Wt(e, t) {
2594
2631
  return new RegExp(e, t);
2595
2632
  }
2596
- var Ue;
2597
- if ($e) {
2598
- var it = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2599
- Ue = function(t, r) {
2633
+ var Ge;
2634
+ if (Ue) {
2635
+ var lt = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2636
+ Ge = function(t, r) {
2600
2637
  var n;
2601
- it.lastIndex = r;
2602
- var i = it.exec(t);
2638
+ lt.lastIndex = r;
2639
+ var i = lt.exec(t);
2603
2640
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2604
2641
  };
2605
2642
  } else
2606
- Ue = function(t, r) {
2643
+ Ge = function(t, r) {
2607
2644
  for (var n = []; ; ) {
2608
- var i = Dt(t, r);
2609
- if (i === void 0 || Ft(i) || xn(i))
2645
+ var i = Xt(t, r);
2646
+ if (i === void 0 || zt(i) || Pn(i))
2610
2647
  break;
2611
2648
  n.push(i), r += i >= 65536 ? 2 : 1;
2612
2649
  }
2613
- return Re.apply(void 0, n);
2650
+ return De.apply(void 0, n);
2614
2651
  };
2615
- var gn = (
2652
+ var An = (
2616
2653
  /** @class */
2617
2654
  function() {
2618
2655
  function e(t, r) {
@@ -2626,33 +2663,33 @@ var gn = (
2626
2663
  for (var i = []; !this.isEOF(); ) {
2627
2664
  var s = this.char();
2628
2665
  if (s === 123) {
2629
- var u = this.parseArgument(t, n);
2630
- if (u.err)
2631
- return u;
2632
- i.push(u.val);
2666
+ var o = this.parseArgument(t, n);
2667
+ if (o.err)
2668
+ return o;
2669
+ i.push(o.val);
2633
2670
  } else {
2634
2671
  if (s === 125 && t > 0)
2635
2672
  break;
2636
2673
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
2637
- var o = this.clonePosition();
2674
+ var a = this.clonePosition();
2638
2675
  this.bump(), i.push({
2639
2676
  type: x.pound,
2640
- location: b(o, this.clonePosition())
2677
+ location: b(a, this.clonePosition())
2641
2678
  });
2642
2679
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2643
2680
  if (n)
2644
2681
  break;
2645
2682
  return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
2646
- } else if (s === 60 && !this.ignoreTag && De(this.peek() || 0)) {
2647
- var u = this.parseTag(t, r);
2648
- if (u.err)
2649
- return u;
2650
- i.push(u.val);
2683
+ } else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
2684
+ var o = this.parseTag(t, r);
2685
+ if (o.err)
2686
+ return o;
2687
+ i.push(o.val);
2651
2688
  } else {
2652
- var u = this.parseLiteral(t, r);
2653
- if (u.err)
2654
- return u;
2655
- i.push(u.val);
2689
+ var o = this.parseLiteral(t, r);
2690
+ if (o.err)
2691
+ return o;
2692
+ i.push(o.val);
2656
2693
  }
2657
2694
  }
2658
2695
  }
@@ -2674,27 +2711,27 @@ var gn = (
2674
2711
  var s = this.parseMessage(t + 1, r, !0);
2675
2712
  if (s.err)
2676
2713
  return s;
2677
- var u = s.val, o = this.clonePosition();
2714
+ var o = s.val, a = this.clonePosition();
2678
2715
  if (this.bumpIf("</")) {
2679
- if (this.isEOF() || !De(this.char()))
2680
- return this.error(p.INVALID_TAG, b(o, this.clonePosition()));
2681
- var l = this.clonePosition(), a = this.parseTagName();
2682
- return i !== a ? this.error(p.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2716
+ if (this.isEOF() || !Fe(this.char()))
2717
+ return this.error(p.INVALID_TAG, b(a, this.clonePosition()));
2718
+ var l = this.clonePosition(), u = this.parseTagName();
2719
+ return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2683
2720
  val: {
2684
2721
  type: x.tag,
2685
2722
  value: i,
2686
- children: u,
2723
+ children: o,
2687
2724
  location: b(n, this.clonePosition())
2688
2725
  },
2689
2726
  err: null
2690
- } : this.error(p.INVALID_TAG, b(o, this.clonePosition())));
2727
+ } : this.error(p.INVALID_TAG, b(a, this.clonePosition())));
2691
2728
  } else
2692
2729
  return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
2693
2730
  } else
2694
2731
  return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
2695
2732
  }, e.prototype.parseTagName = function() {
2696
2733
  var t = this.offset();
2697
- for (this.bump(); !this.isEOF() && yn(this.char()); )
2734
+ for (this.bump(); !this.isEOF() && On(this.char()); )
2698
2735
  this.bump();
2699
2736
  return this.message.slice(t, this.offset());
2700
2737
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2704,16 +2741,16 @@ var gn = (
2704
2741
  i += s;
2705
2742
  continue;
2706
2743
  }
2707
- var u = this.tryParseUnquoted(t, r);
2708
- if (u) {
2709
- i += u;
2710
- continue;
2711
- }
2712
- var o = this.tryParseLeftAngleBracket();
2744
+ var o = this.tryParseUnquoted(t, r);
2713
2745
  if (o) {
2714
2746
  i += o;
2715
2747
  continue;
2716
2748
  }
2749
+ var a = this.tryParseLeftAngleBracket();
2750
+ if (a) {
2751
+ i += a;
2752
+ continue;
2753
+ }
2717
2754
  break;
2718
2755
  }
2719
2756
  var l = b(n, this.clonePosition());
@@ -2723,7 +2760,7 @@ var gn = (
2723
2760
  };
2724
2761
  }, e.prototype.tryParseLeftAngleBracket = function() {
2725
2762
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2726
- !_n(this.peek() || 0)) ? (this.bump(), "<") : null;
2763
+ !Cn(this.peek() || 0)) ? (this.bump(), "<") : null;
2727
2764
  }, e.prototype.tryParseQuote = function(t) {
2728
2765
  if (this.isEOF() || this.char() !== 39)
2729
2766
  return null;
@@ -2757,12 +2794,12 @@ var gn = (
2757
2794
  r.push(n);
2758
2795
  this.bump();
2759
2796
  }
2760
- return Re.apply(void 0, r);
2797
+ return De.apply(void 0, r);
2761
2798
  }, e.prototype.tryParseUnquoted = function(t, r) {
2762
2799
  if (this.isEOF())
2763
2800
  return null;
2764
2801
  var n = this.char();
2765
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Re(n));
2802
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
2766
2803
  }, e.prototype.parseArgument = function(t, r) {
2767
2804
  var n = this.clonePosition();
2768
2805
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2791,39 +2828,39 @@ var gn = (
2791
2828
  return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2792
2829
  }
2793
2830
  }, e.prototype.parseIdentifierIfPossible = function() {
2794
- var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
2831
+ var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
2795
2832
  this.bumpTo(i);
2796
- var s = this.clonePosition(), u = b(t, s);
2797
- return { value: n, location: u };
2833
+ var s = this.clonePosition(), o = b(t, s);
2834
+ return { value: n, location: o };
2798
2835
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2799
- var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2800
- switch (o) {
2836
+ var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2837
+ switch (a) {
2801
2838
  case "":
2802
- return this.error(p.EXPECT_ARGUMENT_TYPE, b(u, l));
2839
+ return this.error(p.EXPECT_ARGUMENT_TYPE, b(o, l));
2803
2840
  case "number":
2804
2841
  case "date":
2805
2842
  case "time": {
2806
2843
  this.bumpSpace();
2807
- var a = null;
2844
+ var u = null;
2808
2845
  if (this.bumpIf(",")) {
2809
2846
  this.bumpSpace();
2810
2847
  var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2811
2848
  if (f.err)
2812
2849
  return f;
2813
- var c = bn(f.val);
2850
+ var c = Sn(f.val);
2814
2851
  if (c.length === 0)
2815
2852
  return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2816
2853
  var d = b(h, this.clonePosition());
2817
- a = { style: c, styleLocation: d };
2854
+ u = { style: c, styleLocation: d };
2818
2855
  }
2819
2856
  var m = this.tryParseArgumentClose(i);
2820
2857
  if (m.err)
2821
2858
  return m;
2822
2859
  var g = b(i, this.clonePosition());
2823
- if (a && rt(a?.style, "::", 0)) {
2824
- var v = pn(a.style.slice(2));
2825
- if (o === "number") {
2826
- var f = this.parseNumberSkeletonFromString(v, a.styleLocation);
2860
+ if (u && ut(u == null ? void 0 : u.style, "::", 0)) {
2861
+ var v = wn(u.style.slice(2));
2862
+ if (a === "number") {
2863
+ var f = this.parseNumberSkeletonFromString(v, u.styleLocation);
2827
2864
  return f.err ? f : {
2828
2865
  val: { type: x.number, value: n, location: g, style: f.val },
2829
2866
  err: null
@@ -2831,26 +2868,26 @@ var gn = (
2831
2868
  } else {
2832
2869
  if (v.length === 0)
2833
2870
  return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
2834
- var L = v;
2835
- this.locale && (L = tn(v, this.locale));
2871
+ var N = v;
2872
+ this.locale && (N = mn(v, this.locale));
2836
2873
  var c = {
2837
- type: k.dateTime,
2838
- pattern: L,
2839
- location: a.styleLocation,
2840
- parsedOptions: this.shouldParseSkeletons ? Zr(L) : {}
2841
- }, A = o === "date" ? x.date : x.time;
2874
+ type: V.dateTime,
2875
+ pattern: N,
2876
+ location: u.styleLocation,
2877
+ parsedOptions: this.shouldParseSkeletons ? on(N) : {}
2878
+ }, C = a === "date" ? x.date : x.time;
2842
2879
  return {
2843
- val: { type: A, value: n, location: g, style: c },
2880
+ val: { type: C, value: n, location: g, style: c },
2844
2881
  err: null
2845
2882
  };
2846
2883
  }
2847
2884
  }
2848
2885
  return {
2849
2886
  val: {
2850
- type: o === "number" ? x.number : o === "date" ? x.date : x.time,
2887
+ type: a === "number" ? x.number : a === "date" ? x.date : x.time,
2851
2888
  value: n,
2852
2889
  location: g,
2853
- style: (s = a?.style) !== null && s !== void 0 ? s : null
2890
+ style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
2854
2891
  },
2855
2892
  err: null
2856
2893
  };
@@ -2862,45 +2899,45 @@ var gn = (
2862
2899
  if (this.bumpSpace(), !this.bumpIf(","))
2863
2900
  return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
2864
2901
  this.bumpSpace();
2865
- var N = this.parseIdentifierIfPossible(), T = 0;
2866
- if (o !== "select" && N.value === "offset") {
2902
+ var I = this.parseIdentifierIfPossible(), w = 0;
2903
+ if (a !== "select" && I.value === "offset") {
2867
2904
  if (!this.bumpIf(":"))
2868
2905
  return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
2869
2906
  this.bumpSpace();
2870
2907
  var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2871
2908
  if (f.err)
2872
2909
  return f;
2873
- this.bumpSpace(), N = this.parseIdentifierIfPossible(), T = f.val;
2910
+ this.bumpSpace(), I = this.parseIdentifierIfPossible(), w = f.val;
2874
2911
  }
2875
- var $ = this.tryParsePluralOrSelectOptions(t, o, r, N);
2876
- if ($.err)
2877
- return $;
2912
+ var R = this.tryParsePluralOrSelectOptions(t, a, r, I);
2913
+ if (R.err)
2914
+ return R;
2878
2915
  var m = this.tryParseArgumentClose(i);
2879
2916
  if (m.err)
2880
2917
  return m;
2881
- var ie = b(i, this.clonePosition());
2882
- return o === "select" ? {
2918
+ var se = b(i, this.clonePosition());
2919
+ return a === "select" ? {
2883
2920
  val: {
2884
2921
  type: x.select,
2885
2922
  value: n,
2886
- options: nt($.val),
2887
- location: ie
2923
+ options: ht(R.val),
2924
+ location: se
2888
2925
  },
2889
2926
  err: null
2890
2927
  } : {
2891
2928
  val: {
2892
2929
  type: x.plural,
2893
2930
  value: n,
2894
- options: nt($.val),
2895
- offset: T,
2896
- pluralType: o === "plural" ? "cardinal" : "ordinal",
2897
- location: ie
2931
+ options: ht(R.val),
2932
+ offset: w,
2933
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
2934
+ location: se
2898
2935
  },
2899
2936
  err: null
2900
2937
  };
2901
2938
  }
2902
2939
  default:
2903
- return this.error(p.INVALID_ARGUMENT_TYPE, b(u, l));
2940
+ return this.error(p.INVALID_ARGUMENT_TYPE, b(o, l));
2904
2941
  }
2905
2942
  }, e.prototype.tryParseArgumentClose = function(t) {
2906
2943
  return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2942,34 +2979,34 @@ var gn = (
2942
2979
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2943
2980
  var n = [];
2944
2981
  try {
2945
- n = Jr(t);
2946
- } catch {
2982
+ n = un(t);
2983
+ } catch (i) {
2947
2984
  return this.error(p.INVALID_NUMBER_SKELETON, r);
2948
2985
  }
2949
2986
  return {
2950
2987
  val: {
2951
- type: k.number,
2988
+ type: V.number,
2952
2989
  tokens: n,
2953
2990
  location: r,
2954
- parsedOptions: this.shouldParseSkeletons ? en(n) : {}
2991
+ parsedOptions: this.shouldParseSkeletons ? cn(n) : {}
2955
2992
  },
2956
2993
  err: null
2957
2994
  };
2958
2995
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2959
- for (var s, u = !1, o = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
2960
- if (a.length === 0) {
2996
+ for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
2997
+ if (u.length === 0) {
2961
2998
  var f = this.clonePosition();
2962
2999
  if (r !== "select" && this.bumpIf("=")) {
2963
3000
  var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
2964
3001
  if (c.err)
2965
3002
  return c;
2966
- h = b(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
3003
+ h = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
2967
3004
  } else
2968
3005
  break;
2969
3006
  }
2970
- if (l.has(a))
3007
+ if (l.has(u))
2971
3008
  return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2972
- a === "other" && (u = !0), this.bumpSpace();
3009
+ u === "other" && (o = !0), this.bumpSpace();
2973
3010
  var d = this.clonePosition();
2974
3011
  if (!this.bumpIf("{"))
2975
3012
  return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
@@ -2979,27 +3016,27 @@ var gn = (
2979
3016
  var g = this.tryParseArgumentClose(d);
2980
3017
  if (g.err)
2981
3018
  return g;
2982
- o.push([
2983
- a,
3019
+ a.push([
3020
+ u,
2984
3021
  {
2985
3022
  value: m.val,
2986
3023
  location: b(d, this.clonePosition())
2987
3024
  }
2988
- ]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
3025
+ ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
2989
3026
  }
2990
- return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3027
+ return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2991
3028
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2992
3029
  var n = 1, i = this.clonePosition();
2993
3030
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
2994
- for (var s = !1, u = 0; !this.isEOF(); ) {
2995
- var o = this.char();
2996
- if (o >= 48 && o <= 57)
2997
- s = !0, u = u * 10 + (o - 48), this.bump();
3031
+ for (var s = !1, o = 0; !this.isEOF(); ) {
3032
+ var a = this.char();
3033
+ if (a >= 48 && a <= 57)
3034
+ s = !0, o = o * 10 + (a - 48), this.bump();
2998
3035
  else
2999
3036
  break;
3000
3037
  }
3001
3038
  var l = b(i, this.clonePosition());
3002
- return s ? (u *= n, mn(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
3039
+ return s ? (o *= n, Bn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
3003
3040
  }, e.prototype.offset = function() {
3004
3041
  return this.position.offset;
3005
3042
  }, e.prototype.isEOF = function() {
@@ -3014,7 +3051,7 @@ var gn = (
3014
3051
  var t = this.position.offset;
3015
3052
  if (t >= this.message.length)
3016
3053
  throw Error("out of bound");
3017
- var r = Dt(this.message, t);
3054
+ var r = Xt(this.message, t);
3018
3055
  if (r === void 0)
3019
3056
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3020
3057
  return r;
@@ -3033,7 +3070,7 @@ var gn = (
3033
3070
  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);
3034
3071
  }
3035
3072
  }, e.prototype.bumpIf = function(t) {
3036
- if (rt(this.message, t, this.offset())) {
3073
+ if (ut(this.message, t, this.offset())) {
3037
3074
  for (var r = 0; r < t.length; r++)
3038
3075
  this.bump();
3039
3076
  return !0;
@@ -3055,56 +3092,56 @@ var gn = (
3055
3092
  break;
3056
3093
  }
3057
3094
  }, e.prototype.bumpSpace = function() {
3058
- for (; !this.isEOF() && Ft(this.char()); )
3095
+ for (; !this.isEOF() && zt(this.char()); )
3059
3096
  this.bump();
3060
3097
  }, e.prototype.peek = function() {
3061
3098
  if (this.isEOF())
3062
3099
  return null;
3063
3100
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3064
- return n ?? null;
3101
+ return n != null ? n : null;
3065
3102
  }, e;
3066
3103
  }()
3067
3104
  );
3068
- function De(e) {
3105
+ function Fe(e) {
3069
3106
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3070
3107
  }
3071
- function _n(e) {
3072
- return De(e) || e === 47;
3108
+ function Cn(e) {
3109
+ return Fe(e) || e === 47;
3073
3110
  }
3074
- function yn(e) {
3111
+ function On(e) {
3075
3112
  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;
3076
3113
  }
3077
- function Ft(e) {
3114
+ function zt(e) {
3078
3115
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3079
3116
  }
3080
- function xn(e) {
3117
+ function Pn(e) {
3081
3118
  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;
3082
3119
  }
3083
- function Ge(e) {
3120
+ function je(e) {
3084
3121
  e.forEach(function(t) {
3085
- if (delete t.location, Pt(t) || Lt(t))
3122
+ if (delete t.location, Rt(t) || Ut(t))
3086
3123
  for (var r in t.options)
3087
- delete t.options[r].location, Ge(t.options[r].value);
3088
- else At(t) && It(t.style) || (Ct(t) || Ot(t)) && Me(t.style) ? delete t.style.location : Nt(t) && Ge(t.children);
3124
+ delete t.options[r].location, je(t.options[r].value);
3125
+ else It(t) && Gt(t.style) || (Mt(t) || $t(t)) && Re(t.style) ? delete t.style.location : Dt(t) && je(t.children);
3089
3126
  });
3090
3127
  }
3091
- function En(e, t) {
3128
+ function Ln(e, t) {
3092
3129
  t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3093
- var r = new gn(e, t).parse();
3130
+ var r = new An(e, t).parse();
3094
3131
  if (r.err) {
3095
3132
  var n = SyntaxError(p[r.err.kind]);
3096
3133
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3097
3134
  }
3098
- return t?.captureLocation || Ge(r.val), r.val;
3135
+ return t != null && t.captureLocation || je(r.val), r.val;
3099
3136
  }
3100
- var V;
3137
+ var X;
3101
3138
  (function(e) {
3102
3139
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3103
- })(V || (V = {}));
3104
- var ge = (
3140
+ })(X || (X = {}));
3141
+ var _e = (
3105
3142
  /** @class */
3106
3143
  function(e) {
3107
- be(t, e);
3144
+ ge(t, e);
3108
3145
  function t(r, n, i) {
3109
3146
  var s = e.call(this, r) || this;
3110
3147
  return s.code = n, s.originalMessage = i, s;
@@ -3113,65 +3150,65 @@ var ge = (
3113
3150
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3114
3151
  }, t;
3115
3152
  }(Error)
3116
- ), st = (
3153
+ ), ft = (
3117
3154
  /** @class */
3118
3155
  function(e) {
3119
- be(t, e);
3156
+ ge(t, e);
3120
3157
  function t(r, n, i, s) {
3121
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
3158
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, s) || this;
3122
3159
  }
3123
3160
  return t;
3124
- }(ge)
3125
- ), vn = (
3161
+ }(_e)
3162
+ ), Nn = (
3126
3163
  /** @class */
3127
3164
  function(e) {
3128
- be(t, e);
3165
+ ge(t, e);
3129
3166
  function t(r, n, i) {
3130
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
3167
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
3131
3168
  }
3132
3169
  return t;
3133
- }(ge)
3134
- ), Hn = (
3170
+ }(_e)
3171
+ ), In = (
3135
3172
  /** @class */
3136
3173
  function(e) {
3137
- be(t, e);
3174
+ ge(t, e);
3138
3175
  function t(r, n) {
3139
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
3176
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
3140
3177
  }
3141
3178
  return t;
3142
- }(ge)
3179
+ }(_e)
3143
3180
  ), E;
3144
3181
  (function(e) {
3145
3182
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3146
3183
  })(E || (E = {}));
3147
- function Bn(e) {
3184
+ function Mn(e) {
3148
3185
  return e.length < 2 ? e : e.reduce(function(t, r) {
3149
3186
  var n = t[t.length - 1];
3150
3187
  return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
3151
3188
  }, []);
3152
3189
  }
3153
- function Tn(e) {
3190
+ function $n(e) {
3154
3191
  return typeof e == "function";
3155
3192
  }
3156
- function he(e, t, r, n, i, s, u) {
3157
- if (e.length === 1 && Ye(e[0]))
3193
+ function le(e, t, r, n, i, s, o) {
3194
+ if (e.length === 1 && it(e[0]))
3158
3195
  return [
3159
3196
  {
3160
3197
  type: E.literal,
3161
3198
  value: e[0].value
3162
3199
  }
3163
3200
  ];
3164
- for (var o = [], l = 0, a = e; l < a.length; l++) {
3165
- var h = a[l];
3166
- if (Ye(h)) {
3167
- o.push({
3201
+ for (var a = [], l = 0, u = e; l < u.length; l++) {
3202
+ var h = u[l];
3203
+ if (it(h)) {
3204
+ a.push({
3168
3205
  type: E.literal,
3169
3206
  value: h.value
3170
3207
  });
3171
3208
  continue;
3172
3209
  }
3173
- if (Wr(h)) {
3174
- typeof s == "number" && o.push({
3210
+ if (nn(h)) {
3211
+ typeof s == "number" && a.push({
3175
3212
  type: E.literal,
3176
3213
  value: r.getNumberFormat(t).format(s)
3177
3214
  });
@@ -3179,89 +3216,89 @@ function he(e, t, r, n, i, s, u) {
3179
3216
  }
3180
3217
  var f = h.value;
3181
3218
  if (!(i && f in i))
3182
- throw new Hn(f, u);
3219
+ throw new In(f, o);
3183
3220
  var c = i[f];
3184
- if (Xr(h)) {
3185
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
3221
+ if (rn(h)) {
3222
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3186
3223
  type: typeof c == "string" ? E.literal : E.object,
3187
3224
  value: c
3188
3225
  });
3189
3226
  continue;
3190
3227
  }
3191
- if (Ct(h)) {
3192
- var d = typeof h.style == "string" ? n.date[h.style] : Me(h.style) ? h.style.parsedOptions : void 0;
3193
- o.push({
3228
+ if (Mt(h)) {
3229
+ var d = typeof h.style == "string" ? n.date[h.style] : Re(h.style) ? h.style.parsedOptions : void 0;
3230
+ a.push({
3194
3231
  type: E.literal,
3195
3232
  value: r.getDateTimeFormat(t, d).format(c)
3196
3233
  });
3197
3234
  continue;
3198
3235
  }
3199
- if (Ot(h)) {
3200
- var d = typeof h.style == "string" ? n.time[h.style] : Me(h.style) ? h.style.parsedOptions : n.time.medium;
3201
- o.push({
3236
+ if ($t(h)) {
3237
+ var d = typeof h.style == "string" ? n.time[h.style] : Re(h.style) ? h.style.parsedOptions : n.time.medium;
3238
+ a.push({
3202
3239
  type: E.literal,
3203
3240
  value: r.getDateTimeFormat(t, d).format(c)
3204
3241
  });
3205
3242
  continue;
3206
3243
  }
3207
- if (At(h)) {
3208
- var d = typeof h.style == "string" ? n.number[h.style] : It(h.style) ? h.style.parsedOptions : void 0;
3209
- d && d.scale && (c = c * (d.scale || 1)), o.push({
3244
+ if (It(h)) {
3245
+ var d = typeof h.style == "string" ? n.number[h.style] : Gt(h.style) ? h.style.parsedOptions : void 0;
3246
+ d && d.scale && (c = c * (d.scale || 1)), a.push({
3210
3247
  type: E.literal,
3211
3248
  value: r.getNumberFormat(t, d).format(c)
3212
3249
  });
3213
3250
  continue;
3214
3251
  }
3215
- if (Nt(h)) {
3252
+ if (Dt(h)) {
3216
3253
  var m = h.children, g = h.value, v = i[g];
3217
- if (!Tn(v))
3218
- throw new vn(g, "function", u);
3219
- var L = he(m, t, r, n, i, s), A = v(L.map(function(T) {
3220
- return T.value;
3254
+ if (!$n(v))
3255
+ throw new Nn(g, "function", o);
3256
+ var N = le(m, t, r, n, i, s), C = v(N.map(function(w) {
3257
+ return w.value;
3221
3258
  }));
3222
- Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(T) {
3259
+ Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(w) {
3223
3260
  return {
3224
- type: typeof T == "string" ? E.literal : E.object,
3225
- value: T
3261
+ type: typeof w == "string" ? E.literal : E.object,
3262
+ value: w
3226
3263
  };
3227
3264
  }));
3228
3265
  }
3229
- if (Pt(h)) {
3266
+ if (Rt(h)) {
3230
3267
  var H = h.options[c] || h.options.other;
3231
3268
  if (!H)
3232
- throw new st(h.value, c, Object.keys(h.options), u);
3233
- o.push.apply(o, he(H.value, t, r, n, i));
3269
+ throw new ft(h.value, c, Object.keys(h.options), o);
3270
+ a.push.apply(a, le(H.value, t, r, n, i));
3234
3271
  continue;
3235
3272
  }
3236
- if (Lt(h)) {
3273
+ if (Ut(h)) {
3237
3274
  var H = h.options["=".concat(c)];
3238
3275
  if (!H) {
3239
3276
  if (!Intl.PluralRules)
3240
- throw new ge(`Intl.PluralRules is not available in this environment.
3277
+ throw new _e(`Intl.PluralRules is not available in this environment.
3241
3278
  Try polyfilling it using "@formatjs/intl-pluralrules"
3242
- `, V.MISSING_INTL_API, u);
3243
- var N = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3244
- H = h.options[N] || h.options.other;
3279
+ `, X.MISSING_INTL_API, o);
3280
+ var I = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3281
+ H = h.options[I] || h.options.other;
3245
3282
  }
3246
3283
  if (!H)
3247
- throw new st(h.value, c, Object.keys(h.options), u);
3248
- o.push.apply(o, he(H.value, t, r, n, i, c - (h.offset || 0)));
3284
+ throw new ft(h.value, c, Object.keys(h.options), o);
3285
+ a.push.apply(a, le(H.value, t, r, n, i, c - (h.offset || 0)));
3249
3286
  continue;
3250
3287
  }
3251
3288
  }
3252
- return Bn(o);
3289
+ return Mn(a);
3253
3290
  }
3254
- function wn(e, t) {
3291
+ function Rn(e, t) {
3255
3292
  return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3256
3293
  return r[n] = y(y({}, e[n]), t[n] || {}), r;
3257
3294
  }, {})) : e;
3258
3295
  }
3259
- function Sn(e, t) {
3296
+ function Un(e, t) {
3260
3297
  return t ? Object.keys(e).reduce(function(r, n) {
3261
- return r[n] = wn(e[n], t[n]), r;
3298
+ return r[n] = Rn(e[n], t[n]), r;
3262
3299
  }, y({}, e)) : e;
3263
3300
  }
3264
- function Ce(e) {
3301
+ function Pe(e) {
3265
3302
  return {
3266
3303
  create: function() {
3267
3304
  return {
@@ -3275,39 +3312,39 @@ function Ce(e) {
3275
3312
  }
3276
3313
  };
3277
3314
  }
3278
- function An(e) {
3315
+ function Dn(e) {
3279
3316
  return e === void 0 && (e = {
3280
3317
  number: {},
3281
3318
  dateTime: {},
3282
3319
  pluralRules: {}
3283
3320
  }), {
3284
- getNumberFormat: we(function() {
3321
+ getNumberFormat: Ae(function() {
3285
3322
  for (var t, r = [], n = 0; n < arguments.length; n++)
3286
3323
  r[n] = arguments[n];
3287
- return new ((t = Intl.NumberFormat).bind.apply(t, Te([void 0], r, !1)))();
3324
+ return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
3288
3325
  }, {
3289
- cache: Ce(e.number),
3290
- strategy: Se.variadic
3326
+ cache: Pe(e.number),
3327
+ strategy: Ce.variadic
3291
3328
  }),
3292
- getDateTimeFormat: we(function() {
3329
+ getDateTimeFormat: Ae(function() {
3293
3330
  for (var t, r = [], n = 0; n < arguments.length; n++)
3294
3331
  r[n] = arguments[n];
3295
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Te([void 0], r, !1)))();
3332
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
3296
3333
  }, {
3297
- cache: Ce(e.dateTime),
3298
- strategy: Se.variadic
3334
+ cache: Pe(e.dateTime),
3335
+ strategy: Ce.variadic
3299
3336
  }),
3300
- getPluralRules: we(function() {
3337
+ getPluralRules: Ae(function() {
3301
3338
  for (var t, r = [], n = 0; n < arguments.length; n++)
3302
3339
  r[n] = arguments[n];
3303
- return new ((t = Intl.PluralRules).bind.apply(t, Te([void 0], r, !1)))();
3340
+ return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
3304
3341
  }, {
3305
- cache: Ce(e.pluralRules),
3306
- strategy: Se.variadic
3342
+ cache: Pe(e.pluralRules),
3343
+ strategy: Ce.variadic
3307
3344
  })
3308
3345
  };
3309
3346
  }
3310
- var jt = (
3347
+ var Zt = (
3311
3348
  /** @class */
3312
3349
  function() {
3313
3350
  function e(t, r, n, i) {
@@ -3318,15 +3355,15 @@ var jt = (
3318
3355
  dateTime: {},
3319
3356
  pluralRules: {}
3320
3357
  }, this.format = function(l) {
3321
- var a = s.formatToParts(l);
3322
- if (a.length === 1)
3323
- return a[0].value;
3324
- var h = a.reduce(function(f, c) {
3358
+ var u = s.formatToParts(l);
3359
+ if (u.length === 1)
3360
+ return u[0].value;
3361
+ var h = u.reduce(function(f, c) {
3325
3362
  return !f.length || c.type !== E.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3326
3363
  }, []);
3327
3364
  return h.length <= 1 ? h[0] || "" : h;
3328
3365
  }, this.formatToParts = function(l) {
3329
- return he(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3366
+ return le(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3330
3367
  }, this.resolvedOptions = function() {
3331
3368
  var l;
3332
3369
  return {
@@ -3337,15 +3374,15 @@ var jt = (
3337
3374
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3338
3375
  if (this.message = t, !e.__parse)
3339
3376
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3340
- var u = i || {};
3341
- u.formatters;
3342
- var o = Rr(u, ["formatters"]);
3343
- this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
3377
+ var o = i || {};
3378
+ o.formatters;
3379
+ var a = Zr(o, ["formatters"]);
3380
+ this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
3344
3381
  } else
3345
3382
  this.ast = t;
3346
3383
  if (!Array.isArray(this.ast))
3347
3384
  throw new TypeError("A message must be provided as a String or AST.");
3348
- this.formats = Sn(e.formats, n), this.formatters = i && i.formatters || An(this.formatterCache);
3385
+ this.formats = Un(e.formats, n), this.formatters = i && i.formatters || Dn(this.formatterCache);
3349
3386
  }
3350
3387
  return Object.defineProperty(e, "defaultLocale", {
3351
3388
  get: function() {
@@ -3354,11 +3391,11 @@ var jt = (
3354
3391
  enumerable: !1,
3355
3392
  configurable: !0
3356
3393
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3357
- if (!(typeof Intl.Locale > "u")) {
3394
+ if (typeof Intl.Locale != "undefined") {
3358
3395
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3359
3396
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3360
3397
  }
3361
- }, e.__parse = En, e.formats = {
3398
+ }, e.__parse = Ln, e.formats = {
3362
3399
  number: {
3363
3400
  integer: {
3364
3401
  maximumFractionDigits: 0
@@ -3419,7 +3456,7 @@ var jt = (
3419
3456
  }, e;
3420
3457
  }()
3421
3458
  );
3422
- function Cn(e, t) {
3459
+ function Gn(e, t) {
3423
3460
  if (t == null)
3424
3461
  return;
3425
3462
  if (t in e)
@@ -3440,101 +3477,101 @@ function Cn(e, t) {
3440
3477
  n = void 0;
3441
3478
  return n;
3442
3479
  }
3443
- const C = {}, On = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), kt = (e, t) => {
3480
+ const O = {}, Fn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), Qt = (e, t) => {
3444
3481
  if (t == null)
3445
3482
  return;
3446
- if (t in C && e in C[t])
3447
- return C[t][e];
3448
- const r = ne(t);
3483
+ if (t in O && e in O[t])
3484
+ return O[t][e];
3485
+ const r = ie(t);
3449
3486
  for (let n = 0; n < r.length; n++) {
3450
- const i = r[n], s = Ln(i, e);
3487
+ const i = r[n], s = kn(i, e);
3451
3488
  if (s)
3452
- return On(e, t, s);
3489
+ return Fn(e, t, s);
3453
3490
  }
3454
3491
  };
3455
- let We;
3456
- const re = pe({});
3457
- function Pn(e) {
3458
- return We[e] || null;
3492
+ let Ze;
3493
+ const ne = be({});
3494
+ function jn(e) {
3495
+ return Ze[e] || null;
3459
3496
  }
3460
- function Vt(e) {
3461
- return e in We;
3497
+ function Jt(e) {
3498
+ return e in Ze;
3462
3499
  }
3463
- function Ln(e, t) {
3464
- if (!Vt(e))
3500
+ function kn(e, t) {
3501
+ if (!Jt(e))
3465
3502
  return null;
3466
- const r = Pn(e);
3467
- return Cn(r, t);
3503
+ const r = jn(e);
3504
+ return Gn(r, t);
3468
3505
  }
3469
- function Nn(e) {
3506
+ function Vn(e) {
3470
3507
  if (e == null)
3471
3508
  return;
3472
- const t = ne(e);
3509
+ const t = ie(e);
3473
3510
  for (let r = 0; r < t.length; r++) {
3474
3511
  const n = t[r];
3475
- if (Vt(n))
3512
+ if (Jt(n))
3476
3513
  return n;
3477
3514
  }
3478
3515
  }
3479
- function Xt(e, ...t) {
3480
- delete C[e], re.update((r) => (r[e] = $r.all([r[e] || {}, ...t]), r));
3516
+ function qt(e, ...t) {
3517
+ delete O[e], ne.update((r) => (r[e] = zr.all([r[e] || {}, ...t]), r));
3481
3518
  }
3482
- z(
3483
- [re],
3519
+ Z(
3520
+ [ne],
3484
3521
  ([e]) => Object.keys(e)
3485
3522
  );
3486
- re.subscribe((e) => We = e);
3487
- const le = {};
3488
- function In(e, t) {
3489
- le[e].delete(t), le[e].size === 0 && delete le[e];
3523
+ ne.subscribe((e) => Ze = e);
3524
+ const fe = {};
3525
+ function Xn(e, t) {
3526
+ fe[e].delete(t), fe[e].size === 0 && delete fe[e];
3490
3527
  }
3491
- function Wt(e) {
3492
- return le[e];
3528
+ function Yt(e) {
3529
+ return fe[e];
3493
3530
  }
3494
- function Mn(e) {
3495
- return ne(e).map((t) => {
3496
- const r = Wt(t);
3531
+ function Wn(e) {
3532
+ return ie(e).map((t) => {
3533
+ const r = Yt(t);
3497
3534
  return [t, r ? [...r] : []];
3498
3535
  }).filter(([, t]) => t.length > 0);
3499
3536
  }
3500
- function ce(e) {
3501
- return e == null ? !1 : ne(e).some(
3537
+ function me(e) {
3538
+ return e == null ? !1 : ie(e).some(
3502
3539
  (t) => {
3503
3540
  var r;
3504
- return (r = Wt(t)) == null ? void 0 : r.size;
3541
+ return (r = Yt(t)) == null ? void 0 : r.size;
3505
3542
  }
3506
3543
  );
3507
3544
  }
3508
- function $n(e, t) {
3545
+ function zn(e, t) {
3509
3546
  return Promise.all(
3510
- t.map((n) => (In(e, n), n().then((i) => i.default || i)))
3511
- ).then((n) => Xt(e, ...n));
3512
- }
3513
- const Q = {};
3514
- function zt(e) {
3515
- if (!ce(e))
3516
- return e in Q ? Q[e] : Promise.resolve();
3517
- const t = Mn(e);
3518
- return Q[e] = Promise.all(
3547
+ t.map((n) => (Xn(e, n), n().then((i) => i.default || i)))
3548
+ ).then((n) => qt(e, ...n));
3549
+ }
3550
+ const J = {};
3551
+ function Kt(e) {
3552
+ if (!me(e))
3553
+ return e in J ? J[e] : Promise.resolve();
3554
+ const t = Wn(e);
3555
+ return J[e] = Promise.all(
3519
3556
  t.map(
3520
- ([r, n]) => $n(r, n)
3557
+ ([r, n]) => zn(r, n)
3521
3558
  )
3522
3559
  ).then(() => {
3523
- if (ce(e))
3524
- return zt(e);
3525
- delete Q[e];
3526
- }), Q[e];
3560
+ if (me(e))
3561
+ return Kt(e);
3562
+ delete J[e];
3563
+ }), J[e];
3527
3564
  }
3528
- var ot = Object.getOwnPropertySymbols, Rn = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, Dn = (e, t) => {
3565
+ var ct = Object.getOwnPropertySymbols, Zn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, Jn = (e, t) => {
3529
3566
  var r = {};
3530
3567
  for (var n in e)
3531
- Rn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3532
- if (e != null && ot)
3533
- for (var n of ot(e))
3534
- t.indexOf(n) < 0 && Un.call(e, n) && (r[n] = e[n]);
3568
+ Zn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3569
+ if (e != null && ct)
3570
+ for (var n of ct(e))
3571
+ t.indexOf(n) < 0 && Qn.call(e, n) && (r[n] = e[n]);
3535
3572
  return r;
3536
3573
  };
3537
- const Gn = {
3574
+ const qn = {
3538
3575
  number: {
3539
3576
  scientific: { notation: "scientific" },
3540
3577
  engineering: { notation: "engineering" },
@@ -3564,183 +3601,183 @@ const Gn = {
3564
3601
  }
3565
3602
  }
3566
3603
  };
3567
- function Fn({ locale: e, id: t }) {
3604
+ function Yn({ locale: e, id: t }) {
3568
3605
  console.warn(
3569
- `[svelte-i18n] The message "${t}" was not found in "${ne(
3606
+ `[svelte-i18n] The message "${t}" was not found in "${ie(
3570
3607
  e
3571
- ).join('", "')}".${ce(P()) ? `
3608
+ ).join('", "')}".${me(L()) ? `
3572
3609
 
3573
3610
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3574
3611
  );
3575
3612
  }
3576
- const jn = {
3613
+ const Kn = {
3577
3614
  fallbackLocale: null,
3578
3615
  loadingDelay: 200,
3579
- formats: Gn,
3616
+ formats: qn,
3580
3617
  warnOnMissingMessages: !0,
3581
3618
  handleMissingMessage: void 0,
3582
3619
  ignoreTag: !0
3583
- }, J = jn;
3584
- function X() {
3585
- return J;
3620
+ }, q = Kn;
3621
+ function W() {
3622
+ return q;
3586
3623
  }
3587
- function kn(e) {
3588
- const t = e, { formats: r } = t, n = Dn(t, ["formats"]);
3624
+ function ei(e) {
3625
+ const t = e, { formats: r } = t, n = Jn(t, ["formats"]);
3589
3626
  let i = e.fallbackLocale;
3590
3627
  if (e.initialLocale)
3591
3628
  try {
3592
- jt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3593
- } catch {
3629
+ Zt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3630
+ } catch (s) {
3594
3631
  console.warn(
3595
3632
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3596
3633
  );
3597
3634
  }
3598
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Fn : console.warn(
3635
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Yn : console.warn(
3599
3636
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3600
- )), Object.assign(J, n, { initialLocale: i }), r && ("number" in r && Object.assign(J.formats.number, r.number), "date" in r && Object.assign(J.formats.date, r.date), "time" in r && Object.assign(J.formats.time, r.time)), M.set(i);
3637
+ )), Object.assign(q, n, { initialLocale: i }), r && ("number" in r && Object.assign(q.formats.number, r.number), "date" in r && Object.assign(q.formats.date, r.date), "time" in r && Object.assign(q.formats.time, r.time)), $.set(i);
3601
3638
  }
3602
- const Oe = pe(!1);
3603
- var Vn = Object.defineProperty, Xn = Object.defineProperties, Wn = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, zn = Object.prototype.hasOwnProperty, Zn = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? Vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qn = (e, t) => {
3639
+ const Le = be(!1);
3640
+ var ti = Object.defineProperty, ri = Object.defineProperties, ni = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, ii = Object.prototype.hasOwnProperty, si = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, oi = (e, t) => {
3604
3641
  for (var r in t)
3605
- zn.call(t, r) && ut(e, r, t[r]);
3606
- if (at)
3607
- for (var r of at(t))
3608
- Zn.call(t, r) && ut(e, r, t[r]);
3642
+ ii.call(t, r) && dt(e, r, t[r]);
3643
+ if (mt)
3644
+ for (var r of mt(t))
3645
+ si.call(t, r) && dt(e, r, t[r]);
3609
3646
  return e;
3610
- }, Jn = (e, t) => Xn(e, Wn(t));
3611
- let Fe;
3612
- const me = pe(null);
3613
- function ht(e) {
3647
+ }, ai = (e, t) => ri(e, ni(t));
3648
+ let ke;
3649
+ const de = be(null);
3650
+ function pt(e) {
3614
3651
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3615
3652
  }
3616
- function ne(e, t = X().fallbackLocale) {
3617
- const r = ht(e);
3618
- return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
3653
+ function ie(e, t = W().fallbackLocale) {
3654
+ const r = pt(e);
3655
+ return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
3619
3656
  }
3620
- function P() {
3621
- return Fe ?? void 0;
3657
+ function L() {
3658
+ return ke != null ? ke : void 0;
3622
3659
  }
3623
- me.subscribe((e) => {
3624
- Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3660
+ de.subscribe((e) => {
3661
+ ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3625
3662
  });
3626
- const qn = (e) => {
3627
- if (e && Nn(e) && ce(e)) {
3628
- const { loadingDelay: t } = X();
3663
+ const ui = (e) => {
3664
+ if (e && Vn(e) && me(e)) {
3665
+ const { loadingDelay: t } = W();
3629
3666
  let r;
3630
- return typeof window < "u" && P() != null && t ? r = window.setTimeout(
3631
- () => Oe.set(!0),
3667
+ return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
3668
+ () => Le.set(!0),
3632
3669
  t
3633
- ) : Oe.set(!0), zt(e).then(() => {
3634
- me.set(e);
3670
+ ) : Le.set(!0), Kt(e).then(() => {
3671
+ de.set(e);
3635
3672
  }).finally(() => {
3636
- clearTimeout(r), Oe.set(!1);
3673
+ clearTimeout(r), Le.set(!1);
3637
3674
  });
3638
3675
  }
3639
- return me.set(e);
3640
- }, M = Jn(Qn({}, me), {
3641
- set: qn
3642
- }), _e = (e) => {
3676
+ return de.set(e);
3677
+ }, $ = ai(oi({}, de), {
3678
+ set: ui
3679
+ }), ye = (e) => {
3643
3680
  const t = /* @__PURE__ */ Object.create(null);
3644
3681
  return (n) => {
3645
3682
  const i = JSON.stringify(n);
3646
3683
  return i in t ? t[i] : t[i] = e(n);
3647
3684
  };
3648
3685
  };
3649
- var Yn = Object.defineProperty, de = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
3686
+ var hi = Object.defineProperty, pe = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
3650
3687
  for (var r in t || (t = {}))
3651
- Zt.call(t, r) && lt(e, r, t[r]);
3652
- if (de)
3653
- for (var r of de(t))
3654
- Qt.call(t, r) && lt(e, r, t[r]);
3688
+ er.call(t, r) && bt(e, r, t[r]);
3689
+ if (pe)
3690
+ for (var r of pe(t))
3691
+ tr.call(t, r) && bt(e, r, t[r]);
3655
3692
  return e;
3656
- }, Z = (e, t) => {
3693
+ }, Q = (e, t) => {
3657
3694
  var r = {};
3658
3695
  for (var n in e)
3659
- Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3660
- if (e != null && de)
3661
- for (var n of de(e))
3662
- t.indexOf(n) < 0 && Qt.call(e, n) && (r[n] = e[n]);
3696
+ er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3697
+ if (e != null && pe)
3698
+ for (var n of pe(e))
3699
+ t.indexOf(n) < 0 && tr.call(e, n) && (r[n] = e[n]);
3663
3700
  return r;
3664
3701
  };
3665
- const K = (e, t) => {
3666
- const { formats: r } = X();
3702
+ const ee = (e, t) => {
3703
+ const { formats: r } = W();
3667
3704
  if (e in r && t in r[e])
3668
3705
  return r[e][t];
3669
3706
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3670
- }, Kn = _e(
3707
+ }, li = ye(
3671
3708
  (e) => {
3672
- var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3709
+ var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3673
3710
  if (r == null)
3674
3711
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3675
- return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
3712
+ return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
3676
3713
  }
3677
- ), ei = _e(
3714
+ ), fi = ye(
3678
3715
  (e) => {
3679
- var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3716
+ var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3680
3717
  if (r == null)
3681
3718
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3682
- return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
3719
+ return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
3683
3720
  }
3684
- ), ti = _e(
3721
+ ), ci = ye(
3685
3722
  (e) => {
3686
- var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3723
+ var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3687
3724
  if (r == null)
3688
3725
  throw new Error(
3689
3726
  '[svelte-i18n] A "locale" must be set to format time values'
3690
3727
  );
3691
- return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
3728
+ return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
3692
3729
  }
3693
- ), ri = (e = {}) => {
3730
+ ), mi = (e = {}) => {
3694
3731
  var t = e, {
3695
- locale: r = P()
3696
- } = t, n = Z(t, [
3732
+ locale: r = L()
3733
+ } = t, n = Q(t, [
3697
3734
  "locale"
3698
3735
  ]);
3699
- return Kn(ze({ locale: r }, n));
3700
- }, ni = (e = {}) => {
3736
+ return li(Qe({ locale: r }, n));
3737
+ }, di = (e = {}) => {
3701
3738
  var t = e, {
3702
- locale: r = P()
3703
- } = t, n = Z(t, [
3739
+ locale: r = L()
3740
+ } = t, n = Q(t, [
3704
3741
  "locale"
3705
3742
  ]);
3706
- return ei(ze({ locale: r }, n));
3707
- }, ii = (e = {}) => {
3743
+ return fi(Qe({ locale: r }, n));
3744
+ }, pi = (e = {}) => {
3708
3745
  var t = e, {
3709
- locale: r = P()
3710
- } = t, n = Z(t, [
3746
+ locale: r = L()
3747
+ } = t, n = Q(t, [
3711
3748
  "locale"
3712
3749
  ]);
3713
- return ti(ze({ locale: r }, n));
3714
- }, si = _e(
3750
+ return ci(Qe({ locale: r }, n));
3751
+ }, bi = ye(
3715
3752
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3716
- (e, t = P()) => new jt(e, t, X().formats, {
3717
- ignoreTag: X().ignoreTag
3753
+ (e, t = L()) => new Zt(e, t, W().formats, {
3754
+ ignoreTag: W().ignoreTag
3718
3755
  })
3719
- ), oi = (e, t = {}) => {
3756
+ ), gi = (e, t = {}) => {
3720
3757
  var r, n, i, s;
3721
- let u = t;
3722
- typeof e == "object" && (u = e, e = u.id);
3758
+ let o = t;
3759
+ typeof e == "object" && (o = e, e = o.id);
3723
3760
  const {
3724
- values: o,
3725
- locale: l = P(),
3726
- default: a
3727
- } = u;
3761
+ values: a,
3762
+ locale: l = L(),
3763
+ default: u
3764
+ } = o;
3728
3765
  if (l == null)
3729
3766
  throw new Error(
3730
3767
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3731
3768
  );
3732
- let h = kt(e, l);
3769
+ let h = Qt(e, l);
3733
3770
  if (!h)
3734
- h = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3771
+ h = (s = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3735
3772
  else if (typeof h != "string")
3736
3773
  return console.warn(
3737
3774
  `[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.`
3738
3775
  ), h;
3739
- if (!o)
3776
+ if (!a)
3740
3777
  return h;
3741
3778
  let f = h;
3742
3779
  try {
3743
- f = si(h, l).format(o);
3780
+ f = bi(h, l).format(a);
3744
3781
  } catch (c) {
3745
3782
  c instanceof Error && console.warn(
3746
3783
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3748,20 +3785,20 @@ const K = (e, t) => {
3748
3785
  );
3749
3786
  }
3750
3787
  return f;
3751
- }, ai = (e, t) => ii(t).format(e), ui = (e, t) => ni(t).format(e), hi = (e, t) => ri(t).format(e), li = (e, t = P()) => kt(e, t), fi = z([M, re], () => oi);
3752
- z([M], () => ai);
3753
- z([M], () => ui);
3754
- z([M], () => hi);
3755
- z([M, re], () => li);
3756
- function ft(e, t) {
3757
- Xt(e, t);
3758
- }
3759
- function ci(e) {
3760
- kn({
3788
+ }, _i = (e, t) => pi(t).format(e), yi = (e, t) => di(t).format(e), xi = (e, t) => mi(t).format(e), Ei = (e, t = L()) => Qt(e, t), vi = Z([$, ne], () => gi);
3789
+ Z([$], () => _i);
3790
+ Z([$], () => yi);
3791
+ Z([$], () => xi);
3792
+ Z([$, ne], () => Ei);
3793
+ function gt(e, t) {
3794
+ qt(e, t);
3795
+ }
3796
+ function Hi(e) {
3797
+ ei({
3761
3798
  fallbackLocale: "en"
3762
- }), M.set(e);
3799
+ }), $.set(e);
3763
3800
  }
3764
- const ct = {
3801
+ const _t = {
3765
3802
  en: {
3766
3803
  header: {
3767
3804
  general: "Cashier",
@@ -3784,52 +3821,52 @@ const ct = {
3784
3821
  }
3785
3822
  }
3786
3823
  };
3787
- function mi(e) {
3788
- rr(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
3824
+ function Bi(e) {
3825
+ mr(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
3789
3826
  }
3790
- const di = (e) => ({}), mt = (e) => ({}), pi = (e) => ({}), dt = (e) => ({}), bi = (e) => ({}), pt = (e) => ({});
3791
- function bt(e) {
3827
+ const Ti = (e) => ({}), yt = (e) => ({}), wi = (e) => ({}), xt = (e) => ({}), Si = (e) => ({}), Et = (e) => ({});
3828
+ function vt(e) {
3792
3829
  let t, r, n;
3793
3830
  return {
3794
3831
  c() {
3795
- t = W("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', te(t, "class", "CashierHeaderLeftButton");
3832
+ 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>', re(t, "class", "CashierHeaderLeftButton");
3796
3833
  },
3797
3834
  m(i, s) {
3798
- I(i, t, s), r || (n = Ht(
3835
+ M(i, t, s), r || (n = Ct(
3799
3836
  t,
3800
3837
  "click",
3801
3838
  /*back*/
3802
3839
  e[6]
3803
3840
  ), r = !0);
3804
3841
  },
3805
- p: B,
3842
+ p: T,
3806
3843
  d(i) {
3807
- i && O(t), r = !1, n();
3844
+ i && P(t), r = !1, n();
3808
3845
  }
3809
3846
  };
3810
3847
  }
3811
- function gi(e) {
3848
+ function Ai(e) {
3812
3849
  let t, r = (
3813
3850
  /*backButton*/
3814
- e[1] && bt(e)
3851
+ e[1] && vt(e)
3815
3852
  );
3816
3853
  return {
3817
3854
  c() {
3818
- r && r.c(), t = vt();
3855
+ r && r.c(), t = At();
3819
3856
  },
3820
3857
  m(n, i) {
3821
- r && r.m(n, i), I(n, t, i);
3858
+ r && r.m(n, i), M(n, t, i);
3822
3859
  },
3823
3860
  p(n, i) {
3824
3861
  /*backButton*/
3825
- n[1] ? r ? r.p(n, i) : (r = bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3862
+ n[1] ? r ? r.p(n, i) : (r = vt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3826
3863
  },
3827
3864
  d(n) {
3828
- n && O(t), r && r.d(n);
3865
+ n && P(t), r && r.d(n);
3829
3866
  }
3830
3867
  };
3831
3868
  }
3832
- function _i(e) {
3869
+ function Ci(e) {
3833
3870
  let t, r = (
3834
3871
  /*$_*/
3835
3872
  e[4](
@@ -3839,10 +3876,10 @@ function _i(e) {
3839
3876
  ), n;
3840
3877
  return {
3841
3878
  c() {
3842
- t = W("span"), n = ke(r), te(t, "class", "CashierHeaderTitle");
3879
+ t = z("span"), n = Xe(r), re(t, "class", "CashierHeaderTitle");
3843
3880
  },
3844
3881
  m(i, s) {
3845
- I(i, t, s), fe(t, n);
3882
+ M(i, t, s), ce(t, n);
3846
3883
  },
3847
3884
  p(i, s) {
3848
3885
  s & /*$_, titleText*/
@@ -3850,249 +3887,249 @@ function _i(e) {
3850
3887
  i[4](
3851
3888
  /*titleText*/
3852
3889
  i[2]
3853
- ) + "") && or(n, r);
3890
+ ) + "") && gr(n, r);
3854
3891
  },
3855
3892
  d(i) {
3856
- i && O(t);
3893
+ i && P(t);
3857
3894
  }
3858
3895
  };
3859
3896
  }
3860
- function gt(e) {
3897
+ function Ht(e) {
3861
3898
  let t, r, n;
3862
3899
  return {
3863
3900
  c() {
3864
- t = W("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', te(t, "class", "CashierHeaderRightButton");
3901
+ 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>', re(t, "class", "CashierHeaderRightButton");
3865
3902
  },
3866
3903
  m(i, s) {
3867
- I(i, t, s), r || (n = Ht(
3904
+ M(i, t, s), r || (n = Ct(
3868
3905
  t,
3869
3906
  "click",
3870
3907
  /*close*/
3871
3908
  e[5]
3872
3909
  ), r = !0);
3873
3910
  },
3874
- p: B,
3911
+ p: T,
3875
3912
  d(i) {
3876
- i && O(t), r = !1, n();
3913
+ i && P(t), r = !1, n();
3877
3914
  }
3878
3915
  };
3879
3916
  }
3880
- function yi(e) {
3917
+ function Oi(e) {
3881
3918
  let t, r = (
3882
3919
  /*closeButton*/
3883
- e[3] && gt(e)
3920
+ e[3] && Ht(e)
3884
3921
  );
3885
3922
  return {
3886
3923
  c() {
3887
- r && r.c(), t = vt();
3924
+ r && r.c(), t = At();
3888
3925
  },
3889
3926
  m(n, i) {
3890
- r && r.m(n, i), I(n, t, i);
3927
+ r && r.m(n, i), M(n, t, i);
3891
3928
  },
3892
3929
  p(n, i) {
3893
3930
  /*closeButton*/
3894
- n[3] ? r ? r.p(n, i) : (r = gt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3931
+ n[3] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3895
3932
  },
3896
3933
  d(n) {
3897
- n && O(t), r && r.d(n);
3934
+ n && P(t), r && r.d(n);
3898
3935
  }
3899
3936
  };
3900
3937
  }
3901
- function xi(e) {
3938
+ function Pi(e) {
3902
3939
  let t, r, n, i;
3903
3940
  const s = (
3904
3941
  /*#slots*/
3905
3942
  e[15].leftButton
3906
- ), u = ye(
3943
+ ), o = Ee(
3907
3944
  s,
3908
3945
  e,
3909
3946
  /*$$scope*/
3910
3947
  e[14],
3911
- pt
3912
- ), o = u || gi(e), l = (
3948
+ Et
3949
+ ), a = o || Ai(e), l = (
3913
3950
  /*#slots*/
3914
3951
  e[15].title
3915
- ), a = ye(
3952
+ ), u = Ee(
3916
3953
  l,
3917
3954
  e,
3918
3955
  /*$$scope*/
3919
3956
  e[14],
3920
- dt
3921
- ), h = a || _i(e), f = (
3957
+ xt
3958
+ ), h = u || Ci(e), f = (
3922
3959
  /*#slots*/
3923
3960
  e[15].rightButton
3924
- ), c = ye(
3961
+ ), c = Ee(
3925
3962
  f,
3926
3963
  e,
3927
3964
  /*$$scope*/
3928
3965
  e[14],
3929
- mt
3930
- ), d = c || yi(e);
3966
+ yt
3967
+ ), d = c || Oi(e);
3931
3968
  return {
3932
3969
  c() {
3933
- t = W("div"), o.c(), r = Qe(), h.c(), n = Qe(), d.c(), te(t, "class", "CashierHeader");
3970
+ t = z("div"), a.c(), r = tt(), h.c(), n = tt(), d.c(), re(t, "class", "CashierHeader");
3934
3971
  },
3935
3972
  m(m, g) {
3936
- I(m, t, g), o.m(t, null), fe(t, r), h.m(t, null), fe(t, n), d.m(t, null), e[16](t), i = !0;
3973
+ M(m, t, g), a.m(t, null), ce(t, r), h.m(t, null), ce(t, n), d.m(t, null), e[16](t), i = !0;
3937
3974
  },
3938
3975
  p(m, [g]) {
3939
- u ? u.p && (!i || g & /*$$scope*/
3940
- 16384) && Ee(
3941
- u,
3976
+ o ? o.p && (!i || g & /*$$scope*/
3977
+ 16384) && He(
3978
+ o,
3942
3979
  s,
3943
3980
  m,
3944
3981
  /*$$scope*/
3945
3982
  m[14],
3946
- i ? xe(
3983
+ i ? ve(
3947
3984
  s,
3948
3985
  /*$$scope*/
3949
3986
  m[14],
3950
3987
  g,
3951
- bi
3952
- ) : ve(
3988
+ Si
3989
+ ) : Be(
3953
3990
  /*$$scope*/
3954
3991
  m[14]
3955
3992
  ),
3956
- pt
3957
- ) : o.p && (!i || g & /*backButton*/
3958
- 2) && o.p(m, i ? g : -1), a ? a.p && (!i || g & /*$$scope*/
3959
- 16384) && Ee(
3960
- a,
3993
+ Et
3994
+ ) : a.p && (!i || g & /*backButton*/
3995
+ 2) && a.p(m, i ? g : -1), u ? u.p && (!i || g & /*$$scope*/
3996
+ 16384) && He(
3997
+ u,
3961
3998
  l,
3962
3999
  m,
3963
4000
  /*$$scope*/
3964
4001
  m[14],
3965
- i ? xe(
4002
+ i ? ve(
3966
4003
  l,
3967
4004
  /*$$scope*/
3968
4005
  m[14],
3969
4006
  g,
3970
- pi
3971
- ) : ve(
4007
+ wi
4008
+ ) : Be(
3972
4009
  /*$$scope*/
3973
4010
  m[14]
3974
4011
  ),
3975
- dt
4012
+ xt
3976
4013
  ) : h.p && (!i || g & /*$_, titleText*/
3977
4014
  20) && h.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
3978
- 16384) && Ee(
4015
+ 16384) && He(
3979
4016
  c,
3980
4017
  f,
3981
4018
  m,
3982
4019
  /*$$scope*/
3983
4020
  m[14],
3984
- i ? xe(
4021
+ i ? ve(
3985
4022
  f,
3986
4023
  /*$$scope*/
3987
4024
  m[14],
3988
4025
  g,
3989
- di
3990
- ) : ve(
4026
+ Ti
4027
+ ) : Be(
3991
4028
  /*$$scope*/
3992
4029
  m[14]
3993
4030
  ),
3994
- mt
4031
+ yt
3995
4032
  ) : d.p && (!i || g & /*closeButton*/
3996
4033
  8) && d.p(m, i ? g : -1);
3997
4034
  },
3998
4035
  i(m) {
3999
- i || (ae(o, m), ae(h, m), ae(d, m), i = !0);
4036
+ i || (ue(a, m), ue(h, m), ue(d, m), i = !0);
4000
4037
  },
4001
4038
  o(m) {
4002
- Be(o, m), Be(h, m), Be(d, m), i = !1;
4039
+ we(a, m), we(h, m), we(d, m), i = !1;
4003
4040
  },
4004
4041
  d(m) {
4005
- m && O(t), o.d(m), h.d(m), d.d(m), e[16](null);
4042
+ m && P(t), a.d(m), h.d(m), d.d(m), e[16](null);
4006
4043
  }
4007
4044
  };
4008
4045
  }
4009
- function Ei(e, t, r) {
4046
+ function Li(e, t, r) {
4010
4047
  let n;
4011
- tr(e, fi, (_) => r(4, n = _));
4012
- let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, d, m = !1, g, v = !1;
4013
- const L = () => {
4048
+ cr(e, vi, (_) => r(4, n = _));
4049
+ let { $$slots: i = {}, $$scope: s } = t, { clientstyling: o = "" } = t, { clientstylingurl: a = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, d, m = !1, g, v = !1;
4050
+ const N = () => {
4014
4051
  let _ = l;
4015
- _ && fetch(_).then((w) => w.json()).then((w) => {
4016
- Object.keys(w).forEach((R) => {
4017
- ft(R, w[R]);
4052
+ _ && fetch(_).then((S) => S.json()).then((S) => {
4053
+ Object.keys(S).forEach((U) => {
4054
+ gt(U, S[U]);
4018
4055
  });
4019
- }).catch((w) => {
4020
- console.log(w);
4056
+ }).catch((S) => {
4057
+ console.log(S);
4021
4058
  });
4022
4059
  };
4023
- Object.keys(ct).forEach((_) => {
4024
- ft(_, ct[_]);
4060
+ Object.keys(_t).forEach((_) => {
4061
+ gt(_, _t[_]);
4025
4062
  });
4026
- const A = () => {
4063
+ const C = () => {
4027
4064
  let _ = document.createElement("style");
4028
- _.innerHTML = u, d.appendChild(_);
4065
+ _.innerHTML = o, d.appendChild(_);
4029
4066
  }, H = () => {
4030
- let _ = new URL(o), w = document.createElement("style");
4031
- fetch(_.href).then((R) => R.text()).then((R) => {
4032
- w.innerHTML = R, setTimeout(
4067
+ let _ = new URL(a), S = document.createElement("style");
4068
+ fetch(_.href).then((U) => U.text()).then((U) => {
4069
+ S.innerHTML = U, setTimeout(
4033
4070
  () => {
4034
- d.appendChild(w);
4071
+ d.appendChild(S);
4035
4072
  },
4036
4073
  1
4037
4074
  );
4038
4075
  });
4039
- }, N = () => {
4040
- ci(f);
4041
- }, T = () => {
4076
+ }, I = () => {
4077
+ Hi(f);
4078
+ }, w = () => {
4042
4079
  window.postMessage({ type: "CloseCashier" }, window.location.href);
4043
- }, $ = () => {
4080
+ }, R = () => {
4044
4081
  window.postMessage({ type: "BackCashier" }, window.location.href);
4045
- }, ie = () => {
4046
- r(1, m = !!a && a !== "false");
4047
- }, Jt = () => {
4082
+ }, se = () => {
4083
+ r(1, m = !!u && u !== "false");
4084
+ }, rr = () => {
4048
4085
  r(3, v = !!c && c !== "false");
4049
- }, qt = () => {
4086
+ }, nr = () => {
4050
4087
  r(2, g = h || "header.general");
4051
4088
  };
4052
- function Yt(_) {
4053
- Pe[_ ? "unshift" : "push"](() => {
4089
+ function ir(_) {
4090
+ Ne[_ ? "unshift" : "push"](() => {
4054
4091
  d = _, r(0, d);
4055
4092
  });
4056
4093
  }
4057
4094
  return e.$$set = (_) => {
4058
- "clientstyling" in _ && r(7, u = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, a = _.showbackbutton), "title" in _ && r(11, h = _.title), "lang" in _ && r(12, f = _.lang), "showclosebutton" in _ && r(13, c = _.showclosebutton), "$$scope" in _ && r(14, s = _.$$scope);
4095
+ "clientstyling" in _ && r(7, o = _.clientstyling), "clientstylingurl" in _ && r(8, a = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, u = _.showbackbutton), "title" in _ && r(11, h = _.title), "lang" in _ && r(12, f = _.lang), "showclosebutton" in _ && r(13, c = _.showclosebutton), "$$scope" in _ && r(14, s = _.$$scope);
4059
4096
  }, e.$$.update = () => {
4060
4097
  e.$$.dirty & /*lang*/
4061
- 4096 && f && N(), e.$$.dirty & /*lang, title*/
4062
- 6144 && f && h && qt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4063
- 129 && u && d && A(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4064
- 257 && o && d && H(), e.$$.dirty & /*lang, translationurl*/
4065
- 4608 && f && l && L(), e.$$.dirty & /*showbackbutton*/
4066
- 1024 && a && ie(), e.$$.dirty & /*showclosebutton*/
4067
- 8192 && c && Jt();
4098
+ 4096 && f && I(), e.$$.dirty & /*lang, title*/
4099
+ 6144 && f && h && nr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4100
+ 129 && o && d && C(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4101
+ 257 && a && d && H(), e.$$.dirty & /*lang, translationurl*/
4102
+ 4608 && f && l && N(), e.$$.dirty & /*showbackbutton*/
4103
+ 1024 && u && se(), e.$$.dirty & /*showclosebutton*/
4104
+ 8192 && c && rr();
4068
4105
  }, [
4069
4106
  d,
4070
4107
  m,
4071
4108
  g,
4072
4109
  v,
4073
4110
  n,
4074
- T,
4075
- $,
4076
- u,
4111
+ w,
4112
+ R,
4077
4113
  o,
4078
- l,
4079
4114
  a,
4115
+ l,
4116
+ u,
4080
4117
  h,
4081
4118
  f,
4082
4119
  c,
4083
4120
  s,
4084
4121
  i,
4085
- Yt
4122
+ ir
4086
4123
  ];
4087
4124
  }
4088
- class vi extends _r {
4125
+ class Ni extends Cr {
4089
4126
  constructor(t) {
4090
- super(), br(
4127
+ super(), Sr(
4091
4128
  this,
4092
4129
  t,
4093
- Ei,
4094
- xi,
4095
- yt,
4130
+ Li,
4131
+ Pi,
4132
+ Tt,
4096
4133
  {
4097
4134
  clientstyling: 7,
4098
4135
  clientstylingurl: 8,
@@ -4102,53 +4139,53 @@ class vi extends _r {
4102
4139
  lang: 12,
4103
4140
  showclosebutton: 13
4104
4141
  },
4105
- mi
4142
+ Bi
4106
4143
  );
4107
4144
  }
4108
4145
  get clientstyling() {
4109
4146
  return this.$$.ctx[7];
4110
4147
  }
4111
4148
  set clientstyling(t) {
4112
- this.$$set({ clientstyling: t }), S();
4149
+ this.$$set({ clientstyling: t }), A();
4113
4150
  }
4114
4151
  get clientstylingurl() {
4115
4152
  return this.$$.ctx[8];
4116
4153
  }
4117
4154
  set clientstylingurl(t) {
4118
- this.$$set({ clientstylingurl: t }), S();
4155
+ this.$$set({ clientstylingurl: t }), A();
4119
4156
  }
4120
4157
  get translationurl() {
4121
4158
  return this.$$.ctx[9];
4122
4159
  }
4123
4160
  set translationurl(t) {
4124
- this.$$set({ translationurl: t }), S();
4161
+ this.$$set({ translationurl: t }), A();
4125
4162
  }
4126
4163
  get showbackbutton() {
4127
4164
  return this.$$.ctx[10];
4128
4165
  }
4129
4166
  set showbackbutton(t) {
4130
- this.$$set({ showbackbutton: t }), S();
4167
+ this.$$set({ showbackbutton: t }), A();
4131
4168
  }
4132
4169
  get title() {
4133
4170
  return this.$$.ctx[11];
4134
4171
  }
4135
4172
  set title(t) {
4136
- this.$$set({ title: t }), S();
4173
+ this.$$set({ title: t }), A();
4137
4174
  }
4138
4175
  get lang() {
4139
4176
  return this.$$.ctx[12];
4140
4177
  }
4141
4178
  set lang(t) {
4142
- this.$$set({ lang: t }), S();
4179
+ this.$$set({ lang: t }), A();
4143
4180
  }
4144
4181
  get showclosebutton() {
4145
4182
  return this.$$.ctx[13];
4146
4183
  }
4147
4184
  set showclosebutton(t) {
4148
- this.$$set({ showclosebutton: t }), S();
4185
+ this.$$set({ showclosebutton: t }), A();
4149
4186
  }
4150
4187
  }
4151
- gr(vi, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
4188
+ Ar(Ni, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
4152
4189
  export {
4153
- vi as C
4190
+ Ni as default
4154
4191
  };