@everymatrix/player-panic-button 1.86.2 → 1.86.4

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,46 +1,46 @@
1
- function w() {
1
+ function T() {
2
2
  }
3
- function St(e) {
3
+ function xt(e) {
4
4
  return e();
5
5
  }
6
- function qe() {
6
+ function Je() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function ee(e) {
10
- e.forEach(St);
9
+ function te(e) {
10
+ e.forEach(xt);
11
11
  }
12
- function We(e) {
12
+ function ke(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function Bt(e, t) {
15
+ function _t(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function ir(e) {
18
+ function nr(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function wt(e, ...t) {
21
+ function St(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const n of t)
24
24
  n(void 0);
25
- return w;
25
+ return T;
26
26
  }
27
27
  const r = e.subscribe(...t);
28
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
29
29
  }
30
- function or(e, t, r) {
31
- e.$$.on_destroy.push(wt(t, r));
30
+ function ir(e, t, r) {
31
+ e.$$.on_destroy.push(St(t, r));
32
32
  }
33
33
  function ae(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function sr(e, t, r) {
37
- const n = ar(e);
36
+ function or(e, t, r) {
37
+ const n = sr(e);
38
38
  if (!n.getElementById(t)) {
39
- const i = Q("style");
40
- i.id = t, i.textContent = r, ur(n, i);
39
+ const i = J("style");
40
+ i.id = t, i.textContent = r, ar(n, i);
41
41
  }
42
42
  }
43
- function ar(e) {
43
+ function sr(e) {
44
44
  if (!e)
45
45
  return document;
46
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -50,39 +50,39 @@ function ar(e) {
50
50
  t
51
51
  ) : e.ownerDocument;
52
52
  }
53
- function ur(e, t) {
53
+ function ar(e, t) {
54
54
  return ae(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
58
58
  ), t.sheet;
59
59
  }
60
- function Tt(e, t, r) {
60
+ function Bt(e, t, r) {
61
61
  e.insertBefore(t, r || null);
62
62
  }
63
- function Ze(e) {
63
+ function Ve(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function Q(e) {
66
+ function J(e) {
67
67
  return document.createElement(e);
68
68
  }
69
- function hr(e) {
69
+ function ur(e) {
70
70
  return document.createTextNode(e);
71
71
  }
72
- function L(e, t, r) {
72
+ function N(e, t, r) {
73
73
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
74
74
  }
75
- function lr(e) {
75
+ function hr(e) {
76
76
  return Array.from(e.childNodes);
77
77
  }
78
- function cr(e, t) {
78
+ function lr(e, t) {
79
79
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
80
80
  t);
81
81
  }
82
- function Ke(e, t, r) {
82
+ function Ye(e, t, r) {
83
83
  e.classList.toggle(t, !!r);
84
84
  }
85
- function fr(e) {
85
+ function cr(e) {
86
86
  const t = {};
87
87
  return e.childNodes.forEach(
88
88
  /** @param {Element} node */
@@ -91,95 +91,95 @@ function fr(e) {
91
91
  }
92
92
  ), t;
93
93
  }
94
- let Y;
95
- function J(e) {
96
- Y = e;
94
+ let q;
95
+ function Y(e) {
96
+ q = e;
97
97
  }
98
- function pr() {
99
- if (!Y)
98
+ function fr() {
99
+ if (!q)
100
100
  throw new Error("Function called outside component initialization");
101
- return Y;
101
+ return q;
102
102
  }
103
- function mr(e) {
104
- pr().$$.on_mount.push(e);
103
+ function pr(e) {
104
+ fr().$$.on_mount.push(e);
105
105
  }
106
106
  const D = [], fe = [];
107
- let G = [];
108
- const et = [], dr = /* @__PURE__ */ Promise.resolve();
109
- let Oe = !1;
110
- function br() {
111
- Oe || (Oe = !0, dr.then(P));
112
- }
113
- function Ie(e) {
114
- G.push(e);
115
- }
116
- const xe = /* @__PURE__ */ new Set();
117
- let R = 0;
118
- function P() {
119
- if (R !== 0)
107
+ let F = [];
108
+ const qe = [], mr = /* @__PURE__ */ Promise.resolve();
109
+ let Pe = !1;
110
+ function dr() {
111
+ Pe || (Pe = !0, mr.then(H));
112
+ }
113
+ function Ae(e) {
114
+ F.push(e);
115
+ }
116
+ const Ee = /* @__PURE__ */ new Set();
117
+ let $ = 0;
118
+ function H() {
119
+ if ($ !== 0)
120
120
  return;
121
- const e = Y;
121
+ const e = q;
122
122
  do {
123
123
  try {
124
- for (; R < D.length; ) {
125
- const t = D[R];
126
- R++, J(t), gr(t.$$);
124
+ for (; $ < D.length; ) {
125
+ const t = D[$];
126
+ $++, Y(t), br(t.$$);
127
127
  }
128
128
  } catch (t) {
129
- throw D.length = 0, R = 0, t;
129
+ throw D.length = 0, $ = 0, t;
130
130
  }
131
- for (J(null), D.length = 0, R = 0; fe.length; )
131
+ for (Y(null), D.length = 0, $ = 0; fe.length; )
132
132
  fe.pop()();
133
- for (let t = 0; t < G.length; t += 1) {
134
- const r = G[t];
135
- xe.has(r) || (xe.add(r), r());
133
+ for (let t = 0; t < F.length; t += 1) {
134
+ const r = F[t];
135
+ Ee.has(r) || (Ee.add(r), r());
136
136
  }
137
- G.length = 0;
137
+ F.length = 0;
138
138
  } while (D.length);
139
- for (; et.length; )
140
- et.pop()();
141
- Oe = !1, xe.clear(), J(e);
139
+ for (; qe.length; )
140
+ qe.pop()();
141
+ Pe = !1, Ee.clear(), Y(e);
142
142
  }
143
- function gr(e) {
143
+ function br(e) {
144
144
  if (e.fragment !== null) {
145
- e.update(), ee(e.before_update);
145
+ e.update(), te(e.before_update);
146
146
  const t = e.dirty;
147
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
147
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ae);
148
148
  }
149
149
  }
150
- function yr(e) {
150
+ function gr(e) {
151
151
  const t = [], r = [];
152
- G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
152
+ F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
153
153
  }
154
- const vr = /* @__PURE__ */ new Set();
155
- function Er(e, t) {
156
- e && e.i && (vr.delete(e), e.i(t));
154
+ const yr = /* @__PURE__ */ new Set();
155
+ function vr(e, t) {
156
+ e && e.i && (yr.delete(e), e.i(t));
157
157
  }
158
- function _r(e, t, r) {
158
+ function Er(e, t, r) {
159
159
  const { fragment: n, after_update: i } = e.$$;
160
- n && n.m(t, r), Ie(() => {
161
- const o = e.$$.on_mount.map(St).filter(We);
162
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ee(o), e.$$.on_mount = [];
163
- }), i.forEach(Ie);
160
+ n && n.m(t, r), Ae(() => {
161
+ const o = e.$$.on_mount.map(xt).filter(ke);
162
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
163
+ }), i.forEach(Ae);
164
164
  }
165
165
  function xr(e, t) {
166
166
  const r = e.$$;
167
- r.fragment !== null && (yr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
167
+ r.fragment !== null && (gr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
168
168
  }
169
- function Sr(e, t) {
170
- e.$$.dirty[0] === -1 && (D.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
169
+ function _r(e, t) {
170
+ e.$$.dirty[0] === -1 && (D.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
171
171
  }
172
- function Br(e, t, r, n, i, o, s = null, a = [-1]) {
173
- const u = Y;
174
- J(e);
172
+ function Sr(e, t, r, n, i, o, a = null, s = [-1]) {
173
+ const u = q;
174
+ Y(e);
175
175
  const h = e.$$ = {
176
176
  fragment: null,
177
177
  ctx: [],
178
178
  // state
179
179
  props: o,
180
- update: w,
180
+ update: T,
181
181
  not_equal: i,
182
- bound: qe(),
182
+ bound: Je(),
183
183
  // lifecycle
184
184
  on_mount: [],
185
185
  on_destroy: [],
@@ -188,28 +188,28 @@ function Br(e, t, r, n, i, o, s = null, a = [-1]) {
188
188
  after_update: [],
189
189
  context: new Map(t.context || (u ? u.$$.context : [])),
190
190
  // everything else
191
- callbacks: qe(),
192
- dirty: a,
191
+ callbacks: Je(),
192
+ dirty: s,
193
193
  skip_bound: !1,
194
194
  root: t.target || u.$$.root
195
195
  };
196
- s && s(h.root);
196
+ a && a(h.root);
197
197
  let l = !1;
198
198
  if (h.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
199
- const g = m.length ? m[0] : f;
200
- return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), l && Sr(e, c)), f;
201
- }) : [], h.update(), l = !0, ee(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
199
+ const y = m.length ? m[0] : f;
200
+ return h.ctx && i(h.ctx[c], h.ctx[c] = y) && (!h.skip_bound && h.bound[c] && h.bound[c](y), l && _r(e, c)), f;
201
+ }) : [], h.update(), l = !0, te(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
202
202
  if (t.hydrate) {
203
- const c = lr(t.target);
204
- h.fragment && h.fragment.l(c), c.forEach(Ze);
203
+ const c = hr(t.target);
204
+ h.fragment && h.fragment.l(c), c.forEach(Ve);
205
205
  } else
206
206
  h.fragment && h.fragment.c();
207
- t.intro && Er(e.$$.fragment), _r(e, t.target, t.anchor), P();
207
+ t.intro && vr(e.$$.fragment), Er(e, t.target, t.anchor), H();
208
208
  }
209
- J(u);
209
+ Y(u);
210
210
  }
211
- let Ht;
212
- typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
211
+ let Tt;
212
+ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
213
213
  /** The Svelte component constructor */
214
214
  $$ctor;
215
215
  /** Slots */
@@ -251,24 +251,24 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
251
251
  let o;
252
252
  return {
253
253
  c: function() {
254
- o = Q("slot"), i !== "default" && L(o, "name", i);
254
+ o = J("slot"), i !== "default" && N(o, "name", i);
255
255
  },
256
256
  /**
257
257
  * @param {HTMLElement} target
258
258
  * @param {HTMLElement} [anchor]
259
259
  */
260
260
  m: function(u, h) {
261
- Tt(u, o, h);
261
+ Bt(u, o, h);
262
262
  },
263
263
  d: function(u) {
264
- u && Ze(o);
264
+ u && Ve(o);
265
265
  }
266
266
  };
267
267
  };
268
268
  };
269
269
  if (await Promise.resolve(), !this.$$cn || this.$$c)
270
270
  return;
271
- const t = {}, r = fr(this);
271
+ const t = {}, r = cr(this);
272
272
  for (const i of this.$$s)
273
273
  i in r && (t[i] = [e(i)]);
274
274
  for (const i of this.attributes) {
@@ -304,8 +304,8 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
304
304
  this.$$c.$$.after_update.push(n), n();
305
305
  for (const i in this.$$l)
306
306
  for (const o of this.$$l[i]) {
307
- const s = this.$$c.$on(i, o);
308
- this.$$l_u.set(o, s);
307
+ const a = this.$$c.$on(i, o);
308
+ this.$$l_u.set(o, a);
309
309
  }
310
310
  this.$$l = {};
311
311
  }
@@ -355,34 +355,34 @@ function ue(e, t, r, n) {
355
355
  return t;
356
356
  }
357
357
  }
358
- function wr(e, t, r, n, i, o) {
359
- let s = class extends Ht {
358
+ function Br(e, t, r, n, i, o) {
359
+ let a = class extends Tt {
360
360
  constructor() {
361
361
  super(e, r, i), this.$$p_d = t;
362
362
  }
363
363
  static get observedAttributes() {
364
364
  return Object.keys(t).map(
365
- (a) => (t[a].attribute || a).toLowerCase()
365
+ (s) => (t[s].attribute || s).toLowerCase()
366
366
  );
367
367
  }
368
368
  };
369
- return Object.keys(t).forEach((a) => {
370
- Object.defineProperty(s.prototype, a, {
369
+ return Object.keys(t).forEach((s) => {
370
+ Object.defineProperty(a.prototype, s, {
371
371
  get() {
372
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
372
+ return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
373
373
  },
374
374
  set(u) {
375
- u = ue(a, u, t), this.$$d[a] = u, this.$$c?.$set({ [a]: u });
375
+ u = ue(s, u, t), this.$$d[s] = u, this.$$c?.$set({ [s]: u });
376
376
  }
377
377
  });
378
- }), n.forEach((a) => {
379
- Object.defineProperty(s.prototype, a, {
378
+ }), n.forEach((s) => {
379
+ Object.defineProperty(a.prototype, s, {
380
380
  get() {
381
- return this.$$c?.[a];
381
+ return this.$$c?.[s];
382
382
  }
383
383
  });
384
384
  }), e.element = /** @type {any} */
385
- s, s;
385
+ a, a;
386
386
  }
387
387
  class Tr {
388
388
  /**
@@ -403,7 +403,7 @@ class Tr {
403
403
  $$set = void 0;
404
404
  /** @returns {void} */
405
405
  $destroy() {
406
- xr(this, 1), this.$destroy = w;
406
+ xr(this, 1), this.$destroy = T;
407
407
  }
408
408
  /**
409
409
  * @template {Extract<keyof Events, string>} K
@@ -412,8 +412,8 @@ class Tr {
412
412
  * @returns {() => void}
413
413
  */
414
414
  $on(t, r) {
415
- if (!We(r))
416
- return w;
415
+ if (!ke(r))
416
+ return T;
417
417
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
418
418
  return n.push(r), () => {
419
419
  const i = n.indexOf(r);
@@ -425,18 +425,18 @@ class Tr {
425
425
  * @returns {void}
426
426
  */
427
427
  $set(t) {
428
- this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
428
+ this.$$set && !nr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
429
429
  }
430
430
  }
431
- const Hr = "4";
432
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
433
- function Pr(e, t) {
431
+ const wr = "4";
432
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
433
+ function Hr(e, t) {
434
434
  if (e) {
435
435
  const r = document.createElement("style");
436
436
  r.innerHTML = t, e.appendChild(r);
437
437
  }
438
438
  }
439
- function Ar(e, t) {
439
+ function Pr(e, t) {
440
440
  if (!e || !t)
441
441
  return;
442
442
  const r = new URL(t);
@@ -447,7 +447,7 @@ function Ar(e, t) {
447
447
  console.error("There was an error while trying to load client styling from URL", n);
448
448
  });
449
449
  }
450
- function Or(e, t, r) {
450
+ function Ar(e, t, r) {
451
451
  if (window.emMessageBus) {
452
452
  const n = document.createElement("style");
453
453
  window.emMessageBus.subscribe(t, (i) => {
@@ -469,24 +469,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
469
469
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
470
470
  PERFORMANCE OF THIS SOFTWARE.
471
471
  ***************************************************************************** */
472
- var Ne = function(e, t) {
473
- return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
472
+ var Oe = function(e, t) {
473
+ return Oe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
474
474
  r.__proto__ = n;
475
475
  } || function(r, n) {
476
476
  for (var i in n)
477
477
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
478
- }, Ne(e, t);
478
+ }, Oe(e, t);
479
479
  };
480
- function te(e, t) {
480
+ function A(e, t) {
481
481
  if (typeof t != "function" && t !== null)
482
482
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
483
- Ne(e, t);
483
+ Oe(e, t);
484
484
  function r() {
485
485
  this.constructor = e;
486
486
  }
487
487
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
488
488
  }
489
- function Le(e) {
489
+ var b = function() {
490
+ return b = Object.assign || function(t) {
491
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
492
+ r = arguments[n];
493
+ for (var o in r)
494
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
495
+ }
496
+ return t;
497
+ }, b.apply(this, arguments);
498
+ };
499
+ function Or(e, t) {
500
+ var r = {};
501
+ for (var n in e)
502
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
503
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
504
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
505
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
506
+ return r;
507
+ }
508
+ function Ie(e) {
490
509
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
491
510
  if (r)
492
511
  return r.call(e);
@@ -498,42 +517,42 @@ function Le(e) {
498
517
  };
499
518
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
500
519
  }
501
- function Ce(e, t) {
520
+ function Le(e, t) {
502
521
  var r = typeof Symbol == "function" && e[Symbol.iterator];
503
522
  if (!r)
504
523
  return e;
505
- var n = r.call(e), i, o = [], s;
524
+ var n = r.call(e), i, o = [], a;
506
525
  try {
507
526
  for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
508
527
  o.push(i.value);
509
- } catch (a) {
510
- s = { error: a };
528
+ } catch (s) {
529
+ a = { error: s };
511
530
  } finally {
512
531
  try {
513
532
  i && !i.done && (r = n.return) && r.call(n);
514
533
  } finally {
515
- if (s)
516
- throw s.error;
534
+ if (a)
535
+ throw a.error;
517
536
  }
518
537
  }
519
538
  return o;
520
539
  }
521
- function Me(e, t, r) {
522
- if (arguments.length === 2)
540
+ function G(e, t, r) {
541
+ if (r || arguments.length === 2)
523
542
  for (var n = 0, i = t.length, o; n < i; n++)
524
543
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
525
544
  return e.concat(o || t);
526
545
  }
527
- function A(e) {
546
+ function P(e) {
528
547
  return typeof e == "function";
529
548
  }
530
- function Pt(e) {
549
+ function wt(e) {
531
550
  var t = function(n) {
532
551
  Error.call(n), n.stack = new Error().stack;
533
552
  }, r = e(t);
534
553
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
535
554
  }
536
- var Se = Pt(function(e) {
555
+ var xe = wt(function(e) {
537
556
  return function(r) {
538
557
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
539
558
  ` + r.map(function(n, i) {
@@ -542,13 +561,13 @@ var Se = Pt(function(e) {
542
561
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
543
562
  };
544
563
  });
545
- function $e(e, t) {
564
+ function Ne(e, t) {
546
565
  if (e) {
547
566
  var r = e.indexOf(t);
548
567
  0 <= r && e.splice(r, 1);
549
568
  }
550
569
  }
551
- var be = function() {
570
+ var de = function() {
552
571
  function e(t) {
553
572
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
554
573
  }
@@ -556,47 +575,47 @@ var be = function() {
556
575
  var t, r, n, i, o;
557
576
  if (!this.closed) {
558
577
  this.closed = !0;
559
- var s = this._parentage;
560
- if (s)
561
- if (this._parentage = null, Array.isArray(s))
578
+ var a = this._parentage;
579
+ if (a)
580
+ if (this._parentage = null, Array.isArray(a))
562
581
  try {
563
- for (var a = Le(s), u = a.next(); !u.done; u = a.next()) {
582
+ for (var s = Ie(a), u = s.next(); !u.done; u = s.next()) {
564
583
  var h = u.value;
565
584
  h.remove(this);
566
585
  }
567
- } catch (b) {
568
- t = { error: b };
586
+ } catch (g) {
587
+ t = { error: g };
569
588
  } finally {
570
589
  try {
571
- u && !u.done && (r = a.return) && r.call(a);
590
+ u && !u.done && (r = s.return) && r.call(s);
572
591
  } finally {
573
592
  if (t)
574
593
  throw t.error;
575
594
  }
576
595
  }
577
596
  else
578
- s.remove(this);
597
+ a.remove(this);
579
598
  var l = this.initialTeardown;
580
- if (A(l))
599
+ if (P(l))
581
600
  try {
582
601
  l();
583
- } catch (b) {
584
- o = b instanceof Se ? b.errors : [b];
602
+ } catch (g) {
603
+ o = g instanceof xe ? g.errors : [g];
585
604
  }
586
605
  var c = this._finalizers;
587
606
  if (c) {
588
607
  this._finalizers = null;
589
608
  try {
590
- for (var f = Le(c), m = f.next(); !m.done; m = f.next()) {
591
- var g = m.value;
609
+ for (var f = Ie(c), m = f.next(); !m.done; m = f.next()) {
610
+ var y = m.value;
592
611
  try {
593
- tt(g);
594
- } catch (b) {
595
- o = o ?? [], b instanceof Se ? o = Me(Me([], Ce(o)), Ce(b.errors)) : o.push(b);
612
+ Ke(y);
613
+ } catch (g) {
614
+ o = o ?? [], g instanceof xe ? o = G(G([], Le(o)), Le(g.errors)) : o.push(g);
596
615
  }
597
616
  }
598
- } catch (b) {
599
- n = { error: b };
617
+ } catch (g) {
618
+ n = { error: g };
600
619
  } finally {
601
620
  try {
602
621
  m && !m.done && (i = f.return) && i.call(f);
@@ -607,13 +626,13 @@ var be = function() {
607
626
  }
608
627
  }
609
628
  if (o)
610
- throw new Se(o);
629
+ throw new xe(o);
611
630
  }
612
631
  }, e.prototype.add = function(t) {
613
632
  var r;
614
633
  if (t && t !== this)
615
634
  if (this.closed)
616
- tt(t);
635
+ Ke(t);
617
636
  else {
618
637
  if (t instanceof e) {
619
638
  if (t.closed || t._hasParent(this))
@@ -630,28 +649,32 @@ var be = function() {
630
649
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
631
650
  }, e.prototype._removeParent = function(t) {
632
651
  var r = this._parentage;
633
- r === t ? this._parentage = null : Array.isArray(r) && $e(r, t);
652
+ r === t ? this._parentage = null : Array.isArray(r) && Ne(r, t);
634
653
  }, e.prototype.remove = function(t) {
635
654
  var r = this._finalizers;
636
- r && $e(r, t), t instanceof e && t._removeParent(this);
655
+ r && Ne(r, t), t instanceof e && t._removeParent(this);
637
656
  }, e.EMPTY = function() {
638
657
  var t = new e();
639
658
  return t.closed = !0, t;
640
659
  }(), e;
641
- }(), At = be.EMPTY;
642
- function Ot(e) {
643
- return e instanceof be || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
644
- }
645
- function tt(e) {
646
- A(e) ? e() : e.unsubscribe();
647
- }
648
- var Ir = {
649
- Promise: void 0
650
- }, Nr = {
660
+ }(), Ht = de.EMPTY;
661
+ function Pt(e) {
662
+ return e instanceof de || e && "closed" in e && P(e.remove) && P(e.add) && P(e.unsubscribe);
663
+ }
664
+ function Ke(e) {
665
+ P(e) ? e() : e.unsubscribe();
666
+ }
667
+ var At = {
668
+ onUnhandledError: null,
669
+ onStoppedNotification: null,
670
+ Promise: void 0,
671
+ useDeprecatedSynchronousErrorHandling: !1,
672
+ useDeprecatedNextContext: !1
673
+ }, Ir = {
651
674
  setTimeout: function(e, t) {
652
675
  for (var r = [], n = 2; n < arguments.length; n++)
653
676
  r[n - 2] = arguments[n];
654
- return setTimeout.apply(void 0, Me([e, t], Ce(r)));
677
+ return setTimeout.apply(void 0, G([e, t], Le(r)));
655
678
  },
656
679
  clearTimeout: function(e) {
657
680
  return clearTimeout(e);
@@ -659,23 +682,23 @@ var Ir = {
659
682
  delegate: void 0
660
683
  };
661
684
  function Lr(e) {
662
- Nr.setTimeout(function() {
685
+ Ir.setTimeout(function() {
663
686
  throw e;
664
687
  });
665
688
  }
666
- function rt() {
689
+ function et() {
667
690
  }
668
691
  function he(e) {
669
692
  e();
670
693
  }
671
- var It = function(e) {
672
- te(t, e);
694
+ var Ot = function(e) {
695
+ A(t, e);
673
696
  function t(r) {
674
697
  var n = e.call(this) || this;
675
- return n.isStopped = !1, r ? (n.destination = r, Ot(r) && r.add(n)) : n.destination = $r, n;
698
+ return n.isStopped = !1, r ? (n.destination = r, Pt(r) && r.add(n)) : n.destination = Rr, n;
676
699
  }
677
700
  return t.create = function(r, n, i) {
678
- return new Re(r, n, i);
701
+ return new Ce(r, n, i);
679
702
  }, t.prototype.next = function(r) {
680
703
  this.isStopped || this._next(r);
681
704
  }, t.prototype.error = function(r) {
@@ -699,7 +722,11 @@ var It = function(e) {
699
722
  this.unsubscribe();
700
723
  }
701
724
  }, t;
702
- }(be), Cr = function() {
725
+ }(de), Nr = Function.prototype.bind;
726
+ function _e(e, t) {
727
+ return Nr.call(e, t);
728
+ }
729
+ var Cr = function() {
703
730
  function e(t) {
704
731
  this.partialObserver = t;
705
732
  }
@@ -730,30 +757,42 @@ var It = function(e) {
730
757
  ie(r);
731
758
  }
732
759
  }, e;
733
- }(), Re = function(e) {
734
- te(t, e);
760
+ }(), Ce = function(e) {
761
+ A(t, e);
735
762
  function t(r, n, i) {
736
- var o = e.call(this) || this, s;
737
- return A(r) || !r ? s = {
738
- next: r ?? void 0,
739
- error: n ?? void 0,
740
- complete: i ?? void 0
741
- } : s = r, o.destination = new Cr(s), o;
763
+ var o = e.call(this) || this, a;
764
+ if (P(r) || !r)
765
+ a = {
766
+ next: r ?? void 0,
767
+ error: n ?? void 0,
768
+ complete: i ?? void 0
769
+ };
770
+ else {
771
+ var s;
772
+ o && At.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
773
+ return o.unsubscribe();
774
+ }, a = {
775
+ next: r.next && _e(r.next, s),
776
+ error: r.error && _e(r.error, s),
777
+ complete: r.complete && _e(r.complete, s)
778
+ }) : a = r;
779
+ }
780
+ return o.destination = new Cr(a), o;
742
781
  }
743
782
  return t;
744
- }(It);
783
+ }(Ot);
745
784
  function ie(e) {
746
785
  Lr(e);
747
786
  }
748
787
  function Mr(e) {
749
788
  throw e;
750
789
  }
751
- var $r = {
790
+ var Rr = {
752
791
  closed: !0,
753
- next: rt,
792
+ next: et,
754
793
  error: Mr,
755
- complete: rt
756
- }, Rr = function() {
794
+ complete: et
795
+ }, $r = function() {
757
796
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
758
797
  }();
759
798
  function Ur(e) {
@@ -766,7 +805,7 @@ function Dr(e) {
766
805
  }, r);
767
806
  };
768
807
  }
769
- var nt = function() {
808
+ var tt = function() {
770
809
  function e(t) {
771
810
  t && (this._subscribe = t);
772
811
  }
@@ -774,10 +813,10 @@ var nt = function() {
774
813
  var r = new e();
775
814
  return r.source = this, r.operator = t, r;
776
815
  }, e.prototype.subscribe = function(t, r, n) {
777
- var i = this, o = Fr(t) ? t : new Re(t, r, n);
816
+ var i = this, o = Gr(t) ? t : new Ce(t, r, n);
778
817
  return he(function() {
779
- var s = i, a = s.operator, u = s.source;
780
- o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
818
+ var a = i, s = a.operator, u = a.source;
819
+ o.add(s ? s.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
781
820
  }), o;
782
821
  }, e.prototype._trySubscribe = function(t) {
783
822
  try {
@@ -787,24 +826,24 @@ var nt = function() {
787
826
  }
788
827
  }, e.prototype.forEach = function(t, r) {
789
828
  var n = this;
790
- return r = it(r), new r(function(i, o) {
791
- var s = new Re({
792
- next: function(a) {
829
+ return r = rt(r), new r(function(i, o) {
830
+ var a = new Ce({
831
+ next: function(s) {
793
832
  try {
794
- t(a);
833
+ t(s);
795
834
  } catch (u) {
796
- o(u), s.unsubscribe();
835
+ o(u), a.unsubscribe();
797
836
  }
798
837
  },
799
838
  error: o,
800
839
  complete: i
801
840
  });
802
- n.subscribe(s);
841
+ n.subscribe(a);
803
842
  });
804
843
  }, e.prototype._subscribe = function(t) {
805
844
  var r;
806
845
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
807
- }, e.prototype[Rr] = function() {
846
+ }, e.prototype[$r] = function() {
808
847
  return this;
809
848
  }, e.prototype.pipe = function() {
810
849
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -812,12 +851,12 @@ var nt = function() {
812
851
  return Dr(t)(this);
813
852
  }, e.prototype.toPromise = function(t) {
814
853
  var r = this;
815
- return t = it(t), new t(function(n, i) {
854
+ return t = rt(t), new t(function(n, i) {
816
855
  var o;
817
- r.subscribe(function(s) {
818
- return o = s;
819
- }, function(s) {
820
- return i(s);
856
+ r.subscribe(function(a) {
857
+ return o = a;
858
+ }, function(a) {
859
+ return i(a);
821
860
  }, function() {
822
861
  return n(o);
823
862
  });
@@ -826,28 +865,28 @@ var nt = function() {
826
865
  return new e(t);
827
866
  }, e;
828
867
  }();
829
- function it(e) {
868
+ function rt(e) {
830
869
  var t;
831
- return (t = e ?? Ir.Promise) !== null && t !== void 0 ? t : Promise;
832
- }
833
- function Gr(e) {
834
- return e && A(e.next) && A(e.error) && A(e.complete);
870
+ return (t = e ?? At.Promise) !== null && t !== void 0 ? t : Promise;
835
871
  }
836
872
  function Fr(e) {
837
- return e && e instanceof It || Gr(e) && Ot(e);
873
+ return e && P(e.next) && P(e.error) && P(e.complete);
874
+ }
875
+ function Gr(e) {
876
+ return e && e instanceof Ot || Fr(e) && Pt(e);
838
877
  }
839
- var jr = Pt(function(e) {
878
+ var jr = wt(function(e) {
840
879
  return function() {
841
880
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
842
881
  };
843
- }), Nt = function(e) {
844
- te(t, e);
882
+ }), It = function(e) {
883
+ A(t, e);
845
884
  function t() {
846
885
  var r = e.call(this) || this;
847
886
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
848
887
  }
849
888
  return t.prototype.lift = function(r) {
850
- var n = new ot(this, this);
889
+ var n = new nt(this, this);
851
890
  return n.operator = r, n;
852
891
  }, t.prototype._throwIfClosed = function() {
853
892
  if (this.closed)
@@ -859,15 +898,15 @@ var jr = Pt(function(e) {
859
898
  if (n._throwIfClosed(), !n.isStopped) {
860
899
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
861
900
  try {
862
- for (var s = Le(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
863
- var u = a.value;
901
+ for (var a = Ie(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
902
+ var u = s.value;
864
903
  u.next(r);
865
904
  }
866
905
  } catch (h) {
867
906
  i = { error: h };
868
907
  } finally {
869
908
  try {
870
- a && !a.done && (o = s.return) && o.call(s);
909
+ s && !s.done && (o = a.return) && o.call(a);
871
910
  } finally {
872
911
  if (i)
873
912
  throw i.error;
@@ -907,21 +946,21 @@ var jr = Pt(function(e) {
907
946
  }, t.prototype._subscribe = function(r) {
908
947
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
909
948
  }, t.prototype._innerSubscribe = function(r) {
910
- var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
911
- return o || s ? At : (this.currentObservers = null, a.push(r), new be(function() {
912
- n.currentObservers = null, $e(a, r);
949
+ var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
950
+ return o || a ? Ht : (this.currentObservers = null, s.push(r), new de(function() {
951
+ n.currentObservers = null, Ne(s, r);
913
952
  }));
914
953
  }, t.prototype._checkFinalizedStatuses = function(r) {
915
- var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
916
- i ? r.error(o) : s && r.complete();
954
+ var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
955
+ i ? r.error(o) : a && r.complete();
917
956
  }, t.prototype.asObservable = function() {
918
- var r = new nt();
957
+ var r = new tt();
919
958
  return r.source = this, r;
920
959
  }, t.create = function(r, n) {
921
- return new ot(r, n);
960
+ return new nt(r, n);
922
961
  }, t;
923
- }(nt), ot = function(e) {
924
- te(t, e);
962
+ }(tt), nt = function(e) {
963
+ A(t, e);
925
964
  function t(r, n) {
926
965
  var i = e.call(this) || this;
927
966
  return i.destination = r, i.source = n, i;
@@ -937,54 +976,54 @@ var jr = Pt(function(e) {
937
976
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
938
977
  }, t.prototype._subscribe = function(r) {
939
978
  var n, i;
940
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : At;
979
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ht;
941
980
  }, t;
942
- }(Nt), Lt = {
981
+ }(It), Lt = {
943
982
  now: function() {
944
983
  return (Lt.delegate || Date).now();
945
984
  },
946
985
  delegate: void 0
947
986
  }, kr = function(e) {
948
- te(t, e);
987
+ A(t, e);
949
988
  function t(r, n, i) {
950
989
  r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lt);
951
990
  var o = e.call(this) || this;
952
991
  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;
953
992
  }
954
993
  return t.prototype.next = function(r) {
955
- var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
956
- i || (o.push(r), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
994
+ var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, u = n._windowTime;
995
+ i || (o.push(r), !a && o.push(s.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
957
996
  }, t.prototype._subscribe = function(r) {
958
997
  this._throwIfClosed(), this._trimBuffer();
959
- 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)
960
- r.next(a[u]);
998
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), u = 0; u < s.length && !r.closed; u += o ? 1 : 2)
999
+ r.next(s[u]);
961
1000
  return this._checkFinalizedStatuses(r), n;
962
1001
  }, t.prototype._trimBuffer = function() {
963
- var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
964
- if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
1002
+ var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
1003
+ if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
965
1004
  for (var u = i.now(), h = 0, l = 1; l < o.length && o[l] <= u; l += 2)
966
1005
  h = l;
967
1006
  h && o.splice(0, h + 1);
968
1007
  }
969
1008
  }, t;
970
- }(Nt);
971
- const st = [], at = {}, Vr = (e, t = 0) => {
972
- if (st.indexOf(e) == -1) {
1009
+ }(It);
1010
+ const it = [], ot = {}, Vr = (e, t = 0) => {
1011
+ if (it.indexOf(e) == -1) {
973
1012
  const r = new kr(t);
974
- at[e] = r, st.push(e);
1013
+ ot[e] = r, it.push(e);
975
1014
  }
976
- return at[e];
1015
+ return ot[e];
977
1016
  }, U = [];
978
1017
  function Xr(e, t) {
979
1018
  return {
980
- subscribe: ge(e, t).subscribe
1019
+ subscribe: be(e, t).subscribe
981
1020
  };
982
1021
  }
983
- function ge(e, t = w) {
1022
+ function be(e, t = T) {
984
1023
  let r;
985
1024
  const n = /* @__PURE__ */ new Set();
986
- function i(a) {
987
- if (Bt(e, a) && (e = a, r)) {
1025
+ function i(s) {
1026
+ if (_t(e, s) && (e = s, r)) {
988
1027
  const u = !U.length;
989
1028
  for (const h of n)
990
1029
  h[1](), U.push(h, e);
@@ -995,45 +1034,45 @@ function ge(e, t = w) {
995
1034
  }
996
1035
  }
997
1036
  }
998
- function o(a) {
999
- i(a(e));
1037
+ function o(s) {
1038
+ i(s(e));
1000
1039
  }
1001
- function s(a, u = w) {
1002
- const h = [a, u];
1003
- return n.add(h), n.size === 1 && (r = t(i, o) || w), a(e), () => {
1040
+ function a(s, u = T) {
1041
+ const h = [s, u];
1042
+ return n.add(h), n.size === 1 && (r = t(i, o) || T), s(e), () => {
1004
1043
  n.delete(h), n.size === 0 && r && (r(), r = null);
1005
1044
  };
1006
1045
  }
1007
- return { set: i, update: o, subscribe: s };
1046
+ return { set: i, update: o, subscribe: a };
1008
1047
  }
1009
- function X(e, t, r) {
1048
+ function z(e, t, r) {
1010
1049
  const n = !Array.isArray(e), i = n ? [e] : e;
1011
1050
  if (!i.every(Boolean))
1012
1051
  throw new Error("derived() expects stores as input, got a falsy value");
1013
1052
  const o = t.length < 2;
1014
- return Xr(r, (s, a) => {
1053
+ return Xr(r, (a, s) => {
1015
1054
  let u = !1;
1016
1055
  const h = [];
1017
- let l = 0, c = w;
1056
+ let l = 0, c = T;
1018
1057
  const f = () => {
1019
1058
  if (l)
1020
1059
  return;
1021
1060
  c();
1022
- const g = t(n ? h[0] : h, s, a);
1023
- o ? s(g) : c = We(g) ? g : w;
1061
+ const y = t(n ? h[0] : h, a, s);
1062
+ o ? a(y) : c = ke(y) ? y : T;
1024
1063
  }, m = i.map(
1025
- (g, b) => wt(
1026
- g,
1064
+ (y, g) => St(
1065
+ y,
1027
1066
  (B) => {
1028
- h[b] = B, l &= ~(1 << b), u && f();
1067
+ h[g] = B, l &= ~(1 << g), u && f();
1029
1068
  },
1030
1069
  () => {
1031
- l |= 1 << b;
1070
+ l |= 1 << g;
1032
1071
  }
1033
1072
  )
1034
1073
  );
1035
1074
  return u = !0, f(), function() {
1036
- ee(m), c(), u = !1;
1075
+ te(m), c(), u = !1;
1037
1076
  };
1038
1077
  });
1039
1078
  }
@@ -1057,29 +1096,29 @@ function qr(e) {
1057
1096
  function Kr(e) {
1058
1097
  return Array.isArray(e) ? [] : {};
1059
1098
  }
1060
- function q(e, t) {
1061
- return t.clone !== !1 && t.isMergeableObject(e) ? F(Kr(e), e, t) : e;
1099
+ function K(e, t) {
1100
+ return t.clone !== !1 && t.isMergeableObject(e) ? j(Kr(e), e, t) : e;
1062
1101
  }
1063
1102
  function en(e, t, r) {
1064
1103
  return e.concat(t).map(function(n) {
1065
- return q(n, r);
1104
+ return K(n, r);
1066
1105
  });
1067
1106
  }
1068
1107
  function tn(e, t) {
1069
1108
  if (!t.customMerge)
1070
- return F;
1109
+ return j;
1071
1110
  var r = t.customMerge(e);
1072
- return typeof r == "function" ? r : F;
1111
+ return typeof r == "function" ? r : j;
1073
1112
  }
1074
1113
  function rn(e) {
1075
1114
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1076
1115
  return Object.propertyIsEnumerable.call(e, t);
1077
1116
  }) : [];
1078
1117
  }
1079
- function ut(e) {
1118
+ function st(e) {
1080
1119
  return Object.keys(e).concat(rn(e));
1081
1120
  }
1082
- function Ct(e, t) {
1121
+ function Nt(e, t) {
1083
1122
  try {
1084
1123
  return t in e;
1085
1124
  } catch {
@@ -1087,179 +1126,129 @@ function Ct(e, t) {
1087
1126
  }
1088
1127
  }
1089
1128
  function nn(e, t) {
1090
- return Ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1129
+ return Nt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1091
1130
  }
1092
1131
  function on(e, t, r) {
1093
1132
  var n = {};
1094
- return r.isMergeableObject(e) && ut(e).forEach(function(i) {
1095
- n[i] = q(e[i], r);
1096
- }), ut(t).forEach(function(i) {
1097
- nn(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = tn(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
1133
+ return r.isMergeableObject(e) && st(e).forEach(function(i) {
1134
+ n[i] = K(e[i], r);
1135
+ }), st(t).forEach(function(i) {
1136
+ nn(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = tn(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
1098
1137
  }), n;
1099
1138
  }
1100
- function F(e, t, r) {
1101
- r = r || {}, r.arrayMerge = r.arrayMerge || en, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified = q;
1139
+ function j(e, t, r) {
1140
+ r = r || {}, r.arrayMerge = r.arrayMerge || en, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified = K;
1102
1141
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1103
- return o ? n ? r.arrayMerge(e, t, r) : on(e, t, r) : q(t, r);
1142
+ return o ? n ? r.arrayMerge(e, t, r) : on(e, t, r) : K(t, r);
1104
1143
  }
1105
- F.all = function(t, r) {
1144
+ j.all = function(t, r) {
1106
1145
  if (!Array.isArray(t))
1107
1146
  throw new Error("first argument should be an array");
1108
1147
  return t.reduce(function(n, i) {
1109
- return F(n, i, r);
1148
+ return j(n, i, r);
1110
1149
  }, {});
1111
1150
  };
1112
- var sn = F, an = sn;
1151
+ var sn = j, an = sn;
1113
1152
  const un = /* @__PURE__ */ zr(an);
1114
- var Ue = function(e, t) {
1115
- return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1116
- r.__proto__ = n;
1117
- } || function(r, n) {
1118
- for (var i in n)
1119
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1120
- }, Ue(e, t);
1121
- };
1122
- function ye(e, t) {
1123
- if (typeof t != "function" && t !== null)
1124
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1125
- Ue(e, t);
1126
- function r() {
1127
- this.constructor = e;
1128
- }
1129
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1130
- }
1131
- var H = function() {
1132
- return H = Object.assign || function(t) {
1133
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1134
- r = arguments[n];
1135
- for (var o in r)
1136
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1137
- }
1138
- return t;
1139
- }, H.apply(this, arguments);
1140
- };
1141
- function hn(e, t) {
1142
- var r = {};
1143
- for (var n in e)
1144
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1145
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
1146
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1147
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1148
- return r;
1149
- }
1150
- function Be(e, t, r) {
1151
- if (r || arguments.length === 2)
1152
- for (var n = 0, i = t.length, o; n < i; n++)
1153
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1154
- return e.concat(o || Array.prototype.slice.call(t));
1155
- }
1156
- function we(e, t) {
1157
- var r = t && t.cache ? t.cache : bn, n = t && t.serializer ? t.serializer : mn, i = t && t.strategy ? t.strategy : fn;
1153
+ function Se(e, t) {
1154
+ var r = t && t.cache ? t.cache : mn, n = t && t.serializer ? t.serializer : pn, i = t && t.strategy ? t.strategy : ln;
1158
1155
  return i(e, {
1159
1156
  cache: r,
1160
1157
  serializer: n
1161
1158
  });
1162
1159
  }
1163
- function ln(e) {
1160
+ function hn(e) {
1164
1161
  return e == null || typeof e == "number" || typeof e == "boolean";
1165
1162
  }
1166
- function cn(e, t, r, n) {
1167
- var i = ln(n) ? n : r(n), o = t.get(i);
1163
+ function Ct(e, t, r, n) {
1164
+ var i = hn(n) ? n : r(n), o = t.get(i);
1168
1165
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1169
1166
  }
1170
1167
  function Mt(e, t, r) {
1171
1168
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1172
1169
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1173
1170
  }
1174
- function $t(e, t, r, n, i) {
1171
+ function Xe(e, t, r, n, i) {
1175
1172
  return r.bind(t, e, n, i);
1176
1173
  }
1177
- function fn(e, t) {
1178
- var r = e.length === 1 ? cn : Mt;
1179
- return $t(e, this, r, t.cache.create(), t.serializer);
1174
+ function ln(e, t) {
1175
+ var r = e.length === 1 ? Ct : Mt;
1176
+ return Xe(e, this, r, t.cache.create(), t.serializer);
1180
1177
  }
1181
- function pn(e, t) {
1182
- return $t(e, this, Mt, t.cache.create(), t.serializer);
1178
+ function cn(e, t) {
1179
+ return Xe(e, this, Mt, t.cache.create(), t.serializer);
1183
1180
  }
1184
- var mn = function() {
1181
+ function fn(e, t) {
1182
+ return Xe(e, this, Ct, t.cache.create(), t.serializer);
1183
+ }
1184
+ var pn = function() {
1185
1185
  return JSON.stringify(arguments);
1186
- }, dn = (
1187
- /** @class */
1188
- function() {
1189
- function e() {
1190
- this.cache = /* @__PURE__ */ Object.create(null);
1191
- }
1192
- return e.prototype.get = function(t) {
1193
- return this.cache[t];
1194
- }, e.prototype.set = function(t, r) {
1195
- this.cache[t] = r;
1196
- }, e;
1197
- }()
1198
- ), bn = {
1186
+ };
1187
+ function ze() {
1188
+ this.cache = /* @__PURE__ */ Object.create(null);
1189
+ }
1190
+ ze.prototype.get = function(e) {
1191
+ return this.cache[e];
1192
+ };
1193
+ ze.prototype.set = function(e, t) {
1194
+ this.cache[e] = t;
1195
+ };
1196
+ var mn = {
1199
1197
  create: function() {
1200
- return new dn();
1198
+ return new ze();
1201
1199
  }
1202
- }, Te = {
1203
- variadic: pn
1204
- }, pe = function() {
1205
- return pe = Object.assign || function(t) {
1206
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1207
- r = arguments[n];
1208
- for (var o in r)
1209
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1210
- }
1211
- return t;
1212
- }, pe.apply(this, arguments);
1213
- };
1214
- var p;
1200
+ }, Be = {
1201
+ variadic: cn,
1202
+ monadic: fn
1203
+ }, p;
1215
1204
  (function(e) {
1216
1205
  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";
1217
1206
  })(p || (p = {}));
1218
- var v;
1207
+ var E;
1219
1208
  (function(e) {
1220
1209
  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";
1221
- })(v || (v = {}));
1222
- var j;
1210
+ })(E || (E = {}));
1211
+ var k;
1223
1212
  (function(e) {
1224
1213
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1225
- })(j || (j = {}));
1226
- function ht(e) {
1227
- return e.type === v.literal;
1214
+ })(k || (k = {}));
1215
+ function at(e) {
1216
+ return e.type === E.literal;
1228
1217
  }
1229
- function gn(e) {
1230
- return e.type === v.argument;
1218
+ function dn(e) {
1219
+ return e.type === E.argument;
1231
1220
  }
1232
1221
  function Rt(e) {
1233
- return e.type === v.number;
1222
+ return e.type === E.number;
1223
+ }
1224
+ function $t(e) {
1225
+ return e.type === E.date;
1234
1226
  }
1235
1227
  function Ut(e) {
1236
- return e.type === v.date;
1228
+ return e.type === E.time;
1237
1229
  }
1238
1230
  function Dt(e) {
1239
- return e.type === v.time;
1240
- }
1241
- function Gt(e) {
1242
- return e.type === v.select;
1231
+ return e.type === E.select;
1243
1232
  }
1244
1233
  function Ft(e) {
1245
- return e.type === v.plural;
1234
+ return e.type === E.plural;
1246
1235
  }
1247
- function yn(e) {
1248
- return e.type === v.pound;
1236
+ function bn(e) {
1237
+ return e.type === E.pound;
1249
1238
  }
1250
- function jt(e) {
1251
- return e.type === v.tag;
1239
+ function Gt(e) {
1240
+ return e.type === E.tag;
1252
1241
  }
1253
- function kt(e) {
1254
- return !!(e && typeof e == "object" && e.type === j.number);
1242
+ function jt(e) {
1243
+ return !!(e && typeof e == "object" && e.type === k.number);
1255
1244
  }
1256
- function De(e) {
1257
- return !!(e && typeof e == "object" && e.type === j.dateTime);
1245
+ function Me(e) {
1246
+ return !!(e && typeof e == "object" && e.type === k.dateTime);
1258
1247
  }
1259
- var Vt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, vn = /(?:[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;
1260
- function En(e) {
1248
+ var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gn = /(?:[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;
1249
+ function yn(e) {
1261
1250
  var t = {};
1262
- return e.replace(vn, function(r) {
1251
+ return e.replace(gn, function(r) {
1263
1252
  var n = r.length;
1264
1253
  switch (r[0]) {
1265
1254
  case "G":
@@ -1348,46 +1337,36 @@ function En(e) {
1348
1337
  return "";
1349
1338
  }), t;
1350
1339
  }
1351
- var E = function() {
1352
- return E = Object.assign || function(t) {
1353
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1354
- r = arguments[n];
1355
- for (var o in r)
1356
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1357
- }
1358
- return t;
1359
- }, E.apply(this, arguments);
1360
- };
1361
- var _n = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1362
- function xn(e) {
1340
+ var vn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1341
+ function En(e) {
1363
1342
  if (e.length === 0)
1364
1343
  throw new Error("Number skeleton cannot be empty");
1365
- for (var t = e.split(_n).filter(function(f) {
1344
+ for (var t = e.split(vn).filter(function(f) {
1366
1345
  return f.length > 0;
1367
1346
  }), r = [], n = 0, i = t; n < i.length; n++) {
1368
- var o = i[n], s = o.split("/");
1369
- if (s.length === 0)
1347
+ var o = i[n], a = o.split("/");
1348
+ if (a.length === 0)
1370
1349
  throw new Error("Invalid number skeleton");
1371
- for (var a = s[0], u = s.slice(1), h = 0, l = u; h < l.length; h++) {
1350
+ for (var s = a[0], u = a.slice(1), h = 0, l = u; h < l.length; h++) {
1372
1351
  var c = l[h];
1373
1352
  if (c.length === 0)
1374
1353
  throw new Error("Invalid number skeleton");
1375
1354
  }
1376
- r.push({ stem: a, options: u });
1355
+ r.push({ stem: s, options: u });
1377
1356
  }
1378
1357
  return r;
1379
1358
  }
1380
- function Sn(e) {
1359
+ function xn(e) {
1381
1360
  return e.replace(/^(.*?)-/, "");
1382
1361
  }
1383
- var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Xt = /^(@+)?(\+|#+)?[rs]?$/g, Bn = /(\*)(0+)|(#+)(0+)|(0+)/g, zt = /^(0+)$/;
1384
- function ct(e) {
1362
+ var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, _n = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
1363
+ function ht(e) {
1385
1364
  var t = {};
1386
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Xt, function(r, n, i) {
1365
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
1387
1366
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1388
1367
  }), t;
1389
1368
  }
1390
- function Wt(e) {
1369
+ function zt(e) {
1391
1370
  switch (e) {
1392
1371
  case "sign-auto":
1393
1372
  return {
@@ -1427,7 +1406,7 @@ function Wt(e) {
1427
1406
  };
1428
1407
  }
1429
1408
  }
1430
- function wn(e) {
1409
+ function Sn(e) {
1431
1410
  var t;
1432
1411
  if (e[0] === "E" && e[1] === "E" ? (t = {
1433
1412
  notation: "engineering"
@@ -1435,17 +1414,17 @@ function wn(e) {
1435
1414
  notation: "scientific"
1436
1415
  }, e = e.slice(1)), t) {
1437
1416
  var r = e.slice(0, 2);
1438
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !zt.test(e))
1417
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xt.test(e))
1439
1418
  throw new Error("Malformed concise eng/scientific notation");
1440
1419
  t.minimumIntegerDigits = e.length;
1441
1420
  }
1442
1421
  return t;
1443
1422
  }
1444
- function ft(e) {
1445
- var t = {}, r = Wt(e);
1423
+ function lt(e) {
1424
+ var t = {}, r = zt(e);
1446
1425
  return r || t;
1447
1426
  }
1448
- function Tn(e) {
1427
+ function Bn(e) {
1449
1428
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1450
1429
  var i = n[r];
1451
1430
  switch (i.stem) {
@@ -1469,7 +1448,7 @@ function Tn(e) {
1469
1448
  continue;
1470
1449
  case "measure-unit":
1471
1450
  case "unit":
1472
- t.style = "unit", t.unit = Sn(i.options[0]);
1451
+ t.style = "unit", t.unit = xn(i.options[0]);
1473
1452
  continue;
1474
1453
  case "compact-short":
1475
1454
  case "K":
@@ -1480,13 +1459,13 @@ function Tn(e) {
1480
1459
  t.notation = "compact", t.compactDisplay = "long";
1481
1460
  continue;
1482
1461
  case "scientific":
1483
- t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
1484
- return E(E({}, u), ft(h));
1462
+ t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
1463
+ return b(b({}, u), lt(h));
1485
1464
  }, {}));
1486
1465
  continue;
1487
1466
  case "engineering":
1488
- t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
1489
- return E(E({}, u), ft(h));
1467
+ t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
1468
+ return b(b({}, u), lt(h));
1490
1469
  }, {}));
1491
1470
  continue;
1492
1471
  case "notation-simple":
@@ -1531,7 +1510,7 @@ function Tn(e) {
1531
1510
  case "integer-width":
1532
1511
  if (i.options.length > 1)
1533
1512
  throw new RangeError("integer-width stems only accept a single optional option");
1534
- i.options[0].replace(Bn, function(u, h, l, c, f, m) {
1513
+ i.options[0].replace(_n, function(u, h, l, c, f, m) {
1535
1514
  if (h)
1536
1515
  t.minimumIntegerDigits = l.length;
1537
1516
  else {
@@ -1544,28 +1523,28 @@ function Tn(e) {
1544
1523
  });
1545
1524
  continue;
1546
1525
  }
1547
- if (zt.test(i.stem)) {
1526
+ if (Xt.test(i.stem)) {
1548
1527
  t.minimumIntegerDigits = i.stem.length;
1549
1528
  continue;
1550
1529
  }
1551
- if (lt.test(i.stem)) {
1530
+ if (ut.test(i.stem)) {
1552
1531
  if (i.options.length > 1)
1553
1532
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1554
- i.stem.replace(lt, function(u, h, l, c, f, m) {
1533
+ i.stem.replace(ut, function(u, h, l, c, f, m) {
1555
1534
  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), "";
1556
1535
  });
1557
1536
  var o = i.options[0];
1558
- o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), ct(o)));
1537
+ o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t), ht(o)));
1559
1538
  continue;
1560
1539
  }
1561
- if (Xt.test(i.stem)) {
1562
- t = E(E({}, t), ct(i.stem));
1540
+ if (Vt.test(i.stem)) {
1541
+ t = b(b({}, t), ht(i.stem));
1563
1542
  continue;
1564
1543
  }
1565
- var s = Wt(i.stem);
1566
- s && (t = E(E({}, t), s));
1567
- var a = wn(i.stem);
1568
- a && (t = E(E({}, t), a));
1544
+ var a = zt(i.stem);
1545
+ a && (t = b(b({}, t), a));
1546
+ var s = Sn(i.stem);
1547
+ s && (t = b(b({}, t), s));
1569
1548
  }
1570
1549
  return t;
1571
1550
  }
@@ -2984,23 +2963,23 @@ var oe = {
2984
2963
  "h"
2985
2964
  ]
2986
2965
  };
2987
- function Hn(e, t) {
2966
+ function Tn(e, t) {
2988
2967
  for (var r = "", n = 0; n < e.length; n++) {
2989
2968
  var i = e.charAt(n);
2990
2969
  if (i === "j") {
2991
2970
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2992
2971
  o++, n++;
2993
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = Pn(t);
2994
- for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
2972
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = wn(t);
2973
+ for ((h == "H" || h == "k") && (s = 0); s-- > 0; )
2995
2974
  r += u;
2996
- for (; s-- > 0; )
2975
+ for (; a-- > 0; )
2997
2976
  r = h + r;
2998
2977
  } else
2999
2978
  i === "J" ? r += "H" : r += i;
3000
2979
  }
3001
2980
  return r;
3002
2981
  }
3003
- function Pn(e) {
2982
+ function wn(e) {
3004
2983
  var t = e.hourCycle;
3005
2984
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3006
2985
  e.hourCycles && // @ts-ignore
@@ -3022,20 +3001,20 @@ function Pn(e) {
3022
3001
  var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
3023
3002
  return i[0];
3024
3003
  }
3025
- var He, An = new RegExp("^".concat(Vt.source, "*")), On = new RegExp("".concat(Vt.source, "*$"));
3004
+ var Te, Hn = new RegExp("^".concat(kt.source, "*")), Pn = new RegExp("".concat(kt.source, "*$"));
3026
3005
  function d(e, t) {
3027
3006
  return { start: e, end: t };
3028
3007
  }
3029
- var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint, Ln = !!Object.fromEntries, Cn = !!String.prototype.codePointAt, Mn = !!String.prototype.trimStart, $n = !!String.prototype.trimEnd, Rn = !!Number.isSafeInteger, Un = Rn ? Number.isSafeInteger : function(e) {
3008
+ var An = !!String.prototype.startsWith && "_a".startsWith("a", 1), On = !!String.fromCodePoint, In = !!Object.fromEntries, Ln = !!String.prototype.codePointAt, Nn = !!String.prototype.trimStart, Cn = !!String.prototype.trimEnd, Mn = !!Number.isSafeInteger, Rn = Mn ? Number.isSafeInteger : function(e) {
3030
3009
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3031
- }, Ge = !0;
3010
+ }, Re = !0;
3032
3011
  try {
3033
- var Dn = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3034
- Ge = ((He = Dn.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
3012
+ var $n = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3013
+ Re = ((Te = $n.exec("a")) === null || Te === void 0 ? void 0 : Te[0]) === "a";
3035
3014
  } catch {
3036
- Ge = !1;
3015
+ Re = !1;
3037
3016
  }
3038
- var pt = In ? (
3017
+ var ct = An ? (
3039
3018
  // Native
3040
3019
  function(t, r, n) {
3041
3020
  return t.startsWith(r, n);
@@ -3045,31 +3024,31 @@ var pt = In ? (
3045
3024
  function(t, r, n) {
3046
3025
  return t.slice(n, n + r.length) === r;
3047
3026
  }
3048
- ), Fe = Nn ? String.fromCodePoint : (
3027
+ ), $e = On ? String.fromCodePoint : (
3049
3028
  // IE11
3050
3029
  function() {
3051
3030
  for (var t = [], r = 0; r < arguments.length; r++)
3052
3031
  t[r] = arguments[r];
3053
- for (var n = "", i = t.length, o = 0, s; i > o; ) {
3054
- if (s = t[o++], s > 1114111)
3055
- throw RangeError(s + " is not a valid code point");
3056
- n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
3032
+ for (var n = "", i = t.length, o = 0, a; i > o; ) {
3033
+ if (a = t[o++], a > 1114111)
3034
+ throw RangeError(a + " is not a valid code point");
3035
+ n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
3057
3036
  }
3058
3037
  return n;
3059
3038
  }
3060
- ), mt = (
3039
+ ), ft = (
3061
3040
  // native
3062
- Ln ? Object.fromEntries : (
3041
+ In ? Object.fromEntries : (
3063
3042
  // Ponyfill
3064
3043
  function(t) {
3065
3044
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
3066
- var o = i[n], s = o[0], a = o[1];
3067
- r[s] = a;
3045
+ var o = i[n], a = o[0], s = o[1];
3046
+ r[a] = s;
3068
3047
  }
3069
3048
  return r;
3070
3049
  }
3071
3050
  )
3072
- ), Zt = Cn ? (
3051
+ ), Wt = Ln ? (
3073
3052
  // Native
3074
3053
  function(t, r) {
3075
3054
  return t.codePointAt(r);
@@ -3083,7 +3062,7 @@ var pt = In ? (
3083
3062
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3084
3063
  }
3085
3064
  }
3086
- ), Gn = Mn ? (
3065
+ ), Un = Nn ? (
3087
3066
  // Native
3088
3067
  function(t) {
3089
3068
  return t.trimStart();
@@ -3091,9 +3070,9 @@ var pt = In ? (
3091
3070
  ) : (
3092
3071
  // Ponyfill
3093
3072
  function(t) {
3094
- return t.replace(An, "");
3073
+ return t.replace(Hn, "");
3095
3074
  }
3096
- ), Fn = $n ? (
3075
+ ), Dn = Cn ? (
3097
3076
  // Native
3098
3077
  function(t) {
3099
3078
  return t.trimEnd();
@@ -3101,32 +3080,32 @@ var pt = In ? (
3101
3080
  ) : (
3102
3081
  // Ponyfill
3103
3082
  function(t) {
3104
- return t.replace(On, "");
3083
+ return t.replace(Pn, "");
3105
3084
  }
3106
3085
  );
3107
- function Qt(e, t) {
3086
+ function Zt(e, t) {
3108
3087
  return new RegExp(e, t);
3109
3088
  }
3110
- var je;
3111
- if (Ge) {
3112
- var dt = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3113
- je = function(t, r) {
3089
+ var Ue;
3090
+ if (Re) {
3091
+ var pt = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3092
+ Ue = function(t, r) {
3114
3093
  var n;
3115
- dt.lastIndex = r;
3116
- var i = dt.exec(t);
3094
+ pt.lastIndex = r;
3095
+ var i = pt.exec(t);
3117
3096
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3118
3097
  };
3119
3098
  } else
3120
- je = function(t, r) {
3099
+ Ue = function(t, r) {
3121
3100
  for (var n = []; ; ) {
3122
- var i = Zt(t, r);
3123
- if (i === void 0 || Jt(i) || Xn(i))
3101
+ var i = Wt(t, r);
3102
+ if (i === void 0 || Qt(i) || kn(i))
3124
3103
  break;
3125
3104
  n.push(i), r += i >= 65536 ? 2 : 1;
3126
3105
  }
3127
- return Fe.apply(void 0, n);
3106
+ return $e.apply(void 0, n);
3128
3107
  };
3129
- var jn = (
3108
+ var Fn = (
3130
3109
  /** @class */
3131
3110
  function() {
3132
3111
  function e(t, r) {
@@ -3140,33 +3119,33 @@ var jn = (
3140
3119
  for (var i = []; !this.isEOF(); ) {
3141
3120
  var o = this.char();
3142
3121
  if (o === 123) {
3143
- var s = this.parseArgument(t, n);
3144
- if (s.err)
3145
- return s;
3146
- i.push(s.val);
3122
+ var a = this.parseArgument(t, n);
3123
+ if (a.err)
3124
+ return a;
3125
+ i.push(a.val);
3147
3126
  } else {
3148
3127
  if (o === 125 && t > 0)
3149
3128
  break;
3150
3129
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3151
- var a = this.clonePosition();
3130
+ var s = this.clonePosition();
3152
3131
  this.bump(), i.push({
3153
- type: v.pound,
3154
- location: d(a, this.clonePosition())
3132
+ type: E.pound,
3133
+ location: d(s, this.clonePosition())
3155
3134
  });
3156
3135
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3157
3136
  if (n)
3158
3137
  break;
3159
3138
  return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
3160
- } else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
3161
- var s = this.parseTag(t, r);
3162
- if (s.err)
3163
- return s;
3164
- i.push(s.val);
3139
+ } else if (o === 60 && !this.ignoreTag && De(this.peek() || 0)) {
3140
+ var a = this.parseTag(t, r);
3141
+ if (a.err)
3142
+ return a;
3143
+ i.push(a.val);
3165
3144
  } else {
3166
- var s = this.parseLiteral(t, r);
3167
- if (s.err)
3168
- return s;
3169
- i.push(s.val);
3145
+ var a = this.parseLiteral(t, r);
3146
+ if (a.err)
3147
+ return a;
3148
+ i.push(a.val);
3170
3149
  }
3171
3150
  }
3172
3151
  }
@@ -3178,7 +3157,7 @@ var jn = (
3178
3157
  if (this.bumpSpace(), this.bumpIf("/>"))
3179
3158
  return {
3180
3159
  val: {
3181
- type: v.literal,
3160
+ type: E.literal,
3182
3161
  value: "<".concat(i, "/>"),
3183
3162
  location: d(n, this.clonePosition())
3184
3163
  },
@@ -3188,27 +3167,27 @@ var jn = (
3188
3167
  var o = this.parseMessage(t + 1, r, !0);
3189
3168
  if (o.err)
3190
3169
  return o;
3191
- var s = o.val, a = this.clonePosition();
3170
+ var a = o.val, s = this.clonePosition();
3192
3171
  if (this.bumpIf("</")) {
3193
- if (this.isEOF() || !ke(this.char()))
3194
- return this.error(p.INVALID_TAG, d(a, this.clonePosition()));
3172
+ if (this.isEOF() || !De(this.char()))
3173
+ return this.error(p.INVALID_TAG, d(s, this.clonePosition()));
3195
3174
  var u = this.clonePosition(), h = this.parseTagName();
3196
3175
  return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG, d(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3197
3176
  val: {
3198
- type: v.tag,
3177
+ type: E.tag,
3199
3178
  value: i,
3200
- children: s,
3179
+ children: a,
3201
3180
  location: d(n, this.clonePosition())
3202
3181
  },
3203
3182
  err: null
3204
- } : this.error(p.INVALID_TAG, d(a, this.clonePosition())));
3183
+ } : this.error(p.INVALID_TAG, d(s, this.clonePosition())));
3205
3184
  } else
3206
3185
  return this.error(p.UNCLOSED_TAG, d(n, this.clonePosition()));
3207
3186
  } else
3208
3187
  return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
3209
3188
  }, e.prototype.parseTagName = function() {
3210
3189
  var t = this.offset();
3211
- for (this.bump(); !this.isEOF() && Vn(this.char()); )
3190
+ for (this.bump(); !this.isEOF() && jn(this.char()); )
3212
3191
  this.bump();
3213
3192
  return this.message.slice(t, this.offset());
3214
3193
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3218,26 +3197,26 @@ var jn = (
3218
3197
  i += o;
3219
3198
  continue;
3220
3199
  }
3221
- var s = this.tryParseUnquoted(t, r);
3222
- if (s) {
3223
- i += s;
3224
- continue;
3225
- }
3226
- var a = this.tryParseLeftAngleBracket();
3200
+ var a = this.tryParseUnquoted(t, r);
3227
3201
  if (a) {
3228
3202
  i += a;
3229
3203
  continue;
3230
3204
  }
3205
+ var s = this.tryParseLeftAngleBracket();
3206
+ if (s) {
3207
+ i += s;
3208
+ continue;
3209
+ }
3231
3210
  break;
3232
3211
  }
3233
3212
  var u = d(n, this.clonePosition());
3234
3213
  return {
3235
- val: { type: v.literal, value: i, location: u },
3214
+ val: { type: E.literal, value: i, location: u },
3236
3215
  err: null
3237
3216
  };
3238
3217
  }, e.prototype.tryParseLeftAngleBracket = function() {
3239
3218
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3240
- !kn(this.peek() || 0)) ? (this.bump(), "<") : null;
3219
+ !Gn(this.peek() || 0)) ? (this.bump(), "<") : null;
3241
3220
  }, e.prototype.tryParseQuote = function(t) {
3242
3221
  if (this.isEOF() || this.char() !== 39)
3243
3222
  return null;
@@ -3271,12 +3250,12 @@ var jn = (
3271
3250
  r.push(n);
3272
3251
  this.bump();
3273
3252
  }
3274
- return Fe.apply(void 0, r);
3253
+ return $e.apply(void 0, r);
3275
3254
  }, e.prototype.tryParseUnquoted = function(t, r) {
3276
3255
  if (this.isEOF())
3277
3256
  return null;
3278
3257
  var n = this.char();
3279
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
3258
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), $e(n));
3280
3259
  }, e.prototype.parseArgument = function(t, r) {
3281
3260
  var n = this.clonePosition();
3282
3261
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3292,7 +3271,7 @@ var jn = (
3292
3271
  case 125:
3293
3272
  return this.bump(), {
3294
3273
  val: {
3295
- type: v.argument,
3274
+ type: E.argument,
3296
3275
  // value does not include the opening and closing braces.
3297
3276
  value: i,
3298
3277
  location: d(n, this.clonePosition())
@@ -3305,15 +3284,15 @@ var jn = (
3305
3284
  return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
3306
3285
  }
3307
3286
  }, e.prototype.parseIdentifierIfPossible = function() {
3308
- var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
3287
+ var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
3309
3288
  this.bumpTo(i);
3310
- var o = this.clonePosition(), s = d(t, o);
3311
- return { value: n, location: s };
3289
+ var o = this.clonePosition(), a = d(t, o);
3290
+ return { value: n, location: a };
3312
3291
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3313
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
3314
- switch (a) {
3292
+ var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
3293
+ switch (s) {
3315
3294
  case "":
3316
- return this.error(p.EXPECT_ARGUMENT_TYPE, d(s, u));
3295
+ return this.error(p.EXPECT_ARGUMENT_TYPE, d(a, u));
3317
3296
  case "number":
3318
3297
  case "date":
3319
3298
  case "time": {
@@ -3324,46 +3303,46 @@ var jn = (
3324
3303
  var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3325
3304
  if (c.err)
3326
3305
  return c;
3327
- var f = Fn(c.val);
3306
+ var f = Dn(c.val);
3328
3307
  if (f.length === 0)
3329
3308
  return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
3330
3309
  var m = d(l, this.clonePosition());
3331
3310
  h = { style: f, styleLocation: m };
3332
3311
  }
3333
- var g = this.tryParseArgumentClose(i);
3334
- if (g.err)
3335
- return g;
3336
- var b = d(i, this.clonePosition());
3337
- if (h && pt(h?.style, "::", 0)) {
3338
- var B = Gn(h.style.slice(2));
3339
- if (a === "number") {
3312
+ var y = this.tryParseArgumentClose(i);
3313
+ if (y.err)
3314
+ return y;
3315
+ var g = d(i, this.clonePosition());
3316
+ if (h && ct(h?.style, "::", 0)) {
3317
+ var B = Un(h.style.slice(2));
3318
+ if (s === "number") {
3340
3319
  var c = this.parseNumberSkeletonFromString(B, h.styleLocation);
3341
3320
  return c.err ? c : {
3342
- val: { type: v.number, value: n, location: b, style: c.val },
3321
+ val: { type: E.number, value: n, location: g, style: c.val },
3343
3322
  err: null
3344
3323
  };
3345
3324
  } else {
3346
3325
  if (B.length === 0)
3347
- return this.error(p.EXPECT_DATE_TIME_SKELETON, b);
3348
- var N = B;
3349
- this.locale && (N = Hn(B, this.locale));
3326
+ return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
3327
+ var L = B;
3328
+ this.locale && (L = Tn(B, this.locale));
3350
3329
  var f = {
3351
- type: j.dateTime,
3352
- pattern: N,
3330
+ type: k.dateTime,
3331
+ pattern: L,
3353
3332
  location: h.styleLocation,
3354
- parsedOptions: this.shouldParseSkeletons ? En(N) : {}
3355
- }, O = a === "date" ? v.date : v.time;
3333
+ parsedOptions: this.shouldParseSkeletons ? yn(L) : {}
3334
+ }, O = s === "date" ? E.date : E.time;
3356
3335
  return {
3357
- val: { type: O, value: n, location: b, style: f },
3336
+ val: { type: O, value: n, location: g, style: f },
3358
3337
  err: null
3359
3338
  };
3360
3339
  }
3361
3340
  }
3362
3341
  return {
3363
3342
  val: {
3364
- type: a === "number" ? v.number : a === "date" ? v.date : v.time,
3343
+ type: s === "number" ? E.number : s === "date" ? E.date : E.time,
3365
3344
  value: n,
3366
- location: b,
3345
+ location: g,
3367
3346
  style: (o = h?.style) !== null && o !== void 0 ? o : null
3368
3347
  },
3369
3348
  err: null
@@ -3372,49 +3351,49 @@ var jn = (
3372
3351
  case "plural":
3373
3352
  case "selectordinal":
3374
3353
  case "select": {
3375
- var x = this.clonePosition();
3354
+ var _ = this.clonePosition();
3376
3355
  if (this.bumpSpace(), !this.bumpIf(","))
3377
- return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(x, pe({}, x)));
3356
+ return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(_, b({}, _)));
3378
3357
  this.bumpSpace();
3379
- var T = this.parseIdentifierIfPossible(), S = 0;
3380
- if (a !== "select" && T.value === "offset") {
3358
+ var w = this.parseIdentifierIfPossible(), S = 0;
3359
+ if (s !== "select" && w.value === "offset") {
3381
3360
  if (!this.bumpIf(":"))
3382
3361
  return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
3383
3362
  this.bumpSpace();
3384
3363
  var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3385
3364
  if (c.err)
3386
3365
  return c;
3387
- this.bumpSpace(), T = this.parseIdentifierIfPossible(), S = c.val;
3366
+ this.bumpSpace(), w = this.parseIdentifierIfPossible(), S = c.val;
3388
3367
  }
3389
- var M = this.tryParsePluralOrSelectOptions(t, a, r, T);
3368
+ var M = this.tryParsePluralOrSelectOptions(t, s, r, w);
3390
3369
  if (M.err)
3391
3370
  return M;
3392
- var g = this.tryParseArgumentClose(i);
3393
- if (g.err)
3394
- return g;
3371
+ var y = this.tryParseArgumentClose(i);
3372
+ if (y.err)
3373
+ return y;
3395
3374
  var ne = d(i, this.clonePosition());
3396
- return a === "select" ? {
3375
+ return s === "select" ? {
3397
3376
  val: {
3398
- type: v.select,
3377
+ type: E.select,
3399
3378
  value: n,
3400
- options: mt(M.val),
3379
+ options: ft(M.val),
3401
3380
  location: ne
3402
3381
  },
3403
3382
  err: null
3404
3383
  } : {
3405
3384
  val: {
3406
- type: v.plural,
3385
+ type: E.plural,
3407
3386
  value: n,
3408
- options: mt(M.val),
3387
+ options: ft(M.val),
3409
3388
  offset: S,
3410
- pluralType: a === "plural" ? "cardinal" : "ordinal",
3389
+ pluralType: s === "plural" ? "cardinal" : "ordinal",
3411
3390
  location: ne
3412
3391
  },
3413
3392
  err: null
3414
3393
  };
3415
3394
  }
3416
3395
  default:
3417
- return this.error(p.INVALID_ARGUMENT_TYPE, d(s, u));
3396
+ return this.error(p.INVALID_ARGUMENT_TYPE, d(a, u));
3418
3397
  }
3419
3398
  }, e.prototype.tryParseArgumentClose = function(t) {
3420
3399
  return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3456,21 +3435,21 @@ var jn = (
3456
3435
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3457
3436
  var n = [];
3458
3437
  try {
3459
- n = xn(t);
3438
+ n = En(t);
3460
3439
  } catch {
3461
3440
  return this.error(p.INVALID_NUMBER_SKELETON, r);
3462
3441
  }
3463
3442
  return {
3464
3443
  val: {
3465
- type: j.number,
3444
+ type: k.number,
3466
3445
  tokens: n,
3467
3446
  location: r,
3468
- parsedOptions: this.shouldParseSkeletons ? Tn(n) : {}
3447
+ parsedOptions: this.shouldParseSkeletons ? Bn(n) : {}
3469
3448
  },
3470
3449
  err: null
3471
3450
  };
3472
3451
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3473
- for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), h = i.value, l = i.location; ; ) {
3452
+ for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), h = i.value, l = i.location; ; ) {
3474
3453
  if (h.length === 0) {
3475
3454
  var c = this.clonePosition();
3476
3455
  if (r !== "select" && this.bumpIf("=")) {
@@ -3483,37 +3462,37 @@ var jn = (
3483
3462
  }
3484
3463
  if (u.has(h))
3485
3464
  return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3486
- h === "other" && (s = !0), this.bumpSpace();
3465
+ h === "other" && (a = !0), this.bumpSpace();
3487
3466
  var m = this.clonePosition();
3488
3467
  if (!this.bumpIf("{"))
3489
3468
  return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
3490
- var g = this.parseMessage(t + 1, r, n);
3469
+ var y = this.parseMessage(t + 1, r, n);
3470
+ if (y.err)
3471
+ return y;
3472
+ var g = this.tryParseArgumentClose(m);
3491
3473
  if (g.err)
3492
3474
  return g;
3493
- var b = this.tryParseArgumentClose(m);
3494
- if (b.err)
3495
- return b;
3496
- a.push([
3475
+ s.push([
3497
3476
  h,
3498
3477
  {
3499
- value: g.val,
3478
+ value: y.val,
3500
3479
  location: d(m, this.clonePosition())
3501
3480
  }
3502
3481
  ]), u.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, l = o.location;
3503
3482
  }
3504
- 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 };
3483
+ return s.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(p.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3505
3484
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3506
3485
  var n = 1, i = this.clonePosition();
3507
3486
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3508
- for (var o = !1, s = 0; !this.isEOF(); ) {
3509
- var a = this.char();
3510
- if (a >= 48 && a <= 57)
3511
- o = !0, s = s * 10 + (a - 48), this.bump();
3487
+ for (var o = !1, a = 0; !this.isEOF(); ) {
3488
+ var s = this.char();
3489
+ if (s >= 48 && s <= 57)
3490
+ o = !0, a = a * 10 + (s - 48), this.bump();
3512
3491
  else
3513
3492
  break;
3514
3493
  }
3515
3494
  var u = d(i, this.clonePosition());
3516
- return o ? (s *= n, Un(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
3495
+ return o ? (a *= n, Rn(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
3517
3496
  }, e.prototype.offset = function() {
3518
3497
  return this.position.offset;
3519
3498
  }, e.prototype.isEOF = function() {
@@ -3528,7 +3507,7 @@ var jn = (
3528
3507
  var t = this.position.offset;
3529
3508
  if (t >= this.message.length)
3530
3509
  throw Error("out of bound");
3531
- var r = Zt(this.message, t);
3510
+ var r = Wt(this.message, t);
3532
3511
  if (r === void 0)
3533
3512
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3534
3513
  return r;
@@ -3547,7 +3526,7 @@ var jn = (
3547
3526
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3548
3527
  }
3549
3528
  }, e.prototype.bumpIf = function(t) {
3550
- if (pt(this.message, t, this.offset())) {
3529
+ if (ct(this.message, t, this.offset())) {
3551
3530
  for (var r = 0; r < t.length; r++)
3552
3531
  this.bump();
3553
3532
  return !0;
@@ -3569,7 +3548,7 @@ var jn = (
3569
3548
  break;
3570
3549
  }
3571
3550
  }, e.prototype.bumpSpace = function() {
3572
- for (; !this.isEOF() && Jt(this.char()); )
3551
+ for (; !this.isEOF() && Qt(this.char()); )
3573
3552
  this.bump();
3574
3553
  }, e.prototype.peek = function() {
3575
3554
  if (this.isEOF())
@@ -3579,47 +3558,47 @@ var jn = (
3579
3558
  }, e;
3580
3559
  }()
3581
3560
  );
3582
- function ke(e) {
3561
+ function De(e) {
3583
3562
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3584
3563
  }
3585
- function kn(e) {
3586
- return ke(e) || e === 47;
3564
+ function Gn(e) {
3565
+ return De(e) || e === 47;
3587
3566
  }
3588
- function Vn(e) {
3567
+ function jn(e) {
3589
3568
  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;
3590
3569
  }
3591
- function Jt(e) {
3570
+ function Qt(e) {
3592
3571
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3593
3572
  }
3594
- function Xn(e) {
3573
+ function kn(e) {
3595
3574
  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;
3596
3575
  }
3597
- function Ve(e) {
3576
+ function Fe(e) {
3598
3577
  e.forEach(function(t) {
3599
- if (delete t.location, Gt(t) || Ft(t))
3578
+ if (delete t.location, Dt(t) || Ft(t))
3600
3579
  for (var r in t.options)
3601
- delete t.options[r].location, Ve(t.options[r].value);
3580
+ delete t.options[r].location, Fe(t.options[r].value);
3602
3581
  else
3603
- Rt(t) && kt(t.style) || (Ut(t) || Dt(t)) && De(t.style) ? delete t.style.location : jt(t) && Ve(t.children);
3582
+ Rt(t) && jt(t.style) || ($t(t) || Ut(t)) && Me(t.style) ? delete t.style.location : Gt(t) && Fe(t.children);
3604
3583
  });
3605
3584
  }
3606
- function zn(e, t) {
3607
- t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3608
- var r = new jn(e, t).parse();
3585
+ function Vn(e, t) {
3586
+ t === void 0 && (t = {}), t = b({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3587
+ var r = new Fn(e, t).parse();
3609
3588
  if (r.err) {
3610
3589
  var n = SyntaxError(p[r.err.kind]);
3611
3590
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3612
3591
  }
3613
- return t?.captureLocation || Ve(r.val), r.val;
3592
+ return t?.captureLocation || Fe(r.val), r.val;
3614
3593
  }
3615
- var k;
3594
+ var V;
3616
3595
  (function(e) {
3617
3596
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3618
- })(k || (k = {}));
3619
- var ve = (
3597
+ })(V || (V = {}));
3598
+ var ge = (
3620
3599
  /** @class */
3621
3600
  function(e) {
3622
- ye(t, e);
3601
+ A(t, e);
3623
3602
  function t(r, n, i) {
3624
3603
  var o = e.call(this, r) || this;
3625
3604
  return o.code = n, o.originalMessage = i, o;
@@ -3628,155 +3607,155 @@ var ve = (
3628
3607
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3629
3608
  }, t;
3630
3609
  }(Error)
3631
- ), bt = (
3610
+ ), mt = (
3632
3611
  /** @class */
3633
3612
  function(e) {
3634
- ye(t, e);
3613
+ A(t, e);
3635
3614
  function t(r, n, i, o) {
3636
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, o) || this;
3615
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, o) || this;
3637
3616
  }
3638
3617
  return t;
3639
- }(ve)
3640
- ), Wn = (
3618
+ }(ge)
3619
+ ), Xn = (
3641
3620
  /** @class */
3642
3621
  function(e) {
3643
- ye(t, e);
3622
+ A(t, e);
3644
3623
  function t(r, n, i) {
3645
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), k.INVALID_VALUE, i) || this;
3624
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
3646
3625
  }
3647
3626
  return t;
3648
- }(ve)
3649
- ), Zn = (
3627
+ }(ge)
3628
+ ), zn = (
3650
3629
  /** @class */
3651
3630
  function(e) {
3652
- ye(t, e);
3631
+ A(t, e);
3653
3632
  function t(r, n) {
3654
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), k.MISSING_VALUE, n) || this;
3633
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
3655
3634
  }
3656
3635
  return t;
3657
- }(ve)
3658
- ), _;
3636
+ }(ge)
3637
+ ), x;
3659
3638
  (function(e) {
3660
3639
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3661
- })(_ || (_ = {}));
3662
- function Qn(e) {
3640
+ })(x || (x = {}));
3641
+ function Wn(e) {
3663
3642
  return e.length < 2 ? e : e.reduce(function(t, r) {
3664
3643
  var n = t[t.length - 1];
3665
- return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
3644
+ return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
3666
3645
  }, []);
3667
3646
  }
3668
- function Jn(e) {
3647
+ function Zn(e) {
3669
3648
  return typeof e == "function";
3670
3649
  }
3671
- function le(e, t, r, n, i, o, s) {
3672
- if (e.length === 1 && ht(e[0]))
3650
+ function le(e, t, r, n, i, o, a) {
3651
+ if (e.length === 1 && at(e[0]))
3673
3652
  return [
3674
3653
  {
3675
- type: _.literal,
3654
+ type: x.literal,
3676
3655
  value: e[0].value
3677
3656
  }
3678
3657
  ];
3679
- for (var a = [], u = 0, h = e; u < h.length; u++) {
3658
+ for (var s = [], u = 0, h = e; u < h.length; u++) {
3680
3659
  var l = h[u];
3681
- if (ht(l)) {
3682
- a.push({
3683
- type: _.literal,
3660
+ if (at(l)) {
3661
+ s.push({
3662
+ type: x.literal,
3684
3663
  value: l.value
3685
3664
  });
3686
3665
  continue;
3687
3666
  }
3688
- if (yn(l)) {
3689
- typeof o == "number" && a.push({
3690
- type: _.literal,
3667
+ if (bn(l)) {
3668
+ typeof o == "number" && s.push({
3669
+ type: x.literal,
3691
3670
  value: r.getNumberFormat(t).format(o)
3692
3671
  });
3693
3672
  continue;
3694
3673
  }
3695
3674
  var c = l.value;
3696
3675
  if (!(i && c in i))
3697
- throw new Zn(c, s);
3676
+ throw new zn(c, a);
3698
3677
  var f = i[c];
3699
- if (gn(l)) {
3700
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3701
- type: typeof f == "string" ? _.literal : _.object,
3678
+ if (dn(l)) {
3679
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
3680
+ type: typeof f == "string" ? x.literal : x.object,
3702
3681
  value: f
3703
3682
  });
3704
3683
  continue;
3705
3684
  }
3706
- if (Ut(l)) {
3707
- var m = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
3708
- a.push({
3709
- type: _.literal,
3685
+ if ($t(l)) {
3686
+ var m = typeof l.style == "string" ? n.date[l.style] : Me(l.style) ? l.style.parsedOptions : void 0;
3687
+ s.push({
3688
+ type: x.literal,
3710
3689
  value: r.getDateTimeFormat(t, m).format(f)
3711
3690
  });
3712
3691
  continue;
3713
3692
  }
3714
- if (Dt(l)) {
3715
- var m = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
3716
- a.push({
3717
- type: _.literal,
3693
+ if (Ut(l)) {
3694
+ var m = typeof l.style == "string" ? n.time[l.style] : Me(l.style) ? l.style.parsedOptions : n.time.medium;
3695
+ s.push({
3696
+ type: x.literal,
3718
3697
  value: r.getDateTimeFormat(t, m).format(f)
3719
3698
  });
3720
3699
  continue;
3721
3700
  }
3722
3701
  if (Rt(l)) {
3723
- var m = typeof l.style == "string" ? n.number[l.style] : kt(l.style) ? l.style.parsedOptions : void 0;
3724
- m && m.scale && (f = f * (m.scale || 1)), a.push({
3725
- type: _.literal,
3702
+ var m = typeof l.style == "string" ? n.number[l.style] : jt(l.style) ? l.style.parsedOptions : void 0;
3703
+ m && m.scale && (f = f * (m.scale || 1)), s.push({
3704
+ type: x.literal,
3726
3705
  value: r.getNumberFormat(t, m).format(f)
3727
3706
  });
3728
3707
  continue;
3729
3708
  }
3730
- if (jt(l)) {
3731
- var g = l.children, b = l.value, B = i[b];
3732
- if (!Jn(B))
3733
- throw new Wn(b, "function", s);
3734
- var N = le(g, t, r, n, i, o), O = B(N.map(function(S) {
3709
+ if (Gt(l)) {
3710
+ var y = l.children, g = l.value, B = i[g];
3711
+ if (!Zn(B))
3712
+ throw new Xn(g, "function", a);
3713
+ var L = le(y, t, r, n, i, o), O = B(L.map(function(S) {
3735
3714
  return S.value;
3736
3715
  }));
3737
- Array.isArray(O) || (O = [O]), a.push.apply(a, O.map(function(S) {
3716
+ Array.isArray(O) || (O = [O]), s.push.apply(s, O.map(function(S) {
3738
3717
  return {
3739
- type: typeof S == "string" ? _.literal : _.object,
3718
+ type: typeof S == "string" ? x.literal : x.object,
3740
3719
  value: S
3741
3720
  };
3742
3721
  }));
3743
3722
  }
3744
- if (Gt(l)) {
3745
- var x = l.options[f] || l.options.other;
3746
- if (!x)
3747
- throw new bt(l.value, f, Object.keys(l.options), s);
3748
- a.push.apply(a, le(x.value, t, r, n, i));
3723
+ if (Dt(l)) {
3724
+ var _ = l.options[f] || l.options.other;
3725
+ if (!_)
3726
+ throw new mt(l.value, f, Object.keys(l.options), a);
3727
+ s.push.apply(s, le(_.value, t, r, n, i));
3749
3728
  continue;
3750
3729
  }
3751
3730
  if (Ft(l)) {
3752
- var x = l.options["=".concat(f)];
3753
- if (!x) {
3731
+ var _ = l.options["=".concat(f)];
3732
+ if (!_) {
3754
3733
  if (!Intl.PluralRules)
3755
- throw new ve(`Intl.PluralRules is not available in this environment.
3734
+ throw new ge(`Intl.PluralRules is not available in this environment.
3756
3735
  Try polyfilling it using "@formatjs/intl-pluralrules"
3757
- `, k.MISSING_INTL_API, s);
3758
- var T = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3759
- x = l.options[T] || l.options.other;
3736
+ `, V.MISSING_INTL_API, a);
3737
+ var w = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3738
+ _ = l.options[w] || l.options.other;
3760
3739
  }
3761
- if (!x)
3762
- throw new bt(l.value, f, Object.keys(l.options), s);
3763
- a.push.apply(a, le(x.value, t, r, n, i, f - (l.offset || 0)));
3740
+ if (!_)
3741
+ throw new mt(l.value, f, Object.keys(l.options), a);
3742
+ s.push.apply(s, le(_.value, t, r, n, i, f - (l.offset || 0)));
3764
3743
  continue;
3765
3744
  }
3766
3745
  }
3767
- return Qn(a);
3746
+ return Wn(s);
3768
3747
  }
3769
- function Yn(e, t) {
3770
- return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3771
- return r[n] = H(H({}, e[n]), t[n] || {}), r;
3748
+ function Qn(e, t) {
3749
+ return t ? b(b(b({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3750
+ return r[n] = b(b({}, e[n]), t[n] || {}), r;
3772
3751
  }, {})) : e;
3773
3752
  }
3774
- function qn(e, t) {
3753
+ function Jn(e, t) {
3775
3754
  return t ? Object.keys(e).reduce(function(r, n) {
3776
- return r[n] = Yn(e[n], t[n]), r;
3777
- }, H({}, e)) : e;
3755
+ return r[n] = Qn(e[n], t[n]), r;
3756
+ }, b({}, e)) : e;
3778
3757
  }
3779
- function Pe(e) {
3758
+ function we(e) {
3780
3759
  return {
3781
3760
  create: function() {
3782
3761
  return {
@@ -3790,39 +3769,39 @@ function Pe(e) {
3790
3769
  }
3791
3770
  };
3792
3771
  }
3793
- function Kn(e) {
3772
+ function Yn(e) {
3794
3773
  return e === void 0 && (e = {
3795
3774
  number: {},
3796
3775
  dateTime: {},
3797
3776
  pluralRules: {}
3798
3777
  }), {
3799
- getNumberFormat: we(function() {
3778
+ getNumberFormat: Se(function() {
3800
3779
  for (var t, r = [], n = 0; n < arguments.length; n++)
3801
3780
  r[n] = arguments[n];
3802
- return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
3781
+ return new ((t = Intl.NumberFormat).bind.apply(t, G([void 0], r, !1)))();
3803
3782
  }, {
3804
- cache: Pe(e.number),
3805
- strategy: Te.variadic
3783
+ cache: we(e.number),
3784
+ strategy: Be.variadic
3806
3785
  }),
3807
- getDateTimeFormat: we(function() {
3786
+ getDateTimeFormat: Se(function() {
3808
3787
  for (var t, r = [], n = 0; n < arguments.length; n++)
3809
3788
  r[n] = arguments[n];
3810
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
3789
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, G([void 0], r, !1)))();
3811
3790
  }, {
3812
- cache: Pe(e.dateTime),
3813
- strategy: Te.variadic
3791
+ cache: we(e.dateTime),
3792
+ strategy: Be.variadic
3814
3793
  }),
3815
- getPluralRules: we(function() {
3794
+ getPluralRules: Se(function() {
3816
3795
  for (var t, r = [], n = 0; n < arguments.length; n++)
3817
3796
  r[n] = arguments[n];
3818
- return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
3797
+ return new ((t = Intl.PluralRules).bind.apply(t, G([void 0], r, !1)))();
3819
3798
  }, {
3820
- cache: Pe(e.pluralRules),
3821
- strategy: Te.variadic
3799
+ cache: we(e.pluralRules),
3800
+ strategy: Be.variadic
3822
3801
  })
3823
3802
  };
3824
3803
  }
3825
- var ei = (
3804
+ var qn = (
3826
3805
  /** @class */
3827
3806
  function() {
3828
3807
  function e(t, r, n, i) {
@@ -3837,7 +3816,7 @@ var ei = (
3837
3816
  if (h.length === 1)
3838
3817
  return h[0].value;
3839
3818
  var l = h.reduce(function(c, f) {
3840
- return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3819
+ return !c.length || f.type !== x.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3841
3820
  }, []);
3842
3821
  return l.length <= 1 ? l[0] || "" : l;
3843
3822
  }, this.formatToParts = function(u) {
@@ -3852,15 +3831,15 @@ var ei = (
3852
3831
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3853
3832
  if (this.message = t, !e.__parse)
3854
3833
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3855
- var s = i || {};
3856
- s.formatters;
3857
- var a = hn(s, ["formatters"]);
3858
- this.ast = e.__parse(t, H(H({}, a), { locale: this.resolvedLocale }));
3834
+ var a = i || {};
3835
+ a.formatters;
3836
+ var s = Or(a, ["formatters"]);
3837
+ this.ast = e.__parse(t, b(b({}, s), { locale: this.resolvedLocale }));
3859
3838
  } else
3860
3839
  this.ast = t;
3861
3840
  if (!Array.isArray(this.ast))
3862
3841
  throw new TypeError("A message must be provided as a String or AST.");
3863
- this.formats = qn(e.formats, n), this.formatters = i && i.formatters || Kn(this.formatterCache);
3842
+ this.formats = Jn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
3864
3843
  }
3865
3844
  return Object.defineProperty(e, "defaultLocale", {
3866
3845
  get: function() {
@@ -3873,7 +3852,7 @@ var ei = (
3873
3852
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3874
3853
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3875
3854
  }
3876
- }, e.__parse = zn, e.formats = {
3855
+ }, e.__parse = Vn, e.formats = {
3877
3856
  number: {
3878
3857
  integer: {
3879
3858
  maximumFractionDigits: 0
@@ -3934,7 +3913,7 @@ var ei = (
3934
3913
  }, e;
3935
3914
  }()
3936
3915
  );
3937
- function ti(e, t) {
3916
+ function Kn(e, t) {
3938
3917
  if (t == null)
3939
3918
  return;
3940
3919
  if (t in e)
@@ -3955,92 +3934,92 @@ function ti(e, t) {
3955
3934
  n = void 0;
3956
3935
  return n;
3957
3936
  }
3958
- const I = {}, ri = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), Yt = (e, t) => {
3937
+ const I = {}, ei = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), Jt = (e, t) => {
3959
3938
  if (t == null)
3960
3939
  return;
3961
3940
  if (t in I && e in I[t])
3962
3941
  return I[t][e];
3963
- const r = Ee(t);
3942
+ const r = ye(t);
3964
3943
  for (let n = 0; n < r.length; n++) {
3965
- const i = r[n], o = ii(i, e);
3944
+ const i = r[n], o = ri(i, e);
3966
3945
  if (o)
3967
- return ri(e, t, o);
3946
+ return ei(e, t, o);
3968
3947
  }
3969
3948
  };
3970
- let Qe;
3971
- const re = ge({});
3972
- function ni(e) {
3973
- return Qe[e] || null;
3949
+ let We;
3950
+ const re = be({});
3951
+ function ti(e) {
3952
+ return We[e] || null;
3974
3953
  }
3975
- function qt(e) {
3976
- return e in Qe;
3954
+ function Yt(e) {
3955
+ return e in We;
3977
3956
  }
3978
- function ii(e, t) {
3979
- if (!qt(e))
3957
+ function ri(e, t) {
3958
+ if (!Yt(e))
3980
3959
  return null;
3981
- const r = ni(e);
3982
- return ti(r, t);
3960
+ const r = ti(e);
3961
+ return Kn(r, t);
3983
3962
  }
3984
- function oi(e) {
3963
+ function ni(e) {
3985
3964
  if (e == null)
3986
3965
  return;
3987
- const t = Ee(e);
3966
+ const t = ye(e);
3988
3967
  for (let r = 0; r < t.length; r++) {
3989
3968
  const n = t[r];
3990
- if (qt(n))
3969
+ if (Yt(n))
3991
3970
  return n;
3992
3971
  }
3993
3972
  }
3994
- function Kt(e, ...t) {
3973
+ function qt(e, ...t) {
3995
3974
  delete I[e], re.update((r) => (r[e] = un.all([r[e] || {}, ...t]), r));
3996
3975
  }
3997
- X(
3976
+ z(
3998
3977
  [re],
3999
3978
  ([e]) => Object.keys(e)
4000
3979
  );
4001
- re.subscribe((e) => Qe = e);
3980
+ re.subscribe((e) => We = e);
4002
3981
  const ce = {};
4003
- function si(e, t) {
3982
+ function ii(e, t) {
4004
3983
  ce[e].delete(t), ce[e].size === 0 && delete ce[e];
4005
3984
  }
4006
- function er(e) {
3985
+ function Kt(e) {
4007
3986
  return ce[e];
4008
3987
  }
4009
- function ai(e) {
4010
- return Ee(e).map((t) => {
4011
- const r = er(t);
3988
+ function oi(e) {
3989
+ return ye(e).map((t) => {
3990
+ const r = Kt(t);
4012
3991
  return [t, r ? [...r] : []];
4013
3992
  }).filter(([, t]) => t.length > 0);
4014
3993
  }
4015
- function Xe(e) {
4016
- return e == null ? !1 : Ee(e).some(
3994
+ function Ge(e) {
3995
+ return e == null ? !1 : ye(e).some(
4017
3996
  (t) => {
4018
3997
  var r;
4019
- return (r = er(t)) == null ? void 0 : r.size;
3998
+ return (r = Kt(t)) == null ? void 0 : r.size;
4020
3999
  }
4021
4000
  );
4022
4001
  }
4023
- function ui(e, t) {
4002
+ function si(e, t) {
4024
4003
  return Promise.all(
4025
- t.map((n) => (si(e, n), n().then((i) => i.default || i)))
4026
- ).then((n) => Kt(e, ...n));
4027
- }
4028
- const Z = {};
4029
- function tr(e) {
4030
- if (!Xe(e))
4031
- return e in Z ? Z[e] : Promise.resolve();
4032
- const t = ai(e);
4033
- return Z[e] = Promise.all(
4004
+ t.map((n) => (ii(e, n), n().then((i) => i.default || i)))
4005
+ ).then((n) => qt(e, ...n));
4006
+ }
4007
+ const Q = {};
4008
+ function er(e) {
4009
+ if (!Ge(e))
4010
+ return e in Q ? Q[e] : Promise.resolve();
4011
+ const t = oi(e);
4012
+ return Q[e] = Promise.all(
4034
4013
  t.map(
4035
- ([r, n]) => ui(r, n)
4014
+ ([r, n]) => si(r, n)
4036
4015
  )
4037
4016
  ).then(() => {
4038
- if (Xe(e))
4039
- return tr(e);
4040
- delete Z[e];
4041
- }), Z[e];
4017
+ if (Ge(e))
4018
+ return er(e);
4019
+ delete Q[e];
4020
+ }), Q[e];
4042
4021
  }
4043
- const hi = {
4022
+ const ai = {
4044
4023
  number: {
4045
4024
  scientific: { notation: "scientific" },
4046
4025
  engineering: { notation: "engineering" },
@@ -4069,159 +4048,159 @@ const hi = {
4069
4048
  timeZoneName: "short"
4070
4049
  }
4071
4050
  }
4072
- }, li = {
4051
+ }, ui = {
4073
4052
  fallbackLocale: null,
4074
4053
  loadingDelay: 200,
4075
- formats: hi,
4054
+ formats: ai,
4076
4055
  warnOnMissingMessages: !0,
4077
4056
  handleMissingMessage: void 0,
4078
4057
  ignoreTag: !0
4079
- }, ci = li;
4080
- function V() {
4081
- return ci;
4058
+ }, hi = ui;
4059
+ function X() {
4060
+ return hi;
4082
4061
  }
4083
- const Ae = ge(!1);
4084
- var fi = Object.defineProperty, pi = Object.defineProperties, mi = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, di = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gi = (e, t) => {
4062
+ const He = be(!1);
4063
+ var li = Object.defineProperty, ci = Object.defineProperties, fi = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, pi = Object.prototype.hasOwnProperty, mi = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, di = (e, t) => {
4085
4064
  for (var r in t || (t = {}))
4086
- di.call(t, r) && yt(e, r, t[r]);
4087
- if (gt)
4088
- for (var r of gt(t))
4089
- bi.call(t, r) && yt(e, r, t[r]);
4065
+ pi.call(t, r) && bt(e, r, t[r]);
4066
+ if (dt)
4067
+ for (var r of dt(t))
4068
+ mi.call(t, r) && bt(e, r, t[r]);
4090
4069
  return e;
4091
- }, yi = (e, t) => pi(e, mi(t));
4092
- let ze;
4093
- const me = ge(null);
4094
- function vt(e) {
4070
+ }, bi = (e, t) => ci(e, fi(t));
4071
+ let je;
4072
+ const pe = be(null);
4073
+ function gt(e) {
4095
4074
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4096
4075
  }
4097
- function Ee(e, t = V().fallbackLocale) {
4098
- const r = vt(e);
4099
- return t ? [.../* @__PURE__ */ new Set([...r, ...vt(t)])] : r;
4076
+ function ye(e, t = X().fallbackLocale) {
4077
+ const r = gt(e);
4078
+ return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
4100
4079
  }
4101
4080
  function C() {
4102
- return ze ?? void 0;
4081
+ return je ?? void 0;
4103
4082
  }
4104
- me.subscribe((e) => {
4105
- ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4083
+ pe.subscribe((e) => {
4084
+ je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4106
4085
  });
4107
- const vi = (e) => {
4108
- if (e && oi(e) && Xe(e)) {
4109
- const { loadingDelay: t } = V();
4086
+ const gi = (e) => {
4087
+ if (e && ni(e) && Ge(e)) {
4088
+ const { loadingDelay: t } = X();
4110
4089
  let r;
4111
4090
  return typeof window < "u" && C() != null && t ? r = window.setTimeout(
4112
- () => Ae.set(!0),
4091
+ () => He.set(!0),
4113
4092
  t
4114
- ) : Ae.set(!0), tr(e).then(() => {
4115
- me.set(e);
4093
+ ) : He.set(!0), er(e).then(() => {
4094
+ pe.set(e);
4116
4095
  }).finally(() => {
4117
- clearTimeout(r), Ae.set(!1);
4096
+ clearTimeout(r), He.set(!1);
4118
4097
  });
4119
4098
  }
4120
- return me.set(e);
4121
- }, z = yi(gi({}, me), {
4122
- set: vi
4123
- }), _e = (e) => {
4099
+ return pe.set(e);
4100
+ }, W = bi(di({}, pe), {
4101
+ set: gi
4102
+ }), ve = (e) => {
4124
4103
  const t = /* @__PURE__ */ Object.create(null);
4125
4104
  return (n) => {
4126
4105
  const i = JSON.stringify(n);
4127
4106
  return i in t ? t[i] : t[i] = e(n);
4128
4107
  };
4129
4108
  };
4130
- var Ei = Object.defineProperty, de = Object.getOwnPropertySymbols, rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
4109
+ var yi = Object.defineProperty, me = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
4131
4110
  for (var r in t || (t = {}))
4132
- rr.call(t, r) && Et(e, r, t[r]);
4133
- if (de)
4134
- for (var r of de(t))
4135
- nr.call(t, r) && Et(e, r, t[r]);
4111
+ tr.call(t, r) && yt(e, r, t[r]);
4112
+ if (me)
4113
+ for (var r of me(t))
4114
+ rr.call(t, r) && yt(e, r, t[r]);
4136
4115
  return e;
4137
- }, W = (e, t) => {
4116
+ }, Z = (e, t) => {
4138
4117
  var r = {};
4139
4118
  for (var n in e)
4140
- rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4141
- if (e != null && de)
4142
- for (var n of de(e))
4143
- t.indexOf(n) < 0 && nr.call(e, n) && (r[n] = e[n]);
4119
+ tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4120
+ if (e != null && me)
4121
+ for (var n of me(e))
4122
+ t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
4144
4123
  return r;
4145
4124
  };
4146
- const K = (e, t) => {
4147
- const { formats: r } = V();
4125
+ const ee = (e, t) => {
4126
+ const { formats: r } = X();
4148
4127
  if (e in r && t in r[e])
4149
4128
  return r[e][t];
4150
4129
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4151
- }, _i = _e(
4130
+ }, vi = ve(
4152
4131
  (e) => {
4153
- var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
4132
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
4154
4133
  if (r == null)
4155
4134
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4156
- return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
4135
+ return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
4157
4136
  }
4158
- ), xi = _e(
4137
+ ), Ei = ve(
4159
4138
  (e) => {
4160
- var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
4139
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
4161
4140
  if (r == null)
4162
4141
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4163
- return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
4142
+ return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
4164
4143
  }
4165
- ), Si = _e(
4144
+ ), xi = ve(
4166
4145
  (e) => {
4167
- var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
4146
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
4168
4147
  if (r == null)
4169
4148
  throw new Error(
4170
4149
  '[svelte-i18n] A "locale" must be set to format time values'
4171
4150
  );
4172
- return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
4151
+ return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
4173
4152
  }
4174
- ), Bi = (e = {}) => {
4153
+ ), _i = (e = {}) => {
4175
4154
  var t = e, {
4176
4155
  locale: r = C()
4177
- } = t, n = W(t, [
4156
+ } = t, n = Z(t, [
4178
4157
  "locale"
4179
4158
  ]);
4180
- return _i(Je({ locale: r }, n));
4181
- }, wi = (e = {}) => {
4159
+ return vi(Ze({ locale: r }, n));
4160
+ }, Si = (e = {}) => {
4182
4161
  var t = e, {
4183
4162
  locale: r = C()
4184
- } = t, n = W(t, [
4163
+ } = t, n = Z(t, [
4185
4164
  "locale"
4186
4165
  ]);
4187
- return xi(Je({ locale: r }, n));
4188
- }, Ti = (e = {}) => {
4166
+ return Ei(Ze({ locale: r }, n));
4167
+ }, Bi = (e = {}) => {
4189
4168
  var t = e, {
4190
4169
  locale: r = C()
4191
- } = t, n = W(t, [
4170
+ } = t, n = Z(t, [
4192
4171
  "locale"
4193
4172
  ]);
4194
- return Si(Je({ locale: r }, n));
4195
- }, Hi = _e(
4173
+ return xi(Ze({ locale: r }, n));
4174
+ }, Ti = ve(
4196
4175
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4197
- (e, t = C()) => new ei(e, t, V().formats, {
4198
- ignoreTag: V().ignoreTag
4176
+ (e, t = C()) => new qn(e, t, X().formats, {
4177
+ ignoreTag: X().ignoreTag
4199
4178
  })
4200
- ), Pi = (e, t = {}) => {
4179
+ ), wi = (e, t = {}) => {
4201
4180
  var r, n, i, o;
4202
- let s = t;
4203
- typeof e == "object" && (s = e, e = s.id);
4181
+ let a = t;
4182
+ typeof e == "object" && (a = e, e = a.id);
4204
4183
  const {
4205
- values: a,
4184
+ values: s,
4206
4185
  locale: u = C(),
4207
4186
  default: h
4208
- } = s;
4187
+ } = a;
4209
4188
  if (u == null)
4210
4189
  throw new Error(
4211
4190
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4212
4191
  );
4213
- let l = Yt(e, u);
4192
+ let l = Jt(e, u);
4214
4193
  if (!l)
4215
- l = (o = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
4194
+ l = (o = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
4216
4195
  else if (typeof l != "string")
4217
4196
  return console.warn(
4218
4197
  `[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.`
4219
4198
  ), l;
4220
- if (!a)
4199
+ if (!s)
4221
4200
  return l;
4222
4201
  let c = l;
4223
4202
  try {
4224
- c = Hi(l, u).format(a);
4203
+ c = Ti(l, u).format(s);
4225
4204
  } catch (f) {
4226
4205
  f instanceof Error && console.warn(
4227
4206
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4229,21 +4208,21 @@ const K = (e, t) => {
4229
4208
  );
4230
4209
  }
4231
4210
  return c;
4232
- }, Ai = (e, t) => Ti(t).format(e), Oi = (e, t) => wi(t).format(e), Ii = (e, t) => Bi(t).format(e), Ni = (e, t = C()) => Yt(e, t), Li = X([z, re], () => Pi);
4233
- X([z], () => Ai);
4234
- X([z], () => Oi);
4235
- X([z], () => Ii);
4236
- X([z, re], () => Ni);
4211
+ }, Hi = (e, t) => Bi(t).format(e), Pi = (e, t) => Si(t).format(e), Ai = (e, t) => _i(t).format(e), Oi = (e, t = C()) => Jt(e, t), Ii = z([W, re], () => wi);
4212
+ z([W], () => Hi);
4213
+ z([W], () => Pi);
4214
+ z([W], () => Ai);
4215
+ z([W, re], () => Oi);
4237
4216
  window.emWidgets = { topic: Vr };
4238
4217
  const se = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4239
4218
  String(Number.MAX_SAFE_INTEGER).length;
4240
- function _t(e, t) {
4241
- Kt(e, t);
4219
+ function vt(e, t) {
4220
+ qt(e, t);
4242
4221
  }
4243
- function Ci(e) {
4244
- z.set(e);
4222
+ function Li(e) {
4223
+ W.set(e);
4245
4224
  }
4246
- const xt = {
4225
+ const Et = {
4247
4226
  en: {
4248
4227
  panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
4249
4228
  },
@@ -4284,114 +4263,114 @@ const xt = {
4284
4263
  panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
4285
4264
  }
4286
4265
  };
4287
- function Mi(e) {
4288
- sr(e, "svelte-1mifytr", "*,*::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, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));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, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));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, #22B04E));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, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
4266
+ function Ni(e) {
4267
+ or(e, "svelte-1mifytr", "*,*::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, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));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, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));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, #22B04E));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, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
4289
4268
  }
4290
- function $i(e) {
4269
+ function Ci(e) {
4291
4270
  let t, r, n, i = (
4292
4271
  /*customtext*/
4293
4272
  (e[0] || /*$_*/
4294
4273
  e[5]("panicButtonString")) + ""
4295
- ), o, s;
4274
+ ), o, a;
4296
4275
  return {
4297
4276
  c() {
4298
- t = Q("div"), r = Q("div"), n = Q("button"), o = hr(i), L(n, "class", "PanicButton " + (se(
4277
+ t = J("div"), r = J("div"), n = J("button"), o = ur(i), N(n, "class", "PanicButton " + (se(
4299
4278
  /*userAgent*/
4300
4279
  e[6]
4301
- ) !== "PC" ? "PanicButtonMobile" : "")), L(n, "part", "PanicButton " + (se(
4280
+ ) !== "PC" ? "PanicButtonMobile" : "")), N(n, "part", "PanicButton " + (se(
4302
4281
  /*userAgent*/
4303
4282
  e[6]
4304
- ) !== "PC" ? "PanicButtonMobile" : "")), Ke(
4283
+ ) !== "PC" ? "PanicButtonMobile" : "")), Ye(
4305
4284
  n,
4306
4285
  "PanicButtonAnimation",
4307
4286
  /*panicLoading*/
4308
4287
  e[4]
4309
- ), L(r, "class", "PanicSection " + (se(
4288
+ ), N(r, "class", "PanicSection " + (se(
4310
4289
  /*userAgent*/
4311
4290
  e[6]
4312
- ) !== "PC" ? "PanicSectionMobile" : "")), L(r, "part", "PanicSection " + (se(
4291
+ ) !== "PC" ? "PanicSectionMobile" : "")), N(r, "part", "PanicSection " + (se(
4313
4292
  /*userAgent*/
4314
4293
  e[6]
4315
- ) !== "PC" ? "PanicSectionMobile" : "")), L(t, "class", s = /*alternativestyling*/
4294
+ ) !== "PC" ? "PanicSectionMobile" : "")), N(t, "class", a = /*alternativestyling*/
4316
4295
  e[1] == "true" ? "PanicButtonV2" : "");
4317
4296
  },
4318
- m(a, u) {
4319
- Tt(a, t, u), ae(t, r), ae(r, n), ae(n, o), e[12](n), e[13](t);
4297
+ m(s, u) {
4298
+ Bt(s, t, u), ae(t, r), ae(r, n), ae(n, o), e[12](n), e[13](t);
4320
4299
  },
4321
- p(a, [u]) {
4300
+ p(s, [u]) {
4322
4301
  u & /*customtext, $_*/
4323
4302
  33 && i !== (i = /*customtext*/
4324
- (a[0] || /*$_*/
4325
- a[5]("panicButtonString")) + "") && cr(o, i), u & /*panicLoading*/
4326
- 16 && Ke(
4303
+ (s[0] || /*$_*/
4304
+ s[5]("panicButtonString")) + "") && lr(o, i), u & /*panicLoading*/
4305
+ 16 && Ye(
4327
4306
  n,
4328
4307
  "PanicButtonAnimation",
4329
4308
  /*panicLoading*/
4330
- a[4]
4309
+ s[4]
4331
4310
  ), u & /*alternativestyling*/
4332
- 2 && s !== (s = /*alternativestyling*/
4333
- a[1] == "true" ? "PanicButtonV2" : "") && L(t, "class", s);
4311
+ 2 && a !== (a = /*alternativestyling*/
4312
+ s[1] == "true" ? "PanicButtonV2" : "") && N(t, "class", a);
4334
4313
  },
4335
- i: w,
4336
- o: w,
4337
- d(a) {
4338
- a && Ze(t), e[12](null), e[13](null);
4314
+ i: T,
4315
+ o: T,
4316
+ d(s) {
4317
+ s && Ve(t), e[12](null), e[13](null);
4339
4318
  }
4340
4319
  };
4341
4320
  }
4342
- function Ri(e, t, r) {
4321
+ function Mi(e, t, r) {
4343
4322
  let n;
4344
- or(e, Li, (y) => r(5, n = y));
4345
- 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, g = 0, b, B = window.navigator.userAgent;
4346
- const N = () => {
4347
- fetch(l).then(($) => $.json()).then(($) => {
4348
- Object.keys($).forEach((Ye) => {
4349
- _t(Ye, $[Ye]);
4323
+ ir(e, Ii, (v) => r(5, n = v));
4324
+ let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { alternativestyling: h = "" } = t, { translationurl: l = "" } = t, c, f, m = !1, y = 0, g, B = window.navigator.userAgent;
4325
+ const L = () => {
4326
+ fetch(l).then((R) => R.json()).then((R) => {
4327
+ Object.keys(R).forEach((Qe) => {
4328
+ vt(Qe, R[Qe]);
4350
4329
  });
4351
- }).catch(($) => {
4352
- console.log($);
4330
+ }).catch((R) => {
4331
+ console.log(R);
4353
4332
  });
4354
4333
  };
4355
- Object.keys(xt).forEach((y) => {
4356
- _t(y, xt[y]);
4334
+ Object.keys(Et).forEach((v) => {
4335
+ vt(v, Et[v]);
4357
4336
  });
4358
4337
  const O = () => {
4359
- c?.addEventListener("mousedown", T, !1), c?.addEventListener("touchstart", T, !1), c?.addEventListener("mouseup", S, !1), c?.addEventListener("touchend", S, !1);
4360
- }, x = () => {
4361
- r(4, m = !1), c?.removeEventListener("mousedown", T), c?.removeEventListener("touchstart", T), c?.removeEventListener("mouseup", S), c?.removeEventListener("touchend", S);
4362
- }, T = () => {
4363
- g = 0, r(4, m = !0), b = setInterval(
4338
+ c?.addEventListener("mousedown", w, !1), c?.addEventListener("touchstart", w, !1), c?.addEventListener("mouseup", S, !1), c?.addEventListener("touchend", S, !1);
4339
+ }, _ = () => {
4340
+ r(4, m = !1), c?.removeEventListener("mousedown", w), c?.removeEventListener("touchstart", w), c?.removeEventListener("mouseup", S), c?.removeEventListener("touchend", S);
4341
+ }, w = () => {
4342
+ y = 0, r(4, m = !0), g = setInterval(
4364
4343
  () => {
4365
- g++, g >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(b), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
4344
+ y++, y >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(g), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
4366
4345
  },
4367
4346
  1e3
4368
4347
  );
4369
4348
  }, S = () => {
4370
- r(4, m = !1), clearInterval(b);
4349
+ r(4, m = !1), clearInterval(g);
4371
4350
  };
4372
- mr(() => () => {
4373
- x();
4351
+ pr(() => () => {
4352
+ _();
4374
4353
  });
4375
- function M(y) {
4376
- fe[y ? "unshift" : "push"](() => {
4377
- c = y, r(2, c);
4354
+ function M(v) {
4355
+ fe[v ? "unshift" : "push"](() => {
4356
+ c = v, r(2, c);
4378
4357
  });
4379
4358
  }
4380
- function ne(y) {
4381
- fe[y ? "unshift" : "push"](() => {
4382
- f = y, r(3, f);
4359
+ function ne(v) {
4360
+ fe[v ? "unshift" : "push"](() => {
4361
+ f = v, r(3, f);
4383
4362
  });
4384
4363
  }
4385
- return e.$$set = (y) => {
4386
- "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);
4364
+ return e.$$set = (v) => {
4365
+ "lang" in v && r(7, i = v.lang), "customtext" in v && r(0, o = v.customtext), "clientstyling" in v && r(8, a = v.clientstyling), "clientstylingurl" in v && r(9, s = v.clientstylingurl), "mbsource" in v && r(10, u = v.mbsource), "alternativestyling" in v && r(1, h = v.alternativestyling), "translationurl" in v && r(11, l = v.translationurl);
4387
4366
  }, e.$$.update = () => {
4388
4367
  e.$$.dirty & /*panicButton*/
4389
4368
  4 && c && O(), e.$$.dirty & /*lang*/
4390
- 128 && i && Ci(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
4391
- 264 && s && f && Pr(f, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4392
- 520 && a && f && Ar(f, a), e.$$.dirty & /*mbsource, customStylingContainer*/
4393
- 1032 && u && f && Or(f, `${u}.Style`), e.$$.dirty & /*translationurl*/
4394
- 2048 && l && N();
4369
+ 128 && i && Li(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
4370
+ 264 && a && f && Hr(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4371
+ 520 && s && f && Pr(f, s), e.$$.dirty & /*mbsource, customStylingContainer*/
4372
+ 1032 && u && f && Ar(f, `${u}.Style`), e.$$.dirty & /*translationurl*/
4373
+ 2048 && l && L();
4395
4374
  }, [
4396
4375
  o,
4397
4376
  h,
@@ -4401,22 +4380,22 @@ function Ri(e, t, r) {
4401
4380
  n,
4402
4381
  B,
4403
4382
  i,
4404
- s,
4405
4383
  a,
4384
+ s,
4406
4385
  u,
4407
4386
  l,
4408
4387
  M,
4409
4388
  ne
4410
4389
  ];
4411
4390
  }
4412
- class Ui extends Tr {
4391
+ class Ri extends Tr {
4413
4392
  constructor(t) {
4414
- super(), Br(
4393
+ super(), Sr(
4415
4394
  this,
4416
4395
  t,
4417
- Ri,
4418
- $i,
4419
- Bt,
4396
+ Mi,
4397
+ Ci,
4398
+ _t,
4420
4399
  {
4421
4400
  lang: 7,
4422
4401
  customtext: 0,
@@ -4426,53 +4405,53 @@ class Ui extends Tr {
4426
4405
  alternativestyling: 1,
4427
4406
  translationurl: 11
4428
4407
  },
4429
- Mi
4408
+ Ni
4430
4409
  );
4431
4410
  }
4432
4411
  get lang() {
4433
4412
  return this.$$.ctx[7];
4434
4413
  }
4435
4414
  set lang(t) {
4436
- this.$$set({ lang: t }), P();
4415
+ this.$$set({ lang: t }), H();
4437
4416
  }
4438
4417
  get customtext() {
4439
4418
  return this.$$.ctx[0];
4440
4419
  }
4441
4420
  set customtext(t) {
4442
- this.$$set({ customtext: t }), P();
4421
+ this.$$set({ customtext: t }), H();
4443
4422
  }
4444
4423
  get clientstyling() {
4445
4424
  return this.$$.ctx[8];
4446
4425
  }
4447
4426
  set clientstyling(t) {
4448
- this.$$set({ clientstyling: t }), P();
4427
+ this.$$set({ clientstyling: t }), H();
4449
4428
  }
4450
4429
  get clientstylingurl() {
4451
4430
  return this.$$.ctx[9];
4452
4431
  }
4453
4432
  set clientstylingurl(t) {
4454
- this.$$set({ clientstylingurl: t }), P();
4433
+ this.$$set({ clientstylingurl: t }), H();
4455
4434
  }
4456
4435
  get mbsource() {
4457
4436
  return this.$$.ctx[10];
4458
4437
  }
4459
4438
  set mbsource(t) {
4460
- this.$$set({ mbsource: t }), P();
4439
+ this.$$set({ mbsource: t }), H();
4461
4440
  }
4462
4441
  get alternativestyling() {
4463
4442
  return this.$$.ctx[1];
4464
4443
  }
4465
4444
  set alternativestyling(t) {
4466
- this.$$set({ alternativestyling: t }), P();
4445
+ this.$$set({ alternativestyling: t }), H();
4467
4446
  }
4468
4447
  get translationurl() {
4469
4448
  return this.$$.ctx[11];
4470
4449
  }
4471
4450
  set translationurl(t) {
4472
- this.$$set({ translationurl: t }), P();
4451
+ this.$$set({ translationurl: t }), H();
4473
4452
  }
4474
4453
  }
4475
- wr(Ui, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
4454
+ Br(Ri, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
4476
4455
  export {
4477
- Ui as P
4456
+ Ri as P
4478
4457
  };