@everymatrix/player-panic-button 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,30 +1,30 @@
1
- var sr = Object.defineProperty, ar = Object.defineProperties;
2
- var ur = Object.getOwnPropertyDescriptors;
1
+ var or = Object.defineProperty, sr = Object.defineProperties;
2
+ var ar = Object.getOwnPropertyDescriptors;
3
3
  var Qe = Object.getOwnPropertySymbols;
4
- var hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable;
5
- var _e = (e, t, r) => t in e ? sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
4
+ var ur = Object.prototype.hasOwnProperty, hr = Object.prototype.propertyIsEnumerable;
5
+ var Ee = (e, t, r) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- hr.call(t, r) && _e(e, r, t[r]);
7
+ ur.call(t, r) && Ee(e, r, t[r]);
8
8
  if (Qe)
9
9
  for (var r of Qe(t))
10
- lr.call(t, r) && _e(e, r, t[r]);
10
+ hr.call(t, r) && Ee(e, r, t[r]);
11
11
  return e;
12
- }, Ye = (e, t) => ar(e, ur(t));
13
- var S = (e, t, r) => _e(e, typeof t != "symbol" ? t + "" : t, r);
12
+ }, Ye = (e, t) => sr(e, ar(t));
13
+ var T = (e, t, r) => Ee(e, typeof t != "symbol" ? t + "" : t, r);
14
14
  var qe = (e, t, r) => new Promise((n, i) => {
15
- var o = (l) => {
15
+ var o = (u) => {
16
16
  try {
17
- a(r.next(l));
17
+ a(r.next(u));
18
18
  } catch (h) {
19
19
  i(h);
20
20
  }
21
- }, s = (l) => {
21
+ }, s = (u) => {
22
22
  try {
23
- a(r.throw(l));
23
+ a(r.throw(u));
24
24
  } catch (h) {
25
25
  i(h);
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
30
  function H() {
@@ -35,19 +35,19 @@ function Tt(e) {
35
35
  function Ke() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function ne(e) {
38
+ function re(e) {
39
39
  e.forEach(Tt);
40
40
  }
41
- function Xe(e) {
41
+ function Ve(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function Ht(e, t) {
44
+ function wt(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function cr(e) {
47
+ function lr(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function wt(e, ...t) {
50
+ function Ht(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const n of t)
53
53
  n(void 0);
@@ -56,20 +56,20 @@ function wt(e, ...t) {
56
56
  const r = e.subscribe(...t);
57
57
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
58
  }
59
- function fr(e, t, r) {
60
- e.$$.on_destroy.push(wt(t, r));
59
+ function cr(e, t, r) {
60
+ e.$$.on_destroy.push(Ht(t, r));
61
61
  }
62
- function he(e, t) {
62
+ function ue(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
- function pr(e, t, r) {
66
- const n = mr(e);
65
+ function fr(e, t, r) {
66
+ const n = pr(e);
67
67
  if (!n.getElementById(t)) {
68
- const i = q("style");
69
- i.id = t, i.textContent = r, dr(n, i);
68
+ const i = Y("style");
69
+ i.id = t, i.textContent = r, mr(n, i);
70
70
  }
71
71
  }
72
- function mr(e) {
72
+ function pr(e) {
73
73
  if (!e) return document;
74
74
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
75
75
  return t && /** @type {ShadowRoot} */
@@ -78,8 +78,8 @@ function mr(e) {
78
78
  t
79
79
  ) : e.ownerDocument;
80
80
  }
81
- function dr(e, t) {
82
- return he(
81
+ function mr(e, t) {
82
+ return ue(
83
83
  /** @type {Document} */
84
84
  e.head || e,
85
85
  t
@@ -88,29 +88,29 @@ function dr(e, t) {
88
88
  function Pt(e, t, r) {
89
89
  e.insertBefore(t, r || null);
90
90
  }
91
- function ze(e) {
91
+ function Xe(e) {
92
92
  e.parentNode && e.parentNode.removeChild(e);
93
93
  }
94
- function q(e) {
94
+ function Y(e) {
95
95
  return document.createElement(e);
96
96
  }
97
- function br(e) {
97
+ function dr(e) {
98
98
  return document.createTextNode(e);
99
99
  }
100
- function M(e, t, r) {
100
+ function L(e, t, r) {
101
101
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
102
102
  }
103
- function gr(e) {
103
+ function br(e) {
104
104
  return Array.from(e.childNodes);
105
105
  }
106
- function vr(e, t) {
106
+ function gr(e, t) {
107
107
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
108
108
  t);
109
109
  }
110
110
  function et(e, t, r) {
111
111
  e.classList.toggle(t, !!r);
112
112
  }
113
- function yr(e) {
113
+ function vr(e) {
114
114
  const t = {};
115
115
  return e.childNodes.forEach(
116
116
  /** @param {Element} node */
@@ -119,85 +119,85 @@ function yr(e) {
119
119
  }
120
120
  ), t;
121
121
  }
122
- let ee;
123
- function K(e) {
124
- ee = e;
122
+ let K;
123
+ function q(e) {
124
+ K = e;
125
125
  }
126
- function xr() {
127
- if (!ee) throw new Error("Function called outside component initialization");
128
- return ee;
126
+ function yr() {
127
+ if (!K) throw new Error("Function called outside component initialization");
128
+ return K;
129
129
  }
130
- function Er(e) {
131
- xr().$$.on_mount.push(e);
130
+ function xr(e) {
131
+ yr().$$.on_mount.push(e);
132
132
  }
133
- const F = [], me = [];
134
- let j = [];
135
- const tt = [], _r = /* @__PURE__ */ Promise.resolve();
136
- let Oe = !1;
137
- function Sr() {
138
- Oe || (Oe = !0, _r.then(C));
133
+ const G = [], pe = [];
134
+ let F = [];
135
+ const tt = [], Er = /* @__PURE__ */ Promise.resolve();
136
+ let Ae = !1;
137
+ function _r() {
138
+ Ae || (Ae = !0, Er.then(B));
139
139
  }
140
- function Ie(e) {
141
- j.push(e);
140
+ function Oe(e) {
141
+ F.push(e);
142
142
  }
143
- const Se = /* @__PURE__ */ new Set();
144
- let U = 0;
145
- function C() {
146
- if (U !== 0)
143
+ const _e = /* @__PURE__ */ new Set();
144
+ let D = 0;
145
+ function B() {
146
+ if (D !== 0)
147
147
  return;
148
- const e = ee;
148
+ const e = K;
149
149
  do {
150
150
  try {
151
- for (; U < F.length; ) {
152
- const t = F[U];
153
- U++, K(t), Tr(t.$$);
151
+ for (; D < G.length; ) {
152
+ const t = G[D];
153
+ D++, q(t), Sr(t.$$);
154
154
  }
155
155
  } catch (t) {
156
- throw F.length = 0, U = 0, t;
156
+ throw G.length = 0, D = 0, t;
157
157
  }
158
- for (K(null), F.length = 0, U = 0; me.length; ) me.pop()();
159
- for (let t = 0; t < j.length; t += 1) {
160
- const r = j[t];
161
- Se.has(r) || (Se.add(r), r());
158
+ for (q(null), G.length = 0, D = 0; pe.length; ) pe.pop()();
159
+ for (let t = 0; t < F.length; t += 1) {
160
+ const r = F[t];
161
+ _e.has(r) || (_e.add(r), r());
162
162
  }
163
- j.length = 0;
164
- } while (F.length);
163
+ F.length = 0;
164
+ } while (G.length);
165
165
  for (; tt.length; )
166
166
  tt.pop()();
167
- Oe = !1, Se.clear(), K(e);
167
+ Ae = !1, _e.clear(), q(e);
168
168
  }
169
- function Tr(e) {
169
+ function Sr(e) {
170
170
  if (e.fragment !== null) {
171
- e.update(), ne(e.before_update);
171
+ e.update(), re(e.before_update);
172
172
  const t = e.dirty;
173
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
173
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Oe);
174
174
  }
175
175
  }
176
- function Hr(e) {
176
+ function Tr(e) {
177
177
  const t = [], r = [];
178
- j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
178
+ F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
179
179
  }
180
180
  const wr = /* @__PURE__ */ new Set();
181
- function Pr(e, t) {
181
+ function Hr(e, t) {
182
182
  e && e.i && (wr.delete(e), e.i(t));
183
183
  }
184
- function Br(e, t, r) {
184
+ function Pr(e, t, r) {
185
185
  const { fragment: n, after_update: i } = e.$$;
186
- n && n.m(t, r), Ie(() => {
187
- const o = e.$$.on_mount.map(Tt).filter(Xe);
188
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
189
- }), i.forEach(Ie);
186
+ n && n.m(t, r), Oe(() => {
187
+ const o = e.$$.on_mount.map(Tt).filter(Ve);
188
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
189
+ }), i.forEach(Oe);
190
190
  }
191
- function Ar(e, t) {
191
+ function Br(e, t) {
192
192
  const r = e.$$;
193
- r.fragment !== null && (Hr(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
193
+ r.fragment !== null && (Tr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
194
194
  }
195
- function Or(e, t) {
196
- e.$$.dirty[0] === -1 && (F.push(e), Sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
195
+ function Ar(e, t) {
196
+ e.$$.dirty[0] === -1 && (G.push(e), _r(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
197
197
  }
198
- function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
199
- const l = ee;
200
- K(e);
198
+ function Or(e, t, r, n, i, o, s = null, a = [-1]) {
199
+ const u = K;
200
+ q(e);
201
201
  const h = e.$$ = {
202
202
  fragment: null,
203
203
  ctx: [],
@@ -212,50 +212,50 @@ function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
212
212
  on_disconnect: [],
213
213
  before_update: [],
214
214
  after_update: [],
215
- context: new Map(t.context || (l ? l.$$.context : [])),
215
+ context: new Map(t.context || (u ? u.$$.context : [])),
216
216
  // everything else
217
217
  callbacks: Ke(),
218
218
  dirty: a,
219
219
  skip_bound: !1,
220
- root: t.target || l.$$.root
220
+ root: t.target || u.$$.root
221
221
  };
222
222
  s && s(h.root);
223
- let u = !1;
224
- if (h.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
225
- const y = d.length ? d[0] : f;
226
- return h.ctx && i(h.ctx[c], h.ctx[c] = y) && (!h.skip_bound && h.bound[c] && h.bound[c](y), u && Or(e, c)), f;
227
- }) : [], h.update(), u = !0, ne(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
223
+ let l = !1;
224
+ if (h.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
225
+ const v = m.length ? m[0] : f;
226
+ return h.ctx && i(h.ctx[c], h.ctx[c] = v) && (!h.skip_bound && h.bound[c] && h.bound[c](v), l && Ar(e, c)), f;
227
+ }) : [], h.update(), l = !0, re(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
228
228
  if (t.hydrate) {
229
- const c = gr(t.target);
230
- h.fragment && h.fragment.l(c), c.forEach(ze);
229
+ const c = br(t.target);
230
+ h.fragment && h.fragment.l(c), c.forEach(Xe);
231
231
  } else
232
232
  h.fragment && h.fragment.c();
233
- t.intro && Pr(e.$$.fragment), Br(e, t.target, t.anchor), C();
233
+ t.intro && Hr(e.$$.fragment), Pr(e, t.target, t.anchor), B();
234
234
  }
235
- K(l);
235
+ q(u);
236
236
  }
237
237
  let Bt;
238
238
  typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
239
239
  constructor(t, r, n) {
240
240
  super();
241
241
  /** The Svelte component constructor */
242
- S(this, "$$ctor");
242
+ T(this, "$$ctor");
243
243
  /** Slots */
244
- S(this, "$$s");
244
+ T(this, "$$s");
245
245
  /** The Svelte component instance */
246
- S(this, "$$c");
246
+ T(this, "$$c");
247
247
  /** Whether or not the custom element is connected */
248
- S(this, "$$cn", !1);
248
+ T(this, "$$cn", !1);
249
249
  /** Component props data */
250
- S(this, "$$d", {});
250
+ T(this, "$$d", {});
251
251
  /** `true` if currently in the process of reflecting component props back to attributes */
252
- S(this, "$$r", !1);
252
+ T(this, "$$r", !1);
253
253
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
254
- S(this, "$$p_d", {});
254
+ T(this, "$$p_d", {});
255
255
  /** @type {Record<string, Function[]>} Event listeners */
256
- S(this, "$$l", {});
256
+ T(this, "$$l", {});
257
257
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
258
- S(this, "$$l_u", /* @__PURE__ */ new Map());
258
+ T(this, "$$l_u", /* @__PURE__ */ new Map());
259
259
  this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
260
260
  }
261
261
  addEventListener(t, r, n) {
@@ -279,29 +279,29 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
279
279
  let s;
280
280
  return {
281
281
  c: function() {
282
- s = q("slot"), o !== "default" && M(s, "name", o);
282
+ s = Y("slot"), o !== "default" && L(s, "name", o);
283
283
  },
284
284
  /**
285
285
  * @param {HTMLElement} target
286
286
  * @param {HTMLElement} [anchor]
287
287
  */
288
- m: function(h, u) {
289
- Pt(h, s, u);
288
+ m: function(h, l) {
289
+ Pt(h, s, l);
290
290
  },
291
291
  d: function(h) {
292
- h && ze(s);
292
+ h && Xe(s);
293
293
  }
294
294
  };
295
295
  };
296
296
  };
297
297
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
298
298
  return;
299
- const r = {}, n = yr(this);
299
+ const r = {}, n = vr(this);
300
300
  for (const o of this.$$s)
301
301
  o in n && (r[o] = [t(o)]);
302
302
  for (const o of this.attributes) {
303
303
  const s = this.$$g_p(o.name);
304
- s in this.$$d || (this.$$d[s] = le(s, o.value, this.$$p_d, "toProp"));
304
+ s in this.$$d || (this.$$d[s] = he(s, o.value, this.$$p_d, "toProp"));
305
305
  }
306
306
  for (const o in this.$$p_d)
307
307
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
@@ -318,7 +318,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
318
318
  this.$$r = !0;
319
319
  for (const o in this.$$p_d)
320
320
  if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
321
- const s = le(
321
+ const s = he(
322
322
  o,
323
323
  this.$$d[o],
324
324
  this.$$p_d,
@@ -342,7 +342,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
342
342
  // and setting attributes through setAttribute etc, this is helpful
343
343
  attributeChangedCallback(t, r, n) {
344
344
  var i;
345
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = le(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
345
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = he(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
346
346
  }
347
347
  disconnectedCallback() {
348
348
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -355,7 +355,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
355
355
  ) || t;
356
356
  }
357
357
  });
358
- function le(e, t, r, n) {
358
+ function he(e, t, r, n) {
359
359
  var o;
360
360
  const i = (o = r[e]) == null ? void 0 : o.type;
361
361
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
@@ -385,7 +385,7 @@ function le(e, t, r, n) {
385
385
  return t;
386
386
  }
387
387
  }
388
- function Cr(e, t, r, n, i, o) {
388
+ function Ir(e, t, r, n, i, o) {
389
389
  let s = class extends Bt {
390
390
  constructor() {
391
391
  super(e, r, i), this.$$p_d = t;
@@ -401,22 +401,22 @@ function Cr(e, t, r, n, i, o) {
401
401
  get() {
402
402
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
403
403
  },
404
- set(l) {
404
+ set(u) {
405
405
  var h;
406
- l = le(a, l, t), this.$$d[a] = l, (h = this.$$c) == null || h.$set({ [a]: l });
406
+ u = he(a, u, t), this.$$d[a] = u, (h = this.$$c) == null || h.$set({ [a]: u });
407
407
  }
408
408
  });
409
409
  }), n.forEach((a) => {
410
410
  Object.defineProperty(s.prototype, a, {
411
411
  get() {
412
- var l;
413
- return (l = this.$$c) == null ? void 0 : l[a];
412
+ var u;
413
+ return (u = this.$$c) == null ? void 0 : u[a];
414
414
  }
415
415
  });
416
416
  }), e.element = /** @type {any} */
417
417
  s, s;
418
418
  }
419
- class Nr {
419
+ class Cr {
420
420
  constructor() {
421
421
  /**
422
422
  * ### PRIVATE API
@@ -425,7 +425,7 @@ class Nr {
425
425
  *
426
426
  * @type {any}
427
427
  */
428
- S(this, "$$");
428
+ T(this, "$$");
429
429
  /**
430
430
  * ### PRIVATE API
431
431
  *
@@ -433,11 +433,11 @@ class Nr {
433
433
  *
434
434
  * @type {any}
435
435
  */
436
- S(this, "$$set");
436
+ T(this, "$$set");
437
437
  }
438
438
  /** @returns {void} */
439
439
  $destroy() {
440
- Ar(this, 1), this.$destroy = H;
440
+ Br(this, 1), this.$destroy = H;
441
441
  }
442
442
  /**
443
443
  * @template {Extract<keyof Events, string>} K
@@ -446,7 +446,7 @@ class Nr {
446
446
  * @returns {() => void}
447
447
  */
448
448
  $on(t, r) {
449
- if (!Xe(r))
449
+ if (!Ve(r))
450
450
  return H;
451
451
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
452
452
  return n.push(r), () => {
@@ -459,22 +459,45 @@ class Nr {
459
459
  * @returns {void}
460
460
  */
461
461
  $set(t) {
462
- this.$$set && !cr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
462
+ this.$$set && !lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
463
+ }
464
+ }
465
+ const Nr = "4";
466
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
467
+ function Lr(e, t) {
468
+ if (e) {
469
+ const r = document.createElement("style");
470
+ r.innerHTML = t, e.appendChild(r);
463
471
  }
464
472
  }
465
- const Lr = "4";
466
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Lr);
467
- var Ce = function(e, t) {
468
- return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
473
+ function Mr(e, t) {
474
+ const r = new URL(t);
475
+ fetch(r.href).then((n) => n.text()).then((n) => {
476
+ const i = document.createElement("style");
477
+ i.innerHTML = n, e && e.appendChild(i);
478
+ }).catch((n) => {
479
+ console.error("There was an error while trying to load client styling from URL", n);
480
+ });
481
+ }
482
+ function $r(e, t, r) {
483
+ if (window.emMessageBus) {
484
+ const n = document.createElement("style");
485
+ window.emMessageBus.subscribe(t, (i) => {
486
+ n.innerHTML = i, e && e.appendChild(n);
487
+ });
488
+ }
489
+ }
490
+ var Ie = function(e, t) {
491
+ return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
469
492
  r.__proto__ = n;
470
493
  } || function(r, n) {
471
494
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
472
- }, Ce(e, t);
495
+ }, Ie(e, t);
473
496
  };
474
497
  function O(e, t) {
475
498
  if (typeof t != "function" && t !== null)
476
499
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
477
- Ce(e, t);
500
+ Ie(e, t);
478
501
  function r() {
479
502
  this.constructor = e;
480
503
  }
@@ -489,7 +512,7 @@ var b = function() {
489
512
  return t;
490
513
  }, b.apply(this, arguments);
491
514
  };
492
- function Mr(e, t) {
515
+ function Rr(e, t) {
493
516
  var r = {};
494
517
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
495
518
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -497,7 +520,7 @@ function Mr(e, t) {
497
520
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
498
521
  return r;
499
522
  }
500
- function Ne(e) {
523
+ function Ce(e) {
501
524
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
502
525
  if (r) return r.call(e);
503
526
  if (e && typeof e.length == "number") return {
@@ -507,7 +530,7 @@ function Ne(e) {
507
530
  };
508
531
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
509
532
  }
510
- function Le(e, t) {
533
+ function Ne(e, t) {
511
534
  var r = typeof Symbol == "function" && e[Symbol.iterator];
512
535
  if (!r) return e;
513
536
  var n = r.call(e), i, o = [], s;
@@ -524,7 +547,7 @@ function Le(e, t) {
524
547
  }
525
548
  return o;
526
549
  }
527
- function k(e, t, r) {
550
+ function j(e, t, r) {
528
551
  if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
529
552
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
530
553
  return e.concat(o || Array.prototype.slice.call(t));
@@ -538,7 +561,7 @@ function At(e) {
538
561
  }, r = e(t);
539
562
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
540
563
  }
541
- var Te = At(function(e) {
564
+ var Se = At(function(e) {
542
565
  return function(r) {
543
566
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
544
567
  ` + r.map(function(n, i) {
@@ -547,13 +570,13 @@ var Te = At(function(e) {
547
570
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
548
571
  };
549
572
  });
550
- function Me(e, t) {
573
+ function Le(e, t) {
551
574
  if (e) {
552
575
  var r = e.indexOf(t);
553
576
  0 <= r && e.splice(r, 1);
554
577
  }
555
578
  }
556
- var ge = function() {
579
+ var be = function() {
557
580
  function e(t) {
558
581
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
559
582
  }
@@ -565,52 +588,52 @@ var ge = function() {
565
588
  if (s)
566
589
  if (this._parentage = null, Array.isArray(s))
567
590
  try {
568
- for (var a = Ne(s), l = a.next(); !l.done; l = a.next()) {
569
- var h = l.value;
591
+ for (var a = Ce(s), u = a.next(); !u.done; u = a.next()) {
592
+ var h = u.value;
570
593
  h.remove(this);
571
594
  }
572
- } catch (v) {
573
- t = { error: v };
595
+ } catch (g) {
596
+ t = { error: g };
574
597
  } finally {
575
598
  try {
576
- l && !l.done && (r = a.return) && r.call(a);
599
+ u && !u.done && (r = a.return) && r.call(a);
577
600
  } finally {
578
601
  if (t) throw t.error;
579
602
  }
580
603
  }
581
604
  else
582
605
  s.remove(this);
583
- var u = this.initialTeardown;
584
- if (A(u))
606
+ var l = this.initialTeardown;
607
+ if (A(l))
585
608
  try {
586
- u();
587
- } catch (v) {
588
- o = v instanceof Te ? v.errors : [v];
609
+ l();
610
+ } catch (g) {
611
+ o = g instanceof Se ? g.errors : [g];
589
612
  }
590
613
  var c = this._finalizers;
591
614
  if (c) {
592
615
  this._finalizers = null;
593
616
  try {
594
- for (var f = Ne(c), d = f.next(); !d.done; d = f.next()) {
595
- var y = d.value;
617
+ for (var f = Ce(c), m = f.next(); !m.done; m = f.next()) {
618
+ var v = m.value;
596
619
  try {
597
- rt(y);
598
- } catch (v) {
599
- o = o != null ? o : [], v instanceof Te ? o = k(k([], Le(o)), Le(v.errors)) : o.push(v);
620
+ rt(v);
621
+ } catch (g) {
622
+ o = o != null ? o : [], g instanceof Se ? o = j(j([], Ne(o)), Ne(g.errors)) : o.push(g);
600
623
  }
601
624
  }
602
- } catch (v) {
603
- n = { error: v };
625
+ } catch (g) {
626
+ n = { error: g };
604
627
  } finally {
605
628
  try {
606
- d && !d.done && (i = f.return) && i.call(f);
629
+ m && !m.done && (i = f.return) && i.call(f);
607
630
  } finally {
608
631
  if (n) throw n.error;
609
632
  }
610
633
  }
611
634
  }
612
635
  if (o)
613
- throw new Te(o);
636
+ throw new Se(o);
614
637
  }
615
638
  }, e.prototype.add = function(t) {
616
639
  var r;
@@ -633,52 +656,52 @@ var ge = function() {
633
656
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
634
657
  }, e.prototype._removeParent = function(t) {
635
658
  var r = this._parentage;
636
- r === t ? this._parentage = null : Array.isArray(r) && Me(r, t);
659
+ r === t ? this._parentage = null : Array.isArray(r) && Le(r, t);
637
660
  }, e.prototype.remove = function(t) {
638
661
  var r = this._finalizers;
639
- r && Me(r, t), t instanceof e && t._removeParent(this);
662
+ r && Le(r, t), t instanceof e && t._removeParent(this);
640
663
  }, e.EMPTY = function() {
641
664
  var t = new e();
642
665
  return t.closed = !0, t;
643
666
  }(), e;
644
- }(), Ot = ge.EMPTY;
667
+ }(), Ot = be.EMPTY;
645
668
  function It(e) {
646
- return e instanceof ge || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
669
+ return e instanceof be || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
647
670
  }
648
671
  function rt(e) {
649
672
  A(e) ? e() : e.unsubscribe();
650
673
  }
651
- var $r = {
674
+ var Dr = {
652
675
  Promise: void 0
653
- }, Rr = {
676
+ }, Ur = {
654
677
  setTimeout: function(e, t) {
655
678
  for (var r = [], n = 2; n < arguments.length; n++)
656
679
  r[n - 2] = arguments[n];
657
- return setTimeout.apply(void 0, k([e, t], Le(r)));
680
+ return setTimeout.apply(void 0, j([e, t], Ne(r)));
658
681
  },
659
682
  clearTimeout: function(e) {
660
683
  return clearTimeout(e);
661
684
  },
662
685
  delegate: void 0
663
686
  };
664
- function Dr(e) {
665
- Rr.setTimeout(function() {
687
+ function Gr(e) {
688
+ Ur.setTimeout(function() {
666
689
  throw e;
667
690
  });
668
691
  }
669
692
  function nt() {
670
693
  }
671
- function ce(e) {
694
+ function le(e) {
672
695
  e();
673
696
  }
674
697
  var Ct = function(e) {
675
698
  O(t, e);
676
699
  function t(r) {
677
700
  var n = e.call(this) || this;
678
- return n.isStopped = !1, r ? (n.destination = r, It(r) && r.add(n)) : n.destination = Fr, n;
701
+ return n.isStopped = !1, r ? (n.destination = r, It(r) && r.add(n)) : n.destination = kr, n;
679
702
  }
680
703
  return t.create = function(r, n, i) {
681
- return new $e(r, n, i);
704
+ return new Me(r, n, i);
682
705
  }, t.prototype.next = function(r) {
683
706
  this.isStopped || this._next(r);
684
707
  }, t.prototype.error = function(r) {
@@ -702,7 +725,7 @@ var Ct = function(e) {
702
725
  this.unsubscribe();
703
726
  }
704
727
  }, t;
705
- }(ge), Ur = function() {
728
+ }(be), Fr = function() {
706
729
  function e(t) {
707
730
  this.partialObserver = t;
708
731
  }
@@ -712,7 +735,7 @@ var Ct = function(e) {
712
735
  try {
713
736
  r.next(t);
714
737
  } catch (n) {
715
- se(n);
738
+ oe(n);
716
739
  }
717
740
  }, e.prototype.error = function(t) {
718
741
  var r = this.partialObserver;
@@ -720,20 +743,20 @@ var Ct = function(e) {
720
743
  try {
721
744
  r.error(t);
722
745
  } catch (n) {
723
- se(n);
746
+ oe(n);
724
747
  }
725
748
  else
726
- se(t);
749
+ oe(t);
727
750
  }, e.prototype.complete = function() {
728
751
  var t = this.partialObserver;
729
752
  if (t.complete)
730
753
  try {
731
754
  t.complete();
732
755
  } catch (r) {
733
- se(r);
756
+ oe(r);
734
757
  }
735
758
  }, e;
736
- }(), $e = function(e) {
759
+ }(), Me = function(e) {
737
760
  O(t, e);
738
761
  function t(r, n, i) {
739
762
  var o = e.call(this) || this, s;
@@ -741,29 +764,29 @@ var Ct = function(e) {
741
764
  next: r != null ? r : void 0,
742
765
  error: n != null ? n : void 0,
743
766
  complete: i != null ? i : void 0
744
- } : s = r, o.destination = new Ur(s), o;
767
+ } : s = r, o.destination = new Fr(s), o;
745
768
  }
746
769
  return t;
747
770
  }(Ct);
748
- function se(e) {
749
- Dr(e);
771
+ function oe(e) {
772
+ Gr(e);
750
773
  }
751
- function Gr(e) {
774
+ function jr(e) {
752
775
  throw e;
753
776
  }
754
- var Fr = {
777
+ var kr = {
755
778
  closed: !0,
756
779
  next: nt,
757
- error: Gr,
780
+ error: jr,
758
781
  complete: nt
759
- }, jr = function() {
782
+ }, Vr = function() {
760
783
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
761
784
  }();
762
- function kr(e) {
785
+ function Xr(e) {
763
786
  return e;
764
787
  }
765
- function Vr(e) {
766
- return e.length === 0 ? kr : e.length === 1 ? e[0] : function(r) {
788
+ function zr(e) {
789
+ return e.length === 0 ? Xr : e.length === 1 ? e[0] : function(r) {
767
790
  return e.reduce(function(n, i) {
768
791
  return i(n);
769
792
  }, r);
@@ -777,10 +800,10 @@ var it = function() {
777
800
  var r = new e();
778
801
  return r.source = this, r.operator = t, r;
779
802
  }, e.prototype.subscribe = function(t, r, n) {
780
- var i = this, o = zr(t) ? t : new $e(t, r, n);
781
- return ce(function() {
782
- var s = i, a = s.operator, l = s.source;
783
- o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
803
+ var i = this, o = Zr(t) ? t : new Me(t, r, n);
804
+ return le(function() {
805
+ var s = i, a = s.operator, u = s.source;
806
+ o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
784
807
  }), o;
785
808
  }, e.prototype._trySubscribe = function(t) {
786
809
  try {
@@ -791,12 +814,12 @@ var it = function() {
791
814
  }, e.prototype.forEach = function(t, r) {
792
815
  var n = this;
793
816
  return r = ot(r), new r(function(i, o) {
794
- var s = new $e({
817
+ var s = new Me({
795
818
  next: function(a) {
796
819
  try {
797
820
  t(a);
798
- } catch (l) {
799
- o(l), s.unsubscribe();
821
+ } catch (u) {
822
+ o(u), s.unsubscribe();
800
823
  }
801
824
  },
802
825
  error: o,
@@ -807,12 +830,12 @@ var it = function() {
807
830
  }, e.prototype._subscribe = function(t) {
808
831
  var r;
809
832
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
810
- }, e.prototype[jr] = function() {
833
+ }, e.prototype[Vr] = function() {
811
834
  return this;
812
835
  }, e.prototype.pipe = function() {
813
836
  for (var t = [], r = 0; r < arguments.length; r++)
814
837
  t[r] = arguments[r];
815
- return Vr(t)(this);
838
+ return zr(t)(this);
816
839
  }, e.prototype.toPromise = function(t) {
817
840
  var r = this;
818
841
  return t = ot(t), new t(function(n, i) {
@@ -831,15 +854,15 @@ var it = function() {
831
854
  }();
832
855
  function ot(e) {
833
856
  var t;
834
- return (t = e != null ? e : $r.Promise) !== null && t !== void 0 ? t : Promise;
857
+ return (t = e != null ? e : Dr.Promise) !== null && t !== void 0 ? t : Promise;
835
858
  }
836
- function Xr(e) {
859
+ function Wr(e) {
837
860
  return e && A(e.next) && A(e.error) && A(e.complete);
838
861
  }
839
- function zr(e) {
840
- return e && e instanceof Ct || Xr(e) && It(e);
862
+ function Zr(e) {
863
+ return e && e instanceof Ct || Wr(e) && It(e);
841
864
  }
842
- var Wr = At(function(e) {
865
+ var Qr = At(function(e) {
843
866
  return function() {
844
867
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
845
868
  };
@@ -854,17 +877,17 @@ var Wr = At(function(e) {
854
877
  return n.operator = r, n;
855
878
  }, t.prototype._throwIfClosed = function() {
856
879
  if (this.closed)
857
- throw new Wr();
880
+ throw new Qr();
858
881
  }, t.prototype.next = function(r) {
859
882
  var n = this;
860
- ce(function() {
883
+ le(function() {
861
884
  var i, o;
862
885
  if (n._throwIfClosed(), !n.isStopped) {
863
886
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
864
887
  try {
865
- for (var s = Ne(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
866
- var l = a.value;
867
- l.next(r);
888
+ for (var s = Ce(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
889
+ var u = a.value;
890
+ u.next(r);
868
891
  }
869
892
  } catch (h) {
870
893
  i = { error: h };
@@ -879,7 +902,7 @@ var Wr = At(function(e) {
879
902
  });
880
903
  }, t.prototype.error = function(r) {
881
904
  var n = this;
882
- ce(function() {
905
+ le(function() {
883
906
  if (n._throwIfClosed(), !n.isStopped) {
884
907
  n.hasError = n.isStopped = !0, n.thrownError = r;
885
908
  for (var i = n.observers; i.length; )
@@ -888,7 +911,7 @@ var Wr = At(function(e) {
888
911
  });
889
912
  }, t.prototype.complete = function() {
890
913
  var r = this;
891
- ce(function() {
914
+ le(function() {
892
915
  if (r._throwIfClosed(), !r.isStopped) {
893
916
  r.isStopped = !0;
894
917
  for (var n = r.observers; n.length; )
@@ -910,8 +933,8 @@ var Wr = At(function(e) {
910
933
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
911
934
  }, t.prototype._innerSubscribe = function(r) {
912
935
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
913
- return o || s ? Ot : (this.currentObservers = null, a.push(r), new ge(function() {
914
- n.currentObservers = null, Me(a, r);
936
+ return o || s ? Ot : (this.currentObservers = null, a.push(r), new be(function() {
937
+ n.currentObservers = null, Le(a, r);
915
938
  }));
916
939
  }, t.prototype._checkFinalizedStatuses = function(r) {
917
940
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
@@ -946,7 +969,7 @@ var Wr = At(function(e) {
946
969
  return (Lt.delegate || Date).now();
947
970
  },
948
971
  delegate: void 0
949
- }, Zr = function(e) {
972
+ }, Jr = function(e) {
950
973
  O(t, e);
951
974
  function t(r, n, i) {
952
975
  r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lt);
@@ -954,132 +977,132 @@ var Wr = At(function(e) {
954
977
  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;
955
978
  }
956
979
  return t.prototype.next = function(r) {
957
- var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
958
- i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
980
+ var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
981
+ i || (o.push(r), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
959
982
  }, t.prototype._subscribe = function(r) {
960
983
  this._throwIfClosed(), this._trimBuffer();
961
- 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)
962
- r.next(a[l]);
984
+ 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)
985
+ r.next(a[u]);
963
986
  return this._checkFinalizedStatuses(r), n;
964
987
  }, t.prototype._trimBuffer = function() {
965
988
  var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
966
989
  if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
967
- for (var l = i.now(), h = 0, u = 1; u < o.length && o[u] <= l; u += 2)
968
- h = u;
990
+ for (var u = i.now(), h = 0, l = 1; l < o.length && o[l] <= u; l += 2)
991
+ h = l;
969
992
  h && o.splice(0, h + 1);
970
993
  }
971
994
  }, t;
972
995
  }(Nt);
973
- const at = [], ut = {}, Qr = (e, t = 0) => {
996
+ const at = [], ut = {}, Yr = (e, t = 0) => {
974
997
  if (at.indexOf(e) == -1) {
975
- const r = new Zr(t);
998
+ const r = new Jr(t);
976
999
  ut[e] = r, at.push(e);
977
1000
  }
978
1001
  return ut[e];
979
- }, G = [];
980
- function Jr(e, t) {
1002
+ }, U = [];
1003
+ function qr(e, t) {
981
1004
  return {
982
- subscribe: ve(e, t).subscribe
1005
+ subscribe: ge(e, t).subscribe
983
1006
  };
984
1007
  }
985
- function ve(e, t = H) {
1008
+ function ge(e, t = H) {
986
1009
  let r;
987
1010
  const n = /* @__PURE__ */ new Set();
988
1011
  function i(a) {
989
- if (Ht(e, a) && (e = a, r)) {
990
- const l = !G.length;
1012
+ if (wt(e, a) && (e = a, r)) {
1013
+ const u = !U.length;
991
1014
  for (const h of n)
992
- h[1](), G.push(h, e);
993
- if (l) {
994
- for (let h = 0; h < G.length; h += 2)
995
- G[h][0](G[h + 1]);
996
- G.length = 0;
1015
+ h[1](), U.push(h, e);
1016
+ if (u) {
1017
+ for (let h = 0; h < U.length; h += 2)
1018
+ U[h][0](U[h + 1]);
1019
+ U.length = 0;
997
1020
  }
998
1021
  }
999
1022
  }
1000
1023
  function o(a) {
1001
1024
  i(a(e));
1002
1025
  }
1003
- function s(a, l = H) {
1004
- const h = [a, l];
1026
+ function s(a, u = H) {
1027
+ const h = [a, u];
1005
1028
  return n.add(h), n.size === 1 && (r = t(i, o) || H), a(e), () => {
1006
1029
  n.delete(h), n.size === 0 && r && (r(), r = null);
1007
1030
  };
1008
1031
  }
1009
1032
  return { set: i, update: o, subscribe: s };
1010
1033
  }
1011
- function Z(e, t, r) {
1034
+ function W(e, t, r) {
1012
1035
  const n = !Array.isArray(e), i = n ? [e] : e;
1013
1036
  if (!i.every(Boolean))
1014
1037
  throw new Error("derived() expects stores as input, got a falsy value");
1015
1038
  const o = t.length < 2;
1016
- return Jr(r, (s, a) => {
1017
- let l = !1;
1039
+ return qr(r, (s, a) => {
1040
+ let u = !1;
1018
1041
  const h = [];
1019
- let u = 0, c = H;
1042
+ let l = 0, c = H;
1020
1043
  const f = () => {
1021
- if (u)
1044
+ if (l)
1022
1045
  return;
1023
1046
  c();
1024
- const y = t(n ? h[0] : h, s, a);
1025
- o ? s(y) : c = Xe(y) ? y : H;
1026
- }, d = i.map(
1027
- (y, v) => wt(
1028
- y,
1029
- (T) => {
1030
- h[v] = T, u &= ~(1 << v), l && f();
1047
+ const v = t(n ? h[0] : h, s, a);
1048
+ o ? s(v) : c = Ve(v) ? v : H;
1049
+ }, m = i.map(
1050
+ (v, g) => Ht(
1051
+ v,
1052
+ (w) => {
1053
+ h[g] = w, l &= ~(1 << g), u && f();
1031
1054
  },
1032
1055
  () => {
1033
- u |= 1 << v;
1056
+ l |= 1 << g;
1034
1057
  }
1035
1058
  )
1036
1059
  );
1037
- return l = !0, f(), function() {
1038
- ne(d), c(), l = !1;
1060
+ return u = !0, f(), function() {
1061
+ re(m), c(), u = !1;
1039
1062
  };
1040
1063
  });
1041
1064
  }
1042
- function Yr(e) {
1065
+ function Kr(e) {
1043
1066
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1044
1067
  }
1045
- var qr = function(t) {
1046
- return Kr(t) && !en(t);
1068
+ var en = function(t) {
1069
+ return tn(t) && !rn(t);
1047
1070
  };
1048
- function Kr(e) {
1071
+ function tn(e) {
1049
1072
  return !!e && typeof e == "object";
1050
1073
  }
1051
- function en(e) {
1074
+ function rn(e) {
1052
1075
  var t = Object.prototype.toString.call(e);
1053
- return t === "[object RegExp]" || t === "[object Date]" || nn(e);
1076
+ return t === "[object RegExp]" || t === "[object Date]" || sn(e);
1054
1077
  }
1055
- var tn = typeof Symbol == "function" && Symbol.for, rn = tn ? Symbol.for("react.element") : 60103;
1056
- function nn(e) {
1057
- return e.$$typeof === rn;
1078
+ var nn = typeof Symbol == "function" && Symbol.for, on = nn ? Symbol.for("react.element") : 60103;
1079
+ function sn(e) {
1080
+ return e.$$typeof === on;
1058
1081
  }
1059
- function on(e) {
1082
+ function an(e) {
1060
1083
  return Array.isArray(e) ? [] : {};
1061
1084
  }
1062
- function te(e, t) {
1063
- return t.clone !== !1 && t.isMergeableObject(e) ? V(on(e), e, t) : e;
1085
+ function ee(e, t) {
1086
+ return t.clone !== !1 && t.isMergeableObject(e) ? k(an(e), e, t) : e;
1064
1087
  }
1065
- function sn(e, t, r) {
1088
+ function un(e, t, r) {
1066
1089
  return e.concat(t).map(function(n) {
1067
- return te(n, r);
1090
+ return ee(n, r);
1068
1091
  });
1069
1092
  }
1070
- function an(e, t) {
1093
+ function hn(e, t) {
1071
1094
  if (!t.customMerge)
1072
- return V;
1095
+ return k;
1073
1096
  var r = t.customMerge(e);
1074
- return typeof r == "function" ? r : V;
1097
+ return typeof r == "function" ? r : k;
1075
1098
  }
1076
- function un(e) {
1099
+ function ln(e) {
1077
1100
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1078
1101
  return Object.propertyIsEnumerable.call(e, t);
1079
1102
  }) : [];
1080
1103
  }
1081
1104
  function ht(e) {
1082
- return Object.keys(e).concat(un(e));
1105
+ return Object.keys(e).concat(ln(e));
1083
1106
  }
1084
1107
  function Mt(e, t) {
1085
1108
  try {
@@ -1088,43 +1111,43 @@ function Mt(e, t) {
1088
1111
  return !1;
1089
1112
  }
1090
1113
  }
1091
- function hn(e, t) {
1114
+ function cn(e, t) {
1092
1115
  return Mt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1093
1116
  }
1094
- function ln(e, t, r) {
1117
+ function fn(e, t, r) {
1095
1118
  var n = {};
1096
1119
  return r.isMergeableObject(e) && ht(e).forEach(function(i) {
1097
- n[i] = te(e[i], r);
1120
+ n[i] = ee(e[i], r);
1098
1121
  }), ht(t).forEach(function(i) {
1099
- hn(e, i) || (Mt(e, i) && r.isMergeableObject(t[i]) ? n[i] = an(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
1122
+ cn(e, i) || (Mt(e, i) && r.isMergeableObject(t[i]) ? n[i] = hn(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
1100
1123
  }), n;
1101
1124
  }
1102
- function V(e, t, r) {
1103
- r = r || {}, r.arrayMerge = r.arrayMerge || sn, r.isMergeableObject = r.isMergeableObject || qr, r.cloneUnlessOtherwiseSpecified = te;
1125
+ function k(e, t, r) {
1126
+ r = r || {}, r.arrayMerge = r.arrayMerge || un, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified = ee;
1104
1127
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1105
- return o ? n ? r.arrayMerge(e, t, r) : ln(e, t, r) : te(t, r);
1128
+ return o ? n ? r.arrayMerge(e, t, r) : fn(e, t, r) : ee(t, r);
1106
1129
  }
1107
- V.all = function(t, r) {
1130
+ k.all = function(t, r) {
1108
1131
  if (!Array.isArray(t))
1109
1132
  throw new Error("first argument should be an array");
1110
1133
  return t.reduce(function(n, i) {
1111
- return V(n, i, r);
1134
+ return k(n, i, r);
1112
1135
  }, {});
1113
1136
  };
1114
- var cn = V, fn = cn;
1115
- const pn = /* @__PURE__ */ Yr(fn);
1116
- function He(e, t) {
1117
- var r = t && t.cache ? t.cache : xn, n = t && t.serializer ? t.serializer : vn, i = t && t.strategy ? t.strategy : bn;
1137
+ var pn = k, mn = pn;
1138
+ const dn = /* @__PURE__ */ Kr(mn);
1139
+ function Te(e, t) {
1140
+ var r = t && t.cache ? t.cache : _n, n = t && t.serializer ? t.serializer : xn, i = t && t.strategy ? t.strategy : vn;
1118
1141
  return i(e, {
1119
1142
  cache: r,
1120
1143
  serializer: n
1121
1144
  });
1122
1145
  }
1123
- function mn(e) {
1146
+ function bn(e) {
1124
1147
  return e == null || typeof e == "number" || typeof e == "boolean";
1125
1148
  }
1126
- function dn(e, t, r, n) {
1127
- var i = mn(n) ? n : r(n), o = t.get(i);
1149
+ function gn(e, t, r, n) {
1150
+ var i = bn(n) ? n : r(n), o = t.get(i);
1128
1151
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1129
1152
  }
1130
1153
  function $t(e, t, r) {
@@ -1134,16 +1157,16 @@ function $t(e, t, r) {
1134
1157
  function Rt(e, t, r, n, i) {
1135
1158
  return r.bind(t, e, n, i);
1136
1159
  }
1137
- function bn(e, t) {
1138
- var r = e.length === 1 ? dn : $t;
1160
+ function vn(e, t) {
1161
+ var r = e.length === 1 ? gn : $t;
1139
1162
  return Rt(e, this, r, t.cache.create(), t.serializer);
1140
1163
  }
1141
- function gn(e, t) {
1164
+ function yn(e, t) {
1142
1165
  return Rt(e, this, $t, t.cache.create(), t.serializer);
1143
1166
  }
1144
- var vn = function() {
1167
+ var xn = function() {
1145
1168
  return JSON.stringify(arguments);
1146
- }, yn = (
1169
+ }, En = (
1147
1170
  /** @class */
1148
1171
  function() {
1149
1172
  function e() {
@@ -1155,12 +1178,12 @@ var vn = function() {
1155
1178
  this.cache[t] = r;
1156
1179
  }, e;
1157
1180
  }()
1158
- ), xn = {
1181
+ ), _n = {
1159
1182
  create: function() {
1160
- return new yn();
1183
+ return new En();
1161
1184
  }
1162
1185
  }, we = {
1163
- variadic: gn
1186
+ variadic: yn
1164
1187
  }, p;
1165
1188
  (function(e) {
1166
1189
  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";
@@ -1169,14 +1192,14 @@ var x;
1169
1192
  (function(e) {
1170
1193
  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";
1171
1194
  })(x || (x = {}));
1172
- var X;
1195
+ var V;
1173
1196
  (function(e) {
1174
1197
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1175
- })(X || (X = {}));
1198
+ })(V || (V = {}));
1176
1199
  function lt(e) {
1177
1200
  return e.type === x.literal;
1178
1201
  }
1179
- function En(e) {
1202
+ function Sn(e) {
1180
1203
  return e.type === x.argument;
1181
1204
  }
1182
1205
  function Dt(e) {
@@ -1194,22 +1217,22 @@ function Ft(e) {
1194
1217
  function jt(e) {
1195
1218
  return e.type === x.plural;
1196
1219
  }
1197
- function _n(e) {
1220
+ function Tn(e) {
1198
1221
  return e.type === x.pound;
1199
1222
  }
1200
1223
  function kt(e) {
1201
1224
  return e.type === x.tag;
1202
1225
  }
1203
1226
  function Vt(e) {
1204
- return !!(e && typeof e == "object" && e.type === X.number);
1227
+ return !!(e && typeof e == "object" && e.type === V.number);
1205
1228
  }
1206
- function Re(e) {
1207
- return !!(e && typeof e == "object" && e.type === X.dateTime);
1229
+ function $e(e) {
1230
+ return !!(e && typeof e == "object" && e.type === V.dateTime);
1208
1231
  }
1209
- var Xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Sn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
1210
- function Tn(e) {
1232
+ var Xt = /[ \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;
1233
+ function Hn(e) {
1211
1234
  var t = {};
1212
- return e.replace(Sn, function(r) {
1235
+ return e.replace(wn, function(r) {
1213
1236
  var n = r.length;
1214
1237
  switch (r[0]) {
1215
1238
  case "G":
@@ -1298,29 +1321,29 @@ function Tn(e) {
1298
1321
  return "";
1299
1322
  }), t;
1300
1323
  }
1301
- var Hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1302
- function wn(e) {
1324
+ var Pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1325
+ function Bn(e) {
1303
1326
  if (e.length === 0)
1304
1327
  throw new Error("Number skeleton cannot be empty");
1305
- for (var t = e.split(Hn).filter(function(f) {
1328
+ for (var t = e.split(Pn).filter(function(f) {
1306
1329
  return f.length > 0;
1307
1330
  }), r = [], n = 0, i = t; n < i.length; n++) {
1308
1331
  var o = i[n], s = o.split("/");
1309
1332
  if (s.length === 0)
1310
1333
  throw new Error("Invalid number skeleton");
1311
- for (var a = s[0], l = s.slice(1), h = 0, u = l; h < u.length; h++) {
1312
- var c = u[h];
1334
+ for (var a = s[0], u = s.slice(1), h = 0, l = u; h < l.length; h++) {
1335
+ var c = l[h];
1313
1336
  if (c.length === 0)
1314
1337
  throw new Error("Invalid number skeleton");
1315
1338
  }
1316
- r.push({ stem: a, options: l });
1339
+ r.push({ stem: a, options: u });
1317
1340
  }
1318
1341
  return r;
1319
1342
  }
1320
- function Pn(e) {
1343
+ function An(e) {
1321
1344
  return e.replace(/^(.*?)-/, "");
1322
1345
  }
1323
- var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, Bn = /(\*)(0+)|(#+)(0+)|(0+)/g, Wt = /^(0+)$/;
1346
+ var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, On = /(\*)(0+)|(#+)(0+)|(0+)/g, Wt = /^(0+)$/;
1324
1347
  function ft(e) {
1325
1348
  var t = {};
1326
1349
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zt, function(r, n, i) {
@@ -1367,7 +1390,7 @@ function Zt(e) {
1367
1390
  };
1368
1391
  }
1369
1392
  }
1370
- function An(e) {
1393
+ function In(e) {
1371
1394
  var t;
1372
1395
  if (e[0] === "E" && e[1] === "E" ? (t = {
1373
1396
  notation: "engineering"
@@ -1385,7 +1408,7 @@ function pt(e) {
1385
1408
  var t = {}, r = Zt(e);
1386
1409
  return r || t;
1387
1410
  }
1388
- function On(e) {
1411
+ function Cn(e) {
1389
1412
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1390
1413
  var i = n[r];
1391
1414
  switch (i.stem) {
@@ -1409,7 +1432,7 @@ function On(e) {
1409
1432
  continue;
1410
1433
  case "measure-unit":
1411
1434
  case "unit":
1412
- t.style = "unit", t.unit = Pn(i.options[0]);
1435
+ t.style = "unit", t.unit = An(i.options[0]);
1413
1436
  continue;
1414
1437
  case "compact-short":
1415
1438
  case "K":
@@ -1420,13 +1443,13 @@ function On(e) {
1420
1443
  t.notation = "compact", t.compactDisplay = "long";
1421
1444
  continue;
1422
1445
  case "scientific":
1423
- t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(l, h) {
1424
- return b(b({}, l), pt(h));
1446
+ t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
1447
+ return b(b({}, u), pt(h));
1425
1448
  }, {}));
1426
1449
  continue;
1427
1450
  case "engineering":
1428
- t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(l, h) {
1429
- return b(b({}, l), pt(h));
1451
+ t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
1452
+ return b(b({}, u), pt(h));
1430
1453
  }, {}));
1431
1454
  continue;
1432
1455
  case "notation-simple":
@@ -1471,13 +1494,13 @@ function On(e) {
1471
1494
  case "integer-width":
1472
1495
  if (i.options.length > 1)
1473
1496
  throw new RangeError("integer-width stems only accept a single optional option");
1474
- i.options[0].replace(Bn, function(l, h, u, c, f, d) {
1497
+ i.options[0].replace(On, function(u, h, l, c, f, m) {
1475
1498
  if (h)
1476
- t.minimumIntegerDigits = u.length;
1499
+ t.minimumIntegerDigits = l.length;
1477
1500
  else {
1478
1501
  if (c && f)
1479
1502
  throw new Error("We currently do not support maximum integer digits");
1480
- if (d)
1503
+ if (m)
1481
1504
  throw new Error("We currently do not support exact integer digits");
1482
1505
  }
1483
1506
  return "";
@@ -1491,8 +1514,8 @@ function On(e) {
1491
1514
  if (ct.test(i.stem)) {
1492
1515
  if (i.options.length > 1)
1493
1516
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1494
- i.stem.replace(ct, function(l, h, u, c, f, d) {
1495
- return u === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
1517
+ i.stem.replace(ct, function(u, h, l, c, f, m) {
1518
+ return l === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
1496
1519
  });
1497
1520
  var o = i.options[0];
1498
1521
  o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t), ft(o)));
@@ -1504,12 +1527,12 @@ function On(e) {
1504
1527
  }
1505
1528
  var s = Zt(i.stem);
1506
1529
  s && (t = b(b({}, t), s));
1507
- var a = An(i.stem);
1530
+ var a = In(i.stem);
1508
1531
  a && (t = b(b({}, t), a));
1509
1532
  }
1510
1533
  return t;
1511
1534
  }
1512
- var ae = {
1535
+ var se = {
1513
1536
  "001": [
1514
1537
  "H",
1515
1538
  "h"
@@ -2924,22 +2947,22 @@ var ae = {
2924
2947
  "h"
2925
2948
  ]
2926
2949
  };
2927
- function In(e, t) {
2950
+ function Nn(e, t) {
2928
2951
  for (var r = "", n = 0; n < e.length; n++) {
2929
2952
  var i = e.charAt(n);
2930
2953
  if (i === "j") {
2931
2954
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2932
2955
  o++, n++;
2933
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", h = Cn(t);
2956
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = Ln(t);
2934
2957
  for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
2935
- r += l;
2958
+ r += u;
2936
2959
  for (; s-- > 0; )
2937
2960
  r = h + r;
2938
2961
  } else i === "J" ? r += "H" : r += i;
2939
2962
  }
2940
2963
  return r;
2941
2964
  }
2942
- function Cn(e) {
2965
+ function Ln(e) {
2943
2966
  var t = e.hourCycle;
2944
2967
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2945
2968
  e.hourCycles && // @ts-ignore
@@ -2958,23 +2981,23 @@ function Cn(e) {
2958
2981
  }
2959
2982
  var r = e.language, n;
2960
2983
  r !== "root" && (n = e.maximize().region);
2961
- var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
2984
+ var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
2962
2985
  return i[0];
2963
2986
  }
2964
- var Pe, Nn = new RegExp("^".concat(Xt.source, "*")), Ln = new RegExp("".concat(Xt.source, "*$"));
2965
- function m(e, t) {
2987
+ var He, Mn = new RegExp("^".concat(Xt.source, "*")), $n = new RegExp("".concat(Xt.source, "*$"));
2988
+ function d(e, t) {
2966
2989
  return { start: e, end: t };
2967
2990
  }
2968
- var Mn = !!String.prototype.startsWith && "_a".startsWith("a", 1), $n = !!String.fromCodePoint, Rn = !!Object.fromEntries, Dn = !!String.prototype.codePointAt, Un = !!String.prototype.trimStart, Gn = !!String.prototype.trimEnd, Fn = !!Number.isSafeInteger, jn = Fn ? Number.isSafeInteger : function(e) {
2991
+ var Rn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dn = !!String.fromCodePoint, Un = !!Object.fromEntries, Gn = !!String.prototype.codePointAt, Fn = !!String.prototype.trimStart, jn = !!String.prototype.trimEnd, kn = !!Number.isSafeInteger, Vn = kn ? Number.isSafeInteger : function(e) {
2969
2992
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2970
- }, De = !0;
2993
+ }, Re = !0;
2971
2994
  try {
2972
- var kn = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2973
- De = ((Pe = kn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
2995
+ var Xn = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2996
+ Re = ((He = Xn.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
2974
2997
  } catch (e) {
2975
- De = !1;
2998
+ Re = !1;
2976
2999
  }
2977
- var mt = Mn ? (
3000
+ var mt = Rn ? (
2978
3001
  // Native
2979
3002
  function(t, r, n) {
2980
3003
  return t.startsWith(r, n);
@@ -2984,7 +3007,7 @@ var mt = Mn ? (
2984
3007
  function(t, r, n) {
2985
3008
  return t.slice(n, n + r.length) === r;
2986
3009
  }
2987
- ), Ue = $n ? String.fromCodePoint : (
3010
+ ), De = Dn ? String.fromCodePoint : (
2988
3011
  // IE11
2989
3012
  function() {
2990
3013
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2998,7 +3021,7 @@ var mt = Mn ? (
2998
3021
  }
2999
3022
  ), dt = (
3000
3023
  // native
3001
- Rn ? Object.fromEntries : (
3024
+ Un ? Object.fromEntries : (
3002
3025
  // Ponyfill
3003
3026
  function(t) {
3004
3027
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3008,7 +3031,7 @@ var mt = Mn ? (
3008
3031
  return r;
3009
3032
  }
3010
3033
  )
3011
- ), Qt = Dn ? (
3034
+ ), Qt = Gn ? (
3012
3035
  // Native
3013
3036
  function(t, r) {
3014
3037
  return t.codePointAt(r);
@@ -3022,7 +3045,7 @@ var mt = Mn ? (
3022
3045
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3023
3046
  }
3024
3047
  }
3025
- ), Vn = Un ? (
3048
+ ), zn = Fn ? (
3026
3049
  // Native
3027
3050
  function(t) {
3028
3051
  return t.trimStart();
@@ -3030,9 +3053,9 @@ var mt = Mn ? (
3030
3053
  ) : (
3031
3054
  // Ponyfill
3032
3055
  function(t) {
3033
- return t.replace(Nn, "");
3056
+ return t.replace(Mn, "");
3034
3057
  }
3035
- ), Xn = Gn ? (
3058
+ ), Wn = jn ? (
3036
3059
  // Native
3037
3060
  function(t) {
3038
3061
  return t.trimEnd();
@@ -3040,32 +3063,32 @@ var mt = Mn ? (
3040
3063
  ) : (
3041
3064
  // Ponyfill
3042
3065
  function(t) {
3043
- return t.replace(Ln, "");
3066
+ return t.replace($n, "");
3044
3067
  }
3045
3068
  );
3046
3069
  function Jt(e, t) {
3047
3070
  return new RegExp(e, t);
3048
3071
  }
3049
- var Ge;
3050
- if (De) {
3072
+ var Ue;
3073
+ if (Re) {
3051
3074
  var bt = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3052
- Ge = function(t, r) {
3075
+ Ue = function(t, r) {
3053
3076
  var n;
3054
3077
  bt.lastIndex = r;
3055
3078
  var i = bt.exec(t);
3056
3079
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3057
3080
  };
3058
3081
  } else
3059
- Ge = function(t, r) {
3082
+ Ue = function(t, r) {
3060
3083
  for (var n = []; ; ) {
3061
3084
  var i = Qt(t, r);
3062
- if (i === void 0 || Yt(i) || Qn(i))
3085
+ if (i === void 0 || Yt(i) || Yn(i))
3063
3086
  break;
3064
3087
  n.push(i), r += i >= 65536 ? 2 : 1;
3065
3088
  }
3066
- return Ue.apply(void 0, n);
3089
+ return De.apply(void 0, n);
3067
3090
  };
3068
- var zn = (
3091
+ var Zn = (
3069
3092
  /** @class */
3070
3093
  function() {
3071
3094
  function e(t, r) {
@@ -3090,13 +3113,13 @@ var zn = (
3090
3113
  var a = this.clonePosition();
3091
3114
  this.bump(), i.push({
3092
3115
  type: x.pound,
3093
- location: m(a, this.clonePosition())
3116
+ location: d(a, this.clonePosition())
3094
3117
  });
3095
3118
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3096
3119
  if (n)
3097
3120
  break;
3098
- return this.error(p.UNMATCHED_CLOSING_TAG, m(this.clonePosition(), this.clonePosition()));
3099
- } else if (o === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
3121
+ return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
3122
+ } else if (o === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
3100
3123
  var s = this.parseTag(t, r);
3101
3124
  if (s.err)
3102
3125
  return s;
@@ -3119,7 +3142,7 @@ var zn = (
3119
3142
  val: {
3120
3143
  type: x.literal,
3121
3144
  value: "<".concat(i, "/>"),
3122
- location: m(n, this.clonePosition())
3145
+ location: d(n, this.clonePosition())
3123
3146
  },
3124
3147
  err: null
3125
3148
  };
@@ -3129,25 +3152,25 @@ var zn = (
3129
3152
  return o;
3130
3153
  var s = o.val, a = this.clonePosition();
3131
3154
  if (this.bumpIf("</")) {
3132
- if (this.isEOF() || !Fe(this.char()))
3133
- return this.error(p.INVALID_TAG, m(a, this.clonePosition()));
3134
- var l = this.clonePosition(), h = this.parseTagName();
3135
- return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG, m(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3155
+ if (this.isEOF() || !Ge(this.char()))
3156
+ return this.error(p.INVALID_TAG, d(a, this.clonePosition()));
3157
+ var u = this.clonePosition(), h = this.parseTagName();
3158
+ return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG, d(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3136
3159
  val: {
3137
3160
  type: x.tag,
3138
3161
  value: i,
3139
3162
  children: s,
3140
- location: m(n, this.clonePosition())
3163
+ location: d(n, this.clonePosition())
3141
3164
  },
3142
3165
  err: null
3143
- } : this.error(p.INVALID_TAG, m(a, this.clonePosition())));
3166
+ } : this.error(p.INVALID_TAG, d(a, this.clonePosition())));
3144
3167
  } else
3145
- return this.error(p.UNCLOSED_TAG, m(n, this.clonePosition()));
3168
+ return this.error(p.UNCLOSED_TAG, d(n, this.clonePosition()));
3146
3169
  } else
3147
- return this.error(p.INVALID_TAG, m(n, this.clonePosition()));
3170
+ return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
3148
3171
  }, e.prototype.parseTagName = function() {
3149
3172
  var t = this.offset();
3150
- for (this.bump(); !this.isEOF() && Zn(this.char()); )
3173
+ for (this.bump(); !this.isEOF() && Jn(this.char()); )
3151
3174
  this.bump();
3152
3175
  return this.message.slice(t, this.offset());
3153
3176
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3169,14 +3192,14 @@ var zn = (
3169
3192
  }
3170
3193
  break;
3171
3194
  }
3172
- var l = m(n, this.clonePosition());
3195
+ var u = d(n, this.clonePosition());
3173
3196
  return {
3174
- val: { type: x.literal, value: i, location: l },
3197
+ val: { type: x.literal, value: i, location: u },
3175
3198
  err: null
3176
3199
  };
3177
3200
  }, e.prototype.tryParseLeftAngleBracket = function() {
3178
3201
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3179
- !Wn(this.peek() || 0)) ? (this.bump(), "<") : null;
3202
+ !Qn(this.peek() || 0)) ? (this.bump(), "<") : null;
3180
3203
  }, e.prototype.tryParseQuote = function(t) {
3181
3204
  if (this.isEOF() || this.char() !== 39)
3182
3205
  return null;
@@ -3210,23 +3233,23 @@ var zn = (
3210
3233
  r.push(n);
3211
3234
  this.bump();
3212
3235
  }
3213
- return Ue.apply(void 0, r);
3236
+ return De.apply(void 0, r);
3214
3237
  }, e.prototype.tryParseUnquoted = function(t, r) {
3215
3238
  if (this.isEOF())
3216
3239
  return null;
3217
3240
  var n = this.char();
3218
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
3241
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
3219
3242
  }, e.prototype.parseArgument = function(t, r) {
3220
3243
  var n = this.clonePosition();
3221
3244
  if (this.bump(), this.bumpSpace(), this.isEOF())
3222
- return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, m(n, this.clonePosition()));
3245
+ return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
3223
3246
  if (this.char() === 125)
3224
- return this.bump(), this.error(p.EMPTY_ARGUMENT, m(n, this.clonePosition()));
3247
+ return this.bump(), this.error(p.EMPTY_ARGUMENT, d(n, this.clonePosition()));
3225
3248
  var i = this.parseIdentifierIfPossible().value;
3226
3249
  if (!i)
3227
- return this.error(p.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
3250
+ return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
3228
3251
  if (this.bumpSpace(), this.isEOF())
3229
- return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, m(n, this.clonePosition()));
3252
+ return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
3230
3253
  switch (this.char()) {
3231
3254
  case 125:
3232
3255
  return this.bump(), {
@@ -3234,25 +3257,25 @@ var zn = (
3234
3257
  type: x.argument,
3235
3258
  // value does not include the opening and closing braces.
3236
3259
  value: i,
3237
- location: m(n, this.clonePosition())
3260
+ location: d(n, this.clonePosition())
3238
3261
  },
3239
3262
  err: null
3240
3263
  };
3241
3264
  case 44:
3242
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, m(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3265
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3243
3266
  default:
3244
- return this.error(p.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
3267
+ return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
3245
3268
  }
3246
3269
  }, e.prototype.parseIdentifierIfPossible = function() {
3247
- var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
3270
+ var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
3248
3271
  this.bumpTo(i);
3249
- var o = this.clonePosition(), s = m(t, o);
3272
+ var o = this.clonePosition(), s = d(t, o);
3250
3273
  return { value: n, location: s };
3251
3274
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3252
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3275
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
3253
3276
  switch (a) {
3254
3277
  case "":
3255
- return this.error(p.EXPECT_ARGUMENT_TYPE, m(s, l));
3278
+ return this.error(p.EXPECT_ARGUMENT_TYPE, d(s, u));
3256
3279
  case "number":
3257
3280
  case "date":
3258
3281
  case "time": {
@@ -3260,40 +3283,40 @@ var zn = (
3260
3283
  var h = null;
3261
3284
  if (this.bumpIf(",")) {
3262
3285
  this.bumpSpace();
3263
- var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3286
+ var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3264
3287
  if (c.err)
3265
3288
  return c;
3266
- var f = Xn(c.val);
3289
+ var f = Wn(c.val);
3267
3290
  if (f.length === 0)
3268
- return this.error(p.EXPECT_ARGUMENT_STYLE, m(this.clonePosition(), this.clonePosition()));
3269
- var d = m(u, this.clonePosition());
3270
- h = { style: f, styleLocation: d };
3291
+ return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
3292
+ var m = d(l, this.clonePosition());
3293
+ h = { style: f, styleLocation: m };
3271
3294
  }
3272
- var y = this.tryParseArgumentClose(i);
3273
- if (y.err)
3274
- return y;
3275
- var v = m(i, this.clonePosition());
3295
+ var v = this.tryParseArgumentClose(i);
3296
+ if (v.err)
3297
+ return v;
3298
+ var g = d(i, this.clonePosition());
3276
3299
  if (h && mt(h == null ? void 0 : h.style, "::", 0)) {
3277
- var T = Vn(h.style.slice(2));
3300
+ var w = zn(h.style.slice(2));
3278
3301
  if (a === "number") {
3279
- var c = this.parseNumberSkeletonFromString(T, h.styleLocation);
3302
+ var c = this.parseNumberSkeletonFromString(w, h.styleLocation);
3280
3303
  return c.err ? c : {
3281
- val: { type: x.number, value: n, location: v, style: c.val },
3304
+ val: { type: x.number, value: n, location: g, style: c.val },
3282
3305
  err: null
3283
3306
  };
3284
3307
  } else {
3285
- if (T.length === 0)
3286
- return this.error(p.EXPECT_DATE_TIME_SKELETON, v);
3287
- var L = T;
3288
- this.locale && (L = In(T, this.locale));
3308
+ if (w.length === 0)
3309
+ return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
3310
+ var N = w;
3311
+ this.locale && (N = Nn(w, this.locale));
3289
3312
  var f = {
3290
- type: X.dateTime,
3291
- pattern: L,
3313
+ type: V.dateTime,
3314
+ pattern: N,
3292
3315
  location: h.styleLocation,
3293
- parsedOptions: this.shouldParseSkeletons ? Tn(L) : {}
3316
+ parsedOptions: this.shouldParseSkeletons ? Hn(N) : {}
3294
3317
  }, I = a === "date" ? x.date : x.time;
3295
3318
  return {
3296
- val: { type: I, value: n, location: v, style: f },
3319
+ val: { type: I, value: n, location: g, style: f },
3297
3320
  err: null
3298
3321
  };
3299
3322
  }
@@ -3302,7 +3325,7 @@ var zn = (
3302
3325
  val: {
3303
3326
  type: a === "number" ? x.number : a === "date" ? x.date : x.time,
3304
3327
  value: n,
3305
- location: v,
3328
+ location: g,
3306
3329
  style: (o = h == null ? void 0 : h.style) !== null && o !== void 0 ? o : null
3307
3330
  },
3308
3331
  err: null
@@ -3311,52 +3334,52 @@ var zn = (
3311
3334
  case "plural":
3312
3335
  case "selectordinal":
3313
3336
  case "select": {
3314
- var E = this.clonePosition();
3337
+ var _ = this.clonePosition();
3315
3338
  if (this.bumpSpace(), !this.bumpIf(","))
3316
- return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, m(E, b({}, E)));
3339
+ return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(_, b({}, _)));
3317
3340
  this.bumpSpace();
3318
- var w = this.parseIdentifierIfPossible(), P = 0;
3319
- if (a !== "select" && w.value === "offset") {
3341
+ var P = this.parseIdentifierIfPossible(), S = 0;
3342
+ if (a !== "select" && P.value === "offset") {
3320
3343
  if (!this.bumpIf(":"))
3321
- return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m(this.clonePosition(), this.clonePosition()));
3344
+ return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
3322
3345
  this.bumpSpace();
3323
3346
  var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3324
3347
  if (c.err)
3325
3348
  return c;
3326
- this.bumpSpace(), w = this.parseIdentifierIfPossible(), P = c.val;
3349
+ this.bumpSpace(), P = this.parseIdentifierIfPossible(), S = c.val;
3327
3350
  }
3328
- var R = this.tryParsePluralOrSelectOptions(t, a, r, w);
3329
- if (R.err)
3330
- return R;
3331
- var y = this.tryParseArgumentClose(i);
3332
- if (y.err)
3333
- return y;
3334
- var oe = m(i, this.clonePosition());
3351
+ var $ = this.tryParsePluralOrSelectOptions(t, a, r, P);
3352
+ if ($.err)
3353
+ return $;
3354
+ var v = this.tryParseArgumentClose(i);
3355
+ if (v.err)
3356
+ return v;
3357
+ var ie = d(i, this.clonePosition());
3335
3358
  return a === "select" ? {
3336
3359
  val: {
3337
3360
  type: x.select,
3338
3361
  value: n,
3339
- options: dt(R.val),
3340
- location: oe
3362
+ options: dt($.val),
3363
+ location: ie
3341
3364
  },
3342
3365
  err: null
3343
3366
  } : {
3344
3367
  val: {
3345
3368
  type: x.plural,
3346
3369
  value: n,
3347
- options: dt(R.val),
3348
- offset: P,
3370
+ options: dt($.val),
3371
+ offset: S,
3349
3372
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3350
- location: oe
3373
+ location: ie
3351
3374
  },
3352
3375
  err: null
3353
3376
  };
3354
3377
  }
3355
3378
  default:
3356
- return this.error(p.INVALID_ARGUMENT_TYPE, m(s, l));
3379
+ return this.error(p.INVALID_ARGUMENT_TYPE, d(s, u));
3357
3380
  }
3358
3381
  }, e.prototype.tryParseArgumentClose = function(t) {
3359
- return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, m(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3382
+ return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3360
3383
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3361
3384
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3362
3385
  var n = this.char();
@@ -3365,7 +3388,7 @@ var zn = (
3365
3388
  this.bump();
3366
3389
  var i = this.clonePosition();
3367
3390
  if (!this.bumpUntil("'"))
3368
- return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, m(i, this.clonePosition()));
3391
+ return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, d(i, this.clonePosition()));
3369
3392
  this.bump();
3370
3393
  break;
3371
3394
  }
@@ -3395,52 +3418,52 @@ var zn = (
3395
3418
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3396
3419
  var n = [];
3397
3420
  try {
3398
- n = wn(t);
3421
+ n = Bn(t);
3399
3422
  } catch (i) {
3400
3423
  return this.error(p.INVALID_NUMBER_SKELETON, r);
3401
3424
  }
3402
3425
  return {
3403
3426
  val: {
3404
- type: X.number,
3427
+ type: V.number,
3405
3428
  tokens: n,
3406
3429
  location: r,
3407
- parsedOptions: this.shouldParseSkeletons ? On(n) : {}
3430
+ parsedOptions: this.shouldParseSkeletons ? Cn(n) : {}
3408
3431
  },
3409
3432
  err: null
3410
3433
  };
3411
3434
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3412
- for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), h = i.value, u = i.location; ; ) {
3435
+ for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), h = i.value, l = i.location; ; ) {
3413
3436
  if (h.length === 0) {
3414
3437
  var c = this.clonePosition();
3415
3438
  if (r !== "select" && this.bumpIf("=")) {
3416
3439
  var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
3417
3440
  if (f.err)
3418
3441
  return f;
3419
- u = m(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
3442
+ l = d(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
3420
3443
  } else
3421
3444
  break;
3422
3445
  }
3423
- if (l.has(h))
3424
- return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
3446
+ if (u.has(h))
3447
+ return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3425
3448
  h === "other" && (s = !0), this.bumpSpace();
3426
- var d = this.clonePosition();
3449
+ var m = this.clonePosition();
3427
3450
  if (!this.bumpIf("{"))
3428
- return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, m(this.clonePosition(), this.clonePosition()));
3429
- var y = this.parseMessage(t + 1, r, n);
3430
- if (y.err)
3431
- return y;
3432
- var v = this.tryParseArgumentClose(d);
3451
+ return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
3452
+ var v = this.parseMessage(t + 1, r, n);
3433
3453
  if (v.err)
3434
3454
  return v;
3455
+ var g = this.tryParseArgumentClose(m);
3456
+ if (g.err)
3457
+ return g;
3435
3458
  a.push([
3436
3459
  h,
3437
3460
  {
3438
- value: y.val,
3439
- location: m(d, this.clonePosition())
3461
+ value: v.val,
3462
+ location: d(m, this.clonePosition())
3440
3463
  }
3441
- ]), l.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, u = o.location;
3464
+ ]), u.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, l = o.location;
3442
3465
  }
3443
- return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, m(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, m(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3466
+ return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3444
3467
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3445
3468
  var n = 1, i = this.clonePosition();
3446
3469
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3451,8 +3474,8 @@ var zn = (
3451
3474
  else
3452
3475
  break;
3453
3476
  }
3454
- var l = m(i, this.clonePosition());
3455
- return o ? (s *= n, jn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3477
+ var u = d(i, this.clonePosition());
3478
+ return o ? (s *= n, Vn(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
3456
3479
  }, e.prototype.offset = function() {
3457
3480
  return this.position.offset;
3458
3481
  }, e.prototype.isEOF = function() {
@@ -3518,43 +3541,43 @@ var zn = (
3518
3541
  }, e;
3519
3542
  }()
3520
3543
  );
3521
- function Fe(e) {
3544
+ function Ge(e) {
3522
3545
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3523
3546
  }
3524
- function Wn(e) {
3525
- return Fe(e) || e === 47;
3547
+ function Qn(e) {
3548
+ return Ge(e) || e === 47;
3526
3549
  }
3527
- function Zn(e) {
3550
+ function Jn(e) {
3528
3551
  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;
3529
3552
  }
3530
3553
  function Yt(e) {
3531
3554
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3532
3555
  }
3533
- function Qn(e) {
3556
+ function Yn(e) {
3534
3557
  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;
3535
3558
  }
3536
- function je(e) {
3559
+ function Fe(e) {
3537
3560
  e.forEach(function(t) {
3538
3561
  if (delete t.location, Ft(t) || jt(t))
3539
3562
  for (var r in t.options)
3540
- delete t.options[r].location, je(t.options[r].value);
3541
- else Dt(t) && Vt(t.style) || (Ut(t) || Gt(t)) && Re(t.style) ? delete t.style.location : kt(t) && je(t.children);
3563
+ delete t.options[r].location, Fe(t.options[r].value);
3564
+ else Dt(t) && Vt(t.style) || (Ut(t) || Gt(t)) && $e(t.style) ? delete t.style.location : kt(t) && Fe(t.children);
3542
3565
  });
3543
3566
  }
3544
- function Jn(e, t) {
3567
+ function qn(e, t) {
3545
3568
  t === void 0 && (t = {}), t = b({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3546
- var r = new zn(e, t).parse();
3569
+ var r = new Zn(e, t).parse();
3547
3570
  if (r.err) {
3548
3571
  var n = SyntaxError(p[r.err.kind]);
3549
3572
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3550
3573
  }
3551
- return t != null && t.captureLocation || je(r.val), r.val;
3574
+ return t != null && t.captureLocation || Fe(r.val), r.val;
3552
3575
  }
3553
- var z;
3576
+ var X;
3554
3577
  (function(e) {
3555
3578
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3556
- })(z || (z = {}));
3557
- var ye = (
3579
+ })(X || (X = {}));
3580
+ var ve = (
3558
3581
  /** @class */
3559
3582
  function(e) {
3560
3583
  O(t, e);
@@ -3571,150 +3594,150 @@ var ye = (
3571
3594
  function(e) {
3572
3595
  O(t, e);
3573
3596
  function t(r, n, i, o) {
3574
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
3597
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, o) || this;
3575
3598
  }
3576
3599
  return t;
3577
- }(ye)
3578
- ), Yn = (
3600
+ }(ve)
3601
+ ), Kn = (
3579
3602
  /** @class */
3580
3603
  function(e) {
3581
3604
  O(t, e);
3582
3605
  function t(r, n, i) {
3583
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
3606
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
3584
3607
  }
3585
3608
  return t;
3586
- }(ye)
3587
- ), qn = (
3609
+ }(ve)
3610
+ ), ei = (
3588
3611
  /** @class */
3589
3612
  function(e) {
3590
3613
  O(t, e);
3591
3614
  function t(r, n) {
3592
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
3615
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
3593
3616
  }
3594
3617
  return t;
3595
- }(ye)
3596
- ), _;
3618
+ }(ve)
3619
+ ), E;
3597
3620
  (function(e) {
3598
3621
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3599
- })(_ || (_ = {}));
3600
- function Kn(e) {
3622
+ })(E || (E = {}));
3623
+ function ti(e) {
3601
3624
  return e.length < 2 ? e : e.reduce(function(t, r) {
3602
3625
  var n = t[t.length - 1];
3603
- return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
3626
+ return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
3604
3627
  }, []);
3605
3628
  }
3606
- function ei(e) {
3629
+ function ri(e) {
3607
3630
  return typeof e == "function";
3608
3631
  }
3609
- function fe(e, t, r, n, i, o, s) {
3632
+ function ce(e, t, r, n, i, o, s) {
3610
3633
  if (e.length === 1 && lt(e[0]))
3611
3634
  return [
3612
3635
  {
3613
- type: _.literal,
3636
+ type: E.literal,
3614
3637
  value: e[0].value
3615
3638
  }
3616
3639
  ];
3617
- for (var a = [], l = 0, h = e; l < h.length; l++) {
3618
- var u = h[l];
3619
- if (lt(u)) {
3640
+ for (var a = [], u = 0, h = e; u < h.length; u++) {
3641
+ var l = h[u];
3642
+ if (lt(l)) {
3620
3643
  a.push({
3621
- type: _.literal,
3622
- value: u.value
3644
+ type: E.literal,
3645
+ value: l.value
3623
3646
  });
3624
3647
  continue;
3625
3648
  }
3626
- if (_n(u)) {
3649
+ if (Tn(l)) {
3627
3650
  typeof o == "number" && a.push({
3628
- type: _.literal,
3651
+ type: E.literal,
3629
3652
  value: r.getNumberFormat(t).format(o)
3630
3653
  });
3631
3654
  continue;
3632
3655
  }
3633
- var c = u.value;
3656
+ var c = l.value;
3634
3657
  if (!(i && c in i))
3635
- throw new qn(c, s);
3658
+ throw new ei(c, s);
3636
3659
  var f = i[c];
3637
- if (En(u)) {
3660
+ if (Sn(l)) {
3638
3661
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3639
- type: typeof f == "string" ? _.literal : _.object,
3662
+ type: typeof f == "string" ? E.literal : E.object,
3640
3663
  value: f
3641
3664
  });
3642
3665
  continue;
3643
3666
  }
3644
- if (Ut(u)) {
3645
- var d = typeof u.style == "string" ? n.date[u.style] : Re(u.style) ? u.style.parsedOptions : void 0;
3667
+ if (Ut(l)) {
3668
+ var m = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
3646
3669
  a.push({
3647
- type: _.literal,
3648
- value: r.getDateTimeFormat(t, d).format(f)
3670
+ type: E.literal,
3671
+ value: r.getDateTimeFormat(t, m).format(f)
3649
3672
  });
3650
3673
  continue;
3651
3674
  }
3652
- if (Gt(u)) {
3653
- var d = typeof u.style == "string" ? n.time[u.style] : Re(u.style) ? u.style.parsedOptions : n.time.medium;
3675
+ if (Gt(l)) {
3676
+ var m = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
3654
3677
  a.push({
3655
- type: _.literal,
3656
- value: r.getDateTimeFormat(t, d).format(f)
3678
+ type: E.literal,
3679
+ value: r.getDateTimeFormat(t, m).format(f)
3657
3680
  });
3658
3681
  continue;
3659
3682
  }
3660
- if (Dt(u)) {
3661
- var d = typeof u.style == "string" ? n.number[u.style] : Vt(u.style) ? u.style.parsedOptions : void 0;
3662
- d && d.scale && (f = f * (d.scale || 1)), a.push({
3663
- type: _.literal,
3664
- value: r.getNumberFormat(t, d).format(f)
3683
+ if (Dt(l)) {
3684
+ var m = typeof l.style == "string" ? n.number[l.style] : Vt(l.style) ? l.style.parsedOptions : void 0;
3685
+ m && m.scale && (f = f * (m.scale || 1)), a.push({
3686
+ type: E.literal,
3687
+ value: r.getNumberFormat(t, m).format(f)
3665
3688
  });
3666
3689
  continue;
3667
3690
  }
3668
- if (kt(u)) {
3669
- var y = u.children, v = u.value, T = i[v];
3670
- if (!ei(T))
3671
- throw new Yn(v, "function", s);
3672
- var L = fe(y, t, r, n, i, o), I = T(L.map(function(P) {
3673
- return P.value;
3691
+ if (kt(l)) {
3692
+ var v = l.children, g = l.value, w = i[g];
3693
+ if (!ri(w))
3694
+ throw new Kn(g, "function", s);
3695
+ var N = ce(v, t, r, n, i, o), I = w(N.map(function(S) {
3696
+ return S.value;
3674
3697
  }));
3675
- Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(P) {
3698
+ Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(S) {
3676
3699
  return {
3677
- type: typeof P == "string" ? _.literal : _.object,
3678
- value: P
3700
+ type: typeof S == "string" ? E.literal : E.object,
3701
+ value: S
3679
3702
  };
3680
3703
  }));
3681
3704
  }
3682
- if (Ft(u)) {
3683
- var E = u.options[f] || u.options.other;
3684
- if (!E)
3685
- throw new gt(u.value, f, Object.keys(u.options), s);
3686
- a.push.apply(a, fe(E.value, t, r, n, i));
3705
+ if (Ft(l)) {
3706
+ var _ = l.options[f] || l.options.other;
3707
+ if (!_)
3708
+ throw new gt(l.value, f, Object.keys(l.options), s);
3709
+ a.push.apply(a, ce(_.value, t, r, n, i));
3687
3710
  continue;
3688
3711
  }
3689
- if (jt(u)) {
3690
- var E = u.options["=".concat(f)];
3691
- if (!E) {
3712
+ if (jt(l)) {
3713
+ var _ = l.options["=".concat(f)];
3714
+ if (!_) {
3692
3715
  if (!Intl.PluralRules)
3693
- throw new ye(`Intl.PluralRules is not available in this environment.
3716
+ throw new ve(`Intl.PluralRules is not available in this environment.
3694
3717
  Try polyfilling it using "@formatjs/intl-pluralrules"
3695
- `, z.MISSING_INTL_API, s);
3696
- var w = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
3697
- E = u.options[w] || u.options.other;
3718
+ `, X.MISSING_INTL_API, s);
3719
+ var P = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3720
+ _ = l.options[P] || l.options.other;
3698
3721
  }
3699
- if (!E)
3700
- throw new gt(u.value, f, Object.keys(u.options), s);
3701
- a.push.apply(a, fe(E.value, t, r, n, i, f - (u.offset || 0)));
3722
+ if (!_)
3723
+ throw new gt(l.value, f, Object.keys(l.options), s);
3724
+ a.push.apply(a, ce(_.value, t, r, n, i, f - (l.offset || 0)));
3702
3725
  continue;
3703
3726
  }
3704
3727
  }
3705
- return Kn(a);
3728
+ return ti(a);
3706
3729
  }
3707
- function ti(e, t) {
3730
+ function ni(e, t) {
3708
3731
  return t ? b(b(b({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3709
3732
  return r[n] = b(b({}, e[n]), t[n] || {}), r;
3710
3733
  }, {})) : e;
3711
3734
  }
3712
- function ri(e, t) {
3735
+ function ii(e, t) {
3713
3736
  return t ? Object.keys(e).reduce(function(r, n) {
3714
- return r[n] = ti(e[n], t[n]), r;
3737
+ return r[n] = ni(e[n], t[n]), r;
3715
3738
  }, b({}, e)) : e;
3716
3739
  }
3717
- function Be(e) {
3740
+ function Pe(e) {
3718
3741
  return {
3719
3742
  create: function() {
3720
3743
  return {
@@ -3728,39 +3751,39 @@ function Be(e) {
3728
3751
  }
3729
3752
  };
3730
3753
  }
3731
- function ni(e) {
3754
+ function oi(e) {
3732
3755
  return e === void 0 && (e = {
3733
3756
  number: {},
3734
3757
  dateTime: {},
3735
3758
  pluralRules: {}
3736
3759
  }), {
3737
- getNumberFormat: He(function() {
3760
+ getNumberFormat: Te(function() {
3738
3761
  for (var t, r = [], n = 0; n < arguments.length; n++)
3739
3762
  r[n] = arguments[n];
3740
- return new ((t = Intl.NumberFormat).bind.apply(t, k([void 0], r, !1)))();
3763
+ return new ((t = Intl.NumberFormat).bind.apply(t, j([void 0], r, !1)))();
3741
3764
  }, {
3742
- cache: Be(e.number),
3765
+ cache: Pe(e.number),
3743
3766
  strategy: we.variadic
3744
3767
  }),
3745
- getDateTimeFormat: He(function() {
3768
+ getDateTimeFormat: Te(function() {
3746
3769
  for (var t, r = [], n = 0; n < arguments.length; n++)
3747
3770
  r[n] = arguments[n];
3748
- return new ((t = Intl.DateTimeFormat).bind.apply(t, k([void 0], r, !1)))();
3771
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, j([void 0], r, !1)))();
3749
3772
  }, {
3750
- cache: Be(e.dateTime),
3773
+ cache: Pe(e.dateTime),
3751
3774
  strategy: we.variadic
3752
3775
  }),
3753
- getPluralRules: He(function() {
3776
+ getPluralRules: Te(function() {
3754
3777
  for (var t, r = [], n = 0; n < arguments.length; n++)
3755
3778
  r[n] = arguments[n];
3756
- return new ((t = Intl.PluralRules).bind.apply(t, k([void 0], r, !1)))();
3779
+ return new ((t = Intl.PluralRules).bind.apply(t, j([void 0], r, !1)))();
3757
3780
  }, {
3758
- cache: Be(e.pluralRules),
3781
+ cache: Pe(e.pluralRules),
3759
3782
  strategy: we.variadic
3760
3783
  })
3761
3784
  };
3762
3785
  }
3763
- var ii = (
3786
+ var si = (
3764
3787
  /** @class */
3765
3788
  function() {
3766
3789
  function e(t, r, n, i) {
@@ -3770,20 +3793,20 @@ var ii = (
3770
3793
  number: {},
3771
3794
  dateTime: {},
3772
3795
  pluralRules: {}
3773
- }, this.format = function(l) {
3774
- var h = o.formatToParts(l);
3796
+ }, this.format = function(u) {
3797
+ var h = o.formatToParts(u);
3775
3798
  if (h.length === 1)
3776
3799
  return h[0].value;
3777
- var u = h.reduce(function(c, f) {
3778
- return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3800
+ var l = h.reduce(function(c, f) {
3801
+ return !c.length || f.type !== E.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3779
3802
  }, []);
3780
- return u.length <= 1 ? u[0] || "" : u;
3781
- }, this.formatToParts = function(l) {
3782
- return fe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3803
+ return l.length <= 1 ? l[0] || "" : l;
3804
+ }, this.formatToParts = function(u) {
3805
+ return ce(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3783
3806
  }, this.resolvedOptions = function() {
3784
- var l;
3807
+ var u;
3785
3808
  return {
3786
- locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3809
+ locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3787
3810
  };
3788
3811
  }, this.getAst = function() {
3789
3812
  return o.ast;
@@ -3792,13 +3815,13 @@ var ii = (
3792
3815
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3793
3816
  var s = i || {};
3794
3817
  s.formatters;
3795
- var a = Mr(s, ["formatters"]);
3818
+ var a = Rr(s, ["formatters"]);
3796
3819
  this.ast = e.__parse(t, b(b({}, a), { locale: this.resolvedLocale }));
3797
3820
  } else
3798
3821
  this.ast = t;
3799
3822
  if (!Array.isArray(this.ast))
3800
3823
  throw new TypeError("A message must be provided as a String or AST.");
3801
- this.formats = ri(e.formats, n), this.formatters = i && i.formatters || ni(this.formatterCache);
3824
+ this.formats = ii(e.formats, n), this.formatters = i && i.formatters || oi(this.formatterCache);
3802
3825
  }
3803
3826
  return Object.defineProperty(e, "defaultLocale", {
3804
3827
  get: function() {
@@ -3811,7 +3834,7 @@ var ii = (
3811
3834
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3812
3835
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3813
3836
  }
3814
- }, e.__parse = Jn, e.formats = {
3837
+ }, e.__parse = qn, e.formats = {
3815
3838
  number: {
3816
3839
  integer: {
3817
3840
  maximumFractionDigits: 0
@@ -3872,7 +3895,7 @@ var ii = (
3872
3895
  }, e;
3873
3896
  }()
3874
3897
  );
3875
- function oi(e, t) {
3898
+ function ai(e, t) {
3876
3899
  if (t == null)
3877
3900
  return;
3878
3901
  if (t in e)
@@ -3893,36 +3916,36 @@ function oi(e, t) {
3893
3916
  n = void 0;
3894
3917
  return n;
3895
3918
  }
3896
- const N = {}, si = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), qt = (e, t) => {
3919
+ const C = {}, ui = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), qt = (e, t) => {
3897
3920
  if (t == null)
3898
3921
  return;
3899
- if (t in N && e in N[t])
3900
- return N[t][e];
3901
- const r = xe(t);
3922
+ if (t in C && e in C[t])
3923
+ return C[t][e];
3924
+ const r = ye(t);
3902
3925
  for (let n = 0; n < r.length; n++) {
3903
- const i = r[n], o = ui(i, e);
3926
+ const i = r[n], o = li(i, e);
3904
3927
  if (o)
3905
- return si(e, t, o);
3928
+ return ui(e, t, o);
3906
3929
  }
3907
3930
  };
3908
- let We;
3909
- const ie = ve({});
3910
- function ai(e) {
3911
- return We[e] || null;
3931
+ let ze;
3932
+ const ne = ge({});
3933
+ function hi(e) {
3934
+ return ze[e] || null;
3912
3935
  }
3913
3936
  function Kt(e) {
3914
- return e in We;
3937
+ return e in ze;
3915
3938
  }
3916
- function ui(e, t) {
3939
+ function li(e, t) {
3917
3940
  if (!Kt(e))
3918
3941
  return null;
3919
- const r = ai(e);
3920
- return oi(r, t);
3942
+ const r = hi(e);
3943
+ return ai(r, t);
3921
3944
  }
3922
- function hi(e) {
3945
+ function ci(e) {
3923
3946
  if (e == null)
3924
3947
  return;
3925
- const t = xe(e);
3948
+ const t = ye(e);
3926
3949
  for (let r = 0; r < t.length; r++) {
3927
3950
  const n = t[r];
3928
3951
  if (Kt(n))
@@ -3930,55 +3953,55 @@ function hi(e) {
3930
3953
  }
3931
3954
  }
3932
3955
  function er(e, ...t) {
3933
- delete N[e], ie.update((r) => (r[e] = pn.all([r[e] || {}, ...t]), r));
3956
+ delete C[e], ne.update((r) => (r[e] = dn.all([r[e] || {}, ...t]), r));
3934
3957
  }
3935
- Z(
3936
- [ie],
3958
+ W(
3959
+ [ne],
3937
3960
  ([e]) => Object.keys(e)
3938
3961
  );
3939
- ie.subscribe((e) => We = e);
3940
- const pe = {};
3941
- function li(e, t) {
3942
- pe[e].delete(t), pe[e].size === 0 && delete pe[e];
3962
+ ne.subscribe((e) => ze = e);
3963
+ const fe = {};
3964
+ function fi(e, t) {
3965
+ fe[e].delete(t), fe[e].size === 0 && delete fe[e];
3943
3966
  }
3944
3967
  function tr(e) {
3945
- return pe[e];
3968
+ return fe[e];
3946
3969
  }
3947
- function ci(e) {
3948
- return xe(e).map((t) => {
3970
+ function pi(e) {
3971
+ return ye(e).map((t) => {
3949
3972
  const r = tr(t);
3950
3973
  return [t, r ? [...r] : []];
3951
3974
  }).filter(([, t]) => t.length > 0);
3952
3975
  }
3953
- function ke(e) {
3954
- return e == null ? !1 : xe(e).some(
3976
+ function je(e) {
3977
+ return e == null ? !1 : ye(e).some(
3955
3978
  (t) => {
3956
3979
  var r;
3957
3980
  return (r = tr(t)) == null ? void 0 : r.size;
3958
3981
  }
3959
3982
  );
3960
3983
  }
3961
- function fi(e, t) {
3984
+ function mi(e, t) {
3962
3985
  return Promise.all(
3963
- t.map((n) => (li(e, n), n().then((i) => i.default || i)))
3986
+ t.map((n) => (fi(e, n), n().then((i) => i.default || i)))
3964
3987
  ).then((n) => er(e, ...n));
3965
3988
  }
3966
- const Y = {};
3989
+ const J = {};
3967
3990
  function rr(e) {
3968
- if (!ke(e))
3969
- return e in Y ? Y[e] : Promise.resolve();
3970
- const t = ci(e);
3971
- return Y[e] = Promise.all(
3991
+ if (!je(e))
3992
+ return e in J ? J[e] : Promise.resolve();
3993
+ const t = pi(e);
3994
+ return J[e] = Promise.all(
3972
3995
  t.map(
3973
- ([r, n]) => fi(r, n)
3996
+ ([r, n]) => mi(r, n)
3974
3997
  )
3975
3998
  ).then(() => {
3976
- if (ke(e))
3999
+ if (je(e))
3977
4000
  return rr(e);
3978
- delete Y[e];
3979
- }), Y[e];
4001
+ delete J[e];
4002
+ }), J[e];
3980
4003
  }
3981
- const pi = {
4004
+ const di = {
3982
4005
  number: {
3983
4006
  scientific: { notation: "scientific" },
3984
4007
  engineering: { notation: "engineering" },
@@ -4007,159 +4030,159 @@ const pi = {
4007
4030
  timeZoneName: "short"
4008
4031
  }
4009
4032
  }
4010
- }, mi = {
4033
+ }, bi = {
4011
4034
  fallbackLocale: null,
4012
4035
  loadingDelay: 200,
4013
- formats: pi,
4036
+ formats: di,
4014
4037
  warnOnMissingMessages: !0,
4015
4038
  handleMissingMessage: void 0,
4016
4039
  ignoreTag: !0
4017
- }, di = mi;
4018
- function W() {
4019
- return di;
4040
+ }, gi = bi;
4041
+ function z() {
4042
+ return gi;
4020
4043
  }
4021
- const Ae = ve(!1);
4022
- var bi = Object.defineProperty, gi = Object.defineProperties, vi = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, yi = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ei = (e, t) => {
4044
+ const Be = ge(!1);
4045
+ var vi = Object.defineProperty, yi = Object.defineProperties, xi = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, Ei = Object.prototype.hasOwnProperty, _i = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Si = (e, t) => {
4023
4046
  for (var r in t || (t = {}))
4024
- yi.call(t, r) && yt(e, r, t[r]);
4047
+ Ei.call(t, r) && yt(e, r, t[r]);
4025
4048
  if (vt)
4026
4049
  for (var r of vt(t))
4027
- xi.call(t, r) && yt(e, r, t[r]);
4050
+ _i.call(t, r) && yt(e, r, t[r]);
4028
4051
  return e;
4029
- }, _i = (e, t) => gi(e, vi(t));
4030
- let Ve;
4031
- const de = ve(null);
4052
+ }, Ti = (e, t) => yi(e, xi(t));
4053
+ let ke;
4054
+ const me = ge(null);
4032
4055
  function xt(e) {
4033
4056
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4034
4057
  }
4035
- function xe(e, t = W().fallbackLocale) {
4058
+ function ye(e, t = z().fallbackLocale) {
4036
4059
  const r = xt(e);
4037
4060
  return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
4038
4061
  }
4039
- function $() {
4040
- return Ve != null ? Ve : void 0;
4062
+ function M() {
4063
+ return ke != null ? ke : void 0;
4041
4064
  }
4042
- de.subscribe((e) => {
4043
- Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4065
+ me.subscribe((e) => {
4066
+ ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4044
4067
  });
4045
- const Si = (e) => {
4046
- if (e && hi(e) && ke(e)) {
4047
- const { loadingDelay: t } = W();
4068
+ const wi = (e) => {
4069
+ if (e && ci(e) && je(e)) {
4070
+ const { loadingDelay: t } = z();
4048
4071
  let r;
4049
- return typeof window != "undefined" && $() != null && t ? r = window.setTimeout(
4050
- () => Ae.set(!0),
4072
+ return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
4073
+ () => Be.set(!0),
4051
4074
  t
4052
- ) : Ae.set(!0), rr(e).then(() => {
4053
- de.set(e);
4075
+ ) : Be.set(!0), rr(e).then(() => {
4076
+ me.set(e);
4054
4077
  }).finally(() => {
4055
- clearTimeout(r), Ae.set(!1);
4078
+ clearTimeout(r), Be.set(!1);
4056
4079
  });
4057
4080
  }
4058
- return de.set(e);
4059
- }, Q = _i(Ei({}, de), {
4060
- set: Si
4061
- }), Ee = (e) => {
4081
+ return me.set(e);
4082
+ }, Z = Ti(Si({}, me), {
4083
+ set: wi
4084
+ }), xe = (e) => {
4062
4085
  const t = /* @__PURE__ */ Object.create(null);
4063
4086
  return (n) => {
4064
4087
  const i = JSON.stringify(n);
4065
4088
  return i in t ? t[i] : t[i] = e(n);
4066
4089
  };
4067
4090
  };
4068
- var Ti = Object.defineProperty, be = Object.getOwnPropertySymbols, nr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? Ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
4091
+ var Hi = Object.defineProperty, de = Object.getOwnPropertySymbols, nr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? Hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
4069
4092
  for (var r in t || (t = {}))
4070
4093
  nr.call(t, r) && Et(e, r, t[r]);
4071
- if (be)
4072
- for (var r of be(t))
4094
+ if (de)
4095
+ for (var r of de(t))
4073
4096
  ir.call(t, r) && Et(e, r, t[r]);
4074
4097
  return e;
4075
- }, J = (e, t) => {
4098
+ }, Q = (e, t) => {
4076
4099
  var r = {};
4077
4100
  for (var n in e)
4078
4101
  nr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4079
- if (e != null && be)
4080
- for (var n of be(e))
4102
+ if (e != null && de)
4103
+ for (var n of de(e))
4081
4104
  t.indexOf(n) < 0 && ir.call(e, n) && (r[n] = e[n]);
4082
4105
  return r;
4083
4106
  };
4084
- const re = (e, t) => {
4085
- const { formats: r } = W();
4107
+ const te = (e, t) => {
4108
+ const { formats: r } = z();
4086
4109
  if (e in r && t in r[e])
4087
4110
  return r[e][t];
4088
4111
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4089
- }, Hi = Ee(
4112
+ }, Pi = xe(
4090
4113
  (e) => {
4091
- var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
4114
+ var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
4092
4115
  if (r == null)
4093
4116
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4094
- return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
4117
+ return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
4095
4118
  }
4096
- ), wi = Ee(
4119
+ ), Bi = xe(
4097
4120
  (e) => {
4098
- var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
4121
+ var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
4099
4122
  if (r == null)
4100
4123
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4101
- return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
4124
+ return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
4102
4125
  }
4103
- ), Pi = Ee(
4126
+ ), Ai = xe(
4104
4127
  (e) => {
4105
- var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
4128
+ var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
4106
4129
  if (r == null)
4107
4130
  throw new Error(
4108
4131
  '[svelte-i18n] A "locale" must be set to format time values'
4109
4132
  );
4110
- return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
4133
+ return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
4111
4134
  }
4112
- ), Bi = (e = {}) => {
4135
+ ), Oi = (e = {}) => {
4113
4136
  var t = e, {
4114
- locale: r = $()
4115
- } = t, n = J(t, [
4137
+ locale: r = M()
4138
+ } = t, n = Q(t, [
4116
4139
  "locale"
4117
4140
  ]);
4118
- return Hi(Ze({ locale: r }, n));
4119
- }, Ai = (e = {}) => {
4141
+ return Pi(We({ locale: r }, n));
4142
+ }, Ii = (e = {}) => {
4120
4143
  var t = e, {
4121
- locale: r = $()
4122
- } = t, n = J(t, [
4144
+ locale: r = M()
4145
+ } = t, n = Q(t, [
4123
4146
  "locale"
4124
4147
  ]);
4125
- return wi(Ze({ locale: r }, n));
4126
- }, Oi = (e = {}) => {
4148
+ return Bi(We({ locale: r }, n));
4149
+ }, Ci = (e = {}) => {
4127
4150
  var t = e, {
4128
- locale: r = $()
4129
- } = t, n = J(t, [
4151
+ locale: r = M()
4152
+ } = t, n = Q(t, [
4130
4153
  "locale"
4131
4154
  ]);
4132
- return Pi(Ze({ locale: r }, n));
4133
- }, Ii = Ee(
4155
+ return Ai(We({ locale: r }, n));
4156
+ }, Ni = xe(
4134
4157
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4135
- (e, t = $()) => new ii(e, t, W().formats, {
4136
- ignoreTag: W().ignoreTag
4158
+ (e, t = M()) => new si(e, t, z().formats, {
4159
+ ignoreTag: z().ignoreTag
4137
4160
  })
4138
- ), Ci = (e, t = {}) => {
4161
+ ), Li = (e, t = {}) => {
4139
4162
  var r, n, i, o;
4140
4163
  let s = t;
4141
4164
  typeof e == "object" && (s = e, e = s.id);
4142
4165
  const {
4143
4166
  values: a,
4144
- locale: l = $(),
4167
+ locale: u = M(),
4145
4168
  default: h
4146
4169
  } = s;
4147
- if (l == null)
4170
+ if (u == null)
4148
4171
  throw new Error(
4149
4172
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4150
4173
  );
4151
- let u = qt(e, l);
4152
- if (!u)
4153
- u = (o = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
4154
- else if (typeof u != "string")
4174
+ let l = qt(e, u);
4175
+ if (!l)
4176
+ l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
4177
+ else if (typeof l != "string")
4155
4178
  return console.warn(
4156
- `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4157
- ), u;
4179
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4180
+ ), l;
4158
4181
  if (!a)
4159
- return u;
4160
- let c = u;
4182
+ return l;
4183
+ let c = l;
4161
4184
  try {
4162
- c = Ii(u, l).format(a);
4185
+ c = Ni(l, u).format(a);
4163
4186
  } catch (f) {
4164
4187
  f instanceof Error && console.warn(
4165
4188
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4167,18 +4190,18 @@ const re = (e, t) => {
4167
4190
  );
4168
4191
  }
4169
4192
  return c;
4170
- }, Ni = (e, t) => Oi(t).format(e), Li = (e, t) => Ai(t).format(e), Mi = (e, t) => Bi(t).format(e), $i = (e, t = $()) => qt(e, t), Ri = Z([Q, ie], () => Ci);
4171
- Z([Q], () => Ni);
4172
- Z([Q], () => Li);
4173
- Z([Q], () => Mi);
4174
- Z([Q, ie], () => $i);
4175
- window.emWidgets = { topic: Qr };
4176
- const ue = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4193
+ }, Mi = (e, t) => Ci(t).format(e), $i = (e, t) => Ii(t).format(e), Ri = (e, t) => Oi(t).format(e), Di = (e, t = M()) => qt(e, t), Ui = W([Z, ne], () => Li);
4194
+ W([Z], () => Mi);
4195
+ W([Z], () => $i);
4196
+ W([Z], () => Ri);
4197
+ W([Z, ne], () => Di);
4198
+ window.emWidgets = { topic: Yr };
4199
+ const ae = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4177
4200
  function _t(e, t) {
4178
4201
  er(e, t);
4179
4202
  }
4180
- function Di(e) {
4181
- Q.set(e);
4203
+ function Gi(e) {
4204
+ Z.set(e);
4182
4205
  }
4183
4206
  const St = {
4184
4207
  en: {
@@ -4221,10 +4244,10 @@ const St = {
4221
4244
  panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
4222
4245
  }
4223
4246
  };
4224
- function Ui(e) {
4225
- pr(e, "svelte-1v7b25v", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicSection .PanicButton{border-radius:5px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:10px;width:280px;height:fit-content;padding:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer}.PanicSectionMobile{position:absolute;top:0;left:0;width:100%;text-align:center;margin:20px 0 0 0 !important}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:100% !important;height:30px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:280px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.PanicButtonV2 .PanicButton{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
4247
+ function Fi(e) {
4248
+ fr(e, "svelte-1v7b25v", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicSection .PanicButton{border-radius:5px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:10px;width:280px;height:fit-content;padding:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer}.PanicSectionMobile{position:absolute;top:0;left:0;width:100%;text-align:center;margin:20px 0 0 0 !important}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:100% !important;height:30px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:280px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.PanicButtonV2 .PanicButton{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
4226
4249
  }
4227
- function Gi(e) {
4250
+ function ji(e) {
4228
4251
  let t, r, n, i = (
4229
4252
  /*customtext*/
4230
4253
  (e[0] || /*$_*/
@@ -4232,10 +4255,10 @@ function Gi(e) {
4232
4255
  ), o, s;
4233
4256
  return {
4234
4257
  c() {
4235
- t = q("div"), r = q("div"), n = q("button"), o = br(i), M(n, "class", "PanicButton " + (ue(
4258
+ t = Y("div"), r = Y("div"), n = Y("button"), o = dr(i), L(n, "class", "PanicButton " + (ae(
4236
4259
  /*userAgent*/
4237
4260
  e[6]
4238
- ) !== "PC" ? "PanicButtonMobile" : "")), M(n, "part", "PanicButton " + (ue(
4261
+ ) !== "PC" ? "PanicButtonMobile" : "")), L(n, "part", "PanicButton " + (ae(
4239
4262
  /*userAgent*/
4240
4263
  e[6]
4241
4264
  ) !== "PC" ? "PanicButtonMobile" : "")), et(
@@ -4243,177 +4266,173 @@ function Gi(e) {
4243
4266
  "PanicButtonAnimation",
4244
4267
  /*panicLoading*/
4245
4268
  e[4]
4246
- ), M(r, "class", "PanicSection " + (ue(
4269
+ ), L(r, "class", "PanicSection " + (ae(
4247
4270
  /*userAgent*/
4248
4271
  e[6]
4249
- ) !== "PC" ? "PanicSectionMobile" : "")), M(r, "part", "PanicSection " + (ue(
4272
+ ) !== "PC" ? "PanicSectionMobile" : "")), L(r, "part", "PanicSection " + (ae(
4250
4273
  /*userAgent*/
4251
4274
  e[6]
4252
- ) !== "PC" ? "PanicSectionMobile" : "")), M(t, "class", s = /*alternativestyling*/
4275
+ ) !== "PC" ? "PanicSectionMobile" : "")), L(t, "class", s = /*alternativestyling*/
4253
4276
  e[1] == "true" ? "PanicButtonV2" : "");
4254
4277
  },
4255
- m(a, l) {
4256
- Pt(a, t, l), he(t, r), he(r, n), he(n, o), e[11](n), e[12](t);
4278
+ m(a, u) {
4279
+ Pt(a, t, u), ue(t, r), ue(r, n), ue(n, o), e[12](n), e[13](t);
4257
4280
  },
4258
- p(a, [l]) {
4259
- l & /*customtext, $_*/
4281
+ p(a, [u]) {
4282
+ u & /*customtext, $_*/
4260
4283
  33 && i !== (i = /*customtext*/
4261
4284
  (a[0] || /*$_*/
4262
- a[5]("panicButtonString")) + "") && vr(o, i), l & /*panicLoading*/
4285
+ a[5]("panicButtonString")) + "") && gr(o, i), u & /*panicLoading*/
4263
4286
  16 && et(
4264
4287
  n,
4265
4288
  "PanicButtonAnimation",
4266
4289
  /*panicLoading*/
4267
4290
  a[4]
4268
- ), l & /*alternativestyling*/
4291
+ ), u & /*alternativestyling*/
4269
4292
  2 && s !== (s = /*alternativestyling*/
4270
- a[1] == "true" ? "PanicButtonV2" : "") && M(t, "class", s);
4293
+ a[1] == "true" ? "PanicButtonV2" : "") && L(t, "class", s);
4271
4294
  },
4272
4295
  i: H,
4273
4296
  o: H,
4274
4297
  d(a) {
4275
- a && ze(t), e[11](null), e[12](null);
4298
+ a && Xe(t), e[12](null), e[13](null);
4276
4299
  }
4277
4300
  };
4278
4301
  }
4279
- function Fi(e, t, r) {
4302
+ function ki(e, t, r) {
4280
4303
  let n;
4281
- fr(e, Ri, (g) => r(5, n = g));
4282
- let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { alternativestyling: l = "" } = t, { translationurl: h = "" } = t, u, c, f = !1, d = 0, y, v = window.navigator.userAgent;
4283
- const T = () => {
4284
- fetch(h).then((B) => B.json()).then((B) => {
4285
- Object.keys(B).forEach((D) => {
4286
- _t(D, B[D]);
4304
+ cr(e, Ui, (y) => r(5, n = y));
4305
+ let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: u } = t, { alternativestyling: h = "" } = t, { translationurl: l = "" } = t, c, f, m = !1, v = 0, g, w = window.navigator.userAgent;
4306
+ const N = () => {
4307
+ fetch(l).then((R) => R.json()).then((R) => {
4308
+ Object.keys(R).forEach((Ze) => {
4309
+ _t(Ze, R[Ze]);
4287
4310
  });
4288
- }).catch((B) => {
4289
- console.log(B);
4311
+ }).catch((R) => {
4312
+ console.log(R);
4290
4313
  });
4291
4314
  };
4292
- Object.keys(St).forEach((g) => {
4293
- _t(g, St[g]);
4315
+ Object.keys(St).forEach((y) => {
4316
+ _t(y, St[y]);
4294
4317
  });
4295
- const L = () => {
4296
- u == null || u.addEventListener("mousedown", E, !1), u == null || u.addEventListener("touchstart", E, !1), u == null || u.addEventListener("mouseup", w, !1), u == null || u.addEventListener("touchend", w, !1);
4297
- }, I = () => {
4298
- r(4, f = !1), u == null || u.removeEventListener("mousedown", E), u == null || u.removeEventListener("touchstart", E), u == null || u.removeEventListener("mouseup", w), u == null || u.removeEventListener("touchend", w);
4299
- }, E = () => {
4300
- d = 0, r(4, f = !0), y = setInterval(
4318
+ const I = () => {
4319
+ c == null || c.addEventListener("mousedown", P, !1), c == null || c.addEventListener("touchstart", P, !1), c == null || c.addEventListener("mouseup", S, !1), c == null || c.addEventListener("touchend", S, !1);
4320
+ }, _ = () => {
4321
+ r(4, m = !1), c == null || c.removeEventListener("mousedown", P), c == null || c.removeEventListener("touchstart", P), c == null || c.removeEventListener("mouseup", S), c == null || c.removeEventListener("touchend", S);
4322
+ }, P = () => {
4323
+ v = 0, r(4, m = !0), g = setInterval(
4301
4324
  () => {
4302
- d++, d >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(y), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
4325
+ v++, v >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(g), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
4303
4326
  },
4304
4327
  1e3
4305
4328
  );
4306
- }, w = () => {
4307
- r(4, f = !1), clearInterval(y);
4308
- }, P = () => {
4309
- let g = document.createElement("style");
4310
- g.innerHTML = s, c.appendChild(g);
4311
- }, R = () => {
4312
- let g = new URL(a), B = document.createElement("style");
4313
- fetch(g.href).then((D) => D.text()).then((D) => {
4314
- B.innerHTML = D, setTimeout(
4315
- () => {
4316
- c.appendChild(B);
4317
- },
4318
- 1
4319
- );
4320
- });
4329
+ }, S = () => {
4330
+ r(4, m = !1), clearInterval(g);
4321
4331
  };
4322
- Er(() => () => {
4323
- I();
4332
+ xr(() => () => {
4333
+ _();
4324
4334
  });
4325
- function oe(g) {
4326
- me[g ? "unshift" : "push"](() => {
4327
- u = g, r(2, u);
4335
+ function $(y) {
4336
+ pe[y ? "unshift" : "push"](() => {
4337
+ c = y, r(2, c);
4328
4338
  });
4329
4339
  }
4330
- function or(g) {
4331
- me[g ? "unshift" : "push"](() => {
4332
- c = g, r(3, c);
4340
+ function ie(y) {
4341
+ pe[y ? "unshift" : "push"](() => {
4342
+ f = y, r(3, f);
4333
4343
  });
4334
4344
  }
4335
- return e.$$set = (g) => {
4336
- "lang" in g && r(7, i = g.lang), "customtext" in g && r(0, o = g.customtext), "clientstyling" in g && r(8, s = g.clientstyling), "clientstylingurl" in g && r(9, a = g.clientstylingurl), "alternativestyling" in g && r(1, l = g.alternativestyling), "translationurl" in g && r(10, h = g.translationurl);
4345
+ return e.$$set = (y) => {
4346
+ "lang" in y && r(7, i = y.lang), "customtext" in y && r(0, o = y.customtext), "clientstyling" in y && r(8, s = y.clientstyling), "clientstylingurl" in y && r(9, a = y.clientstylingurl), "mbsource" in y && r(10, u = y.mbsource), "alternativestyling" in y && r(1, h = y.alternativestyling), "translationurl" in y && r(11, l = y.translationurl);
4337
4347
  }, e.$$.update = () => {
4338
4348
  e.$$.dirty & /*panicButton*/
4339
- 4 && u && L(), e.$$.dirty & /*lang*/
4340
- 128 && i && Di(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
4341
- 264 && s && c && P(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4342
- 520 && a && c && R(), e.$$.dirty & /*translationurl*/
4343
- 1024 && h && T();
4349
+ 4 && c && I(), e.$$.dirty & /*lang*/
4350
+ 128 && i && Gi(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
4351
+ 264 && s && f && Lr(f, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4352
+ 520 && a && f && Mr(f, a), e.$$.dirty & /*mbsource, customStylingContainer*/
4353
+ 1032 && u && f && $r(f, `${u}.Style`), e.$$.dirty & /*translationurl*/
4354
+ 2048 && l && N();
4344
4355
  }, [
4345
4356
  o,
4346
- l,
4347
- u,
4357
+ h,
4348
4358
  c,
4349
4359
  f,
4360
+ m,
4350
4361
  n,
4351
- v,
4362
+ w,
4352
4363
  i,
4353
4364
  s,
4354
4365
  a,
4355
- h,
4356
- oe,
4357
- or
4366
+ u,
4367
+ l,
4368
+ $,
4369
+ ie
4358
4370
  ];
4359
4371
  }
4360
- class ji extends Nr {
4372
+ class Vi extends Cr {
4361
4373
  constructor(t) {
4362
- super(), Ir(
4374
+ super(), Or(
4363
4375
  this,
4364
4376
  t,
4365
- Fi,
4366
- Gi,
4367
- Ht,
4377
+ ki,
4378
+ ji,
4379
+ wt,
4368
4380
  {
4369
4381
  lang: 7,
4370
4382
  customtext: 0,
4371
4383
  clientstyling: 8,
4372
4384
  clientstylingurl: 9,
4385
+ mbsource: 10,
4373
4386
  alternativestyling: 1,
4374
- translationurl: 10
4387
+ translationurl: 11
4375
4388
  },
4376
- Ui
4389
+ Fi
4377
4390
  );
4378
4391
  }
4379
4392
  get lang() {
4380
4393
  return this.$$.ctx[7];
4381
4394
  }
4382
4395
  set lang(t) {
4383
- this.$$set({ lang: t }), C();
4396
+ this.$$set({ lang: t }), B();
4384
4397
  }
4385
4398
  get customtext() {
4386
4399
  return this.$$.ctx[0];
4387
4400
  }
4388
4401
  set customtext(t) {
4389
- this.$$set({ customtext: t }), C();
4402
+ this.$$set({ customtext: t }), B();
4390
4403
  }
4391
4404
  get clientstyling() {
4392
4405
  return this.$$.ctx[8];
4393
4406
  }
4394
4407
  set clientstyling(t) {
4395
- this.$$set({ clientstyling: t }), C();
4408
+ this.$$set({ clientstyling: t }), B();
4396
4409
  }
4397
4410
  get clientstylingurl() {
4398
4411
  return this.$$.ctx[9];
4399
4412
  }
4400
4413
  set clientstylingurl(t) {
4401
- this.$$set({ clientstylingurl: t }), C();
4414
+ this.$$set({ clientstylingurl: t }), B();
4415
+ }
4416
+ get mbsource() {
4417
+ return this.$$.ctx[10];
4418
+ }
4419
+ set mbsource(t) {
4420
+ this.$$set({ mbsource: t }), B();
4402
4421
  }
4403
4422
  get alternativestyling() {
4404
4423
  return this.$$.ctx[1];
4405
4424
  }
4406
4425
  set alternativestyling(t) {
4407
- this.$$set({ alternativestyling: t }), C();
4426
+ this.$$set({ alternativestyling: t }), B();
4408
4427
  }
4409
4428
  get translationurl() {
4410
- return this.$$.ctx[10];
4429
+ return this.$$.ctx[11];
4411
4430
  }
4412
4431
  set translationurl(t) {
4413
- this.$$set({ translationurl: t }), C();
4432
+ this.$$set({ translationurl: t }), B();
4414
4433
  }
4415
4434
  }
4416
- Cr(ji, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
4435
+ Ir(Vi, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
4417
4436
  export {
4418
- ji as default
4437
+ Vi as default
4419
4438
  };