@everymatrix/player-account-balance-modal-nd 1.54.0 → 1.54.2

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,75 +1,46 @@
1
- var hr = Object.defineProperty, fr = Object.defineProperties;
2
- var dr = Object.getOwnPropertyDescriptors;
3
- var ln = Object.getOwnPropertySymbols;
4
- var pr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable;
5
- var Rt = (e, t, n) => t in e ? hr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Lt = (e, t) => {
6
- for (var n in t || (t = {}))
7
- pr.call(t, n) && Rt(e, n, t[n]);
8
- if (ln)
9
- for (var n of ln(t))
10
- mr.call(t, n) && Rt(e, n, t[n]);
11
- return e;
12
- }, Mt = (e, t) => fr(e, dr(t));
13
- var se = (e, t, n) => Rt(e, typeof t != "symbol" ? t + "" : t, n);
14
- var Nt = (e, t, n) => new Promise((r, i) => {
15
- var a = (c) => {
16
- try {
17
- o(n.next(c));
18
- } catch (u) {
19
- i(u);
20
- }
21
- }, l = (c) => {
22
- try {
23
- o(n.throw(c));
24
- } catch (u) {
25
- i(u);
26
- }
27
- }, o = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(a, l);
28
- o((n = n.apply(e, t)).next());
29
- });
30
- function le() {
1
+ function se() {
31
2
  }
32
- function Mn(e) {
3
+ function An(e) {
33
4
  return e();
34
5
  }
35
- function un() {
6
+ function nn() {
36
7
  return /* @__PURE__ */ Object.create(null);
37
8
  }
38
- function je(e) {
39
- e.forEach(Mn);
9
+ function $e(e) {
10
+ e.forEach(An);
40
11
  }
41
- function tn(e) {
12
+ function Qt(e) {
42
13
  return typeof e == "function";
43
14
  }
44
- function Nn(e, t) {
15
+ function Cn(e, t) {
45
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
17
  }
47
- function gr(e) {
18
+ function ar(e) {
48
19
  return Object.keys(e).length === 0;
49
20
  }
50
- function In(e, ...t) {
21
+ function Hn(e, ...t) {
51
22
  if (e == null) {
52
23
  for (const r of t)
53
24
  r(void 0);
54
- return le;
25
+ return se;
55
26
  }
56
27
  const n = e.subscribe(...t);
57
28
  return n.unsubscribe ? () => n.unsubscribe() : n;
58
29
  }
59
- function br(e, t, n) {
60
- e.$$.on_destroy.push(In(t, n));
30
+ function or(e, t, n) {
31
+ e.$$.on_destroy.push(Hn(t, n));
61
32
  }
62
33
  function C(e, t) {
63
34
  e.appendChild(t);
64
35
  }
65
- function yr(e, t, n) {
66
- const r = vr(e);
36
+ function sr(e, t, n) {
37
+ const r = lr(e);
67
38
  if (!r.getElementById(t)) {
68
39
  const i = $("style");
69
- i.id = t, i.textContent = n, Er(r, i);
40
+ i.id = t, i.textContent = n, ur(r, i);
70
41
  }
71
42
  }
72
- function vr(e) {
43
+ function lr(e) {
73
44
  if (!e) return document;
74
45
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
75
46
  return t && /** @type {ShadowRoot} */
@@ -78,52 +49,52 @@ function vr(e) {
78
49
  t
79
50
  ) : e.ownerDocument;
80
51
  }
81
- function Er(e, t) {
52
+ function ur(e, t) {
82
53
  return C(
83
54
  /** @type {Document} */
84
55
  e.head || e,
85
56
  t
86
57
  ), t.sheet;
87
58
  }
88
- function ge(e, t, n) {
59
+ function me(e, t, n) {
89
60
  e.insertBefore(t, n || null);
90
61
  }
91
- function fe(e) {
62
+ function he(e) {
92
63
  e.parentNode && e.parentNode.removeChild(e);
93
64
  }
94
- function Pn(e, t) {
65
+ function On(e, t) {
95
66
  for (let n = 0; n < e.length; n += 1)
96
67
  e[n] && e[n].d(t);
97
68
  }
98
69
  function $(e) {
99
70
  return document.createElement(e);
100
71
  }
101
- function cn(e) {
72
+ function rn(e) {
102
73
  return document.createElementNS("http://www.w3.org/2000/svg", e);
103
74
  }
104
- function he(e) {
75
+ function ce(e) {
105
76
  return document.createTextNode(e);
106
77
  }
107
- function de() {
108
- return he(" ");
78
+ function fe() {
79
+ return ce(" ");
109
80
  }
110
- function xr() {
111
- return he("");
81
+ function cr() {
82
+ return ce("");
112
83
  }
113
- function pt(e, t, n, r) {
84
+ function dt(e, t, n, r) {
114
85
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
115
86
  }
116
87
  function M(e, t, n) {
117
88
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
118
89
  }
119
- function _r(e) {
90
+ function hr(e) {
120
91
  return Array.from(e.childNodes);
121
92
  }
122
- function Be(e, t) {
93
+ function _e(e, t) {
123
94
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
124
95
  t);
125
96
  }
126
- function Br(e) {
97
+ function fr(e) {
127
98
  const t = {};
128
99
  return e.childNodes.forEach(
129
100
  /** @param {Element} node */
@@ -132,248 +103,244 @@ function Br(e) {
132
103
  }
133
104
  ), t;
134
105
  }
135
- let et;
136
- function Ke(e) {
137
- et = e;
106
+ let Ke;
107
+ function Ye(e) {
108
+ Ke = e;
138
109
  }
139
- function Tr() {
140
- if (!et) throw new Error("Function called outside component initialization");
141
- return et;
110
+ function dr() {
111
+ if (!Ke) throw new Error("Function called outside component initialization");
112
+ return Ke;
142
113
  }
143
- function wr(e) {
144
- Tr().$$.on_mount.push(e);
114
+ function pr(e) {
115
+ dr().$$.on_mount.push(e);
145
116
  }
146
- const Pe = [], jt = [];
147
- let De = [];
148
- const hn = [], Sr = /* @__PURE__ */ Promise.resolve();
149
- let kt = !1;
150
- function Ar() {
151
- kt || (kt = !0, Sr.then(Q));
117
+ const Ie = [], Dt = [];
118
+ let Pe = [];
119
+ const an = [], mr = /* @__PURE__ */ Promise.resolve();
120
+ let Ut = !1;
121
+ function gr() {
122
+ Ut || (Ut = !0, mr.then(Q));
152
123
  }
153
- function Vt(e) {
154
- De.push(e);
124
+ function Ft(e) {
125
+ Pe.push(e);
155
126
  }
156
- const It = /* @__PURE__ */ new Set();
157
- let Ne = 0;
127
+ const Ot = /* @__PURE__ */ new Set();
128
+ let Me = 0;
158
129
  function Q() {
159
- if (Ne !== 0)
130
+ if (Me !== 0)
160
131
  return;
161
- const e = et;
132
+ const e = Ke;
162
133
  do {
163
134
  try {
164
- for (; Ne < Pe.length; ) {
165
- const t = Pe[Ne];
166
- Ne++, Ke(t), Cr(t.$$);
135
+ for (; Me < Ie.length; ) {
136
+ const t = Ie[Me];
137
+ Me++, Ye(t), br(t.$$);
167
138
  }
168
139
  } catch (t) {
169
- throw Pe.length = 0, Ne = 0, t;
140
+ throw Ie.length = 0, Me = 0, t;
170
141
  }
171
- for (Ke(null), Pe.length = 0, Ne = 0; jt.length; ) jt.pop()();
172
- for (let t = 0; t < De.length; t += 1) {
173
- const n = De[t];
174
- It.has(n) || (It.add(n), n());
142
+ for (Ye(null), Ie.length = 0, Me = 0; Dt.length; ) Dt.pop()();
143
+ for (let t = 0; t < Pe.length; t += 1) {
144
+ const n = Pe[t];
145
+ Ot.has(n) || (Ot.add(n), n());
175
146
  }
176
- De.length = 0;
177
- } while (Pe.length);
178
- for (; hn.length; )
179
- hn.pop()();
180
- kt = !1, It.clear(), Ke(e);
147
+ Pe.length = 0;
148
+ } while (Ie.length);
149
+ for (; an.length; )
150
+ an.pop()();
151
+ Ut = !1, Ot.clear(), Ye(e);
181
152
  }
182
- function Cr(e) {
153
+ function br(e) {
183
154
  if (e.fragment !== null) {
184
- e.update(), je(e.before_update);
155
+ e.update(), $e(e.before_update);
185
156
  const t = e.dirty;
186
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Vt);
157
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ft);
187
158
  }
188
159
  }
189
- function Hr(e) {
160
+ function yr(e) {
190
161
  const t = [], n = [];
191
- De.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), De = t;
162
+ Pe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Pe = t;
192
163
  }
193
- const Or = /* @__PURE__ */ new Set();
194
- function Rr(e, t) {
195
- e && e.i && (Or.delete(e), e.i(t));
164
+ const vr = /* @__PURE__ */ new Set();
165
+ function Er(e, t) {
166
+ e && e.i && (vr.delete(e), e.i(t));
196
167
  }
197
- function mt(e) {
198
- return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
168
+ function pt(e) {
169
+ return e?.length !== void 0 ? e : Array.from(e);
199
170
  }
200
- function Lr(e, t, n) {
171
+ function xr(e, t, n) {
201
172
  const { fragment: r, after_update: i } = e.$$;
202
- r && r.m(t, n), Vt(() => {
203
- const a = e.$$.on_mount.map(Mn).filter(tn);
204
- e.$$.on_destroy ? e.$$.on_destroy.push(...a) : je(a), e.$$.on_mount = [];
205
- }), i.forEach(Vt);
173
+ r && r.m(t, n), Ft(() => {
174
+ const a = e.$$.on_mount.map(An).filter(Qt);
175
+ e.$$.on_destroy ? e.$$.on_destroy.push(...a) : $e(a), e.$$.on_mount = [];
176
+ }), i.forEach(Ft);
206
177
  }
207
- function Mr(e, t) {
178
+ function _r(e, t) {
208
179
  const n = e.$$;
209
- n.fragment !== null && (Hr(n.after_update), je(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
180
+ n.fragment !== null && (yr(n.after_update), $e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
210
181
  }
211
- function Nr(e, t) {
212
- e.$$.dirty[0] === -1 && (Pe.push(e), Ar(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
182
+ function Br(e, t) {
183
+ e.$$.dirty[0] === -1 && (Ie.push(e), gr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
213
184
  }
214
- function Ir(e, t, n, r, i, a, l = null, o = [-1]) {
215
- const c = et;
216
- Ke(e);
185
+ function Tr(e, t, n, r, i, a, l = null, s = [-1]) {
186
+ const h = Ke;
187
+ Ye(e);
217
188
  const u = e.$$ = {
218
189
  fragment: null,
219
190
  ctx: [],
220
191
  // state
221
192
  props: a,
222
- update: le,
193
+ update: se,
223
194
  not_equal: i,
224
- bound: un(),
195
+ bound: nn(),
225
196
  // lifecycle
226
197
  on_mount: [],
227
198
  on_destroy: [],
228
199
  on_disconnect: [],
229
200
  before_update: [],
230
201
  after_update: [],
231
- context: new Map(t.context || (c ? c.$$.context : [])),
202
+ context: new Map(t.context || (h ? h.$$.context : [])),
232
203
  // everything else
233
- callbacks: un(),
234
- dirty: o,
204
+ callbacks: nn(),
205
+ dirty: s,
235
206
  skip_bound: !1,
236
- root: t.target || c.$$.root
207
+ root: t.target || h.$$.root
237
208
  };
238
209
  l && l(u.root);
239
210
  let d = !1;
240
- if (u.ctx = n(e, t.props || {}, (b, y, ...T) => {
241
- const _ = T.length ? T[0] : y;
242
- return u.ctx && i(u.ctx[b], u.ctx[b] = _) && (!u.skip_bound && u.bound[b] && u.bound[b](_), d && Nr(e, b)), y;
243
- }), u.update(), d = !0, je(u.before_update), u.fragment = r(u.ctx), t.target) {
211
+ if (u.ctx = n(e, t.props || {}, (b, y, ...B) => {
212
+ const x = B.length ? B[0] : y;
213
+ return u.ctx && i(u.ctx[b], u.ctx[b] = x) && (!u.skip_bound && u.bound[b] && u.bound[b](x), d && Br(e, b)), y;
214
+ }), u.update(), d = !0, $e(u.before_update), u.fragment = r(u.ctx), t.target) {
244
215
  if (t.hydrate) {
245
- const b = _r(t.target);
246
- u.fragment && u.fragment.l(b), b.forEach(fe);
216
+ const b = hr(t.target);
217
+ u.fragment && u.fragment.l(b), b.forEach(he);
247
218
  } else
248
219
  u.fragment && u.fragment.c();
249
- t.intro && Rr(e.$$.fragment), Lr(e, t.target, t.anchor), Q();
220
+ t.intro && Er(e.$$.fragment), xr(e, t.target, t.anchor), Q();
250
221
  }
251
- Ke(c);
252
- }
253
- let Dn;
254
- typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
255
- constructor(t, n, r) {
256
- super();
257
- /** The Svelte component constructor */
258
- se(this, "$$ctor");
259
- /** Slots */
260
- se(this, "$$s");
261
- /** The Svelte component instance */
262
- se(this, "$$c");
263
- /** Whether or not the custom element is connected */
264
- se(this, "$$cn", !1);
265
- /** Component props data */
266
- se(this, "$$d", {});
267
- /** `true` if currently in the process of reflecting component props back to attributes */
268
- se(this, "$$r", !1);
269
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
270
- se(this, "$$p_d", {});
271
- /** @type {Record<string, Function[]>} Event listeners */
272
- se(this, "$$l", {});
273
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
274
- se(this, "$$l_u", /* @__PURE__ */ new Map());
275
- this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
222
+ Ye(h);
223
+ }
224
+ let Rn;
225
+ typeof HTMLElement == "function" && (Rn = class extends HTMLElement {
226
+ /** The Svelte component constructor */
227
+ $$ctor;
228
+ /** Slots */
229
+ $$s;
230
+ /** The Svelte component instance */
231
+ $$c;
232
+ /** Whether or not the custom element is connected */
233
+ $$cn = !1;
234
+ /** Component props data */
235
+ $$d = {};
236
+ /** `true` if currently in the process of reflecting component props back to attributes */
237
+ $$r = !1;
238
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
239
+ $$p_d = {};
240
+ /** @type {Record<string, Function[]>} Event listeners */
241
+ $$l = {};
242
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
243
+ $$l_u = /* @__PURE__ */ new Map();
244
+ constructor(e, t, n) {
245
+ super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
276
246
  }
277
- addEventListener(t, n, r) {
278
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
279
- const i = this.$$c.$on(t, n);
280
- this.$$l_u.set(n, i);
247
+ addEventListener(e, t, n) {
248
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
249
+ const r = this.$$c.$on(e, t);
250
+ this.$$l_u.set(t, r);
281
251
  }
282
- super.addEventListener(t, n, r);
252
+ super.addEventListener(e, t, n);
283
253
  }
284
- removeEventListener(t, n, r) {
285
- if (super.removeEventListener(t, n, r), this.$$c) {
286
- const i = this.$$l_u.get(n);
287
- i && (i(), this.$$l_u.delete(n));
254
+ removeEventListener(e, t, n) {
255
+ if (super.removeEventListener(e, t, n), this.$$c) {
256
+ const r = this.$$l_u.get(t);
257
+ r && (r(), this.$$l_u.delete(t));
288
258
  }
289
259
  }
290
- connectedCallback() {
291
- return Nt(this, null, function* () {
292
- if (this.$$cn = !0, !this.$$c) {
293
- let t = function(a) {
294
- return () => {
295
- let l;
296
- return {
297
- c: function() {
298
- l = $("slot"), a !== "default" && M(l, "name", a);
299
- },
300
- /**
301
- * @param {HTMLElement} target
302
- * @param {HTMLElement} [anchor]
303
- */
304
- m: function(u, d) {
305
- ge(u, l, d);
306
- },
307
- d: function(u) {
308
- u && fe(l);
309
- }
310
- };
260
+ async connectedCallback() {
261
+ if (this.$$cn = !0, !this.$$c) {
262
+ let e = function(i) {
263
+ return () => {
264
+ let a;
265
+ return {
266
+ c: function() {
267
+ a = $("slot"), i !== "default" && M(a, "name", i);
268
+ },
269
+ /**
270
+ * @param {HTMLElement} target
271
+ * @param {HTMLElement} [anchor]
272
+ */
273
+ m: function(h, u) {
274
+ me(h, a, u);
275
+ },
276
+ d: function(h) {
277
+ h && he(a);
278
+ }
311
279
  };
312
280
  };
313
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
314
- return;
315
- const n = {}, r = Br(this);
316
- for (const a of this.$$s)
317
- a in r && (n[a] = [t(a)]);
318
- for (const a of this.attributes) {
319
- const l = this.$$g_p(a.name);
320
- l in this.$$d || (this.$$d[l] = ct(l, a.value, this.$$p_d, "toProp"));
281
+ };
282
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
283
+ return;
284
+ const t = {}, n = fr(this);
285
+ for (const i of this.$$s)
286
+ i in n && (t[i] = [e(i)]);
287
+ for (const i of this.attributes) {
288
+ const a = this.$$g_p(i.name);
289
+ a in this.$$d || (this.$$d[a] = ut(a, i.value, this.$$p_d, "toProp"));
290
+ }
291
+ for (const i in this.$$p_d)
292
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
293
+ this.$$c = new this.$$ctor({
294
+ target: this.shadowRoot || this,
295
+ props: {
296
+ ...this.$$d,
297
+ $$slots: t,
298
+ $$scope: {
299
+ ctx: []
300
+ }
321
301
  }
322
- for (const a in this.$$p_d)
323
- !(a in this.$$d) && this[a] !== void 0 && (this.$$d[a] = this[a], delete this[a]);
324
- this.$$c = new this.$$ctor({
325
- target: this.shadowRoot || this,
326
- props: Mt(Lt({}, this.$$d), {
327
- $$slots: n,
328
- $$scope: {
329
- ctx: []
330
- }
331
- })
332
- });
333
- const i = () => {
334
- this.$$r = !0;
335
- for (const a in this.$$p_d)
336
- if (this.$$d[a] = this.$$c.$$.ctx[this.$$c.$$.props[a]], this.$$p_d[a].reflect) {
337
- const l = ct(
338
- a,
339
- this.$$d[a],
340
- this.$$p_d,
341
- "toAttribute"
342
- );
343
- l == null ? this.removeAttribute(this.$$p_d[a].attribute || a) : this.setAttribute(this.$$p_d[a].attribute || a, l);
344
- }
345
- this.$$r = !1;
346
- };
347
- this.$$c.$$.after_update.push(i), i();
348
- for (const a in this.$$l)
349
- for (const l of this.$$l[a]) {
350
- const o = this.$$c.$on(a, l);
351
- this.$$l_u.set(l, o);
302
+ });
303
+ const r = () => {
304
+ this.$$r = !0;
305
+ for (const i in this.$$p_d)
306
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
307
+ const a = ut(
308
+ i,
309
+ this.$$d[i],
310
+ this.$$p_d,
311
+ "toAttribute"
312
+ );
313
+ a == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, a);
352
314
  }
353
- this.$$l = {};
354
- }
355
- });
315
+ this.$$r = !1;
316
+ };
317
+ this.$$c.$$.after_update.push(r), r();
318
+ for (const i in this.$$l)
319
+ for (const a of this.$$l[i]) {
320
+ const l = this.$$c.$on(i, a);
321
+ this.$$l_u.set(a, l);
322
+ }
323
+ this.$$l = {};
324
+ }
356
325
  }
357
326
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
358
327
  // and setting attributes through setAttribute etc, this is helpful
359
- attributeChangedCallback(t, n, r) {
360
- var i;
361
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ct(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
328
+ attributeChangedCallback(e, t, n) {
329
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ut(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
362
330
  }
363
331
  disconnectedCallback() {
364
332
  this.$$cn = !1, Promise.resolve().then(() => {
365
333
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
366
334
  });
367
335
  }
368
- $$g_p(t) {
336
+ $$g_p(e) {
369
337
  return Object.keys(this.$$p_d).find(
370
- (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
371
- ) || t;
338
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
339
+ ) || e;
372
340
  }
373
341
  });
374
- function ct(e, t, n, r) {
375
- var a;
376
- const i = (a = n[e]) == null ? void 0 : a.type;
342
+ function ut(e, t, n, r) {
343
+ const i = n[e]?.type;
377
344
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
378
345
  return t;
379
346
  if (r === "toAttribute")
@@ -384,7 +351,7 @@ function ct(e, t, n, r) {
384
351
  case "Boolean":
385
352
  return t ? "" : null;
386
353
  case "Number":
387
- return t == null ? null : t;
354
+ return t ?? null;
388
355
  default:
389
356
  return t;
390
357
  }
@@ -401,59 +368,55 @@ function ct(e, t, n, r) {
401
368
  return t;
402
369
  }
403
370
  }
404
- function Pr(e, t, n, r, i, a) {
405
- let l = class extends Dn {
371
+ function wr(e, t, n, r, i, a) {
372
+ let l = class extends Rn {
406
373
  constructor() {
407
374
  super(e, n, i), this.$$p_d = t;
408
375
  }
409
376
  static get observedAttributes() {
410
377
  return Object.keys(t).map(
411
- (o) => (t[o].attribute || o).toLowerCase()
378
+ (s) => (t[s].attribute || s).toLowerCase()
412
379
  );
413
380
  }
414
381
  };
415
- return Object.keys(t).forEach((o) => {
416
- Object.defineProperty(l.prototype, o, {
382
+ return Object.keys(t).forEach((s) => {
383
+ Object.defineProperty(l.prototype, s, {
417
384
  get() {
418
- return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
385
+ return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
419
386
  },
420
- set(c) {
421
- var u;
422
- c = ct(o, c, t), this.$$d[o] = c, (u = this.$$c) == null || u.$set({ [o]: c });
387
+ set(h) {
388
+ h = ut(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
423
389
  }
424
390
  });
425
- }), r.forEach((o) => {
426
- Object.defineProperty(l.prototype, o, {
391
+ }), r.forEach((s) => {
392
+ Object.defineProperty(l.prototype, s, {
427
393
  get() {
428
- var c;
429
- return (c = this.$$c) == null ? void 0 : c[o];
394
+ return this.$$c?.[s];
430
395
  }
431
396
  });
432
397
  }), e.element = /** @type {any} */
433
398
  l, l;
434
399
  }
435
- class Dr {
436
- constructor() {
437
- /**
438
- * ### PRIVATE API
439
- *
440
- * Do not use, may change at any time
441
- *
442
- * @type {any}
443
- */
444
- se(this, "$$");
445
- /**
446
- * ### PRIVATE API
447
- *
448
- * Do not use, may change at any time
449
- *
450
- * @type {any}
451
- */
452
- se(this, "$$set");
453
- }
400
+ class Sr {
401
+ /**
402
+ * ### PRIVATE API
403
+ *
404
+ * Do not use, may change at any time
405
+ *
406
+ * @type {any}
407
+ */
408
+ $$ = void 0;
409
+ /**
410
+ * ### PRIVATE API
411
+ *
412
+ * Do not use, may change at any time
413
+ *
414
+ * @type {any}
415
+ */
416
+ $$set = void 0;
454
417
  /** @returns {void} */
455
418
  $destroy() {
456
- Mr(this, 1), this.$destroy = le;
419
+ _r(this, 1), this.$destroy = se;
457
420
  }
458
421
  /**
459
422
  * @template {Extract<keyof Events, string>} K
@@ -462,8 +425,8 @@ class Dr {
462
425
  * @returns {() => void}
463
426
  */
464
427
  $on(t, n) {
465
- if (!tn(n))
466
- return le;
428
+ if (!Qt(n))
429
+ return se;
467
430
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
468
431
  return r.push(n), () => {
469
432
  const i = r.indexOf(n);
@@ -475,38 +438,38 @@ class Dr {
475
438
  * @returns {void}
476
439
  */
477
440
  $set(t) {
478
- this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
441
+ this.$$set && !ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
479
442
  }
480
443
  }
481
- const Ur = "4";
482
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ur);
483
- const Ie = [];
484
- function Fr(e, t) {
444
+ const Ar = "4";
445
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
446
+ const Ne = [];
447
+ function Cr(e, t) {
485
448
  return {
486
- subscribe: yt(e, t).subscribe
449
+ subscribe: bt(e, t).subscribe
487
450
  };
488
451
  }
489
- function yt(e, t = le) {
452
+ function bt(e, t = se) {
490
453
  let n;
491
454
  const r = /* @__PURE__ */ new Set();
492
- function i(o) {
493
- if (Nn(e, o) && (e = o, n)) {
494
- const c = !Ie.length;
455
+ function i(s) {
456
+ if (Cn(e, s) && (e = s, n)) {
457
+ const h = !Ne.length;
495
458
  for (const u of r)
496
- u[1](), Ie.push(u, e);
497
- if (c) {
498
- for (let u = 0; u < Ie.length; u += 2)
499
- Ie[u][0](Ie[u + 1]);
500
- Ie.length = 0;
459
+ u[1](), Ne.push(u, e);
460
+ if (h) {
461
+ for (let u = 0; u < Ne.length; u += 2)
462
+ Ne[u][0](Ne[u + 1]);
463
+ Ne.length = 0;
501
464
  }
502
465
  }
503
466
  }
504
- function a(o) {
505
- i(o(e));
467
+ function a(s) {
468
+ i(s(e));
506
469
  }
507
- function l(o, c = le) {
508
- const u = [o, c];
509
- return r.add(u), r.size === 1 && (n = t(i, a) || le), o(e), () => {
470
+ function l(s, h = se) {
471
+ const u = [s, h];
472
+ return r.add(u), r.size === 1 && (n = t(i, a) || se), s(e), () => {
510
473
  r.delete(u), r.size === 0 && n && (n(), n = null);
511
474
  };
512
475
  }
@@ -517,118 +480,118 @@ function ke(e, t, n) {
517
480
  if (!i.every(Boolean))
518
481
  throw new Error("derived() expects stores as input, got a falsy value");
519
482
  const a = t.length < 2;
520
- return Fr(n, (l, o) => {
521
- let c = !1;
483
+ return Cr(n, (l, s) => {
484
+ let h = !1;
522
485
  const u = [];
523
- let d = 0, b = le;
486
+ let d = 0, b = se;
524
487
  const y = () => {
525
488
  if (d)
526
489
  return;
527
490
  b();
528
- const _ = t(r ? u[0] : u, l, o);
529
- a ? l(_) : b = tn(_) ? _ : le;
530
- }, T = i.map(
531
- (_, H) => In(
532
- _,
533
- (B) => {
534
- u[H] = B, d &= ~(1 << H), c && y();
491
+ const x = t(r ? u[0] : u, l, s);
492
+ a ? l(x) : b = Qt(x) ? x : se;
493
+ }, B = i.map(
494
+ (x, H) => Hn(
495
+ x,
496
+ (_) => {
497
+ u[H] = _, d &= ~(1 << H), h && y();
535
498
  },
536
499
  () => {
537
500
  d |= 1 << H;
538
501
  }
539
502
  )
540
503
  );
541
- return c = !0, y(), function() {
542
- je(T), b(), c = !1;
504
+ return h = !0, y(), function() {
505
+ $e(B), b(), h = !1;
543
506
  };
544
507
  });
545
508
  }
546
- var Gr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
547
- function $r(e) {
509
+ var Hr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
510
+ function Or(e) {
548
511
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
549
512
  }
550
- var jr = function(t) {
551
- return kr(t) && !Vr(t);
513
+ var Rr = function(t) {
514
+ return Lr(t) && !Mr(t);
552
515
  };
553
- function kr(e) {
516
+ function Lr(e) {
554
517
  return !!e && typeof e == "object";
555
518
  }
556
- function Vr(e) {
519
+ function Mr(e) {
557
520
  var t = Object.prototype.toString.call(e);
558
- return t === "[object RegExp]" || t === "[object Date]" || Wr(e);
521
+ return t === "[object RegExp]" || t === "[object Date]" || Pr(e);
559
522
  }
560
- var Xr = typeof Symbol == "function" && Symbol.for, zr = Xr ? Symbol.for("react.element") : 60103;
561
- function Wr(e) {
562
- return e.$$typeof === zr;
523
+ var Nr = typeof Symbol == "function" && Symbol.for, Ir = Nr ? Symbol.for("react.element") : 60103;
524
+ function Pr(e) {
525
+ return e.$$typeof === Ir;
563
526
  }
564
- function Zr(e) {
527
+ function Dr(e) {
565
528
  return Array.isArray(e) ? [] : {};
566
529
  }
567
- function tt(e, t) {
568
- return t.clone !== !1 && t.isMergeableObject(e) ? Ue(Zr(e), e, t) : e;
530
+ function et(e, t) {
531
+ return t.clone !== !1 && t.isMergeableObject(e) ? De(Dr(e), e, t) : e;
569
532
  }
570
- function qr(e, t, n) {
533
+ function Ur(e, t, n) {
571
534
  return e.concat(t).map(function(r) {
572
- return tt(r, n);
535
+ return et(r, n);
573
536
  });
574
537
  }
575
- function Qr(e, t) {
538
+ function Fr(e, t) {
576
539
  if (!t.customMerge)
577
- return Ue;
540
+ return De;
578
541
  var n = t.customMerge(e);
579
- return typeof n == "function" ? n : Ue;
542
+ return typeof n == "function" ? n : De;
580
543
  }
581
- function Jr(e) {
544
+ function Gr(e) {
582
545
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
583
546
  return Object.propertyIsEnumerable.call(e, t);
584
547
  }) : [];
585
548
  }
586
- function fn(e) {
587
- return Object.keys(e).concat(Jr(e));
549
+ function on(e) {
550
+ return Object.keys(e).concat(Gr(e));
588
551
  }
589
- function Un(e, t) {
552
+ function Ln(e, t) {
590
553
  try {
591
554
  return t in e;
592
- } catch (n) {
555
+ } catch {
593
556
  return !1;
594
557
  }
595
558
  }
596
- function Yr(e, t) {
597
- return Un(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
559
+ function $r(e, t) {
560
+ return Ln(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
598
561
  }
599
- function Kr(e, t, n) {
562
+ function kr(e, t, n) {
600
563
  var r = {};
601
- return n.isMergeableObject(e) && fn(e).forEach(function(i) {
602
- r[i] = tt(e[i], n);
603
- }), fn(t).forEach(function(i) {
604
- Yr(e, i) || (Un(e, i) && n.isMergeableObject(t[i]) ? r[i] = Qr(i, n)(e[i], t[i], n) : r[i] = tt(t[i], n));
564
+ return n.isMergeableObject(e) && on(e).forEach(function(i) {
565
+ r[i] = et(e[i], n);
566
+ }), on(t).forEach(function(i) {
567
+ $r(e, i) || (Ln(e, i) && n.isMergeableObject(t[i]) ? r[i] = Fr(i, n)(e[i], t[i], n) : r[i] = et(t[i], n));
605
568
  }), r;
606
569
  }
607
- function Ue(e, t, n) {
608
- n = n || {}, n.arrayMerge = n.arrayMerge || qr, n.isMergeableObject = n.isMergeableObject || jr, n.cloneUnlessOtherwiseSpecified = tt;
570
+ function De(e, t, n) {
571
+ n = n || {}, n.arrayMerge = n.arrayMerge || Ur, n.isMergeableObject = n.isMergeableObject || Rr, n.cloneUnlessOtherwiseSpecified = et;
609
572
  var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
610
- return a ? r ? n.arrayMerge(e, t, n) : Kr(e, t, n) : tt(t, n);
573
+ return a ? r ? n.arrayMerge(e, t, n) : kr(e, t, n) : et(t, n);
611
574
  }
612
- Ue.all = function(t, n) {
575
+ De.all = function(t, n) {
613
576
  if (!Array.isArray(t))
614
577
  throw new Error("first argument should be an array");
615
578
  return t.reduce(function(r, i) {
616
- return Ue(r, i, n);
579
+ return De(r, i, n);
617
580
  }, {});
618
581
  };
619
- var ei = Ue, ti = ei;
620
- const ni = /* @__PURE__ */ $r(ti);
621
- var Xt = function(e, t) {
622
- return Xt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
582
+ var jr = De, Vr = jr;
583
+ const Xr = /* @__PURE__ */ Or(Vr);
584
+ var Gt = function(e, t) {
585
+ return Gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
623
586
  n.__proto__ = r;
624
587
  } || function(n, r) {
625
588
  for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
626
- }, Xt(e, t);
589
+ }, Gt(e, t);
627
590
  };
628
- function vt(e, t) {
591
+ function yt(e, t) {
629
592
  if (typeof t != "function" && t !== null)
630
593
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
631
- Xt(e, t);
594
+ Gt(e, t);
632
595
  function n() {
633
596
  this.constructor = e;
634
597
  }
@@ -643,7 +606,7 @@ var I = function() {
643
606
  return t;
644
607
  }, I.apply(this, arguments);
645
608
  };
646
- function ri(e, t) {
609
+ function zr(e, t) {
647
610
  var n = {};
648
611
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
649
612
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -651,45 +614,45 @@ function ri(e, t) {
651
614
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
652
615
  return n;
653
616
  }
654
- function Pt(e, t, n) {
617
+ function Rt(e, t, n) {
655
618
  if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++)
656
619
  (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
657
620
  return e.concat(a || Array.prototype.slice.call(t));
658
621
  }
659
- function Dt(e, t) {
660
- var n = t && t.cache ? t.cache : ci, r = t && t.serializer ? t.serializer : li, i = t && t.strategy ? t.strategy : ai;
622
+ function Lt(e, t) {
623
+ var n = t && t.cache ? t.cache : Kr, r = t && t.serializer ? t.serializer : Jr, i = t && t.strategy ? t.strategy : Zr;
661
624
  return i(e, {
662
625
  cache: n,
663
626
  serializer: r
664
627
  });
665
628
  }
666
- function ii(e) {
629
+ function Wr(e) {
667
630
  return e == null || typeof e == "number" || typeof e == "boolean";
668
631
  }
669
- function Fn(e, t, n, r) {
670
- var i = ii(r) ? r : n(r), a = t.get(i);
671
- return typeof a == "undefined" && (a = e.call(this, r), t.set(i, a)), a;
632
+ function Mn(e, t, n, r) {
633
+ var i = Wr(r) ? r : n(r), a = t.get(i);
634
+ return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
672
635
  }
673
- function Gn(e, t, n) {
636
+ function Nn(e, t, n) {
674
637
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
675
- return typeof a == "undefined" && (a = e.apply(this, r), t.set(i, a)), a;
638
+ return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
676
639
  }
677
- function nn(e, t, n, r, i) {
640
+ function Jt(e, t, n, r, i) {
678
641
  return n.bind(t, e, r, i);
679
642
  }
680
- function ai(e, t) {
681
- var n = e.length === 1 ? Fn : Gn;
682
- return nn(e, this, n, t.cache.create(), t.serializer);
643
+ function Zr(e, t) {
644
+ var n = e.length === 1 ? Mn : Nn;
645
+ return Jt(e, this, n, t.cache.create(), t.serializer);
683
646
  }
684
- function oi(e, t) {
685
- return nn(e, this, Gn, t.cache.create(), t.serializer);
647
+ function qr(e, t) {
648
+ return Jt(e, this, Nn, t.cache.create(), t.serializer);
686
649
  }
687
- function si(e, t) {
688
- return nn(e, this, Fn, t.cache.create(), t.serializer);
650
+ function Qr(e, t) {
651
+ return Jt(e, this, Mn, t.cache.create(), t.serializer);
689
652
  }
690
- var li = function() {
653
+ var Jr = function() {
691
654
  return JSON.stringify(arguments);
692
- }, ui = (
655
+ }, Yr = (
693
656
  /** @class */
694
657
  function() {
695
658
  function e() {
@@ -701,13 +664,13 @@ var li = function() {
701
664
  this.cache[t] = n;
702
665
  }, e;
703
666
  }()
704
- ), ci = {
667
+ ), Kr = {
705
668
  create: function() {
706
- return new ui();
669
+ return new Yr();
707
670
  }
708
- }, Ut = {
709
- variadic: oi,
710
- monadic: si
671
+ }, Mt = {
672
+ variadic: qr,
673
+ monadic: Qr
711
674
  }, R;
712
675
  (function(e) {
713
676
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
@@ -716,47 +679,47 @@ var G;
716
679
  (function(e) {
717
680
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
718
681
  })(G || (G = {}));
719
- var Fe;
682
+ var Ue;
720
683
  (function(e) {
721
684
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
722
- })(Fe || (Fe = {}));
723
- function dn(e) {
685
+ })(Ue || (Ue = {}));
686
+ function sn(e) {
724
687
  return e.type === G.literal;
725
688
  }
726
- function hi(e) {
689
+ function ei(e) {
727
690
  return e.type === G.argument;
728
691
  }
729
- function $n(e) {
692
+ function In(e) {
730
693
  return e.type === G.number;
731
694
  }
732
- function jn(e) {
695
+ function Pn(e) {
733
696
  return e.type === G.date;
734
697
  }
735
- function kn(e) {
698
+ function Dn(e) {
736
699
  return e.type === G.time;
737
700
  }
738
- function Vn(e) {
701
+ function Un(e) {
739
702
  return e.type === G.select;
740
703
  }
741
- function Xn(e) {
704
+ function Fn(e) {
742
705
  return e.type === G.plural;
743
706
  }
744
- function fi(e) {
707
+ function ti(e) {
745
708
  return e.type === G.pound;
746
709
  }
747
- function zn(e) {
710
+ function Gn(e) {
748
711
  return e.type === G.tag;
749
712
  }
750
- function Wn(e) {
751
- return !!(e && typeof e == "object" && e.type === Fe.number);
713
+ function $n(e) {
714
+ return !!(e && typeof e == "object" && e.type === Ue.number);
752
715
  }
753
- function zt(e) {
754
- return !!(e && typeof e == "object" && e.type === Fe.dateTime);
716
+ function $t(e) {
717
+ return !!(e && typeof e == "object" && e.type === Ue.dateTime);
755
718
  }
756
- var Zn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, di = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
757
- function pi(e) {
719
+ var kn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ni = /(?:[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;
720
+ function ri(e) {
758
721
  var t = {};
759
- return e.replace(di, function(n) {
722
+ return e.replace(ni, function(n) {
760
723
  var r = n.length;
761
724
  switch (n[0]) {
762
725
  case "G":
@@ -845,36 +808,36 @@ function pi(e) {
845
808
  return "";
846
809
  }), t;
847
810
  }
848
- var mi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
849
- function gi(e) {
811
+ var ii = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
812
+ function ai(e) {
850
813
  if (e.length === 0)
851
814
  throw new Error("Number skeleton cannot be empty");
852
- for (var t = e.split(mi).filter(function(y) {
815
+ for (var t = e.split(ii).filter(function(y) {
853
816
  return y.length > 0;
854
817
  }), n = [], r = 0, i = t; r < i.length; r++) {
855
818
  var a = i[r], l = a.split("/");
856
819
  if (l.length === 0)
857
820
  throw new Error("Invalid number skeleton");
858
- for (var o = l[0], c = l.slice(1), u = 0, d = c; u < d.length; u++) {
821
+ for (var s = l[0], h = l.slice(1), u = 0, d = h; u < d.length; u++) {
859
822
  var b = d[u];
860
823
  if (b.length === 0)
861
824
  throw new Error("Invalid number skeleton");
862
825
  }
863
- n.push({ stem: o, options: c });
826
+ n.push({ stem: s, options: h });
864
827
  }
865
828
  return n;
866
829
  }
867
- function bi(e) {
830
+ function oi(e) {
868
831
  return e.replace(/^(.*?)-/, "");
869
832
  }
870
- var pn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, qn = /^(@+)?(\+|#+)?[rs]?$/g, yi = /(\*)(0+)|(#+)(0+)|(0+)/g, Qn = /^(0+)$/;
871
- function mn(e) {
833
+ var ln = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jn = /^(@+)?(\+|#+)?[rs]?$/g, si = /(\*)(0+)|(#+)(0+)|(0+)/g, Vn = /^(0+)$/;
834
+ function un(e) {
872
835
  var t = {};
873
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(qn, function(n, r, i) {
836
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jn, function(n, r, i) {
874
837
  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)), "";
875
838
  }), t;
876
839
  }
877
- function Jn(e) {
840
+ function Xn(e) {
878
841
  switch (e) {
879
842
  case "sign-auto":
880
843
  return {
@@ -914,7 +877,7 @@ function Jn(e) {
914
877
  };
915
878
  }
916
879
  }
917
- function vi(e) {
880
+ function li(e) {
918
881
  var t;
919
882
  if (e[0] === "E" && e[1] === "E" ? (t = {
920
883
  notation: "engineering"
@@ -922,17 +885,17 @@ function vi(e) {
922
885
  notation: "scientific"
923
886
  }, e = e.slice(1)), t) {
924
887
  var n = e.slice(0, 2);
925
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qn.test(e))
888
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Vn.test(e))
926
889
  throw new Error("Malformed concise eng/scientific notation");
927
890
  t.minimumIntegerDigits = e.length;
928
891
  }
929
892
  return t;
930
893
  }
931
- function gn(e) {
932
- var t = {}, n = Jn(e);
894
+ function cn(e) {
895
+ var t = {}, n = Xn(e);
933
896
  return n || t;
934
897
  }
935
- function Ei(e) {
898
+ function ui(e) {
936
899
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
937
900
  var i = r[n];
938
901
  switch (i.stem) {
@@ -956,7 +919,7 @@ function Ei(e) {
956
919
  continue;
957
920
  case "measure-unit":
958
921
  case "unit":
959
- t.style = "unit", t.unit = bi(i.options[0]);
922
+ t.style = "unit", t.unit = oi(i.options[0]);
960
923
  continue;
961
924
  case "compact-short":
962
925
  case "K":
@@ -967,13 +930,13 @@ function Ei(e) {
967
930
  t.notation = "compact", t.compactDisplay = "long";
968
931
  continue;
969
932
  case "scientific":
970
- t = I(I(I({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
971
- return I(I({}, c), gn(u));
933
+ t = I(I(I({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
934
+ return I(I({}, h), cn(u));
972
935
  }, {}));
973
936
  continue;
974
937
  case "engineering":
975
- t = I(I(I({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
976
- return I(I({}, c), gn(u));
938
+ t = I(I(I({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
939
+ return I(I({}, h), cn(u));
977
940
  }, {}));
978
941
  continue;
979
942
  case "notation-simple":
@@ -1018,45 +981,45 @@ function Ei(e) {
1018
981
  case "integer-width":
1019
982
  if (i.options.length > 1)
1020
983
  throw new RangeError("integer-width stems only accept a single optional option");
1021
- i.options[0].replace(yi, function(c, u, d, b, y, T) {
984
+ i.options[0].replace(si, function(h, u, d, b, y, B) {
1022
985
  if (u)
1023
986
  t.minimumIntegerDigits = d.length;
1024
987
  else {
1025
988
  if (b && y)
1026
989
  throw new Error("We currently do not support maximum integer digits");
1027
- if (T)
990
+ if (B)
1028
991
  throw new Error("We currently do not support exact integer digits");
1029
992
  }
1030
993
  return "";
1031
994
  });
1032
995
  continue;
1033
996
  }
1034
- if (Qn.test(i.stem)) {
997
+ if (Vn.test(i.stem)) {
1035
998
  t.minimumIntegerDigits = i.stem.length;
1036
999
  continue;
1037
1000
  }
1038
- if (pn.test(i.stem)) {
1001
+ if (ln.test(i.stem)) {
1039
1002
  if (i.options.length > 1)
1040
1003
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1041
- i.stem.replace(pn, function(c, u, d, b, y, T) {
1042
- return d === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : y && T ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + T.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1004
+ i.stem.replace(ln, function(h, u, d, b, y, B) {
1005
+ return d === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : y && B ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + B.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1043
1006
  });
1044
1007
  var a = i.options[0];
1045
- a === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = I(I({}, t), mn(a)));
1008
+ a === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = I(I({}, t), un(a)));
1046
1009
  continue;
1047
1010
  }
1048
- if (qn.test(i.stem)) {
1049
- t = I(I({}, t), mn(i.stem));
1011
+ if (jn.test(i.stem)) {
1012
+ t = I(I({}, t), un(i.stem));
1050
1013
  continue;
1051
1014
  }
1052
- var l = Jn(i.stem);
1015
+ var l = Xn(i.stem);
1053
1016
  l && (t = I(I({}, t), l));
1054
- var o = vi(i.stem);
1055
- o && (t = I(I({}, t), o));
1017
+ var s = li(i.stem);
1018
+ s && (t = I(I({}, t), s));
1056
1019
  }
1057
1020
  return t;
1058
1021
  }
1059
- var ut = {
1022
+ var lt = {
1060
1023
  "001": [
1061
1024
  "H",
1062
1025
  "h"
@@ -2471,22 +2434,22 @@ var ut = {
2471
2434
  "h"
2472
2435
  ]
2473
2436
  };
2474
- function xi(e, t) {
2437
+ function ci(e, t) {
2475
2438
  for (var n = "", r = 0; r < e.length; r++) {
2476
2439
  var i = e.charAt(r);
2477
2440
  if (i === "j") {
2478
2441
  for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2479
2442
  a++, r++;
2480
- var l = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), c = "a", u = _i(t);
2481
- for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
2482
- n += c;
2443
+ var l = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), h = "a", u = hi(t);
2444
+ for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2445
+ n += h;
2483
2446
  for (; l-- > 0; )
2484
2447
  n = u + n;
2485
2448
  } else i === "J" ? n += "H" : n += i;
2486
2449
  }
2487
2450
  return n;
2488
2451
  }
2489
- function _i(e) {
2452
+ function hi(e) {
2490
2453
  var t = e.hourCycle;
2491
2454
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2492
2455
  e.hourCycles && // @ts-ignore
@@ -2505,23 +2468,23 @@ function _i(e) {
2505
2468
  }
2506
2469
  var n = e.language, r;
2507
2470
  n !== "root" && (r = e.maximize().region);
2508
- var i = ut[r || ""] || ut[n || ""] || ut["".concat(n, "-001")] || ut["001"];
2471
+ var i = lt[r || ""] || lt[n || ""] || lt["".concat(n, "-001")] || lt["001"];
2509
2472
  return i[0];
2510
2473
  }
2511
- var Ft, Bi = new RegExp("^".concat(Zn.source, "*")), Ti = new RegExp("".concat(Zn.source, "*$"));
2474
+ var Nt, fi = new RegExp("^".concat(kn.source, "*")), di = new RegExp("".concat(kn.source, "*$"));
2512
2475
  function L(e, t) {
2513
2476
  return { start: e, end: t };
2514
2477
  }
2515
- var wi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Si = !!String.fromCodePoint, Ai = !!Object.fromEntries, Ci = !!String.prototype.codePointAt, Hi = !!String.prototype.trimStart, Oi = !!String.prototype.trimEnd, Ri = !!Number.isSafeInteger, Li = Ri ? Number.isSafeInteger : function(e) {
2478
+ var pi = !!String.prototype.startsWith && "_a".startsWith("a", 1), mi = !!String.fromCodePoint, gi = !!Object.fromEntries, bi = !!String.prototype.codePointAt, yi = !!String.prototype.trimStart, vi = !!String.prototype.trimEnd, Ei = !!Number.isSafeInteger, xi = Ei ? Number.isSafeInteger : function(e) {
2516
2479
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2517
- }, Wt = !0;
2480
+ }, kt = !0;
2518
2481
  try {
2519
- var Mi = Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2520
- Wt = ((Ft = Mi.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
2521
- } catch (e) {
2522
- Wt = !1;
2482
+ var _i = Wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2483
+ kt = ((Nt = _i.exec("a")) === null || Nt === void 0 ? void 0 : Nt[0]) === "a";
2484
+ } catch {
2485
+ kt = !1;
2523
2486
  }
2524
- var bn = wi ? (
2487
+ var hn = pi ? (
2525
2488
  // Native
2526
2489
  function(t, n, r) {
2527
2490
  return t.startsWith(n, r);
@@ -2531,7 +2494,7 @@ var bn = wi ? (
2531
2494
  function(t, n, r) {
2532
2495
  return t.slice(r, r + n.length) === n;
2533
2496
  }
2534
- ), Zt = Si ? String.fromCodePoint : (
2497
+ ), jt = mi ? String.fromCodePoint : (
2535
2498
  // IE11
2536
2499
  function() {
2537
2500
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2543,19 +2506,19 @@ var bn = wi ? (
2543
2506
  }
2544
2507
  return r;
2545
2508
  }
2546
- ), yn = (
2509
+ ), fn = (
2547
2510
  // native
2548
- Ai ? Object.fromEntries : (
2511
+ gi ? Object.fromEntries : (
2549
2512
  // Ponyfill
2550
2513
  function(t) {
2551
2514
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
2552
- var a = i[r], l = a[0], o = a[1];
2553
- n[l] = o;
2515
+ var a = i[r], l = a[0], s = a[1];
2516
+ n[l] = s;
2554
2517
  }
2555
2518
  return n;
2556
2519
  }
2557
2520
  )
2558
- ), Yn = Ci ? (
2521
+ ), zn = bi ? (
2559
2522
  // Native
2560
2523
  function(t, n) {
2561
2524
  return t.codePointAt(n);
@@ -2569,7 +2532,7 @@ var bn = wi ? (
2569
2532
  return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2570
2533
  }
2571
2534
  }
2572
- ), Ni = Hi ? (
2535
+ ), Bi = yi ? (
2573
2536
  // Native
2574
2537
  function(t) {
2575
2538
  return t.trimStart();
@@ -2577,9 +2540,9 @@ var bn = wi ? (
2577
2540
  ) : (
2578
2541
  // Ponyfill
2579
2542
  function(t) {
2580
- return t.replace(Bi, "");
2543
+ return t.replace(fi, "");
2581
2544
  }
2582
- ), Ii = Oi ? (
2545
+ ), Ti = vi ? (
2583
2546
  // Native
2584
2547
  function(t) {
2585
2548
  return t.trimEnd();
@@ -2587,32 +2550,32 @@ var bn = wi ? (
2587
2550
  ) : (
2588
2551
  // Ponyfill
2589
2552
  function(t) {
2590
- return t.replace(Ti, "");
2553
+ return t.replace(di, "");
2591
2554
  }
2592
2555
  );
2593
- function Kn(e, t) {
2556
+ function Wn(e, t) {
2594
2557
  return new RegExp(e, t);
2595
2558
  }
2596
- var qt;
2597
- if (Wt) {
2598
- var vn = Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2599
- qt = function(t, n) {
2559
+ var Vt;
2560
+ if (kt) {
2561
+ var dn = Wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2562
+ Vt = function(t, n) {
2600
2563
  var r;
2601
- vn.lastIndex = n;
2602
- var i = vn.exec(t);
2564
+ dn.lastIndex = n;
2565
+ var i = dn.exec(t);
2603
2566
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2604
2567
  };
2605
2568
  } else
2606
- qt = function(t, n) {
2569
+ Vt = function(t, n) {
2607
2570
  for (var r = []; ; ) {
2608
- var i = Yn(t, n);
2609
- if (i === void 0 || er(i) || Fi(i))
2571
+ var i = zn(t, n);
2572
+ if (i === void 0 || Zn(i) || Ci(i))
2610
2573
  break;
2611
2574
  r.push(i), n += i >= 65536 ? 2 : 1;
2612
2575
  }
2613
- return Zt.apply(void 0, r);
2576
+ return jt.apply(void 0, r);
2614
2577
  };
2615
- var Pi = (
2578
+ var wi = (
2616
2579
  /** @class */
2617
2580
  function() {
2618
2581
  function e(t, n) {
@@ -2634,16 +2597,16 @@ var Pi = (
2634
2597
  if (a === 125 && t > 0)
2635
2598
  break;
2636
2599
  if (a === 35 && (n === "plural" || n === "selectordinal")) {
2637
- var o = this.clonePosition();
2600
+ var s = this.clonePosition();
2638
2601
  this.bump(), i.push({
2639
2602
  type: G.pound,
2640
- location: L(o, this.clonePosition())
2603
+ location: L(s, this.clonePosition())
2641
2604
  });
2642
2605
  } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
2643
2606
  if (r)
2644
2607
  break;
2645
2608
  return this.error(R.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
2646
- } else if (a === 60 && !this.ignoreTag && Qt(this.peek() || 0)) {
2609
+ } else if (a === 60 && !this.ignoreTag && Xt(this.peek() || 0)) {
2647
2610
  var l = this.parseTag(t, n);
2648
2611
  if (l.err)
2649
2612
  return l;
@@ -2674,12 +2637,12 @@ var Pi = (
2674
2637
  var a = this.parseMessage(t + 1, n, !0);
2675
2638
  if (a.err)
2676
2639
  return a;
2677
- var l = a.val, o = this.clonePosition();
2640
+ var l = a.val, s = this.clonePosition();
2678
2641
  if (this.bumpIf("</")) {
2679
- if (this.isEOF() || !Qt(this.char()))
2680
- return this.error(R.INVALID_TAG, L(o, this.clonePosition()));
2681
- var c = this.clonePosition(), u = this.parseTagName();
2682
- return i !== u ? this.error(R.UNMATCHED_CLOSING_TAG, L(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2642
+ if (this.isEOF() || !Xt(this.char()))
2643
+ return this.error(R.INVALID_TAG, L(s, this.clonePosition()));
2644
+ var h = this.clonePosition(), u = this.parseTagName();
2645
+ return i !== u ? this.error(R.UNMATCHED_CLOSING_TAG, L(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2683
2646
  val: {
2684
2647
  type: G.tag,
2685
2648
  value: i,
@@ -2687,14 +2650,14 @@ var Pi = (
2687
2650
  location: L(r, this.clonePosition())
2688
2651
  },
2689
2652
  err: null
2690
- } : this.error(R.INVALID_TAG, L(o, this.clonePosition())));
2653
+ } : this.error(R.INVALID_TAG, L(s, this.clonePosition())));
2691
2654
  } else
2692
2655
  return this.error(R.UNCLOSED_TAG, L(r, this.clonePosition()));
2693
2656
  } else
2694
2657
  return this.error(R.INVALID_TAG, L(r, this.clonePosition()));
2695
2658
  }, e.prototype.parseTagName = function() {
2696
2659
  var t = this.offset();
2697
- for (this.bump(); !this.isEOF() && Ui(this.char()); )
2660
+ for (this.bump(); !this.isEOF() && Ai(this.char()); )
2698
2661
  this.bump();
2699
2662
  return this.message.slice(t, this.offset());
2700
2663
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2709,21 +2672,21 @@ var Pi = (
2709
2672
  i += l;
2710
2673
  continue;
2711
2674
  }
2712
- var o = this.tryParseLeftAngleBracket();
2713
- if (o) {
2714
- i += o;
2675
+ var s = this.tryParseLeftAngleBracket();
2676
+ if (s) {
2677
+ i += s;
2715
2678
  continue;
2716
2679
  }
2717
2680
  break;
2718
2681
  }
2719
- var c = L(r, this.clonePosition());
2682
+ var h = L(r, this.clonePosition());
2720
2683
  return {
2721
- val: { type: G.literal, value: i, location: c },
2684
+ val: { type: G.literal, value: i, location: h },
2722
2685
  err: null
2723
2686
  };
2724
2687
  }, e.prototype.tryParseLeftAngleBracket = function() {
2725
2688
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2726
- !Di(this.peek() || 0)) ? (this.bump(), "<") : null;
2689
+ !Si(this.peek() || 0)) ? (this.bump(), "<") : null;
2727
2690
  }, e.prototype.tryParseQuote = function(t) {
2728
2691
  if (this.isEOF() || this.char() !== 39)
2729
2692
  return null;
@@ -2757,12 +2720,12 @@ var Pi = (
2757
2720
  n.push(r);
2758
2721
  this.bump();
2759
2722
  }
2760
- return Zt.apply(void 0, n);
2723
+ return jt.apply(void 0, n);
2761
2724
  }, e.prototype.tryParseUnquoted = function(t, n) {
2762
2725
  if (this.isEOF())
2763
2726
  return null;
2764
2727
  var r = this.char();
2765
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Zt(r));
2728
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), jt(r));
2766
2729
  }, e.prototype.parseArgument = function(t, n) {
2767
2730
  var r = this.clonePosition();
2768
2731
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2791,15 +2754,15 @@ var Pi = (
2791
2754
  return this.error(R.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2792
2755
  }
2793
2756
  }, e.prototype.parseIdentifierIfPossible = function() {
2794
- var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
2757
+ var t = this.clonePosition(), n = this.offset(), r = Vt(this.message, n), i = n + r.length;
2795
2758
  this.bumpTo(i);
2796
2759
  var a = this.clonePosition(), l = L(t, a);
2797
2760
  return { value: r, location: l };
2798
2761
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2799
- var a, l = this.clonePosition(), o = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2800
- switch (o) {
2762
+ var a, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2763
+ switch (s) {
2801
2764
  case "":
2802
- return this.error(R.EXPECT_ARGUMENT_TYPE, L(l, c));
2765
+ return this.error(R.EXPECT_ARGUMENT_TYPE, L(l, h));
2803
2766
  case "number":
2804
2767
  case "date":
2805
2768
  case "time": {
@@ -2810,35 +2773,35 @@ var Pi = (
2810
2773
  var d = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
2811
2774
  if (b.err)
2812
2775
  return b;
2813
- var y = Ii(b.val);
2776
+ var y = Ti(b.val);
2814
2777
  if (y.length === 0)
2815
2778
  return this.error(R.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
2816
- var T = L(d, this.clonePosition());
2817
- u = { style: y, styleLocation: T };
2779
+ var B = L(d, this.clonePosition());
2780
+ u = { style: y, styleLocation: B };
2818
2781
  }
2819
- var _ = this.tryParseArgumentClose(i);
2820
- if (_.err)
2821
- return _;
2782
+ var x = this.tryParseArgumentClose(i);
2783
+ if (x.err)
2784
+ return x;
2822
2785
  var H = L(i, this.clonePosition());
2823
- if (u && bn(u == null ? void 0 : u.style, "::", 0)) {
2824
- var B = Ni(u.style.slice(2));
2825
- if (o === "number") {
2826
- var b = this.parseNumberSkeletonFromString(B, u.styleLocation);
2786
+ if (u && hn(u?.style, "::", 0)) {
2787
+ var _ = Bi(u.style.slice(2));
2788
+ if (s === "number") {
2789
+ var b = this.parseNumberSkeletonFromString(_, u.styleLocation);
2827
2790
  return b.err ? b : {
2828
2791
  val: { type: G.number, value: r, location: H, style: b.val },
2829
2792
  err: null
2830
2793
  };
2831
2794
  } else {
2832
- if (B.length === 0)
2795
+ if (_.length === 0)
2833
2796
  return this.error(R.EXPECT_DATE_TIME_SKELETON, H);
2834
- var A = B;
2835
- this.locale && (A = xi(B, this.locale));
2797
+ var A = _;
2798
+ this.locale && (A = ci(_, this.locale));
2836
2799
  var y = {
2837
- type: Fe.dateTime,
2800
+ type: Ue.dateTime,
2838
2801
  pattern: A,
2839
2802
  location: u.styleLocation,
2840
- parsedOptions: this.shouldParseSkeletons ? pi(A) : {}
2841
- }, P = o === "date" ? G.date : G.time;
2803
+ parsedOptions: this.shouldParseSkeletons ? ri(A) : {}
2804
+ }, P = s === "date" ? G.date : G.time;
2842
2805
  return {
2843
2806
  val: { type: P, value: r, location: H, style: y },
2844
2807
  err: null
@@ -2847,10 +2810,10 @@ var Pi = (
2847
2810
  }
2848
2811
  return {
2849
2812
  val: {
2850
- type: o === "number" ? G.number : o === "date" ? G.date : G.time,
2813
+ type: s === "number" ? G.number : s === "date" ? G.date : G.time,
2851
2814
  value: r,
2852
2815
  location: H,
2853
- style: (a = u == null ? void 0 : u.style) !== null && a !== void 0 ? a : null
2816
+ style: (a = u?.style) !== null && a !== void 0 ? a : null
2854
2817
  },
2855
2818
  err: null
2856
2819
  };
@@ -2862,28 +2825,28 @@ var Pi = (
2862
2825
  if (this.bumpSpace(), !this.bumpIf(","))
2863
2826
  return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS, L(O, I({}, O)));
2864
2827
  this.bumpSpace();
2865
- var k = this.parseIdentifierIfPossible(), X = 0;
2866
- if (o !== "select" && k.value === "offset") {
2828
+ var j = this.parseIdentifierIfPossible(), X = 0;
2829
+ if (s !== "select" && j.value === "offset") {
2867
2830
  if (!this.bumpIf(":"))
2868
2831
  return this.error(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
2869
2832
  this.bumpSpace();
2870
2833
  var b = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, R.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2871
2834
  if (b.err)
2872
2835
  return b;
2873
- this.bumpSpace(), k = this.parseIdentifierIfPossible(), X = b.val;
2836
+ this.bumpSpace(), j = this.parseIdentifierIfPossible(), X = b.val;
2874
2837
  }
2875
- var ne = this.tryParsePluralOrSelectOptions(t, o, n, k);
2838
+ var ne = this.tryParsePluralOrSelectOptions(t, s, n, j);
2876
2839
  if (ne.err)
2877
2840
  return ne;
2878
- var _ = this.tryParseArgumentClose(i);
2879
- if (_.err)
2880
- return _;
2841
+ var x = this.tryParseArgumentClose(i);
2842
+ if (x.err)
2843
+ return x;
2881
2844
  var W = L(i, this.clonePosition());
2882
- return o === "select" ? {
2845
+ return s === "select" ? {
2883
2846
  val: {
2884
2847
  type: G.select,
2885
2848
  value: r,
2886
- options: yn(ne.val),
2849
+ options: fn(ne.val),
2887
2850
  location: W
2888
2851
  },
2889
2852
  err: null
@@ -2891,16 +2854,16 @@ var Pi = (
2891
2854
  val: {
2892
2855
  type: G.plural,
2893
2856
  value: r,
2894
- options: yn(ne.val),
2857
+ options: fn(ne.val),
2895
2858
  offset: X,
2896
- pluralType: o === "plural" ? "cardinal" : "ordinal",
2859
+ pluralType: s === "plural" ? "cardinal" : "ordinal",
2897
2860
  location: W
2898
2861
  },
2899
2862
  err: null
2900
2863
  };
2901
2864
  }
2902
2865
  default:
2903
- return this.error(R.INVALID_ARGUMENT_TYPE, L(l, c));
2866
+ return this.error(R.INVALID_ARGUMENT_TYPE, L(l, h));
2904
2867
  }
2905
2868
  }, e.prototype.tryParseArgumentClose = function(t) {
2906
2869
  return this.isEOF() || this.char() !== 125 ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2942,21 +2905,21 @@ var Pi = (
2942
2905
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2943
2906
  var r = [];
2944
2907
  try {
2945
- r = gi(t);
2946
- } catch (i) {
2908
+ r = ai(t);
2909
+ } catch {
2947
2910
  return this.error(R.INVALID_NUMBER_SKELETON, n);
2948
2911
  }
2949
2912
  return {
2950
2913
  val: {
2951
- type: Fe.number,
2914
+ type: Ue.number,
2952
2915
  tokens: r,
2953
2916
  location: n,
2954
- parsedOptions: this.shouldParseSkeletons ? Ei(r) : {}
2917
+ parsedOptions: this.shouldParseSkeletons ? ui(r) : {}
2955
2918
  },
2956
2919
  err: null
2957
2920
  };
2958
2921
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2959
- for (var a, l = !1, o = [], c = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
2922
+ for (var a, l = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
2960
2923
  if (u.length === 0) {
2961
2924
  var b = this.clonePosition();
2962
2925
  if (n !== "select" && this.bumpIf("=")) {
@@ -2967,39 +2930,39 @@ var Pi = (
2967
2930
  } else
2968
2931
  break;
2969
2932
  }
2970
- if (c.has(u))
2933
+ if (h.has(u))
2971
2934
  return this.error(n === "select" ? R.DUPLICATE_SELECT_ARGUMENT_SELECTOR : R.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
2972
2935
  u === "other" && (l = !0), this.bumpSpace();
2973
- var T = this.clonePosition();
2936
+ var B = this.clonePosition();
2974
2937
  if (!this.bumpIf("{"))
2975
2938
  return this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : R.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
2976
- var _ = this.parseMessage(t + 1, n, r);
2977
- if (_.err)
2978
- return _;
2979
- var H = this.tryParseArgumentClose(T);
2939
+ var x = this.parseMessage(t + 1, n, r);
2940
+ if (x.err)
2941
+ return x;
2942
+ var H = this.tryParseArgumentClose(B);
2980
2943
  if (H.err)
2981
2944
  return H;
2982
- o.push([
2945
+ s.push([
2983
2946
  u,
2984
2947
  {
2985
- value: _.val,
2986
- location: L(T, this.clonePosition())
2948
+ value: x.val,
2949
+ location: L(B, this.clonePosition())
2987
2950
  }
2988
- ]), c.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, d = a.location;
2951
+ ]), h.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, d = a.location;
2989
2952
  }
2990
- return o.length === 0 ? this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR : R.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(R.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
2953
+ return s.length === 0 ? this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR : R.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(R.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2991
2954
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
2992
2955
  var r = 1, i = this.clonePosition();
2993
2956
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
2994
2957
  for (var a = !1, l = 0; !this.isEOF(); ) {
2995
- var o = this.char();
2996
- if (o >= 48 && o <= 57)
2997
- a = !0, l = l * 10 + (o - 48), this.bump();
2958
+ var s = this.char();
2959
+ if (s >= 48 && s <= 57)
2960
+ a = !0, l = l * 10 + (s - 48), this.bump();
2998
2961
  else
2999
2962
  break;
3000
2963
  }
3001
- var c = L(i, this.clonePosition());
3002
- return a ? (l *= r, Li(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
2964
+ var h = L(i, this.clonePosition());
2965
+ return a ? (l *= r, xi(l) ? { val: l, err: null } : this.error(n, h)) : this.error(t, h);
3003
2966
  }, e.prototype.offset = function() {
3004
2967
  return this.position.offset;
3005
2968
  }, e.prototype.isEOF = function() {
@@ -3014,7 +2977,7 @@ var Pi = (
3014
2977
  var t = this.position.offset;
3015
2978
  if (t >= this.message.length)
3016
2979
  throw Error("out of bound");
3017
- var n = Yn(this.message, t);
2980
+ var n = zn(this.message, t);
3018
2981
  if (n === void 0)
3019
2982
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3020
2983
  return n;
@@ -3033,7 +2996,7 @@ var Pi = (
3033
2996
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3034
2997
  }
3035
2998
  }, e.prototype.bumpIf = function(t) {
3036
- if (bn(this.message, t, this.offset())) {
2999
+ if (hn(this.message, t, this.offset())) {
3037
3000
  for (var n = 0; n < t.length; n++)
3038
3001
  this.bump();
3039
3002
  return !0;
@@ -3055,56 +3018,56 @@ var Pi = (
3055
3018
  break;
3056
3019
  }
3057
3020
  }, e.prototype.bumpSpace = function() {
3058
- for (; !this.isEOF() && er(this.char()); )
3021
+ for (; !this.isEOF() && Zn(this.char()); )
3059
3022
  this.bump();
3060
3023
  }, e.prototype.peek = function() {
3061
3024
  if (this.isEOF())
3062
3025
  return null;
3063
3026
  var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3064
- return r != null ? r : null;
3027
+ return r ?? null;
3065
3028
  }, e;
3066
3029
  }()
3067
3030
  );
3068
- function Qt(e) {
3031
+ function Xt(e) {
3069
3032
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3070
3033
  }
3071
- function Di(e) {
3072
- return Qt(e) || e === 47;
3034
+ function Si(e) {
3035
+ return Xt(e) || e === 47;
3073
3036
  }
3074
- function Ui(e) {
3037
+ function Ai(e) {
3075
3038
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3076
3039
  }
3077
- function er(e) {
3040
+ function Zn(e) {
3078
3041
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3079
3042
  }
3080
- function Fi(e) {
3043
+ function Ci(e) {
3081
3044
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3082
3045
  }
3083
- function Jt(e) {
3046
+ function zt(e) {
3084
3047
  e.forEach(function(t) {
3085
- if (delete t.location, Vn(t) || Xn(t))
3048
+ if (delete t.location, Un(t) || Fn(t))
3086
3049
  for (var n in t.options)
3087
- delete t.options[n].location, Jt(t.options[n].value);
3088
- else $n(t) && Wn(t.style) || (jn(t) || kn(t)) && zt(t.style) ? delete t.style.location : zn(t) && Jt(t.children);
3050
+ delete t.options[n].location, zt(t.options[n].value);
3051
+ else In(t) && $n(t.style) || (Pn(t) || Dn(t)) && $t(t.style) ? delete t.style.location : Gn(t) && zt(t.children);
3089
3052
  });
3090
3053
  }
3091
- function Gi(e, t) {
3054
+ function Hi(e, t) {
3092
3055
  t === void 0 && (t = {}), t = I({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3093
- var n = new Pi(e, t).parse();
3056
+ var n = new wi(e, t).parse();
3094
3057
  if (n.err) {
3095
3058
  var r = SyntaxError(R[n.err.kind]);
3096
3059
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3097
3060
  }
3098
- return t != null && t.captureLocation || Jt(n.val), n.val;
3061
+ return t?.captureLocation || zt(n.val), n.val;
3099
3062
  }
3100
- var Ge;
3063
+ var Fe;
3101
3064
  (function(e) {
3102
3065
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3103
- })(Ge || (Ge = {}));
3104
- var Et = (
3066
+ })(Fe || (Fe = {}));
3067
+ var vt = (
3105
3068
  /** @class */
3106
3069
  function(e) {
3107
- vt(t, e);
3070
+ yt(t, e);
3108
3071
  function t(n, r, i) {
3109
3072
  var a = e.call(this, n) || this;
3110
3073
  return a.code = r, a.originalMessage = i, a;
@@ -3113,65 +3076,65 @@ var Et = (
3113
3076
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3114
3077
  }, t;
3115
3078
  }(Error)
3116
- ), En = (
3079
+ ), pn = (
3117
3080
  /** @class */
3118
3081
  function(e) {
3119
- vt(t, e);
3082
+ yt(t, e);
3120
3083
  function t(n, r, i, a) {
3121
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, a) || this;
3084
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Fe.INVALID_VALUE, a) || this;
3122
3085
  }
3123
3086
  return t;
3124
- }(Et)
3125
- ), $i = (
3087
+ }(vt)
3088
+ ), Oi = (
3126
3089
  /** @class */
3127
3090
  function(e) {
3128
- vt(t, e);
3091
+ yt(t, e);
3129
3092
  function t(n, r, i) {
3130
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ge.INVALID_VALUE, i) || this;
3093
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Fe.INVALID_VALUE, i) || this;
3131
3094
  }
3132
3095
  return t;
3133
- }(Et)
3134
- ), ji = (
3096
+ }(vt)
3097
+ ), Ri = (
3135
3098
  /** @class */
3136
3099
  function(e) {
3137
- vt(t, e);
3100
+ yt(t, e);
3138
3101
  function t(n, r) {
3139
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ge.MISSING_VALUE, r) || this;
3102
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Fe.MISSING_VALUE, r) || this;
3140
3103
  }
3141
3104
  return t;
3142
- }(Et)
3105
+ }(vt)
3143
3106
  ), te;
3144
3107
  (function(e) {
3145
3108
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3146
3109
  })(te || (te = {}));
3147
- function ki(e) {
3110
+ function Li(e) {
3148
3111
  return e.length < 2 ? e : e.reduce(function(t, n) {
3149
3112
  var r = t[t.length - 1];
3150
3113
  return !r || r.type !== te.literal || n.type !== te.literal ? t.push(n) : r.value += n.value, t;
3151
3114
  }, []);
3152
3115
  }
3153
- function Vi(e) {
3116
+ function Mi(e) {
3154
3117
  return typeof e == "function";
3155
3118
  }
3156
- function ht(e, t, n, r, i, a, l) {
3157
- if (e.length === 1 && dn(e[0]))
3119
+ function ct(e, t, n, r, i, a, l) {
3120
+ if (e.length === 1 && sn(e[0]))
3158
3121
  return [
3159
3122
  {
3160
3123
  type: te.literal,
3161
3124
  value: e[0].value
3162
3125
  }
3163
3126
  ];
3164
- for (var o = [], c = 0, u = e; c < u.length; c++) {
3165
- var d = u[c];
3166
- if (dn(d)) {
3167
- o.push({
3127
+ for (var s = [], h = 0, u = e; h < u.length; h++) {
3128
+ var d = u[h];
3129
+ if (sn(d)) {
3130
+ s.push({
3168
3131
  type: te.literal,
3169
3132
  value: d.value
3170
3133
  });
3171
3134
  continue;
3172
3135
  }
3173
- if (fi(d)) {
3174
- typeof a == "number" && o.push({
3136
+ if (ti(d)) {
3137
+ typeof a == "number" && s.push({
3175
3138
  type: te.literal,
3176
3139
  value: n.getNumberFormat(t).format(a)
3177
3140
  });
@@ -3179,89 +3142,89 @@ function ht(e, t, n, r, i, a, l) {
3179
3142
  }
3180
3143
  var b = d.value;
3181
3144
  if (!(i && b in i))
3182
- throw new ji(b, l);
3145
+ throw new Ri(b, l);
3183
3146
  var y = i[b];
3184
- if (hi(d)) {
3185
- (!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), o.push({
3147
+ if (ei(d)) {
3148
+ (!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), s.push({
3186
3149
  type: typeof y == "string" ? te.literal : te.object,
3187
3150
  value: y
3188
3151
  });
3189
3152
  continue;
3190
3153
  }
3191
- if (jn(d)) {
3192
- var T = typeof d.style == "string" ? r.date[d.style] : zt(d.style) ? d.style.parsedOptions : void 0;
3193
- o.push({
3154
+ if (Pn(d)) {
3155
+ var B = typeof d.style == "string" ? r.date[d.style] : $t(d.style) ? d.style.parsedOptions : void 0;
3156
+ s.push({
3194
3157
  type: te.literal,
3195
- value: n.getDateTimeFormat(t, T).format(y)
3158
+ value: n.getDateTimeFormat(t, B).format(y)
3196
3159
  });
3197
3160
  continue;
3198
3161
  }
3199
- if (kn(d)) {
3200
- var T = typeof d.style == "string" ? r.time[d.style] : zt(d.style) ? d.style.parsedOptions : r.time.medium;
3201
- o.push({
3162
+ if (Dn(d)) {
3163
+ var B = typeof d.style == "string" ? r.time[d.style] : $t(d.style) ? d.style.parsedOptions : r.time.medium;
3164
+ s.push({
3202
3165
  type: te.literal,
3203
- value: n.getDateTimeFormat(t, T).format(y)
3166
+ value: n.getDateTimeFormat(t, B).format(y)
3204
3167
  });
3205
3168
  continue;
3206
3169
  }
3207
- if ($n(d)) {
3208
- var T = typeof d.style == "string" ? r.number[d.style] : Wn(d.style) ? d.style.parsedOptions : void 0;
3209
- T && T.scale && (y = y * (T.scale || 1)), o.push({
3170
+ if (In(d)) {
3171
+ var B = typeof d.style == "string" ? r.number[d.style] : $n(d.style) ? d.style.parsedOptions : void 0;
3172
+ B && B.scale && (y = y * (B.scale || 1)), s.push({
3210
3173
  type: te.literal,
3211
- value: n.getNumberFormat(t, T).format(y)
3174
+ value: n.getNumberFormat(t, B).format(y)
3212
3175
  });
3213
3176
  continue;
3214
3177
  }
3215
- if (zn(d)) {
3216
- var _ = d.children, H = d.value, B = i[H];
3217
- if (!Vi(B))
3218
- throw new $i(H, "function", l);
3219
- var A = ht(_, t, n, r, i, a), P = B(A.map(function(X) {
3178
+ if (Gn(d)) {
3179
+ var x = d.children, H = d.value, _ = i[H];
3180
+ if (!Mi(_))
3181
+ throw new Oi(H, "function", l);
3182
+ var A = ct(x, t, n, r, i, a), P = _(A.map(function(X) {
3220
3183
  return X.value;
3221
3184
  }));
3222
- Array.isArray(P) || (P = [P]), o.push.apply(o, P.map(function(X) {
3185
+ Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(X) {
3223
3186
  return {
3224
3187
  type: typeof X == "string" ? te.literal : te.object,
3225
3188
  value: X
3226
3189
  };
3227
3190
  }));
3228
3191
  }
3229
- if (Vn(d)) {
3192
+ if (Un(d)) {
3230
3193
  var O = d.options[y] || d.options.other;
3231
3194
  if (!O)
3232
- throw new En(d.value, y, Object.keys(d.options), l);
3233
- o.push.apply(o, ht(O.value, t, n, r, i));
3195
+ throw new pn(d.value, y, Object.keys(d.options), l);
3196
+ s.push.apply(s, ct(O.value, t, n, r, i));
3234
3197
  continue;
3235
3198
  }
3236
- if (Xn(d)) {
3199
+ if (Fn(d)) {
3237
3200
  var O = d.options["=".concat(y)];
3238
3201
  if (!O) {
3239
3202
  if (!Intl.PluralRules)
3240
- throw new Et(`Intl.PluralRules is not available in this environment.
3203
+ throw new vt(`Intl.PluralRules is not available in this environment.
3241
3204
  Try polyfilling it using "@formatjs/intl-pluralrules"
3242
- `, Ge.MISSING_INTL_API, l);
3243
- var k = n.getPluralRules(t, { type: d.pluralType }).select(y - (d.offset || 0));
3244
- O = d.options[k] || d.options.other;
3205
+ `, Fe.MISSING_INTL_API, l);
3206
+ var j = n.getPluralRules(t, { type: d.pluralType }).select(y - (d.offset || 0));
3207
+ O = d.options[j] || d.options.other;
3245
3208
  }
3246
3209
  if (!O)
3247
- throw new En(d.value, y, Object.keys(d.options), l);
3248
- o.push.apply(o, ht(O.value, t, n, r, i, y - (d.offset || 0)));
3210
+ throw new pn(d.value, y, Object.keys(d.options), l);
3211
+ s.push.apply(s, ct(O.value, t, n, r, i, y - (d.offset || 0)));
3249
3212
  continue;
3250
3213
  }
3251
3214
  }
3252
- return ki(o);
3215
+ return Li(s);
3253
3216
  }
3254
- function Xi(e, t) {
3217
+ function Ni(e, t) {
3255
3218
  return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3256
3219
  return n[r] = I(I({}, e[r]), t[r] || {}), n;
3257
3220
  }, {})) : e;
3258
3221
  }
3259
- function zi(e, t) {
3222
+ function Ii(e, t) {
3260
3223
  return t ? Object.keys(e).reduce(function(n, r) {
3261
- return n[r] = Xi(e[r], t[r]), n;
3224
+ return n[r] = Ni(e[r], t[r]), n;
3262
3225
  }, I({}, e)) : e;
3263
3226
  }
3264
- function Gt(e) {
3227
+ function It(e) {
3265
3228
  return {
3266
3229
  create: function() {
3267
3230
  return {
@@ -3275,39 +3238,39 @@ function Gt(e) {
3275
3238
  }
3276
3239
  };
3277
3240
  }
3278
- function Wi(e) {
3241
+ function Pi(e) {
3279
3242
  return e === void 0 && (e = {
3280
3243
  number: {},
3281
3244
  dateTime: {},
3282
3245
  pluralRules: {}
3283
3246
  }), {
3284
- getNumberFormat: Dt(function() {
3247
+ getNumberFormat: Lt(function() {
3285
3248
  for (var t, n = [], r = 0; r < arguments.length; r++)
3286
3249
  n[r] = arguments[r];
3287
- return new ((t = Intl.NumberFormat).bind.apply(t, Pt([void 0], n, !1)))();
3250
+ return new ((t = Intl.NumberFormat).bind.apply(t, Rt([void 0], n, !1)))();
3288
3251
  }, {
3289
- cache: Gt(e.number),
3290
- strategy: Ut.variadic
3252
+ cache: It(e.number),
3253
+ strategy: Mt.variadic
3291
3254
  }),
3292
- getDateTimeFormat: Dt(function() {
3255
+ getDateTimeFormat: Lt(function() {
3293
3256
  for (var t, n = [], r = 0; r < arguments.length; r++)
3294
3257
  n[r] = arguments[r];
3295
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Pt([void 0], n, !1)))();
3258
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Rt([void 0], n, !1)))();
3296
3259
  }, {
3297
- cache: Gt(e.dateTime),
3298
- strategy: Ut.variadic
3260
+ cache: It(e.dateTime),
3261
+ strategy: Mt.variadic
3299
3262
  }),
3300
- getPluralRules: Dt(function() {
3263
+ getPluralRules: Lt(function() {
3301
3264
  for (var t, n = [], r = 0; r < arguments.length; r++)
3302
3265
  n[r] = arguments[r];
3303
- return new ((t = Intl.PluralRules).bind.apply(t, Pt([void 0], n, !1)))();
3266
+ return new ((t = Intl.PluralRules).bind.apply(t, Rt([void 0], n, !1)))();
3304
3267
  }, {
3305
- cache: Gt(e.pluralRules),
3306
- strategy: Ut.variadic
3268
+ cache: It(e.pluralRules),
3269
+ strategy: Mt.variadic
3307
3270
  })
3308
3271
  };
3309
3272
  }
3310
- var Zi = (
3273
+ var Di = (
3311
3274
  /** @class */
3312
3275
  function() {
3313
3276
  function e(t, n, r, i) {
@@ -3317,20 +3280,20 @@ var Zi = (
3317
3280
  number: {},
3318
3281
  dateTime: {},
3319
3282
  pluralRules: {}
3320
- }, this.format = function(c) {
3321
- var u = a.formatToParts(c);
3283
+ }, this.format = function(h) {
3284
+ var u = a.formatToParts(h);
3322
3285
  if (u.length === 1)
3323
3286
  return u[0].value;
3324
3287
  var d = u.reduce(function(b, y) {
3325
3288
  return !b.length || y.type !== te.literal || typeof b[b.length - 1] != "string" ? b.push(y.value) : b[b.length - 1] += y.value, b;
3326
3289
  }, []);
3327
3290
  return d.length <= 1 ? d[0] || "" : d;
3328
- }, this.formatToParts = function(c) {
3329
- return ht(a.ast, a.locales, a.formatters, a.formats, c, void 0, a.message);
3291
+ }, this.formatToParts = function(h) {
3292
+ return ct(a.ast, a.locales, a.formatters, a.formats, h, void 0, a.message);
3330
3293
  }, this.resolvedOptions = function() {
3331
- var c;
3294
+ var h;
3332
3295
  return {
3333
- locale: ((c = a.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3296
+ locale: ((h = a.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3334
3297
  };
3335
3298
  }, this.getAst = function() {
3336
3299
  return a.ast;
@@ -3339,13 +3302,13 @@ var Zi = (
3339
3302
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3340
3303
  var l = i || {};
3341
3304
  l.formatters;
3342
- var o = ri(l, ["formatters"]);
3343
- this.ast = e.__parse(t, I(I({}, o), { locale: this.resolvedLocale }));
3305
+ var s = zr(l, ["formatters"]);
3306
+ this.ast = e.__parse(t, I(I({}, s), { locale: this.resolvedLocale }));
3344
3307
  } else
3345
3308
  this.ast = t;
3346
3309
  if (!Array.isArray(this.ast))
3347
3310
  throw new TypeError("A message must be provided as a String or AST.");
3348
- this.formats = zi(e.formats, r), this.formatters = i && i.formatters || Wi(this.formatterCache);
3311
+ this.formats = Ii(e.formats, r), this.formatters = i && i.formatters || Pi(this.formatterCache);
3349
3312
  }
3350
3313
  return Object.defineProperty(e, "defaultLocale", {
3351
3314
  get: function() {
@@ -3354,11 +3317,11 @@ var Zi = (
3354
3317
  enumerable: !1,
3355
3318
  configurable: !0
3356
3319
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3357
- if (typeof Intl.Locale != "undefined") {
3320
+ if (!(typeof Intl.Locale > "u")) {
3358
3321
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3359
3322
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3360
3323
  }
3361
- }, e.__parse = Gi, e.formats = {
3324
+ }, e.__parse = Hi, e.formats = {
3362
3325
  number: {
3363
3326
  integer: {
3364
3327
  maximumFractionDigits: 0
@@ -3419,7 +3382,7 @@ var Zi = (
3419
3382
  }, e;
3420
3383
  }()
3421
3384
  );
3422
- function qi(e, t) {
3385
+ function Ui(e, t) {
3423
3386
  if (t == null)
3424
3387
  return;
3425
3388
  if (t in e)
@@ -3440,92 +3403,92 @@ function qi(e, t) {
3440
3403
  r = void 0;
3441
3404
  return r;
3442
3405
  }
3443
- const Se = {}, Qi = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), tr = (e, t) => {
3406
+ const we = {}, Fi = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = n), n), qn = (e, t) => {
3444
3407
  if (t == null)
3445
3408
  return;
3446
- if (t in Se && e in Se[t])
3447
- return Se[t][e];
3448
- const n = xt(t);
3409
+ if (t in we && e in we[t])
3410
+ return we[t][e];
3411
+ const n = Et(t);
3449
3412
  for (let r = 0; r < n.length; r++) {
3450
- const i = n[r], a = Yi(i, e);
3413
+ const i = n[r], a = $i(i, e);
3451
3414
  if (a)
3452
- return Qi(e, t, a);
3415
+ return Fi(e, t, a);
3453
3416
  }
3454
3417
  };
3455
- let rn;
3456
- const rt = yt({});
3457
- function Ji(e) {
3458
- return rn[e] || null;
3418
+ let Yt;
3419
+ const nt = bt({});
3420
+ function Gi(e) {
3421
+ return Yt[e] || null;
3459
3422
  }
3460
- function nr(e) {
3461
- return e in rn;
3423
+ function Qn(e) {
3424
+ return e in Yt;
3462
3425
  }
3463
- function Yi(e, t) {
3464
- if (!nr(e))
3426
+ function $i(e, t) {
3427
+ if (!Qn(e))
3465
3428
  return null;
3466
- const n = Ji(e);
3467
- return qi(n, t);
3429
+ const n = Gi(e);
3430
+ return Ui(n, t);
3468
3431
  }
3469
- function Ki(e) {
3432
+ function ki(e) {
3470
3433
  if (e == null)
3471
3434
  return;
3472
- const t = xt(e);
3435
+ const t = Et(e);
3473
3436
  for (let n = 0; n < t.length; n++) {
3474
3437
  const r = t[n];
3475
- if (nr(r))
3438
+ if (Qn(r))
3476
3439
  return r;
3477
3440
  }
3478
3441
  }
3479
- function rr(e, ...t) {
3480
- delete Se[e], rt.update((n) => (n[e] = ni.all([n[e] || {}, ...t]), n));
3442
+ function Jn(e, ...t) {
3443
+ delete we[e], nt.update((n) => (n[e] = Xr.all([n[e] || {}, ...t]), n));
3481
3444
  }
3482
3445
  ke(
3483
- [rt],
3446
+ [nt],
3484
3447
  ([e]) => Object.keys(e)
3485
3448
  );
3486
- rt.subscribe((e) => rn = e);
3487
- const ft = {};
3488
- function ea(e, t) {
3489
- ft[e].delete(t), ft[e].size === 0 && delete ft[e];
3449
+ nt.subscribe((e) => Yt = e);
3450
+ const ht = {};
3451
+ function ji(e, t) {
3452
+ ht[e].delete(t), ht[e].size === 0 && delete ht[e];
3490
3453
  }
3491
- function ir(e) {
3492
- return ft[e];
3454
+ function Yn(e) {
3455
+ return ht[e];
3493
3456
  }
3494
- function ta(e) {
3495
- return xt(e).map((t) => {
3496
- const n = ir(t);
3457
+ function Vi(e) {
3458
+ return Et(e).map((t) => {
3459
+ const n = Yn(t);
3497
3460
  return [t, n ? [...n] : []];
3498
3461
  }).filter(([, t]) => t.length > 0);
3499
3462
  }
3500
- function Yt(e) {
3501
- return e == null ? !1 : xt(e).some(
3463
+ function Wt(e) {
3464
+ return e == null ? !1 : Et(e).some(
3502
3465
  (t) => {
3503
3466
  var n;
3504
- return (n = ir(t)) == null ? void 0 : n.size;
3467
+ return (n = Yn(t)) == null ? void 0 : n.size;
3505
3468
  }
3506
3469
  );
3507
3470
  }
3508
- function na(e, t) {
3471
+ function Xi(e, t) {
3509
3472
  return Promise.all(
3510
- t.map((r) => (ea(e, r), r().then((i) => i.default || i)))
3511
- ).then((r) => rr(e, ...r));
3512
- }
3513
- const Ye = {};
3514
- function ar(e) {
3515
- if (!Yt(e))
3516
- return e in Ye ? Ye[e] : Promise.resolve();
3517
- const t = ta(e);
3518
- return Ye[e] = Promise.all(
3473
+ t.map((r) => (ji(e, r), r().then((i) => i.default || i)))
3474
+ ).then((r) => Jn(e, ...r));
3475
+ }
3476
+ const Je = {};
3477
+ function Kn(e) {
3478
+ if (!Wt(e))
3479
+ return e in Je ? Je[e] : Promise.resolve();
3480
+ const t = Vi(e);
3481
+ return Je[e] = Promise.all(
3519
3482
  t.map(
3520
- ([n, r]) => na(n, r)
3483
+ ([n, r]) => Xi(n, r)
3521
3484
  )
3522
3485
  ).then(() => {
3523
- if (Yt(e))
3524
- return ar(e);
3525
- delete Ye[e];
3526
- }), Ye[e];
3486
+ if (Wt(e))
3487
+ return Kn(e);
3488
+ delete Je[e];
3489
+ }), Je[e];
3527
3490
  }
3528
- const ra = {
3491
+ const zi = {
3529
3492
  number: {
3530
3493
  scientific: { notation: "scientific" },
3531
3494
  engineering: { notation: "engineering" },
@@ -3554,159 +3517,159 @@ const ra = {
3554
3517
  timeZoneName: "short"
3555
3518
  }
3556
3519
  }
3557
- }, ia = {
3520
+ }, Wi = {
3558
3521
  fallbackLocale: null,
3559
3522
  loadingDelay: 200,
3560
- formats: ra,
3523
+ formats: zi,
3561
3524
  warnOnMissingMessages: !0,
3562
3525
  handleMissingMessage: void 0,
3563
3526
  ignoreTag: !0
3564
- }, aa = ia;
3565
- function $e() {
3566
- return aa;
3527
+ }, Zi = Wi;
3528
+ function Ge() {
3529
+ return Zi;
3567
3530
  }
3568
- const $t = yt(!1);
3569
- var oa = Object.defineProperty, sa = Object.defineProperties, la = Object.getOwnPropertyDescriptors, xn = Object.getOwnPropertySymbols, ua = Object.prototype.hasOwnProperty, ca = Object.prototype.propertyIsEnumerable, _n = (e, t, n) => t in e ? oa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ha = (e, t) => {
3531
+ const Pt = bt(!1);
3532
+ var qi = Object.defineProperty, Qi = Object.defineProperties, Ji = Object.getOwnPropertyDescriptors, mn = Object.getOwnPropertySymbols, Yi = Object.prototype.hasOwnProperty, Ki = Object.prototype.propertyIsEnumerable, gn = (e, t, n) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ea = (e, t) => {
3570
3533
  for (var n in t)
3571
- ua.call(t, n) && _n(e, n, t[n]);
3572
- if (xn)
3573
- for (var n of xn(t))
3574
- ca.call(t, n) && _n(e, n, t[n]);
3534
+ Yi.call(t, n) && gn(e, n, t[n]);
3535
+ if (mn)
3536
+ for (var n of mn(t))
3537
+ Ki.call(t, n) && gn(e, n, t[n]);
3575
3538
  return e;
3576
- }, fa = (e, t) => sa(e, la(t));
3577
- let Kt;
3578
- const gt = yt(null);
3579
- function Bn(e) {
3539
+ }, ta = (e, t) => Qi(e, Ji(t));
3540
+ let Zt;
3541
+ const mt = bt(null);
3542
+ function bn(e) {
3580
3543
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3581
3544
  }
3582
- function xt(e, t = $e().fallbackLocale) {
3583
- const n = Bn(e);
3584
- return t ? [.../* @__PURE__ */ new Set([...n, ...Bn(t)])] : n;
3545
+ function Et(e, t = Ge().fallbackLocale) {
3546
+ const n = bn(e);
3547
+ return t ? [.../* @__PURE__ */ new Set([...n, ...bn(t)])] : n;
3585
3548
  }
3586
- function He() {
3587
- return Kt != null ? Kt : void 0;
3549
+ function Ce() {
3550
+ return Zt ?? void 0;
3588
3551
  }
3589
- gt.subscribe((e) => {
3590
- Kt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3552
+ mt.subscribe((e) => {
3553
+ Zt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3591
3554
  });
3592
- const da = (e) => {
3593
- if (e && Ki(e) && Yt(e)) {
3594
- const { loadingDelay: t } = $e();
3555
+ const na = (e) => {
3556
+ if (e && ki(e) && Wt(e)) {
3557
+ const { loadingDelay: t } = Ge();
3595
3558
  let n;
3596
- return typeof window != "undefined" && He() != null && t ? n = window.setTimeout(
3597
- () => $t.set(!0),
3559
+ return typeof window < "u" && Ce() != null && t ? n = window.setTimeout(
3560
+ () => Pt.set(!0),
3598
3561
  t
3599
- ) : $t.set(!0), ar(e).then(() => {
3600
- gt.set(e);
3562
+ ) : Pt.set(!0), Kn(e).then(() => {
3563
+ mt.set(e);
3601
3564
  }).finally(() => {
3602
- clearTimeout(n), $t.set(!1);
3565
+ clearTimeout(n), Pt.set(!1);
3603
3566
  });
3604
3567
  }
3605
- return gt.set(e);
3606
- }, Ve = fa(ha({}, gt), {
3607
- set: da
3608
- }), _t = (e) => {
3568
+ return mt.set(e);
3569
+ }, je = ta(ea({}, mt), {
3570
+ set: na
3571
+ }), xt = (e) => {
3609
3572
  const t = /* @__PURE__ */ Object.create(null);
3610
3573
  return (r) => {
3611
3574
  const i = JSON.stringify(r);
3612
3575
  return i in t ? t[i] : t[i] = e(r);
3613
3576
  };
3614
3577
  };
3615
- var pa = Object.defineProperty, bt = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, Tn = (e, t, n) => t in e ? pa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, an = (e, t) => {
3578
+ var ra = Object.defineProperty, gt = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, yn = (e, t, n) => t in e ? ra(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Kt = (e, t) => {
3616
3579
  for (var n in t || (t = {}))
3617
- or.call(t, n) && Tn(e, n, t[n]);
3618
- if (bt)
3619
- for (var n of bt(t))
3620
- sr.call(t, n) && Tn(e, n, t[n]);
3580
+ er.call(t, n) && yn(e, n, t[n]);
3581
+ if (gt)
3582
+ for (var n of gt(t))
3583
+ tr.call(t, n) && yn(e, n, t[n]);
3621
3584
  return e;
3622
- }, Xe = (e, t) => {
3585
+ }, Ve = (e, t) => {
3623
3586
  var n = {};
3624
3587
  for (var r in e)
3625
- or.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3626
- if (e != null && bt)
3627
- for (var r of bt(e))
3628
- t.indexOf(r) < 0 && sr.call(e, r) && (n[r] = e[r]);
3588
+ er.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3589
+ if (e != null && gt)
3590
+ for (var r of gt(e))
3591
+ t.indexOf(r) < 0 && tr.call(e, r) && (n[r] = e[r]);
3629
3592
  return n;
3630
3593
  };
3631
- const nt = (e, t) => {
3632
- const { formats: n } = $e();
3594
+ const tt = (e, t) => {
3595
+ const { formats: n } = Ge();
3633
3596
  if (e in n && t in n[e])
3634
3597
  return n[e][t];
3635
3598
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3636
- }, ma = _t(
3599
+ }, ia = xt(
3637
3600
  (e) => {
3638
- var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3601
+ var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3639
3602
  if (n == null)
3640
3603
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3641
- return r && (i = nt("number", r)), new Intl.NumberFormat(n, i);
3604
+ return r && (i = tt("number", r)), new Intl.NumberFormat(n, i);
3642
3605
  }
3643
- ), ga = _t(
3606
+ ), aa = xt(
3644
3607
  (e) => {
3645
- var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3608
+ var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3646
3609
  if (n == null)
3647
3610
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3648
- return r ? i = nt("date", r) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(n, i);
3611
+ return r ? i = tt("date", r) : Object.keys(i).length === 0 && (i = tt("date", "short")), new Intl.DateTimeFormat(n, i);
3649
3612
  }
3650
- ), ba = _t(
3613
+ ), oa = xt(
3651
3614
  (e) => {
3652
- var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3615
+ var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3653
3616
  if (n == null)
3654
3617
  throw new Error(
3655
3618
  '[svelte-i18n] A "locale" must be set to format time values'
3656
3619
  );
3657
- return r ? i = nt("time", r) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(n, i);
3620
+ return r ? i = tt("time", r) : Object.keys(i).length === 0 && (i = tt("time", "short")), new Intl.DateTimeFormat(n, i);
3658
3621
  }
3659
- ), ya = (e = {}) => {
3622
+ ), sa = (e = {}) => {
3660
3623
  var t = e, {
3661
- locale: n = He()
3662
- } = t, r = Xe(t, [
3624
+ locale: n = Ce()
3625
+ } = t, r = Ve(t, [
3663
3626
  "locale"
3664
3627
  ]);
3665
- return ma(an({ locale: n }, r));
3666
- }, va = (e = {}) => {
3628
+ return ia(Kt({ locale: n }, r));
3629
+ }, la = (e = {}) => {
3667
3630
  var t = e, {
3668
- locale: n = He()
3669
- } = t, r = Xe(t, [
3631
+ locale: n = Ce()
3632
+ } = t, r = Ve(t, [
3670
3633
  "locale"
3671
3634
  ]);
3672
- return ga(an({ locale: n }, r));
3673
- }, Ea = (e = {}) => {
3635
+ return aa(Kt({ locale: n }, r));
3636
+ }, ua = (e = {}) => {
3674
3637
  var t = e, {
3675
- locale: n = He()
3676
- } = t, r = Xe(t, [
3638
+ locale: n = Ce()
3639
+ } = t, r = Ve(t, [
3677
3640
  "locale"
3678
3641
  ]);
3679
- return ba(an({ locale: n }, r));
3680
- }, xa = _t(
3642
+ return oa(Kt({ locale: n }, r));
3643
+ }, ca = xt(
3681
3644
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3682
- (e, t = He()) => new Zi(e, t, $e().formats, {
3683
- ignoreTag: $e().ignoreTag
3645
+ (e, t = Ce()) => new Di(e, t, Ge().formats, {
3646
+ ignoreTag: Ge().ignoreTag
3684
3647
  })
3685
- ), _a = (e, t = {}) => {
3648
+ ), ha = (e, t = {}) => {
3686
3649
  var n, r, i, a;
3687
3650
  let l = t;
3688
3651
  typeof e == "object" && (l = e, e = l.id);
3689
3652
  const {
3690
- values: o,
3691
- locale: c = He(),
3653
+ values: s,
3654
+ locale: h = Ce(),
3692
3655
  default: u
3693
3656
  } = l;
3694
- if (c == null)
3657
+ if (h == null)
3695
3658
  throw new Error(
3696
3659
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3697
3660
  );
3698
- let d = tr(e, c);
3661
+ let d = qn(e, h);
3699
3662
  if (!d)
3700
- d = (a = (i = (r = (n = $e()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
3663
+ d = (a = (i = (r = (n = Ge()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
3701
3664
  else if (typeof d != "string")
3702
3665
  return console.warn(
3703
3666
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3704
3667
  ), d;
3705
- if (!o)
3668
+ if (!s)
3706
3669
  return d;
3707
3670
  let b = d;
3708
3671
  try {
3709
- b = xa(d, c).format(o);
3672
+ b = ca(d, h).format(s);
3710
3673
  } catch (y) {
3711
3674
  y instanceof Error && console.warn(
3712
3675
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3714,18 +3677,18 @@ const nt = (e, t) => {
3714
3677
  );
3715
3678
  }
3716
3679
  return b;
3717
- }, Ba = (e, t) => Ea(t).format(e), Ta = (e, t) => va(t).format(e), wa = (e, t) => ya(t).format(e), Sa = (e, t = He()) => tr(e, t), Aa = ke([Ve, rt], () => _a);
3718
- ke([Ve], () => Ba);
3719
- ke([Ve], () => Ta);
3720
- ke([Ve], () => wa);
3721
- ke([Ve, rt], () => Sa);
3722
- function wn(e, t) {
3723
- rr(e, t);
3724
- }
3725
- function Ca(e) {
3726
- Ve.set(e);
3727
- }
3728
- const Sn = {
3680
+ }, fa = (e, t) => ua(t).format(e), da = (e, t) => la(t).format(e), pa = (e, t) => sa(t).format(e), ma = (e, t = Ce()) => qn(e, t), ga = ke([je, nt], () => ha);
3681
+ ke([je], () => fa);
3682
+ ke([je], () => da);
3683
+ ke([je], () => pa);
3684
+ ke([je, nt], () => ma);
3685
+ function vn(e, t) {
3686
+ Jn(e, t);
3687
+ }
3688
+ function ba(e) {
3689
+ je.set(e);
3690
+ }
3691
+ const En = {
3729
3692
  en: {
3730
3693
  Title: "Your Balance",
3731
3694
  Total: "Total Balance",
@@ -3925,7 +3888,7 @@ const Sn = {
3925
3888
  Loading: "Loading ..."
3926
3889
  }
3927
3890
  };
3928
- var en = { exports: {} };
3891
+ var qt = { exports: {} };
3929
3892
  /** @license
3930
3893
  * eventsource.js
3931
3894
  * Available under MIT License (MIT)
@@ -3933,30 +3896,30 @@ var en = { exports: {} };
3933
3896
  */
3934
3897
  (function(e, t) {
3935
3898
  (function(n) {
3936
- var r = n.setTimeout, i = n.clearTimeout, a = n.XMLHttpRequest, l = n.XDomainRequest, o = n.ActiveXObject, c = n.EventSource, u = n.document, d = n.Promise, b = n.fetch, y = n.Response, T = n.TextDecoder, _ = n.TextEncoder, H = n.AbortController;
3937
- if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
3899
+ var r = n.setTimeout, i = n.clearTimeout, a = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, h = n.EventSource, u = n.document, d = n.Promise, b = n.fetch, y = n.Response, B = n.TextDecoder, x = n.TextEncoder, H = n.AbortController;
3900
+ if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(c) {
3938
3901
  u.readyState = "complete";
3939
- }, !1)), a == null && o != null && (a = function() {
3940
- return new o("Microsoft.XMLHTTP");
3941
- }), Object.create == null && (Object.create = function(h) {
3942
- function s() {
3902
+ }, !1)), a == null && s != null && (a = function() {
3903
+ return new s("Microsoft.XMLHTTP");
3904
+ }), Object.create == null && (Object.create = function(c) {
3905
+ function o() {
3943
3906
  }
3944
- return s.prototype = h, new s();
3907
+ return o.prototype = c, new o();
3945
3908
  }), Date.now || (Date.now = function() {
3946
3909
  return (/* @__PURE__ */ new Date()).getTime();
3947
3910
  }), H == null) {
3948
- var B = b;
3949
- b = function(h, s) {
3950
- var p = s.signal;
3951
- return B(h, { headers: s.headers, credentials: s.credentials, cache: s.cache }).then(function(f) {
3952
- var g = f.body.getReader();
3953
- return p._reader = g, p._aborted && p._reader.cancel(), {
3911
+ var _ = b;
3912
+ b = function(c, o) {
3913
+ var p = o.signal;
3914
+ return _(c, { headers: o.headers, credentials: o.credentials, cache: o.cache }).then(function(f) {
3915
+ var m = f.body.getReader();
3916
+ return p._reader = m, p._aborted && p._reader.cancel(), {
3954
3917
  status: f.status,
3955
3918
  statusText: f.statusText,
3956
3919
  headers: f.headers,
3957
3920
  body: {
3958
3921
  getReader: function() {
3959
- return g;
3922
+ return m;
3960
3923
  }
3961
3924
  }
3962
3925
  };
@@ -3973,8 +3936,8 @@ var en = { exports: {} };
3973
3936
  function A() {
3974
3937
  this.bitsNeeded = 0, this.codePoint = 0;
3975
3938
  }
3976
- A.prototype.decode = function(h) {
3977
- function s(N, F, S) {
3939
+ A.prototype.decode = function(c) {
3940
+ function o(N, F, S) {
3978
3941
  if (S === 1)
3979
3942
  return N >= 128 >> F && N << F <= 2047;
3980
3943
  if (S === 2)
@@ -3992,71 +3955,71 @@ var en = { exports: {} };
3992
3955
  return 3;
3993
3956
  throw new Error();
3994
3957
  }
3995
- for (var f = 65533, g = "", v = this.bitsNeeded, x = this.codePoint, E = 0; E < h.length; E += 1) {
3996
- var w = h[E];
3997
- v !== 0 && (w < 128 || w > 191 || !s(x << 6 | w & 63, v - 6, p(v, x))) && (v = 0, x = f, g += String.fromCharCode(x)), v === 0 ? (w >= 0 && w <= 127 ? (v = 0, x = w) : w >= 192 && w <= 223 ? (v = 6 * 1, x = w & 31) : w >= 224 && w <= 239 ? (v = 6 * 2, x = w & 15) : w >= 240 && w <= 247 ? (v = 6 * 3, x = w & 7) : (v = 0, x = f), v !== 0 && !s(x, v, p(v, x)) && (v = 0, x = f)) : (v -= 6, x = x << 6 | w & 63), v === 0 && (x <= 65535 ? g += String.fromCharCode(x) : (g += String.fromCharCode(55296 + (x - 65535 - 1 >> 10)), g += String.fromCharCode(56320 + (x - 65535 - 1 & 1023))));
3958
+ for (var f = 65533, m = "", v = this.bitsNeeded, T = this.codePoint, E = 0; E < c.length; E += 1) {
3959
+ var w = c[E];
3960
+ v !== 0 && (w < 128 || w > 191 || !o(T << 6 | w & 63, v - 6, p(v, T))) && (v = 0, T = f, m += String.fromCharCode(T)), v === 0 ? (w >= 0 && w <= 127 ? (v = 0, T = w) : w >= 192 && w <= 223 ? (v = 6 * 1, T = w & 31) : w >= 224 && w <= 239 ? (v = 6 * 2, T = w & 15) : w >= 240 && w <= 247 ? (v = 6 * 3, T = w & 7) : (v = 0, T = f), v !== 0 && !o(T, v, p(v, T)) && (v = 0, T = f)) : (v -= 6, T = T << 6 | w & 63), v === 0 && (T <= 65535 ? m += String.fromCharCode(T) : (m += String.fromCharCode(55296 + (T - 65535 - 1 >> 10)), m += String.fromCharCode(56320 + (T - 65535 - 1 & 1023))));
3998
3961
  }
3999
- return this.bitsNeeded = v, this.codePoint = x, g;
3962
+ return this.bitsNeeded = v, this.codePoint = T, m;
4000
3963
  };
4001
3964
  var P = function() {
4002
3965
  try {
4003
- return new T().decode(new _().encode("test"), { stream: !0 }) === "test";
4004
- } catch (h) {
4005
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
3966
+ return new B().decode(new x().encode("test"), { stream: !0 }) === "test";
3967
+ } catch (c) {
3968
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + c);
4006
3969
  }
4007
3970
  return !1;
4008
3971
  };
4009
- (T == null || _ == null || !P()) && (T = A);
3972
+ (B == null || x == null || !P()) && (B = A);
4010
3973
  var O = function() {
4011
3974
  };
4012
- function k(h) {
4013
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = O, this.onload = O, this.onerror = O, this.onreadystatechange = O, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = O;
3975
+ function j(c) {
3976
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = O, this.onload = O, this.onerror = O, this.onreadystatechange = O, this._contentType = "", this._xhr = c, this._sendTimeout = 0, this._abort = O;
4014
3977
  }
4015
- k.prototype.open = function(h, s) {
3978
+ j.prototype.open = function(c, o) {
4016
3979
  this._abort(!0);
4017
- var p = this, f = this._xhr, g = 1, v = 0;
3980
+ var p = this, f = this._xhr, m = 1, v = 0;
4018
3981
  this._abort = function(S) {
4019
- p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (g === 1 || g === 2 || g === 3) && (g = 4, f.onload = O, f.onerror = O, f.onabort = O, f.onprogress = O, f.onreadystatechange = O, f.abort(), v !== 0 && (i(v), v = 0), S || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), g = 0;
3982
+ p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (m === 1 || m === 2 || m === 3) && (m = 4, f.onload = O, f.onerror = O, f.onabort = O, f.onprogress = O, f.onreadystatechange = O, f.abort(), v !== 0 && (i(v), v = 0), S || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), m = 0;
4020
3983
  };
4021
- var x = function() {
4022
- if (g === 1) {
4023
- var S = 0, j = "", ve = void 0;
3984
+ var T = function() {
3985
+ if (m === 1) {
3986
+ var S = 0, k = "", ye = void 0;
4024
3987
  if ("contentType" in f)
4025
- S = 200, j = "OK", ve = f.contentType;
3988
+ S = 200, k = "OK", ye = f.contentType;
4026
3989
  else
4027
3990
  try {
4028
- S = f.status, j = f.statusText, ve = f.getResponseHeader("Content-Type");
4029
- } catch (Qe) {
4030
- S = 0, j = "", ve = void 0;
3991
+ S = f.status, k = f.statusText, ye = f.getResponseHeader("Content-Type");
3992
+ } catch {
3993
+ S = 0, k = "", ye = void 0;
4031
3994
  }
4032
- S !== 0 && (g = 2, p.readyState = 2, p.status = S, p.statusText = j, p._contentType = ve, p.onreadystatechange());
3995
+ S !== 0 && (m = 2, p.readyState = 2, p.status = S, p.statusText = k, p._contentType = ye, p.onreadystatechange());
4033
3996
  }
4034
3997
  }, E = function() {
4035
- if (x(), g === 2 || g === 3) {
4036
- g = 3;
3998
+ if (T(), m === 2 || m === 3) {
3999
+ m = 3;
4037
4000
  var S = "";
4038
4001
  try {
4039
4002
  S = f.responseText;
4040
- } catch (j) {
4003
+ } catch {
4041
4004
  }
4042
4005
  p.readyState = 3, p.responseText = S, p.onprogress();
4043
4006
  }
4044
- }, w = function(S, j) {
4045
- if ((j == null || j.preventDefault == null) && (j = {
4007
+ }, w = function(S, k) {
4008
+ if ((k == null || k.preventDefault == null) && (k = {
4046
4009
  preventDefault: O
4047
- }), E(), g === 1 || g === 2 || g === 3) {
4048
- if (g = 4, v !== 0 && (i(v), v = 0), p.readyState = 4, S === "load")
4049
- p.onload(j);
4010
+ }), E(), m === 1 || m === 2 || m === 3) {
4011
+ if (m = 4, v !== 0 && (i(v), v = 0), p.readyState = 4, S === "load")
4012
+ p.onload(k);
4050
4013
  else if (S === "error")
4051
- p.onerror(j);
4014
+ p.onerror(k);
4052
4015
  else if (S === "abort")
4053
- p.onabort(j);
4016
+ p.onabort(k);
4054
4017
  else
4055
4018
  throw new TypeError();
4056
4019
  p.onreadystatechange();
4057
4020
  }
4058
4021
  }, N = function(S) {
4059
- f != null && (f.readyState === 4 ? (!("onload" in f) || !("onerror" in f) || !("onabort" in f)) && w(f.responseText === "" ? "error" : "load", S) : f.readyState === 3 ? "onprogress" in f || E() : f.readyState === 2 && x());
4022
+ f != null && (f.readyState === 4 ? (!("onload" in f) || !("onerror" in f) || !("onabort" in f)) && w(f.responseText === "" ? "error" : "load", S) : f.readyState === 3 ? "onprogress" in f || E() : f.readyState === 2 && T());
4060
4023
  }, F = function() {
4061
4024
  v = r(function() {
4062
4025
  F();
@@ -4070,104 +4033,104 @@ var en = { exports: {} };
4070
4033
  w("abort", S);
4071
4034
  }), "onprogress" in f && (f.onprogress = E), "onreadystatechange" in f && (f.onreadystatechange = function(S) {
4072
4035
  N(S);
4073
- }), ("contentType" in f || !("ontimeout" in a.prototype)) && (s += (s.indexOf("?") === -1 ? "?" : "&") + "padding=true"), f.open(h, s, !0), "readyState" in f && (v = r(function() {
4036
+ }), ("contentType" in f || !("ontimeout" in a.prototype)) && (o += (o.indexOf("?") === -1 ? "?" : "&") + "padding=true"), f.open(c, o, !0), "readyState" in f && (v = r(function() {
4074
4037
  F();
4075
4038
  }, 0));
4076
- }, k.prototype.abort = function() {
4039
+ }, j.prototype.abort = function() {
4077
4040
  this._abort(!1);
4078
- }, k.prototype.getResponseHeader = function(h) {
4041
+ }, j.prototype.getResponseHeader = function(c) {
4079
4042
  return this._contentType;
4080
- }, k.prototype.setRequestHeader = function(h, s) {
4043
+ }, j.prototype.setRequestHeader = function(c, o) {
4081
4044
  var p = this._xhr;
4082
- "setRequestHeader" in p && p.setRequestHeader(h, s);
4083
- }, k.prototype.getAllResponseHeaders = function() {
4045
+ "setRequestHeader" in p && p.setRequestHeader(c, o);
4046
+ }, j.prototype.getAllResponseHeaders = function() {
4084
4047
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4085
- }, k.prototype.send = function() {
4048
+ }, j.prototype.send = function() {
4086
4049
  if ((!("ontimeout" in a.prototype) || !("sendAsBinary" in a.prototype) && !("mozAnon" in a.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4087
- var h = this;
4088
- h._sendTimeout = r(function() {
4089
- h._sendTimeout = 0, h.send();
4050
+ var c = this;
4051
+ c._sendTimeout = r(function() {
4052
+ c._sendTimeout = 0, c.send();
4090
4053
  }, 4);
4091
4054
  return;
4092
4055
  }
4093
- var s = this._xhr;
4094
- "withCredentials" in s && (s.withCredentials = this.withCredentials);
4056
+ var o = this._xhr;
4057
+ "withCredentials" in o && (o.withCredentials = this.withCredentials);
4095
4058
  try {
4096
- s.send(void 0);
4059
+ o.send(void 0);
4097
4060
  } catch (p) {
4098
4061
  throw p;
4099
4062
  }
4100
4063
  };
4101
- function X(h) {
4102
- return h.replace(/[A-Z]/g, function(s) {
4103
- return String.fromCharCode(s.charCodeAt(0) + 32);
4064
+ function X(c) {
4065
+ return c.replace(/[A-Z]/g, function(o) {
4066
+ return String.fromCharCode(o.charCodeAt(0) + 32);
4104
4067
  });
4105
4068
  }
4106
- function ne(h) {
4107
- for (var s = /* @__PURE__ */ Object.create(null), p = h.split(`\r
4069
+ function ne(c) {
4070
+ for (var o = /* @__PURE__ */ Object.create(null), p = c.split(`\r
4108
4071
  `), f = 0; f < p.length; f += 1) {
4109
- var g = p[f], v = g.split(": "), x = v.shift(), E = v.join(": ");
4110
- s[X(x)] = E;
4072
+ var m = p[f], v = m.split(": "), T = v.shift(), E = v.join(": ");
4073
+ o[X(T)] = E;
4111
4074
  }
4112
- this._map = s;
4075
+ this._map = o;
4113
4076
  }
4114
- ne.prototype.get = function(h) {
4115
- return this._map[X(h)];
4077
+ ne.prototype.get = function(c) {
4078
+ return this._map[X(c)];
4116
4079
  }, a != null && a.HEADERS_RECEIVED == null && (a.HEADERS_RECEIVED = 2);
4117
4080
  function W() {
4118
4081
  }
4119
- W.prototype.open = function(h, s, p, f, g, v, x) {
4120
- h.open("GET", g);
4082
+ W.prototype.open = function(c, o, p, f, m, v, T) {
4083
+ c.open("GET", m);
4121
4084
  var E = 0;
4122
- h.onprogress = function() {
4123
- var N = h.responseText, F = N.slice(E);
4085
+ c.onprogress = function() {
4086
+ var N = c.responseText, F = N.slice(E);
4124
4087
  E += F.length, p(F);
4125
- }, h.onerror = function(N) {
4088
+ }, c.onerror = function(N) {
4126
4089
  N.preventDefault(), f(new Error("NetworkError"));
4127
- }, h.onload = function() {
4090
+ }, c.onload = function() {
4128
4091
  f(null);
4129
- }, h.onabort = function() {
4092
+ }, c.onabort = function() {
4130
4093
  f(null);
4131
- }, h.onreadystatechange = function() {
4132
- if (h.readyState === a.HEADERS_RECEIVED) {
4133
- var N = h.status, F = h.statusText, S = h.getResponseHeader("Content-Type"), j = h.getAllResponseHeaders();
4134
- s(N, F, S, new ne(j));
4094
+ }, c.onreadystatechange = function() {
4095
+ if (c.readyState === a.HEADERS_RECEIVED) {
4096
+ var N = c.status, F = c.statusText, S = c.getResponseHeader("Content-Type"), k = c.getAllResponseHeaders();
4097
+ o(N, F, S, new ne(k));
4135
4098
  }
4136
- }, h.withCredentials = v;
4137
- for (var w in x)
4138
- Object.prototype.hasOwnProperty.call(x, w) && h.setRequestHeader(w, x[w]);
4139
- return h.send(), h;
4099
+ }, c.withCredentials = v;
4100
+ for (var w in T)
4101
+ Object.prototype.hasOwnProperty.call(T, w) && c.setRequestHeader(w, T[w]);
4102
+ return c.send(), c;
4140
4103
  };
4141
- function U(h) {
4142
- this._headers = h;
4104
+ function U(c) {
4105
+ this._headers = c;
4143
4106
  }
4144
- U.prototype.get = function(h) {
4145
- return this._headers.get(h);
4107
+ U.prototype.get = function(c) {
4108
+ return this._headers.get(c);
4146
4109
  };
4147
4110
  function D() {
4148
4111
  }
4149
- D.prototype.open = function(h, s, p, f, g, v, x) {
4150
- var E = null, w = new H(), N = w.signal, F = new T();
4151
- return b(g, {
4152
- headers: x,
4112
+ D.prototype.open = function(c, o, p, f, m, v, T) {
4113
+ var E = null, w = new H(), N = w.signal, F = new B();
4114
+ return b(m, {
4115
+ headers: T,
4153
4116
  credentials: v ? "include" : "same-origin",
4154
4117
  signal: N,
4155
4118
  cache: "no-store"
4156
4119
  }).then(function(S) {
4157
- return E = S.body.getReader(), s(S.status, S.statusText, S.headers.get("Content-Type"), new U(S.headers)), new d(function(j, ve) {
4158
- var Qe = function() {
4120
+ return E = S.body.getReader(), o(S.status, S.statusText, S.headers.get("Content-Type"), new U(S.headers)), new d(function(k, ye) {
4121
+ var qe = function() {
4159
4122
  E.read().then(function(ie) {
4160
4123
  if (ie.done)
4161
- j(void 0);
4124
+ k(void 0);
4162
4125
  else {
4163
4126
  var Y = F.decode(ie.value, { stream: !0 });
4164
- p(Y), Qe();
4127
+ p(Y), qe();
4165
4128
  }
4166
4129
  }).catch(function(ie) {
4167
- ve(ie);
4130
+ ye(ie);
4168
4131
  });
4169
4132
  };
4170
- Qe();
4133
+ qe();
4171
4134
  });
4172
4135
  }).catch(function(S) {
4173
4136
  if (S.name !== "AbortError")
@@ -4176,201 +4139,201 @@ var en = { exports: {} };
4176
4139
  f(S);
4177
4140
  }), {
4178
4141
  abort: function() {
4179
- E != null && E.cancel(), w.abort();
4142
+ E?.cancel(), w.abort();
4180
4143
  }
4181
4144
  };
4182
4145
  };
4183
4146
  function V() {
4184
4147
  this._listeners = /* @__PURE__ */ Object.create(null);
4185
4148
  }
4186
- function m(h) {
4149
+ function g(c) {
4187
4150
  r(function() {
4188
- throw h;
4151
+ throw c;
4189
4152
  }, 0);
4190
4153
  }
4191
- V.prototype.dispatchEvent = function(h) {
4192
- h.target = this;
4193
- var s = this._listeners[h.type];
4194
- if (s != null)
4195
- for (var p = s.length, f = 0; f < p; f += 1) {
4196
- var g = s[f];
4154
+ V.prototype.dispatchEvent = function(c) {
4155
+ c.target = this;
4156
+ var o = this._listeners[c.type];
4157
+ if (o != null)
4158
+ for (var p = o.length, f = 0; f < p; f += 1) {
4159
+ var m = o[f];
4197
4160
  try {
4198
- typeof g.handleEvent == "function" ? g.handleEvent(h) : g.call(this, h);
4161
+ typeof m.handleEvent == "function" ? m.handleEvent(c) : m.call(this, c);
4199
4162
  } catch (v) {
4200
- m(v);
4163
+ g(v);
4201
4164
  }
4202
4165
  }
4203
- }, V.prototype.addEventListener = function(h, s) {
4204
- h = String(h);
4205
- var p = this._listeners, f = p[h];
4206
- f == null && (f = [], p[h] = f);
4207
- for (var g = !1, v = 0; v < f.length; v += 1)
4208
- f[v] === s && (g = !0);
4209
- g || f.push(s);
4210
- }, V.prototype.removeEventListener = function(h, s) {
4211
- h = String(h);
4212
- var p = this._listeners, f = p[h];
4166
+ }, V.prototype.addEventListener = function(c, o) {
4167
+ c = String(c);
4168
+ var p = this._listeners, f = p[c];
4169
+ f == null && (f = [], p[c] = f);
4170
+ for (var m = !1, v = 0; v < f.length; v += 1)
4171
+ f[v] === o && (m = !0);
4172
+ m || f.push(o);
4173
+ }, V.prototype.removeEventListener = function(c, o) {
4174
+ c = String(c);
4175
+ var p = this._listeners, f = p[c];
4213
4176
  if (f != null) {
4214
- for (var g = [], v = 0; v < f.length; v += 1)
4215
- f[v] !== s && g.push(f[v]);
4216
- g.length === 0 ? delete p[h] : p[h] = g;
4177
+ for (var m = [], v = 0; v < f.length; v += 1)
4178
+ f[v] !== o && m.push(f[v]);
4179
+ m.length === 0 ? delete p[c] : p[c] = m;
4217
4180
  }
4218
4181
  };
4219
- function J(h) {
4220
- this.type = h, this.target = void 0;
4182
+ function J(c) {
4183
+ this.type = c, this.target = void 0;
4221
4184
  }
4222
- function it(h, s) {
4223
- J.call(this, h), this.data = s.data, this.lastEventId = s.lastEventId;
4185
+ function rt(c, o) {
4186
+ J.call(this, c), this.data = o.data, this.lastEventId = o.lastEventId;
4224
4187
  }
4225
- it.prototype = Object.create(J.prototype);
4226
- function be(h, s) {
4227
- J.call(this, h), this.status = s.status, this.statusText = s.statusText, this.headers = s.headers;
4188
+ rt.prototype = Object.create(J.prototype);
4189
+ function ge(c, o) {
4190
+ J.call(this, c), this.status = o.status, this.statusText = o.statusText, this.headers = o.headers;
4228
4191
  }
4229
- be.prototype = Object.create(J.prototype);
4230
- function ze(h, s) {
4231
- J.call(this, h), this.error = s.error;
4192
+ ge.prototype = Object.create(J.prototype);
4193
+ function Xe(c, o) {
4194
+ J.call(this, c), this.error = o.error;
4232
4195
  }
4233
- ze.prototype = Object.create(J.prototype);
4234
- var We = -1, pe = 0, Te = 1, ye = 2, Oe = -1, me = 0, Ae = 1, Ze = 2, Bt = 3, at = /^text\/event\-stream(;.*)?$/i, Tt = 1e3, wt = 18e6, Re = function(h, s) {
4235
- var p = h == null ? s : parseInt(h, 10);
4236
- return p !== p && (p = s), qe(p);
4237
- }, qe = function(h) {
4238
- return Math.min(Math.max(h, Tt), wt);
4239
- }, we = function(h, s, p) {
4196
+ Xe.prototype = Object.create(J.prototype);
4197
+ var ze = -1, de = 0, Be = 1, be = 2, He = -1, pe = 0, Se = 1, We = 2, _t = 3, it = /^text\/event\-stream(;.*)?$/i, Bt = 1e3, Tt = 18e6, Oe = function(c, o) {
4198
+ var p = c == null ? o : parseInt(c, 10);
4199
+ return p !== p && (p = o), Ze(p);
4200
+ }, Ze = function(c) {
4201
+ return Math.min(Math.max(c, Bt), Tt);
4202
+ }, Te = function(c, o, p) {
4240
4203
  try {
4241
- typeof s == "function" && s.call(h, p);
4204
+ typeof o == "function" && o.call(c, p);
4242
4205
  } catch (f) {
4243
- m(f);
4206
+ g(f);
4244
4207
  }
4245
4208
  };
4246
- function re(h, s) {
4247
- V.call(this), s = s || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Ct(this, h, s);
4209
+ function re(c, o) {
4210
+ V.call(this), o = o || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, At(this, c, o);
4248
4211
  }
4249
- function St() {
4212
+ function wt() {
4250
4213
  return a != null && "withCredentials" in a.prototype || l == null ? new a() : new l();
4251
4214
  }
4252
- var At = b != null && y != null && "body" in y.prototype;
4253
- function Ct(h, s, p) {
4254
- s = String(s);
4255
- var f = !!p.withCredentials, g = p.lastEventIdQueryParameterName || "lastEventId", v = qe(1e3), x = Re(p.heartbeatTimeout, 45e3), E = "", w = v, N = !1, F = 0, S = p.headers || {}, j = p.Transport, ve = At && j == null ? void 0 : new k(j != null ? new j() : St()), Qe = j != null && typeof j != "string" ? new j() : ve == null ? new D() : new W(), ie = void 0, Y = 0, ue = We, Le = "", st = "", Ee = "", lt = "", K = me, Ht = 0, Ce = 0, ur = function(Z, z, ae, oe) {
4256
- if (ue === pe)
4257
- if (Z === 200 && ae != null && at.test(ae)) {
4258
- ue = Te, N = Date.now(), w = v, h.readyState = Te;
4259
- var ee = new be("open", {
4215
+ var St = b != null && y != null && "body" in y.prototype;
4216
+ function At(c, o, p) {
4217
+ o = String(o);
4218
+ var f = !!p.withCredentials, m = p.lastEventIdQueryParameterName || "lastEventId", v = Ze(1e3), T = Oe(p.heartbeatTimeout, 45e3), E = "", w = v, N = !1, F = 0, S = p.headers || {}, k = p.Transport, ye = St && k == null ? void 0 : new j(k != null ? new k() : wt()), qe = k != null && typeof k != "string" ? new k() : ye == null ? new D() : new W(), ie = void 0, Y = 0, le = ze, Re = "", ot = "", ve = "", st = "", K = pe, Ct = 0, Ae = 0, rr = function(Z, z, ae, oe) {
4219
+ if (le === de)
4220
+ if (Z === 200 && ae != null && it.test(ae)) {
4221
+ le = Be, N = Date.now(), w = v, c.readyState = Be;
4222
+ var ee = new ge("open", {
4260
4223
  status: Z,
4261
4224
  statusText: z,
4262
4225
  headers: oe
4263
4226
  });
4264
- h.dispatchEvent(ee), we(h, h.onopen, ee);
4227
+ c.dispatchEvent(ee), Te(c, c.onopen, ee);
4265
4228
  } else {
4266
4229
  var q = "";
4267
- Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : q = "EventSource's response has a Content-Type specifying an unsupported type: " + (ae == null ? "-" : ae.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
4268
- var ee = new be("error", {
4230
+ Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : q = "EventSource's response has a Content-Type specifying an unsupported type: " + (ae == null ? "-" : ae.replace(/\s+/g, " ")) + ". Aborting the connection.", Ht();
4231
+ var ee = new ge("error", {
4269
4232
  status: Z,
4270
4233
  statusText: z,
4271
4234
  headers: oe
4272
4235
  });
4273
- h.dispatchEvent(ee), we(h, h.onerror, ee), console.error(q);
4236
+ c.dispatchEvent(ee), Te(c, c.onerror, ee), console.error(q);
4274
4237
  }
4275
- }, cr = function(Z) {
4276
- if (ue === Te) {
4238
+ }, ir = function(Z) {
4239
+ if (le === Be) {
4277
4240
  for (var z = -1, ae = 0; ae < Z.length; ae += 1) {
4278
4241
  var oe = Z.charCodeAt(ae);
4279
4242
  (oe === 10 || oe === 13) && (z = ae);
4280
4243
  }
4281
- var ee = (z !== -1 ? lt : "") + Z.slice(0, z + 1);
4282
- lt = (z === -1 ? lt : "") + Z.slice(z + 1), Z !== "" && (N = Date.now(), F += Z.length);
4244
+ var ee = (z !== -1 ? st : "") + Z.slice(0, z + 1);
4245
+ st = (z === -1 ? st : "") + Z.slice(z + 1), Z !== "" && (N = Date.now(), F += Z.length);
4283
4246
  for (var q = 0; q < ee.length; q += 1) {
4284
4247
  var oe = ee.charCodeAt(q);
4285
- if (K === Oe && oe === 10)
4286
- K = me;
4287
- else if (K === Oe && (K = me), oe === 13 || oe === 10) {
4288
- if (K !== me) {
4289
- K === Ae && (Ce = q + 1);
4290
- var xe = ee.slice(Ht, Ce - 1), _e = ee.slice(Ce + (Ce < q && ee.charCodeAt(Ce) === 32 ? 1 : 0), q);
4291
- xe === "data" ? (Le += `
4292
- `, Le += _e) : xe === "id" ? st = _e : xe === "event" ? Ee = _e : xe === "retry" ? (v = Re(_e, v), w = v) : xe === "heartbeatTimeout" && (x = Re(_e, x), Y !== 0 && (i(Y), Y = r(function() {
4293
- Je();
4294
- }, x)));
4248
+ if (K === He && oe === 10)
4249
+ K = pe;
4250
+ else if (K === He && (K = pe), oe === 13 || oe === 10) {
4251
+ if (K !== pe) {
4252
+ K === Se && (Ae = q + 1);
4253
+ var Ee = ee.slice(Ct, Ae - 1), xe = ee.slice(Ae + (Ae < q && ee.charCodeAt(Ae) === 32 ? 1 : 0), q);
4254
+ Ee === "data" ? (Re += `
4255
+ `, Re += xe) : Ee === "id" ? ot = xe : Ee === "event" ? ve = xe : Ee === "retry" ? (v = Oe(xe, v), w = v) : Ee === "heartbeatTimeout" && (T = Oe(xe, T), Y !== 0 && (i(Y), Y = r(function() {
4256
+ Qe();
4257
+ }, T)));
4295
4258
  }
4296
- if (K === me) {
4297
- if (Le !== "") {
4298
- E = st, Ee === "" && (Ee = "message");
4299
- var Me = new it(Ee, {
4300
- data: Le.slice(1),
4301
- lastEventId: st
4259
+ if (K === pe) {
4260
+ if (Re !== "") {
4261
+ E = ot, ve === "" && (ve = "message");
4262
+ var Le = new rt(ve, {
4263
+ data: Re.slice(1),
4264
+ lastEventId: ot
4302
4265
  });
4303
- if (h.dispatchEvent(Me), Ee === "open" ? we(h, h.onopen, Me) : Ee === "message" ? we(h, h.onmessage, Me) : Ee === "error" && we(h, h.onerror, Me), ue === ye)
4266
+ if (c.dispatchEvent(Le), ve === "open" ? Te(c, c.onopen, Le) : ve === "message" ? Te(c, c.onmessage, Le) : ve === "error" && Te(c, c.onerror, Le), le === be)
4304
4267
  return;
4305
4268
  }
4306
- Le = "", Ee = "";
4269
+ Re = "", ve = "";
4307
4270
  }
4308
- K = oe === 13 ? Oe : me;
4271
+ K = oe === 13 ? He : pe;
4309
4272
  } else
4310
- K === me && (Ht = q, K = Ae), K === Ae ? oe === 58 && (Ce = q + 1, K = Ze) : K === Ze && (K = Bt);
4273
+ K === pe && (Ct = q, K = Se), K === Se ? oe === 58 && (Ae = q + 1, K = We) : K === We && (K = _t);
4311
4274
  }
4312
4275
  }
4313
- }, sn = function(Z) {
4314
- if (ue === Te || ue === pe) {
4315
- ue = We, Y !== 0 && (i(Y), Y = 0), Y = r(function() {
4316
- Je();
4317
- }, w), w = qe(Math.min(v * 16, w * 2)), h.readyState = pe;
4318
- var z = new ze("error", { error: Z });
4319
- h.dispatchEvent(z), we(h, h.onerror, z), Z != null && console.error(Z);
4276
+ }, tn = function(Z) {
4277
+ if (le === Be || le === de) {
4278
+ le = ze, Y !== 0 && (i(Y), Y = 0), Y = r(function() {
4279
+ Qe();
4280
+ }, w), w = Ze(Math.min(v * 16, w * 2)), c.readyState = de;
4281
+ var z = new Xe("error", { error: Z });
4282
+ c.dispatchEvent(z), Te(c, c.onerror, z), Z != null && console.error(Z);
4320
4283
  }
4321
- }, Ot = function() {
4322
- ue = ye, ie != null && (ie.abort(), ie = void 0), Y !== 0 && (i(Y), Y = 0), h.readyState = ye;
4323
- }, Je = function() {
4324
- if (Y = 0, ue !== We) {
4284
+ }, Ht = function() {
4285
+ le = be, ie != null && (ie.abort(), ie = void 0), Y !== 0 && (i(Y), Y = 0), c.readyState = be;
4286
+ }, Qe = function() {
4287
+ if (Y = 0, le !== ze) {
4325
4288
  if (!N && ie != null)
4326
- sn(new Error("No activity within " + x + " milliseconds. " + (ue === pe ? "No response received." : F + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
4289
+ tn(new Error("No activity within " + T + " milliseconds. " + (le === de ? "No response received." : F + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
4327
4290
  else {
4328
- var Z = Math.max((N || Date.now()) + x - Date.now(), 1);
4291
+ var Z = Math.max((N || Date.now()) + T - Date.now(), 1);
4329
4292
  N = !1, Y = r(function() {
4330
- Je();
4293
+ Qe();
4331
4294
  }, Z);
4332
4295
  }
4333
4296
  return;
4334
4297
  }
4335
4298
  N = !1, F = 0, Y = r(function() {
4336
- Je();
4337
- }, x), ue = pe, Le = "", Ee = "", st = E, lt = "", Ht = 0, Ce = 0, K = me;
4338
- var z = s;
4339
- if (s.slice(0, 5) !== "data:" && s.slice(0, 5) !== "blob:" && E !== "") {
4340
- var ae = s.indexOf("?");
4341
- z = ae === -1 ? s : s.slice(0, ae + 1) + s.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(_e, Me) {
4342
- return Me === g ? "" : _e;
4343
- }), z += (s.indexOf("?") === -1 ? "?" : "&") + g + "=" + encodeURIComponent(E);
4299
+ Qe();
4300
+ }, T), le = de, Re = "", ve = "", ot = E, st = "", Ct = 0, Ae = 0, K = pe;
4301
+ var z = o;
4302
+ if (o.slice(0, 5) !== "data:" && o.slice(0, 5) !== "blob:" && E !== "") {
4303
+ var ae = o.indexOf("?");
4304
+ z = ae === -1 ? o : o.slice(0, ae + 1) + o.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(xe, Le) {
4305
+ return Le === m ? "" : xe;
4306
+ }), z += (o.indexOf("?") === -1 ? "?" : "&") + m + "=" + encodeURIComponent(E);
4344
4307
  }
4345
- var oe = h.withCredentials, ee = {};
4308
+ var oe = c.withCredentials, ee = {};
4346
4309
  ee.Accept = "text/event-stream";
4347
- var q = h.headers;
4310
+ var q = c.headers;
4348
4311
  if (q != null)
4349
- for (var xe in q)
4350
- Object.prototype.hasOwnProperty.call(q, xe) && (ee[xe] = q[xe]);
4312
+ for (var Ee in q)
4313
+ Object.prototype.hasOwnProperty.call(q, Ee) && (ee[Ee] = q[Ee]);
4351
4314
  try {
4352
- ie = Qe.open(ve, ur, cr, sn, z, oe, ee);
4353
- } catch (_e) {
4354
- throw Ot(), _e;
4315
+ ie = qe.open(ye, rr, ir, tn, z, oe, ee);
4316
+ } catch (xe) {
4317
+ throw Ht(), xe;
4355
4318
  }
4356
4319
  };
4357
- h.url = s, h.readyState = pe, h.withCredentials = f, h.headers = S, h._close = Ot, Je();
4320
+ c.url = o, c.readyState = de, c.withCredentials = f, c.headers = S, c._close = Ht, Qe();
4358
4321
  }
4359
- re.prototype = Object.create(V.prototype), re.prototype.CONNECTING = pe, re.prototype.OPEN = Te, re.prototype.CLOSED = ye, re.prototype.close = function() {
4322
+ re.prototype = Object.create(V.prototype), re.prototype.CONNECTING = de, re.prototype.OPEN = Be, re.prototype.CLOSED = be, re.prototype.close = function() {
4360
4323
  this._close();
4361
- }, re.CONNECTING = pe, re.OPEN = Te, re.CLOSED = ye, re.prototype.withCredentials = void 0;
4362
- var ot = c;
4363
- a != null && (c == null || !("withCredentials" in c.prototype)) && (ot = re), function(h) {
4324
+ }, re.CONNECTING = de, re.OPEN = Be, re.CLOSED = be, re.prototype.withCredentials = void 0;
4325
+ var at = h;
4326
+ a != null && (h == null || !("withCredentials" in h.prototype)) && (at = re), function(c) {
4364
4327
  {
4365
- var s = h(t);
4366
- s !== void 0 && (e.exports = s);
4328
+ var o = c(t);
4329
+ o !== void 0 && (e.exports = o);
4367
4330
  }
4368
- }(function(h) {
4369
- h.EventSourcePolyfill = re, h.NativeEventSource = c, h.EventSource = ot;
4331
+ }(function(c) {
4332
+ c.EventSourcePolyfill = re, c.NativeEventSource = h, c.EventSource = at;
4370
4333
  });
4371
- })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Gr : globalThis);
4372
- })(en, en.exports);
4373
- var Ha = en.exports;
4334
+ })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Hr : globalThis);
4335
+ })(qt, qt.exports);
4336
+ var ya = qt.exports;
4374
4337
  /*!
4375
4338
  * currency.js - v2.0.4
4376
4339
  * http://scurker.github.io/currency.js
@@ -4378,7 +4341,7 @@ var Ha = en.exports;
4378
4341
  * Copyright (c) 2021 Jason Wilson
4379
4342
  * Released under MIT license
4380
4343
  */
4381
- var Oa = {
4344
+ var va = {
4382
4345
  symbol: "$",
4383
4346
  separator: ",",
4384
4347
  decimal: ".",
@@ -4386,25 +4349,25 @@ var Oa = {
4386
4349
  precision: 2,
4387
4350
  pattern: "!#",
4388
4351
  negativePattern: "-!#",
4389
- format: Na,
4352
+ format: Ba,
4390
4353
  fromCents: !1
4391
- }, lr = function(t) {
4354
+ }, nr = function(t) {
4392
4355
  return Math.round(t);
4393
- }, on = function(t) {
4356
+ }, en = function(t) {
4394
4357
  return Math.pow(10, t);
4395
- }, Ra = function(t, n) {
4396
- return lr(t / n) * n;
4397
- }, La = /(\d)(?=(\d{3})+\b)/g, Ma = /(\d)(?=(\d\d)+\d\b)/g;
4398
- function ce(e, t) {
4358
+ }, Ea = function(t, n) {
4359
+ return nr(t / n) * n;
4360
+ }, xa = /(\d)(?=(\d{3})+\b)/g, _a = /(\d)(?=(\d\d)+\d\b)/g;
4361
+ function ue(e, t) {
4399
4362
  var n = this;
4400
- if (!(n instanceof ce))
4401
- return new ce(e, t);
4402
- var r = Object.assign({}, Oa, t), i = on(r.precision), a = dt(e, r);
4403
- n.intValue = a, n.value = a / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Ma : r.groups = La, this.s = r, this.p = i;
4404
- }
4405
- function dt(e, t) {
4406
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, a = t.errorOnInvalid, l = t.precision, o = t.fromCents, c = on(l), u = typeof e == "number", d = e instanceof ce;
4407
- if (d && o)
4363
+ if (!(n instanceof ue))
4364
+ return new ue(e, t);
4365
+ var r = Object.assign({}, va, t), i = en(r.precision), a = ft(e, r);
4366
+ n.intValue = a, n.value = a / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = _a : r.groups = xa, this.s = r, this.p = i;
4367
+ }
4368
+ function ft(e, t) {
4369
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, a = t.errorOnInvalid, l = t.precision, s = t.fromCents, h = en(l), u = typeof e == "number", d = e instanceof ue;
4370
+ if (d && s)
4408
4371
  return e.intValue;
4409
4372
  if (u || d)
4410
4373
  r = d ? e.value : e;
@@ -4416,13 +4379,13 @@ function dt(e, t) {
4416
4379
  throw Error("Invalid Input");
4417
4380
  r = 0;
4418
4381
  }
4419
- return o || (r *= c, r = r.toFixed(4)), n ? lr(r) : r;
4382
+ return s || (r *= h, r = r.toFixed(4)), n ? nr(r) : r;
4420
4383
  }
4421
- function Na(e, t) {
4422
- var n = t.pattern, r = t.negativePattern, i = t.symbol, a = t.separator, l = t.decimal, o = t.groups, c = ("" + e).replace(/^-/, "").split("."), u = c[0], d = c[1];
4423
- return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(o, "$1" + a) + (d ? l + d : ""));
4384
+ function Ba(e, t) {
4385
+ var n = t.pattern, r = t.negativePattern, i = t.symbol, a = t.separator, l = t.decimal, s = t.groups, h = ("" + e).replace(/^-/, "").split("."), u = h[0], d = h[1];
4386
+ return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + a) + (d ? l + d : ""));
4424
4387
  }
4425
- ce.prototype = {
4388
+ ue.prototype = {
4426
4389
  /**
4427
4390
  * Adds values together.
4428
4391
  * @param {number} number
@@ -4430,7 +4393,7 @@ ce.prototype = {
4430
4393
  */
4431
4394
  add: function(t) {
4432
4395
  var n = this.intValue, r = this.s, i = this.p;
4433
- return ce((n += dt(t, r)) / (r.fromCents ? 1 : i), r);
4396
+ return ue((n += ft(t, r)) / (r.fromCents ? 1 : i), r);
4434
4397
  },
4435
4398
  /**
4436
4399
  * Subtracts value.
@@ -4439,7 +4402,7 @@ ce.prototype = {
4439
4402
  */
4440
4403
  subtract: function(t) {
4441
4404
  var n = this.intValue, r = this.s, i = this.p;
4442
- return ce((n -= dt(t, r)) / (r.fromCents ? 1 : i), r);
4405
+ return ue((n -= ft(t, r)) / (r.fromCents ? 1 : i), r);
4443
4406
  },
4444
4407
  /**
4445
4408
  * Multiplies values.
@@ -4448,7 +4411,7 @@ ce.prototype = {
4448
4411
  */
4449
4412
  multiply: function(t) {
4450
4413
  var n = this.intValue, r = this.s;
4451
- return ce((n *= t) / (r.fromCents ? 1 : on(r.precision)), r);
4414
+ return ue((n *= t) / (r.fromCents ? 1 : en(r.precision)), r);
4452
4415
  },
4453
4416
  /**
4454
4417
  * Divides value.
@@ -4457,7 +4420,7 @@ ce.prototype = {
4457
4420
  */
4458
4421
  divide: function(t) {
4459
4422
  var n = this.intValue, r = this.s;
4460
- return ce(n /= dt(t, r, !1), r);
4423
+ return ue(n /= ft(t, r, !1), r);
4461
4424
  },
4462
4425
  /**
4463
4426
  * Takes the currency amount and distributes the values evenly. Any extra pennies
@@ -4466,9 +4429,9 @@ ce.prototype = {
4466
4429
  * @returns {array}
4467
4430
  */
4468
4431
  distribute: function(t) {
4469
- for (var n = this.intValue, r = this.p, i = this.s, a = [], l = Math[n >= 0 ? "floor" : "ceil"](n / t), o = Math.abs(n - l * t), c = i.fromCents ? 1 : r; t !== 0; t--) {
4470
- var u = ce(l / c, i);
4471
- o-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / c)), a.push(u);
4432
+ for (var n = this.intValue, r = this.p, i = this.s, a = [], l = Math[n >= 0 ? "floor" : "ceil"](n / t), s = Math.abs(n - l * t), h = i.fromCents ? 1 : r; t !== 0; t--) {
4433
+ var u = ue(l / h, i);
4434
+ s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / h)), a.push(u);
4472
4435
  }
4473
4436
  return a;
4474
4437
  },
@@ -4502,7 +4465,7 @@ ce.prototype = {
4502
4465
  */
4503
4466
  toString: function() {
4504
4467
  var t = this.intValue, n = this.p, r = this.s;
4505
- return Ra(t / n, r.increment).toFixed(r.precision);
4468
+ return Ea(t / n, r.increment).toFixed(r.precision);
4506
4469
  },
4507
4470
  /**
4508
4471
  * Value for JSON serialization.
@@ -4512,18 +4475,18 @@ ce.prototype = {
4512
4475
  return this.value;
4513
4476
  }
4514
4477
  };
4515
- function Ia(e) {
4516
- yr(e, "svelte-1tsugyl", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4478
+ function Ta(e) {
4479
+ sr(e, "svelte-1tsugyl", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4517
4480
  }
4518
- function An(e, t, n) {
4481
+ function xn(e, t, n) {
4519
4482
  const r = e.slice();
4520
4483
  return r[50] = t[n], r;
4521
4484
  }
4522
- function Cn(e, t, n) {
4485
+ function _n(e, t, n) {
4523
4486
  const r = e.slice();
4524
4487
  return r[53] = t[n], r;
4525
4488
  }
4526
- function Pa(e) {
4489
+ function wa(e) {
4527
4490
  let t, n, r = (
4528
4491
  /*balances*/
4529
4492
  (e[1].Total ? (
@@ -4533,25 +4496,25 @@ function Pa(e) {
4533
4496
  e[1].Total[0].amount
4534
4497
  )
4535
4498
  ) : "0") + ""
4536
- ), i, a, l, o, c, u, d, b, y, T, _, H, B = (
4499
+ ), i, a, l, s, h, u, d, b, y, B, x, H, _ = (
4537
4500
  /*showBalance*/
4538
- e[4] && Hn(e)
4501
+ e[4] && Bn(e)
4539
4502
  );
4540
4503
  return {
4541
4504
  c() {
4542
- t = $("div"), n = $("p"), i = he(r), a = de(), l = he(
4505
+ t = $("div"), n = $("p"), i = ce(r), a = fe(), l = ce(
4543
4506
  /*currency*/
4544
4507
  e[5]
4545
- ), o = de(), c = $("span"), u = cn("svg"), d = cn("path"), y = de(), B && B.c(), T = xr(), M(d, "id", "arrow"), M(d, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), M(d, "transform", "translate(-274.511 -441.088)"), M(d, "fill", "#d1d1d1"), M(u, "xmlns", "http://www.w3.org/2000/svg"), M(u, "width", "14"), M(u, "height", "6.835"), M(u, "viewBox", "0 0 14 6.835"), M(c, "class", b = /*modalOpened*/
4508
+ ), s = fe(), h = $("span"), u = rn("svg"), d = rn("path"), y = fe(), _ && _.c(), B = cr(), M(d, "id", "arrow"), M(d, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), M(d, "transform", "translate(-274.511 -441.088)"), M(d, "fill", "#d1d1d1"), M(u, "xmlns", "http://www.w3.org/2000/svg"), M(u, "width", "14"), M(u, "height", "6.835"), M(u, "viewBox", "0 0 14 6.835"), M(h, "class", b = /*modalOpened*/
4546
4509
  e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
4547
4510
  },
4548
4511
  m(A, P) {
4549
- ge(A, t, P), C(t, n), C(n, i), C(n, a), C(n, l), C(t, o), C(t, c), C(c, u), C(u, d), ge(A, y, P), B && B.m(A, P), ge(A, T, P), _ || (H = pt(
4512
+ me(A, t, P), C(t, n), C(n, i), C(n, a), C(n, l), C(t, s), C(t, h), C(h, u), C(u, d), me(A, y, P), _ && _.m(A, P), me(A, B, P), x || (H = dt(
4550
4513
  t,
4551
4514
  "click",
4552
4515
  /*click_handler*/
4553
4516
  e[24]
4554
- ), _ = !0);
4517
+ ), x = !0);
4555
4518
  },
4556
4519
  p(A, P) {
4557
4520
  P[0] & /*balances*/
@@ -4562,79 +4525,79 @@ function Pa(e) {
4562
4525
  /*balances*/
4563
4526
  A[1].Total[0].amount
4564
4527
  )
4565
- ) : "0") + "") && Be(i, r), P[0] & /*currency*/
4566
- 32 && Be(
4528
+ ) : "0") + "") && _e(i, r), P[0] & /*currency*/
4529
+ 32 && _e(
4567
4530
  l,
4568
4531
  /*currency*/
4569
4532
  A[5]
4570
4533
  ), P[0] & /*modalOpened*/
4571
4534
  8 && b !== (b = /*modalOpened*/
4572
- A[3] ? "TriangleActive" : "TriangleInactive") && M(c, "class", b), /*showBalance*/
4573
- A[4] ? B ? B.p(A, P) : (B = Hn(A), B.c(), B.m(T.parentNode, T)) : B && (B.d(1), B = null);
4535
+ A[3] ? "TriangleActive" : "TriangleInactive") && M(h, "class", b), /*showBalance*/
4536
+ A[4] ? _ ? _.p(A, P) : (_ = Bn(A), _.c(), _.m(B.parentNode, B)) : _ && (_.d(1), _ = null);
4574
4537
  },
4575
4538
  d(A) {
4576
- A && (fe(t), fe(y), fe(T)), B && B.d(A), _ = !1, H();
4539
+ A && (he(t), he(y), he(B)), _ && _.d(A), x = !1, H();
4577
4540
  }
4578
4541
  };
4579
4542
  }
4580
- function Da(e) {
4543
+ function Sa(e) {
4581
4544
  let t, n = (
4582
4545
  /*$_*/
4583
4546
  e[6]("Loading") + ""
4584
4547
  ), r;
4585
4548
  return {
4586
4549
  c() {
4587
- t = $("p"), r = he(n), M(t, "class", "Loading");
4550
+ t = $("p"), r = ce(n), M(t, "class", "Loading");
4588
4551
  },
4589
4552
  m(i, a) {
4590
- ge(i, t, a), C(t, r);
4553
+ me(i, t, a), C(t, r);
4591
4554
  },
4592
4555
  p(i, a) {
4593
4556
  a[0] & /*$_*/
4594
4557
  64 && n !== (n = /*$_*/
4595
- i[6]("Loading") + "") && Be(r, n);
4558
+ i[6]("Loading") + "") && _e(r, n);
4596
4559
  },
4597
4560
  d(i) {
4598
- i && fe(t);
4561
+ i && he(t);
4599
4562
  }
4600
4563
  };
4601
4564
  }
4602
- function Hn(e) {
4603
- let t, n, r, i, a, l, o, c, u = (
4565
+ function Bn(e) {
4566
+ let t, n, r, i, a, l, s, h, u = (
4604
4567
  /*$_*/
4605
4568
  e[6]("Title") + ""
4606
- ), d, b, y, T, _, H, B = (
4569
+ ), d, b, y, B, x, H, _ = (
4607
4570
  /*$_*/
4608
4571
  e[6]("DepositButton") + ""
4609
- ), A, P, O, k, X, ne, W = mt(Object.keys(
4572
+ ), A, P, O, j, X, ne, W = pt(Object.keys(
4610
4573
  /*balances*/
4611
4574
  e[1]
4612
4575
  )), U = [];
4613
4576
  for (let D = 0; D < W.length; D += 1)
4614
- U[D] = Rn(An(e, W, D));
4577
+ U[D] = wn(xn(e, W, D));
4615
4578
  return {
4616
4579
  c() {
4617
- t = $("div"), n = $("div"), i = de(), a = $("div"), l = $("div"), o = $("div"), c = $("p"), d = he(u), b = de(), y = $("div");
4580
+ t = $("div"), n = $("div"), i = fe(), a = $("div"), l = $("div"), s = $("div"), h = $("p"), d = ce(u), b = fe(), y = $("div");
4618
4581
  for (let D = 0; D < U.length; D += 1)
4619
4582
  U[D].c();
4620
- T = de(), _ = $("div"), H = $("button"), A = he(B), M(n, "class", r = "BalanceModalClose " + /*modalOpened*/
4621
- (e[3] ? "Open" : "")), M(c, "class", "BalanceModalTitle"), M(o, "class", "BalanceModalHeader"), M(y, "class", "BalanceModalBody"), M(H, "class", "BalanceModalAction"), M(_, "class", "BalanceModalFooter"), M(l, "class", P = "ModalContent " + /*modalOpened*/
4583
+ B = fe(), x = $("div"), H = $("button"), A = ce(_), M(n, "class", r = "BalanceModalClose " + /*modalOpened*/
4584
+ (e[3] ? "Open" : "")), M(h, "class", "BalanceModalTitle"), M(s, "class", "BalanceModalHeader"), M(y, "class", "BalanceModalBody"), M(H, "class", "BalanceModalAction"), M(x, "class", "BalanceModalFooter"), M(l, "class", P = "ModalContent " + /*modalOpened*/
4622
4585
  (e[3] ? "Open" : "")), M(a, "class", O = "BalanceModal " + /*modalOpened*/
4623
- (e[3] ? "Open" : "")), M(t, "class", k = "BalanceModalWrapper " + /*modalOpened*/
4586
+ (e[3] ? "Open" : "")), M(t, "class", j = "BalanceModalWrapper " + /*modalOpened*/
4624
4587
  (e[3] ? "Open" : ""));
4625
4588
  },
4626
4589
  m(D, V) {
4627
- ge(D, t, V), C(t, n), C(t, i), C(t, a), C(a, l), C(l, o), C(o, c), C(c, d), C(l, b), C(l, y);
4628
- for (let m = 0; m < U.length; m += 1)
4629
- U[m] && U[m].m(y, null);
4630
- C(l, T), C(l, _), C(_, H), C(H, A), X || (ne = [
4631
- pt(
4590
+ me(D, t, V), C(t, n), C(t, i), C(t, a), C(a, l), C(l, s), C(s, h), C(h, d), C(l, b), C(l, y);
4591
+ for (let g = 0; g < U.length; g += 1)
4592
+ U[g] && U[g].m(y, null);
4593
+ C(l, B), C(l, x), C(x, H), C(H, A), X || (ne = [
4594
+ dt(
4632
4595
  n,
4633
4596
  "click",
4634
4597
  /*click_handler_1*/
4635
4598
  e[25]
4636
4599
  ),
4637
- pt(
4600
+ dt(
4638
4601
  H,
4639
4602
  "click",
4640
4603
  /*click_handler_2*/
@@ -4647,37 +4610,37 @@ function Hn(e) {
4647
4610
  8 && r !== (r = "BalanceModalClose " + /*modalOpened*/
4648
4611
  (D[3] ? "Open" : "")) && M(n, "class", r), V[0] & /*$_*/
4649
4612
  64 && u !== (u = /*$_*/
4650
- D[6]("Title") + "") && Be(d, u), V[0] & /*balances, currency, formatBalance, $_*/
4613
+ D[6]("Title") + "") && _e(d, u), V[0] & /*balances, currency, formatBalance, $_*/
4651
4614
  354) {
4652
- W = mt(Object.keys(
4615
+ W = pt(Object.keys(
4653
4616
  /*balances*/
4654
4617
  D[1]
4655
4618
  ));
4656
- let m;
4657
- for (m = 0; m < W.length; m += 1) {
4658
- const J = An(D, W, m);
4659
- U[m] ? U[m].p(J, V) : (U[m] = Rn(J), U[m].c(), U[m].m(y, null));
4619
+ let g;
4620
+ for (g = 0; g < W.length; g += 1) {
4621
+ const J = xn(D, W, g);
4622
+ U[g] ? U[g].p(J, V) : (U[g] = wn(J), U[g].c(), U[g].m(y, null));
4660
4623
  }
4661
- for (; m < U.length; m += 1)
4662
- U[m].d(1);
4624
+ for (; g < U.length; g += 1)
4625
+ U[g].d(1);
4663
4626
  U.length = W.length;
4664
4627
  }
4665
4628
  V[0] & /*$_*/
4666
- 64 && B !== (B = /*$_*/
4667
- D[6]("DepositButton") + "") && Be(A, B), V[0] & /*modalOpened*/
4629
+ 64 && _ !== (_ = /*$_*/
4630
+ D[6]("DepositButton") + "") && _e(A, _), V[0] & /*modalOpened*/
4668
4631
  8 && P !== (P = "ModalContent " + /*modalOpened*/
4669
4632
  (D[3] ? "Open" : "")) && M(l, "class", P), V[0] & /*modalOpened*/
4670
4633
  8 && O !== (O = "BalanceModal " + /*modalOpened*/
4671
4634
  (D[3] ? "Open" : "")) && M(a, "class", O), V[0] & /*modalOpened*/
4672
- 8 && k !== (k = "BalanceModalWrapper " + /*modalOpened*/
4673
- (D[3] ? "Open" : "")) && M(t, "class", k);
4635
+ 8 && j !== (j = "BalanceModalWrapper " + /*modalOpened*/
4636
+ (D[3] ? "Open" : "")) && M(t, "class", j);
4674
4637
  },
4675
4638
  d(D) {
4676
- D && fe(t), Pn(U, D), X = !1, je(ne);
4639
+ D && he(t), On(U, D), X = !1, $e(ne);
4677
4640
  }
4678
4641
  };
4679
4642
  }
4680
- function On(e) {
4643
+ function Tn(e) {
4681
4644
  let t, n, r = (
4682
4645
  /*$_*/
4683
4646
  e[6](
@@ -4693,7 +4656,7 @@ function On(e) {
4693
4656
  e[53].productType
4694
4657
  )
4695
4658
  ) : "") + ""
4696
- ), o, c, u, d, b = (
4659
+ ), s, h, u, d, b = (
4697
4660
  /*b*/
4698
4661
  (e[53].amount ? (
4699
4662
  /*formatBalance*/
@@ -4702,53 +4665,53 @@ function On(e) {
4702
4665
  e[53].amount
4703
4666
  )
4704
4667
  ) : "0") + ""
4705
- ), y, T, _, H;
4668
+ ), y, B, x, H;
4706
4669
  return {
4707
4670
  c() {
4708
- t = $("div"), n = $("p"), i = he(r), a = de(), o = he(l), c = de(), u = $("p"), d = $("span"), y = he(b), T = de(), _ = $("span"), H = he(
4671
+ t = $("div"), n = $("p"), i = ce(r), a = fe(), s = ce(l), h = fe(), u = $("p"), d = $("span"), y = ce(b), B = fe(), x = $("span"), H = ce(
4709
4672
  /*currency*/
4710
4673
  e[5]
4711
- ), M(n, "class", "BalanceModalText"), M(d, "class", "BalanceModalAmount"), M(_, "class", "BalanceModalCurrency"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
4674
+ ), M(n, "class", "BalanceModalText"), M(d, "class", "BalanceModalAmount"), M(x, "class", "BalanceModalCurrency"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
4712
4675
  },
4713
- m(B, A) {
4714
- ge(B, t, A), C(t, n), C(n, i), C(n, a), C(n, o), C(t, c), C(t, u), C(u, d), C(d, y), C(u, T), C(u, _), C(_, H);
4676
+ m(_, A) {
4677
+ me(_, t, A), C(t, n), C(n, i), C(n, a), C(n, s), C(t, h), C(t, u), C(u, d), C(d, y), C(u, B), C(u, x), C(x, H);
4715
4678
  },
4716
- p(B, A) {
4679
+ p(_, A) {
4717
4680
  A[0] & /*$_, balances*/
4718
4681
  66 && r !== (r = /*$_*/
4719
- B[6](
4682
+ _[6](
4720
4683
  /*k*/
4721
- B[50]
4722
- ) + "") && Be(i, r), A[0] & /*balances, $_*/
4684
+ _[50]
4685
+ ) + "") && _e(i, r), A[0] & /*balances, $_*/
4723
4686
  66 && l !== (l = /*b*/
4724
- (B[53].productType ? (
4687
+ (_[53].productType ? (
4725
4688
  /*$_*/
4726
- B[6](
4689
+ _[6](
4727
4690
  /*b*/
4728
- B[53].productType
4691
+ _[53].productType
4729
4692
  )
4730
- ) : "") + "") && Be(o, l), A[0] & /*balances*/
4693
+ ) : "") + "") && _e(s, l), A[0] & /*balances*/
4731
4694
  2 && b !== (b = /*b*/
4732
- (B[53].amount ? (
4695
+ (_[53].amount ? (
4733
4696
  /*formatBalance*/
4734
- B[8](
4697
+ _[8](
4735
4698
  /*b*/
4736
- B[53].amount
4699
+ _[53].amount
4737
4700
  )
4738
- ) : "0") + "") && Be(y, b), A[0] & /*currency*/
4739
- 32 && Be(
4701
+ ) : "0") + "") && _e(y, b), A[0] & /*currency*/
4702
+ 32 && _e(
4740
4703
  H,
4741
4704
  /*currency*/
4742
- B[5]
4705
+ _[5]
4743
4706
  );
4744
4707
  },
4745
- d(B) {
4746
- B && fe(t);
4708
+ d(_) {
4709
+ _ && he(t);
4747
4710
  }
4748
4711
  };
4749
4712
  }
4750
- function Rn(e) {
4751
- let t, n, r = mt(
4713
+ function wn(e) {
4714
+ let t, n, r = pt(
4752
4715
  /*balances*/
4753
4716
  e[1][
4754
4717
  /*k*/
@@ -4756,105 +4719,105 @@ function Rn(e) {
4756
4719
  ]
4757
4720
  ), i = [];
4758
4721
  for (let a = 0; a < r.length; a += 1)
4759
- i[a] = On(Cn(e, r, a));
4722
+ i[a] = Tn(_n(e, r, a));
4760
4723
  return {
4761
4724
  c() {
4762
4725
  t = $("div");
4763
4726
  for (let a = 0; a < i.length; a += 1)
4764
4727
  i[a].c();
4765
- n = de(), M(t, "class", "BalanceModalRowBoth");
4728
+ n = fe(), M(t, "class", "BalanceModalRowBoth");
4766
4729
  },
4767
4730
  m(a, l) {
4768
- ge(a, t, l);
4769
- for (let o = 0; o < i.length; o += 1)
4770
- i[o] && i[o].m(t, null);
4731
+ me(a, t, l);
4732
+ for (let s = 0; s < i.length; s += 1)
4733
+ i[s] && i[s].m(t, null);
4771
4734
  C(t, n);
4772
4735
  },
4773
4736
  p(a, l) {
4774
4737
  if (l[0] & /*currency, balances, formatBalance, $_*/
4775
4738
  354) {
4776
- r = mt(
4739
+ r = pt(
4777
4740
  /*balances*/
4778
4741
  a[1][
4779
4742
  /*k*/
4780
4743
  a[50]
4781
4744
  ]
4782
4745
  );
4783
- let o;
4784
- for (o = 0; o < r.length; o += 1) {
4785
- const c = Cn(a, r, o);
4786
- i[o] ? i[o].p(c, l) : (i[o] = On(c), i[o].c(), i[o].m(t, n));
4746
+ let s;
4747
+ for (s = 0; s < r.length; s += 1) {
4748
+ const h = _n(a, r, s);
4749
+ i[s] ? i[s].p(h, l) : (i[s] = Tn(h), i[s].c(), i[s].m(t, n));
4787
4750
  }
4788
- for (; o < i.length; o += 1)
4789
- i[o].d(1);
4751
+ for (; s < i.length; s += 1)
4752
+ i[s].d(1);
4790
4753
  i.length = r.length;
4791
4754
  }
4792
4755
  },
4793
4756
  d(a) {
4794
- a && fe(t), Pn(i, a);
4757
+ a && he(t), On(i, a);
4795
4758
  }
4796
4759
  };
4797
4760
  }
4798
- function Ln(e) {
4761
+ function Sn(e) {
4799
4762
  let t, n, r;
4800
4763
  return {
4801
4764
  c() {
4802
4765
  t = $("div"), M(t, "class", "ShowBalanceModalOverlay");
4803
4766
  },
4804
4767
  m(i, a) {
4805
- ge(i, t, a), n || (r = pt(
4768
+ me(i, t, a), n || (r = dt(
4806
4769
  t,
4807
4770
  "click",
4808
4771
  /*click_handler_3*/
4809
4772
  e[27]
4810
4773
  ), n = !0);
4811
4774
  },
4812
- p: le,
4775
+ p: se,
4813
4776
  d(i) {
4814
- i && fe(t), n = !1, r();
4777
+ i && he(t), n = !1, r();
4815
4778
  }
4816
4779
  };
4817
4780
  }
4818
- function Ua(e) {
4781
+ function Aa(e) {
4819
4782
  let t, n, r;
4820
- function i(c, u) {
4783
+ function i(h, u) {
4821
4784
  return (
4822
4785
  /*isLoading*/
4823
- c[2] ? Da : Pa
4786
+ h[2] ? Sa : wa
4824
4787
  );
4825
4788
  }
4826
- let a = i(e), l = a(e), o = (
4789
+ let a = i(e), l = a(e), s = (
4827
4790
  /*showBalance*/
4828
- e[4] && Ln(e)
4791
+ e[4] && Sn(e)
4829
4792
  );
4830
4793
  return {
4831
4794
  c() {
4832
- t = $("div"), n = $("div"), l.c(), r = de(), o && o.c(), M(n, "class", "ShowBalance");
4795
+ t = $("div"), n = $("div"), l.c(), r = fe(), s && s.c(), M(n, "class", "ShowBalance");
4833
4796
  },
4834
- m(c, u) {
4835
- ge(c, t, u), C(t, n), l.m(n, null), C(t, r), o && o.m(t, null), e[28](t);
4797
+ m(h, u) {
4798
+ me(h, t, u), C(t, n), l.m(n, null), C(t, r), s && s.m(t, null), e[28](t);
4836
4799
  },
4837
- p(c, u) {
4838
- a === (a = i(c)) && l ? l.p(c, u) : (l.d(1), l = a(c), l && (l.c(), l.m(n, null))), /*showBalance*/
4839
- c[4] ? o ? o.p(c, u) : (o = Ln(c), o.c(), o.m(t, null)) : o && (o.d(1), o = null);
4800
+ p(h, u) {
4801
+ a === (a = i(h)) && l ? l.p(h, u) : (l.d(1), l = a(h), l && (l.c(), l.m(n, null))), /*showBalance*/
4802
+ h[4] ? s ? s.p(h, u) : (s = Sn(h), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4840
4803
  },
4841
- i: le,
4842
- o: le,
4843
- d(c) {
4844
- c && fe(t), l.d(), o && o.d(), e[28](null);
4804
+ i: se,
4805
+ o: se,
4806
+ d(h) {
4807
+ h && he(t), l.d(), s && s.d(), e[28](null);
4845
4808
  }
4846
4809
  };
4847
4810
  }
4848
- function Fa(e, t, n) {
4811
+ function Ca(e, t, n) {
4849
4812
  let r;
4850
- br(e, Aa, (s) => n(6, r = s));
4851
- let { userid: i = "" } = t, { session: a = "" } = t, { endpoint: l = "" } = t, { lang: o = "en" } = t, { clientstyling: c = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: d = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: y = "gm16" } = t, { displaybalanceoption: T = "All" } = t, { totalcalculationmode: _ = "totalCashAmount" } = t, { currencyseparator: H = "" } = t, { currencydecimal: B = "" } = t, { currencyprecision: A = "" } = t, P, O, k, X, ne = !1, W = "", U = [], D, V = !1;
4852
- const m = {}, J = ["totalCashAmount", "totalRealAmount"], it = () => {
4853
- fetch(d).then((s) => s.json()).then((s) => Object.keys(s).forEach((p) => wn(p, s[p]))).catch((s) => console.log(s));
4813
+ or(e, ga, (o) => n(6, r = o));
4814
+ let { userid: i = "" } = t, { session: a = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: d = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: y = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: x = "totalCashAmount" } = t, { currencyseparator: H = "" } = t, { currencydecimal: _ = "" } = t, { currencyprecision: A = "" } = t, P, O, j, X, ne = !1, W = "", U = [], D, V = !1;
4815
+ const g = {}, J = ["totalCashAmount", "totalRealAmount"], rt = () => {
4816
+ fetch(d).then((o) => o.json()).then((o) => Object.keys(o).forEach((p) => vn(p, o[p]))).catch((o) => console.log(o));
4854
4817
  };
4855
- Object.keys(Sn).forEach((s) => wn(s, Sn[s]));
4856
- const be = (s) => {
4857
- switch (s) {
4818
+ Object.keys(En).forEach((o) => vn(o, En[o]));
4819
+ const ge = (o) => {
4820
+ switch (o) {
4858
4821
  case "balance":
4859
4822
  window.postMessage(
4860
4823
  {
@@ -4862,10 +4825,10 @@ function Fa(e, t, n) {
4862
4825
  status: "open"
4863
4826
  },
4864
4827
  window.location.href
4865
- ), n(4, ne = !0), setTimeout(() => n(3, k = !0), 150);
4828
+ ), n(4, ne = !0), setTimeout(() => n(3, j = !0), 150);
4866
4829
  break;
4867
4830
  case "closebalance":
4868
- n(3, k = !1), window.postMessage(
4831
+ n(3, j = !1), window.postMessage(
4869
4832
  {
4870
4833
  type: "BalanceModalStatus",
4871
4834
  status: "close"
@@ -4879,76 +4842,75 @@ function Fa(e, t, n) {
4879
4842
  );
4880
4843
  break;
4881
4844
  }
4882
- }, ze = () => {
4883
- if (b.includes(o))
4845
+ }, Xe = () => {
4846
+ if (b.includes(s))
4884
4847
  return b;
4885
- }, We = (s) => b ? new Intl.NumberFormat(ze(), { useGrouping: !0 }).format(s) : H && B ? ce(s, {
4848
+ }, ze = (o) => b ? new Intl.NumberFormat(Xe(), { useGrouping: !0 }).format(o) : H && _ ? ue(o, {
4886
4849
  separator: H,
4887
- decimal: B,
4850
+ decimal: _,
4888
4851
  symbol: "",
4889
4852
  precision: parseInt(A || "2", 10)
4890
- }).format() : ce(s, {
4853
+ }).format() : ue(o, {
4891
4854
  separator: ".",
4892
4855
  decimal: ",",
4893
4856
  symbol: "",
4894
4857
  precision: parseInt(A || "2", 10)
4895
- }).format(), pe = () => Nt(this, null, function* () {
4896
- var p, f, g;
4858
+ }).format(), de = async () => {
4897
4859
  n(2, P = !0);
4898
- const s = new URL(`${l}/v1/player/${i}/account`);
4860
+ const o = new URL(`${l}/v1/player/${i}/account`);
4899
4861
  try {
4900
- const v = yield fetch(s, {
4862
+ const p = await fetch(o, {
4901
4863
  method: "GET",
4902
4864
  headers: { "X-SessionID": a }
4903
- }), x = yield v.json();
4904
- if (v.ok)
4905
- window.postMessage({ type: "BalancedFetched" }, window.location.href), U = x.items, n(5, W = (p = U.find((E) => E.displayName === "Casino")) == null ? void 0 : p.currency), n(1, m.Total = [{ amount: x.totalAmount[W] }], m), n(
4865
+ }), f = await p.json();
4866
+ if (p.ok)
4867
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), U = f.items, n(5, W = U.find((m) => m.displayName === "Casino")?.currency), n(1, g.Total = [{ amount: f.totalAmount[W] }], g), n(
4906
4868
  1,
4907
- m.Real = [
4869
+ g.Real = [
4908
4870
  {
4909
- amount: (f = U.find((E) => E.displayName === "Casino")) == null ? void 0 : f.balanceAmount
4871
+ amount: U.find((m) => m.displayName === "Casino")?.balanceAmount
4910
4872
  }
4911
4873
  ],
4912
- m
4874
+ g
4913
4875
  ), n(
4914
4876
  1,
4915
- m.Bonus = [
4877
+ g.Bonus = [
4916
4878
  {
4917
- amount: (g = U.find((E) => E.displayName === "UBS")) == null ? void 0 : g.balanceAmount
4879
+ amount: U.find((m) => m.displayName === "UBS")?.balanceAmount
4918
4880
  }
4919
4881
  ],
4920
- m
4882
+ g
4921
4883
  );
4922
4884
  else
4923
4885
  throw new Error("Failed to fetch balance data !");
4924
- } catch (v) {
4925
- console.log("Balance error: ", v);
4886
+ } catch (p) {
4887
+ console.log("Balance error: ", p);
4926
4888
  } finally {
4927
4889
  n(2, P = !1);
4928
4890
  }
4929
- }), Te = () => {
4891
+ }, Be = () => {
4930
4892
  n(2, P = !0);
4931
- const s = new URL(`${l}/v2/player/${i}/balance`), p = new Headers();
4932
- p.append("X-SessionID", a), fetch(s, { method: "GET", headers: p }).then((g) => g.json()).then((g) => {
4933
- g[_] || n(10, _ = J[0]);
4934
- const v = g.items.find((E) => E.type === "Real" && E.walletAccountType === "Ordinary");
4935
- if (n(5, W = v.currency), V = !!v.productType, n(1, m.Total = [{ amount: 0 }], m), n(1, m.Real = [], m), n(1, m.Bonus = [], m), n(1, m.Credit = [], m), !V) {
4893
+ const o = new URL(`${l}/v2/player/${i}/balance`), p = new Headers();
4894
+ p.append("X-SessionID", a), fetch(o, { method: "GET", headers: p }).then((m) => m.json()).then((m) => {
4895
+ m[x] || n(10, x = J[0]);
4896
+ const v = m.items.find((E) => E.type === "Real" && E.walletAccountType === "Ordinary");
4897
+ if (n(5, W = v.currency), V = !!v.productType, n(1, g.Total = [{ amount: 0 }], g), n(1, g.Real = [], g), n(1, g.Bonus = [], g), n(1, g.Credit = [], g), !V) {
4936
4898
  D = {
4937
4899
  lastOrdinaryAfterAmount: 0,
4938
4900
  showCreditLineAfterAmount: !1
4939
- }, n(1, m.Total[0].amount = g[_][W], m);
4940
- for (const E of g.items)
4901
+ }, n(1, g.Total[0].amount = m[x][W], g);
4902
+ for (const E of m.items)
4941
4903
  switch (E.type) {
4942
4904
  case "Bonus":
4943
- m.Bonus.length === 0 ? m.Bonus.push({ amount: E.amount }) : n(1, m.Bonus[0].amount += E.amount, m);
4905
+ g.Bonus.length === 0 ? g.Bonus.push({ amount: E.amount }) : n(1, g.Bonus[0].amount += E.amount, g);
4944
4906
  break;
4945
4907
  case "Real":
4946
- if (E.creditLine && m.Credit.length === 0 && m.Credit.push({ amount: E.creditLine }), _ === "totalRealAmount") continue;
4947
- m.Real.length === 0 ? m.Real.push({ amount: E.amount }) : n(1, m.Real[0].amount += E.amount, m);
4908
+ if (E.creditLine && g.Credit.length === 0 && g.Credit.push({ amount: E.creditLine }), x === "totalRealAmount") continue;
4909
+ g.Real.length === 0 ? g.Real.push({ amount: E.amount }) : n(1, g.Real[0].amount += E.amount, g);
4948
4910
  break;
4949
4911
  }
4950
- for (const [E, w] of Object.entries(m))
4951
- w.length < 1 && delete m[E];
4912
+ for (const [E, w] of Object.entries(g))
4913
+ w.length < 1 && delete g[E];
4952
4914
  n(2, P = !1);
4953
4915
  return;
4954
4916
  }
@@ -4962,141 +4924,141 @@ function Fa(e, t, n) {
4962
4924
  showCreditLineAfterAmount: !1
4963
4925
  }
4964
4926
  };
4965
- let x = g.items;
4966
- T && T !== "All" && (x = g.items.filter((E) => E.productType === T));
4967
- for (const E of x) {
4927
+ let T = m.items;
4928
+ B && B !== "All" && (T = m.items.filter((E) => E.productType === B));
4929
+ for (const E of T) {
4968
4930
  let w;
4969
4931
  switch (E.type) {
4970
4932
  case "Bonus":
4971
- w = m.Bonus.findIndex((N) => N.productType === E.productType), w > 0 ? n(1, m.Bonus[w].amount += E.amount, m) : m.Bonus.push({
4933
+ w = g.Bonus.findIndex((N) => N.productType === E.productType), w > 0 ? n(1, g.Bonus[w].amount += E.amount, g) : g.Bonus.push({
4972
4934
  amount: E.amount,
4973
4935
  productType: E.productType
4974
4936
  });
4975
4937
  break;
4976
4938
  case "Real":
4977
- E.creditLine && m.Credit.push({
4939
+ E.creditLine && g.Credit.push({
4978
4940
  amount: E.creditLine,
4979
4941
  productType: E.productType
4980
- }), w = m.Real.findIndex((N) => N.productType === E.productType), w > 0 ? n(1, m.Real[w].amount += E.amount, m) : m.Real.push({
4942
+ }), w = g.Real.findIndex((N) => N.productType === E.productType), w > 0 ? n(1, g.Real[w].amount += E.amount, g) : g.Real.push({
4981
4943
  amount: E.amount,
4982
4944
  productType: E.productType
4983
4945
  });
4984
4946
  break;
4985
4947
  }
4986
4948
  }
4987
- Ze();
4988
- for (const [E, w] of Object.entries(m))
4989
- w.length < 1 && delete m[E];
4949
+ We();
4950
+ for (const [E, w] of Object.entries(g))
4951
+ w.length < 1 && delete g[E];
4990
4952
  n(2, P = !1);
4991
- }).catch((g) => {
4953
+ }).catch((m) => {
4992
4954
  throw n(2, P = !1), new Error("Failed to fetch balance data !");
4993
4955
  });
4994
- }, ye = () => {
4956
+ }, be = () => {
4995
4957
  if (X && X.close(), a.length < 1) return;
4996
- let s, p;
4958
+ let o, p;
4997
4959
  switch (y) {
4998
4960
  case "gm16":
4999
- s = new URL(`${l}/v2/player/${i}/information/updates`), p = (v) => Bt(v);
4961
+ o = new URL(`${l}/v2/player/${i}/information/updates`), p = (v) => _t(v);
5000
4962
  break;
5001
4963
  case "gmcore":
5002
- s = new URL(`${l}/v1/player/${i}/balance/updates`), p = (v) => me(v);
4964
+ o = new URL(`${l}/v1/player/${i}/balance/updates`), p = (v) => pe(v);
5003
4965
  break;
5004
4966
  }
5005
4967
  const f = {
5006
4968
  accept: "text/event-stream",
5007
4969
  "X-SessionId": a
5008
- }, g = new Ha.EventSourcePolyfill(s, { headers: f });
5009
- X = g, g.addEventListener("message", p);
5010
- }, Oe = (s) => {
4970
+ }, m = new ya.EventSourcePolyfill(o, { headers: f });
4971
+ X = m, m.addEventListener("message", p);
4972
+ }, He = (o) => {
5011
4973
  let p;
5012
4974
  try {
5013
- p = JSON.parse(s);
4975
+ p = JSON.parse(o);
5014
4976
  } catch (f) {
5015
4977
  console.log("Balance stream failed: ", f);
5016
4978
  return;
5017
4979
  }
5018
4980
  return p;
5019
- }, me = (s) => {
5020
- var v, x;
5021
- const p = Oe(s.data);
4981
+ }, pe = (o) => {
4982
+ const p = He(o.data);
5022
4983
  if (!p) {
5023
- ye();
4984
+ be();
5024
4985
  return;
5025
4986
  }
5026
4987
  let f = "0";
5027
- const g = p.balanceChange;
5028
- U = U.map((E) => (g && g[E.id] && (E = Mt(Lt({}, E), {
5029
- balanceAmount: g[E.id].afterAmount
5030
- })), f = (parseFloat(E == null ? void 0 : E.balanceAmount) + parseFloat(f)).toString(), E)), n(1, m.Real = [{ amount: (v = U[0]) == null ? void 0 : v.balanceAmount }], m), n(1, m.Bonus = [{ amount: (x = U[1]) == null ? void 0 : x.balanceAmount }], m), n(1, m.Total = [{ amount: Number(f) }], m);
5031
- }, Ae = (s, p, f) => {
5032
- let g = null;
4988
+ const m = p.balanceChange;
4989
+ U = U.map((v) => (m && m[v.id] && (v = {
4990
+ ...v,
4991
+ balanceAmount: m[v.id].afterAmount
4992
+ }), f = (parseFloat(v?.balanceAmount) + parseFloat(f)).toString(), v)), n(1, g.Real = [{ amount: U[0]?.balanceAmount }], g), n(1, g.Bonus = [{ amount: U[1]?.balanceAmount }], g), n(1, g.Total = [{ amount: Number(f) }], g);
4993
+ }, Se = (o, p, f) => {
4994
+ let m = null;
5033
4995
  switch (f.walletAccountType) {
5034
4996
  case "Ordinary":
5035
- f.afterAmount !== f.affectedAmount && (p.lastOrdinaryAfterAmount = f.afterAmount, p.showCreditLineAfterAmount || (g = f.afterAmount));
4997
+ f.afterAmount !== f.affectedAmount && (p.lastOrdinaryAfterAmount = f.afterAmount, p.showCreditLineAfterAmount || (m = f.afterAmount));
5036
4998
  break;
5037
4999
  case "CreditLine":
5038
- f.afterAmount !== 0 ? (g = f.afterAmount, p.showCreditLineAfterAmount = !0) : (g = p.lastOrdinaryAfterAmount, p.showCreditLineAfterAmount = !1);
5000
+ f.afterAmount !== 0 ? (m = f.afterAmount, p.showCreditLineAfterAmount = !0) : (m = p.lastOrdinaryAfterAmount, p.showCreditLineAfterAmount = !1);
5039
5001
  break;
5040
5002
  default:
5041
- g = f.afterAmount;
5003
+ m = f.afterAmount;
5042
5004
  }
5043
- return g === null ? s : g;
5044
- }, Ze = () => {
5045
- switch (_) {
5005
+ return m === null ? o : m;
5006
+ }, We = () => {
5007
+ switch (x) {
5046
5008
  case "totalCashAmount":
5047
- let s = 0;
5009
+ let o = 0;
5048
5010
  for (const f of ["Real", "Bonus"])
5049
- for (const g of m[f])
5050
- s += Math.max(g.amount, 0);
5051
- n(1, m.Total[0].amount = s, m);
5011
+ for (const m of g[f])
5012
+ o += Math.max(m.amount, 0);
5013
+ n(1, g.Total[0].amount = o, g);
5052
5014
  break;
5053
5015
  case "totalRealAmount":
5054
5016
  if (!V) return;
5055
5017
  let p = 0;
5056
- for (const f of m.Real)
5018
+ for (const f of g.Real)
5057
5019
  p += f.amount;
5058
- n(1, m.Total[0].amount = p, m);
5020
+ n(1, g.Total[0].amount = p, g);
5059
5021
  }
5060
- }, Bt = (s) => {
5061
- const p = Oe(s.data);
5022
+ }, _t = (o) => {
5023
+ const p = He(o.data);
5062
5024
  if (!p) {
5063
- ye();
5025
+ be();
5064
5026
  return;
5065
5027
  }
5066
5028
  if (p.type !== "BALANCE_UPDATE_V2")
5067
5029
  return;
5068
5030
  const f = p.body.balanceChange;
5069
- for (const [g, v] of Object.entries(f))
5070
- if (_ === "totalRealAmount" && g === "Real" && !V && n(1, m.Total[0].amount = Ae(m.Total[0].amount, D, v), m), !!m[g])
5071
- for (const x of m[g]) {
5031
+ for (const [m, v] of Object.entries(f))
5032
+ if (x === "totalRealAmount" && m === "Real" && !V && n(1, g.Total[0].amount = Se(g.Total[0].amount, D, v), g), !!g[m])
5033
+ for (const T of g[m]) {
5072
5034
  if (!V) {
5073
- x.amount = g === "Real" ? Ae(x.amount, D, v) : v.afterAmount;
5035
+ T.amount = m === "Real" ? Se(T.amount, D, v) : v.afterAmount;
5074
5036
  continue;
5075
5037
  }
5076
- v.productType === x.productType && (x.amount = g === "Real" ? Ae(x.amount, D[x.productType], v) : v.afterAmount);
5038
+ v.productType === T.productType && (T.amount = m === "Real" ? Se(T.amount, D[T.productType], v) : v.afterAmount);
5077
5039
  }
5078
- Ze();
5079
- }, at = () => {
5080
- be("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5040
+ We();
5041
+ }, it = () => {
5042
+ ge("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5043
+ }, Bt = () => {
5044
+ J.includes(x) || (console.error(`Unsupported value ('${x}') for totalcalculationmode parameter. Only the following values are supported ${J}. Using default value ('${J[0]}').`), n(10, x = J[0]));
5081
5045
  }, Tt = () => {
5082
- J.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${J}. Using default value ('${J[0]}').`), n(10, _ = J[0]));
5083
- }, wt = () => {
5084
- switch (Ca(o), Tt(), y) {
5046
+ switch (ba(s), Bt(), y) {
5085
5047
  case "gmcore":
5086
- pe();
5048
+ de();
5087
5049
  break;
5088
5050
  case "gm16":
5089
- Te();
5051
+ Be();
5090
5052
  break;
5091
5053
  default:
5092
5054
  throw Error(`Invalid apiversion attribute: ${y}`);
5093
5055
  }
5094
- }, Re = (s) => s.data && s.data.type === "LogoutSuccessfull" && X.close(), qe = () => {
5095
- const s = document.createElement("style");
5096
- s.innerHTML = c, O.appendChild(s);
5097
- }, we = () => {
5098
- const s = new URL(u), p = document.createElement("style");
5099
- fetch(s.href).then((f) => f.text()).then((f) => {
5056
+ }, Oe = (o) => o.data && o.data.type === "LogoutSuccessfull" && X.close(), Ze = () => {
5057
+ const o = document.createElement("style");
5058
+ o.innerHTML = h, O.appendChild(o);
5059
+ }, Te = () => {
5060
+ const o = new URL(u), p = document.createElement("style");
5061
+ fetch(o.href).then((f) => f.text()).then((f) => {
5100
5062
  p.innerHTML = f, setTimeout(
5101
5063
  () => {
5102
5064
  O.appendChild(p);
@@ -5107,66 +5069,66 @@ function Fa(e, t, n) {
5107
5069
  }, re = () => {
5108
5070
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
5109
5071
  };
5110
- wr(() => (window.addEventListener("message", Re, !1), () => {
5111
- window.removeEventListener("message", Re), X && X.close();
5072
+ pr(() => (window.addEventListener("message", Oe, !1), () => {
5073
+ window.removeEventListener("message", Oe), X && X.close();
5112
5074
  }));
5113
- const St = () => be("balance"), At = () => be("closebalance"), Ct = () => at(), ot = () => be("closeBalance");
5114
- function h(s) {
5115
- jt[s ? "unshift" : "push"](() => {
5116
- O = s, n(0, O);
5075
+ const wt = () => ge("balance"), St = () => ge("closebalance"), At = () => it(), at = () => ge("closeBalance");
5076
+ function c(o) {
5077
+ Dt[o ? "unshift" : "push"](() => {
5078
+ O = o, n(0, O);
5117
5079
  });
5118
5080
  }
5119
- return e.$$set = (s) => {
5120
- "userid" in s && n(11, i = s.userid), "session" in s && n(12, a = s.session), "endpoint" in s && n(13, l = s.endpoint), "lang" in s && n(14, o = s.lang), "clientstyling" in s && n(15, c = s.clientstyling), "clientstylingurl" in s && n(16, u = s.clientstylingurl), "translationurl" in s && n(17, d = s.translationurl), "customlocaleidentifier" in s && n(18, b = s.customlocaleidentifier), "gmversion" in s && n(19, y = s.gmversion), "displaybalanceoption" in s && n(20, T = s.displaybalanceoption), "totalcalculationmode" in s && n(10, _ = s.totalcalculationmode), "currencyseparator" in s && n(21, H = s.currencyseparator), "currencydecimal" in s && n(22, B = s.currencydecimal), "currencyprecision" in s && n(23, A = s.currencyprecision);
5081
+ return e.$$set = (o) => {
5082
+ "userid" in o && n(11, i = o.userid), "session" in o && n(12, a = o.session), "endpoint" in o && n(13, l = o.endpoint), "lang" in o && n(14, s = o.lang), "clientstyling" in o && n(15, h = o.clientstyling), "clientstylingurl" in o && n(16, u = o.clientstylingurl), "translationurl" in o && n(17, d = o.translationurl), "customlocaleidentifier" in o && n(18, b = o.customlocaleidentifier), "gmversion" in o && n(19, y = o.gmversion), "displaybalanceoption" in o && n(20, B = o.displaybalanceoption), "totalcalculationmode" in o && n(10, x = o.totalcalculationmode), "currencyseparator" in o && n(21, H = o.currencyseparator), "currencydecimal" in o && n(22, _ = o.currencydecimal), "currencyprecision" in o && n(23, A = o.currencyprecision);
5121
5083
  }, e.$$.update = () => {
5122
5084
  e.$$.dirty[0] & /*lang*/
5123
- 16384 && o && ze(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5124
- 1603584 && l && i && a && o && y && T && wt(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5125
- 538624 && l && i && a && y && ye(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5126
- 32769 && c && O && qe(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5127
- 65537 && u && O && we(), e.$$.dirty[0] & /*translationurl*/
5128
- 131072 && d && it(), e.$$.dirty[0] & /*balances*/
5129
- 2 && m.Total && re();
5085
+ 16384 && s && Xe(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5086
+ 1603584 && l && i && a && s && y && B && Tt(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5087
+ 538624 && l && i && a && y && be(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5088
+ 32769 && h && O && Ze(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5089
+ 65537 && u && O && Te(), e.$$.dirty[0] & /*translationurl*/
5090
+ 131072 && d && rt(), e.$$.dirty[0] & /*balances*/
5091
+ 2 && g.Total && re();
5130
5092
  }, [
5131
5093
  O,
5132
- m,
5094
+ g,
5133
5095
  P,
5134
- k,
5096
+ j,
5135
5097
  ne,
5136
5098
  W,
5137
5099
  r,
5138
- be,
5139
- We,
5140
- at,
5141
- _,
5100
+ ge,
5101
+ ze,
5102
+ it,
5103
+ x,
5142
5104
  i,
5143
5105
  a,
5144
5106
  l,
5145
- o,
5146
- c,
5107
+ s,
5108
+ h,
5147
5109
  u,
5148
5110
  d,
5149
5111
  b,
5150
5112
  y,
5151
- T,
5152
- H,
5153
5113
  B,
5114
+ H,
5115
+ _,
5154
5116
  A,
5117
+ wt,
5155
5118
  St,
5156
5119
  At,
5157
- Ct,
5158
- ot,
5159
- h
5120
+ at,
5121
+ c
5160
5122
  ];
5161
5123
  }
5162
- class Ga extends Dr {
5124
+ class Ha extends Sr {
5163
5125
  constructor(t) {
5164
- super(), Ir(
5126
+ super(), Tr(
5165
5127
  this,
5166
5128
  t,
5167
- Fa,
5168
- Ua,
5169
- Nn,
5129
+ Ca,
5130
+ Aa,
5131
+ Cn,
5170
5132
  {
5171
5133
  userid: 11,
5172
5134
  session: 12,
@@ -5183,7 +5145,7 @@ class Ga extends Dr {
5183
5145
  currencydecimal: 22,
5184
5146
  currencyprecision: 23
5185
5147
  },
5186
- Ia,
5148
+ Ta,
5187
5149
  [-1, -1]
5188
5150
  );
5189
5151
  }
@@ -5272,7 +5234,7 @@ class Ga extends Dr {
5272
5234
  this.$$set({ currencyprecision: t }), Q();
5273
5235
  }
5274
5236
  }
5275
- Pr(Ga, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5237
+ wr(Ha, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5276
5238
  export {
5277
- Ga as default
5239
+ Ha as P
5278
5240
  };