@everymatrix/casino-categories-slider 1.76.3 → 1.76.4
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-BtW4Mg4L.js → CasinoCategoriesSlider-Cd75GNnI.js} +895 -860
- package/components/{CasinoCategoriesSlider-DoAuYp7j.js → CasinoCategoriesSlider-OAnql1EX.js} +854 -819
- package/components/CasinoCategoriesSlider-z89U1NMp.cjs +18 -0
- package/components/{CasinoSlider-BPv4XIfS.js → CasinoSlider-By7gNNvl.js} +32 -32
- package/components/{CasinoSlider-Dy1Nt1Nx.js → CasinoSlider-DmcFGzUe.js} +33 -33
- package/components/{CasinoSlider-DxYuz2sK.cjs → CasinoSlider-rNCRbsPL.cjs} +1 -1
- 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-B1Ud52jB.cjs +0 -18
package/components/{CasinoCategoriesSlider-BtW4Mg4L.js → CasinoCategoriesSlider-Cd75GNnI.js}
RENAMED
@@ -1,28 +1,28 @@
|
|
1
1
|
function I() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function Dt(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function bt() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
|
-
function
|
10
|
-
e.forEach(
|
9
|
+
function te(e) {
|
10
|
+
e.forEach(Dt);
|
11
11
|
}
|
12
|
-
function
|
12
|
+
function at(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function $t(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 bs(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 Ir(e) {
|
23
23
|
return Object.keys(e).length === 0;
|
24
24
|
}
|
25
|
-
function
|
25
|
+
function Ft(e, ...t) {
|
26
26
|
if (e == null) {
|
27
27
|
for (const n of t)
|
28
28
|
n(void 0);
|
@@ -31,20 +31,20 @@ function Gt(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 Cr(e, t, r) {
|
35
|
+
e.$$.on_destroy.push(Ft(t, r));
|
36
36
|
}
|
37
|
-
function
|
37
|
+
function jt(e, t) {
|
38
38
|
e.appendChild(t);
|
39
39
|
}
|
40
|
-
function
|
41
|
-
const n =
|
40
|
+
function Mr(e, t, r) {
|
41
|
+
const n = Rr(e);
|
42
42
|
if (!n.getElementById(t)) {
|
43
43
|
const i = k("style");
|
44
|
-
i.id = t, i.textContent = r,
|
44
|
+
i.id = t, i.textContent = r, Gr(n, i);
|
45
45
|
}
|
46
46
|
}
|
47
|
-
function
|
47
|
+
function Rr(e) {
|
48
48
|
if (!e)
|
49
49
|
return document;
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -54,58 +54,58 @@ function Lr(e) {
|
|
54
54
|
t
|
55
55
|
) : e.ownerDocument;
|
56
56
|
}
|
57
|
-
function
|
58
|
-
return
|
57
|
+
function Gr(e, t) {
|
58
|
+
return jt(
|
59
59
|
/** @type {Document} */
|
60
60
|
e.head || e,
|
61
61
|
t
|
62
62
|
), t.sheet;
|
63
63
|
}
|
64
|
-
function
|
64
|
+
function le(e, t, r) {
|
65
65
|
e.insertBefore(t, r || null);
|
66
66
|
}
|
67
|
-
function
|
67
|
+
function re(e) {
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
69
69
|
}
|
70
|
-
function
|
70
|
+
function ps(e, t) {
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
72
72
|
e[r] && e[r].d(t);
|
73
73
|
}
|
74
74
|
function k(e) {
|
75
75
|
return document.createElement(e);
|
76
76
|
}
|
77
|
-
function
|
77
|
+
function kt(e) {
|
78
78
|
return document.createTextNode(e);
|
79
79
|
}
|
80
|
-
function
|
81
|
-
return
|
80
|
+
function ys() {
|
81
|
+
return kt(" ");
|
82
82
|
}
|
83
|
-
function
|
84
|
-
return
|
83
|
+
function gs() {
|
84
|
+
return kt("");
|
85
85
|
}
|
86
|
-
function
|
86
|
+
function vs(e, t, r, n) {
|
87
87
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
88
88
|
}
|
89
|
-
function
|
89
|
+
function _s(e) {
|
90
90
|
return function(t) {
|
91
91
|
return t.preventDefault(), e.call(this, t);
|
92
92
|
};
|
93
93
|
}
|
94
|
-
function
|
94
|
+
function ce(e, t, r) {
|
95
95
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
96
96
|
}
|
97
|
-
function
|
97
|
+
function v(e, t, r) {
|
98
98
|
const n = t.toLowerCase();
|
99
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
99
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : ce(e, t, r);
|
100
100
|
}
|
101
|
-
function
|
101
|
+
function Ur(e) {
|
102
102
|
return Array.from(e.childNodes);
|
103
103
|
}
|
104
|
-
function
|
104
|
+
function Es(e, t) {
|
105
105
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
106
106
|
t);
|
107
107
|
}
|
108
|
-
function
|
108
|
+
function Dr(e) {
|
109
109
|
const t = {};
|
110
110
|
return e.childNodes.forEach(
|
111
111
|
/** @param {Element} node */
|
@@ -114,127 +114,127 @@ function Mr(e) {
|
|
114
114
|
}
|
115
115
|
), t;
|
116
116
|
}
|
117
|
-
let
|
118
|
-
function
|
119
|
-
|
117
|
+
let ae;
|
118
|
+
function oe(e) {
|
119
|
+
ae = e;
|
120
120
|
}
|
121
|
-
function
|
122
|
-
if (!
|
121
|
+
function $r() {
|
122
|
+
if (!ae)
|
123
123
|
throw new Error("Function called outside component initialization");
|
124
|
-
return
|
124
|
+
return ae;
|
125
125
|
}
|
126
|
-
function
|
127
|
-
|
126
|
+
function Fr(e) {
|
127
|
+
$r().$$.on_mount.push(e);
|
128
128
|
}
|
129
|
-
function
|
129
|
+
function xs(e, t) {
|
130
130
|
const r = e.$$.callbacks[t.type];
|
131
131
|
r && r.slice().forEach((n) => n.call(this, t));
|
132
132
|
}
|
133
|
-
const Q = [],
|
133
|
+
const Q = [], je = [];
|
134
134
|
let Y = [];
|
135
|
-
const
|
136
|
-
let
|
137
|
-
function
|
138
|
-
|
135
|
+
const pt = [], Vt = /* @__PURE__ */ Promise.resolve();
|
136
|
+
let ke = !1;
|
137
|
+
function Xt() {
|
138
|
+
ke || (ke = !0, Vt.then(x));
|
139
139
|
}
|
140
|
-
function
|
141
|
-
return
|
140
|
+
function jr() {
|
141
|
+
return Xt(), Vt;
|
142
142
|
}
|
143
|
-
function
|
143
|
+
function Ve(e) {
|
144
144
|
Y.push(e);
|
145
145
|
}
|
146
|
-
const
|
146
|
+
const Ce = /* @__PURE__ */ new Set();
|
147
147
|
let z = 0;
|
148
|
-
function
|
148
|
+
function x() {
|
149
149
|
if (z !== 0)
|
150
150
|
return;
|
151
|
-
const e =
|
151
|
+
const e = ae;
|
152
152
|
do {
|
153
153
|
try {
|
154
154
|
for (; z < Q.length; ) {
|
155
155
|
const t = Q[z];
|
156
|
-
z++,
|
156
|
+
z++, oe(t), kr(t.$$);
|
157
157
|
}
|
158
158
|
} catch (t) {
|
159
159
|
throw Q.length = 0, z = 0, t;
|
160
160
|
}
|
161
|
-
for (
|
162
|
-
|
161
|
+
for (oe(null), Q.length = 0, z = 0; je.length; )
|
162
|
+
je.pop()();
|
163
163
|
for (let t = 0; t < Y.length; t += 1) {
|
164
164
|
const r = Y[t];
|
165
|
-
|
165
|
+
Ce.has(r) || (Ce.add(r), r());
|
166
166
|
}
|
167
167
|
Y.length = 0;
|
168
168
|
} while (Q.length);
|
169
|
-
for (;
|
170
|
-
|
171
|
-
|
169
|
+
for (; pt.length; )
|
170
|
+
pt.pop()();
|
171
|
+
ke = !1, Ce.clear(), oe(e);
|
172
172
|
}
|
173
|
-
function
|
173
|
+
function kr(e) {
|
174
174
|
if (e.fragment !== null) {
|
175
|
-
e.update(),
|
175
|
+
e.update(), te(e.before_update);
|
176
176
|
const t = e.dirty;
|
177
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
177
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
|
178
178
|
}
|
179
179
|
}
|
180
|
-
function
|
180
|
+
function Vr(e) {
|
181
181
|
const t = [], r = [];
|
182
182
|
Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
|
183
183
|
}
|
184
|
-
const
|
185
|
-
function
|
186
|
-
e && e.i && (
|
184
|
+
const Xr = /* @__PURE__ */ new Set();
|
185
|
+
function Wt(e, t) {
|
186
|
+
e && e.i && (Xr.delete(e), e.i(t));
|
187
187
|
}
|
188
|
-
function
|
188
|
+
function Ss(e) {
|
189
189
|
return e?.length !== void 0 ? e : Array.from(e);
|
190
190
|
}
|
191
|
-
function
|
191
|
+
function ws(e, t) {
|
192
192
|
e.d(1), t.delete(e.key);
|
193
193
|
}
|
194
|
-
function
|
194
|
+
function Ts(e, t, r, n, i, s, o, a, h, u, l, m) {
|
195
195
|
let c = e.length, d = s.length, b = c;
|
196
|
-
const
|
196
|
+
const g = {};
|
197
197
|
for (; b--; )
|
198
|
-
|
198
|
+
g[e[b].key] = b;
|
199
199
|
const T = [], C = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), w = [];
|
200
200
|
for (b = d; b--; ) {
|
201
|
-
const
|
201
|
+
const _ = m(i, s, b), A = r(_);
|
202
202
|
let L = o.get(A);
|
203
|
-
L ? w.push(() => L.p(
|
203
|
+
L ? w.push(() => L.p(_, t)) : (L = u(A, _), L.c()), C.set(A, T[b] = L), A in g && P.set(A, Math.abs(b - g[A]));
|
204
204
|
}
|
205
|
-
const
|
206
|
-
function M(
|
207
|
-
|
205
|
+
const O = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set();
|
206
|
+
function M(_) {
|
207
|
+
Wt(_, 1), _.m(a, l), o.set(_.key, _), l = _.first, d--;
|
208
208
|
}
|
209
209
|
for (; c && d; ) {
|
210
|
-
const
|
211
|
-
|
210
|
+
const _ = T[d - 1], A = e[c - 1], L = _.key, $ = A.key;
|
211
|
+
_ === A ? (l = _.first, c--, d--) : C.has($) ? !o.has(L) || O.has(L) ? M(_) : N.has($) ? c-- : P.get(L) > P.get($) ? (N.add(L), M(_)) : (O.add($), c--) : (h(A, o), c--);
|
212
212
|
}
|
213
213
|
for (; c--; ) {
|
214
|
-
const
|
215
|
-
C.has(
|
214
|
+
const _ = e[c];
|
215
|
+
C.has(_.key) || h(_, o);
|
216
216
|
}
|
217
217
|
for (; d; )
|
218
218
|
M(T[d - 1]);
|
219
|
-
return
|
219
|
+
return te(w), T;
|
220
220
|
}
|
221
|
-
function
|
221
|
+
function Wr(e, t, r) {
|
222
222
|
const { fragment: n, after_update: i } = e.$$;
|
223
|
-
n && n.m(t, r),
|
224
|
-
const s = e.$$.on_mount.map(
|
225
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
226
|
-
}), i.forEach(
|
223
|
+
n && n.m(t, r), Ve(() => {
|
224
|
+
const s = e.$$.on_mount.map(Dt).filter(at);
|
225
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
|
226
|
+
}), i.forEach(Ve);
|
227
227
|
}
|
228
|
-
function
|
228
|
+
function zr(e, t) {
|
229
229
|
const r = e.$$;
|
230
|
-
r.fragment !== null && (
|
230
|
+
r.fragment !== null && (Vr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
231
231
|
}
|
232
|
-
function
|
233
|
-
e.$$.dirty[0] === -1 && (Q.push(e),
|
232
|
+
function Zr(e, t) {
|
233
|
+
e.$$.dirty[0] === -1 && (Q.push(e), Xt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
234
234
|
}
|
235
|
-
function
|
236
|
-
const h =
|
237
|
-
|
235
|
+
function Qr(e, t, r, n, i, s, o = null, a = [-1]) {
|
236
|
+
const h = ae;
|
237
|
+
oe(e);
|
238
238
|
const u = e.$$ = {
|
239
239
|
fragment: null,
|
240
240
|
ctx: [],
|
@@ -242,7 +242,7 @@ function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
242
242
|
props: s,
|
243
243
|
update: I,
|
244
244
|
not_equal: i,
|
245
|
-
bound:
|
245
|
+
bound: bt(),
|
246
246
|
// lifecycle
|
247
247
|
on_mount: [],
|
248
248
|
on_destroy: [],
|
@@ -251,7 +251,7 @@ function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
251
251
|
after_update: [],
|
252
252
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
253
253
|
// everything else
|
254
|
-
callbacks:
|
254
|
+
callbacks: bt(),
|
255
255
|
dirty: a,
|
256
256
|
skip_bound: !1,
|
257
257
|
root: t.target || h.$$.root
|
@@ -260,19 +260,19 @@ function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
260
260
|
let l = !1;
|
261
261
|
if (u.ctx = r ? r(e, t.props || {}, (m, c, ...d) => {
|
262
262
|
const b = d.length ? d[0] : c;
|
263
|
-
return u.ctx && i(u.ctx[m], u.ctx[m] = b) && (!u.skip_bound && u.bound[m] && u.bound[m](b), l &&
|
264
|
-
}) : [], u.update(), l = !0,
|
263
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = b) && (!u.skip_bound && u.bound[m] && u.bound[m](b), l && Zr(e, m)), c;
|
264
|
+
}) : [], u.update(), l = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
265
265
|
if (t.hydrate) {
|
266
|
-
const m =
|
267
|
-
u.fragment && u.fragment.l(m), m.forEach(
|
266
|
+
const m = Ur(t.target);
|
267
|
+
u.fragment && u.fragment.l(m), m.forEach(re);
|
268
268
|
} else
|
269
269
|
u.fragment && u.fragment.c();
|
270
|
-
t.intro &&
|
270
|
+
t.intro && Wt(e.$$.fragment), Wr(e, t.target, t.anchor), x();
|
271
271
|
}
|
272
|
-
|
272
|
+
oe(h);
|
273
273
|
}
|
274
|
-
let
|
275
|
-
typeof HTMLElement == "function" && (
|
274
|
+
let zt;
|
275
|
+
typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
276
276
|
/** The Svelte component constructor */
|
277
277
|
$$ctor;
|
278
278
|
/** Slots */
|
@@ -314,24 +314,24 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
314
314
|
let s;
|
315
315
|
return {
|
316
316
|
c: function() {
|
317
|
-
s = k("slot"), i !== "default" &&
|
317
|
+
s = k("slot"), i !== "default" && ce(s, "name", i);
|
318
318
|
},
|
319
319
|
/**
|
320
320
|
* @param {HTMLElement} target
|
321
321
|
* @param {HTMLElement} [anchor]
|
322
322
|
*/
|
323
323
|
m: function(h, u) {
|
324
|
-
|
324
|
+
le(h, s, u);
|
325
325
|
},
|
326
326
|
d: function(h) {
|
327
|
-
h &&
|
327
|
+
h && re(s);
|
328
328
|
}
|
329
329
|
};
|
330
330
|
};
|
331
331
|
};
|
332
332
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
333
333
|
return;
|
334
|
-
const t = {}, r =
|
334
|
+
const t = {}, r = Dr(this);
|
335
335
|
for (const i of this.$$s)
|
336
336
|
i in r && (t[i] = [e(i)]);
|
337
337
|
for (const i of this.attributes) {
|
@@ -418,8 +418,8 @@ function ve(e, t, r, n) {
|
|
418
418
|
return t;
|
419
419
|
}
|
420
420
|
}
|
421
|
-
function
|
422
|
-
let o = class extends
|
421
|
+
function Yr(e, t, r, n, i, s) {
|
422
|
+
let o = class extends zt {
|
423
423
|
constructor() {
|
424
424
|
super(e, r, i), this.$$p_d = t;
|
425
425
|
}
|
@@ -447,7 +447,7 @@ function Wr(e, t, r, n, i, s) {
|
|
447
447
|
}), e.element = /** @type {any} */
|
448
448
|
o, o;
|
449
449
|
}
|
450
|
-
class
|
450
|
+
class qr {
|
451
451
|
/**
|
452
452
|
* ### PRIVATE API
|
453
453
|
*
|
@@ -466,7 +466,7 @@ class zr {
|
|
466
466
|
$$set = void 0;
|
467
467
|
/** @returns {void} */
|
468
468
|
$destroy() {
|
469
|
-
|
469
|
+
zr(this, 1), this.$destroy = I;
|
470
470
|
}
|
471
471
|
/**
|
472
472
|
* @template {Extract<keyof Events, string>} K
|
@@ -475,7 +475,7 @@ class zr {
|
|
475
475
|
* @returns {() => void}
|
476
476
|
*/
|
477
477
|
$on(t, r) {
|
478
|
-
if (!
|
478
|
+
if (!at(r))
|
479
479
|
return I;
|
480
480
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
481
481
|
return n.push(r), () => {
|
@@ -488,11 +488,11 @@ class zr {
|
|
488
488
|
* @returns {void}
|
489
489
|
*/
|
490
490
|
$set(t) {
|
491
|
-
this.$$set && !
|
491
|
+
this.$$set && !Ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
492
492
|
}
|
493
493
|
}
|
494
|
-
const
|
495
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
494
|
+
const Jr = "4";
|
495
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Jr);
|
496
496
|
/*! *****************************************************************************
|
497
497
|
Copyright (c) Microsoft Corporation.
|
498
498
|
|
@@ -507,43 +507,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
507
507
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
508
508
|
PERFORMANCE OF THIS SOFTWARE.
|
509
509
|
***************************************************************************** */
|
510
|
-
var
|
511
|
-
return
|
510
|
+
var Xe = function(e, t) {
|
511
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
512
512
|
r.__proto__ = n;
|
513
513
|
} || function(r, n) {
|
514
514
|
for (var i in n)
|
515
515
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
516
|
-
},
|
516
|
+
}, Xe(e, t);
|
517
517
|
};
|
518
|
-
function
|
518
|
+
function fe(e, t) {
|
519
519
|
if (typeof t != "function" && t !== null)
|
520
520
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
521
|
-
|
521
|
+
Xe(e, t);
|
522
522
|
function r() {
|
523
523
|
this.constructor = e;
|
524
524
|
}
|
525
525
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
526
526
|
}
|
527
|
-
|
528
|
-
return v = Object.assign || function(t) {
|
529
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
530
|
-
r = arguments[n];
|
531
|
-
for (var s in r)
|
532
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
533
|
-
}
|
534
|
-
return t;
|
535
|
-
}, v.apply(this, arguments);
|
536
|
-
};
|
537
|
-
function Qr(e, t) {
|
538
|
-
var r = {};
|
539
|
-
for (var n in e)
|
540
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
541
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
542
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
543
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
544
|
-
return r;
|
545
|
-
}
|
546
|
-
function ke(e) {
|
527
|
+
function We(e) {
|
547
528
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
548
529
|
if (r)
|
549
530
|
return r.call(e);
|
@@ -555,7 +536,7 @@ function ke(e) {
|
|
555
536
|
};
|
556
537
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
557
538
|
}
|
558
|
-
function
|
539
|
+
function ze(e, t) {
|
559
540
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
560
541
|
if (!r)
|
561
542
|
return e;
|
@@ -575,22 +556,22 @@ function Ve(e, t) {
|
|
575
556
|
}
|
576
557
|
return s;
|
577
558
|
}
|
578
|
-
function
|
579
|
-
if (
|
559
|
+
function Ze(e, t, r) {
|
560
|
+
if (arguments.length === 2)
|
580
561
|
for (var n = 0, i = t.length, s; n < i; n++)
|
581
562
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
582
563
|
return e.concat(s || t);
|
583
564
|
}
|
584
|
-
function
|
565
|
+
function U(e) {
|
585
566
|
return typeof e == "function";
|
586
567
|
}
|
587
|
-
function
|
568
|
+
function Zt(e) {
|
588
569
|
var t = function(n) {
|
589
570
|
Error.call(n), n.stack = new Error().stack;
|
590
571
|
}, r = e(t);
|
591
572
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
592
573
|
}
|
593
|
-
var
|
574
|
+
var Me = Zt(function(e) {
|
594
575
|
return function(r) {
|
595
576
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
596
577
|
` + r.map(function(n, i) {
|
@@ -599,13 +580,13 @@ var Ie = Vt(function(e) {
|
|
599
580
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
600
581
|
};
|
601
582
|
});
|
602
|
-
function
|
583
|
+
function Qe(e, t) {
|
603
584
|
if (e) {
|
604
585
|
var r = e.indexOf(t);
|
605
586
|
0 <= r && e.splice(r, 1);
|
606
587
|
}
|
607
588
|
}
|
608
|
-
var
|
589
|
+
var He = function() {
|
609
590
|
function e(t) {
|
610
591
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
611
592
|
}
|
@@ -617,12 +598,12 @@ var Te = function() {
|
|
617
598
|
if (o)
|
618
599
|
if (this._parentage = null, Array.isArray(o))
|
619
600
|
try {
|
620
|
-
for (var a =
|
601
|
+
for (var a = We(o), h = a.next(); !h.done; h = a.next()) {
|
621
602
|
var u = h.value;
|
622
603
|
u.remove(this);
|
623
604
|
}
|
624
|
-
} catch (
|
625
|
-
t = { error:
|
605
|
+
} catch (g) {
|
606
|
+
t = { error: g };
|
626
607
|
} finally {
|
627
608
|
try {
|
628
609
|
h && !h.done && (r = a.return) && r.call(a);
|
@@ -634,26 +615,26 @@ var Te = function() {
|
|
634
615
|
else
|
635
616
|
o.remove(this);
|
636
617
|
var l = this.initialTeardown;
|
637
|
-
if (
|
618
|
+
if (U(l))
|
638
619
|
try {
|
639
620
|
l();
|
640
|
-
} catch (
|
641
|
-
s =
|
621
|
+
} catch (g) {
|
622
|
+
s = g instanceof Me ? g.errors : [g];
|
642
623
|
}
|
643
624
|
var m = this._finalizers;
|
644
625
|
if (m) {
|
645
626
|
this._finalizers = null;
|
646
627
|
try {
|
647
|
-
for (var c =
|
628
|
+
for (var c = We(m), d = c.next(); !d.done; d = c.next()) {
|
648
629
|
var b = d.value;
|
649
630
|
try {
|
650
|
-
|
651
|
-
} catch (
|
652
|
-
s = s ?? [],
|
631
|
+
yt(b);
|
632
|
+
} catch (g) {
|
633
|
+
s = s ?? [], g instanceof Me ? s = Ze(Ze([], ze(s)), ze(g.errors)) : s.push(g);
|
653
634
|
}
|
654
635
|
}
|
655
|
-
} catch (
|
656
|
-
n = { error:
|
636
|
+
} catch (g) {
|
637
|
+
n = { error: g };
|
657
638
|
} finally {
|
658
639
|
try {
|
659
640
|
d && !d.done && (i = c.return) && i.call(c);
|
@@ -664,13 +645,13 @@ var Te = function() {
|
|
664
645
|
}
|
665
646
|
}
|
666
647
|
if (s)
|
667
|
-
throw new
|
648
|
+
throw new Me(s);
|
668
649
|
}
|
669
650
|
}, e.prototype.add = function(t) {
|
670
651
|
var r;
|
671
652
|
if (t && t !== this)
|
672
653
|
if (this.closed)
|
673
|
-
|
654
|
+
yt(t);
|
674
655
|
else {
|
675
656
|
if (t instanceof e) {
|
676
657
|
if (t.closed || t._hasParent(this))
|
@@ -687,56 +668,52 @@ var Te = function() {
|
|
687
668
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
688
669
|
}, e.prototype._removeParent = function(t) {
|
689
670
|
var r = this._parentage;
|
690
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
671
|
+
r === t ? this._parentage = null : Array.isArray(r) && Qe(r, t);
|
691
672
|
}, e.prototype.remove = function(t) {
|
692
673
|
var r = this._finalizers;
|
693
|
-
r &&
|
674
|
+
r && Qe(r, t), t instanceof e && t._removeParent(this);
|
694
675
|
}, e.EMPTY = function() {
|
695
676
|
var t = new e();
|
696
677
|
return t.closed = !0, t;
|
697
678
|
}(), e;
|
698
|
-
}(),
|
699
|
-
function
|
700
|
-
return e instanceof
|
701
|
-
}
|
702
|
-
function
|
703
|
-
|
704
|
-
}
|
705
|
-
var
|
706
|
-
|
707
|
-
|
708
|
-
Promise: void 0,
|
709
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
710
|
-
useDeprecatedNextContext: !1
|
711
|
-
}, qr = {
|
679
|
+
}(), Qt = He.EMPTY;
|
680
|
+
function Yt(e) {
|
681
|
+
return e instanceof He || e && "closed" in e && U(e.remove) && U(e.add) && U(e.unsubscribe);
|
682
|
+
}
|
683
|
+
function yt(e) {
|
684
|
+
U(e) ? e() : e.unsubscribe();
|
685
|
+
}
|
686
|
+
var Kr = {
|
687
|
+
Promise: void 0
|
688
|
+
}, en = {
|
712
689
|
setTimeout: function(e, t) {
|
713
690
|
for (var r = [], n = 2; n < arguments.length; n++)
|
714
691
|
r[n - 2] = arguments[n];
|
715
|
-
return setTimeout.apply(void 0,
|
692
|
+
return setTimeout.apply(void 0, Ze([e, t], ze(r)));
|
716
693
|
},
|
717
694
|
clearTimeout: function(e) {
|
718
695
|
return clearTimeout(e);
|
719
696
|
},
|
720
697
|
delegate: void 0
|
721
698
|
};
|
722
|
-
function
|
723
|
-
|
699
|
+
function tn(e) {
|
700
|
+
en.setTimeout(function() {
|
724
701
|
throw e;
|
725
702
|
});
|
726
703
|
}
|
727
|
-
function
|
704
|
+
function gt() {
|
728
705
|
}
|
729
706
|
function _e(e) {
|
730
707
|
e();
|
731
708
|
}
|
732
|
-
var
|
733
|
-
|
709
|
+
var qt = function(e) {
|
710
|
+
fe(t, e);
|
734
711
|
function t(r) {
|
735
712
|
var n = e.call(this) || this;
|
736
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
713
|
+
return n.isStopped = !1, r ? (n.destination = r, Yt(r) && r.add(n)) : n.destination = sn, n;
|
737
714
|
}
|
738
715
|
return t.create = function(r, n, i) {
|
739
|
-
return new
|
716
|
+
return new Ye(r, n, i);
|
740
717
|
}, t.prototype.next = function(r) {
|
741
718
|
this.isStopped || this._next(r);
|
742
719
|
}, t.prototype.error = function(r) {
|
@@ -760,7 +737,7 @@ var zt = function(e) {
|
|
760
737
|
this.unsubscribe();
|
761
738
|
}
|
762
739
|
}, t;
|
763
|
-
}(
|
740
|
+
}(He), rn = function() {
|
764
741
|
function e(t) {
|
765
742
|
this.partialObserver = t;
|
766
743
|
}
|
@@ -770,7 +747,7 @@ var zt = function(e) {
|
|
770
747
|
try {
|
771
748
|
r.next(t);
|
772
749
|
} catch (n) {
|
773
|
-
|
750
|
+
ye(n);
|
774
751
|
}
|
775
752
|
}, e.prototype.error = function(t) {
|
776
753
|
var r = this.partialObserver;
|
@@ -778,56 +755,56 @@ var zt = function(e) {
|
|
778
755
|
try {
|
779
756
|
r.error(t);
|
780
757
|
} catch (n) {
|
781
|
-
|
758
|
+
ye(n);
|
782
759
|
}
|
783
760
|
else
|
784
|
-
|
761
|
+
ye(t);
|
785
762
|
}, e.prototype.complete = function() {
|
786
763
|
var t = this.partialObserver;
|
787
764
|
if (t.complete)
|
788
765
|
try {
|
789
766
|
t.complete();
|
790
767
|
} catch (r) {
|
791
|
-
|
768
|
+
ye(r);
|
792
769
|
}
|
793
770
|
}, e;
|
794
|
-
}(),
|
795
|
-
|
771
|
+
}(), Ye = function(e) {
|
772
|
+
fe(t, e);
|
796
773
|
function t(r, n, i) {
|
797
774
|
var s = e.call(this) || this, o;
|
798
|
-
return
|
775
|
+
return U(r) || !r ? o = {
|
799
776
|
next: r ?? void 0,
|
800
777
|
error: n ?? void 0,
|
801
778
|
complete: i ?? void 0
|
802
|
-
} : o = r, s.destination = new
|
779
|
+
} : o = r, s.destination = new rn(o), s;
|
803
780
|
}
|
804
781
|
return t;
|
805
|
-
}(
|
806
|
-
function
|
807
|
-
|
782
|
+
}(qt);
|
783
|
+
function ye(e) {
|
784
|
+
tn(e);
|
808
785
|
}
|
809
|
-
function
|
786
|
+
function nn(e) {
|
810
787
|
throw e;
|
811
788
|
}
|
812
|
-
var
|
789
|
+
var sn = {
|
813
790
|
closed: !0,
|
814
|
-
next:
|
815
|
-
error:
|
816
|
-
complete:
|
817
|
-
},
|
791
|
+
next: gt,
|
792
|
+
error: nn,
|
793
|
+
complete: gt
|
794
|
+
}, on = function() {
|
818
795
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
819
796
|
}();
|
820
|
-
function
|
797
|
+
function an(e) {
|
821
798
|
return e;
|
822
799
|
}
|
823
|
-
function
|
824
|
-
return e.length === 0 ?
|
800
|
+
function un(e) {
|
801
|
+
return e.length === 0 ? an : e.length === 1 ? e[0] : function(r) {
|
825
802
|
return e.reduce(function(n, i) {
|
826
803
|
return i(n);
|
827
804
|
}, r);
|
828
805
|
};
|
829
806
|
}
|
830
|
-
var
|
807
|
+
var vt = function() {
|
831
808
|
function e(t) {
|
832
809
|
t && (this._subscribe = t);
|
833
810
|
}
|
@@ -835,7 +812,7 @@ var bt = function() {
|
|
835
812
|
var r = new e();
|
836
813
|
return r.source = this, r.operator = t, r;
|
837
814
|
}, e.prototype.subscribe = function(t, r, n) {
|
838
|
-
var i = this, s =
|
815
|
+
var i = this, s = ln(t) ? t : new Ye(t, r, n);
|
839
816
|
return _e(function() {
|
840
817
|
var o = i, a = o.operator, h = o.source;
|
841
818
|
s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
|
@@ -848,8 +825,8 @@ var bt = function() {
|
|
848
825
|
}
|
849
826
|
}, e.prototype.forEach = function(t, r) {
|
850
827
|
var n = this;
|
851
|
-
return r =
|
852
|
-
var o = new
|
828
|
+
return r = _t(r), new r(function(i, s) {
|
829
|
+
var o = new Ye({
|
853
830
|
next: function(a) {
|
854
831
|
try {
|
855
832
|
t(a);
|
@@ -865,15 +842,15 @@ var bt = function() {
|
|
865
842
|
}, e.prototype._subscribe = function(t) {
|
866
843
|
var r;
|
867
844
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
868
|
-
}, e.prototype[
|
845
|
+
}, e.prototype[on] = function() {
|
869
846
|
return this;
|
870
847
|
}, e.prototype.pipe = function() {
|
871
848
|
for (var t = [], r = 0; r < arguments.length; r++)
|
872
849
|
t[r] = arguments[r];
|
873
|
-
return
|
850
|
+
return un(t)(this);
|
874
851
|
}, e.prototype.toPromise = function(t) {
|
875
852
|
var r = this;
|
876
|
-
return t =
|
853
|
+
return t = _t(t), new t(function(n, i) {
|
877
854
|
var s;
|
878
855
|
r.subscribe(function(o) {
|
879
856
|
return s = o;
|
@@ -887,32 +864,32 @@ var bt = function() {
|
|
887
864
|
return new e(t);
|
888
865
|
}, e;
|
889
866
|
}();
|
890
|
-
function
|
867
|
+
function _t(e) {
|
891
868
|
var t;
|
892
|
-
return (t = e ??
|
869
|
+
return (t = e ?? Kr.Promise) !== null && t !== void 0 ? t : Promise;
|
893
870
|
}
|
894
|
-
function
|
895
|
-
return e &&
|
871
|
+
function hn(e) {
|
872
|
+
return e && U(e.next) && U(e.error) && U(e.complete);
|
896
873
|
}
|
897
|
-
function
|
898
|
-
return e && e instanceof
|
874
|
+
function ln(e) {
|
875
|
+
return e && e instanceof qt || hn(e) && Yt(e);
|
899
876
|
}
|
900
|
-
var
|
877
|
+
var cn = Zt(function(e) {
|
901
878
|
return function() {
|
902
879
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
903
880
|
};
|
904
|
-
}),
|
905
|
-
|
881
|
+
}), Jt = function(e) {
|
882
|
+
fe(t, e);
|
906
883
|
function t() {
|
907
884
|
var r = e.call(this) || this;
|
908
885
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
909
886
|
}
|
910
887
|
return t.prototype.lift = function(r) {
|
911
|
-
var n = new
|
888
|
+
var n = new Et(this, this);
|
912
889
|
return n.operator = r, n;
|
913
890
|
}, t.prototype._throwIfClosed = function() {
|
914
891
|
if (this.closed)
|
915
|
-
throw new
|
892
|
+
throw new cn();
|
916
893
|
}, t.prototype.next = function(r) {
|
917
894
|
var n = this;
|
918
895
|
_e(function() {
|
@@ -920,7 +897,7 @@ var un = Vt(function(e) {
|
|
920
897
|
if (n._throwIfClosed(), !n.isStopped) {
|
921
898
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
922
899
|
try {
|
923
|
-
for (var o =
|
900
|
+
for (var o = We(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
924
901
|
var h = a.value;
|
925
902
|
h.next(r);
|
926
903
|
}
|
@@ -969,20 +946,20 @@ var un = Vt(function(e) {
|
|
969
946
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
970
947
|
}, t.prototype._innerSubscribe = function(r) {
|
971
948
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
972
|
-
return s || o ?
|
973
|
-
n.currentObservers = null,
|
949
|
+
return s || o ? Qt : (this.currentObservers = null, a.push(r), new He(function() {
|
950
|
+
n.currentObservers = null, Qe(a, r);
|
974
951
|
}));
|
975
952
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
976
953
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
977
954
|
i ? r.error(s) : o && r.complete();
|
978
955
|
}, t.prototype.asObservable = function() {
|
979
|
-
var r = new
|
956
|
+
var r = new vt();
|
980
957
|
return r.source = this, r;
|
981
958
|
}, t.create = function(r, n) {
|
982
|
-
return new
|
959
|
+
return new Et(r, n);
|
983
960
|
}, t;
|
984
|
-
}(
|
985
|
-
|
961
|
+
}(vt), Et = function(e) {
|
962
|
+
fe(t, e);
|
986
963
|
function t(r, n) {
|
987
964
|
var i = e.call(this) || this;
|
988
965
|
return i.destination = r, i.source = n, i;
|
@@ -998,17 +975,17 @@ var un = Vt(function(e) {
|
|
998
975
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
999
976
|
}, t.prototype._subscribe = function(r) {
|
1000
977
|
var n, i;
|
1001
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
978
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Qt;
|
1002
979
|
}, t;
|
1003
|
-
}(
|
980
|
+
}(Jt), Kt = {
|
1004
981
|
now: function() {
|
1005
|
-
return (
|
982
|
+
return (Kt.delegate || Date).now();
|
1006
983
|
},
|
1007
984
|
delegate: void 0
|
1008
|
-
},
|
1009
|
-
|
985
|
+
}, fn = function(e) {
|
986
|
+
fe(t, e);
|
1010
987
|
function t(r, n, i) {
|
1011
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
988
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Kt);
|
1012
989
|
var s = e.call(this) || this;
|
1013
990
|
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;
|
1014
991
|
}
|
@@ -1028,24 +1005,24 @@ var un = Vt(function(e) {
|
|
1028
1005
|
u && s.splice(0, u + 1);
|
1029
1006
|
}
|
1030
1007
|
}, t;
|
1031
|
-
}(
|
1032
|
-
const
|
1033
|
-
if (
|
1034
|
-
const r = new
|
1035
|
-
|
1008
|
+
}(Jt);
|
1009
|
+
const xt = [], St = {}, mn = (e, t = 0) => {
|
1010
|
+
if (xt.indexOf(e) == -1) {
|
1011
|
+
const r = new fn(t);
|
1012
|
+
St[e] = r, xt.push(e);
|
1036
1013
|
}
|
1037
|
-
return
|
1014
|
+
return St[e];
|
1038
1015
|
}, Z = [];
|
1039
|
-
function
|
1016
|
+
function dn(e, t) {
|
1040
1017
|
return {
|
1041
|
-
subscribe:
|
1018
|
+
subscribe: Ae(e, t).subscribe
|
1042
1019
|
};
|
1043
1020
|
}
|
1044
|
-
function
|
1021
|
+
function Ae(e, t = I) {
|
1045
1022
|
let r;
|
1046
1023
|
const n = /* @__PURE__ */ new Set();
|
1047
1024
|
function i(a) {
|
1048
|
-
if (
|
1025
|
+
if ($t(e, a) && (e = a, r)) {
|
1049
1026
|
const h = !Z.length;
|
1050
1027
|
for (const u of n)
|
1051
1028
|
u[1](), Z.push(u, e);
|
@@ -1067,12 +1044,12 @@ function He(e, t = I) {
|
|
1067
1044
|
}
|
1068
1045
|
return { set: i, update: s, subscribe: o };
|
1069
1046
|
}
|
1070
|
-
function
|
1047
|
+
function ne(e, t, r) {
|
1071
1048
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
1072
1049
|
if (!i.every(Boolean))
|
1073
1050
|
throw new Error("derived() expects stores as input, got a falsy value");
|
1074
1051
|
const s = t.length < 2;
|
1075
|
-
return
|
1052
|
+
return dn(r, (o, a) => {
|
1076
1053
|
let h = !1;
|
1077
1054
|
const u = [];
|
1078
1055
|
let l = 0, m = I;
|
@@ -1081,131 +1058,170 @@ function ie(e, t, r) {
|
|
1081
1058
|
return;
|
1082
1059
|
m();
|
1083
1060
|
const b = t(n ? u[0] : u, o, a);
|
1084
|
-
s ? o(b) : m =
|
1061
|
+
s ? o(b) : m = at(b) ? b : I;
|
1085
1062
|
}, d = i.map(
|
1086
|
-
(b,
|
1063
|
+
(b, g) => Ft(
|
1087
1064
|
b,
|
1088
1065
|
(T) => {
|
1089
|
-
u[
|
1066
|
+
u[g] = T, l &= ~(1 << g), h && c();
|
1090
1067
|
},
|
1091
1068
|
() => {
|
1092
|
-
l |= 1 <<
|
1069
|
+
l |= 1 << g;
|
1093
1070
|
}
|
1094
1071
|
)
|
1095
1072
|
);
|
1096
1073
|
return h = !0, c(), function() {
|
1097
|
-
|
1074
|
+
te(d), m(), h = !1;
|
1098
1075
|
};
|
1099
1076
|
});
|
1100
1077
|
}
|
1101
|
-
function
|
1102
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1078
|
+
function bn(e) {
|
1079
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1103
1080
|
}
|
1104
|
-
var
|
1105
|
-
return
|
1081
|
+
var pn = function(t) {
|
1082
|
+
return yn(t) && !gn(t);
|
1106
1083
|
};
|
1107
|
-
function
|
1084
|
+
function yn(e) {
|
1108
1085
|
return !!e && typeof e == "object";
|
1109
1086
|
}
|
1110
|
-
function
|
1087
|
+
function gn(e) {
|
1111
1088
|
var t = Object.prototype.toString.call(e);
|
1112
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
1089
|
+
return t === "[object RegExp]" || t === "[object Date]" || En(e);
|
1113
1090
|
}
|
1114
|
-
var
|
1115
|
-
function
|
1116
|
-
return e.$$typeof ===
|
1091
|
+
var vn = typeof Symbol == "function" && Symbol.for, _n = vn ? Symbol.for("react.element") : 60103;
|
1092
|
+
function En(e) {
|
1093
|
+
return e.$$typeof === _n;
|
1117
1094
|
}
|
1118
|
-
function
|
1095
|
+
function xn(e) {
|
1119
1096
|
return Array.isArray(e) ? [] : {};
|
1120
1097
|
}
|
1121
|
-
function
|
1122
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
1098
|
+
function ue(e, t) {
|
1099
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? q(xn(e), e, t) : e;
|
1123
1100
|
}
|
1124
|
-
function
|
1101
|
+
function Sn(e, t, r) {
|
1125
1102
|
return e.concat(t).map(function(n) {
|
1126
|
-
return
|
1103
|
+
return ue(n, r);
|
1127
1104
|
});
|
1128
1105
|
}
|
1129
|
-
function
|
1106
|
+
function wn(e, t) {
|
1130
1107
|
if (!t.customMerge)
|
1131
|
-
return
|
1108
|
+
return q;
|
1132
1109
|
var r = t.customMerge(e);
|
1133
|
-
return typeof r == "function" ? r :
|
1110
|
+
return typeof r == "function" ? r : q;
|
1134
1111
|
}
|
1135
|
-
function
|
1112
|
+
function Tn(e) {
|
1136
1113
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
1137
1114
|
return Object.propertyIsEnumerable.call(e, t);
|
1138
1115
|
}) : [];
|
1139
1116
|
}
|
1140
|
-
function
|
1141
|
-
return Object.keys(e).concat(
|
1117
|
+
function wt(e) {
|
1118
|
+
return Object.keys(e).concat(Tn(e));
|
1142
1119
|
}
|
1143
|
-
function
|
1120
|
+
function er(e, t) {
|
1144
1121
|
try {
|
1145
1122
|
return t in e;
|
1146
1123
|
} catch {
|
1147
1124
|
return !1;
|
1148
1125
|
}
|
1149
1126
|
}
|
1150
|
-
function
|
1151
|
-
return
|
1127
|
+
function Hn(e, t) {
|
1128
|
+
return er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
1152
1129
|
}
|
1153
|
-
function
|
1130
|
+
function An(e, t, r) {
|
1154
1131
|
var n = {};
|
1155
|
-
return r.isMergeableObject(e) &&
|
1156
|
-
n[i] =
|
1157
|
-
}),
|
1158
|
-
|
1132
|
+
return r.isMergeableObject(e) && wt(e).forEach(function(i) {
|
1133
|
+
n[i] = ue(e[i], r);
|
1134
|
+
}), wt(t).forEach(function(i) {
|
1135
|
+
Hn(e, i) || (er(e, i) && r.isMergeableObject(t[i]) ? n[i] = wn(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
|
1159
1136
|
}), n;
|
1160
1137
|
}
|
1161
|
-
function
|
1162
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
1138
|
+
function q(e, t, r) {
|
1139
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Sn, r.isMergeableObject = r.isMergeableObject || pn, r.cloneUnlessOtherwiseSpecified = ue;
|
1163
1140
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
1164
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
1141
|
+
return s ? n ? r.arrayMerge(e, t, r) : An(e, t, r) : ue(t, r);
|
1165
1142
|
}
|
1166
|
-
|
1143
|
+
q.all = function(t, r) {
|
1167
1144
|
if (!Array.isArray(t))
|
1168
1145
|
throw new Error("first argument should be an array");
|
1169
1146
|
return t.reduce(function(n, i) {
|
1170
|
-
return
|
1147
|
+
return q(n, i, r);
|
1171
1148
|
}, {});
|
1172
1149
|
};
|
1173
|
-
var
|
1174
|
-
const
|
1175
|
-
function
|
1176
|
-
|
1150
|
+
var Bn = q, Pn = Bn;
|
1151
|
+
const On = /* @__PURE__ */ bn(Pn);
|
1152
|
+
var qe = function(e, t) {
|
1153
|
+
return qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
1154
|
+
r.__proto__ = n;
|
1155
|
+
} || function(r, n) {
|
1156
|
+
for (var i in n)
|
1157
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
1158
|
+
}, qe(e, t);
|
1159
|
+
};
|
1160
|
+
function Be(e, t) {
|
1161
|
+
if (typeof t != "function" && t !== null)
|
1162
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
1163
|
+
qe(e, t);
|
1164
|
+
function r() {
|
1165
|
+
this.constructor = e;
|
1166
|
+
}
|
1167
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
1168
|
+
}
|
1169
|
+
var R = function() {
|
1170
|
+
return R = Object.assign || function(t) {
|
1171
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
1172
|
+
r = arguments[n];
|
1173
|
+
for (var s in r)
|
1174
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
1175
|
+
}
|
1176
|
+
return t;
|
1177
|
+
}, R.apply(this, arguments);
|
1178
|
+
};
|
1179
|
+
function Nn(e, t) {
|
1180
|
+
var r = {};
|
1181
|
+
for (var n in e)
|
1182
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
1183
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
1184
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
1185
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
1186
|
+
return r;
|
1187
|
+
}
|
1188
|
+
function Re(e, t, r) {
|
1189
|
+
if (r || arguments.length === 2)
|
1190
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
1191
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
1192
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
1193
|
+
}
|
1194
|
+
function Ge(e, t) {
|
1195
|
+
var r = t && t.cache ? t.cache : Un, n = t && t.serializer ? t.serializer : Rn, i = t && t.strategy ? t.strategy : Cn;
|
1177
1196
|
return i(e, {
|
1178
1197
|
cache: r,
|
1179
1198
|
serializer: n
|
1180
1199
|
});
|
1181
1200
|
}
|
1182
|
-
function
|
1201
|
+
function Ln(e) {
|
1183
1202
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
1184
1203
|
}
|
1185
|
-
function
|
1186
|
-
var i =
|
1204
|
+
function In(e, t, r, n) {
|
1205
|
+
var i = Ln(n) ? n : r(n), s = t.get(i);
|
1187
1206
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
1188
1207
|
}
|
1189
|
-
function
|
1208
|
+
function tr(e, t, r) {
|
1190
1209
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
1191
1210
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
1192
1211
|
}
|
1193
|
-
function
|
1212
|
+
function rr(e, t, r, n, i) {
|
1194
1213
|
return r.bind(t, e, n, i);
|
1195
1214
|
}
|
1196
|
-
function
|
1197
|
-
var r = e.length === 1 ?
|
1198
|
-
return
|
1215
|
+
function Cn(e, t) {
|
1216
|
+
var r = e.length === 1 ? In : tr;
|
1217
|
+
return rr(e, this, r, t.cache.create(), t.serializer);
|
1199
1218
|
}
|
1200
|
-
function
|
1201
|
-
return
|
1202
|
-
}
|
1203
|
-
function On(e, t) {
|
1204
|
-
return nt(e, this, qt, t.cache.create(), t.serializer);
|
1219
|
+
function Mn(e, t) {
|
1220
|
+
return rr(e, this, tr, t.cache.create(), t.serializer);
|
1205
1221
|
}
|
1206
|
-
var
|
1222
|
+
var Rn = function() {
|
1207
1223
|
return JSON.stringify(arguments);
|
1208
|
-
},
|
1224
|
+
}, Gn = (
|
1209
1225
|
/** @class */
|
1210
1226
|
function() {
|
1211
1227
|
function e() {
|
@@ -1217,62 +1233,71 @@ var Ln = function() {
|
|
1217
1233
|
this.cache[t] = r;
|
1218
1234
|
}, e;
|
1219
1235
|
}()
|
1220
|
-
),
|
1236
|
+
), Un = {
|
1221
1237
|
create: function() {
|
1222
|
-
return new
|
1238
|
+
return new Gn();
|
1223
1239
|
}
|
1224
|
-
},
|
1225
|
-
variadic:
|
1226
|
-
|
1227
|
-
|
1240
|
+
}, Ue = {
|
1241
|
+
variadic: Mn
|
1242
|
+
}, Se = function() {
|
1243
|
+
return Se = Object.assign || function(t) {
|
1244
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
1245
|
+
r = arguments[n];
|
1246
|
+
for (var s in r)
|
1247
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
1248
|
+
}
|
1249
|
+
return t;
|
1250
|
+
}, Se.apply(this, arguments);
|
1251
|
+
};
|
1252
|
+
var p;
|
1228
1253
|
(function(e) {
|
1229
1254
|
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";
|
1230
1255
|
})(p || (p = {}));
|
1231
|
-
var
|
1256
|
+
var E;
|
1232
1257
|
(function(e) {
|
1233
1258
|
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";
|
1234
|
-
})(
|
1235
|
-
var
|
1259
|
+
})(E || (E = {}));
|
1260
|
+
var J;
|
1236
1261
|
(function(e) {
|
1237
1262
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
1238
|
-
})(
|
1239
|
-
function
|
1240
|
-
return e.type ===
|
1263
|
+
})(J || (J = {}));
|
1264
|
+
function Tt(e) {
|
1265
|
+
return e.type === E.literal;
|
1241
1266
|
}
|
1242
|
-
function
|
1243
|
-
return e.type ===
|
1267
|
+
function Dn(e) {
|
1268
|
+
return e.type === E.argument;
|
1244
1269
|
}
|
1245
|
-
function
|
1246
|
-
return e.type ===
|
1270
|
+
function nr(e) {
|
1271
|
+
return e.type === E.number;
|
1247
1272
|
}
|
1248
|
-
function
|
1249
|
-
return e.type ===
|
1273
|
+
function ir(e) {
|
1274
|
+
return e.type === E.date;
|
1250
1275
|
}
|
1251
|
-
function
|
1252
|
-
return e.type ===
|
1276
|
+
function sr(e) {
|
1277
|
+
return e.type === E.time;
|
1253
1278
|
}
|
1254
|
-
function
|
1255
|
-
return e.type ===
|
1279
|
+
function or(e) {
|
1280
|
+
return e.type === E.select;
|
1256
1281
|
}
|
1257
|
-
function
|
1258
|
-
return e.type ===
|
1282
|
+
function ar(e) {
|
1283
|
+
return e.type === E.plural;
|
1259
1284
|
}
|
1260
|
-
function
|
1261
|
-
return e.type ===
|
1285
|
+
function $n(e) {
|
1286
|
+
return e.type === E.pound;
|
1262
1287
|
}
|
1263
|
-
function
|
1264
|
-
return e.type ===
|
1288
|
+
function ur(e) {
|
1289
|
+
return e.type === E.tag;
|
1265
1290
|
}
|
1266
|
-
function
|
1267
|
-
return !!(e && typeof e == "object" && e.type ===
|
1291
|
+
function hr(e) {
|
1292
|
+
return !!(e && typeof e == "object" && e.type === J.number);
|
1268
1293
|
}
|
1269
|
-
function
|
1270
|
-
return !!(e && typeof e == "object" && e.type ===
|
1294
|
+
function Je(e) {
|
1295
|
+
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
1271
1296
|
}
|
1272
|
-
var
|
1273
|
-
function
|
1297
|
+
var lr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Fn = /(?:[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;
|
1298
|
+
function jn(e) {
|
1274
1299
|
var t = {};
|
1275
|
-
return e.replace(
|
1300
|
+
return e.replace(Fn, function(r) {
|
1276
1301
|
var n = r.length;
|
1277
1302
|
switch (r[0]) {
|
1278
1303
|
case "G":
|
@@ -1361,11 +1386,21 @@ function Un(e) {
|
|
1361
1386
|
return "";
|
1362
1387
|
}), t;
|
1363
1388
|
}
|
1364
|
-
var
|
1365
|
-
function
|
1389
|
+
var S = function() {
|
1390
|
+
return S = Object.assign || function(t) {
|
1391
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
1392
|
+
r = arguments[n];
|
1393
|
+
for (var s in r)
|
1394
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
1395
|
+
}
|
1396
|
+
return t;
|
1397
|
+
}, S.apply(this, arguments);
|
1398
|
+
};
|
1399
|
+
var kn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
1400
|
+
function Vn(e) {
|
1366
1401
|
if (e.length === 0)
|
1367
1402
|
throw new Error("Number skeleton cannot be empty");
|
1368
|
-
for (var t = e.split(
|
1403
|
+
for (var t = e.split(kn).filter(function(c) {
|
1369
1404
|
return c.length > 0;
|
1370
1405
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
1371
1406
|
var s = i[n], o = s.split("/");
|
@@ -1380,17 +1415,17 @@ function Fn(e) {
|
|
1380
1415
|
}
|
1381
1416
|
return r;
|
1382
1417
|
}
|
1383
|
-
function
|
1418
|
+
function Xn(e) {
|
1384
1419
|
return e.replace(/^(.*?)-/, "");
|
1385
1420
|
}
|
1386
|
-
var
|
1387
|
-
function
|
1421
|
+
var Ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, cr = /^(@+)?(\+|#+)?[rs]?$/g, Wn = /(\*)(0+)|(#+)(0+)|(0+)/g, fr = /^(0+)$/;
|
1422
|
+
function At(e) {
|
1388
1423
|
var t = {};
|
1389
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
1424
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(cr, function(r, n, i) {
|
1390
1425
|
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)), "";
|
1391
1426
|
}), t;
|
1392
1427
|
}
|
1393
|
-
function
|
1428
|
+
function mr(e) {
|
1394
1429
|
switch (e) {
|
1395
1430
|
case "sign-auto":
|
1396
1431
|
return {
|
@@ -1430,7 +1465,7 @@ function hr(e) {
|
|
1430
1465
|
};
|
1431
1466
|
}
|
1432
1467
|
}
|
1433
|
-
function
|
1468
|
+
function zn(e) {
|
1434
1469
|
var t;
|
1435
1470
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
1436
1471
|
notation: "engineering"
|
@@ -1438,17 +1473,17 @@ function kn(e) {
|
|
1438
1473
|
notation: "scientific"
|
1439
1474
|
}, e = e.slice(1)), t) {
|
1440
1475
|
var r = e.slice(0, 2);
|
1441
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
1476
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !fr.test(e))
|
1442
1477
|
throw new Error("Malformed concise eng/scientific notation");
|
1443
1478
|
t.minimumIntegerDigits = e.length;
|
1444
1479
|
}
|
1445
1480
|
return t;
|
1446
1481
|
}
|
1447
|
-
function
|
1448
|
-
var t = {}, r =
|
1482
|
+
function Bt(e) {
|
1483
|
+
var t = {}, r = mr(e);
|
1449
1484
|
return r || t;
|
1450
1485
|
}
|
1451
|
-
function
|
1486
|
+
function Zn(e) {
|
1452
1487
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
1453
1488
|
var i = n[r];
|
1454
1489
|
switch (i.stem) {
|
@@ -1472,7 +1507,7 @@ function Vn(e) {
|
|
1472
1507
|
continue;
|
1473
1508
|
case "measure-unit":
|
1474
1509
|
case "unit":
|
1475
|
-
t.style = "unit", t.unit =
|
1510
|
+
t.style = "unit", t.unit = Xn(i.options[0]);
|
1476
1511
|
continue;
|
1477
1512
|
case "compact-short":
|
1478
1513
|
case "K":
|
@@ -1483,13 +1518,13 @@ function Vn(e) {
|
|
1483
1518
|
t.notation = "compact", t.compactDisplay = "long";
|
1484
1519
|
continue;
|
1485
1520
|
case "scientific":
|
1486
|
-
t =
|
1487
|
-
return
|
1521
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
1522
|
+
return S(S({}, h), Bt(u));
|
1488
1523
|
}, {}));
|
1489
1524
|
continue;
|
1490
1525
|
case "engineering":
|
1491
|
-
t =
|
1492
|
-
return
|
1526
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
1527
|
+
return S(S({}, h), Bt(u));
|
1493
1528
|
}, {}));
|
1494
1529
|
continue;
|
1495
1530
|
case "notation-simple":
|
@@ -1534,7 +1569,7 @@ function Vn(e) {
|
|
1534
1569
|
case "integer-width":
|
1535
1570
|
if (i.options.length > 1)
|
1536
1571
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1537
|
-
i.options[0].replace(
|
1572
|
+
i.options[0].replace(Wn, function(h, u, l, m, c, d) {
|
1538
1573
|
if (u)
|
1539
1574
|
t.minimumIntegerDigits = l.length;
|
1540
1575
|
else {
|
@@ -1547,32 +1582,32 @@ function Vn(e) {
|
|
1547
1582
|
});
|
1548
1583
|
continue;
|
1549
1584
|
}
|
1550
|
-
if (
|
1585
|
+
if (fr.test(i.stem)) {
|
1551
1586
|
t.minimumIntegerDigits = i.stem.length;
|
1552
1587
|
continue;
|
1553
1588
|
}
|
1554
|
-
if (
|
1589
|
+
if (Ht.test(i.stem)) {
|
1555
1590
|
if (i.options.length > 1)
|
1556
1591
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1557
|
-
i.stem.replace(
|
1592
|
+
i.stem.replace(Ht, function(h, u, l, m, c, d) {
|
1558
1593
|
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), "";
|
1559
1594
|
});
|
1560
1595
|
var s = i.options[0];
|
1561
|
-
s === "w" ? t =
|
1596
|
+
s === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = S(S({}, t), At(s)));
|
1562
1597
|
continue;
|
1563
1598
|
}
|
1564
|
-
if (
|
1565
|
-
t =
|
1599
|
+
if (cr.test(i.stem)) {
|
1600
|
+
t = S(S({}, t), At(i.stem));
|
1566
1601
|
continue;
|
1567
1602
|
}
|
1568
|
-
var o =
|
1569
|
-
o && (t =
|
1570
|
-
var a =
|
1571
|
-
a && (t =
|
1603
|
+
var o = mr(i.stem);
|
1604
|
+
o && (t = S(S({}, t), o));
|
1605
|
+
var a = zn(i.stem);
|
1606
|
+
a && (t = S(S({}, t), a));
|
1572
1607
|
}
|
1573
1608
|
return t;
|
1574
1609
|
}
|
1575
|
-
var
|
1610
|
+
var ge = {
|
1576
1611
|
"001": [
|
1577
1612
|
"H",
|
1578
1613
|
"h"
|
@@ -2987,13 +3022,13 @@ var ye = {
|
|
2987
3022
|
"h"
|
2988
3023
|
]
|
2989
3024
|
};
|
2990
|
-
function
|
3025
|
+
function Qn(e, t) {
|
2991
3026
|
for (var r = "", n = 0; n < e.length; n++) {
|
2992
3027
|
var i = e.charAt(n);
|
2993
3028
|
if (i === "j") {
|
2994
3029
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2995
3030
|
s++, n++;
|
2996
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
3031
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Yn(t);
|
2997
3032
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
2998
3033
|
r += h;
|
2999
3034
|
for (; o-- > 0; )
|
@@ -3003,7 +3038,7 @@ function Xn(e, t) {
|
|
3003
3038
|
}
|
3004
3039
|
return r;
|
3005
3040
|
}
|
3006
|
-
function
|
3041
|
+
function Yn(e) {
|
3007
3042
|
var t = e.hourCycle;
|
3008
3043
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
3009
3044
|
e.hourCycles && // @ts-ignore
|
@@ -3022,23 +3057,23 @@ function Wn(e) {
|
|
3022
3057
|
}
|
3023
3058
|
var r = e.language, n;
|
3024
3059
|
r !== "root" && (n = e.maximize().region);
|
3025
|
-
var i =
|
3060
|
+
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
3026
3061
|
return i[0];
|
3027
3062
|
}
|
3028
|
-
var
|
3029
|
-
function
|
3063
|
+
var De, qn = new RegExp("^".concat(lr.source, "*")), Jn = new RegExp("".concat(lr.source, "*$"));
|
3064
|
+
function y(e, t) {
|
3030
3065
|
return { start: e, end: t };
|
3031
3066
|
}
|
3032
|
-
var
|
3067
|
+
var Kn = !!String.prototype.startsWith && "_a".startsWith("a", 1), ei = !!String.fromCodePoint, ti = !!Object.fromEntries, ri = !!String.prototype.codePointAt, ni = !!String.prototype.trimStart, ii = !!String.prototype.trimEnd, si = !!Number.isSafeInteger, oi = si ? Number.isSafeInteger : function(e) {
|
3033
3068
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
3034
|
-
},
|
3069
|
+
}, Ke = !0;
|
3035
3070
|
try {
|
3036
|
-
var
|
3037
|
-
|
3071
|
+
var ai = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3072
|
+
Ke = ((De = ai.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
|
3038
3073
|
} catch {
|
3039
|
-
|
3074
|
+
Ke = !1;
|
3040
3075
|
}
|
3041
|
-
var
|
3076
|
+
var Pt = Kn ? (
|
3042
3077
|
// Native
|
3043
3078
|
function(t, r, n) {
|
3044
3079
|
return t.startsWith(r, n);
|
@@ -3048,7 +3083,7 @@ var Tt = Qn ? (
|
|
3048
3083
|
function(t, r, n) {
|
3049
3084
|
return t.slice(n, n + r.length) === r;
|
3050
3085
|
}
|
3051
|
-
),
|
3086
|
+
), et = ei ? String.fromCodePoint : (
|
3052
3087
|
// IE11
|
3053
3088
|
function() {
|
3054
3089
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -3060,9 +3095,9 @@ var Tt = Qn ? (
|
|
3060
3095
|
}
|
3061
3096
|
return n;
|
3062
3097
|
}
|
3063
|
-
),
|
3098
|
+
), Ot = (
|
3064
3099
|
// native
|
3065
|
-
|
3100
|
+
ti ? Object.fromEntries : (
|
3066
3101
|
// Ponyfill
|
3067
3102
|
function(t) {
|
3068
3103
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -3072,7 +3107,7 @@ var Tt = Qn ? (
|
|
3072
3107
|
return r;
|
3073
3108
|
}
|
3074
3109
|
)
|
3075
|
-
),
|
3110
|
+
), dr = ri ? (
|
3076
3111
|
// Native
|
3077
3112
|
function(t, r) {
|
3078
3113
|
return t.codePointAt(r);
|
@@ -3086,7 +3121,7 @@ var Tt = Qn ? (
|
|
3086
3121
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
3087
3122
|
}
|
3088
3123
|
}
|
3089
|
-
),
|
3124
|
+
), ui = ni ? (
|
3090
3125
|
// Native
|
3091
3126
|
function(t) {
|
3092
3127
|
return t.trimStart();
|
@@ -3094,9 +3129,9 @@ var Tt = Qn ? (
|
|
3094
3129
|
) : (
|
3095
3130
|
// Ponyfill
|
3096
3131
|
function(t) {
|
3097
|
-
return t.replace(
|
3132
|
+
return t.replace(qn, "");
|
3098
3133
|
}
|
3099
|
-
),
|
3134
|
+
), hi = ii ? (
|
3100
3135
|
// Native
|
3101
3136
|
function(t) {
|
3102
3137
|
return t.trimEnd();
|
@@ -3104,32 +3139,32 @@ var Tt = Qn ? (
|
|
3104
3139
|
) : (
|
3105
3140
|
// Ponyfill
|
3106
3141
|
function(t) {
|
3107
|
-
return t.replace(
|
3142
|
+
return t.replace(Jn, "");
|
3108
3143
|
}
|
3109
3144
|
);
|
3110
|
-
function
|
3145
|
+
function br(e, t) {
|
3111
3146
|
return new RegExp(e, t);
|
3112
3147
|
}
|
3113
|
-
var
|
3114
|
-
if (
|
3115
|
-
var
|
3116
|
-
|
3148
|
+
var tt;
|
3149
|
+
if (Ke) {
|
3150
|
+
var Nt = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3151
|
+
tt = function(t, r) {
|
3117
3152
|
var n;
|
3118
|
-
|
3119
|
-
var i =
|
3153
|
+
Nt.lastIndex = r;
|
3154
|
+
var i = Nt.exec(t);
|
3120
3155
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
3121
3156
|
};
|
3122
3157
|
} else
|
3123
|
-
|
3158
|
+
tt = function(t, r) {
|
3124
3159
|
for (var n = []; ; ) {
|
3125
|
-
var i =
|
3126
|
-
if (i === void 0 ||
|
3160
|
+
var i = dr(t, r);
|
3161
|
+
if (i === void 0 || pr(i) || mi(i))
|
3127
3162
|
break;
|
3128
3163
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
3129
3164
|
}
|
3130
|
-
return
|
3165
|
+
return et.apply(void 0, n);
|
3131
3166
|
};
|
3132
|
-
var
|
3167
|
+
var li = (
|
3133
3168
|
/** @class */
|
3134
3169
|
function() {
|
3135
3170
|
function e(t, r) {
|
@@ -3153,14 +3188,14 @@ var oi = (
|
|
3153
3188
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
3154
3189
|
var a = this.clonePosition();
|
3155
3190
|
this.bump(), i.push({
|
3156
|
-
type:
|
3157
|
-
location:
|
3191
|
+
type: E.pound,
|
3192
|
+
location: y(a, this.clonePosition())
|
3158
3193
|
});
|
3159
3194
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
3160
3195
|
if (n)
|
3161
3196
|
break;
|
3162
|
-
return this.error(p.UNMATCHED_CLOSING_TAG,
|
3163
|
-
} else if (s === 60 && !this.ignoreTag &&
|
3197
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
3198
|
+
} else if (s === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
|
3164
3199
|
var o = this.parseTag(t, r);
|
3165
3200
|
if (o.err)
|
3166
3201
|
return o;
|
@@ -3181,9 +3216,9 @@ var oi = (
|
|
3181
3216
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
3182
3217
|
return {
|
3183
3218
|
val: {
|
3184
|
-
type:
|
3219
|
+
type: E.literal,
|
3185
3220
|
value: "<".concat(i, "/>"),
|
3186
|
-
location:
|
3221
|
+
location: y(n, this.clonePosition())
|
3187
3222
|
},
|
3188
3223
|
err: null
|
3189
3224
|
};
|
@@ -3193,25 +3228,25 @@ var oi = (
|
|
3193
3228
|
return s;
|
3194
3229
|
var o = s.val, a = this.clonePosition();
|
3195
3230
|
if (this.bumpIf("</")) {
|
3196
|
-
if (this.isEOF() || !
|
3197
|
-
return this.error(p.INVALID_TAG,
|
3231
|
+
if (this.isEOF() || !rt(this.char()))
|
3232
|
+
return this.error(p.INVALID_TAG, y(a, this.clonePosition()));
|
3198
3233
|
var h = this.clonePosition(), u = this.parseTagName();
|
3199
|
-
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG,
|
3234
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
3200
3235
|
val: {
|
3201
|
-
type:
|
3236
|
+
type: E.tag,
|
3202
3237
|
value: i,
|
3203
3238
|
children: o,
|
3204
|
-
location:
|
3239
|
+
location: y(n, this.clonePosition())
|
3205
3240
|
},
|
3206
3241
|
err: null
|
3207
|
-
} : this.error(p.INVALID_TAG,
|
3242
|
+
} : this.error(p.INVALID_TAG, y(a, this.clonePosition())));
|
3208
3243
|
} else
|
3209
|
-
return this.error(p.UNCLOSED_TAG,
|
3244
|
+
return this.error(p.UNCLOSED_TAG, y(n, this.clonePosition()));
|
3210
3245
|
} else
|
3211
|
-
return this.error(p.INVALID_TAG,
|
3246
|
+
return this.error(p.INVALID_TAG, y(n, this.clonePosition()));
|
3212
3247
|
}, e.prototype.parseTagName = function() {
|
3213
3248
|
var t = this.offset();
|
3214
|
-
for (this.bump(); !this.isEOF() &&
|
3249
|
+
for (this.bump(); !this.isEOF() && fi(this.char()); )
|
3215
3250
|
this.bump();
|
3216
3251
|
return this.message.slice(t, this.offset());
|
3217
3252
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -3233,14 +3268,14 @@ var oi = (
|
|
3233
3268
|
}
|
3234
3269
|
break;
|
3235
3270
|
}
|
3236
|
-
var h =
|
3271
|
+
var h = y(n, this.clonePosition());
|
3237
3272
|
return {
|
3238
|
-
val: { type:
|
3273
|
+
val: { type: E.literal, value: i, location: h },
|
3239
3274
|
err: null
|
3240
3275
|
};
|
3241
3276
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
3242
3277
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
3243
|
-
!
|
3278
|
+
!ci(this.peek() || 0)) ? (this.bump(), "<") : null;
|
3244
3279
|
}, e.prototype.tryParseQuote = function(t) {
|
3245
3280
|
if (this.isEOF() || this.char() !== 39)
|
3246
3281
|
return null;
|
@@ -3274,49 +3309,49 @@ var oi = (
|
|
3274
3309
|
r.push(n);
|
3275
3310
|
this.bump();
|
3276
3311
|
}
|
3277
|
-
return
|
3312
|
+
return et.apply(void 0, r);
|
3278
3313
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
3279
3314
|
if (this.isEOF())
|
3280
3315
|
return null;
|
3281
3316
|
var n = this.char();
|
3282
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
3317
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), et(n));
|
3283
3318
|
}, e.prototype.parseArgument = function(t, r) {
|
3284
3319
|
var n = this.clonePosition();
|
3285
3320
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
3286
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
3321
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
3287
3322
|
if (this.char() === 125)
|
3288
|
-
return this.bump(), this.error(p.EMPTY_ARGUMENT,
|
3323
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
3289
3324
|
var i = this.parseIdentifierIfPossible().value;
|
3290
3325
|
if (!i)
|
3291
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
3326
|
+
return this.error(p.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
3292
3327
|
if (this.bumpSpace(), this.isEOF())
|
3293
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
3328
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
3294
3329
|
switch (this.char()) {
|
3295
3330
|
case 125:
|
3296
3331
|
return this.bump(), {
|
3297
3332
|
val: {
|
3298
|
-
type:
|
3333
|
+
type: E.argument,
|
3299
3334
|
// value does not include the opening and closing braces.
|
3300
3335
|
value: i,
|
3301
|
-
location:
|
3336
|
+
location: y(n, this.clonePosition())
|
3302
3337
|
},
|
3303
3338
|
err: null
|
3304
3339
|
};
|
3305
3340
|
case 44:
|
3306
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
3341
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
3307
3342
|
default:
|
3308
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
3343
|
+
return this.error(p.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
3309
3344
|
}
|
3310
3345
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
3311
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
3346
|
+
var t = this.clonePosition(), r = this.offset(), n = tt(this.message, r), i = r + n.length;
|
3312
3347
|
this.bumpTo(i);
|
3313
|
-
var s = this.clonePosition(), o =
|
3348
|
+
var s = this.clonePosition(), o = y(t, s);
|
3314
3349
|
return { value: n, location: o };
|
3315
3350
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
3316
3351
|
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
3317
3352
|
switch (a) {
|
3318
3353
|
case "":
|
3319
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE,
|
3354
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, y(o, h));
|
3320
3355
|
case "number":
|
3321
3356
|
case "date":
|
3322
3357
|
case "time": {
|
@@ -3327,46 +3362,46 @@ var oi = (
|
|
3327
3362
|
var l = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
3328
3363
|
if (m.err)
|
3329
3364
|
return m;
|
3330
|
-
var c =
|
3365
|
+
var c = hi(m.val);
|
3331
3366
|
if (c.length === 0)
|
3332
|
-
return this.error(p.EXPECT_ARGUMENT_STYLE,
|
3333
|
-
var d =
|
3367
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
3368
|
+
var d = y(l, this.clonePosition());
|
3334
3369
|
u = { style: c, styleLocation: d };
|
3335
3370
|
}
|
3336
3371
|
var b = this.tryParseArgumentClose(i);
|
3337
3372
|
if (b.err)
|
3338
3373
|
return b;
|
3339
|
-
var
|
3340
|
-
if (u &&
|
3341
|
-
var T =
|
3374
|
+
var g = y(i, this.clonePosition());
|
3375
|
+
if (u && Pt(u?.style, "::", 0)) {
|
3376
|
+
var T = ui(u.style.slice(2));
|
3342
3377
|
if (a === "number") {
|
3343
3378
|
var m = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
3344
3379
|
return m.err ? m : {
|
3345
|
-
val: { type:
|
3380
|
+
val: { type: E.number, value: n, location: g, style: m.val },
|
3346
3381
|
err: null
|
3347
3382
|
};
|
3348
3383
|
} else {
|
3349
3384
|
if (T.length === 0)
|
3350
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
3385
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
|
3351
3386
|
var C = T;
|
3352
|
-
this.locale && (C =
|
3387
|
+
this.locale && (C = Qn(T, this.locale));
|
3353
3388
|
var c = {
|
3354
|
-
type:
|
3389
|
+
type: J.dateTime,
|
3355
3390
|
pattern: C,
|
3356
3391
|
location: u.styleLocation,
|
3357
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3358
|
-
}, P = a === "date" ?
|
3392
|
+
parsedOptions: this.shouldParseSkeletons ? jn(C) : {}
|
3393
|
+
}, P = a === "date" ? E.date : E.time;
|
3359
3394
|
return {
|
3360
|
-
val: { type: P, value: n, location:
|
3395
|
+
val: { type: P, value: n, location: g, style: c },
|
3361
3396
|
err: null
|
3362
3397
|
};
|
3363
3398
|
}
|
3364
3399
|
}
|
3365
3400
|
return {
|
3366
3401
|
val: {
|
3367
|
-
type: a === "number" ?
|
3402
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
3368
3403
|
value: n,
|
3369
|
-
location:
|
3404
|
+
location: g,
|
3370
3405
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
3371
3406
|
},
|
3372
3407
|
err: null
|
@@ -3377,50 +3412,50 @@ var oi = (
|
|
3377
3412
|
case "select": {
|
3378
3413
|
var w = this.clonePosition();
|
3379
3414
|
if (this.bumpSpace(), !this.bumpIf(","))
|
3380
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
3415
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, y(w, Se({}, w)));
|
3381
3416
|
this.bumpSpace();
|
3382
|
-
var
|
3383
|
-
if (a !== "select" &&
|
3417
|
+
var O = this.parseIdentifierIfPossible(), N = 0;
|
3418
|
+
if (a !== "select" && O.value === "offset") {
|
3384
3419
|
if (!this.bumpIf(":"))
|
3385
|
-
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
3420
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
3386
3421
|
this.bumpSpace();
|
3387
3422
|
var m = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
3388
3423
|
if (m.err)
|
3389
3424
|
return m;
|
3390
|
-
this.bumpSpace(),
|
3425
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), N = m.val;
|
3391
3426
|
}
|
3392
|
-
var M = this.tryParsePluralOrSelectOptions(t, a, r,
|
3427
|
+
var M = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
3393
3428
|
if (M.err)
|
3394
3429
|
return M;
|
3395
3430
|
var b = this.tryParseArgumentClose(i);
|
3396
3431
|
if (b.err)
|
3397
3432
|
return b;
|
3398
|
-
var
|
3433
|
+
var _ = y(i, this.clonePosition());
|
3399
3434
|
return a === "select" ? {
|
3400
3435
|
val: {
|
3401
|
-
type:
|
3436
|
+
type: E.select,
|
3402
3437
|
value: n,
|
3403
|
-
options:
|
3404
|
-
location:
|
3438
|
+
options: Ot(M.val),
|
3439
|
+
location: _
|
3405
3440
|
},
|
3406
3441
|
err: null
|
3407
3442
|
} : {
|
3408
3443
|
val: {
|
3409
|
-
type:
|
3444
|
+
type: E.plural,
|
3410
3445
|
value: n,
|
3411
|
-
options:
|
3412
|
-
offset:
|
3446
|
+
options: Ot(M.val),
|
3447
|
+
offset: N,
|
3413
3448
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
3414
|
-
location:
|
3449
|
+
location: _
|
3415
3450
|
},
|
3416
3451
|
err: null
|
3417
3452
|
};
|
3418
3453
|
}
|
3419
3454
|
default:
|
3420
|
-
return this.error(p.INVALID_ARGUMENT_TYPE,
|
3455
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, y(o, h));
|
3421
3456
|
}
|
3422
3457
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
3423
|
-
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
3458
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
3424
3459
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
3425
3460
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
3426
3461
|
var n = this.char();
|
@@ -3429,7 +3464,7 @@ var oi = (
|
|
3429
3464
|
this.bump();
|
3430
3465
|
var i = this.clonePosition();
|
3431
3466
|
if (!this.bumpUntil("'"))
|
3432
|
-
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
3467
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
3433
3468
|
this.bump();
|
3434
3469
|
break;
|
3435
3470
|
}
|
@@ -3459,16 +3494,16 @@ var oi = (
|
|
3459
3494
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
3460
3495
|
var n = [];
|
3461
3496
|
try {
|
3462
|
-
n =
|
3497
|
+
n = Vn(t);
|
3463
3498
|
} catch {
|
3464
3499
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
3465
3500
|
}
|
3466
3501
|
return {
|
3467
3502
|
val: {
|
3468
|
-
type:
|
3503
|
+
type: J.number,
|
3469
3504
|
tokens: n,
|
3470
3505
|
location: r,
|
3471
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3506
|
+
parsedOptions: this.shouldParseSkeletons ? Zn(n) : {}
|
3472
3507
|
},
|
3473
3508
|
err: null
|
3474
3509
|
};
|
@@ -3480,7 +3515,7 @@ var oi = (
|
|
3480
3515
|
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
3481
3516
|
if (c.err)
|
3482
3517
|
return c;
|
3483
|
-
l =
|
3518
|
+
l = y(m, this.clonePosition()), u = this.message.slice(m.offset, this.offset());
|
3484
3519
|
} else
|
3485
3520
|
break;
|
3486
3521
|
}
|
@@ -3489,22 +3524,22 @@ var oi = (
|
|
3489
3524
|
u === "other" && (o = !0), this.bumpSpace();
|
3490
3525
|
var d = this.clonePosition();
|
3491
3526
|
if (!this.bumpIf("{"))
|
3492
|
-
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
3527
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
3493
3528
|
var b = this.parseMessage(t + 1, r, n);
|
3494
3529
|
if (b.err)
|
3495
3530
|
return b;
|
3496
|
-
var
|
3497
|
-
if (
|
3498
|
-
return
|
3531
|
+
var g = this.tryParseArgumentClose(d);
|
3532
|
+
if (g.err)
|
3533
|
+
return g;
|
3499
3534
|
a.push([
|
3500
3535
|
u,
|
3501
3536
|
{
|
3502
3537
|
value: b.val,
|
3503
|
-
location:
|
3538
|
+
location: y(d, this.clonePosition())
|
3504
3539
|
}
|
3505
3540
|
]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
|
3506
3541
|
}
|
3507
|
-
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
3542
|
+
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(p.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
3508
3543
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
3509
3544
|
var n = 1, i = this.clonePosition();
|
3510
3545
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
@@ -3515,8 +3550,8 @@ var oi = (
|
|
3515
3550
|
else
|
3516
3551
|
break;
|
3517
3552
|
}
|
3518
|
-
var h =
|
3519
|
-
return s ? (o *= n,
|
3553
|
+
var h = y(i, this.clonePosition());
|
3554
|
+
return s ? (o *= n, oi(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
3520
3555
|
}, e.prototype.offset = function() {
|
3521
3556
|
return this.position.offset;
|
3522
3557
|
}, e.prototype.isEOF = function() {
|
@@ -3531,7 +3566,7 @@ var oi = (
|
|
3531
3566
|
var t = this.position.offset;
|
3532
3567
|
if (t >= this.message.length)
|
3533
3568
|
throw Error("out of bound");
|
3534
|
-
var r =
|
3569
|
+
var r = dr(this.message, t);
|
3535
3570
|
if (r === void 0)
|
3536
3571
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3537
3572
|
return r;
|
@@ -3550,7 +3585,7 @@ var oi = (
|
|
3550
3585
|
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);
|
3551
3586
|
}
|
3552
3587
|
}, e.prototype.bumpIf = function(t) {
|
3553
|
-
if (
|
3588
|
+
if (Pt(this.message, t, this.offset())) {
|
3554
3589
|
for (var r = 0; r < t.length; r++)
|
3555
3590
|
this.bump();
|
3556
3591
|
return !0;
|
@@ -3572,7 +3607,7 @@ var oi = (
|
|
3572
3607
|
break;
|
3573
3608
|
}
|
3574
3609
|
}, e.prototype.bumpSpace = function() {
|
3575
|
-
for (; !this.isEOF() &&
|
3610
|
+
for (; !this.isEOF() && pr(this.char()); )
|
3576
3611
|
this.bump();
|
3577
3612
|
}, e.prototype.peek = function() {
|
3578
3613
|
if (this.isEOF())
|
@@ -3582,47 +3617,47 @@ var oi = (
|
|
3582
3617
|
}, e;
|
3583
3618
|
}()
|
3584
3619
|
);
|
3585
|
-
function
|
3620
|
+
function rt(e) {
|
3586
3621
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3587
3622
|
}
|
3588
|
-
function
|
3589
|
-
return
|
3623
|
+
function ci(e) {
|
3624
|
+
return rt(e) || e === 47;
|
3590
3625
|
}
|
3591
|
-
function
|
3626
|
+
function fi(e) {
|
3592
3627
|
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;
|
3593
3628
|
}
|
3594
|
-
function
|
3629
|
+
function pr(e) {
|
3595
3630
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3596
3631
|
}
|
3597
|
-
function
|
3632
|
+
function mi(e) {
|
3598
3633
|
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;
|
3599
3634
|
}
|
3600
|
-
function
|
3635
|
+
function nt(e) {
|
3601
3636
|
e.forEach(function(t) {
|
3602
|
-
if (delete t.location,
|
3637
|
+
if (delete t.location, or(t) || ar(t))
|
3603
3638
|
for (var r in t.options)
|
3604
|
-
delete t.options[r].location,
|
3639
|
+
delete t.options[r].location, nt(t.options[r].value);
|
3605
3640
|
else
|
3606
|
-
|
3641
|
+
nr(t) && hr(t.style) || (ir(t) || sr(t)) && Je(t.style) ? delete t.style.location : ur(t) && nt(t.children);
|
3607
3642
|
});
|
3608
3643
|
}
|
3609
|
-
function
|
3610
|
-
t === void 0 && (t = {}), t =
|
3611
|
-
var r = new
|
3644
|
+
function di(e, t) {
|
3645
|
+
t === void 0 && (t = {}), t = Se({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3646
|
+
var r = new li(e, t).parse();
|
3612
3647
|
if (r.err) {
|
3613
3648
|
var n = SyntaxError(p[r.err.kind]);
|
3614
3649
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3615
3650
|
}
|
3616
|
-
return t?.captureLocation ||
|
3651
|
+
return t?.captureLocation || nt(r.val), r.val;
|
3617
3652
|
}
|
3618
|
-
var
|
3653
|
+
var K;
|
3619
3654
|
(function(e) {
|
3620
3655
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3621
|
-
})(
|
3622
|
-
var
|
3656
|
+
})(K || (K = {}));
|
3657
|
+
var Pe = (
|
3623
3658
|
/** @class */
|
3624
3659
|
function(e) {
|
3625
|
-
|
3660
|
+
Be(t, e);
|
3626
3661
|
function t(r, n, i) {
|
3627
3662
|
var s = e.call(this, r) || this;
|
3628
3663
|
return s.code = n, s.originalMessage = i, s;
|
@@ -3631,48 +3666,48 @@ var Ae = (
|
|
3631
3666
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3632
3667
|
}, t;
|
3633
3668
|
}(Error)
|
3634
|
-
),
|
3669
|
+
), Lt = (
|
3635
3670
|
/** @class */
|
3636
3671
|
function(e) {
|
3637
|
-
|
3672
|
+
Be(t, e);
|
3638
3673
|
function t(r, n, i, s) {
|
3639
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3674
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), K.INVALID_VALUE, s) || this;
|
3640
3675
|
}
|
3641
3676
|
return t;
|
3642
|
-
}(
|
3643
|
-
),
|
3677
|
+
}(Pe)
|
3678
|
+
), bi = (
|
3644
3679
|
/** @class */
|
3645
3680
|
function(e) {
|
3646
|
-
|
3681
|
+
Be(t, e);
|
3647
3682
|
function t(r, n, i) {
|
3648
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3683
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), K.INVALID_VALUE, i) || this;
|
3649
3684
|
}
|
3650
3685
|
return t;
|
3651
|
-
}(
|
3652
|
-
),
|
3686
|
+
}(Pe)
|
3687
|
+
), pi = (
|
3653
3688
|
/** @class */
|
3654
3689
|
function(e) {
|
3655
|
-
|
3690
|
+
Be(t, e);
|
3656
3691
|
function t(r, n) {
|
3657
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3692
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), K.MISSING_VALUE, n) || this;
|
3658
3693
|
}
|
3659
3694
|
return t;
|
3660
|
-
}(
|
3695
|
+
}(Pe)
|
3661
3696
|
), H;
|
3662
3697
|
(function(e) {
|
3663
3698
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3664
3699
|
})(H || (H = {}));
|
3665
|
-
function
|
3700
|
+
function yi(e) {
|
3666
3701
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3667
3702
|
var n = t[t.length - 1];
|
3668
3703
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
3669
3704
|
}, []);
|
3670
3705
|
}
|
3671
|
-
function
|
3706
|
+
function gi(e) {
|
3672
3707
|
return typeof e == "function";
|
3673
3708
|
}
|
3674
3709
|
function Ee(e, t, r, n, i, s, o) {
|
3675
|
-
if (e.length === 1 &&
|
3710
|
+
if (e.length === 1 && Tt(e[0]))
|
3676
3711
|
return [
|
3677
3712
|
{
|
3678
3713
|
type: H.literal,
|
@@ -3681,14 +3716,14 @@ function Ee(e, t, r, n, i, s, o) {
|
|
3681
3716
|
];
|
3682
3717
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
3683
3718
|
var l = u[h];
|
3684
|
-
if (
|
3719
|
+
if (Tt(l)) {
|
3685
3720
|
a.push({
|
3686
3721
|
type: H.literal,
|
3687
3722
|
value: l.value
|
3688
3723
|
});
|
3689
3724
|
continue;
|
3690
3725
|
}
|
3691
|
-
if (
|
3726
|
+
if ($n(l)) {
|
3692
3727
|
typeof s == "number" && a.push({
|
3693
3728
|
type: H.literal,
|
3694
3729
|
value: r.getNumberFormat(t).format(s)
|
@@ -3697,89 +3732,89 @@ function Ee(e, t, r, n, i, s, o) {
|
|
3697
3732
|
}
|
3698
3733
|
var m = l.value;
|
3699
3734
|
if (!(i && m in i))
|
3700
|
-
throw new
|
3735
|
+
throw new pi(m, o);
|
3701
3736
|
var c = i[m];
|
3702
|
-
if (
|
3737
|
+
if (Dn(l)) {
|
3703
3738
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3704
3739
|
type: typeof c == "string" ? H.literal : H.object,
|
3705
3740
|
value: c
|
3706
3741
|
});
|
3707
3742
|
continue;
|
3708
3743
|
}
|
3709
|
-
if (
|
3710
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
3744
|
+
if (ir(l)) {
|
3745
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Je(l.style) ? l.style.parsedOptions : void 0;
|
3711
3746
|
a.push({
|
3712
3747
|
type: H.literal,
|
3713
3748
|
value: r.getDateTimeFormat(t, d).format(c)
|
3714
3749
|
});
|
3715
3750
|
continue;
|
3716
3751
|
}
|
3717
|
-
if (
|
3718
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
3752
|
+
if (sr(l)) {
|
3753
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Je(l.style) ? l.style.parsedOptions : n.time.medium;
|
3719
3754
|
a.push({
|
3720
3755
|
type: H.literal,
|
3721
3756
|
value: r.getDateTimeFormat(t, d).format(c)
|
3722
3757
|
});
|
3723
3758
|
continue;
|
3724
3759
|
}
|
3725
|
-
if (
|
3726
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
3760
|
+
if (nr(l)) {
|
3761
|
+
var d = typeof l.style == "string" ? n.number[l.style] : hr(l.style) ? l.style.parsedOptions : void 0;
|
3727
3762
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
3728
3763
|
type: H.literal,
|
3729
3764
|
value: r.getNumberFormat(t, d).format(c)
|
3730
3765
|
});
|
3731
3766
|
continue;
|
3732
3767
|
}
|
3733
|
-
if (
|
3734
|
-
var b = l.children,
|
3735
|
-
if (!
|
3736
|
-
throw new
|
3737
|
-
var C = Ee(b, t, r, n, i, s), P = T(C.map(function(
|
3738
|
-
return
|
3768
|
+
if (ur(l)) {
|
3769
|
+
var b = l.children, g = l.value, T = i[g];
|
3770
|
+
if (!gi(T))
|
3771
|
+
throw new bi(g, "function", o);
|
3772
|
+
var C = Ee(b, t, r, n, i, s), P = T(C.map(function(N) {
|
3773
|
+
return N.value;
|
3739
3774
|
}));
|
3740
|
-
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(
|
3775
|
+
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(N) {
|
3741
3776
|
return {
|
3742
|
-
type: typeof
|
3743
|
-
value:
|
3777
|
+
type: typeof N == "string" ? H.literal : H.object,
|
3778
|
+
value: N
|
3744
3779
|
};
|
3745
3780
|
}));
|
3746
3781
|
}
|
3747
|
-
if (
|
3782
|
+
if (or(l)) {
|
3748
3783
|
var w = l.options[c] || l.options.other;
|
3749
3784
|
if (!w)
|
3750
|
-
throw new
|
3785
|
+
throw new Lt(l.value, c, Object.keys(l.options), o);
|
3751
3786
|
a.push.apply(a, Ee(w.value, t, r, n, i));
|
3752
3787
|
continue;
|
3753
3788
|
}
|
3754
|
-
if (
|
3789
|
+
if (ar(l)) {
|
3755
3790
|
var w = l.options["=".concat(c)];
|
3756
3791
|
if (!w) {
|
3757
3792
|
if (!Intl.PluralRules)
|
3758
|
-
throw new
|
3793
|
+
throw new Pe(`Intl.PluralRules is not available in this environment.
|
3759
3794
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3760
|
-
`,
|
3761
|
-
var
|
3762
|
-
w = l.options[
|
3795
|
+
`, K.MISSING_INTL_API, o);
|
3796
|
+
var O = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
3797
|
+
w = l.options[O] || l.options.other;
|
3763
3798
|
}
|
3764
3799
|
if (!w)
|
3765
|
-
throw new
|
3800
|
+
throw new Lt(l.value, c, Object.keys(l.options), o);
|
3766
3801
|
a.push.apply(a, Ee(w.value, t, r, n, i, c - (l.offset || 0)));
|
3767
3802
|
continue;
|
3768
3803
|
}
|
3769
3804
|
}
|
3770
|
-
return
|
3805
|
+
return yi(a);
|
3771
3806
|
}
|
3772
|
-
function
|
3773
|
-
return t ?
|
3774
|
-
return r[n] =
|
3807
|
+
function vi(e, t) {
|
3808
|
+
return t ? R(R(R({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3809
|
+
return r[n] = R(R({}, e[n]), t[n] || {}), r;
|
3775
3810
|
}, {})) : e;
|
3776
3811
|
}
|
3777
|
-
function
|
3812
|
+
function _i(e, t) {
|
3778
3813
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3779
|
-
return r[n] =
|
3780
|
-
},
|
3814
|
+
return r[n] = vi(e[n], t[n]), r;
|
3815
|
+
}, R({}, e)) : e;
|
3781
3816
|
}
|
3782
|
-
function
|
3817
|
+
function $e(e) {
|
3783
3818
|
return {
|
3784
3819
|
create: function() {
|
3785
3820
|
return {
|
@@ -3793,39 +3828,39 @@ function Ge(e) {
|
|
3793
3828
|
}
|
3794
3829
|
};
|
3795
3830
|
}
|
3796
|
-
function
|
3831
|
+
function Ei(e) {
|
3797
3832
|
return e === void 0 && (e = {
|
3798
3833
|
number: {},
|
3799
3834
|
dateTime: {},
|
3800
3835
|
pluralRules: {}
|
3801
3836
|
}), {
|
3802
|
-
getNumberFormat:
|
3837
|
+
getNumberFormat: Ge(function() {
|
3803
3838
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3804
3839
|
r[n] = arguments[n];
|
3805
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3840
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Re([void 0], r, !1)))();
|
3806
3841
|
}, {
|
3807
|
-
cache:
|
3808
|
-
strategy:
|
3842
|
+
cache: $e(e.number),
|
3843
|
+
strategy: Ue.variadic
|
3809
3844
|
}),
|
3810
|
-
getDateTimeFormat:
|
3845
|
+
getDateTimeFormat: Ge(function() {
|
3811
3846
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3812
3847
|
r[n] = arguments[n];
|
3813
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3848
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Re([void 0], r, !1)))();
|
3814
3849
|
}, {
|
3815
|
-
cache:
|
3816
|
-
strategy:
|
3850
|
+
cache: $e(e.dateTime),
|
3851
|
+
strategy: Ue.variadic
|
3817
3852
|
}),
|
3818
|
-
getPluralRules:
|
3853
|
+
getPluralRules: Ge(function() {
|
3819
3854
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3820
3855
|
r[n] = arguments[n];
|
3821
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3856
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Re([void 0], r, !1)))();
|
3822
3857
|
}, {
|
3823
|
-
cache:
|
3824
|
-
strategy:
|
3858
|
+
cache: $e(e.pluralRules),
|
3859
|
+
strategy: Ue.variadic
|
3825
3860
|
})
|
3826
3861
|
};
|
3827
3862
|
}
|
3828
|
-
var
|
3863
|
+
var xi = (
|
3829
3864
|
/** @class */
|
3830
3865
|
function() {
|
3831
3866
|
function e(t, r, n, i) {
|
@@ -3857,13 +3892,13 @@ var yi = (
|
|
3857
3892
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3858
3893
|
var o = i || {};
|
3859
3894
|
o.formatters;
|
3860
|
-
var a =
|
3861
|
-
this.ast = e.__parse(t,
|
3895
|
+
var a = Nn(o, ["formatters"]);
|
3896
|
+
this.ast = e.__parse(t, R(R({}, a), { locale: this.resolvedLocale }));
|
3862
3897
|
} else
|
3863
3898
|
this.ast = t;
|
3864
3899
|
if (!Array.isArray(this.ast))
|
3865
3900
|
throw new TypeError("A message must be provided as a String or AST.");
|
3866
|
-
this.formats =
|
3901
|
+
this.formats = _i(e.formats, n), this.formatters = i && i.formatters || Ei(this.formatterCache);
|
3867
3902
|
}
|
3868
3903
|
return Object.defineProperty(e, "defaultLocale", {
|
3869
3904
|
get: function() {
|
@@ -3876,7 +3911,7 @@ var yi = (
|
|
3876
3911
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3877
3912
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3878
3913
|
}
|
3879
|
-
}, e.__parse =
|
3914
|
+
}, e.__parse = di, e.formats = {
|
3880
3915
|
number: {
|
3881
3916
|
integer: {
|
3882
3917
|
maximumFractionDigits: 0
|
@@ -3937,7 +3972,7 @@ var yi = (
|
|
3937
3972
|
}, e;
|
3938
3973
|
}()
|
3939
3974
|
);
|
3940
|
-
function
|
3975
|
+
function Si(e, t) {
|
3941
3976
|
if (t == null)
|
3942
3977
|
return;
|
3943
3978
|
if (t in e)
|
@@ -3958,92 +3993,92 @@ function vi(e, t) {
|
|
3958
3993
|
n = void 0;
|
3959
3994
|
return n;
|
3960
3995
|
}
|
3961
|
-
const D = {},
|
3996
|
+
const D = {}, wi = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), yr = (e, t) => {
|
3962
3997
|
if (t == null)
|
3963
3998
|
return;
|
3964
3999
|
if (t in D && e in D[t])
|
3965
4000
|
return D[t][e];
|
3966
|
-
const r =
|
4001
|
+
const r = Oe(t);
|
3967
4002
|
for (let n = 0; n < r.length; n++) {
|
3968
|
-
const i = r[n], s =
|
4003
|
+
const i = r[n], s = Hi(i, e);
|
3969
4004
|
if (s)
|
3970
|
-
return
|
4005
|
+
return wi(e, t, s);
|
3971
4006
|
}
|
3972
4007
|
};
|
3973
|
-
let
|
3974
|
-
const me =
|
3975
|
-
function
|
3976
|
-
return
|
4008
|
+
let ut;
|
4009
|
+
const me = Ae({});
|
4010
|
+
function Ti(e) {
|
4011
|
+
return ut[e] || null;
|
3977
4012
|
}
|
3978
|
-
function
|
3979
|
-
return e in
|
4013
|
+
function gr(e) {
|
4014
|
+
return e in ut;
|
3980
4015
|
}
|
3981
|
-
function
|
3982
|
-
if (!
|
4016
|
+
function Hi(e, t) {
|
4017
|
+
if (!gr(e))
|
3983
4018
|
return null;
|
3984
|
-
const r =
|
3985
|
-
return
|
4019
|
+
const r = Ti(e);
|
4020
|
+
return Si(r, t);
|
3986
4021
|
}
|
3987
|
-
function
|
4022
|
+
function Ai(e) {
|
3988
4023
|
if (e == null)
|
3989
4024
|
return;
|
3990
|
-
const t =
|
4025
|
+
const t = Oe(e);
|
3991
4026
|
for (let r = 0; r < t.length; r++) {
|
3992
4027
|
const n = t[r];
|
3993
|
-
if (
|
4028
|
+
if (gr(n))
|
3994
4029
|
return n;
|
3995
4030
|
}
|
3996
4031
|
}
|
3997
|
-
function
|
3998
|
-
delete D[e], me.update((r) => (r[e] =
|
4032
|
+
function vr(e, ...t) {
|
4033
|
+
delete D[e], me.update((r) => (r[e] = On.all([r[e] || {}, ...t]), r));
|
3999
4034
|
}
|
4000
|
-
|
4035
|
+
ne(
|
4001
4036
|
[me],
|
4002
4037
|
([e]) => Object.keys(e)
|
4003
4038
|
);
|
4004
|
-
me.subscribe((e) =>
|
4039
|
+
me.subscribe((e) => ut = e);
|
4005
4040
|
const xe = {};
|
4006
|
-
function
|
4041
|
+
function Bi(e, t) {
|
4007
4042
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
4008
4043
|
}
|
4009
|
-
function
|
4044
|
+
function _r(e) {
|
4010
4045
|
return xe[e];
|
4011
4046
|
}
|
4012
|
-
function
|
4013
|
-
return
|
4014
|
-
const r =
|
4047
|
+
function Pi(e) {
|
4048
|
+
return Oe(e).map((t) => {
|
4049
|
+
const r = _r(t);
|
4015
4050
|
return [t, r ? [...r] : []];
|
4016
4051
|
}).filter(([, t]) => t.length > 0);
|
4017
4052
|
}
|
4018
|
-
function
|
4019
|
-
return e == null ? !1 :
|
4053
|
+
function it(e) {
|
4054
|
+
return e == null ? !1 : Oe(e).some(
|
4020
4055
|
(t) => {
|
4021
4056
|
var r;
|
4022
|
-
return (r =
|
4057
|
+
return (r = _r(t)) == null ? void 0 : r.size;
|
4023
4058
|
}
|
4024
4059
|
);
|
4025
4060
|
}
|
4026
|
-
function
|
4061
|
+
function Oi(e, t) {
|
4027
4062
|
return Promise.all(
|
4028
|
-
t.map((n) => (
|
4029
|
-
).then((n) =>
|
4030
|
-
}
|
4031
|
-
const
|
4032
|
-
function
|
4033
|
-
if (!
|
4034
|
-
return e in
|
4035
|
-
const t =
|
4036
|
-
return
|
4063
|
+
t.map((n) => (Bi(e, n), n().then((i) => i.default || i)))
|
4064
|
+
).then((n) => vr(e, ...n));
|
4065
|
+
}
|
4066
|
+
const se = {};
|
4067
|
+
function Er(e) {
|
4068
|
+
if (!it(e))
|
4069
|
+
return e in se ? se[e] : Promise.resolve();
|
4070
|
+
const t = Pi(e);
|
4071
|
+
return se[e] = Promise.all(
|
4037
4072
|
t.map(
|
4038
|
-
([r, n]) =>
|
4073
|
+
([r, n]) => Oi(r, n)
|
4039
4074
|
)
|
4040
4075
|
).then(() => {
|
4041
|
-
if (
|
4042
|
-
return
|
4043
|
-
delete
|
4044
|
-
}),
|
4076
|
+
if (it(e))
|
4077
|
+
return Er(e);
|
4078
|
+
delete se[e];
|
4079
|
+
}), se[e];
|
4045
4080
|
}
|
4046
|
-
const
|
4081
|
+
const Ni = {
|
4047
4082
|
number: {
|
4048
4083
|
scientific: { notation: "scientific" },
|
4049
4084
|
engineering: { notation: "engineering" },
|
@@ -4072,135 +4107,135 @@ const Ai = {
|
|
4072
4107
|
timeZoneName: "short"
|
4073
4108
|
}
|
4074
4109
|
}
|
4075
|
-
},
|
4110
|
+
}, Li = {
|
4076
4111
|
fallbackLocale: null,
|
4077
4112
|
loadingDelay: 200,
|
4078
|
-
formats:
|
4113
|
+
formats: Ni,
|
4079
4114
|
warnOnMissingMessages: !0,
|
4080
4115
|
handleMissingMessage: void 0,
|
4081
4116
|
ignoreTag: !0
|
4082
|
-
},
|
4083
|
-
function
|
4084
|
-
return
|
4085
|
-
}
|
4086
|
-
const
|
4087
|
-
var
|
4088
|
-
for (var r in t)
|
4089
|
-
|
4090
|
-
if (
|
4091
|
-
for (var r of
|
4092
|
-
|
4117
|
+
}, Ii = Li;
|
4118
|
+
function ee() {
|
4119
|
+
return Ii;
|
4120
|
+
}
|
4121
|
+
const Fe = Ae(!1);
|
4122
|
+
var Ci = Object.defineProperty, Mi = Object.defineProperties, Ri = Object.getOwnPropertyDescriptors, It = Object.getOwnPropertySymbols, Gi = Object.prototype.hasOwnProperty, Ui = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Di = (e, t) => {
|
4123
|
+
for (var r in t || (t = {}))
|
4124
|
+
Gi.call(t, r) && Ct(e, r, t[r]);
|
4125
|
+
if (It)
|
4126
|
+
for (var r of It(t))
|
4127
|
+
Ui.call(t, r) && Ct(e, r, t[r]);
|
4093
4128
|
return e;
|
4094
|
-
},
|
4095
|
-
let
|
4096
|
-
const
|
4097
|
-
function
|
4129
|
+
}, $i = (e, t) => Mi(e, Ri(t));
|
4130
|
+
let st;
|
4131
|
+
const we = Ae(null);
|
4132
|
+
function Mt(e) {
|
4098
4133
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
4099
4134
|
}
|
4100
|
-
function
|
4101
|
-
const r =
|
4102
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
4135
|
+
function Oe(e, t = ee().fallbackLocale) {
|
4136
|
+
const r = Mt(e);
|
4137
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Mt(t)])] : r;
|
4103
4138
|
}
|
4104
4139
|
function V() {
|
4105
|
-
return
|
4140
|
+
return st ?? void 0;
|
4106
4141
|
}
|
4107
|
-
|
4108
|
-
|
4142
|
+
we.subscribe((e) => {
|
4143
|
+
st = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
4109
4144
|
});
|
4110
|
-
const
|
4111
|
-
if (e &&
|
4112
|
-
const { loadingDelay: t } =
|
4145
|
+
const Fi = (e) => {
|
4146
|
+
if (e && Ai(e) && it(e)) {
|
4147
|
+
const { loadingDelay: t } = ee();
|
4113
4148
|
let r;
|
4114
4149
|
return typeof window < "u" && V() != null && t ? r = window.setTimeout(
|
4115
|
-
() =>
|
4150
|
+
() => Fe.set(!0),
|
4116
4151
|
t
|
4117
|
-
) :
|
4118
|
-
|
4152
|
+
) : Fe.set(!0), Er(e).then(() => {
|
4153
|
+
we.set(e);
|
4119
4154
|
}).finally(() => {
|
4120
|
-
clearTimeout(r),
|
4155
|
+
clearTimeout(r), Fe.set(!1);
|
4121
4156
|
});
|
4122
4157
|
}
|
4123
|
-
return
|
4124
|
-
}, de =
|
4125
|
-
set:
|
4126
|
-
}),
|
4158
|
+
return we.set(e);
|
4159
|
+
}, de = $i(Di({}, we), {
|
4160
|
+
set: Fi
|
4161
|
+
}), Ne = (e) => {
|
4127
4162
|
const t = /* @__PURE__ */ Object.create(null);
|
4128
4163
|
return (n) => {
|
4129
4164
|
const i = JSON.stringify(n);
|
4130
4165
|
return i in t ? t[i] : t[i] = e(n);
|
4131
4166
|
};
|
4132
4167
|
};
|
4133
|
-
var
|
4168
|
+
var ji = Object.defineProperty, Te = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ht = (e, t) => {
|
4134
4169
|
for (var r in t || (t = {}))
|
4135
|
-
|
4136
|
-
if (
|
4137
|
-
for (var r of
|
4138
|
-
|
4170
|
+
xr.call(t, r) && Rt(e, r, t[r]);
|
4171
|
+
if (Te)
|
4172
|
+
for (var r of Te(t))
|
4173
|
+
Sr.call(t, r) && Rt(e, r, t[r]);
|
4139
4174
|
return e;
|
4140
|
-
},
|
4175
|
+
}, ie = (e, t) => {
|
4141
4176
|
var r = {};
|
4142
4177
|
for (var n in e)
|
4143
|
-
|
4144
|
-
if (e != null &&
|
4145
|
-
for (var n of
|
4146
|
-
t.indexOf(n) < 0 &&
|
4178
|
+
xr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4179
|
+
if (e != null && Te)
|
4180
|
+
for (var n of Te(e))
|
4181
|
+
t.indexOf(n) < 0 && Sr.call(e, n) && (r[n] = e[n]);
|
4147
4182
|
return r;
|
4148
4183
|
};
|
4149
|
-
const
|
4150
|
-
const { formats: r } =
|
4184
|
+
const he = (e, t) => {
|
4185
|
+
const { formats: r } = ee();
|
4151
4186
|
if (e in r && t in r[e])
|
4152
4187
|
return r[e][t];
|
4153
4188
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
4154
|
-
},
|
4189
|
+
}, ki = Ne(
|
4155
4190
|
(e) => {
|
4156
|
-
var t = e, { locale: r, format: n } = t, i =
|
4191
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
4157
4192
|
if (r == null)
|
4158
4193
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
4159
|
-
return n && (i =
|
4194
|
+
return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
|
4160
4195
|
}
|
4161
|
-
),
|
4196
|
+
), Vi = Ne(
|
4162
4197
|
(e) => {
|
4163
|
-
var t = e, { locale: r, format: n } = t, i =
|
4198
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
4164
4199
|
if (r == null)
|
4165
4200
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
4166
|
-
return n ? i =
|
4201
|
+
return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
|
4167
4202
|
}
|
4168
|
-
),
|
4203
|
+
), Xi = Ne(
|
4169
4204
|
(e) => {
|
4170
|
-
var t = e, { locale: r, format: n } = t, i =
|
4205
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
4171
4206
|
if (r == null)
|
4172
4207
|
throw new Error(
|
4173
4208
|
'[svelte-i18n] A "locale" must be set to format time values'
|
4174
4209
|
);
|
4175
|
-
return n ? i =
|
4210
|
+
return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
|
4176
4211
|
}
|
4177
|
-
),
|
4212
|
+
), Wi = (e = {}) => {
|
4178
4213
|
var t = e, {
|
4179
4214
|
locale: r = V()
|
4180
|
-
} = t, n =
|
4215
|
+
} = t, n = ie(t, [
|
4181
4216
|
"locale"
|
4182
4217
|
]);
|
4183
|
-
return
|
4184
|
-
},
|
4218
|
+
return ki(ht({ locale: r }, n));
|
4219
|
+
}, zi = (e = {}) => {
|
4185
4220
|
var t = e, {
|
4186
4221
|
locale: r = V()
|
4187
|
-
} = t, n =
|
4222
|
+
} = t, n = ie(t, [
|
4188
4223
|
"locale"
|
4189
4224
|
]);
|
4190
|
-
return
|
4191
|
-
},
|
4225
|
+
return Vi(ht({ locale: r }, n));
|
4226
|
+
}, Zi = (e = {}) => {
|
4192
4227
|
var t = e, {
|
4193
4228
|
locale: r = V()
|
4194
|
-
} = t, n =
|
4229
|
+
} = t, n = ie(t, [
|
4195
4230
|
"locale"
|
4196
4231
|
]);
|
4197
|
-
return
|
4198
|
-
},
|
4232
|
+
return Xi(ht({ locale: r }, n));
|
4233
|
+
}, Qi = Ne(
|
4199
4234
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
4200
|
-
(e, t = V()) => new
|
4201
|
-
ignoreTag:
|
4235
|
+
(e, t = V()) => new xi(e, t, ee().formats, {
|
4236
|
+
ignoreTag: ee().ignoreTag
|
4202
4237
|
})
|
4203
|
-
),
|
4238
|
+
), Yi = (e, t = {}) => {
|
4204
4239
|
var r, n, i, s;
|
4205
4240
|
let o = t;
|
4206
4241
|
typeof e == "object" && (o = e, e = o.id);
|
@@ -4213,9 +4248,9 @@ const le = (e, t) => {
|
|
4213
4248
|
throw new Error(
|
4214
4249
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
4215
4250
|
);
|
4216
|
-
let l =
|
4251
|
+
let l = yr(e, h);
|
4217
4252
|
if (!l)
|
4218
|
-
l = (s = (i = (n = (r =
|
4253
|
+
l = (s = (i = (n = (r = ee()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
4219
4254
|
else if (typeof l != "string")
|
4220
4255
|
return console.warn(
|
4221
4256
|
`[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.`
|
@@ -4224,7 +4259,7 @@ const le = (e, t) => {
|
|
4224
4259
|
return l;
|
4225
4260
|
let m = l;
|
4226
4261
|
try {
|
4227
|
-
m =
|
4262
|
+
m = Qi(l, h).format(a);
|
4228
4263
|
} catch (c) {
|
4229
4264
|
c instanceof Error && console.warn(
|
4230
4265
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -4232,20 +4267,20 @@ const le = (e, t) => {
|
|
4232
4267
|
);
|
4233
4268
|
}
|
4234
4269
|
return m;
|
4235
|
-
},
|
4236
|
-
|
4237
|
-
|
4238
|
-
|
4239
|
-
|
4240
|
-
window.emWidgets = { topic:
|
4241
|
-
const
|
4242
|
-
function
|
4270
|
+
}, qi = (e, t) => Zi(t).format(e), Ji = (e, t) => zi(t).format(e), Ki = (e, t) => Wi(t).format(e), es = (e, t = V()) => yr(e, t), ts = ne([de, me], () => Yi);
|
4271
|
+
ne([de], () => qi);
|
4272
|
+
ne([de], () => Ji);
|
4273
|
+
ne([de], () => Ki);
|
4274
|
+
ne([de, me], () => es);
|
4275
|
+
window.emWidgets = { topic: mn };
|
4276
|
+
const rs = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
4277
|
+
function ns(e, t) {
|
4243
4278
|
if (e) {
|
4244
4279
|
const r = document.createElement("style");
|
4245
4280
|
r.innerHTML = t, e.appendChild(r);
|
4246
4281
|
}
|
4247
4282
|
}
|
4248
|
-
function
|
4283
|
+
function is(e, t) {
|
4249
4284
|
const r = new URL(t);
|
4250
4285
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
4251
4286
|
const i = document.createElement("style");
|
@@ -4254,7 +4289,7 @@ function es(e, t) {
|
|
4254
4289
|
console.error("There was an error while trying to load client styling from URL", n);
|
4255
4290
|
});
|
4256
4291
|
}
|
4257
|
-
function
|
4292
|
+
function ss(e, t, r) {
|
4258
4293
|
if (window.emMessageBus) {
|
4259
4294
|
const n = document.createElement("style");
|
4260
4295
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -4262,10 +4297,10 @@ function ts(e, t, r) {
|
|
4262
4297
|
});
|
4263
4298
|
}
|
4264
4299
|
}
|
4265
|
-
function
|
4266
|
-
|
4300
|
+
function Gt(e, t) {
|
4301
|
+
vr(e, t);
|
4267
4302
|
}
|
4268
|
-
const
|
4303
|
+
const Ut = {
|
4269
4304
|
en: {
|
4270
4305
|
lobbyName: "Lobby",
|
4271
4306
|
myGamesName: "My games"
|
@@ -4351,173 +4386,173 @@ if (typeof window < "u") {
|
|
4351
4386
|
}
|
4352
4387
|
};
|
4353
4388
|
};
|
4354
|
-
customElements.define = e(customElements.define), import("./CasinoSlider-
|
4389
|
+
customElements.define = e(customElements.define), import("./CasinoSlider-DmcFGzUe.js").then(({ default: t }) => {
|
4355
4390
|
!customElements.get("casino-slider") && customElements.define("casino-slider", t.element);
|
4356
4391
|
});
|
4357
4392
|
}
|
4358
|
-
function
|
4359
|
-
|
4393
|
+
function os(e) {
|
4394
|
+
Mr(e, "svelte-1my2wow", ".CasinoCategoriesLoading.svelte-1my2wow{height:52px}p.svelte-1my2wow{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-1my2wow{padding-top:20px;background:var( --emw--categories-color-primary, var(--emw--color-primary, #22B04E))}");
|
4360
4395
|
}
|
4361
|
-
function
|
4396
|
+
function as(e) {
|
4362
4397
|
let t, r;
|
4363
4398
|
return {
|
4364
4399
|
c() {
|
4365
|
-
t = k("div"), r = k("casino-slider"),
|
4400
|
+
t = k("div"), r = k("casino-slider"), v(
|
4366
4401
|
r,
|
4367
4402
|
"lang",
|
4368
4403
|
/*lang*/
|
4369
4404
|
e[3]
|
4370
|
-
),
|
4405
|
+
), v(
|
4371
4406
|
r,
|
4372
4407
|
"datasource",
|
4373
4408
|
/*datasource*/
|
4374
4409
|
e[2]
|
4375
|
-
),
|
4410
|
+
), v(
|
4376
4411
|
r,
|
4377
4412
|
"endpoint",
|
4378
4413
|
/*endpoint*/
|
4379
4414
|
e[1]
|
4380
|
-
),
|
4415
|
+
), v(r, "identity", ot), v(
|
4381
4416
|
r,
|
4382
4417
|
"favoritesnumber",
|
4383
4418
|
/*numberOfFavoredGames*/
|
4384
4419
|
e[16]
|
4385
|
-
),
|
4420
|
+
), v(
|
4386
4421
|
r,
|
4387
4422
|
"showsubgroups",
|
4388
4423
|
/*showsubgroups*/
|
4389
4424
|
e[8]
|
4390
|
-
),
|
4425
|
+
), v(
|
4391
4426
|
r,
|
4392
4427
|
"clientstyling",
|
4393
4428
|
/*clientstyling*/
|
4394
4429
|
e[4]
|
4395
|
-
),
|
4430
|
+
), v(
|
4396
4431
|
r,
|
4397
4432
|
"clientstylingurl",
|
4398
4433
|
/*clientstylingurl*/
|
4399
4434
|
e[5]
|
4400
|
-
),
|
4435
|
+
), v(
|
4401
4436
|
r,
|
4402
4437
|
"mbsource",
|
4403
4438
|
/*mbsource*/
|
4404
4439
|
e[12]
|
4405
|
-
),
|
4440
|
+
), v(
|
4406
4441
|
r,
|
4407
4442
|
"activeindex",
|
4408
4443
|
/*activecategory*/
|
4409
4444
|
e[0]
|
4410
|
-
),
|
4445
|
+
), v(
|
4411
4446
|
r,
|
4412
4447
|
"actionevent",
|
4413
4448
|
/*actionevent*/
|
4414
4449
|
e[6]
|
4415
|
-
),
|
4450
|
+
), v(
|
4416
4451
|
r,
|
4417
4452
|
"location",
|
4418
4453
|
/*location*/
|
4419
4454
|
e[7]
|
4420
|
-
),
|
4455
|
+
), v(
|
4421
4456
|
r,
|
4422
4457
|
"categoriesicon",
|
4423
4458
|
/*categoriesicon*/
|
4424
4459
|
e[9]
|
4425
|
-
),
|
4460
|
+
), v(
|
4426
4461
|
r,
|
4427
4462
|
"lobbyiconimage",
|
4428
4463
|
/*lobbyiconimage*/
|
4429
4464
|
e[10]
|
4430
|
-
),
|
4465
|
+
), v(
|
4431
4466
|
r,
|
4432
4467
|
"mygamesiconimage",
|
4433
4468
|
/*mygamesiconimage*/
|
4434
4469
|
e[11]
|
4435
|
-
),
|
4470
|
+
), ce(t, "class", "CasinoCategoriesContainer svelte-1my2wow");
|
4436
4471
|
},
|
4437
4472
|
m(n, i) {
|
4438
|
-
|
4473
|
+
le(n, t, i), jt(t, r);
|
4439
4474
|
},
|
4440
4475
|
p(n, i) {
|
4441
4476
|
i[0] & /*lang*/
|
4442
|
-
8 &&
|
4477
|
+
8 && v(
|
4443
4478
|
r,
|
4444
4479
|
"lang",
|
4445
4480
|
/*lang*/
|
4446
4481
|
n[3]
|
4447
4482
|
), i[0] & /*datasource*/
|
4448
|
-
4 &&
|
4483
|
+
4 && v(
|
4449
4484
|
r,
|
4450
4485
|
"datasource",
|
4451
4486
|
/*datasource*/
|
4452
4487
|
n[2]
|
4453
4488
|
), i[0] & /*endpoint*/
|
4454
|
-
2 &&
|
4489
|
+
2 && v(
|
4455
4490
|
r,
|
4456
4491
|
"endpoint",
|
4457
4492
|
/*endpoint*/
|
4458
4493
|
n[1]
|
4459
4494
|
), i[0] & /*numberOfFavoredGames*/
|
4460
|
-
65536 &&
|
4495
|
+
65536 && v(
|
4461
4496
|
r,
|
4462
4497
|
"favoritesnumber",
|
4463
4498
|
/*numberOfFavoredGames*/
|
4464
4499
|
n[16]
|
4465
4500
|
), i[0] & /*showsubgroups*/
|
4466
|
-
256 &&
|
4501
|
+
256 && v(
|
4467
4502
|
r,
|
4468
4503
|
"showsubgroups",
|
4469
4504
|
/*showsubgroups*/
|
4470
4505
|
n[8]
|
4471
4506
|
), i[0] & /*clientstyling*/
|
4472
|
-
16 &&
|
4507
|
+
16 && v(
|
4473
4508
|
r,
|
4474
4509
|
"clientstyling",
|
4475
4510
|
/*clientstyling*/
|
4476
4511
|
n[4]
|
4477
4512
|
), i[0] & /*clientstylingurl*/
|
4478
|
-
32 &&
|
4513
|
+
32 && v(
|
4479
4514
|
r,
|
4480
4515
|
"clientstylingurl",
|
4481
4516
|
/*clientstylingurl*/
|
4482
4517
|
n[5]
|
4483
4518
|
), i[0] & /*mbsource*/
|
4484
|
-
4096 &&
|
4519
|
+
4096 && v(
|
4485
4520
|
r,
|
4486
4521
|
"mbsource",
|
4487
4522
|
/*mbsource*/
|
4488
4523
|
n[12]
|
4489
4524
|
), i[0] & /*activecategory*/
|
4490
|
-
1 &&
|
4525
|
+
1 && v(
|
4491
4526
|
r,
|
4492
4527
|
"activeindex",
|
4493
4528
|
/*activecategory*/
|
4494
4529
|
n[0]
|
4495
4530
|
), i[0] & /*actionevent*/
|
4496
|
-
64 &&
|
4531
|
+
64 && v(
|
4497
4532
|
r,
|
4498
4533
|
"actionevent",
|
4499
4534
|
/*actionevent*/
|
4500
4535
|
n[6]
|
4501
4536
|
), i[0] & /*location*/
|
4502
|
-
128 &&
|
4537
|
+
128 && v(
|
4503
4538
|
r,
|
4504
4539
|
"location",
|
4505
4540
|
/*location*/
|
4506
4541
|
n[7]
|
4507
4542
|
), i[0] & /*categoriesicon*/
|
4508
|
-
512 &&
|
4543
|
+
512 && v(
|
4509
4544
|
r,
|
4510
4545
|
"categoriesicon",
|
4511
4546
|
/*categoriesicon*/
|
4512
4547
|
n[9]
|
4513
4548
|
), i[0] & /*lobbyiconimage*/
|
4514
|
-
1024 &&
|
4549
|
+
1024 && v(
|
4515
4550
|
r,
|
4516
4551
|
"lobbyiconimage",
|
4517
4552
|
/*lobbyiconimage*/
|
4518
4553
|
n[10]
|
4519
4554
|
), i[0] & /*mygamesiconimage*/
|
4520
|
-
2048 &&
|
4555
|
+
2048 && v(
|
4521
4556
|
r,
|
4522
4557
|
"mygamesiconimage",
|
4523
4558
|
/*mygamesiconimage*/
|
@@ -4525,48 +4560,48 @@ function ns(e) {
|
|
4525
4560
|
);
|
4526
4561
|
},
|
4527
4562
|
d(n) {
|
4528
|
-
n &&
|
4563
|
+
n && re(t);
|
4529
4564
|
}
|
4530
4565
|
};
|
4531
4566
|
}
|
4532
|
-
function
|
4567
|
+
function us(e) {
|
4533
4568
|
let t;
|
4534
4569
|
return {
|
4535
4570
|
c() {
|
4536
|
-
t = k("p"), t.textContent = "500 Error - Internal Server Error.",
|
4571
|
+
t = k("p"), t.textContent = "500 Error - Internal Server Error.", ce(t, "class", "SearchLoading svelte-1my2wow");
|
4537
4572
|
},
|
4538
4573
|
m(r, n) {
|
4539
|
-
|
4574
|
+
le(r, t, n);
|
4540
4575
|
},
|
4541
4576
|
p: I,
|
4542
4577
|
d(r) {
|
4543
|
-
r &&
|
4578
|
+
r && re(t);
|
4544
4579
|
}
|
4545
4580
|
};
|
4546
4581
|
}
|
4547
|
-
function
|
4582
|
+
function hs(e) {
|
4548
4583
|
let t;
|
4549
4584
|
return {
|
4550
4585
|
c() {
|
4551
|
-
t = k("div"),
|
4586
|
+
t = k("div"), ce(t, "class", "CasinoCategoriesLoading svelte-1my2wow");
|
4552
4587
|
},
|
4553
4588
|
m(r, n) {
|
4554
|
-
|
4589
|
+
le(r, t, n);
|
4555
4590
|
},
|
4556
4591
|
p: I,
|
4557
4592
|
d(r) {
|
4558
|
-
r &&
|
4593
|
+
r && re(t);
|
4559
4594
|
}
|
4560
4595
|
};
|
4561
4596
|
}
|
4562
|
-
function
|
4597
|
+
function ls(e) {
|
4563
4598
|
let t;
|
4564
4599
|
function r(s, o) {
|
4565
4600
|
return (
|
4566
4601
|
/*isLoading*/
|
4567
|
-
s[13] ||
|
4602
|
+
s[13] || cs || fs ? hs : (
|
4568
4603
|
/*hasErrors*/
|
4569
|
-
s[15] ?
|
4604
|
+
s[15] ? us : as
|
4570
4605
|
)
|
4571
4606
|
);
|
4572
4607
|
}
|
@@ -4576,7 +4611,7 @@ function os(e) {
|
|
4576
4611
|
t = k("div"), i.c();
|
4577
4612
|
},
|
4578
4613
|
m(s, o) {
|
4579
|
-
|
4614
|
+
le(s, t, o), i.m(t, null), e[26](t);
|
4580
4615
|
},
|
4581
4616
|
p(s, o) {
|
4582
4617
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
@@ -4584,54 +4619,54 @@ function os(e) {
|
|
4584
4619
|
i: I,
|
4585
4620
|
o: I,
|
4586
4621
|
d(s) {
|
4587
|
-
s &&
|
4622
|
+
s && re(t), i.d(), e[26](null);
|
4588
4623
|
}
|
4589
4624
|
};
|
4590
4625
|
}
|
4591
|
-
let
|
4592
|
-
function
|
4626
|
+
let ot = "CasinoSliderData", cs = !1, fs = !1;
|
4627
|
+
function ms(e, t, r) {
|
4593
4628
|
let n;
|
4594
|
-
|
4595
|
-
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:
|
4596
|
-
const
|
4597
|
-
fetch(
|
4629
|
+
Cr(e, ts, (f) => r(32, n = f));
|
4630
|
+
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: g = "" } = t, { sessioncheck: T = "" } = t, { location: C = "secondaryMenu" } = t, { showsubgroups: P = "false" } = t, { filteredcategories: w = "" } = t, { translationurl: O = "" } = t, { categoriesicon: N = "" } = t, { lobbyiconimage: M = "" } = t, { mygamesiconimage: _ = "" } = t, { mbsource: A } = t, L, $, F = !0, X, W = [], j = !1, wr = window.navigator.userAgent, G, lt, ct = !1, Le = !1;
|
4631
|
+
const Tr = () => {
|
4632
|
+
fetch(O).then((B) => B.json()).then((B) => {
|
4598
4633
|
Object.keys(B).forEach((be) => {
|
4599
|
-
|
4634
|
+
Gt(be, B[be]);
|
4600
4635
|
});
|
4601
4636
|
}).catch((B) => {
|
4602
4637
|
console.log(B);
|
4603
4638
|
});
|
4604
4639
|
};
|
4605
|
-
Object.keys(
|
4606
|
-
|
4640
|
+
Object.keys(Ut).forEach((f) => {
|
4641
|
+
Gt(f, Ut[f]);
|
4607
4642
|
});
|
4608
|
-
const
|
4609
|
-
|
4643
|
+
const Hr = () => {
|
4644
|
+
ct == !1 && (m == "true" || u == "true" || l == "true") && W.splice(1, 0, {
|
4610
4645
|
// @ts-ignore
|
4611
4646
|
id: "MYGAMES",
|
4612
4647
|
name: L,
|
4613
4648
|
href: "",
|
4614
4649
|
games: []
|
4615
|
-
}),
|
4616
|
-
},
|
4617
|
-
if (L = n("myGamesName"),
|
4650
|
+
}), jr(), ct = !0, r(25, Le = !0), ft();
|
4651
|
+
}, Ar = () => (i || (X = "Endpoint is missing! Please provide a valid endpointURL.", r(15, j = !0), r(13, F = !1), console.error(X)), s || (X = "Datasource is missing! Please provide a valid datasource.", r(15, j = !0), r(13, F = !1), console.error(X)), (!o || o.length < 2) && (X = "Language is missing! Please provide a valid language (alpha2code)", r(15, j = !0), r(13, F = !1), console.error(X)), j), Br = () => {
|
4652
|
+
if (L = n("myGamesName"), $ = n("lobbyName"), !Ar()) {
|
4618
4653
|
let f = new URL(`${i}/v2/casino/groups/${s}`);
|
4619
|
-
f.searchParams.append("language", o), f.searchParams.append("platform",
|
4654
|
+
f.searchParams.append("language", o), f.searchParams.append("platform", rs(wr)), f.searchParams.append("fields", "id,name,games(href)"), fetch(f).then((B) => B.json()).then(
|
4620
4655
|
(B) => {
|
4621
|
-
let be = w.split(","),
|
4622
|
-
let
|
4623
|
-
if (
|
4624
|
-
for (let
|
4625
|
-
|
4626
|
-
return
|
4656
|
+
let be = w.split(","), Nr = B.items.filter((dt) => {
|
4657
|
+
let Ie = !1;
|
4658
|
+
if (dt.games.total > 0 && (Ie = !0, w))
|
4659
|
+
for (let Lr of be)
|
4660
|
+
dt.flags == Lr && (Ie = !1);
|
4661
|
+
return Ie;
|
4627
4662
|
});
|
4628
|
-
W = [], W = W.concat(
|
4663
|
+
W = [], W = W.concat(Nr), W.unshift({
|
4629
4664
|
// @ts-ignore
|
4630
4665
|
id: "LOBBY",
|
4631
|
-
name:
|
4666
|
+
name: $,
|
4632
4667
|
href: "",
|
4633
4668
|
games: []
|
4634
|
-
}), r(13,
|
4669
|
+
}), r(13, F = !1);
|
4635
4670
|
},
|
4636
4671
|
(B) => {
|
4637
4672
|
r(15, j = !0), console.error("There was an error while fetching the categories", B);
|
@@ -4640,58 +4675,58 @@ function hs(e, t, r) {
|
|
4640
4675
|
r(15, j = !0), console.error("There was an error while fetching the categories", B);
|
4641
4676
|
});
|
4642
4677
|
}
|
4643
|
-
},
|
4678
|
+
}, Pr = () => {
|
4644
4679
|
let f = b.split("$");
|
4645
4680
|
r(0, b = f.length > 2 ? b.split("$").slice(0, 2).join("$") : b);
|
4646
|
-
},
|
4681
|
+
}, ft = () => {
|
4647
4682
|
window.postMessage(
|
4648
4683
|
{
|
4649
4684
|
type: "SliderData",
|
4650
|
-
identity:
|
4685
|
+
identity: ot,
|
4651
4686
|
data: W
|
4652
4687
|
},
|
4653
4688
|
window.location.href
|
4654
4689
|
);
|
4655
|
-
},
|
4656
|
-
f.data && f.data.type == "SliderLoaded" &&
|
4690
|
+
}, mt = (f) => {
|
4691
|
+
f.data && f.data.type == "SliderLoaded" && ot == f.data.identity && ft();
|
4657
4692
|
};
|
4658
|
-
|
4659
|
-
window.removeEventListener("message",
|
4693
|
+
Fr(() => (window.addEventListener("message", mt, !1), () => {
|
4694
|
+
window.removeEventListener("message", mt);
|
4660
4695
|
}));
|
4661
|
-
function
|
4662
|
-
|
4663
|
-
|
4696
|
+
function Or(f) {
|
4697
|
+
je[f ? "unshift" : "push"](() => {
|
4698
|
+
G = f, r(14, G);
|
4664
4699
|
});
|
4665
4700
|
}
|
4666
4701
|
return e.$$set = (f) => {
|
4667
|
-
"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(17, a = f.userid), "session" in f && r(18, h = f.session), "mostplayed" in f && r(19, u = f.mostplayed), "lastplayed" in f && r(20, l = f.lastplayed), "favorites" in f && r(21, 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,
|
4702
|
+
"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(17, a = f.userid), "session" in f && r(18, h = f.session), "mostplayed" in f && r(19, u = f.mostplayed), "lastplayed" in f && r(20, l = f.lastplayed), "favorites" in f && r(21, 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, g = f.actionevent), "sessioncheck" in f && r(22, T = f.sessioncheck), "location" in f && r(7, C = f.location), "showsubgroups" in f && r(8, P = f.showsubgroups), "filteredcategories" in f && r(23, w = f.filteredcategories), "translationurl" in f && r(24, O = f.translationurl), "categoriesicon" in f && r(9, N = f.categoriesicon), "lobbyiconimage" in f && r(10, M = f.lobbyiconimage), "mygamesiconimage" in f && r(11, _ = f.mygamesiconimage), "mbsource" in f && r(12, A = f.mbsource);
|
4668
4703
|
}, e.$$.update = () => {
|
4669
4704
|
e.$$.dirty[0] & /*endpoint, datasource, lang*/
|
4670
|
-
14 && i && s && o &&
|
4671
|
-
3940354 && i && h && (u || l || m) &&
|
4672
|
-
33824769 &&
|
4673
|
-
16777216 &&
|
4674
|
-
16400 && c &&
|
4675
|
-
16416 && d &&
|
4676
|
-
20480 &&
|
4677
|
-
}, r(16,
|
4705
|
+
14 && i && s && o && Br(), e.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
4706
|
+
3940354 && i && h && (u || l || m) && !F && Hr(), e.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
4707
|
+
33824769 && !F && b && (!h || Le) && Pr(), e.$$.dirty[0] & /*translationurl*/
|
4708
|
+
16777216 && O && Tr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4709
|
+
16400 && c && G && ns(G, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4710
|
+
16416 && d && G && is(G, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
4711
|
+
20480 && G && ss(G, `${A}.Style`);
|
4712
|
+
}, r(16, lt = 0), [
|
4678
4713
|
b,
|
4679
4714
|
i,
|
4680
4715
|
s,
|
4681
4716
|
o,
|
4682
4717
|
c,
|
4683
4718
|
d,
|
4684
|
-
|
4719
|
+
g,
|
4685
4720
|
C,
|
4686
4721
|
P,
|
4687
|
-
|
4722
|
+
N,
|
4688
4723
|
M,
|
4689
|
-
|
4724
|
+
_,
|
4690
4725
|
A,
|
4691
|
-
|
4692
|
-
|
4726
|
+
F,
|
4727
|
+
G,
|
4693
4728
|
j,
|
4694
|
-
|
4729
|
+
lt,
|
4695
4730
|
a,
|
4696
4731
|
h,
|
4697
4732
|
u,
|
@@ -4699,19 +4734,19 @@ function hs(e, t, r) {
|
|
4699
4734
|
m,
|
4700
4735
|
T,
|
4701
4736
|
w,
|
4702
|
-
|
4703
|
-
|
4704
|
-
|
4737
|
+
O,
|
4738
|
+
Le,
|
4739
|
+
Or
|
4705
4740
|
];
|
4706
4741
|
}
|
4707
|
-
class
|
4742
|
+
class ds extends qr {
|
4708
4743
|
constructor(t) {
|
4709
|
-
super(),
|
4744
|
+
super(), Qr(
|
4710
4745
|
this,
|
4711
4746
|
t,
|
4712
|
-
|
4713
|
-
|
4714
|
-
|
4747
|
+
ms,
|
4748
|
+
ls,
|
4749
|
+
$t,
|
4715
4750
|
{
|
4716
4751
|
endpoint: 1,
|
4717
4752
|
datasource: 2,
|
@@ -4735,7 +4770,7 @@ class ls extends zr {
|
|
4735
4770
|
mygamesiconimage: 11,
|
4736
4771
|
mbsource: 12
|
4737
4772
|
},
|
4738
|
-
|
4773
|
+
os,
|
4739
4774
|
[-1, -1]
|
4740
4775
|
);
|
4741
4776
|
}
|
@@ -4743,163 +4778,163 @@ class ls extends zr {
|
|
4743
4778
|
return this.$$.ctx[1];
|
4744
4779
|
}
|
4745
4780
|
set endpoint(t) {
|
4746
|
-
this.$$set({ endpoint: t }),
|
4781
|
+
this.$$set({ endpoint: t }), x();
|
4747
4782
|
}
|
4748
4783
|
get datasource() {
|
4749
4784
|
return this.$$.ctx[2];
|
4750
4785
|
}
|
4751
4786
|
set datasource(t) {
|
4752
|
-
this.$$set({ datasource: t }),
|
4787
|
+
this.$$set({ datasource: t }), x();
|
4753
4788
|
}
|
4754
4789
|
get lang() {
|
4755
4790
|
return this.$$.ctx[3];
|
4756
4791
|
}
|
4757
4792
|
set lang(t) {
|
4758
|
-
this.$$set({ lang: t }),
|
4793
|
+
this.$$set({ lang: t }), x();
|
4759
4794
|
}
|
4760
4795
|
get userid() {
|
4761
4796
|
return this.$$.ctx[17];
|
4762
4797
|
}
|
4763
4798
|
set userid(t) {
|
4764
|
-
this.$$set({ userid: t }),
|
4799
|
+
this.$$set({ userid: t }), x();
|
4765
4800
|
}
|
4766
4801
|
get session() {
|
4767
4802
|
return this.$$.ctx[18];
|
4768
4803
|
}
|
4769
4804
|
set session(t) {
|
4770
|
-
this.$$set({ session: t }),
|
4805
|
+
this.$$set({ session: t }), x();
|
4771
4806
|
}
|
4772
4807
|
get mostplayed() {
|
4773
4808
|
return this.$$.ctx[19];
|
4774
4809
|
}
|
4775
4810
|
set mostplayed(t) {
|
4776
|
-
this.$$set({ mostplayed: t }),
|
4811
|
+
this.$$set({ mostplayed: t }), x();
|
4777
4812
|
}
|
4778
4813
|
get lastplayed() {
|
4779
4814
|
return this.$$.ctx[20];
|
4780
4815
|
}
|
4781
4816
|
set lastplayed(t) {
|
4782
|
-
this.$$set({ lastplayed: t }),
|
4817
|
+
this.$$set({ lastplayed: t }), x();
|
4783
4818
|
}
|
4784
4819
|
get favorites() {
|
4785
4820
|
return this.$$.ctx[21];
|
4786
4821
|
}
|
4787
4822
|
set favorites(t) {
|
4788
|
-
this.$$set({ favorites: t }),
|
4823
|
+
this.$$set({ favorites: t }), x();
|
4789
4824
|
}
|
4790
4825
|
get clientstyling() {
|
4791
4826
|
return this.$$.ctx[4];
|
4792
4827
|
}
|
4793
4828
|
set clientstyling(t) {
|
4794
|
-
this.$$set({ clientstyling: t }),
|
4829
|
+
this.$$set({ clientstyling: t }), x();
|
4795
4830
|
}
|
4796
4831
|
get clientstylingurl() {
|
4797
4832
|
return this.$$.ctx[5];
|
4798
4833
|
}
|
4799
4834
|
set clientstylingurl(t) {
|
4800
|
-
this.$$set({ clientstylingurl: t }),
|
4835
|
+
this.$$set({ clientstylingurl: t }), x();
|
4801
4836
|
}
|
4802
4837
|
get activecategory() {
|
4803
4838
|
return this.$$.ctx[0];
|
4804
4839
|
}
|
4805
4840
|
set activecategory(t) {
|
4806
|
-
this.$$set({ activecategory: t }),
|
4841
|
+
this.$$set({ activecategory: t }), x();
|
4807
4842
|
}
|
4808
4843
|
get actionevent() {
|
4809
4844
|
return this.$$.ctx[6];
|
4810
4845
|
}
|
4811
4846
|
set actionevent(t) {
|
4812
|
-
this.$$set({ actionevent: t }),
|
4847
|
+
this.$$set({ actionevent: t }), x();
|
4813
4848
|
}
|
4814
4849
|
get sessioncheck() {
|
4815
4850
|
return this.$$.ctx[22];
|
4816
4851
|
}
|
4817
4852
|
set sessioncheck(t) {
|
4818
|
-
this.$$set({ sessioncheck: t }),
|
4853
|
+
this.$$set({ sessioncheck: t }), x();
|
4819
4854
|
}
|
4820
4855
|
get location() {
|
4821
4856
|
return this.$$.ctx[7];
|
4822
4857
|
}
|
4823
4858
|
set location(t) {
|
4824
|
-
this.$$set({ location: t }),
|
4859
|
+
this.$$set({ location: t }), x();
|
4825
4860
|
}
|
4826
4861
|
get showsubgroups() {
|
4827
4862
|
return this.$$.ctx[8];
|
4828
4863
|
}
|
4829
4864
|
set showsubgroups(t) {
|
4830
|
-
this.$$set({ showsubgroups: t }),
|
4865
|
+
this.$$set({ showsubgroups: t }), x();
|
4831
4866
|
}
|
4832
4867
|
get filteredcategories() {
|
4833
4868
|
return this.$$.ctx[23];
|
4834
4869
|
}
|
4835
4870
|
set filteredcategories(t) {
|
4836
|
-
this.$$set({ filteredcategories: t }),
|
4871
|
+
this.$$set({ filteredcategories: t }), x();
|
4837
4872
|
}
|
4838
4873
|
get translationurl() {
|
4839
4874
|
return this.$$.ctx[24];
|
4840
4875
|
}
|
4841
4876
|
set translationurl(t) {
|
4842
|
-
this.$$set({ translationurl: t }),
|
4877
|
+
this.$$set({ translationurl: t }), x();
|
4843
4878
|
}
|
4844
4879
|
get categoriesicon() {
|
4845
4880
|
return this.$$.ctx[9];
|
4846
4881
|
}
|
4847
4882
|
set categoriesicon(t) {
|
4848
|
-
this.$$set({ categoriesicon: t }),
|
4883
|
+
this.$$set({ categoriesicon: t }), x();
|
4849
4884
|
}
|
4850
4885
|
get lobbyiconimage() {
|
4851
4886
|
return this.$$.ctx[10];
|
4852
4887
|
}
|
4853
4888
|
set lobbyiconimage(t) {
|
4854
|
-
this.$$set({ lobbyiconimage: t }),
|
4889
|
+
this.$$set({ lobbyiconimage: t }), x();
|
4855
4890
|
}
|
4856
4891
|
get mygamesiconimage() {
|
4857
4892
|
return this.$$.ctx[11];
|
4858
4893
|
}
|
4859
4894
|
set mygamesiconimage(t) {
|
4860
|
-
this.$$set({ mygamesiconimage: t }),
|
4895
|
+
this.$$set({ mygamesiconimage: t }), x();
|
4861
4896
|
}
|
4862
4897
|
get mbsource() {
|
4863
4898
|
return this.$$.ctx[12];
|
4864
4899
|
}
|
4865
4900
|
set mbsource(t) {
|
4866
|
-
this.$$set({ mbsource: t }),
|
4901
|
+
this.$$set({ mbsource: t }), x();
|
4867
4902
|
}
|
4868
4903
|
}
|
4869
|
-
|
4904
|
+
Yr(ds, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
4870
4905
|
export {
|
4871
4906
|
de as $,
|
4872
|
-
|
4873
|
-
|
4874
|
-
|
4875
|
-
|
4876
|
-
|
4877
|
-
|
4878
|
-
|
4907
|
+
ps as A,
|
4908
|
+
ws as B,
|
4909
|
+
ns as C,
|
4910
|
+
is as D,
|
4911
|
+
ss as E,
|
4912
|
+
ds as F,
|
4913
|
+
qr as S,
|
4879
4914
|
me as a,
|
4880
|
-
|
4881
|
-
|
4882
|
-
|
4883
|
-
|
4884
|
-
|
4885
|
-
|
4886
|
-
|
4887
|
-
|
4888
|
-
|
4889
|
-
|
4890
|
-
|
4891
|
-
|
4915
|
+
vr as b,
|
4916
|
+
Yr as c,
|
4917
|
+
Mr as d,
|
4918
|
+
re as e,
|
4919
|
+
x as f,
|
4920
|
+
ce as g,
|
4921
|
+
le as h,
|
4922
|
+
Qr as i,
|
4923
|
+
jt as j,
|
4924
|
+
k,
|
4925
|
+
vs as l,
|
4926
|
+
ys as m,
|
4892
4927
|
I as n,
|
4893
|
-
|
4894
|
-
|
4895
|
-
|
4896
|
-
|
4897
|
-
|
4898
|
-
|
4899
|
-
|
4900
|
-
|
4901
|
-
|
4902
|
-
|
4903
|
-
|
4904
|
-
|
4928
|
+
Fr as o,
|
4929
|
+
_s as p,
|
4930
|
+
Ss as q,
|
4931
|
+
te as r,
|
4932
|
+
$t as s,
|
4933
|
+
gs as t,
|
4934
|
+
Ts as u,
|
4935
|
+
xs as v,
|
4936
|
+
je as w,
|
4937
|
+
bs as x,
|
4938
|
+
Es as y,
|
4939
|
+
kt as z
|
4905
4940
|
};
|