@everymatrix/cashier-method-details 1.77.20 → 1.77.22

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.
Files changed (33) hide show
  1. package/components/{CashierError-CK9BtEQw.js → CashierError-CQcPfdgL.js} +903 -933
  2. package/components/{CashierError-BcKJZbOX.js → CashierError-DRwaT1pY.js} +1007 -1037
  3. package/components/CashierError-DzXuI7wS.cjs +8 -0
  4. package/components/{CashierMethodDetails-BdRlogwg.js → CashierMethodDetails-BOdr7Ugc.js} +723 -654
  5. package/components/{CashierMethodDetails-BaIgrxVU.cjs → CashierMethodDetails-D-Kx493t.cjs} +19 -6
  6. package/components/{CashierMethodDetails-DCN-FOmE.js → CashierMethodDetails-DVpe60nK.js} +442 -373
  7. package/components/{CashierModal-CCvgicOp.js → CashierModal-Be_PLY94.js} +46 -46
  8. package/components/{CashierModal-DHVzDN_5.cjs → CashierModal-BnjSgd3W.cjs} +1 -1
  9. package/components/{CashierModal-D7fpWPDi.js → CashierModal-D2M2FMKW.js} +46 -46
  10. package/components/{CashierNotifications-BWb0-asH.js → CashierNotifications--xosH5as.js} +13 -13
  11. package/components/{CashierNotifications-AKcol5JG.js → CashierNotifications-CTKkGkaV.js} +12 -12
  12. package/components/{CashierNotifications-BU4PLx1t.cjs → CashierNotifications-CdIQ2vRy.cjs} +1 -1
  13. package/components/{CashierReceiptPage-BZPwJgbW.js → CashierReceiptPage-Bihgo9ap.js} +78 -78
  14. package/components/{CashierReceiptPage-DTGhNpwM.cjs → CashierReceiptPage-D_Q7MALa.cjs} +1 -1
  15. package/components/{CashierReceiptPage-d4m2Jvc_.js → CashierReceiptPage-DuauNnLl.js} +70 -70
  16. package/es2015/cashier-method-details.cjs +1 -1
  17. package/es2015/cashier-method-details.js +1 -1
  18. package/esnext/cashier-method-details.js +1 -1
  19. package/package.json +1 -1
  20. package/stencil/{index-97d17652-D6HPqRtr.js → index-97d17652--F7PvMq9.js} +2 -2
  21. package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
  22. package/stencil/{index-97d17652-B0NIExnR.js → index-97d17652-CCFHkzJw.js} +2 -2
  23. package/stencil/{ui-image-DJSOH8ZL.cjs → ui-image-BaHsVAxH.cjs} +1 -1
  24. package/stencil/{ui-image-DfVgiF6v.js → ui-image-C7s6Uvn5.js} +1 -1
  25. package/stencil/{ui-image-BY8ZO6br.js → ui-image-CHeV8e9p.js} +1 -1
  26. package/stencil/{ui-image-b7b48fe5-c0NIgcTj.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
  27. package/stencil/{ui-image-b7b48fe5-BXmf73Ou.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
  28. package/stencil/{ui-image-b7b48fe5-DaWM2RbJ.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
  29. package/stencil/{ui-image_2-L-CYescb.js → ui-image_2-Bm97-wkj.js} +2 -2
  30. package/stencil/{ui-image_2-Cdo33umq.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
  31. package/stencil/{ui-image_2-DbQ7SENq.js → ui-image_2-qO3reSlr.js} +2 -2
  32. package/components/CashierError-CAqyJypB.cjs +0 -21
  33. package/stencil/index-97d17652-DNpK20ur.cjs +0 -1
@@ -1,8 +1,8 @@
1
- import "../stencil/ui-image-BY8ZO6br.js";
1
+ import "../stencil/ui-image-CHeV8e9p.js";
2
2
  function B() {
3
3
  }
4
- const hr = (e) => e;
5
- function cr(e, t) {
4
+ const fr = (e) => e;
5
+ function mr(e, t) {
6
6
  for (const r in t)
7
7
  e[r] = t[r];
8
8
  return (
@@ -10,29 +10,29 @@ function cr(e, t) {
10
10
  e
11
11
  );
12
12
  }
13
- function Ot(e) {
13
+ function It(e) {
14
14
  return e();
15
15
  }
16
- function it() {
16
+ function ot() {
17
17
  return /* @__PURE__ */ Object.create(null);
18
18
  }
19
- function R(e) {
20
- e.forEach(Ot);
19
+ function D(e) {
20
+ e.forEach(It);
21
21
  }
22
- function Be(e) {
22
+ function Pe(e) {
23
23
  return typeof e == "function";
24
24
  }
25
- function Ct(e, t) {
25
+ function Nt(e, t) {
26
26
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
27
27
  }
28
- let le;
29
- function st(e, t) {
30
- return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
28
+ let he;
29
+ function at(e, t) {
30
+ return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
31
31
  }
32
- function fr(e) {
32
+ function dr(e) {
33
33
  return Object.keys(e).length === 0;
34
34
  }
35
- function It(e, ...t) {
35
+ function Mt(e, ...t) {
36
36
  if (e == null) {
37
37
  for (const n of t)
38
38
  n(void 0);
@@ -41,37 +41,37 @@ function It(e, ...t) {
41
41
  const r = e.subscribe(...t);
42
42
  return r.unsubscribe ? () => r.unsubscribe() : r;
43
43
  }
44
- function mr(e, t, r) {
45
- e.$$.on_destroy.push(It(t, r));
44
+ function pr(e, t, r) {
45
+ e.$$.on_destroy.push(Mt(t, r));
46
46
  }
47
- function me(e, t, r, n) {
47
+ function de(e, t, r, n) {
48
48
  if (e) {
49
- const i = Nt(e, t, r, n);
49
+ const i = Lt(e, t, r, n);
50
50
  return e[0](i);
51
51
  }
52
52
  }
53
- function Nt(e, t, r, n) {
54
- return e[1] && n ? cr(r.ctx.slice(), e[1](n(t))) : r.ctx;
53
+ function Lt(e, t, r, n) {
54
+ return e[1] && n ? mr(r.ctx.slice(), e[1](n(t))) : r.ctx;
55
55
  }
56
- function de(e, t, r, n) {
56
+ function pe(e, t, r, n) {
57
57
  if (e[2] && n) {
58
58
  const i = e[2](n(r));
59
59
  if (t.dirty === void 0)
60
60
  return i;
61
61
  if (typeof i == "object") {
62
- const s = [], o = Math.max(t.dirty.length, i.length);
63
- for (let a = 0; a < o; a += 1)
64
- s[a] = t.dirty[a] | i[a];
62
+ const s = [], a = Math.max(t.dirty.length, i.length);
63
+ for (let o = 0; o < a; o += 1)
64
+ s[o] = t.dirty[o] | i[o];
65
65
  return s;
66
66
  }
67
67
  return t.dirty | i;
68
68
  }
69
69
  return t.dirty;
70
70
  }
71
- function pe(e, t, r, n, i, s) {
71
+ function ge(e, t, r, n, i, s) {
72
72
  if (i) {
73
- const o = Nt(t, r, n, s);
74
- e.p(o, i);
73
+ const a = Lt(t, r, n, s);
74
+ e.p(a, i);
75
75
  }
76
76
  }
77
77
  function be(e) {
@@ -83,40 +83,40 @@ function be(e) {
83
83
  }
84
84
  return -1;
85
85
  }
86
- const Mt = typeof window < "u";
87
- let dr = Mt ? () => window.performance.now() : () => Date.now(), Ye = Mt ? (e) => requestAnimationFrame(e) : B;
88
- const V = /* @__PURE__ */ new Set();
89
- function Lt(e) {
90
- V.forEach((t) => {
91
- t.c(e) || (V.delete(t), t.f());
92
- }), V.size !== 0 && Ye(Lt);
86
+ const $t = typeof window < "u";
87
+ let gr = $t ? () => window.performance.now() : () => Date.now(), et = $t ? (e) => requestAnimationFrame(e) : B;
88
+ const X = /* @__PURE__ */ new Set();
89
+ function Rt(e) {
90
+ X.forEach((t) => {
91
+ t.c(e) || (X.delete(t), t.f());
92
+ }), X.size !== 0 && et(Rt);
93
93
  }
94
- function pr(e) {
94
+ function br(e) {
95
95
  let t;
96
- return V.size === 0 && Ye(Lt), {
96
+ return X.size === 0 && et(Rt), {
97
97
  promise: new Promise((r) => {
98
- V.add(t = { c: e, f: r });
98
+ X.add(t = { c: e, f: r });
99
99
  }),
100
100
  abort() {
101
- V.delete(t);
101
+ X.delete(t);
102
102
  }
103
103
  };
104
104
  }
105
- const Yi = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : (
105
+ const es = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : (
106
106
  // @ts-ignore Node typings have this
107
107
  global
108
108
  );
109
- function O(e, t) {
109
+ function C(e, t) {
110
110
  e.appendChild(t);
111
111
  }
112
- function br(e, t, r) {
113
- const n = Ke(e);
112
+ function yr(e, t, r) {
113
+ const n = tt(e);
114
114
  if (!n.getElementById(t)) {
115
115
  const i = A("style");
116
- i.id = t, i.textContent = r, $t(n, i);
116
+ i.id = t, i.textContent = r, Dt(n, i);
117
117
  }
118
118
  }
119
- function Ke(e) {
119
+ function tt(e) {
120
120
  if (!e)
121
121
  return document;
122
122
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -126,114 +126,114 @@ function Ke(e) {
126
126
  t
127
127
  ) : e.ownerDocument;
128
128
  }
129
- function gr(e) {
129
+ function _r(e) {
130
130
  const t = A("style");
131
- return t.textContent = "/* empty */", $t(Ke(e), t), t.sheet;
131
+ return t.textContent = "/* empty */", Dt(tt(e), t), t.sheet;
132
132
  }
133
- function $t(e, t) {
134
- return O(
133
+ function Dt(e, t) {
134
+ return C(
135
135
  /** @type {Document} */
136
136
  e.head || e,
137
137
  t
138
138
  ), t.sheet;
139
139
  }
140
- function D(e, t, r) {
140
+ function U(e, t, r) {
141
141
  e.insertBefore(t, r || null);
142
142
  }
143
- function C(e) {
143
+ function I(e) {
144
144
  e.parentNode && e.parentNode.removeChild(e);
145
145
  }
146
- function Ki(e, t) {
146
+ function ts(e, t) {
147
147
  for (let r = 0; r < e.length; r += 1)
148
148
  e[r] && e[r].d(t);
149
149
  }
150
150
  function A(e) {
151
151
  return document.createElement(e);
152
152
  }
153
- function es(e) {
153
+ function rs(e) {
154
154
  return document.createElementNS("http://www.w3.org/2000/svg", e);
155
155
  }
156
- function oe(e) {
156
+ function ae(e) {
157
157
  return document.createTextNode(e);
158
158
  }
159
- function Ie() {
160
- return oe(" ");
159
+ function Me() {
160
+ return ae(" ");
161
161
  }
162
- function yr() {
163
- return oe("");
162
+ function Er() {
163
+ return ae("");
164
164
  }
165
- function Ge(e, t, r, n) {
165
+ function je(e, t, r, n) {
166
166
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
167
167
  }
168
- function ts(e) {
168
+ function ns(e) {
169
169
  return function(t) {
170
170
  return t.preventDefault(), e.call(this, t);
171
171
  };
172
172
  }
173
- function $(e, t, r) {
173
+ function R(e, t, r) {
174
174
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
175
175
  }
176
- function he(e, t, r) {
176
+ function ce(e, t, r) {
177
177
  const n = t.toLowerCase();
178
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : $(e, t, r);
178
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : R(e, t, r);
179
179
  }
180
- function rs(e) {
180
+ function is(e) {
181
181
  return e === "" ? null : +e;
182
182
  }
183
- function _r(e) {
183
+ function vr(e) {
184
184
  return Array.from(e.childNodes);
185
185
  }
186
- function et(e, t) {
186
+ function rt(e, t) {
187
187
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
188
188
  t);
189
189
  }
190
- function ns(e, t) {
190
+ function ss(e, t) {
191
191
  e.value = t ?? "";
192
192
  }
193
- function is(e, t, r, n) {
193
+ function os(e, t, r, n) {
194
194
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
195
195
  }
196
- let ce;
197
- function vr() {
198
- if (ce === void 0) {
199
- ce = !1;
196
+ let fe;
197
+ function xr() {
198
+ if (fe === void 0) {
199
+ fe = !1;
200
200
  try {
201
201
  typeof window < "u" && window.parent && window.parent.document;
202
202
  } catch {
203
- ce = !0;
203
+ fe = !0;
204
204
  }
205
205
  }
206
- return ce;
206
+ return fe;
207
207
  }
208
- function ss(e, t) {
208
+ function as(e, t) {
209
209
  getComputedStyle(e).position === "static" && (e.style.position = "relative");
210
210
  const n = A("iframe");
211
211
  n.setAttribute(
212
212
  "style",
213
213
  "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
214
214
  ), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
215
- const i = vr();
215
+ const i = xr();
216
216
  let s;
217
- return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = Ge(
217
+ return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = je(
218
218
  window,
219
219
  "message",
220
220
  /** @param {MessageEvent} event */
221
- (o) => {
222
- o.source === n.contentWindow && t();
221
+ (a) => {
222
+ a.source === n.contentWindow && t();
223
223
  }
224
224
  )) : (n.src = "about:blank", n.onload = () => {
225
- s = Ge(n.contentWindow, "resize", t), t();
226
- }), O(e, n), () => {
227
- (i || s && n.contentWindow) && s(), C(n);
225
+ s = je(n.contentWindow, "resize", t), t();
226
+ }), C(e, n), () => {
227
+ (i || s && n.contentWindow) && s(), I(n);
228
228
  };
229
229
  }
230
- function os(e, t, r) {
230
+ function us(e, t, r) {
231
231
  e.classList.toggle(t, !!r);
232
232
  }
233
- function Er(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
233
+ function Tr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
234
234
  return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
235
235
  }
236
- function xr(e) {
236
+ function wr(e) {
237
237
  const t = {};
238
238
  return e.childNodes.forEach(
239
239
  /** @param {Element} node */
@@ -242,227 +242,227 @@ function xr(e) {
242
242
  }
243
243
  ), t;
244
244
  }
245
- const Ee = /* @__PURE__ */ new Map();
246
- let xe = 0;
247
- function Tr(e) {
245
+ const xe = /* @__PURE__ */ new Map();
246
+ let Te = 0;
247
+ function Hr(e) {
248
248
  let t = 5381, r = e.length;
249
249
  for (; r--; )
250
250
  t = (t << 5) - t ^ e.charCodeAt(r);
251
251
  return t >>> 0;
252
252
  }
253
- function wr(e, t) {
254
- const r = { stylesheet: gr(t), rules: {} };
255
- return Ee.set(e, r), r;
253
+ function Sr(e, t) {
254
+ const r = { stylesheet: _r(t), rules: {} };
255
+ return xe.set(e, r), r;
256
256
  }
257
- function ot(e, t, r, n, i, s, o, a = 0) {
257
+ function ut(e, t, r, n, i, s, a, o = 0) {
258
258
  const l = 16.666 / n;
259
259
  let u = `{
260
260
  `;
261
261
  for (let p = 0; p <= 1; p += l) {
262
262
  const d = t + (r - t) * s(p);
263
- u += p * 100 + `%{${o(d, 1 - d)}}
263
+ u += p * 100 + `%{${a(d, 1 - d)}}
264
264
  `;
265
265
  }
266
- const h = u + `100% {${o(r, 1 - r)}}
267
- }`, f = `__svelte_${Tr(h)}_${a}`, c = Ke(e), { stylesheet: y, rules: m } = Ee.get(c) || wr(c, e);
266
+ const h = u + `100% {${a(r, 1 - r)}}
267
+ }`, f = `__svelte_${Hr(h)}_${o}`, c = tt(e), { stylesheet: y, rules: m } = xe.get(c) || Sr(c, e);
268
268
  m[f] || (m[f] = !0, y.insertRule(`@keyframes ${f} ${h}`, y.cssRules.length));
269
- const g = e.style.animation || "";
270
- return e.style.animation = `${g ? `${g}, ` : ""}${f} ${n}ms linear ${i}ms 1 both`, xe += 1, f;
269
+ const b = e.style.animation || "";
270
+ return e.style.animation = `${b ? `${b}, ` : ""}${f} ${n}ms linear ${i}ms 1 both`, Te += 1, f;
271
271
  }
272
- function Hr(e, t) {
272
+ function Br(e, t) {
273
273
  const r = (e.style.animation || "").split(", "), n = r.filter(
274
274
  t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
275
275
  // remove all Svelte animations
276
276
  ), i = r.length - n.length;
277
- i && (e.style.animation = n.join(", "), xe -= i, xe || Sr());
277
+ i && (e.style.animation = n.join(", "), Te -= i, Te || Ar());
278
278
  }
279
- function Sr() {
280
- Ye(() => {
281
- xe || (Ee.forEach((e) => {
279
+ function Ar() {
280
+ et(() => {
281
+ Te || (xe.forEach((e) => {
282
282
  const { ownerNode: t } = e.stylesheet;
283
- t && C(t);
284
- }), Ee.clear());
283
+ t && I(t);
284
+ }), xe.clear());
285
285
  });
286
286
  }
287
- let ne;
288
- function re(e) {
289
- ne = e;
287
+ let ie;
288
+ function ne(e) {
289
+ ie = e;
290
290
  }
291
- function Br() {
292
- if (!ne)
291
+ function Pr() {
292
+ if (!ie)
293
293
  throw new Error("Function called outside component initialization");
294
- return ne;
294
+ return ie;
295
295
  }
296
- function Ar(e) {
297
- Br().$$.on_mount.push(e);
296
+ function Or(e) {
297
+ Pr().$$.on_mount.push(e);
298
298
  }
299
- const j = [], Fe = [];
300
- let X = [];
301
- const at = [], Pr = /* @__PURE__ */ Promise.resolve();
302
- let je = !1;
303
- function Or() {
304
- je || (je = !0, Pr.then(P));
299
+ const z = [], ze = [];
300
+ let W = [];
301
+ const lt = [], Cr = /* @__PURE__ */ Promise.resolve();
302
+ let Ve = !1;
303
+ function Ir() {
304
+ Ve || (Ve = !0, Cr.then(P));
305
305
  }
306
- function Te(e) {
307
- X.push(e);
306
+ function we(e) {
307
+ W.push(e);
308
308
  }
309
- const Ne = /* @__PURE__ */ new Set();
310
- let G = 0;
309
+ const Le = /* @__PURE__ */ new Set();
310
+ let F = 0;
311
311
  function P() {
312
- if (G !== 0)
312
+ if (F !== 0)
313
313
  return;
314
- const e = ne;
314
+ const e = ie;
315
315
  do {
316
316
  try {
317
- for (; G < j.length; ) {
318
- const t = j[G];
319
- G++, re(t), Cr(t.$$);
317
+ for (; F < z.length; ) {
318
+ const t = z[F];
319
+ F++, ne(t), Nr(t.$$);
320
320
  }
321
321
  } catch (t) {
322
- throw j.length = 0, G = 0, t;
322
+ throw z.length = 0, F = 0, t;
323
323
  }
324
- for (re(null), j.length = 0, G = 0; Fe.length; )
325
- Fe.pop()();
326
- for (let t = 0; t < X.length; t += 1) {
327
- const r = X[t];
328
- Ne.has(r) || (Ne.add(r), r());
324
+ for (ne(null), z.length = 0, F = 0; ze.length; )
325
+ ze.pop()();
326
+ for (let t = 0; t < W.length; t += 1) {
327
+ const r = W[t];
328
+ Le.has(r) || (Le.add(r), r());
329
329
  }
330
- X.length = 0;
331
- } while (j.length);
332
- for (; at.length; )
333
- at.pop()();
334
- je = !1, Ne.clear(), re(e);
330
+ W.length = 0;
331
+ } while (z.length);
332
+ for (; lt.length; )
333
+ lt.pop()();
334
+ Ve = !1, Le.clear(), ne(e);
335
335
  }
336
- function Cr(e) {
336
+ function Nr(e) {
337
337
  if (e.fragment !== null) {
338
- e.update(), R(e.before_update);
338
+ e.update(), D(e.before_update);
339
339
  const t = e.dirty;
340
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Te);
340
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(we);
341
341
  }
342
342
  }
343
- function Ir(e) {
343
+ function Mr(e) {
344
344
  const t = [], r = [];
345
- X.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), X = t;
345
+ W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
346
346
  }
347
- let K;
348
- function Nr() {
349
- return K || (K = Promise.resolve(), K.then(() => {
350
- K = null;
351
- })), K;
347
+ let ee;
348
+ function Lr() {
349
+ return ee || (ee = Promise.resolve(), ee.then(() => {
350
+ ee = null;
351
+ })), ee;
352
352
  }
353
- function Me(e, t, r) {
354
- e.dispatchEvent(Er(`${t ? "intro" : "outro"}${r}`));
353
+ function $e(e, t, r) {
354
+ e.dispatchEvent(Tr(`${t ? "intro" : "outro"}${r}`));
355
355
  }
356
- const ge = /* @__PURE__ */ new Set();
357
- let I;
358
- function Mr() {
359
- I = {
356
+ const ye = /* @__PURE__ */ new Set();
357
+ let N;
358
+ function $r() {
359
+ N = {
360
360
  r: 0,
361
361
  c: [],
362
- p: I
362
+ p: N
363
363
  // parent group
364
364
  };
365
365
  }
366
- function Lr() {
367
- I.r || R(I.c), I = I.p;
366
+ function Rr() {
367
+ N.r || D(N.c), N = N.p;
368
368
  }
369
- function N(e, t) {
370
- e && e.i && (ge.delete(e), e.i(t));
369
+ function M(e, t) {
370
+ e && e.i && (ye.delete(e), e.i(t));
371
371
  }
372
- function z(e, t, r, n) {
372
+ function V(e, t, r, n) {
373
373
  if (e && e.o) {
374
- if (ge.has(e))
374
+ if (ye.has(e))
375
375
  return;
376
- ge.add(e), I.c.push(() => {
377
- ge.delete(e), n && (r && e.d(1), n());
376
+ ye.add(e), N.c.push(() => {
377
+ ye.delete(e), n && (r && e.d(1), n());
378
378
  }), e.o(t);
379
379
  } else
380
380
  n && n();
381
381
  }
382
- const $r = { duration: 0 };
383
- function as(e, t, r, n) {
384
- let s = t(e, r, { direction: "both" }), o = n ? 0 : 1, a = null, l = null, u = null, h;
382
+ const Dr = { duration: 0 };
383
+ function ls(e, t, r, n) {
384
+ let s = t(e, r, { direction: "both" }), a = n ? 0 : 1, o = null, l = null, u = null, h;
385
385
  function f() {
386
- u && Hr(e, u);
386
+ u && Br(e, u);
387
387
  }
388
- function c(m, g) {
388
+ function c(m, b) {
389
389
  const p = (
390
390
  /** @type {Program['d']} */
391
- m.b - o
391
+ m.b - a
392
392
  );
393
- return g *= Math.abs(p), {
394
- a: o,
393
+ return b *= Math.abs(p), {
394
+ a,
395
395
  b: m.b,
396
396
  d: p,
397
- duration: g,
397
+ duration: b,
398
398
  start: m.start,
399
- end: m.start + g,
399
+ end: m.start + b,
400
400
  group: m.group
401
401
  };
402
402
  }
403
403
  function y(m) {
404
404
  const {
405
- delay: g = 0,
405
+ delay: b = 0,
406
406
  duration: p = 300,
407
- easing: d = hr,
408
- tick: x = B,
409
- css: b
410
- } = s || $r, w = {
411
- start: dr() + g,
407
+ easing: d = fr,
408
+ tick: v = B,
409
+ css: g
410
+ } = s || Dr, w = {
411
+ start: gr() + b,
412
412
  b: m
413
413
  };
414
- m || (w.group = I, I.r += 1), "inert" in e && (m ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
415
- e.inert, e.inert = !0)), a || l ? l = w : (b && (f(), u = ot(e, o, m, p, g, d, b)), m && x(0, 1), a = c(w, p), Te(() => Me(e, m, "start")), pr((H) => {
416
- if (l && H > l.start && (a = c(l, p), l = null, Me(e, a.b, "start"), b && (f(), u = ot(
414
+ m || (w.group = N, N.r += 1), "inert" in e && (m ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
415
+ e.inert, e.inert = !0)), o || l ? l = w : (g && (f(), u = ut(e, a, m, p, b, d, g)), m && v(0, 1), o = c(w, p), we(() => $e(e, m, "start")), br((H) => {
416
+ if (l && H > l.start && (o = c(l, p), l = null, $e(e, o.b, "start"), g && (f(), u = ut(
417
417
  e,
418
- o,
419
- a.b,
420
- a.duration,
418
+ a,
419
+ o.b,
420
+ o.duration,
421
421
  0,
422
422
  d,
423
423
  s.css
424
- ))), a) {
425
- if (H >= a.end)
426
- x(o = a.b, 1 - o), Me(e, a.b, "end"), l || (a.b ? f() : --a.group.r || R(a.group.c)), a = null;
427
- else if (H >= a.start) {
428
- const k = H - a.start;
429
- o = a.a + a.d * d(k / a.duration), x(o, 1 - o);
424
+ ))), o) {
425
+ if (H >= o.end)
426
+ v(a = o.b, 1 - a), $e(e, o.b, "end"), l || (o.b ? f() : --o.group.r || D(o.group.c)), o = null;
427
+ else if (H >= o.start) {
428
+ const G = H - o.start;
429
+ a = o.a + o.d * d(G / o.duration), v(a, 1 - a);
430
430
  }
431
431
  }
432
- return !!(a || l);
432
+ return !!(o || l);
433
433
  }));
434
434
  }
435
435
  return {
436
436
  run(m) {
437
- Be(s) ? Nr().then(() => {
437
+ Pe(s) ? Lr().then(() => {
438
438
  s = s({ direction: m ? "in" : "out" }), y(m);
439
439
  }) : y(m);
440
440
  },
441
441
  end() {
442
- f(), a = l = null;
442
+ f(), o = l = null;
443
443
  }
444
444
  };
445
445
  }
446
- function us(e) {
446
+ function hs(e) {
447
447
  return e?.length !== void 0 ? e : Array.from(e);
448
448
  }
449
- function Rr(e, t, r) {
449
+ function Ur(e, t, r) {
450
450
  const { fragment: n, after_update: i } = e.$$;
451
- n && n.m(t, r), Te(() => {
452
- const s = e.$$.on_mount.map(Ot).filter(Be);
453
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : R(s), e.$$.on_mount = [];
454
- }), i.forEach(Te);
451
+ n && n.m(t, r), we(() => {
452
+ const s = e.$$.on_mount.map(It).filter(Pe);
453
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : D(s), e.$$.on_mount = [];
454
+ }), i.forEach(we);
455
455
  }
456
- function Dr(e, t) {
456
+ function kr(e, t) {
457
457
  const r = e.$$;
458
- r.fragment !== null && (Ir(r.after_update), R(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
458
+ r.fragment !== null && (Mr(r.after_update), D(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
459
459
  }
460
- function Ur(e, t) {
461
- e.$$.dirty[0] === -1 && (j.push(e), Or(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
460
+ function Gr(e, t) {
461
+ e.$$.dirty[0] === -1 && (z.push(e), Ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
462
462
  }
463
- function kr(e, t, r, n, i, s, o = null, a = [-1]) {
464
- const l = ne;
465
- re(e);
463
+ function Fr(e, t, r, n, i, s, a = null, o = [-1]) {
464
+ const l = ie;
465
+ ne(e);
466
466
  const u = e.$$ = {
467
467
  fragment: null,
468
468
  ctx: [],
@@ -470,7 +470,7 @@ function kr(e, t, r, n, i, s, o = null, a = [-1]) {
470
470
  props: s,
471
471
  update: B,
472
472
  not_equal: i,
473
- bound: it(),
473
+ bound: ot(),
474
474
  // lifecycle
475
475
  on_mount: [],
476
476
  on_destroy: [],
@@ -479,28 +479,28 @@ function kr(e, t, r, n, i, s, o = null, a = [-1]) {
479
479
  after_update: [],
480
480
  context: new Map(t.context || (l ? l.$$.context : [])),
481
481
  // everything else
482
- callbacks: it(),
483
- dirty: a,
482
+ callbacks: ot(),
483
+ dirty: o,
484
484
  skip_bound: !1,
485
485
  root: t.target || l.$$.root
486
486
  };
487
- o && o(u.root);
487
+ a && a(u.root);
488
488
  let h = !1;
489
489
  if (u.ctx = r ? r(e, t.props || {}, (f, c, ...y) => {
490
490
  const m = y.length ? y[0] : c;
491
- return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && Ur(e, f)), c;
492
- }) : [], u.update(), h = !0, R(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
491
+ return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && Gr(e, f)), c;
492
+ }) : [], u.update(), h = !0, D(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
493
493
  if (t.hydrate) {
494
- const f = _r(t.target);
495
- u.fragment && u.fragment.l(f), f.forEach(C);
494
+ const f = vr(t.target);
495
+ u.fragment && u.fragment.l(f), f.forEach(I);
496
496
  } else
497
497
  u.fragment && u.fragment.c();
498
- t.intro && N(e.$$.fragment), Rr(e, t.target, t.anchor), P();
498
+ t.intro && M(e.$$.fragment), Ur(e, t.target, t.anchor), P();
499
499
  }
500
- re(l);
500
+ ne(l);
501
501
  }
502
- let Rt;
503
- typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
502
+ let Ut;
503
+ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
504
504
  /** The Svelte component constructor */
505
505
  $$ctor;
506
506
  /** Slots */
@@ -542,29 +542,29 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
542
542
  let s;
543
543
  return {
544
544
  c: function() {
545
- s = A("slot"), i !== "default" && $(s, "name", i);
545
+ s = A("slot"), i !== "default" && R(s, "name", i);
546
546
  },
547
547
  /**
548
548
  * @param {HTMLElement} target
549
549
  * @param {HTMLElement} [anchor]
550
550
  */
551
551
  m: function(l, u) {
552
- D(l, s, u);
552
+ U(l, s, u);
553
553
  },
554
554
  d: function(l) {
555
- l && C(s);
555
+ l && I(s);
556
556
  }
557
557
  };
558
558
  };
559
559
  };
560
560
  if (await Promise.resolve(), !this.$$cn || this.$$c)
561
561
  return;
562
- const t = {}, r = xr(this);
562
+ const t = {}, r = wr(this);
563
563
  for (const i of this.$$s)
564
564
  i in r && (t[i] = [e(i)]);
565
565
  for (const i of this.attributes) {
566
566
  const s = this.$$g_p(i.name);
567
- s in this.$$d || (this.$$d[s] = ye(s, i.value, this.$$p_d, "toProp"));
567
+ s in this.$$d || (this.$$d[s] = _e(s, i.value, this.$$p_d, "toProp"));
568
568
  }
569
569
  for (const i in this.$$p_d)
570
570
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -582,7 +582,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
582
582
  this.$$r = !0;
583
583
  for (const i in this.$$p_d)
584
584
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
585
- const s = ye(
585
+ const s = _e(
586
586
  i,
587
587
  this.$$d[i],
588
588
  this.$$p_d,
@@ -595,8 +595,8 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
595
595
  this.$$c.$$.after_update.push(n), n();
596
596
  for (const i in this.$$l)
597
597
  for (const s of this.$$l[i]) {
598
- const o = this.$$c.$on(i, s);
599
- this.$$l_u.set(s, o);
598
+ const a = this.$$c.$on(i, s);
599
+ this.$$l_u.set(s, a);
600
600
  }
601
601
  this.$$l = {};
602
602
  }
@@ -604,7 +604,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
604
604
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
605
605
  // and setting attributes through setAttribute etc, this is helpful
606
606
  attributeChangedCallback(e, t, r) {
607
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ye(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
607
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = _e(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
608
608
  }
609
609
  disconnectedCallback() {
610
610
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -617,7 +617,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
617
617
  ) || e;
618
618
  }
619
619
  });
620
- function ye(e, t, r, n) {
620
+ function _e(e, t, r, n) {
621
621
  const i = r[e]?.type;
622
622
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
623
623
  return t;
@@ -646,36 +646,36 @@ function ye(e, t, r, n) {
646
646
  return t;
647
647
  }
648
648
  }
649
- function Gr(e, t, r, n, i, s) {
650
- let o = class extends Rt {
649
+ function jr(e, t, r, n, i, s) {
650
+ let a = class extends Ut {
651
651
  constructor() {
652
652
  super(e, r, i), this.$$p_d = t;
653
653
  }
654
654
  static get observedAttributes() {
655
655
  return Object.keys(t).map(
656
- (a) => (t[a].attribute || a).toLowerCase()
656
+ (o) => (t[o].attribute || o).toLowerCase()
657
657
  );
658
658
  }
659
659
  };
660
- return Object.keys(t).forEach((a) => {
661
- Object.defineProperty(o.prototype, a, {
660
+ return Object.keys(t).forEach((o) => {
661
+ Object.defineProperty(a.prototype, o, {
662
662
  get() {
663
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
663
+ return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
664
664
  },
665
665
  set(l) {
666
- l = ye(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
666
+ l = _e(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
667
667
  }
668
668
  });
669
- }), n.forEach((a) => {
670
- Object.defineProperty(o.prototype, a, {
669
+ }), n.forEach((o) => {
670
+ Object.defineProperty(a.prototype, o, {
671
671
  get() {
672
- return this.$$c?.[a];
672
+ return this.$$c?.[o];
673
673
  }
674
674
  });
675
675
  }), e.element = /** @type {any} */
676
- o, o;
676
+ a, a;
677
677
  }
678
- class Fr {
678
+ class zr {
679
679
  /**
680
680
  * ### PRIVATE API
681
681
  *
@@ -694,7 +694,7 @@ class Fr {
694
694
  $$set = void 0;
695
695
  /** @returns {void} */
696
696
  $destroy() {
697
- Dr(this, 1), this.$destroy = B;
697
+ kr(this, 1), this.$destroy = B;
698
698
  }
699
699
  /**
700
700
  * @template {Extract<keyof Events, string>} K
@@ -703,7 +703,7 @@ class Fr {
703
703
  * @returns {() => void}
704
704
  */
705
705
  $on(t, r) {
706
- if (!Be(r))
706
+ if (!Pe(r))
707
707
  return B;
708
708
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
709
709
  return n.push(r), () => {
@@ -716,49 +716,49 @@ class Fr {
716
716
  * @returns {void}
717
717
  */
718
718
  $set(t) {
719
- this.$$set && !fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
719
+ this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
720
720
  }
721
721
  }
722
- const jr = "4";
723
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jr);
724
- const F = [];
725
- function zr(e, t) {
722
+ const Vr = "4";
723
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Vr);
724
+ const j = [];
725
+ function Xr(e, t) {
726
726
  return {
727
- subscribe: Ae(e, t).subscribe
727
+ subscribe: Oe(e, t).subscribe
728
728
  };
729
729
  }
730
- function Ae(e, t = B) {
730
+ function Oe(e, t = B) {
731
731
  let r;
732
732
  const n = /* @__PURE__ */ new Set();
733
- function i(a) {
734
- if (Ct(e, a) && (e = a, r)) {
735
- const l = !F.length;
733
+ function i(o) {
734
+ if (Nt(e, o) && (e = o, r)) {
735
+ const l = !j.length;
736
736
  for (const u of n)
737
- u[1](), F.push(u, e);
737
+ u[1](), j.push(u, e);
738
738
  if (l) {
739
- for (let u = 0; u < F.length; u += 2)
740
- F[u][0](F[u + 1]);
741
- F.length = 0;
739
+ for (let u = 0; u < j.length; u += 2)
740
+ j[u][0](j[u + 1]);
741
+ j.length = 0;
742
742
  }
743
743
  }
744
744
  }
745
- function s(a) {
746
- i(a(e));
745
+ function s(o) {
746
+ i(o(e));
747
747
  }
748
- function o(a, l = B) {
749
- const u = [a, l];
750
- return n.add(u), n.size === 1 && (r = t(i, s) || B), a(e), () => {
748
+ function a(o, l = B) {
749
+ const u = [o, l];
750
+ return n.add(u), n.size === 1 && (r = t(i, s) || B), o(e), () => {
751
751
  n.delete(u), n.size === 0 && r && (r(), r = null);
752
752
  };
753
753
  }
754
- return { set: i, update: s, subscribe: o };
754
+ return { set: i, update: s, subscribe: a };
755
755
  }
756
- function Q(e, t, r) {
756
+ function Y(e, t, r) {
757
757
  const n = !Array.isArray(e), i = n ? [e] : e;
758
758
  if (!i.every(Boolean))
759
759
  throw new Error("derived() expects stores as input, got a falsy value");
760
760
  const s = t.length < 2;
761
- return zr(r, (o, a) => {
761
+ return Xr(r, (a, o) => {
762
762
  let l = !1;
763
763
  const u = [];
764
764
  let h = 0, f = B;
@@ -766,141 +766,127 @@ function Q(e, t, r) {
766
766
  if (h)
767
767
  return;
768
768
  f();
769
- const m = t(n ? u[0] : u, o, a);
770
- s ? o(m) : f = Be(m) ? m : B;
769
+ const m = t(n ? u[0] : u, a, o);
770
+ s ? a(m) : f = Pe(m) ? m : B;
771
771
  }, y = i.map(
772
- (m, g) => It(
772
+ (m, b) => Mt(
773
773
  m,
774
774
  (p) => {
775
- u[g] = p, h &= ~(1 << g), l && c();
775
+ u[b] = p, h &= ~(1 << b), l && c();
776
776
  },
777
777
  () => {
778
- h |= 1 << g;
778
+ h |= 1 << b;
779
779
  }
780
780
  )
781
781
  );
782
782
  return l = !0, c(), function() {
783
- R(y), f(), l = !1;
783
+ D(y), f(), l = !1;
784
784
  };
785
785
  });
786
786
  }
787
- var ls = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
788
- function Vr(e) {
787
+ var cs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
788
+ function Wr(e) {
789
789
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
790
790
  }
791
- var Xr = function(t) {
792
- return Wr(t) && !Zr(t);
791
+ var Zr = function(t) {
792
+ return Jr(t) && !qr(t);
793
793
  };
794
- function Wr(e) {
794
+ function Jr(e) {
795
795
  return !!e && typeof e == "object";
796
796
  }
797
- function Zr(e) {
797
+ function qr(e) {
798
798
  var t = Object.prototype.toString.call(e);
799
- return t === "[object RegExp]" || t === "[object Date]" || Qr(e);
799
+ return t === "[object RegExp]" || t === "[object Date]" || Kr(e);
800
800
  }
801
- var Jr = typeof Symbol == "function" && Symbol.for, qr = Jr ? Symbol.for("react.element") : 60103;
802
- function Qr(e) {
803
- return e.$$typeof === qr;
801
+ var Qr = typeof Symbol == "function" && Symbol.for, Yr = Qr ? Symbol.for("react.element") : 60103;
802
+ function Kr(e) {
803
+ return e.$$typeof === Yr;
804
804
  }
805
- function Yr(e) {
805
+ function en(e) {
806
806
  return Array.isArray(e) ? [] : {};
807
807
  }
808
- function ie(e, t) {
809
- return t.clone !== !1 && t.isMergeableObject(e) ? W(Yr(e), e, t) : e;
808
+ function se(e, t) {
809
+ return t.clone !== !1 && t.isMergeableObject(e) ? Z(en(e), e, t) : e;
810
810
  }
811
- function Kr(e, t, r) {
811
+ function tn(e, t, r) {
812
812
  return e.concat(t).map(function(n) {
813
- return ie(n, r);
813
+ return se(n, r);
814
814
  });
815
815
  }
816
- function en(e, t) {
816
+ function rn(e, t) {
817
817
  if (!t.customMerge)
818
- return W;
818
+ return Z;
819
819
  var r = t.customMerge(e);
820
- return typeof r == "function" ? r : W;
820
+ return typeof r == "function" ? r : Z;
821
821
  }
822
- function tn(e) {
822
+ function nn(e) {
823
823
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
824
824
  return Object.propertyIsEnumerable.call(e, t);
825
825
  }) : [];
826
826
  }
827
- function ut(e) {
828
- return Object.keys(e).concat(tn(e));
827
+ function ht(e) {
828
+ return Object.keys(e).concat(nn(e));
829
829
  }
830
- function Dt(e, t) {
830
+ function kt(e, t) {
831
831
  try {
832
832
  return t in e;
833
833
  } catch {
834
834
  return !1;
835
835
  }
836
836
  }
837
- function rn(e, t) {
838
- return Dt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
837
+ function sn(e, t) {
838
+ return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
839
839
  }
840
- function nn(e, t, r) {
840
+ function on(e, t, r) {
841
841
  var n = {};
842
- return r.isMergeableObject(e) && ut(e).forEach(function(i) {
843
- n[i] = ie(e[i], r);
844
- }), ut(t).forEach(function(i) {
845
- rn(e, i) || (Dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = en(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
842
+ return r.isMergeableObject(e) && ht(e).forEach(function(i) {
843
+ n[i] = se(e[i], r);
844
+ }), ht(t).forEach(function(i) {
845
+ sn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = rn(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
846
846
  }), n;
847
847
  }
848
- function W(e, t, r) {
849
- r = r || {}, r.arrayMerge = r.arrayMerge || Kr, r.isMergeableObject = r.isMergeableObject || Xr, r.cloneUnlessOtherwiseSpecified = ie;
848
+ function Z(e, t, r) {
849
+ r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Zr, r.cloneUnlessOtherwiseSpecified = se;
850
850
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
851
- return s ? n ? r.arrayMerge(e, t, r) : nn(e, t, r) : ie(t, r);
851
+ return s ? n ? r.arrayMerge(e, t, r) : on(e, t, r) : se(t, r);
852
852
  }
853
- W.all = function(t, r) {
853
+ Z.all = function(t, r) {
854
854
  if (!Array.isArray(t))
855
855
  throw new Error("first argument should be an array");
856
856
  return t.reduce(function(n, i) {
857
- return W(n, i, r);
857
+ return Z(n, i, r);
858
858
  }, {});
859
859
  };
860
- var sn = W, on = sn;
861
- const an = /* @__PURE__ */ Vr(on);
862
- /*! *****************************************************************************
863
- Copyright (c) Microsoft Corporation.
864
-
865
- Permission to use, copy, modify, and/or distribute this software for any
866
- purpose with or without fee is hereby granted.
867
-
868
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
869
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
870
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
871
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
872
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
873
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
874
- PERFORMANCE OF THIS SOFTWARE.
875
- ***************************************************************************** */
876
- var ze = function(e, t) {
877
- return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
860
+ var an = Z, un = an;
861
+ const ln = /* @__PURE__ */ Wr(un);
862
+ var Xe = function(e, t) {
863
+ return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
878
864
  r.__proto__ = n;
879
865
  } || function(r, n) {
880
866
  for (var i in n)
881
867
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
882
- }, ze(e, t);
868
+ }, Xe(e, t);
883
869
  };
884
- function Pe(e, t) {
870
+ function Ce(e, t) {
885
871
  if (typeof t != "function" && t !== null)
886
872
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
887
- ze(e, t);
873
+ Xe(e, t);
888
874
  function r() {
889
875
  this.constructor = e;
890
876
  }
891
877
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
892
878
  }
893
- var E = function() {
894
- return E = Object.assign || function(t) {
879
+ var O = function() {
880
+ return O = Object.assign || function(t) {
895
881
  for (var r, n = 1, i = arguments.length; n < i; n++) {
896
882
  r = arguments[n];
897
883
  for (var s in r)
898
884
  Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
899
885
  }
900
886
  return t;
901
- }, E.apply(this, arguments);
887
+ }, O.apply(this, arguments);
902
888
  };
903
- function un(e, t) {
889
+ function hn(e, t) {
904
890
  var r = {};
905
891
  for (var n in e)
906
892
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -909,75 +895,43 @@ function un(e, t) {
909
895
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
910
896
  return r;
911
897
  }
912
- function hs(e) {
913
- var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
914
- if (r)
915
- return r.call(e);
916
- if (e && typeof e.length == "number")
917
- return {
918
- next: function() {
919
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
920
- }
921
- };
922
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
923
- }
924
- function cs(e, t) {
925
- var r = typeof Symbol == "function" && e[Symbol.iterator];
926
- if (!r)
927
- return e;
928
- var n = r.call(e), i, s = [], o;
929
- try {
930
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
931
- s.push(i.value);
932
- } catch (a) {
933
- o = { error: a };
934
- } finally {
935
- try {
936
- i && !i.done && (r = n.return) && r.call(n);
937
- } finally {
938
- if (o)
939
- throw o.error;
940
- }
941
- }
942
- return s;
943
- }
944
- function Le(e, t, r) {
898
+ function Re(e, t, r) {
945
899
  if (r || arguments.length === 2)
946
900
  for (var n = 0, i = t.length, s; n < i; n++)
947
901
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
948
- return e.concat(s || t);
902
+ return e.concat(s || Array.prototype.slice.call(t));
949
903
  }
950
- function $e(e, t) {
951
- var r = t && t.cache ? t.cache : pn, n = t && t.serializer ? t.serializer : mn, i = t && t.strategy ? t.strategy : cn;
904
+ function De(e, t) {
905
+ var r = t && t.cache ? t.cache : bn, n = t && t.serializer ? t.serializer : pn, i = t && t.strategy ? t.strategy : mn;
952
906
  return i(e, {
953
907
  cache: r,
954
908
  serializer: n
955
909
  });
956
910
  }
957
- function ln(e) {
911
+ function cn(e) {
958
912
  return e == null || typeof e == "number" || typeof e == "boolean";
959
913
  }
960
- function hn(e, t, r, n) {
961
- var i = ln(n) ? n : r(n), s = t.get(i);
914
+ function fn(e, t, r, n) {
915
+ var i = cn(n) ? n : r(n), s = t.get(i);
962
916
  return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
963
917
  }
964
- function Ut(e, t, r) {
918
+ function Gt(e, t, r) {
965
919
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
966
920
  return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
967
921
  }
968
- function kt(e, t, r, n, i) {
922
+ function Ft(e, t, r, n, i) {
969
923
  return r.bind(t, e, n, i);
970
924
  }
971
- function cn(e, t) {
972
- var r = e.length === 1 ? hn : Ut;
973
- return kt(e, this, r, t.cache.create(), t.serializer);
925
+ function mn(e, t) {
926
+ var r = e.length === 1 ? fn : Gt;
927
+ return Ft(e, this, r, t.cache.create(), t.serializer);
974
928
  }
975
- function fn(e, t) {
976
- return kt(e, this, Ut, t.cache.create(), t.serializer);
929
+ function dn(e, t) {
930
+ return Ft(e, this, Gt, t.cache.create(), t.serializer);
977
931
  }
978
- var mn = function() {
932
+ var pn = function() {
979
933
  return JSON.stringify(arguments);
980
- }, dn = (
934
+ }, gn = (
981
935
  /** @class */
982
936
  function() {
983
937
  function e() {
@@ -989,61 +943,71 @@ var mn = function() {
989
943
  this.cache[t] = r;
990
944
  }, e;
991
945
  }()
992
- ), pn = {
946
+ ), bn = {
993
947
  create: function() {
994
- return new dn();
948
+ return new gn();
995
949
  }
996
- }, Re = {
997
- variadic: fn
998
- }, _;
950
+ }, Ue = {
951
+ variadic: dn
952
+ }, He = function() {
953
+ return He = Object.assign || function(t) {
954
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
955
+ r = arguments[n];
956
+ for (var s in r)
957
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
958
+ }
959
+ return t;
960
+ }, He.apply(this, arguments);
961
+ };
962
+ var _;
999
963
  (function(e) {
1000
964
  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";
1001
965
  })(_ || (_ = {}));
1002
- var T;
966
+ var x;
1003
967
  (function(e) {
1004
968
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
1005
- })(T || (T = {}));
1006
- var Z;
969
+ })(x || (x = {}));
970
+ var J;
1007
971
  (function(e) {
1008
972
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1009
- })(Z || (Z = {}));
1010
- function lt(e) {
1011
- return e.type === T.literal;
1012
- }
1013
- function bn(e) {
1014
- return e.type === T.argument;
1015
- }
1016
- function Gt(e) {
1017
- return e.type === T.number;
973
+ })(J || (J = {}));
974
+ function ct(e) {
975
+ return e.type === x.literal;
1018
976
  }
1019
- function Ft(e) {
1020
- return e.type === T.date;
977
+ function yn(e) {
978
+ return e.type === x.argument;
1021
979
  }
1022
980
  function jt(e) {
1023
- return e.type === T.time;
981
+ return e.type === x.number;
1024
982
  }
1025
983
  function zt(e) {
1026
- return e.type === T.select;
984
+ return e.type === x.date;
1027
985
  }
1028
986
  function Vt(e) {
1029
- return e.type === T.plural;
1030
- }
1031
- function gn(e) {
1032
- return e.type === T.pound;
987
+ return e.type === x.time;
1033
988
  }
1034
989
  function Xt(e) {
1035
- return e.type === T.tag;
990
+ return e.type === x.select;
1036
991
  }
1037
992
  function Wt(e) {
1038
- return !!(e && typeof e == "object" && e.type === Z.number);
1039
- }
1040
- function Ve(e) {
1041
- return !!(e && typeof e == "object" && e.type === Z.dateTime);
993
+ return e.type === x.plural;
1042
994
  }
1043
- var Zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, yn = /(?:[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;
1044
995
  function _n(e) {
996
+ return e.type === x.pound;
997
+ }
998
+ function Zt(e) {
999
+ return e.type === x.tag;
1000
+ }
1001
+ function Jt(e) {
1002
+ return !!(e && typeof e == "object" && e.type === J.number);
1003
+ }
1004
+ function We(e) {
1005
+ return !!(e && typeof e == "object" && e.type === J.dateTime);
1006
+ }
1007
+ var qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, En = /(?:[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;
1008
+ function vn(e) {
1045
1009
  var t = {};
1046
- return e.replace(yn, function(r) {
1010
+ return e.replace(En, function(r) {
1047
1011
  var n = r.length;
1048
1012
  switch (r[0]) {
1049
1013
  case "G":
@@ -1132,36 +1096,46 @@ function _n(e) {
1132
1096
  return "";
1133
1097
  }), t;
1134
1098
  }
1135
- var vn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1136
- function En(e) {
1099
+ var T = function() {
1100
+ return T = Object.assign || function(t) {
1101
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
1102
+ r = arguments[n];
1103
+ for (var s in r)
1104
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
1105
+ }
1106
+ return t;
1107
+ }, T.apply(this, arguments);
1108
+ };
1109
+ var xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1110
+ function Tn(e) {
1137
1111
  if (e.length === 0)
1138
1112
  throw new Error("Number skeleton cannot be empty");
1139
- for (var t = e.split(vn).filter(function(c) {
1113
+ for (var t = e.split(xn).filter(function(c) {
1140
1114
  return c.length > 0;
1141
1115
  }), r = [], n = 0, i = t; n < i.length; n++) {
1142
- var s = i[n], o = s.split("/");
1143
- if (o.length === 0)
1116
+ var s = i[n], a = s.split("/");
1117
+ if (a.length === 0)
1144
1118
  throw new Error("Invalid number skeleton");
1145
- for (var a = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
1119
+ for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
1146
1120
  var f = h[u];
1147
1121
  if (f.length === 0)
1148
1122
  throw new Error("Invalid number skeleton");
1149
1123
  }
1150
- r.push({ stem: a, options: l });
1124
+ r.push({ stem: o, options: l });
1151
1125
  }
1152
1126
  return r;
1153
1127
  }
1154
- function xn(e) {
1128
+ function wn(e) {
1155
1129
  return e.replace(/^(.*?)-/, "");
1156
1130
  }
1157
- var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Jt = /^(@+)?(\+|#+)?[rs]?$/g, Tn = /(\*)(0+)|(#+)(0+)|(0+)/g, qt = /^(0+)$/;
1158
- function ct(e) {
1131
+ var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qt = /^(@+)?(\+|#+)?[rs]?$/g, Hn = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
1132
+ function mt(e) {
1159
1133
  var t = {};
1160
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Jt, function(r, n, i) {
1134
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qt, function(r, n, i) {
1161
1135
  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)), "";
1162
1136
  }), t;
1163
1137
  }
1164
- function Qt(e) {
1138
+ function Kt(e) {
1165
1139
  switch (e) {
1166
1140
  case "sign-auto":
1167
1141
  return {
@@ -1201,7 +1175,7 @@ function Qt(e) {
1201
1175
  };
1202
1176
  }
1203
1177
  }
1204
- function wn(e) {
1178
+ function Sn(e) {
1205
1179
  var t;
1206
1180
  if (e[0] === "E" && e[1] === "E" ? (t = {
1207
1181
  notation: "engineering"
@@ -1209,17 +1183,17 @@ function wn(e) {
1209
1183
  notation: "scientific"
1210
1184
  }, e = e.slice(1)), t) {
1211
1185
  var r = e.slice(0, 2);
1212
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !qt.test(e))
1186
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yt.test(e))
1213
1187
  throw new Error("Malformed concise eng/scientific notation");
1214
1188
  t.minimumIntegerDigits = e.length;
1215
1189
  }
1216
1190
  return t;
1217
1191
  }
1218
- function ft(e) {
1219
- var t = {}, r = Qt(e);
1192
+ function dt(e) {
1193
+ var t = {}, r = Kt(e);
1220
1194
  return r || t;
1221
1195
  }
1222
- function Hn(e) {
1196
+ function Bn(e) {
1223
1197
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1224
1198
  var i = n[r];
1225
1199
  switch (i.stem) {
@@ -1243,7 +1217,7 @@ function Hn(e) {
1243
1217
  continue;
1244
1218
  case "measure-unit":
1245
1219
  case "unit":
1246
- t.style = "unit", t.unit = xn(i.options[0]);
1220
+ t.style = "unit", t.unit = wn(i.options[0]);
1247
1221
  continue;
1248
1222
  case "compact-short":
1249
1223
  case "K":
@@ -1254,13 +1228,13 @@ function Hn(e) {
1254
1228
  t.notation = "compact", t.compactDisplay = "long";
1255
1229
  continue;
1256
1230
  case "scientific":
1257
- t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1258
- return E(E({}, l), ft(u));
1231
+ t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1232
+ return T(T({}, l), dt(u));
1259
1233
  }, {}));
1260
1234
  continue;
1261
1235
  case "engineering":
1262
- t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1263
- return E(E({}, l), ft(u));
1236
+ t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1237
+ return T(T({}, l), dt(u));
1264
1238
  }, {}));
1265
1239
  continue;
1266
1240
  case "notation-simple":
@@ -1305,7 +1279,7 @@ function Hn(e) {
1305
1279
  case "integer-width":
1306
1280
  if (i.options.length > 1)
1307
1281
  throw new RangeError("integer-width stems only accept a single optional option");
1308
- i.options[0].replace(Tn, function(l, u, h, f, c, y) {
1282
+ i.options[0].replace(Hn, function(l, u, h, f, c, y) {
1309
1283
  if (u)
1310
1284
  t.minimumIntegerDigits = h.length;
1311
1285
  else {
@@ -1318,32 +1292,32 @@ function Hn(e) {
1318
1292
  });
1319
1293
  continue;
1320
1294
  }
1321
- if (qt.test(i.stem)) {
1295
+ if (Yt.test(i.stem)) {
1322
1296
  t.minimumIntegerDigits = i.stem.length;
1323
1297
  continue;
1324
1298
  }
1325
- if (ht.test(i.stem)) {
1299
+ if (ft.test(i.stem)) {
1326
1300
  if (i.options.length > 1)
1327
1301
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1328
- i.stem.replace(ht, function(l, u, h, f, c, y) {
1302
+ i.stem.replace(ft, function(l, u, h, f, c, y) {
1329
1303
  return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && y ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1330
1304
  });
1331
1305
  var s = i.options[0];
1332
- s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), ct(s)));
1306
+ s === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = T(T({}, t), mt(s)));
1333
1307
  continue;
1334
1308
  }
1335
- if (Jt.test(i.stem)) {
1336
- t = E(E({}, t), ct(i.stem));
1309
+ if (Qt.test(i.stem)) {
1310
+ t = T(T({}, t), mt(i.stem));
1337
1311
  continue;
1338
1312
  }
1339
- var o = Qt(i.stem);
1340
- o && (t = E(E({}, t), o));
1341
- var a = wn(i.stem);
1342
- a && (t = E(E({}, t), a));
1313
+ var a = Kt(i.stem);
1314
+ a && (t = T(T({}, t), a));
1315
+ var o = Sn(i.stem);
1316
+ o && (t = T(T({}, t), o));
1343
1317
  }
1344
1318
  return t;
1345
1319
  }
1346
- var fe = {
1320
+ var me = {
1347
1321
  "001": [
1348
1322
  "H",
1349
1323
  "h"
@@ -2758,23 +2732,23 @@ var fe = {
2758
2732
  "h"
2759
2733
  ]
2760
2734
  };
2761
- function Sn(e, t) {
2735
+ function An(e, t) {
2762
2736
  for (var r = "", n = 0; n < e.length; n++) {
2763
2737
  var i = e.charAt(n);
2764
2738
  if (i === "j") {
2765
2739
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2766
2740
  s++, n++;
2767
- var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Bn(t);
2768
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2741
+ var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Pn(t);
2742
+ for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
2769
2743
  r += l;
2770
- for (; o-- > 0; )
2744
+ for (; a-- > 0; )
2771
2745
  r = u + r;
2772
2746
  } else
2773
2747
  i === "J" ? r += "H" : r += i;
2774
2748
  }
2775
2749
  return r;
2776
2750
  }
2777
- function Bn(e) {
2751
+ function Pn(e) {
2778
2752
  var t = e.hourCycle;
2779
2753
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2780
2754
  e.hourCycles && // @ts-ignore
@@ -2793,23 +2767,23 @@ function Bn(e) {
2793
2767
  }
2794
2768
  var r = e.language, n;
2795
2769
  r !== "root" && (n = e.maximize().region);
2796
- var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
2770
+ var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
2797
2771
  return i[0];
2798
2772
  }
2799
- var De, An = new RegExp("^".concat(Zt.source, "*")), Pn = new RegExp("".concat(Zt.source, "*$"));
2800
- function v(e, t) {
2773
+ var ke, On = new RegExp("^".concat(qt.source, "*")), Cn = new RegExp("".concat(qt.source, "*$"));
2774
+ function E(e, t) {
2801
2775
  return { start: e, end: t };
2802
2776
  }
2803
- var On = !!String.prototype.startsWith && "_a".startsWith("a", 1), Cn = !!String.fromCodePoint, In = !!Object.fromEntries, Nn = !!String.prototype.codePointAt, Mn = !!String.prototype.trimStart, Ln = !!String.prototype.trimEnd, $n = !!Number.isSafeInteger, Rn = $n ? Number.isSafeInteger : function(e) {
2777
+ var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint, Mn = !!Object.fromEntries, Ln = !!String.prototype.codePointAt, $n = !!String.prototype.trimStart, Rn = !!String.prototype.trimEnd, Dn = !!Number.isSafeInteger, Un = Dn ? Number.isSafeInteger : function(e) {
2804
2778
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2805
- }, Xe = !0;
2779
+ }, Ze = !0;
2806
2780
  try {
2807
- var Dn = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2808
- Xe = ((De = Dn.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
2781
+ var kn = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2782
+ Ze = ((ke = kn.exec("a")) === null || ke === void 0 ? void 0 : ke[0]) === "a";
2809
2783
  } catch {
2810
- Xe = !1;
2784
+ Ze = !1;
2811
2785
  }
2812
- var mt = On ? (
2786
+ var pt = In ? (
2813
2787
  // Native
2814
2788
  function(t, r, n) {
2815
2789
  return t.startsWith(r, n);
@@ -2819,31 +2793,31 @@ var mt = On ? (
2819
2793
  function(t, r, n) {
2820
2794
  return t.slice(n, n + r.length) === r;
2821
2795
  }
2822
- ), We = Cn ? String.fromCodePoint : (
2796
+ ), Je = Nn ? String.fromCodePoint : (
2823
2797
  // IE11
2824
2798
  function() {
2825
2799
  for (var t = [], r = 0; r < arguments.length; r++)
2826
2800
  t[r] = arguments[r];
2827
- for (var n = "", i = t.length, s = 0, o; i > s; ) {
2828
- if (o = t[s++], o > 1114111)
2829
- throw RangeError(o + " is not a valid code point");
2830
- n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2801
+ for (var n = "", i = t.length, s = 0, a; i > s; ) {
2802
+ if (a = t[s++], a > 1114111)
2803
+ throw RangeError(a + " is not a valid code point");
2804
+ n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2831
2805
  }
2832
2806
  return n;
2833
2807
  }
2834
- ), dt = (
2808
+ ), gt = (
2835
2809
  // native
2836
- In ? Object.fromEntries : (
2810
+ Mn ? Object.fromEntries : (
2837
2811
  // Ponyfill
2838
2812
  function(t) {
2839
2813
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2840
- var s = i[n], o = s[0], a = s[1];
2841
- r[o] = a;
2814
+ var s = i[n], a = s[0], o = s[1];
2815
+ r[a] = o;
2842
2816
  }
2843
2817
  return r;
2844
2818
  }
2845
2819
  )
2846
- ), Yt = Nn ? (
2820
+ ), er = Ln ? (
2847
2821
  // Native
2848
2822
  function(t, r) {
2849
2823
  return t.codePointAt(r);
@@ -2857,7 +2831,7 @@ var mt = On ? (
2857
2831
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2858
2832
  }
2859
2833
  }
2860
- ), Un = Mn ? (
2834
+ ), Gn = $n ? (
2861
2835
  // Native
2862
2836
  function(t) {
2863
2837
  return t.trimStart();
@@ -2865,9 +2839,9 @@ var mt = On ? (
2865
2839
  ) : (
2866
2840
  // Ponyfill
2867
2841
  function(t) {
2868
- return t.replace(An, "");
2842
+ return t.replace(On, "");
2869
2843
  }
2870
- ), kn = Ln ? (
2844
+ ), Fn = Rn ? (
2871
2845
  // Native
2872
2846
  function(t) {
2873
2847
  return t.trimEnd();
@@ -2875,32 +2849,32 @@ var mt = On ? (
2875
2849
  ) : (
2876
2850
  // Ponyfill
2877
2851
  function(t) {
2878
- return t.replace(Pn, "");
2852
+ return t.replace(Cn, "");
2879
2853
  }
2880
2854
  );
2881
- function Kt(e, t) {
2855
+ function tr(e, t) {
2882
2856
  return new RegExp(e, t);
2883
2857
  }
2884
- var Ze;
2885
- if (Xe) {
2886
- var pt = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2887
- Ze = function(t, r) {
2858
+ var qe;
2859
+ if (Ze) {
2860
+ var bt = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2861
+ qe = function(t, r) {
2888
2862
  var n;
2889
- pt.lastIndex = r;
2890
- var i = pt.exec(t);
2863
+ bt.lastIndex = r;
2864
+ var i = bt.exec(t);
2891
2865
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2892
2866
  };
2893
2867
  } else
2894
- Ze = function(t, r) {
2868
+ qe = function(t, r) {
2895
2869
  for (var n = []; ; ) {
2896
- var i = Yt(t, r);
2897
- if (i === void 0 || er(i) || zn(i))
2870
+ var i = er(t, r);
2871
+ if (i === void 0 || rr(i) || Xn(i))
2898
2872
  break;
2899
2873
  n.push(i), r += i >= 65536 ? 2 : 1;
2900
2874
  }
2901
- return We.apply(void 0, n);
2875
+ return Je.apply(void 0, n);
2902
2876
  };
2903
- var Gn = (
2877
+ var jn = (
2904
2878
  /** @class */
2905
2879
  function() {
2906
2880
  function e(t, r) {
@@ -2914,33 +2888,33 @@ var Gn = (
2914
2888
  for (var i = []; !this.isEOF(); ) {
2915
2889
  var s = this.char();
2916
2890
  if (s === 123) {
2917
- var o = this.parseArgument(t, n);
2918
- if (o.err)
2919
- return o;
2920
- i.push(o.val);
2891
+ var a = this.parseArgument(t, n);
2892
+ if (a.err)
2893
+ return a;
2894
+ i.push(a.val);
2921
2895
  } else {
2922
2896
  if (s === 125 && t > 0)
2923
2897
  break;
2924
2898
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
2925
- var a = this.clonePosition();
2899
+ var o = this.clonePosition();
2926
2900
  this.bump(), i.push({
2927
- type: T.pound,
2928
- location: v(a, this.clonePosition())
2901
+ type: x.pound,
2902
+ location: E(o, this.clonePosition())
2929
2903
  });
2930
2904
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2931
2905
  if (n)
2932
2906
  break;
2933
- return this.error(_.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
2934
- } else if (s === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
2935
- var o = this.parseTag(t, r);
2936
- if (o.err)
2937
- return o;
2938
- i.push(o.val);
2907
+ return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
2908
+ } else if (s === 60 && !this.ignoreTag && Qe(this.peek() || 0)) {
2909
+ var a = this.parseTag(t, r);
2910
+ if (a.err)
2911
+ return a;
2912
+ i.push(a.val);
2939
2913
  } else {
2940
- var o = this.parseLiteral(t, r);
2941
- if (o.err)
2942
- return o;
2943
- i.push(o.val);
2914
+ var a = this.parseLiteral(t, r);
2915
+ if (a.err)
2916
+ return a;
2917
+ i.push(a.val);
2944
2918
  }
2945
2919
  }
2946
2920
  }
@@ -2952,9 +2926,9 @@ var Gn = (
2952
2926
  if (this.bumpSpace(), this.bumpIf("/>"))
2953
2927
  return {
2954
2928
  val: {
2955
- type: T.literal,
2929
+ type: x.literal,
2956
2930
  value: "<".concat(i, "/>"),
2957
- location: v(n, this.clonePosition())
2931
+ location: E(n, this.clonePosition())
2958
2932
  },
2959
2933
  err: null
2960
2934
  };
@@ -2962,27 +2936,27 @@ var Gn = (
2962
2936
  var s = this.parseMessage(t + 1, r, !0);
2963
2937
  if (s.err)
2964
2938
  return s;
2965
- var o = s.val, a = this.clonePosition();
2939
+ var a = s.val, o = this.clonePosition();
2966
2940
  if (this.bumpIf("</")) {
2967
- if (this.isEOF() || !Je(this.char()))
2968
- return this.error(_.INVALID_TAG, v(a, this.clonePosition()));
2941
+ if (this.isEOF() || !Qe(this.char()))
2942
+ return this.error(_.INVALID_TAG, E(o, this.clonePosition()));
2969
2943
  var l = this.clonePosition(), u = this.parseTagName();
2970
- return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2944
+ return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2971
2945
  val: {
2972
- type: T.tag,
2946
+ type: x.tag,
2973
2947
  value: i,
2974
- children: o,
2975
- location: v(n, this.clonePosition())
2948
+ children: a,
2949
+ location: E(n, this.clonePosition())
2976
2950
  },
2977
2951
  err: null
2978
- } : this.error(_.INVALID_TAG, v(a, this.clonePosition())));
2952
+ } : this.error(_.INVALID_TAG, E(o, this.clonePosition())));
2979
2953
  } else
2980
- return this.error(_.UNCLOSED_TAG, v(n, this.clonePosition()));
2954
+ return this.error(_.UNCLOSED_TAG, E(n, this.clonePosition()));
2981
2955
  } else
2982
- return this.error(_.INVALID_TAG, v(n, this.clonePosition()));
2956
+ return this.error(_.INVALID_TAG, E(n, this.clonePosition()));
2983
2957
  }, e.prototype.parseTagName = function() {
2984
2958
  var t = this.offset();
2985
- for (this.bump(); !this.isEOF() && jn(this.char()); )
2959
+ for (this.bump(); !this.isEOF() && Vn(this.char()); )
2986
2960
  this.bump();
2987
2961
  return this.message.slice(t, this.offset());
2988
2962
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2992,26 +2966,26 @@ var Gn = (
2992
2966
  i += s;
2993
2967
  continue;
2994
2968
  }
2995
- var o = this.tryParseUnquoted(t, r);
2996
- if (o) {
2997
- i += o;
2998
- continue;
2999
- }
3000
- var a = this.tryParseLeftAngleBracket();
2969
+ var a = this.tryParseUnquoted(t, r);
3001
2970
  if (a) {
3002
2971
  i += a;
3003
2972
  continue;
3004
2973
  }
2974
+ var o = this.tryParseLeftAngleBracket();
2975
+ if (o) {
2976
+ i += o;
2977
+ continue;
2978
+ }
3005
2979
  break;
3006
2980
  }
3007
- var l = v(n, this.clonePosition());
2981
+ var l = E(n, this.clonePosition());
3008
2982
  return {
3009
- val: { type: T.literal, value: i, location: l },
2983
+ val: { type: x.literal, value: i, location: l },
3010
2984
  err: null
3011
2985
  };
3012
2986
  }, e.prototype.tryParseLeftAngleBracket = function() {
3013
2987
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3014
- !Fn(this.peek() || 0)) ? (this.bump(), "<") : null;
2988
+ !zn(this.peek() || 0)) ? (this.bump(), "<") : null;
3015
2989
  }, e.prototype.tryParseQuote = function(t) {
3016
2990
  if (this.isEOF() || this.char() !== 39)
3017
2991
  return null;
@@ -3045,49 +3019,49 @@ var Gn = (
3045
3019
  r.push(n);
3046
3020
  this.bump();
3047
3021
  }
3048
- return We.apply(void 0, r);
3022
+ return Je.apply(void 0, r);
3049
3023
  }, e.prototype.tryParseUnquoted = function(t, r) {
3050
3024
  if (this.isEOF())
3051
3025
  return null;
3052
3026
  var n = this.char();
3053
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), We(n));
3027
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Je(n));
3054
3028
  }, e.prototype.parseArgument = function(t, r) {
3055
3029
  var n = this.clonePosition();
3056
3030
  if (this.bump(), this.bumpSpace(), this.isEOF())
3057
- return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3031
+ return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
3058
3032
  if (this.char() === 125)
3059
- return this.bump(), this.error(_.EMPTY_ARGUMENT, v(n, this.clonePosition()));
3033
+ return this.bump(), this.error(_.EMPTY_ARGUMENT, E(n, this.clonePosition()));
3060
3034
  var i = this.parseIdentifierIfPossible().value;
3061
3035
  if (!i)
3062
- return this.error(_.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3036
+ return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
3063
3037
  if (this.bumpSpace(), this.isEOF())
3064
- return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3038
+ return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
3065
3039
  switch (this.char()) {
3066
3040
  case 125:
3067
3041
  return this.bump(), {
3068
3042
  val: {
3069
- type: T.argument,
3043
+ type: x.argument,
3070
3044
  // value does not include the opening and closing braces.
3071
3045
  value: i,
3072
- location: v(n, this.clonePosition())
3046
+ location: E(n, this.clonePosition())
3073
3047
  },
3074
3048
  err: null
3075
3049
  };
3076
3050
  case 44:
3077
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3051
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3078
3052
  default:
3079
- return this.error(_.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3053
+ return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
3080
3054
  }
3081
3055
  }, e.prototype.parseIdentifierIfPossible = function() {
3082
- var t = this.clonePosition(), r = this.offset(), n = Ze(this.message, r), i = r + n.length;
3056
+ var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
3083
3057
  this.bumpTo(i);
3084
- var s = this.clonePosition(), o = v(t, s);
3085
- return { value: n, location: o };
3058
+ var s = this.clonePosition(), a = E(t, s);
3059
+ return { value: n, location: a };
3086
3060
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3087
- var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3088
- switch (a) {
3061
+ var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3062
+ switch (o) {
3089
3063
  case "":
3090
- return this.error(_.EXPECT_ARGUMENT_TYPE, v(o, l));
3064
+ return this.error(_.EXPECT_ARGUMENT_TYPE, E(a, l));
3091
3065
  case "number":
3092
3066
  case "date":
3093
3067
  case "time": {
@@ -3098,46 +3072,46 @@ var Gn = (
3098
3072
  var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3099
3073
  if (f.err)
3100
3074
  return f;
3101
- var c = kn(f.val);
3075
+ var c = Fn(f.val);
3102
3076
  if (c.length === 0)
3103
- return this.error(_.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
3104
- var y = v(h, this.clonePosition());
3077
+ return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
3078
+ var y = E(h, this.clonePosition());
3105
3079
  u = { style: c, styleLocation: y };
3106
3080
  }
3107
3081
  var m = this.tryParseArgumentClose(i);
3108
3082
  if (m.err)
3109
3083
  return m;
3110
- var g = v(i, this.clonePosition());
3111
- if (u && mt(u?.style, "::", 0)) {
3112
- var p = Un(u.style.slice(2));
3113
- if (a === "number") {
3084
+ var b = E(i, this.clonePosition());
3085
+ if (u && pt(u?.style, "::", 0)) {
3086
+ var p = Gn(u.style.slice(2));
3087
+ if (o === "number") {
3114
3088
  var f = this.parseNumberSkeletonFromString(p, u.styleLocation);
3115
3089
  return f.err ? f : {
3116
- val: { type: T.number, value: n, location: g, style: f.val },
3090
+ val: { type: x.number, value: n, location: b, style: f.val },
3117
3091
  err: null
3118
3092
  };
3119
3093
  } else {
3120
3094
  if (p.length === 0)
3121
- return this.error(_.EXPECT_DATE_TIME_SKELETON, g);
3095
+ return this.error(_.EXPECT_DATE_TIME_SKELETON, b);
3122
3096
  var d = p;
3123
- this.locale && (d = Sn(p, this.locale));
3097
+ this.locale && (d = An(p, this.locale));
3124
3098
  var c = {
3125
- type: Z.dateTime,
3099
+ type: J.dateTime,
3126
3100
  pattern: d,
3127
3101
  location: u.styleLocation,
3128
- parsedOptions: this.shouldParseSkeletons ? _n(d) : {}
3129
- }, x = a === "date" ? T.date : T.time;
3102
+ parsedOptions: this.shouldParseSkeletons ? vn(d) : {}
3103
+ }, v = o === "date" ? x.date : x.time;
3130
3104
  return {
3131
- val: { type: x, value: n, location: g, style: c },
3105
+ val: { type: v, value: n, location: b, style: c },
3132
3106
  err: null
3133
3107
  };
3134
3108
  }
3135
3109
  }
3136
3110
  return {
3137
3111
  val: {
3138
- type: a === "number" ? T.number : a === "date" ? T.date : T.time,
3112
+ type: o === "number" ? x.number : o === "date" ? x.date : x.time,
3139
3113
  value: n,
3140
- location: g,
3114
+ location: b,
3141
3115
  style: (s = u?.style) !== null && s !== void 0 ? s : null
3142
3116
  },
3143
3117
  err: null
@@ -3146,52 +3120,52 @@ var Gn = (
3146
3120
  case "plural":
3147
3121
  case "selectordinal":
3148
3122
  case "select": {
3149
- var b = this.clonePosition();
3123
+ var g = this.clonePosition();
3150
3124
  if (this.bumpSpace(), !this.bumpIf(","))
3151
- return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, v(b, E({}, b)));
3125
+ return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(g, He({}, g)));
3152
3126
  this.bumpSpace();
3153
3127
  var w = this.parseIdentifierIfPossible(), H = 0;
3154
- if (a !== "select" && w.value === "offset") {
3128
+ if (o !== "select" && w.value === "offset") {
3155
3129
  if (!this.bumpIf(":"))
3156
- return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
3130
+ return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
3157
3131
  this.bumpSpace();
3158
3132
  var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3159
3133
  if (f.err)
3160
3134
  return f;
3161
3135
  this.bumpSpace(), w = this.parseIdentifierIfPossible(), H = f.val;
3162
3136
  }
3163
- var k = this.tryParsePluralOrSelectOptions(t, a, r, w);
3164
- if (k.err)
3165
- return k;
3137
+ var G = this.tryParsePluralOrSelectOptions(t, o, r, w);
3138
+ if (G.err)
3139
+ return G;
3166
3140
  var m = this.tryParseArgumentClose(i);
3167
3141
  if (m.err)
3168
3142
  return m;
3169
- var nt = v(i, this.clonePosition());
3170
- return a === "select" ? {
3143
+ var st = E(i, this.clonePosition());
3144
+ return o === "select" ? {
3171
3145
  val: {
3172
- type: T.select,
3146
+ type: x.select,
3173
3147
  value: n,
3174
- options: dt(k.val),
3175
- location: nt
3148
+ options: gt(G.val),
3149
+ location: st
3176
3150
  },
3177
3151
  err: null
3178
3152
  } : {
3179
3153
  val: {
3180
- type: T.plural,
3154
+ type: x.plural,
3181
3155
  value: n,
3182
- options: dt(k.val),
3156
+ options: gt(G.val),
3183
3157
  offset: H,
3184
- pluralType: a === "plural" ? "cardinal" : "ordinal",
3185
- location: nt
3158
+ pluralType: o === "plural" ? "cardinal" : "ordinal",
3159
+ location: st
3186
3160
  },
3187
3161
  err: null
3188
3162
  };
3189
3163
  }
3190
3164
  default:
3191
- return this.error(_.INVALID_ARGUMENT_TYPE, v(o, l));
3165
+ return this.error(_.INVALID_ARGUMENT_TYPE, E(a, l));
3192
3166
  }
3193
3167
  }, e.prototype.tryParseArgumentClose = function(t) {
3194
- return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3168
+ return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3195
3169
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3196
3170
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3197
3171
  var n = this.char();
@@ -3200,7 +3174,7 @@ var Gn = (
3200
3174
  this.bump();
3201
3175
  var i = this.clonePosition();
3202
3176
  if (!this.bumpUntil("'"))
3203
- return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
3177
+ return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, E(i, this.clonePosition()));
3204
3178
  this.bump();
3205
3179
  break;
3206
3180
  }
@@ -3230,64 +3204,64 @@ var Gn = (
3230
3204
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3231
3205
  var n = [];
3232
3206
  try {
3233
- n = En(t);
3207
+ n = Tn(t);
3234
3208
  } catch {
3235
3209
  return this.error(_.INVALID_NUMBER_SKELETON, r);
3236
3210
  }
3237
3211
  return {
3238
3212
  val: {
3239
- type: Z.number,
3213
+ type: J.number,
3240
3214
  tokens: n,
3241
3215
  location: r,
3242
- parsedOptions: this.shouldParseSkeletons ? Hn(n) : {}
3216
+ parsedOptions: this.shouldParseSkeletons ? Bn(n) : {}
3243
3217
  },
3244
3218
  err: null
3245
3219
  };
3246
3220
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3247
- for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3221
+ for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3248
3222
  if (u.length === 0) {
3249
3223
  var f = this.clonePosition();
3250
3224
  if (r !== "select" && this.bumpIf("=")) {
3251
3225
  var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
3252
3226
  if (c.err)
3253
3227
  return c;
3254
- h = v(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3228
+ h = E(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3255
3229
  } else
3256
3230
  break;
3257
3231
  }
3258
3232
  if (l.has(u))
3259
3233
  return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3260
- u === "other" && (o = !0), this.bumpSpace();
3234
+ u === "other" && (a = !0), this.bumpSpace();
3261
3235
  var y = this.clonePosition();
3262
3236
  if (!this.bumpIf("{"))
3263
- return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
3237
+ return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
3264
3238
  var m = this.parseMessage(t + 1, r, n);
3265
3239
  if (m.err)
3266
3240
  return m;
3267
- var g = this.tryParseArgumentClose(y);
3268
- if (g.err)
3269
- return g;
3270
- a.push([
3241
+ var b = this.tryParseArgumentClose(y);
3242
+ if (b.err)
3243
+ return b;
3244
+ o.push([
3271
3245
  u,
3272
3246
  {
3273
3247
  value: m.val,
3274
- location: v(y, this.clonePosition())
3248
+ location: E(y, this.clonePosition())
3275
3249
  }
3276
3250
  ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
3277
3251
  }
3278
- return a.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(_.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3252
+ return o.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(_.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3279
3253
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3280
3254
  var n = 1, i = this.clonePosition();
3281
3255
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3282
- for (var s = !1, o = 0; !this.isEOF(); ) {
3283
- var a = this.char();
3284
- if (a >= 48 && a <= 57)
3285
- s = !0, o = o * 10 + (a - 48), this.bump();
3256
+ for (var s = !1, a = 0; !this.isEOF(); ) {
3257
+ var o = this.char();
3258
+ if (o >= 48 && o <= 57)
3259
+ s = !0, a = a * 10 + (o - 48), this.bump();
3286
3260
  else
3287
3261
  break;
3288
3262
  }
3289
- var l = v(i, this.clonePosition());
3290
- return s ? (o *= n, Rn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
3263
+ var l = E(i, this.clonePosition());
3264
+ return s ? (a *= n, Un(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3291
3265
  }, e.prototype.offset = function() {
3292
3266
  return this.position.offset;
3293
3267
  }, e.prototype.isEOF = function() {
@@ -3302,7 +3276,7 @@ var Gn = (
3302
3276
  var t = this.position.offset;
3303
3277
  if (t >= this.message.length)
3304
3278
  throw Error("out of bound");
3305
- var r = Yt(this.message, t);
3279
+ var r = er(this.message, t);
3306
3280
  if (r === void 0)
3307
3281
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3308
3282
  return r;
@@ -3321,7 +3295,7 @@ var Gn = (
3321
3295
  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);
3322
3296
  }
3323
3297
  }, e.prototype.bumpIf = function(t) {
3324
- if (mt(this.message, t, this.offset())) {
3298
+ if (pt(this.message, t, this.offset())) {
3325
3299
  for (var r = 0; r < t.length; r++)
3326
3300
  this.bump();
3327
3301
  return !0;
@@ -3343,7 +3317,7 @@ var Gn = (
3343
3317
  break;
3344
3318
  }
3345
3319
  }, e.prototype.bumpSpace = function() {
3346
- for (; !this.isEOF() && er(this.char()); )
3320
+ for (; !this.isEOF() && rr(this.char()); )
3347
3321
  this.bump();
3348
3322
  }, e.prototype.peek = function() {
3349
3323
  if (this.isEOF())
@@ -3353,47 +3327,47 @@ var Gn = (
3353
3327
  }, e;
3354
3328
  }()
3355
3329
  );
3356
- function Je(e) {
3330
+ function Qe(e) {
3357
3331
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3358
3332
  }
3359
- function Fn(e) {
3360
- return Je(e) || e === 47;
3333
+ function zn(e) {
3334
+ return Qe(e) || e === 47;
3361
3335
  }
3362
- function jn(e) {
3336
+ function Vn(e) {
3363
3337
  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;
3364
3338
  }
3365
- function er(e) {
3339
+ function rr(e) {
3366
3340
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3367
3341
  }
3368
- function zn(e) {
3342
+ function Xn(e) {
3369
3343
  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;
3370
3344
  }
3371
- function qe(e) {
3345
+ function Ye(e) {
3372
3346
  e.forEach(function(t) {
3373
- if (delete t.location, zt(t) || Vt(t))
3347
+ if (delete t.location, Xt(t) || Wt(t))
3374
3348
  for (var r in t.options)
3375
- delete t.options[r].location, qe(t.options[r].value);
3349
+ delete t.options[r].location, Ye(t.options[r].value);
3376
3350
  else
3377
- Gt(t) && Wt(t.style) || (Ft(t) || jt(t)) && Ve(t.style) ? delete t.style.location : Xt(t) && qe(t.children);
3351
+ jt(t) && Jt(t.style) || (zt(t) || Vt(t)) && We(t.style) ? delete t.style.location : Zt(t) && Ye(t.children);
3378
3352
  });
3379
3353
  }
3380
- function Vn(e, t) {
3381
- t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3382
- var r = new Gn(e, t).parse();
3354
+ function Wn(e, t) {
3355
+ t === void 0 && (t = {}), t = He({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3356
+ var r = new jn(e, t).parse();
3383
3357
  if (r.err) {
3384
3358
  var n = SyntaxError(_[r.err.kind]);
3385
3359
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3386
3360
  }
3387
- return t?.captureLocation || qe(r.val), r.val;
3361
+ return t?.captureLocation || Ye(r.val), r.val;
3388
3362
  }
3389
- var J;
3363
+ var q;
3390
3364
  (function(e) {
3391
3365
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3392
- })(J || (J = {}));
3393
- var Oe = (
3366
+ })(q || (q = {}));
3367
+ var Ie = (
3394
3368
  /** @class */
3395
3369
  function(e) {
3396
- Pe(t, e);
3370
+ Ce(t, e);
3397
3371
  function t(r, n, i) {
3398
3372
  var s = e.call(this, r) || this;
3399
3373
  return s.code = n, s.originalMessage = i, s;
@@ -3402,65 +3376,65 @@ var Oe = (
3402
3376
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3403
3377
  }, t;
3404
3378
  }(Error)
3405
- ), bt = (
3379
+ ), yt = (
3406
3380
  /** @class */
3407
3381
  function(e) {
3408
- Pe(t, e);
3382
+ Ce(t, e);
3409
3383
  function t(r, n, i, s) {
3410
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, s) || this;
3384
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, s) || this;
3411
3385
  }
3412
3386
  return t;
3413
- }(Oe)
3414
- ), Xn = (
3387
+ }(Ie)
3388
+ ), Zn = (
3415
3389
  /** @class */
3416
3390
  function(e) {
3417
- Pe(t, e);
3391
+ Ce(t, e);
3418
3392
  function t(r, n, i) {
3419
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
3393
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
3420
3394
  }
3421
3395
  return t;
3422
- }(Oe)
3423
- ), Wn = (
3396
+ }(Ie)
3397
+ ), Jn = (
3424
3398
  /** @class */
3425
3399
  function(e) {
3426
- Pe(t, e);
3400
+ Ce(t, e);
3427
3401
  function t(r, n) {
3428
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
3402
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
3429
3403
  }
3430
3404
  return t;
3431
- }(Oe)
3405
+ }(Ie)
3432
3406
  ), S;
3433
3407
  (function(e) {
3434
3408
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3435
3409
  })(S || (S = {}));
3436
- function Zn(e) {
3410
+ function qn(e) {
3437
3411
  return e.length < 2 ? e : e.reduce(function(t, r) {
3438
3412
  var n = t[t.length - 1];
3439
3413
  return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
3440
3414
  }, []);
3441
3415
  }
3442
- function Jn(e) {
3416
+ function Qn(e) {
3443
3417
  return typeof e == "function";
3444
3418
  }
3445
- function _e(e, t, r, n, i, s, o) {
3446
- if (e.length === 1 && lt(e[0]))
3419
+ function Ee(e, t, r, n, i, s, a) {
3420
+ if (e.length === 1 && ct(e[0]))
3447
3421
  return [
3448
3422
  {
3449
3423
  type: S.literal,
3450
3424
  value: e[0].value
3451
3425
  }
3452
3426
  ];
3453
- for (var a = [], l = 0, u = e; l < u.length; l++) {
3427
+ for (var o = [], l = 0, u = e; l < u.length; l++) {
3454
3428
  var h = u[l];
3455
- if (lt(h)) {
3456
- a.push({
3429
+ if (ct(h)) {
3430
+ o.push({
3457
3431
  type: S.literal,
3458
3432
  value: h.value
3459
3433
  });
3460
3434
  continue;
3461
3435
  }
3462
- if (gn(h)) {
3463
- typeof s == "number" && a.push({
3436
+ if (_n(h)) {
3437
+ typeof s == "number" && o.push({
3464
3438
  type: S.literal,
3465
3439
  value: r.getNumberFormat(t).format(s)
3466
3440
  });
@@ -3468,89 +3442,89 @@ function _e(e, t, r, n, i, s, o) {
3468
3442
  }
3469
3443
  var f = h.value;
3470
3444
  if (!(i && f in i))
3471
- throw new Wn(f, o);
3445
+ throw new Jn(f, a);
3472
3446
  var c = i[f];
3473
- if (bn(h)) {
3474
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3447
+ if (yn(h)) {
3448
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
3475
3449
  type: typeof c == "string" ? S.literal : S.object,
3476
3450
  value: c
3477
3451
  });
3478
3452
  continue;
3479
3453
  }
3480
- if (Ft(h)) {
3481
- var y = typeof h.style == "string" ? n.date[h.style] : Ve(h.style) ? h.style.parsedOptions : void 0;
3482
- a.push({
3454
+ if (zt(h)) {
3455
+ var y = typeof h.style == "string" ? n.date[h.style] : We(h.style) ? h.style.parsedOptions : void 0;
3456
+ o.push({
3483
3457
  type: S.literal,
3484
3458
  value: r.getDateTimeFormat(t, y).format(c)
3485
3459
  });
3486
3460
  continue;
3487
3461
  }
3488
- if (jt(h)) {
3489
- var y = typeof h.style == "string" ? n.time[h.style] : Ve(h.style) ? h.style.parsedOptions : n.time.medium;
3490
- a.push({
3462
+ if (Vt(h)) {
3463
+ var y = typeof h.style == "string" ? n.time[h.style] : We(h.style) ? h.style.parsedOptions : n.time.medium;
3464
+ o.push({
3491
3465
  type: S.literal,
3492
3466
  value: r.getDateTimeFormat(t, y).format(c)
3493
3467
  });
3494
3468
  continue;
3495
3469
  }
3496
- if (Gt(h)) {
3497
- var y = typeof h.style == "string" ? n.number[h.style] : Wt(h.style) ? h.style.parsedOptions : void 0;
3498
- y && y.scale && (c = c * (y.scale || 1)), a.push({
3470
+ if (jt(h)) {
3471
+ var y = typeof h.style == "string" ? n.number[h.style] : Jt(h.style) ? h.style.parsedOptions : void 0;
3472
+ y && y.scale && (c = c * (y.scale || 1)), o.push({
3499
3473
  type: S.literal,
3500
3474
  value: r.getNumberFormat(t, y).format(c)
3501
3475
  });
3502
3476
  continue;
3503
3477
  }
3504
- if (Xt(h)) {
3505
- var m = h.children, g = h.value, p = i[g];
3506
- if (!Jn(p))
3507
- throw new Xn(g, "function", o);
3508
- var d = _e(m, t, r, n, i, s), x = p(d.map(function(H) {
3478
+ if (Zt(h)) {
3479
+ var m = h.children, b = h.value, p = i[b];
3480
+ if (!Qn(p))
3481
+ throw new Zn(b, "function", a);
3482
+ var d = Ee(m, t, r, n, i, s), v = p(d.map(function(H) {
3509
3483
  return H.value;
3510
3484
  }));
3511
- Array.isArray(x) || (x = [x]), a.push.apply(a, x.map(function(H) {
3485
+ Array.isArray(v) || (v = [v]), o.push.apply(o, v.map(function(H) {
3512
3486
  return {
3513
3487
  type: typeof H == "string" ? S.literal : S.object,
3514
3488
  value: H
3515
3489
  };
3516
3490
  }));
3517
3491
  }
3518
- if (zt(h)) {
3519
- var b = h.options[c] || h.options.other;
3520
- if (!b)
3521
- throw new bt(h.value, c, Object.keys(h.options), o);
3522
- a.push.apply(a, _e(b.value, t, r, n, i));
3492
+ if (Xt(h)) {
3493
+ var g = h.options[c] || h.options.other;
3494
+ if (!g)
3495
+ throw new yt(h.value, c, Object.keys(h.options), a);
3496
+ o.push.apply(o, Ee(g.value, t, r, n, i));
3523
3497
  continue;
3524
3498
  }
3525
- if (Vt(h)) {
3526
- var b = h.options["=".concat(c)];
3527
- if (!b) {
3499
+ if (Wt(h)) {
3500
+ var g = h.options["=".concat(c)];
3501
+ if (!g) {
3528
3502
  if (!Intl.PluralRules)
3529
- throw new Oe(`Intl.PluralRules is not available in this environment.
3503
+ throw new Ie(`Intl.PluralRules is not available in this environment.
3530
3504
  Try polyfilling it using "@formatjs/intl-pluralrules"
3531
- `, J.MISSING_INTL_API, o);
3505
+ `, q.MISSING_INTL_API, a);
3532
3506
  var w = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3533
- b = h.options[w] || h.options.other;
3507
+ g = h.options[w] || h.options.other;
3534
3508
  }
3535
- if (!b)
3536
- throw new bt(h.value, c, Object.keys(h.options), o);
3537
- a.push.apply(a, _e(b.value, t, r, n, i, c - (h.offset || 0)));
3509
+ if (!g)
3510
+ throw new yt(h.value, c, Object.keys(h.options), a);
3511
+ o.push.apply(o, Ee(g.value, t, r, n, i, c - (h.offset || 0)));
3538
3512
  continue;
3539
3513
  }
3540
3514
  }
3541
- return Zn(a);
3515
+ return qn(o);
3542
3516
  }
3543
- function qn(e, t) {
3544
- return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3545
- return r[n] = E(E({}, e[n]), t[n] || {}), r;
3517
+ function Yn(e, t) {
3518
+ return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3519
+ return r[n] = O(O({}, e[n]), t[n] || {}), r;
3546
3520
  }, {})) : e;
3547
3521
  }
3548
- function Qn(e, t) {
3522
+ function Kn(e, t) {
3549
3523
  return t ? Object.keys(e).reduce(function(r, n) {
3550
- return r[n] = qn(e[n], t[n]), r;
3551
- }, E({}, e)) : e;
3524
+ return r[n] = Yn(e[n], t[n]), r;
3525
+ }, O({}, e)) : e;
3552
3526
  }
3553
- function Ue(e) {
3527
+ function Ge(e) {
3554
3528
  return {
3555
3529
  create: function() {
3556
3530
  return {
@@ -3564,39 +3538,39 @@ function Ue(e) {
3564
3538
  }
3565
3539
  };
3566
3540
  }
3567
- function Yn(e) {
3541
+ function ei(e) {
3568
3542
  return e === void 0 && (e = {
3569
3543
  number: {},
3570
3544
  dateTime: {},
3571
3545
  pluralRules: {}
3572
3546
  }), {
3573
- getNumberFormat: $e(function() {
3547
+ getNumberFormat: De(function() {
3574
3548
  for (var t, r = [], n = 0; n < arguments.length; n++)
3575
3549
  r[n] = arguments[n];
3576
- return new ((t = Intl.NumberFormat).bind.apply(t, Le([void 0], r, !1)))();
3550
+ return new ((t = Intl.NumberFormat).bind.apply(t, Re([void 0], r, !1)))();
3577
3551
  }, {
3578
- cache: Ue(e.number),
3579
- strategy: Re.variadic
3552
+ cache: Ge(e.number),
3553
+ strategy: Ue.variadic
3580
3554
  }),
3581
- getDateTimeFormat: $e(function() {
3555
+ getDateTimeFormat: De(function() {
3582
3556
  for (var t, r = [], n = 0; n < arguments.length; n++)
3583
3557
  r[n] = arguments[n];
3584
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Le([void 0], r, !1)))();
3558
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Re([void 0], r, !1)))();
3585
3559
  }, {
3586
- cache: Ue(e.dateTime),
3587
- strategy: Re.variadic
3560
+ cache: Ge(e.dateTime),
3561
+ strategy: Ue.variadic
3588
3562
  }),
3589
- getPluralRules: $e(function() {
3563
+ getPluralRules: De(function() {
3590
3564
  for (var t, r = [], n = 0; n < arguments.length; n++)
3591
3565
  r[n] = arguments[n];
3592
- return new ((t = Intl.PluralRules).bind.apply(t, Le([void 0], r, !1)))();
3566
+ return new ((t = Intl.PluralRules).bind.apply(t, Re([void 0], r, !1)))();
3593
3567
  }, {
3594
- cache: Ue(e.pluralRules),
3595
- strategy: Re.variadic
3568
+ cache: Ge(e.pluralRules),
3569
+ strategy: Ue.variadic
3596
3570
  })
3597
3571
  };
3598
3572
  }
3599
- var tr = (
3573
+ var nr = (
3600
3574
  /** @class */
3601
3575
  function() {
3602
3576
  function e(t, r, n, i) {
@@ -3615,7 +3589,7 @@ var tr = (
3615
3589
  }, []);
3616
3590
  return h.length <= 1 ? h[0] || "" : h;
3617
3591
  }, this.formatToParts = function(l) {
3618
- return _e(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3592
+ return Ee(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3619
3593
  }, this.resolvedOptions = function() {
3620
3594
  var l;
3621
3595
  return {
@@ -3626,15 +3600,15 @@ var tr = (
3626
3600
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3627
3601
  if (this.message = t, !e.__parse)
3628
3602
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3629
- var o = i || {};
3630
- o.formatters;
3631
- var a = un(o, ["formatters"]);
3632
- this.ast = e.__parse(t, E(E({}, a), { locale: this.resolvedLocale }));
3603
+ var a = i || {};
3604
+ a.formatters;
3605
+ var o = hn(a, ["formatters"]);
3606
+ this.ast = e.__parse(t, O(O({}, o), { locale: this.resolvedLocale }));
3633
3607
  } else
3634
3608
  this.ast = t;
3635
3609
  if (!Array.isArray(this.ast))
3636
3610
  throw new TypeError("A message must be provided as a String or AST.");
3637
- this.formats = Qn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
3611
+ this.formats = Kn(e.formats, n), this.formatters = i && i.formatters || ei(this.formatterCache);
3638
3612
  }
3639
3613
  return Object.defineProperty(e, "defaultLocale", {
3640
3614
  get: function() {
@@ -3647,7 +3621,7 @@ var tr = (
3647
3621
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3648
3622
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3649
3623
  }
3650
- }, e.__parse = Vn, e.formats = {
3624
+ }, e.__parse = Wn, e.formats = {
3651
3625
  number: {
3652
3626
  integer: {
3653
3627
  maximumFractionDigits: 0
@@ -3708,7 +3682,7 @@ var tr = (
3708
3682
  }, e;
3709
3683
  }()
3710
3684
  );
3711
- function Kn(e, t) {
3685
+ function ti(e, t) {
3712
3686
  if (t == null)
3713
3687
  return;
3714
3688
  if (t in e)
@@ -3729,101 +3703,101 @@ function Kn(e, t) {
3729
3703
  n = void 0;
3730
3704
  return n;
3731
3705
  }
3732
- const M = {}, ei = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), rr = (e, t) => {
3706
+ const L = {}, ri = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), ir = (e, t) => {
3733
3707
  if (t == null)
3734
3708
  return;
3735
- if (t in M && e in M[t])
3736
- return M[t][e];
3737
- const r = ue(t);
3709
+ if (t in L && e in L[t])
3710
+ return L[t][e];
3711
+ const r = le(t);
3738
3712
  for (let n = 0; n < r.length; n++) {
3739
- const i = r[n], s = ri(i, e);
3713
+ const i = r[n], s = ii(i, e);
3740
3714
  if (s)
3741
- return ei(e, t, s);
3715
+ return ri(e, t, s);
3742
3716
  }
3743
3717
  };
3744
- let tt;
3745
- const ae = Ae({});
3746
- function ti(e) {
3747
- return tt[e] || null;
3718
+ let nt;
3719
+ const ue = Oe({});
3720
+ function ni(e) {
3721
+ return nt[e] || null;
3748
3722
  }
3749
- function nr(e) {
3750
- return e in tt;
3723
+ function sr(e) {
3724
+ return e in nt;
3751
3725
  }
3752
- function ri(e, t) {
3753
- if (!nr(e))
3726
+ function ii(e, t) {
3727
+ if (!sr(e))
3754
3728
  return null;
3755
- const r = ti(e);
3756
- return Kn(r, t);
3729
+ const r = ni(e);
3730
+ return ti(r, t);
3757
3731
  }
3758
- function ni(e) {
3732
+ function si(e) {
3759
3733
  if (e == null)
3760
3734
  return;
3761
- const t = ue(e);
3735
+ const t = le(e);
3762
3736
  for (let r = 0; r < t.length; r++) {
3763
3737
  const n = t[r];
3764
- if (nr(n))
3738
+ if (sr(n))
3765
3739
  return n;
3766
3740
  }
3767
3741
  }
3768
- function ir(e, ...t) {
3769
- delete M[e], ae.update((r) => (r[e] = an.all([r[e] || {}, ...t]), r));
3742
+ function or(e, ...t) {
3743
+ delete L[e], ue.update((r) => (r[e] = ln.all([r[e] || {}, ...t]), r));
3770
3744
  }
3771
- Q(
3772
- [ae],
3745
+ Y(
3746
+ [ue],
3773
3747
  ([e]) => Object.keys(e)
3774
3748
  );
3775
- ae.subscribe((e) => tt = e);
3749
+ ue.subscribe((e) => nt = e);
3776
3750
  const ve = {};
3777
- function ii(e, t) {
3751
+ function oi(e, t) {
3778
3752
  ve[e].delete(t), ve[e].size === 0 && delete ve[e];
3779
3753
  }
3780
- function sr(e) {
3754
+ function ar(e) {
3781
3755
  return ve[e];
3782
3756
  }
3783
- function si(e) {
3784
- return ue(e).map((t) => {
3785
- const r = sr(t);
3757
+ function ai(e) {
3758
+ return le(e).map((t) => {
3759
+ const r = ar(t);
3786
3760
  return [t, r ? [...r] : []];
3787
3761
  }).filter(([, t]) => t.length > 0);
3788
3762
  }
3789
- function we(e) {
3790
- return e == null ? !1 : ue(e).some(
3763
+ function Se(e) {
3764
+ return e == null ? !1 : le(e).some(
3791
3765
  (t) => {
3792
3766
  var r;
3793
- return (r = sr(t)) == null ? void 0 : r.size;
3767
+ return (r = ar(t)) == null ? void 0 : r.size;
3794
3768
  }
3795
3769
  );
3796
3770
  }
3797
- function oi(e, t) {
3771
+ function ui(e, t) {
3798
3772
  return Promise.all(
3799
- t.map((n) => (ii(e, n), n().then((i) => i.default || i)))
3800
- ).then((n) => ir(e, ...n));
3801
- }
3802
- const ee = {};
3803
- function or(e) {
3804
- if (!we(e))
3805
- return e in ee ? ee[e] : Promise.resolve();
3806
- const t = si(e);
3807
- return ee[e] = Promise.all(
3773
+ t.map((n) => (oi(e, n), n().then((i) => i.default || i)))
3774
+ ).then((n) => or(e, ...n));
3775
+ }
3776
+ const te = {};
3777
+ function ur(e) {
3778
+ if (!Se(e))
3779
+ return e in te ? te[e] : Promise.resolve();
3780
+ const t = ai(e);
3781
+ return te[e] = Promise.all(
3808
3782
  t.map(
3809
- ([r, n]) => oi(r, n)
3783
+ ([r, n]) => ui(r, n)
3810
3784
  )
3811
3785
  ).then(() => {
3812
- if (we(e))
3813
- return or(e);
3814
- delete ee[e];
3815
- }), ee[e];
3786
+ if (Se(e))
3787
+ return ur(e);
3788
+ delete te[e];
3789
+ }), te[e];
3816
3790
  }
3817
- var gt = Object.getOwnPropertySymbols, ai = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, li = (e, t) => {
3791
+ var _t = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, ci = (e, t) => {
3818
3792
  var r = {};
3819
3793
  for (var n in e)
3820
- ai.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3821
- if (e != null && gt)
3822
- for (var n of gt(e))
3823
- t.indexOf(n) < 0 && ui.call(e, n) && (r[n] = e[n]);
3794
+ li.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3795
+ if (e != null && _t)
3796
+ for (var n of _t(e))
3797
+ t.indexOf(n) < 0 && hi.call(e, n) && (r[n] = e[n]);
3824
3798
  return r;
3825
3799
  };
3826
- const hi = {
3800
+ const fi = {
3827
3801
  number: {
3828
3802
  scientific: { notation: "scientific" },
3829
3803
  engineering: { notation: "engineering" },
@@ -3853,183 +3827,183 @@ const hi = {
3853
3827
  }
3854
3828
  }
3855
3829
  };
3856
- function ci({ locale: e, id: t }) {
3830
+ function mi({ locale: e, id: t }) {
3857
3831
  console.warn(
3858
- `[svelte-i18n] The message "${t}" was not found in "${ue(
3832
+ `[svelte-i18n] The message "${t}" was not found in "${le(
3859
3833
  e
3860
- ).join('", "')}".${we(L()) ? `
3834
+ ).join('", "')}".${Se($()) ? `
3861
3835
 
3862
3836
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3863
3837
  );
3864
3838
  }
3865
- const fi = {
3839
+ const di = {
3866
3840
  fallbackLocale: null,
3867
3841
  loadingDelay: 200,
3868
- formats: hi,
3842
+ formats: fi,
3869
3843
  warnOnMissingMessages: !0,
3870
3844
  handleMissingMessage: void 0,
3871
3845
  ignoreTag: !0
3872
- }, te = fi;
3873
- function q() {
3874
- return te;
3846
+ }, re = di;
3847
+ function Q() {
3848
+ return re;
3875
3849
  }
3876
- function mi(e) {
3877
- const t = e, { formats: r } = t, n = li(t, ["formats"]);
3850
+ function pi(e) {
3851
+ const t = e, { formats: r } = t, n = ci(t, ["formats"]);
3878
3852
  let i = e.fallbackLocale;
3879
3853
  if (e.initialLocale)
3880
3854
  try {
3881
- tr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3855
+ nr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3882
3856
  } catch {
3883
3857
  console.warn(
3884
3858
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3885
3859
  );
3886
3860
  }
3887
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ci : console.warn(
3861
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = mi : console.warn(
3888
3862
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3889
- )), Object.assign(te, n, { initialLocale: i }), r && ("number" in r && Object.assign(te.formats.number, r.number), "date" in r && Object.assign(te.formats.date, r.date), "time" in r && Object.assign(te.formats.time, r.time)), U.set(i);
3863
+ )), Object.assign(re, n, { initialLocale: i }), r && ("number" in r && Object.assign(re.formats.number, r.number), "date" in r && Object.assign(re.formats.date, r.date), "time" in r && Object.assign(re.formats.time, r.time)), k.set(i);
3890
3864
  }
3891
- const ke = Ae(!1);
3892
- var di = Object.defineProperty, pi = Object.defineProperties, bi = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, gi = Object.prototype.hasOwnProperty, yi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _i = (e, t) => {
3865
+ const Fe = Oe(!1);
3866
+ var gi = Object.defineProperty, bi = Object.defineProperties, yi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, _i = Object.prototype.hasOwnProperty, Ei = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vi = (e, t) => {
3893
3867
  for (var r in t || (t = {}))
3894
- gi.call(t, r) && _t(e, r, t[r]);
3895
- if (yt)
3896
- for (var r of yt(t))
3897
- yi.call(t, r) && _t(e, r, t[r]);
3868
+ _i.call(t, r) && vt(e, r, t[r]);
3869
+ if (Et)
3870
+ for (var r of Et(t))
3871
+ Ei.call(t, r) && vt(e, r, t[r]);
3898
3872
  return e;
3899
- }, vi = (e, t) => pi(e, bi(t));
3900
- let Qe;
3901
- const He = Ae(null);
3902
- function vt(e) {
3873
+ }, xi = (e, t) => bi(e, yi(t));
3874
+ let Ke;
3875
+ const Be = Oe(null);
3876
+ function xt(e) {
3903
3877
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3904
3878
  }
3905
- function ue(e, t = q().fallbackLocale) {
3906
- const r = vt(e);
3907
- return t ? [.../* @__PURE__ */ new Set([...r, ...vt(t)])] : r;
3879
+ function le(e, t = Q().fallbackLocale) {
3880
+ const r = xt(e);
3881
+ return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
3908
3882
  }
3909
- function L() {
3910
- return Qe ?? void 0;
3883
+ function $() {
3884
+ return Ke ?? void 0;
3911
3885
  }
3912
- He.subscribe((e) => {
3913
- Qe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3886
+ Be.subscribe((e) => {
3887
+ Ke = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3914
3888
  });
3915
- const Ei = (e) => {
3916
- if (e && ni(e) && we(e)) {
3917
- const { loadingDelay: t } = q();
3889
+ const Ti = (e) => {
3890
+ if (e && si(e) && Se(e)) {
3891
+ const { loadingDelay: t } = Q();
3918
3892
  let r;
3919
- return typeof window < "u" && L() != null && t ? r = window.setTimeout(
3920
- () => ke.set(!0),
3893
+ return typeof window < "u" && $() != null && t ? r = window.setTimeout(
3894
+ () => Fe.set(!0),
3921
3895
  t
3922
- ) : ke.set(!0), or(e).then(() => {
3923
- He.set(e);
3896
+ ) : Fe.set(!0), ur(e).then(() => {
3897
+ Be.set(e);
3924
3898
  }).finally(() => {
3925
- clearTimeout(r), ke.set(!1);
3899
+ clearTimeout(r), Fe.set(!1);
3926
3900
  });
3927
3901
  }
3928
- return He.set(e);
3929
- }, U = vi(_i({}, He), {
3930
- set: Ei
3931
- }), Ce = (e) => {
3902
+ return Be.set(e);
3903
+ }, k = xi(vi({}, Be), {
3904
+ set: Ti
3905
+ }), Ne = (e) => {
3932
3906
  const t = /* @__PURE__ */ Object.create(null);
3933
3907
  return (n) => {
3934
3908
  const i = JSON.stringify(n);
3935
3909
  return i in t ? t[i] : t[i] = e(n);
3936
3910
  };
3937
3911
  };
3938
- var xi = Object.defineProperty, Se = Object.getOwnPropertySymbols, ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
3912
+ var wi = Object.defineProperty, Ae = Object.getOwnPropertySymbols, lr = Object.prototype.hasOwnProperty, hr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
3939
3913
  for (var r in t || (t = {}))
3940
- ar.call(t, r) && Et(e, r, t[r]);
3941
- if (Se)
3942
- for (var r of Se(t))
3943
- ur.call(t, r) && Et(e, r, t[r]);
3914
+ lr.call(t, r) && Tt(e, r, t[r]);
3915
+ if (Ae)
3916
+ for (var r of Ae(t))
3917
+ hr.call(t, r) && Tt(e, r, t[r]);
3944
3918
  return e;
3945
- }, Y = (e, t) => {
3919
+ }, K = (e, t) => {
3946
3920
  var r = {};
3947
3921
  for (var n in e)
3948
- ar.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3949
- if (e != null && Se)
3950
- for (var n of Se(e))
3951
- t.indexOf(n) < 0 && ur.call(e, n) && (r[n] = e[n]);
3922
+ lr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3923
+ if (e != null && Ae)
3924
+ for (var n of Ae(e))
3925
+ t.indexOf(n) < 0 && hr.call(e, n) && (r[n] = e[n]);
3952
3926
  return r;
3953
3927
  };
3954
- const se = (e, t) => {
3955
- const { formats: r } = q();
3928
+ const oe = (e, t) => {
3929
+ const { formats: r } = Q();
3956
3930
  if (e in r && t in r[e])
3957
3931
  return r[e][t];
3958
3932
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3959
- }, Ti = Ce(
3933
+ }, Hi = Ne(
3960
3934
  (e) => {
3961
- var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
3935
+ var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
3962
3936
  if (r == null)
3963
3937
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3964
- return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
3938
+ return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
3965
3939
  }
3966
- ), wi = Ce(
3940
+ ), Si = Ne(
3967
3941
  (e) => {
3968
- var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
3942
+ var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
3969
3943
  if (r == null)
3970
3944
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3971
- return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
3945
+ return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
3972
3946
  }
3973
- ), Hi = Ce(
3947
+ ), Bi = Ne(
3974
3948
  (e) => {
3975
- var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
3949
+ var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
3976
3950
  if (r == null)
3977
3951
  throw new Error(
3978
3952
  '[svelte-i18n] A "locale" must be set to format time values'
3979
3953
  );
3980
- return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
3954
+ return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
3981
3955
  }
3982
- ), Si = (e = {}) => {
3956
+ ), Ai = (e = {}) => {
3983
3957
  var t = e, {
3984
- locale: r = L()
3985
- } = t, n = Y(t, [
3958
+ locale: r = $()
3959
+ } = t, n = K(t, [
3986
3960
  "locale"
3987
3961
  ]);
3988
- return Ti(rt({ locale: r }, n));
3989
- }, Bi = (e = {}) => {
3962
+ return Hi(it({ locale: r }, n));
3963
+ }, Pi = (e = {}) => {
3990
3964
  var t = e, {
3991
- locale: r = L()
3992
- } = t, n = Y(t, [
3965
+ locale: r = $()
3966
+ } = t, n = K(t, [
3993
3967
  "locale"
3994
3968
  ]);
3995
- return wi(rt({ locale: r }, n));
3996
- }, Ai = (e = {}) => {
3969
+ return Si(it({ locale: r }, n));
3970
+ }, Oi = (e = {}) => {
3997
3971
  var t = e, {
3998
- locale: r = L()
3999
- } = t, n = Y(t, [
3972
+ locale: r = $()
3973
+ } = t, n = K(t, [
4000
3974
  "locale"
4001
3975
  ]);
4002
- return Hi(rt({ locale: r }, n));
4003
- }, Pi = Ce(
3976
+ return Bi(it({ locale: r }, n));
3977
+ }, Ci = Ne(
4004
3978
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4005
- (e, t = L()) => new tr(e, t, q().formats, {
4006
- ignoreTag: q().ignoreTag
3979
+ (e, t = $()) => new nr(e, t, Q().formats, {
3980
+ ignoreTag: Q().ignoreTag
4007
3981
  })
4008
- ), Oi = (e, t = {}) => {
3982
+ ), Ii = (e, t = {}) => {
4009
3983
  var r, n, i, s;
4010
- let o = t;
4011
- typeof e == "object" && (o = e, e = o.id);
3984
+ let a = t;
3985
+ typeof e == "object" && (a = e, e = a.id);
4012
3986
  const {
4013
- values: a,
4014
- locale: l = L(),
3987
+ values: o,
3988
+ locale: l = $(),
4015
3989
  default: u
4016
- } = o;
3990
+ } = a;
4017
3991
  if (l == null)
4018
3992
  throw new Error(
4019
3993
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4020
3994
  );
4021
- let h = rr(e, l);
3995
+ let h = ir(e, l);
4022
3996
  if (!h)
4023
- h = (s = (i = (n = (r = q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3997
+ h = (s = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4024
3998
  else if (typeof h != "string")
4025
3999
  return console.warn(
4026
4000
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4027
4001
  ), h;
4028
- if (!a)
4002
+ if (!o)
4029
4003
  return h;
4030
4004
  let f = h;
4031
4005
  try {
4032
- f = Pi(h, l).format(a);
4006
+ f = Ci(h, l).format(o);
4033
4007
  } catch (c) {
4034
4008
  c instanceof Error && console.warn(
4035
4009
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4037,18 +4011,18 @@ const se = (e, t) => {
4037
4011
  );
4038
4012
  }
4039
4013
  return f;
4040
- }, Ci = (e, t) => Ai(t).format(e), Ii = (e, t) => Bi(t).format(e), Ni = (e, t) => Si(t).format(e), Mi = (e, t = L()) => rr(e, t), Li = Q([U, ae], () => Oi);
4041
- Q([U], () => Ci);
4042
- Q([U], () => Ii);
4043
- Q([U], () => Ni);
4044
- Q([U, ae], () => Mi);
4045
- function $i(e, t) {
4014
+ }, Ni = (e, t) => Oi(t).format(e), Mi = (e, t) => Pi(t).format(e), Li = (e, t) => Ai(t).format(e), $i = (e, t = $()) => ir(e, t), Ri = Y([k, ue], () => Ii);
4015
+ Y([k], () => Ni);
4016
+ Y([k], () => Mi);
4017
+ Y([k], () => Li);
4018
+ Y([k, ue], () => $i);
4019
+ function Di(e, t) {
4046
4020
  if (e) {
4047
4021
  const r = document.createElement("style");
4048
4022
  r.innerHTML = t, e.appendChild(r);
4049
4023
  }
4050
4024
  }
4051
- function Ri(e, t) {
4025
+ function Ui(e, t) {
4052
4026
  const r = new URL(t);
4053
4027
  fetch(r.href).then((n) => n.text()).then((n) => {
4054
4028
  const i = document.createElement("style");
@@ -4057,7 +4031,7 @@ function Ri(e, t) {
4057
4031
  console.error("There was an error while trying to load client styling from URL", n);
4058
4032
  });
4059
4033
  }
4060
- function Di(e, t, r) {
4034
+ function ki(e, t, r) {
4061
4035
  if (window.emMessageBus) {
4062
4036
  const n = document.createElement("style");
4063
4037
  window.emMessageBus.subscribe(t, (i) => {
@@ -4065,15 +4039,15 @@ function Di(e, t, r) {
4065
4039
  });
4066
4040
  }
4067
4041
  }
4068
- function xt(e, t) {
4069
- ir(e, t);
4042
+ function wt(e, t) {
4043
+ or(e, t);
4070
4044
  }
4071
- function Ui(e) {
4072
- mi({
4045
+ function Gi(e) {
4046
+ pi({
4073
4047
  fallbackLocale: "en"
4074
- }), U.set(e);
4048
+ }), k.set(e);
4075
4049
  }
4076
- const Tt = {
4050
+ const Ht = {
4077
4051
  en: {
4078
4052
  errorGeneralTitle: "Error Occurred",
4079
4053
  errorGeneralText: "Something went wrong",
@@ -4127,74 +4101,74 @@ const Tt = {
4127
4101
  DeclinedByMerchant: "Özür dileriz, ancak işlem satıcı tarafından kapatıldı. Daha fazla yardım için lütfen Müşteri Desteği ile iletişime geçin."
4128
4102
  }
4129
4103
  };
4130
- function ki(e) {
4131
- br(e, "svelte-1dt5wyw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;border-radius:10px;border:1px solid var(--emw--color-grey-105, #E8E9EB);background-color:var(--emw--color-white, #ffffff);padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #3854FF)}.CashierErrorButton:hover{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorContent ui-image img{width:300px}");
4104
+ function Fi(e) {
4105
+ yr(e, "svelte-1dt5wyw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;border-radius:10px;border:1px solid var(--emw--color-grey-105, #E8E9EB);background-color:var(--emw--color-white, #ffffff);padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #3854FF)}.CashierErrorButton:hover{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorContent ui-image img{width:300px}");
4132
4106
  }
4133
- const Gi = (e) => ({}), wt = (e) => ({}), Fi = (e) => ({}), Ht = (e) => ({}), ji = (e) => ({}), St = (e) => ({}), zi = (e) => ({}), Bt = (e) => ({ class: "CashierErrorIcon" });
4134
- function At(e) {
4107
+ const ji = (e) => ({}), St = (e) => ({}), zi = (e) => ({}), Bt = (e) => ({}), Vi = (e) => ({}), At = (e) => ({}), Xi = (e) => ({}), Pt = (e) => ({ class: "CashierErrorIcon" });
4108
+ function Ot(e) {
4135
4109
  let t, r;
4136
4110
  return {
4137
4111
  c() {
4138
- t = A("ui-image"), st(t.src, r = `${/*assetsurl*/
4139
- e[0]}/error-general-icon.png`) || he(t, "src", r), he(t, "width", "300px"), he(t, "alt", "error");
4112
+ t = A("ui-image"), at(t.src, r = `${/*assetsurl*/
4113
+ e[0]}/error-general-icon.png`) || ce(t, "src", r), ce(t, "width", "300px"), ce(t, "alt", "error");
4140
4114
  },
4141
4115
  m(n, i) {
4142
- D(n, t, i);
4116
+ U(n, t, i);
4143
4117
  },
4144
4118
  p(n, i) {
4145
4119
  i & /*assetsurl*/
4146
- 1 && !st(t.src, r = `${/*assetsurl*/
4147
- n[0]}/error-general-icon.png`) && he(t, "src", r);
4120
+ 1 && !at(t.src, r = `${/*assetsurl*/
4121
+ n[0]}/error-general-icon.png`) && ce(t, "src", r);
4148
4122
  },
4149
4123
  d(n) {
4150
- n && C(t);
4124
+ n && I(t);
4151
4125
  }
4152
4126
  };
4153
4127
  }
4154
- function Vi(e) {
4128
+ function Wi(e) {
4155
4129
  let t, r = (
4156
4130
  /*assetsurl*/
4157
- e[0] && At(e)
4131
+ e[0] && Ot(e)
4158
4132
  );
4159
4133
  return {
4160
4134
  c() {
4161
- r && r.c(), t = yr();
4135
+ r && r.c(), t = Er();
4162
4136
  },
4163
4137
  m(n, i) {
4164
- r && r.m(n, i), D(n, t, i);
4138
+ r && r.m(n, i), U(n, t, i);
4165
4139
  },
4166
4140
  p(n, i) {
4167
4141
  /*assetsurl*/
4168
- n[0] ? r ? r.p(n, i) : (r = At(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4142
+ n[0] ? r ? r.p(n, i) : (r = Ot(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4169
4143
  },
4170
4144
  d(n) {
4171
- n && C(t), r && r.d(n);
4145
+ n && I(t), r && r.d(n);
4172
4146
  }
4173
4147
  };
4174
4148
  }
4175
- function Xi(e) {
4149
+ function Zi(e) {
4176
4150
  let t, r = (
4177
4151
  /*$_*/
4178
4152
  e[4]("errorGeneralTitle") + ""
4179
4153
  ), n;
4180
4154
  return {
4181
4155
  c() {
4182
- t = A("span"), n = oe(r), $(t, "class", "CashierErrorTitle");
4156
+ t = A("span"), n = ae(r), R(t, "class", "CashierErrorTitle");
4183
4157
  },
4184
4158
  m(i, s) {
4185
- D(i, t, s), O(t, n);
4159
+ U(i, t, s), C(t, n);
4186
4160
  },
4187
4161
  p(i, s) {
4188
4162
  s & /*$_*/
4189
4163
  16 && r !== (r = /*$_*/
4190
- i[4]("errorGeneralTitle") + "") && et(n, r);
4164
+ i[4]("errorGeneralTitle") + "") && rt(n, r);
4191
4165
  },
4192
4166
  d(i) {
4193
- i && C(t);
4167
+ i && I(t);
4194
4168
  }
4195
4169
  };
4196
4170
  }
4197
- function Wi(e) {
4171
+ function Ji(e) {
4198
4172
  let t, r = (
4199
4173
  /*$_*/
4200
4174
  e[4](`${/*errorcode*/
@@ -4202,279 +4176,279 @@ function Wi(e) {
4202
4176
  ), n;
4203
4177
  return {
4204
4178
  c() {
4205
- t = A("span"), n = oe(r), $(t, "class", "CashierErrorText");
4179
+ t = A("span"), n = ae(r), R(t, "class", "CashierErrorText");
4206
4180
  },
4207
4181
  m(i, s) {
4208
- D(i, t, s), O(t, n);
4182
+ U(i, t, s), C(t, n);
4209
4183
  },
4210
4184
  p(i, s) {
4211
4185
  s & /*$_, errorcode*/
4212
4186
  20 && r !== (r = /*$_*/
4213
4187
  i[4](`${/*errorcode*/
4214
- i[2] || "errorGeneralText"}`) + "") && et(n, r);
4188
+ i[2] || "errorGeneralText"}`) + "") && rt(n, r);
4215
4189
  },
4216
4190
  d(i) {
4217
- i && C(t);
4191
+ i && I(t);
4218
4192
  }
4219
4193
  };
4220
4194
  }
4221
- function Pt(e) {
4195
+ function Ct(e) {
4222
4196
  let t;
4223
4197
  const r = (
4224
4198
  /*#slots*/
4225
4199
  e[12].button
4226
- ), n = me(
4200
+ ), n = de(
4227
4201
  r,
4228
4202
  e,
4229
4203
  /*$$scope*/
4230
4204
  e[11],
4231
- wt
4232
- ), i = n || Zi(e);
4205
+ St
4206
+ ), i = n || qi(e);
4233
4207
  return {
4234
4208
  c() {
4235
4209
  i && i.c();
4236
4210
  },
4237
- m(s, o) {
4238
- i && i.m(s, o), t = !0;
4211
+ m(s, a) {
4212
+ i && i.m(s, a), t = !0;
4239
4213
  },
4240
- p(s, o) {
4241
- n ? n.p && (!t || o & /*$$scope*/
4242
- 2048) && pe(
4214
+ p(s, a) {
4215
+ n ? n.p && (!t || a & /*$$scope*/
4216
+ 2048) && ge(
4243
4217
  n,
4244
4218
  r,
4245
4219
  s,
4246
4220
  /*$$scope*/
4247
4221
  s[11],
4248
- t ? de(
4222
+ t ? pe(
4249
4223
  r,
4250
4224
  /*$$scope*/
4251
4225
  s[11],
4252
- o,
4253
- Gi
4226
+ a,
4227
+ ji
4254
4228
  ) : be(
4255
4229
  /*$$scope*/
4256
4230
  s[11]
4257
4231
  ),
4258
- wt
4259
- ) : i && i.p && (!t || o & /*$_*/
4260
- 16) && i.p(s, t ? o : -1);
4232
+ St
4233
+ ) : i && i.p && (!t || a & /*$_*/
4234
+ 16) && i.p(s, t ? a : -1);
4261
4235
  },
4262
4236
  i(s) {
4263
- t || (N(i, s), t = !0);
4237
+ t || (M(i, s), t = !0);
4264
4238
  },
4265
4239
  o(s) {
4266
- z(i, s), t = !1;
4240
+ V(i, s), t = !1;
4267
4241
  },
4268
4242
  d(s) {
4269
4243
  i && i.d(s);
4270
4244
  }
4271
4245
  };
4272
4246
  }
4273
- function Zi(e) {
4247
+ function qi(e) {
4274
4248
  let t, r, n = (
4275
4249
  /*$_*/
4276
4250
  e[4]("errorGeneralButton") + ""
4277
- ), i, s, o;
4251
+ ), i, s, a;
4278
4252
  return {
4279
4253
  c() {
4280
- t = A("button"), r = A("span"), i = oe(n), $(t, "class", "CashierErrorButton");
4254
+ t = A("button"), r = A("span"), i = ae(n), R(t, "class", "CashierErrorButton");
4281
4255
  },
4282
- m(a, l) {
4283
- D(a, t, l), O(t, r), O(r, i), s || (o = Ge(
4256
+ m(o, l) {
4257
+ U(o, t, l), C(t, r), C(r, i), s || (a = je(
4284
4258
  t,
4285
4259
  "click",
4286
4260
  /*close*/
4287
4261
  e[5]
4288
4262
  ), s = !0);
4289
4263
  },
4290
- p(a, l) {
4264
+ p(o, l) {
4291
4265
  l & /*$_*/
4292
4266
  16 && n !== (n = /*$_*/
4293
- a[4]("errorGeneralButton") + "") && et(i, n);
4267
+ o[4]("errorGeneralButton") + "") && rt(i, n);
4294
4268
  },
4295
- d(a) {
4296
- a && C(t), s = !1, o();
4269
+ d(o) {
4270
+ o && I(t), s = !1, a();
4297
4271
  }
4298
4272
  };
4299
4273
  }
4300
- function Ji(e) {
4301
- let t, r, n, i, s, o;
4302
- const a = (
4274
+ function Qi(e) {
4275
+ let t, r, n, i, s, a;
4276
+ const o = (
4303
4277
  /*#slots*/
4304
4278
  e[12].icon
4305
- ), l = me(
4306
- a,
4279
+ ), l = de(
4280
+ o,
4307
4281
  e,
4308
4282
  /*$$scope*/
4309
4283
  e[11],
4310
- Bt
4311
- ), u = l || Vi(e), h = (
4284
+ Pt
4285
+ ), u = l || Wi(e), h = (
4312
4286
  /*#slots*/
4313
4287
  e[12].title
4314
- ), f = me(
4288
+ ), f = de(
4315
4289
  h,
4316
4290
  e,
4317
4291
  /*$$scope*/
4318
4292
  e[11],
4319
- St
4320
- ), c = f || Xi(e), y = (
4293
+ At
4294
+ ), c = f || Zi(e), y = (
4321
4295
  /*#slots*/
4322
4296
  e[12].text
4323
- ), m = me(
4297
+ ), m = de(
4324
4298
  y,
4325
4299
  e,
4326
4300
  /*$$scope*/
4327
4301
  e[11],
4328
- Ht
4329
- ), g = m || Wi(e);
4302
+ Bt
4303
+ ), b = m || Ji(e);
4330
4304
  let p = (!/*hidebuttons*/
4331
4305
  e[1] || /*hidebuttons*/
4332
- e[1] === "false") && Pt(e);
4306
+ e[1] === "false") && Ct(e);
4333
4307
  return {
4334
4308
  c() {
4335
- t = A("div"), r = A("div"), u && u.c(), n = Ie(), c && c.c(), i = Ie(), g && g.c(), s = Ie(), p && p.c(), $(r, "class", "CashierErrorContent"), $(t, "class", "CashierError");
4309
+ t = A("div"), r = A("div"), u && u.c(), n = Me(), c && c.c(), i = Me(), b && b.c(), s = Me(), p && p.c(), R(r, "class", "CashierErrorContent"), R(t, "class", "CashierError");
4336
4310
  },
4337
- m(d, x) {
4338
- D(d, t, x), O(t, r), u && u.m(r, null), O(r, n), c && c.m(r, null), O(r, i), g && g.m(r, null), O(r, s), p && p.m(r, null), e[13](t), o = !0;
4311
+ m(d, v) {
4312
+ U(d, t, v), C(t, r), u && u.m(r, null), C(r, n), c && c.m(r, null), C(r, i), b && b.m(r, null), C(r, s), p && p.m(r, null), e[13](t), a = !0;
4339
4313
  },
4340
- p(d, [x]) {
4341
- l ? l.p && (!o || x & /*$$scope*/
4342
- 2048) && pe(
4314
+ p(d, [v]) {
4315
+ l ? l.p && (!a || v & /*$$scope*/
4316
+ 2048) && ge(
4343
4317
  l,
4344
- a,
4318
+ o,
4345
4319
  d,
4346
4320
  /*$$scope*/
4347
4321
  d[11],
4348
- o ? de(
4349
- a,
4322
+ a ? pe(
4323
+ o,
4350
4324
  /*$$scope*/
4351
4325
  d[11],
4352
- x,
4353
- zi
4326
+ v,
4327
+ Xi
4354
4328
  ) : be(
4355
4329
  /*$$scope*/
4356
4330
  d[11]
4357
4331
  ),
4358
- Bt
4359
- ) : u && u.p && (!o || x & /*assetsurl*/
4360
- 1) && u.p(d, o ? x : -1), f ? f.p && (!o || x & /*$$scope*/
4361
- 2048) && pe(
4332
+ Pt
4333
+ ) : u && u.p && (!a || v & /*assetsurl*/
4334
+ 1) && u.p(d, a ? v : -1), f ? f.p && (!a || v & /*$$scope*/
4335
+ 2048) && ge(
4362
4336
  f,
4363
4337
  h,
4364
4338
  d,
4365
4339
  /*$$scope*/
4366
4340
  d[11],
4367
- o ? de(
4341
+ a ? pe(
4368
4342
  h,
4369
4343
  /*$$scope*/
4370
4344
  d[11],
4371
- x,
4372
- ji
4345
+ v,
4346
+ Vi
4373
4347
  ) : be(
4374
4348
  /*$$scope*/
4375
4349
  d[11]
4376
4350
  ),
4377
- St
4378
- ) : c && c.p && (!o || x & /*$_*/
4379
- 16) && c.p(d, o ? x : -1), m ? m.p && (!o || x & /*$$scope*/
4380
- 2048) && pe(
4351
+ At
4352
+ ) : c && c.p && (!a || v & /*$_*/
4353
+ 16) && c.p(d, a ? v : -1), m ? m.p && (!a || v & /*$$scope*/
4354
+ 2048) && ge(
4381
4355
  m,
4382
4356
  y,
4383
4357
  d,
4384
4358
  /*$$scope*/
4385
4359
  d[11],
4386
- o ? de(
4360
+ a ? pe(
4387
4361
  y,
4388
4362
  /*$$scope*/
4389
4363
  d[11],
4390
- x,
4391
- Fi
4364
+ v,
4365
+ zi
4392
4366
  ) : be(
4393
4367
  /*$$scope*/
4394
4368
  d[11]
4395
4369
  ),
4396
- Ht
4397
- ) : g && g.p && (!o || x & /*$_, errorcode*/
4398
- 20) && g.p(d, o ? x : -1), !/*hidebuttons*/
4370
+ Bt
4371
+ ) : b && b.p && (!a || v & /*$_, errorcode*/
4372
+ 20) && b.p(d, a ? v : -1), !/*hidebuttons*/
4399
4373
  d[1] || /*hidebuttons*/
4400
- d[1] === "false" ? p ? (p.p(d, x), x & /*hidebuttons*/
4401
- 2 && N(p, 1)) : (p = Pt(d), p.c(), N(p, 1), p.m(r, null)) : p && (Mr(), z(p, 1, 1, () => {
4374
+ d[1] === "false" ? p ? (p.p(d, v), v & /*hidebuttons*/
4375
+ 2 && M(p, 1)) : (p = Ct(d), p.c(), M(p, 1), p.m(r, null)) : p && ($r(), V(p, 1, 1, () => {
4402
4376
  p = null;
4403
- }), Lr());
4377
+ }), Rr());
4404
4378
  },
4405
4379
  i(d) {
4406
- o || (N(u, d), N(c, d), N(g, d), N(p), o = !0);
4380
+ a || (M(u, d), M(c, d), M(b, d), M(p), a = !0);
4407
4381
  },
4408
4382
  o(d) {
4409
- z(u, d), z(c, d), z(g, d), z(p), o = !1;
4383
+ V(u, d), V(c, d), V(b, d), V(p), a = !1;
4410
4384
  },
4411
4385
  d(d) {
4412
- d && C(t), u && u.d(d), c && c.d(d), g && g.d(d), p && p.d(), e[13](null);
4386
+ d && I(t), u && u.d(d), c && c.d(d), b && b.d(d), p && p.d(), e[13](null);
4413
4387
  }
4414
4388
  };
4415
4389
  }
4416
- function qi(e, t, r) {
4390
+ function Yi(e, t, r) {
4417
4391
  let n;
4418
- mr(e, Li, (b) => r(4, n = b));
4419
- let { $$slots: i = {}, $$scope: s } = t, { assetsurl: o = "" } = t, { lang: a = "en" } = t, { hidebuttons: l = "" } = t, { errorcode: u = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: c = "" } = t, { mbsource: y = "" } = t, m;
4420
- const g = () => {
4421
- Ui(a);
4392
+ pr(e, Ri, (g) => r(4, n = g));
4393
+ let { $$slots: i = {}, $$scope: s } = t, { assetsurl: a = "" } = t, { lang: o = "en" } = t, { hidebuttons: l = "" } = t, { errorcode: u = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: c = "" } = t, { mbsource: y = "" } = t, m;
4394
+ const b = () => {
4395
+ Gi(o);
4422
4396
  }, p = () => {
4423
4397
  fetch(c).then((w) => w.json()).then((w) => {
4424
4398
  Object.keys(w).forEach((H) => {
4425
- xt(H, w[H]);
4399
+ wt(H, w[H]);
4426
4400
  });
4427
4401
  }).catch((w) => {
4428
4402
  console.error(w);
4429
4403
  });
4430
4404
  };
4431
- Object.keys(Tt).forEach((b) => {
4432
- xt(b, Tt[b]);
4405
+ Object.keys(Ht).forEach((g) => {
4406
+ wt(g, Ht[g]);
4433
4407
  });
4434
4408
  const d = () => {
4435
4409
  window.postMessage({ type: "ErrorClose" }, window.location.href);
4436
4410
  };
4437
- Ar(() => () => {
4411
+ Or(() => () => {
4438
4412
  });
4439
- function x(b) {
4440
- Fe[b ? "unshift" : "push"](() => {
4441
- m = b, r(3, m);
4413
+ function v(g) {
4414
+ ze[g ? "unshift" : "push"](() => {
4415
+ m = g, r(3, m);
4442
4416
  });
4443
4417
  }
4444
- return e.$$set = (b) => {
4445
- "assetsurl" in b && r(0, o = b.assetsurl), "lang" in b && r(6, a = b.lang), "hidebuttons" in b && r(1, l = b.hidebuttons), "errorcode" in b && r(2, u = b.errorcode), "clientstyling" in b && r(7, h = b.clientstyling), "clientstylingurl" in b && r(8, f = b.clientstylingurl), "translationurl" in b && r(9, c = b.translationurl), "mbsource" in b && r(10, y = b.mbsource), "$$scope" in b && r(11, s = b.$$scope);
4418
+ return e.$$set = (g) => {
4419
+ "assetsurl" in g && r(0, a = g.assetsurl), "lang" in g && r(6, o = g.lang), "hidebuttons" in g && r(1, l = g.hidebuttons), "errorcode" in g && r(2, u = g.errorcode), "clientstyling" in g && r(7, h = g.clientstyling), "clientstylingurl" in g && r(8, f = g.clientstylingurl), "translationurl" in g && r(9, c = g.translationurl), "mbsource" in g && r(10, y = g.mbsource), "$$scope" in g && r(11, s = g.$$scope);
4446
4420
  }, e.$$.update = () => {
4447
4421
  e.$$.dirty & /*lang*/
4448
- 64 && a && g(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4449
- 136 && h && m && $i(m, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4450
- 264 && f && m && Ri(m, f), e.$$.dirty & /*mbsource, customStylingContainer*/
4451
- 1032 && y && m && Di(m, `${y}.Style`), e.$$.dirty & /*translationurl*/
4422
+ 64 && o && b(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4423
+ 136 && h && m && Di(m, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4424
+ 264 && f && m && Ui(m, f), e.$$.dirty & /*mbsource, customStylingContainer*/
4425
+ 1032 && y && m && ki(m, `${y}.Style`), e.$$.dirty & /*translationurl*/
4452
4426
  512 && c && p();
4453
4427
  }, [
4454
- o,
4428
+ a,
4455
4429
  l,
4456
4430
  u,
4457
4431
  m,
4458
4432
  n,
4459
4433
  d,
4460
- a,
4434
+ o,
4461
4435
  h,
4462
4436
  f,
4463
4437
  c,
4464
4438
  y,
4465
4439
  s,
4466
4440
  i,
4467
- x
4441
+ v
4468
4442
  ];
4469
4443
  }
4470
- class lr extends Fr {
4444
+ class cr extends zr {
4471
4445
  constructor(t) {
4472
- super(), kr(
4446
+ super(), Fr(
4473
4447
  this,
4474
4448
  t,
4475
- qi,
4476
- Ji,
4477
- Ct,
4449
+ Yi,
4450
+ Qi,
4451
+ Nt,
4478
4452
  {
4479
4453
  assetsurl: 0,
4480
4454
  lang: 6,
@@ -4485,7 +4459,7 @@ class lr extends Fr {
4485
4459
  translationurl: 9,
4486
4460
  mbsource: 10
4487
4461
  },
4488
- ki
4462
+ Fi
4489
4463
  );
4490
4464
  }
4491
4465
  get assetsurl() {
@@ -4537,69 +4511,65 @@ class lr extends Fr {
4537
4511
  this.$$set({ mbsource: t }), P();
4538
4512
  }
4539
4513
  }
4540
- Gr(lr, { assetsurl: {}, lang: {}, hidebuttons: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4514
+ jr(cr, { assetsurl: {}, lang: {}, hidebuttons: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4541
4515
  const fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4542
4516
  __proto__: null,
4543
- default: lr
4517
+ default: cr
4544
4518
  }, Symbol.toStringTag, { value: "Module" }));
4545
4519
  export {
4546
- U as $,
4547
- et as A,
4548
- he as B,
4549
- oe as C,
4550
- rs as D,
4551
- Fe as E,
4552
- os as F,
4553
- us as G,
4554
- Ki as H,
4555
- st as I,
4556
- ts as J,
4557
- R as K,
4558
- ns as L,
4559
- es as M,
4560
- is as N,
4561
- Li as O,
4562
- $i as P,
4563
- Ri as Q,
4564
- Di as R,
4565
- Fr as S,
4566
- hr as T,
4567
- z as U,
4568
- N as V,
4569
- Mr as W,
4570
- Lr as X,
4571
- me as Y,
4572
- as as Z,
4573
- hs as _,
4574
- ir as a,
4575
- pe as a0,
4576
- be as a1,
4577
- de as a2,
4578
- ss as a3,
4579
- fs as a4,
4580
- Le as b,
4520
+ k as $,
4521
+ is as A,
4522
+ ze as B,
4523
+ us as C,
4524
+ hs as D,
4525
+ ts as E,
4526
+ at as F,
4527
+ ns as G,
4528
+ D as H,
4529
+ ss as I,
4530
+ rs as J,
4531
+ os as K,
4532
+ Ri as L,
4533
+ Di as M,
4534
+ Ui as N,
4535
+ ki as O,
4536
+ fr as P,
4537
+ V as Q,
4538
+ M as R,
4539
+ zr as S,
4540
+ $r as T,
4541
+ Rr as U,
4542
+ de as V,
4543
+ ls as W,
4544
+ ge as X,
4545
+ be as Y,
4546
+ pe as Z,
4547
+ as as _,
4548
+ or as a,
4549
+ fs as a0,
4550
+ jr as b,
4581
4551
  cs as c,
4582
- Pe as d,
4583
- ls as e,
4584
- Gr as f,
4585
- Vr as g,
4586
- kr as h,
4587
- mi as i,
4588
- P as j,
4589
- br as k,
4590
- Te as l,
4591
- C as m,
4552
+ Fr as d,
4553
+ yr as e,
4554
+ P as f,
4555
+ Wr as g,
4556
+ we as h,
4557
+ pi as i,
4558
+ I as j,
4559
+ U as k,
4560
+ C as l,
4561
+ je as m,
4592
4562
  B as n,
4593
- D as o,
4594
- O as p,
4595
- Ge as q,
4596
- Yi as r,
4597
- Ct as s,
4598
- A as t,
4599
- Ie as u,
4600
- $ as v,
4601
- Ae as w,
4602
- mr as x,
4603
- Ar as y,
4604
- yr as z
4563
+ es as o,
4564
+ A as p,
4565
+ Me as q,
4566
+ R as r,
4567
+ Nt as s,
4568
+ pr as t,
4569
+ Or as u,
4570
+ Er as v,
4571
+ Oe as w,
4572
+ rt as x,
4573
+ ce as y,
4574
+ ae as z
4605
4575
  };