@everymatrix/player-account-closure 1.54.12 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,75 +1,75 @@
1
- var lr = Object.defineProperty, cr = Object.defineProperties;
2
- var hr = Object.getOwnPropertyDescriptors;
3
- var et = Object.getOwnPropertySymbols;
4
- var fr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable;
5
- var Se = (e, t, r) => t in e ? lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
1
+ var ur = Object.defineProperty, lr = Object.defineProperties;
2
+ var cr = Object.getOwnPropertyDescriptors;
3
+ var Ke = Object.getOwnPropertySymbols;
4
+ var hr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable;
5
+ var Ae = (e, t, r) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- fr.call(t, r) && Se(e, r, t[r]);
8
- if (et)
9
- for (var r of et(t))
10
- pr.call(t, r) && Se(e, r, t[r]);
7
+ hr.call(t, r) && Ae(e, r, t[r]);
8
+ if (Ke)
9
+ for (var r of Ke(t))
10
+ fr.call(t, r) && Ae(e, r, t[r]);
11
11
  return e;
12
- }, rt = (e, t) => cr(e, hr(t));
13
- var I = (e, t, r) => Se(e, typeof t != "symbol" ? t + "" : t, r);
14
- var nt = (e, t, r) => new Promise((n, i) => {
15
- var o = (l) => {
12
+ }, tt = (e, t) => lr(e, cr(t));
13
+ var O = (e, t, r) => Ae(e, typeof t != "symbol" ? t + "" : t, r);
14
+ var rt = (e, t, r) => new Promise((n, i) => {
15
+ var o = (u) => {
16
16
  try {
17
- a(r.next(l));
18
- } catch (u) {
19
- i(u);
17
+ a(r.next(u));
18
+ } catch (l) {
19
+ i(l);
20
20
  }
21
- }, s = (l) => {
21
+ }, s = (u) => {
22
22
  try {
23
- a(r.throw(l));
24
- } catch (u) {
25
- i(u);
23
+ a(r.throw(u));
24
+ } catch (l) {
25
+ i(l);
26
26
  }
27
- }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
27
+ }, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
28
28
  a((r = r.apply(e, t)).next());
29
29
  });
30
- function N() {
30
+ function I() {
31
31
  }
32
- function Ht(e) {
32
+ function Bt(e) {
33
33
  return e();
34
34
  }
35
- function it() {
35
+ function nt() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function te(e) {
39
- e.forEach(Ht);
38
+ function K(e) {
39
+ e.forEach(Bt);
40
40
  }
41
- function Qe(e) {
41
+ function qe(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function Mt(e, t) {
44
+ function Ht(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function dr(e) {
47
+ function pr(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function Pt(e, ...t) {
50
+ function Mt(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const n of t)
53
53
  n(void 0);
54
- return N;
54
+ return I;
55
55
  }
56
56
  const r = e.subscribe(...t);
57
57
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
58
  }
59
- function mr(e, t, r) {
60
- e.$$.on_destroy.push(Pt(t, r));
59
+ function dr(e, t, r) {
60
+ e.$$.on_destroy.push(Mt(t, r));
61
61
  }
62
62
  function v(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
- function br(e, t, r) {
66
- const n = vr(e);
65
+ function mr(e, t, r) {
66
+ const n = br(e);
67
67
  if (!n.getElementById(t)) {
68
68
  const i = B("style");
69
- i.id = t, i.textContent = r, gr(n, i);
69
+ i.id = t, i.textContent = r, vr(n, i);
70
70
  }
71
71
  }
72
- function vr(e) {
72
+ function br(e) {
73
73
  if (!e) return document;
74
74
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
75
75
  return t && /** @type {ShadowRoot} */
@@ -78,45 +78,45 @@ function vr(e) {
78
78
  t
79
79
  ) : e.ownerDocument;
80
80
  }
81
- function gr(e, t) {
81
+ function vr(e, t) {
82
82
  return v(
83
83
  /** @type {Document} */
84
84
  e.head || e,
85
85
  t
86
86
  ), t.sheet;
87
87
  }
88
- function xe(e, t, r) {
88
+ function ye(e, t, r) {
89
89
  e.insertBefore(t, r || null);
90
90
  }
91
- function le(e) {
91
+ function ue(e) {
92
92
  e.parentNode && e.parentNode.removeChild(e);
93
93
  }
94
94
  function B(e) {
95
95
  return document.createElement(e);
96
96
  }
97
- function z(e) {
97
+ function k(e) {
98
98
  return document.createElementNS("http://www.w3.org/2000/svg", e);
99
99
  }
100
- function $(e) {
100
+ function N(e) {
101
101
  return document.createTextNode(e);
102
102
  }
103
- function F() {
104
- return $(" ");
103
+ function U() {
104
+ return N(" ");
105
105
  }
106
- function ve(e, t, r, n) {
106
+ function be(e, t, r, n) {
107
107
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
108
108
  }
109
- function x(e, t, r) {
109
+ function E(e, t, r) {
110
110
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
111
111
  }
112
- function yr(e) {
112
+ function gr(e) {
113
113
  return Array.from(e.childNodes);
114
114
  }
115
- function G(e, t) {
115
+ function F(e, t) {
116
116
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
117
117
  t);
118
118
  }
119
- function xr(e) {
119
+ function yr(e) {
120
120
  const t = {};
121
121
  return e.childNodes.forEach(
122
122
  /** @param {Element} node */
@@ -125,136 +125,143 @@ function xr(e) {
125
125
  }
126
126
  ), t;
127
127
  }
128
- let Ye;
129
- function se(e) {
130
- Ye = e;
128
+ let oe;
129
+ function ie(e) {
130
+ oe = e;
131
131
  }
132
- const X = [], Ne = [];
133
- let q = [];
134
- const ot = [], Er = /* @__PURE__ */ Promise.resolve();
135
- let Le = !1;
136
- function _r() {
137
- Le || (Le = !0, Er.then(Z));
132
+ function xr() {
133
+ if (!oe) throw new Error("Function called outside component initialization");
134
+ return oe;
138
135
  }
139
- function $e(e) {
140
- q.push(e);
136
+ function Er(e) {
137
+ xr().$$.on_mount.push(e);
141
138
  }
142
- const Te = /* @__PURE__ */ new Set();
143
- let W = 0;
144
- function Z() {
145
- if (W !== 0)
139
+ const V = [], Ie = [];
140
+ let X = [];
141
+ const it = [], _r = /* @__PURE__ */ Promise.resolve();
142
+ let Ne = !1;
143
+ function wr() {
144
+ Ne || (Ne = !0, _r.then(D));
145
+ }
146
+ function Le(e) {
147
+ X.push(e);
148
+ }
149
+ const Se = /* @__PURE__ */ new Set();
150
+ let z = 0;
151
+ function D() {
152
+ if (z !== 0)
146
153
  return;
147
- const e = Ye;
154
+ const e = oe;
148
155
  do {
149
156
  try {
150
- for (; W < X.length; ) {
151
- const t = X[W];
152
- W++, se(t), Cr(t.$$);
157
+ for (; z < V.length; ) {
158
+ const t = V[z];
159
+ z++, ie(t), Cr(t.$$);
153
160
  }
154
161
  } catch (t) {
155
- throw X.length = 0, W = 0, t;
162
+ throw V.length = 0, z = 0, t;
156
163
  }
157
- for (se(null), X.length = 0, W = 0; Ne.length; ) Ne.pop()();
158
- for (let t = 0; t < q.length; t += 1) {
159
- const r = q[t];
160
- Te.has(r) || (Te.add(r), r());
164
+ for (ie(null), V.length = 0, z = 0; Ie.length; ) Ie.pop()();
165
+ for (let t = 0; t < X.length; t += 1) {
166
+ const r = X[t];
167
+ Se.has(r) || (Se.add(r), r());
161
168
  }
162
- q.length = 0;
163
- } while (X.length);
164
- for (; ot.length; )
165
- ot.pop()();
166
- Le = !1, Te.clear(), se(e);
169
+ X.length = 0;
170
+ } while (V.length);
171
+ for (; it.length; )
172
+ it.pop()();
173
+ Ne = !1, Se.clear(), ie(e);
167
174
  }
168
175
  function Cr(e) {
169
176
  if (e.fragment !== null) {
170
- e.update(), te(e.before_update);
177
+ e.update(), K(e.before_update);
171
178
  const t = e.dirty;
172
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
179
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
173
180
  }
174
181
  }
175
182
  function Ar(e) {
176
183
  const t = [], r = [];
177
- q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
184
+ X.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), X = t;
178
185
  }
179
- const wr = /* @__PURE__ */ new Set();
180
- function Sr(e, t) {
181
- e && e.i && (wr.delete(e), e.i(t));
186
+ const Sr = /* @__PURE__ */ new Set();
187
+ function Tr(e, t) {
188
+ e && e.i && (Sr.delete(e), e.i(t));
182
189
  }
183
- function Tr(e, t, r) {
190
+ function Br(e, t, r) {
184
191
  const { fragment: n, after_update: i } = e.$$;
185
- n && n.m(t, r), $e(() => {
186
- const o = e.$$.on_mount.map(Ht).filter(Qe);
187
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
188
- }), i.forEach($e);
192
+ n && n.m(t, r), Le(() => {
193
+ const o = e.$$.on_mount.map(Bt).filter(qe);
194
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : K(o), e.$$.on_mount = [];
195
+ }), i.forEach(Le);
189
196
  }
190
- function Br(e, t) {
197
+ function Hr(e, t) {
191
198
  const r = e.$$;
192
- r.fragment !== null && (Ar(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
199
+ r.fragment !== null && (Ar(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
193
200
  }
194
- function Hr(e, t) {
195
- e.$$.dirty[0] === -1 && (X.push(e), _r(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
201
+ function Mr(e, t) {
202
+ e.$$.dirty[0] === -1 && (V.push(e), wr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
196
203
  }
197
- function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
198
- const l = Ye;
199
- se(e);
200
- const u = e.$$ = {
204
+ function Pr(e, t, r, n, i, o, s = null, a = [-1]) {
205
+ const u = oe;
206
+ ie(e);
207
+ const l = e.$$ = {
201
208
  fragment: null,
202
209
  ctx: [],
203
210
  // state
204
211
  props: o,
205
- update: N,
212
+ update: I,
206
213
  not_equal: i,
207
- bound: it(),
214
+ bound: nt(),
208
215
  // lifecycle
209
216
  on_mount: [],
210
217
  on_destroy: [],
211
218
  on_disconnect: [],
212
219
  before_update: [],
213
220
  after_update: [],
214
- context: new Map(t.context || (l ? l.$$.context : [])),
221
+ context: new Map(t.context || (u ? u.$$.context : [])),
215
222
  // everything else
216
- callbacks: it(),
223
+ callbacks: nt(),
217
224
  dirty: a,
218
225
  skip_bound: !1,
219
- root: t.target || l.$$.root
226
+ root: t.target || u.$$.root
220
227
  };
221
- s && s(u.root);
228
+ s && s(l.root);
222
229
  let c = !1;
223
- if (u.ctx = r ? r(e, t.props || {}, (h, f, ...p) => {
224
- const m = p.length ? p[0] : f;
225
- return u.ctx && i(u.ctx[h], u.ctx[h] = m) && (!u.skip_bound && u.bound[h] && u.bound[h](m), c && Hr(e, h)), f;
226
- }) : [], u.update(), c = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
230
+ if (l.ctx = r ? r(e, t.props || {}, (f, h, ...p) => {
231
+ const m = p.length ? p[0] : h;
232
+ return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), c && Mr(e, f)), h;
233
+ }) : [], l.update(), c = !0, K(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
227
234
  if (t.hydrate) {
228
- const h = yr(t.target);
229
- u.fragment && u.fragment.l(h), h.forEach(le);
235
+ const f = gr(t.target);
236
+ l.fragment && l.fragment.l(f), f.forEach(ue);
230
237
  } else
231
- u.fragment && u.fragment.c();
232
- t.intro && Sr(e.$$.fragment), Tr(e, t.target, t.anchor), Z();
238
+ l.fragment && l.fragment.c();
239
+ t.intro && Tr(e.$$.fragment), Br(e, t.target, t.anchor), D();
233
240
  }
234
- se(l);
241
+ ie(u);
235
242
  }
236
- let Ot;
237
- typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
243
+ let Pt;
244
+ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
238
245
  constructor(t, r, n) {
239
246
  super();
240
247
  /** The Svelte component constructor */
241
- I(this, "$$ctor");
248
+ O(this, "$$ctor");
242
249
  /** Slots */
243
- I(this, "$$s");
250
+ O(this, "$$s");
244
251
  /** The Svelte component instance */
245
- I(this, "$$c");
252
+ O(this, "$$c");
246
253
  /** Whether or not the custom element is connected */
247
- I(this, "$$cn", !1);
254
+ O(this, "$$cn", !1);
248
255
  /** Component props data */
249
- I(this, "$$d", {});
256
+ O(this, "$$d", {});
250
257
  /** `true` if currently in the process of reflecting component props back to attributes */
251
- I(this, "$$r", !1);
258
+ O(this, "$$r", !1);
252
259
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
253
- I(this, "$$p_d", {});
260
+ O(this, "$$p_d", {});
254
261
  /** @type {Record<string, Function[]>} Event listeners */
255
- I(this, "$$l", {});
262
+ O(this, "$$l", {});
256
263
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
257
- I(this, "$$l_u", /* @__PURE__ */ new Map());
264
+ O(this, "$$l_u", /* @__PURE__ */ new Map());
258
265
  this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
259
266
  }
260
267
  addEventListener(t, r, n) {
@@ -271,42 +278,42 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
271
278
  }
272
279
  }
273
280
  connectedCallback() {
274
- return nt(this, null, function* () {
281
+ return rt(this, null, function* () {
275
282
  if (this.$$cn = !0, !this.$$c) {
276
283
  let t = function(o) {
277
284
  return () => {
278
285
  let s;
279
286
  return {
280
287
  c: function() {
281
- s = B("slot"), o !== "default" && x(s, "name", o);
288
+ s = B("slot"), o !== "default" && E(s, "name", o);
282
289
  },
283
290
  /**
284
291
  * @param {HTMLElement} target
285
292
  * @param {HTMLElement} [anchor]
286
293
  */
287
- m: function(u, c) {
288
- xe(u, s, c);
294
+ m: function(l, c) {
295
+ ye(l, s, c);
289
296
  },
290
- d: function(u) {
291
- u && le(s);
297
+ d: function(l) {
298
+ l && ue(s);
292
299
  }
293
300
  };
294
301
  };
295
302
  };
296
303
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
297
304
  return;
298
- const r = {}, n = xr(this);
305
+ const r = {}, n = yr(this);
299
306
  for (const o of this.$$s)
300
307
  o in n && (r[o] = [t(o)]);
301
308
  for (const o of this.attributes) {
302
309
  const s = this.$$g_p(o.name);
303
- s in this.$$d || (this.$$d[s] = pe(s, o.value, this.$$p_d, "toProp"));
310
+ s in this.$$d || (this.$$d[s] = fe(s, o.value, this.$$p_d, "toProp"));
304
311
  }
305
312
  for (const o in this.$$p_d)
306
313
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
307
314
  this.$$c = new this.$$ctor({
308
315
  target: this.shadowRoot || this,
309
- props: rt(tt({}, this.$$d), {
316
+ props: tt(et({}, this.$$d), {
310
317
  $$slots: r,
311
318
  $$scope: {
312
319
  ctx: []
@@ -317,7 +324,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
317
324
  this.$$r = !0;
318
325
  for (const o in this.$$p_d)
319
326
  if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
320
- const s = pe(
327
+ const s = fe(
321
328
  o,
322
329
  this.$$d[o],
323
330
  this.$$p_d,
@@ -341,7 +348,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
341
348
  // and setting attributes through setAttribute etc, this is helpful
342
349
  attributeChangedCallback(t, r, n) {
343
350
  var i;
344
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = pe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
351
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = fe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
345
352
  }
346
353
  disconnectedCallback() {
347
354
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -354,7 +361,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
354
361
  ) || t;
355
362
  }
356
363
  });
357
- function pe(e, t, r, n) {
364
+ function fe(e, t, r, n) {
358
365
  var o;
359
366
  const i = (o = r[e]) == null ? void 0 : o.type;
360
367
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
@@ -384,8 +391,8 @@ function pe(e, t, r, n) {
384
391
  return t;
385
392
  }
386
393
  }
387
- function Pr(e, t, r, n, i, o) {
388
- let s = class extends Ot {
394
+ function Or(e, t, r, n, i, o) {
395
+ let s = class extends Pt {
389
396
  constructor() {
390
397
  super(e, r, i), this.$$p_d = t;
391
398
  }
@@ -400,22 +407,22 @@ function Pr(e, t, r, n, i, o) {
400
407
  get() {
401
408
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
402
409
  },
403
- set(l) {
404
- var u;
405
- l = pe(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
410
+ set(u) {
411
+ var l;
412
+ u = fe(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
406
413
  }
407
414
  });
408
415
  }), n.forEach((a) => {
409
416
  Object.defineProperty(s.prototype, a, {
410
417
  get() {
411
- var l;
412
- return (l = this.$$c) == null ? void 0 : l[a];
418
+ var u;
419
+ return (u = this.$$c) == null ? void 0 : u[a];
413
420
  }
414
421
  });
415
422
  }), e.element = /** @type {any} */
416
423
  s, s;
417
424
  }
418
- class Or {
425
+ class Ir {
419
426
  constructor() {
420
427
  /**
421
428
  * ### PRIVATE API
@@ -424,7 +431,7 @@ class Or {
424
431
  *
425
432
  * @type {any}
426
433
  */
427
- I(this, "$$");
434
+ O(this, "$$");
428
435
  /**
429
436
  * ### PRIVATE API
430
437
  *
@@ -432,11 +439,11 @@ class Or {
432
439
  *
433
440
  * @type {any}
434
441
  */
435
- I(this, "$$set");
442
+ O(this, "$$set");
436
443
  }
437
444
  /** @returns {void} */
438
445
  $destroy() {
439
- Br(this, 1), this.$destroy = N;
446
+ Hr(this, 1), this.$destroy = I;
440
447
  }
441
448
  /**
442
449
  * @template {Extract<keyof Events, string>} K
@@ -445,8 +452,8 @@ class Or {
445
452
  * @returns {() => void}
446
453
  */
447
454
  $on(t, r) {
448
- if (!Qe(r))
449
- return N;
455
+ if (!qe(r))
456
+ return I;
450
457
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
451
458
  return n.push(r), () => {
452
459
  const i = n.indexOf(r);
@@ -458,37 +465,37 @@ class Or {
458
465
  * @returns {void}
459
466
  */
460
467
  $set(t) {
461
- this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
468
+ this.$$set && !pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
462
469
  }
463
470
  }
464
- const Ir = "4";
465
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ir);
466
- var Re = function(e, t) {
467
- return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
471
+ const Nr = "4";
472
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
473
+ var $e = function(e, t) {
474
+ return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
468
475
  r.__proto__ = n;
469
476
  } || function(r, n) {
470
477
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
471
- }, Re(e, t);
478
+ }, $e(e, t);
472
479
  };
473
- function D(e, t) {
480
+ function $(e, t) {
474
481
  if (typeof t != "function" && t !== null)
475
482
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
476
- Re(e, t);
483
+ $e(e, t);
477
484
  function r() {
478
485
  this.constructor = e;
479
486
  }
480
487
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
481
488
  }
482
- var y = function() {
483
- return y = Object.assign || function(t) {
489
+ var x = function() {
490
+ return x = Object.assign || function(t) {
484
491
  for (var r, n = 1, i = arguments.length; n < i; n++) {
485
492
  r = arguments[n];
486
493
  for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
487
494
  }
488
495
  return t;
489
- }, y.apply(this, arguments);
496
+ }, x.apply(this, arguments);
490
497
  };
491
- function Nr(e, t) {
498
+ function Lr(e, t) {
492
499
  var r = {};
493
500
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
494
501
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -496,7 +503,7 @@ function Nr(e, t) {
496
503
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
497
504
  return r;
498
505
  }
499
- function De(e) {
506
+ function Re(e) {
500
507
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
501
508
  if (r) return r.call(e);
502
509
  if (e && typeof e.length == "number") return {
@@ -506,7 +513,7 @@ function De(e) {
506
513
  };
507
514
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
508
515
  }
509
- function Ue(e, t) {
516
+ function De(e, t) {
510
517
  var r = typeof Symbol == "function" && e[Symbol.iterator];
511
518
  if (!r) return e;
512
519
  var n = r.call(e), i, o = [], s;
@@ -523,21 +530,21 @@ function Ue(e, t) {
523
530
  }
524
531
  return o;
525
532
  }
526
- function Q(e, t, r) {
533
+ function Z(e, t, r) {
527
534
  if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
528
535
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
529
536
  return e.concat(o || Array.prototype.slice.call(t));
530
537
  }
531
- function R(e) {
538
+ function L(e) {
532
539
  return typeof e == "function";
533
540
  }
534
- function It(e) {
541
+ function Ot(e) {
535
542
  var t = function(n) {
536
543
  Error.call(n), n.stack = new Error().stack;
537
544
  }, r = e(t);
538
545
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
539
546
  }
540
- var Be = It(function(e) {
547
+ var Te = Ot(function(e) {
541
548
  return function(r) {
542
549
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
543
550
  ` + r.map(function(n, i) {
@@ -546,13 +553,13 @@ var Be = It(function(e) {
546
553
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
547
554
  };
548
555
  });
549
- function Fe(e, t) {
556
+ function Ue(e, t) {
550
557
  if (e) {
551
558
  var r = e.indexOf(t);
552
559
  0 <= r && e.splice(r, 1);
553
560
  }
554
561
  }
555
- var Ee = function() {
562
+ var xe = function() {
556
563
  function e(t) {
557
564
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
558
565
  }
@@ -564,15 +571,15 @@ var Ee = function() {
564
571
  if (s)
565
572
  if (this._parentage = null, Array.isArray(s))
566
573
  try {
567
- for (var a = De(s), l = a.next(); !l.done; l = a.next()) {
568
- var u = l.value;
569
- u.remove(this);
574
+ for (var a = Re(s), u = a.next(); !u.done; u = a.next()) {
575
+ var l = u.value;
576
+ l.remove(this);
570
577
  }
571
578
  } catch (d) {
572
579
  t = { error: d };
573
580
  } finally {
574
581
  try {
575
- l && !l.done && (r = a.return) && r.call(a);
582
+ u && !u.done && (r = a.return) && r.call(a);
576
583
  } finally {
577
584
  if (t) throw t.error;
578
585
  }
@@ -580,42 +587,42 @@ var Ee = function() {
580
587
  else
581
588
  s.remove(this);
582
589
  var c = this.initialTeardown;
583
- if (R(c))
590
+ if (L(c))
584
591
  try {
585
592
  c();
586
593
  } catch (d) {
587
- o = d instanceof Be ? d.errors : [d];
594
+ o = d instanceof Te ? d.errors : [d];
588
595
  }
589
- var h = this._finalizers;
590
- if (h) {
596
+ var f = this._finalizers;
597
+ if (f) {
591
598
  this._finalizers = null;
592
599
  try {
593
- for (var f = De(h), p = f.next(); !p.done; p = f.next()) {
600
+ for (var h = Re(f), p = h.next(); !p.done; p = h.next()) {
594
601
  var m = p.value;
595
602
  try {
596
- st(m);
603
+ ot(m);
597
604
  } catch (d) {
598
- o = o != null ? o : [], d instanceof Be ? o = Q(Q([], Ue(o)), Ue(d.errors)) : o.push(d);
605
+ o = o != null ? o : [], d instanceof Te ? o = Z(Z([], De(o)), De(d.errors)) : o.push(d);
599
606
  }
600
607
  }
601
608
  } catch (d) {
602
609
  n = { error: d };
603
610
  } finally {
604
611
  try {
605
- p && !p.done && (i = f.return) && i.call(f);
612
+ p && !p.done && (i = h.return) && i.call(h);
606
613
  } finally {
607
614
  if (n) throw n.error;
608
615
  }
609
616
  }
610
617
  }
611
618
  if (o)
612
- throw new Be(o);
619
+ throw new Te(o);
613
620
  }
614
621
  }, e.prototype.add = function(t) {
615
622
  var r;
616
623
  if (t && t !== this)
617
624
  if (this.closed)
618
- st(t);
625
+ ot(t);
619
626
  else {
620
627
  if (t instanceof e) {
621
628
  if (t.closed || t._hasParent(this))
@@ -632,52 +639,52 @@ var Ee = function() {
632
639
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
633
640
  }, e.prototype._removeParent = function(t) {
634
641
  var r = this._parentage;
635
- r === t ? this._parentage = null : Array.isArray(r) && Fe(r, t);
642
+ r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
636
643
  }, e.prototype.remove = function(t) {
637
644
  var r = this._finalizers;
638
- r && Fe(r, t), t instanceof e && t._removeParent(this);
645
+ r && Ue(r, t), t instanceof e && t._removeParent(this);
639
646
  }, e.EMPTY = function() {
640
647
  var t = new e();
641
648
  return t.closed = !0, t;
642
649
  }(), e;
643
- }(), Nt = Ee.EMPTY;
644
- function Lt(e) {
645
- return e instanceof Ee || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
650
+ }(), It = xe.EMPTY;
651
+ function Nt(e) {
652
+ return e instanceof xe || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
646
653
  }
647
- function st(e) {
648
- R(e) ? e() : e.unsubscribe();
654
+ function ot(e) {
655
+ L(e) ? e() : e.unsubscribe();
649
656
  }
650
- var Lr = {
657
+ var $r = {
651
658
  Promise: void 0
652
- }, $r = {
659
+ }, Rr = {
653
660
  setTimeout: function(e, t) {
654
661
  for (var r = [], n = 2; n < arguments.length; n++)
655
662
  r[n - 2] = arguments[n];
656
- return setTimeout.apply(void 0, Q([e, t], Ue(r)));
663
+ return setTimeout.apply(void 0, Z([e, t], De(r)));
657
664
  },
658
665
  clearTimeout: function(e) {
659
666
  return clearTimeout(e);
660
667
  },
661
668
  delegate: void 0
662
669
  };
663
- function Rr(e) {
664
- $r.setTimeout(function() {
670
+ function Dr(e) {
671
+ Rr.setTimeout(function() {
665
672
  throw e;
666
673
  });
667
674
  }
668
- function at() {
675
+ function st() {
669
676
  }
670
- function de(e) {
677
+ function pe(e) {
671
678
  e();
672
679
  }
673
- var $t = function(e) {
674
- D(t, e);
680
+ var Lt = function(e) {
681
+ $(t, e);
675
682
  function t(r) {
676
683
  var n = e.call(this) || this;
677
- return n.isStopped = !1, r ? (n.destination = r, Lt(r) && r.add(n)) : n.destination = Fr, n;
684
+ return n.isStopped = !1, r ? (n.destination = r, Nt(r) && r.add(n)) : n.destination = Gr, n;
678
685
  }
679
686
  return t.create = function(r, n, i) {
680
- return new Ge(r, n, i);
687
+ return new Fe(r, n, i);
681
688
  }, t.prototype.next = function(r) {
682
689
  this.isStopped || this._next(r);
683
690
  }, t.prototype.error = function(r) {
@@ -701,7 +708,7 @@ var $t = function(e) {
701
708
  this.unsubscribe();
702
709
  }
703
710
  }, t;
704
- }(Ee), Dr = function() {
711
+ }(xe), Ur = function() {
705
712
  function e(t) {
706
713
  this.partialObserver = t;
707
714
  }
@@ -711,7 +718,7 @@ var $t = function(e) {
711
718
  try {
712
719
  r.next(t);
713
720
  } catch (n) {
714
- he(n);
721
+ ce(n);
715
722
  }
716
723
  }, e.prototype.error = function(t) {
717
724
  var r = this.partialObserver;
@@ -719,56 +726,56 @@ var $t = function(e) {
719
726
  try {
720
727
  r.error(t);
721
728
  } catch (n) {
722
- he(n);
729
+ ce(n);
723
730
  }
724
731
  else
725
- he(t);
732
+ ce(t);
726
733
  }, e.prototype.complete = function() {
727
734
  var t = this.partialObserver;
728
735
  if (t.complete)
729
736
  try {
730
737
  t.complete();
731
738
  } catch (r) {
732
- he(r);
739
+ ce(r);
733
740
  }
734
741
  }, e;
735
- }(), Ge = function(e) {
736
- D(t, e);
742
+ }(), Fe = function(e) {
743
+ $(t, e);
737
744
  function t(r, n, i) {
738
745
  var o = e.call(this) || this, s;
739
- return R(r) || !r ? s = {
746
+ return L(r) || !r ? s = {
740
747
  next: r != null ? r : void 0,
741
748
  error: n != null ? n : void 0,
742
749
  complete: i != null ? i : void 0
743
- } : s = r, o.destination = new Dr(s), o;
750
+ } : s = r, o.destination = new Ur(s), o;
744
751
  }
745
752
  return t;
746
- }($t);
747
- function he(e) {
748
- Rr(e);
753
+ }(Lt);
754
+ function ce(e) {
755
+ Dr(e);
749
756
  }
750
- function Ur(e) {
757
+ function Fr(e) {
751
758
  throw e;
752
759
  }
753
- var Fr = {
760
+ var Gr = {
754
761
  closed: !0,
755
- next: at,
756
- error: Ur,
757
- complete: at
758
- }, Gr = function() {
762
+ next: st,
763
+ error: Fr,
764
+ complete: st
765
+ }, jr = function() {
759
766
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
760
767
  }();
761
- function jr(e) {
768
+ function kr(e) {
762
769
  return e;
763
770
  }
764
- function kr(e) {
765
- return e.length === 0 ? jr : e.length === 1 ? e[0] : function(r) {
771
+ function zr(e) {
772
+ return e.length === 0 ? kr : e.length === 1 ? e[0] : function(r) {
766
773
  return e.reduce(function(n, i) {
767
774
  return i(n);
768
775
  }, r);
769
776
  };
770
777
  }
771
- var ut = function() {
778
+ var at = function() {
772
779
  function e(t) {
773
780
  t && (this._subscribe = t);
774
781
  }
@@ -776,10 +783,10 @@ var ut = function() {
776
783
  var r = new e();
777
784
  return r.source = this, r.operator = t, r;
778
785
  }, e.prototype.subscribe = function(t, r, n) {
779
- var i = this, o = Wr(t) ? t : new Ge(t, r, n);
780
- return de(function() {
781
- var s = i, a = s.operator, l = s.source;
782
- o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
786
+ var i = this, o = Vr(t) ? t : new Fe(t, r, n);
787
+ return pe(function() {
788
+ var s = i, a = s.operator, u = s.source;
789
+ o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
783
790
  }), o;
784
791
  }, e.prototype._trySubscribe = function(t) {
785
792
  try {
@@ -789,13 +796,13 @@ var ut = function() {
789
796
  }
790
797
  }, e.prototype.forEach = function(t, r) {
791
798
  var n = this;
792
- return r = lt(r), new r(function(i, o) {
793
- var s = new Ge({
799
+ return r = ut(r), new r(function(i, o) {
800
+ var s = new Fe({
794
801
  next: function(a) {
795
802
  try {
796
803
  t(a);
797
- } catch (l) {
798
- o(l), s.unsubscribe();
804
+ } catch (u) {
805
+ o(u), s.unsubscribe();
799
806
  }
800
807
  },
801
808
  error: o,
@@ -806,15 +813,15 @@ var ut = function() {
806
813
  }, e.prototype._subscribe = function(t) {
807
814
  var r;
808
815
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
809
- }, e.prototype[Gr] = function() {
816
+ }, e.prototype[jr] = function() {
810
817
  return this;
811
818
  }, e.prototype.pipe = function() {
812
819
  for (var t = [], r = 0; r < arguments.length; r++)
813
820
  t[r] = arguments[r];
814
- return kr(t)(this);
821
+ return zr(t)(this);
815
822
  }, e.prototype.toPromise = function(t) {
816
823
  var r = this;
817
- return t = lt(t), new t(function(n, i) {
824
+ return t = ut(t), new t(function(n, i) {
818
825
  var o;
819
826
  r.subscribe(function(s) {
820
827
  return o = s;
@@ -828,45 +835,45 @@ var ut = function() {
828
835
  return new e(t);
829
836
  }, e;
830
837
  }();
831
- function lt(e) {
838
+ function ut(e) {
832
839
  var t;
833
- return (t = e != null ? e : Lr.Promise) !== null && t !== void 0 ? t : Promise;
834
- }
835
- function zr(e) {
836
- return e && R(e.next) && R(e.error) && R(e.complete);
840
+ return (t = e != null ? e : $r.Promise) !== null && t !== void 0 ? t : Promise;
837
841
  }
838
842
  function Wr(e) {
839
- return e && e instanceof $t || zr(e) && Lt(e);
843
+ return e && L(e.next) && L(e.error) && L(e.complete);
840
844
  }
841
- var Vr = It(function(e) {
845
+ function Vr(e) {
846
+ return e && e instanceof Lt || Wr(e) && Nt(e);
847
+ }
848
+ var Xr = Ot(function(e) {
842
849
  return function() {
843
850
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
844
851
  };
845
- }), Rt = function(e) {
846
- D(t, e);
852
+ }), $t = function(e) {
853
+ $(t, e);
847
854
  function t() {
848
855
  var r = e.call(this) || this;
849
856
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
850
857
  }
851
858
  return t.prototype.lift = function(r) {
852
- var n = new ct(this, this);
859
+ var n = new lt(this, this);
853
860
  return n.operator = r, n;
854
861
  }, t.prototype._throwIfClosed = function() {
855
862
  if (this.closed)
856
- throw new Vr();
863
+ throw new Xr();
857
864
  }, t.prototype.next = function(r) {
858
865
  var n = this;
859
- de(function() {
866
+ pe(function() {
860
867
  var i, o;
861
868
  if (n._throwIfClosed(), !n.isStopped) {
862
869
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
863
870
  try {
864
- for (var s = De(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
865
- var l = a.value;
866
- l.next(r);
871
+ for (var s = Re(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
872
+ var u = a.value;
873
+ u.next(r);
867
874
  }
868
- } catch (u) {
869
- i = { error: u };
875
+ } catch (l) {
876
+ i = { error: l };
870
877
  } finally {
871
878
  try {
872
879
  a && !a.done && (o = s.return) && o.call(s);
@@ -878,7 +885,7 @@ var Vr = It(function(e) {
878
885
  });
879
886
  }, t.prototype.error = function(r) {
880
887
  var n = this;
881
- de(function() {
888
+ pe(function() {
882
889
  if (n._throwIfClosed(), !n.isStopped) {
883
890
  n.hasError = n.isStopped = !0, n.thrownError = r;
884
891
  for (var i = n.observers; i.length; )
@@ -887,7 +894,7 @@ var Vr = It(function(e) {
887
894
  });
888
895
  }, t.prototype.complete = function() {
889
896
  var r = this;
890
- de(function() {
897
+ pe(function() {
891
898
  if (r._throwIfClosed(), !r.isStopped) {
892
899
  r.isStopped = !0;
893
900
  for (var n = r.observers; n.length; )
@@ -909,20 +916,20 @@ var Vr = It(function(e) {
909
916
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
910
917
  }, t.prototype._innerSubscribe = function(r) {
911
918
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
912
- return o || s ? Nt : (this.currentObservers = null, a.push(r), new Ee(function() {
913
- n.currentObservers = null, Fe(a, r);
919
+ return o || s ? It : (this.currentObservers = null, a.push(r), new xe(function() {
920
+ n.currentObservers = null, Ue(a, r);
914
921
  }));
915
922
  }, t.prototype._checkFinalizedStatuses = function(r) {
916
923
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
917
924
  i ? r.error(o) : s && r.complete();
918
925
  }, t.prototype.asObservable = function() {
919
- var r = new ut();
926
+ var r = new at();
920
927
  return r.source = this, r;
921
928
  }, t.create = function(r, n) {
922
- return new ct(r, n);
929
+ return new lt(r, n);
923
930
  }, t;
924
- }(ut), ct = function(e) {
925
- D(t, e);
931
+ }(at), lt = function(e) {
932
+ $(t, e);
926
933
  function t(r, n) {
927
934
  var i = e.call(this) || this;
928
935
  return i.destination = r, i.source = n, i;
@@ -938,211 +945,211 @@ var Vr = It(function(e) {
938
945
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
939
946
  }, t.prototype._subscribe = function(r) {
940
947
  var n, i;
941
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Nt;
948
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : It;
942
949
  }, t;
943
- }(Rt), Dt = {
950
+ }($t), Rt = {
944
951
  now: function() {
945
- return (Dt.delegate || Date).now();
952
+ return (Rt.delegate || Date).now();
946
953
  },
947
954
  delegate: void 0
948
- }, Xr = function(e) {
949
- D(t, e);
955
+ }, Zr = function(e) {
956
+ $(t, e);
950
957
  function t(r, n, i) {
951
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Dt);
958
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Rt);
952
959
  var o = e.call(this) || this;
953
960
  return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
954
961
  }
955
962
  return t.prototype.next = function(r) {
956
- var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
957
- i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
963
+ var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
964
+ i || (o.push(r), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
958
965
  }, t.prototype._subscribe = function(r) {
959
966
  this._throwIfClosed(), this._trimBuffer();
960
- for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
961
- r.next(a[l]);
967
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), u = 0; u < a.length && !r.closed; u += o ? 1 : 2)
968
+ r.next(a[u]);
962
969
  return this._checkFinalizedStatuses(r), n;
963
970
  }, t.prototype._trimBuffer = function() {
964
971
  var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
965
972
  if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
966
- for (var l = i.now(), u = 0, c = 1; c < o.length && o[c] <= l; c += 2)
967
- u = c;
968
- u && o.splice(0, u + 1);
973
+ for (var u = i.now(), l = 0, c = 1; c < o.length && o[c] <= u; c += 2)
974
+ l = c;
975
+ l && o.splice(0, l + 1);
969
976
  }
970
977
  }, t;
971
- }(Rt);
972
- const ht = [], ft = {}, Zr = (e, t = 0) => {
973
- if (ht.indexOf(e) == -1) {
974
- const r = new Xr(t);
975
- ft[e] = r, ht.push(e);
978
+ }($t);
979
+ const ct = [], ht = {}, qr = (e, t = 0) => {
980
+ if (ct.indexOf(e) == -1) {
981
+ const r = new Zr(t);
982
+ ht[e] = r, ct.push(e);
976
983
  }
977
- return ft[e];
978
- }, V = [];
979
- function qr(e, t) {
984
+ return ht[e];
985
+ }, W = [];
986
+ function Qr(e, t) {
980
987
  return {
981
- subscribe: _e(e, t).subscribe
988
+ subscribe: Ee(e, t).subscribe
982
989
  };
983
990
  }
984
- function _e(e, t = N) {
991
+ function Ee(e, t = I) {
985
992
  let r;
986
993
  const n = /* @__PURE__ */ new Set();
987
994
  function i(a) {
988
- if (Mt(e, a) && (e = a, r)) {
989
- const l = !V.length;
990
- for (const u of n)
991
- u[1](), V.push(u, e);
992
- if (l) {
993
- for (let u = 0; u < V.length; u += 2)
994
- V[u][0](V[u + 1]);
995
- V.length = 0;
995
+ if (Ht(e, a) && (e = a, r)) {
996
+ const u = !W.length;
997
+ for (const l of n)
998
+ l[1](), W.push(l, e);
999
+ if (u) {
1000
+ for (let l = 0; l < W.length; l += 2)
1001
+ W[l][0](W[l + 1]);
1002
+ W.length = 0;
996
1003
  }
997
1004
  }
998
1005
  }
999
1006
  function o(a) {
1000
1007
  i(a(e));
1001
1008
  }
1002
- function s(a, l = N) {
1003
- const u = [a, l];
1004
- return n.add(u), n.size === 1 && (r = t(i, o) || N), a(e), () => {
1005
- n.delete(u), n.size === 0 && r && (r(), r = null);
1009
+ function s(a, u = I) {
1010
+ const l = [a, u];
1011
+ return n.add(l), n.size === 1 && (r = t(i, o) || I), a(e), () => {
1012
+ n.delete(l), n.size === 0 && r && (r(), r = null);
1006
1013
  };
1007
1014
  }
1008
1015
  return { set: i, update: o, subscribe: s };
1009
1016
  }
1010
- function re(e, t, r) {
1017
+ function ee(e, t, r) {
1011
1018
  const n = !Array.isArray(e), i = n ? [e] : e;
1012
1019
  if (!i.every(Boolean))
1013
1020
  throw new Error("derived() expects stores as input, got a falsy value");
1014
1021
  const o = t.length < 2;
1015
- return qr(r, (s, a) => {
1016
- let l = !1;
1017
- const u = [];
1018
- let c = 0, h = N;
1019
- const f = () => {
1022
+ return Qr(r, (s, a) => {
1023
+ let u = !1;
1024
+ const l = [];
1025
+ let c = 0, f = I;
1026
+ const h = () => {
1020
1027
  if (c)
1021
1028
  return;
1022
- h();
1023
- const m = t(n ? u[0] : u, s, a);
1024
- o ? s(m) : h = Qe(m) ? m : N;
1029
+ f();
1030
+ const m = t(n ? l[0] : l, s, a);
1031
+ o ? s(m) : f = qe(m) ? m : I;
1025
1032
  }, p = i.map(
1026
- (m, d) => Pt(
1033
+ (m, d) => Mt(
1027
1034
  m,
1028
- (A) => {
1029
- u[d] = A, c &= ~(1 << d), l && f();
1035
+ (_) => {
1036
+ l[d] = _, c &= ~(1 << d), u && h();
1030
1037
  },
1031
1038
  () => {
1032
1039
  c |= 1 << d;
1033
1040
  }
1034
1041
  )
1035
1042
  );
1036
- return l = !0, f(), function() {
1037
- te(p), h(), l = !1;
1043
+ return u = !0, h(), function() {
1044
+ K(p), f(), u = !1;
1038
1045
  };
1039
1046
  });
1040
1047
  }
1041
- function Qr(e) {
1048
+ function Yr(e) {
1042
1049
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1043
1050
  }
1044
- var Yr = function(t) {
1045
- return Jr(t) && !Kr(t);
1051
+ var Jr = function(t) {
1052
+ return Kr(t) && !en(t);
1046
1053
  };
1047
- function Jr(e) {
1054
+ function Kr(e) {
1048
1055
  return !!e && typeof e == "object";
1049
1056
  }
1050
- function Kr(e) {
1057
+ function en(e) {
1051
1058
  var t = Object.prototype.toString.call(e);
1052
- return t === "[object RegExp]" || t === "[object Date]" || rn(e);
1053
- }
1054
- var en = typeof Symbol == "function" && Symbol.for, tn = en ? Symbol.for("react.element") : 60103;
1055
- function rn(e) {
1056
- return e.$$typeof === tn;
1059
+ return t === "[object RegExp]" || t === "[object Date]" || nn(e);
1057
1060
  }
1061
+ var tn = typeof Symbol == "function" && Symbol.for, rn = tn ? Symbol.for("react.element") : 60103;
1058
1062
  function nn(e) {
1063
+ return e.$$typeof === rn;
1064
+ }
1065
+ function on(e) {
1059
1066
  return Array.isArray(e) ? [] : {};
1060
1067
  }
1061
- function ae(e, t) {
1062
- return t.clone !== !1 && t.isMergeableObject(e) ? Y(nn(e), e, t) : e;
1068
+ function se(e, t) {
1069
+ return t.clone !== !1 && t.isMergeableObject(e) ? q(on(e), e, t) : e;
1063
1070
  }
1064
- function on(e, t, r) {
1071
+ function sn(e, t, r) {
1065
1072
  return e.concat(t).map(function(n) {
1066
- return ae(n, r);
1073
+ return se(n, r);
1067
1074
  });
1068
1075
  }
1069
- function sn(e, t) {
1076
+ function an(e, t) {
1070
1077
  if (!t.customMerge)
1071
- return Y;
1078
+ return q;
1072
1079
  var r = t.customMerge(e);
1073
- return typeof r == "function" ? r : Y;
1080
+ return typeof r == "function" ? r : q;
1074
1081
  }
1075
- function an(e) {
1082
+ function un(e) {
1076
1083
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1077
1084
  return Object.propertyIsEnumerable.call(e, t);
1078
1085
  }) : [];
1079
1086
  }
1080
- function pt(e) {
1081
- return Object.keys(e).concat(an(e));
1087
+ function ft(e) {
1088
+ return Object.keys(e).concat(un(e));
1082
1089
  }
1083
- function Ut(e, t) {
1090
+ function Dt(e, t) {
1084
1091
  try {
1085
1092
  return t in e;
1086
1093
  } catch (r) {
1087
1094
  return !1;
1088
1095
  }
1089
1096
  }
1090
- function un(e, t) {
1091
- return Ut(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1097
+ function ln(e, t) {
1098
+ return Dt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1092
1099
  }
1093
- function ln(e, t, r) {
1100
+ function cn(e, t, r) {
1094
1101
  var n = {};
1095
- return r.isMergeableObject(e) && pt(e).forEach(function(i) {
1096
- n[i] = ae(e[i], r);
1097
- }), pt(t).forEach(function(i) {
1098
- un(e, i) || (Ut(e, i) && r.isMergeableObject(t[i]) ? n[i] = sn(i, r)(e[i], t[i], r) : n[i] = ae(t[i], r));
1102
+ return r.isMergeableObject(e) && ft(e).forEach(function(i) {
1103
+ n[i] = se(e[i], r);
1104
+ }), ft(t).forEach(function(i) {
1105
+ ln(e, i) || (Dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = an(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
1099
1106
  }), n;
1100
1107
  }
1101
- function Y(e, t, r) {
1102
- r = r || {}, r.arrayMerge = r.arrayMerge || on, r.isMergeableObject = r.isMergeableObject || Yr, r.cloneUnlessOtherwiseSpecified = ae;
1108
+ function q(e, t, r) {
1109
+ r = r || {}, r.arrayMerge = r.arrayMerge || sn, r.isMergeableObject = r.isMergeableObject || Jr, r.cloneUnlessOtherwiseSpecified = se;
1103
1110
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1104
- return o ? n ? r.arrayMerge(e, t, r) : ln(e, t, r) : ae(t, r);
1111
+ return o ? n ? r.arrayMerge(e, t, r) : cn(e, t, r) : se(t, r);
1105
1112
  }
1106
- Y.all = function(t, r) {
1113
+ q.all = function(t, r) {
1107
1114
  if (!Array.isArray(t))
1108
1115
  throw new Error("first argument should be an array");
1109
1116
  return t.reduce(function(n, i) {
1110
- return Y(n, i, r);
1117
+ return q(n, i, r);
1111
1118
  }, {});
1112
1119
  };
1113
- var cn = Y, hn = cn;
1114
- const fn = /* @__PURE__ */ Qr(hn);
1115
- function He(e, t) {
1116
- var r = t && t.cache ? t.cache : yn, n = t && t.serializer ? t.serializer : vn, i = t && t.strategy ? t.strategy : mn;
1120
+ var hn = q, fn = hn;
1121
+ const pn = /* @__PURE__ */ Yr(fn);
1122
+ function Be(e, t) {
1123
+ var r = t && t.cache ? t.cache : xn, n = t && t.serializer ? t.serializer : gn, i = t && t.strategy ? t.strategy : bn;
1117
1124
  return i(e, {
1118
1125
  cache: r,
1119
1126
  serializer: n
1120
1127
  });
1121
1128
  }
1122
- function pn(e) {
1129
+ function dn(e) {
1123
1130
  return e == null || typeof e == "number" || typeof e == "boolean";
1124
1131
  }
1125
- function dn(e, t, r, n) {
1126
- var i = pn(n) ? n : r(n), o = t.get(i);
1132
+ function mn(e, t, r, n) {
1133
+ var i = dn(n) ? n : r(n), o = t.get(i);
1127
1134
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1128
1135
  }
1129
- function Ft(e, t, r) {
1136
+ function Ut(e, t, r) {
1130
1137
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1131
1138
  return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
1132
1139
  }
1133
- function Gt(e, t, r, n, i) {
1140
+ function Ft(e, t, r, n, i) {
1134
1141
  return r.bind(t, e, n, i);
1135
1142
  }
1136
- function mn(e, t) {
1137
- var r = e.length === 1 ? dn : Ft;
1138
- return Gt(e, this, r, t.cache.create(), t.serializer);
1139
- }
1140
1143
  function bn(e, t) {
1141
- return Gt(e, this, Ft, t.cache.create(), t.serializer);
1144
+ var r = e.length === 1 ? mn : Ut;
1145
+ return Ft(e, this, r, t.cache.create(), t.serializer);
1146
+ }
1147
+ function vn(e, t) {
1148
+ return Ft(e, this, Ut, t.cache.create(), t.serializer);
1142
1149
  }
1143
- var vn = function() {
1150
+ var gn = function() {
1144
1151
  return JSON.stringify(arguments);
1145
- }, gn = (
1152
+ }, yn = (
1146
1153
  /** @class */
1147
1154
  function() {
1148
1155
  function e() {
@@ -1154,12 +1161,12 @@ var vn = function() {
1154
1161
  this.cache[t] = r;
1155
1162
  }, e;
1156
1163
  }()
1157
- ), yn = {
1164
+ ), xn = {
1158
1165
  create: function() {
1159
- return new gn();
1166
+ return new yn();
1160
1167
  }
1161
- }, Me = {
1162
- variadic: bn
1168
+ }, He = {
1169
+ variadic: vn
1163
1170
  }, b;
1164
1171
  (function(e) {
1165
1172
  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";
@@ -1168,47 +1175,47 @@ var C;
1168
1175
  (function(e) {
1169
1176
  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";
1170
1177
  })(C || (C = {}));
1171
- var J;
1178
+ var Q;
1172
1179
  (function(e) {
1173
1180
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1174
- })(J || (J = {}));
1175
- function dt(e) {
1181
+ })(Q || (Q = {}));
1182
+ function pt(e) {
1176
1183
  return e.type === C.literal;
1177
1184
  }
1178
- function xn(e) {
1185
+ function En(e) {
1179
1186
  return e.type === C.argument;
1180
1187
  }
1181
- function jt(e) {
1188
+ function Gt(e) {
1182
1189
  return e.type === C.number;
1183
1190
  }
1184
- function kt(e) {
1191
+ function jt(e) {
1185
1192
  return e.type === C.date;
1186
1193
  }
1187
- function zt(e) {
1194
+ function kt(e) {
1188
1195
  return e.type === C.time;
1189
1196
  }
1190
- function Wt(e) {
1197
+ function zt(e) {
1191
1198
  return e.type === C.select;
1192
1199
  }
1193
- function Vt(e) {
1200
+ function Wt(e) {
1194
1201
  return e.type === C.plural;
1195
1202
  }
1196
- function En(e) {
1203
+ function _n(e) {
1197
1204
  return e.type === C.pound;
1198
1205
  }
1199
- function Xt(e) {
1206
+ function Vt(e) {
1200
1207
  return e.type === C.tag;
1201
1208
  }
1202
- function Zt(e) {
1203
- return !!(e && typeof e == "object" && e.type === J.number);
1209
+ function Xt(e) {
1210
+ return !!(e && typeof e == "object" && e.type === Q.number);
1204
1211
  }
1205
- function je(e) {
1206
- return !!(e && typeof e == "object" && e.type === J.dateTime);
1212
+ function Ge(e) {
1213
+ return !!(e && typeof e == "object" && e.type === Q.dateTime);
1207
1214
  }
1208
- var qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, _n = /(?:[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;
1215
+ var Zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wn = /(?:[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;
1209
1216
  function Cn(e) {
1210
1217
  var t = {};
1211
- return e.replace(_n, function(r) {
1218
+ return e.replace(wn, function(r) {
1212
1219
  var n = r.length;
1213
1220
  switch (r[0]) {
1214
1221
  case "G":
@@ -1298,35 +1305,35 @@ function Cn(e) {
1298
1305
  }), t;
1299
1306
  }
1300
1307
  var An = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1301
- function wn(e) {
1308
+ function Sn(e) {
1302
1309
  if (e.length === 0)
1303
1310
  throw new Error("Number skeleton cannot be empty");
1304
- for (var t = e.split(An).filter(function(f) {
1305
- return f.length > 0;
1311
+ for (var t = e.split(An).filter(function(h) {
1312
+ return h.length > 0;
1306
1313
  }), r = [], n = 0, i = t; n < i.length; n++) {
1307
1314
  var o = i[n], s = o.split("/");
1308
1315
  if (s.length === 0)
1309
1316
  throw new Error("Invalid number skeleton");
1310
- for (var a = s[0], l = s.slice(1), u = 0, c = l; u < c.length; u++) {
1311
- var h = c[u];
1312
- if (h.length === 0)
1317
+ for (var a = s[0], u = s.slice(1), l = 0, c = u; l < c.length; l++) {
1318
+ var f = c[l];
1319
+ if (f.length === 0)
1313
1320
  throw new Error("Invalid number skeleton");
1314
1321
  }
1315
- r.push({ stem: a, options: l });
1322
+ r.push({ stem: a, options: u });
1316
1323
  }
1317
1324
  return r;
1318
1325
  }
1319
- function Sn(e) {
1326
+ function Tn(e) {
1320
1327
  return e.replace(/^(.*?)-/, "");
1321
1328
  }
1322
- var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qt = /^(@+)?(\+|#+)?[rs]?$/g, Tn = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
1323
- function bt(e) {
1329
+ var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, qt = /^(@+)?(\+|#+)?[rs]?$/g, Bn = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
1330
+ function mt(e) {
1324
1331
  var t = {};
1325
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qt, function(r, n, i) {
1332
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(qt, function(r, n, i) {
1326
1333
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1327
1334
  }), t;
1328
1335
  }
1329
- function Jt(e) {
1336
+ function Yt(e) {
1330
1337
  switch (e) {
1331
1338
  case "sign-auto":
1332
1339
  return {
@@ -1366,7 +1373,7 @@ function Jt(e) {
1366
1373
  };
1367
1374
  }
1368
1375
  }
1369
- function Bn(e) {
1376
+ function Hn(e) {
1370
1377
  var t;
1371
1378
  if (e[0] === "E" && e[1] === "E" ? (t = {
1372
1379
  notation: "engineering"
@@ -1374,17 +1381,17 @@ function Bn(e) {
1374
1381
  notation: "scientific"
1375
1382
  }, e = e.slice(1)), t) {
1376
1383
  var r = e.slice(0, 2);
1377
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yt.test(e))
1384
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qt.test(e))
1378
1385
  throw new Error("Malformed concise eng/scientific notation");
1379
1386
  t.minimumIntegerDigits = e.length;
1380
1387
  }
1381
1388
  return t;
1382
1389
  }
1383
- function vt(e) {
1384
- var t = {}, r = Jt(e);
1390
+ function bt(e) {
1391
+ var t = {}, r = Yt(e);
1385
1392
  return r || t;
1386
1393
  }
1387
- function Hn(e) {
1394
+ function Mn(e) {
1388
1395
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1389
1396
  var i = n[r];
1390
1397
  switch (i.stem) {
@@ -1408,7 +1415,7 @@ function Hn(e) {
1408
1415
  continue;
1409
1416
  case "measure-unit":
1410
1417
  case "unit":
1411
- t.style = "unit", t.unit = Sn(i.options[0]);
1418
+ t.style = "unit", t.unit = Tn(i.options[0]);
1412
1419
  continue;
1413
1420
  case "compact-short":
1414
1421
  case "K":
@@ -1419,13 +1426,13 @@ function Hn(e) {
1419
1426
  t.notation = "compact", t.compactDisplay = "long";
1420
1427
  continue;
1421
1428
  case "scientific":
1422
- t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1423
- return y(y({}, l), vt(u));
1429
+ t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
1430
+ return x(x({}, u), bt(l));
1424
1431
  }, {}));
1425
1432
  continue;
1426
1433
  case "engineering":
1427
- t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1428
- return y(y({}, l), vt(u));
1434
+ t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
1435
+ return x(x({}, u), bt(l));
1429
1436
  }, {}));
1430
1437
  continue;
1431
1438
  case "notation-simple":
@@ -1470,11 +1477,11 @@ function Hn(e) {
1470
1477
  case "integer-width":
1471
1478
  if (i.options.length > 1)
1472
1479
  throw new RangeError("integer-width stems only accept a single optional option");
1473
- i.options[0].replace(Tn, function(l, u, c, h, f, p) {
1474
- if (u)
1480
+ i.options[0].replace(Bn, function(u, l, c, f, h, p) {
1481
+ if (l)
1475
1482
  t.minimumIntegerDigits = c.length;
1476
1483
  else {
1477
- if (h && f)
1484
+ if (f && h)
1478
1485
  throw new Error("We currently do not support maximum integer digits");
1479
1486
  if (p)
1480
1487
  throw new Error("We currently do not support exact integer digits");
@@ -1483,32 +1490,32 @@ function Hn(e) {
1483
1490
  });
1484
1491
  continue;
1485
1492
  }
1486
- if (Yt.test(i.stem)) {
1493
+ if (Qt.test(i.stem)) {
1487
1494
  t.minimumIntegerDigits = i.stem.length;
1488
1495
  continue;
1489
1496
  }
1490
- if (mt.test(i.stem)) {
1497
+ if (dt.test(i.stem)) {
1491
1498
  if (i.options.length > 1)
1492
1499
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1493
- i.stem.replace(mt, function(l, u, c, h, f, p) {
1494
- return c === "*" ? t.minimumFractionDigits = u.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1500
+ i.stem.replace(dt, function(u, l, c, f, h, p) {
1501
+ return c === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h && p ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1495
1502
  });
1496
1503
  var o = i.options[0];
1497
- o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), bt(o)));
1504
+ o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), mt(o)));
1498
1505
  continue;
1499
1506
  }
1500
- if (Qt.test(i.stem)) {
1501
- t = y(y({}, t), bt(i.stem));
1507
+ if (qt.test(i.stem)) {
1508
+ t = x(x({}, t), mt(i.stem));
1502
1509
  continue;
1503
1510
  }
1504
- var s = Jt(i.stem);
1505
- s && (t = y(y({}, t), s));
1506
- var a = Bn(i.stem);
1507
- a && (t = y(y({}, t), a));
1511
+ var s = Yt(i.stem);
1512
+ s && (t = x(x({}, t), s));
1513
+ var a = Hn(i.stem);
1514
+ a && (t = x(x({}, t), a));
1508
1515
  }
1509
1516
  return t;
1510
1517
  }
1511
- var fe = {
1518
+ var he = {
1512
1519
  "001": [
1513
1520
  "H",
1514
1521
  "h"
@@ -2923,22 +2930,22 @@ var fe = {
2923
2930
  "h"
2924
2931
  ]
2925
2932
  };
2926
- function Mn(e, t) {
2933
+ function Pn(e, t) {
2927
2934
  for (var r = "", n = 0; n < e.length; n++) {
2928
2935
  var i = e.charAt(n);
2929
2936
  if (i === "j") {
2930
2937
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2931
2938
  o++, n++;
2932
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Pn(t);
2933
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2934
- r += l;
2939
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = On(t);
2940
+ for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2941
+ r += u;
2935
2942
  for (; s-- > 0; )
2936
- r = u + r;
2943
+ r = l + r;
2937
2944
  } else i === "J" ? r += "H" : r += i;
2938
2945
  }
2939
2946
  return r;
2940
2947
  }
2941
- function Pn(e) {
2948
+ function On(e) {
2942
2949
  var t = e.hourCycle;
2943
2950
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2944
2951
  e.hourCycles && // @ts-ignore
@@ -2957,23 +2964,23 @@ function Pn(e) {
2957
2964
  }
2958
2965
  var r = e.language, n;
2959
2966
  r !== "root" && (n = e.maximize().region);
2960
- var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
2967
+ var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
2961
2968
  return i[0];
2962
2969
  }
2963
- var Pe, On = new RegExp("^".concat(qt.source, "*")), In = new RegExp("".concat(qt.source, "*$"));
2970
+ var Me, In = new RegExp("^".concat(Zt.source, "*")), Nn = new RegExp("".concat(Zt.source, "*$"));
2964
2971
  function g(e, t) {
2965
2972
  return { start: e, end: t };
2966
2973
  }
2967
- var Nn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ln = !!String.fromCodePoint, $n = !!Object.fromEntries, Rn = !!String.prototype.codePointAt, Dn = !!String.prototype.trimStart, Un = !!String.prototype.trimEnd, Fn = !!Number.isSafeInteger, Gn = Fn ? Number.isSafeInteger : function(e) {
2974
+ var Ln = !!String.prototype.startsWith && "_a".startsWith("a", 1), $n = !!String.fromCodePoint, Rn = !!Object.fromEntries, Dn = !!String.prototype.codePointAt, Un = !!String.prototype.trimStart, Fn = !!String.prototype.trimEnd, Gn = !!Number.isSafeInteger, jn = Gn ? Number.isSafeInteger : function(e) {
2968
2975
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2969
- }, ke = !0;
2976
+ }, je = !0;
2970
2977
  try {
2971
- var jn = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2972
- ke = ((Pe = jn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
2978
+ var kn = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2979
+ je = ((Me = kn.exec("a")) === null || Me === void 0 ? void 0 : Me[0]) === "a";
2973
2980
  } catch (e) {
2974
- ke = !1;
2981
+ je = !1;
2975
2982
  }
2976
- var gt = Nn ? (
2983
+ var vt = Ln ? (
2977
2984
  // Native
2978
2985
  function(t, r, n) {
2979
2986
  return t.startsWith(r, n);
@@ -2983,7 +2990,7 @@ var gt = Nn ? (
2983
2990
  function(t, r, n) {
2984
2991
  return t.slice(n, n + r.length) === r;
2985
2992
  }
2986
- ), ze = Ln ? String.fromCodePoint : (
2993
+ ), ke = $n ? String.fromCodePoint : (
2987
2994
  // IE11
2988
2995
  function() {
2989
2996
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2995,9 +3002,9 @@ var gt = Nn ? (
2995
3002
  }
2996
3003
  return n;
2997
3004
  }
2998
- ), yt = (
3005
+ ), gt = (
2999
3006
  // native
3000
- $n ? Object.fromEntries : (
3007
+ Rn ? Object.fromEntries : (
3001
3008
  // Ponyfill
3002
3009
  function(t) {
3003
3010
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3007,7 +3014,7 @@ var gt = Nn ? (
3007
3014
  return r;
3008
3015
  }
3009
3016
  )
3010
- ), Kt = Rn ? (
3017
+ ), Jt = Dn ? (
3011
3018
  // Native
3012
3019
  function(t, r) {
3013
3020
  return t.codePointAt(r);
@@ -3021,7 +3028,7 @@ var gt = Nn ? (
3021
3028
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3022
3029
  }
3023
3030
  }
3024
- ), kn = Dn ? (
3031
+ ), zn = Un ? (
3025
3032
  // Native
3026
3033
  function(t) {
3027
3034
  return t.trimStart();
@@ -3029,9 +3036,9 @@ var gt = Nn ? (
3029
3036
  ) : (
3030
3037
  // Ponyfill
3031
3038
  function(t) {
3032
- return t.replace(On, "");
3039
+ return t.replace(In, "");
3033
3040
  }
3034
- ), zn = Un ? (
3041
+ ), Wn = Fn ? (
3035
3042
  // Native
3036
3043
  function(t) {
3037
3044
  return t.trimEnd();
@@ -3039,32 +3046,32 @@ var gt = Nn ? (
3039
3046
  ) : (
3040
3047
  // Ponyfill
3041
3048
  function(t) {
3042
- return t.replace(In, "");
3049
+ return t.replace(Nn, "");
3043
3050
  }
3044
3051
  );
3045
- function er(e, t) {
3052
+ function Kt(e, t) {
3046
3053
  return new RegExp(e, t);
3047
3054
  }
3048
- var We;
3049
- if (ke) {
3050
- var xt = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3051
- We = function(t, r) {
3055
+ var ze;
3056
+ if (je) {
3057
+ var yt = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3058
+ ze = function(t, r) {
3052
3059
  var n;
3053
- xt.lastIndex = r;
3054
- var i = xt.exec(t);
3060
+ yt.lastIndex = r;
3061
+ var i = yt.exec(t);
3055
3062
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3056
3063
  };
3057
3064
  } else
3058
- We = function(t, r) {
3065
+ ze = function(t, r) {
3059
3066
  for (var n = []; ; ) {
3060
- var i = Kt(t, r);
3061
- if (i === void 0 || tr(i) || Zn(i))
3067
+ var i = Jt(t, r);
3068
+ if (i === void 0 || er(i) || qn(i))
3062
3069
  break;
3063
3070
  n.push(i), r += i >= 65536 ? 2 : 1;
3064
3071
  }
3065
- return ze.apply(void 0, n);
3072
+ return ke.apply(void 0, n);
3066
3073
  };
3067
- var Wn = (
3074
+ var Vn = (
3068
3075
  /** @class */
3069
3076
  function() {
3070
3077
  function e(t, r) {
@@ -3095,7 +3102,7 @@ var Wn = (
3095
3102
  if (n)
3096
3103
  break;
3097
3104
  return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
3098
- } else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
3105
+ } else if (o === 60 && !this.ignoreTag && We(this.peek() || 0)) {
3099
3106
  var s = this.parseTag(t, r);
3100
3107
  if (s.err)
3101
3108
  return s;
@@ -3128,10 +3135,10 @@ var Wn = (
3128
3135
  return o;
3129
3136
  var s = o.val, a = this.clonePosition();
3130
3137
  if (this.bumpIf("</")) {
3131
- if (this.isEOF() || !Ve(this.char()))
3138
+ if (this.isEOF() || !We(this.char()))
3132
3139
  return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
3133
- var l = this.clonePosition(), u = this.parseTagName();
3134
- return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3140
+ var u = this.clonePosition(), l = this.parseTagName();
3141
+ return i !== l ? this.error(b.UNMATCHED_CLOSING_TAG, g(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3135
3142
  val: {
3136
3143
  type: C.tag,
3137
3144
  value: i,
@@ -3146,7 +3153,7 @@ var Wn = (
3146
3153
  return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
3147
3154
  }, e.prototype.parseTagName = function() {
3148
3155
  var t = this.offset();
3149
- for (this.bump(); !this.isEOF() && Xn(this.char()); )
3156
+ for (this.bump(); !this.isEOF() && Zn(this.char()); )
3150
3157
  this.bump();
3151
3158
  return this.message.slice(t, this.offset());
3152
3159
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3168,14 +3175,14 @@ var Wn = (
3168
3175
  }
3169
3176
  break;
3170
3177
  }
3171
- var l = g(n, this.clonePosition());
3178
+ var u = g(n, this.clonePosition());
3172
3179
  return {
3173
- val: { type: C.literal, value: i, location: l },
3180
+ val: { type: C.literal, value: i, location: u },
3174
3181
  err: null
3175
3182
  };
3176
3183
  }, e.prototype.tryParseLeftAngleBracket = function() {
3177
3184
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3178
- !Vn(this.peek() || 0)) ? (this.bump(), "<") : null;
3185
+ !Xn(this.peek() || 0)) ? (this.bump(), "<") : null;
3179
3186
  }, e.prototype.tryParseQuote = function(t) {
3180
3187
  if (this.isEOF() || this.char() !== 39)
3181
3188
  return null;
@@ -3209,12 +3216,12 @@ var Wn = (
3209
3216
  r.push(n);
3210
3217
  this.bump();
3211
3218
  }
3212
- return ze.apply(void 0, r);
3219
+ return ke.apply(void 0, r);
3213
3220
  }, e.prototype.tryParseUnquoted = function(t, r) {
3214
3221
  if (this.isEOF())
3215
3222
  return null;
3216
3223
  var n = this.char();
3217
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ze(n));
3224
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
3218
3225
  }, e.prototype.parseArgument = function(t, r) {
3219
3226
  var n = this.clonePosition();
3220
3227
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3243,56 +3250,56 @@ var Wn = (
3243
3250
  return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
3244
3251
  }
3245
3252
  }, e.prototype.parseIdentifierIfPossible = function() {
3246
- var t = this.clonePosition(), r = this.offset(), n = We(this.message, r), i = r + n.length;
3253
+ var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
3247
3254
  this.bumpTo(i);
3248
3255
  var o = this.clonePosition(), s = g(t, o);
3249
3256
  return { value: n, location: s };
3250
3257
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3251
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3258
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
3252
3259
  switch (a) {
3253
3260
  case "":
3254
- return this.error(b.EXPECT_ARGUMENT_TYPE, g(s, l));
3261
+ return this.error(b.EXPECT_ARGUMENT_TYPE, g(s, u));
3255
3262
  case "number":
3256
3263
  case "date":
3257
3264
  case "time": {
3258
3265
  this.bumpSpace();
3259
- var u = null;
3266
+ var l = null;
3260
3267
  if (this.bumpIf(",")) {
3261
3268
  this.bumpSpace();
3262
- var c = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
3263
- if (h.err)
3264
- return h;
3265
- var f = zn(h.val);
3266
- if (f.length === 0)
3269
+ var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3270
+ if (f.err)
3271
+ return f;
3272
+ var h = Wn(f.val);
3273
+ if (h.length === 0)
3267
3274
  return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
3268
3275
  var p = g(c, this.clonePosition());
3269
- u = { style: f, styleLocation: p };
3276
+ l = { style: h, styleLocation: p };
3270
3277
  }
3271
3278
  var m = this.tryParseArgumentClose(i);
3272
3279
  if (m.err)
3273
3280
  return m;
3274
3281
  var d = g(i, this.clonePosition());
3275
- if (u && gt(u == null ? void 0 : u.style, "::", 0)) {
3276
- var A = kn(u.style.slice(2));
3282
+ if (l && vt(l == null ? void 0 : l.style, "::", 0)) {
3283
+ var _ = zn(l.style.slice(2));
3277
3284
  if (a === "number") {
3278
- var h = this.parseNumberSkeletonFromString(A, u.styleLocation);
3279
- return h.err ? h : {
3280
- val: { type: C.number, value: n, location: d, style: h.val },
3285
+ var f = this.parseNumberSkeletonFromString(_, l.styleLocation);
3286
+ return f.err ? f : {
3287
+ val: { type: C.number, value: n, location: d, style: f.val },
3281
3288
  err: null
3282
3289
  };
3283
3290
  } else {
3284
- if (A.length === 0)
3291
+ if (_.length === 0)
3285
3292
  return this.error(b.EXPECT_DATE_TIME_SKELETON, d);
3286
- var P = A;
3287
- this.locale && (P = Mn(A, this.locale));
3288
- var f = {
3289
- type: J.dateTime,
3293
+ var P = _;
3294
+ this.locale && (P = Pn(_, this.locale));
3295
+ var h = {
3296
+ type: Q.dateTime,
3290
3297
  pattern: P,
3291
- location: u.styleLocation,
3298
+ location: l.styleLocation,
3292
3299
  parsedOptions: this.shouldParseSkeletons ? Cn(P) : {}
3293
3300
  }, S = a === "date" ? C.date : C.time;
3294
3301
  return {
3295
- val: { type: S, value: n, location: d, style: f },
3302
+ val: { type: S, value: n, location: d, style: h },
3296
3303
  err: null
3297
3304
  };
3298
3305
  }
@@ -3302,7 +3309,7 @@ var Wn = (
3302
3309
  type: a === "number" ? C.number : a === "date" ? C.date : C.time,
3303
3310
  value: n,
3304
3311
  location: d,
3305
- style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
3312
+ style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
3306
3313
  },
3307
3314
  err: null
3308
3315
  };
@@ -3310,19 +3317,19 @@ var Wn = (
3310
3317
  case "plural":
3311
3318
  case "selectordinal":
3312
3319
  case "select": {
3313
- var w = this.clonePosition();
3320
+ var A = this.clonePosition();
3314
3321
  if (this.bumpSpace(), !this.bumpIf(","))
3315
- return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(w, y({}, w)));
3322
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(A, x({}, A)));
3316
3323
  this.bumpSpace();
3317
- var H = this.parseIdentifierIfPossible(), _ = 0;
3324
+ var H = this.parseIdentifierIfPossible(), w = 0;
3318
3325
  if (a !== "select" && H.value === "offset") {
3319
3326
  if (!this.bumpIf(":"))
3320
3327
  return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
3321
3328
  this.bumpSpace();
3322
- var h = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3323
- if (h.err)
3324
- return h;
3325
- this.bumpSpace(), H = this.parseIdentifierIfPossible(), _ = h.val;
3329
+ var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3330
+ if (f.err)
3331
+ return f;
3332
+ this.bumpSpace(), H = this.parseIdentifierIfPossible(), w = f.val;
3326
3333
  }
3327
3334
  var T = this.tryParsePluralOrSelectOptions(t, a, r, H);
3328
3335
  if (T.err)
@@ -3330,29 +3337,29 @@ var Wn = (
3330
3337
  var m = this.tryParseArgumentClose(i);
3331
3338
  if (m.err)
3332
3339
  return m;
3333
- var O = g(i, this.clonePosition());
3340
+ var y = g(i, this.clonePosition());
3334
3341
  return a === "select" ? {
3335
3342
  val: {
3336
3343
  type: C.select,
3337
3344
  value: n,
3338
- options: yt(T.val),
3339
- location: O
3345
+ options: gt(T.val),
3346
+ location: y
3340
3347
  },
3341
3348
  err: null
3342
3349
  } : {
3343
3350
  val: {
3344
3351
  type: C.plural,
3345
3352
  value: n,
3346
- options: yt(T.val),
3347
- offset: _,
3353
+ options: gt(T.val),
3354
+ offset: w,
3348
3355
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3349
- location: O
3356
+ location: y
3350
3357
  },
3351
3358
  err: null
3352
3359
  };
3353
3360
  }
3354
3361
  default:
3355
- return this.error(b.INVALID_ARGUMENT_TYPE, g(s, l));
3362
+ return this.error(b.INVALID_ARGUMENT_TYPE, g(s, u));
3356
3363
  }
3357
3364
  }, e.prototype.tryParseArgumentClose = function(t) {
3358
3365
  return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3394,34 +3401,34 @@ var Wn = (
3394
3401
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3395
3402
  var n = [];
3396
3403
  try {
3397
- n = wn(t);
3404
+ n = Sn(t);
3398
3405
  } catch (i) {
3399
3406
  return this.error(b.INVALID_NUMBER_SKELETON, r);
3400
3407
  }
3401
3408
  return {
3402
3409
  val: {
3403
- type: J.number,
3410
+ type: Q.number,
3404
3411
  tokens: n,
3405
3412
  location: r,
3406
- parsedOptions: this.shouldParseSkeletons ? Hn(n) : {}
3413
+ parsedOptions: this.shouldParseSkeletons ? Mn(n) : {}
3407
3414
  },
3408
3415
  err: null
3409
3416
  };
3410
3417
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3411
- for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, c = i.location; ; ) {
3412
- if (u.length === 0) {
3413
- var h = this.clonePosition();
3418
+ for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
3419
+ if (l.length === 0) {
3420
+ var f = this.clonePosition();
3414
3421
  if (r !== "select" && this.bumpIf("=")) {
3415
- var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3416
- if (f.err)
3417
- return f;
3418
- c = g(h, this.clonePosition()), u = this.message.slice(h.offset, this.offset());
3422
+ var h = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3423
+ if (h.err)
3424
+ return h;
3425
+ c = g(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
3419
3426
  } else
3420
3427
  break;
3421
3428
  }
3422
- if (l.has(u))
3429
+ if (u.has(l))
3423
3430
  return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3424
- u === "other" && (s = !0), this.bumpSpace();
3431
+ l === "other" && (s = !0), this.bumpSpace();
3425
3432
  var p = this.clonePosition();
3426
3433
  if (!this.bumpIf("{"))
3427
3434
  return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
@@ -3432,12 +3439,12 @@ var Wn = (
3432
3439
  if (d.err)
3433
3440
  return d;
3434
3441
  a.push([
3435
- u,
3442
+ l,
3436
3443
  {
3437
3444
  value: m.val,
3438
3445
  location: g(p, this.clonePosition())
3439
3446
  }
3440
- ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, c = o.location;
3447
+ ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
3441
3448
  }
3442
3449
  return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3443
3450
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
@@ -3450,8 +3457,8 @@ var Wn = (
3450
3457
  else
3451
3458
  break;
3452
3459
  }
3453
- var l = g(i, this.clonePosition());
3454
- return o ? (s *= n, Gn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3460
+ var u = g(i, this.clonePosition());
3461
+ return o ? (s *= n, jn(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
3455
3462
  }, e.prototype.offset = function() {
3456
3463
  return this.position.offset;
3457
3464
  }, e.prototype.isEOF = function() {
@@ -3466,7 +3473,7 @@ var Wn = (
3466
3473
  var t = this.position.offset;
3467
3474
  if (t >= this.message.length)
3468
3475
  throw Error("out of bound");
3469
- var r = Kt(this.message, t);
3476
+ var r = Jt(this.message, t);
3470
3477
  if (r === void 0)
3471
3478
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3472
3479
  return r;
@@ -3485,7 +3492,7 @@ var Wn = (
3485
3492
  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);
3486
3493
  }
3487
3494
  }, e.prototype.bumpIf = function(t) {
3488
- if (gt(this.message, t, this.offset())) {
3495
+ if (vt(this.message, t, this.offset())) {
3489
3496
  for (var r = 0; r < t.length; r++)
3490
3497
  this.bump();
3491
3498
  return !0;
@@ -3507,7 +3514,7 @@ var Wn = (
3507
3514
  break;
3508
3515
  }
3509
3516
  }, e.prototype.bumpSpace = function() {
3510
- for (; !this.isEOF() && tr(this.char()); )
3517
+ for (; !this.isEOF() && er(this.char()); )
3511
3518
  this.bump();
3512
3519
  }, e.prototype.peek = function() {
3513
3520
  if (this.isEOF())
@@ -3517,46 +3524,46 @@ var Wn = (
3517
3524
  }, e;
3518
3525
  }()
3519
3526
  );
3520
- function Ve(e) {
3527
+ function We(e) {
3521
3528
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3522
3529
  }
3523
- function Vn(e) {
3524
- return Ve(e) || e === 47;
3525
- }
3526
3530
  function Xn(e) {
3531
+ return We(e) || e === 47;
3532
+ }
3533
+ function Zn(e) {
3527
3534
  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;
3528
3535
  }
3529
- function tr(e) {
3536
+ function er(e) {
3530
3537
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3531
3538
  }
3532
- function Zn(e) {
3539
+ function qn(e) {
3533
3540
  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;
3534
3541
  }
3535
- function Xe(e) {
3542
+ function Ve(e) {
3536
3543
  e.forEach(function(t) {
3537
- if (delete t.location, Wt(t) || Vt(t))
3544
+ if (delete t.location, zt(t) || Wt(t))
3538
3545
  for (var r in t.options)
3539
- delete t.options[r].location, Xe(t.options[r].value);
3540
- else jt(t) && Zt(t.style) || (kt(t) || zt(t)) && je(t.style) ? delete t.style.location : Xt(t) && Xe(t.children);
3546
+ delete t.options[r].location, Ve(t.options[r].value);
3547
+ else Gt(t) && Xt(t.style) || (jt(t) || kt(t)) && Ge(t.style) ? delete t.style.location : Vt(t) && Ve(t.children);
3541
3548
  });
3542
3549
  }
3543
- function qn(e, t) {
3544
- t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3545
- var r = new Wn(e, t).parse();
3550
+ function Qn(e, t) {
3551
+ t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3552
+ var r = new Vn(e, t).parse();
3546
3553
  if (r.err) {
3547
3554
  var n = SyntaxError(b[r.err.kind]);
3548
3555
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3549
3556
  }
3550
- return t != null && t.captureLocation || Xe(r.val), r.val;
3557
+ return t != null && t.captureLocation || Ve(r.val), r.val;
3551
3558
  }
3552
- var K;
3559
+ var Y;
3553
3560
  (function(e) {
3554
3561
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3555
- })(K || (K = {}));
3556
- var Ce = (
3562
+ })(Y || (Y = {}));
3563
+ var _e = (
3557
3564
  /** @class */
3558
3565
  function(e) {
3559
- D(t, e);
3566
+ $(t, e);
3560
3567
  function t(r, n, i) {
3561
3568
  var o = e.call(this, r) || this;
3562
3569
  return o.code = n, o.originalMessage = i, o;
@@ -3565,155 +3572,155 @@ var Ce = (
3565
3572
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3566
3573
  }, t;
3567
3574
  }(Error)
3568
- ), Et = (
3575
+ ), xt = (
3569
3576
  /** @class */
3570
3577
  function(e) {
3571
- D(t, e);
3578
+ $(t, e);
3572
3579
  function t(r, n, i, o) {
3573
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), K.INVALID_VALUE, o) || this;
3580
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, o) || this;
3574
3581
  }
3575
3582
  return t;
3576
- }(Ce)
3577
- ), Qn = (
3583
+ }(_e)
3584
+ ), Yn = (
3578
3585
  /** @class */
3579
3586
  function(e) {
3580
- D(t, e);
3587
+ $(t, e);
3581
3588
  function t(r, n, i) {
3582
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), K.INVALID_VALUE, i) || this;
3589
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
3583
3590
  }
3584
3591
  return t;
3585
- }(Ce)
3586
- ), Yn = (
3592
+ }(_e)
3593
+ ), Jn = (
3587
3594
  /** @class */
3588
3595
  function(e) {
3589
- D(t, e);
3596
+ $(t, e);
3590
3597
  function t(r, n) {
3591
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), K.MISSING_VALUE, n) || this;
3598
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
3592
3599
  }
3593
3600
  return t;
3594
- }(Ce)
3601
+ }(_e)
3595
3602
  ), M;
3596
3603
  (function(e) {
3597
3604
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3598
3605
  })(M || (M = {}));
3599
- function Jn(e) {
3606
+ function Kn(e) {
3600
3607
  return e.length < 2 ? e : e.reduce(function(t, r) {
3601
3608
  var n = t[t.length - 1];
3602
3609
  return !n || n.type !== M.literal || r.type !== M.literal ? t.push(r) : n.value += r.value, t;
3603
3610
  }, []);
3604
3611
  }
3605
- function Kn(e) {
3612
+ function ei(e) {
3606
3613
  return typeof e == "function";
3607
3614
  }
3608
- function me(e, t, r, n, i, o, s) {
3609
- if (e.length === 1 && dt(e[0]))
3615
+ function de(e, t, r, n, i, o, s) {
3616
+ if (e.length === 1 && pt(e[0]))
3610
3617
  return [
3611
3618
  {
3612
3619
  type: M.literal,
3613
3620
  value: e[0].value
3614
3621
  }
3615
3622
  ];
3616
- for (var a = [], l = 0, u = e; l < u.length; l++) {
3617
- var c = u[l];
3618
- if (dt(c)) {
3623
+ for (var a = [], u = 0, l = e; u < l.length; u++) {
3624
+ var c = l[u];
3625
+ if (pt(c)) {
3619
3626
  a.push({
3620
3627
  type: M.literal,
3621
3628
  value: c.value
3622
3629
  });
3623
3630
  continue;
3624
3631
  }
3625
- if (En(c)) {
3632
+ if (_n(c)) {
3626
3633
  typeof o == "number" && a.push({
3627
3634
  type: M.literal,
3628
3635
  value: r.getNumberFormat(t).format(o)
3629
3636
  });
3630
3637
  continue;
3631
3638
  }
3632
- var h = c.value;
3633
- if (!(i && h in i))
3634
- throw new Yn(h, s);
3635
- var f = i[h];
3636
- if (xn(c)) {
3637
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3638
- type: typeof f == "string" ? M.literal : M.object,
3639
- value: f
3639
+ var f = c.value;
3640
+ if (!(i && f in i))
3641
+ throw new Jn(f, s);
3642
+ var h = i[f];
3643
+ if (En(c)) {
3644
+ (!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
3645
+ type: typeof h == "string" ? M.literal : M.object,
3646
+ value: h
3640
3647
  });
3641
3648
  continue;
3642
3649
  }
3643
- if (kt(c)) {
3644
- var p = typeof c.style == "string" ? n.date[c.style] : je(c.style) ? c.style.parsedOptions : void 0;
3650
+ if (jt(c)) {
3651
+ var p = typeof c.style == "string" ? n.date[c.style] : Ge(c.style) ? c.style.parsedOptions : void 0;
3645
3652
  a.push({
3646
3653
  type: M.literal,
3647
- value: r.getDateTimeFormat(t, p).format(f)
3654
+ value: r.getDateTimeFormat(t, p).format(h)
3648
3655
  });
3649
3656
  continue;
3650
3657
  }
3651
- if (zt(c)) {
3652
- var p = typeof c.style == "string" ? n.time[c.style] : je(c.style) ? c.style.parsedOptions : n.time.medium;
3658
+ if (kt(c)) {
3659
+ var p = typeof c.style == "string" ? n.time[c.style] : Ge(c.style) ? c.style.parsedOptions : n.time.medium;
3653
3660
  a.push({
3654
3661
  type: M.literal,
3655
- value: r.getDateTimeFormat(t, p).format(f)
3662
+ value: r.getDateTimeFormat(t, p).format(h)
3656
3663
  });
3657
3664
  continue;
3658
3665
  }
3659
- if (jt(c)) {
3660
- var p = typeof c.style == "string" ? n.number[c.style] : Zt(c.style) ? c.style.parsedOptions : void 0;
3661
- p && p.scale && (f = f * (p.scale || 1)), a.push({
3666
+ if (Gt(c)) {
3667
+ var p = typeof c.style == "string" ? n.number[c.style] : Xt(c.style) ? c.style.parsedOptions : void 0;
3668
+ p && p.scale && (h = h * (p.scale || 1)), a.push({
3662
3669
  type: M.literal,
3663
- value: r.getNumberFormat(t, p).format(f)
3670
+ value: r.getNumberFormat(t, p).format(h)
3664
3671
  });
3665
3672
  continue;
3666
3673
  }
3667
- if (Xt(c)) {
3668
- var m = c.children, d = c.value, A = i[d];
3669
- if (!Kn(A))
3670
- throw new Qn(d, "function", s);
3671
- var P = me(m, t, r, n, i, o), S = A(P.map(function(_) {
3672
- return _.value;
3674
+ if (Vt(c)) {
3675
+ var m = c.children, d = c.value, _ = i[d];
3676
+ if (!ei(_))
3677
+ throw new Yn(d, "function", s);
3678
+ var P = de(m, t, r, n, i, o), S = _(P.map(function(w) {
3679
+ return w.value;
3673
3680
  }));
3674
- Array.isArray(S) || (S = [S]), a.push.apply(a, S.map(function(_) {
3681
+ Array.isArray(S) || (S = [S]), a.push.apply(a, S.map(function(w) {
3675
3682
  return {
3676
- type: typeof _ == "string" ? M.literal : M.object,
3677
- value: _
3683
+ type: typeof w == "string" ? M.literal : M.object,
3684
+ value: w
3678
3685
  };
3679
3686
  }));
3680
3687
  }
3681
- if (Wt(c)) {
3682
- var w = c.options[f] || c.options.other;
3683
- if (!w)
3684
- throw new Et(c.value, f, Object.keys(c.options), s);
3685
- a.push.apply(a, me(w.value, t, r, n, i));
3688
+ if (zt(c)) {
3689
+ var A = c.options[h] || c.options.other;
3690
+ if (!A)
3691
+ throw new xt(c.value, h, Object.keys(c.options), s);
3692
+ a.push.apply(a, de(A.value, t, r, n, i));
3686
3693
  continue;
3687
3694
  }
3688
- if (Vt(c)) {
3689
- var w = c.options["=".concat(f)];
3690
- if (!w) {
3695
+ if (Wt(c)) {
3696
+ var A = c.options["=".concat(h)];
3697
+ if (!A) {
3691
3698
  if (!Intl.PluralRules)
3692
- throw new Ce(`Intl.PluralRules is not available in this environment.
3699
+ throw new _e(`Intl.PluralRules is not available in this environment.
3693
3700
  Try polyfilling it using "@formatjs/intl-pluralrules"
3694
- `, K.MISSING_INTL_API, s);
3695
- var H = r.getPluralRules(t, { type: c.pluralType }).select(f - (c.offset || 0));
3696
- w = c.options[H] || c.options.other;
3701
+ `, Y.MISSING_INTL_API, s);
3702
+ var H = r.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
3703
+ A = c.options[H] || c.options.other;
3697
3704
  }
3698
- if (!w)
3699
- throw new Et(c.value, f, Object.keys(c.options), s);
3700
- a.push.apply(a, me(w.value, t, r, n, i, f - (c.offset || 0)));
3705
+ if (!A)
3706
+ throw new xt(c.value, h, Object.keys(c.options), s);
3707
+ a.push.apply(a, de(A.value, t, r, n, i, h - (c.offset || 0)));
3701
3708
  continue;
3702
3709
  }
3703
3710
  }
3704
- return Jn(a);
3711
+ return Kn(a);
3705
3712
  }
3706
- function ei(e, t) {
3707
- return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3708
- return r[n] = y(y({}, e[n]), t[n] || {}), r;
3713
+ function ti(e, t) {
3714
+ return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3715
+ return r[n] = x(x({}, e[n]), t[n] || {}), r;
3709
3716
  }, {})) : e;
3710
3717
  }
3711
- function ti(e, t) {
3718
+ function ri(e, t) {
3712
3719
  return t ? Object.keys(e).reduce(function(r, n) {
3713
- return r[n] = ei(e[n], t[n]), r;
3714
- }, y({}, e)) : e;
3720
+ return r[n] = ti(e[n], t[n]), r;
3721
+ }, x({}, e)) : e;
3715
3722
  }
3716
- function Oe(e) {
3723
+ function Pe(e) {
3717
3724
  return {
3718
3725
  create: function() {
3719
3726
  return {
@@ -3727,39 +3734,39 @@ function Oe(e) {
3727
3734
  }
3728
3735
  };
3729
3736
  }
3730
- function ri(e) {
3737
+ function ni(e) {
3731
3738
  return e === void 0 && (e = {
3732
3739
  number: {},
3733
3740
  dateTime: {},
3734
3741
  pluralRules: {}
3735
3742
  }), {
3736
- getNumberFormat: He(function() {
3743
+ getNumberFormat: Be(function() {
3737
3744
  for (var t, r = [], n = 0; n < arguments.length; n++)
3738
3745
  r[n] = arguments[n];
3739
- return new ((t = Intl.NumberFormat).bind.apply(t, Q([void 0], r, !1)))();
3746
+ return new ((t = Intl.NumberFormat).bind.apply(t, Z([void 0], r, !1)))();
3740
3747
  }, {
3741
- cache: Oe(e.number),
3742
- strategy: Me.variadic
3748
+ cache: Pe(e.number),
3749
+ strategy: He.variadic
3743
3750
  }),
3744
- getDateTimeFormat: He(function() {
3751
+ getDateTimeFormat: Be(function() {
3745
3752
  for (var t, r = [], n = 0; n < arguments.length; n++)
3746
3753
  r[n] = arguments[n];
3747
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Q([void 0], r, !1)))();
3754
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Z([void 0], r, !1)))();
3748
3755
  }, {
3749
- cache: Oe(e.dateTime),
3750
- strategy: Me.variadic
3756
+ cache: Pe(e.dateTime),
3757
+ strategy: He.variadic
3751
3758
  }),
3752
- getPluralRules: He(function() {
3759
+ getPluralRules: Be(function() {
3753
3760
  for (var t, r = [], n = 0; n < arguments.length; n++)
3754
3761
  r[n] = arguments[n];
3755
- return new ((t = Intl.PluralRules).bind.apply(t, Q([void 0], r, !1)))();
3762
+ return new ((t = Intl.PluralRules).bind.apply(t, Z([void 0], r, !1)))();
3756
3763
  }, {
3757
- cache: Oe(e.pluralRules),
3758
- strategy: Me.variadic
3764
+ cache: Pe(e.pluralRules),
3765
+ strategy: He.variadic
3759
3766
  })
3760
3767
  };
3761
3768
  }
3762
- var ni = (
3769
+ var ii = (
3763
3770
  /** @class */
3764
3771
  function() {
3765
3772
  function e(t, r, n, i) {
@@ -3769,20 +3776,20 @@ var ni = (
3769
3776
  number: {},
3770
3777
  dateTime: {},
3771
3778
  pluralRules: {}
3772
- }, this.format = function(l) {
3773
- var u = o.formatToParts(l);
3774
- if (u.length === 1)
3775
- return u[0].value;
3776
- var c = u.reduce(function(h, f) {
3777
- return !h.length || f.type !== M.literal || typeof h[h.length - 1] != "string" ? h.push(f.value) : h[h.length - 1] += f.value, h;
3779
+ }, this.format = function(u) {
3780
+ var l = o.formatToParts(u);
3781
+ if (l.length === 1)
3782
+ return l[0].value;
3783
+ var c = l.reduce(function(f, h) {
3784
+ return !f.length || h.type !== M.literal || typeof f[f.length - 1] != "string" ? f.push(h.value) : f[f.length - 1] += h.value, f;
3778
3785
  }, []);
3779
3786
  return c.length <= 1 ? c[0] || "" : c;
3780
- }, this.formatToParts = function(l) {
3781
- return me(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3787
+ }, this.formatToParts = function(u) {
3788
+ return de(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3782
3789
  }, this.resolvedOptions = function() {
3783
- var l;
3790
+ var u;
3784
3791
  return {
3785
- locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3792
+ locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3786
3793
  };
3787
3794
  }, this.getAst = function() {
3788
3795
  return o.ast;
@@ -3791,13 +3798,13 @@ var ni = (
3791
3798
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3792
3799
  var s = i || {};
3793
3800
  s.formatters;
3794
- var a = Nr(s, ["formatters"]);
3795
- this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
3801
+ var a = Lr(s, ["formatters"]);
3802
+ this.ast = e.__parse(t, x(x({}, a), { locale: this.resolvedLocale }));
3796
3803
  } else
3797
3804
  this.ast = t;
3798
3805
  if (!Array.isArray(this.ast))
3799
3806
  throw new TypeError("A message must be provided as a String or AST.");
3800
- this.formats = ti(e.formats, n), this.formatters = i && i.formatters || ri(this.formatterCache);
3807
+ this.formats = ri(e.formats, n), this.formatters = i && i.formatters || ni(this.formatterCache);
3801
3808
  }
3802
3809
  return Object.defineProperty(e, "defaultLocale", {
3803
3810
  get: function() {
@@ -3810,7 +3817,7 @@ var ni = (
3810
3817
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3811
3818
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3812
3819
  }
3813
- }, e.__parse = qn, e.formats = {
3820
+ }, e.__parse = Qn, e.formats = {
3814
3821
  number: {
3815
3822
  integer: {
3816
3823
  maximumFractionDigits: 0
@@ -3871,7 +3878,7 @@ var ni = (
3871
3878
  }, e;
3872
3879
  }()
3873
3880
  );
3874
- function ii(e, t) {
3881
+ function oi(e, t) {
3875
3882
  if (t == null)
3876
3883
  return;
3877
3884
  if (t in e)
@@ -3892,92 +3899,92 @@ function ii(e, t) {
3892
3899
  n = void 0;
3893
3900
  return n;
3894
3901
  }
3895
- const U = {}, oi = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), rr = (e, t) => {
3902
+ const R = {}, si = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), tr = (e, t) => {
3896
3903
  if (t == null)
3897
3904
  return;
3898
- if (t in U && e in U[t])
3899
- return U[t][e];
3900
- const r = Ae(t);
3905
+ if (t in R && e in R[t])
3906
+ return R[t][e];
3907
+ const r = we(t);
3901
3908
  for (let n = 0; n < r.length; n++) {
3902
- const i = r[n], o = ai(i, e);
3909
+ const i = r[n], o = ui(i, e);
3903
3910
  if (o)
3904
- return oi(e, t, o);
3911
+ return si(e, t, o);
3905
3912
  }
3906
3913
  };
3907
- let Je;
3908
- const ce = _e({});
3909
- function si(e) {
3910
- return Je[e] || null;
3914
+ let Qe;
3915
+ const le = Ee({});
3916
+ function ai(e) {
3917
+ return Qe[e] || null;
3911
3918
  }
3912
- function nr(e) {
3913
- return e in Je;
3919
+ function rr(e) {
3920
+ return e in Qe;
3914
3921
  }
3915
- function ai(e, t) {
3916
- if (!nr(e))
3922
+ function ui(e, t) {
3923
+ if (!rr(e))
3917
3924
  return null;
3918
- const r = si(e);
3919
- return ii(r, t);
3925
+ const r = ai(e);
3926
+ return oi(r, t);
3920
3927
  }
3921
- function ui(e) {
3928
+ function li(e) {
3922
3929
  if (e == null)
3923
3930
  return;
3924
- const t = Ae(e);
3931
+ const t = we(e);
3925
3932
  for (let r = 0; r < t.length; r++) {
3926
3933
  const n = t[r];
3927
- if (nr(n))
3934
+ if (rr(n))
3928
3935
  return n;
3929
3936
  }
3930
3937
  }
3931
- function ir(e, ...t) {
3932
- delete U[e], ce.update((r) => (r[e] = fn.all([r[e] || {}, ...t]), r));
3938
+ function nr(e, ...t) {
3939
+ delete R[e], le.update((r) => (r[e] = pn.all([r[e] || {}, ...t]), r));
3933
3940
  }
3934
- re(
3935
- [ce],
3941
+ ee(
3942
+ [le],
3936
3943
  ([e]) => Object.keys(e)
3937
3944
  );
3938
- ce.subscribe((e) => Je = e);
3939
- const be = {};
3940
- function li(e, t) {
3941
- be[e].delete(t), be[e].size === 0 && delete be[e];
3945
+ le.subscribe((e) => Qe = e);
3946
+ const me = {};
3947
+ function ci(e, t) {
3948
+ me[e].delete(t), me[e].size === 0 && delete me[e];
3942
3949
  }
3943
- function or(e) {
3944
- return be[e];
3950
+ function ir(e) {
3951
+ return me[e];
3945
3952
  }
3946
- function ci(e) {
3947
- return Ae(e).map((t) => {
3948
- const r = or(t);
3953
+ function hi(e) {
3954
+ return we(e).map((t) => {
3955
+ const r = ir(t);
3949
3956
  return [t, r ? [...r] : []];
3950
3957
  }).filter(([, t]) => t.length > 0);
3951
3958
  }
3952
- function Ze(e) {
3953
- return e == null ? !1 : Ae(e).some(
3959
+ function Xe(e) {
3960
+ return e == null ? !1 : we(e).some(
3954
3961
  (t) => {
3955
3962
  var r;
3956
- return (r = or(t)) == null ? void 0 : r.size;
3963
+ return (r = ir(t)) == null ? void 0 : r.size;
3957
3964
  }
3958
3965
  );
3959
3966
  }
3960
- function hi(e, t) {
3967
+ function fi(e, t) {
3961
3968
  return Promise.all(
3962
- t.map((n) => (li(e, n), n().then((i) => i.default || i)))
3963
- ).then((n) => ir(e, ...n));
3964
- }
3965
- const oe = {};
3966
- function sr(e) {
3967
- if (!Ze(e))
3968
- return e in oe ? oe[e] : Promise.resolve();
3969
- const t = ci(e);
3970
- return oe[e] = Promise.all(
3969
+ t.map((n) => (ci(e, n), n().then((i) => i.default || i)))
3970
+ ).then((n) => nr(e, ...n));
3971
+ }
3972
+ const ne = {};
3973
+ function or(e) {
3974
+ if (!Xe(e))
3975
+ return e in ne ? ne[e] : Promise.resolve();
3976
+ const t = hi(e);
3977
+ return ne[e] = Promise.all(
3971
3978
  t.map(
3972
- ([r, n]) => hi(r, n)
3979
+ ([r, n]) => fi(r, n)
3973
3980
  )
3974
3981
  ).then(() => {
3975
- if (Ze(e))
3976
- return sr(e);
3977
- delete oe[e];
3978
- }), oe[e];
3982
+ if (Xe(e))
3983
+ return or(e);
3984
+ delete ne[e];
3985
+ }), ne[e];
3979
3986
  }
3980
- const fi = {
3987
+ const pi = {
3981
3988
  number: {
3982
3989
  scientific: { notation: "scientific" },
3983
3990
  engineering: { notation: "engineering" },
@@ -4006,180 +4013,180 @@ const fi = {
4006
4013
  timeZoneName: "short"
4007
4014
  }
4008
4015
  }
4009
- }, pi = {
4016
+ }, di = {
4010
4017
  fallbackLocale: null,
4011
4018
  loadingDelay: 200,
4012
- formats: fi,
4019
+ formats: pi,
4013
4020
  warnOnMissingMessages: !0,
4014
4021
  handleMissingMessage: void 0,
4015
4022
  ignoreTag: !0
4016
- }, di = pi;
4017
- function ee() {
4018
- return di;
4023
+ }, mi = di;
4024
+ function J() {
4025
+ return mi;
4019
4026
  }
4020
- const Ie = _e(!1);
4021
- var mi = Object.defineProperty, bi = Object.defineProperties, vi = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, gi = Object.prototype.hasOwnProperty, yi = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xi = (e, t) => {
4027
+ const Oe = Ee(!1);
4028
+ var bi = Object.defineProperty, vi = Object.defineProperties, gi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, yi = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ei = (e, t) => {
4022
4029
  for (var r in t || (t = {}))
4023
- gi.call(t, r) && Ct(e, r, t[r]);
4024
- if (_t)
4025
- for (var r of _t(t))
4026
- yi.call(t, r) && Ct(e, r, t[r]);
4030
+ yi.call(t, r) && _t(e, r, t[r]);
4031
+ if (Et)
4032
+ for (var r of Et(t))
4033
+ xi.call(t, r) && _t(e, r, t[r]);
4027
4034
  return e;
4028
- }, Ei = (e, t) => bi(e, vi(t));
4029
- let qe;
4030
- const ge = _e(null);
4031
- function At(e) {
4035
+ }, _i = (e, t) => vi(e, gi(t));
4036
+ let Ze;
4037
+ const ve = Ee(null);
4038
+ function wt(e) {
4032
4039
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4033
4040
  }
4034
- function Ae(e, t = ee().fallbackLocale) {
4035
- const r = At(e);
4036
- return t ? [.../* @__PURE__ */ new Set([...r, ...At(t)])] : r;
4041
+ function we(e, t = J().fallbackLocale) {
4042
+ const r = wt(e);
4043
+ return t ? [.../* @__PURE__ */ new Set([...r, ...wt(t)])] : r;
4037
4044
  }
4038
- function j() {
4039
- return qe != null ? qe : void 0;
4045
+ function G() {
4046
+ return Ze != null ? Ze : void 0;
4040
4047
  }
4041
- ge.subscribe((e) => {
4042
- qe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4048
+ ve.subscribe((e) => {
4049
+ Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4043
4050
  });
4044
- const _i = (e) => {
4045
- if (e && ui(e) && Ze(e)) {
4046
- const { loadingDelay: t } = ee();
4051
+ const wi = (e) => {
4052
+ if (e && li(e) && Xe(e)) {
4053
+ const { loadingDelay: t } = J();
4047
4054
  let r;
4048
- return typeof window != "undefined" && j() != null && t ? r = window.setTimeout(
4049
- () => Ie.set(!0),
4055
+ return typeof window != "undefined" && G() != null && t ? r = window.setTimeout(
4056
+ () => Oe.set(!0),
4050
4057
  t
4051
- ) : Ie.set(!0), sr(e).then(() => {
4052
- ge.set(e);
4058
+ ) : Oe.set(!0), or(e).then(() => {
4059
+ ve.set(e);
4053
4060
  }).finally(() => {
4054
- clearTimeout(r), Ie.set(!1);
4061
+ clearTimeout(r), Oe.set(!1);
4055
4062
  });
4056
4063
  }
4057
- return ge.set(e);
4058
- }, ne = Ei(xi({}, ge), {
4059
- set: _i
4060
- }), we = (e) => {
4064
+ return ve.set(e);
4065
+ }, te = _i(Ei({}, ve), {
4066
+ set: wi
4067
+ }), Ce = (e) => {
4061
4068
  const t = /* @__PURE__ */ Object.create(null);
4062
4069
  return (n) => {
4063
4070
  const i = JSON.stringify(n);
4064
4071
  return i in t ? t[i] : t[i] = e(n);
4065
4072
  };
4066
4073
  };
4067
- var Ci = Object.defineProperty, ye = Object.getOwnPropertySymbols, ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
4074
+ var Ci = Object.defineProperty, ge = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
4068
4075
  for (var r in t || (t = {}))
4069
- ar.call(t, r) && wt(e, r, t[r]);
4070
- if (ye)
4071
- for (var r of ye(t))
4072
- ur.call(t, r) && wt(e, r, t[r]);
4076
+ sr.call(t, r) && Ct(e, r, t[r]);
4077
+ if (ge)
4078
+ for (var r of ge(t))
4079
+ ar.call(t, r) && Ct(e, r, t[r]);
4073
4080
  return e;
4074
- }, ie = (e, t) => {
4081
+ }, re = (e, t) => {
4075
4082
  var r = {};
4076
4083
  for (var n in e)
4077
- ar.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4078
- if (e != null && ye)
4079
- for (var n of ye(e))
4080
- t.indexOf(n) < 0 && ur.call(e, n) && (r[n] = e[n]);
4084
+ sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4085
+ if (e != null && ge)
4086
+ for (var n of ge(e))
4087
+ t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
4081
4088
  return r;
4082
4089
  };
4083
- const ue = (e, t) => {
4084
- const { formats: r } = ee();
4090
+ const ae = (e, t) => {
4091
+ const { formats: r } = J();
4085
4092
  if (e in r && t in r[e])
4086
4093
  return r[e][t];
4087
4094
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4088
- }, Ai = we(
4095
+ }, Ai = Ce(
4089
4096
  (e) => {
4090
- var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
4097
+ var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4091
4098
  if (r == null)
4092
4099
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4093
- return n && (i = ue("number", n)), new Intl.NumberFormat(r, i);
4100
+ return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
4094
4101
  }
4095
- ), wi = we(
4102
+ ), Si = Ce(
4096
4103
  (e) => {
4097
- var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
4104
+ var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4098
4105
  if (r == null)
4099
4106
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4100
- return n ? i = ue("date", n) : Object.keys(i).length === 0 && (i = ue("date", "short")), new Intl.DateTimeFormat(r, i);
4107
+ return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
4101
4108
  }
4102
- ), Si = we(
4109
+ ), Ti = Ce(
4103
4110
  (e) => {
4104
- var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
4111
+ var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4105
4112
  if (r == null)
4106
4113
  throw new Error(
4107
4114
  '[svelte-i18n] A "locale" must be set to format time values'
4108
4115
  );
4109
- return n ? i = ue("time", n) : Object.keys(i).length === 0 && (i = ue("time", "short")), new Intl.DateTimeFormat(r, i);
4116
+ return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
4110
4117
  }
4111
- ), Ti = (e = {}) => {
4118
+ ), Bi = (e = {}) => {
4112
4119
  var t = e, {
4113
- locale: r = j()
4114
- } = t, n = ie(t, [
4120
+ locale: r = G()
4121
+ } = t, n = re(t, [
4115
4122
  "locale"
4116
4123
  ]);
4117
- return Ai(Ke({ locale: r }, n));
4118
- }, Bi = (e = {}) => {
4124
+ return Ai(Ye({ locale: r }, n));
4125
+ }, Hi = (e = {}) => {
4119
4126
  var t = e, {
4120
- locale: r = j()
4121
- } = t, n = ie(t, [
4127
+ locale: r = G()
4128
+ } = t, n = re(t, [
4122
4129
  "locale"
4123
4130
  ]);
4124
- return wi(Ke({ locale: r }, n));
4125
- }, Hi = (e = {}) => {
4131
+ return Si(Ye({ locale: r }, n));
4132
+ }, Mi = (e = {}) => {
4126
4133
  var t = e, {
4127
- locale: r = j()
4128
- } = t, n = ie(t, [
4134
+ locale: r = G()
4135
+ } = t, n = re(t, [
4129
4136
  "locale"
4130
4137
  ]);
4131
- return Si(Ke({ locale: r }, n));
4132
- }, Mi = we(
4138
+ return Ti(Ye({ locale: r }, n));
4139
+ }, Pi = Ce(
4133
4140
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4134
- (e, t = j()) => new ni(e, t, ee().formats, {
4135
- ignoreTag: ee().ignoreTag
4141
+ (e, t = G()) => new ii(e, t, J().formats, {
4142
+ ignoreTag: J().ignoreTag
4136
4143
  })
4137
- ), Pi = (e, t = {}) => {
4144
+ ), Oi = (e, t = {}) => {
4138
4145
  var r, n, i, o;
4139
4146
  let s = t;
4140
4147
  typeof e == "object" && (s = e, e = s.id);
4141
4148
  const {
4142
4149
  values: a,
4143
- locale: l = j(),
4144
- default: u
4150
+ locale: u = G(),
4151
+ default: l
4145
4152
  } = s;
4146
- if (l == null)
4153
+ if (u == null)
4147
4154
  throw new Error(
4148
4155
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4149
4156
  );
4150
- let c = rr(e, l);
4157
+ let c = tr(e, u);
4151
4158
  if (!c)
4152
- c = (o = (i = (n = (r = ee()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4159
+ c = (o = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
4153
4160
  else if (typeof c != "string")
4154
4161
  return console.warn(
4155
4162
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4156
4163
  ), c;
4157
4164
  if (!a)
4158
4165
  return c;
4159
- let h = c;
4166
+ let f = c;
4160
4167
  try {
4161
- h = Mi(c, l).format(a);
4162
- } catch (f) {
4163
- f instanceof Error && console.warn(
4168
+ f = Pi(c, u).format(a);
4169
+ } catch (h) {
4170
+ h instanceof Error && console.warn(
4164
4171
  `[svelte-i18n] Message "${e}" has syntax error:`,
4165
- f.message
4172
+ h.message
4166
4173
  );
4167
4174
  }
4168
- return h;
4169
- }, Oi = (e, t) => Hi(t).format(e), Ii = (e, t) => Bi(t).format(e), Ni = (e, t) => Ti(t).format(e), Li = (e, t = j()) => rr(e, t), $i = re([ne, ce], () => Pi);
4170
- re([ne], () => Oi);
4171
- re([ne], () => Ii);
4172
- re([ne], () => Ni);
4173
- re([ne, ce], () => Li);
4174
- window.emWidgets = { topic: Zr };
4175
- const Ri = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4176
- function St(e, t) {
4177
- ir(e, t);
4178
- }
4179
- function Di(e) {
4180
- ne.set(e);
4181
- }
4182
- const Tt = {
4175
+ return f;
4176
+ }, Ii = (e, t) => Mi(t).format(e), Ni = (e, t) => Hi(t).format(e), Li = (e, t) => Bi(t).format(e), $i = (e, t = G()) => tr(e, t), Ri = ee([te, le], () => Oi);
4177
+ ee([te], () => Ii);
4178
+ ee([te], () => Ni);
4179
+ ee([te], () => Li);
4180
+ ee([te, le], () => $i);
4181
+ window.emWidgets = { topic: qr };
4182
+ const Di = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4183
+ function At(e, t) {
4184
+ nr(e, t);
4185
+ }
4186
+ function Ui(e) {
4187
+ te.set(e);
4188
+ }
4189
+ const St = {
4183
4190
  en: {
4184
4191
  titleAccountClosure: "Account Closure",
4185
4192
  accountClosureDescription: "Account Closure provides a permanent access restriction to your account if you feel you need a break, or you just want to stop using our services.",
@@ -4269,253 +4276,275 @@ const Tt = {
4269
4276
  accountClosureConfirm: "Yes"
4270
4277
  }
4271
4278
  };
4272
- function Ui(e) {
4273
- br(e, "svelte-sj9hhm", '.AccountClosureWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--pam-color-bg, var(--emw--background-color, #F1F1F1));border-radius:5%;padding:50px;max-width:760px}.AccountClosureWrapper.AccountClosureWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg .aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountClosureTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-normal, 400)}.AccountClosureTitleMobile{font-size:var(--emw--font-size-large, 20px)}.AccountClosureTitleNone{display:none}.AccountClosureDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.AccountClosureDescription.AccountClosureDescriptionMobile{font-size:var(--emw--font-size-small, 14px);line-height:18px}.AccountClosureActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%;color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.AccountClosureActionButtons.AccountClosureActionButtonsMobile{width:100%;grid-template-columns:1fr}.AccountClosureSave{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);padding:30px 0;color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}.AccountClosureSave.AccountClosureSaveMobile{width:100%;height:40px;font-size:var(--emw--font-size-small, 14px);grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 20px)}.ModalWrapper .ModalContent::before{content:"";position:absolute;top:-6px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.ModalWrapper .ModalContent::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 20px)}.ModalWrapper .ModalBody{background:transparent;padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:var(--emw--font-size-x-large, 24px);margin-bottom:40px;color:white}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:var(--emw--font-size-medium, 16px)}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:var(--emw--font-size-small, 14px)}');
4279
+ function Fi(e, t) {
4280
+ if (e) {
4281
+ const r = document.createElement("style");
4282
+ r.innerHTML = t, e.appendChild(r);
4283
+ }
4284
+ }
4285
+ function Gi(e, t) {
4286
+ const r = new URL(t);
4287
+ fetch(r.href).then((n) => n.text()).then((n) => {
4288
+ const i = document.createElement("style");
4289
+ i.innerHTML = n, e && e.appendChild(i);
4290
+ }).catch((n) => {
4291
+ console.error("There was an error while trying to load client styling from URL", n);
4292
+ });
4293
+ }
4294
+ function ji(e, t, r) {
4295
+ if (window.emMessageBus) {
4296
+ const n = document.createElement("style");
4297
+ window.emMessageBus.subscribe(t, (i) => {
4298
+ n.innerHTML = i, e && e.appendChild(n);
4299
+ });
4300
+ }
4301
+ }
4302
+ function ki(e) {
4303
+ mr(e, "svelte-sj9hhm", '.AccountClosureWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--pam-color-bg, var(--emw--background-color, #F1F1F1));border-radius:5%;padding:50px;max-width:760px}.AccountClosureWrapper.AccountClosureWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg .aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountClosureTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-normal, 400)}.AccountClosureTitleMobile{font-size:var(--emw--font-size-large, 20px)}.AccountClosureTitleNone{display:none}.AccountClosureDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.AccountClosureDescription.AccountClosureDescriptionMobile{font-size:var(--emw--font-size-small, 14px);line-height:18px}.AccountClosureActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%;color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.AccountClosureActionButtons.AccountClosureActionButtonsMobile{width:100%;grid-template-columns:1fr}.AccountClosureSave{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);padding:30px 0;color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}.AccountClosureSave.AccountClosureSaveMobile{width:100%;height:40px;font-size:var(--emw--font-size-small, 14px);grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 20px)}.ModalWrapper .ModalContent::before{content:"";position:absolute;top:-6px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.ModalWrapper .ModalContent::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 20px)}.ModalWrapper .ModalBody{background:transparent;padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:var(--emw--font-size-x-large, 24px);margin-bottom:40px;color:white}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:var(--emw--font-size-medium, 16px)}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:var(--emw--font-size-small, 14px)}');
4274
4304
  }
4275
- function Fi(e) {
4276
- let t, r, n, i, o, s, a, l, u, c, h = (
4305
+ function zi(e) {
4306
+ let t, r, n, i, o, s, a, u, l, c, f = (
4277
4307
  /*$_*/
4278
4308
  e[2]("titleAccountClosure") + ""
4279
- ), f, p, m;
4309
+ ), h, p, m;
4280
4310
  return {
4281
4311
  c() {
4282
- t = B("div"), r = z("svg"), n = z("defs"), i = z("style"), o = $(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));}"), s = z("g"), a = z("g"), l = z("path"), u = F(), c = B("h2"), f = $(h), x(l, "class", "aaa"), x(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), x(l, "transform", "translate(15 15) rotate(180)"), x(a, "transform", "translate(20 158)"), x(s, "transform", "translate(-20 -158)"), x(r, "xmlns", "http://www.w3.org/2000/svg"), x(r, "width", "15"), x(r, "height", "15"), x(r, "viewBox", "0 0 15 15"), x(c, "class", "AccountClosureTitleMobile"), x(c, "part", "AccountClosureTitleMobile"), x(t, "class", "MenuReturnButton"), x(t, "part", "MenuReturnButton");
4312
+ t = B("div"), r = k("svg"), n = k("defs"), i = k("style"), o = N(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));}"), s = k("g"), a = k("g"), u = k("path"), l = U(), c = B("h2"), h = N(f), E(u, "class", "aaa"), E(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(u, "transform", "translate(15 15) rotate(180)"), E(a, "transform", "translate(20 158)"), E(s, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(c, "class", "AccountClosureTitleMobile"), E(c, "part", "AccountClosureTitleMobile"), E(t, "class", "MenuReturnButton"), E(t, "part", "MenuReturnButton");
4283
4313
  },
4284
- m(d, A) {
4285
- xe(d, t, A), v(t, r), v(r, n), v(n, i), v(i, o), v(r, s), v(s, a), v(a, l), v(t, u), v(t, c), v(c, f), p || (m = ve(
4314
+ m(d, _) {
4315
+ ye(d, t, _), v(t, r), v(r, n), v(n, i), v(i, o), v(r, s), v(s, a), v(a, u), v(t, l), v(t, c), v(c, h), p || (m = be(
4286
4316
  t,
4287
4317
  "click",
4288
4318
  /*click_handler*/
4289
- e[11]
4319
+ e[12]
4290
4320
  ), p = !0);
4291
4321
  },
4292
- p(d, A) {
4293
- A & /*$_*/
4294
- 4 && h !== (h = /*$_*/
4295
- d[2]("titleAccountClosure") + "") && G(f, h);
4322
+ p(d, _) {
4323
+ _ & /*$_*/
4324
+ 4 && f !== (f = /*$_*/
4325
+ d[2]("titleAccountClosure") + "") && F(h, f);
4296
4326
  },
4297
4327
  d(d) {
4298
- d && le(t), p = !1, m();
4328
+ d && ue(t), p = !1, m();
4299
4329
  }
4300
4330
  };
4301
4331
  }
4302
- function Bt(e) {
4332
+ function Tt(e) {
4303
4333
  let t, r, n, i, o = (
4304
4334
  /*$_*/
4305
4335
  e[2]("modal") + ""
4306
- ), s, a, l, u, c = (
4336
+ ), s, a, u, l, c = (
4307
4337
  /*$_*/
4308
4338
  e[2]("accountClosureCancel") + ""
4309
- ), h, f, p, m = (
4339
+ ), f, h, p, m = (
4310
4340
  /*$_*/
4311
4341
  e[2]("accountClosureConfirm") + ""
4312
- ), d, A, P;
4342
+ ), d, _, P;
4313
4343
  return {
4314
4344
  c() {
4315
- t = B("div"), r = B("div"), n = B("div"), i = B("p"), s = $(o), a = F(), l = B("div"), u = B("button"), h = $(c), f = F(), p = B("button"), d = $(m), x(i, "class", "ModalText"), x(u, "class", "ModalCancel"), x(p, "class", "ModalConfirm"), x(l, "class", "ModalButtons"), x(n, "class", "ModalBody"), x(r, "class", "ModalContent"), x(t, "class", "ModalWrapper " + /*isMobile*/
4345
+ t = B("div"), r = B("div"), n = B("div"), i = B("p"), s = N(o), a = U(), u = B("div"), l = B("button"), f = N(c), h = U(), p = B("button"), d = N(m), E(i, "class", "ModalText"), E(l, "class", "ModalCancel"), E(p, "class", "ModalConfirm"), E(u, "class", "ModalButtons"), E(n, "class", "ModalBody"), E(r, "class", "ModalContent"), E(t, "class", "ModalWrapper " + /*isMobile*/
4316
4346
  (e[3] ? "ModalWrapperMobile" : ""));
4317
4347
  },
4318
- m(S, w) {
4319
- xe(S, t, w), v(t, r), v(r, n), v(n, i), v(i, s), v(n, a), v(n, l), v(l, u), v(u, h), v(l, f), v(l, p), v(p, d), A || (P = [
4320
- ve(
4321
- u,
4348
+ m(S, A) {
4349
+ ye(S, t, A), v(t, r), v(r, n), v(n, i), v(i, s), v(n, a), v(n, u), v(u, l), v(l, f), v(u, h), v(u, p), v(p, d), _ || (P = [
4350
+ be(
4351
+ l,
4322
4352
  "click",
4323
4353
  /*click_handler_2*/
4324
- e[13]
4354
+ e[14]
4325
4355
  ),
4326
- ve(
4356
+ be(
4327
4357
  p,
4328
4358
  "click",
4329
4359
  /*click_handler_3*/
4330
- e[14]
4360
+ e[15]
4331
4361
  )
4332
- ], A = !0);
4362
+ ], _ = !0);
4333
4363
  },
4334
- p(S, w) {
4335
- w & /*$_*/
4364
+ p(S, A) {
4365
+ A & /*$_*/
4336
4366
  4 && o !== (o = /*$_*/
4337
- S[2]("modal") + "") && G(s, o), w & /*$_*/
4367
+ S[2]("modal") + "") && F(s, o), A & /*$_*/
4338
4368
  4 && c !== (c = /*$_*/
4339
- S[2]("accountClosureCancel") + "") && G(h, c), w & /*$_*/
4369
+ S[2]("accountClosureCancel") + "") && F(f, c), A & /*$_*/
4340
4370
  4 && m !== (m = /*$_*/
4341
- S[2]("accountClosureConfirm") + "") && G(d, m);
4371
+ S[2]("accountClosureConfirm") + "") && F(d, m);
4342
4372
  },
4343
4373
  d(S) {
4344
- S && le(t), A = !1, te(P);
4374
+ S && ue(t), _ = !1, K(P);
4345
4375
  }
4346
4376
  };
4347
4377
  }
4348
- function Gi(e) {
4378
+ function Wi(e) {
4349
4379
  let t, r, n, i, o = (
4350
4380
  /*$_*/
4351
4381
  e[2]("titleAccountClosure") + ""
4352
- ), s, a, l, u, c = (
4382
+ ), s, a, u, l, c = (
4353
4383
  /*$_*/
4354
4384
  e[2]("accountClosureDescription") + ""
4355
- ), h, f, p, m, d = (
4385
+ ), f, h, p, m, d = (
4356
4386
  /*$_*/
4357
4387
  e[2]("closeAccount") + ""
4358
- ), A, P, S, w, H = (
4388
+ ), _, P, S, A, H = (
4359
4389
  /*isMobile*/
4360
- e[3] && Fi(e)
4361
- ), _ = (
4390
+ e[3] && zi(e)
4391
+ ), w = (
4362
4392
  /*closureModal*/
4363
- e[1] && Bt(e)
4393
+ e[1] && Tt(e)
4364
4394
  );
4365
4395
  return {
4366
4396
  c() {
4367
- t = B("div"), r = B("div"), H && H.c(), n = F(), i = B("h2"), s = $(o), a = F(), l = B("div"), u = B("p"), h = $(c), f = F(), p = B("div"), m = B("button"), A = $(d), P = F(), _ && _.c(), x(i, "class", "AccountClosureTitle " + /*isMobile*/
4368
- (e[3] ? "AccountClosureTitleNone" : "")), x(l, "class", "AccountClosureDescription " + /*isMobile*/
4369
- (e[3] ? "AccountClosureDescriptionMobile" : "")), x(m, "class", "AccountClosureSave " + /*isMobile*/
4370
- (e[3] ? "AccountClosureSaveMobile" : "")), x(p, "class", "AccountClosureActionButtons " + /*isMobile*/
4371
- (e[3] ? "AccountClosureActionButtonsMobile" : "")), x(r, "class", "AccountClosureWrapper " + /*isMobile*/
4397
+ t = B("div"), r = B("div"), H && H.c(), n = U(), i = B("h2"), s = N(o), a = U(), u = B("div"), l = B("p"), f = N(c), h = U(), p = B("div"), m = B("button"), _ = N(d), P = U(), w && w.c(), E(i, "class", "AccountClosureTitle " + /*isMobile*/
4398
+ (e[3] ? "AccountClosureTitleNone" : "")), E(u, "class", "AccountClosureDescription " + /*isMobile*/
4399
+ (e[3] ? "AccountClosureDescriptionMobile" : "")), E(m, "class", "AccountClosureSave " + /*isMobile*/
4400
+ (e[3] ? "AccountClosureSaveMobile" : "")), E(p, "class", "AccountClosureActionButtons " + /*isMobile*/
4401
+ (e[3] ? "AccountClosureActionButtonsMobile" : "")), E(r, "class", "AccountClosureWrapper " + /*isMobile*/
4372
4402
  (e[3] ? "AccountClosureWrapperMobile" : ""));
4373
4403
  },
4374
- m(T, O) {
4375
- xe(T, t, O), v(t, r), H && H.m(r, null), v(r, n), v(r, i), v(i, s), v(r, a), v(r, l), v(l, u), v(u, h), v(r, f), v(r, p), v(p, m), v(m, A), v(t, P), _ && _.m(t, null), e[15](t), S || (w = ve(
4404
+ m(T, y) {
4405
+ ye(T, t, y), v(t, r), H && H.m(r, null), v(r, n), v(r, i), v(i, s), v(r, a), v(r, u), v(u, l), v(l, f), v(r, h), v(r, p), v(p, m), v(m, _), v(t, P), w && w.m(t, null), e[16](t), S || (A = be(
4376
4406
  m,
4377
4407
  "click",
4378
4408
  /*click_handler_1*/
4379
- e[12]
4409
+ e[13]
4380
4410
  ), S = !0);
4381
4411
  },
4382
- p(T, [O]) {
4412
+ p(T, [y]) {
4383
4413
  /*isMobile*/
4384
- T[3] && H.p(T, O), O & /*$_*/
4414
+ T[3] && H.p(T, y), y & /*$_*/
4385
4415
  4 && o !== (o = /*$_*/
4386
- T[2]("titleAccountClosure") + "") && G(s, o), O & /*$_*/
4416
+ T[2]("titleAccountClosure") + "") && F(s, o), y & /*$_*/
4387
4417
  4 && c !== (c = /*$_*/
4388
- T[2]("accountClosureDescription") + "") && G(h, c), O & /*$_*/
4418
+ T[2]("accountClosureDescription") + "") && F(f, c), y & /*$_*/
4389
4419
  4 && d !== (d = /*$_*/
4390
- T[2]("closeAccount") + "") && G(A, d), /*closureModal*/
4391
- T[1] ? _ ? _.p(T, O) : (_ = Bt(T), _.c(), _.m(t, null)) : _ && (_.d(1), _ = null);
4420
+ T[2]("closeAccount") + "") && F(_, d), /*closureModal*/
4421
+ T[1] ? w ? w.p(T, y) : (w = Tt(T), w.c(), w.m(t, null)) : w && (w.d(1), w = null);
4392
4422
  },
4393
- i: N,
4394
- o: N,
4423
+ i: I,
4424
+ o: I,
4395
4425
  d(T) {
4396
- T && le(t), H && H.d(), _ && _.d(), e[15](null), S = !1, w();
4426
+ T && ue(t), H && H.d(), w && w.d(), e[16](null), S = !1, A();
4397
4427
  }
4398
4428
  };
4399
4429
  }
4400
- function ji(e, t, r) {
4430
+ function Vi(e, t, r) {
4401
4431
  let n;
4402
- mr(e, $i, (E) => r(2, n = E));
4403
- let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: a = "" } = t, l = window.navigator.userAgent, u = Ri(l) !== "PC", c = !1, h;
4404
- const f = () => {
4405
- fetch(a).then((L) => L.json()).then((L) => {
4406
- Object.keys(L).forEach((k) => {
4407
- St(k, L[k]);
4432
+ dr(e, Ri, (y) => r(2, n = y));
4433
+ let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: a } = t, { translationurl: u = "" } = t, l = window.navigator.userAgent, c = Di(l) !== "PC", f = !1, h;
4434
+ const p = () => {
4435
+ fetch(u).then((j) => j.json()).then((j) => {
4436
+ Object.keys(j).forEach((Je) => {
4437
+ At(Je, j[Je]);
4408
4438
  });
4409
- }).catch((L) => {
4410
- console.log(L);
4439
+ }).catch((j) => {
4440
+ console.log(j);
4411
4441
  });
4412
4442
  };
4413
- Object.keys(Tt).forEach((E) => {
4414
- St(E, Tt[E]);
4443
+ Object.keys(St).forEach((y) => {
4444
+ At(y, St[y]);
4415
4445
  });
4416
- const p = (E) => {
4417
- r(1, c = E), E === !0 ? window.postMessage({ type: "DisableScroll" }, window.location.href) : window.postMessage({ type: "EnableScroll" }, window.location.href);
4418
- }, m = () => {
4419
- p(!1), window.postMessage({ type: "AccountClosure" }, window.location.href);
4446
+ const m = (y) => {
4447
+ r(1, f = y), y === !0 ? window.postMessage({ type: "DisableScroll" }, window.location.href) : window.postMessage({ type: "EnableScroll" }, window.location.href);
4420
4448
  }, d = () => {
4449
+ m(!1), window.postMessage({ type: "AccountClosure" }, window.location.href);
4450
+ }, _ = () => {
4421
4451
  window.postMessage(
4422
4452
  {
4423
4453
  type: "PlayerAccountMenuActive",
4424
- isMobile: u
4454
+ isMobile: c
4425
4455
  },
4426
4456
  window.location.href
4427
4457
  );
4428
- }, A = () => {
4429
- Di(i);
4430
4458
  }, P = () => {
4431
- let E = document.createElement("style");
4432
- E.innerHTML = o, h.appendChild(E);
4433
- }, S = () => {
4434
- let E = new URL(s), L = document.createElement("style");
4435
- fetch(E.href).then((k) => k.text()).then((k) => {
4436
- L.innerHTML = k, setTimeout(
4437
- () => {
4438
- h.appendChild(L);
4439
- },
4440
- 1
4441
- );
4442
- });
4443
- }, w = () => d(), H = () => p(!0), _ = () => p(!1), T = () => m();
4444
- function O(E) {
4445
- Ne[E ? "unshift" : "push"](() => {
4446
- h = E, r(0, h);
4459
+ Ui(i);
4460
+ };
4461
+ Er(() => () => {
4462
+ });
4463
+ const S = () => _(), A = () => m(!0), H = () => m(!1), w = () => d();
4464
+ function T(y) {
4465
+ Ie[y ? "unshift" : "push"](() => {
4466
+ h = y, r(0, h);
4447
4467
  });
4448
4468
  }
4449
- return e.$$set = (E) => {
4450
- "lang" in E && r(7, i = E.lang), "clientstyling" in E && r(8, o = E.clientstyling), "clientstylingurl" in E && r(9, s = E.clientstylingurl), "translationurl" in E && r(10, a = E.translationurl);
4469
+ return e.$$set = (y) => {
4470
+ "lang" in y && r(7, i = y.lang), "clientstyling" in y && r(8, o = y.clientstyling), "clientstylingurl" in y && r(9, s = y.clientstylingurl), "mbsource" in y && r(10, a = y.mbsource), "translationurl" in y && r(11, u = y.translationurl);
4451
4471
  }, e.$$.update = () => {
4452
4472
  e.$$.dirty & /*lang*/
4453
- 128 && i && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4454
- 257 && o && h && P(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4455
- 513 && s && h && S(), e.$$.dirty & /*translationurl*/
4456
- 1024 && a && f();
4473
+ 128 && i && P(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4474
+ 257 && o && h && Fi(h, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4475
+ 513 && s && h && Gi(h, s), e.$$.dirty & /*mbsource, customStylingContainer*/
4476
+ 1025 && a && h && ji(h, `${a}.Style`), e.$$.dirty & /*translationurl*/
4477
+ 2048 && u && p();
4457
4478
  }, [
4458
4479
  h,
4459
- c,
4480
+ f,
4460
4481
  n,
4461
- u,
4462
- p,
4482
+ c,
4463
4483
  m,
4464
4484
  d,
4485
+ _,
4465
4486
  i,
4466
4487
  o,
4467
4488
  s,
4468
4489
  a,
4469
- w,
4490
+ u,
4491
+ S,
4492
+ A,
4470
4493
  H,
4471
- _,
4472
- T,
4473
- O
4494
+ w,
4495
+ T
4474
4496
  ];
4475
4497
  }
4476
- class ki extends Or {
4498
+ class Xi extends Ir {
4477
4499
  constructor(t) {
4478
- super(), Mr(
4500
+ super(), Pr(
4479
4501
  this,
4480
4502
  t,
4481
- ji,
4482
- Gi,
4483
- Mt,
4503
+ Vi,
4504
+ Wi,
4505
+ Ht,
4484
4506
  {
4485
4507
  lang: 7,
4486
4508
  clientstyling: 8,
4487
4509
  clientstylingurl: 9,
4488
- translationurl: 10
4510
+ mbsource: 10,
4511
+ translationurl: 11
4489
4512
  },
4490
- Ui
4513
+ ki
4491
4514
  );
4492
4515
  }
4493
4516
  get lang() {
4494
4517
  return this.$$.ctx[7];
4495
4518
  }
4496
4519
  set lang(t) {
4497
- this.$$set({ lang: t }), Z();
4520
+ this.$$set({ lang: t }), D();
4498
4521
  }
4499
4522
  get clientstyling() {
4500
4523
  return this.$$.ctx[8];
4501
4524
  }
4502
4525
  set clientstyling(t) {
4503
- this.$$set({ clientstyling: t }), Z();
4526
+ this.$$set({ clientstyling: t }), D();
4504
4527
  }
4505
4528
  get clientstylingurl() {
4506
4529
  return this.$$.ctx[9];
4507
4530
  }
4508
4531
  set clientstylingurl(t) {
4509
- this.$$set({ clientstylingurl: t }), Z();
4532
+ this.$$set({ clientstylingurl: t }), D();
4510
4533
  }
4511
- get translationurl() {
4534
+ get mbsource() {
4512
4535
  return this.$$.ctx[10];
4513
4536
  }
4537
+ set mbsource(t) {
4538
+ this.$$set({ mbsource: t }), D();
4539
+ }
4540
+ get translationurl() {
4541
+ return this.$$.ctx[11];
4542
+ }
4514
4543
  set translationurl(t) {
4515
- this.$$set({ translationurl: t }), Z();
4544
+ this.$$set({ translationurl: t }), D();
4516
4545
  }
4517
4546
  }
4518
- Pr(ki, { lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4547
+ Or(Xi, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
4519
4548
  export {
4520
- ki as default
4549
+ Xi as default
4521
4550
  };