@everymatrix/cashier-error 1.99.22 → 1.99.23

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,36 +1,35 @@
1
- var fn = Object.defineProperty, gn = Object.defineProperties;
2
- var pn = Object.getOwnPropertyDescriptors;
1
+ var Tn = Object.defineProperty, wn = Object.defineProperties;
2
+ var In = Object.getOwnPropertyDescriptors;
3
3
  var it = Object.getOwnPropertySymbols;
4
- var bn = Object.prototype.hasOwnProperty, yn = Object.prototype.propertyIsEnumerable;
5
- var Pe = (e, t, n) => t in e ? fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, at = (e, t) => {
4
+ var An = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable;
5
+ var Me = (e, t, n) => t in e ? Tn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, at = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- bn.call(t, n) && Pe(e, n, t[n]);
7
+ An.call(t, n) && Me(e, n, t[n]);
8
8
  if (it)
9
9
  for (var n of it(t))
10
- yn.call(t, n) && Pe(e, n, t[n]);
10
+ Sn.call(t, n) && Me(e, n, t[n]);
11
11
  return e;
12
- }, st = (e, t) => gn(e, pn(t));
13
- var S = (e, t, n) => (Pe(e, typeof t != "symbol" ? t + "" : t, n), n);
12
+ }, st = (e, t) => wn(e, In(t));
13
+ var L = (e, t, n) => (Me(e, typeof t != "symbol" ? t + "" : t, n), n);
14
14
  var ot = (e, t, n) => new Promise((r, i) => {
15
- var a = (l) => {
15
+ var a = (u) => {
16
16
  try {
17
- o(n.next(l));
18
- } catch (u) {
19
- i(u);
17
+ o(n.next(u));
18
+ } catch (l) {
19
+ i(l);
20
20
  }
21
- }, s = (l) => {
21
+ }, s = (u) => {
22
22
  try {
23
- o(n.throw(l));
24
- } catch (u) {
25
- i(u);
23
+ o(n.throw(u));
24
+ } catch (l) {
25
+ i(l);
26
26
  }
27
- }, o = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(a, s);
27
+ }, o = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(a, s);
28
28
  o((n = n.apply(e, t)).next());
29
29
  });
30
- import "../stencil/ui-image-CP8Lp7fB.js";
31
30
  function P() {
32
31
  }
33
- function vn(e, t) {
32
+ function Cn(e, t) {
34
33
  for (const n in t)
35
34
  e[n] = t[n];
36
35
  return (
@@ -38,26 +37,26 @@ function vn(e, t) {
38
37
  e
39
38
  );
40
39
  }
41
- function Ot(e) {
40
+ function Dt(e) {
42
41
  return e();
43
42
  }
44
43
  function lt() {
45
44
  return /* @__PURE__ */ Object.create(null);
46
45
  }
47
46
  function re(e) {
48
- e.forEach(Ot);
47
+ e.forEach(Dt);
49
48
  }
50
- function Qe(e) {
49
+ function Ye(e) {
51
50
  return typeof e == "function";
52
51
  }
53
- function Dt(e, t) {
52
+ function Qe(e, t) {
54
53
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
55
54
  }
56
55
  let ge;
57
56
  function ut(e, t) {
58
57
  return e === t ? !0 : (ge || (ge = document.createElement("a")), ge.href = t, e === ge.href);
59
58
  }
60
- function En(e) {
59
+ function Bn(e) {
61
60
  return Object.keys(e).length === 0;
62
61
  }
63
62
  function Nt(e, ...t) {
@@ -69,7 +68,7 @@ function Nt(e, ...t) {
69
68
  const n = e.subscribe(...t);
70
69
  return n.unsubscribe ? () => n.unsubscribe() : n;
71
70
  }
72
- function _n(e, t, n) {
71
+ function Hn(e, t, n) {
73
72
  e.$$.on_destroy.push(Nt(t, n));
74
73
  }
75
74
  function pe(e, t, n, r) {
@@ -79,7 +78,7 @@ function pe(e, t, n, r) {
79
78
  }
80
79
  }
81
80
  function Rt(e, t, n, r) {
82
- return e[1] && r ? vn(n.ctx.slice(), e[1](r(t))) : n.ctx;
81
+ return e[1] && r ? Cn(n.ctx.slice(), e[1](r(t))) : n.ctx;
83
82
  }
84
83
  function be(e, t, n, r) {
85
84
  if (e[2] && r) {
@@ -114,14 +113,14 @@ function ve(e) {
114
113
  function B(e, t) {
115
114
  e.appendChild(t);
116
115
  }
117
- function xn(e, t, n) {
118
- const r = kn(e);
116
+ function zt(e, t, n) {
117
+ const r = Ln(e);
119
118
  if (!r.getElementById(t)) {
120
- const i = C("style");
121
- i.id = t, i.textContent = n, Tn(r, i);
119
+ const i = H("style");
120
+ i.id = t, i.textContent = n, Mn(r, i);
122
121
  }
123
122
  }
124
- function kn(e) {
123
+ function Ln(e) {
125
124
  if (!e)
126
125
  return document;
127
126
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -131,49 +130,45 @@ function kn(e) {
131
130
  t
132
131
  ) : e.ownerDocument;
133
132
  }
134
- function Tn(e, t) {
133
+ function Mn(e, t) {
135
134
  return B(
136
135
  /** @type {Document} */
137
136
  e.head || e,
138
137
  t
139
138
  ), t.sheet;
140
139
  }
141
- function A(e, t, n) {
140
+ function I(e, t, n) {
142
141
  e.insertBefore(t, n || null);
143
142
  }
144
- function T(e) {
143
+ function w(e) {
145
144
  e.parentNode && e.parentNode.removeChild(e);
146
145
  }
147
- function C(e) {
146
+ function H(e) {
148
147
  return document.createElement(e);
149
148
  }
150
- function R(e) {
149
+ function z(e) {
151
150
  return document.createTextNode(e);
152
151
  }
153
- function J() {
154
- return R(" ");
152
+ function $() {
153
+ return z(" ");
155
154
  }
156
155
  function et() {
157
- return R("");
156
+ return z("");
158
157
  }
159
- function wn(e, t, n, r) {
158
+ function Ut(e, t, n, r) {
160
159
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
161
160
  }
162
- function O(e, t, n) {
161
+ function T(e, t, n) {
163
162
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
164
163
  }
165
- function Ee(e, t, n) {
166
- const r = t.toLowerCase();
167
- r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : O(e, t, n);
168
- }
169
- function In(e) {
164
+ function Pn(e) {
170
165
  return Array.from(e.childNodes);
171
166
  }
172
167
  function Y(e, t) {
173
168
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
174
169
  t);
175
170
  }
176
- function An(e) {
171
+ function On(e) {
177
172
  const t = {};
178
173
  return e.childNodes.forEach(
179
174
  /** @param {Element} node */
@@ -186,106 +181,109 @@ let ce;
186
181
  function ue(e) {
187
182
  ce = e;
188
183
  }
189
- function Sn() {
184
+ function Dn() {
190
185
  if (!ce)
191
186
  throw new Error("Function called outside component initialization");
192
187
  return ce;
193
188
  }
194
- function Bn(e) {
195
- Sn().$$.on_mount.push(e);
189
+ function Nn(e) {
190
+ Dn().$$.on_mount.push(e);
196
191
  }
197
- const q = [], Ge = [];
192
+ const Z = [], Fe = [];
198
193
  let K = [];
199
- const ct = [], Cn = /* @__PURE__ */ Promise.resolve();
200
- let $e = !1;
201
- function Ln() {
202
- $e || ($e = !0, Cn.then(L));
194
+ const ct = [], Rn = /* @__PURE__ */ Promise.resolve();
195
+ let Ge = !1;
196
+ function zn() {
197
+ Ge || (Ge = !0, Rn.then(C));
203
198
  }
204
- function je(e) {
199
+ function $e(e) {
205
200
  K.push(e);
206
201
  }
207
- const Oe = /* @__PURE__ */ new Set();
208
- let V = 0;
209
- function L() {
210
- if (V !== 0)
202
+ const Pe = /* @__PURE__ */ new Set();
203
+ let q = 0;
204
+ function C() {
205
+ if (q !== 0)
211
206
  return;
212
207
  const e = ce;
213
208
  do {
214
209
  try {
215
- for (; V < q.length; ) {
216
- const t = q[V];
217
- V++, ue(t), Hn(t.$$);
210
+ for (; q < Z.length; ) {
211
+ const t = Z[q];
212
+ q++, ue(t), Un(t.$$);
218
213
  }
219
214
  } catch (t) {
220
- throw q.length = 0, V = 0, t;
215
+ throw Z.length = 0, q = 0, t;
221
216
  }
222
- for (ue(null), q.length = 0, V = 0; Ge.length; )
223
- Ge.pop()();
217
+ for (ue(null), Z.length = 0, q = 0; Fe.length; )
218
+ Fe.pop()();
224
219
  for (let t = 0; t < K.length; t += 1) {
225
220
  const n = K[t];
226
- Oe.has(n) || (Oe.add(n), n());
221
+ Pe.has(n) || (Pe.add(n), n());
227
222
  }
228
223
  K.length = 0;
229
- } while (q.length);
224
+ } while (Z.length);
230
225
  for (; ct.length; )
231
226
  ct.pop()();
232
- $e = !1, Oe.clear(), ue(e);
227
+ Ge = !1, Pe.clear(), ue(e);
233
228
  }
234
- function Hn(e) {
229
+ function Un(e) {
235
230
  if (e.fragment !== null) {
236
231
  e.update(), re(e.before_update);
237
232
  const t = e.dirty;
238
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(je);
233
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
239
234
  }
240
235
  }
241
- function Mn(e) {
236
+ function Fn(e) {
242
237
  const t = [], n = [];
243
238
  K.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), K = t;
244
239
  }
245
- const xe = /* @__PURE__ */ new Set();
246
- let F;
247
- function Pn() {
248
- F = {
240
+ const _e = /* @__PURE__ */ new Set();
241
+ let G;
242
+ function Ft() {
243
+ G = {
249
244
  r: 0,
250
245
  c: [],
251
- p: F
246
+ p: G
252
247
  // parent group
253
248
  };
254
249
  }
255
- function On() {
256
- F.r || re(F.c), F = F.p;
250
+ function Gt() {
251
+ G.r || re(G.c), G = G.p;
257
252
  }
258
- function D(e, t) {
259
- e && e.i && (xe.delete(e), e.i(t));
253
+ function M(e, t) {
254
+ e && e.i && (_e.delete(e), e.i(t));
260
255
  }
261
- function Z(e, t, n, r) {
256
+ function N(e, t, n, r) {
262
257
  if (e && e.o) {
263
- if (xe.has(e))
258
+ if (_e.has(e))
264
259
  return;
265
- xe.add(e), F.c.push(() => {
266
- xe.delete(e), r && (n && e.d(1), r());
260
+ _e.add(e), G.c.push(() => {
261
+ _e.delete(e), r && (n && e.d(1), r());
267
262
  }), e.o(t);
268
263
  } else
269
264
  r && r();
270
265
  }
271
- function Dn(e, t, n) {
266
+ function Gn(e) {
267
+ e && e.c();
268
+ }
269
+ function $t(e, t, n) {
272
270
  const { fragment: r, after_update: i } = e.$$;
273
- r && r.m(t, n), je(() => {
274
- const a = e.$$.on_mount.map(Ot).filter(Qe);
271
+ r && r.m(t, n), $e(() => {
272
+ const a = e.$$.on_mount.map(Dt).filter(Ye);
275
273
  e.$$.on_destroy ? e.$$.on_destroy.push(...a) : re(a), e.$$.on_mount = [];
276
- }), i.forEach(je);
274
+ }), i.forEach($e);
277
275
  }
278
- function Nn(e, t) {
276
+ function jt(e, t) {
279
277
  const n = e.$$;
280
- n.fragment !== null && (Mn(n.after_update), re(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
278
+ n.fragment !== null && (Fn(n.after_update), re(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
281
279
  }
282
- function Rn(e, t) {
283
- e.$$.dirty[0] === -1 && (q.push(e), Ln(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
280
+ function $n(e, t) {
281
+ e.$$.dirty[0] === -1 && (Z.push(e), zn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
284
282
  }
285
- function zn(e, t, n, r, i, a, s = null, o = [-1]) {
286
- const l = ce;
283
+ function Vt(e, t, n, r, i, a, s = null, o = [-1]) {
284
+ const u = ce;
287
285
  ue(e);
288
- const u = e.$$ = {
286
+ const l = e.$$ = {
289
287
  fragment: null,
290
288
  ctx: [],
291
289
  // state
@@ -299,50 +297,50 @@ function zn(e, t, n, r, i, a, s = null, o = [-1]) {
299
297
  on_disconnect: [],
300
298
  before_update: [],
301
299
  after_update: [],
302
- context: new Map(t.context || (l ? l.$$.context : [])),
300
+ context: new Map(t.context || (u ? u.$$.context : [])),
303
301
  // everything else
304
302
  callbacks: lt(),
305
303
  dirty: o,
306
304
  skip_bound: !1,
307
- root: t.target || l.$$.root
305
+ root: t.target || u.$$.root
308
306
  };
309
- s && s(u.root);
307
+ s && s(l.root);
310
308
  let c = !1;
311
- if (u.ctx = n ? n(e, t.props || {}, (h, d, ...f) => {
309
+ if (l.ctx = n ? n(e, t.props || {}, (h, d, ...f) => {
312
310
  const g = f.length ? f[0] : d;
313
- return u.ctx && i(u.ctx[h], u.ctx[h] = g) && (!u.skip_bound && u.bound[h] && u.bound[h](g), c && Rn(e, h)), d;
314
- }) : [], u.update(), c = !0, re(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
311
+ return l.ctx && i(l.ctx[h], l.ctx[h] = g) && (!l.skip_bound && l.bound[h] && l.bound[h](g), c && $n(e, h)), d;
312
+ }) : [], l.update(), c = !0, re(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
315
313
  if (t.hydrate) {
316
- const h = In(t.target);
317
- u.fragment && u.fragment.l(h), h.forEach(T);
314
+ const h = Pn(t.target);
315
+ l.fragment && l.fragment.l(h), h.forEach(w);
318
316
  } else
319
- u.fragment && u.fragment.c();
320
- t.intro && D(e.$$.fragment), Dn(e, t.target, t.anchor), L();
317
+ l.fragment && l.fragment.c();
318
+ t.intro && M(e.$$.fragment), $t(e, t.target, t.anchor), C();
321
319
  }
322
- ue(l);
320
+ ue(u);
323
321
  }
324
- let zt;
325
- typeof HTMLElement == "function" && (zt = class extends HTMLElement {
322
+ let Wt;
323
+ typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
326
324
  constructor(t, n, r) {
327
325
  super();
328
326
  /** The Svelte component constructor */
329
- S(this, "$$ctor");
327
+ L(this, "$$ctor");
330
328
  /** Slots */
331
- S(this, "$$s");
329
+ L(this, "$$s");
332
330
  /** The Svelte component instance */
333
- S(this, "$$c");
331
+ L(this, "$$c");
334
332
  /** Whether or not the custom element is connected */
335
- S(this, "$$cn", !1);
333
+ L(this, "$$cn", !1);
336
334
  /** Component props data */
337
- S(this, "$$d", {});
335
+ L(this, "$$d", {});
338
336
  /** `true` if currently in the process of reflecting component props back to attributes */
339
- S(this, "$$r", !1);
337
+ L(this, "$$r", !1);
340
338
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
341
- S(this, "$$p_d", {});
339
+ L(this, "$$p_d", {});
342
340
  /** @type {Record<string, Function[]>} Event listeners */
343
- S(this, "$$l", {});
341
+ L(this, "$$l", {});
344
342
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
345
- S(this, "$$l_u", /* @__PURE__ */ new Map());
343
+ L(this, "$$l_u", /* @__PURE__ */ new Map());
346
344
  this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
347
345
  }
348
346
  addEventListener(t, n, r) {
@@ -366,29 +364,29 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
366
364
  let s;
367
365
  return {
368
366
  c: function() {
369
- s = C("slot"), a !== "default" && O(s, "name", a);
367
+ s = H("slot"), a !== "default" && T(s, "name", a);
370
368
  },
371
369
  /**
372
370
  * @param {HTMLElement} target
373
371
  * @param {HTMLElement} [anchor]
374
372
  */
375
- m: function(u, c) {
376
- A(u, s, c);
373
+ m: function(l, c) {
374
+ I(l, s, c);
377
375
  },
378
- d: function(u) {
379
- u && T(s);
376
+ d: function(l) {
377
+ l && w(s);
380
378
  }
381
379
  };
382
380
  };
383
381
  };
384
382
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
385
383
  return;
386
- const n = {}, r = An(this);
384
+ const n = {}, r = On(this);
387
385
  for (const a of this.$$s)
388
386
  a in r && (n[a] = [t(a)]);
389
387
  for (const a of this.attributes) {
390
388
  const s = this.$$g_p(a.name);
391
- s in this.$$d || (this.$$d[s] = ke(s, a.value, this.$$p_d, "toProp"));
389
+ s in this.$$d || (this.$$d[s] = xe(s, a.value, this.$$p_d, "toProp"));
392
390
  }
393
391
  for (const a in this.$$p_d)
394
392
  !(a in this.$$d) && this[a] !== void 0 && (this.$$d[a] = this[a], delete this[a]);
@@ -405,7 +403,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
405
403
  this.$$r = !0;
406
404
  for (const a in this.$$p_d)
407
405
  if (this.$$d[a] = this.$$c.$$.ctx[this.$$c.$$.props[a]], this.$$p_d[a].reflect) {
408
- const s = ke(
406
+ const s = xe(
409
407
  a,
410
408
  this.$$d[a],
411
409
  this.$$p_d,
@@ -429,7 +427,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
429
427
  // and setting attributes through setAttribute etc, this is helpful
430
428
  attributeChangedCallback(t, n, r) {
431
429
  var i;
432
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ke(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
430
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = xe(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
433
431
  }
434
432
  disconnectedCallback() {
435
433
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -442,7 +440,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
442
440
  ) || t;
443
441
  }
444
442
  });
445
- function ke(e, t, n, r) {
443
+ function xe(e, t, n, r) {
446
444
  var a;
447
445
  const i = (a = n[e]) == null ? void 0 : a.type;
448
446
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
@@ -472,8 +470,8 @@ function ke(e, t, n, r) {
472
470
  return t;
473
471
  }
474
472
  }
475
- function Un(e, t, n, r, i, a) {
476
- let s = class extends zt {
473
+ function qt(e, t, n, r, i, a) {
474
+ let s = class extends Wt {
477
475
  constructor() {
478
476
  super(e, n, i), this.$$p_d = t;
479
477
  }
@@ -488,22 +486,22 @@ function Un(e, t, n, r, i, a) {
488
486
  get() {
489
487
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
490
488
  },
491
- set(l) {
492
- var u;
493
- l = ke(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
489
+ set(u) {
490
+ var l;
491
+ u = xe(o, u, t), this.$$d[o] = u, (l = this.$$c) == null || l.$set({ [o]: u });
494
492
  }
495
493
  });
496
494
  }), r.forEach((o) => {
497
495
  Object.defineProperty(s.prototype, o, {
498
496
  get() {
499
- var l;
500
- return (l = this.$$c) == null ? void 0 : l[o];
497
+ var u;
498
+ return (u = this.$$c) == null ? void 0 : u[o];
501
499
  }
502
500
  });
503
501
  }), e.element = /** @type {any} */
504
502
  s, s;
505
503
  }
506
- class Fn {
504
+ class Xt {
507
505
  constructor() {
508
506
  /**
509
507
  * ### PRIVATE API
@@ -512,7 +510,7 @@ class Fn {
512
510
  *
513
511
  * @type {any}
514
512
  */
515
- S(this, "$$");
513
+ L(this, "$$");
516
514
  /**
517
515
  * ### PRIVATE API
518
516
  *
@@ -520,11 +518,11 @@ class Fn {
520
518
  *
521
519
  * @type {any}
522
520
  */
523
- S(this, "$$set");
521
+ L(this, "$$set");
524
522
  }
525
523
  /** @returns {void} */
526
524
  $destroy() {
527
- Nn(this, 1), this.$destroy = P;
525
+ jt(this, 1), this.$destroy = P;
528
526
  }
529
527
  /**
530
528
  * @template {Extract<keyof Events, string>} K
@@ -533,7 +531,7 @@ class Fn {
533
531
  * @returns {() => void}
534
532
  */
535
533
  $on(t, n) {
536
- if (!Qe(n))
534
+ if (!Ye(n))
537
535
  return P;
538
536
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
539
537
  return r.push(n), () => {
@@ -546,19 +544,19 @@ class Fn {
546
544
  * @returns {void}
547
545
  */
548
546
  $set(t) {
549
- this.$$set && !En(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
547
+ this.$$set && !Bn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
550
548
  }
551
549
  }
552
- const Gn = "4";
553
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Gn);
554
- const X = "__WIDGET_GLOBAL_STYLE_CACHE__";
555
- function $n(e, t) {
550
+ const jn = "4";
551
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jn);
552
+ const J = "__WIDGET_GLOBAL_STYLE_CACHE__";
553
+ function Vn(e, t) {
556
554
  if (e) {
557
555
  const n = document.createElement("style");
558
556
  n.innerHTML = t, e.appendChild(n);
559
557
  }
560
558
  }
561
- function jn(e, t) {
559
+ function Wn(e, t) {
562
560
  if (!e || !t)
563
561
  return;
564
562
  const n = new URL(t);
@@ -569,32 +567,32 @@ function jn(e, t) {
569
567
  console.error("There was an error while trying to load client styling from URL", r);
570
568
  });
571
569
  }
572
- function Vn(e, t, n, r = !1) {
570
+ function qn(e, t, n, r = !1) {
573
571
  if (!window.emMessageBus)
574
572
  return;
575
573
  if (!("adoptedStyleSheets" in Document.prototype) || !r)
576
- return n = Wn(e, t), n;
577
- window[X] || (window[X] = {}), n = qn(e, t);
574
+ return n = Xn(e, t), n;
575
+ window[J] || (window[J] = {}), n = Zn(e, t);
578
576
  const a = n.unsubscribe.bind(n), s = () => {
579
- if (window[X][t]) {
580
- const o = window[X][t];
581
- o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[X][t];
577
+ if (window[J][t]) {
578
+ const o = window[J][t];
579
+ o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[J][t];
582
580
  }
583
581
  a();
584
582
  };
585
583
  return n.unsubscribe = s, n;
586
584
  }
587
- function Wn(e, t) {
585
+ function Xn(e, t) {
588
586
  const n = document.createElement("style");
589
587
  return window.emMessageBus.subscribe(t, (r) => {
590
588
  e && (n.innerHTML = r, e.appendChild(n));
591
589
  });
592
590
  }
593
- function qn(e, t) {
591
+ function Zn(e, t) {
594
592
  return window.emMessageBus.subscribe(t, (n) => {
595
593
  if (!e)
596
594
  return;
597
- const r = e.getRootNode(), i = window[X];
595
+ const r = e.getRootNode(), i = window[J];
598
596
  let a = i[t] && i[t].sheet;
599
597
  a ? i[t].refCount = i[t].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(n), i[t] = {
600
598
  sheet: a,
@@ -604,8 +602,127 @@ function qn(e, t) {
604
602
  s.includes(a) || (r.adoptedStyleSheets = [...s, a]);
605
603
  });
606
604
  }
607
- const W = [];
608
- function Xn(e, t) {
605
+ function Jn(e) {
606
+ zt(e, "svelte-1nr7vqj", ".HostContainer.svelte-1nr7vqj{display:block}.UiContainer.svelte-1nr7vqj{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.Hidden.svelte-1nr7vqj{opacity:0;transition:opacity 0.5s ease-in-out}.Visible.svelte-1nr7vqj{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}.Skeleton.svelte-1nr7vqj{animation:svelte-1nr7vqj-skeleton-loading 1s linear infinite alternate}.SkeletonImage.svelte-1nr7vqj{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}@keyframes svelte-1nr7vqj-skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}");
607
+ }
608
+ function ht(e) {
609
+ let t;
610
+ return {
611
+ c() {
612
+ t = H("div"), t.innerHTML = '<div class="SkeletonImage Skeleton svelte-1nr7vqj"></div>', T(t, "class", "UiContainer svelte-1nr7vqj");
613
+ },
614
+ m(n, r) {
615
+ I(n, t, r);
616
+ },
617
+ d(n) {
618
+ n && w(t);
619
+ }
620
+ };
621
+ }
622
+ function Kn(e) {
623
+ let t, n, r, i, a, s, o, u = !/*imgLoaded*/
624
+ e[4] && ht();
625
+ return {
626
+ c() {
627
+ t = H("div"), u && u.c(), n = $(), r = H("img"), ut(r.src, i = /*src*/
628
+ e[0]) || T(r, "src", i), T(
629
+ r,
630
+ "alt",
631
+ /*alt*/
632
+ e[1]
633
+ ), T(
634
+ r,
635
+ "width",
636
+ /*width*/
637
+ e[2]
638
+ ), T(
639
+ r,
640
+ "height",
641
+ /*height*/
642
+ e[3]
643
+ ), T(r, "class", a = "UiContainer " + /*imgLoaded*/
644
+ (e[4] ? "Visible" : "Hidden") + " svelte-1nr7vqj"), T(r, "loading", "lazy"), T(t, "class", "HostContainer hydrated svelte-1nr7vqj");
645
+ },
646
+ m(l, c) {
647
+ I(l, t, c), u && u.m(t, null), B(t, n), B(t, r), s || (o = Ut(
648
+ r,
649
+ "load",
650
+ /*load_handler*/
651
+ e[5]
652
+ ), s = !0);
653
+ },
654
+ p(l, [c]) {
655
+ /*imgLoaded*/
656
+ l[4] ? u && (u.d(1), u = null) : u || (u = ht(), u.c(), u.m(t, n)), c & /*src*/
657
+ 1 && !ut(r.src, i = /*src*/
658
+ l[0]) && T(r, "src", i), c & /*alt*/
659
+ 2 && T(
660
+ r,
661
+ "alt",
662
+ /*alt*/
663
+ l[1]
664
+ ), c & /*width*/
665
+ 4 && T(
666
+ r,
667
+ "width",
668
+ /*width*/
669
+ l[2]
670
+ ), c & /*height*/
671
+ 8 && T(
672
+ r,
673
+ "height",
674
+ /*height*/
675
+ l[3]
676
+ ), c & /*imgLoaded*/
677
+ 16 && a !== (a = "UiContainer " + /*imgLoaded*/
678
+ (l[4] ? "Visible" : "Hidden") + " svelte-1nr7vqj") && T(r, "class", a);
679
+ },
680
+ i: P,
681
+ o: P,
682
+ d(l) {
683
+ l && w(t), u && u.d(), s = !1, o();
684
+ }
685
+ };
686
+ }
687
+ function Yn(e, t, n) {
688
+ let { src: r } = t, { alt: i = void 0 } = t, { width: a = void 0 } = t, { height: s = void 0 } = t, o = !1;
689
+ const u = () => n(4, o = !0);
690
+ return e.$$set = (l) => {
691
+ "src" in l && n(0, r = l.src), "alt" in l && n(1, i = l.alt), "width" in l && n(2, a = l.width), "height" in l && n(3, s = l.height);
692
+ }, [r, i, a, s, o, u];
693
+ }
694
+ class Zt extends Xt {
695
+ constructor(t) {
696
+ super(), Vt(this, t, Yn, Kn, Qe, { src: 0, alt: 1, width: 2, height: 3 }, Jn);
697
+ }
698
+ get src() {
699
+ return this.$$.ctx[0];
700
+ }
701
+ set src(t) {
702
+ this.$$set({ src: t }), C();
703
+ }
704
+ get alt() {
705
+ return this.$$.ctx[1];
706
+ }
707
+ set alt(t) {
708
+ this.$$set({ alt: t }), C();
709
+ }
710
+ get width() {
711
+ return this.$$.ctx[2];
712
+ }
713
+ set width(t) {
714
+ this.$$set({ width: t }), C();
715
+ }
716
+ get height() {
717
+ return this.$$.ctx[3];
718
+ }
719
+ set height(t) {
720
+ this.$$set({ height: t }), C();
721
+ }
722
+ }
723
+ qt(Zt, { src: {}, alt: {}, width: {}, height: {} }, [], [], !0);
724
+ const X = [];
725
+ function Qn(e, t) {
609
726
  return {
610
727
  subscribe: Ce(e, t).subscribe
611
728
  };
@@ -614,24 +731,24 @@ function Ce(e, t = P) {
614
731
  let n;
615
732
  const r = /* @__PURE__ */ new Set();
616
733
  function i(o) {
617
- if (Dt(e, o) && (e = o, n)) {
618
- const l = !W.length;
619
- for (const u of r)
620
- u[1](), W.push(u, e);
621
- if (l) {
622
- for (let u = 0; u < W.length; u += 2)
623
- W[u][0](W[u + 1]);
624
- W.length = 0;
734
+ if (Qe(e, o) && (e = o, n)) {
735
+ const u = !X.length;
736
+ for (const l of r)
737
+ l[1](), X.push(l, e);
738
+ if (u) {
739
+ for (let l = 0; l < X.length; l += 2)
740
+ X[l][0](X[l + 1]);
741
+ X.length = 0;
625
742
  }
626
743
  }
627
744
  }
628
745
  function a(o) {
629
746
  i(o(e));
630
747
  }
631
- function s(o, l = P) {
632
- const u = [o, l];
633
- return r.add(u), r.size === 1 && (n = t(i, a) || P), o(e), () => {
634
- r.delete(u), r.size === 0 && n && (n(), n = null);
748
+ function s(o, u = P) {
749
+ const l = [o, u];
750
+ return r.add(l), r.size === 1 && (n = t(i, a) || P), o(e), () => {
751
+ r.delete(l), r.size === 0 && n && (n(), n = null);
635
752
  };
636
753
  }
637
754
  return { set: i, update: a, subscribe: s };
@@ -641,96 +758,96 @@ function ie(e, t, n) {
641
758
  if (!i.every(Boolean))
642
759
  throw new Error("derived() expects stores as input, got a falsy value");
643
760
  const a = t.length < 2;
644
- return Xn(n, (s, o) => {
645
- let l = !1;
646
- const u = [];
761
+ return Qn(n, (s, o) => {
762
+ let u = !1;
763
+ const l = [];
647
764
  let c = 0, h = P;
648
765
  const d = () => {
649
766
  if (c)
650
767
  return;
651
768
  h();
652
- const g = t(r ? u[0] : u, s, o);
653
- a ? s(g) : h = Qe(g) ? g : P;
769
+ const g = t(r ? l[0] : l, s, o);
770
+ a ? s(g) : h = Ye(g) ? g : P;
654
771
  }, f = i.map(
655
772
  (g, k) => Nt(
656
773
  g,
657
774
  (E) => {
658
- u[k] = E, c &= ~(1 << k), l && d();
775
+ l[k] = E, c &= ~(1 << k), u && d();
659
776
  },
660
777
  () => {
661
778
  c |= 1 << k;
662
779
  }
663
780
  )
664
781
  );
665
- return l = !0, d(), function() {
666
- re(f), h(), l = !1;
782
+ return u = !0, d(), function() {
783
+ re(f), h(), u = !1;
667
784
  };
668
785
  });
669
786
  }
670
- function Zn(e) {
787
+ function er(e) {
671
788
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
672
789
  }
673
- var Jn = function(t) {
674
- return Kn(t) && !Yn(t);
790
+ var tr = function(t) {
791
+ return nr(t) && !rr(t);
675
792
  };
676
- function Kn(e) {
793
+ function nr(e) {
677
794
  return !!e && typeof e == "object";
678
795
  }
679
- function Yn(e) {
796
+ function rr(e) {
680
797
  var t = Object.prototype.toString.call(e);
681
- return t === "[object RegExp]" || t === "[object Date]" || tr(e);
798
+ return t === "[object RegExp]" || t === "[object Date]" || sr(e);
682
799
  }
683
- var Qn = typeof Symbol == "function" && Symbol.for, er = Qn ? Symbol.for("react.element") : 60103;
684
- function tr(e) {
685
- return e.$$typeof === er;
800
+ var ir = typeof Symbol == "function" && Symbol.for, ar = ir ? Symbol.for("react.element") : 60103;
801
+ function sr(e) {
802
+ return e.$$typeof === ar;
686
803
  }
687
- function nr(e) {
804
+ function or(e) {
688
805
  return Array.isArray(e) ? [] : {};
689
806
  }
690
807
  function he(e, t) {
691
- return t.clone !== !1 && t.isMergeableObject(e) ? Q(nr(e), e, t) : e;
808
+ return t.clone !== !1 && t.isMergeableObject(e) ? Q(or(e), e, t) : e;
692
809
  }
693
- function rr(e, t, n) {
810
+ function lr(e, t, n) {
694
811
  return e.concat(t).map(function(r) {
695
812
  return he(r, n);
696
813
  });
697
814
  }
698
- function ir(e, t) {
815
+ function ur(e, t) {
699
816
  if (!t.customMerge)
700
817
  return Q;
701
818
  var n = t.customMerge(e);
702
819
  return typeof n == "function" ? n : Q;
703
820
  }
704
- function ar(e) {
821
+ function cr(e) {
705
822
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
706
823
  return Object.propertyIsEnumerable.call(e, t);
707
824
  }) : [];
708
825
  }
709
- function ht(e) {
710
- return Object.keys(e).concat(ar(e));
826
+ function dt(e) {
827
+ return Object.keys(e).concat(cr(e));
711
828
  }
712
- function Ut(e, t) {
829
+ function Jt(e, t) {
713
830
  try {
714
831
  return t in e;
715
832
  } catch (n) {
716
833
  return !1;
717
834
  }
718
835
  }
719
- function sr(e, t) {
720
- return Ut(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
836
+ function hr(e, t) {
837
+ return Jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
721
838
  }
722
- function or(e, t, n) {
839
+ function dr(e, t, n) {
723
840
  var r = {};
724
- return n.isMergeableObject(e) && ht(e).forEach(function(i) {
841
+ return n.isMergeableObject(e) && dt(e).forEach(function(i) {
725
842
  r[i] = he(e[i], n);
726
- }), ht(t).forEach(function(i) {
727
- sr(e, i) || (Ut(e, i) && n.isMergeableObject(t[i]) ? r[i] = ir(i, n)(e[i], t[i], n) : r[i] = he(t[i], n));
843
+ }), dt(t).forEach(function(i) {
844
+ hr(e, i) || (Jt(e, i) && n.isMergeableObject(t[i]) ? r[i] = ur(i, n)(e[i], t[i], n) : r[i] = he(t[i], n));
728
845
  }), r;
729
846
  }
730
847
  function Q(e, t, n) {
731
- n = n || {}, n.arrayMerge = n.arrayMerge || rr, n.isMergeableObject = n.isMergeableObject || Jn, n.cloneUnlessOtherwiseSpecified = he;
848
+ n = n || {}, n.arrayMerge = n.arrayMerge || lr, n.isMergeableObject = n.isMergeableObject || tr, n.cloneUnlessOtherwiseSpecified = he;
732
849
  var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
733
- return a ? r ? n.arrayMerge(e, t, n) : or(e, t, n) : he(t, n);
850
+ return a ? r ? n.arrayMerge(e, t, n) : dr(e, t, n) : he(t, n);
734
851
  }
735
852
  Q.all = function(t, n) {
736
853
  if (!Array.isArray(t))
@@ -739,36 +856,36 @@ Q.all = function(t, n) {
739
856
  return Q(r, i, n);
740
857
  }, {});
741
858
  };
742
- var lr = Q, ur = lr;
743
- const cr = /* @__PURE__ */ Zn(ur);
744
- var Ve = function(e, t) {
745
- return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
859
+ var mr = Q, fr = mr;
860
+ const gr = /* @__PURE__ */ er(fr);
861
+ var je = function(e, t) {
862
+ return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
746
863
  n.__proto__ = r;
747
864
  } || function(n, r) {
748
865
  for (var i in r)
749
866
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
750
- }, Ve(e, t);
867
+ }, je(e, t);
751
868
  };
752
- function Le(e, t) {
869
+ function Be(e, t) {
753
870
  if (typeof t != "function" && t !== null)
754
871
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
755
- Ve(e, t);
872
+ je(e, t);
756
873
  function n() {
757
874
  this.constructor = e;
758
875
  }
759
876
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
760
877
  }
761
- var H = function() {
762
- return H = Object.assign || function(t) {
878
+ var O = function() {
879
+ return O = Object.assign || function(t) {
763
880
  for (var n, r = 1, i = arguments.length; r < i; r++) {
764
881
  n = arguments[r];
765
882
  for (var a in n)
766
883
  Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
767
884
  }
768
885
  return t;
769
- }, H.apply(this, arguments);
886
+ }, O.apply(this, arguments);
770
887
  };
771
- function hr(e, t) {
888
+ function pr(e, t) {
772
889
  var n = {};
773
890
  for (var r in e)
774
891
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -777,43 +894,43 @@ function hr(e, t) {
777
894
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
778
895
  return n;
779
896
  }
780
- function De(e, t, n) {
897
+ function Oe(e, t, n) {
781
898
  if (n || arguments.length === 2)
782
899
  for (var r = 0, i = t.length, a; r < i; r++)
783
900
  (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
784
901
  return e.concat(a || Array.prototype.slice.call(t));
785
902
  }
786
- function Ne(e, t) {
787
- var n = t && t.cache ? t.cache : yr, r = t && t.serializer ? t.serializer : pr, i = t && t.strategy ? t.strategy : fr;
903
+ function De(e, t) {
904
+ var n = t && t.cache ? t.cache : kr, r = t && t.serializer ? t.serializer : _r, i = t && t.strategy ? t.strategy : vr;
788
905
  return i(e, {
789
906
  cache: n,
790
907
  serializer: r
791
908
  });
792
909
  }
793
- function dr(e) {
910
+ function br(e) {
794
911
  return e == null || typeof e == "number" || typeof e == "boolean";
795
912
  }
796
- function mr(e, t, n, r) {
797
- var i = dr(r) ? r : n(r), a = t.get(i);
913
+ function yr(e, t, n, r) {
914
+ var i = br(r) ? r : n(r), a = t.get(i);
798
915
  return typeof a == "undefined" && (a = e.call(this, r), t.set(i, a)), a;
799
916
  }
800
- function Ft(e, t, n) {
917
+ function Kt(e, t, n) {
801
918
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
802
919
  return typeof a == "undefined" && (a = e.apply(this, r), t.set(i, a)), a;
803
920
  }
804
- function Gt(e, t, n, r, i) {
921
+ function Yt(e, t, n, r, i) {
805
922
  return n.bind(t, e, r, i);
806
923
  }
807
- function fr(e, t) {
808
- var n = e.length === 1 ? mr : Ft;
809
- return Gt(e, this, n, t.cache.create(), t.serializer);
924
+ function vr(e, t) {
925
+ var n = e.length === 1 ? yr : Kt;
926
+ return Yt(e, this, n, t.cache.create(), t.serializer);
810
927
  }
811
- function gr(e, t) {
812
- return Gt(e, this, Ft, t.cache.create(), t.serializer);
928
+ function Er(e, t) {
929
+ return Yt(e, this, Kt, t.cache.create(), t.serializer);
813
930
  }
814
- var pr = function() {
931
+ var _r = function() {
815
932
  return JSON.stringify(arguments);
816
- }, br = (
933
+ }, xr = (
817
934
  /** @class */
818
935
  function() {
819
936
  function e() {
@@ -825,21 +942,21 @@ var pr = function() {
825
942
  this.cache[t] = n;
826
943
  }, e;
827
944
  }()
828
- ), yr = {
945
+ ), kr = {
829
946
  create: function() {
830
- return new br();
947
+ return new xr();
831
948
  }
832
- }, Re = {
833
- variadic: gr
834
- }, Ie = function() {
835
- return Ie = Object.assign || function(t) {
949
+ }, Ne = {
950
+ variadic: Er
951
+ }, we = function() {
952
+ return we = Object.assign || function(t) {
836
953
  for (var n, r = 1, i = arguments.length; r < i; r++) {
837
954
  n = arguments[r];
838
955
  for (var a in n)
839
956
  Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
840
957
  }
841
958
  return t;
842
- }, Ie.apply(this, arguments);
959
+ }, we.apply(this, arguments);
843
960
  };
844
961
  var p;
845
962
  (function(e) {
@@ -853,43 +970,43 @@ var ee;
853
970
  (function(e) {
854
971
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
855
972
  })(ee || (ee = {}));
856
- function dt(e) {
973
+ function mt(e) {
857
974
  return e.type === _.literal;
858
975
  }
859
- function vr(e) {
976
+ function Tr(e) {
860
977
  return e.type === _.argument;
861
978
  }
862
- function $t(e) {
979
+ function Qt(e) {
863
980
  return e.type === _.number;
864
981
  }
865
- function jt(e) {
982
+ function en(e) {
866
983
  return e.type === _.date;
867
984
  }
868
- function Vt(e) {
985
+ function tn(e) {
869
986
  return e.type === _.time;
870
987
  }
871
- function Wt(e) {
988
+ function nn(e) {
872
989
  return e.type === _.select;
873
990
  }
874
- function qt(e) {
991
+ function rn(e) {
875
992
  return e.type === _.plural;
876
993
  }
877
- function Er(e) {
994
+ function wr(e) {
878
995
  return e.type === _.pound;
879
996
  }
880
- function Xt(e) {
997
+ function an(e) {
881
998
  return e.type === _.tag;
882
999
  }
883
- function Zt(e) {
1000
+ function sn(e) {
884
1001
  return !!(e && typeof e == "object" && e.type === ee.number);
885
1002
  }
886
- function We(e) {
1003
+ function Ve(e) {
887
1004
  return !!(e && typeof e == "object" && e.type === ee.dateTime);
888
1005
  }
889
- var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, _r = /(?:[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;
890
- function xr(e) {
1006
+ var on = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ir = /(?:[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;
1007
+ function Ar(e) {
891
1008
  var t = {};
892
- return e.replace(_r, function(n) {
1009
+ return e.replace(Ir, function(n) {
893
1010
  var r = n.length;
894
1011
  switch (n[0]) {
895
1012
  case "G":
@@ -988,36 +1105,36 @@ var x = function() {
988
1105
  return t;
989
1106
  }, x.apply(this, arguments);
990
1107
  };
991
- var kr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
992
- function Tr(e) {
1108
+ var Sr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1109
+ function Cr(e) {
993
1110
  if (e.length === 0)
994
1111
  throw new Error("Number skeleton cannot be empty");
995
- for (var t = e.split(kr).filter(function(d) {
1112
+ for (var t = e.split(Sr).filter(function(d) {
996
1113
  return d.length > 0;
997
1114
  }), n = [], r = 0, i = t; r < i.length; r++) {
998
1115
  var a = i[r], s = a.split("/");
999
1116
  if (s.length === 0)
1000
1117
  throw new Error("Invalid number skeleton");
1001
- for (var o = s[0], l = s.slice(1), u = 0, c = l; u < c.length; u++) {
1002
- var h = c[u];
1118
+ for (var o = s[0], u = s.slice(1), l = 0, c = u; l < c.length; l++) {
1119
+ var h = c[l];
1003
1120
  if (h.length === 0)
1004
1121
  throw new Error("Invalid number skeleton");
1005
1122
  }
1006
- n.push({ stem: o, options: l });
1123
+ n.push({ stem: o, options: u });
1007
1124
  }
1008
1125
  return n;
1009
1126
  }
1010
- function wr(e) {
1127
+ function Br(e) {
1011
1128
  return e.replace(/^(.*?)-/, "");
1012
1129
  }
1013
- var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kt = /^(@+)?(\+|#+)?[rs]?$/g, Ir = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
1014
- function ft(e) {
1130
+ var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ln = /^(@+)?(\+|#+)?[rs]?$/g, Hr = /(\*)(0+)|(#+)(0+)|(0+)/g, un = /^(0+)$/;
1131
+ function gt(e) {
1015
1132
  var t = {};
1016
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Kt, function(n, r, i) {
1133
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ln, function(n, r, i) {
1017
1134
  return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
1018
1135
  }), t;
1019
1136
  }
1020
- function Qt(e) {
1137
+ function cn(e) {
1021
1138
  switch (e) {
1022
1139
  case "sign-auto":
1023
1140
  return {
@@ -1057,7 +1174,7 @@ function Qt(e) {
1057
1174
  };
1058
1175
  }
1059
1176
  }
1060
- function Ar(e) {
1177
+ function Lr(e) {
1061
1178
  var t;
1062
1179
  if (e[0] === "E" && e[1] === "E" ? (t = {
1063
1180
  notation: "engineering"
@@ -1065,17 +1182,17 @@ function Ar(e) {
1065
1182
  notation: "scientific"
1066
1183
  }, e = e.slice(1)), t) {
1067
1184
  var n = e.slice(0, 2);
1068
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yt.test(e))
1185
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !un.test(e))
1069
1186
  throw new Error("Malformed concise eng/scientific notation");
1070
1187
  t.minimumIntegerDigits = e.length;
1071
1188
  }
1072
1189
  return t;
1073
1190
  }
1074
- function gt(e) {
1075
- var t = {}, n = Qt(e);
1191
+ function pt(e) {
1192
+ var t = {}, n = cn(e);
1076
1193
  return n || t;
1077
1194
  }
1078
- function Sr(e) {
1195
+ function Mr(e) {
1079
1196
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
1080
1197
  var i = r[n];
1081
1198
  switch (i.stem) {
@@ -1099,7 +1216,7 @@ function Sr(e) {
1099
1216
  continue;
1100
1217
  case "measure-unit":
1101
1218
  case "unit":
1102
- t.style = "unit", t.unit = wr(i.options[0]);
1219
+ t.style = "unit", t.unit = Br(i.options[0]);
1103
1220
  continue;
1104
1221
  case "compact-short":
1105
1222
  case "K":
@@ -1110,13 +1227,13 @@ function Sr(e) {
1110
1227
  t.notation = "compact", t.compactDisplay = "long";
1111
1228
  continue;
1112
1229
  case "scientific":
1113
- t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1114
- return x(x({}, l), gt(u));
1230
+ t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
1231
+ return x(x({}, u), pt(l));
1115
1232
  }, {}));
1116
1233
  continue;
1117
1234
  case "engineering":
1118
- t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1119
- return x(x({}, l), gt(u));
1235
+ t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
1236
+ return x(x({}, u), pt(l));
1120
1237
  }, {}));
1121
1238
  continue;
1122
1239
  case "notation-simple":
@@ -1161,8 +1278,8 @@ function Sr(e) {
1161
1278
  case "integer-width":
1162
1279
  if (i.options.length > 1)
1163
1280
  throw new RangeError("integer-width stems only accept a single optional option");
1164
- i.options[0].replace(Ir, function(l, u, c, h, d, f) {
1165
- if (u)
1281
+ i.options[0].replace(Hr, function(u, l, c, h, d, f) {
1282
+ if (l)
1166
1283
  t.minimumIntegerDigits = c.length;
1167
1284
  else {
1168
1285
  if (h && d)
@@ -1174,32 +1291,32 @@ function Sr(e) {
1174
1291
  });
1175
1292
  continue;
1176
1293
  }
1177
- if (Yt.test(i.stem)) {
1294
+ if (un.test(i.stem)) {
1178
1295
  t.minimumIntegerDigits = i.stem.length;
1179
1296
  continue;
1180
1297
  }
1181
- if (mt.test(i.stem)) {
1298
+ if (ft.test(i.stem)) {
1182
1299
  if (i.options.length > 1)
1183
1300
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1184
- i.stem.replace(mt, function(l, u, c, h, d, f) {
1185
- return c === "*" ? t.minimumFractionDigits = u.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && f ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + f.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1301
+ i.stem.replace(ft, function(u, l, c, h, d, f) {
1302
+ return c === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && f ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + f.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1186
1303
  });
1187
1304
  var a = i.options[0];
1188
- a === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = x(x({}, t), ft(a)));
1305
+ a === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = x(x({}, t), gt(a)));
1189
1306
  continue;
1190
1307
  }
1191
- if (Kt.test(i.stem)) {
1192
- t = x(x({}, t), ft(i.stem));
1308
+ if (ln.test(i.stem)) {
1309
+ t = x(x({}, t), gt(i.stem));
1193
1310
  continue;
1194
1311
  }
1195
- var s = Qt(i.stem);
1312
+ var s = cn(i.stem);
1196
1313
  s && (t = x(x({}, t), s));
1197
- var o = Ar(i.stem);
1314
+ var o = Lr(i.stem);
1198
1315
  o && (t = x(x({}, t), o));
1199
1316
  }
1200
1317
  return t;
1201
1318
  }
1202
- var _e = {
1319
+ var Ee = {
1203
1320
  "001": [
1204
1321
  "H",
1205
1322
  "h"
@@ -2614,23 +2731,23 @@ var _e = {
2614
2731
  "h"
2615
2732
  ]
2616
2733
  };
2617
- function Br(e, t) {
2734
+ function Pr(e, t) {
2618
2735
  for (var n = "", r = 0; r < e.length; r++) {
2619
2736
  var i = e.charAt(r);
2620
2737
  if (i === "j") {
2621
2738
  for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2622
2739
  a++, r++;
2623
- var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), l = "a", u = Cr(t);
2624
- for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
2625
- n += l;
2740
+ var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), u = "a", l = Or(t);
2741
+ for ((l == "H" || l == "k") && (o = 0); o-- > 0; )
2742
+ n += u;
2626
2743
  for (; s-- > 0; )
2627
- n = u + n;
2744
+ n = l + n;
2628
2745
  } else
2629
2746
  i === "J" ? n += "H" : n += i;
2630
2747
  }
2631
2748
  return n;
2632
2749
  }
2633
- function Cr(e) {
2750
+ function Or(e) {
2634
2751
  var t = e.hourCycle;
2635
2752
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2636
2753
  e.hourCycles && // @ts-ignore
@@ -2649,23 +2766,23 @@ function Cr(e) {
2649
2766
  }
2650
2767
  var n = e.language, r;
2651
2768
  n !== "root" && (r = e.maximize().region);
2652
- var i = _e[r || ""] || _e[n || ""] || _e["".concat(n, "-001")] || _e["001"];
2769
+ var i = Ee[r || ""] || Ee[n || ""] || Ee["".concat(n, "-001")] || Ee["001"];
2653
2770
  return i[0];
2654
2771
  }
2655
- var ze, Lr = new RegExp("^".concat(Jt.source, "*")), Hr = new RegExp("".concat(Jt.source, "*$"));
2772
+ var Re, Dr = new RegExp("^".concat(on.source, "*")), Nr = new RegExp("".concat(on.source, "*$"));
2656
2773
  function y(e, t) {
2657
2774
  return { start: e, end: t };
2658
2775
  }
2659
- var Mr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pr = !!String.fromCodePoint, Or = !!Object.fromEntries, Dr = !!String.prototype.codePointAt, Nr = !!String.prototype.trimStart, Rr = !!String.prototype.trimEnd, zr = !!Number.isSafeInteger, Ur = zr ? Number.isSafeInteger : function(e) {
2776
+ var Rr = !!String.prototype.startsWith && "_a".startsWith("a", 1), zr = !!String.fromCodePoint, Ur = !!Object.fromEntries, Fr = !!String.prototype.codePointAt, Gr = !!String.prototype.trimStart, $r = !!String.prototype.trimEnd, jr = !!Number.isSafeInteger, Vr = jr ? Number.isSafeInteger : function(e) {
2660
2777
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2661
- }, qe = !0;
2778
+ }, We = !0;
2662
2779
  try {
2663
- var Fr = tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2664
- qe = ((ze = Fr.exec("a")) === null || ze === void 0 ? void 0 : ze[0]) === "a";
2780
+ var Wr = dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2781
+ We = ((Re = Wr.exec("a")) === null || Re === void 0 ? void 0 : Re[0]) === "a";
2665
2782
  } catch (e) {
2666
- qe = !1;
2783
+ We = !1;
2667
2784
  }
2668
- var pt = Mr ? (
2785
+ var bt = Rr ? (
2669
2786
  // Native
2670
2787
  function(t, n, r) {
2671
2788
  return t.startsWith(n, r);
@@ -2675,7 +2792,7 @@ var pt = Mr ? (
2675
2792
  function(t, n, r) {
2676
2793
  return t.slice(r, r + n.length) === n;
2677
2794
  }
2678
- ), Xe = Pr ? String.fromCodePoint : (
2795
+ ), qe = zr ? String.fromCodePoint : (
2679
2796
  // IE11
2680
2797
  function() {
2681
2798
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2687,9 +2804,9 @@ var pt = Mr ? (
2687
2804
  }
2688
2805
  return r;
2689
2806
  }
2690
- ), bt = (
2807
+ ), yt = (
2691
2808
  // native
2692
- Or ? Object.fromEntries : (
2809
+ Ur ? Object.fromEntries : (
2693
2810
  // Ponyfill
2694
2811
  function(t) {
2695
2812
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
@@ -2699,7 +2816,7 @@ var pt = Mr ? (
2699
2816
  return n;
2700
2817
  }
2701
2818
  )
2702
- ), en = Dr ? (
2819
+ ), hn = Fr ? (
2703
2820
  // Native
2704
2821
  function(t, n) {
2705
2822
  return t.codePointAt(n);
@@ -2713,7 +2830,7 @@ var pt = Mr ? (
2713
2830
  return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2714
2831
  }
2715
2832
  }
2716
- ), Gr = Nr ? (
2833
+ ), qr = Gr ? (
2717
2834
  // Native
2718
2835
  function(t) {
2719
2836
  return t.trimStart();
@@ -2721,9 +2838,9 @@ var pt = Mr ? (
2721
2838
  ) : (
2722
2839
  // Ponyfill
2723
2840
  function(t) {
2724
- return t.replace(Lr, "");
2841
+ return t.replace(Dr, "");
2725
2842
  }
2726
- ), $r = Rr ? (
2843
+ ), Xr = $r ? (
2727
2844
  // Native
2728
2845
  function(t) {
2729
2846
  return t.trimEnd();
@@ -2731,32 +2848,32 @@ var pt = Mr ? (
2731
2848
  ) : (
2732
2849
  // Ponyfill
2733
2850
  function(t) {
2734
- return t.replace(Hr, "");
2851
+ return t.replace(Nr, "");
2735
2852
  }
2736
2853
  );
2737
- function tn(e, t) {
2854
+ function dn(e, t) {
2738
2855
  return new RegExp(e, t);
2739
2856
  }
2740
- var Ze;
2741
- if (qe) {
2742
- var yt = tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2743
- Ze = function(t, n) {
2857
+ var Xe;
2858
+ if (We) {
2859
+ var vt = dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2860
+ Xe = function(t, n) {
2744
2861
  var r;
2745
- yt.lastIndex = n;
2746
- var i = yt.exec(t);
2862
+ vt.lastIndex = n;
2863
+ var i = vt.exec(t);
2747
2864
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2748
2865
  };
2749
2866
  } else
2750
- Ze = function(t, n) {
2867
+ Xe = function(t, n) {
2751
2868
  for (var r = []; ; ) {
2752
- var i = en(t, n);
2753
- if (i === void 0 || nn(i) || qr(i))
2869
+ var i = hn(t, n);
2870
+ if (i === void 0 || mn(i) || Yr(i))
2754
2871
  break;
2755
2872
  r.push(i), n += i >= 65536 ? 2 : 1;
2756
2873
  }
2757
- return Xe.apply(void 0, r);
2874
+ return qe.apply(void 0, r);
2758
2875
  };
2759
- var jr = (
2876
+ var Zr = (
2760
2877
  /** @class */
2761
2878
  function() {
2762
2879
  function e(t, n) {
@@ -2787,7 +2904,7 @@ var jr = (
2787
2904
  if (r)
2788
2905
  break;
2789
2906
  return this.error(p.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
2790
- } else if (a === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
2907
+ } else if (a === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
2791
2908
  var s = this.parseTag(t, n);
2792
2909
  if (s.err)
2793
2910
  return s;
@@ -2820,10 +2937,10 @@ var jr = (
2820
2937
  return a;
2821
2938
  var s = a.val, o = this.clonePosition();
2822
2939
  if (this.bumpIf("</")) {
2823
- if (this.isEOF() || !Je(this.char()))
2940
+ if (this.isEOF() || !Ze(this.char()))
2824
2941
  return this.error(p.INVALID_TAG, y(o, this.clonePosition()));
2825
- var l = this.clonePosition(), u = this.parseTagName();
2826
- return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2942
+ var u = this.clonePosition(), l = this.parseTagName();
2943
+ return i !== l ? this.error(p.UNMATCHED_CLOSING_TAG, y(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2827
2944
  val: {
2828
2945
  type: _.tag,
2829
2946
  value: i,
@@ -2838,7 +2955,7 @@ var jr = (
2838
2955
  return this.error(p.INVALID_TAG, y(r, this.clonePosition()));
2839
2956
  }, e.prototype.parseTagName = function() {
2840
2957
  var t = this.offset();
2841
- for (this.bump(); !this.isEOF() && Wr(this.char()); )
2958
+ for (this.bump(); !this.isEOF() && Kr(this.char()); )
2842
2959
  this.bump();
2843
2960
  return this.message.slice(t, this.offset());
2844
2961
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2860,14 +2977,14 @@ var jr = (
2860
2977
  }
2861
2978
  break;
2862
2979
  }
2863
- var l = y(r, this.clonePosition());
2980
+ var u = y(r, this.clonePosition());
2864
2981
  return {
2865
- val: { type: _.literal, value: i, location: l },
2982
+ val: { type: _.literal, value: i, location: u },
2866
2983
  err: null
2867
2984
  };
2868
2985
  }, e.prototype.tryParseLeftAngleBracket = function() {
2869
2986
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2870
- !Vr(this.peek() || 0)) ? (this.bump(), "<") : null;
2987
+ !Jr(this.peek() || 0)) ? (this.bump(), "<") : null;
2871
2988
  }, e.prototype.tryParseQuote = function(t) {
2872
2989
  if (this.isEOF() || this.char() !== 39)
2873
2990
  return null;
@@ -2901,12 +3018,12 @@ var jr = (
2901
3018
  n.push(r);
2902
3019
  this.bump();
2903
3020
  }
2904
- return Xe.apply(void 0, n);
3021
+ return qe.apply(void 0, n);
2905
3022
  }, e.prototype.tryParseUnquoted = function(t, n) {
2906
3023
  if (this.isEOF())
2907
3024
  return null;
2908
3025
  var r = this.char();
2909
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Xe(r));
3026
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), qe(r));
2910
3027
  }, e.prototype.parseArgument = function(t, n) {
2911
3028
  var r = this.clonePosition();
2912
3029
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2935,39 +3052,39 @@ var jr = (
2935
3052
  return this.error(p.MALFORMED_ARGUMENT, y(r, this.clonePosition()));
2936
3053
  }
2937
3054
  }, e.prototype.parseIdentifierIfPossible = function() {
2938
- var t = this.clonePosition(), n = this.offset(), r = Ze(this.message, n), i = n + r.length;
3055
+ var t = this.clonePosition(), n = this.offset(), r = Xe(this.message, n), i = n + r.length;
2939
3056
  this.bumpTo(i);
2940
3057
  var a = this.clonePosition(), s = y(t, a);
2941
3058
  return { value: r, location: s };
2942
3059
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2943
- var a, s = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3060
+ var a, s = this.clonePosition(), o = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2944
3061
  switch (o) {
2945
3062
  case "":
2946
- return this.error(p.EXPECT_ARGUMENT_TYPE, y(s, l));
3063
+ return this.error(p.EXPECT_ARGUMENT_TYPE, y(s, u));
2947
3064
  case "number":
2948
3065
  case "date":
2949
3066
  case "time": {
2950
3067
  this.bumpSpace();
2951
- var u = null;
3068
+ var l = null;
2952
3069
  if (this.bumpIf(",")) {
2953
3070
  this.bumpSpace();
2954
3071
  var c = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
2955
3072
  if (h.err)
2956
3073
  return h;
2957
- var d = $r(h.val);
3074
+ var d = Xr(h.val);
2958
3075
  if (d.length === 0)
2959
3076
  return this.error(p.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
2960
3077
  var f = y(c, this.clonePosition());
2961
- u = { style: d, styleLocation: f };
3078
+ l = { style: d, styleLocation: f };
2962
3079
  }
2963
3080
  var g = this.tryParseArgumentClose(i);
2964
3081
  if (g.err)
2965
3082
  return g;
2966
3083
  var k = y(i, this.clonePosition());
2967
- if (u && pt(u == null ? void 0 : u.style, "::", 0)) {
2968
- var E = Gr(u.style.slice(2));
3084
+ if (l && bt(l == null ? void 0 : l.style, "::", 0)) {
3085
+ var E = qr(l.style.slice(2));
2969
3086
  if (o === "number") {
2970
- var h = this.parseNumberSkeletonFromString(E, u.styleLocation);
3087
+ var h = this.parseNumberSkeletonFromString(E, l.styleLocation);
2971
3088
  return h.err ? h : {
2972
3089
  val: { type: _.number, value: r, location: k, style: h.val },
2973
3090
  err: null
@@ -2976,12 +3093,12 @@ var jr = (
2976
3093
  if (E.length === 0)
2977
3094
  return this.error(p.EXPECT_DATE_TIME_SKELETON, k);
2978
3095
  var m = E;
2979
- this.locale && (m = Br(E, this.locale));
3096
+ this.locale && (m = Pr(E, this.locale));
2980
3097
  var d = {
2981
3098
  type: ee.dateTime,
2982
3099
  pattern: m,
2983
- location: u.styleLocation,
2984
- parsedOptions: this.shouldParseSkeletons ? xr(m) : {}
3100
+ location: l.styleLocation,
3101
+ parsedOptions: this.shouldParseSkeletons ? Ar(m) : {}
2985
3102
  }, v = o === "date" ? _.date : _.time;
2986
3103
  return {
2987
3104
  val: { type: v, value: r, location: k, style: d },
@@ -2994,7 +3111,7 @@ var jr = (
2994
3111
  type: o === "number" ? _.number : o === "date" ? _.date : _.time,
2995
3112
  value: r,
2996
3113
  location: k,
2997
- style: (a = u == null ? void 0 : u.style) !== null && a !== void 0 ? a : null
3114
+ style: (a = l == null ? void 0 : l.style) !== null && a !== void 0 ? a : null
2998
3115
  },
2999
3116
  err: null
3000
3117
  };
@@ -3002,23 +3119,23 @@ var jr = (
3002
3119
  case "plural":
3003
3120
  case "selectordinal":
3004
3121
  case "select": {
3005
- var w = this.clonePosition();
3122
+ var A = this.clonePosition();
3006
3123
  if (this.bumpSpace(), !this.bumpIf(","))
3007
- return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, y(w, Ie({}, w)));
3124
+ return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, y(A, we({}, A)));
3008
3125
  this.bumpSpace();
3009
- var U = this.parseIdentifierIfPossible(), M = 0;
3010
- if (o !== "select" && U.value === "offset") {
3126
+ var F = this.parseIdentifierIfPossible(), D = 0;
3127
+ if (o !== "select" && F.value === "offset") {
3011
3128
  if (!this.bumpIf(":"))
3012
3129
  return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
3013
3130
  this.bumpSpace();
3014
3131
  var h = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3015
3132
  if (h.err)
3016
3133
  return h;
3017
- this.bumpSpace(), U = this.parseIdentifierIfPossible(), M = h.val;
3134
+ this.bumpSpace(), F = this.parseIdentifierIfPossible(), D = h.val;
3018
3135
  }
3019
- var $ = this.tryParsePluralOrSelectOptions(t, o, n, U);
3020
- if ($.err)
3021
- return $;
3136
+ var V = this.tryParsePluralOrSelectOptions(t, o, n, F);
3137
+ if (V.err)
3138
+ return V;
3022
3139
  var g = this.tryParseArgumentClose(i);
3023
3140
  if (g.err)
3024
3141
  return g;
@@ -3027,7 +3144,7 @@ var jr = (
3027
3144
  val: {
3028
3145
  type: _.select,
3029
3146
  value: r,
3030
- options: bt($.val),
3147
+ options: yt(V.val),
3031
3148
  location: se
3032
3149
  },
3033
3150
  err: null
@@ -3035,8 +3152,8 @@ var jr = (
3035
3152
  val: {
3036
3153
  type: _.plural,
3037
3154
  value: r,
3038
- options: bt($.val),
3039
- offset: M,
3155
+ options: yt(V.val),
3156
+ offset: D,
3040
3157
  pluralType: o === "plural" ? "cardinal" : "ordinal",
3041
3158
  location: se
3042
3159
  },
@@ -3044,7 +3161,7 @@ var jr = (
3044
3161
  };
3045
3162
  }
3046
3163
  default:
3047
- return this.error(p.INVALID_ARGUMENT_TYPE, y(s, l));
3164
+ return this.error(p.INVALID_ARGUMENT_TYPE, y(s, u));
3048
3165
  }
3049
3166
  }, e.prototype.tryParseArgumentClose = function(t) {
3050
3167
  return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3086,7 +3203,7 @@ var jr = (
3086
3203
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
3087
3204
  var r = [];
3088
3205
  try {
3089
- r = Tr(t);
3206
+ r = Cr(t);
3090
3207
  } catch (i) {
3091
3208
  return this.error(p.INVALID_NUMBER_SKELETON, n);
3092
3209
  }
@@ -3095,25 +3212,25 @@ var jr = (
3095
3212
  type: ee.number,
3096
3213
  tokens: r,
3097
3214
  location: n,
3098
- parsedOptions: this.shouldParseSkeletons ? Sr(r) : {}
3215
+ parsedOptions: this.shouldParseSkeletons ? Mr(r) : {}
3099
3216
  },
3100
3217
  err: null
3101
3218
  };
3102
3219
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
3103
- for (var a, s = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, c = i.location; ; ) {
3104
- if (u.length === 0) {
3220
+ for (var a, s = !1, o = [], u = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
3221
+ if (l.length === 0) {
3105
3222
  var h = this.clonePosition();
3106
3223
  if (n !== "select" && this.bumpIf("=")) {
3107
3224
  var d = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
3108
3225
  if (d.err)
3109
3226
  return d;
3110
- c = y(h, this.clonePosition()), u = this.message.slice(h.offset, this.offset());
3227
+ c = y(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
3111
3228
  } else
3112
3229
  break;
3113
3230
  }
3114
- if (l.has(u))
3231
+ if (u.has(l))
3115
3232
  return this.error(n === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3116
- u === "other" && (s = !0), this.bumpSpace();
3233
+ l === "other" && (s = !0), this.bumpSpace();
3117
3234
  var f = this.clonePosition();
3118
3235
  if (!this.bumpIf("{"))
3119
3236
  return this.error(n === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
@@ -3124,12 +3241,12 @@ var jr = (
3124
3241
  if (k.err)
3125
3242
  return k;
3126
3243
  o.push([
3127
- u,
3244
+ l,
3128
3245
  {
3129
3246
  value: g.val,
3130
3247
  location: y(f, this.clonePosition())
3131
3248
  }
3132
- ]), l.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, c = a.location;
3249
+ ]), u.add(l), this.bumpSpace(), a = this.parseIdentifierIfPossible(), l = a.value, c = a.location;
3133
3250
  }
3134
3251
  return o.length === 0 ? this.error(n === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3135
3252
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
@@ -3142,8 +3259,8 @@ var jr = (
3142
3259
  else
3143
3260
  break;
3144
3261
  }
3145
- var l = y(i, this.clonePosition());
3146
- return a ? (s *= r, Ur(s) ? { val: s, err: null } : this.error(n, l)) : this.error(t, l);
3262
+ var u = y(i, this.clonePosition());
3263
+ return a ? (s *= r, Vr(s) ? { val: s, err: null } : this.error(n, u)) : this.error(t, u);
3147
3264
  }, e.prototype.offset = function() {
3148
3265
  return this.position.offset;
3149
3266
  }, e.prototype.isEOF = function() {
@@ -3158,7 +3275,7 @@ var jr = (
3158
3275
  var t = this.position.offset;
3159
3276
  if (t >= this.message.length)
3160
3277
  throw Error("out of bound");
3161
- var n = en(this.message, t);
3278
+ var n = hn(this.message, t);
3162
3279
  if (n === void 0)
3163
3280
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3164
3281
  return n;
@@ -3177,7 +3294,7 @@ var jr = (
3177
3294
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3178
3295
  }
3179
3296
  }, e.prototype.bumpIf = function(t) {
3180
- if (pt(this.message, t, this.offset())) {
3297
+ if (bt(this.message, t, this.offset())) {
3181
3298
  for (var n = 0; n < t.length; n++)
3182
3299
  this.bump();
3183
3300
  return !0;
@@ -3199,7 +3316,7 @@ var jr = (
3199
3316
  break;
3200
3317
  }
3201
3318
  }, e.prototype.bumpSpace = function() {
3202
- for (; !this.isEOF() && nn(this.char()); )
3319
+ for (; !this.isEOF() && mn(this.char()); )
3203
3320
  this.bump();
3204
3321
  }, e.prototype.peek = function() {
3205
3322
  if (this.isEOF())
@@ -3209,38 +3326,38 @@ var jr = (
3209
3326
  }, e;
3210
3327
  }()
3211
3328
  );
3212
- function Je(e) {
3329
+ function Ze(e) {
3213
3330
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3214
3331
  }
3215
- function Vr(e) {
3216
- return Je(e) || e === 47;
3332
+ function Jr(e) {
3333
+ return Ze(e) || e === 47;
3217
3334
  }
3218
- function Wr(e) {
3335
+ function Kr(e) {
3219
3336
  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;
3220
3337
  }
3221
- function nn(e) {
3338
+ function mn(e) {
3222
3339
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3223
3340
  }
3224
- function qr(e) {
3341
+ function Yr(e) {
3225
3342
  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;
3226
3343
  }
3227
- function Ke(e) {
3344
+ function Je(e) {
3228
3345
  e.forEach(function(t) {
3229
- if (delete t.location, Wt(t) || qt(t))
3346
+ if (delete t.location, nn(t) || rn(t))
3230
3347
  for (var n in t.options)
3231
- delete t.options[n].location, Ke(t.options[n].value);
3348
+ delete t.options[n].location, Je(t.options[n].value);
3232
3349
  else
3233
- $t(t) && Zt(t.style) || (jt(t) || Vt(t)) && We(t.style) ? delete t.style.location : Xt(t) && Ke(t.children);
3350
+ Qt(t) && sn(t.style) || (en(t) || tn(t)) && Ve(t.style) ? delete t.style.location : an(t) && Je(t.children);
3234
3351
  });
3235
3352
  }
3236
- function Xr(e, t) {
3237
- t === void 0 && (t = {}), t = Ie({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3238
- var n = new jr(e, t).parse();
3353
+ function Qr(e, t) {
3354
+ t === void 0 && (t = {}), t = we({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3355
+ var n = new Zr(e, t).parse();
3239
3356
  if (n.err) {
3240
3357
  var r = SyntaxError(p[n.err.kind]);
3241
3358
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3242
3359
  }
3243
- return t != null && t.captureLocation || Ke(n.val), n.val;
3360
+ return t != null && t.captureLocation || Je(n.val), n.val;
3244
3361
  }
3245
3362
  var te;
3246
3363
  (function(e) {
@@ -3249,7 +3366,7 @@ var te;
3249
3366
  var He = (
3250
3367
  /** @class */
3251
3368
  function(e) {
3252
- Le(t, e);
3369
+ Be(t, e);
3253
3370
  function t(n, r, i) {
3254
3371
  var a = e.call(this, n) || this;
3255
3372
  return a.code = r, a.originalMessage = i, a;
@@ -3258,155 +3375,155 @@ var He = (
3258
3375
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3259
3376
  }, t;
3260
3377
  }(Error)
3261
- ), vt = (
3378
+ ), Et = (
3262
3379
  /** @class */
3263
3380
  function(e) {
3264
- Le(t, e);
3381
+ Be(t, e);
3265
3382
  function t(n, r, i, a) {
3266
3383
  return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, a) || this;
3267
3384
  }
3268
3385
  return t;
3269
3386
  }(He)
3270
- ), Zr = (
3387
+ ), ei = (
3271
3388
  /** @class */
3272
3389
  function(e) {
3273
- Le(t, e);
3390
+ Be(t, e);
3274
3391
  function t(n, r, i) {
3275
3392
  return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), te.INVALID_VALUE, i) || this;
3276
3393
  }
3277
3394
  return t;
3278
3395
  }(He)
3279
- ), Jr = (
3396
+ ), ti = (
3280
3397
  /** @class */
3281
3398
  function(e) {
3282
- Le(t, e);
3399
+ Be(t, e);
3283
3400
  function t(n, r) {
3284
3401
  return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), te.MISSING_VALUE, r) || this;
3285
3402
  }
3286
3403
  return t;
3287
3404
  }(He)
3288
- ), I;
3405
+ ), S;
3289
3406
  (function(e) {
3290
3407
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3291
- })(I || (I = {}));
3292
- function Kr(e) {
3408
+ })(S || (S = {}));
3409
+ function ni(e) {
3293
3410
  return e.length < 2 ? e : e.reduce(function(t, n) {
3294
3411
  var r = t[t.length - 1];
3295
- return !r || r.type !== I.literal || n.type !== I.literal ? t.push(n) : r.value += n.value, t;
3412
+ return !r || r.type !== S.literal || n.type !== S.literal ? t.push(n) : r.value += n.value, t;
3296
3413
  }, []);
3297
3414
  }
3298
- function Yr(e) {
3415
+ function ri(e) {
3299
3416
  return typeof e == "function";
3300
3417
  }
3301
- function Te(e, t, n, r, i, a, s) {
3302
- if (e.length === 1 && dt(e[0]))
3418
+ function ke(e, t, n, r, i, a, s) {
3419
+ if (e.length === 1 && mt(e[0]))
3303
3420
  return [
3304
3421
  {
3305
- type: I.literal,
3422
+ type: S.literal,
3306
3423
  value: e[0].value
3307
3424
  }
3308
3425
  ];
3309
- for (var o = [], l = 0, u = e; l < u.length; l++) {
3310
- var c = u[l];
3311
- if (dt(c)) {
3426
+ for (var o = [], u = 0, l = e; u < l.length; u++) {
3427
+ var c = l[u];
3428
+ if (mt(c)) {
3312
3429
  o.push({
3313
- type: I.literal,
3430
+ type: S.literal,
3314
3431
  value: c.value
3315
3432
  });
3316
3433
  continue;
3317
3434
  }
3318
- if (Er(c)) {
3435
+ if (wr(c)) {
3319
3436
  typeof a == "number" && o.push({
3320
- type: I.literal,
3437
+ type: S.literal,
3321
3438
  value: n.getNumberFormat(t).format(a)
3322
3439
  });
3323
3440
  continue;
3324
3441
  }
3325
3442
  var h = c.value;
3326
3443
  if (!(i && h in i))
3327
- throw new Jr(h, s);
3444
+ throw new ti(h, s);
3328
3445
  var d = i[h];
3329
- if (vr(c)) {
3446
+ if (Tr(c)) {
3330
3447
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), o.push({
3331
- type: typeof d == "string" ? I.literal : I.object,
3448
+ type: typeof d == "string" ? S.literal : S.object,
3332
3449
  value: d
3333
3450
  });
3334
3451
  continue;
3335
3452
  }
3336
- if (jt(c)) {
3337
- var f = typeof c.style == "string" ? r.date[c.style] : We(c.style) ? c.style.parsedOptions : void 0;
3453
+ if (en(c)) {
3454
+ var f = typeof c.style == "string" ? r.date[c.style] : Ve(c.style) ? c.style.parsedOptions : void 0;
3338
3455
  o.push({
3339
- type: I.literal,
3456
+ type: S.literal,
3340
3457
  value: n.getDateTimeFormat(t, f).format(d)
3341
3458
  });
3342
3459
  continue;
3343
3460
  }
3344
- if (Vt(c)) {
3345
- var f = typeof c.style == "string" ? r.time[c.style] : We(c.style) ? c.style.parsedOptions : r.time.medium;
3461
+ if (tn(c)) {
3462
+ var f = typeof c.style == "string" ? r.time[c.style] : Ve(c.style) ? c.style.parsedOptions : r.time.medium;
3346
3463
  o.push({
3347
- type: I.literal,
3464
+ type: S.literal,
3348
3465
  value: n.getDateTimeFormat(t, f).format(d)
3349
3466
  });
3350
3467
  continue;
3351
3468
  }
3352
- if ($t(c)) {
3353
- var f = typeof c.style == "string" ? r.number[c.style] : Zt(c.style) ? c.style.parsedOptions : void 0;
3469
+ if (Qt(c)) {
3470
+ var f = typeof c.style == "string" ? r.number[c.style] : sn(c.style) ? c.style.parsedOptions : void 0;
3354
3471
  f && f.scale && (d = d * (f.scale || 1)), o.push({
3355
- type: I.literal,
3472
+ type: S.literal,
3356
3473
  value: n.getNumberFormat(t, f).format(d)
3357
3474
  });
3358
3475
  continue;
3359
3476
  }
3360
- if (Xt(c)) {
3477
+ if (an(c)) {
3361
3478
  var g = c.children, k = c.value, E = i[k];
3362
- if (!Yr(E))
3363
- throw new Zr(k, "function", s);
3364
- var m = Te(g, t, n, r, i, a), v = E(m.map(function(M) {
3365
- return M.value;
3479
+ if (!ri(E))
3480
+ throw new ei(k, "function", s);
3481
+ var m = ke(g, t, n, r, i, a), v = E(m.map(function(D) {
3482
+ return D.value;
3366
3483
  }));
3367
- Array.isArray(v) || (v = [v]), o.push.apply(o, v.map(function(M) {
3484
+ Array.isArray(v) || (v = [v]), o.push.apply(o, v.map(function(D) {
3368
3485
  return {
3369
- type: typeof M == "string" ? I.literal : I.object,
3370
- value: M
3486
+ type: typeof D == "string" ? S.literal : S.object,
3487
+ value: D
3371
3488
  };
3372
3489
  }));
3373
3490
  }
3374
- if (Wt(c)) {
3375
- var w = c.options[d] || c.options.other;
3376
- if (!w)
3377
- throw new vt(c.value, d, Object.keys(c.options), s);
3378
- o.push.apply(o, Te(w.value, t, n, r, i));
3491
+ if (nn(c)) {
3492
+ var A = c.options[d] || c.options.other;
3493
+ if (!A)
3494
+ throw new Et(c.value, d, Object.keys(c.options), s);
3495
+ o.push.apply(o, ke(A.value, t, n, r, i));
3379
3496
  continue;
3380
3497
  }
3381
- if (qt(c)) {
3382
- var w = c.options["=".concat(d)];
3383
- if (!w) {
3498
+ if (rn(c)) {
3499
+ var A = c.options["=".concat(d)];
3500
+ if (!A) {
3384
3501
  if (!Intl.PluralRules)
3385
3502
  throw new He(`Intl.PluralRules is not available in this environment.
3386
3503
  Try polyfilling it using "@formatjs/intl-pluralrules"
3387
3504
  `, te.MISSING_INTL_API, s);
3388
- var U = n.getPluralRules(t, { type: c.pluralType }).select(d - (c.offset || 0));
3389
- w = c.options[U] || c.options.other;
3505
+ var F = n.getPluralRules(t, { type: c.pluralType }).select(d - (c.offset || 0));
3506
+ A = c.options[F] || c.options.other;
3390
3507
  }
3391
- if (!w)
3392
- throw new vt(c.value, d, Object.keys(c.options), s);
3393
- o.push.apply(o, Te(w.value, t, n, r, i, d - (c.offset || 0)));
3508
+ if (!A)
3509
+ throw new Et(c.value, d, Object.keys(c.options), s);
3510
+ o.push.apply(o, ke(A.value, t, n, r, i, d - (c.offset || 0)));
3394
3511
  continue;
3395
3512
  }
3396
3513
  }
3397
- return Kr(o);
3514
+ return ni(o);
3398
3515
  }
3399
- function Qr(e, t) {
3400
- return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3401
- return n[r] = H(H({}, e[r]), t[r] || {}), n;
3516
+ function ii(e, t) {
3517
+ return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3518
+ return n[r] = O(O({}, e[r]), t[r] || {}), n;
3402
3519
  }, {})) : e;
3403
3520
  }
3404
- function ei(e, t) {
3521
+ function ai(e, t) {
3405
3522
  return t ? Object.keys(e).reduce(function(n, r) {
3406
- return n[r] = Qr(e[r], t[r]), n;
3407
- }, H({}, e)) : e;
3523
+ return n[r] = ii(e[r], t[r]), n;
3524
+ }, O({}, e)) : e;
3408
3525
  }
3409
- function Ue(e) {
3526
+ function ze(e) {
3410
3527
  return {
3411
3528
  create: function() {
3412
3529
  return {
@@ -3420,39 +3537,39 @@ function Ue(e) {
3420
3537
  }
3421
3538
  };
3422
3539
  }
3423
- function ti(e) {
3540
+ function si(e) {
3424
3541
  return e === void 0 && (e = {
3425
3542
  number: {},
3426
3543
  dateTime: {},
3427
3544
  pluralRules: {}
3428
3545
  }), {
3429
- getNumberFormat: Ne(function() {
3546
+ getNumberFormat: De(function() {
3430
3547
  for (var t, n = [], r = 0; r < arguments.length; r++)
3431
3548
  n[r] = arguments[r];
3432
- return new ((t = Intl.NumberFormat).bind.apply(t, De([void 0], n, !1)))();
3549
+ return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], n, !1)))();
3433
3550
  }, {
3434
- cache: Ue(e.number),
3435
- strategy: Re.variadic
3551
+ cache: ze(e.number),
3552
+ strategy: Ne.variadic
3436
3553
  }),
3437
- getDateTimeFormat: Ne(function() {
3554
+ getDateTimeFormat: De(function() {
3438
3555
  for (var t, n = [], r = 0; r < arguments.length; r++)
3439
3556
  n[r] = arguments[r];
3440
- return new ((t = Intl.DateTimeFormat).bind.apply(t, De([void 0], n, !1)))();
3557
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], n, !1)))();
3441
3558
  }, {
3442
- cache: Ue(e.dateTime),
3443
- strategy: Re.variadic
3559
+ cache: ze(e.dateTime),
3560
+ strategy: Ne.variadic
3444
3561
  }),
3445
- getPluralRules: Ne(function() {
3562
+ getPluralRules: De(function() {
3446
3563
  for (var t, n = [], r = 0; r < arguments.length; r++)
3447
3564
  n[r] = arguments[r];
3448
- return new ((t = Intl.PluralRules).bind.apply(t, De([void 0], n, !1)))();
3565
+ return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], n, !1)))();
3449
3566
  }, {
3450
- cache: Ue(e.pluralRules),
3451
- strategy: Re.variadic
3567
+ cache: ze(e.pluralRules),
3568
+ strategy: Ne.variadic
3452
3569
  })
3453
3570
  };
3454
3571
  }
3455
- var rn = (
3572
+ var fn = (
3456
3573
  /** @class */
3457
3574
  function() {
3458
3575
  function e(t, n, r, i) {
@@ -3462,20 +3579,20 @@ var rn = (
3462
3579
  number: {},
3463
3580
  dateTime: {},
3464
3581
  pluralRules: {}
3465
- }, this.format = function(l) {
3466
- var u = a.formatToParts(l);
3467
- if (u.length === 1)
3468
- return u[0].value;
3469
- var c = u.reduce(function(h, d) {
3470
- return !h.length || d.type !== I.literal || typeof h[h.length - 1] != "string" ? h.push(d.value) : h[h.length - 1] += d.value, h;
3582
+ }, this.format = function(u) {
3583
+ var l = a.formatToParts(u);
3584
+ if (l.length === 1)
3585
+ return l[0].value;
3586
+ var c = l.reduce(function(h, d) {
3587
+ return !h.length || d.type !== S.literal || typeof h[h.length - 1] != "string" ? h.push(d.value) : h[h.length - 1] += d.value, h;
3471
3588
  }, []);
3472
3589
  return c.length <= 1 ? c[0] || "" : c;
3473
- }, this.formatToParts = function(l) {
3474
- return Te(a.ast, a.locales, a.formatters, a.formats, l, void 0, a.message);
3590
+ }, this.formatToParts = function(u) {
3591
+ return ke(a.ast, a.locales, a.formatters, a.formats, u, void 0, a.message);
3475
3592
  }, this.resolvedOptions = function() {
3476
- var l;
3593
+ var u;
3477
3594
  return {
3478
- locale: ((l = a.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3595
+ locale: ((u = a.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3479
3596
  };
3480
3597
  }, this.getAst = function() {
3481
3598
  return a.ast;
@@ -3484,13 +3601,13 @@ var rn = (
3484
3601
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3485
3602
  var s = i || {};
3486
3603
  s.formatters;
3487
- var o = hr(s, ["formatters"]);
3488
- this.ast = e.__parse(t, H(H({}, o), { locale: this.resolvedLocale }));
3604
+ var o = pr(s, ["formatters"]);
3605
+ this.ast = e.__parse(t, O(O({}, o), { locale: this.resolvedLocale }));
3489
3606
  } else
3490
3607
  this.ast = t;
3491
3608
  if (!Array.isArray(this.ast))
3492
3609
  throw new TypeError("A message must be provided as a String or AST.");
3493
- this.formats = ei(e.formats, r), this.formatters = i && i.formatters || ti(this.formatterCache);
3610
+ this.formats = ai(e.formats, r), this.formatters = i && i.formatters || si(this.formatterCache);
3494
3611
  }
3495
3612
  return Object.defineProperty(e, "defaultLocale", {
3496
3613
  get: function() {
@@ -3503,7 +3620,7 @@ var rn = (
3503
3620
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3504
3621
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3505
3622
  }
3506
- }, e.__parse = Xr, e.formats = {
3623
+ }, e.__parse = Qr, e.formats = {
3507
3624
  number: {
3508
3625
  integer: {
3509
3626
  maximumFractionDigits: 0
@@ -3564,7 +3681,7 @@ var rn = (
3564
3681
  }, e;
3565
3682
  }()
3566
3683
  );
3567
- function ni(e, t) {
3684
+ function oi(e, t) {
3568
3685
  if (t == null)
3569
3686
  return;
3570
3687
  if (t in e)
@@ -3585,101 +3702,101 @@ function ni(e, t) {
3585
3702
  r = void 0;
3586
3703
  return r;
3587
3704
  }
3588
- const N = {}, ri = (e, t, n) => n && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = n), n), an = (e, t) => {
3705
+ const R = {}, li = (e, t, n) => n && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = n), n), gn = (e, t) => {
3589
3706
  if (t == null)
3590
3707
  return;
3591
- if (t in N && e in N[t])
3592
- return N[t][e];
3708
+ if (t in R && e in R[t])
3709
+ return R[t][e];
3593
3710
  const n = fe(t);
3594
3711
  for (let r = 0; r < n.length; r++) {
3595
- const i = n[r], a = ai(i, e);
3712
+ const i = n[r], a = ci(i, e);
3596
3713
  if (a)
3597
- return ri(e, t, a);
3714
+ return li(e, t, a);
3598
3715
  }
3599
3716
  };
3600
3717
  let tt;
3601
3718
  const me = Ce({});
3602
- function ii(e) {
3719
+ function ui(e) {
3603
3720
  return tt[e] || null;
3604
3721
  }
3605
- function sn(e) {
3722
+ function pn(e) {
3606
3723
  return e in tt;
3607
3724
  }
3608
- function ai(e, t) {
3609
- if (!sn(e))
3725
+ function ci(e, t) {
3726
+ if (!pn(e))
3610
3727
  return null;
3611
- const n = ii(e);
3612
- return ni(n, t);
3728
+ const n = ui(e);
3729
+ return oi(n, t);
3613
3730
  }
3614
- function si(e) {
3731
+ function hi(e) {
3615
3732
  if (e == null)
3616
3733
  return;
3617
3734
  const t = fe(e);
3618
3735
  for (let n = 0; n < t.length; n++) {
3619
3736
  const r = t[n];
3620
- if (sn(r))
3737
+ if (pn(r))
3621
3738
  return r;
3622
3739
  }
3623
3740
  }
3624
- function on(e, ...t) {
3625
- delete N[e], me.update((n) => (n[e] = cr.all([n[e] || {}, ...t]), n));
3741
+ function bn(e, ...t) {
3742
+ delete R[e], me.update((n) => (n[e] = gr.all([n[e] || {}, ...t]), n));
3626
3743
  }
3627
3744
  ie(
3628
3745
  [me],
3629
3746
  ([e]) => Object.keys(e)
3630
3747
  );
3631
3748
  me.subscribe((e) => tt = e);
3632
- const we = {};
3633
- function oi(e, t) {
3634
- we[e].delete(t), we[e].size === 0 && delete we[e];
3749
+ const Te = {};
3750
+ function di(e, t) {
3751
+ Te[e].delete(t), Te[e].size === 0 && delete Te[e];
3635
3752
  }
3636
- function ln(e) {
3637
- return we[e];
3753
+ function yn(e) {
3754
+ return Te[e];
3638
3755
  }
3639
- function li(e) {
3756
+ function mi(e) {
3640
3757
  return fe(e).map((t) => {
3641
- const n = ln(t);
3758
+ const n = yn(t);
3642
3759
  return [t, n ? [...n] : []];
3643
3760
  }).filter(([, t]) => t.length > 0);
3644
3761
  }
3645
- function Ae(e) {
3762
+ function Ie(e) {
3646
3763
  return e == null ? !1 : fe(e).some(
3647
3764
  (t) => {
3648
3765
  var n;
3649
- return (n = ln(t)) == null ? void 0 : n.size;
3766
+ return (n = yn(t)) == null ? void 0 : n.size;
3650
3767
  }
3651
3768
  );
3652
3769
  }
3653
- function ui(e, t) {
3770
+ function fi(e, t) {
3654
3771
  return Promise.all(
3655
- t.map((r) => (oi(e, r), r().then((i) => i.default || i)))
3656
- ).then((r) => on(e, ...r));
3772
+ t.map((r) => (di(e, r), r().then((i) => i.default || i)))
3773
+ ).then((r) => bn(e, ...r));
3657
3774
  }
3658
3775
  const oe = {};
3659
- function un(e) {
3660
- if (!Ae(e))
3776
+ function vn(e) {
3777
+ if (!Ie(e))
3661
3778
  return e in oe ? oe[e] : Promise.resolve();
3662
- const t = li(e);
3779
+ const t = mi(e);
3663
3780
  return oe[e] = Promise.all(
3664
3781
  t.map(
3665
- ([n, r]) => ui(n, r)
3782
+ ([n, r]) => fi(n, r)
3666
3783
  )
3667
3784
  ).then(() => {
3668
- if (Ae(e))
3669
- return un(e);
3785
+ if (Ie(e))
3786
+ return vn(e);
3670
3787
  delete oe[e];
3671
3788
  }), oe[e];
3672
3789
  }
3673
- var Et = Object.getOwnPropertySymbols, ci = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, di = (e, t) => {
3790
+ var _t = Object.getOwnPropertySymbols, gi = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, bi = (e, t) => {
3674
3791
  var n = {};
3675
3792
  for (var r in e)
3676
- ci.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3677
- if (e != null && Et)
3678
- for (var r of Et(e))
3679
- t.indexOf(r) < 0 && hi.call(e, r) && (n[r] = e[r]);
3793
+ gi.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3794
+ if (e != null && _t)
3795
+ for (var r of _t(e))
3796
+ t.indexOf(r) < 0 && pi.call(e, r) && (n[r] = e[r]);
3680
3797
  return n;
3681
3798
  };
3682
- const mi = {
3799
+ const yi = {
3683
3800
  number: {
3684
3801
  scientific: { notation: "scientific" },
3685
3802
  engineering: { notation: "engineering" },
@@ -3709,102 +3826,102 @@ const mi = {
3709
3826
  }
3710
3827
  }
3711
3828
  };
3712
- function fi({ locale: e, id: t }) {
3829
+ function vi({ locale: e, id: t }) {
3713
3830
  console.warn(
3714
3831
  `[svelte-i18n] The message "${t}" was not found in "${fe(
3715
3832
  e
3716
- ).join('", "')}".${Ae(z()) ? `
3833
+ ).join('", "')}".${Ie(U()) ? `
3717
3834
 
3718
3835
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3719
3836
  );
3720
3837
  }
3721
- const gi = {
3838
+ const Ei = {
3722
3839
  fallbackLocale: null,
3723
3840
  loadingDelay: 200,
3724
- formats: mi,
3841
+ formats: yi,
3725
3842
  warnOnMissingMessages: !0,
3726
3843
  handleMissingMessage: void 0,
3727
3844
  ignoreTag: !0
3728
- }, le = gi;
3845
+ }, le = Ei;
3729
3846
  function ne() {
3730
3847
  return le;
3731
3848
  }
3732
- function pi(e) {
3733
- const t = e, { formats: n } = t, r = di(t, ["formats"]);
3849
+ function _i(e) {
3850
+ const t = e, { formats: n } = t, r = bi(t, ["formats"]);
3734
3851
  let i = e.fallbackLocale;
3735
3852
  if (e.initialLocale)
3736
3853
  try {
3737
- rn.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3854
+ fn.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3738
3855
  } catch (a) {
3739
3856
  console.warn(
3740
3857
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3741
3858
  );
3742
3859
  }
3743
- return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = fi : console.warn(
3860
+ return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = vi : console.warn(
3744
3861
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3745
- )), Object.assign(le, r, { initialLocale: i }), n && ("number" in n && Object.assign(le.formats.number, n.number), "date" in n && Object.assign(le.formats.date, n.date), "time" in n && Object.assign(le.formats.time, n.time)), G.set(i);
3862
+ )), Object.assign(le, r, { initialLocale: i }), n && ("number" in n && Object.assign(le.formats.number, n.number), "date" in n && Object.assign(le.formats.date, n.date), "time" in n && Object.assign(le.formats.time, n.time)), j.set(i);
3746
3863
  }
3747
- const Fe = Ce(!1);
3748
- var bi = Object.defineProperty, yi = Object.defineProperties, vi = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, Ei = Object.prototype.hasOwnProperty, _i = Object.prototype.propertyIsEnumerable, xt = (e, t, n) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, xi = (e, t) => {
3864
+ const Ue = Ce(!1);
3865
+ var xi = Object.defineProperty, ki = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, wi = Object.prototype.hasOwnProperty, Ii = Object.prototype.propertyIsEnumerable, kt = (e, t, n) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ai = (e, t) => {
3749
3866
  for (var n in t || (t = {}))
3750
- Ei.call(t, n) && xt(e, n, t[n]);
3751
- if (_t)
3752
- for (var n of _t(t))
3753
- _i.call(t, n) && xt(e, n, t[n]);
3867
+ wi.call(t, n) && kt(e, n, t[n]);
3868
+ if (xt)
3869
+ for (var n of xt(t))
3870
+ Ii.call(t, n) && kt(e, n, t[n]);
3754
3871
  return e;
3755
- }, ki = (e, t) => yi(e, vi(t));
3756
- let Ye;
3757
- const Se = Ce(null);
3758
- function kt(e) {
3872
+ }, Si = (e, t) => ki(e, Ti(t));
3873
+ let Ke;
3874
+ const Ae = Ce(null);
3875
+ function Tt(e) {
3759
3876
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3760
3877
  }
3761
3878
  function fe(e, t = ne().fallbackLocale) {
3762
- const n = kt(e);
3763
- return t ? [.../* @__PURE__ */ new Set([...n, ...kt(t)])] : n;
3879
+ const n = Tt(e);
3880
+ return t ? [.../* @__PURE__ */ new Set([...n, ...Tt(t)])] : n;
3764
3881
  }
3765
- function z() {
3766
- return Ye != null ? Ye : void 0;
3882
+ function U() {
3883
+ return Ke != null ? Ke : void 0;
3767
3884
  }
3768
- Se.subscribe((e) => {
3769
- Ye = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3885
+ Ae.subscribe((e) => {
3886
+ Ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3770
3887
  });
3771
- const Ti = (e) => {
3772
- if (e && si(e) && Ae(e)) {
3888
+ const Ci = (e) => {
3889
+ if (e && hi(e) && Ie(e)) {
3773
3890
  const { loadingDelay: t } = ne();
3774
3891
  let n;
3775
- return typeof window != "undefined" && z() != null && t ? n = window.setTimeout(
3776
- () => Fe.set(!0),
3892
+ return typeof window != "undefined" && U() != null && t ? n = window.setTimeout(
3893
+ () => Ue.set(!0),
3777
3894
  t
3778
- ) : Fe.set(!0), un(e).then(() => {
3779
- Se.set(e);
3895
+ ) : Ue.set(!0), vn(e).then(() => {
3896
+ Ae.set(e);
3780
3897
  }).finally(() => {
3781
- clearTimeout(n), Fe.set(!1);
3898
+ clearTimeout(n), Ue.set(!1);
3782
3899
  });
3783
3900
  }
3784
- return Se.set(e);
3785
- }, G = ki(xi({}, Se), {
3786
- set: Ti
3787
- }), Me = (e) => {
3901
+ return Ae.set(e);
3902
+ }, j = Si(Ai({}, Ae), {
3903
+ set: Ci
3904
+ }), Le = (e) => {
3788
3905
  const t = /* @__PURE__ */ Object.create(null);
3789
3906
  return (r) => {
3790
3907
  const i = JSON.stringify(r);
3791
3908
  return i in t ? t[i] : t[i] = e(r);
3792
3909
  };
3793
3910
  };
3794
- var wi = Object.defineProperty, Be = Object.getOwnPropertySymbols, cn = Object.prototype.hasOwnProperty, hn = Object.prototype.propertyIsEnumerable, Tt = (e, t, n) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, nt = (e, t) => {
3911
+ var Bi = Object.defineProperty, Se = Object.getOwnPropertySymbols, En = Object.prototype.hasOwnProperty, _n = Object.prototype.propertyIsEnumerable, wt = (e, t, n) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, nt = (e, t) => {
3795
3912
  for (var n in t || (t = {}))
3796
- cn.call(t, n) && Tt(e, n, t[n]);
3797
- if (Be)
3798
- for (var n of Be(t))
3799
- hn.call(t, n) && Tt(e, n, t[n]);
3913
+ En.call(t, n) && wt(e, n, t[n]);
3914
+ if (Se)
3915
+ for (var n of Se(t))
3916
+ _n.call(t, n) && wt(e, n, t[n]);
3800
3917
  return e;
3801
3918
  }, ae = (e, t) => {
3802
3919
  var n = {};
3803
3920
  for (var r in e)
3804
- cn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3805
- if (e != null && Be)
3806
- for (var r of Be(e))
3807
- t.indexOf(r) < 0 && hn.call(e, r) && (n[r] = e[r]);
3921
+ En.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3922
+ if (e != null && Se)
3923
+ for (var r of Se(e))
3924
+ t.indexOf(r) < 0 && _n.call(e, r) && (n[r] = e[r]);
3808
3925
  return n;
3809
3926
  };
3810
3927
  const de = (e, t) => {
@@ -3812,21 +3929,21 @@ const de = (e, t) => {
3812
3929
  if (e in n && t in n[e])
3813
3930
  return n[e][t];
3814
3931
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3815
- }, Ii = Me(
3932
+ }, Hi = Le(
3816
3933
  (e) => {
3817
3934
  var t = e, { locale: n, format: r } = t, i = ae(t, ["locale", "format"]);
3818
3935
  if (n == null)
3819
3936
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3820
3937
  return r && (i = de("number", r)), new Intl.NumberFormat(n, i);
3821
3938
  }
3822
- ), Ai = Me(
3939
+ ), Li = Le(
3823
3940
  (e) => {
3824
3941
  var t = e, { locale: n, format: r } = t, i = ae(t, ["locale", "format"]);
3825
3942
  if (n == null)
3826
3943
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3827
3944
  return r ? i = de("date", r) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(n, i);
3828
3945
  }
3829
- ), Si = Me(
3946
+ ), Mi = Le(
3830
3947
  (e) => {
3831
3948
  var t = e, { locale: n, format: r } = t, i = ae(t, ["locale", "format"]);
3832
3949
  if (n == null)
@@ -3835,48 +3952,48 @@ const de = (e, t) => {
3835
3952
  );
3836
3953
  return r ? i = de("time", r) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(n, i);
3837
3954
  }
3838
- ), Bi = (e = {}) => {
3955
+ ), Pi = (e = {}) => {
3839
3956
  var t = e, {
3840
- locale: n = z()
3957
+ locale: n = U()
3841
3958
  } = t, r = ae(t, [
3842
3959
  "locale"
3843
3960
  ]);
3844
- return Ii(nt({ locale: n }, r));
3845
- }, Ci = (e = {}) => {
3961
+ return Hi(nt({ locale: n }, r));
3962
+ }, Oi = (e = {}) => {
3846
3963
  var t = e, {
3847
- locale: n = z()
3964
+ locale: n = U()
3848
3965
  } = t, r = ae(t, [
3849
3966
  "locale"
3850
3967
  ]);
3851
- return Ai(nt({ locale: n }, r));
3852
- }, Li = (e = {}) => {
3968
+ return Li(nt({ locale: n }, r));
3969
+ }, Di = (e = {}) => {
3853
3970
  var t = e, {
3854
- locale: n = z()
3971
+ locale: n = U()
3855
3972
  } = t, r = ae(t, [
3856
3973
  "locale"
3857
3974
  ]);
3858
- return Si(nt({ locale: n }, r));
3859
- }, Hi = Me(
3975
+ return Mi(nt({ locale: n }, r));
3976
+ }, Ni = Le(
3860
3977
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3861
- (e, t = z()) => new rn(e, t, ne().formats, {
3978
+ (e, t = U()) => new fn(e, t, ne().formats, {
3862
3979
  ignoreTag: ne().ignoreTag
3863
3980
  })
3864
- ), Mi = (e, t = {}) => {
3981
+ ), Ri = (e, t = {}) => {
3865
3982
  var n, r, i, a;
3866
3983
  let s = t;
3867
3984
  typeof e == "object" && (s = e, e = s.id);
3868
3985
  const {
3869
3986
  values: o,
3870
- locale: l = z(),
3871
- default: u
3987
+ locale: u = U(),
3988
+ default: l
3872
3989
  } = s;
3873
- if (l == null)
3990
+ if (u == null)
3874
3991
  throw new Error(
3875
3992
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3876
3993
  );
3877
- let c = an(e, l);
3994
+ let c = gn(e, u);
3878
3995
  if (!c)
3879
- c = (a = (i = (r = (n = ne()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
3996
+ c = (a = (i = (r = (n = ne()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
3880
3997
  else if (typeof c != "string")
3881
3998
  return console.warn(
3882
3999
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -3885,7 +4002,7 @@ const de = (e, t) => {
3885
4002
  return c;
3886
4003
  let h = c;
3887
4004
  try {
3888
- h = Hi(c, l).format(o);
4005
+ h = Ni(c, u).format(o);
3889
4006
  } catch (d) {
3890
4007
  d instanceof Error && console.warn(
3891
4008
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3893,20 +4010,20 @@ const de = (e, t) => {
3893
4010
  );
3894
4011
  }
3895
4012
  return h;
3896
- }, Pi = (e, t) => Li(t).format(e), Oi = (e, t) => Ci(t).format(e), Di = (e, t) => Bi(t).format(e), Ni = (e, t = z()) => an(e, t), Ri = ie([G, me], () => Mi);
3897
- ie([G], () => Pi);
3898
- ie([G], () => Oi);
3899
- ie([G], () => Di);
3900
- ie([G, me], () => Ni);
3901
- function wt(e, t) {
3902
- on(e, t);
3903
- }
3904
- function zi(e) {
3905
- pi({
4013
+ }, zi = (e, t) => Di(t).format(e), Ui = (e, t) => Oi(t).format(e), Fi = (e, t) => Pi(t).format(e), Gi = (e, t = U()) => gn(e, t), $i = ie([j, me], () => Ri);
4014
+ ie([j], () => zi);
4015
+ ie([j], () => Ui);
4016
+ ie([j], () => Fi);
4017
+ ie([j, me], () => Gi);
4018
+ function It(e, t) {
4019
+ bn(e, t);
4020
+ }
4021
+ function ji(e) {
4022
+ _i({
3906
4023
  fallbackLocale: "en"
3907
- }), G.set(e);
4024
+ }), j.set(e);
3908
4025
  }
3909
- const It = {
4026
+ const At = {
3910
4027
  en: {
3911
4028
  VendorMicroserviceCommunicationError: "We apologise, but your payment provider has declined to process due to a microservice communication error. Please try again later.",
3912
4029
  CustomerDocumentIdMissing: "The document ID is missing",
@@ -4322,10 +4439,10 @@ const It = {
4322
4439
  CardTokenIsBlocked: "Kart tokeni bloklanıb"
4323
4440
  }
4324
4441
  };
4325
- function Ui(e) {
4326
- xn(e, "svelte-y815d8", '.WageringFetch{margin:10px}.LoadingText::after{content:"";animation:dots 1.5s steps(4, end) infinite}@keyframes dots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}}.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}');
4442
+ function Vi(e) {
4443
+ zt(e, "svelte-9kch43", '.WageringFetch{margin:10px}.LoadingText::after{content:"";animation:dots 1.5s steps(4, end) infinite}@keyframes dots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}}.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 .HostContainer img{width:300px}');
4327
4444
  }
4328
- const Fi = (e) => ({}), At = (e) => ({}), Gi = (e) => ({}), St = (e) => ({}), $i = (e) => ({}), Bt = (e) => ({}), ji = (e) => ({}), Ct = (e) => ({ class: "CashierErrorIcon" });
4445
+ const Wi = (e) => ({}), St = (e) => ({}), qi = (e) => ({}), Ct = (e) => ({}), Xi = (e) => ({}), Bt = (e) => ({}), Zi = (e) => ({}), Ht = (e) => ({ class: "CashierErrorIcon" });
4329
4446
  function Lt(e) {
4330
4447
  let t, n, r, i, a;
4331
4448
  const s = (
@@ -4336,12 +4453,12 @@ function Lt(e) {
4336
4453
  e,
4337
4454
  /*$$scope*/
4338
4455
  e[15],
4339
- Ct
4340
- ), l = o || Vi(e), u = (
4456
+ Ht
4457
+ ), u = o || Ji(e), l = (
4341
4458
  /*#slots*/
4342
4459
  e[16].title
4343
4460
  ), c = pe(
4344
- u,
4461
+ l,
4345
4462
  e,
4346
4463
  /*$$scope*/
4347
4464
  e[15],
@@ -4354,8 +4471,8 @@ function Lt(e) {
4354
4471
  e,
4355
4472
  /*$$scope*/
4356
4473
  e[15],
4357
- St
4358
- ), f = d || Xi(e), g = (
4474
+ Ct
4475
+ ), f = d || Qi(e), g = (
4359
4476
  /*#slots*/
4360
4477
  e[16].button
4361
4478
  ), k = pe(
@@ -4363,14 +4480,14 @@ function Lt(e) {
4363
4480
  e,
4364
4481
  /*$$scope*/
4365
4482
  e[15],
4366
- At
4367
- ), E = k || Zi(e);
4483
+ St
4484
+ ), E = k || ea(e);
4368
4485
  return {
4369
4486
  c() {
4370
- t = C("div"), l && l.c(), n = J(), c && c.c(), r = J(), f && f.c(), i = J(), E && E.c(), O(t, "class", "CashierErrorContent");
4487
+ t = H("div"), u && u.c(), n = $(), c && c.c(), r = $(), f && f.c(), i = $(), E && E.c(), T(t, "class", "CashierErrorContent");
4371
4488
  },
4372
4489
  m(m, v) {
4373
- A(m, t, v), l && l.m(t, null), B(t, n), c && c.m(t, null), B(t, r), f && f.m(t, null), B(t, i), E && E.m(t, null), a = !0;
4490
+ I(m, t, v), u && u.m(t, null), B(t, n), c && c.m(t, null), B(t, r), f && f.m(t, null), B(t, i), E && E.m(t, null), a = !0;
4374
4491
  },
4375
4492
  p(m, v) {
4376
4493
  o ? o.p && (!a || v & /*$$scope*/
@@ -4385,26 +4502,26 @@ function Lt(e) {
4385
4502
  /*$$scope*/
4386
4503
  m[15],
4387
4504
  v,
4388
- ji
4505
+ Zi
4389
4506
  ) : ve(
4390
4507
  /*$$scope*/
4391
4508
  m[15]
4392
4509
  ),
4393
- Ct
4394
- ) : l && l.p && (!a || v & /*assetsurl*/
4395
- 1) && l.p(m, a ? v : -1), c && c.p && (!a || v & /*$$scope*/
4510
+ Ht
4511
+ ) : u && u.p && (!a || v & /*assetsurl*/
4512
+ 1) && u.p(m, a ? v : -1), c && c.p && (!a || v & /*$$scope*/
4396
4513
  32768) && ye(
4397
4514
  c,
4398
- u,
4515
+ l,
4399
4516
  m,
4400
4517
  /*$$scope*/
4401
4518
  m[15],
4402
4519
  a ? be(
4403
- u,
4520
+ l,
4404
4521
  /*$$scope*/
4405
4522
  m[15],
4406
4523
  v,
4407
- $i
4524
+ Xi
4408
4525
  ) : ve(
4409
4526
  /*$$scope*/
4410
4527
  m[15]
@@ -4422,12 +4539,12 @@ function Lt(e) {
4422
4539
  /*$$scope*/
4423
4540
  m[15],
4424
4541
  v,
4425
- Gi
4542
+ qi
4426
4543
  ) : ve(
4427
4544
  /*$$scope*/
4428
4545
  m[15]
4429
4546
  ),
4430
- St
4547
+ Ct
4431
4548
  ) : f && f.p && (!a || v & /*$_, depositWageringAmount, depositWageringCurrency, errorcode, shownError, errormessage*/
4432
4549
  486) && f.p(m, a ? v : -1), k ? k.p && (!a || v & /*$$scope*/
4433
4550
  32768) && ye(
@@ -4441,73 +4558,95 @@ function Lt(e) {
4441
4558
  /*$$scope*/
4442
4559
  m[15],
4443
4560
  v,
4444
- Fi
4561
+ Wi
4445
4562
  ) : ve(
4446
4563
  /*$$scope*/
4447
4564
  m[15]
4448
4565
  ),
4449
- At
4566
+ St
4450
4567
  ) : E && E.p && (!a || v & /*$_*/
4451
4568
  256) && E.p(m, a ? v : -1);
4452
4569
  },
4453
4570
  i(m) {
4454
- a || (D(l, m), D(c, m), D(f, m), D(E, m), a = !0);
4571
+ a || (M(u, m), M(c, m), M(f, m), M(E, m), a = !0);
4455
4572
  },
4456
4573
  o(m) {
4457
- Z(l, m), Z(c, m), Z(f, m), Z(E, m), a = !1;
4574
+ N(u, m), N(c, m), N(f, m), N(E, m), a = !1;
4458
4575
  },
4459
4576
  d(m) {
4460
- m && T(t), l && l.d(m), c && c.d(m), f && f.d(m), E && E.d(m);
4577
+ m && w(t), u && u.d(m), c && c.d(m), f && f.d(m), E && E.d(m);
4461
4578
  }
4462
4579
  };
4463
4580
  }
4464
- function Ht(e) {
4581
+ function Mt(e) {
4465
4582
  let t, n;
4466
- return {
4583
+ return t = new Zt({
4584
+ props: {
4585
+ src: `${/*assetsurl*/
4586
+ e[0]}/error-general-icon.png`,
4587
+ width: "300px",
4588
+ alt: "error"
4589
+ }
4590
+ }), {
4467
4591
  c() {
4468
- t = C("ui-image"), ut(t.src, n = `${/*assetsurl*/
4469
- e[0]}/error-general-icon.png`) || Ee(t, "src", n), Ee(t, "width", "300px"), Ee(t, "alt", "error");
4592
+ Gn(t.$$.fragment);
4470
4593
  },
4471
4594
  m(r, i) {
4472
- A(r, t, i);
4595
+ $t(t, r, i), n = !0;
4473
4596
  },
4474
4597
  p(r, i) {
4598
+ const a = {};
4475
4599
  i & /*assetsurl*/
4476
- 1 && !ut(t.src, n = `${/*assetsurl*/
4477
- r[0]}/error-general-icon.png`) && Ee(t, "src", n);
4600
+ 1 && (a.src = `${/*assetsurl*/
4601
+ r[0]}/error-general-icon.png`), t.$set(a);
4602
+ },
4603
+ i(r) {
4604
+ n || (M(t.$$.fragment, r), n = !0);
4605
+ },
4606
+ o(r) {
4607
+ N(t.$$.fragment, r), n = !1;
4478
4608
  },
4479
4609
  d(r) {
4480
- r && T(t);
4610
+ jt(t, r);
4481
4611
  }
4482
4612
  };
4483
4613
  }
4484
- function Vi(e) {
4485
- let t, n = (
4614
+ function Ji(e) {
4615
+ let t, n, r = (
4486
4616
  /*assetsurl*/
4487
- e[0] && Ht(e)
4617
+ e[0] && Mt(e)
4488
4618
  );
4489
4619
  return {
4490
4620
  c() {
4491
- n && n.c(), t = et();
4621
+ r && r.c(), t = et();
4492
4622
  },
4493
- m(r, i) {
4494
- n && n.m(r, i), A(r, t, i);
4623
+ m(i, a) {
4624
+ r && r.m(i, a), I(i, t, a), n = !0;
4495
4625
  },
4496
- p(r, i) {
4626
+ p(i, a) {
4497
4627
  /*assetsurl*/
4498
- r[0] ? n ? n.p(r, i) : (n = Ht(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
4628
+ i[0] ? r ? (r.p(i, a), a & /*assetsurl*/
4629
+ 1 && M(r, 1)) : (r = Mt(i), r.c(), M(r, 1), r.m(t.parentNode, t)) : r && (Ft(), N(r, 1, 1, () => {
4630
+ r = null;
4631
+ }), Gt());
4499
4632
  },
4500
- d(r) {
4501
- r && T(t), n && n.d(r);
4633
+ i(i) {
4634
+ n || (M(r), n = !0);
4635
+ },
4636
+ o(i) {
4637
+ N(r), n = !1;
4638
+ },
4639
+ d(i) {
4640
+ i && w(t), r && r.d(i);
4502
4641
  }
4503
4642
  };
4504
4643
  }
4505
- function Mt(e) {
4644
+ function Pt(e) {
4506
4645
  let t;
4507
4646
  function n(a, s) {
4508
4647
  return (
4509
4648
  /*depositWageringAmount*/
4510
- a[5] < 0 ? qi : Wi
4649
+ a[5] < 0 ? Yi : Ki
4511
4650
  );
4512
4651
  }
4513
4652
  let r = n(e), i = r(e);
@@ -4516,53 +4655,53 @@ function Mt(e) {
4516
4655
  i.c(), t = et();
4517
4656
  },
4518
4657
  m(a, s) {
4519
- i.m(a, s), A(a, t, s);
4658
+ i.m(a, s), I(a, t, s);
4520
4659
  },
4521
4660
  p(a, s) {
4522
4661
  r === (r = n(a)) && i ? i.p(a, s) : (i.d(1), i = r(a), i && (i.c(), i.m(t.parentNode, t)));
4523
4662
  },
4524
4663
  d(a) {
4525
- a && T(t), i.d(a);
4664
+ a && w(t), i.d(a);
4526
4665
  }
4527
4666
  };
4528
4667
  }
4529
- function Wi(e) {
4668
+ function Ki(e) {
4530
4669
  let t, n = (
4531
4670
  /*$_*/
4532
4671
  e[8]("DepositWageringLimitText") + ""
4533
4672
  ), r, i, a = (
4534
4673
  /*depositWageringAmount*/
4535
- e[5] > 0 && Pt(e)
4674
+ e[5] > 0 && Ot(e)
4536
4675
  );
4537
4676
  return {
4538
4677
  c() {
4539
- t = C("span"), r = R(n), i = J(), a && a.c(), O(t, "class", "CashierErrorText");
4678
+ t = H("span"), r = z(n), i = $(), a && a.c(), T(t, "class", "CashierErrorText");
4540
4679
  },
4541
4680
  m(s, o) {
4542
- A(s, t, o), B(t, r), B(t, i), a && a.m(t, null);
4681
+ I(s, t, o), B(t, r), B(t, i), a && a.m(t, null);
4543
4682
  },
4544
4683
  p(s, o) {
4545
4684
  o & /*$_*/
4546
4685
  256 && n !== (n = /*$_*/
4547
4686
  s[8]("DepositWageringLimitText") + "") && Y(r, n), /*depositWageringAmount*/
4548
- s[5] > 0 ? a ? a.p(s, o) : (a = Pt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4687
+ s[5] > 0 ? a ? a.p(s, o) : (a = Ot(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4549
4688
  },
4550
4689
  d(s) {
4551
- s && T(t), a && a.d();
4690
+ s && w(t), a && a.d();
4552
4691
  }
4553
4692
  };
4554
4693
  }
4555
- function qi(e) {
4694
+ function Yi(e) {
4556
4695
  let t, n, r = (
4557
4696
  /*$_*/
4558
4697
  e[8]("DepositWageringFetching") + ""
4559
4698
  ), i;
4560
4699
  return {
4561
4700
  c() {
4562
- t = C("div"), n = C("span"), i = R(r), O(n, "class", "CashierErrorText LoadingText"), O(t, "class", "WageringFetch");
4701
+ t = H("div"), n = H("span"), i = z(r), T(n, "class", "CashierErrorText LoadingText"), T(t, "class", "WageringFetch");
4563
4702
  },
4564
4703
  m(a, s) {
4565
- A(a, t, s), B(t, n), B(n, i);
4704
+ I(a, t, s), B(t, n), B(n, i);
4566
4705
  },
4567
4706
  p(a, s) {
4568
4707
  s & /*$_*/
@@ -4570,24 +4709,24 @@ function qi(e) {
4570
4709
  a[8]("DepositWageringFetching") + "") && Y(i, r);
4571
4710
  },
4572
4711
  d(a) {
4573
- a && T(t);
4712
+ a && w(t);
4574
4713
  }
4575
4714
  };
4576
4715
  }
4577
- function Pt(e) {
4716
+ function Ot(e) {
4578
4717
  let t, n, r;
4579
4718
  return {
4580
4719
  c() {
4581
- t = R(
4720
+ t = z(
4582
4721
  /*depositWageringAmount*/
4583
4722
  e[5]
4584
- ), n = J(), r = R(
4723
+ ), n = $(), r = z(
4585
4724
  /*depositWageringCurrency*/
4586
4725
  e[6]
4587
4726
  );
4588
4727
  },
4589
4728
  m(i, a) {
4590
- A(i, t, a), A(i, n, a), A(i, r, a);
4729
+ I(i, t, a), I(i, n, a), I(i, r, a);
4591
4730
  },
4592
4731
  p(i, a) {
4593
4732
  a & /*depositWageringAmount*/
@@ -4603,11 +4742,11 @@ function Pt(e) {
4603
4742
  );
4604
4743
  },
4605
4744
  d(i) {
4606
- i && (T(t), T(n), T(r));
4745
+ i && (w(t), w(n), w(r));
4607
4746
  }
4608
4747
  };
4609
4748
  }
4610
- function Xi(e) {
4749
+ function Qi(e) {
4611
4750
  let t, n = (
4612
4751
  /*errorcode*/
4613
4752
  (e[1] ? (
@@ -4619,17 +4758,17 @@ function Xi(e) {
4619
4758
  )) + ""
4620
4759
  ), r, i, a, s = (
4621
4760
  /*errorcode*/
4622
- e[1] == "DepositWageringLimit" && Mt(e)
4761
+ e[1] == "DepositWageringLimit" && Pt(e)
4623
4762
  );
4624
4763
  return {
4625
4764
  c() {
4626
- t = C("span"), r = R(n), i = J(), s && s.c(), a = et(), O(t, "class", "CashierErrorText");
4765
+ t = H("span"), r = z(n), i = $(), s && s.c(), a = et(), T(t, "class", "CashierErrorText");
4627
4766
  },
4628
- m(o, l) {
4629
- A(o, t, l), B(t, r), A(o, i, l), s && s.m(o, l), A(o, a, l);
4767
+ m(o, u) {
4768
+ I(o, t, u), B(t, r), I(o, i, u), s && s.m(o, u), I(o, a, u);
4630
4769
  },
4631
- p(o, l) {
4632
- l & /*errorcode, shownError, errormessage*/
4770
+ p(o, u) {
4771
+ u & /*errorcode, shownError, errormessage*/
4633
4772
  134 && n !== (n = /*errorcode*/
4634
4773
  (o[1] ? (
4635
4774
  /*shownError*/
@@ -4638,92 +4777,92 @@ function Xi(e) {
4638
4777
  /*errormessage*/
4639
4778
  o[2]
4640
4779
  )) + "") && Y(r, n), /*errorcode*/
4641
- o[1] == "DepositWageringLimit" ? s ? s.p(o, l) : (s = Mt(o), s.c(), s.m(a.parentNode, a)) : s && (s.d(1), s = null);
4780
+ o[1] == "DepositWageringLimit" ? s ? s.p(o, u) : (s = Pt(o), s.c(), s.m(a.parentNode, a)) : s && (s.d(1), s = null);
4642
4781
  },
4643
4782
  d(o) {
4644
- o && (T(t), T(i), T(a)), s && s.d(o);
4783
+ o && (w(t), w(i), w(a)), s && s.d(o);
4645
4784
  }
4646
4785
  };
4647
4786
  }
4648
- function Zi(e) {
4787
+ function ea(e) {
4649
4788
  let t, n, r = (
4650
4789
  /*$_*/
4651
4790
  e[8]("errorGeneralButton") + ""
4652
4791
  ), i, a, s;
4653
4792
  return {
4654
4793
  c() {
4655
- t = C("button"), n = C("span"), i = R(r), O(t, "class", "CashierErrorButton");
4794
+ t = H("button"), n = H("span"), i = z(r), T(t, "class", "CashierErrorButton");
4656
4795
  },
4657
- m(o, l) {
4658
- A(o, t, l), B(t, n), B(n, i), a || (s = wn(
4796
+ m(o, u) {
4797
+ I(o, t, u), B(t, n), B(n, i), a || (s = Ut(
4659
4798
  t,
4660
4799
  "click",
4661
4800
  /*close*/
4662
4801
  e[9]
4663
4802
  ), a = !0);
4664
4803
  },
4665
- p(o, l) {
4666
- l & /*$_*/
4804
+ p(o, u) {
4805
+ u & /*$_*/
4667
4806
  256 && r !== (r = /*$_*/
4668
4807
  o[8]("errorGeneralButton") + "") && Y(i, r);
4669
4808
  },
4670
4809
  d(o) {
4671
- o && T(t), a = !1, s();
4810
+ o && w(t), a = !1, s();
4672
4811
  }
4673
4812
  };
4674
4813
  }
4675
- function Ji(e) {
4814
+ function ta(e) {
4676
4815
  let t, n, r = !/*isLoading*/
4677
4816
  e[4] && Lt(e);
4678
4817
  return {
4679
4818
  c() {
4680
- t = C("div"), r && r.c(), O(t, "class", "CashierError");
4819
+ t = H("div"), r && r.c(), T(t, "class", "CashierError");
4681
4820
  },
4682
4821
  m(i, a) {
4683
- A(i, t, a), r && r.m(t, null), e[17](t), n = !0;
4822
+ I(i, t, a), r && r.m(t, null), e[17](t), n = !0;
4684
4823
  },
4685
4824
  p(i, [a]) {
4686
4825
  /*isLoading*/
4687
- i[4] ? r && (Pn(), Z(r, 1, 1, () => {
4826
+ i[4] ? r && (Ft(), N(r, 1, 1, () => {
4688
4827
  r = null;
4689
- }), On()) : r ? (r.p(i, a), a & /*isLoading*/
4690
- 16 && D(r, 1)) : (r = Lt(i), r.c(), D(r, 1), r.m(t, null));
4828
+ }), Gt()) : r ? (r.p(i, a), a & /*isLoading*/
4829
+ 16 && M(r, 1)) : (r = Lt(i), r.c(), M(r, 1), r.m(t, null));
4691
4830
  },
4692
4831
  i(i) {
4693
- n || (D(r), n = !0);
4832
+ n || (M(r), n = !0);
4694
4833
  },
4695
4834
  o(i) {
4696
- Z(r), n = !1;
4835
+ N(r), n = !1;
4697
4836
  },
4698
4837
  d(i) {
4699
- i && T(t), r && r.d(), e[17](null);
4838
+ i && w(t), r && r.d(), e[17](null);
4700
4839
  }
4701
4840
  };
4702
4841
  }
4703
- function Ki(e, t, n) {
4842
+ function na(e, t, n) {
4704
4843
  let r;
4705
- _n(e, Ri, (b) => n(8, r = b));
4706
- let { $$slots: i = {}, $$scope: a } = t, { assetsurl: s = "" } = t, { lang: o = "en" } = t, { errorcode: l = "" } = t, { errormessage: u = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: d = "" } = t, { mbsource: f = "" } = t, g, k, E = -1, m, v, w = !1;
4707
- const U = () => {
4708
- zi(o);
4709
- }, M = () => {
4710
- n(4, w = !0);
4844
+ Hn(e, $i, (b) => n(8, r = b));
4845
+ let { $$slots: i = {}, $$scope: a } = t, { assetsurl: s = "" } = t, { lang: o = "en" } = t, { errorcode: u = "" } = t, { errormessage: l = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: d = "" } = t, { mbsource: f = "" } = t, g, k, E = -1, m, v, A = !1;
4846
+ const F = () => {
4847
+ ji(o);
4848
+ }, D = () => {
4849
+ n(4, A = !0);
4711
4850
  let b = d;
4712
4851
  if (b)
4713
- return fetch(b).then((j) => j.json()).then((j) => {
4714
- Object.keys(j).forEach((rt) => {
4715
- wt(rt, j[rt]);
4852
+ return fetch(b).then((W) => W.json()).then((W) => {
4853
+ Object.keys(W).forEach((rt) => {
4854
+ It(rt, W[rt]);
4716
4855
  });
4717
- }).catch((j) => {
4718
- console.log(j);
4856
+ }).catch((W) => {
4857
+ console.log(W);
4719
4858
  }).finally(() => {
4720
- n(4, w = !1);
4859
+ n(4, A = !1);
4721
4860
  });
4722
4861
  };
4723
- Object.keys(It).forEach((b) => {
4724
- wt(b, It[b]);
4862
+ Object.keys(At).forEach((b) => {
4863
+ It(b, At[b]);
4725
4864
  });
4726
- const $ = () => {
4865
+ const V = () => {
4727
4866
  window.postMessage({ type: "ErrorClose" }, window.location.href);
4728
4867
  }, se = (b) => {
4729
4868
  if (b.data)
@@ -4732,38 +4871,38 @@ function Ki(e, t, n) {
4732
4871
  n(5, E = b.data.amount), n(6, m = b.data.currency);
4733
4872
  break;
4734
4873
  }
4735
- }, dn = () => {
4736
- n(7, v = r(`${l || "errorGeneralText"}`));
4874
+ }, xn = () => {
4875
+ n(7, v = r(`${u || "errorGeneralText"}`));
4737
4876
  };
4738
- Bn(() => (window.addEventListener("message", se, !1), () => {
4877
+ Nn(() => (window.addEventListener("message", se, !1), () => {
4739
4878
  window.removeEventListener("message", se);
4740
4879
  }));
4741
- function mn(b) {
4742
- Ge[b ? "unshift" : "push"](() => {
4880
+ function kn(b) {
4881
+ Fe[b ? "unshift" : "push"](() => {
4743
4882
  g = b, n(3, g);
4744
4883
  });
4745
4884
  }
4746
4885
  return e.$$set = (b) => {
4747
- "assetsurl" in b && n(0, s = b.assetsurl), "lang" in b && n(10, o = b.lang), "errorcode" in b && n(1, l = b.errorcode), "errormessage" in b && n(2, u = b.errormessage), "clientstyling" in b && n(11, c = b.clientstyling), "clientstylingurl" in b && n(12, h = b.clientstylingurl), "translationurl" in b && n(13, d = b.translationurl), "mbsource" in b && n(14, f = b.mbsource), "$$scope" in b && n(15, a = b.$$scope);
4886
+ "assetsurl" in b && n(0, s = b.assetsurl), "lang" in b && n(10, o = b.lang), "errorcode" in b && n(1, u = b.errorcode), "errormessage" in b && n(2, l = b.errormessage), "clientstyling" in b && n(11, c = b.clientstyling), "clientstylingurl" in b && n(12, h = b.clientstylingurl), "translationurl" in b && n(13, d = b.translationurl), "mbsource" in b && n(14, f = b.mbsource), "$$scope" in b && n(15, a = b.$$scope);
4748
4887
  }, e.$$.update = () => {
4749
4888
  e.$$.dirty & /*lang*/
4750
- 1024 && o && U(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4751
- 2056 && c && g && $n(g, c), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4752
- 4104 && h && g && jn(g, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4753
- 16392 && f && g && Vn(g, `${f}.Style`, k), e.$$.dirty & /*translationurl*/
4754
- 8192 && d && M(), e.$$.dirty & /*isLoading*/
4755
- 16 && !w && dn();
4889
+ 1024 && o && F(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4890
+ 2056 && c && g && Vn(g, c), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4891
+ 4104 && h && g && Wn(g, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4892
+ 16392 && f && g && qn(g, `${f}.Style`, k), e.$$.dirty & /*translationurl*/
4893
+ 8192 && d && D(), e.$$.dirty & /*isLoading*/
4894
+ 16 && !A && xn();
4756
4895
  }, [
4757
4896
  s,
4758
- l,
4759
4897
  u,
4898
+ l,
4760
4899
  g,
4761
- w,
4900
+ A,
4762
4901
  E,
4763
4902
  m,
4764
4903
  v,
4765
4904
  r,
4766
- $,
4905
+ V,
4767
4906
  o,
4768
4907
  c,
4769
4908
  h,
@@ -4771,17 +4910,17 @@ function Ki(e, t, n) {
4771
4910
  f,
4772
4911
  a,
4773
4912
  i,
4774
- mn
4913
+ kn
4775
4914
  ];
4776
4915
  }
4777
- class Yi extends Fn {
4916
+ class ra extends Xt {
4778
4917
  constructor(t) {
4779
- super(), zn(
4918
+ super(), Vt(
4780
4919
  this,
4781
4920
  t,
4782
- Ki,
4783
- Ji,
4784
- Dt,
4921
+ na,
4922
+ ta,
4923
+ Qe,
4785
4924
  {
4786
4925
  assetsurl: 0,
4787
4926
  lang: 10,
@@ -4792,59 +4931,59 @@ class Yi extends Fn {
4792
4931
  translationurl: 13,
4793
4932
  mbsource: 14
4794
4933
  },
4795
- Ui
4934
+ Vi
4796
4935
  );
4797
4936
  }
4798
4937
  get assetsurl() {
4799
4938
  return this.$$.ctx[0];
4800
4939
  }
4801
4940
  set assetsurl(t) {
4802
- this.$$set({ assetsurl: t }), L();
4941
+ this.$$set({ assetsurl: t }), C();
4803
4942
  }
4804
4943
  get lang() {
4805
4944
  return this.$$.ctx[10];
4806
4945
  }
4807
4946
  set lang(t) {
4808
- this.$$set({ lang: t }), L();
4947
+ this.$$set({ lang: t }), C();
4809
4948
  }
4810
4949
  get errorcode() {
4811
4950
  return this.$$.ctx[1];
4812
4951
  }
4813
4952
  set errorcode(t) {
4814
- this.$$set({ errorcode: t }), L();
4953
+ this.$$set({ errorcode: t }), C();
4815
4954
  }
4816
4955
  get errormessage() {
4817
4956
  return this.$$.ctx[2];
4818
4957
  }
4819
4958
  set errormessage(t) {
4820
- this.$$set({ errormessage: t }), L();
4959
+ this.$$set({ errormessage: t }), C();
4821
4960
  }
4822
4961
  get clientstyling() {
4823
4962
  return this.$$.ctx[11];
4824
4963
  }
4825
4964
  set clientstyling(t) {
4826
- this.$$set({ clientstyling: t }), L();
4965
+ this.$$set({ clientstyling: t }), C();
4827
4966
  }
4828
4967
  get clientstylingurl() {
4829
4968
  return this.$$.ctx[12];
4830
4969
  }
4831
4970
  set clientstylingurl(t) {
4832
- this.$$set({ clientstylingurl: t }), L();
4971
+ this.$$set({ clientstylingurl: t }), C();
4833
4972
  }
4834
4973
  get translationurl() {
4835
4974
  return this.$$.ctx[13];
4836
4975
  }
4837
4976
  set translationurl(t) {
4838
- this.$$set({ translationurl: t }), L();
4977
+ this.$$set({ translationurl: t }), C();
4839
4978
  }
4840
4979
  get mbsource() {
4841
4980
  return this.$$.ctx[14];
4842
4981
  }
4843
4982
  set mbsource(t) {
4844
- this.$$set({ mbsource: t }), L();
4983
+ this.$$set({ mbsource: t }), C();
4845
4984
  }
4846
4985
  }
4847
- Un(Yi, { assetsurl: {}, lang: {}, errorcode: {}, errormessage: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4986
+ qt(ra, { assetsurl: {}, lang: {}, errorcode: {}, errormessage: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4848
4987
  export {
4849
- Yi as default
4988
+ ra as default
4850
4989
  };