@everymatrix/casino-403 1.55.0 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,53 +1,53 @@
1
- var Ut = Object.defineProperty, Gt = Object.defineProperties;
2
- var Ft = Object.getOwnPropertyDescriptors;
3
- var Ve = Object.getOwnPropertySymbols;
4
- var jt = Object.prototype.hasOwnProperty, Vt = Object.prototype.propertyIsEnumerable;
5
- var pe = (e, t, r) => t in e ? Ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ke = (e, t) => {
1
+ var Rt = Object.defineProperty, Dt = Object.defineProperties;
2
+ var Ut = Object.getOwnPropertyDescriptors;
3
+ var Fe = Object.getOwnPropertySymbols;
4
+ var Gt = Object.prototype.hasOwnProperty, Ft = Object.prototype.propertyIsEnumerable;
5
+ var ge = (e, t, r) => t in e ? Rt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, je = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- jt.call(t, r) && pe(e, r, t[r]);
8
- if (Ve)
9
- for (var r of Ve(t))
10
- Vt.call(t, r) && pe(e, r, t[r]);
7
+ Gt.call(t, r) && ge(e, r, t[r]);
8
+ if (Fe)
9
+ for (var r of Fe(t))
10
+ Ft.call(t, r) && ge(e, r, t[r]);
11
11
  return e;
12
- }, Xe = (e, t) => Gt(e, Ft(t));
13
- var A = (e, t, r) => pe(e, typeof t != "symbol" ? t + "" : t, r);
14
- var ze = (e, t, r) => new Promise((n, i) => {
12
+ }, Ve = (e, t) => Dt(e, Ut(t));
13
+ var S = (e, t, r) => ge(e, typeof t != "symbol" ? t + "" : t, r);
14
+ var ke = (e, t, r) => new Promise((n, i) => {
15
15
  var s = (h) => {
16
16
  try {
17
- a(r.next(h));
18
- } catch (u) {
19
- i(u);
17
+ u(r.next(h));
18
+ } catch (o) {
19
+ i(o);
20
20
  }
21
- }, o = (h) => {
21
+ }, a = (h) => {
22
22
  try {
23
- a(r.throw(h));
24
- } catch (u) {
25
- i(u);
23
+ u(r.throw(h));
24
+ } catch (o) {
25
+ i(o);
26
26
  }
27
- }, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
28
- a((r = r.apply(e, t)).next());
27
+ }, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, a);
28
+ u((r = r.apply(e, t)).next());
29
29
  });
30
30
  function w() {
31
31
  }
32
- function lt(e) {
32
+ function ut(e) {
33
33
  return e();
34
34
  }
35
- function We() {
35
+ function Xe() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function ee(e) {
39
- e.forEach(lt);
38
+ function te(e) {
39
+ e.forEach(ut);
40
40
  }
41
- function Me(e) {
41
+ function Re(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function ct(e, t) {
44
+ function ht(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function kt(e) {
47
+ function jt(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function ft(e, ...t) {
50
+ function lt(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const n of t)
53
53
  n(void 0);
@@ -56,20 +56,20 @@ function ft(e, ...t) {
56
56
  const r = e.subscribe(...t);
57
57
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
58
  }
59
- function Xt(e, t, r) {
60
- e.$$.on_destroy.push(ft(t, r));
59
+ function Vt(e, t, r) {
60
+ e.$$.on_destroy.push(lt(t, r));
61
61
  }
62
- function T(e, t) {
62
+ function _(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
- function zt(e, t, r) {
66
- const n = Wt(e);
65
+ function kt(e, t, r) {
66
+ const n = Xt(e);
67
67
  if (!n.getElementById(t)) {
68
68
  const i = C("style");
69
- i.id = t, i.textContent = r, Zt(n, i);
69
+ i.id = t, i.textContent = r, zt(n, i);
70
70
  }
71
71
  }
72
- function Wt(e) {
72
+ function Xt(e) {
73
73
  if (!e) return document;
74
74
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
75
75
  return t && /** @type {ShadowRoot} */
@@ -78,45 +78,45 @@ function Wt(e) {
78
78
  t
79
79
  ) : e.ownerDocument;
80
80
  }
81
- function Zt(e, t) {
82
- return T(
81
+ function zt(e, t) {
82
+ return _(
83
83
  /** @type {Document} */
84
84
  e.head || e,
85
85
  t
86
86
  ), t.sheet;
87
87
  }
88
- function mt(e, t, r) {
88
+ function ct(e, t, r) {
89
89
  e.insertBefore(t, r || null);
90
90
  }
91
- function Re(e) {
91
+ function De(e) {
92
92
  e.parentNode && e.parentNode.removeChild(e);
93
93
  }
94
94
  function C(e) {
95
95
  return document.createElement(e);
96
96
  }
97
- function M(e) {
97
+ function R(e) {
98
98
  return document.createElementNS("http://www.w3.org/2000/svg", e);
99
99
  }
100
- function ne(e) {
100
+ function ie(e) {
101
101
  return document.createTextNode(e);
102
102
  }
103
- function ge() {
104
- return ne(" ");
103
+ function de() {
104
+ return ie(" ");
105
105
  }
106
- function qt(e, t, r, n) {
106
+ function Wt(e, t, r, n) {
107
107
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
108
108
  }
109
109
  function v(e, t, r) {
110
110
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
111
111
  }
112
- function Qt(e) {
112
+ function Zt(e) {
113
113
  return Array.from(e.childNodes);
114
114
  }
115
- function de(e, t) {
115
+ function be(e, t) {
116
116
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
117
117
  t);
118
118
  }
119
- function Jt(e) {
119
+ function qt(e) {
120
120
  const t = {};
121
121
  return e.childNodes.forEach(
122
122
  /** @param {Element} node */
@@ -125,51 +125,58 @@ function Jt(e) {
125
125
  }
126
126
  ), t;
127
127
  }
128
- let De;
128
+ let Y;
129
129
  function J(e) {
130
- De = e;
130
+ Y = e;
131
+ }
132
+ function Qt() {
133
+ if (!Y) throw new Error("Function called outside component initialization");
134
+ return Y;
131
135
  }
132
- const U = [], Te = [];
136
+ function Jt(e) {
137
+ Qt().$$.on_mount.push(e);
138
+ }
139
+ const G = [], Be = [];
133
140
  let F = [];
134
- const Ze = [], Yt = /* @__PURE__ */ Promise.resolve();
135
- let Be = !1;
141
+ const ze = [], Yt = /* @__PURE__ */ Promise.resolve();
142
+ let Se = !1;
136
143
  function Kt() {
137
- Be || (Be = !0, Yt.then(G));
144
+ Se || (Se = !0, Yt.then($));
138
145
  }
139
- function Se(e) {
146
+ function Pe(e) {
140
147
  F.push(e);
141
148
  }
142
- const be = /* @__PURE__ */ new Set();
143
- let R = 0;
144
- function G() {
145
- if (R !== 0)
149
+ const ye = /* @__PURE__ */ new Set();
150
+ let D = 0;
151
+ function $() {
152
+ if (D !== 0)
146
153
  return;
147
- const e = De;
154
+ const e = Y;
148
155
  do {
149
156
  try {
150
- for (; R < U.length; ) {
151
- const t = U[R];
152
- R++, J(t), er(t.$$);
157
+ for (; D < G.length; ) {
158
+ const t = G[D];
159
+ D++, J(t), er(t.$$);
153
160
  }
154
161
  } catch (t) {
155
- throw U.length = 0, R = 0, t;
162
+ throw G.length = 0, D = 0, t;
156
163
  }
157
- for (J(null), U.length = 0, R = 0; Te.length; ) Te.pop()();
164
+ for (J(null), G.length = 0, D = 0; Be.length; ) Be.pop()();
158
165
  for (let t = 0; t < F.length; t += 1) {
159
166
  const r = F[t];
160
- be.has(r) || (be.add(r), r());
167
+ ye.has(r) || (ye.add(r), r());
161
168
  }
162
169
  F.length = 0;
163
- } while (U.length);
164
- for (; Ze.length; )
165
- Ze.pop()();
166
- Be = !1, be.clear(), J(e);
170
+ } while (G.length);
171
+ for (; ze.length; )
172
+ ze.pop()();
173
+ Se = !1, ye.clear(), J(e);
167
174
  }
168
175
  function er(e) {
169
176
  if (e.fragment !== null) {
170
- e.update(), ee(e.before_update);
177
+ e.update(), te(e.before_update);
171
178
  const t = e.dirty;
172
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Se);
179
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Pe);
173
180
  }
174
181
  }
175
182
  function tr(e) {
@@ -182,29 +189,29 @@ function nr(e, t) {
182
189
  }
183
190
  function ir(e, t, r) {
184
191
  const { fragment: n, after_update: i } = e.$$;
185
- n && n.m(t, r), Se(() => {
186
- const s = e.$$.on_mount.map(lt).filter(Me);
187
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
188
- }), i.forEach(Se);
192
+ n && n.m(t, r), Pe(() => {
193
+ const s = e.$$.on_mount.map(ut).filter(Re);
194
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
195
+ }), i.forEach(Pe);
189
196
  }
190
197
  function sr(e, t) {
191
198
  const r = e.$$;
192
- r.fragment !== null && (tr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
199
+ r.fragment !== null && (tr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
193
200
  }
194
201
  function or(e, t) {
195
- e.$$.dirty[0] === -1 && (U.push(e), Kt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
202
+ e.$$.dirty[0] === -1 && (G.push(e), Kt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
196
203
  }
197
- function ar(e, t, r, n, i, s, o = null, a = [-1]) {
198
- const h = De;
204
+ function ar(e, t, r, n, i, s, a = null, u = [-1]) {
205
+ const h = Y;
199
206
  J(e);
200
- const u = e.$$ = {
207
+ const o = e.$$ = {
201
208
  fragment: null,
202
209
  ctx: [],
203
210
  // state
204
211
  props: s,
205
212
  update: w,
206
213
  not_equal: i,
207
- bound: We(),
214
+ bound: Xe(),
208
215
  // lifecycle
209
216
  on_mount: [],
210
217
  on_destroy: [],
@@ -213,48 +220,48 @@ function ar(e, t, r, n, i, s, o = null, a = [-1]) {
213
220
  after_update: [],
214
221
  context: new Map(t.context || (h ? h.$$.context : [])),
215
222
  // everything else
216
- callbacks: We(),
217
- dirty: a,
223
+ callbacks: Xe(),
224
+ dirty: u,
218
225
  skip_bound: !1,
219
226
  root: t.target || h.$$.root
220
227
  };
221
- o && o(u.root);
228
+ a && a(o.root);
222
229
  let l = !1;
223
- if (u.ctx = r ? r(e, t.props || {}, (c, f, ...b) => {
230
+ if (o.ctx = r ? r(e, t.props || {}, (c, f, ...b) => {
224
231
  const y = b.length ? b[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 && or(e, c)), f;
226
- }) : [], u.update(), l = !0, ee(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
232
+ return o.ctx && i(o.ctx[c], o.ctx[c] = y) && (!o.skip_bound && o.bound[c] && o.bound[c](y), l && or(e, c)), f;
233
+ }) : [], o.update(), l = !0, te(o.before_update), o.fragment = n ? n(o.ctx) : !1, t.target) {
227
234
  if (t.hydrate) {
228
- const c = Qt(t.target);
229
- u.fragment && u.fragment.l(c), c.forEach(Re);
235
+ const c = Zt(t.target);
236
+ o.fragment && o.fragment.l(c), c.forEach(De);
230
237
  } else
231
- u.fragment && u.fragment.c();
232
- t.intro && nr(e.$$.fragment), ir(e, t.target, t.anchor), G();
238
+ o.fragment && o.fragment.c();
239
+ t.intro && nr(e.$$.fragment), ir(e, t.target, t.anchor), $();
233
240
  }
234
241
  J(h);
235
242
  }
236
- let pt;
237
- typeof HTMLElement == "function" && (pt = class extends HTMLElement {
243
+ let ft;
244
+ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
238
245
  constructor(t, r, n) {
239
246
  super();
240
247
  /** The Svelte component constructor */
241
- A(this, "$$ctor");
248
+ S(this, "$$ctor");
242
249
  /** Slots */
243
- A(this, "$$s");
250
+ S(this, "$$s");
244
251
  /** The Svelte component instance */
245
- A(this, "$$c");
252
+ S(this, "$$c");
246
253
  /** Whether or not the custom element is connected */
247
- A(this, "$$cn", !1);
254
+ S(this, "$$cn", !1);
248
255
  /** Component props data */
249
- A(this, "$$d", {});
256
+ S(this, "$$d", {});
250
257
  /** `true` if currently in the process of reflecting component props back to attributes */
251
- A(this, "$$r", !1);
258
+ S(this, "$$r", !1);
252
259
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
253
- A(this, "$$p_d", {});
260
+ S(this, "$$p_d", {});
254
261
  /** @type {Record<string, Function[]>} Event listeners */
255
- A(this, "$$l", {});
262
+ S(this, "$$l", {});
256
263
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
257
- A(this, "$$l_u", /* @__PURE__ */ new Map());
264
+ S(this, "$$l_u", /* @__PURE__ */ new Map());
258
265
  this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
259
266
  }
260
267
  addEventListener(t, r, n) {
@@ -271,42 +278,42 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
271
278
  }
272
279
  }
273
280
  connectedCallback() {
274
- return ze(this, null, function* () {
281
+ return ke(this, null, function* () {
275
282
  if (this.$$cn = !0, !this.$$c) {
276
283
  let t = function(s) {
277
284
  return () => {
278
- let o;
285
+ let a;
279
286
  return {
280
287
  c: function() {
281
- o = C("slot"), s !== "default" && v(o, "name", s);
288
+ a = C("slot"), s !== "default" && v(a, "name", s);
282
289
  },
283
290
  /**
284
291
  * @param {HTMLElement} target
285
292
  * @param {HTMLElement} [anchor]
286
293
  */
287
- m: function(u, l) {
288
- mt(u, o, l);
294
+ m: function(o, l) {
295
+ ct(o, a, l);
289
296
  },
290
- d: function(u) {
291
- u && Re(o);
297
+ d: function(o) {
298
+ o && De(a);
292
299
  }
293
300
  };
294
301
  };
295
302
  };
296
303
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
297
304
  return;
298
- const r = {}, n = Jt(this);
305
+ const r = {}, n = qt(this);
299
306
  for (const s of this.$$s)
300
307
  s in n && (r[s] = [t(s)]);
301
308
  for (const s of this.attributes) {
302
- const o = this.$$g_p(s.name);
303
- o in this.$$d || (this.$$d[o] = ie(o, s.value, this.$$p_d, "toProp"));
309
+ const a = this.$$g_p(s.name);
310
+ a in this.$$d || (this.$$d[a] = se(a, s.value, this.$$p_d, "toProp"));
304
311
  }
305
312
  for (const s in this.$$p_d)
306
313
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
307
314
  this.$$c = new this.$$ctor({
308
315
  target: this.shadowRoot || this,
309
- props: Xe(ke({}, this.$$d), {
316
+ props: Ve(je({}, this.$$d), {
310
317
  $$slots: r,
311
318
  $$scope: {
312
319
  ctx: []
@@ -317,21 +324,21 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
317
324
  this.$$r = !0;
318
325
  for (const s in this.$$p_d)
319
326
  if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
320
- const o = ie(
327
+ const a = se(
321
328
  s,
322
329
  this.$$d[s],
323
330
  this.$$p_d,
324
331
  "toAttribute"
325
332
  );
326
- o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
333
+ a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
327
334
  }
328
335
  this.$$r = !1;
329
336
  };
330
337
  this.$$c.$$.after_update.push(i), i();
331
338
  for (const s in this.$$l)
332
- for (const o of this.$$l[s]) {
333
- const a = this.$$c.$on(s, o);
334
- this.$$l_u.set(o, a);
339
+ for (const a of this.$$l[s]) {
340
+ const u = this.$$c.$on(s, a);
341
+ this.$$l_u.set(a, u);
335
342
  }
336
343
  this.$$l = {};
337
344
  }
@@ -341,7 +348,7 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
341
348
  // and setting attributes through setAttribute etc, this is helpful
342
349
  attributeChangedCallback(t, r, n) {
343
350
  var i;
344
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ie(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
351
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = se(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
345
352
  }
346
353
  disconnectedCallback() {
347
354
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -354,7 +361,7 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
354
361
  ) || t;
355
362
  }
356
363
  });
357
- function ie(e, t, r, n) {
364
+ function se(e, t, r, n) {
358
365
  var s;
359
366
  const i = (s = r[e]) == null ? void 0 : s.type;
360
367
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
@@ -385,35 +392,35 @@ function ie(e, t, r, n) {
385
392
  }
386
393
  }
387
394
  function ur(e, t, r, n, i, s) {
388
- let o = class extends pt {
395
+ let a = class extends ft {
389
396
  constructor() {
390
397
  super(e, r, i), this.$$p_d = t;
391
398
  }
392
399
  static get observedAttributes() {
393
400
  return Object.keys(t).map(
394
- (a) => (t[a].attribute || a).toLowerCase()
401
+ (u) => (t[u].attribute || u).toLowerCase()
395
402
  );
396
403
  }
397
404
  };
398
- return Object.keys(t).forEach((a) => {
399
- Object.defineProperty(o.prototype, a, {
405
+ return Object.keys(t).forEach((u) => {
406
+ Object.defineProperty(a.prototype, u, {
400
407
  get() {
401
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
408
+ return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
402
409
  },
403
410
  set(h) {
404
- var u;
405
- h = ie(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
411
+ var o;
412
+ h = se(u, h, t), this.$$d[u] = h, (o = this.$$c) == null || o.$set({ [u]: h });
406
413
  }
407
414
  });
408
- }), n.forEach((a) => {
409
- Object.defineProperty(o.prototype, a, {
415
+ }), n.forEach((u) => {
416
+ Object.defineProperty(a.prototype, u, {
410
417
  get() {
411
418
  var h;
412
- return (h = this.$$c) == null ? void 0 : h[a];
419
+ return (h = this.$$c) == null ? void 0 : h[u];
413
420
  }
414
421
  });
415
422
  }), e.element = /** @type {any} */
416
- o, o;
423
+ a, a;
417
424
  }
418
425
  class hr {
419
426
  constructor() {
@@ -424,7 +431,7 @@ class hr {
424
431
  *
425
432
  * @type {any}
426
433
  */
427
- A(this, "$$");
434
+ S(this, "$$");
428
435
  /**
429
436
  * ### PRIVATE API
430
437
  *
@@ -432,7 +439,7 @@ class hr {
432
439
  *
433
440
  * @type {any}
434
441
  */
435
- A(this, "$$set");
442
+ S(this, "$$set");
436
443
  }
437
444
  /** @returns {void} */
438
445
  $destroy() {
@@ -445,7 +452,7 @@ class hr {
445
452
  * @returns {() => void}
446
453
  */
447
454
  $on(t, r) {
448
- if (!Me(r))
455
+ if (!Re(r))
449
456
  return w;
450
457
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
451
458
  return n.push(r), () => {
@@ -458,71 +465,71 @@ class hr {
458
465
  * @returns {void}
459
466
  */
460
467
  $set(t) {
461
- this.$$set && !kt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
468
+ this.$$set && !jt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
462
469
  }
463
470
  }
464
471
  const lr = "4";
465
472
  typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(lr);
466
- const D = [];
473
+ const U = [];
467
474
  function cr(e, t) {
468
475
  return {
469
- subscribe: he(e, t).subscribe
476
+ subscribe: le(e, t).subscribe
470
477
  };
471
478
  }
472
- function he(e, t = w) {
479
+ function le(e, t = w) {
473
480
  let r;
474
481
  const n = /* @__PURE__ */ new Set();
475
- function i(a) {
476
- if (ct(e, a) && (e = a, r)) {
477
- const h = !D.length;
478
- for (const u of n)
479
- u[1](), D.push(u, e);
482
+ function i(u) {
483
+ if (ht(e, u) && (e = u, r)) {
484
+ const h = !U.length;
485
+ for (const o of n)
486
+ o[1](), U.push(o, e);
480
487
  if (h) {
481
- for (let u = 0; u < D.length; u += 2)
482
- D[u][0](D[u + 1]);
483
- D.length = 0;
488
+ for (let o = 0; o < U.length; o += 2)
489
+ U[o][0](U[o + 1]);
490
+ U.length = 0;
484
491
  }
485
492
  }
486
493
  }
487
- function s(a) {
488
- i(a(e));
494
+ function s(u) {
495
+ i(u(e));
489
496
  }
490
- function o(a, h = w) {
491
- const u = [a, h];
492
- return n.add(u), n.size === 1 && (r = t(i, s) || w), a(e), () => {
493
- n.delete(u), n.size === 0 && r && (r(), r = null);
497
+ function a(u, h = w) {
498
+ const o = [u, h];
499
+ return n.add(o), n.size === 1 && (r = t(i, s) || w), u(e), () => {
500
+ n.delete(o), n.size === 0 && r && (r(), r = null);
494
501
  };
495
502
  }
496
- return { set: i, update: s, subscribe: o };
503
+ return { set: i, update: s, subscribe: a };
497
504
  }
498
505
  function z(e, t, r) {
499
506
  const n = !Array.isArray(e), i = n ? [e] : e;
500
507
  if (!i.every(Boolean))
501
508
  throw new Error("derived() expects stores as input, got a falsy value");
502
509
  const s = t.length < 2;
503
- return cr(r, (o, a) => {
510
+ return cr(r, (a, u) => {
504
511
  let h = !1;
505
- const u = [];
512
+ const o = [];
506
513
  let l = 0, c = w;
507
514
  const f = () => {
508
515
  if (l)
509
516
  return;
510
517
  c();
511
- const y = t(n ? u[0] : u, o, a);
512
- s ? o(y) : c = Me(y) ? y : w;
518
+ const y = t(n ? o[0] : o, a, u);
519
+ s ? a(y) : c = Re(y) ? y : w;
513
520
  }, b = i.map(
514
- (y, E) => ft(
521
+ (y, m) => lt(
515
522
  y,
516
- (m) => {
517
- u[E] = m, l &= ~(1 << E), h && f();
523
+ (E) => {
524
+ o[m] = E, l &= ~(1 << m), h && f();
518
525
  },
519
526
  () => {
520
- l |= 1 << E;
527
+ l |= 1 << m;
521
528
  }
522
529
  )
523
530
  );
524
531
  return h = !0, f(), function() {
525
- ee(b), c(), h = !1;
532
+ te(b), c(), h = !1;
526
533
  };
527
534
  });
528
535
  }
@@ -546,12 +553,12 @@ function yr(e) {
546
553
  function xr(e) {
547
554
  return Array.isArray(e) ? [] : {};
548
555
  }
549
- function Y(e, t) {
556
+ function K(e, t) {
550
557
  return t.clone !== !1 && t.isMergeableObject(e) ? j(xr(e), e, t) : e;
551
558
  }
552
559
  function vr(e, t, r) {
553
560
  return e.concat(t).map(function(n) {
554
- return Y(n, r);
561
+ return K(n, r);
555
562
  });
556
563
  }
557
564
  function Er(e, t) {
@@ -565,10 +572,10 @@ function _r(e) {
565
572
  return Object.propertyIsEnumerable.call(e, t);
566
573
  }) : [];
567
574
  }
568
- function qe(e) {
575
+ function We(e) {
569
576
  return Object.keys(e).concat(_r(e));
570
577
  }
571
- function gt(e, t) {
578
+ function mt(e, t) {
572
579
  try {
573
580
  return t in e;
574
581
  } catch (r) {
@@ -576,20 +583,20 @@ function gt(e, t) {
576
583
  }
577
584
  }
578
585
  function Hr(e, t) {
579
- return gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
586
+ return mt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
580
587
  }
581
588
  function Tr(e, t, r) {
582
589
  var n = {};
583
- return r.isMergeableObject(e) && qe(e).forEach(function(i) {
584
- n[i] = Y(e[i], r);
585
- }), qe(t).forEach(function(i) {
586
- Hr(e, i) || (gt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Er(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
590
+ return r.isMergeableObject(e) && We(e).forEach(function(i) {
591
+ n[i] = K(e[i], r);
592
+ }), We(t).forEach(function(i) {
593
+ Hr(e, i) || (mt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Er(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
587
594
  }), n;
588
595
  }
589
596
  function j(e, t, r) {
590
- r = r || {}, r.arrayMerge = r.arrayMerge || vr, r.isMergeableObject = r.isMergeableObject || mr, r.cloneUnlessOtherwiseSpecified = Y;
597
+ r = r || {}, r.arrayMerge = r.arrayMerge || vr, r.isMergeableObject = r.isMergeableObject || mr, r.cloneUnlessOtherwiseSpecified = K;
591
598
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
592
- return s ? n ? r.arrayMerge(e, t, r) : Tr(e, t, r) : Y(t, r);
599
+ return s ? n ? r.arrayMerge(e, t, r) : Tr(e, t, r) : K(t, r);
593
600
  }
594
601
  j.all = function(t, r) {
595
602
  if (!Array.isArray(t))
@@ -599,7 +606,7 @@ j.all = function(t, r) {
599
606
  }, {});
600
607
  };
601
608
  var Br = j, Sr = Br;
602
- const Ar = /* @__PURE__ */ fr(Sr);
609
+ const Pr = /* @__PURE__ */ fr(Sr);
603
610
  var Ae = function(e, t) {
604
611
  return Ae = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
605
612
  r.__proto__ = n;
@@ -607,7 +614,7 @@ var Ae = function(e, t) {
607
614
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
608
615
  }, Ae(e, t);
609
616
  };
610
- function le(e, t) {
617
+ function ce(e, t) {
611
618
  if (typeof t != "function" && t !== null)
612
619
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
613
620
  Ae(e, t);
@@ -625,7 +632,7 @@ var d = function() {
625
632
  return t;
626
633
  }, d.apply(this, arguments);
627
634
  };
628
- function Pr(e, t) {
635
+ function Ar(e, t) {
629
636
  var r = {};
630
637
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
631
638
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -633,13 +640,13 @@ function Pr(e, t) {
633
640
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
634
641
  return r;
635
642
  }
636
- function ye(e, t, r) {
643
+ function xe(e, t, r) {
637
644
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
638
645
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
639
646
  return e.concat(s || Array.prototype.slice.call(t));
640
647
  }
641
- function xe(e, t) {
642
- var r = t && t.cache ? t.cache : Cr, n = t && t.serializer ? t.serializer : Ir, i = t && t.strategy ? t.strategy : Nr;
648
+ function ve(e, t) {
649
+ var r = t && t.cache ? t.cache : $r, n = t && t.serializer ? t.serializer : Ir, i = t && t.strategy ? t.strategy : Lr;
643
650
  return i(e, {
644
651
  cache: r,
645
652
  serializer: n
@@ -648,46 +655,44 @@ function xe(e, t) {
648
655
  function wr(e) {
649
656
  return e == null || typeof e == "number" || typeof e == "boolean";
650
657
  }
651
- function dt(e, t, r, n) {
658
+ function Nr(e, t, r, n) {
652
659
  var i = wr(n) ? n : r(n), s = t.get(i);
653
660
  return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
654
661
  }
655
- function bt(e, t, r) {
662
+ function pt(e, t, r) {
656
663
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
657
664
  return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
658
665
  }
659
- function Ue(e, t, r, n, i) {
666
+ function gt(e, t, r, n, i) {
660
667
  return r.bind(t, e, n, i);
661
668
  }
662
- function Nr(e, t) {
663
- var r = e.length === 1 ? dt : bt;
664
- return Ue(e, this, r, t.cache.create(), t.serializer);
669
+ function Lr(e, t) {
670
+ var r = e.length === 1 ? Nr : pt;
671
+ return gt(e, this, r, t.cache.create(), t.serializer);
665
672
  }
666
673
  function Or(e, t) {
667
- return Ue(e, this, bt, t.cache.create(), t.serializer);
668
- }
669
- function Lr(e, t) {
670
- return Ue(e, this, dt, t.cache.create(), t.serializer);
674
+ return gt(e, this, pt, t.cache.create(), t.serializer);
671
675
  }
672
676
  var Ir = function() {
673
677
  return JSON.stringify(arguments);
674
- };
675
- function Ge() {
676
- this.cache = /* @__PURE__ */ Object.create(null);
677
- }
678
- Ge.prototype.get = function(e) {
679
- return this.cache[e];
680
- };
681
- Ge.prototype.set = function(e, t) {
682
- this.cache[e] = t;
683
- };
684
- var Cr = {
678
+ }, Cr = (
679
+ /** @class */
680
+ function() {
681
+ function e() {
682
+ this.cache = /* @__PURE__ */ Object.create(null);
683
+ }
684
+ return e.prototype.get = function(t) {
685
+ return this.cache[t];
686
+ }, e.prototype.set = function(t, r) {
687
+ this.cache[t] = r;
688
+ }, e;
689
+ }()
690
+ ), $r = {
685
691
  create: function() {
686
- return new Ge();
692
+ return new Cr();
687
693
  }
688
- }, ve = {
689
- variadic: Or,
690
- monadic: Lr
694
+ }, Ee = {
695
+ variadic: Or
691
696
  }, p;
692
697
  (function(e) {
693
698
  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";
@@ -700,43 +705,43 @@ var V;
700
705
  (function(e) {
701
706
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
702
707
  })(V || (V = {}));
703
- function Qe(e) {
708
+ function Ze(e) {
704
709
  return e.type === x.literal;
705
710
  }
706
- function $r(e) {
711
+ function Mr(e) {
707
712
  return e.type === x.argument;
708
713
  }
709
- function yt(e) {
714
+ function dt(e) {
710
715
  return e.type === x.number;
711
716
  }
712
- function xt(e) {
717
+ function bt(e) {
713
718
  return e.type === x.date;
714
719
  }
715
- function vt(e) {
720
+ function yt(e) {
716
721
  return e.type === x.time;
717
722
  }
718
- function Et(e) {
723
+ function xt(e) {
719
724
  return e.type === x.select;
720
725
  }
721
- function _t(e) {
726
+ function vt(e) {
722
727
  return e.type === x.plural;
723
728
  }
724
- function Mr(e) {
729
+ function Rr(e) {
725
730
  return e.type === x.pound;
726
731
  }
727
- function Ht(e) {
732
+ function Et(e) {
728
733
  return e.type === x.tag;
729
734
  }
730
- function Tt(e) {
735
+ function _t(e) {
731
736
  return !!(e && typeof e == "object" && e.type === V.number);
732
737
  }
733
- function Pe(e) {
738
+ function we(e) {
734
739
  return !!(e && typeof e == "object" && e.type === V.dateTime);
735
740
  }
736
- var Bt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Rr = /(?:[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;
737
- function Dr(e) {
741
+ var Ht = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dr = /(?:[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;
742
+ function Ur(e) {
738
743
  var t = {};
739
- return e.replace(Rr, function(r) {
744
+ return e.replace(Dr, function(r) {
740
745
  var n = r.length;
741
746
  switch (r[0]) {
742
747
  case "G":
@@ -825,36 +830,36 @@ function Dr(e) {
825
830
  return "";
826
831
  }), t;
827
832
  }
828
- var Ur = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
829
- function Gr(e) {
833
+ var Gr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
834
+ function Fr(e) {
830
835
  if (e.length === 0)
831
836
  throw new Error("Number skeleton cannot be empty");
832
- for (var t = e.split(Ur).filter(function(f) {
837
+ for (var t = e.split(Gr).filter(function(f) {
833
838
  return f.length > 0;
834
839
  }), r = [], n = 0, i = t; n < i.length; n++) {
835
- var s = i[n], o = s.split("/");
836
- if (o.length === 0)
840
+ var s = i[n], a = s.split("/");
841
+ if (a.length === 0)
837
842
  throw new Error("Invalid number skeleton");
838
- for (var a = o[0], h = o.slice(1), u = 0, l = h; u < l.length; u++) {
839
- var c = l[u];
843
+ for (var u = a[0], h = a.slice(1), o = 0, l = h; o < l.length; o++) {
844
+ var c = l[o];
840
845
  if (c.length === 0)
841
846
  throw new Error("Invalid number skeleton");
842
847
  }
843
- r.push({ stem: a, options: h });
848
+ r.push({ stem: u, options: h });
844
849
  }
845
850
  return r;
846
851
  }
847
- function Fr(e) {
852
+ function jr(e) {
848
853
  return e.replace(/^(.*?)-/, "");
849
854
  }
850
- var Je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, St = /^(@+)?(\+|#+)?[rs]?$/g, jr = /(\*)(0+)|(#+)(0+)|(0+)/g, At = /^(0+)$/;
851
- function Ye(e) {
855
+ var qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Tt = /^(@+)?(\+|#+)?[rs]?$/g, Vr = /(\*)(0+)|(#+)(0+)|(0+)/g, Bt = /^(0+)$/;
856
+ function Qe(e) {
852
857
  var t = {};
853
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(St, function(r, n, i) {
858
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Tt, function(r, n, i) {
854
859
  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)), "";
855
860
  }), t;
856
861
  }
857
- function Pt(e) {
862
+ function St(e) {
858
863
  switch (e) {
859
864
  case "sign-auto":
860
865
  return {
@@ -894,7 +899,7 @@ function Pt(e) {
894
899
  };
895
900
  }
896
901
  }
897
- function Vr(e) {
902
+ function kr(e) {
898
903
  var t;
899
904
  if (e[0] === "E" && e[1] === "E" ? (t = {
900
905
  notation: "engineering"
@@ -902,17 +907,17 @@ function Vr(e) {
902
907
  notation: "scientific"
903
908
  }, e = e.slice(1)), t) {
904
909
  var r = e.slice(0, 2);
905
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !At.test(e))
910
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Bt.test(e))
906
911
  throw new Error("Malformed concise eng/scientific notation");
907
912
  t.minimumIntegerDigits = e.length;
908
913
  }
909
914
  return t;
910
915
  }
911
- function Ke(e) {
912
- var t = {}, r = Pt(e);
916
+ function Je(e) {
917
+ var t = {}, r = St(e);
913
918
  return r || t;
914
919
  }
915
- function kr(e) {
920
+ function Xr(e) {
916
921
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
917
922
  var i = n[r];
918
923
  switch (i.stem) {
@@ -936,7 +941,7 @@ function kr(e) {
936
941
  continue;
937
942
  case "measure-unit":
938
943
  case "unit":
939
- t.style = "unit", t.unit = Fr(i.options[0]);
944
+ t.style = "unit", t.unit = jr(i.options[0]);
940
945
  continue;
941
946
  case "compact-short":
942
947
  case "K":
@@ -947,13 +952,13 @@ function kr(e) {
947
952
  t.notation = "compact", t.compactDisplay = "long";
948
953
  continue;
949
954
  case "scientific":
950
- t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
951
- return d(d({}, h), Ke(u));
955
+ t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(h, o) {
956
+ return d(d({}, h), Je(o));
952
957
  }, {}));
953
958
  continue;
954
959
  case "engineering":
955
- t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
956
- return d(d({}, h), Ke(u));
960
+ t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(h, o) {
961
+ return d(d({}, h), Je(o));
957
962
  }, {}));
958
963
  continue;
959
964
  case "notation-simple":
@@ -998,8 +1003,8 @@ function kr(e) {
998
1003
  case "integer-width":
999
1004
  if (i.options.length > 1)
1000
1005
  throw new RangeError("integer-width stems only accept a single optional option");
1001
- i.options[0].replace(jr, function(h, u, l, c, f, b) {
1002
- if (u)
1006
+ i.options[0].replace(Vr, function(h, o, l, c, f, b) {
1007
+ if (o)
1003
1008
  t.minimumIntegerDigits = l.length;
1004
1009
  else {
1005
1010
  if (c && f)
@@ -1011,32 +1016,32 @@ function kr(e) {
1011
1016
  });
1012
1017
  continue;
1013
1018
  }
1014
- if (At.test(i.stem)) {
1019
+ if (Bt.test(i.stem)) {
1015
1020
  t.minimumIntegerDigits = i.stem.length;
1016
1021
  continue;
1017
1022
  }
1018
- if (Je.test(i.stem)) {
1023
+ if (qe.test(i.stem)) {
1019
1024
  if (i.options.length > 1)
1020
1025
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1021
- i.stem.replace(Je, function(h, u, l, c, f, b) {
1022
- return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1026
+ i.stem.replace(qe, function(h, o, l, c, f, b) {
1027
+ return l === "*" ? t.minimumFractionDigits = o.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = o.length, t.maximumFractionDigits = o.length), "";
1023
1028
  });
1024
1029
  var s = i.options[0];
1025
- s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), Ye(s)));
1030
+ s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), Qe(s)));
1026
1031
  continue;
1027
1032
  }
1028
- if (St.test(i.stem)) {
1029
- t = d(d({}, t), Ye(i.stem));
1033
+ if (Tt.test(i.stem)) {
1034
+ t = d(d({}, t), Qe(i.stem));
1030
1035
  continue;
1031
1036
  }
1032
- var o = Pt(i.stem);
1033
- o && (t = d(d({}, t), o));
1034
- var a = Vr(i.stem);
1037
+ var a = St(i.stem);
1035
1038
  a && (t = d(d({}, t), a));
1039
+ var u = kr(i.stem);
1040
+ u && (t = d(d({}, t), u));
1036
1041
  }
1037
1042
  return t;
1038
1043
  }
1039
- var re = {
1044
+ var ne = {
1040
1045
  "001": [
1041
1046
  "H",
1042
1047
  "h"
@@ -2451,22 +2456,22 @@ var re = {
2451
2456
  "h"
2452
2457
  ]
2453
2458
  };
2454
- function Xr(e, t) {
2459
+ function zr(e, t) {
2455
2460
  for (var r = "", n = 0; n < e.length; n++) {
2456
2461
  var i = e.charAt(n);
2457
2462
  if (i === "j") {
2458
2463
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2459
2464
  s++, n++;
2460
- var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = zr(t);
2461
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2465
+ var a = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", o = Wr(t);
2466
+ for ((o == "H" || o == "k") && (u = 0); u-- > 0; )
2462
2467
  r += h;
2463
- for (; o-- > 0; )
2464
- r = u + r;
2468
+ for (; a-- > 0; )
2469
+ r = o + r;
2465
2470
  } else i === "J" ? r += "H" : r += i;
2466
2471
  }
2467
2472
  return r;
2468
2473
  }
2469
- function zr(e) {
2474
+ function Wr(e) {
2470
2475
  var t = e.hourCycle;
2471
2476
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2472
2477
  e.hourCycles && // @ts-ignore
@@ -2485,23 +2490,23 @@ function zr(e) {
2485
2490
  }
2486
2491
  var r = e.language, n;
2487
2492
  r !== "root" && (n = e.maximize().region);
2488
- var i = re[n || ""] || re[r || ""] || re["".concat(r, "-001")] || re["001"];
2493
+ var i = ne[n || ""] || ne[r || ""] || ne["".concat(r, "-001")] || ne["001"];
2489
2494
  return i[0];
2490
2495
  }
2491
- var Ee, Wr = new RegExp("^".concat(Bt.source, "*")), Zr = new RegExp("".concat(Bt.source, "*$"));
2496
+ var _e, Zr = new RegExp("^".concat(Ht.source, "*")), qr = new RegExp("".concat(Ht.source, "*$"));
2492
2497
  function g(e, t) {
2493
2498
  return { start: e, end: t };
2494
2499
  }
2495
- var qr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Qr = !!String.fromCodePoint, Jr = !!Object.fromEntries, Yr = !!String.prototype.codePointAt, Kr = !!String.prototype.trimStart, en = !!String.prototype.trimEnd, tn = !!Number.isSafeInteger, rn = tn ? Number.isSafeInteger : function(e) {
2500
+ var Qr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Jr = !!String.fromCodePoint, Yr = !!Object.fromEntries, Kr = !!String.prototype.codePointAt, en = !!String.prototype.trimStart, tn = !!String.prototype.trimEnd, rn = !!Number.isSafeInteger, nn = rn ? Number.isSafeInteger : function(e) {
2496
2501
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2497
- }, we = !0;
2502
+ }, Ne = !0;
2498
2503
  try {
2499
- var nn = Nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2500
- we = ((Ee = nn.exec("a")) === null || Ee === void 0 ? void 0 : Ee[0]) === "a";
2504
+ var sn = At("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2505
+ Ne = ((_e = sn.exec("a")) === null || _e === void 0 ? void 0 : _e[0]) === "a";
2501
2506
  } catch (e) {
2502
- we = !1;
2507
+ Ne = !1;
2503
2508
  }
2504
- var et = qr ? (
2509
+ var Ye = Qr ? (
2505
2510
  // Native
2506
2511
  function(t, r, n) {
2507
2512
  return t.startsWith(r, n);
@@ -2511,31 +2516,31 @@ var et = qr ? (
2511
2516
  function(t, r, n) {
2512
2517
  return t.slice(n, n + r.length) === r;
2513
2518
  }
2514
- ), Ne = Qr ? String.fromCodePoint : (
2519
+ ), Le = Jr ? String.fromCodePoint : (
2515
2520
  // IE11
2516
2521
  function() {
2517
2522
  for (var t = [], r = 0; r < arguments.length; r++)
2518
2523
  t[r] = arguments[r];
2519
- for (var n = "", i = t.length, s = 0, o; i > s; ) {
2520
- if (o = t[s++], o > 1114111)
2521
- throw RangeError(o + " is not a valid code point");
2522
- n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2524
+ for (var n = "", i = t.length, s = 0, a; i > s; ) {
2525
+ if (a = t[s++], a > 1114111)
2526
+ throw RangeError(a + " is not a valid code point");
2527
+ n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2523
2528
  }
2524
2529
  return n;
2525
2530
  }
2526
- ), tt = (
2531
+ ), Ke = (
2527
2532
  // native
2528
- Jr ? Object.fromEntries : (
2533
+ Yr ? Object.fromEntries : (
2529
2534
  // Ponyfill
2530
2535
  function(t) {
2531
2536
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2532
- var s = i[n], o = s[0], a = s[1];
2533
- r[o] = a;
2537
+ var s = i[n], a = s[0], u = s[1];
2538
+ r[a] = u;
2534
2539
  }
2535
2540
  return r;
2536
2541
  }
2537
2542
  )
2538
- ), wt = Yr ? (
2543
+ ), Pt = Kr ? (
2539
2544
  // Native
2540
2545
  function(t, r) {
2541
2546
  return t.codePointAt(r);
@@ -2549,7 +2554,7 @@ var et = qr ? (
2549
2554
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2550
2555
  }
2551
2556
  }
2552
- ), sn = Kr ? (
2557
+ ), on = en ? (
2553
2558
  // Native
2554
2559
  function(t) {
2555
2560
  return t.trimStart();
@@ -2557,9 +2562,9 @@ var et = qr ? (
2557
2562
  ) : (
2558
2563
  // Ponyfill
2559
2564
  function(t) {
2560
- return t.replace(Wr, "");
2565
+ return t.replace(Zr, "");
2561
2566
  }
2562
- ), on = en ? (
2567
+ ), an = tn ? (
2563
2568
  // Native
2564
2569
  function(t) {
2565
2570
  return t.trimEnd();
@@ -2567,32 +2572,32 @@ var et = qr ? (
2567
2572
  ) : (
2568
2573
  // Ponyfill
2569
2574
  function(t) {
2570
- return t.replace(Zr, "");
2575
+ return t.replace(qr, "");
2571
2576
  }
2572
2577
  );
2573
- function Nt(e, t) {
2578
+ function At(e, t) {
2574
2579
  return new RegExp(e, t);
2575
2580
  }
2576
2581
  var Oe;
2577
- if (we) {
2578
- var rt = Nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2582
+ if (Ne) {
2583
+ var et = At("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2579
2584
  Oe = function(t, r) {
2580
2585
  var n;
2581
- rt.lastIndex = r;
2582
- var i = rt.exec(t);
2586
+ et.lastIndex = r;
2587
+ var i = et.exec(t);
2583
2588
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2584
2589
  };
2585
2590
  } else
2586
2591
  Oe = function(t, r) {
2587
2592
  for (var n = []; ; ) {
2588
- var i = wt(t, r);
2589
- if (i === void 0 || Ot(i) || ln(i))
2593
+ var i = Pt(t, r);
2594
+ if (i === void 0 || wt(i) || cn(i))
2590
2595
  break;
2591
2596
  n.push(i), r += i >= 65536 ? 2 : 1;
2592
2597
  }
2593
- return Ne.apply(void 0, n);
2598
+ return Le.apply(void 0, n);
2594
2599
  };
2595
- var an = (
2600
+ var un = (
2596
2601
  /** @class */
2597
2602
  function() {
2598
2603
  function e(t, r) {
@@ -2606,33 +2611,33 @@ var an = (
2606
2611
  for (var i = []; !this.isEOF(); ) {
2607
2612
  var s = this.char();
2608
2613
  if (s === 123) {
2609
- var o = this.parseArgument(t, n);
2610
- if (o.err)
2611
- return o;
2612
- i.push(o.val);
2614
+ var a = this.parseArgument(t, n);
2615
+ if (a.err)
2616
+ return a;
2617
+ i.push(a.val);
2613
2618
  } else {
2614
2619
  if (s === 125 && t > 0)
2615
2620
  break;
2616
2621
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
2617
- var a = this.clonePosition();
2622
+ var u = this.clonePosition();
2618
2623
  this.bump(), i.push({
2619
2624
  type: x.pound,
2620
- location: g(a, this.clonePosition())
2625
+ location: g(u, this.clonePosition())
2621
2626
  });
2622
2627
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2623
2628
  if (n)
2624
2629
  break;
2625
2630
  return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
2626
- } else if (s === 60 && !this.ignoreTag && Le(this.peek() || 0)) {
2627
- var o = this.parseTag(t, r);
2628
- if (o.err)
2629
- return o;
2630
- i.push(o.val);
2631
+ } else if (s === 60 && !this.ignoreTag && Ie(this.peek() || 0)) {
2632
+ var a = this.parseTag(t, r);
2633
+ if (a.err)
2634
+ return a;
2635
+ i.push(a.val);
2631
2636
  } else {
2632
- var o = this.parseLiteral(t, r);
2633
- if (o.err)
2634
- return o;
2635
- i.push(o.val);
2637
+ var a = this.parseLiteral(t, r);
2638
+ if (a.err)
2639
+ return a;
2640
+ i.push(a.val);
2636
2641
  }
2637
2642
  }
2638
2643
  }
@@ -2654,27 +2659,27 @@ var an = (
2654
2659
  var s = this.parseMessage(t + 1, r, !0);
2655
2660
  if (s.err)
2656
2661
  return s;
2657
- var o = s.val, a = this.clonePosition();
2662
+ var a = s.val, u = this.clonePosition();
2658
2663
  if (this.bumpIf("</")) {
2659
- if (this.isEOF() || !Le(this.char()))
2660
- return this.error(p.INVALID_TAG, g(a, this.clonePosition()));
2661
- var h = this.clonePosition(), u = this.parseTagName();
2662
- return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2664
+ if (this.isEOF() || !Ie(this.char()))
2665
+ return this.error(p.INVALID_TAG, g(u, this.clonePosition()));
2666
+ var h = this.clonePosition(), o = this.parseTagName();
2667
+ return i !== o ? this.error(p.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2663
2668
  val: {
2664
2669
  type: x.tag,
2665
2670
  value: i,
2666
- children: o,
2671
+ children: a,
2667
2672
  location: g(n, this.clonePosition())
2668
2673
  },
2669
2674
  err: null
2670
- } : this.error(p.INVALID_TAG, g(a, this.clonePosition())));
2675
+ } : this.error(p.INVALID_TAG, g(u, this.clonePosition())));
2671
2676
  } else
2672
2677
  return this.error(p.UNCLOSED_TAG, g(n, this.clonePosition()));
2673
2678
  } else
2674
2679
  return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
2675
2680
  }, e.prototype.parseTagName = function() {
2676
2681
  var t = this.offset();
2677
- for (this.bump(); !this.isEOF() && hn(this.char()); )
2682
+ for (this.bump(); !this.isEOF() && ln(this.char()); )
2678
2683
  this.bump();
2679
2684
  return this.message.slice(t, this.offset());
2680
2685
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2684,16 +2689,16 @@ var an = (
2684
2689
  i += s;
2685
2690
  continue;
2686
2691
  }
2687
- var o = this.tryParseUnquoted(t, r);
2688
- if (o) {
2689
- i += o;
2690
- continue;
2691
- }
2692
- var a = this.tryParseLeftAngleBracket();
2692
+ var a = this.tryParseUnquoted(t, r);
2693
2693
  if (a) {
2694
2694
  i += a;
2695
2695
  continue;
2696
2696
  }
2697
+ var u = this.tryParseLeftAngleBracket();
2698
+ if (u) {
2699
+ i += u;
2700
+ continue;
2701
+ }
2697
2702
  break;
2698
2703
  }
2699
2704
  var h = g(n, this.clonePosition());
@@ -2703,7 +2708,7 @@ var an = (
2703
2708
  };
2704
2709
  }, e.prototype.tryParseLeftAngleBracket = function() {
2705
2710
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2706
- !un(this.peek() || 0)) ? (this.bump(), "<") : null;
2711
+ !hn(this.peek() || 0)) ? (this.bump(), "<") : null;
2707
2712
  }, e.prototype.tryParseQuote = function(t) {
2708
2713
  if (this.isEOF() || this.char() !== 39)
2709
2714
  return null;
@@ -2737,12 +2742,12 @@ var an = (
2737
2742
  r.push(n);
2738
2743
  this.bump();
2739
2744
  }
2740
- return Ne.apply(void 0, r);
2745
+ return Le.apply(void 0, r);
2741
2746
  }, e.prototype.tryParseUnquoted = function(t, r) {
2742
2747
  if (this.isEOF())
2743
2748
  return null;
2744
2749
  var n = this.char();
2745
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ne(n));
2750
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Le(n));
2746
2751
  }, e.prototype.parseArgument = function(t, r) {
2747
2752
  var n = this.clonePosition();
2748
2753
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2773,64 +2778,64 @@ var an = (
2773
2778
  }, e.prototype.parseIdentifierIfPossible = function() {
2774
2779
  var t = this.clonePosition(), r = this.offset(), n = Oe(this.message, r), i = r + n.length;
2775
2780
  this.bumpTo(i);
2776
- var s = this.clonePosition(), o = g(t, s);
2777
- return { value: n, location: o };
2781
+ var s = this.clonePosition(), a = g(t, s);
2782
+ return { value: n, location: a };
2778
2783
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2779
- var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2780
- switch (a) {
2784
+ var s, a = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2785
+ switch (u) {
2781
2786
  case "":
2782
- return this.error(p.EXPECT_ARGUMENT_TYPE, g(o, h));
2787
+ return this.error(p.EXPECT_ARGUMENT_TYPE, g(a, h));
2783
2788
  case "number":
2784
2789
  case "date":
2785
2790
  case "time": {
2786
2791
  this.bumpSpace();
2787
- var u = null;
2792
+ var o = null;
2788
2793
  if (this.bumpIf(",")) {
2789
2794
  this.bumpSpace();
2790
2795
  var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2791
2796
  if (c.err)
2792
2797
  return c;
2793
- var f = on(c.val);
2798
+ var f = an(c.val);
2794
2799
  if (f.length === 0)
2795
2800
  return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
2796
2801
  var b = g(l, this.clonePosition());
2797
- u = { style: f, styleLocation: b };
2802
+ o = { style: f, styleLocation: b };
2798
2803
  }
2799
2804
  var y = this.tryParseArgumentClose(i);
2800
2805
  if (y.err)
2801
2806
  return y;
2802
- var E = g(i, this.clonePosition());
2803
- if (u && et(u == null ? void 0 : u.style, "::", 0)) {
2804
- var m = sn(u.style.slice(2));
2805
- if (a === "number") {
2806
- var c = this.parseNumberSkeletonFromString(m, u.styleLocation);
2807
+ var m = g(i, this.clonePosition());
2808
+ if (o && Ye(o == null ? void 0 : o.style, "::", 0)) {
2809
+ var E = on(o.style.slice(2));
2810
+ if (u === "number") {
2811
+ var c = this.parseNumberSkeletonFromString(E, o.styleLocation);
2807
2812
  return c.err ? c : {
2808
- val: { type: x.number, value: n, location: E, style: c.val },
2813
+ val: { type: x.number, value: n, location: m, style: c.val },
2809
2814
  err: null
2810
2815
  };
2811
2816
  } else {
2812
- if (m.length === 0)
2813
- return this.error(p.EXPECT_DATE_TIME_SKELETON, E);
2814
- var H = m;
2815
- this.locale && (H = Xr(m, this.locale));
2817
+ if (E.length === 0)
2818
+ return this.error(p.EXPECT_DATE_TIME_SKELETON, m);
2819
+ var P = E;
2820
+ this.locale && (P = zr(E, this.locale));
2816
2821
  var f = {
2817
2822
  type: V.dateTime,
2818
- pattern: H,
2819
- location: u.styleLocation,
2820
- parsedOptions: this.shouldParseSkeletons ? Dr(H) : {}
2821
- }, _ = a === "date" ? x.date : x.time;
2823
+ pattern: P,
2824
+ location: o.styleLocation,
2825
+ parsedOptions: this.shouldParseSkeletons ? Ur(P) : {}
2826
+ }, B = u === "date" ? x.date : x.time;
2822
2827
  return {
2823
- val: { type: _, value: n, location: E, style: f },
2828
+ val: { type: B, value: n, location: m, style: f },
2824
2829
  err: null
2825
2830
  };
2826
2831
  }
2827
2832
  }
2828
2833
  return {
2829
2834
  val: {
2830
- type: a === "number" ? x.number : a === "date" ? x.date : x.time,
2835
+ type: u === "number" ? x.number : u === "date" ? x.date : x.time,
2831
2836
  value: n,
2832
- location: E,
2833
- style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
2837
+ location: m,
2838
+ style: (s = o == null ? void 0 : o.style) !== null && s !== void 0 ? s : null
2834
2839
  },
2835
2840
  err: null
2836
2841
  };
@@ -2838,32 +2843,32 @@ var an = (
2838
2843
  case "plural":
2839
2844
  case "selectordinal":
2840
2845
  case "select": {
2841
- var B = this.clonePosition();
2846
+ var H = this.clonePosition();
2842
2847
  if (this.bumpSpace(), !this.bumpIf(","))
2843
- return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(B, d({}, B)));
2848
+ return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(H, d({}, H)));
2844
2849
  this.bumpSpace();
2845
- var O = this.parseIdentifierIfPossible(), P = 0;
2846
- if (a !== "select" && O.value === "offset") {
2850
+ var L = this.parseIdentifierIfPossible(), A = 0;
2851
+ if (u !== "select" && L.value === "offset") {
2847
2852
  if (!this.bumpIf(":"))
2848
2853
  return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
2849
2854
  this.bumpSpace();
2850
2855
  var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2851
2856
  if (c.err)
2852
2857
  return c;
2853
- this.bumpSpace(), O = this.parseIdentifierIfPossible(), P = c.val;
2858
+ this.bumpSpace(), L = this.parseIdentifierIfPossible(), A = c.val;
2854
2859
  }
2855
- var I = this.tryParsePluralOrSelectOptions(t, a, r, O);
2860
+ var I = this.tryParsePluralOrSelectOptions(t, u, r, L);
2856
2861
  if (I.err)
2857
2862
  return I;
2858
2863
  var y = this.tryParseArgumentClose(i);
2859
2864
  if (y.err)
2860
2865
  return y;
2861
2866
  var N = g(i, this.clonePosition());
2862
- return a === "select" ? {
2867
+ return u === "select" ? {
2863
2868
  val: {
2864
2869
  type: x.select,
2865
2870
  value: n,
2866
- options: tt(I.val),
2871
+ options: Ke(I.val),
2867
2872
  location: N
2868
2873
  },
2869
2874
  err: null
@@ -2871,16 +2876,16 @@ var an = (
2871
2876
  val: {
2872
2877
  type: x.plural,
2873
2878
  value: n,
2874
- options: tt(I.val),
2875
- offset: P,
2876
- pluralType: a === "plural" ? "cardinal" : "ordinal",
2879
+ options: Ke(I.val),
2880
+ offset: A,
2881
+ pluralType: u === "plural" ? "cardinal" : "ordinal",
2877
2882
  location: N
2878
2883
  },
2879
2884
  err: null
2880
2885
  };
2881
2886
  }
2882
2887
  default:
2883
- return this.error(p.INVALID_ARGUMENT_TYPE, g(o, h));
2888
+ return this.error(p.INVALID_ARGUMENT_TYPE, g(a, h));
2884
2889
  }
2885
2890
  }, e.prototype.tryParseArgumentClose = function(t) {
2886
2891
  return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2922,7 +2927,7 @@ var an = (
2922
2927
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2923
2928
  var n = [];
2924
2929
  try {
2925
- n = Gr(t);
2930
+ n = Fr(t);
2926
2931
  } catch (i) {
2927
2932
  return this.error(p.INVALID_NUMBER_SKELETON, r);
2928
2933
  }
@@ -2931,55 +2936,55 @@ var an = (
2931
2936
  type: V.number,
2932
2937
  tokens: n,
2933
2938
  location: r,
2934
- parsedOptions: this.shouldParseSkeletons ? kr(n) : {}
2939
+ parsedOptions: this.shouldParseSkeletons ? Xr(n) : {}
2935
2940
  },
2936
2941
  err: null
2937
2942
  };
2938
2943
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2939
- for (var s, o = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
2940
- if (u.length === 0) {
2944
+ for (var s, a = !1, u = [], h = /* @__PURE__ */ new Set(), o = i.value, l = i.location; ; ) {
2945
+ if (o.length === 0) {
2941
2946
  var c = this.clonePosition();
2942
2947
  if (r !== "select" && this.bumpIf("=")) {
2943
2948
  var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
2944
2949
  if (f.err)
2945
2950
  return f;
2946
- l = g(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
2951
+ l = g(c, this.clonePosition()), o = this.message.slice(c.offset, this.offset());
2947
2952
  } else
2948
2953
  break;
2949
2954
  }
2950
- if (h.has(u))
2955
+ if (h.has(o))
2951
2956
  return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2952
- u === "other" && (o = !0), this.bumpSpace();
2957
+ o === "other" && (a = !0), this.bumpSpace();
2953
2958
  var b = this.clonePosition();
2954
2959
  if (!this.bumpIf("{"))
2955
2960
  return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
2956
2961
  var y = this.parseMessage(t + 1, r, n);
2957
2962
  if (y.err)
2958
2963
  return y;
2959
- var E = this.tryParseArgumentClose(b);
2960
- if (E.err)
2961
- return E;
2962
- a.push([
2963
- u,
2964
+ var m = this.tryParseArgumentClose(b);
2965
+ if (m.err)
2966
+ return m;
2967
+ u.push([
2968
+ o,
2964
2969
  {
2965
2970
  value: y.val,
2966
2971
  location: g(b, this.clonePosition())
2967
2972
  }
2968
- ]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
2973
+ ]), h.add(o), this.bumpSpace(), s = this.parseIdentifierIfPossible(), o = s.value, l = s.location;
2969
2974
  }
2970
- return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(p.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2975
+ return u.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(p.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
2971
2976
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2972
2977
  var n = 1, i = this.clonePosition();
2973
2978
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
2974
- for (var s = !1, o = 0; !this.isEOF(); ) {
2975
- var a = this.char();
2976
- if (a >= 48 && a <= 57)
2977
- s = !0, o = o * 10 + (a - 48), this.bump();
2979
+ for (var s = !1, a = 0; !this.isEOF(); ) {
2980
+ var u = this.char();
2981
+ if (u >= 48 && u <= 57)
2982
+ s = !0, a = a * 10 + (u - 48), this.bump();
2978
2983
  else
2979
2984
  break;
2980
2985
  }
2981
2986
  var h = g(i, this.clonePosition());
2982
- return s ? (o *= n, rn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
2987
+ return s ? (a *= n, nn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
2983
2988
  }, e.prototype.offset = function() {
2984
2989
  return this.position.offset;
2985
2990
  }, e.prototype.isEOF = function() {
@@ -2994,7 +2999,7 @@ var an = (
2994
2999
  var t = this.position.offset;
2995
3000
  if (t >= this.message.length)
2996
3001
  throw Error("out of bound");
2997
- var r = wt(this.message, t);
3002
+ var r = Pt(this.message, t);
2998
3003
  if (r === void 0)
2999
3004
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3000
3005
  return r;
@@ -3013,7 +3018,7 @@ var an = (
3013
3018
  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);
3014
3019
  }
3015
3020
  }, e.prototype.bumpIf = function(t) {
3016
- if (et(this.message, t, this.offset())) {
3021
+ if (Ye(this.message, t, this.offset())) {
3017
3022
  for (var r = 0; r < t.length; r++)
3018
3023
  this.bump();
3019
3024
  return !0;
@@ -3035,7 +3040,7 @@ var an = (
3035
3040
  break;
3036
3041
  }
3037
3042
  }, e.prototype.bumpSpace = function() {
3038
- for (; !this.isEOF() && Ot(this.char()); )
3043
+ for (; !this.isEOF() && wt(this.char()); )
3039
3044
  this.bump();
3040
3045
  }, e.prototype.peek = function() {
3041
3046
  if (this.isEOF())
@@ -3045,46 +3050,46 @@ var an = (
3045
3050
  }, e;
3046
3051
  }()
3047
3052
  );
3048
- function Le(e) {
3053
+ function Ie(e) {
3049
3054
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3050
3055
  }
3051
- function un(e) {
3052
- return Le(e) || e === 47;
3053
- }
3054
3056
  function hn(e) {
3057
+ return Ie(e) || e === 47;
3058
+ }
3059
+ function ln(e) {
3055
3060
  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;
3056
3061
  }
3057
- function Ot(e) {
3062
+ function wt(e) {
3058
3063
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3059
3064
  }
3060
- function ln(e) {
3065
+ function cn(e) {
3061
3066
  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;
3062
3067
  }
3063
- function Ie(e) {
3068
+ function Ce(e) {
3064
3069
  e.forEach(function(t) {
3065
- if (delete t.location, Et(t) || _t(t))
3070
+ if (delete t.location, xt(t) || vt(t))
3066
3071
  for (var r in t.options)
3067
- delete t.options[r].location, Ie(t.options[r].value);
3068
- else yt(t) && Tt(t.style) || (xt(t) || vt(t)) && Pe(t.style) ? delete t.style.location : Ht(t) && Ie(t.children);
3072
+ delete t.options[r].location, Ce(t.options[r].value);
3073
+ else dt(t) && _t(t.style) || (bt(t) || yt(t)) && we(t.style) ? delete t.style.location : Et(t) && Ce(t.children);
3069
3074
  });
3070
3075
  }
3071
- function cn(e, t) {
3076
+ function fn(e, t) {
3072
3077
  t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3073
- var r = new an(e, t).parse();
3078
+ var r = new un(e, t).parse();
3074
3079
  if (r.err) {
3075
3080
  var n = SyntaxError(p[r.err.kind]);
3076
3081
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3077
3082
  }
3078
- return t != null && t.captureLocation || Ie(r.val), r.val;
3083
+ return t != null && t.captureLocation || Ce(r.val), r.val;
3079
3084
  }
3080
3085
  var k;
3081
3086
  (function(e) {
3082
3087
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3083
3088
  })(k || (k = {}));
3084
- var ce = (
3089
+ var fe = (
3085
3090
  /** @class */
3086
3091
  function(e) {
3087
- le(t, e);
3092
+ ce(t, e);
3088
3093
  function t(r, n, i) {
3089
3094
  var s = e.call(this, r) || this;
3090
3095
  return s.code = n, s.originalMessage = i, s;
@@ -3093,155 +3098,155 @@ var ce = (
3093
3098
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3094
3099
  }, t;
3095
3100
  }(Error)
3096
- ), nt = (
3101
+ ), tt = (
3097
3102
  /** @class */
3098
3103
  function(e) {
3099
- le(t, e);
3104
+ ce(t, e);
3100
3105
  function t(r, n, i, s) {
3101
3106
  return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, s) || this;
3102
3107
  }
3103
3108
  return t;
3104
- }(ce)
3105
- ), fn = (
3109
+ }(fe)
3110
+ ), mn = (
3106
3111
  /** @class */
3107
3112
  function(e) {
3108
- le(t, e);
3113
+ ce(t, e);
3109
3114
  function t(r, n, i) {
3110
3115
  return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), k.INVALID_VALUE, i) || this;
3111
3116
  }
3112
3117
  return t;
3113
- }(ce)
3114
- ), mn = (
3118
+ }(fe)
3119
+ ), pn = (
3115
3120
  /** @class */
3116
3121
  function(e) {
3117
- le(t, e);
3122
+ ce(t, e);
3118
3123
  function t(r, n) {
3119
3124
  return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), k.MISSING_VALUE, n) || this;
3120
3125
  }
3121
3126
  return t;
3122
- }(ce)
3123
- ), S;
3127
+ }(fe)
3128
+ ), T;
3124
3129
  (function(e) {
3125
3130
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3126
- })(S || (S = {}));
3127
- function pn(e) {
3131
+ })(T || (T = {}));
3132
+ function gn(e) {
3128
3133
  return e.length < 2 ? e : e.reduce(function(t, r) {
3129
3134
  var n = t[t.length - 1];
3130
- return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
3135
+ return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
3131
3136
  }, []);
3132
3137
  }
3133
- function gn(e) {
3138
+ function dn(e) {
3134
3139
  return typeof e == "function";
3135
3140
  }
3136
- function se(e, t, r, n, i, s, o) {
3137
- if (e.length === 1 && Qe(e[0]))
3141
+ function oe(e, t, r, n, i, s, a) {
3142
+ if (e.length === 1 && Ze(e[0]))
3138
3143
  return [
3139
3144
  {
3140
- type: S.literal,
3145
+ type: T.literal,
3141
3146
  value: e[0].value
3142
3147
  }
3143
3148
  ];
3144
- for (var a = [], h = 0, u = e; h < u.length; h++) {
3145
- var l = u[h];
3146
- if (Qe(l)) {
3147
- a.push({
3148
- type: S.literal,
3149
+ for (var u = [], h = 0, o = e; h < o.length; h++) {
3150
+ var l = o[h];
3151
+ if (Ze(l)) {
3152
+ u.push({
3153
+ type: T.literal,
3149
3154
  value: l.value
3150
3155
  });
3151
3156
  continue;
3152
3157
  }
3153
- if (Mr(l)) {
3154
- typeof s == "number" && a.push({
3155
- type: S.literal,
3158
+ if (Rr(l)) {
3159
+ typeof s == "number" && u.push({
3160
+ type: T.literal,
3156
3161
  value: r.getNumberFormat(t).format(s)
3157
3162
  });
3158
3163
  continue;
3159
3164
  }
3160
3165
  var c = l.value;
3161
3166
  if (!(i && c in i))
3162
- throw new mn(c, o);
3167
+ throw new pn(c, a);
3163
3168
  var f = i[c];
3164
- if ($r(l)) {
3165
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3166
- type: typeof f == "string" ? S.literal : S.object,
3169
+ if (Mr(l)) {
3170
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
3171
+ type: typeof f == "string" ? T.literal : T.object,
3167
3172
  value: f
3168
3173
  });
3169
3174
  continue;
3170
3175
  }
3171
- if (xt(l)) {
3172
- var b = typeof l.style == "string" ? n.date[l.style] : Pe(l.style) ? l.style.parsedOptions : void 0;
3173
- a.push({
3174
- type: S.literal,
3176
+ if (bt(l)) {
3177
+ var b = typeof l.style == "string" ? n.date[l.style] : we(l.style) ? l.style.parsedOptions : void 0;
3178
+ u.push({
3179
+ type: T.literal,
3175
3180
  value: r.getDateTimeFormat(t, b).format(f)
3176
3181
  });
3177
3182
  continue;
3178
3183
  }
3179
- if (vt(l)) {
3180
- var b = typeof l.style == "string" ? n.time[l.style] : Pe(l.style) ? l.style.parsedOptions : n.time.medium;
3181
- a.push({
3182
- type: S.literal,
3184
+ if (yt(l)) {
3185
+ var b = typeof l.style == "string" ? n.time[l.style] : we(l.style) ? l.style.parsedOptions : n.time.medium;
3186
+ u.push({
3187
+ type: T.literal,
3183
3188
  value: r.getDateTimeFormat(t, b).format(f)
3184
3189
  });
3185
3190
  continue;
3186
3191
  }
3187
- if (yt(l)) {
3188
- var b = typeof l.style == "string" ? n.number[l.style] : Tt(l.style) ? l.style.parsedOptions : void 0;
3189
- b && b.scale && (f = f * (b.scale || 1)), a.push({
3190
- type: S.literal,
3192
+ if (dt(l)) {
3193
+ var b = typeof l.style == "string" ? n.number[l.style] : _t(l.style) ? l.style.parsedOptions : void 0;
3194
+ b && b.scale && (f = f * (b.scale || 1)), u.push({
3195
+ type: T.literal,
3191
3196
  value: r.getNumberFormat(t, b).format(f)
3192
3197
  });
3193
3198
  continue;
3194
3199
  }
3195
- if (Ht(l)) {
3196
- var y = l.children, E = l.value, m = i[E];
3197
- if (!gn(m))
3198
- throw new fn(E, "function", o);
3199
- var H = se(y, t, r, n, i, s), _ = m(H.map(function(P) {
3200
- return P.value;
3200
+ if (Et(l)) {
3201
+ var y = l.children, m = l.value, E = i[m];
3202
+ if (!dn(E))
3203
+ throw new mn(m, "function", a);
3204
+ var P = oe(y, t, r, n, i, s), B = E(P.map(function(A) {
3205
+ return A.value;
3201
3206
  }));
3202
- Array.isArray(_) || (_ = [_]), a.push.apply(a, _.map(function(P) {
3207
+ Array.isArray(B) || (B = [B]), u.push.apply(u, B.map(function(A) {
3203
3208
  return {
3204
- type: typeof P == "string" ? S.literal : S.object,
3205
- value: P
3209
+ type: typeof A == "string" ? T.literal : T.object,
3210
+ value: A
3206
3211
  };
3207
3212
  }));
3208
3213
  }
3209
- if (Et(l)) {
3210
- var B = l.options[f] || l.options.other;
3211
- if (!B)
3212
- throw new nt(l.value, f, Object.keys(l.options), o);
3213
- a.push.apply(a, se(B.value, t, r, n, i));
3214
+ if (xt(l)) {
3215
+ var H = l.options[f] || l.options.other;
3216
+ if (!H)
3217
+ throw new tt(l.value, f, Object.keys(l.options), a);
3218
+ u.push.apply(u, oe(H.value, t, r, n, i));
3214
3219
  continue;
3215
3220
  }
3216
- if (_t(l)) {
3217
- var B = l.options["=".concat(f)];
3218
- if (!B) {
3221
+ if (vt(l)) {
3222
+ var H = l.options["=".concat(f)];
3223
+ if (!H) {
3219
3224
  if (!Intl.PluralRules)
3220
- throw new ce(`Intl.PluralRules is not available in this environment.
3225
+ throw new fe(`Intl.PluralRules is not available in this environment.
3221
3226
  Try polyfilling it using "@formatjs/intl-pluralrules"
3222
- `, k.MISSING_INTL_API, o);
3223
- var O = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3224
- B = l.options[O] || l.options.other;
3227
+ `, k.MISSING_INTL_API, a);
3228
+ var L = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3229
+ H = l.options[L] || l.options.other;
3225
3230
  }
3226
- if (!B)
3227
- throw new nt(l.value, f, Object.keys(l.options), o);
3228
- a.push.apply(a, se(B.value, t, r, n, i, f - (l.offset || 0)));
3231
+ if (!H)
3232
+ throw new tt(l.value, f, Object.keys(l.options), a);
3233
+ u.push.apply(u, oe(H.value, t, r, n, i, f - (l.offset || 0)));
3229
3234
  continue;
3230
3235
  }
3231
3236
  }
3232
- return pn(a);
3237
+ return gn(u);
3233
3238
  }
3234
- function dn(e, t) {
3239
+ function bn(e, t) {
3235
3240
  return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3236
3241
  return r[n] = d(d({}, e[n]), t[n] || {}), r;
3237
3242
  }, {})) : e;
3238
3243
  }
3239
- function bn(e, t) {
3244
+ function yn(e, t) {
3240
3245
  return t ? Object.keys(e).reduce(function(r, n) {
3241
- return r[n] = dn(e[n], t[n]), r;
3246
+ return r[n] = bn(e[n], t[n]), r;
3242
3247
  }, d({}, e)) : e;
3243
3248
  }
3244
- function _e(e) {
3249
+ function He(e) {
3245
3250
  return {
3246
3251
  create: function() {
3247
3252
  return {
@@ -3255,39 +3260,39 @@ function _e(e) {
3255
3260
  }
3256
3261
  };
3257
3262
  }
3258
- function yn(e) {
3263
+ function xn(e) {
3259
3264
  return e === void 0 && (e = {
3260
3265
  number: {},
3261
3266
  dateTime: {},
3262
3267
  pluralRules: {}
3263
3268
  }), {
3264
- getNumberFormat: xe(function() {
3269
+ getNumberFormat: ve(function() {
3265
3270
  for (var t, r = [], n = 0; n < arguments.length; n++)
3266
3271
  r[n] = arguments[n];
3267
- return new ((t = Intl.NumberFormat).bind.apply(t, ye([void 0], r, !1)))();
3272
+ return new ((t = Intl.NumberFormat).bind.apply(t, xe([void 0], r, !1)))();
3268
3273
  }, {
3269
- cache: _e(e.number),
3270
- strategy: ve.variadic
3274
+ cache: He(e.number),
3275
+ strategy: Ee.variadic
3271
3276
  }),
3272
- getDateTimeFormat: xe(function() {
3277
+ getDateTimeFormat: ve(function() {
3273
3278
  for (var t, r = [], n = 0; n < arguments.length; n++)
3274
3279
  r[n] = arguments[n];
3275
- return new ((t = Intl.DateTimeFormat).bind.apply(t, ye([void 0], r, !1)))();
3280
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, xe([void 0], r, !1)))();
3276
3281
  }, {
3277
- cache: _e(e.dateTime),
3278
- strategy: ve.variadic
3282
+ cache: He(e.dateTime),
3283
+ strategy: Ee.variadic
3279
3284
  }),
3280
- getPluralRules: xe(function() {
3285
+ getPluralRules: ve(function() {
3281
3286
  for (var t, r = [], n = 0; n < arguments.length; n++)
3282
3287
  r[n] = arguments[n];
3283
- return new ((t = Intl.PluralRules).bind.apply(t, ye([void 0], r, !1)))();
3288
+ return new ((t = Intl.PluralRules).bind.apply(t, xe([void 0], r, !1)))();
3284
3289
  }, {
3285
- cache: _e(e.pluralRules),
3286
- strategy: ve.variadic
3290
+ cache: He(e.pluralRules),
3291
+ strategy: Ee.variadic
3287
3292
  })
3288
3293
  };
3289
3294
  }
3290
- var xn = (
3295
+ var vn = (
3291
3296
  /** @class */
3292
3297
  function() {
3293
3298
  function e(t, r, n, i) {
@@ -3298,15 +3303,15 @@ var xn = (
3298
3303
  dateTime: {},
3299
3304
  pluralRules: {}
3300
3305
  }, this.format = function(h) {
3301
- var u = s.formatToParts(h);
3302
- if (u.length === 1)
3303
- return u[0].value;
3304
- var l = u.reduce(function(c, f) {
3305
- return !c.length || f.type !== S.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3306
+ var o = s.formatToParts(h);
3307
+ if (o.length === 1)
3308
+ return o[0].value;
3309
+ var l = o.reduce(function(c, f) {
3310
+ return !c.length || f.type !== T.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3306
3311
  }, []);
3307
3312
  return l.length <= 1 ? l[0] || "" : l;
3308
3313
  }, this.formatToParts = function(h) {
3309
- return se(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3314
+ return oe(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3310
3315
  }, this.resolvedOptions = function() {
3311
3316
  var h;
3312
3317
  return {
@@ -3317,15 +3322,15 @@ var xn = (
3317
3322
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3318
3323
  if (this.message = t, !e.__parse)
3319
3324
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3320
- var o = i || {};
3321
- o.formatters;
3322
- var a = Pr(o, ["formatters"]);
3323
- this.ast = e.__parse(t, d(d({}, a), { locale: this.resolvedLocale }));
3325
+ var a = i || {};
3326
+ a.formatters;
3327
+ var u = Ar(a, ["formatters"]);
3328
+ this.ast = e.__parse(t, d(d({}, u), { locale: this.resolvedLocale }));
3324
3329
  } else
3325
3330
  this.ast = t;
3326
3331
  if (!Array.isArray(this.ast))
3327
3332
  throw new TypeError("A message must be provided as a String or AST.");
3328
- this.formats = bn(e.formats, n), this.formatters = i && i.formatters || yn(this.formatterCache);
3333
+ this.formats = yn(e.formats, n), this.formatters = i && i.formatters || xn(this.formatterCache);
3329
3334
  }
3330
3335
  return Object.defineProperty(e, "defaultLocale", {
3331
3336
  get: function() {
@@ -3338,7 +3343,7 @@ var xn = (
3338
3343
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3339
3344
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3340
3345
  }
3341
- }, e.__parse = cn, e.formats = {
3346
+ }, e.__parse = fn, e.formats = {
3342
3347
  number: {
3343
3348
  integer: {
3344
3349
  maximumFractionDigits: 0
@@ -3399,7 +3404,7 @@ var xn = (
3399
3404
  }, e;
3400
3405
  }()
3401
3406
  );
3402
- function vn(e, t) {
3407
+ function En(e, t) {
3403
3408
  if (t == null)
3404
3409
  return;
3405
3410
  if (t in e)
@@ -3420,92 +3425,92 @@ function vn(e, t) {
3420
3425
  n = void 0;
3421
3426
  return n;
3422
3427
  }
3423
- const L = {}, En = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), Lt = (e, t) => {
3428
+ const O = {}, _n = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), Nt = (e, t) => {
3424
3429
  if (t == null)
3425
3430
  return;
3426
- if (t in L && e in L[t])
3427
- return L[t][e];
3428
- const r = fe(t);
3431
+ if (t in O && e in O[t])
3432
+ return O[t][e];
3433
+ const r = me(t);
3429
3434
  for (let n = 0; n < r.length; n++) {
3430
- const i = r[n], s = Hn(i, e);
3435
+ const i = r[n], s = Tn(i, e);
3431
3436
  if (s)
3432
- return En(e, t, s);
3437
+ return _n(e, t, s);
3433
3438
  }
3434
3439
  };
3435
- let Fe;
3436
- const te = he({});
3437
- function _n(e) {
3438
- return Fe[e] || null;
3440
+ let Ue;
3441
+ const re = le({});
3442
+ function Hn(e) {
3443
+ return Ue[e] || null;
3439
3444
  }
3440
- function It(e) {
3441
- return e in Fe;
3445
+ function Lt(e) {
3446
+ return e in Ue;
3442
3447
  }
3443
- function Hn(e, t) {
3444
- if (!It(e))
3448
+ function Tn(e, t) {
3449
+ if (!Lt(e))
3445
3450
  return null;
3446
- const r = _n(e);
3447
- return vn(r, t);
3451
+ const r = Hn(e);
3452
+ return En(r, t);
3448
3453
  }
3449
- function Tn(e) {
3454
+ function Bn(e) {
3450
3455
  if (e == null)
3451
3456
  return;
3452
- const t = fe(e);
3457
+ const t = me(e);
3453
3458
  for (let r = 0; r < t.length; r++) {
3454
3459
  const n = t[r];
3455
- if (It(n))
3460
+ if (Lt(n))
3456
3461
  return n;
3457
3462
  }
3458
3463
  }
3459
- function Ct(e, ...t) {
3460
- delete L[e], te.update((r) => (r[e] = Ar.all([r[e] || {}, ...t]), r));
3464
+ function Ot(e, ...t) {
3465
+ delete O[e], re.update((r) => (r[e] = Pr.all([r[e] || {}, ...t]), r));
3461
3466
  }
3462
3467
  z(
3463
- [te],
3468
+ [re],
3464
3469
  ([e]) => Object.keys(e)
3465
3470
  );
3466
- te.subscribe((e) => Fe = e);
3467
- const oe = {};
3468
- function Bn(e, t) {
3469
- oe[e].delete(t), oe[e].size === 0 && delete oe[e];
3471
+ re.subscribe((e) => Ue = e);
3472
+ const ae = {};
3473
+ function Sn(e, t) {
3474
+ ae[e].delete(t), ae[e].size === 0 && delete ae[e];
3470
3475
  }
3471
- function $t(e) {
3472
- return oe[e];
3476
+ function It(e) {
3477
+ return ae[e];
3473
3478
  }
3474
- function Sn(e) {
3475
- return fe(e).map((t) => {
3476
- const r = $t(t);
3479
+ function Pn(e) {
3480
+ return me(e).map((t) => {
3481
+ const r = It(t);
3477
3482
  return [t, r ? [...r] : []];
3478
3483
  }).filter(([, t]) => t.length > 0);
3479
3484
  }
3480
- function Ce(e) {
3481
- return e == null ? !1 : fe(e).some(
3485
+ function $e(e) {
3486
+ return e == null ? !1 : me(e).some(
3482
3487
  (t) => {
3483
3488
  var r;
3484
- return (r = $t(t)) == null ? void 0 : r.size;
3489
+ return (r = It(t)) == null ? void 0 : r.size;
3485
3490
  }
3486
3491
  );
3487
3492
  }
3488
3493
  function An(e, t) {
3489
3494
  return Promise.all(
3490
- t.map((n) => (Bn(e, n), n().then((i) => i.default || i)))
3491
- ).then((n) => Ct(e, ...n));
3495
+ t.map((n) => (Sn(e, n), n().then((i) => i.default || i)))
3496
+ ).then((n) => Ot(e, ...n));
3492
3497
  }
3493
3498
  const Q = {};
3494
- function Mt(e) {
3495
- if (!Ce(e))
3499
+ function Ct(e) {
3500
+ if (!$e(e))
3496
3501
  return e in Q ? Q[e] : Promise.resolve();
3497
- const t = Sn(e);
3502
+ const t = Pn(e);
3498
3503
  return Q[e] = Promise.all(
3499
3504
  t.map(
3500
3505
  ([r, n]) => An(r, n)
3501
3506
  )
3502
3507
  ).then(() => {
3503
- if (Ce(e))
3504
- return Mt(e);
3508
+ if ($e(e))
3509
+ return Ct(e);
3505
3510
  delete Q[e];
3506
3511
  }), Q[e];
3507
3512
  }
3508
- const Pn = {
3513
+ const wn = {
3509
3514
  number: {
3510
3515
  scientific: { notation: "scientific" },
3511
3516
  engineering: { notation: "engineering" },
@@ -3534,159 +3539,159 @@ const Pn = {
3534
3539
  timeZoneName: "short"
3535
3540
  }
3536
3541
  }
3537
- }, wn = {
3542
+ }, Nn = {
3538
3543
  fallbackLocale: null,
3539
3544
  loadingDelay: 200,
3540
- formats: Pn,
3545
+ formats: wn,
3541
3546
  warnOnMissingMessages: !0,
3542
3547
  handleMissingMessage: void 0,
3543
3548
  ignoreTag: !0
3544
- }, Nn = wn;
3549
+ }, Ln = Nn;
3545
3550
  function X() {
3546
- return Nn;
3551
+ return Ln;
3547
3552
  }
3548
- const He = he(!1);
3549
- var On = Object.defineProperty, Ln = Object.defineProperties, In = Object.getOwnPropertyDescriptors, it = Object.getOwnPropertySymbols, Cn = Object.prototype.hasOwnProperty, $n = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mn = (e, t) => {
3553
+ const Te = le(!1);
3554
+ var On = Object.defineProperty, In = Object.defineProperties, Cn = Object.getOwnPropertyDescriptors, rt = Object.getOwnPropertySymbols, $n = Object.prototype.hasOwnProperty, Mn = Object.prototype.propertyIsEnumerable, nt = (e, t, r) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Rn = (e, t) => {
3550
3555
  for (var r in t || (t = {}))
3551
- Cn.call(t, r) && st(e, r, t[r]);
3552
- if (it)
3553
- for (var r of it(t))
3554
- $n.call(t, r) && st(e, r, t[r]);
3556
+ $n.call(t, r) && nt(e, r, t[r]);
3557
+ if (rt)
3558
+ for (var r of rt(t))
3559
+ Mn.call(t, r) && nt(e, r, t[r]);
3555
3560
  return e;
3556
- }, Rn = (e, t) => Ln(e, In(t));
3557
- let $e;
3558
- const ae = he(null);
3559
- function ot(e) {
3561
+ }, Dn = (e, t) => In(e, Cn(t));
3562
+ let Me;
3563
+ const ue = le(null);
3564
+ function it(e) {
3560
3565
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3561
3566
  }
3562
- function fe(e, t = X().fallbackLocale) {
3563
- const r = ot(e);
3564
- return t ? [.../* @__PURE__ */ new Set([...r, ...ot(t)])] : r;
3567
+ function me(e, t = X().fallbackLocale) {
3568
+ const r = it(e);
3569
+ return t ? [.../* @__PURE__ */ new Set([...r, ...it(t)])] : r;
3565
3570
  }
3566
- function $() {
3567
- return $e != null ? $e : void 0;
3571
+ function M() {
3572
+ return Me != null ? Me : void 0;
3568
3573
  }
3569
- ae.subscribe((e) => {
3570
- $e = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3574
+ ue.subscribe((e) => {
3575
+ Me = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3571
3576
  });
3572
- const Dn = (e) => {
3573
- if (e && Tn(e) && Ce(e)) {
3577
+ const Un = (e) => {
3578
+ if (e && Bn(e) && $e(e)) {
3574
3579
  const { loadingDelay: t } = X();
3575
3580
  let r;
3576
- return typeof window != "undefined" && $() != null && t ? r = window.setTimeout(
3577
- () => He.set(!0),
3581
+ return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
3582
+ () => Te.set(!0),
3578
3583
  t
3579
- ) : He.set(!0), Mt(e).then(() => {
3580
- ae.set(e);
3584
+ ) : Te.set(!0), Ct(e).then(() => {
3585
+ ue.set(e);
3581
3586
  }).finally(() => {
3582
- clearTimeout(r), He.set(!1);
3587
+ clearTimeout(r), Te.set(!1);
3583
3588
  });
3584
3589
  }
3585
- return ae.set(e);
3586
- }, W = Rn(Mn({}, ae), {
3587
- set: Dn
3588
- }), me = (e) => {
3590
+ return ue.set(e);
3591
+ }, W = Dn(Rn({}, ue), {
3592
+ set: Un
3593
+ }), pe = (e) => {
3589
3594
  const t = /* @__PURE__ */ Object.create(null);
3590
3595
  return (n) => {
3591
3596
  const i = JSON.stringify(n);
3592
3597
  return i in t ? t[i] : t[i] = e(n);
3593
3598
  };
3594
3599
  };
3595
- var Un = Object.defineProperty, ue = Object.getOwnPropertySymbols, Rt = Object.prototype.hasOwnProperty, Dt = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? Un(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, je = (e, t) => {
3600
+ var Gn = Object.defineProperty, he = Object.getOwnPropertySymbols, $t = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ge = (e, t) => {
3596
3601
  for (var r in t || (t = {}))
3597
- Rt.call(t, r) && at(e, r, t[r]);
3598
- if (ue)
3599
- for (var r of ue(t))
3600
- Dt.call(t, r) && at(e, r, t[r]);
3602
+ $t.call(t, r) && st(e, r, t[r]);
3603
+ if (he)
3604
+ for (var r of he(t))
3605
+ Mt.call(t, r) && st(e, r, t[r]);
3601
3606
  return e;
3602
3607
  }, Z = (e, t) => {
3603
3608
  var r = {};
3604
3609
  for (var n in e)
3605
- Rt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3606
- if (e != null && ue)
3607
- for (var n of ue(e))
3608
- t.indexOf(n) < 0 && Dt.call(e, n) && (r[n] = e[n]);
3610
+ $t.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3611
+ if (e != null && he)
3612
+ for (var n of he(e))
3613
+ t.indexOf(n) < 0 && Mt.call(e, n) && (r[n] = e[n]);
3609
3614
  return r;
3610
3615
  };
3611
- const K = (e, t) => {
3616
+ const ee = (e, t) => {
3612
3617
  const { formats: r } = X();
3613
3618
  if (e in r && t in r[e])
3614
3619
  return r[e][t];
3615
3620
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3616
- }, Gn = me(
3621
+ }, Fn = pe(
3617
3622
  (e) => {
3618
3623
  var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3619
3624
  if (r == null)
3620
3625
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3621
- return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
3626
+ return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
3622
3627
  }
3623
- ), Fn = me(
3628
+ ), jn = pe(
3624
3629
  (e) => {
3625
3630
  var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3626
3631
  if (r == null)
3627
3632
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3628
- return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
3633
+ return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
3629
3634
  }
3630
- ), jn = me(
3635
+ ), Vn = pe(
3631
3636
  (e) => {
3632
3637
  var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3633
3638
  if (r == null)
3634
3639
  throw new Error(
3635
3640
  '[svelte-i18n] A "locale" must be set to format time values'
3636
3641
  );
3637
- return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
3642
+ return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
3638
3643
  }
3639
- ), Vn = (e = {}) => {
3644
+ ), kn = (e = {}) => {
3640
3645
  var t = e, {
3641
- locale: r = $()
3646
+ locale: r = M()
3642
3647
  } = t, n = Z(t, [
3643
3648
  "locale"
3644
3649
  ]);
3645
- return Gn(je({ locale: r }, n));
3646
- }, kn = (e = {}) => {
3650
+ return Fn(Ge({ locale: r }, n));
3651
+ }, Xn = (e = {}) => {
3647
3652
  var t = e, {
3648
- locale: r = $()
3653
+ locale: r = M()
3649
3654
  } = t, n = Z(t, [
3650
3655
  "locale"
3651
3656
  ]);
3652
- return Fn(je({ locale: r }, n));
3653
- }, Xn = (e = {}) => {
3657
+ return jn(Ge({ locale: r }, n));
3658
+ }, zn = (e = {}) => {
3654
3659
  var t = e, {
3655
- locale: r = $()
3660
+ locale: r = M()
3656
3661
  } = t, n = Z(t, [
3657
3662
  "locale"
3658
3663
  ]);
3659
- return jn(je({ locale: r }, n));
3660
- }, zn = me(
3664
+ return Vn(Ge({ locale: r }, n));
3665
+ }, Wn = pe(
3661
3666
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3662
- (e, t = $()) => new xn(e, t, X().formats, {
3667
+ (e, t = M()) => new vn(e, t, X().formats, {
3663
3668
  ignoreTag: X().ignoreTag
3664
3669
  })
3665
- ), Wn = (e, t = {}) => {
3670
+ ), Zn = (e, t = {}) => {
3666
3671
  var r, n, i, s;
3667
- let o = t;
3668
- typeof e == "object" && (o = e, e = o.id);
3672
+ let a = t;
3673
+ typeof e == "object" && (a = e, e = a.id);
3669
3674
  const {
3670
- values: a,
3671
- locale: h = $(),
3672
- default: u
3673
- } = o;
3675
+ values: u,
3676
+ locale: h = M(),
3677
+ default: o
3678
+ } = a;
3674
3679
  if (h == null)
3675
3680
  throw new Error(
3676
3681
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3677
3682
  );
3678
- let l = Lt(e, h);
3683
+ let l = Nt(e, h);
3679
3684
  if (!l)
3680
- l = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3685
+ l = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: o })) != null ? i : o) != null ? s : e;
3681
3686
  else if (typeof l != "string")
3682
3687
  return console.warn(
3683
3688
  `[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.`
3684
3689
  ), l;
3685
- if (!a)
3690
+ if (!u)
3686
3691
  return l;
3687
3692
  let c = l;
3688
3693
  try {
3689
- c = zn(l, h).format(a);
3694
+ c = Wn(l, h).format(u);
3690
3695
  } catch (f) {
3691
3696
  f instanceof Error && console.warn(
3692
3697
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3694,18 +3699,18 @@ const K = (e, t) => {
3694
3699
  );
3695
3700
  }
3696
3701
  return c;
3697
- }, Zn = (e, t) => Xn(t).format(e), qn = (e, t) => kn(t).format(e), Qn = (e, t) => Vn(t).format(e), Jn = (e, t = $()) => Lt(e, t), Yn = z([W, te], () => Wn);
3698
- z([W], () => Zn);
3702
+ }, qn = (e, t) => zn(t).format(e), Qn = (e, t) => Xn(t).format(e), Jn = (e, t) => kn(t).format(e), Yn = (e, t = M()) => Nt(e, t), Kn = z([W, re], () => Zn);
3699
3703
  z([W], () => qn);
3700
3704
  z([W], () => Qn);
3701
- z([W, te], () => Jn);
3702
- function ut(e, t) {
3703
- Ct(e, t);
3705
+ z([W], () => Jn);
3706
+ z([W, re], () => Yn);
3707
+ function ot(e, t) {
3708
+ Ot(e, t);
3704
3709
  }
3705
- function Kn(e) {
3710
+ function ei(e) {
3706
3711
  W.set(e);
3707
3712
  }
3708
- const ht = {
3713
+ const at = {
3709
3714
  en: {
3710
3715
  sorry: "We are sorry",
3711
3716
  access: "The page you are trying to access is available for logged-in users only. Please login.",
@@ -3797,150 +3802,172 @@ const ht = {
3797
3802
  login: "Login"
3798
3803
  }
3799
3804
  };
3800
- function ei(e) {
3801
- zt(e, "svelte-17wxvp", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Helvetica Neue", "Helvetica", sans-serif}.PageWrapper{color:var(--emw--misc-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--misc-color-bg, var(--emw--color-background, #07072A));padding:50px 0;width:100%;text-align:center}.NotFoundPage{display:flex;flex-direction:column;margin:auto;gap:40px;align-items:center;max-width:800px;padding:50px}.NotFoundPage svg{fill:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C))}.PageTitle{color:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));font-weight:500;font-size:28px}.PageContent{color:#D1D1D1;font-size:18px;line-height:24px}.ErrorPageTitle{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:500;font-size:28px}.ErrorPageContent{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:18px;line-height:24px}.ButtonDefaultSmall{background:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border-radius:5px;width:30%;height:60px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}@media only screen and (max-width: 475px){.PageWrapper{color:var(--emw--misc-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--misc-color-bg, var(--emw--color-background, #07072A));padding:20px 0;width:100%;text-align:center}.NotFoundPage{text-align:center;width:100%;font-size:12px;padding:20px}.PageTitle{font-size:22px}.ButtonDefaultSmall{width:80%;height:50px;font-size:14px;grid-template-columns:1fr}.ErrorPageContent{font-size:16px;line-height:18px}.ErrorPageTitle{font-size:18px}.PageContent{font-size:16px;line-height:18px}}');
3805
+ function ti(e, t) {
3806
+ if (e) {
3807
+ const r = document.createElement("style");
3808
+ r.innerHTML = t, e.appendChild(r);
3809
+ }
3810
+ }
3811
+ function ri(e, t) {
3812
+ const r = new URL(t);
3813
+ fetch(r.href).then((n) => n.text()).then((n) => {
3814
+ const i = document.createElement("style");
3815
+ i.innerHTML = n, e && e.appendChild(i);
3816
+ }).catch((n) => {
3817
+ console.error("There was an error while trying to load client styling from URL", n);
3818
+ });
3802
3819
  }
3803
- function ti(e) {
3804
- let t, r, n, i, s, o, a, h, u, l, c = (
3820
+ function ni(e, t, r) {
3821
+ if (window.emMessageBus) {
3822
+ const n = document.createElement("style");
3823
+ window.emMessageBus.subscribe(t, (i) => {
3824
+ n.innerHTML = i, e && e.appendChild(n);
3825
+ });
3826
+ }
3827
+ }
3828
+ function ii(e) {
3829
+ kt(e, "svelte-1osslvo", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.PageWrapper{color:var(--emw--misc-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--misc-color-bg, var(--emw--color-background, #07072A));padding:50px 0;width:100%;text-align:center}.NotFoundPage{display:flex;flex-direction:column;margin:auto;gap:40px;align-items:center;max-width:800px;padding:50px}.NotFoundPage svg{fill:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C))}.PageTitle{color:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));font-weight:500;font-size:28px}.PageContent{color:#D1D1D1;font-size:18px;line-height:24px}.ErrorPageTitle{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:500;font-size:28px}.ErrorPageContent{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:18px;line-height:24px}.ButtonDefaultSmall{background:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border-radius:5px;width:30%;height:60px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}@media only screen and (max-width: 475px){.PageWrapper{color:var(--emw--misc-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--misc-color-bg, var(--emw--color-background, #07072A));padding:20px 0;width:100%;text-align:center}.NotFoundPage{text-align:center;width:100%;font-size:12px;padding:20px}.PageTitle{font-size:22px}.ButtonDefaultSmall{width:80%;height:50px;font-size:14px;grid-template-columns:1fr}.ErrorPageContent{font-size:16px;line-height:18px}.ErrorPageTitle{font-size:18px}.PageContent{font-size:16px;line-height:18px}}");
3830
+ }
3831
+ function si(e) {
3832
+ let t, r, n, i, s, a, u, h, o, l, c = (
3805
3833
  /*$_*/
3806
3834
  e[1]("sorry") + ""
3807
- ), f, b, y, E = (
3835
+ ), f, b, y, m = (
3808
3836
  /*$_*/
3809
3837
  e[1]("access") + ""
3810
- ), m, H, _, B = (
3838
+ ), E, P, B, H = (
3811
3839
  /*$_*/
3812
3840
  e[1]("login") + ""
3813
- ), O, P, I;
3841
+ ), L, A, I;
3814
3842
  return {
3815
3843
  c() {
3816
- t = C("div"), r = C("div"), n = M("svg"), i = M("g"), s = M("path"), o = M("path"), a = M("path"), h = M("path"), u = ge(), l = C("p"), f = ne(c), b = ge(), y = C("p"), m = ne(E), H = ge(), _ = C("button"), O = ne(B), v(s, "class", "a"), v(s, "d", "M22.819,139.685H126.266a13.422,13.422,0,0,0,13.449-13.449V22.789A13.422,13.422,0,0,0,126.266,9.34H22.819A13.422,13.422,0,0,0,9.37,22.789V126.236A13.422,13.422,0,0,0,22.819,139.685Zm-7.241-116.9a7.2,7.2,0,0,1,7.241-7.241H126.266a7.2,7.2,0,0,1,7.241,7.241V38.3H15.572Zm0,21.725H133.513v81.723a7.2,7.2,0,0,1-7.241,7.241H22.824a7.2,7.2,0,0,1-7.241-7.241Z"), v(o, "class", "a"), v(o, "d", "M147.866,140.62h-4.138a3.1,3.1,0,0,0,0,6.207h4.138a3.1,3.1,0,0,0,0-6.207Z"), v(o, "transform", "translate(-116.772 -116.794)"), v(a, "class", "a"), v(a, "d", "M297.866,140.62h-4.138a3.1,3.1,0,1,0,0,6.207h4.138a3.1,3.1,0,0,0,0-6.207Z"), v(a, "transform", "translate(-250.22 -116.794)"), v(h, "class", "a"), v(h, "d", "M199.816,81.307h-1.765V74.5c0-8.132-5.863-14.5-14.247-14.5s-14.12,6.493-14.12,14.5v6.745h-1.765a7.156,7.156,0,0,0-7.123,7.123v21.307a7.156,7.156,0,0,0,7.123,7.123h31.9a7.156,7.156,0,0,0,7.123-7.123V88.367a7.1,7.1,0,0,0-7.123-7.06Zm-26.6,0V74.5c0-6.052,4.16-10.969,10.59-10.969,6.367,0,10.716,4.791,10.716,10.969v6.745H173.215v.063Zm30.132,28.367a3.524,3.524,0,0,1-3.53,3.53h-31.9a3.524,3.524,0,0,1-3.53-3.53V88.367a3.524,3.524,0,0,1,3.53-3.53h31.9a3.524,3.524,0,0,1,3.53,3.53ZM187.4,95.49a3.548,3.548,0,0,1-1.765,3.089h0v5.8a1.765,1.765,0,1,1-3.53,0v-5.8h0a3.55,3.55,0,0,1,1.765-6.619,3.447,3.447,0,0,1,3.53,3.53Z"), v(h, "transform", "translate(-109.326 -3.172)"), v(i, "transform", "translate(-9.37 -9.34)"), v(n, "xmlns", "http://www.w3.org/2000/svg"), v(n, "width", "130.345"), v(n, "height", "130.345"), v(n, "viewBox", "0 0 130.345 130.345"), v(l, "class", "PageTitle"), v(y, "class", "PageContent"), v(_, "class", "ButtonDefaultSmall"), v(r, "class", "NotFoundPage"), v(t, "class", "PageWrapper");
3844
+ t = C("div"), r = C("div"), n = R("svg"), i = R("g"), s = R("path"), a = R("path"), u = R("path"), h = R("path"), o = de(), l = C("p"), f = ie(c), b = de(), y = C("p"), E = ie(m), P = de(), B = C("button"), L = ie(H), v(s, "class", "a"), v(s, "d", "M22.819,139.685H126.266a13.422,13.422,0,0,0,13.449-13.449V22.789A13.422,13.422,0,0,0,126.266,9.34H22.819A13.422,13.422,0,0,0,9.37,22.789V126.236A13.422,13.422,0,0,0,22.819,139.685Zm-7.241-116.9a7.2,7.2,0,0,1,7.241-7.241H126.266a7.2,7.2,0,0,1,7.241,7.241V38.3H15.572Zm0,21.725H133.513v81.723a7.2,7.2,0,0,1-7.241,7.241H22.824a7.2,7.2,0,0,1-7.241-7.241Z"), v(a, "class", "a"), v(a, "d", "M147.866,140.62h-4.138a3.1,3.1,0,0,0,0,6.207h4.138a3.1,3.1,0,0,0,0-6.207Z"), v(a, "transform", "translate(-116.772 -116.794)"), v(u, "class", "a"), v(u, "d", "M297.866,140.62h-4.138a3.1,3.1,0,1,0,0,6.207h4.138a3.1,3.1,0,0,0,0-6.207Z"), v(u, "transform", "translate(-250.22 -116.794)"), v(h, "class", "a"), v(h, "d", "M199.816,81.307h-1.765V74.5c0-8.132-5.863-14.5-14.247-14.5s-14.12,6.493-14.12,14.5v6.745h-1.765a7.156,7.156,0,0,0-7.123,7.123v21.307a7.156,7.156,0,0,0,7.123,7.123h31.9a7.156,7.156,0,0,0,7.123-7.123V88.367a7.1,7.1,0,0,0-7.123-7.06Zm-26.6,0V74.5c0-6.052,4.16-10.969,10.59-10.969,6.367,0,10.716,4.791,10.716,10.969v6.745H173.215v.063Zm30.132,28.367a3.524,3.524,0,0,1-3.53,3.53h-31.9a3.524,3.524,0,0,1-3.53-3.53V88.367a3.524,3.524,0,0,1,3.53-3.53h31.9a3.524,3.524,0,0,1,3.53,3.53ZM187.4,95.49a3.548,3.548,0,0,1-1.765,3.089h0v5.8a1.765,1.765,0,1,1-3.53,0v-5.8h0a3.55,3.55,0,0,1,1.765-6.619,3.447,3.447,0,0,1,3.53,3.53Z"), v(h, "transform", "translate(-109.326 -3.172)"), v(i, "transform", "translate(-9.37 -9.34)"), v(n, "xmlns", "http://www.w3.org/2000/svg"), v(n, "width", "130.345"), v(n, "height", "130.345"), v(n, "viewBox", "0 0 130.345 130.345"), v(l, "class", "PageTitle"), v(y, "class", "PageContent"), v(B, "class", "ButtonDefaultSmall"), v(r, "class", "NotFoundPage"), v(t, "class", "PageWrapper");
3817
3845
  },
3818
3846
  m(N, q) {
3819
- mt(N, t, q), T(t, r), T(r, n), T(n, i), T(i, s), T(i, o), T(i, a), T(i, h), T(r, u), T(r, l), T(l, f), T(r, b), T(r, y), T(y, m), T(r, H), T(r, _), T(_, O), e[8](t), P || (I = qt(
3820
- _,
3847
+ ct(N, t, q), _(t, r), _(r, n), _(n, i), _(i, s), _(i, a), _(i, u), _(i, h), _(r, o), _(r, l), _(l, f), _(r, b), _(r, y), _(y, E), _(r, P), _(r, B), _(B, L), e[9](t), A || (I = Wt(
3848
+ B,
3821
3849
  "click",
3822
3850
  /*click_handler*/
3823
- e[7]
3824
- ), P = !0);
3851
+ e[8]
3852
+ ), A = !0);
3825
3853
  },
3826
3854
  p(N, [q]) {
3827
3855
  q & /*$_*/
3828
3856
  2 && c !== (c = /*$_*/
3829
- N[1]("sorry") + "") && de(f, c), q & /*$_*/
3830
- 2 && E !== (E = /*$_*/
3831
- N[1]("access") + "") && de(m, E), q & /*$_*/
3832
- 2 && B !== (B = /*$_*/
3833
- N[1]("login") + "") && de(O, B);
3857
+ N[1]("sorry") + "") && be(f, c), q & /*$_*/
3858
+ 2 && m !== (m = /*$_*/
3859
+ N[1]("access") + "") && be(E, m), q & /*$_*/
3860
+ 2 && H !== (H = /*$_*/
3861
+ N[1]("login") + "") && be(L, H);
3834
3862
  },
3835
3863
  i: w,
3836
3864
  o: w,
3837
3865
  d(N) {
3838
- N && Re(t), e[8](null), P = !1, I();
3866
+ N && De(t), e[9](null), A = !1, I();
3839
3867
  }
3840
3868
  };
3841
3869
  }
3842
- function ri(e, t, r) {
3870
+ function oi(e, t, r) {
3843
3871
  let n;
3844
- Xt(e, Yn, (m) => r(1, n = m));
3845
- let { lang: i = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: o = "" } = t, a, { translationurl: h = "" } = t;
3846
- const u = () => {
3847
- fetch(h).then((H) => H.json()).then((H) => {
3848
- Object.keys(H).forEach((_) => {
3849
- ut(_, H[_]);
3872
+ Vt(e, Kn, (m) => r(1, n = m));
3873
+ let { lang: i = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { translationurl: u = "" } = t, { mbsource: h } = t, o;
3874
+ const l = () => {
3875
+ fetch(u).then((E) => E.json()).then((E) => {
3876
+ Object.keys(E).forEach((P) => {
3877
+ ot(P, E[P]);
3850
3878
  });
3851
- }).catch((H) => {
3852
- console.log(H);
3879
+ }).catch((E) => {
3880
+ console.log(E);
3853
3881
  });
3854
3882
  };
3855
- Object.keys(ht).forEach((m) => {
3856
- ut(m, ht[m]);
3883
+ Object.keys(at).forEach((m) => {
3884
+ ot(m, at[m]);
3857
3885
  });
3858
- const l = () => {
3886
+ const c = () => {
3859
3887
  window.postMessage({ type: "403ActionButton" }, window.location.href);
3860
- }, c = () => {
3861
- Kn(i);
3862
3888
  }, f = () => {
3863
- let m = document.createElement("style");
3864
- m.innerHTML = s, a.appendChild(m);
3865
- }, b = () => {
3866
- let m = new URL(o), H = document.createElement("style");
3867
- fetch(m.href).then((_) => _.text()).then((_) => {
3868
- H.innerHTML = _, setTimeout(
3869
- () => {
3870
- a.appendChild(H);
3871
- },
3872
- 1
3873
- );
3874
- });
3875
- }, y = () => l();
3876
- function E(m) {
3877
- Te[m ? "unshift" : "push"](() => {
3878
- a = m, r(0, a);
3889
+ ei(i);
3890
+ };
3891
+ Jt(() => () => {
3892
+ });
3893
+ const b = () => c();
3894
+ function y(m) {
3895
+ Be[m ? "unshift" : "push"](() => {
3896
+ o = m, r(0, o);
3879
3897
  });
3880
3898
  }
3881
3899
  return e.$$set = (m) => {
3882
- "lang" in m && r(3, i = m.lang), "clientstyling" in m && r(4, s = m.clientstyling), "clientstylingurl" in m && r(5, o = m.clientstylingurl), "translationurl" in m && r(6, h = m.translationurl);
3900
+ "lang" in m && r(3, i = m.lang), "clientstyling" in m && r(4, s = m.clientstyling), "clientstylingurl" in m && r(5, a = m.clientstylingurl), "translationurl" in m && r(6, u = m.translationurl), "mbsource" in m && r(7, h = m.mbsource);
3883
3901
  }, e.$$.update = () => {
3884
3902
  e.$$.dirty & /*lang*/
3885
- 8 && i && c(), e.$$.dirty & /*clientstyling, customStylingContainer*/
3886
- 17 && s && a && f(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
3887
- 33 && o && a && b(), e.$$.dirty & /*translationurl*/
3888
- 64 && h && u();
3903
+ 8 && i && f(), e.$$.dirty & /*clientstyling, customStylingContainer*/
3904
+ 17 && s && o && ti(o, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
3905
+ 33 && a && o && ri(o, a), e.$$.dirty & /*translationurl*/
3906
+ 64 && u && l(), e.$$.dirty & /*mbsource, customStylingContainer*/
3907
+ 129 && h && o && ni(o, `${h}.Style`);
3889
3908
  }, [
3890
- a,
3909
+ o,
3891
3910
  n,
3892
- l,
3911
+ c,
3893
3912
  i,
3894
3913
  s,
3895
- o,
3914
+ a,
3915
+ u,
3896
3916
  h,
3897
- y,
3898
- E
3917
+ b,
3918
+ y
3899
3919
  ];
3900
3920
  }
3901
- class ni extends hr {
3921
+ class ai extends hr {
3902
3922
  constructor(t) {
3903
3923
  super(), ar(
3904
3924
  this,
3905
3925
  t,
3906
- ri,
3907
- ti,
3908
- ct,
3926
+ oi,
3927
+ si,
3928
+ ht,
3909
3929
  {
3910
3930
  lang: 3,
3911
3931
  clientstyling: 4,
3912
3932
  clientstylingurl: 5,
3913
- translationurl: 6
3933
+ translationurl: 6,
3934
+ mbsource: 7
3914
3935
  },
3915
- ei
3936
+ ii
3916
3937
  );
3917
3938
  }
3918
3939
  get lang() {
3919
3940
  return this.$$.ctx[3];
3920
3941
  }
3921
3942
  set lang(t) {
3922
- this.$$set({ lang: t }), G();
3943
+ this.$$set({ lang: t }), $();
3923
3944
  }
3924
3945
  get clientstyling() {
3925
3946
  return this.$$.ctx[4];
3926
3947
  }
3927
3948
  set clientstyling(t) {
3928
- this.$$set({ clientstyling: t }), G();
3949
+ this.$$set({ clientstyling: t }), $();
3929
3950
  }
3930
3951
  get clientstylingurl() {
3931
3952
  return this.$$.ctx[5];
3932
3953
  }
3933
3954
  set clientstylingurl(t) {
3934
- this.$$set({ clientstylingurl: t }), G();
3955
+ this.$$set({ clientstylingurl: t }), $();
3935
3956
  }
3936
3957
  get translationurl() {
3937
3958
  return this.$$.ctx[6];
3938
3959
  }
3939
3960
  set translationurl(t) {
3940
- this.$$set({ translationurl: t }), G();
3961
+ this.$$set({ translationurl: t }), $();
3962
+ }
3963
+ get mbsource() {
3964
+ return this.$$.ctx[7];
3965
+ }
3966
+ set mbsource(t) {
3967
+ this.$$set({ mbsource: t }), $();
3941
3968
  }
3942
3969
  }
3943
- ur(ni, { lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
3970
+ ur(ai, { lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
3944
3971
  export {
3945
- ni as default
3972
+ ai as default
3946
3973
  };