@everymatrix/cashier-error 1.86.3 → 1.86.5

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,4 +1,4 @@
1
- import "../stencil/ui-image-wH6lu7wS.js";
1
+ import "../stencil/ui-image-Ch-GHki1.js";
2
2
  function B() {
3
3
  }
4
4
  function qt(e, t) {
@@ -15,18 +15,18 @@ function _t(e) {
15
15
  function Je() {
16
16
  return /* @__PURE__ */ Object.create(null);
17
17
  }
18
- function ee(e) {
18
+ function te(e) {
19
19
  e.forEach(_t);
20
20
  }
21
- function je(e) {
21
+ function Ve(e) {
22
22
  return typeof e == "function";
23
23
  }
24
24
  function Et(e, t) {
25
25
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
26
26
  }
27
- let ie;
27
+ let oe;
28
28
  function qe(e, t) {
29
- return e === t ? !0 : (ie || (ie = document.createElement("a")), ie.href = t, e === ie.href);
29
+ return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
30
30
  }
31
31
  function Qt(e) {
32
32
  return Object.keys(e).length === 0;
@@ -43,7 +43,7 @@ function vt(e, ...t) {
43
43
  function Yt(e, t, r) {
44
44
  e.$$.on_destroy.push(vt(t, r));
45
45
  }
46
- function ae(e, t, r, n) {
46
+ function se(e, t, r, n) {
47
47
  if (e) {
48
48
  const i = xt(e, t, r, n);
49
49
  return e[0](i);
@@ -52,28 +52,28 @@ function ae(e, t, r, n) {
52
52
  function xt(e, t, r, n) {
53
53
  return e[1] && n ? qt(r.ctx.slice(), e[1](n(t))) : r.ctx;
54
54
  }
55
- function oe(e, t, r, n) {
55
+ function ae(e, t, r, n) {
56
56
  if (e[2] && n) {
57
57
  const i = e[2](n(r));
58
58
  if (t.dirty === void 0)
59
59
  return i;
60
60
  if (typeof i == "object") {
61
- const a = [], o = Math.max(t.dirty.length, i.length);
62
- for (let s = 0; s < o; s += 1)
63
- a[s] = t.dirty[s] | i[s];
64
- return a;
61
+ const o = [], s = Math.max(t.dirty.length, i.length);
62
+ for (let a = 0; a < s; a += 1)
63
+ o[a] = t.dirty[a] | i[a];
64
+ return o;
65
65
  }
66
66
  return t.dirty | i;
67
67
  }
68
68
  return t.dirty;
69
69
  }
70
- function se(e, t, r, n, i, a) {
70
+ function ue(e, t, r, n, i, o) {
71
71
  if (i) {
72
- const o = xt(t, r, n, a);
73
- e.p(o, i);
72
+ const s = xt(t, r, n, o);
73
+ e.p(s, i);
74
74
  }
75
75
  }
76
- function ue(e) {
76
+ function le(e) {
77
77
  if (e.ctx.length > 32) {
78
78
  const t = [], r = e.ctx.length / 32;
79
79
  for (let n = 0; n < r; n++)
@@ -82,13 +82,13 @@ function ue(e) {
82
82
  }
83
83
  return -1;
84
84
  }
85
- function A(e, t) {
85
+ function P(e, t) {
86
86
  e.appendChild(t);
87
87
  }
88
88
  function Kt(e, t, r) {
89
89
  const n = er(e);
90
90
  if (!n.getElementById(t)) {
91
- const i = O("style");
91
+ const i = I("style");
92
92
  i.id = t, i.textContent = r, tr(n, i);
93
93
  }
94
94
  }
@@ -103,39 +103,39 @@ function er(e) {
103
103
  ) : e.ownerDocument;
104
104
  }
105
105
  function tr(e, t) {
106
- return A(
106
+ return P(
107
107
  /** @type {Document} */
108
108
  e.head || e,
109
109
  t
110
110
  ), t.sheet;
111
111
  }
112
- function z(e, t, r) {
112
+ function V(e, t, r) {
113
113
  e.insertBefore(t, r || null);
114
114
  }
115
- function N(e) {
115
+ function L(e) {
116
116
  e.parentNode && e.parentNode.removeChild(e);
117
117
  }
118
- function O(e) {
118
+ function I(e) {
119
119
  return document.createElement(e);
120
120
  }
121
- function _e(e) {
121
+ function ve(e) {
122
122
  return document.createTextNode(e);
123
123
  }
124
- function He() {
125
- return _e(" ");
124
+ function Se() {
125
+ return ve(" ");
126
126
  }
127
127
  function rr() {
128
- return _e("");
128
+ return ve("");
129
129
  }
130
130
  function nr(e, t, r, n) {
131
131
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
132
132
  }
133
- function U(e, t, r) {
133
+ function G(e, t, r) {
134
134
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
135
135
  }
136
- function le(e, t, r) {
136
+ function he(e, t, r) {
137
137
  const n = t.toLowerCase();
138
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : U(e, t, r);
138
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : G(e, t, r);
139
139
  }
140
140
  function ir(e) {
141
141
  return Array.from(e.childNodes);
@@ -144,7 +144,7 @@ function Tt(e, t) {
144
144
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
145
145
  t);
146
146
  }
147
- function ar(e) {
147
+ function or(e) {
148
148
  const t = {};
149
149
  return e.childNodes.forEach(
150
150
  /** @param {Element} node */
@@ -153,102 +153,102 @@ function ar(e) {
153
153
  }
154
154
  ), t;
155
155
  }
156
- let Q;
157
- function q(e) {
158
- Q = e;
156
+ let Y;
157
+ function Q(e) {
158
+ Y = e;
159
159
  }
160
- function or() {
161
- if (!Q)
160
+ function sr() {
161
+ if (!Y)
162
162
  throw new Error("Function called outside component initialization");
163
- return Q;
163
+ return Y;
164
164
  }
165
- function sr(e) {
166
- or().$$.on_mount.push(e);
165
+ function ar(e) {
166
+ sr().$$.on_mount.push(e);
167
167
  }
168
- const R = [], Ce = [];
169
- let D = [];
168
+ const D = [], Le = [];
169
+ let U = [];
170
170
  const Qe = [], ur = /* @__PURE__ */ Promise.resolve();
171
- let Ne = !1;
171
+ let Me = !1;
172
172
  function lr() {
173
- Ne || (Ne = !0, ur.then(w));
173
+ Me || (Me = !0, ur.then(S));
174
174
  }
175
- function Le(e) {
176
- D.push(e);
175
+ function $e(e) {
176
+ U.push(e);
177
177
  }
178
- const we = /* @__PURE__ */ new Set();
179
- let M = 0;
180
- function w() {
181
- if (M !== 0)
178
+ const Be = /* @__PURE__ */ new Set();
179
+ let $ = 0;
180
+ function S() {
181
+ if ($ !== 0)
182
182
  return;
183
- const e = Q;
183
+ const e = Y;
184
184
  do {
185
185
  try {
186
- for (; M < R.length; ) {
187
- const t = R[M];
188
- M++, q(t), hr(t.$$);
186
+ for (; $ < D.length; ) {
187
+ const t = D[$];
188
+ $++, Q(t), hr(t.$$);
189
189
  }
190
190
  } catch (t) {
191
- throw R.length = 0, M = 0, t;
191
+ throw D.length = 0, $ = 0, t;
192
192
  }
193
- for (q(null), R.length = 0, M = 0; Ce.length; )
194
- Ce.pop()();
195
- for (let t = 0; t < D.length; t += 1) {
196
- const r = D[t];
197
- we.has(r) || (we.add(r), r());
193
+ for (Q(null), D.length = 0, $ = 0; Le.length; )
194
+ Le.pop()();
195
+ for (let t = 0; t < U.length; t += 1) {
196
+ const r = U[t];
197
+ Be.has(r) || (Be.add(r), r());
198
198
  }
199
- D.length = 0;
200
- } while (R.length);
199
+ U.length = 0;
200
+ } while (D.length);
201
201
  for (; Qe.length; )
202
202
  Qe.pop()();
203
- Ne = !1, we.clear(), q(e);
203
+ Me = !1, Be.clear(), Q(e);
204
204
  }
205
205
  function hr(e) {
206
206
  if (e.fragment !== null) {
207
- e.update(), ee(e.before_update);
207
+ e.update(), te(e.before_update);
208
208
  const t = e.dirty;
209
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
209
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
210
210
  }
211
211
  }
212
212
  function cr(e) {
213
213
  const t = [], r = [];
214
- D.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), D = t;
214
+ U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
215
215
  }
216
- const fe = /* @__PURE__ */ new Set();
216
+ const me = /* @__PURE__ */ new Set();
217
217
  let fr;
218
- function Z(e, t) {
219
- e && e.i && (fe.delete(e), e.i(t));
218
+ function J(e, t) {
219
+ e && e.i && (me.delete(e), e.i(t));
220
220
  }
221
- function he(e, t, r, n) {
221
+ function ce(e, t, r, n) {
222
222
  if (e && e.o) {
223
- if (fe.has(e))
223
+ if (me.has(e))
224
224
  return;
225
- fe.add(e), fr.c.push(() => {
226
- fe.delete(e);
225
+ me.add(e), fr.c.push(() => {
226
+ me.delete(e);
227
227
  }), e.o(t);
228
228
  }
229
229
  }
230
230
  function mr(e, t, r) {
231
231
  const { fragment: n, after_update: i } = e.$$;
232
- n && n.m(t, r), Le(() => {
233
- const a = e.$$.on_mount.map(_t).filter(je);
234
- e.$$.on_destroy ? e.$$.on_destroy.push(...a) : ee(a), e.$$.on_mount = [];
235
- }), i.forEach(Le);
232
+ n && n.m(t, r), $e(() => {
233
+ const o = e.$$.on_mount.map(_t).filter(Ve);
234
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
235
+ }), i.forEach($e);
236
236
  }
237
237
  function dr(e, t) {
238
238
  const r = e.$$;
239
- r.fragment !== null && (cr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
239
+ r.fragment !== null && (cr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
240
240
  }
241
241
  function pr(e, t) {
242
- e.$$.dirty[0] === -1 && (R.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
242
+ e.$$.dirty[0] === -1 && (D.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
243
243
  }
244
- function br(e, t, r, n, i, a, o = null, s = [-1]) {
245
- const h = Q;
246
- q(e);
244
+ function br(e, t, r, n, i, o, s = null, a = [-1]) {
245
+ const h = Y;
246
+ Q(e);
247
247
  const u = e.$$ = {
248
248
  fragment: null,
249
249
  ctx: [],
250
250
  // state
251
- props: a,
251
+ props: o,
252
252
  update: B,
253
253
  not_equal: i,
254
254
  bound: Je(),
@@ -261,24 +261,24 @@ function br(e, t, r, n, i, a, o = null, s = [-1]) {
261
261
  context: new Map(t.context || (h ? h.$$.context : [])),
262
262
  // everything else
263
263
  callbacks: Je(),
264
- dirty: s,
264
+ dirty: a,
265
265
  skip_bound: !1,
266
266
  root: t.target || h.$$.root
267
267
  };
268
- o && o(u.root);
268
+ s && s(u.root);
269
269
  let l = !1;
270
270
  if (u.ctx = r ? r(e, t.props || {}, (f, m, ...d) => {
271
271
  const p = d.length ? d[0] : m;
272
272
  return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), l && pr(e, f)), m;
273
- }) : [], u.update(), l = !0, ee(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
273
+ }) : [], u.update(), l = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
274
274
  if (t.hydrate) {
275
275
  const f = ir(t.target);
276
- u.fragment && u.fragment.l(f), f.forEach(N);
276
+ u.fragment && u.fragment.l(f), f.forEach(L);
277
277
  } else
278
278
  u.fragment && u.fragment.c();
279
- t.intro && Z(e.$$.fragment), mr(e, t.target, t.anchor), w();
279
+ t.intro && J(e.$$.fragment), mr(e, t.target, t.anchor), S();
280
280
  }
281
- q(h);
281
+ Q(h);
282
282
  }
283
283
  let Ht;
284
284
  typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
@@ -320,32 +320,32 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
320
320
  if (this.$$cn = !0, !this.$$c) {
321
321
  let e = function(i) {
322
322
  return () => {
323
- let a;
323
+ let o;
324
324
  return {
325
325
  c: function() {
326
- a = O("slot"), i !== "default" && U(a, "name", i);
326
+ o = I("slot"), i !== "default" && G(o, "name", i);
327
327
  },
328
328
  /**
329
329
  * @param {HTMLElement} target
330
330
  * @param {HTMLElement} [anchor]
331
331
  */
332
332
  m: function(h, u) {
333
- z(h, a, u);
333
+ V(h, o, u);
334
334
  },
335
335
  d: function(h) {
336
- h && N(a);
336
+ h && L(o);
337
337
  }
338
338
  };
339
339
  };
340
340
  };
341
341
  if (await Promise.resolve(), !this.$$cn || this.$$c)
342
342
  return;
343
- const t = {}, r = ar(this);
343
+ const t = {}, r = or(this);
344
344
  for (const i of this.$$s)
345
345
  i in r && (t[i] = [e(i)]);
346
346
  for (const i of this.attributes) {
347
- const a = this.$$g_p(i.name);
348
- a in this.$$d || (this.$$d[a] = me(a, i.value, this.$$p_d, "toProp"));
347
+ const o = this.$$g_p(i.name);
348
+ o in this.$$d || (this.$$d[o] = de(o, i.value, this.$$p_d, "toProp"));
349
349
  }
350
350
  for (const i in this.$$p_d)
351
351
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -363,21 +363,21 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
363
363
  this.$$r = !0;
364
364
  for (const i in this.$$p_d)
365
365
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
366
- const a = me(
366
+ const o = de(
367
367
  i,
368
368
  this.$$d[i],
369
369
  this.$$p_d,
370
370
  "toAttribute"
371
371
  );
372
- a == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, a);
372
+ o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
373
373
  }
374
374
  this.$$r = !1;
375
375
  };
376
376
  this.$$c.$$.after_update.push(n), n();
377
377
  for (const i in this.$$l)
378
- for (const a of this.$$l[i]) {
379
- const o = this.$$c.$on(i, a);
380
- this.$$l_u.set(a, o);
378
+ for (const o of this.$$l[i]) {
379
+ const s = this.$$c.$on(i, o);
380
+ this.$$l_u.set(o, s);
381
381
  }
382
382
  this.$$l = {};
383
383
  }
@@ -385,7 +385,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
385
385
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
386
386
  // and setting attributes through setAttribute etc, this is helpful
387
387
  attributeChangedCallback(e, t, r) {
388
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = me(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
388
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = de(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
389
389
  }
390
390
  disconnectedCallback() {
391
391
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -398,7 +398,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
398
398
  ) || e;
399
399
  }
400
400
  });
401
- function me(e, t, r, n) {
401
+ function de(e, t, r, n) {
402
402
  const i = r[e]?.type;
403
403
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
404
404
  return t;
@@ -427,34 +427,34 @@ function me(e, t, r, n) {
427
427
  return t;
428
428
  }
429
429
  }
430
- function gr(e, t, r, n, i, a) {
431
- let o = class extends Ht {
430
+ function gr(e, t, r, n, i, o) {
431
+ let s = class extends Ht {
432
432
  constructor() {
433
433
  super(e, r, i), this.$$p_d = t;
434
434
  }
435
435
  static get observedAttributes() {
436
436
  return Object.keys(t).map(
437
- (s) => (t[s].attribute || s).toLowerCase()
437
+ (a) => (t[a].attribute || a).toLowerCase()
438
438
  );
439
439
  }
440
440
  };
441
- return Object.keys(t).forEach((s) => {
442
- Object.defineProperty(o.prototype, s, {
441
+ return Object.keys(t).forEach((a) => {
442
+ Object.defineProperty(s.prototype, a, {
443
443
  get() {
444
- return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
444
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
445
445
  },
446
446
  set(h) {
447
- h = me(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
447
+ h = de(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
448
448
  }
449
449
  });
450
- }), n.forEach((s) => {
451
- Object.defineProperty(o.prototype, s, {
450
+ }), n.forEach((a) => {
451
+ Object.defineProperty(s.prototype, a, {
452
452
  get() {
453
- return this.$$c?.[s];
453
+ return this.$$c?.[a];
454
454
  }
455
455
  });
456
456
  }), e.element = /** @type {any} */
457
- o, o;
457
+ s, s;
458
458
  }
459
459
  class yr {
460
460
  /**
@@ -484,7 +484,7 @@ class yr {
484
484
  * @returns {() => void}
485
485
  */
486
486
  $on(t, r) {
487
- if (!je(r))
487
+ if (!Ve(r))
488
488
  return B;
489
489
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
490
490
  return n.push(r), () => {
@@ -527,44 +527,44 @@ function xr(e, t, r) {
527
527
  });
528
528
  }
529
529
  }
530
- const $ = [];
530
+ const R = [];
531
531
  function Tr(e, t) {
532
532
  return {
533
- subscribe: Ee(e, t).subscribe
533
+ subscribe: xe(e, t).subscribe
534
534
  };
535
535
  }
536
- function Ee(e, t = B) {
536
+ function xe(e, t = B) {
537
537
  let r;
538
538
  const n = /* @__PURE__ */ new Set();
539
- function i(s) {
540
- if (Et(e, s) && (e = s, r)) {
541
- const h = !$.length;
539
+ function i(a) {
540
+ if (Et(e, a) && (e = a, r)) {
541
+ const h = !R.length;
542
542
  for (const u of n)
543
- u[1](), $.push(u, e);
543
+ u[1](), R.push(u, e);
544
544
  if (h) {
545
- for (let u = 0; u < $.length; u += 2)
546
- $[u][0]($[u + 1]);
547
- $.length = 0;
545
+ for (let u = 0; u < R.length; u += 2)
546
+ R[u][0](R[u + 1]);
547
+ R.length = 0;
548
548
  }
549
549
  }
550
550
  }
551
- function a(s) {
552
- i(s(e));
551
+ function o(a) {
552
+ i(a(e));
553
553
  }
554
- function o(s, h = B) {
555
- const u = [s, h];
556
- return n.add(u), n.size === 1 && (r = t(i, a) || B), s(e), () => {
554
+ function s(a, h = B) {
555
+ const u = [a, h];
556
+ return n.add(u), n.size === 1 && (r = t(i, o) || B), a(e), () => {
557
557
  n.delete(u), n.size === 0 && r && (r(), r = null);
558
558
  };
559
559
  }
560
- return { set: i, update: a, subscribe: o };
560
+ return { set: i, update: o, subscribe: s };
561
561
  }
562
- function V(e, t, r) {
562
+ function X(e, t, r) {
563
563
  const n = !Array.isArray(e), i = n ? [e] : e;
564
564
  if (!i.every(Boolean))
565
565
  throw new Error("derived() expects stores as input, got a falsy value");
566
- const a = t.length < 2;
567
- return Tr(r, (o, s) => {
566
+ const o = t.length < 2;
567
+ return Tr(r, (s, a) => {
568
568
  let h = !1;
569
569
  const u = [];
570
570
  let l = 0, f = B;
@@ -572,8 +572,8 @@ function V(e, t, r) {
572
572
  if (l)
573
573
  return;
574
574
  f();
575
- const p = t(n ? u[0] : u, o, s);
576
- a ? o(p) : f = je(p) ? p : B;
575
+ const p = t(n ? u[0] : u, s, a);
576
+ o ? s(p) : f = Ve(p) ? p : B;
577
577
  }, d = i.map(
578
578
  (p, v) => vt(
579
579
  p,
@@ -586,7 +586,7 @@ function V(e, t, r) {
586
586
  )
587
587
  );
588
588
  return h = !0, m(), function() {
589
- ee(d), f(), h = !1;
589
+ te(d), f(), h = !1;
590
590
  };
591
591
  });
592
592
  }
@@ -594,12 +594,12 @@ function Hr(e) {
594
594
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
595
595
  }
596
596
  var wr = function(t) {
597
- return Br(t) && !Sr(t);
597
+ return Sr(t) && !Br(t);
598
598
  };
599
- function Br(e) {
599
+ function Sr(e) {
600
600
  return !!e && typeof e == "object";
601
601
  }
602
- function Sr(e) {
602
+ function Br(e) {
603
603
  var t = Object.prototype.toString.call(e);
604
604
  return t === "[object RegExp]" || t === "[object Date]" || Or(e);
605
605
  }
@@ -610,19 +610,19 @@ function Or(e) {
610
610
  function Ir(e) {
611
611
  return Array.isArray(e) ? [] : {};
612
612
  }
613
- function Y(e, t) {
614
- return t.clone !== !1 && t.isMergeableObject(e) ? G(Ir(e), e, t) : e;
613
+ function K(e, t) {
614
+ return t.clone !== !1 && t.isMergeableObject(e) ? k(Ir(e), e, t) : e;
615
615
  }
616
616
  function Cr(e, t, r) {
617
617
  return e.concat(t).map(function(n) {
618
- return Y(n, r);
618
+ return K(n, r);
619
619
  });
620
620
  }
621
621
  function Nr(e, t) {
622
622
  if (!t.customMerge)
623
- return G;
623
+ return k;
624
624
  var r = t.customMerge(e);
625
- return typeof r == "function" ? r : G;
625
+ return typeof r == "function" ? r : k;
626
626
  }
627
627
  function Lr(e) {
628
628
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
@@ -645,65 +645,51 @@ function Mr(e, t) {
645
645
  function $r(e, t, r) {
646
646
  var n = {};
647
647
  return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
648
- n[i] = Y(e[i], r);
648
+ n[i] = K(e[i], r);
649
649
  }), Ye(t).forEach(function(i) {
650
- Mr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
650
+ Mr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
651
651
  }), n;
652
652
  }
653
- function G(e, t, r) {
654
- r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject || wr, r.cloneUnlessOtherwiseSpecified = Y;
655
- var n = Array.isArray(t), i = Array.isArray(e), a = n === i;
656
- return a ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) : Y(t, r);
653
+ function k(e, t, r) {
654
+ r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject || wr, r.cloneUnlessOtherwiseSpecified = K;
655
+ var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
656
+ return o ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) : K(t, r);
657
657
  }
658
- G.all = function(t, r) {
658
+ k.all = function(t, r) {
659
659
  if (!Array.isArray(t))
660
660
  throw new Error("first argument should be an array");
661
661
  return t.reduce(function(n, i) {
662
- return G(n, i, r);
662
+ return k(n, i, r);
663
663
  }, {});
664
664
  };
665
- var Rr = G, Dr = Rr;
665
+ var Rr = k, Dr = Rr;
666
666
  const Ur = /* @__PURE__ */ Hr(Dr);
667
- /*! *****************************************************************************
668
- Copyright (c) Microsoft Corporation.
669
-
670
- Permission to use, copy, modify, and/or distribute this software for any
671
- purpose with or without fee is hereby granted.
672
-
673
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
674
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
675
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
676
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
677
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
678
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
679
- PERFORMANCE OF THIS SOFTWARE.
680
- ***************************************************************************** */
681
- var Me = function(e, t) {
682
- return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
667
+ var Re = function(e, t) {
668
+ return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
683
669
  r.__proto__ = n;
684
670
  } || function(r, n) {
685
671
  for (var i in n)
686
672
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
687
- }, Me(e, t);
673
+ }, Re(e, t);
688
674
  };
689
- function ve(e, t) {
675
+ function Te(e, t) {
690
676
  if (typeof t != "function" && t !== null)
691
677
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
692
- Me(e, t);
678
+ Re(e, t);
693
679
  function r() {
694
680
  this.constructor = e;
695
681
  }
696
682
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
697
683
  }
698
- var _ = function() {
699
- return _ = Object.assign || function(t) {
684
+ var w = function() {
685
+ return w = Object.assign || function(t) {
700
686
  for (var r, n = 1, i = arguments.length; n < i; n++) {
701
687
  r = arguments[n];
702
- for (var a in r)
703
- Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
688
+ for (var o in r)
689
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
704
690
  }
705
691
  return t;
706
- }, _.apply(this, arguments);
692
+ }, w.apply(this, arguments);
707
693
  };
708
694
  function Gr(e, t) {
709
695
  var r = {};
@@ -714,14 +700,14 @@ function Gr(e, t) {
714
700
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
715
701
  return r;
716
702
  }
717
- function Be(e, t, r) {
718
- if (arguments.length === 2)
719
- for (var n = 0, i = t.length, a; n < i; n++)
720
- (a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
721
- return e.concat(a || t);
703
+ function Ae(e, t, r) {
704
+ if (r || arguments.length === 2)
705
+ for (var n = 0, i = t.length, o; n < i; n++)
706
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
707
+ return e.concat(o || Array.prototype.slice.call(t));
722
708
  }
723
- function Se(e, t) {
724
- var r = t && t.cache ? t.cache : Xr, n = t && t.serializer ? t.serializer : Vr, i = t && t.strategy ? t.strategy : Fr;
709
+ function Pe(e, t) {
710
+ var r = t && t.cache ? t.cache : Wr, n = t && t.serializer ? t.serializer : Vr, i = t && t.strategy ? t.strategy : jr;
725
711
  return i(e, {
726
712
  cache: r,
727
713
  serializer: n
@@ -730,95 +716,103 @@ function Se(e, t) {
730
716
  function kr(e) {
731
717
  return e == null || typeof e == "number" || typeof e == "boolean";
732
718
  }
733
- function Bt(e, t, r, n) {
734
- var i = kr(n) ? n : r(n), a = t.get(i);
735
- return typeof a > "u" && (a = e.call(this, n), t.set(i, a)), a;
719
+ function Fr(e, t, r, n) {
720
+ var i = kr(n) ? n : r(n), o = t.get(i);
721
+ return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
736
722
  }
737
723
  function St(e, t, r) {
738
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), a = t.get(i);
739
- return typeof a > "u" && (a = e.apply(this, n), t.set(i, a)), a;
724
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
725
+ return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
740
726
  }
741
- function ze(e, t, r, n, i) {
727
+ function Bt(e, t, r, n, i) {
742
728
  return r.bind(t, e, n, i);
743
729
  }
744
- function Fr(e, t) {
745
- var r = e.length === 1 ? Bt : St;
746
- return ze(e, this, r, t.cache.create(), t.serializer);
747
- }
748
730
  function jr(e, t) {
749
- return ze(e, this, St, t.cache.create(), t.serializer);
731
+ var r = e.length === 1 ? Fr : St;
732
+ return Bt(e, this, r, t.cache.create(), t.serializer);
750
733
  }
751
734
  function zr(e, t) {
752
- return ze(e, this, Bt, t.cache.create(), t.serializer);
735
+ return Bt(e, this, St, t.cache.create(), t.serializer);
753
736
  }
754
737
  var Vr = function() {
755
738
  return JSON.stringify(arguments);
756
- };
757
- function Ve() {
758
- this.cache = /* @__PURE__ */ Object.create(null);
759
- }
760
- Ve.prototype.get = function(e) {
761
- return this.cache[e];
762
- };
763
- Ve.prototype.set = function(e, t) {
764
- this.cache[e] = t;
765
- };
766
- var Xr = {
739
+ }, Xr = (
740
+ /** @class */
741
+ function() {
742
+ function e() {
743
+ this.cache = /* @__PURE__ */ Object.create(null);
744
+ }
745
+ return e.prototype.get = function(t) {
746
+ return this.cache[t];
747
+ }, e.prototype.set = function(t, r) {
748
+ this.cache[t] = r;
749
+ }, e;
750
+ }()
751
+ ), Wr = {
767
752
  create: function() {
768
- return new Ve();
753
+ return new Xr();
769
754
  }
770
- }, Ae = {
771
- variadic: jr,
772
- monadic: zr
773
- }, b;
755
+ }, Oe = {
756
+ variadic: zr
757
+ }, ge = function() {
758
+ return ge = Object.assign || function(t) {
759
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
760
+ r = arguments[n];
761
+ for (var o in r)
762
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
763
+ }
764
+ return t;
765
+ }, ge.apply(this, arguments);
766
+ };
767
+ var b;
774
768
  (function(e) {
775
769
  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";
776
770
  })(b || (b = {}));
777
- var E;
771
+ var _;
778
772
  (function(e) {
779
773
  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";
780
- })(E || (E = {}));
781
- var k;
774
+ })(_ || (_ = {}));
775
+ var F;
782
776
  (function(e) {
783
777
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
784
- })(k || (k = {}));
778
+ })(F || (F = {}));
785
779
  function Ke(e) {
786
- return e.type === E.literal;
780
+ return e.type === _.literal;
787
781
  }
788
- function Wr(e) {
789
- return e.type === E.argument;
782
+ function Zr(e) {
783
+ return e.type === _.argument;
790
784
  }
791
785
  function At(e) {
792
- return e.type === E.number;
786
+ return e.type === _.number;
793
787
  }
794
788
  function Pt(e) {
795
- return e.type === E.date;
789
+ return e.type === _.date;
796
790
  }
797
791
  function Ot(e) {
798
- return e.type === E.time;
792
+ return e.type === _.time;
799
793
  }
800
794
  function It(e) {
801
- return e.type === E.select;
795
+ return e.type === _.select;
802
796
  }
803
797
  function Ct(e) {
804
- return e.type === E.plural;
798
+ return e.type === _.plural;
805
799
  }
806
- function Zr(e) {
807
- return e.type === E.pound;
800
+ function Jr(e) {
801
+ return e.type === _.pound;
808
802
  }
809
803
  function Nt(e) {
810
- return e.type === E.tag;
804
+ return e.type === _.tag;
811
805
  }
812
806
  function Lt(e) {
813
- return !!(e && typeof e == "object" && e.type === k.number);
807
+ return !!(e && typeof e == "object" && e.type === F.number);
814
808
  }
815
- function $e(e) {
816
- return !!(e && typeof e == "object" && e.type === k.dateTime);
809
+ function De(e) {
810
+ return !!(e && typeof e == "object" && e.type === F.dateTime);
817
811
  }
818
- var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Jr = /(?:[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;
819
- function qr(e) {
812
+ var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, qr = /(?:[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;
813
+ function Qr(e) {
820
814
  var t = {};
821
- return e.replace(Jr, function(r) {
815
+ return e.replace(qr, function(r) {
822
816
  var n = r.length;
823
817
  switch (r[0]) {
824
818
  case "G":
@@ -907,29 +901,39 @@ function qr(e) {
907
901
  return "";
908
902
  }), t;
909
903
  }
910
- var Qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
911
- function Yr(e) {
904
+ var E = function() {
905
+ return E = Object.assign || function(t) {
906
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
907
+ r = arguments[n];
908
+ for (var o in r)
909
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
910
+ }
911
+ return t;
912
+ }, E.apply(this, arguments);
913
+ };
914
+ var Yr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
915
+ function Kr(e) {
912
916
  if (e.length === 0)
913
917
  throw new Error("Number skeleton cannot be empty");
914
- for (var t = e.split(Qr).filter(function(m) {
918
+ for (var t = e.split(Yr).filter(function(m) {
915
919
  return m.length > 0;
916
920
  }), r = [], n = 0, i = t; n < i.length; n++) {
917
- var a = i[n], o = a.split("/");
918
- if (o.length === 0)
921
+ var o = i[n], s = o.split("/");
922
+ if (s.length === 0)
919
923
  throw new Error("Invalid number skeleton");
920
- for (var s = o[0], h = o.slice(1), u = 0, l = h; u < l.length; u++) {
924
+ for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
921
925
  var f = l[u];
922
926
  if (f.length === 0)
923
927
  throw new Error("Invalid number skeleton");
924
928
  }
925
- r.push({ stem: s, options: h });
929
+ r.push({ stem: a, options: h });
926
930
  }
927
931
  return r;
928
932
  }
929
- function Kr(e) {
933
+ function en(e) {
930
934
  return e.replace(/^(.*?)-/, "");
931
935
  }
932
- var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, en = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
936
+ var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, tn = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
933
937
  function tt(e) {
934
938
  var t = {};
935
939
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
@@ -976,7 +980,7 @@ function Dt(e) {
976
980
  };
977
981
  }
978
982
  }
979
- function tn(e) {
983
+ function rn(e) {
980
984
  var t;
981
985
  if (e[0] === "E" && e[1] === "E" ? (t = {
982
986
  notation: "engineering"
@@ -994,7 +998,7 @@ function rt(e) {
994
998
  var t = {}, r = Dt(e);
995
999
  return r || t;
996
1000
  }
997
- function rn(e) {
1001
+ function nn(e) {
998
1002
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
999
1003
  var i = n[r];
1000
1004
  switch (i.stem) {
@@ -1018,7 +1022,7 @@ function rn(e) {
1018
1022
  continue;
1019
1023
  case "measure-unit":
1020
1024
  case "unit":
1021
- t.style = "unit", t.unit = Kr(i.options[0]);
1025
+ t.style = "unit", t.unit = en(i.options[0]);
1022
1026
  continue;
1023
1027
  case "compact-short":
1024
1028
  case "K":
@@ -1029,13 +1033,13 @@ function rn(e) {
1029
1033
  t.notation = "compact", t.compactDisplay = "long";
1030
1034
  continue;
1031
1035
  case "scientific":
1032
- t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1033
- return _(_({}, h), rt(u));
1036
+ t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1037
+ return E(E({}, h), rt(u));
1034
1038
  }, {}));
1035
1039
  continue;
1036
1040
  case "engineering":
1037
- t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1038
- return _(_({}, h), rt(u));
1041
+ t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1042
+ return E(E({}, h), rt(u));
1039
1043
  }, {}));
1040
1044
  continue;
1041
1045
  case "notation-simple":
@@ -1080,7 +1084,7 @@ function rn(e) {
1080
1084
  case "integer-width":
1081
1085
  if (i.options.length > 1)
1082
1086
  throw new RangeError("integer-width stems only accept a single optional option");
1083
- i.options[0].replace(en, function(h, u, l, f, m, d) {
1087
+ i.options[0].replace(tn, function(h, u, l, f, m, d) {
1084
1088
  if (u)
1085
1089
  t.minimumIntegerDigits = l.length;
1086
1090
  else {
@@ -1103,22 +1107,22 @@ function rn(e) {
1103
1107
  i.stem.replace(et, function(h, u, l, f, m, d) {
1104
1108
  return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1105
1109
  });
1106
- var a = i.options[0];
1107
- a === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = _(_({}, t), tt(a)));
1110
+ var o = i.options[0];
1111
+ o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), tt(o)));
1108
1112
  continue;
1109
1113
  }
1110
1114
  if ($t.test(i.stem)) {
1111
- t = _(_({}, t), tt(i.stem));
1115
+ t = E(E({}, t), tt(i.stem));
1112
1116
  continue;
1113
1117
  }
1114
- var o = Dt(i.stem);
1115
- o && (t = _(_({}, t), o));
1116
- var s = tn(i.stem);
1117
- s && (t = _(_({}, t), s));
1118
+ var s = Dt(i.stem);
1119
+ s && (t = E(E({}, t), s));
1120
+ var a = rn(i.stem);
1121
+ a && (t = E(E({}, t), a));
1118
1122
  }
1119
1123
  return t;
1120
1124
  }
1121
- var ce = {
1125
+ var fe = {
1122
1126
  "001": [
1123
1127
  "H",
1124
1128
  "h"
@@ -2533,23 +2537,23 @@ var ce = {
2533
2537
  "h"
2534
2538
  ]
2535
2539
  };
2536
- function nn(e, t) {
2540
+ function on(e, t) {
2537
2541
  for (var r = "", n = 0; n < e.length; n++) {
2538
2542
  var i = e.charAt(n);
2539
2543
  if (i === "j") {
2540
- for (var a = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2541
- a++, n++;
2542
- var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), h = "a", u = an(t);
2543
- for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2544
+ for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2545
+ o++, n++;
2546
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = sn(t);
2547
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2544
2548
  r += h;
2545
- for (; o-- > 0; )
2549
+ for (; s-- > 0; )
2546
2550
  r = u + r;
2547
2551
  } else
2548
2552
  i === "J" ? r += "H" : r += i;
2549
2553
  }
2550
2554
  return r;
2551
2555
  }
2552
- function an(e) {
2556
+ function sn(e) {
2553
2557
  var t = e.hourCycle;
2554
2558
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2555
2559
  e.hourCycles && // @ts-ignore
@@ -2568,23 +2572,23 @@ function an(e) {
2568
2572
  }
2569
2573
  var r = e.language, n;
2570
2574
  r !== "root" && (n = e.maximize().region);
2571
- var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
2575
+ var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
2572
2576
  return i[0];
2573
2577
  }
2574
- var Pe, on = new RegExp("^".concat(Mt.source, "*")), sn = new RegExp("".concat(Mt.source, "*$"));
2578
+ var Ie, an = new RegExp("^".concat(Mt.source, "*")), un = new RegExp("".concat(Mt.source, "*$"));
2575
2579
  function y(e, t) {
2576
2580
  return { start: e, end: t };
2577
2581
  }
2578
- var un = !!String.prototype.startsWith && "_a".startsWith("a", 1), ln = !!String.fromCodePoint, hn = !!Object.fromEntries, cn = !!String.prototype.codePointAt, fn = !!String.prototype.trimStart, mn = !!String.prototype.trimEnd, dn = !!Number.isSafeInteger, pn = dn ? Number.isSafeInteger : function(e) {
2582
+ var ln = !!String.prototype.startsWith && "_a".startsWith("a", 1), hn = !!String.fromCodePoint, cn = !!Object.fromEntries, fn = !!String.prototype.codePointAt, mn = !!String.prototype.trimStart, dn = !!String.prototype.trimEnd, pn = !!Number.isSafeInteger, bn = pn ? Number.isSafeInteger : function(e) {
2579
2583
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2580
- }, Re = !0;
2584
+ }, Ue = !0;
2581
2585
  try {
2582
- var bn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2583
- Re = ((Pe = bn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
2586
+ var gn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2587
+ Ue = ((Ie = gn.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
2584
2588
  } catch {
2585
- Re = !1;
2589
+ Ue = !1;
2586
2590
  }
2587
- var nt = un ? (
2591
+ var nt = ln ? (
2588
2592
  // Native
2589
2593
  function(t, r, n) {
2590
2594
  return t.startsWith(r, n);
@@ -2594,31 +2598,31 @@ var nt = un ? (
2594
2598
  function(t, r, n) {
2595
2599
  return t.slice(n, n + r.length) === r;
2596
2600
  }
2597
- ), De = ln ? String.fromCodePoint : (
2601
+ ), Ge = hn ? String.fromCodePoint : (
2598
2602
  // IE11
2599
2603
  function() {
2600
2604
  for (var t = [], r = 0; r < arguments.length; r++)
2601
2605
  t[r] = arguments[r];
2602
- for (var n = "", i = t.length, a = 0, o; i > a; ) {
2603
- if (o = t[a++], o > 1114111)
2604
- throw RangeError(o + " is not a valid code point");
2605
- n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2606
+ for (var n = "", i = t.length, o = 0, s; i > o; ) {
2607
+ if (s = t[o++], s > 1114111)
2608
+ throw RangeError(s + " is not a valid code point");
2609
+ n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2606
2610
  }
2607
2611
  return n;
2608
2612
  }
2609
2613
  ), it = (
2610
2614
  // native
2611
- hn ? Object.fromEntries : (
2615
+ cn ? Object.fromEntries : (
2612
2616
  // Ponyfill
2613
2617
  function(t) {
2614
2618
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2615
- var a = i[n], o = a[0], s = a[1];
2616
- r[o] = s;
2619
+ var o = i[n], s = o[0], a = o[1];
2620
+ r[s] = a;
2617
2621
  }
2618
2622
  return r;
2619
2623
  }
2620
2624
  )
2621
- ), Ut = cn ? (
2625
+ ), Ut = fn ? (
2622
2626
  // Native
2623
2627
  function(t, r) {
2624
2628
  return t.codePointAt(r);
@@ -2628,11 +2632,11 @@ var nt = un ? (
2628
2632
  function(t, r) {
2629
2633
  var n = t.length;
2630
2634
  if (!(r < 0 || r >= n)) {
2631
- var i = t.charCodeAt(r), a;
2632
- return i < 55296 || i > 56319 || r + 1 === n || (a = t.charCodeAt(r + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2635
+ var i = t.charCodeAt(r), o;
2636
+ return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2633
2637
  }
2634
2638
  }
2635
- ), gn = fn ? (
2639
+ ), yn = mn ? (
2636
2640
  // Native
2637
2641
  function(t) {
2638
2642
  return t.trimStart();
@@ -2640,9 +2644,9 @@ var nt = un ? (
2640
2644
  ) : (
2641
2645
  // Ponyfill
2642
2646
  function(t) {
2643
- return t.replace(on, "");
2647
+ return t.replace(an, "");
2644
2648
  }
2645
- ), yn = mn ? (
2649
+ ), _n = dn ? (
2646
2650
  // Native
2647
2651
  function(t) {
2648
2652
  return t.trimEnd();
@@ -2650,32 +2654,32 @@ var nt = un ? (
2650
2654
  ) : (
2651
2655
  // Ponyfill
2652
2656
  function(t) {
2653
- return t.replace(sn, "");
2657
+ return t.replace(un, "");
2654
2658
  }
2655
2659
  );
2656
2660
  function Gt(e, t) {
2657
2661
  return new RegExp(e, t);
2658
2662
  }
2659
- var Ue;
2660
- if (Re) {
2661
- var at = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2662
- Ue = function(t, r) {
2663
+ var ke;
2664
+ if (Ue) {
2665
+ var ot = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2666
+ ke = function(t, r) {
2663
2667
  var n;
2664
- at.lastIndex = r;
2665
- var i = at.exec(t);
2668
+ ot.lastIndex = r;
2669
+ var i = ot.exec(t);
2666
2670
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2667
2671
  };
2668
2672
  } else
2669
- Ue = function(t, r) {
2673
+ ke = function(t, r) {
2670
2674
  for (var n = []; ; ) {
2671
2675
  var i = Ut(t, r);
2672
- if (i === void 0 || kt(i) || xn(i))
2676
+ if (i === void 0 || kt(i) || Tn(i))
2673
2677
  break;
2674
2678
  n.push(i), r += i >= 65536 ? 2 : 1;
2675
2679
  }
2676
- return De.apply(void 0, n);
2680
+ return Ge.apply(void 0, n);
2677
2681
  };
2678
- var _n = (
2682
+ var En = (
2679
2683
  /** @class */
2680
2684
  function() {
2681
2685
  function e(t, r) {
@@ -2687,35 +2691,35 @@ var _n = (
2687
2691
  return this.parseMessage(0, "", !1);
2688
2692
  }, e.prototype.parseMessage = function(t, r, n) {
2689
2693
  for (var i = []; !this.isEOF(); ) {
2690
- var a = this.char();
2691
- if (a === 123) {
2692
- var o = this.parseArgument(t, n);
2693
- if (o.err)
2694
- return o;
2695
- i.push(o.val);
2694
+ var o = this.char();
2695
+ if (o === 123) {
2696
+ var s = this.parseArgument(t, n);
2697
+ if (s.err)
2698
+ return s;
2699
+ i.push(s.val);
2696
2700
  } else {
2697
- if (a === 125 && t > 0)
2701
+ if (o === 125 && t > 0)
2698
2702
  break;
2699
- if (a === 35 && (r === "plural" || r === "selectordinal")) {
2700
- var s = this.clonePosition();
2703
+ if (o === 35 && (r === "plural" || r === "selectordinal")) {
2704
+ var a = this.clonePosition();
2701
2705
  this.bump(), i.push({
2702
- type: E.pound,
2703
- location: y(s, this.clonePosition())
2706
+ type: _.pound,
2707
+ location: y(a, this.clonePosition())
2704
2708
  });
2705
- } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
2709
+ } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2706
2710
  if (n)
2707
2711
  break;
2708
2712
  return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
2709
- } else if (a === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
2710
- var o = this.parseTag(t, r);
2711
- if (o.err)
2712
- return o;
2713
- i.push(o.val);
2713
+ } else if (o === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
2714
+ var s = this.parseTag(t, r);
2715
+ if (s.err)
2716
+ return s;
2717
+ i.push(s.val);
2714
2718
  } else {
2715
- var o = this.parseLiteral(t, r);
2716
- if (o.err)
2717
- return o;
2718
- i.push(o.val);
2719
+ var s = this.parseLiteral(t, r);
2720
+ if (s.err)
2721
+ return s;
2722
+ i.push(s.val);
2719
2723
  }
2720
2724
  }
2721
2725
  }
@@ -2727,66 +2731,66 @@ var _n = (
2727
2731
  if (this.bumpSpace(), this.bumpIf("/>"))
2728
2732
  return {
2729
2733
  val: {
2730
- type: E.literal,
2734
+ type: _.literal,
2731
2735
  value: "<".concat(i, "/>"),
2732
2736
  location: y(n, this.clonePosition())
2733
2737
  },
2734
2738
  err: null
2735
2739
  };
2736
2740
  if (this.bumpIf(">")) {
2737
- var a = this.parseMessage(t + 1, r, !0);
2738
- if (a.err)
2739
- return a;
2740
- var o = a.val, s = this.clonePosition();
2741
+ var o = this.parseMessage(t + 1, r, !0);
2742
+ if (o.err)
2743
+ return o;
2744
+ var s = o.val, a = this.clonePosition();
2741
2745
  if (this.bumpIf("</")) {
2742
- if (this.isEOF() || !Ge(this.char()))
2743
- return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
2746
+ if (this.isEOF() || !Fe(this.char()))
2747
+ return this.error(b.INVALID_TAG, y(a, this.clonePosition()));
2744
2748
  var h = this.clonePosition(), u = this.parseTagName();
2745
2749
  return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2746
2750
  val: {
2747
- type: E.tag,
2751
+ type: _.tag,
2748
2752
  value: i,
2749
- children: o,
2753
+ children: s,
2750
2754
  location: y(n, this.clonePosition())
2751
2755
  },
2752
2756
  err: null
2753
- } : this.error(b.INVALID_TAG, y(s, this.clonePosition())));
2757
+ } : this.error(b.INVALID_TAG, y(a, this.clonePosition())));
2754
2758
  } else
2755
2759
  return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
2756
2760
  } else
2757
2761
  return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
2758
2762
  }, e.prototype.parseTagName = function() {
2759
2763
  var t = this.offset();
2760
- for (this.bump(); !this.isEOF() && vn(this.char()); )
2764
+ for (this.bump(); !this.isEOF() && xn(this.char()); )
2761
2765
  this.bump();
2762
2766
  return this.message.slice(t, this.offset());
2763
2767
  }, e.prototype.parseLiteral = function(t, r) {
2764
2768
  for (var n = this.clonePosition(), i = ""; ; ) {
2765
- var a = this.tryParseQuote(r);
2766
- if (a) {
2767
- i += a;
2768
- continue;
2769
- }
2770
- var o = this.tryParseUnquoted(t, r);
2769
+ var o = this.tryParseQuote(r);
2771
2770
  if (o) {
2772
2771
  i += o;
2773
2772
  continue;
2774
2773
  }
2775
- var s = this.tryParseLeftAngleBracket();
2774
+ var s = this.tryParseUnquoted(t, r);
2776
2775
  if (s) {
2777
2776
  i += s;
2778
2777
  continue;
2779
2778
  }
2779
+ var a = this.tryParseLeftAngleBracket();
2780
+ if (a) {
2781
+ i += a;
2782
+ continue;
2783
+ }
2780
2784
  break;
2781
2785
  }
2782
2786
  var h = y(n, this.clonePosition());
2783
2787
  return {
2784
- val: { type: E.literal, value: i, location: h },
2788
+ val: { type: _.literal, value: i, location: h },
2785
2789
  err: null
2786
2790
  };
2787
2791
  }, e.prototype.tryParseLeftAngleBracket = function() {
2788
2792
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2789
- !En(this.peek() || 0)) ? (this.bump(), "<") : null;
2793
+ !vn(this.peek() || 0)) ? (this.bump(), "<") : null;
2790
2794
  }, e.prototype.tryParseQuote = function(t) {
2791
2795
  if (this.isEOF() || this.char() !== 39)
2792
2796
  return null;
@@ -2820,12 +2824,12 @@ var _n = (
2820
2824
  r.push(n);
2821
2825
  this.bump();
2822
2826
  }
2823
- return De.apply(void 0, r);
2827
+ return Ge.apply(void 0, r);
2824
2828
  }, e.prototype.tryParseUnquoted = function(t, r) {
2825
2829
  if (this.isEOF())
2826
2830
  return null;
2827
2831
  var n = this.char();
2828
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
2832
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
2829
2833
  }, e.prototype.parseArgument = function(t, r) {
2830
2834
  var n = this.clonePosition();
2831
2835
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2841,7 +2845,7 @@ var _n = (
2841
2845
  case 125:
2842
2846
  return this.bump(), {
2843
2847
  val: {
2844
- type: E.argument,
2848
+ type: _.argument,
2845
2849
  // value does not include the opening and closing braces.
2846
2850
  value: i,
2847
2851
  location: y(n, this.clonePosition())
@@ -2854,15 +2858,15 @@ var _n = (
2854
2858
  return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2855
2859
  }
2856
2860
  }, e.prototype.parseIdentifierIfPossible = function() {
2857
- var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
2861
+ var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
2858
2862
  this.bumpTo(i);
2859
- var a = this.clonePosition(), o = y(t, a);
2860
- return { value: n, location: o };
2863
+ var o = this.clonePosition(), s = y(t, o);
2864
+ return { value: n, location: s };
2861
2865
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2862
- var a, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2863
- switch (s) {
2866
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2867
+ switch (a) {
2864
2868
  case "":
2865
- return this.error(b.EXPECT_ARGUMENT_TYPE, y(o, h));
2869
+ return this.error(b.EXPECT_ARGUMENT_TYPE, y(s, h));
2866
2870
  case "number":
2867
2871
  case "date":
2868
2872
  case "time": {
@@ -2873,7 +2877,7 @@ var _n = (
2873
2877
  var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2874
2878
  if (f.err)
2875
2879
  return f;
2876
- var m = yn(f.val);
2880
+ var m = _n(f.val);
2877
2881
  if (m.length === 0)
2878
2882
  return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
2879
2883
  var d = y(l, this.clonePosition());
@@ -2884,24 +2888,24 @@ var _n = (
2884
2888
  return p;
2885
2889
  var v = y(i, this.clonePosition());
2886
2890
  if (u && nt(u?.style, "::", 0)) {
2887
- var T = gn(u.style.slice(2));
2888
- if (s === "number") {
2891
+ var T = yn(u.style.slice(2));
2892
+ if (a === "number") {
2889
2893
  var f = this.parseNumberSkeletonFromString(T, u.styleLocation);
2890
2894
  return f.err ? f : {
2891
- val: { type: E.number, value: n, location: v, style: f.val },
2895
+ val: { type: _.number, value: n, location: v, style: f.val },
2892
2896
  err: null
2893
2897
  };
2894
2898
  } else {
2895
2899
  if (T.length === 0)
2896
2900
  return this.error(b.EXPECT_DATE_TIME_SKELETON, v);
2897
2901
  var x = T;
2898
- this.locale && (x = nn(T, this.locale));
2902
+ this.locale && (x = on(T, this.locale));
2899
2903
  var m = {
2900
- type: k.dateTime,
2904
+ type: F.dateTime,
2901
2905
  pattern: x,
2902
2906
  location: u.styleLocation,
2903
- parsedOptions: this.shouldParseSkeletons ? qr(x) : {}
2904
- }, c = s === "date" ? E.date : E.time;
2907
+ parsedOptions: this.shouldParseSkeletons ? Qr(x) : {}
2908
+ }, c = a === "date" ? _.date : _.time;
2905
2909
  return {
2906
2910
  val: { type: c, value: n, location: v, style: m },
2907
2911
  err: null
@@ -2910,10 +2914,10 @@ var _n = (
2910
2914
  }
2911
2915
  return {
2912
2916
  val: {
2913
- type: s === "number" ? E.number : s === "date" ? E.date : E.time,
2917
+ type: a === "number" ? _.number : a === "date" ? _.date : _.time,
2914
2918
  value: n,
2915
2919
  location: v,
2916
- style: (a = u?.style) !== null && a !== void 0 ? a : null
2920
+ style: (o = u?.style) !== null && o !== void 0 ? o : null
2917
2921
  },
2918
2922
  err: null
2919
2923
  };
@@ -2923,47 +2927,47 @@ var _n = (
2923
2927
  case "select": {
2924
2928
  var g = this.clonePosition();
2925
2929
  if (this.bumpSpace(), !this.bumpIf(","))
2926
- return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(g, _({}, g)));
2930
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(g, ge({}, g)));
2927
2931
  this.bumpSpace();
2928
- var S = this.parseIdentifierIfPossible(), C = 0;
2929
- if (s !== "select" && S.value === "offset") {
2932
+ var A = this.parseIdentifierIfPossible(), N = 0;
2933
+ if (a !== "select" && A.value === "offset") {
2930
2934
  if (!this.bumpIf(":"))
2931
2935
  return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
2932
2936
  this.bumpSpace();
2933
2937
  var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2934
2938
  if (f.err)
2935
2939
  return f;
2936
- this.bumpSpace(), S = this.parseIdentifierIfPossible(), C = f.val;
2940
+ this.bumpSpace(), A = this.parseIdentifierIfPossible(), N = f.val;
2937
2941
  }
2938
- var ne = this.tryParsePluralOrSelectOptions(t, s, r, S);
2939
- if (ne.err)
2940
- return ne;
2942
+ var ie = this.tryParsePluralOrSelectOptions(t, a, r, A);
2943
+ if (ie.err)
2944
+ return ie;
2941
2945
  var p = this.tryParseArgumentClose(i);
2942
2946
  if (p.err)
2943
2947
  return p;
2944
2948
  var Ze = y(i, this.clonePosition());
2945
- return s === "select" ? {
2949
+ return a === "select" ? {
2946
2950
  val: {
2947
- type: E.select,
2951
+ type: _.select,
2948
2952
  value: n,
2949
- options: it(ne.val),
2953
+ options: it(ie.val),
2950
2954
  location: Ze
2951
2955
  },
2952
2956
  err: null
2953
2957
  } : {
2954
2958
  val: {
2955
- type: E.plural,
2959
+ type: _.plural,
2956
2960
  value: n,
2957
- options: it(ne.val),
2958
- offset: C,
2959
- pluralType: s === "plural" ? "cardinal" : "ordinal",
2961
+ options: it(ie.val),
2962
+ offset: N,
2963
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
2960
2964
  location: Ze
2961
2965
  },
2962
2966
  err: null
2963
2967
  };
2964
2968
  }
2965
2969
  default:
2966
- return this.error(b.INVALID_ARGUMENT_TYPE, y(o, h));
2970
+ return this.error(b.INVALID_ARGUMENT_TYPE, y(s, h));
2967
2971
  }
2968
2972
  }, e.prototype.tryParseArgumentClose = function(t) {
2969
2973
  return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3005,21 +3009,21 @@ var _n = (
3005
3009
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3006
3010
  var n = [];
3007
3011
  try {
3008
- n = Yr(t);
3012
+ n = Kr(t);
3009
3013
  } catch {
3010
3014
  return this.error(b.INVALID_NUMBER_SKELETON, r);
3011
3015
  }
3012
3016
  return {
3013
3017
  val: {
3014
- type: k.number,
3018
+ type: F.number,
3015
3019
  tokens: n,
3016
3020
  location: r,
3017
- parsedOptions: this.shouldParseSkeletons ? rn(n) : {}
3021
+ parsedOptions: this.shouldParseSkeletons ? nn(n) : {}
3018
3022
  },
3019
3023
  err: null
3020
3024
  };
3021
3025
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3022
- for (var a, o = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3026
+ for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3023
3027
  if (u.length === 0) {
3024
3028
  var f = this.clonePosition();
3025
3029
  if (r !== "select" && this.bumpIf("=")) {
@@ -3032,7 +3036,7 @@ var _n = (
3032
3036
  }
3033
3037
  if (h.has(u))
3034
3038
  return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3035
- u === "other" && (o = !0), this.bumpSpace();
3039
+ u === "other" && (s = !0), this.bumpSpace();
3036
3040
  var d = this.clonePosition();
3037
3041
  if (!this.bumpIf("{"))
3038
3042
  return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
@@ -3042,27 +3046,27 @@ var _n = (
3042
3046
  var v = this.tryParseArgumentClose(d);
3043
3047
  if (v.err)
3044
3048
  return v;
3045
- s.push([
3049
+ a.push([
3046
3050
  u,
3047
3051
  {
3048
3052
  value: p.val,
3049
3053
  location: y(d, this.clonePosition())
3050
3054
  }
3051
- ]), h.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, l = a.location;
3055
+ ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
3052
3056
  }
3053
- return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3057
+ return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3054
3058
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3055
3059
  var n = 1, i = this.clonePosition();
3056
3060
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3057
- for (var a = !1, o = 0; !this.isEOF(); ) {
3058
- var s = this.char();
3059
- if (s >= 48 && s <= 57)
3060
- a = !0, o = o * 10 + (s - 48), this.bump();
3061
+ for (var o = !1, s = 0; !this.isEOF(); ) {
3062
+ var a = this.char();
3063
+ if (a >= 48 && a <= 57)
3064
+ o = !0, s = s * 10 + (a - 48), this.bump();
3061
3065
  else
3062
3066
  break;
3063
3067
  }
3064
3068
  var h = y(i, this.clonePosition());
3065
- return a ? (o *= n, pn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
3069
+ return o ? (s *= n, bn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3066
3070
  }, e.prototype.offset = function() {
3067
3071
  return this.position.offset;
3068
3072
  }, e.prototype.isEOF = function() {
@@ -3128,82 +3132,82 @@ var _n = (
3128
3132
  }, e;
3129
3133
  }()
3130
3134
  );
3131
- function Ge(e) {
3135
+ function Fe(e) {
3132
3136
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3133
3137
  }
3134
- function En(e) {
3135
- return Ge(e) || e === 47;
3136
- }
3137
3138
  function vn(e) {
3139
+ return Fe(e) || e === 47;
3140
+ }
3141
+ function xn(e) {
3138
3142
  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;
3139
3143
  }
3140
3144
  function kt(e) {
3141
3145
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3142
3146
  }
3143
- function xn(e) {
3147
+ function Tn(e) {
3144
3148
  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;
3145
3149
  }
3146
- function ke(e) {
3150
+ function je(e) {
3147
3151
  e.forEach(function(t) {
3148
3152
  if (delete t.location, It(t) || Ct(t))
3149
3153
  for (var r in t.options)
3150
- delete t.options[r].location, ke(t.options[r].value);
3154
+ delete t.options[r].location, je(t.options[r].value);
3151
3155
  else
3152
- At(t) && Lt(t.style) || (Pt(t) || Ot(t)) && $e(t.style) ? delete t.style.location : Nt(t) && ke(t.children);
3156
+ At(t) && Lt(t.style) || (Pt(t) || Ot(t)) && De(t.style) ? delete t.style.location : Nt(t) && je(t.children);
3153
3157
  });
3154
3158
  }
3155
- function Tn(e, t) {
3156
- t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3157
- var r = new _n(e, t).parse();
3159
+ function Hn(e, t) {
3160
+ t === void 0 && (t = {}), t = ge({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3161
+ var r = new En(e, t).parse();
3158
3162
  if (r.err) {
3159
3163
  var n = SyntaxError(b[r.err.kind]);
3160
3164
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3161
3165
  }
3162
- return t?.captureLocation || ke(r.val), r.val;
3166
+ return t?.captureLocation || je(r.val), r.val;
3163
3167
  }
3164
- var F;
3168
+ var j;
3165
3169
  (function(e) {
3166
3170
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3167
- })(F || (F = {}));
3168
- var xe = (
3171
+ })(j || (j = {}));
3172
+ var He = (
3169
3173
  /** @class */
3170
3174
  function(e) {
3171
- ve(t, e);
3175
+ Te(t, e);
3172
3176
  function t(r, n, i) {
3173
- var a = e.call(this, r) || this;
3174
- return a.code = n, a.originalMessage = i, a;
3177
+ var o = e.call(this, r) || this;
3178
+ return o.code = n, o.originalMessage = i, o;
3175
3179
  }
3176
3180
  return t.prototype.toString = function() {
3177
3181
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3178
3182
  }, t;
3179
3183
  }(Error)
3180
- ), ot = (
3184
+ ), st = (
3181
3185
  /** @class */
3182
3186
  function(e) {
3183
- ve(t, e);
3184
- function t(r, n, i, a) {
3185
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), F.INVALID_VALUE, a) || this;
3187
+ Te(t, e);
3188
+ function t(r, n, i, o) {
3189
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, o) || this;
3186
3190
  }
3187
3191
  return t;
3188
- }(xe)
3189
- ), Hn = (
3192
+ }(He)
3193
+ ), wn = (
3190
3194
  /** @class */
3191
3195
  function(e) {
3192
- ve(t, e);
3196
+ Te(t, e);
3193
3197
  function t(r, n, i) {
3194
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), F.INVALID_VALUE, i) || this;
3198
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
3195
3199
  }
3196
3200
  return t;
3197
- }(xe)
3198
- ), wn = (
3201
+ }(He)
3202
+ ), Sn = (
3199
3203
  /** @class */
3200
3204
  function(e) {
3201
- ve(t, e);
3205
+ Te(t, e);
3202
3206
  function t(r, n) {
3203
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), F.MISSING_VALUE, n) || this;
3207
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
3204
3208
  }
3205
3209
  return t;
3206
- }(xe)
3210
+ }(He)
3207
3211
  ), H;
3208
3212
  (function(e) {
3209
3213
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
@@ -3214,10 +3218,10 @@ function Bn(e) {
3214
3218
  return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
3215
3219
  }, []);
3216
3220
  }
3217
- function Sn(e) {
3221
+ function An(e) {
3218
3222
  return typeof e == "function";
3219
3223
  }
3220
- function de(e, t, r, n, i, a, o) {
3224
+ function pe(e, t, r, n, i, o, s) {
3221
3225
  if (e.length === 1 && Ke(e[0]))
3222
3226
  return [
3223
3227
  {
@@ -3225,44 +3229,44 @@ function de(e, t, r, n, i, a, o) {
3225
3229
  value: e[0].value
3226
3230
  }
3227
3231
  ];
3228
- for (var s = [], h = 0, u = e; h < u.length; h++) {
3232
+ for (var a = [], h = 0, u = e; h < u.length; h++) {
3229
3233
  var l = u[h];
3230
3234
  if (Ke(l)) {
3231
- s.push({
3235
+ a.push({
3232
3236
  type: H.literal,
3233
3237
  value: l.value
3234
3238
  });
3235
3239
  continue;
3236
3240
  }
3237
- if (Zr(l)) {
3238
- typeof a == "number" && s.push({
3241
+ if (Jr(l)) {
3242
+ typeof o == "number" && a.push({
3239
3243
  type: H.literal,
3240
- value: r.getNumberFormat(t).format(a)
3244
+ value: r.getNumberFormat(t).format(o)
3241
3245
  });
3242
3246
  continue;
3243
3247
  }
3244
3248
  var f = l.value;
3245
3249
  if (!(i && f in i))
3246
- throw new wn(f, o);
3250
+ throw new Sn(f, s);
3247
3251
  var m = i[f];
3248
- if (Wr(l)) {
3249
- (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
3252
+ if (Zr(l)) {
3253
+ (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
3250
3254
  type: typeof m == "string" ? H.literal : H.object,
3251
3255
  value: m
3252
3256
  });
3253
3257
  continue;
3254
3258
  }
3255
3259
  if (Pt(l)) {
3256
- var d = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
3257
- s.push({
3260
+ var d = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
3261
+ a.push({
3258
3262
  type: H.literal,
3259
3263
  value: r.getDateTimeFormat(t, d).format(m)
3260
3264
  });
3261
3265
  continue;
3262
3266
  }
3263
3267
  if (Ot(l)) {
3264
- var d = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
3265
- s.push({
3268
+ var d = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
3269
+ a.push({
3266
3270
  type: H.literal,
3267
3271
  value: r.getDateTimeFormat(t, d).format(m)
3268
3272
  });
@@ -3270,7 +3274,7 @@ function de(e, t, r, n, i, a, o) {
3270
3274
  }
3271
3275
  if (At(l)) {
3272
3276
  var d = typeof l.style == "string" ? n.number[l.style] : Lt(l.style) ? l.style.parsedOptions : void 0;
3273
- d && d.scale && (m = m * (d.scale || 1)), s.push({
3277
+ d && d.scale && (m = m * (d.scale || 1)), a.push({
3274
3278
  type: H.literal,
3275
3279
  value: r.getNumberFormat(t, d).format(m)
3276
3280
  });
@@ -3278,54 +3282,54 @@ function de(e, t, r, n, i, a, o) {
3278
3282
  }
3279
3283
  if (Nt(l)) {
3280
3284
  var p = l.children, v = l.value, T = i[v];
3281
- if (!Sn(T))
3282
- throw new Hn(v, "function", o);
3283
- var x = de(p, t, r, n, i, a), c = T(x.map(function(C) {
3284
- return C.value;
3285
+ if (!An(T))
3286
+ throw new wn(v, "function", s);
3287
+ var x = pe(p, t, r, n, i, o), c = T(x.map(function(N) {
3288
+ return N.value;
3285
3289
  }));
3286
- Array.isArray(c) || (c = [c]), s.push.apply(s, c.map(function(C) {
3290
+ Array.isArray(c) || (c = [c]), a.push.apply(a, c.map(function(N) {
3287
3291
  return {
3288
- type: typeof C == "string" ? H.literal : H.object,
3289
- value: C
3292
+ type: typeof N == "string" ? H.literal : H.object,
3293
+ value: N
3290
3294
  };
3291
3295
  }));
3292
3296
  }
3293
3297
  if (It(l)) {
3294
3298
  var g = l.options[m] || l.options.other;
3295
3299
  if (!g)
3296
- throw new ot(l.value, m, Object.keys(l.options), o);
3297
- s.push.apply(s, de(g.value, t, r, n, i));
3300
+ throw new st(l.value, m, Object.keys(l.options), s);
3301
+ a.push.apply(a, pe(g.value, t, r, n, i));
3298
3302
  continue;
3299
3303
  }
3300
3304
  if (Ct(l)) {
3301
3305
  var g = l.options["=".concat(m)];
3302
3306
  if (!g) {
3303
3307
  if (!Intl.PluralRules)
3304
- throw new xe(`Intl.PluralRules is not available in this environment.
3308
+ throw new He(`Intl.PluralRules is not available in this environment.
3305
3309
  Try polyfilling it using "@formatjs/intl-pluralrules"
3306
- `, F.MISSING_INTL_API, o);
3307
- var S = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
3308
- g = l.options[S] || l.options.other;
3310
+ `, j.MISSING_INTL_API, s);
3311
+ var A = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
3312
+ g = l.options[A] || l.options.other;
3309
3313
  }
3310
3314
  if (!g)
3311
- throw new ot(l.value, m, Object.keys(l.options), o);
3312
- s.push.apply(s, de(g.value, t, r, n, i, m - (l.offset || 0)));
3315
+ throw new st(l.value, m, Object.keys(l.options), s);
3316
+ a.push.apply(a, pe(g.value, t, r, n, i, m - (l.offset || 0)));
3313
3317
  continue;
3314
3318
  }
3315
3319
  }
3316
- return Bn(s);
3320
+ return Bn(a);
3317
3321
  }
3318
- function An(e, t) {
3319
- return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3320
- return r[n] = _(_({}, e[n]), t[n] || {}), r;
3322
+ function Pn(e, t) {
3323
+ return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3324
+ return r[n] = w(w({}, e[n]), t[n] || {}), r;
3321
3325
  }, {})) : e;
3322
3326
  }
3323
- function Pn(e, t) {
3327
+ function On(e, t) {
3324
3328
  return t ? Object.keys(e).reduce(function(r, n) {
3325
- return r[n] = An(e[n], t[n]), r;
3326
- }, _({}, e)) : e;
3329
+ return r[n] = Pn(e[n], t[n]), r;
3330
+ }, w({}, e)) : e;
3327
3331
  }
3328
- function Oe(e) {
3332
+ function Ce(e) {
3329
3333
  return {
3330
3334
  create: function() {
3331
3335
  return {
@@ -3339,35 +3343,35 @@ function Oe(e) {
3339
3343
  }
3340
3344
  };
3341
3345
  }
3342
- function On(e) {
3346
+ function In(e) {
3343
3347
  return e === void 0 && (e = {
3344
3348
  number: {},
3345
3349
  dateTime: {},
3346
3350
  pluralRules: {}
3347
3351
  }), {
3348
- getNumberFormat: Se(function() {
3352
+ getNumberFormat: Pe(function() {
3349
3353
  for (var t, r = [], n = 0; n < arguments.length; n++)
3350
3354
  r[n] = arguments[n];
3351
- return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
3355
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
3352
3356
  }, {
3353
- cache: Oe(e.number),
3354
- strategy: Ae.variadic
3357
+ cache: Ce(e.number),
3358
+ strategy: Oe.variadic
3355
3359
  }),
3356
- getDateTimeFormat: Se(function() {
3360
+ getDateTimeFormat: Pe(function() {
3357
3361
  for (var t, r = [], n = 0; n < arguments.length; n++)
3358
3362
  r[n] = arguments[n];
3359
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
3363
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
3360
3364
  }, {
3361
- cache: Oe(e.dateTime),
3362
- strategy: Ae.variadic
3365
+ cache: Ce(e.dateTime),
3366
+ strategy: Oe.variadic
3363
3367
  }),
3364
- getPluralRules: Se(function() {
3368
+ getPluralRules: Pe(function() {
3365
3369
  for (var t, r = [], n = 0; n < arguments.length; n++)
3366
3370
  r[n] = arguments[n];
3367
- return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
3371
+ return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
3368
3372
  }, {
3369
- cache: Oe(e.pluralRules),
3370
- strategy: Ae.variadic
3373
+ cache: Ce(e.pluralRules),
3374
+ strategy: Oe.variadic
3371
3375
  })
3372
3376
  };
3373
3377
  }
@@ -3376,13 +3380,13 @@ var Ft = (
3376
3380
  function() {
3377
3381
  function e(t, r, n, i) {
3378
3382
  r === void 0 && (r = e.defaultLocale);
3379
- var a = this;
3383
+ var o = this;
3380
3384
  if (this.formatterCache = {
3381
3385
  number: {},
3382
3386
  dateTime: {},
3383
3387
  pluralRules: {}
3384
3388
  }, this.format = function(h) {
3385
- var u = a.formatToParts(h);
3389
+ var u = o.formatToParts(h);
3386
3390
  if (u.length === 1)
3387
3391
  return u[0].value;
3388
3392
  var l = u.reduce(function(f, m) {
@@ -3390,26 +3394,26 @@ var Ft = (
3390
3394
  }, []);
3391
3395
  return l.length <= 1 ? l[0] || "" : l;
3392
3396
  }, this.formatToParts = function(h) {
3393
- return de(a.ast, a.locales, a.formatters, a.formats, h, void 0, a.message);
3397
+ return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3394
3398
  }, this.resolvedOptions = function() {
3395
3399
  var h;
3396
3400
  return {
3397
- locale: ((h = a.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3401
+ locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3398
3402
  };
3399
3403
  }, this.getAst = function() {
3400
- return a.ast;
3404
+ return o.ast;
3401
3405
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3402
3406
  if (this.message = t, !e.__parse)
3403
3407
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3404
- var o = i || {};
3405
- o.formatters;
3406
- var s = Gr(o, ["formatters"]);
3407
- this.ast = e.__parse(t, _(_({}, s), { locale: this.resolvedLocale }));
3408
+ var s = i || {};
3409
+ s.formatters;
3410
+ var a = Gr(s, ["formatters"]);
3411
+ this.ast = e.__parse(t, w(w({}, a), { locale: this.resolvedLocale }));
3408
3412
  } else
3409
3413
  this.ast = t;
3410
3414
  if (!Array.isArray(this.ast))
3411
3415
  throw new TypeError("A message must be provided as a String or AST.");
3412
- this.formats = Pn(e.formats, n), this.formatters = i && i.formatters || On(this.formatterCache);
3416
+ this.formats = On(e.formats, n), this.formatters = i && i.formatters || In(this.formatterCache);
3413
3417
  }
3414
3418
  return Object.defineProperty(e, "defaultLocale", {
3415
3419
  get: function() {
@@ -3422,7 +3426,7 @@ var Ft = (
3422
3426
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3423
3427
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3424
3428
  }
3425
- }, e.__parse = Tn, e.formats = {
3429
+ }, e.__parse = Hn, e.formats = {
3426
3430
  number: {
3427
3431
  integer: {
3428
3432
  maximumFractionDigits: 0
@@ -3483,7 +3487,7 @@ var Ft = (
3483
3487
  }, e;
3484
3488
  }()
3485
3489
  );
3486
- function In(e, t) {
3490
+ function Cn(e, t) {
3487
3491
  if (t == null)
3488
3492
  return;
3489
3493
  if (t in e)
@@ -3493,9 +3497,9 @@ function In(e, t) {
3493
3497
  for (let i = 0; i < r.length; i++)
3494
3498
  if (typeof n == "object") {
3495
3499
  if (i > 0) {
3496
- const a = r.slice(i, r.length).join(".");
3497
- if (a in n) {
3498
- n = n[a];
3500
+ const o = r.slice(i, r.length).join(".");
3501
+ if (o in n) {
3502
+ n = n[o];
3499
3503
  break;
3500
3504
  }
3501
3505
  }
@@ -3504,36 +3508,36 @@ function In(e, t) {
3504
3508
  n = void 0;
3505
3509
  return n;
3506
3510
  }
3507
- const P = {}, Cn = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), jt = (e, t) => {
3511
+ const O = {}, Nn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), jt = (e, t) => {
3508
3512
  if (t == null)
3509
3513
  return;
3510
- if (t in P && e in P[t])
3511
- return P[t][e];
3512
- const r = re(t);
3514
+ if (t in O && e in O[t])
3515
+ return O[t][e];
3516
+ const r = ne(t);
3513
3517
  for (let n = 0; n < r.length; n++) {
3514
- const i = r[n], a = Ln(i, e);
3515
- if (a)
3516
- return Cn(e, t, a);
3518
+ const i = r[n], o = Mn(i, e);
3519
+ if (o)
3520
+ return Nn(e, t, o);
3517
3521
  }
3518
3522
  };
3519
3523
  let Xe;
3520
- const te = Ee({});
3521
- function Nn(e) {
3524
+ const re = xe({});
3525
+ function Ln(e) {
3522
3526
  return Xe[e] || null;
3523
3527
  }
3524
3528
  function zt(e) {
3525
3529
  return e in Xe;
3526
3530
  }
3527
- function Ln(e, t) {
3531
+ function Mn(e, t) {
3528
3532
  if (!zt(e))
3529
3533
  return null;
3530
- const r = Nn(e);
3531
- return In(r, t);
3534
+ const r = Ln(e);
3535
+ return Cn(r, t);
3532
3536
  }
3533
- function Mn(e) {
3537
+ function $n(e) {
3534
3538
  if (e == null)
3535
3539
  return;
3536
- const t = re(e);
3540
+ const t = ne(e);
3537
3541
  for (let r = 0; r < t.length; r++) {
3538
3542
  const n = t[r];
3539
3543
  if (zt(n))
@@ -3541,64 +3545,64 @@ function Mn(e) {
3541
3545
  }
3542
3546
  }
3543
3547
  function Vt(e, ...t) {
3544
- delete P[e], te.update((r) => (r[e] = Ur.all([r[e] || {}, ...t]), r));
3548
+ delete O[e], re.update((r) => (r[e] = Ur.all([r[e] || {}, ...t]), r));
3545
3549
  }
3546
- V(
3547
- [te],
3550
+ X(
3551
+ [re],
3548
3552
  ([e]) => Object.keys(e)
3549
3553
  );
3550
- te.subscribe((e) => Xe = e);
3551
- const pe = {};
3552
- function $n(e, t) {
3553
- pe[e].delete(t), pe[e].size === 0 && delete pe[e];
3554
+ re.subscribe((e) => Xe = e);
3555
+ const be = {};
3556
+ function Rn(e, t) {
3557
+ be[e].delete(t), be[e].size === 0 && delete be[e];
3554
3558
  }
3555
3559
  function Xt(e) {
3556
- return pe[e];
3560
+ return be[e];
3557
3561
  }
3558
- function Rn(e) {
3559
- return re(e).map((t) => {
3562
+ function Dn(e) {
3563
+ return ne(e).map((t) => {
3560
3564
  const r = Xt(t);
3561
3565
  return [t, r ? [...r] : []];
3562
3566
  }).filter(([, t]) => t.length > 0);
3563
3567
  }
3564
- function be(e) {
3565
- return e == null ? !1 : re(e).some(
3568
+ function ye(e) {
3569
+ return e == null ? !1 : ne(e).some(
3566
3570
  (t) => {
3567
3571
  var r;
3568
3572
  return (r = Xt(t)) == null ? void 0 : r.size;
3569
3573
  }
3570
3574
  );
3571
3575
  }
3572
- function Dn(e, t) {
3576
+ function Un(e, t) {
3573
3577
  return Promise.all(
3574
- t.map((n) => ($n(e, n), n().then((i) => i.default || i)))
3578
+ t.map((n) => (Rn(e, n), n().then((i) => i.default || i)))
3575
3579
  ).then((n) => Vt(e, ...n));
3576
3580
  }
3577
- const W = {};
3581
+ const Z = {};
3578
3582
  function Wt(e) {
3579
- if (!be(e))
3580
- return e in W ? W[e] : Promise.resolve();
3581
- const t = Rn(e);
3582
- return W[e] = Promise.all(
3583
+ if (!ye(e))
3584
+ return e in Z ? Z[e] : Promise.resolve();
3585
+ const t = Dn(e);
3586
+ return Z[e] = Promise.all(
3583
3587
  t.map(
3584
- ([r, n]) => Dn(r, n)
3588
+ ([r, n]) => Un(r, n)
3585
3589
  )
3586
3590
  ).then(() => {
3587
- if (be(e))
3591
+ if (ye(e))
3588
3592
  return Wt(e);
3589
- delete W[e];
3590
- }), W[e];
3593
+ delete Z[e];
3594
+ }), Z[e];
3591
3595
  }
3592
- var st = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, kn = (e, t) => {
3596
+ var at = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, kn = Object.prototype.propertyIsEnumerable, Fn = (e, t) => {
3593
3597
  var r = {};
3594
3598
  for (var n in e)
3595
- Un.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3596
- if (e != null && st)
3597
- for (var n of st(e))
3598
- t.indexOf(n) < 0 && Gn.call(e, n) && (r[n] = e[n]);
3599
+ Gn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3600
+ if (e != null && at)
3601
+ for (var n of at(e))
3602
+ t.indexOf(n) < 0 && kn.call(e, n) && (r[n] = e[n]);
3599
3603
  return r;
3600
3604
  };
3601
- const Fn = {
3605
+ const jn = {
3602
3606
  number: {
3603
3607
  scientific: { notation: "scientific" },
3604
3608
  engineering: { notation: "engineering" },
@@ -3628,28 +3632,28 @@ const Fn = {
3628
3632
  }
3629
3633
  }
3630
3634
  };
3631
- function jn({ locale: e, id: t }) {
3635
+ function zn({ locale: e, id: t }) {
3632
3636
  console.warn(
3633
- `[svelte-i18n] The message "${t}" was not found in "${re(
3637
+ `[svelte-i18n] The message "${t}" was not found in "${ne(
3634
3638
  e
3635
- ).join('", "')}".${be(I()) ? `
3639
+ ).join('", "')}".${ye(C()) ? `
3636
3640
 
3637
3641
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3638
3642
  );
3639
3643
  }
3640
- const zn = {
3644
+ const Vn = {
3641
3645
  fallbackLocale: null,
3642
3646
  loadingDelay: 200,
3643
- formats: Fn,
3647
+ formats: jn,
3644
3648
  warnOnMissingMessages: !0,
3645
3649
  handleMissingMessage: void 0,
3646
3650
  ignoreTag: !0
3647
- }, J = zn;
3648
- function j() {
3649
- return J;
3651
+ }, q = Vn;
3652
+ function z() {
3653
+ return q;
3650
3654
  }
3651
- function Vn(e) {
3652
- const t = e, { formats: r } = t, n = kn(t, ["formats"]);
3655
+ function Xn(e) {
3656
+ const t = e, { formats: r } = t, n = Fn(t, ["formats"]);
3653
3657
  let i = e.fallbackLocale;
3654
3658
  if (e.initialLocale)
3655
3659
  try {
@@ -3659,152 +3663,152 @@ function Vn(e) {
3659
3663
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3660
3664
  );
3661
3665
  }
3662
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = jn : console.warn(
3666
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = zn : console.warn(
3663
3667
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3664
- )), 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)), L.set(i);
3668
+ )), Object.assign(q, n, { initialLocale: i }), r && ("number" in r && Object.assign(q.formats.number, r.number), "date" in r && Object.assign(q.formats.date, r.date), "time" in r && Object.assign(q.formats.time, r.time)), M.set(i);
3665
3669
  }
3666
- const Ie = Ee(!1);
3667
- var Xn = Object.defineProperty, Wn = Object.defineProperties, Zn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, qn = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qn = (e, t) => {
3670
+ const Ne = xe(!1);
3671
+ var Wn = Object.defineProperty, Zn = Object.defineProperties, Jn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yn = (e, t) => {
3668
3672
  for (var r in t || (t = {}))
3669
- Jn.call(t, r) && lt(e, r, t[r]);
3673
+ qn.call(t, r) && lt(e, r, t[r]);
3670
3674
  if (ut)
3671
3675
  for (var r of ut(t))
3672
- qn.call(t, r) && lt(e, r, t[r]);
3676
+ Qn.call(t, r) && lt(e, r, t[r]);
3673
3677
  return e;
3674
- }, Yn = (e, t) => Wn(e, Zn(t));
3675
- let Fe;
3676
- const ge = Ee(null);
3678
+ }, Kn = (e, t) => Zn(e, Jn(t));
3679
+ let ze;
3680
+ const _e = xe(null);
3677
3681
  function ht(e) {
3678
3682
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3679
3683
  }
3680
- function re(e, t = j().fallbackLocale) {
3684
+ function ne(e, t = z().fallbackLocale) {
3681
3685
  const r = ht(e);
3682
3686
  return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
3683
3687
  }
3684
- function I() {
3685
- return Fe ?? void 0;
3688
+ function C() {
3689
+ return ze ?? void 0;
3686
3690
  }
3687
- ge.subscribe((e) => {
3688
- Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3691
+ _e.subscribe((e) => {
3692
+ ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3689
3693
  });
3690
- const Kn = (e) => {
3691
- if (e && Mn(e) && be(e)) {
3692
- const { loadingDelay: t } = j();
3694
+ const ei = (e) => {
3695
+ if (e && $n(e) && ye(e)) {
3696
+ const { loadingDelay: t } = z();
3693
3697
  let r;
3694
- return typeof window < "u" && I() != null && t ? r = window.setTimeout(
3695
- () => Ie.set(!0),
3698
+ return typeof window < "u" && C() != null && t ? r = window.setTimeout(
3699
+ () => Ne.set(!0),
3696
3700
  t
3697
- ) : Ie.set(!0), Wt(e).then(() => {
3698
- ge.set(e);
3701
+ ) : Ne.set(!0), Wt(e).then(() => {
3702
+ _e.set(e);
3699
3703
  }).finally(() => {
3700
- clearTimeout(r), Ie.set(!1);
3704
+ clearTimeout(r), Ne.set(!1);
3701
3705
  });
3702
3706
  }
3703
- return ge.set(e);
3704
- }, L = Yn(Qn({}, ge), {
3705
- set: Kn
3706
- }), Te = (e) => {
3707
+ return _e.set(e);
3708
+ }, M = Kn(Yn({}, _e), {
3709
+ set: ei
3710
+ }), we = (e) => {
3707
3711
  const t = /* @__PURE__ */ Object.create(null);
3708
3712
  return (n) => {
3709
3713
  const i = JSON.stringify(n);
3710
3714
  return i in t ? t[i] : t[i] = e(n);
3711
3715
  };
3712
3716
  };
3713
- var ei = Object.defineProperty, ye = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
3717
+ var ti = Object.defineProperty, Ee = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
3714
3718
  for (var r in t || (t = {}))
3715
3719
  Zt.call(t, r) && ct(e, r, t[r]);
3716
- if (ye)
3717
- for (var r of ye(t))
3720
+ if (Ee)
3721
+ for (var r of Ee(t))
3718
3722
  Jt.call(t, r) && ct(e, r, t[r]);
3719
3723
  return e;
3720
- }, X = (e, t) => {
3724
+ }, W = (e, t) => {
3721
3725
  var r = {};
3722
3726
  for (var n in e)
3723
3727
  Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3724
- if (e != null && ye)
3725
- for (var n of ye(e))
3728
+ if (e != null && Ee)
3729
+ for (var n of Ee(e))
3726
3730
  t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
3727
3731
  return r;
3728
3732
  };
3729
- const K = (e, t) => {
3730
- const { formats: r } = j();
3733
+ const ee = (e, t) => {
3734
+ const { formats: r } = z();
3731
3735
  if (e in r && t in r[e])
3732
3736
  return r[e][t];
3733
3737
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3734
- }, ti = Te(
3738
+ }, ri = we(
3735
3739
  (e) => {
3736
- var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
3740
+ var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
3737
3741
  if (r == null)
3738
3742
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3739
- return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
3743
+ return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
3740
3744
  }
3741
- ), ri = Te(
3745
+ ), ni = we(
3742
3746
  (e) => {
3743
- var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
3747
+ var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
3744
3748
  if (r == null)
3745
3749
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3746
- return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
3750
+ return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
3747
3751
  }
3748
- ), ni = Te(
3752
+ ), ii = we(
3749
3753
  (e) => {
3750
- var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
3754
+ var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
3751
3755
  if (r == null)
3752
3756
  throw new Error(
3753
3757
  '[svelte-i18n] A "locale" must be set to format time values'
3754
3758
  );
3755
- return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
3759
+ return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
3756
3760
  }
3757
- ), ii = (e = {}) => {
3761
+ ), oi = (e = {}) => {
3758
3762
  var t = e, {
3759
- locale: r = I()
3760
- } = t, n = X(t, [
3763
+ locale: r = C()
3764
+ } = t, n = W(t, [
3761
3765
  "locale"
3762
3766
  ]);
3763
- return ti(We({ locale: r }, n));
3764
- }, ai = (e = {}) => {
3767
+ return ri(We({ locale: r }, n));
3768
+ }, si = (e = {}) => {
3765
3769
  var t = e, {
3766
- locale: r = I()
3767
- } = t, n = X(t, [
3770
+ locale: r = C()
3771
+ } = t, n = W(t, [
3768
3772
  "locale"
3769
3773
  ]);
3770
- return ri(We({ locale: r }, n));
3771
- }, oi = (e = {}) => {
3774
+ return ni(We({ locale: r }, n));
3775
+ }, ai = (e = {}) => {
3772
3776
  var t = e, {
3773
- locale: r = I()
3774
- } = t, n = X(t, [
3777
+ locale: r = C()
3778
+ } = t, n = W(t, [
3775
3779
  "locale"
3776
3780
  ]);
3777
- return ni(We({ locale: r }, n));
3778
- }, si = Te(
3781
+ return ii(We({ locale: r }, n));
3782
+ }, ui = we(
3779
3783
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3780
- (e, t = I()) => new Ft(e, t, j().formats, {
3781
- ignoreTag: j().ignoreTag
3784
+ (e, t = C()) => new Ft(e, t, z().formats, {
3785
+ ignoreTag: z().ignoreTag
3782
3786
  })
3783
- ), ui = (e, t = {}) => {
3784
- var r, n, i, a;
3785
- let o = t;
3786
- typeof e == "object" && (o = e, e = o.id);
3787
+ ), li = (e, t = {}) => {
3788
+ var r, n, i, o;
3789
+ let s = t;
3790
+ typeof e == "object" && (s = e, e = s.id);
3787
3791
  const {
3788
- values: s,
3789
- locale: h = I(),
3792
+ values: a,
3793
+ locale: h = C(),
3790
3794
  default: u
3791
- } = o;
3795
+ } = s;
3792
3796
  if (h == null)
3793
3797
  throw new Error(
3794
3798
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3795
3799
  );
3796
3800
  let l = jt(e, h);
3797
3801
  if (!l)
3798
- l = (a = (i = (n = (r = j()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
3802
+ l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3799
3803
  else if (typeof l != "string")
3800
3804
  return console.warn(
3801
3805
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3802
3806
  ), l;
3803
- if (!s)
3807
+ if (!a)
3804
3808
  return l;
3805
3809
  let f = l;
3806
3810
  try {
3807
- f = si(l, h).format(s);
3811
+ f = ui(l, h).format(a);
3808
3812
  } catch (m) {
3809
3813
  m instanceof Error && console.warn(
3810
3814
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3812,18 +3816,18 @@ const K = (e, t) => {
3812
3816
  );
3813
3817
  }
3814
3818
  return f;
3815
- }, li = (e, t) => oi(t).format(e), hi = (e, t) => ai(t).format(e), ci = (e, t) => ii(t).format(e), fi = (e, t = I()) => jt(e, t), mi = V([L, te], () => ui);
3816
- V([L], () => li);
3817
- V([L], () => hi);
3818
- V([L], () => ci);
3819
- V([L, te], () => fi);
3819
+ }, hi = (e, t) => ai(t).format(e), ci = (e, t) => si(t).format(e), fi = (e, t) => oi(t).format(e), mi = (e, t = C()) => jt(e, t), di = X([M, re], () => li);
3820
+ X([M], () => hi);
3821
+ X([M], () => ci);
3822
+ X([M], () => fi);
3823
+ X([M, re], () => mi);
3820
3824
  function ft(e, t) {
3821
3825
  Vt(e, t);
3822
3826
  }
3823
- function di(e) {
3824
- Vn({
3827
+ function pi(e) {
3828
+ Xn({
3825
3829
  fallbackLocale: "en"
3826
- }), L.set(e);
3830
+ }), M.set(e);
3827
3831
  }
3828
3832
  const mt = {
3829
3833
  en: {
@@ -3879,31 +3883,31 @@ const mt = {
3879
3883
  DeclinedByMerchant: "Özür dileriz, ancak işlem satıcı tarafından kapatıldı. Daha fazla yardım için lütfen Müşteri Desteği ile iletişime geçin."
3880
3884
  }
3881
3885
  };
3882
- function pi(e) {
3886
+ function bi(e) {
3883
3887
  Kt(e, "svelte-m958fw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}");
3884
3888
  }
3885
- const bi = (e) => ({}), dt = (e) => ({}), gi = (e) => ({}), pt = (e) => ({}), yi = (e) => ({}), bt = (e) => ({}), _i = (e) => ({}), gt = (e) => ({ class: "CashierErrorIcon" });
3889
+ const gi = (e) => ({}), dt = (e) => ({}), yi = (e) => ({}), pt = (e) => ({}), _i = (e) => ({}), bt = (e) => ({}), Ei = (e) => ({}), gt = (e) => ({ class: "CashierErrorIcon" });
3886
3890
  function yt(e) {
3887
3891
  let t, r;
3888
3892
  return {
3889
3893
  c() {
3890
- t = O("ui-image"), qe(t.src, r = `${/*assetsurl*/
3891
- e[0]}/error-general-icon.png`) || le(t, "src", r), le(t, "width", "300px"), le(t, "alt", "error");
3894
+ t = I("ui-image"), qe(t.src, r = `${/*assetsurl*/
3895
+ e[0]}/error-general-icon.png`) || he(t, "src", r), he(t, "width", "300px"), he(t, "alt", "error");
3892
3896
  },
3893
3897
  m(n, i) {
3894
- z(n, t, i);
3898
+ V(n, t, i);
3895
3899
  },
3896
3900
  p(n, i) {
3897
3901
  i & /*assetsurl*/
3898
3902
  1 && !qe(t.src, r = `${/*assetsurl*/
3899
- n[0]}/error-general-icon.png`) && le(t, "src", r);
3903
+ n[0]}/error-general-icon.png`) && he(t, "src", r);
3900
3904
  },
3901
3905
  d(n) {
3902
- n && N(t);
3906
+ n && L(t);
3903
3907
  }
3904
3908
  };
3905
3909
  }
3906
- function Ei(e) {
3910
+ function vi(e) {
3907
3911
  let t, r = (
3908
3912
  /*assetsurl*/
3909
3913
  e[0] && yt(e)
@@ -3913,18 +3917,18 @@ function Ei(e) {
3913
3917
  r && r.c(), t = rr();
3914
3918
  },
3915
3919
  m(n, i) {
3916
- r && r.m(n, i), z(n, t, i);
3920
+ r && r.m(n, i), V(n, t, i);
3917
3921
  },
3918
3922
  p(n, i) {
3919
3923
  /*assetsurl*/
3920
3924
  n[0] ? r ? r.p(n, i) : (r = yt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3921
3925
  },
3922
3926
  d(n) {
3923
- n && N(t), r && r.d(n);
3927
+ n && L(t), r && r.d(n);
3924
3928
  }
3925
3929
  };
3926
3930
  }
3927
- function vi(e) {
3931
+ function xi(e) {
3928
3932
  let t, r = (
3929
3933
  /*$_*/
3930
3934
  e[3](`${/*errorcode*/
@@ -3932,64 +3936,64 @@ function vi(e) {
3932
3936
  ), n;
3933
3937
  return {
3934
3938
  c() {
3935
- t = O("span"), n = _e(r), U(t, "class", "CashierErrorText");
3939
+ t = I("span"), n = ve(r), G(t, "class", "CashierErrorText");
3936
3940
  },
3937
- m(i, a) {
3938
- z(i, t, a), A(t, n);
3941
+ m(i, o) {
3942
+ V(i, t, o), P(t, n);
3939
3943
  },
3940
- p(i, a) {
3941
- a & /*$_, errorcode*/
3944
+ p(i, o) {
3945
+ o & /*$_, errorcode*/
3942
3946
  10 && r !== (r = /*$_*/
3943
3947
  i[3](`${/*errorcode*/
3944
3948
  i[1] || "errorGeneralText"}`) + "") && Tt(n, r);
3945
3949
  },
3946
3950
  d(i) {
3947
- i && N(t);
3951
+ i && L(t);
3948
3952
  }
3949
3953
  };
3950
3954
  }
3951
- function xi(e) {
3955
+ function Ti(e) {
3952
3956
  let t, r, n = (
3953
3957
  /*$_*/
3954
3958
  e[3]("errorGeneralButton") + ""
3955
- ), i, a, o;
3959
+ ), i, o, s;
3956
3960
  return {
3957
3961
  c() {
3958
- t = O("button"), r = O("span"), i = _e(n), U(t, "class", "CashierErrorButton");
3962
+ t = I("button"), r = I("span"), i = ve(n), G(t, "class", "CashierErrorButton");
3959
3963
  },
3960
- m(s, h) {
3961
- z(s, t, h), A(t, r), A(r, i), a || (o = nr(
3964
+ m(a, h) {
3965
+ V(a, t, h), P(t, r), P(r, i), o || (s = nr(
3962
3966
  t,
3963
3967
  "click",
3964
3968
  /*close*/
3965
3969
  e[4]
3966
- ), a = !0);
3970
+ ), o = !0);
3967
3971
  },
3968
- p(s, h) {
3972
+ p(a, h) {
3969
3973
  h & /*$_*/
3970
3974
  8 && n !== (n = /*$_*/
3971
- s[3]("errorGeneralButton") + "") && Tt(i, n);
3975
+ a[3]("errorGeneralButton") + "") && Tt(i, n);
3972
3976
  },
3973
- d(s) {
3974
- s && N(t), a = !1, o();
3977
+ d(a) {
3978
+ a && L(t), o = !1, s();
3975
3979
  }
3976
3980
  };
3977
3981
  }
3978
- function Ti(e) {
3979
- let t, r, n, i, a, o;
3980
- const s = (
3982
+ function Hi(e) {
3983
+ let t, r, n, i, o, s;
3984
+ const a = (
3981
3985
  /*#slots*/
3982
3986
  e[11].icon
3983
- ), h = ae(
3984
- s,
3987
+ ), h = se(
3988
+ a,
3985
3989
  e,
3986
3990
  /*$$scope*/
3987
3991
  e[10],
3988
3992
  gt
3989
- ), u = h || Ei(e), l = (
3993
+ ), u = h || vi(e), l = (
3990
3994
  /*#slots*/
3991
3995
  e[11].title
3992
- ), f = ae(
3996
+ ), f = se(
3993
3997
  l,
3994
3998
  e,
3995
3999
  /*$$scope*/
@@ -3998,128 +4002,128 @@ function Ti(e) {
3998
4002
  ), m = (
3999
4003
  /*#slots*/
4000
4004
  e[11].text
4001
- ), d = ae(
4005
+ ), d = se(
4002
4006
  m,
4003
4007
  e,
4004
4008
  /*$$scope*/
4005
4009
  e[10],
4006
4010
  pt
4007
- ), p = d || vi(e), v = (
4011
+ ), p = d || xi(e), v = (
4008
4012
  /*#slots*/
4009
4013
  e[11].button
4010
- ), T = ae(
4014
+ ), T = se(
4011
4015
  v,
4012
4016
  e,
4013
4017
  /*$$scope*/
4014
4018
  e[10],
4015
4019
  dt
4016
- ), x = T || xi(e);
4020
+ ), x = T || Ti(e);
4017
4021
  return {
4018
4022
  c() {
4019
- t = O("div"), r = O("div"), u && u.c(), n = He(), f && f.c(), i = He(), p && p.c(), a = He(), x && x.c(), U(r, "class", "CashierErrorContent"), U(t, "class", "CashierError");
4023
+ t = I("div"), r = I("div"), u && u.c(), n = Se(), f && f.c(), i = Se(), p && p.c(), o = Se(), x && x.c(), G(r, "class", "CashierErrorContent"), G(t, "class", "CashierError");
4020
4024
  },
4021
4025
  m(c, g) {
4022
- z(c, t, g), A(t, r), u && u.m(r, null), A(r, n), f && f.m(r, null), A(r, i), p && p.m(r, null), A(r, a), x && x.m(r, null), e[12](t), o = !0;
4026
+ V(c, t, g), P(t, r), u && u.m(r, null), P(r, n), f && f.m(r, null), P(r, i), p && p.m(r, null), P(r, o), x && x.m(r, null), e[12](t), s = !0;
4023
4027
  },
4024
4028
  p(c, [g]) {
4025
- h ? h.p && (!o || g & /*$$scope*/
4026
- 1024) && se(
4029
+ h ? h.p && (!s || g & /*$$scope*/
4030
+ 1024) && ue(
4027
4031
  h,
4028
- s,
4032
+ a,
4029
4033
  c,
4030
4034
  /*$$scope*/
4031
4035
  c[10],
4032
- o ? oe(
4033
- s,
4036
+ s ? ae(
4037
+ a,
4034
4038
  /*$$scope*/
4035
4039
  c[10],
4036
4040
  g,
4037
- _i
4038
- ) : ue(
4041
+ Ei
4042
+ ) : le(
4039
4043
  /*$$scope*/
4040
4044
  c[10]
4041
4045
  ),
4042
4046
  gt
4043
- ) : u && u.p && (!o || g & /*assetsurl*/
4044
- 1) && u.p(c, o ? g : -1), f && f.p && (!o || g & /*$$scope*/
4045
- 1024) && se(
4047
+ ) : u && u.p && (!s || g & /*assetsurl*/
4048
+ 1) && u.p(c, s ? g : -1), f && f.p && (!s || g & /*$$scope*/
4049
+ 1024) && ue(
4046
4050
  f,
4047
4051
  l,
4048
4052
  c,
4049
4053
  /*$$scope*/
4050
4054
  c[10],
4051
- o ? oe(
4055
+ s ? ae(
4052
4056
  l,
4053
4057
  /*$$scope*/
4054
4058
  c[10],
4055
4059
  g,
4056
- yi
4057
- ) : ue(
4060
+ _i
4061
+ ) : le(
4058
4062
  /*$$scope*/
4059
4063
  c[10]
4060
4064
  ),
4061
4065
  bt
4062
- ), d ? d.p && (!o || g & /*$$scope*/
4063
- 1024) && se(
4066
+ ), d ? d.p && (!s || g & /*$$scope*/
4067
+ 1024) && ue(
4064
4068
  d,
4065
4069
  m,
4066
4070
  c,
4067
4071
  /*$$scope*/
4068
4072
  c[10],
4069
- o ? oe(
4073
+ s ? ae(
4070
4074
  m,
4071
4075
  /*$$scope*/
4072
4076
  c[10],
4073
4077
  g,
4074
- gi
4075
- ) : ue(
4078
+ yi
4079
+ ) : le(
4076
4080
  /*$$scope*/
4077
4081
  c[10]
4078
4082
  ),
4079
4083
  pt
4080
- ) : p && p.p && (!o || g & /*$_, errorcode*/
4081
- 10) && p.p(c, o ? g : -1), T ? T.p && (!o || g & /*$$scope*/
4082
- 1024) && se(
4084
+ ) : p && p.p && (!s || g & /*$_, errorcode*/
4085
+ 10) && p.p(c, s ? g : -1), T ? T.p && (!s || g & /*$$scope*/
4086
+ 1024) && ue(
4083
4087
  T,
4084
4088
  v,
4085
4089
  c,
4086
4090
  /*$$scope*/
4087
4091
  c[10],
4088
- o ? oe(
4092
+ s ? ae(
4089
4093
  v,
4090
4094
  /*$$scope*/
4091
4095
  c[10],
4092
4096
  g,
4093
- bi
4094
- ) : ue(
4097
+ gi
4098
+ ) : le(
4095
4099
  /*$$scope*/
4096
4100
  c[10]
4097
4101
  ),
4098
4102
  dt
4099
- ) : x && x.p && (!o || g & /*$_*/
4100
- 8) && x.p(c, o ? g : -1);
4103
+ ) : x && x.p && (!s || g & /*$_*/
4104
+ 8) && x.p(c, s ? g : -1);
4101
4105
  },
4102
4106
  i(c) {
4103
- o || (Z(u, c), Z(f, c), Z(p, c), Z(x, c), o = !0);
4107
+ s || (J(u, c), J(f, c), J(p, c), J(x, c), s = !0);
4104
4108
  },
4105
4109
  o(c) {
4106
- he(u, c), he(f, c), he(p, c), he(x, c), o = !1;
4110
+ ce(u, c), ce(f, c), ce(p, c), ce(x, c), s = !1;
4107
4111
  },
4108
4112
  d(c) {
4109
- c && N(t), u && u.d(c), f && f.d(c), p && p.d(c), x && x.d(c), e[12](null);
4113
+ c && L(t), u && u.d(c), f && f.d(c), p && p.d(c), x && x.d(c), e[12](null);
4110
4114
  }
4111
4115
  };
4112
4116
  }
4113
- function Hi(e, t, r) {
4117
+ function wi(e, t, r) {
4114
4118
  let n;
4115
- Yt(e, mi, (c) => r(3, n = c));
4116
- let { $$slots: i = {}, $$scope: a } = t, { assetsurl: o = "" } = t, { lang: s = "en" } = t, { errorcode: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { mbsource: m = "" } = t, d;
4119
+ Yt(e, di, (c) => r(3, n = c));
4120
+ let { $$slots: i = {}, $$scope: o } = t, { assetsurl: s = "" } = t, { lang: a = "en" } = t, { errorcode: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { mbsource: m = "" } = t, d;
4117
4121
  const p = () => {
4118
- di(s);
4122
+ pi(a);
4119
4123
  }, v = () => {
4120
4124
  fetch(f).then((g) => g.json()).then((g) => {
4121
- Object.keys(g).forEach((S) => {
4122
- ft(S, g[S]);
4125
+ Object.keys(g).forEach((A) => {
4126
+ ft(A, g[A]);
4123
4127
  });
4124
4128
  }).catch((g) => {
4125
4129
  console.error(g);
@@ -4131,45 +4135,45 @@ function Hi(e, t, r) {
4131
4135
  const T = () => {
4132
4136
  window.postMessage({ type: "ErrorClose" }, window.location.href);
4133
4137
  };
4134
- sr(() => () => {
4138
+ ar(() => () => {
4135
4139
  });
4136
4140
  function x(c) {
4137
- Ce[c ? "unshift" : "push"](() => {
4141
+ Le[c ? "unshift" : "push"](() => {
4138
4142
  d = c, r(2, d);
4139
4143
  });
4140
4144
  }
4141
4145
  return e.$$set = (c) => {
4142
- "assetsurl" in c && r(0, o = c.assetsurl), "lang" in c && r(5, s = c.lang), "errorcode" in c && r(1, h = c.errorcode), "clientstyling" in c && r(6, u = c.clientstyling), "clientstylingurl" in c && r(7, l = c.clientstylingurl), "translationurl" in c && r(8, f = c.translationurl), "mbsource" in c && r(9, m = c.mbsource), "$$scope" in c && r(10, a = c.$$scope);
4146
+ "assetsurl" in c && r(0, s = c.assetsurl), "lang" in c && r(5, a = c.lang), "errorcode" in c && r(1, h = c.errorcode), "clientstyling" in c && r(6, u = c.clientstyling), "clientstylingurl" in c && r(7, l = c.clientstylingurl), "translationurl" in c && r(8, f = c.translationurl), "mbsource" in c && r(9, m = c.mbsource), "$$scope" in c && r(10, o = c.$$scope);
4143
4147
  }, e.$$.update = () => {
4144
4148
  e.$$.dirty & /*lang*/
4145
- 32 && s && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4149
+ 32 && a && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4146
4150
  68 && u && d && Er(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4147
4151
  132 && l && d && vr(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4148
4152
  516 && m && d && xr(d, `${m}.Style`), e.$$.dirty & /*translationurl*/
4149
4153
  256 && f && v();
4150
4154
  }, [
4151
- o,
4155
+ s,
4152
4156
  h,
4153
4157
  d,
4154
4158
  n,
4155
4159
  T,
4156
- s,
4160
+ a,
4157
4161
  u,
4158
4162
  l,
4159
4163
  f,
4160
4164
  m,
4161
- a,
4165
+ o,
4162
4166
  i,
4163
4167
  x
4164
4168
  ];
4165
4169
  }
4166
- class wi extends yr {
4170
+ class Si extends yr {
4167
4171
  constructor(t) {
4168
4172
  super(), br(
4169
4173
  this,
4170
4174
  t,
4175
+ wi,
4171
4176
  Hi,
4172
- Ti,
4173
4177
  Et,
4174
4178
  {
4175
4179
  assetsurl: 0,
@@ -4180,53 +4184,53 @@ class wi extends yr {
4180
4184
  translationurl: 8,
4181
4185
  mbsource: 9
4182
4186
  },
4183
- pi
4187
+ bi
4184
4188
  );
4185
4189
  }
4186
4190
  get assetsurl() {
4187
4191
  return this.$$.ctx[0];
4188
4192
  }
4189
4193
  set assetsurl(t) {
4190
- this.$$set({ assetsurl: t }), w();
4194
+ this.$$set({ assetsurl: t }), S();
4191
4195
  }
4192
4196
  get lang() {
4193
4197
  return this.$$.ctx[5];
4194
4198
  }
4195
4199
  set lang(t) {
4196
- this.$$set({ lang: t }), w();
4200
+ this.$$set({ lang: t }), S();
4197
4201
  }
4198
4202
  get errorcode() {
4199
4203
  return this.$$.ctx[1];
4200
4204
  }
4201
4205
  set errorcode(t) {
4202
- this.$$set({ errorcode: t }), w();
4206
+ this.$$set({ errorcode: t }), S();
4203
4207
  }
4204
4208
  get clientstyling() {
4205
4209
  return this.$$.ctx[6];
4206
4210
  }
4207
4211
  set clientstyling(t) {
4208
- this.$$set({ clientstyling: t }), w();
4212
+ this.$$set({ clientstyling: t }), S();
4209
4213
  }
4210
4214
  get clientstylingurl() {
4211
4215
  return this.$$.ctx[7];
4212
4216
  }
4213
4217
  set clientstylingurl(t) {
4214
- this.$$set({ clientstylingurl: t }), w();
4218
+ this.$$set({ clientstylingurl: t }), S();
4215
4219
  }
4216
4220
  get translationurl() {
4217
4221
  return this.$$.ctx[8];
4218
4222
  }
4219
4223
  set translationurl(t) {
4220
- this.$$set({ translationurl: t }), w();
4224
+ this.$$set({ translationurl: t }), S();
4221
4225
  }
4222
4226
  get mbsource() {
4223
4227
  return this.$$.ctx[9];
4224
4228
  }
4225
4229
  set mbsource(t) {
4226
- this.$$set({ mbsource: t }), w();
4230
+ this.$$set({ mbsource: t }), S();
4227
4231
  }
4228
4232
  }
4229
- gr(wi, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4233
+ gr(Si, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4230
4234
  export {
4231
- wi as C
4235
+ Si as C
4232
4236
  };