@everymatrix/player-panic-button 1.55.0 → 1.56.2

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