@everymatrix/player-account-general-confirmation-modal 0.1.0 → 1.53.10

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