@everymatrix/casino-categories-slider 1.55.0 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoCategoriesSlider-B-t2GyDd.cjs +5 -0
- package/components/{CasinoCategoriesSlider-Bh2LimRX.js → CasinoCategoriesSlider-D-Hw4YqW.js} +645 -667
- package/components/{CasinoCategoriesSlider-CvmaCh1X.js → CasinoCategoriesSlider-DsCJHycs.js} +615 -637
- package/components/{CasinoSlider-D5vmgtQ0.js → CasinoSlider-DPIZ5CnV.js} +80 -80
- package/components/{CasinoSlider-BU4oCDAl.js → CasinoSlider-EFId2L7-.js} +86 -86
- package/components/CasinoSlider-N_Ph_cLc.cjs +1 -0
- package/es2015/casino-categories-slider.cjs +1 -1
- package/es2015/casino-categories-slider.js +1 -1
- package/esnext/casino-categories-slider.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategoriesSlider-CIXhf1Tm.cjs +0 -5
- package/components/CasinoSlider-BXVwqNxp.cjs +0 -1
package/components/{CasinoCategoriesSlider-CvmaCh1X.js → CasinoCategoriesSlider-DsCJHycs.js}
RENAMED
@@ -1,28 +1,28 @@
|
|
1
1
|
function P() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function Ct(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function lt() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
|
-
function
|
10
|
-
e.forEach(
|
9
|
+
function re(e) {
|
10
|
+
e.forEach(Ct);
|
11
11
|
}
|
12
12
|
function Te(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function Mt(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
18
|
let pe;
|
19
|
-
function
|
19
|
+
function cs(e, t) {
|
20
20
|
return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
|
21
21
|
}
|
22
|
-
function
|
22
|
+
function Br(e) {
|
23
23
|
return Object.keys(e).length === 0;
|
24
24
|
}
|
25
|
-
function
|
25
|
+
function Rt(e, ...t) {
|
26
26
|
if (e == null) {
|
27
27
|
for (const n of t)
|
28
28
|
n(void 0);
|
@@ -31,23 +31,23 @@ function Ft(e, ...t) {
|
|
31
31
|
const r = e.subscribe(...t);
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
33
33
|
}
|
34
|
-
function
|
35
|
-
e.$$.on_destroy.push(
|
34
|
+
function Pr(e, t, r) {
|
35
|
+
e.$$.on_destroy.push(Rt(t, r));
|
36
36
|
}
|
37
|
-
function
|
37
|
+
function Nr(e) {
|
38
38
|
return e && Te(e.destroy) ? e.destroy : P;
|
39
39
|
}
|
40
|
-
function
|
40
|
+
function Gt(e, t) {
|
41
41
|
e.appendChild(t);
|
42
42
|
}
|
43
|
-
function
|
44
|
-
const n =
|
43
|
+
function Or(e, t, r) {
|
44
|
+
const n = Lr(e);
|
45
45
|
if (!n.getElementById(t)) {
|
46
46
|
const i = k("style");
|
47
|
-
i.id = t, i.textContent = r,
|
47
|
+
i.id = t, i.textContent = r, Ir(n, i);
|
48
48
|
}
|
49
49
|
}
|
50
|
-
function
|
50
|
+
function Lr(e) {
|
51
51
|
if (!e) return document;
|
52
52
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
53
53
|
return t && /** @type {ShadowRoot} */
|
@@ -56,53 +56,53 @@ function Gr(e) {
|
|
56
56
|
t
|
57
57
|
) : e.ownerDocument;
|
58
58
|
}
|
59
|
-
function
|
60
|
-
return
|
59
|
+
function Ir(e, t) {
|
60
|
+
return Gt(
|
61
61
|
/** @type {Document} */
|
62
62
|
e.head || e,
|
63
63
|
t
|
64
64
|
), t.sheet;
|
65
65
|
}
|
66
|
-
function
|
66
|
+
function ce(e, t, r) {
|
67
67
|
e.insertBefore(t, r || null);
|
68
68
|
}
|
69
|
-
function
|
69
|
+
function ne(e) {
|
70
70
|
e.parentNode && e.parentNode.removeChild(e);
|
71
71
|
}
|
72
|
-
function
|
72
|
+
function fs(e, t) {
|
73
73
|
for (let r = 0; r < e.length; r += 1)
|
74
74
|
e[r] && e[r].d(t);
|
75
75
|
}
|
76
76
|
function k(e) {
|
77
77
|
return document.createElement(e);
|
78
78
|
}
|
79
|
-
function
|
79
|
+
function Ut(e) {
|
80
80
|
return document.createTextNode(e);
|
81
81
|
}
|
82
|
-
function
|
83
|
-
return
|
82
|
+
function ms() {
|
83
|
+
return Ut(" ");
|
84
84
|
}
|
85
|
-
function
|
86
|
-
return
|
85
|
+
function ds() {
|
86
|
+
return Ut("");
|
87
87
|
}
|
88
|
-
function
|
88
|
+
function bs(e, t, r, n) {
|
89
89
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
90
90
|
}
|
91
|
-
function
|
91
|
+
function fe(e, t, r) {
|
92
92
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
93
93
|
}
|
94
94
|
function _(e, t, r) {
|
95
95
|
const n = t.toLowerCase();
|
96
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
96
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : fe(e, t, r);
|
97
97
|
}
|
98
|
-
function
|
98
|
+
function Cr(e) {
|
99
99
|
return Array.from(e.childNodes);
|
100
100
|
}
|
101
|
-
function
|
101
|
+
function ps(e, t) {
|
102
102
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
103
103
|
t);
|
104
104
|
}
|
105
|
-
function
|
105
|
+
function Mr(e) {
|
106
106
|
const t = {};
|
107
107
|
return e.childNodes.forEach(
|
108
108
|
/** @param {Element} node */
|
@@ -111,28 +111,28 @@ function Fr(e) {
|
|
111
111
|
}
|
112
112
|
), t;
|
113
113
|
}
|
114
|
-
let
|
115
|
-
function
|
116
|
-
|
114
|
+
let ue;
|
115
|
+
function ae(e) {
|
116
|
+
ue = e;
|
117
117
|
}
|
118
|
-
function
|
119
|
-
if (!
|
120
|
-
return
|
118
|
+
function Rr() {
|
119
|
+
if (!ue) throw new Error("Function called outside component initialization");
|
120
|
+
return ue;
|
121
121
|
}
|
122
|
-
function
|
123
|
-
|
122
|
+
function Gr(e) {
|
123
|
+
Rr().$$.on_mount.push(e);
|
124
124
|
}
|
125
|
-
const Q = [],
|
125
|
+
const Q = [], $e = [];
|
126
126
|
let Y = [];
|
127
|
-
const
|
128
|
-
let
|
129
|
-
function
|
130
|
-
|
127
|
+
const ct = [], Dt = /* @__PURE__ */ Promise.resolve();
|
128
|
+
let je = !1;
|
129
|
+
function Ft() {
|
130
|
+
je || (je = !0, Dt.then(S));
|
131
131
|
}
|
132
|
-
function
|
133
|
-
return
|
132
|
+
function Ur() {
|
133
|
+
return Ft(), Dt;
|
134
134
|
}
|
135
|
-
function
|
135
|
+
function ke(e) {
|
136
136
|
Y.push(e);
|
137
137
|
}
|
138
138
|
const Ce = /* @__PURE__ */ new Set();
|
@@ -140,49 +140,49 @@ let z = 0;
|
|
140
140
|
function S() {
|
141
141
|
if (z !== 0)
|
142
142
|
return;
|
143
|
-
const e =
|
143
|
+
const e = ue;
|
144
144
|
do {
|
145
145
|
try {
|
146
146
|
for (; z < Q.length; ) {
|
147
147
|
const t = Q[z];
|
148
|
-
z++,
|
148
|
+
z++, ae(t), Dr(t.$$);
|
149
149
|
}
|
150
150
|
} catch (t) {
|
151
151
|
throw Q.length = 0, z = 0, t;
|
152
152
|
}
|
153
|
-
for (
|
153
|
+
for (ae(null), Q.length = 0, z = 0; $e.length; ) $e.pop()();
|
154
154
|
for (let t = 0; t < Y.length; t += 1) {
|
155
155
|
const r = Y[t];
|
156
156
|
Ce.has(r) || (Ce.add(r), r());
|
157
157
|
}
|
158
158
|
Y.length = 0;
|
159
159
|
} while (Q.length);
|
160
|
-
for (;
|
161
|
-
|
162
|
-
|
160
|
+
for (; ct.length; )
|
161
|
+
ct.pop()();
|
162
|
+
je = !1, Ce.clear(), ae(e);
|
163
163
|
}
|
164
|
-
function
|
164
|
+
function Dr(e) {
|
165
165
|
if (e.fragment !== null) {
|
166
|
-
e.update(),
|
166
|
+
e.update(), re(e.before_update);
|
167
167
|
const t = e.dirty;
|
168
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
168
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ke);
|
169
169
|
}
|
170
170
|
}
|
171
|
-
function
|
171
|
+
function Fr(e) {
|
172
172
|
const t = [], r = [];
|
173
173
|
Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
|
174
174
|
}
|
175
|
-
const
|
176
|
-
function
|
177
|
-
e && e.i && (
|
175
|
+
const $r = /* @__PURE__ */ new Set();
|
176
|
+
function $t(e, t) {
|
177
|
+
e && e.i && ($r.delete(e), e.i(t));
|
178
178
|
}
|
179
|
-
function
|
179
|
+
function gs(e) {
|
180
180
|
return e?.length !== void 0 ? e : Array.from(e);
|
181
181
|
}
|
182
|
-
function
|
182
|
+
function ys(e, t) {
|
183
183
|
e.d(1), t.delete(e.key);
|
184
184
|
}
|
185
|
-
function
|
185
|
+
function vs(e, t, r, n, i, s, o, a, h, u, l, m) {
|
186
186
|
let c = e.length, d = s.length, b = c;
|
187
187
|
const y = {};
|
188
188
|
for (; b--; ) y[e[b].key] = b;
|
@@ -194,7 +194,7 @@ function Ss(e, t, r, n, i, s, o, a, h, u, l, m) {
|
|
194
194
|
}
|
195
195
|
const O = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
|
196
196
|
function M(E) {
|
197
|
-
|
197
|
+
$t(E, 1), E.m(a, l), o.set(E.key, E), l = E.first, d--;
|
198
198
|
}
|
199
199
|
for (; c && d; ) {
|
200
200
|
const E = T[d - 1], A = e[c - 1], I = E.key, F = A.key;
|
@@ -205,25 +205,25 @@ function Ss(e, t, r, n, i, s, o, a, h, u, l, m) {
|
|
205
205
|
C.has(E.key) || h(E, o);
|
206
206
|
}
|
207
207
|
for (; d; ) M(T[d - 1]);
|
208
|
-
return
|
208
|
+
return re(w), T;
|
209
209
|
}
|
210
|
-
function
|
210
|
+
function jr(e, t, r) {
|
211
211
|
const { fragment: n, after_update: i } = e.$$;
|
212
|
-
n && n.m(t, r),
|
213
|
-
const s = e.$$.on_mount.map(
|
214
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
215
|
-
}), i.forEach(
|
212
|
+
n && n.m(t, r), ke(() => {
|
213
|
+
const s = e.$$.on_mount.map(Ct).filter(Te);
|
214
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
215
|
+
}), i.forEach(ke);
|
216
216
|
}
|
217
|
-
function
|
217
|
+
function kr(e, t) {
|
218
218
|
const r = e.$$;
|
219
|
-
r.fragment !== null && (
|
219
|
+
r.fragment !== null && (Fr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
220
220
|
}
|
221
|
-
function
|
222
|
-
e.$$.dirty[0] === -1 && (Q.push(e),
|
221
|
+
function Vr(e, t) {
|
222
|
+
e.$$.dirty[0] === -1 && (Q.push(e), Ft(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
223
223
|
}
|
224
|
-
function
|
225
|
-
const h =
|
226
|
-
|
224
|
+
function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
225
|
+
const h = ue;
|
226
|
+
ae(e);
|
227
227
|
const u = e.$$ = {
|
228
228
|
fragment: null,
|
229
229
|
ctx: [],
|
@@ -231,7 +231,7 @@ function Yr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
231
231
|
props: s,
|
232
232
|
update: P,
|
233
233
|
not_equal: i,
|
234
|
-
bound:
|
234
|
+
bound: lt(),
|
235
235
|
// lifecycle
|
236
236
|
on_mount: [],
|
237
237
|
on_destroy: [],
|
@@ -240,7 +240,7 @@ function Yr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
240
240
|
after_update: [],
|
241
241
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
242
242
|
// everything else
|
243
|
-
callbacks:
|
243
|
+
callbacks: lt(),
|
244
244
|
dirty: a,
|
245
245
|
skip_bound: !1,
|
246
246
|
root: t.target || h.$$.root
|
@@ -249,19 +249,19 @@ function Yr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
249
249
|
let l = !1;
|
250
250
|
if (u.ctx = r ? r(e, t.props || {}, (m, c, ...d) => {
|
251
251
|
const b = d.length ? d[0] : c;
|
252
|
-
return u.ctx && i(u.ctx[m], u.ctx[m] = b) && (!u.skip_bound && u.bound[m] && u.bound[m](b), l &&
|
253
|
-
}) : [], u.update(), l = !0,
|
252
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = b) && (!u.skip_bound && u.bound[m] && u.bound[m](b), l && Vr(e, m)), c;
|
253
|
+
}) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
254
254
|
if (t.hydrate) {
|
255
|
-
const m =
|
256
|
-
u.fragment && u.fragment.l(m), m.forEach(
|
255
|
+
const m = Cr(t.target);
|
256
|
+
u.fragment && u.fragment.l(m), m.forEach(ne);
|
257
257
|
} else
|
258
258
|
u.fragment && u.fragment.c();
|
259
|
-
t.intro &&
|
259
|
+
t.intro && $t(e.$$.fragment), jr(e, t.target, t.anchor), S();
|
260
260
|
}
|
261
|
-
|
261
|
+
ae(h);
|
262
262
|
}
|
263
|
-
let
|
264
|
-
typeof HTMLElement == "function" && (
|
263
|
+
let jt;
|
264
|
+
typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
265
265
|
/** The Svelte component constructor */
|
266
266
|
$$ctor;
|
267
267
|
/** Slots */
|
@@ -303,24 +303,24 @@ typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
303
303
|
let s;
|
304
304
|
return {
|
305
305
|
c: function() {
|
306
|
-
s = k("slot"), i !== "default" &&
|
306
|
+
s = k("slot"), i !== "default" && fe(s, "name", i);
|
307
307
|
},
|
308
308
|
/**
|
309
309
|
* @param {HTMLElement} target
|
310
310
|
* @param {HTMLElement} [anchor]
|
311
311
|
*/
|
312
312
|
m: function(h, u) {
|
313
|
-
|
313
|
+
ce(h, s, u);
|
314
314
|
},
|
315
315
|
d: function(h) {
|
316
|
-
h &&
|
316
|
+
h && ne(s);
|
317
317
|
}
|
318
318
|
};
|
319
319
|
};
|
320
320
|
};
|
321
321
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
322
322
|
return;
|
323
|
-
const t = {}, r =
|
323
|
+
const t = {}, r = Mr(this);
|
324
324
|
for (const i of this.$$s)
|
325
325
|
i in r && (t[i] = [e(i)]);
|
326
326
|
for (const i of this.attributes) {
|
@@ -407,8 +407,8 @@ function ve(e, t, r, n) {
|
|
407
407
|
return t;
|
408
408
|
}
|
409
409
|
}
|
410
|
-
function
|
411
|
-
let o = class extends
|
410
|
+
function Wr(e, t, r, n, i, s) {
|
411
|
+
let o = class extends jt {
|
412
412
|
constructor() {
|
413
413
|
super(e, r, i), this.$$p_d = t;
|
414
414
|
}
|
@@ -436,7 +436,7 @@ function qr(e, t, r, n, i, s) {
|
|
436
436
|
}), e.element = /** @type {any} */
|
437
437
|
o, o;
|
438
438
|
}
|
439
|
-
class
|
439
|
+
class zr {
|
440
440
|
/**
|
441
441
|
* ### PRIVATE API
|
442
442
|
*
|
@@ -455,7 +455,7 @@ class Jr {
|
|
455
455
|
$$set = void 0;
|
456
456
|
/** @returns {void} */
|
457
457
|
$destroy() {
|
458
|
-
|
458
|
+
kr(this, 1), this.$destroy = P;
|
459
459
|
}
|
460
460
|
/**
|
461
461
|
* @template {Extract<keyof Events, string>} K
|
@@ -477,22 +477,22 @@ class Jr {
|
|
477
477
|
* @returns {void}
|
478
478
|
*/
|
479
479
|
$set(t) {
|
480
|
-
this.$$set && !
|
480
|
+
this.$$set && !Br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
481
481
|
}
|
482
482
|
}
|
483
|
-
const
|
484
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
485
|
-
var
|
486
|
-
return
|
483
|
+
const Zr = "4";
|
484
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Zr);
|
485
|
+
var Ve = function(e, t) {
|
486
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
487
487
|
r.__proto__ = n;
|
488
488
|
} || function(r, n) {
|
489
489
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
490
|
-
},
|
490
|
+
}, Ve(e, t);
|
491
491
|
};
|
492
492
|
function U(e, t) {
|
493
493
|
if (typeof t != "function" && t !== null)
|
494
494
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
495
|
-
|
495
|
+
Ve(e, t);
|
496
496
|
function r() {
|
497
497
|
this.constructor = e;
|
498
498
|
}
|
@@ -507,7 +507,7 @@ var v = function() {
|
|
507
507
|
return t;
|
508
508
|
}, v.apply(this, arguments);
|
509
509
|
};
|
510
|
-
function
|
510
|
+
function Qr(e, t) {
|
511
511
|
var r = {};
|
512
512
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
513
513
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -515,7 +515,7 @@ function en(e, t) {
|
|
515
515
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
516
516
|
return r;
|
517
517
|
}
|
518
|
-
function
|
518
|
+
function Xe(e) {
|
519
519
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
520
520
|
if (r) return r.call(e);
|
521
521
|
if (e && typeof e.length == "number") return {
|
@@ -525,7 +525,7 @@ function We(e) {
|
|
525
525
|
};
|
526
526
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
527
527
|
}
|
528
|
-
function
|
528
|
+
function We(e, t) {
|
529
529
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
530
530
|
if (!r) return e;
|
531
531
|
var n = r.call(e), i, s = [], o;
|
@@ -550,13 +550,13 @@ function q(e, t, r) {
|
|
550
550
|
function G(e) {
|
551
551
|
return typeof e == "function";
|
552
552
|
}
|
553
|
-
function
|
553
|
+
function kt(e) {
|
554
554
|
var t = function(n) {
|
555
555
|
Error.call(n), n.stack = new Error().stack;
|
556
556
|
}, r = e(t);
|
557
557
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
558
558
|
}
|
559
|
-
var Me =
|
559
|
+
var Me = kt(function(e) {
|
560
560
|
return function(r) {
|
561
561
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
562
562
|
` + r.map(function(n, i) {
|
@@ -565,7 +565,7 @@ var Me = zt(function(e) {
|
|
565
565
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
566
566
|
};
|
567
567
|
});
|
568
|
-
function
|
568
|
+
function ze(e, t) {
|
569
569
|
if (e) {
|
570
570
|
var r = e.indexOf(t);
|
571
571
|
0 <= r && e.splice(r, 1);
|
@@ -583,7 +583,7 @@ var He = function() {
|
|
583
583
|
if (o)
|
584
584
|
if (this._parentage = null, Array.isArray(o))
|
585
585
|
try {
|
586
|
-
for (var a =
|
586
|
+
for (var a = Xe(o), h = a.next(); !h.done; h = a.next()) {
|
587
587
|
var u = h.value;
|
588
588
|
u.remove(this);
|
589
589
|
}
|
@@ -609,12 +609,12 @@ var He = function() {
|
|
609
609
|
if (m) {
|
610
610
|
this._finalizers = null;
|
611
611
|
try {
|
612
|
-
for (var c =
|
612
|
+
for (var c = Xe(m), d = c.next(); !d.done; d = c.next()) {
|
613
613
|
var b = d.value;
|
614
614
|
try {
|
615
|
-
|
615
|
+
ft(b);
|
616
616
|
} catch (y) {
|
617
|
-
s = s ?? [], y instanceof Me ? s = q(q([],
|
617
|
+
s = s ?? [], y instanceof Me ? s = q(q([], We(s)), We(y.errors)) : s.push(y);
|
618
618
|
}
|
619
619
|
}
|
620
620
|
} catch (y) {
|
@@ -634,7 +634,7 @@ var He = function() {
|
|
634
634
|
var r;
|
635
635
|
if (t && t !== this)
|
636
636
|
if (this.closed)
|
637
|
-
|
637
|
+
ft(t);
|
638
638
|
else {
|
639
639
|
if (t instanceof e) {
|
640
640
|
if (t.closed || t._hasParent(this))
|
@@ -651,56 +651,52 @@ var He = function() {
|
|
651
651
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
652
652
|
}, e.prototype._removeParent = function(t) {
|
653
653
|
var r = this._parentage;
|
654
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
654
|
+
r === t ? this._parentage = null : Array.isArray(r) && ze(r, t);
|
655
655
|
}, e.prototype.remove = function(t) {
|
656
656
|
var r = this._finalizers;
|
657
|
-
r &&
|
657
|
+
r && ze(r, t), t instanceof e && t._removeParent(this);
|
658
658
|
}, e.EMPTY = function() {
|
659
659
|
var t = new e();
|
660
660
|
return t.closed = !0, t;
|
661
661
|
}(), e;
|
662
|
-
}(),
|
663
|
-
function
|
662
|
+
}(), Vt = He.EMPTY;
|
663
|
+
function Xt(e) {
|
664
664
|
return e instanceof He || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
|
665
665
|
}
|
666
|
-
function
|
666
|
+
function ft(e) {
|
667
667
|
G(e) ? e() : e.unsubscribe();
|
668
668
|
}
|
669
|
-
var
|
670
|
-
|
671
|
-
|
672
|
-
Promise: void 0,
|
673
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
674
|
-
useDeprecatedNextContext: !1
|
675
|
-
}, tn = {
|
669
|
+
var Yr = {
|
670
|
+
Promise: void 0
|
671
|
+
}, qr = {
|
676
672
|
setTimeout: function(e, t) {
|
677
673
|
for (var r = [], n = 2; n < arguments.length; n++)
|
678
674
|
r[n - 2] = arguments[n];
|
679
|
-
return setTimeout.apply(void 0, q([e, t],
|
675
|
+
return setTimeout.apply(void 0, q([e, t], We(r)));
|
680
676
|
},
|
681
677
|
clearTimeout: function(e) {
|
682
678
|
return clearTimeout(e);
|
683
679
|
},
|
684
680
|
delegate: void 0
|
685
681
|
};
|
686
|
-
function
|
687
|
-
|
682
|
+
function Jr(e) {
|
683
|
+
qr.setTimeout(function() {
|
688
684
|
throw e;
|
689
685
|
});
|
690
686
|
}
|
691
|
-
function
|
687
|
+
function mt() {
|
692
688
|
}
|
693
689
|
function _e(e) {
|
694
690
|
e();
|
695
691
|
}
|
696
|
-
var
|
692
|
+
var Wt = function(e) {
|
697
693
|
U(t, e);
|
698
694
|
function t(r) {
|
699
695
|
var n = e.call(this) || this;
|
700
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
696
|
+
return n.isStopped = !1, r ? (n.destination = r, Xt(r) && r.add(n)) : n.destination = tn, n;
|
701
697
|
}
|
702
698
|
return t.create = function(r, n, i) {
|
703
|
-
return new
|
699
|
+
return new Ze(r, n, i);
|
704
700
|
}, t.prototype.next = function(r) {
|
705
701
|
this.isStopped || this._next(r);
|
706
702
|
}, t.prototype.error = function(r) {
|
@@ -724,11 +720,7 @@ var qt = function(e) {
|
|
724
720
|
this.unsubscribe();
|
725
721
|
}
|
726
722
|
}, t;
|
727
|
-
}(He),
|
728
|
-
function Re(e, t) {
|
729
|
-
return nn.call(e, t);
|
730
|
-
}
|
731
|
-
var sn = function() {
|
723
|
+
}(He), Kr = function() {
|
732
724
|
function e(t) {
|
733
725
|
this.partialObserver = t;
|
734
726
|
}
|
@@ -759,55 +751,43 @@ var sn = function() {
|
|
759
751
|
ge(r);
|
760
752
|
}
|
761
753
|
}, e;
|
762
|
-
}(),
|
754
|
+
}(), Ze = function(e) {
|
763
755
|
U(t, e);
|
764
756
|
function t(r, n, i) {
|
765
757
|
var s = e.call(this) || this, o;
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
};
|
772
|
-
else {
|
773
|
-
var a;
|
774
|
-
s && Yt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
775
|
-
return s.unsubscribe();
|
776
|
-
}, o = {
|
777
|
-
next: r.next && Re(r.next, a),
|
778
|
-
error: r.error && Re(r.error, a),
|
779
|
-
complete: r.complete && Re(r.complete, a)
|
780
|
-
}) : o = r;
|
781
|
-
}
|
782
|
-
return s.destination = new sn(o), s;
|
758
|
+
return G(r) || !r ? o = {
|
759
|
+
next: r ?? void 0,
|
760
|
+
error: n ?? void 0,
|
761
|
+
complete: i ?? void 0
|
762
|
+
} : o = r, s.destination = new Kr(o), s;
|
783
763
|
}
|
784
764
|
return t;
|
785
|
-
}(
|
765
|
+
}(Wt);
|
786
766
|
function ge(e) {
|
787
|
-
|
767
|
+
Jr(e);
|
788
768
|
}
|
789
|
-
function
|
769
|
+
function en(e) {
|
790
770
|
throw e;
|
791
771
|
}
|
792
|
-
var
|
772
|
+
var tn = {
|
793
773
|
closed: !0,
|
794
|
-
next:
|
795
|
-
error:
|
796
|
-
complete:
|
797
|
-
},
|
774
|
+
next: mt,
|
775
|
+
error: en,
|
776
|
+
complete: mt
|
777
|
+
}, rn = function() {
|
798
778
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
799
779
|
}();
|
800
|
-
function
|
780
|
+
function nn(e) {
|
801
781
|
return e;
|
802
782
|
}
|
803
|
-
function
|
804
|
-
return e.length === 0 ?
|
783
|
+
function sn(e) {
|
784
|
+
return e.length === 0 ? nn : e.length === 1 ? e[0] : function(r) {
|
805
785
|
return e.reduce(function(n, i) {
|
806
786
|
return i(n);
|
807
787
|
}, r);
|
808
788
|
};
|
809
789
|
}
|
810
|
-
var
|
790
|
+
var dt = function() {
|
811
791
|
function e(t) {
|
812
792
|
t && (this._subscribe = t);
|
813
793
|
}
|
@@ -815,7 +795,7 @@ var yt = function() {
|
|
815
795
|
var r = new e();
|
816
796
|
return r.source = this, r.operator = t, r;
|
817
797
|
}, e.prototype.subscribe = function(t, r, n) {
|
818
|
-
var i = this, s =
|
798
|
+
var i = this, s = an(t) ? t : new Ze(t, r, n);
|
819
799
|
return _e(function() {
|
820
800
|
var o = i, a = o.operator, h = o.source;
|
821
801
|
s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
|
@@ -828,8 +808,8 @@ var yt = function() {
|
|
828
808
|
}
|
829
809
|
}, e.prototype.forEach = function(t, r) {
|
830
810
|
var n = this;
|
831
|
-
return r =
|
832
|
-
var o = new
|
811
|
+
return r = bt(r), new r(function(i, s) {
|
812
|
+
var o = new Ze({
|
833
813
|
next: function(a) {
|
834
814
|
try {
|
835
815
|
t(a);
|
@@ -845,15 +825,15 @@ var yt = function() {
|
|
845
825
|
}, e.prototype._subscribe = function(t) {
|
846
826
|
var r;
|
847
827
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
848
|
-
}, e.prototype[
|
828
|
+
}, e.prototype[rn] = function() {
|
849
829
|
return this;
|
850
830
|
}, e.prototype.pipe = function() {
|
851
831
|
for (var t = [], r = 0; r < arguments.length; r++)
|
852
832
|
t[r] = arguments[r];
|
853
|
-
return
|
833
|
+
return sn(t)(this);
|
854
834
|
}, e.prototype.toPromise = function(t) {
|
855
835
|
var r = this;
|
856
|
-
return t =
|
836
|
+
return t = bt(t), new t(function(n, i) {
|
857
837
|
var s;
|
858
838
|
r.subscribe(function(o) {
|
859
839
|
return s = o;
|
@@ -867,32 +847,32 @@ var yt = function() {
|
|
867
847
|
return new e(t);
|
868
848
|
}, e;
|
869
849
|
}();
|
870
|
-
function
|
850
|
+
function bt(e) {
|
871
851
|
var t;
|
872
|
-
return (t = e ??
|
852
|
+
return (t = e ?? Yr.Promise) !== null && t !== void 0 ? t : Promise;
|
873
853
|
}
|
874
|
-
function
|
854
|
+
function on(e) {
|
875
855
|
return e && G(e.next) && G(e.error) && G(e.complete);
|
876
856
|
}
|
877
|
-
function
|
878
|
-
return e && e instanceof
|
857
|
+
function an(e) {
|
858
|
+
return e && e instanceof Wt || on(e) && Xt(e);
|
879
859
|
}
|
880
|
-
var
|
860
|
+
var un = kt(function(e) {
|
881
861
|
return function() {
|
882
862
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
883
863
|
};
|
884
|
-
}),
|
864
|
+
}), zt = function(e) {
|
885
865
|
U(t, e);
|
886
866
|
function t() {
|
887
867
|
var r = e.call(this) || this;
|
888
868
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
889
869
|
}
|
890
870
|
return t.prototype.lift = function(r) {
|
891
|
-
var n = new
|
871
|
+
var n = new pt(this, this);
|
892
872
|
return n.operator = r, n;
|
893
873
|
}, t.prototype._throwIfClosed = function() {
|
894
874
|
if (this.closed)
|
895
|
-
throw new
|
875
|
+
throw new un();
|
896
876
|
}, t.prototype.next = function(r) {
|
897
877
|
var n = this;
|
898
878
|
_e(function() {
|
@@ -900,7 +880,7 @@ var mn = zt(function(e) {
|
|
900
880
|
if (n._throwIfClosed(), !n.isStopped) {
|
901
881
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
902
882
|
try {
|
903
|
-
for (var o =
|
883
|
+
for (var o = Xe(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
904
884
|
var h = a.value;
|
905
885
|
h.next(r);
|
906
886
|
}
|
@@ -948,19 +928,19 @@ var mn = zt(function(e) {
|
|
948
928
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
949
929
|
}, t.prototype._innerSubscribe = function(r) {
|
950
930
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
951
|
-
return s || o ?
|
952
|
-
n.currentObservers = null,
|
931
|
+
return s || o ? Vt : (this.currentObservers = null, a.push(r), new He(function() {
|
932
|
+
n.currentObservers = null, ze(a, r);
|
953
933
|
}));
|
954
934
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
955
935
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
956
936
|
i ? r.error(s) : o && r.complete();
|
957
937
|
}, t.prototype.asObservable = function() {
|
958
|
-
var r = new
|
938
|
+
var r = new dt();
|
959
939
|
return r.source = this, r;
|
960
940
|
}, t.create = function(r, n) {
|
961
|
-
return new
|
941
|
+
return new pt(r, n);
|
962
942
|
}, t;
|
963
|
-
}(
|
943
|
+
}(dt), pt = function(e) {
|
964
944
|
U(t, e);
|
965
945
|
function t(r, n) {
|
966
946
|
var i = e.call(this) || this;
|
@@ -977,17 +957,17 @@ var mn = zt(function(e) {
|
|
977
957
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
978
958
|
}, t.prototype._subscribe = function(r) {
|
979
959
|
var n, i;
|
980
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
960
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Vt;
|
981
961
|
}, t;
|
982
|
-
}(
|
962
|
+
}(zt), Zt = {
|
983
963
|
now: function() {
|
984
|
-
return (
|
964
|
+
return (Zt.delegate || Date).now();
|
985
965
|
},
|
986
966
|
delegate: void 0
|
987
|
-
},
|
967
|
+
}, hn = function(e) {
|
988
968
|
U(t, e);
|
989
969
|
function t(r, n, i) {
|
990
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
970
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Zt);
|
991
971
|
var s = e.call(this) || this;
|
992
972
|
return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
|
993
973
|
}
|
@@ -1007,15 +987,15 @@ var mn = zt(function(e) {
|
|
1007
987
|
u && s.splice(0, u + 1);
|
1008
988
|
}
|
1009
989
|
}, t;
|
1010
|
-
}(
|
1011
|
-
const
|
1012
|
-
if (
|
1013
|
-
const r = new
|
1014
|
-
|
990
|
+
}(zt);
|
991
|
+
const gt = [], yt = {}, ln = (e, t = 0) => {
|
992
|
+
if (gt.indexOf(e) == -1) {
|
993
|
+
const r = new hn(t);
|
994
|
+
yt[e] = r, gt.push(e);
|
1015
995
|
}
|
1016
|
-
return
|
996
|
+
return yt[e];
|
1017
997
|
}, Z = [];
|
1018
|
-
function
|
998
|
+
function cn(e, t) {
|
1019
999
|
return {
|
1020
1000
|
subscribe: Ae(e, t).subscribe
|
1021
1001
|
};
|
@@ -1024,7 +1004,7 @@ function Ae(e, t = P) {
|
|
1024
1004
|
let r;
|
1025
1005
|
const n = /* @__PURE__ */ new Set();
|
1026
1006
|
function i(a) {
|
1027
|
-
if (
|
1007
|
+
if (Mt(e, a) && (e = a, r)) {
|
1028
1008
|
const h = !Z.length;
|
1029
1009
|
for (const u of n)
|
1030
1010
|
u[1](), Z.push(u, e);
|
@@ -1046,12 +1026,12 @@ function Ae(e, t = P) {
|
|
1046
1026
|
}
|
1047
1027
|
return { set: i, update: s, subscribe: o };
|
1048
1028
|
}
|
1049
|
-
function
|
1029
|
+
function ie(e, t, r) {
|
1050
1030
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
1051
1031
|
if (!i.every(Boolean))
|
1052
1032
|
throw new Error("derived() expects stores as input, got a falsy value");
|
1053
1033
|
const s = t.length < 2;
|
1054
|
-
return
|
1034
|
+
return cn(r, (o, a) => {
|
1055
1035
|
let h = !1;
|
1056
1036
|
const u = [];
|
1057
1037
|
let l = 0, m = P;
|
@@ -1062,7 +1042,7 @@ function se(e, t, r) {
|
|
1062
1042
|
const b = t(n ? u[0] : u, o, a);
|
1063
1043
|
s ? o(b) : m = Te(b) ? b : P;
|
1064
1044
|
}, d = i.map(
|
1065
|
-
(b, y) =>
|
1045
|
+
(b, y) => Rt(
|
1066
1046
|
b,
|
1067
1047
|
(T) => {
|
1068
1048
|
u[y] = T, l &= ~(1 << y), h && c();
|
@@ -1073,134 +1053,132 @@ function se(e, t, r) {
|
|
1073
1053
|
)
|
1074
1054
|
);
|
1075
1055
|
return h = !0, c(), function() {
|
1076
|
-
|
1056
|
+
re(d), m(), h = !1;
|
1077
1057
|
};
|
1078
1058
|
});
|
1079
1059
|
}
|
1080
|
-
function
|
1060
|
+
function fn(e) {
|
1081
1061
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1082
1062
|
}
|
1083
|
-
var
|
1084
|
-
return
|
1063
|
+
var mn = function(t) {
|
1064
|
+
return dn(t) && !bn(t);
|
1085
1065
|
};
|
1086
|
-
function
|
1066
|
+
function dn(e) {
|
1087
1067
|
return !!e && typeof e == "object";
|
1088
1068
|
}
|
1089
|
-
function
|
1069
|
+
function bn(e) {
|
1090
1070
|
var t = Object.prototype.toString.call(e);
|
1091
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
1071
|
+
return t === "[object RegExp]" || t === "[object Date]" || yn(e);
|
1092
1072
|
}
|
1093
|
-
var
|
1094
|
-
function
|
1095
|
-
return e.$$typeof ===
|
1073
|
+
var pn = typeof Symbol == "function" && Symbol.for, gn = pn ? Symbol.for("react.element") : 60103;
|
1074
|
+
function yn(e) {
|
1075
|
+
return e.$$typeof === gn;
|
1096
1076
|
}
|
1097
|
-
function
|
1077
|
+
function vn(e) {
|
1098
1078
|
return Array.isArray(e) ? [] : {};
|
1099
1079
|
}
|
1100
|
-
function
|
1101
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
1080
|
+
function he(e, t) {
|
1081
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? J(vn(e), e, t) : e;
|
1102
1082
|
}
|
1103
|
-
function
|
1083
|
+
function _n(e, t, r) {
|
1104
1084
|
return e.concat(t).map(function(n) {
|
1105
|
-
return
|
1085
|
+
return he(n, r);
|
1106
1086
|
});
|
1107
1087
|
}
|
1108
|
-
function
|
1088
|
+
function En(e, t) {
|
1109
1089
|
if (!t.customMerge)
|
1110
|
-
return
|
1090
|
+
return J;
|
1111
1091
|
var r = t.customMerge(e);
|
1112
|
-
return typeof r == "function" ? r :
|
1092
|
+
return typeof r == "function" ? r : J;
|
1113
1093
|
}
|
1114
|
-
function
|
1094
|
+
function xn(e) {
|
1115
1095
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
1116
1096
|
return Object.propertyIsEnumerable.call(e, t);
|
1117
1097
|
}) : [];
|
1118
1098
|
}
|
1119
|
-
function
|
1120
|
-
return Object.keys(e).concat(
|
1099
|
+
function vt(e) {
|
1100
|
+
return Object.keys(e).concat(xn(e));
|
1121
1101
|
}
|
1122
|
-
function
|
1102
|
+
function Qt(e, t) {
|
1123
1103
|
try {
|
1124
1104
|
return t in e;
|
1125
1105
|
} catch {
|
1126
1106
|
return !1;
|
1127
1107
|
}
|
1128
1108
|
}
|
1129
|
-
function
|
1130
|
-
return
|
1109
|
+
function Sn(e, t) {
|
1110
|
+
return Qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
1131
1111
|
}
|
1132
|
-
function
|
1112
|
+
function wn(e, t, r) {
|
1133
1113
|
var n = {};
|
1134
|
-
return r.isMergeableObject(e) &&
|
1135
|
-
n[i] =
|
1136
|
-
}),
|
1137
|
-
|
1114
|
+
return r.isMergeableObject(e) && vt(e).forEach(function(i) {
|
1115
|
+
n[i] = he(e[i], r);
|
1116
|
+
}), vt(t).forEach(function(i) {
|
1117
|
+
Sn(e, i) || (Qt(e, i) && r.isMergeableObject(t[i]) ? n[i] = En(i, r)(e[i], t[i], r) : n[i] = he(t[i], r));
|
1138
1118
|
}), n;
|
1139
1119
|
}
|
1140
|
-
function
|
1141
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
1120
|
+
function J(e, t, r) {
|
1121
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || _n, r.isMergeableObject = r.isMergeableObject || mn, r.cloneUnlessOtherwiseSpecified = he;
|
1142
1122
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
1143
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
1123
|
+
return s ? n ? r.arrayMerge(e, t, r) : wn(e, t, r) : he(t, r);
|
1144
1124
|
}
|
1145
|
-
|
1125
|
+
J.all = function(t, r) {
|
1146
1126
|
if (!Array.isArray(t))
|
1147
1127
|
throw new Error("first argument should be an array");
|
1148
1128
|
return t.reduce(function(n, i) {
|
1149
|
-
return
|
1129
|
+
return J(n, i, r);
|
1150
1130
|
}, {});
|
1151
1131
|
};
|
1152
|
-
var
|
1153
|
-
const
|
1154
|
-
function
|
1155
|
-
var r = t && t.cache ? t.cache :
|
1132
|
+
var Tn = J, Hn = Tn;
|
1133
|
+
const An = /* @__PURE__ */ fn(Hn);
|
1134
|
+
function Re(e, t) {
|
1135
|
+
var r = t && t.cache ? t.cache : Cn, n = t && t.serializer ? t.serializer : Ln, i = t && t.strategy ? t.strategy : Nn;
|
1156
1136
|
return i(e, {
|
1157
1137
|
cache: r,
|
1158
1138
|
serializer: n
|
1159
1139
|
});
|
1160
1140
|
}
|
1161
|
-
function
|
1141
|
+
function Bn(e) {
|
1162
1142
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
1163
1143
|
}
|
1164
|
-
function
|
1165
|
-
var i =
|
1144
|
+
function Pn(e, t, r, n) {
|
1145
|
+
var i = Bn(n) ? n : r(n), s = t.get(i);
|
1166
1146
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
1167
1147
|
}
|
1168
|
-
function
|
1148
|
+
function Yt(e, t, r) {
|
1169
1149
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
1170
1150
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
1171
1151
|
}
|
1172
|
-
function
|
1152
|
+
function qt(e, t, r, n, i) {
|
1173
1153
|
return r.bind(t, e, n, i);
|
1174
1154
|
}
|
1175
|
-
function
|
1176
|
-
var r = e.length === 1 ?
|
1177
|
-
return
|
1178
|
-
}
|
1179
|
-
function Mn(e, t) {
|
1180
|
-
return st(e, this, rr, t.cache.create(), t.serializer);
|
1155
|
+
function Nn(e, t) {
|
1156
|
+
var r = e.length === 1 ? Pn : Yt;
|
1157
|
+
return qt(e, this, r, t.cache.create(), t.serializer);
|
1181
1158
|
}
|
1182
|
-
function
|
1183
|
-
return
|
1159
|
+
function On(e, t) {
|
1160
|
+
return qt(e, this, Yt, t.cache.create(), t.serializer);
|
1184
1161
|
}
|
1185
|
-
var
|
1162
|
+
var Ln = function() {
|
1186
1163
|
return JSON.stringify(arguments);
|
1187
|
-
}
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1164
|
+
}, In = (
|
1165
|
+
/** @class */
|
1166
|
+
function() {
|
1167
|
+
function e() {
|
1168
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
1169
|
+
}
|
1170
|
+
return e.prototype.get = function(t) {
|
1171
|
+
return this.cache[t];
|
1172
|
+
}, e.prototype.set = function(t, r) {
|
1173
|
+
this.cache[t] = r;
|
1174
|
+
}, e;
|
1175
|
+
}()
|
1176
|
+
), Cn = {
|
1198
1177
|
create: function() {
|
1199
|
-
return new
|
1178
|
+
return new In();
|
1200
1179
|
}
|
1201
|
-
},
|
1202
|
-
variadic:
|
1203
|
-
monadic: Rn
|
1180
|
+
}, Ge = {
|
1181
|
+
variadic: On
|
1204
1182
|
}, p;
|
1205
1183
|
(function(e) {
|
1206
1184
|
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";
|
@@ -1209,47 +1187,47 @@ var x;
|
|
1209
1187
|
(function(e) {
|
1210
1188
|
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";
|
1211
1189
|
})(x || (x = {}));
|
1212
|
-
var
|
1190
|
+
var K;
|
1213
1191
|
(function(e) {
|
1214
1192
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
1215
|
-
})(
|
1216
|
-
function
|
1193
|
+
})(K || (K = {}));
|
1194
|
+
function _t(e) {
|
1217
1195
|
return e.type === x.literal;
|
1218
1196
|
}
|
1219
|
-
function
|
1197
|
+
function Mn(e) {
|
1220
1198
|
return e.type === x.argument;
|
1221
1199
|
}
|
1222
|
-
function
|
1200
|
+
function Jt(e) {
|
1223
1201
|
return e.type === x.number;
|
1224
1202
|
}
|
1225
|
-
function
|
1203
|
+
function Kt(e) {
|
1226
1204
|
return e.type === x.date;
|
1227
1205
|
}
|
1228
|
-
function
|
1206
|
+
function er(e) {
|
1229
1207
|
return e.type === x.time;
|
1230
1208
|
}
|
1231
|
-
function
|
1209
|
+
function tr(e) {
|
1232
1210
|
return e.type === x.select;
|
1233
1211
|
}
|
1234
|
-
function
|
1212
|
+
function rr(e) {
|
1235
1213
|
return e.type === x.plural;
|
1236
1214
|
}
|
1237
|
-
function
|
1215
|
+
function Rn(e) {
|
1238
1216
|
return e.type === x.pound;
|
1239
1217
|
}
|
1240
|
-
function
|
1218
|
+
function nr(e) {
|
1241
1219
|
return e.type === x.tag;
|
1242
1220
|
}
|
1243
|
-
function
|
1244
|
-
return !!(e && typeof e == "object" && e.type ===
|
1221
|
+
function ir(e) {
|
1222
|
+
return !!(e && typeof e == "object" && e.type === K.number);
|
1245
1223
|
}
|
1246
|
-
function
|
1247
|
-
return !!(e && typeof e == "object" && e.type ===
|
1224
|
+
function Qe(e) {
|
1225
|
+
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
1248
1226
|
}
|
1249
|
-
var
|
1250
|
-
function
|
1227
|
+
var sr = /[ \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;
|
1228
|
+
function Un(e) {
|
1251
1229
|
var t = {};
|
1252
|
-
return e.replace(
|
1230
|
+
return e.replace(Gn, function(r) {
|
1253
1231
|
var n = r.length;
|
1254
1232
|
switch (r[0]) {
|
1255
1233
|
case "G":
|
@@ -1338,11 +1316,11 @@ function jn(e) {
|
|
1338
1316
|
return "";
|
1339
1317
|
}), t;
|
1340
1318
|
}
|
1341
|
-
var
|
1342
|
-
function
|
1319
|
+
var Dn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
1320
|
+
function Fn(e) {
|
1343
1321
|
if (e.length === 0)
|
1344
1322
|
throw new Error("Number skeleton cannot be empty");
|
1345
|
-
for (var t = e.split(
|
1323
|
+
for (var t = e.split(Dn).filter(function(c) {
|
1346
1324
|
return c.length > 0;
|
1347
1325
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
1348
1326
|
var s = i[n], o = s.split("/");
|
@@ -1357,17 +1335,17 @@ function Vn(e) {
|
|
1357
1335
|
}
|
1358
1336
|
return r;
|
1359
1337
|
}
|
1360
|
-
function
|
1338
|
+
function $n(e) {
|
1361
1339
|
return e.replace(/^(.*?)-/, "");
|
1362
1340
|
}
|
1363
|
-
var
|
1364
|
-
function
|
1341
|
+
var Et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, or = /^(@+)?(\+|#+)?[rs]?$/g, jn = /(\*)(0+)|(#+)(0+)|(0+)/g, ar = /^(0+)$/;
|
1342
|
+
function xt(e) {
|
1365
1343
|
var t = {};
|
1366
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
1344
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(or, function(r, n, i) {
|
1367
1345
|
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)), "";
|
1368
1346
|
}), t;
|
1369
1347
|
}
|
1370
|
-
function
|
1348
|
+
function ur(e) {
|
1371
1349
|
switch (e) {
|
1372
1350
|
case "sign-auto":
|
1373
1351
|
return {
|
@@ -1407,7 +1385,7 @@ function mr(e) {
|
|
1407
1385
|
};
|
1408
1386
|
}
|
1409
1387
|
}
|
1410
|
-
function
|
1388
|
+
function kn(e) {
|
1411
1389
|
var t;
|
1412
1390
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
1413
1391
|
notation: "engineering"
|
@@ -1415,17 +1393,17 @@ function zn(e) {
|
|
1415
1393
|
notation: "scientific"
|
1416
1394
|
}, e = e.slice(1)), t) {
|
1417
1395
|
var r = e.slice(0, 2);
|
1418
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
1396
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ar.test(e))
|
1419
1397
|
throw new Error("Malformed concise eng/scientific notation");
|
1420
1398
|
t.minimumIntegerDigits = e.length;
|
1421
1399
|
}
|
1422
1400
|
return t;
|
1423
1401
|
}
|
1424
|
-
function
|
1425
|
-
var t = {}, r =
|
1402
|
+
function St(e) {
|
1403
|
+
var t = {}, r = ur(e);
|
1426
1404
|
return r || t;
|
1427
1405
|
}
|
1428
|
-
function
|
1406
|
+
function Vn(e) {
|
1429
1407
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
1430
1408
|
var i = n[r];
|
1431
1409
|
switch (i.stem) {
|
@@ -1449,7 +1427,7 @@ function Zn(e) {
|
|
1449
1427
|
continue;
|
1450
1428
|
case "measure-unit":
|
1451
1429
|
case "unit":
|
1452
|
-
t.style = "unit", t.unit =
|
1430
|
+
t.style = "unit", t.unit = $n(i.options[0]);
|
1453
1431
|
continue;
|
1454
1432
|
case "compact-short":
|
1455
1433
|
case "K":
|
@@ -1461,12 +1439,12 @@ function Zn(e) {
|
|
1461
1439
|
continue;
|
1462
1440
|
case "scientific":
|
1463
1441
|
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
1464
|
-
return v(v({}, h),
|
1442
|
+
return v(v({}, h), St(u));
|
1465
1443
|
}, {}));
|
1466
1444
|
continue;
|
1467
1445
|
case "engineering":
|
1468
1446
|
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
1469
|
-
return v(v({}, h),
|
1447
|
+
return v(v({}, h), St(u));
|
1470
1448
|
}, {}));
|
1471
1449
|
continue;
|
1472
1450
|
case "notation-simple":
|
@@ -1511,7 +1489,7 @@ function Zn(e) {
|
|
1511
1489
|
case "integer-width":
|
1512
1490
|
if (i.options.length > 1)
|
1513
1491
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1514
|
-
i.options[0].replace(
|
1492
|
+
i.options[0].replace(jn, function(h, u, l, m, c, d) {
|
1515
1493
|
if (u)
|
1516
1494
|
t.minimumIntegerDigits = l.length;
|
1517
1495
|
else {
|
@@ -1524,27 +1502,27 @@ function Zn(e) {
|
|
1524
1502
|
});
|
1525
1503
|
continue;
|
1526
1504
|
}
|
1527
|
-
if (
|
1505
|
+
if (ar.test(i.stem)) {
|
1528
1506
|
t.minimumIntegerDigits = i.stem.length;
|
1529
1507
|
continue;
|
1530
1508
|
}
|
1531
|
-
if (
|
1509
|
+
if (Et.test(i.stem)) {
|
1532
1510
|
if (i.options.length > 1)
|
1533
1511
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1534
|
-
i.stem.replace(
|
1512
|
+
i.stem.replace(Et, function(h, u, l, m, c, d) {
|
1535
1513
|
return l === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
1536
1514
|
});
|
1537
1515
|
var s = i.options[0];
|
1538
|
-
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t),
|
1516
|
+
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), xt(s)));
|
1539
1517
|
continue;
|
1540
1518
|
}
|
1541
|
-
if (
|
1542
|
-
t = v(v({}, t),
|
1519
|
+
if (or.test(i.stem)) {
|
1520
|
+
t = v(v({}, t), xt(i.stem));
|
1543
1521
|
continue;
|
1544
1522
|
}
|
1545
|
-
var o =
|
1523
|
+
var o = ur(i.stem);
|
1546
1524
|
o && (t = v(v({}, t), o));
|
1547
|
-
var a =
|
1525
|
+
var a = kn(i.stem);
|
1548
1526
|
a && (t = v(v({}, t), a));
|
1549
1527
|
}
|
1550
1528
|
return t;
|
@@ -2964,13 +2942,13 @@ var ye = {
|
|
2964
2942
|
"h"
|
2965
2943
|
]
|
2966
2944
|
};
|
2967
|
-
function
|
2945
|
+
function Xn(e, t) {
|
2968
2946
|
for (var r = "", n = 0; n < e.length; n++) {
|
2969
2947
|
var i = e.charAt(n);
|
2970
2948
|
if (i === "j") {
|
2971
2949
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2972
2950
|
s++, n++;
|
2973
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
2951
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Wn(t);
|
2974
2952
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
2975
2953
|
r += h;
|
2976
2954
|
for (; o-- > 0; )
|
@@ -2979,7 +2957,7 @@ function Qn(e, t) {
|
|
2979
2957
|
}
|
2980
2958
|
return r;
|
2981
2959
|
}
|
2982
|
-
function
|
2960
|
+
function Wn(e) {
|
2983
2961
|
var t = e.hourCycle;
|
2984
2962
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2985
2963
|
e.hourCycles && // @ts-ignore
|
@@ -3001,20 +2979,20 @@ function Yn(e) {
|
|
3001
2979
|
var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
|
3002
2980
|
return i[0];
|
3003
2981
|
}
|
3004
|
-
var
|
2982
|
+
var Ue, zn = new RegExp("^".concat(sr.source, "*")), Zn = new RegExp("".concat(sr.source, "*$"));
|
3005
2983
|
function g(e, t) {
|
3006
2984
|
return { start: e, end: t };
|
3007
2985
|
}
|
3008
|
-
var
|
2986
|
+
var Qn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Yn = !!String.fromCodePoint, qn = !!Object.fromEntries, Jn = !!String.prototype.codePointAt, Kn = !!String.prototype.trimStart, ei = !!String.prototype.trimEnd, ti = !!Number.isSafeInteger, ri = ti ? Number.isSafeInteger : function(e) {
|
3009
2987
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
3010
|
-
},
|
2988
|
+
}, Ye = !0;
|
3011
2989
|
try {
|
3012
|
-
var
|
3013
|
-
|
2990
|
+
var ni = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2991
|
+
Ye = ((Ue = ni.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
|
3014
2992
|
} catch {
|
3015
|
-
|
2993
|
+
Ye = !1;
|
3016
2994
|
}
|
3017
|
-
var
|
2995
|
+
var wt = Qn ? (
|
3018
2996
|
// Native
|
3019
2997
|
function(t, r, n) {
|
3020
2998
|
return t.startsWith(r, n);
|
@@ -3024,7 +3002,7 @@ var Bt = Kn ? (
|
|
3024
3002
|
function(t, r, n) {
|
3025
3003
|
return t.slice(n, n + r.length) === r;
|
3026
3004
|
}
|
3027
|
-
),
|
3005
|
+
), qe = Yn ? String.fromCodePoint : (
|
3028
3006
|
// IE11
|
3029
3007
|
function() {
|
3030
3008
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -3036,9 +3014,9 @@ var Bt = Kn ? (
|
|
3036
3014
|
}
|
3037
3015
|
return n;
|
3038
3016
|
}
|
3039
|
-
),
|
3017
|
+
), Tt = (
|
3040
3018
|
// native
|
3041
|
-
|
3019
|
+
qn ? Object.fromEntries : (
|
3042
3020
|
// Ponyfill
|
3043
3021
|
function(t) {
|
3044
3022
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -3048,7 +3026,7 @@ var Bt = Kn ? (
|
|
3048
3026
|
return r;
|
3049
3027
|
}
|
3050
3028
|
)
|
3051
|
-
),
|
3029
|
+
), hr = Jn ? (
|
3052
3030
|
// Native
|
3053
3031
|
function(t, r) {
|
3054
3032
|
return t.codePointAt(r);
|
@@ -3062,7 +3040,7 @@ var Bt = Kn ? (
|
|
3062
3040
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
3063
3041
|
}
|
3064
3042
|
}
|
3065
|
-
),
|
3043
|
+
), ii = Kn ? (
|
3066
3044
|
// Native
|
3067
3045
|
function(t) {
|
3068
3046
|
return t.trimStart();
|
@@ -3070,9 +3048,9 @@ var Bt = Kn ? (
|
|
3070
3048
|
) : (
|
3071
3049
|
// Ponyfill
|
3072
3050
|
function(t) {
|
3073
|
-
return t.replace(
|
3051
|
+
return t.replace(zn, "");
|
3074
3052
|
}
|
3075
|
-
),
|
3053
|
+
), si = ei ? (
|
3076
3054
|
// Native
|
3077
3055
|
function(t) {
|
3078
3056
|
return t.trimEnd();
|
@@ -3080,32 +3058,32 @@ var Bt = Kn ? (
|
|
3080
3058
|
) : (
|
3081
3059
|
// Ponyfill
|
3082
3060
|
function(t) {
|
3083
|
-
return t.replace(
|
3061
|
+
return t.replace(Zn, "");
|
3084
3062
|
}
|
3085
3063
|
);
|
3086
|
-
function
|
3064
|
+
function lr(e, t) {
|
3087
3065
|
return new RegExp(e, t);
|
3088
3066
|
}
|
3089
|
-
var
|
3090
|
-
if (
|
3091
|
-
var
|
3092
|
-
|
3067
|
+
var Je;
|
3068
|
+
if (Ye) {
|
3069
|
+
var Ht = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3070
|
+
Je = function(t, r) {
|
3093
3071
|
var n;
|
3094
|
-
|
3095
|
-
var i =
|
3072
|
+
Ht.lastIndex = r;
|
3073
|
+
var i = Ht.exec(t);
|
3096
3074
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
3097
3075
|
};
|
3098
3076
|
} else
|
3099
|
-
|
3077
|
+
Je = function(t, r) {
|
3100
3078
|
for (var n = []; ; ) {
|
3101
|
-
var i =
|
3102
|
-
if (i === void 0 ||
|
3079
|
+
var i = hr(t, r);
|
3080
|
+
if (i === void 0 || cr(i) || hi(i))
|
3103
3081
|
break;
|
3104
3082
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
3105
3083
|
}
|
3106
|
-
return
|
3084
|
+
return qe.apply(void 0, n);
|
3107
3085
|
};
|
3108
|
-
var
|
3086
|
+
var oi = (
|
3109
3087
|
/** @class */
|
3110
3088
|
function() {
|
3111
3089
|
function e(t, r) {
|
@@ -3136,7 +3114,7 @@ var li = (
|
|
3136
3114
|
if (n)
|
3137
3115
|
break;
|
3138
3116
|
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
3139
|
-
} else if (s === 60 && !this.ignoreTag &&
|
3117
|
+
} else if (s === 60 && !this.ignoreTag && Ke(this.peek() || 0)) {
|
3140
3118
|
var o = this.parseTag(t, r);
|
3141
3119
|
if (o.err)
|
3142
3120
|
return o;
|
@@ -3169,7 +3147,7 @@ var li = (
|
|
3169
3147
|
return s;
|
3170
3148
|
var o = s.val, a = this.clonePosition();
|
3171
3149
|
if (this.bumpIf("</")) {
|
3172
|
-
if (this.isEOF() || !
|
3150
|
+
if (this.isEOF() || !Ke(this.char()))
|
3173
3151
|
return this.error(p.INVALID_TAG, g(a, this.clonePosition()));
|
3174
3152
|
var h = this.clonePosition(), u = this.parseTagName();
|
3175
3153
|
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
@@ -3187,7 +3165,7 @@ var li = (
|
|
3187
3165
|
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
3188
3166
|
}, e.prototype.parseTagName = function() {
|
3189
3167
|
var t = this.offset();
|
3190
|
-
for (this.bump(); !this.isEOF() &&
|
3168
|
+
for (this.bump(); !this.isEOF() && ui(this.char()); )
|
3191
3169
|
this.bump();
|
3192
3170
|
return this.message.slice(t, this.offset());
|
3193
3171
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -3216,7 +3194,7 @@ var li = (
|
|
3216
3194
|
};
|
3217
3195
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
3218
3196
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
3219
|
-
!
|
3197
|
+
!ai(this.peek() || 0)) ? (this.bump(), "<") : null;
|
3220
3198
|
}, e.prototype.tryParseQuote = function(t) {
|
3221
3199
|
if (this.isEOF() || this.char() !== 39)
|
3222
3200
|
return null;
|
@@ -3250,12 +3228,12 @@ var li = (
|
|
3250
3228
|
r.push(n);
|
3251
3229
|
this.bump();
|
3252
3230
|
}
|
3253
|
-
return
|
3231
|
+
return qe.apply(void 0, r);
|
3254
3232
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
3255
3233
|
if (this.isEOF())
|
3256
3234
|
return null;
|
3257
3235
|
var n = this.char();
|
3258
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
3236
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qe(n));
|
3259
3237
|
}, e.prototype.parseArgument = function(t, r) {
|
3260
3238
|
var n = this.clonePosition();
|
3261
3239
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -3284,7 +3262,7 @@ var li = (
|
|
3284
3262
|
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
3285
3263
|
}
|
3286
3264
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
3287
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
3265
|
+
var t = this.clonePosition(), r = this.offset(), n = Je(this.message, r), i = r + n.length;
|
3288
3266
|
this.bumpTo(i);
|
3289
3267
|
var s = this.clonePosition(), o = g(t, s);
|
3290
3268
|
return { value: n, location: o };
|
@@ -3303,7 +3281,7 @@ var li = (
|
|
3303
3281
|
var l = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
3304
3282
|
if (m.err)
|
3305
3283
|
return m;
|
3306
|
-
var c =
|
3284
|
+
var c = si(m.val);
|
3307
3285
|
if (c.length === 0)
|
3308
3286
|
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
3309
3287
|
var d = g(l, this.clonePosition());
|
@@ -3313,8 +3291,8 @@ var li = (
|
|
3313
3291
|
if (b.err)
|
3314
3292
|
return b;
|
3315
3293
|
var y = g(i, this.clonePosition());
|
3316
|
-
if (u &&
|
3317
|
-
var T =
|
3294
|
+
if (u && wt(u?.style, "::", 0)) {
|
3295
|
+
var T = ii(u.style.slice(2));
|
3318
3296
|
if (a === "number") {
|
3319
3297
|
var m = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
3320
3298
|
return m.err ? m : {
|
@@ -3325,12 +3303,12 @@ var li = (
|
|
3325
3303
|
if (T.length === 0)
|
3326
3304
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, y);
|
3327
3305
|
var C = T;
|
3328
|
-
this.locale && (C =
|
3306
|
+
this.locale && (C = Xn(T, this.locale));
|
3329
3307
|
var c = {
|
3330
|
-
type:
|
3308
|
+
type: K.dateTime,
|
3331
3309
|
pattern: C,
|
3332
3310
|
location: u.styleLocation,
|
3333
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3311
|
+
parsedOptions: this.shouldParseSkeletons ? Un(C) : {}
|
3334
3312
|
}, N = a === "date" ? x.date : x.time;
|
3335
3313
|
return {
|
3336
3314
|
val: { type: N, value: n, location: y, style: c },
|
@@ -3376,7 +3354,7 @@ var li = (
|
|
3376
3354
|
val: {
|
3377
3355
|
type: x.select,
|
3378
3356
|
value: n,
|
3379
|
-
options:
|
3357
|
+
options: Tt(M.val),
|
3380
3358
|
location: E
|
3381
3359
|
},
|
3382
3360
|
err: null
|
@@ -3384,7 +3362,7 @@ var li = (
|
|
3384
3362
|
val: {
|
3385
3363
|
type: x.plural,
|
3386
3364
|
value: n,
|
3387
|
-
options:
|
3365
|
+
options: Tt(M.val),
|
3388
3366
|
offset: L,
|
3389
3367
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
3390
3368
|
location: E
|
@@ -3435,16 +3413,16 @@ var li = (
|
|
3435
3413
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
3436
3414
|
var n = [];
|
3437
3415
|
try {
|
3438
|
-
n =
|
3416
|
+
n = Fn(t);
|
3439
3417
|
} catch {
|
3440
3418
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
3441
3419
|
}
|
3442
3420
|
return {
|
3443
3421
|
val: {
|
3444
|
-
type:
|
3422
|
+
type: K.number,
|
3445
3423
|
tokens: n,
|
3446
3424
|
location: r,
|
3447
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3425
|
+
parsedOptions: this.shouldParseSkeletons ? Vn(n) : {}
|
3448
3426
|
},
|
3449
3427
|
err: null
|
3450
3428
|
};
|
@@ -3492,7 +3470,7 @@ var li = (
|
|
3492
3470
|
break;
|
3493
3471
|
}
|
3494
3472
|
var h = g(i, this.clonePosition());
|
3495
|
-
return s ? (o *= n,
|
3473
|
+
return s ? (o *= n, ri(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
3496
3474
|
}, e.prototype.offset = function() {
|
3497
3475
|
return this.position.offset;
|
3498
3476
|
}, e.prototype.isEOF = function() {
|
@@ -3507,7 +3485,7 @@ var li = (
|
|
3507
3485
|
var t = this.position.offset;
|
3508
3486
|
if (t >= this.message.length)
|
3509
3487
|
throw Error("out of bound");
|
3510
|
-
var r =
|
3488
|
+
var r = hr(this.message, t);
|
3511
3489
|
if (r === void 0)
|
3512
3490
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3513
3491
|
return r;
|
@@ -3526,7 +3504,7 @@ var li = (
|
|
3526
3504
|
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);
|
3527
3505
|
}
|
3528
3506
|
}, e.prototype.bumpIf = function(t) {
|
3529
|
-
if (
|
3507
|
+
if (wt(this.message, t, this.offset())) {
|
3530
3508
|
for (var r = 0; r < t.length; r++)
|
3531
3509
|
this.bump();
|
3532
3510
|
return !0;
|
@@ -3548,7 +3526,7 @@ var li = (
|
|
3548
3526
|
break;
|
3549
3527
|
}
|
3550
3528
|
}, e.prototype.bumpSpace = function() {
|
3551
|
-
for (; !this.isEOF() &&
|
3529
|
+
for (; !this.isEOF() && cr(this.char()); )
|
3552
3530
|
this.bump();
|
3553
3531
|
}, e.prototype.peek = function() {
|
3554
3532
|
if (this.isEOF())
|
@@ -3558,42 +3536,42 @@ var li = (
|
|
3558
3536
|
}, e;
|
3559
3537
|
}()
|
3560
3538
|
);
|
3561
|
-
function
|
3539
|
+
function Ke(e) {
|
3562
3540
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3563
3541
|
}
|
3564
|
-
function
|
3565
|
-
return
|
3542
|
+
function ai(e) {
|
3543
|
+
return Ke(e) || e === 47;
|
3566
3544
|
}
|
3567
|
-
function
|
3545
|
+
function ui(e) {
|
3568
3546
|
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;
|
3569
3547
|
}
|
3570
|
-
function
|
3548
|
+
function cr(e) {
|
3571
3549
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3572
3550
|
}
|
3573
|
-
function
|
3551
|
+
function hi(e) {
|
3574
3552
|
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;
|
3575
3553
|
}
|
3576
|
-
function
|
3554
|
+
function et(e) {
|
3577
3555
|
e.forEach(function(t) {
|
3578
|
-
if (delete t.location,
|
3556
|
+
if (delete t.location, tr(t) || rr(t))
|
3579
3557
|
for (var r in t.options)
|
3580
|
-
delete t.options[r].location,
|
3581
|
-
else
|
3558
|
+
delete t.options[r].location, et(t.options[r].value);
|
3559
|
+
else Jt(t) && ir(t.style) || (Kt(t) || er(t)) && Qe(t.style) ? delete t.style.location : nr(t) && et(t.children);
|
3582
3560
|
});
|
3583
3561
|
}
|
3584
|
-
function
|
3562
|
+
function li(e, t) {
|
3585
3563
|
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3586
|
-
var r = new
|
3564
|
+
var r = new oi(e, t).parse();
|
3587
3565
|
if (r.err) {
|
3588
3566
|
var n = SyntaxError(p[r.err.kind]);
|
3589
3567
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3590
3568
|
}
|
3591
|
-
return t?.captureLocation ||
|
3569
|
+
return t?.captureLocation || et(r.val), r.val;
|
3592
3570
|
}
|
3593
|
-
var
|
3571
|
+
var ee;
|
3594
3572
|
(function(e) {
|
3595
3573
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3596
|
-
})(
|
3574
|
+
})(ee || (ee = {}));
|
3597
3575
|
var Be = (
|
3598
3576
|
/** @class */
|
3599
3577
|
function(e) {
|
@@ -3606,30 +3584,30 @@ var Be = (
|
|
3606
3584
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3607
3585
|
}, t;
|
3608
3586
|
}(Error)
|
3609
|
-
),
|
3587
|
+
), At = (
|
3610
3588
|
/** @class */
|
3611
3589
|
function(e) {
|
3612
3590
|
U(t, e);
|
3613
3591
|
function t(r, n, i, s) {
|
3614
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3592
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, s) || this;
|
3615
3593
|
}
|
3616
3594
|
return t;
|
3617
3595
|
}(Be)
|
3618
|
-
),
|
3596
|
+
), ci = (
|
3619
3597
|
/** @class */
|
3620
3598
|
function(e) {
|
3621
3599
|
U(t, e);
|
3622
3600
|
function t(r, n, i) {
|
3623
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3601
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
|
3624
3602
|
}
|
3625
3603
|
return t;
|
3626
3604
|
}(Be)
|
3627
|
-
),
|
3605
|
+
), fi = (
|
3628
3606
|
/** @class */
|
3629
3607
|
function(e) {
|
3630
3608
|
U(t, e);
|
3631
3609
|
function t(r, n) {
|
3632
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3610
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
|
3633
3611
|
}
|
3634
3612
|
return t;
|
3635
3613
|
}(Be)
|
@@ -3637,17 +3615,17 @@ var Be = (
|
|
3637
3615
|
(function(e) {
|
3638
3616
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3639
3617
|
})(H || (H = {}));
|
3640
|
-
function
|
3618
|
+
function mi(e) {
|
3641
3619
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3642
3620
|
var n = t[t.length - 1];
|
3643
3621
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
3644
3622
|
}, []);
|
3645
3623
|
}
|
3646
|
-
function
|
3624
|
+
function di(e) {
|
3647
3625
|
return typeof e == "function";
|
3648
3626
|
}
|
3649
3627
|
function Ee(e, t, r, n, i, s, o) {
|
3650
|
-
if (e.length === 1 &&
|
3628
|
+
if (e.length === 1 && _t(e[0]))
|
3651
3629
|
return [
|
3652
3630
|
{
|
3653
3631
|
type: H.literal,
|
@@ -3656,14 +3634,14 @@ function Ee(e, t, r, n, i, s, o) {
|
|
3656
3634
|
];
|
3657
3635
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
3658
3636
|
var l = u[h];
|
3659
|
-
if (
|
3637
|
+
if (_t(l)) {
|
3660
3638
|
a.push({
|
3661
3639
|
type: H.literal,
|
3662
3640
|
value: l.value
|
3663
3641
|
});
|
3664
3642
|
continue;
|
3665
3643
|
}
|
3666
|
-
if (
|
3644
|
+
if (Rn(l)) {
|
3667
3645
|
typeof s == "number" && a.push({
|
3668
3646
|
type: H.literal,
|
3669
3647
|
value: r.getNumberFormat(t).format(s)
|
@@ -3672,43 +3650,43 @@ function Ee(e, t, r, n, i, s, o) {
|
|
3672
3650
|
}
|
3673
3651
|
var m = l.value;
|
3674
3652
|
if (!(i && m in i))
|
3675
|
-
throw new
|
3653
|
+
throw new fi(m, o);
|
3676
3654
|
var c = i[m];
|
3677
|
-
if (
|
3655
|
+
if (Mn(l)) {
|
3678
3656
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3679
3657
|
type: typeof c == "string" ? H.literal : H.object,
|
3680
3658
|
value: c
|
3681
3659
|
});
|
3682
3660
|
continue;
|
3683
3661
|
}
|
3684
|
-
if (
|
3685
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
3662
|
+
if (Kt(l)) {
|
3663
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Qe(l.style) ? l.style.parsedOptions : void 0;
|
3686
3664
|
a.push({
|
3687
3665
|
type: H.literal,
|
3688
3666
|
value: r.getDateTimeFormat(t, d).format(c)
|
3689
3667
|
});
|
3690
3668
|
continue;
|
3691
3669
|
}
|
3692
|
-
if (
|
3693
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
3670
|
+
if (er(l)) {
|
3671
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Qe(l.style) ? l.style.parsedOptions : n.time.medium;
|
3694
3672
|
a.push({
|
3695
3673
|
type: H.literal,
|
3696
3674
|
value: r.getDateTimeFormat(t, d).format(c)
|
3697
3675
|
});
|
3698
3676
|
continue;
|
3699
3677
|
}
|
3700
|
-
if (
|
3701
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
3678
|
+
if (Jt(l)) {
|
3679
|
+
var d = typeof l.style == "string" ? n.number[l.style] : ir(l.style) ? l.style.parsedOptions : void 0;
|
3702
3680
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
3703
3681
|
type: H.literal,
|
3704
3682
|
value: r.getNumberFormat(t, d).format(c)
|
3705
3683
|
});
|
3706
3684
|
continue;
|
3707
3685
|
}
|
3708
|
-
if (
|
3686
|
+
if (nr(l)) {
|
3709
3687
|
var b = l.children, y = l.value, T = i[y];
|
3710
|
-
if (!
|
3711
|
-
throw new
|
3688
|
+
if (!di(T))
|
3689
|
+
throw new ci(y, "function", o);
|
3712
3690
|
var C = Ee(b, t, r, n, i, s), N = T(C.map(function(L) {
|
3713
3691
|
return L.value;
|
3714
3692
|
}));
|
@@ -3719,42 +3697,42 @@ function Ee(e, t, r, n, i, s, o) {
|
|
3719
3697
|
};
|
3720
3698
|
}));
|
3721
3699
|
}
|
3722
|
-
if (
|
3700
|
+
if (tr(l)) {
|
3723
3701
|
var w = l.options[c] || l.options.other;
|
3724
3702
|
if (!w)
|
3725
|
-
throw new
|
3703
|
+
throw new At(l.value, c, Object.keys(l.options), o);
|
3726
3704
|
a.push.apply(a, Ee(w.value, t, r, n, i));
|
3727
3705
|
continue;
|
3728
3706
|
}
|
3729
|
-
if (
|
3707
|
+
if (rr(l)) {
|
3730
3708
|
var w = l.options["=".concat(c)];
|
3731
3709
|
if (!w) {
|
3732
3710
|
if (!Intl.PluralRules)
|
3733
3711
|
throw new Be(`Intl.PluralRules is not available in this environment.
|
3734
3712
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3735
|
-
`,
|
3713
|
+
`, ee.MISSING_INTL_API, o);
|
3736
3714
|
var O = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
3737
3715
|
w = l.options[O] || l.options.other;
|
3738
3716
|
}
|
3739
3717
|
if (!w)
|
3740
|
-
throw new
|
3718
|
+
throw new At(l.value, c, Object.keys(l.options), o);
|
3741
3719
|
a.push.apply(a, Ee(w.value, t, r, n, i, c - (l.offset || 0)));
|
3742
3720
|
continue;
|
3743
3721
|
}
|
3744
3722
|
}
|
3745
|
-
return
|
3723
|
+
return mi(a);
|
3746
3724
|
}
|
3747
|
-
function
|
3725
|
+
function bi(e, t) {
|
3748
3726
|
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3749
3727
|
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
3750
3728
|
}, {})) : e;
|
3751
3729
|
}
|
3752
|
-
function
|
3730
|
+
function pi(e, t) {
|
3753
3731
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3754
|
-
return r[n] =
|
3732
|
+
return r[n] = bi(e[n], t[n]), r;
|
3755
3733
|
}, v({}, e)) : e;
|
3756
3734
|
}
|
3757
|
-
function
|
3735
|
+
function De(e) {
|
3758
3736
|
return {
|
3759
3737
|
create: function() {
|
3760
3738
|
return {
|
@@ -3768,39 +3746,39 @@ function Fe(e) {
|
|
3768
3746
|
}
|
3769
3747
|
};
|
3770
3748
|
}
|
3771
|
-
function
|
3749
|
+
function gi(e) {
|
3772
3750
|
return e === void 0 && (e = {
|
3773
3751
|
number: {},
|
3774
3752
|
dateTime: {},
|
3775
3753
|
pluralRules: {}
|
3776
3754
|
}), {
|
3777
|
-
getNumberFormat:
|
3755
|
+
getNumberFormat: Re(function() {
|
3778
3756
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3779
3757
|
r[n] = arguments[n];
|
3780
3758
|
return new ((t = Intl.NumberFormat).bind.apply(t, q([void 0], r, !1)))();
|
3781
3759
|
}, {
|
3782
|
-
cache:
|
3783
|
-
strategy:
|
3760
|
+
cache: De(e.number),
|
3761
|
+
strategy: Ge.variadic
|
3784
3762
|
}),
|
3785
|
-
getDateTimeFormat:
|
3763
|
+
getDateTimeFormat: Re(function() {
|
3786
3764
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3787
3765
|
r[n] = arguments[n];
|
3788
3766
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, q([void 0], r, !1)))();
|
3789
3767
|
}, {
|
3790
|
-
cache:
|
3791
|
-
strategy:
|
3768
|
+
cache: De(e.dateTime),
|
3769
|
+
strategy: Ge.variadic
|
3792
3770
|
}),
|
3793
|
-
getPluralRules:
|
3771
|
+
getPluralRules: Re(function() {
|
3794
3772
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3795
3773
|
r[n] = arguments[n];
|
3796
3774
|
return new ((t = Intl.PluralRules).bind.apply(t, q([void 0], r, !1)))();
|
3797
3775
|
}, {
|
3798
|
-
cache:
|
3799
|
-
strategy:
|
3776
|
+
cache: De(e.pluralRules),
|
3777
|
+
strategy: Ge.variadic
|
3800
3778
|
})
|
3801
3779
|
};
|
3802
3780
|
}
|
3803
|
-
var
|
3781
|
+
var yi = (
|
3804
3782
|
/** @class */
|
3805
3783
|
function() {
|
3806
3784
|
function e(t, r, n, i) {
|
@@ -3832,13 +3810,13 @@ var xi = (
|
|
3832
3810
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3833
3811
|
var o = i || {};
|
3834
3812
|
o.formatters;
|
3835
|
-
var a =
|
3813
|
+
var a = Qr(o, ["formatters"]);
|
3836
3814
|
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
3837
3815
|
} else
|
3838
3816
|
this.ast = t;
|
3839
3817
|
if (!Array.isArray(this.ast))
|
3840
3818
|
throw new TypeError("A message must be provided as a String or AST.");
|
3841
|
-
this.formats =
|
3819
|
+
this.formats = pi(e.formats, n), this.formatters = i && i.formatters || gi(this.formatterCache);
|
3842
3820
|
}
|
3843
3821
|
return Object.defineProperty(e, "defaultLocale", {
|
3844
3822
|
get: function() {
|
@@ -3851,7 +3829,7 @@ var xi = (
|
|
3851
3829
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3852
3830
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3853
3831
|
}
|
3854
|
-
}, e.__parse =
|
3832
|
+
}, e.__parse = li, e.formats = {
|
3855
3833
|
number: {
|
3856
3834
|
integer: {
|
3857
3835
|
maximumFractionDigits: 0
|
@@ -3912,7 +3890,7 @@ var xi = (
|
|
3912
3890
|
}, e;
|
3913
3891
|
}()
|
3914
3892
|
);
|
3915
|
-
function
|
3893
|
+
function vi(e, t) {
|
3916
3894
|
if (t == null)
|
3917
3895
|
return;
|
3918
3896
|
if (t in e)
|
@@ -3933,92 +3911,92 @@ function Si(e, t) {
|
|
3933
3911
|
n = void 0;
|
3934
3912
|
return n;
|
3935
3913
|
}
|
3936
|
-
const D = {},
|
3914
|
+
const D = {}, _i = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), fr = (e, t) => {
|
3937
3915
|
if (t == null)
|
3938
3916
|
return;
|
3939
3917
|
if (t in D && e in D[t])
|
3940
3918
|
return D[t][e];
|
3941
3919
|
const r = Pe(t);
|
3942
3920
|
for (let n = 0; n < r.length; n++) {
|
3943
|
-
const i = r[n], s =
|
3921
|
+
const i = r[n], s = xi(i, e);
|
3944
3922
|
if (s)
|
3945
|
-
return
|
3923
|
+
return _i(e, t, s);
|
3946
3924
|
}
|
3947
3925
|
};
|
3948
|
-
let
|
3926
|
+
let it;
|
3949
3927
|
const me = Ae({});
|
3950
|
-
function
|
3951
|
-
return
|
3928
|
+
function Ei(e) {
|
3929
|
+
return it[e] || null;
|
3952
3930
|
}
|
3953
|
-
function
|
3954
|
-
return e in
|
3931
|
+
function mr(e) {
|
3932
|
+
return e in it;
|
3955
3933
|
}
|
3956
|
-
function
|
3957
|
-
if (!
|
3934
|
+
function xi(e, t) {
|
3935
|
+
if (!mr(e))
|
3958
3936
|
return null;
|
3959
|
-
const r =
|
3960
|
-
return
|
3937
|
+
const r = Ei(e);
|
3938
|
+
return vi(r, t);
|
3961
3939
|
}
|
3962
|
-
function
|
3940
|
+
function Si(e) {
|
3963
3941
|
if (e == null)
|
3964
3942
|
return;
|
3965
3943
|
const t = Pe(e);
|
3966
3944
|
for (let r = 0; r < t.length; r++) {
|
3967
3945
|
const n = t[r];
|
3968
|
-
if (
|
3946
|
+
if (mr(n))
|
3969
3947
|
return n;
|
3970
3948
|
}
|
3971
3949
|
}
|
3972
|
-
function
|
3973
|
-
delete D[e], me.update((r) => (r[e] =
|
3950
|
+
function dr(e, ...t) {
|
3951
|
+
delete D[e], me.update((r) => (r[e] = An.all([r[e] || {}, ...t]), r));
|
3974
3952
|
}
|
3975
|
-
|
3953
|
+
ie(
|
3976
3954
|
[me],
|
3977
3955
|
([e]) => Object.keys(e)
|
3978
3956
|
);
|
3979
|
-
me.subscribe((e) =>
|
3957
|
+
me.subscribe((e) => it = e);
|
3980
3958
|
const xe = {};
|
3981
|
-
function
|
3959
|
+
function wi(e, t) {
|
3982
3960
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
3983
3961
|
}
|
3984
|
-
function
|
3962
|
+
function br(e) {
|
3985
3963
|
return xe[e];
|
3986
3964
|
}
|
3987
|
-
function
|
3965
|
+
function Ti(e) {
|
3988
3966
|
return Pe(e).map((t) => {
|
3989
|
-
const r =
|
3967
|
+
const r = br(t);
|
3990
3968
|
return [t, r ? [...r] : []];
|
3991
3969
|
}).filter(([, t]) => t.length > 0);
|
3992
3970
|
}
|
3993
|
-
function
|
3971
|
+
function tt(e) {
|
3994
3972
|
return e == null ? !1 : Pe(e).some(
|
3995
3973
|
(t) => {
|
3996
3974
|
var r;
|
3997
|
-
return (r =
|
3975
|
+
return (r = br(t)) == null ? void 0 : r.size;
|
3998
3976
|
}
|
3999
3977
|
);
|
4000
3978
|
}
|
4001
|
-
function
|
3979
|
+
function Hi(e, t) {
|
4002
3980
|
return Promise.all(
|
4003
|
-
t.map((n) => (
|
4004
|
-
).then((n) =>
|
4005
|
-
}
|
4006
|
-
const
|
4007
|
-
function
|
4008
|
-
if (!
|
4009
|
-
return e in
|
4010
|
-
const t =
|
4011
|
-
return
|
3981
|
+
t.map((n) => (wi(e, n), n().then((i) => i.default || i)))
|
3982
|
+
).then((n) => dr(e, ...n));
|
3983
|
+
}
|
3984
|
+
const oe = {};
|
3985
|
+
function pr(e) {
|
3986
|
+
if (!tt(e))
|
3987
|
+
return e in oe ? oe[e] : Promise.resolve();
|
3988
|
+
const t = Ti(e);
|
3989
|
+
return oe[e] = Promise.all(
|
4012
3990
|
t.map(
|
4013
|
-
([r, n]) =>
|
3991
|
+
([r, n]) => Hi(r, n)
|
4014
3992
|
)
|
4015
3993
|
).then(() => {
|
4016
|
-
if (
|
4017
|
-
return
|
4018
|
-
delete
|
4019
|
-
}),
|
3994
|
+
if (tt(e))
|
3995
|
+
return pr(e);
|
3996
|
+
delete oe[e];
|
3997
|
+
}), oe[e];
|
4020
3998
|
}
|
4021
|
-
const
|
3999
|
+
const Ai = {
|
4022
4000
|
number: {
|
4023
4001
|
scientific: { notation: "scientific" },
|
4024
4002
|
engineering: { notation: "engineering" },
|
@@ -4047,57 +4025,57 @@ const Oi = {
|
|
4047
4025
|
timeZoneName: "short"
|
4048
4026
|
}
|
4049
4027
|
}
|
4050
|
-
},
|
4028
|
+
}, Bi = {
|
4051
4029
|
fallbackLocale: null,
|
4052
4030
|
loadingDelay: 200,
|
4053
|
-
formats:
|
4031
|
+
formats: Ai,
|
4054
4032
|
warnOnMissingMessages: !0,
|
4055
4033
|
handleMissingMessage: void 0,
|
4056
4034
|
ignoreTag: !0
|
4057
|
-
},
|
4058
|
-
function
|
4059
|
-
return
|
4035
|
+
}, Pi = Bi;
|
4036
|
+
function te() {
|
4037
|
+
return Pi;
|
4060
4038
|
}
|
4061
|
-
const
|
4062
|
-
var
|
4039
|
+
const Fe = Ae(!1);
|
4040
|
+
var Ni = Object.defineProperty, Oi = Object.defineProperties, Li = Object.getOwnPropertyDescriptors, Bt = Object.getOwnPropertySymbols, Ii = Object.prototype.hasOwnProperty, Ci = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? Ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mi = (e, t) => {
|
4063
4041
|
for (var r in t || (t = {}))
|
4064
|
-
|
4065
|
-
if (
|
4066
|
-
for (var r of
|
4067
|
-
|
4042
|
+
Ii.call(t, r) && Pt(e, r, t[r]);
|
4043
|
+
if (Bt)
|
4044
|
+
for (var r of Bt(t))
|
4045
|
+
Ci.call(t, r) && Pt(e, r, t[r]);
|
4068
4046
|
return e;
|
4069
|
-
},
|
4070
|
-
let
|
4047
|
+
}, Ri = (e, t) => Oi(e, Li(t));
|
4048
|
+
let rt;
|
4071
4049
|
const Se = Ae(null);
|
4072
|
-
function
|
4050
|
+
function Nt(e) {
|
4073
4051
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
4074
4052
|
}
|
4075
|
-
function Pe(e, t =
|
4076
|
-
const r =
|
4077
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
4053
|
+
function Pe(e, t = te().fallbackLocale) {
|
4054
|
+
const r = Nt(e);
|
4055
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Nt(t)])] : r;
|
4078
4056
|
}
|
4079
4057
|
function V() {
|
4080
|
-
return
|
4058
|
+
return rt ?? void 0;
|
4081
4059
|
}
|
4082
4060
|
Se.subscribe((e) => {
|
4083
|
-
|
4061
|
+
rt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
4084
4062
|
});
|
4085
|
-
const
|
4086
|
-
if (e &&
|
4087
|
-
const { loadingDelay: t } =
|
4063
|
+
const Gi = (e) => {
|
4064
|
+
if (e && Si(e) && tt(e)) {
|
4065
|
+
const { loadingDelay: t } = te();
|
4088
4066
|
let r;
|
4089
4067
|
return typeof window < "u" && V() != null && t ? r = window.setTimeout(
|
4090
|
-
() =>
|
4068
|
+
() => Fe.set(!0),
|
4091
4069
|
t
|
4092
|
-
) :
|
4070
|
+
) : Fe.set(!0), pr(e).then(() => {
|
4093
4071
|
Se.set(e);
|
4094
4072
|
}).finally(() => {
|
4095
|
-
clearTimeout(r),
|
4073
|
+
clearTimeout(r), Fe.set(!1);
|
4096
4074
|
});
|
4097
4075
|
}
|
4098
4076
|
return Se.set(e);
|
4099
|
-
}, de =
|
4100
|
-
set:
|
4077
|
+
}, de = Ri(Mi({}, Se), {
|
4078
|
+
set: Gi
|
4101
4079
|
}), Ne = (e) => {
|
4102
4080
|
const t = /* @__PURE__ */ Object.create(null);
|
4103
4081
|
return (n) => {
|
@@ -4105,77 +4083,77 @@ const $i = (e) => {
|
|
4105
4083
|
return i in t ? t[i] : t[i] = e(n);
|
4106
4084
|
};
|
4107
4085
|
};
|
4108
|
-
var
|
4086
|
+
var Ui = Object.defineProperty, we = Object.getOwnPropertySymbols, gr = Object.prototype.hasOwnProperty, yr = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, st = (e, t) => {
|
4109
4087
|
for (var r in t || (t = {}))
|
4110
|
-
|
4088
|
+
gr.call(t, r) && Ot(e, r, t[r]);
|
4111
4089
|
if (we)
|
4112
4090
|
for (var r of we(t))
|
4113
|
-
|
4091
|
+
yr.call(t, r) && Ot(e, r, t[r]);
|
4114
4092
|
return e;
|
4115
|
-
},
|
4093
|
+
}, se = (e, t) => {
|
4116
4094
|
var r = {};
|
4117
4095
|
for (var n in e)
|
4118
|
-
|
4096
|
+
gr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4119
4097
|
if (e != null && we)
|
4120
4098
|
for (var n of we(e))
|
4121
|
-
t.indexOf(n) < 0 &&
|
4099
|
+
t.indexOf(n) < 0 && yr.call(e, n) && (r[n] = e[n]);
|
4122
4100
|
return r;
|
4123
4101
|
};
|
4124
|
-
const
|
4125
|
-
const { formats: r } =
|
4102
|
+
const le = (e, t) => {
|
4103
|
+
const { formats: r } = te();
|
4126
4104
|
if (e in r && t in r[e])
|
4127
4105
|
return r[e][t];
|
4128
4106
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
4129
|
-
},
|
4107
|
+
}, Di = Ne(
|
4130
4108
|
(e) => {
|
4131
|
-
var t = e, { locale: r, format: n } = t, i =
|
4109
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
4132
4110
|
if (r == null)
|
4133
4111
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
4134
|
-
return n && (i =
|
4112
|
+
return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
|
4135
4113
|
}
|
4136
|
-
),
|
4114
|
+
), Fi = Ne(
|
4137
4115
|
(e) => {
|
4138
|
-
var t = e, { locale: r, format: n } = t, i =
|
4116
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
4139
4117
|
if (r == null)
|
4140
4118
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
4141
|
-
return n ? i =
|
4119
|
+
return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
|
4142
4120
|
}
|
4143
|
-
),
|
4121
|
+
), $i = Ne(
|
4144
4122
|
(e) => {
|
4145
|
-
var t = e, { locale: r, format: n } = t, i =
|
4123
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
4146
4124
|
if (r == null)
|
4147
4125
|
throw new Error(
|
4148
4126
|
'[svelte-i18n] A "locale" must be set to format time values'
|
4149
4127
|
);
|
4150
|
-
return n ? i =
|
4128
|
+
return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
|
4151
4129
|
}
|
4152
|
-
),
|
4130
|
+
), ji = (e = {}) => {
|
4153
4131
|
var t = e, {
|
4154
4132
|
locale: r = V()
|
4155
|
-
} = t, n =
|
4133
|
+
} = t, n = se(t, [
|
4156
4134
|
"locale"
|
4157
4135
|
]);
|
4158
|
-
return
|
4159
|
-
},
|
4136
|
+
return Di(st({ locale: r }, n));
|
4137
|
+
}, ki = (e = {}) => {
|
4160
4138
|
var t = e, {
|
4161
4139
|
locale: r = V()
|
4162
|
-
} = t, n =
|
4140
|
+
} = t, n = se(t, [
|
4163
4141
|
"locale"
|
4164
4142
|
]);
|
4165
|
-
return
|
4166
|
-
},
|
4143
|
+
return Fi(st({ locale: r }, n));
|
4144
|
+
}, Vi = (e = {}) => {
|
4167
4145
|
var t = e, {
|
4168
4146
|
locale: r = V()
|
4169
|
-
} = t, n =
|
4147
|
+
} = t, n = se(t, [
|
4170
4148
|
"locale"
|
4171
4149
|
]);
|
4172
|
-
return
|
4173
|
-
},
|
4150
|
+
return $i(st({ locale: r }, n));
|
4151
|
+
}, Xi = Ne(
|
4174
4152
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
4175
|
-
(e, t = V()) => new
|
4176
|
-
ignoreTag:
|
4153
|
+
(e, t = V()) => new yi(e, t, te().formats, {
|
4154
|
+
ignoreTag: te().ignoreTag
|
4177
4155
|
})
|
4178
|
-
),
|
4156
|
+
), Wi = (e, t = {}) => {
|
4179
4157
|
var r, n, i, s;
|
4180
4158
|
let o = t;
|
4181
4159
|
typeof e == "object" && (o = e, e = o.id);
|
@@ -4188,9 +4166,9 @@ const ce = (e, t) => {
|
|
4188
4166
|
throw new Error(
|
4189
4167
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
4190
4168
|
);
|
4191
|
-
let l =
|
4169
|
+
let l = fr(e, h);
|
4192
4170
|
if (!l)
|
4193
|
-
l = (s = (i = (n = (r =
|
4171
|
+
l = (s = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
4194
4172
|
else if (typeof l != "string")
|
4195
4173
|
return console.warn(
|
4196
4174
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
@@ -4199,7 +4177,7 @@ const ce = (e, t) => {
|
|
4199
4177
|
return l;
|
4200
4178
|
let m = l;
|
4201
4179
|
try {
|
4202
|
-
m =
|
4180
|
+
m = Xi(l, h).format(a);
|
4203
4181
|
} catch (c) {
|
4204
4182
|
c instanceof Error && console.warn(
|
4205
4183
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -4207,20 +4185,20 @@ const ce = (e, t) => {
|
|
4207
4185
|
);
|
4208
4186
|
}
|
4209
4187
|
return m;
|
4210
|
-
},
|
4211
|
-
|
4212
|
-
|
4213
|
-
|
4214
|
-
|
4215
|
-
window.emWidgets = { topic:
|
4216
|
-
const
|
4217
|
-
function
|
4188
|
+
}, zi = (e, t) => Vi(t).format(e), Zi = (e, t) => ki(t).format(e), Qi = (e, t) => ji(t).format(e), Yi = (e, t = V()) => fr(e, t), qi = ie([de, me], () => Wi);
|
4189
|
+
ie([de], () => zi);
|
4190
|
+
ie([de], () => Zi);
|
4191
|
+
ie([de], () => Qi);
|
4192
|
+
ie([de, me], () => Yi);
|
4193
|
+
window.emWidgets = { topic: ln };
|
4194
|
+
const Ji = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
4195
|
+
function Ki(e, t) {
|
4218
4196
|
if (e) {
|
4219
4197
|
const r = document.createElement("style");
|
4220
4198
|
r.innerHTML = t, e.appendChild(r);
|
4221
4199
|
}
|
4222
4200
|
}
|
4223
|
-
function
|
4201
|
+
function es(e, t) {
|
4224
4202
|
const r = new URL(t);
|
4225
4203
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
4226
4204
|
const i = document.createElement("style");
|
@@ -4229,7 +4207,7 @@ function is(e, t) {
|
|
4229
4207
|
console.error("There was an error while trying to load client styling from URL", n);
|
4230
4208
|
});
|
4231
4209
|
}
|
4232
|
-
function
|
4210
|
+
function ts(e, t, r) {
|
4233
4211
|
if (window.emMessageBus) {
|
4234
4212
|
const n = document.createElement("style");
|
4235
4213
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -4237,10 +4215,10 @@ function ss(e, t, r) {
|
|
4237
4215
|
});
|
4238
4216
|
}
|
4239
4217
|
}
|
4240
|
-
function
|
4241
|
-
|
4218
|
+
function Lt(e, t) {
|
4219
|
+
dr(e, t);
|
4242
4220
|
}
|
4243
|
-
const
|
4221
|
+
const It = {
|
4244
4222
|
en: {
|
4245
4223
|
lobbyName: "Lobby",
|
4246
4224
|
myGamesName: "My games"
|
@@ -4326,14 +4304,14 @@ if (typeof window < "u") {
|
|
4326
4304
|
}
|
4327
4305
|
};
|
4328
4306
|
};
|
4329
|
-
customElements.define = e(customElements.define), import("./CasinoSlider-
|
4307
|
+
customElements.define = e(customElements.define), import("./CasinoSlider-DPIZ5CnV.js").then(({ default: t }) => {
|
4330
4308
|
!customElements.get("casino-slider") && customElements.define("casino-slider", t.element);
|
4331
4309
|
});
|
4332
4310
|
}
|
4333
|
-
function
|
4334
|
-
|
4311
|
+
function rs(e) {
|
4312
|
+
Or(e, "svelte-2g6deg", ".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}");
|
4335
4313
|
}
|
4336
|
-
function
|
4314
|
+
function ns(e) {
|
4337
4315
|
let t, r, n, i;
|
4338
4316
|
return {
|
4339
4317
|
c() {
|
@@ -4352,7 +4330,7 @@ function as(e) {
|
|
4352
4330
|
"endpoint",
|
4353
4331
|
/*endpoint*/
|
4354
4332
|
e[1]
|
4355
|
-
), _(r, "identity",
|
4333
|
+
), _(r, "identity", nt), _(
|
4356
4334
|
r,
|
4357
4335
|
"favoritesnumber",
|
4358
4336
|
/*numberOfFavoredGames*/
|
@@ -4407,10 +4385,10 @@ function as(e) {
|
|
4407
4385
|
"mygamesiconimage",
|
4408
4386
|
/*mygamesiconimage*/
|
4409
4387
|
e[11]
|
4410
|
-
),
|
4388
|
+
), fe(t, "class", "CasinoCategoriesContainer svelte-2g6deg");
|
4411
4389
|
},
|
4412
4390
|
m(s, o) {
|
4413
|
-
|
4391
|
+
ce(s, t, o), Gt(t, r), n || (i = Nr(
|
4414
4392
|
/*sendSliderData*/
|
4415
4393
|
e[17].call(null, r)
|
4416
4394
|
), n = !0);
|
@@ -4503,48 +4481,48 @@ function as(e) {
|
|
4503
4481
|
);
|
4504
4482
|
},
|
4505
4483
|
d(s) {
|
4506
|
-
s &&
|
4484
|
+
s && ne(t), n = !1, i();
|
4507
4485
|
}
|
4508
4486
|
};
|
4509
4487
|
}
|
4510
|
-
function
|
4488
|
+
function is(e) {
|
4511
4489
|
let t;
|
4512
4490
|
return {
|
4513
4491
|
c() {
|
4514
|
-
t = k("p"), t.textContent = "500 Error - Internal Server Error.",
|
4492
|
+
t = k("p"), t.textContent = "500 Error - Internal Server Error.", fe(t, "class", "SearchLoading svelte-2g6deg");
|
4515
4493
|
},
|
4516
4494
|
m(r, n) {
|
4517
|
-
|
4495
|
+
ce(r, t, n);
|
4518
4496
|
},
|
4519
4497
|
p: P,
|
4520
4498
|
d(r) {
|
4521
|
-
r &&
|
4499
|
+
r && ne(t);
|
4522
4500
|
}
|
4523
4501
|
};
|
4524
4502
|
}
|
4525
|
-
function
|
4503
|
+
function ss(e) {
|
4526
4504
|
let t;
|
4527
4505
|
return {
|
4528
4506
|
c() {
|
4529
|
-
t = k("div"),
|
4507
|
+
t = k("div"), fe(t, "class", "CasinoCategoriesLoading svelte-2g6deg");
|
4530
4508
|
},
|
4531
4509
|
m(r, n) {
|
4532
|
-
|
4510
|
+
ce(r, t, n);
|
4533
4511
|
},
|
4534
4512
|
p: P,
|
4535
4513
|
d(r) {
|
4536
|
-
r &&
|
4514
|
+
r && ne(t);
|
4537
4515
|
}
|
4538
4516
|
};
|
4539
4517
|
}
|
4540
|
-
function
|
4518
|
+
function os(e) {
|
4541
4519
|
let t;
|
4542
4520
|
function r(s, o) {
|
4543
4521
|
return (
|
4544
4522
|
/*isLoading*/
|
4545
|
-
s[13] ||
|
4523
|
+
s[13] || as || us ? ss : (
|
4546
4524
|
/*hasErrors*/
|
4547
|
-
s[15] ?
|
4525
|
+
s[15] ? is : ns
|
4548
4526
|
)
|
4549
4527
|
);
|
4550
4528
|
}
|
@@ -4554,7 +4532,7 @@ function ls(e) {
|
|
4554
4532
|
t = k("div"), i.c();
|
4555
4533
|
},
|
4556
4534
|
m(s, o) {
|
4557
|
-
|
4535
|
+
ce(s, t, o), i.m(t, null), e[27](t);
|
4558
4536
|
},
|
4559
4537
|
p(s, o) {
|
4560
4538
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
@@ -4562,51 +4540,51 @@ function ls(e) {
|
|
4562
4540
|
i: P,
|
4563
4541
|
o: P,
|
4564
4542
|
d(s) {
|
4565
|
-
s &&
|
4543
|
+
s && ne(t), i.d(), e[27](null);
|
4566
4544
|
}
|
4567
4545
|
};
|
4568
4546
|
}
|
4569
|
-
let
|
4570
|
-
function
|
4547
|
+
let nt = "CasinoSliderData", as = !1, us = !1;
|
4548
|
+
function hs(e, t, r) {
|
4571
4549
|
let n;
|
4572
|
-
|
4573
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: m = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: d = "" } = t, { activecategory: b = "" } = t, { actionevent: y = "" } = t, { sessioncheck: T = "" } = t, { location: C = "secondaryMenu" } = t, { showsubgroups: N = "false" } = t, { filteredcategories: w = "" } = t, { translationurl: O = "" } = t, { categoriesicon: L = "" } = t, { lobbyiconimage: M = "" } = t, { mygamesiconimage: E = "" } = t, { mbsource: A } = t, I, F,
|
4574
|
-
const
|
4550
|
+
Pr(e, qi, (f) => r(33, n = f));
|
4551
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: m = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: d = "" } = t, { activecategory: b = "" } = t, { actionevent: y = "" } = t, { sessioncheck: T = "" } = t, { location: C = "secondaryMenu" } = t, { showsubgroups: N = "false" } = t, { filteredcategories: w = "" } = t, { translationurl: O = "" } = t, { categoriesicon: L = "" } = t, { lobbyiconimage: M = "" } = t, { mygamesiconimage: E = "" } = t, { mbsource: A } = t, I, F, $ = !0, X, W = [], j = !1, vr = window.navigator.userAgent, R, ot, at = !1, Oe = !1;
|
4552
|
+
const _r = () => {
|
4575
4553
|
fetch(O).then((B) => B.json()).then((B) => {
|
4576
4554
|
Object.keys(B).forEach((be) => {
|
4577
|
-
|
4555
|
+
Lt(be, B[be]);
|
4578
4556
|
});
|
4579
4557
|
}).catch((B) => {
|
4580
4558
|
console.log(B);
|
4581
4559
|
});
|
4582
4560
|
};
|
4583
|
-
Object.keys(
|
4584
|
-
|
4561
|
+
Object.keys(It).forEach((f) => {
|
4562
|
+
Lt(f, It[f]);
|
4585
4563
|
});
|
4586
|
-
const
|
4587
|
-
|
4564
|
+
const Er = () => {
|
4565
|
+
at == !1 && (m == "true" || u == "true" || l == "true") && W.splice(1, 0, {
|
4588
4566
|
// @ts-ignore
|
4589
4567
|
id: "MYGAMES",
|
4590
|
-
name:
|
4568
|
+
name: I,
|
4591
4569
|
href: "",
|
4592
4570
|
games: []
|
4593
|
-
}),
|
4594
|
-
},
|
4595
|
-
if (
|
4571
|
+
}), Ur(), at = !0, r(26, Oe = !0), Le();
|
4572
|
+
}, xr = () => (i || (X = "Endpoint is missing! Please provide a valid endpointURL.", r(15, j = !0), r(13, $ = !1), console.error(X)), s || (X = "Datasource is missing! Please provide a valid datasource.", r(15, j = !0), r(13, $ = !1), console.error(X)), (!o || o.length < 2) && (X = "Language is missing! Please provide a valid language (alpha2code)", r(15, j = !0), r(13, $ = !1), console.error(X)), j), Sr = () => {
|
4573
|
+
if (I = n("myGamesName"), F = n("lobbyName"), !xr()) {
|
4596
4574
|
let f = new URL(`${i}/v1/casino/groups/${s}`);
|
4597
|
-
f.searchParams.append("datasource", s), f.searchParams.append("language", o), f.searchParams.append("platform",
|
4575
|
+
f.searchParams.append("datasource", s), f.searchParams.append("language", o), f.searchParams.append("platform", Ji(vr)), fetch(f).then((B) => B.json()).then(
|
4598
4576
|
(B) => {
|
4599
|
-
let be = w.split(","),
|
4577
|
+
let be = w.split(","), Hr = B.items.filter((ht) => {
|
4600
4578
|
let Ie = !1;
|
4601
|
-
if (
|
4602
|
-
for (let
|
4603
|
-
|
4579
|
+
if (ht.games.total > 0 && (Ie = !0, w))
|
4580
|
+
for (let Ar of be)
|
4581
|
+
ht.flags == Ar && (Ie = !1);
|
4604
4582
|
return Ie;
|
4605
4583
|
});
|
4606
|
-
W = [], W = W.concat(
|
4584
|
+
W = [], W = W.concat(Hr), W.unshift({
|
4607
4585
|
// @ts-ignore
|
4608
4586
|
id: "LOBBY",
|
4609
|
-
name:
|
4587
|
+
name: F,
|
4610
4588
|
href: "",
|
4611
4589
|
games: []
|
4612
4590
|
}), r(13, $ = !1), window.postMessage({ type: "CategoriesLoadedForSlider" }, window.location.href);
|
@@ -4618,26 +4596,26 @@ function ms(e, t, r) {
|
|
4618
4596
|
r(15, j = !0), console.error("There was an error while fetching the categories", B);
|
4619
4597
|
});
|
4620
4598
|
}
|
4621
|
-
},
|
4599
|
+
}, wr = () => {
|
4622
4600
|
let f = b.split("$");
|
4623
4601
|
r(0, b = f.length > 2 ? b.split("$").slice(0, 2).join("$") : b);
|
4624
4602
|
}, Le = () => {
|
4625
4603
|
window.postMessage(
|
4626
4604
|
{
|
4627
4605
|
type: "SliderData",
|
4628
|
-
identity:
|
4606
|
+
identity: nt,
|
4629
4607
|
data: W
|
4630
4608
|
},
|
4631
4609
|
window.location.href
|
4632
4610
|
);
|
4633
|
-
},
|
4634
|
-
f.data && f.data.type == "SliderLoaded" &&
|
4611
|
+
}, ut = (f) => {
|
4612
|
+
f.data && f.data.type == "SliderLoaded" && nt == f.data.identity && Le();
|
4635
4613
|
};
|
4636
|
-
|
4637
|
-
window.
|
4614
|
+
Gr(() => (window.addEventListener("message", ut, !1), () => {
|
4615
|
+
window.removeEventListener("message", ut);
|
4638
4616
|
}));
|
4639
|
-
function
|
4640
|
-
|
4617
|
+
function Tr(f) {
|
4618
|
+
$e[f ? "unshift" : "push"](() => {
|
4641
4619
|
R = f, r(14, R);
|
4642
4620
|
});
|
4643
4621
|
}
|
@@ -4645,14 +4623,14 @@ function ms(e, t, r) {
|
|
4645
4623
|
"endpoint" in f && r(1, i = f.endpoint), "datasource" in f && r(2, s = f.datasource), "lang" in f && r(3, o = f.lang), "userid" in f && r(18, a = f.userid), "session" in f && r(19, h = f.session), "mostplayed" in f && r(20, u = f.mostplayed), "lastplayed" in f && r(21, l = f.lastplayed), "favorites" in f && r(22, m = f.favorites), "clientstyling" in f && r(4, c = f.clientstyling), "clientstylingurl" in f && r(5, d = f.clientstylingurl), "activecategory" in f && r(0, b = f.activecategory), "actionevent" in f && r(6, y = f.actionevent), "sessioncheck" in f && r(23, T = f.sessioncheck), "location" in f && r(7, C = f.location), "showsubgroups" in f && r(8, N = f.showsubgroups), "filteredcategories" in f && r(24, w = f.filteredcategories), "translationurl" in f && r(25, O = f.translationurl), "categoriesicon" in f && r(9, L = f.categoriesicon), "lobbyiconimage" in f && r(10, M = f.lobbyiconimage), "mygamesiconimage" in f && r(11, E = f.mygamesiconimage), "mbsource" in f && r(12, A = f.mbsource);
|
4646
4624
|
}, e.$$.update = () => {
|
4647
4625
|
e.$$.dirty[0] & /*endpoint, datasource, lang*/
|
4648
|
-
14 && i && s && o &&
|
4649
|
-
7872514 && i && h && (u || l || m) && !$ &&
|
4650
|
-
67641345 && !$ && b && (!h || Oe) &&
|
4651
|
-
33554432 && O &&
|
4652
|
-
16400 && c && R &&
|
4653
|
-
16416 && d && R &&
|
4654
|
-
20480 && R &&
|
4655
|
-
}, r(16,
|
4626
|
+
14 && i && s && o && Sr(), e.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
4627
|
+
7872514 && i && h && (u || l || m) && !$ && Er(), e.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
4628
|
+
67641345 && !$ && b && (!h || Oe) && wr(), e.$$.dirty[0] & /*translationurl*/
|
4629
|
+
33554432 && O && _r(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4630
|
+
16400 && c && R && Ki(R, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4631
|
+
16416 && d && R && es(R, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
4632
|
+
20480 && R && ts(R, `${A}.Style`);
|
4633
|
+
}, r(16, ot = 0), [
|
4656
4634
|
b,
|
4657
4635
|
i,
|
4658
4636
|
s,
|
@@ -4669,7 +4647,7 @@ function ms(e, t, r) {
|
|
4669
4647
|
$,
|
4670
4648
|
R,
|
4671
4649
|
j,
|
4672
|
-
|
4650
|
+
ot,
|
4673
4651
|
Le,
|
4674
4652
|
a,
|
4675
4653
|
h,
|
@@ -4680,17 +4658,17 @@ function ms(e, t, r) {
|
|
4680
4658
|
w,
|
4681
4659
|
O,
|
4682
4660
|
Oe,
|
4683
|
-
|
4661
|
+
Tr
|
4684
4662
|
];
|
4685
4663
|
}
|
4686
|
-
class
|
4664
|
+
class ls extends zr {
|
4687
4665
|
constructor(t) {
|
4688
|
-
super(),
|
4666
|
+
super(), Xr(
|
4689
4667
|
this,
|
4690
4668
|
t,
|
4691
|
-
|
4692
|
-
|
4693
|
-
|
4669
|
+
hs,
|
4670
|
+
os,
|
4671
|
+
Mt,
|
4694
4672
|
{
|
4695
4673
|
endpoint: 1,
|
4696
4674
|
datasource: 2,
|
@@ -4714,7 +4692,7 @@ class ds extends Jr {
|
|
4714
4692
|
mygamesiconimage: 11,
|
4715
4693
|
mbsource: 12
|
4716
4694
|
},
|
4717
|
-
|
4695
|
+
rs,
|
4718
4696
|
[-1, -1]
|
4719
4697
|
);
|
4720
4698
|
}
|
@@ -4845,38 +4823,38 @@ class ds extends Jr {
|
|
4845
4823
|
this.$$set({ mbsource: t }), S();
|
4846
4824
|
}
|
4847
4825
|
}
|
4848
|
-
|
4826
|
+
Wr(ls, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
4849
4827
|
export {
|
4850
4828
|
de as $,
|
4851
|
-
|
4852
|
-
|
4853
|
-
|
4854
|
-
|
4855
|
-
|
4829
|
+
Ki as A,
|
4830
|
+
es as B,
|
4831
|
+
ts as C,
|
4832
|
+
ls as D,
|
4833
|
+
zr as S,
|
4856
4834
|
me as a,
|
4857
|
-
|
4858
|
-
|
4859
|
-
|
4860
|
-
|
4835
|
+
dr as b,
|
4836
|
+
Wr as c,
|
4837
|
+
Or as d,
|
4838
|
+
ne as e,
|
4861
4839
|
S as f,
|
4862
|
-
|
4863
|
-
|
4864
|
-
|
4865
|
-
|
4866
|
-
|
4867
|
-
|
4868
|
-
|
4840
|
+
fe as g,
|
4841
|
+
ce as h,
|
4842
|
+
Xr as i,
|
4843
|
+
Gt as j,
|
4844
|
+
k,
|
4845
|
+
bs as l,
|
4846
|
+
ms as m,
|
4869
4847
|
P as n,
|
4870
|
-
|
4871
|
-
|
4872
|
-
|
4873
|
-
|
4874
|
-
|
4875
|
-
|
4876
|
-
|
4877
|
-
|
4878
|
-
|
4879
|
-
|
4880
|
-
|
4881
|
-
|
4848
|
+
Gr as o,
|
4849
|
+
gs as p,
|
4850
|
+
ds as q,
|
4851
|
+
re as r,
|
4852
|
+
Mt as s,
|
4853
|
+
$e as t,
|
4854
|
+
vs as u,
|
4855
|
+
cs as v,
|
4856
|
+
ps as w,
|
4857
|
+
Ut as x,
|
4858
|
+
fs as y,
|
4859
|
+
ys as z
|
4882
4860
|
};
|