@everymatrix/player-account-biometrics 1.53.0 → 1.53.10

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