@everymatrix/casino-categories-slider-nd 1.55.0 → 1.56.2
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/{CasinoCategoriesSliderNd-W_Uo1p5I.js → CasinoCategoriesSliderNd-BUqxOK_T.js} +794 -726
- package/components/CasinoCategoriesSliderNd-BfbeNyDi.cjs +18 -0
- package/components/{CasinoCategoriesSliderNd-CA92gQ5l.js → CasinoCategoriesSliderNd-DAmBPAOF.js} +839 -771
- package/components/CasinoSliderNd-BE1McHRI.js +1101 -0
- package/components/CasinoSliderNd-Bogm7697.js +1082 -0
- package/components/CasinoSliderNd-XFFSbSWU.cjs +1 -0
- package/es2015/casino-categories-slider-nd.cjs +1 -1
- package/es2015/casino-categories-slider-nd.js +1 -1
- package/esnext/casino-categories-slider-nd.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategoriesSliderNd-8rY8Cnbg.cjs +0 -5
- package/components/CasinoSliderNd-BmU7j05f.js +0 -1102
- package/components/CasinoSliderNd-C2CIJ3sh.js +0 -1083
- package/components/CasinoSliderNd-SWuJ4VlC.cjs +0 -1
package/components/{CasinoCategoriesSliderNd-W_Uo1p5I.js → CasinoCategoriesSliderNd-BUqxOK_T.js}
RENAMED
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
function
|
|
1
|
+
function P() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Mt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function ct() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function re(e) {
|
|
10
|
+
e.forEach(Mt);
|
|
11
11
|
}
|
|
12
12
|
function Te(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Rt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
let
|
|
19
|
-
function
|
|
20
|
-
return e === t ? !0 : (
|
|
18
|
+
let pe;
|
|
19
|
+
function ms(e, t) {
|
|
20
|
+
return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Or(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Gt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
29
|
-
return
|
|
29
|
+
return P;
|
|
30
30
|
}
|
|
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 Lr(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Gt(t, r));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
return e && Te(e.destroy) ? e.destroy :
|
|
37
|
+
function Ir(e) {
|
|
38
|
+
return e && Te(e.destroy) ? e.destroy : P;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Ut(e, t) {
|
|
41
41
|
e.appendChild(t);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
const n =
|
|
43
|
+
function Cr(e, t, r) {
|
|
44
|
+
const n = Mr(e);
|
|
45
45
|
if (!n.getElementById(t)) {
|
|
46
46
|
const i = k("style");
|
|
47
|
-
i.id = t, i.textContent = r,
|
|
47
|
+
i.id = t, i.textContent = r, Rr(n, i);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
if (!e)
|
|
50
|
+
function Mr(e) {
|
|
51
|
+
if (!e)
|
|
52
|
+
return document;
|
|
52
53
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
53
54
|
return t && /** @type {ShadowRoot} */
|
|
54
55
|
t.host ? (
|
|
@@ -56,8 +57,8 @@ function Rr(e) {
|
|
|
56
57
|
t
|
|
57
58
|
) : e.ownerDocument;
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
-
return
|
|
60
|
+
function Rr(e, t) {
|
|
61
|
+
return Ut(
|
|
61
62
|
/** @type {Document} */
|
|
62
63
|
e.head || e,
|
|
63
64
|
t
|
|
@@ -66,46 +67,46 @@ function Gr(e, t) {
|
|
|
66
67
|
function fe(e, t, r) {
|
|
67
68
|
e.insertBefore(t, r || null);
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
+
function ne(e) {
|
|
70
71
|
e.parentNode && e.parentNode.removeChild(e);
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
+
function ds(e, t) {
|
|
73
74
|
for (let r = 0; r < e.length; r += 1)
|
|
74
75
|
e[r] && e[r].d(t);
|
|
75
76
|
}
|
|
76
77
|
function k(e) {
|
|
77
78
|
return document.createElement(e);
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
+
function bs(e) {
|
|
80
81
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function Dt(e) {
|
|
83
84
|
return document.createTextNode(e);
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
86
|
+
function ps() {
|
|
87
|
+
return Dt(" ");
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
89
|
+
function gs() {
|
|
90
|
+
return Dt("");
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function ys(e, t, r, n) {
|
|
92
93
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
93
94
|
}
|
|
94
|
-
function
|
|
95
|
+
function ie(e, t, r) {
|
|
95
96
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
96
97
|
}
|
|
97
98
|
function _(e, t, r) {
|
|
98
99
|
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 :
|
|
100
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : ie(e, t, r);
|
|
100
101
|
}
|
|
101
|
-
function
|
|
102
|
+
function Gr(e) {
|
|
102
103
|
return Array.from(e.childNodes);
|
|
103
104
|
}
|
|
104
|
-
function
|
|
105
|
+
function vs(e, t) {
|
|
105
106
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
106
107
|
t);
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
+
function Ur(e) {
|
|
109
110
|
const t = {};
|
|
110
111
|
return e.childNodes.forEach(
|
|
111
112
|
/** @param {Element} node */
|
|
@@ -118,27 +119,28 @@ let he;
|
|
|
118
119
|
function ue(e) {
|
|
119
120
|
he = e;
|
|
120
121
|
}
|
|
121
|
-
function
|
|
122
|
-
if (!he)
|
|
122
|
+
function Dr() {
|
|
123
|
+
if (!he)
|
|
124
|
+
throw new Error("Function called outside component initialization");
|
|
123
125
|
return he;
|
|
124
126
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
127
|
+
function Fr(e) {
|
|
128
|
+
Dr().$$.on_mount.push(e);
|
|
127
129
|
}
|
|
128
|
-
const Q = [],
|
|
130
|
+
const Q = [], $e = [];
|
|
129
131
|
let Y = [];
|
|
130
|
-
const
|
|
131
|
-
let
|
|
132
|
-
function
|
|
133
|
-
|
|
132
|
+
const ft = [], Ft = /* @__PURE__ */ Promise.resolve();
|
|
133
|
+
let je = !1;
|
|
134
|
+
function $t() {
|
|
135
|
+
je || (je = !0, Ft.then(S));
|
|
134
136
|
}
|
|
135
137
|
function $r() {
|
|
136
|
-
return
|
|
138
|
+
return $t(), Ft;
|
|
137
139
|
}
|
|
138
|
-
function
|
|
140
|
+
function ke(e) {
|
|
139
141
|
Y.push(e);
|
|
140
142
|
}
|
|
141
|
-
const
|
|
143
|
+
const Ie = /* @__PURE__ */ new Set();
|
|
142
144
|
let z = 0;
|
|
143
145
|
function S() {
|
|
144
146
|
if (z !== 0)
|
|
@@ -153,22 +155,23 @@ function S() {
|
|
|
153
155
|
} catch (t) {
|
|
154
156
|
throw Q.length = 0, z = 0, t;
|
|
155
157
|
}
|
|
156
|
-
for (ue(null), Q.length = 0, z = 0;
|
|
158
|
+
for (ue(null), Q.length = 0, z = 0; $e.length; )
|
|
159
|
+
$e.pop()();
|
|
157
160
|
for (let t = 0; t < Y.length; t += 1) {
|
|
158
161
|
const r = Y[t];
|
|
159
|
-
|
|
162
|
+
Ie.has(r) || (Ie.add(r), r());
|
|
160
163
|
}
|
|
161
164
|
Y.length = 0;
|
|
162
165
|
} while (Q.length);
|
|
163
|
-
for (;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
+
for (; ft.length; )
|
|
167
|
+
ft.pop()();
|
|
168
|
+
je = !1, Ie.clear(), ue(e);
|
|
166
169
|
}
|
|
167
170
|
function jr(e) {
|
|
168
171
|
if (e.fragment !== null) {
|
|
169
|
-
e.update(),
|
|
172
|
+
e.update(), re(e.before_update);
|
|
170
173
|
const t = e.dirty;
|
|
171
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
174
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ke);
|
|
172
175
|
}
|
|
173
176
|
}
|
|
174
177
|
function kr(e) {
|
|
@@ -176,53 +179,55 @@ function kr(e) {
|
|
|
176
179
|
Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
|
|
177
180
|
}
|
|
178
181
|
const Vr = /* @__PURE__ */ new Set();
|
|
179
|
-
function
|
|
182
|
+
function jt(e, t) {
|
|
180
183
|
e && e.i && (Vr.delete(e), e.i(t));
|
|
181
184
|
}
|
|
182
|
-
function
|
|
185
|
+
function _s(e) {
|
|
183
186
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
184
187
|
}
|
|
185
|
-
function
|
|
188
|
+
function Es(e, t) {
|
|
186
189
|
e.d(1), t.delete(e.key);
|
|
187
190
|
}
|
|
188
|
-
function
|
|
189
|
-
let c = e.length, d = s.length,
|
|
190
|
-
const
|
|
191
|
-
for (;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
191
|
+
function xs(e, t, r, n, i, s, o, a, h, u, l, f) {
|
|
192
|
+
let c = e.length, d = s.length, p = c;
|
|
193
|
+
const b = {};
|
|
194
|
+
for (; p--; )
|
|
195
|
+
b[e[p].key] = p;
|
|
196
|
+
const w = [], C = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), T = [];
|
|
197
|
+
for (p = d; p--; ) {
|
|
198
|
+
const E = f(i, s, p), L = r(E);
|
|
195
199
|
let I = o.get(L);
|
|
196
|
-
I ? T.push(() => I.p(E, t)) : (I = u(L, E), I.c()), C.set(L, w[
|
|
200
|
+
I ? T.push(() => I.p(E, t)) : (I = u(L, E), I.c()), C.set(L, w[p] = I), L in b && N.set(L, Math.abs(p - b[L]));
|
|
197
201
|
}
|
|
198
|
-
const
|
|
199
|
-
function
|
|
200
|
-
|
|
202
|
+
const O = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set();
|
|
203
|
+
function M(E) {
|
|
204
|
+
jt(E, 1), E.m(a, l), o.set(E.key, E), l = E.first, d--;
|
|
201
205
|
}
|
|
202
206
|
for (; c && d; ) {
|
|
203
|
-
const E = w[d - 1], L = e[c - 1], I = E.key,
|
|
204
|
-
E === L ? (l = E.first, c--, d--) : C.has(
|
|
207
|
+
const E = w[d - 1], L = e[c - 1], I = E.key, F = L.key;
|
|
208
|
+
E === L ? (l = E.first, c--, d--) : C.has(F) ? !o.has(I) || O.has(I) ? M(E) : H.has(F) ? c-- : N.get(I) > N.get(F) ? (H.add(I), M(E)) : (O.add(F), c--) : (h(L, o), c--);
|
|
205
209
|
}
|
|
206
210
|
for (; c--; ) {
|
|
207
211
|
const E = e[c];
|
|
208
212
|
C.has(E.key) || h(E, o);
|
|
209
213
|
}
|
|
210
|
-
for (; d; )
|
|
211
|
-
|
|
214
|
+
for (; d; )
|
|
215
|
+
M(w[d - 1]);
|
|
216
|
+
return re(T), w;
|
|
212
217
|
}
|
|
213
218
|
function Xr(e, t, r) {
|
|
214
219
|
const { fragment: n, after_update: i } = e.$$;
|
|
215
|
-
n && n.m(t, r),
|
|
216
|
-
const s = e.$$.on_mount.map(
|
|
217
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
218
|
-
}), i.forEach(
|
|
220
|
+
n && n.m(t, r), ke(() => {
|
|
221
|
+
const s = e.$$.on_mount.map(Mt).filter(Te);
|
|
222
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
|
223
|
+
}), i.forEach(ke);
|
|
219
224
|
}
|
|
220
225
|
function Wr(e, t) {
|
|
221
226
|
const r = e.$$;
|
|
222
|
-
r.fragment !== null && (kr(r.after_update),
|
|
227
|
+
r.fragment !== null && (kr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
223
228
|
}
|
|
224
229
|
function zr(e, t) {
|
|
225
|
-
e.$$.dirty[0] === -1 && (Q.push(e),
|
|
230
|
+
e.$$.dirty[0] === -1 && (Q.push(e), $t(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
226
231
|
}
|
|
227
232
|
function Zr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
228
233
|
const h = he;
|
|
@@ -232,9 +237,9 @@ function Zr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
232
237
|
ctx: [],
|
|
233
238
|
// state
|
|
234
239
|
props: s,
|
|
235
|
-
update:
|
|
240
|
+
update: P,
|
|
236
241
|
not_equal: i,
|
|
237
|
-
bound:
|
|
242
|
+
bound: ct(),
|
|
238
243
|
// lifecycle
|
|
239
244
|
on_mount: [],
|
|
240
245
|
on_destroy: [],
|
|
@@ -243,28 +248,28 @@ function Zr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
243
248
|
after_update: [],
|
|
244
249
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
245
250
|
// everything else
|
|
246
|
-
callbacks:
|
|
251
|
+
callbacks: ct(),
|
|
247
252
|
dirty: a,
|
|
248
253
|
skip_bound: !1,
|
|
249
254
|
root: t.target || h.$$.root
|
|
250
255
|
};
|
|
251
256
|
o && o(u.root);
|
|
252
257
|
let l = !1;
|
|
253
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
254
|
-
const
|
|
255
|
-
return u.ctx && i(u.ctx[
|
|
256
|
-
}) : [], u.update(), l = !0,
|
|
258
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
259
|
+
const p = d.length ? d[0] : c;
|
|
260
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), l && zr(e, f)), c;
|
|
261
|
+
}) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
257
262
|
if (t.hydrate) {
|
|
258
|
-
const
|
|
259
|
-
u.fragment && u.fragment.l(
|
|
263
|
+
const f = Gr(t.target);
|
|
264
|
+
u.fragment && u.fragment.l(f), f.forEach(ne);
|
|
260
265
|
} else
|
|
261
266
|
u.fragment && u.fragment.c();
|
|
262
|
-
t.intro &&
|
|
267
|
+
t.intro && jt(e.$$.fragment), Xr(e, t.target, t.anchor), S();
|
|
263
268
|
}
|
|
264
269
|
ue(h);
|
|
265
270
|
}
|
|
266
|
-
let
|
|
267
|
-
typeof HTMLElement == "function" && (
|
|
271
|
+
let kt;
|
|
272
|
+
typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
268
273
|
/** The Svelte component constructor */
|
|
269
274
|
$$ctor;
|
|
270
275
|
/** Slots */
|
|
@@ -306,7 +311,7 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
|
306
311
|
let s;
|
|
307
312
|
return {
|
|
308
313
|
c: function() {
|
|
309
|
-
s = k("slot"), i !== "default" &&
|
|
314
|
+
s = k("slot"), i !== "default" && ie(s, "name", i);
|
|
310
315
|
},
|
|
311
316
|
/**
|
|
312
317
|
* @param {HTMLElement} target
|
|
@@ -316,19 +321,19 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
|
316
321
|
fe(h, s, u);
|
|
317
322
|
},
|
|
318
323
|
d: function(h) {
|
|
319
|
-
h &&
|
|
324
|
+
h && ne(s);
|
|
320
325
|
}
|
|
321
326
|
};
|
|
322
327
|
};
|
|
323
328
|
};
|
|
324
329
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
325
330
|
return;
|
|
326
|
-
const t = {}, r =
|
|
331
|
+
const t = {}, r = Ur(this);
|
|
327
332
|
for (const i of this.$$s)
|
|
328
333
|
i in r && (t[i] = [e(i)]);
|
|
329
334
|
for (const i of this.attributes) {
|
|
330
335
|
const s = this.$$g_p(i.name);
|
|
331
|
-
s in this.$$d || (this.$$d[s] =
|
|
336
|
+
s in this.$$d || (this.$$d[s] = ve(s, i.value, this.$$p_d, "toProp"));
|
|
332
337
|
}
|
|
333
338
|
for (const i in this.$$p_d)
|
|
334
339
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -346,7 +351,7 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
|
346
351
|
this.$$r = !0;
|
|
347
352
|
for (const i in this.$$p_d)
|
|
348
353
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
349
|
-
const s =
|
|
354
|
+
const s = ve(
|
|
350
355
|
i,
|
|
351
356
|
this.$$d[i],
|
|
352
357
|
this.$$p_d,
|
|
@@ -368,7 +373,7 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
|
368
373
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
369
374
|
// and setting attributes through setAttribute etc, this is helpful
|
|
370
375
|
attributeChangedCallback(e, t, r) {
|
|
371
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
376
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ve(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
372
377
|
}
|
|
373
378
|
disconnectedCallback() {
|
|
374
379
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -381,7 +386,7 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
|
381
386
|
) || e;
|
|
382
387
|
}
|
|
383
388
|
});
|
|
384
|
-
function
|
|
389
|
+
function ve(e, t, r, n) {
|
|
385
390
|
const i = r[e]?.type;
|
|
386
391
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
387
392
|
return t;
|
|
@@ -411,7 +416,7 @@ function ye(e, t, r, n) {
|
|
|
411
416
|
}
|
|
412
417
|
}
|
|
413
418
|
function Qr(e, t, r, n, i, s) {
|
|
414
|
-
let o = class extends
|
|
419
|
+
let o = class extends kt {
|
|
415
420
|
constructor() {
|
|
416
421
|
super(e, r, i), this.$$p_d = t;
|
|
417
422
|
}
|
|
@@ -427,7 +432,7 @@ function Qr(e, t, r, n, i, s) {
|
|
|
427
432
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
428
433
|
},
|
|
429
434
|
set(h) {
|
|
430
|
-
h =
|
|
435
|
+
h = ve(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
431
436
|
}
|
|
432
437
|
});
|
|
433
438
|
}), n.forEach((a) => {
|
|
@@ -458,7 +463,7 @@ class Yr {
|
|
|
458
463
|
$$set = void 0;
|
|
459
464
|
/** @returns {void} */
|
|
460
465
|
$destroy() {
|
|
461
|
-
Wr(this, 1), this.$destroy =
|
|
466
|
+
Wr(this, 1), this.$destroy = P;
|
|
462
467
|
}
|
|
463
468
|
/**
|
|
464
469
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -468,7 +473,7 @@ class Yr {
|
|
|
468
473
|
*/
|
|
469
474
|
$on(t, r) {
|
|
470
475
|
if (!Te(r))
|
|
471
|
-
return
|
|
476
|
+
return P;
|
|
472
477
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
473
478
|
return n.push(r), () => {
|
|
474
479
|
const i = n.indexOf(r);
|
|
@@ -480,22 +485,37 @@ class Yr {
|
|
|
480
485
|
* @returns {void}
|
|
481
486
|
*/
|
|
482
487
|
$set(t) {
|
|
483
|
-
this.$$set && !
|
|
488
|
+
this.$$set && !Or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
484
489
|
}
|
|
485
490
|
}
|
|
486
491
|
const qr = "4";
|
|
487
492
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(qr);
|
|
488
|
-
|
|
489
|
-
|
|
493
|
+
/*! *****************************************************************************
|
|
494
|
+
Copyright (c) Microsoft Corporation.
|
|
495
|
+
|
|
496
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
497
|
+
purpose with or without fee is hereby granted.
|
|
498
|
+
|
|
499
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
500
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
501
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
502
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
503
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
504
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
505
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
506
|
+
***************************************************************************** */
|
|
507
|
+
var Ve = function(e, t) {
|
|
508
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
490
509
|
r.__proto__ = n;
|
|
491
510
|
} || function(r, n) {
|
|
492
|
-
for (var i in n)
|
|
493
|
-
|
|
511
|
+
for (var i in n)
|
|
512
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
513
|
+
}, Ve(e, t);
|
|
494
514
|
};
|
|
495
515
|
function U(e, t) {
|
|
496
516
|
if (typeof t != "function" && t !== null)
|
|
497
517
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
498
|
-
|
|
518
|
+
Ve(e, t);
|
|
499
519
|
function r() {
|
|
500
520
|
this.constructor = e;
|
|
501
521
|
}
|
|
@@ -505,61 +525,69 @@ var v = function() {
|
|
|
505
525
|
return v = Object.assign || function(t) {
|
|
506
526
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
507
527
|
r = arguments[n];
|
|
508
|
-
for (var s in r)
|
|
528
|
+
for (var s in r)
|
|
529
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
509
530
|
}
|
|
510
531
|
return t;
|
|
511
532
|
}, v.apply(this, arguments);
|
|
512
533
|
};
|
|
513
534
|
function Jr(e, t) {
|
|
514
535
|
var r = {};
|
|
515
|
-
for (var n in e)
|
|
536
|
+
for (var n in e)
|
|
537
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
516
538
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
517
539
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
518
540
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
519
541
|
return r;
|
|
520
542
|
}
|
|
521
|
-
function
|
|
543
|
+
function Xe(e) {
|
|
522
544
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
523
|
-
if (r)
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
545
|
+
if (r)
|
|
546
|
+
return r.call(e);
|
|
547
|
+
if (e && typeof e.length == "number")
|
|
548
|
+
return {
|
|
549
|
+
next: function() {
|
|
550
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
551
|
+
}
|
|
552
|
+
};
|
|
529
553
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
530
554
|
}
|
|
531
|
-
function
|
|
555
|
+
function We(e, t) {
|
|
532
556
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
533
|
-
if (!r)
|
|
557
|
+
if (!r)
|
|
558
|
+
return e;
|
|
534
559
|
var n = r.call(e), i, s = [], o;
|
|
535
560
|
try {
|
|
536
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
561
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
562
|
+
s.push(i.value);
|
|
537
563
|
} catch (a) {
|
|
538
564
|
o = { error: a };
|
|
539
565
|
} finally {
|
|
540
566
|
try {
|
|
541
567
|
i && !i.done && (r = n.return) && r.call(n);
|
|
542
568
|
} finally {
|
|
543
|
-
if (o)
|
|
569
|
+
if (o)
|
|
570
|
+
throw o.error;
|
|
544
571
|
}
|
|
545
572
|
}
|
|
546
573
|
return s;
|
|
547
574
|
}
|
|
548
575
|
function q(e, t, r) {
|
|
549
|
-
if (r || arguments.length === 2)
|
|
550
|
-
(
|
|
551
|
-
|
|
576
|
+
if (r || arguments.length === 2)
|
|
577
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
578
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
579
|
+
return e.concat(s || t);
|
|
552
580
|
}
|
|
553
581
|
function G(e) {
|
|
554
582
|
return typeof e == "function";
|
|
555
583
|
}
|
|
556
|
-
function
|
|
584
|
+
function Vt(e) {
|
|
557
585
|
var t = function(n) {
|
|
558
586
|
Error.call(n), n.stack = new Error().stack;
|
|
559
587
|
}, r = e(t);
|
|
560
588
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
561
589
|
}
|
|
562
|
-
var
|
|
590
|
+
var Ce = Vt(function(e) {
|
|
563
591
|
return function(r) {
|
|
564
592
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
565
593
|
` + r.map(function(n, i) {
|
|
@@ -568,13 +596,13 @@ var Ie = kt(function(e) {
|
|
|
568
596
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
569
597
|
};
|
|
570
598
|
});
|
|
571
|
-
function
|
|
599
|
+
function ze(e, t) {
|
|
572
600
|
if (e) {
|
|
573
601
|
var r = e.indexOf(t);
|
|
574
602
|
0 <= r && e.splice(r, 1);
|
|
575
603
|
}
|
|
576
604
|
}
|
|
577
|
-
var
|
|
605
|
+
var He = function() {
|
|
578
606
|
function e(t) {
|
|
579
607
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
580
608
|
}
|
|
@@ -586,17 +614,18 @@ var we = function() {
|
|
|
586
614
|
if (o)
|
|
587
615
|
if (this._parentage = null, Array.isArray(o))
|
|
588
616
|
try {
|
|
589
|
-
for (var a =
|
|
617
|
+
for (var a = Xe(o), h = a.next(); !h.done; h = a.next()) {
|
|
590
618
|
var u = h.value;
|
|
591
619
|
u.remove(this);
|
|
592
620
|
}
|
|
593
|
-
} catch (
|
|
594
|
-
t = { error:
|
|
621
|
+
} catch (b) {
|
|
622
|
+
t = { error: b };
|
|
595
623
|
} finally {
|
|
596
624
|
try {
|
|
597
625
|
h && !h.done && (r = a.return) && r.call(a);
|
|
598
626
|
} finally {
|
|
599
|
-
if (t)
|
|
627
|
+
if (t)
|
|
628
|
+
throw t.error;
|
|
600
629
|
}
|
|
601
630
|
}
|
|
602
631
|
else
|
|
@@ -605,39 +634,40 @@ var we = function() {
|
|
|
605
634
|
if (G(l))
|
|
606
635
|
try {
|
|
607
636
|
l();
|
|
608
|
-
} catch (
|
|
609
|
-
s =
|
|
637
|
+
} catch (b) {
|
|
638
|
+
s = b instanceof Ce ? b.errors : [b];
|
|
610
639
|
}
|
|
611
|
-
var
|
|
612
|
-
if (
|
|
640
|
+
var f = this._finalizers;
|
|
641
|
+
if (f) {
|
|
613
642
|
this._finalizers = null;
|
|
614
643
|
try {
|
|
615
|
-
for (var c =
|
|
616
|
-
var
|
|
644
|
+
for (var c = Xe(f), d = c.next(); !d.done; d = c.next()) {
|
|
645
|
+
var p = d.value;
|
|
617
646
|
try {
|
|
618
|
-
|
|
619
|
-
} catch (
|
|
620
|
-
s = s ?? [],
|
|
647
|
+
mt(p);
|
|
648
|
+
} catch (b) {
|
|
649
|
+
s = s ?? [], b instanceof Ce ? s = q(q([], We(s)), We(b.errors)) : s.push(b);
|
|
621
650
|
}
|
|
622
651
|
}
|
|
623
|
-
} catch (
|
|
624
|
-
n = { error:
|
|
652
|
+
} catch (b) {
|
|
653
|
+
n = { error: b };
|
|
625
654
|
} finally {
|
|
626
655
|
try {
|
|
627
656
|
d && !d.done && (i = c.return) && i.call(c);
|
|
628
657
|
} finally {
|
|
629
|
-
if (n)
|
|
658
|
+
if (n)
|
|
659
|
+
throw n.error;
|
|
630
660
|
}
|
|
631
661
|
}
|
|
632
662
|
}
|
|
633
663
|
if (s)
|
|
634
|
-
throw new
|
|
664
|
+
throw new Ce(s);
|
|
635
665
|
}
|
|
636
666
|
}, e.prototype.add = function(t) {
|
|
637
667
|
var r;
|
|
638
668
|
if (t && t !== this)
|
|
639
669
|
if (this.closed)
|
|
640
|
-
|
|
670
|
+
mt(t);
|
|
641
671
|
else {
|
|
642
672
|
if (t instanceof e) {
|
|
643
673
|
if (t.closed || t._hasParent(this))
|
|
@@ -654,22 +684,22 @@ var we = function() {
|
|
|
654
684
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
655
685
|
}, e.prototype._removeParent = function(t) {
|
|
656
686
|
var r = this._parentage;
|
|
657
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
687
|
+
r === t ? this._parentage = null : Array.isArray(r) && ze(r, t);
|
|
658
688
|
}, e.prototype.remove = function(t) {
|
|
659
689
|
var r = this._finalizers;
|
|
660
|
-
r &&
|
|
690
|
+
r && ze(r, t), t instanceof e && t._removeParent(this);
|
|
661
691
|
}, e.EMPTY = function() {
|
|
662
692
|
var t = new e();
|
|
663
693
|
return t.closed = !0, t;
|
|
664
694
|
}(), e;
|
|
665
|
-
}(),
|
|
666
|
-
function
|
|
667
|
-
return e instanceof
|
|
695
|
+
}(), Xt = He.EMPTY;
|
|
696
|
+
function Wt(e) {
|
|
697
|
+
return e instanceof He || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
|
|
668
698
|
}
|
|
669
|
-
function
|
|
699
|
+
function mt(e) {
|
|
670
700
|
G(e) ? e() : e.unsubscribe();
|
|
671
701
|
}
|
|
672
|
-
var
|
|
702
|
+
var zt = {
|
|
673
703
|
onUnhandledError: null,
|
|
674
704
|
onStoppedNotification: null,
|
|
675
705
|
Promise: void 0,
|
|
@@ -679,7 +709,7 @@ var Wt = {
|
|
|
679
709
|
setTimeout: function(e, t) {
|
|
680
710
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
681
711
|
r[n - 2] = arguments[n];
|
|
682
|
-
return setTimeout.apply(void 0, q([e, t],
|
|
712
|
+
return setTimeout.apply(void 0, q([e, t], We(r)));
|
|
683
713
|
},
|
|
684
714
|
clearTimeout: function(e) {
|
|
685
715
|
return clearTimeout(e);
|
|
@@ -691,19 +721,19 @@ function en(e) {
|
|
|
691
721
|
throw e;
|
|
692
722
|
});
|
|
693
723
|
}
|
|
694
|
-
function
|
|
724
|
+
function dt() {
|
|
695
725
|
}
|
|
696
|
-
function
|
|
726
|
+
function _e(e) {
|
|
697
727
|
e();
|
|
698
728
|
}
|
|
699
|
-
var
|
|
729
|
+
var Zt = function(e) {
|
|
700
730
|
U(t, e);
|
|
701
731
|
function t(r) {
|
|
702
732
|
var n = e.call(this) || this;
|
|
703
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
733
|
+
return n.isStopped = !1, r ? (n.destination = r, Wt(r) && r.add(n)) : n.destination = sn, n;
|
|
704
734
|
}
|
|
705
735
|
return t.create = function(r, n, i) {
|
|
706
|
-
return new
|
|
736
|
+
return new Ze(r, n, i);
|
|
707
737
|
}, t.prototype.next = function(r) {
|
|
708
738
|
this.isStopped || this._next(r);
|
|
709
739
|
}, t.prototype.error = function(r) {
|
|
@@ -727,8 +757,8 @@ var zt = function(e) {
|
|
|
727
757
|
this.unsubscribe();
|
|
728
758
|
}
|
|
729
759
|
}, t;
|
|
730
|
-
}(
|
|
731
|
-
function
|
|
760
|
+
}(He), tn = Function.prototype.bind;
|
|
761
|
+
function Me(e, t) {
|
|
732
762
|
return tn.call(e, t);
|
|
733
763
|
}
|
|
734
764
|
var rn = function() {
|
|
@@ -741,7 +771,7 @@ var rn = function() {
|
|
|
741
771
|
try {
|
|
742
772
|
r.next(t);
|
|
743
773
|
} catch (n) {
|
|
744
|
-
|
|
774
|
+
ge(n);
|
|
745
775
|
}
|
|
746
776
|
}, e.prototype.error = function(t) {
|
|
747
777
|
var r = this.partialObserver;
|
|
@@ -749,20 +779,20 @@ var rn = function() {
|
|
|
749
779
|
try {
|
|
750
780
|
r.error(t);
|
|
751
781
|
} catch (n) {
|
|
752
|
-
|
|
782
|
+
ge(n);
|
|
753
783
|
}
|
|
754
784
|
else
|
|
755
|
-
|
|
785
|
+
ge(t);
|
|
756
786
|
}, e.prototype.complete = function() {
|
|
757
787
|
var t = this.partialObserver;
|
|
758
788
|
if (t.complete)
|
|
759
789
|
try {
|
|
760
790
|
t.complete();
|
|
761
791
|
} catch (r) {
|
|
762
|
-
|
|
792
|
+
ge(r);
|
|
763
793
|
}
|
|
764
794
|
}, e;
|
|
765
|
-
}(),
|
|
795
|
+
}(), Ze = function(e) {
|
|
766
796
|
U(t, e);
|
|
767
797
|
function t(r, n, i) {
|
|
768
798
|
var s = e.call(this) || this, o;
|
|
@@ -774,19 +804,19 @@ var rn = function() {
|
|
|
774
804
|
};
|
|
775
805
|
else {
|
|
776
806
|
var a;
|
|
777
|
-
s &&
|
|
807
|
+
s && zt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
778
808
|
return s.unsubscribe();
|
|
779
809
|
}, o = {
|
|
780
|
-
next: r.next &&
|
|
781
|
-
error: r.error &&
|
|
782
|
-
complete: r.complete &&
|
|
810
|
+
next: r.next && Me(r.next, a),
|
|
811
|
+
error: r.error && Me(r.error, a),
|
|
812
|
+
complete: r.complete && Me(r.complete, a)
|
|
783
813
|
}) : o = r;
|
|
784
814
|
}
|
|
785
815
|
return s.destination = new rn(o), s;
|
|
786
816
|
}
|
|
787
817
|
return t;
|
|
788
|
-
}(
|
|
789
|
-
function
|
|
818
|
+
}(Zt);
|
|
819
|
+
function ge(e) {
|
|
790
820
|
en(e);
|
|
791
821
|
}
|
|
792
822
|
function nn(e) {
|
|
@@ -794,9 +824,9 @@ function nn(e) {
|
|
|
794
824
|
}
|
|
795
825
|
var sn = {
|
|
796
826
|
closed: !0,
|
|
797
|
-
next:
|
|
827
|
+
next: dt,
|
|
798
828
|
error: nn,
|
|
799
|
-
complete:
|
|
829
|
+
complete: dt
|
|
800
830
|
}, on = function() {
|
|
801
831
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
802
832
|
}();
|
|
@@ -810,7 +840,7 @@ function un(e) {
|
|
|
810
840
|
}, r);
|
|
811
841
|
};
|
|
812
842
|
}
|
|
813
|
-
var
|
|
843
|
+
var bt = function() {
|
|
814
844
|
function e(t) {
|
|
815
845
|
t && (this._subscribe = t);
|
|
816
846
|
}
|
|
@@ -818,8 +848,8 @@ var dt = function() {
|
|
|
818
848
|
var r = new e();
|
|
819
849
|
return r.source = this, r.operator = t, r;
|
|
820
850
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
821
|
-
var i = this, s = ln(t) ? t : new
|
|
822
|
-
return
|
|
851
|
+
var i = this, s = ln(t) ? t : new Ze(t, r, n);
|
|
852
|
+
return _e(function() {
|
|
823
853
|
var o = i, a = o.operator, h = o.source;
|
|
824
854
|
s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
|
|
825
855
|
}), s;
|
|
@@ -831,8 +861,8 @@ var dt = function() {
|
|
|
831
861
|
}
|
|
832
862
|
}, e.prototype.forEach = function(t, r) {
|
|
833
863
|
var n = this;
|
|
834
|
-
return r =
|
|
835
|
-
var o = new
|
|
864
|
+
return r = pt(r), new r(function(i, s) {
|
|
865
|
+
var o = new Ze({
|
|
836
866
|
next: function(a) {
|
|
837
867
|
try {
|
|
838
868
|
t(a);
|
|
@@ -856,7 +886,7 @@ var dt = function() {
|
|
|
856
886
|
return un(t)(this);
|
|
857
887
|
}, e.prototype.toPromise = function(t) {
|
|
858
888
|
var r = this;
|
|
859
|
-
return t =
|
|
889
|
+
return t = pt(t), new t(function(n, i) {
|
|
860
890
|
var s;
|
|
861
891
|
r.subscribe(function(o) {
|
|
862
892
|
return s = o;
|
|
@@ -870,40 +900,40 @@ var dt = function() {
|
|
|
870
900
|
return new e(t);
|
|
871
901
|
}, e;
|
|
872
902
|
}();
|
|
873
|
-
function
|
|
903
|
+
function pt(e) {
|
|
874
904
|
var t;
|
|
875
|
-
return (t = e ??
|
|
905
|
+
return (t = e ?? zt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
876
906
|
}
|
|
877
907
|
function hn(e) {
|
|
878
908
|
return e && G(e.next) && G(e.error) && G(e.complete);
|
|
879
909
|
}
|
|
880
910
|
function ln(e) {
|
|
881
|
-
return e && e instanceof
|
|
911
|
+
return e && e instanceof Zt || hn(e) && Wt(e);
|
|
882
912
|
}
|
|
883
|
-
var cn =
|
|
913
|
+
var cn = Vt(function(e) {
|
|
884
914
|
return function() {
|
|
885
915
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
886
916
|
};
|
|
887
|
-
}),
|
|
917
|
+
}), Qt = function(e) {
|
|
888
918
|
U(t, e);
|
|
889
919
|
function t() {
|
|
890
920
|
var r = e.call(this) || this;
|
|
891
921
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
892
922
|
}
|
|
893
923
|
return t.prototype.lift = function(r) {
|
|
894
|
-
var n = new
|
|
924
|
+
var n = new gt(this, this);
|
|
895
925
|
return n.operator = r, n;
|
|
896
926
|
}, t.prototype._throwIfClosed = function() {
|
|
897
927
|
if (this.closed)
|
|
898
928
|
throw new cn();
|
|
899
929
|
}, t.prototype.next = function(r) {
|
|
900
930
|
var n = this;
|
|
901
|
-
|
|
931
|
+
_e(function() {
|
|
902
932
|
var i, s;
|
|
903
933
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
904
934
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
905
935
|
try {
|
|
906
|
-
for (var o =
|
|
936
|
+
for (var o = Xe(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
907
937
|
var h = a.value;
|
|
908
938
|
h.next(r);
|
|
909
939
|
}
|
|
@@ -913,14 +943,15 @@ var cn = kt(function(e) {
|
|
|
913
943
|
try {
|
|
914
944
|
a && !a.done && (s = o.return) && s.call(o);
|
|
915
945
|
} finally {
|
|
916
|
-
if (i)
|
|
946
|
+
if (i)
|
|
947
|
+
throw i.error;
|
|
917
948
|
}
|
|
918
949
|
}
|
|
919
950
|
}
|
|
920
951
|
});
|
|
921
952
|
}, t.prototype.error = function(r) {
|
|
922
953
|
var n = this;
|
|
923
|
-
|
|
954
|
+
_e(function() {
|
|
924
955
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
925
956
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
926
957
|
for (var i = n.observers; i.length; )
|
|
@@ -929,7 +960,7 @@ var cn = kt(function(e) {
|
|
|
929
960
|
});
|
|
930
961
|
}, t.prototype.complete = function() {
|
|
931
962
|
var r = this;
|
|
932
|
-
|
|
963
|
+
_e(function() {
|
|
933
964
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
934
965
|
r.isStopped = !0;
|
|
935
966
|
for (var n = r.observers; n.length; )
|
|
@@ -951,19 +982,19 @@ var cn = kt(function(e) {
|
|
|
951
982
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
952
983
|
}, t.prototype._innerSubscribe = function(r) {
|
|
953
984
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
|
954
|
-
return s || o ?
|
|
955
|
-
n.currentObservers = null,
|
|
985
|
+
return s || o ? Xt : (this.currentObservers = null, a.push(r), new He(function() {
|
|
986
|
+
n.currentObservers = null, ze(a, r);
|
|
956
987
|
}));
|
|
957
988
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
958
989
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
|
959
990
|
i ? r.error(s) : o && r.complete();
|
|
960
991
|
}, t.prototype.asObservable = function() {
|
|
961
|
-
var r = new
|
|
992
|
+
var r = new bt();
|
|
962
993
|
return r.source = this, r;
|
|
963
994
|
}, t.create = function(r, n) {
|
|
964
|
-
return new
|
|
995
|
+
return new gt(r, n);
|
|
965
996
|
}, t;
|
|
966
|
-
}(
|
|
997
|
+
}(bt), gt = function(e) {
|
|
967
998
|
U(t, e);
|
|
968
999
|
function t(r, n) {
|
|
969
1000
|
var i = e.call(this) || this;
|
|
@@ -980,17 +1011,17 @@ var cn = kt(function(e) {
|
|
|
980
1011
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
981
1012
|
}, t.prototype._subscribe = function(r) {
|
|
982
1013
|
var n, i;
|
|
983
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1014
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Xt;
|
|
984
1015
|
}, t;
|
|
985
|
-
}(
|
|
1016
|
+
}(Qt), Yt = {
|
|
986
1017
|
now: function() {
|
|
987
|
-
return (
|
|
1018
|
+
return (Yt.delegate || Date).now();
|
|
988
1019
|
},
|
|
989
1020
|
delegate: void 0
|
|
990
1021
|
}, fn = function(e) {
|
|
991
1022
|
U(t, e);
|
|
992
1023
|
function t(r, n, i) {
|
|
993
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1024
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Yt);
|
|
994
1025
|
var s = e.call(this) || this;
|
|
995
1026
|
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;
|
|
996
1027
|
}
|
|
@@ -1010,24 +1041,24 @@ var cn = kt(function(e) {
|
|
|
1010
1041
|
u && s.splice(0, u + 1);
|
|
1011
1042
|
}
|
|
1012
1043
|
}, t;
|
|
1013
|
-
}(
|
|
1014
|
-
const
|
|
1015
|
-
if (
|
|
1044
|
+
}(Qt);
|
|
1045
|
+
const yt = [], vt = {}, mn = (e, t = 0) => {
|
|
1046
|
+
if (yt.indexOf(e) == -1) {
|
|
1016
1047
|
const r = new fn(t);
|
|
1017
|
-
|
|
1048
|
+
vt[e] = r, yt.push(e);
|
|
1018
1049
|
}
|
|
1019
|
-
return
|
|
1050
|
+
return vt[e];
|
|
1020
1051
|
}, Z = [];
|
|
1021
1052
|
function dn(e, t) {
|
|
1022
1053
|
return {
|
|
1023
|
-
subscribe:
|
|
1054
|
+
subscribe: Ae(e, t).subscribe
|
|
1024
1055
|
};
|
|
1025
1056
|
}
|
|
1026
|
-
function
|
|
1057
|
+
function Ae(e, t = P) {
|
|
1027
1058
|
let r;
|
|
1028
1059
|
const n = /* @__PURE__ */ new Set();
|
|
1029
1060
|
function i(a) {
|
|
1030
|
-
if (
|
|
1061
|
+
if (Rt(e, a) && (e = a, r)) {
|
|
1031
1062
|
const h = !Z.length;
|
|
1032
1063
|
for (const u of n)
|
|
1033
1064
|
u[1](), Z.push(u, e);
|
|
@@ -1041,9 +1072,9 @@ function He(e, t = B) {
|
|
|
1041
1072
|
function s(a) {
|
|
1042
1073
|
i(a(e));
|
|
1043
1074
|
}
|
|
1044
|
-
function o(a, h =
|
|
1075
|
+
function o(a, h = P) {
|
|
1045
1076
|
const u = [a, h];
|
|
1046
|
-
return n.add(u), n.size === 1 && (r = t(i, s) ||
|
|
1077
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || P), a(e), () => {
|
|
1047
1078
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1048
1079
|
};
|
|
1049
1080
|
}
|
|
@@ -1057,26 +1088,26 @@ function se(e, t, r) {
|
|
|
1057
1088
|
return dn(r, (o, a) => {
|
|
1058
1089
|
let h = !1;
|
|
1059
1090
|
const u = [];
|
|
1060
|
-
let l = 0,
|
|
1091
|
+
let l = 0, f = P;
|
|
1061
1092
|
const c = () => {
|
|
1062
1093
|
if (l)
|
|
1063
1094
|
return;
|
|
1064
|
-
|
|
1065
|
-
const
|
|
1066
|
-
s ? o(
|
|
1095
|
+
f();
|
|
1096
|
+
const p = t(n ? u[0] : u, o, a);
|
|
1097
|
+
s ? o(p) : f = Te(p) ? p : P;
|
|
1067
1098
|
}, d = i.map(
|
|
1068
|
-
(
|
|
1069
|
-
|
|
1099
|
+
(p, b) => Gt(
|
|
1100
|
+
p,
|
|
1070
1101
|
(w) => {
|
|
1071
|
-
u[
|
|
1102
|
+
u[b] = w, l &= ~(1 << b), h && c();
|
|
1072
1103
|
},
|
|
1073
1104
|
() => {
|
|
1074
|
-
l |= 1 <<
|
|
1105
|
+
l |= 1 << b;
|
|
1075
1106
|
}
|
|
1076
1107
|
)
|
|
1077
1108
|
);
|
|
1078
1109
|
return h = !0, c(), function() {
|
|
1079
|
-
|
|
1110
|
+
re(d), f(), h = !1;
|
|
1080
1111
|
};
|
|
1081
1112
|
});
|
|
1082
1113
|
}
|
|
@@ -1101,28 +1132,28 @@ function xn(e) {
|
|
|
1101
1132
|
return Array.isArray(e) ? [] : {};
|
|
1102
1133
|
}
|
|
1103
1134
|
function le(e, t) {
|
|
1104
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1135
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? J(xn(e), e, t) : e;
|
|
1105
1136
|
}
|
|
1106
1137
|
function Sn(e, t, r) {
|
|
1107
1138
|
return e.concat(t).map(function(n) {
|
|
1108
1139
|
return le(n, r);
|
|
1109
1140
|
});
|
|
1110
1141
|
}
|
|
1111
|
-
function
|
|
1142
|
+
function wn(e, t) {
|
|
1112
1143
|
if (!t.customMerge)
|
|
1113
|
-
return
|
|
1144
|
+
return J;
|
|
1114
1145
|
var r = t.customMerge(e);
|
|
1115
|
-
return typeof r == "function" ? r :
|
|
1146
|
+
return typeof r == "function" ? r : J;
|
|
1116
1147
|
}
|
|
1117
|
-
function
|
|
1148
|
+
function Tn(e) {
|
|
1118
1149
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1119
1150
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1120
1151
|
}) : [];
|
|
1121
1152
|
}
|
|
1122
|
-
function
|
|
1123
|
-
return Object.keys(e).concat(
|
|
1153
|
+
function _t(e) {
|
|
1154
|
+
return Object.keys(e).concat(Tn(e));
|
|
1124
1155
|
}
|
|
1125
|
-
function
|
|
1156
|
+
function qt(e, t) {
|
|
1126
1157
|
try {
|
|
1127
1158
|
return t in e;
|
|
1128
1159
|
} catch {
|
|
@@ -1130,31 +1161,31 @@ function Yt(e, t) {
|
|
|
1130
1161
|
}
|
|
1131
1162
|
}
|
|
1132
1163
|
function Hn(e, t) {
|
|
1133
|
-
return
|
|
1164
|
+
return qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1134
1165
|
}
|
|
1135
1166
|
function An(e, t, r) {
|
|
1136
1167
|
var n = {};
|
|
1137
|
-
return r.isMergeableObject(e) &&
|
|
1168
|
+
return r.isMergeableObject(e) && _t(e).forEach(function(i) {
|
|
1138
1169
|
n[i] = le(e[i], r);
|
|
1139
|
-
}),
|
|
1140
|
-
Hn(e, i) || (
|
|
1170
|
+
}), _t(t).forEach(function(i) {
|
|
1171
|
+
Hn(e, i) || (qt(e, i) && r.isMergeableObject(t[i]) ? n[i] = wn(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
|
|
1141
1172
|
}), n;
|
|
1142
1173
|
}
|
|
1143
|
-
function
|
|
1174
|
+
function J(e, t, r) {
|
|
1144
1175
|
r = r || {}, r.arrayMerge = r.arrayMerge || Sn, r.isMergeableObject = r.isMergeableObject || pn, r.cloneUnlessOtherwiseSpecified = le;
|
|
1145
1176
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
1146
1177
|
return s ? n ? r.arrayMerge(e, t, r) : An(e, t, r) : le(t, r);
|
|
1147
1178
|
}
|
|
1148
|
-
|
|
1179
|
+
J.all = function(t, r) {
|
|
1149
1180
|
if (!Array.isArray(t))
|
|
1150
1181
|
throw new Error("first argument should be an array");
|
|
1151
1182
|
return t.reduce(function(n, i) {
|
|
1152
|
-
return
|
|
1183
|
+
return J(n, i, r);
|
|
1153
1184
|
}, {});
|
|
1154
1185
|
};
|
|
1155
|
-
var Bn =
|
|
1186
|
+
var Bn = J, Pn = Bn;
|
|
1156
1187
|
const Nn = /* @__PURE__ */ bn(Pn);
|
|
1157
|
-
function
|
|
1188
|
+
function Re(e, t) {
|
|
1158
1189
|
var r = t && t.cache ? t.cache : Rn, n = t && t.serializer ? t.serializer : Mn, i = t && t.strategy ? t.strategy : Ln;
|
|
1159
1190
|
return i(e, {
|
|
1160
1191
|
cache: r,
|
|
@@ -1164,92 +1195,92 @@ function Me(e, t) {
|
|
|
1164
1195
|
function On(e) {
|
|
1165
1196
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1166
1197
|
}
|
|
1167
|
-
function
|
|
1198
|
+
function Jt(e, t, r, n) {
|
|
1168
1199
|
var i = On(n) ? n : r(n), s = t.get(i);
|
|
1169
1200
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1170
1201
|
}
|
|
1171
|
-
function
|
|
1202
|
+
function Kt(e, t, r) {
|
|
1172
1203
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1173
1204
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1174
1205
|
}
|
|
1175
|
-
function
|
|
1206
|
+
function nt(e, t, r, n, i) {
|
|
1176
1207
|
return r.bind(t, e, n, i);
|
|
1177
1208
|
}
|
|
1178
1209
|
function Ln(e, t) {
|
|
1179
|
-
var r = e.length === 1 ?
|
|
1180
|
-
return
|
|
1210
|
+
var r = e.length === 1 ? Jt : Kt;
|
|
1211
|
+
return nt(e, this, r, t.cache.create(), t.serializer);
|
|
1181
1212
|
}
|
|
1182
1213
|
function In(e, t) {
|
|
1183
|
-
return
|
|
1214
|
+
return nt(e, this, Kt, t.cache.create(), t.serializer);
|
|
1184
1215
|
}
|
|
1185
1216
|
function Cn(e, t) {
|
|
1186
|
-
return
|
|
1217
|
+
return nt(e, this, Jt, t.cache.create(), t.serializer);
|
|
1187
1218
|
}
|
|
1188
1219
|
var Mn = function() {
|
|
1189
1220
|
return JSON.stringify(arguments);
|
|
1190
1221
|
};
|
|
1191
|
-
function
|
|
1222
|
+
function it() {
|
|
1192
1223
|
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1193
1224
|
}
|
|
1194
|
-
|
|
1225
|
+
it.prototype.get = function(e) {
|
|
1195
1226
|
return this.cache[e];
|
|
1196
1227
|
};
|
|
1197
|
-
|
|
1228
|
+
it.prototype.set = function(e, t) {
|
|
1198
1229
|
this.cache[e] = t;
|
|
1199
1230
|
};
|
|
1200
1231
|
var Rn = {
|
|
1201
1232
|
create: function() {
|
|
1202
|
-
return new
|
|
1233
|
+
return new it();
|
|
1203
1234
|
}
|
|
1204
|
-
},
|
|
1235
|
+
}, Ge = {
|
|
1205
1236
|
variadic: In,
|
|
1206
1237
|
monadic: Cn
|
|
1207
|
-
},
|
|
1238
|
+
}, g;
|
|
1208
1239
|
(function(e) {
|
|
1209
1240
|
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";
|
|
1210
|
-
})(
|
|
1241
|
+
})(g || (g = {}));
|
|
1211
1242
|
var x;
|
|
1212
1243
|
(function(e) {
|
|
1213
1244
|
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";
|
|
1214
1245
|
})(x || (x = {}));
|
|
1215
|
-
var
|
|
1246
|
+
var K;
|
|
1216
1247
|
(function(e) {
|
|
1217
1248
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1218
|
-
})(
|
|
1219
|
-
function
|
|
1249
|
+
})(K || (K = {}));
|
|
1250
|
+
function Et(e) {
|
|
1220
1251
|
return e.type === x.literal;
|
|
1221
1252
|
}
|
|
1222
1253
|
function Gn(e) {
|
|
1223
1254
|
return e.type === x.argument;
|
|
1224
1255
|
}
|
|
1225
|
-
function
|
|
1256
|
+
function er(e) {
|
|
1226
1257
|
return e.type === x.number;
|
|
1227
1258
|
}
|
|
1228
|
-
function
|
|
1259
|
+
function tr(e) {
|
|
1229
1260
|
return e.type === x.date;
|
|
1230
1261
|
}
|
|
1231
|
-
function
|
|
1262
|
+
function rr(e) {
|
|
1232
1263
|
return e.type === x.time;
|
|
1233
1264
|
}
|
|
1234
|
-
function
|
|
1265
|
+
function nr(e) {
|
|
1235
1266
|
return e.type === x.select;
|
|
1236
1267
|
}
|
|
1237
|
-
function
|
|
1268
|
+
function ir(e) {
|
|
1238
1269
|
return e.type === x.plural;
|
|
1239
1270
|
}
|
|
1240
1271
|
function Un(e) {
|
|
1241
1272
|
return e.type === x.pound;
|
|
1242
1273
|
}
|
|
1243
|
-
function
|
|
1274
|
+
function sr(e) {
|
|
1244
1275
|
return e.type === x.tag;
|
|
1245
1276
|
}
|
|
1246
|
-
function
|
|
1247
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1277
|
+
function or(e) {
|
|
1278
|
+
return !!(e && typeof e == "object" && e.type === K.number);
|
|
1248
1279
|
}
|
|
1249
|
-
function
|
|
1250
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1280
|
+
function Qe(e) {
|
|
1281
|
+
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
|
1251
1282
|
}
|
|
1252
|
-
var
|
|
1283
|
+
var ar = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dn = /(?:[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;
|
|
1253
1284
|
function Fn(e) {
|
|
1254
1285
|
var t = {};
|
|
1255
1286
|
return e.replace(Dn, function(r) {
|
|
@@ -1352,8 +1383,8 @@ function jn(e) {
|
|
|
1352
1383
|
if (o.length === 0)
|
|
1353
1384
|
throw new Error("Invalid number skeleton");
|
|
1354
1385
|
for (var a = o[0], h = o.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1355
|
-
var
|
|
1356
|
-
if (
|
|
1386
|
+
var f = l[u];
|
|
1387
|
+
if (f.length === 0)
|
|
1357
1388
|
throw new Error("Invalid number skeleton");
|
|
1358
1389
|
}
|
|
1359
1390
|
r.push({ stem: a, options: h });
|
|
@@ -1363,14 +1394,14 @@ function jn(e) {
|
|
|
1363
1394
|
function kn(e) {
|
|
1364
1395
|
return e.replace(/^(.*?)-/, "");
|
|
1365
1396
|
}
|
|
1366
|
-
var
|
|
1367
|
-
function
|
|
1397
|
+
var xt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ur = /^(@+)?(\+|#+)?[rs]?$/g, Vn = /(\*)(0+)|(#+)(0+)|(0+)/g, hr = /^(0+)$/;
|
|
1398
|
+
function St(e) {
|
|
1368
1399
|
var t = {};
|
|
1369
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1400
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ur, function(r, n, i) {
|
|
1370
1401
|
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)), "";
|
|
1371
1402
|
}), t;
|
|
1372
1403
|
}
|
|
1373
|
-
function
|
|
1404
|
+
function lr(e) {
|
|
1374
1405
|
switch (e) {
|
|
1375
1406
|
case "sign-auto":
|
|
1376
1407
|
return {
|
|
@@ -1418,14 +1449,14 @@ function Xn(e) {
|
|
|
1418
1449
|
notation: "scientific"
|
|
1419
1450
|
}, e = e.slice(1)), t) {
|
|
1420
1451
|
var r = e.slice(0, 2);
|
|
1421
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1452
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !hr.test(e))
|
|
1422
1453
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1423
1454
|
t.minimumIntegerDigits = e.length;
|
|
1424
1455
|
}
|
|
1425
1456
|
return t;
|
|
1426
1457
|
}
|
|
1427
|
-
function
|
|
1428
|
-
var t = {}, r =
|
|
1458
|
+
function wt(e) {
|
|
1459
|
+
var t = {}, r = lr(e);
|
|
1429
1460
|
return r || t;
|
|
1430
1461
|
}
|
|
1431
1462
|
function Wn(e) {
|
|
@@ -1464,12 +1495,12 @@ function Wn(e) {
|
|
|
1464
1495
|
continue;
|
|
1465
1496
|
case "scientific":
|
|
1466
1497
|
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1467
|
-
return v(v({}, h),
|
|
1498
|
+
return v(v({}, h), wt(u));
|
|
1468
1499
|
}, {}));
|
|
1469
1500
|
continue;
|
|
1470
1501
|
case "engineering":
|
|
1471
1502
|
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1472
|
-
return v(v({}, h),
|
|
1503
|
+
return v(v({}, h), wt(u));
|
|
1473
1504
|
}, {}));
|
|
1474
1505
|
continue;
|
|
1475
1506
|
case "notation-simple":
|
|
@@ -1514,11 +1545,11 @@ function Wn(e) {
|
|
|
1514
1545
|
case "integer-width":
|
|
1515
1546
|
if (i.options.length > 1)
|
|
1516
1547
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1517
|
-
i.options[0].replace(Vn, function(h, u, l,
|
|
1548
|
+
i.options[0].replace(Vn, function(h, u, l, f, c, d) {
|
|
1518
1549
|
if (u)
|
|
1519
1550
|
t.minimumIntegerDigits = l.length;
|
|
1520
1551
|
else {
|
|
1521
|
-
if (
|
|
1552
|
+
if (f && c)
|
|
1522
1553
|
throw new Error("We currently do not support maximum integer digits");
|
|
1523
1554
|
if (d)
|
|
1524
1555
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1527,32 +1558,32 @@ function Wn(e) {
|
|
|
1527
1558
|
});
|
|
1528
1559
|
continue;
|
|
1529
1560
|
}
|
|
1530
|
-
if (
|
|
1561
|
+
if (hr.test(i.stem)) {
|
|
1531
1562
|
t.minimumIntegerDigits = i.stem.length;
|
|
1532
1563
|
continue;
|
|
1533
1564
|
}
|
|
1534
|
-
if (
|
|
1565
|
+
if (xt.test(i.stem)) {
|
|
1535
1566
|
if (i.options.length > 1)
|
|
1536
1567
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1537
|
-
i.stem.replace(
|
|
1538
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1568
|
+
i.stem.replace(xt, function(h, u, l, f, c, d) {
|
|
1569
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1539
1570
|
});
|
|
1540
1571
|
var s = i.options[0];
|
|
1541
|
-
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t),
|
|
1572
|
+
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), St(s)));
|
|
1542
1573
|
continue;
|
|
1543
1574
|
}
|
|
1544
|
-
if (
|
|
1545
|
-
t = v(v({}, t),
|
|
1575
|
+
if (ur.test(i.stem)) {
|
|
1576
|
+
t = v(v({}, t), St(i.stem));
|
|
1546
1577
|
continue;
|
|
1547
1578
|
}
|
|
1548
|
-
var o =
|
|
1579
|
+
var o = lr(i.stem);
|
|
1549
1580
|
o && (t = v(v({}, t), o));
|
|
1550
1581
|
var a = Xn(i.stem);
|
|
1551
1582
|
a && (t = v(v({}, t), a));
|
|
1552
1583
|
}
|
|
1553
1584
|
return t;
|
|
1554
1585
|
}
|
|
1555
|
-
var
|
|
1586
|
+
var ye = {
|
|
1556
1587
|
"001": [
|
|
1557
1588
|
"H",
|
|
1558
1589
|
"h"
|
|
@@ -2978,7 +3009,8 @@ function zn(e, t) {
|
|
|
2978
3009
|
r += h;
|
|
2979
3010
|
for (; o-- > 0; )
|
|
2980
3011
|
r = u + r;
|
|
2981
|
-
} else
|
|
3012
|
+
} else
|
|
3013
|
+
i === "J" ? r += "H" : r += i;
|
|
2982
3014
|
}
|
|
2983
3015
|
return r;
|
|
2984
3016
|
}
|
|
@@ -3001,21 +3033,21 @@ function Zn(e) {
|
|
|
3001
3033
|
}
|
|
3002
3034
|
var r = e.language, n;
|
|
3003
3035
|
r !== "root" && (n = e.maximize().region);
|
|
3004
|
-
var i =
|
|
3036
|
+
var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
|
|
3005
3037
|
return i[0];
|
|
3006
3038
|
}
|
|
3007
|
-
var
|
|
3008
|
-
function
|
|
3039
|
+
var Ue, Qn = new RegExp("^".concat(ar.source, "*")), Yn = new RegExp("".concat(ar.source, "*$"));
|
|
3040
|
+
function y(e, t) {
|
|
3009
3041
|
return { start: e, end: t };
|
|
3010
3042
|
}
|
|
3011
3043
|
var qn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Jn = !!String.fromCodePoint, Kn = !!Object.fromEntries, ei = !!String.prototype.codePointAt, ti = !!String.prototype.trimStart, ri = !!String.prototype.trimEnd, ni = !!Number.isSafeInteger, ii = ni ? Number.isSafeInteger : function(e) {
|
|
3012
3044
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3013
|
-
},
|
|
3045
|
+
}, Ye = !0;
|
|
3014
3046
|
try {
|
|
3015
|
-
var si =
|
|
3016
|
-
|
|
3047
|
+
var si = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3048
|
+
Ye = ((Ue = si.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
|
|
3017
3049
|
} catch {
|
|
3018
|
-
|
|
3050
|
+
Ye = !1;
|
|
3019
3051
|
}
|
|
3020
3052
|
var Tt = qn ? (
|
|
3021
3053
|
// Native
|
|
@@ -3027,7 +3059,7 @@ var Tt = qn ? (
|
|
|
3027
3059
|
function(t, r, n) {
|
|
3028
3060
|
return t.slice(n, n + r.length) === r;
|
|
3029
3061
|
}
|
|
3030
|
-
),
|
|
3062
|
+
), qe = Jn ? String.fromCodePoint : (
|
|
3031
3063
|
// IE11
|
|
3032
3064
|
function() {
|
|
3033
3065
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3039,7 +3071,7 @@ var Tt = qn ? (
|
|
|
3039
3071
|
}
|
|
3040
3072
|
return n;
|
|
3041
3073
|
}
|
|
3042
|
-
),
|
|
3074
|
+
), Ht = (
|
|
3043
3075
|
// native
|
|
3044
3076
|
Kn ? Object.fromEntries : (
|
|
3045
3077
|
// Ponyfill
|
|
@@ -3051,7 +3083,7 @@ var Tt = qn ? (
|
|
|
3051
3083
|
return r;
|
|
3052
3084
|
}
|
|
3053
3085
|
)
|
|
3054
|
-
),
|
|
3086
|
+
), cr = ei ? (
|
|
3055
3087
|
// Native
|
|
3056
3088
|
function(t, r) {
|
|
3057
3089
|
return t.codePointAt(r);
|
|
@@ -3086,27 +3118,27 @@ var Tt = qn ? (
|
|
|
3086
3118
|
return t.replace(Yn, "");
|
|
3087
3119
|
}
|
|
3088
3120
|
);
|
|
3089
|
-
function
|
|
3121
|
+
function fr(e, t) {
|
|
3090
3122
|
return new RegExp(e, t);
|
|
3091
3123
|
}
|
|
3092
|
-
var
|
|
3093
|
-
if (
|
|
3094
|
-
var
|
|
3095
|
-
|
|
3124
|
+
var Je;
|
|
3125
|
+
if (Ye) {
|
|
3126
|
+
var At = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3127
|
+
Je = function(t, r) {
|
|
3096
3128
|
var n;
|
|
3097
|
-
|
|
3098
|
-
var i =
|
|
3129
|
+
At.lastIndex = r;
|
|
3130
|
+
var i = At.exec(t);
|
|
3099
3131
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3100
3132
|
};
|
|
3101
3133
|
} else
|
|
3102
|
-
|
|
3134
|
+
Je = function(t, r) {
|
|
3103
3135
|
for (var n = []; ; ) {
|
|
3104
|
-
var i =
|
|
3105
|
-
if (i === void 0 ||
|
|
3136
|
+
var i = cr(t, r);
|
|
3137
|
+
if (i === void 0 || mr(i) || ci(i))
|
|
3106
3138
|
break;
|
|
3107
3139
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3108
3140
|
}
|
|
3109
|
-
return
|
|
3141
|
+
return qe.apply(void 0, n);
|
|
3110
3142
|
};
|
|
3111
3143
|
var ui = (
|
|
3112
3144
|
/** @class */
|
|
@@ -3133,13 +3165,13 @@ var ui = (
|
|
|
3133
3165
|
var a = this.clonePosition();
|
|
3134
3166
|
this.bump(), i.push({
|
|
3135
3167
|
type: x.pound,
|
|
3136
|
-
location:
|
|
3168
|
+
location: y(a, this.clonePosition())
|
|
3137
3169
|
});
|
|
3138
3170
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3139
3171
|
if (n)
|
|
3140
3172
|
break;
|
|
3141
|
-
return this.error(
|
|
3142
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
3173
|
+
return this.error(g.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3174
|
+
} else if (s === 60 && !this.ignoreTag && Ke(this.peek() || 0)) {
|
|
3143
3175
|
var o = this.parseTag(t, r);
|
|
3144
3176
|
if (o.err)
|
|
3145
3177
|
return o;
|
|
@@ -3162,7 +3194,7 @@ var ui = (
|
|
|
3162
3194
|
val: {
|
|
3163
3195
|
type: x.literal,
|
|
3164
3196
|
value: "<".concat(i, "/>"),
|
|
3165
|
-
location:
|
|
3197
|
+
location: y(n, this.clonePosition())
|
|
3166
3198
|
},
|
|
3167
3199
|
err: null
|
|
3168
3200
|
};
|
|
@@ -3172,22 +3204,22 @@ var ui = (
|
|
|
3172
3204
|
return s;
|
|
3173
3205
|
var o = s.val, a = this.clonePosition();
|
|
3174
3206
|
if (this.bumpIf("</")) {
|
|
3175
|
-
if (this.isEOF() || !
|
|
3176
|
-
return this.error(
|
|
3207
|
+
if (this.isEOF() || !Ke(this.char()))
|
|
3208
|
+
return this.error(g.INVALID_TAG, y(a, this.clonePosition()));
|
|
3177
3209
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3178
|
-
return i !== u ? this.error(
|
|
3210
|
+
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3179
3211
|
val: {
|
|
3180
3212
|
type: x.tag,
|
|
3181
3213
|
value: i,
|
|
3182
3214
|
children: o,
|
|
3183
|
-
location:
|
|
3215
|
+
location: y(n, this.clonePosition())
|
|
3184
3216
|
},
|
|
3185
3217
|
err: null
|
|
3186
|
-
} : this.error(
|
|
3218
|
+
} : this.error(g.INVALID_TAG, y(a, this.clonePosition())));
|
|
3187
3219
|
} else
|
|
3188
|
-
return this.error(
|
|
3220
|
+
return this.error(g.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
3189
3221
|
} else
|
|
3190
|
-
return this.error(
|
|
3222
|
+
return this.error(g.INVALID_TAG, y(n, this.clonePosition()));
|
|
3191
3223
|
}, e.prototype.parseTagName = function() {
|
|
3192
3224
|
var t = this.offset();
|
|
3193
3225
|
for (this.bump(); !this.isEOF() && li(this.char()); )
|
|
@@ -3212,7 +3244,7 @@ var ui = (
|
|
|
3212
3244
|
}
|
|
3213
3245
|
break;
|
|
3214
3246
|
}
|
|
3215
|
-
var h =
|
|
3247
|
+
var h = y(n, this.clonePosition());
|
|
3216
3248
|
return {
|
|
3217
3249
|
val: { type: x.literal, value: i, location: h },
|
|
3218
3250
|
err: null
|
|
@@ -3253,23 +3285,23 @@ var ui = (
|
|
|
3253
3285
|
r.push(n);
|
|
3254
3286
|
this.bump();
|
|
3255
3287
|
}
|
|
3256
|
-
return
|
|
3288
|
+
return qe.apply(void 0, r);
|
|
3257
3289
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3258
3290
|
if (this.isEOF())
|
|
3259
3291
|
return null;
|
|
3260
3292
|
var n = this.char();
|
|
3261
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3293
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qe(n));
|
|
3262
3294
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3263
3295
|
var n = this.clonePosition();
|
|
3264
3296
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3265
|
-
return this.error(
|
|
3297
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3266
3298
|
if (this.char() === 125)
|
|
3267
|
-
return this.bump(), this.error(
|
|
3299
|
+
return this.bump(), this.error(g.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
3268
3300
|
var i = this.parseIdentifierIfPossible().value;
|
|
3269
3301
|
if (!i)
|
|
3270
|
-
return this.error(
|
|
3302
|
+
return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3271
3303
|
if (this.bumpSpace(), this.isEOF())
|
|
3272
|
-
return this.error(
|
|
3304
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3273
3305
|
switch (this.char()) {
|
|
3274
3306
|
case 125:
|
|
3275
3307
|
return this.bump(), {
|
|
@@ -3277,25 +3309,25 @@ var ui = (
|
|
|
3277
3309
|
type: x.argument,
|
|
3278
3310
|
// value does not include the opening and closing braces.
|
|
3279
3311
|
value: i,
|
|
3280
|
-
location:
|
|
3312
|
+
location: y(n, this.clonePosition())
|
|
3281
3313
|
},
|
|
3282
3314
|
err: null
|
|
3283
3315
|
};
|
|
3284
3316
|
case 44:
|
|
3285
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3317
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3286
3318
|
default:
|
|
3287
|
-
return this.error(
|
|
3319
|
+
return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3288
3320
|
}
|
|
3289
3321
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3290
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3322
|
+
var t = this.clonePosition(), r = this.offset(), n = Je(this.message, r), i = r + n.length;
|
|
3291
3323
|
this.bumpTo(i);
|
|
3292
|
-
var s = this.clonePosition(), o =
|
|
3324
|
+
var s = this.clonePosition(), o = y(t, s);
|
|
3293
3325
|
return { value: n, location: o };
|
|
3294
3326
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3295
3327
|
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3296
3328
|
switch (a) {
|
|
3297
3329
|
case "":
|
|
3298
|
-
return this.error(
|
|
3330
|
+
return this.error(g.EXPECT_ARGUMENT_TYPE, y(o, h));
|
|
3299
3331
|
case "number":
|
|
3300
3332
|
case "date":
|
|
3301
3333
|
case "time": {
|
|
@@ -3303,40 +3335,40 @@ var ui = (
|
|
|
3303
3335
|
var u = null;
|
|
3304
3336
|
if (this.bumpIf(",")) {
|
|
3305
3337
|
this.bumpSpace();
|
|
3306
|
-
var l = this.clonePosition(),
|
|
3307
|
-
if (
|
|
3308
|
-
return
|
|
3309
|
-
var c = ai(
|
|
3338
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3339
|
+
if (f.err)
|
|
3340
|
+
return f;
|
|
3341
|
+
var c = ai(f.val);
|
|
3310
3342
|
if (c.length === 0)
|
|
3311
|
-
return this.error(
|
|
3312
|
-
var d =
|
|
3343
|
+
return this.error(g.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3344
|
+
var d = y(l, this.clonePosition());
|
|
3313
3345
|
u = { style: c, styleLocation: d };
|
|
3314
3346
|
}
|
|
3315
|
-
var
|
|
3316
|
-
if (
|
|
3317
|
-
return
|
|
3318
|
-
var
|
|
3347
|
+
var p = this.tryParseArgumentClose(i);
|
|
3348
|
+
if (p.err)
|
|
3349
|
+
return p;
|
|
3350
|
+
var b = y(i, this.clonePosition());
|
|
3319
3351
|
if (u && Tt(u?.style, "::", 0)) {
|
|
3320
3352
|
var w = oi(u.style.slice(2));
|
|
3321
3353
|
if (a === "number") {
|
|
3322
|
-
var
|
|
3323
|
-
return
|
|
3324
|
-
val: { type: x.number, value: n, location:
|
|
3354
|
+
var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3355
|
+
return f.err ? f : {
|
|
3356
|
+
val: { type: x.number, value: n, location: b, style: f.val },
|
|
3325
3357
|
err: null
|
|
3326
3358
|
};
|
|
3327
3359
|
} else {
|
|
3328
3360
|
if (w.length === 0)
|
|
3329
|
-
return this.error(
|
|
3361
|
+
return this.error(g.EXPECT_DATE_TIME_SKELETON, b);
|
|
3330
3362
|
var C = w;
|
|
3331
3363
|
this.locale && (C = zn(w, this.locale));
|
|
3332
3364
|
var c = {
|
|
3333
|
-
type:
|
|
3365
|
+
type: K.dateTime,
|
|
3334
3366
|
pattern: C,
|
|
3335
3367
|
location: u.styleLocation,
|
|
3336
3368
|
parsedOptions: this.shouldParseSkeletons ? Fn(C) : {}
|
|
3337
|
-
},
|
|
3369
|
+
}, N = a === "date" ? x.date : x.time;
|
|
3338
3370
|
return {
|
|
3339
|
-
val: { type:
|
|
3371
|
+
val: { type: N, value: n, location: b, style: c },
|
|
3340
3372
|
err: null
|
|
3341
3373
|
};
|
|
3342
3374
|
}
|
|
@@ -3345,7 +3377,7 @@ var ui = (
|
|
|
3345
3377
|
val: {
|
|
3346
3378
|
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
3347
3379
|
value: n,
|
|
3348
|
-
location:
|
|
3380
|
+
location: b,
|
|
3349
3381
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
3350
3382
|
},
|
|
3351
3383
|
err: null
|
|
@@ -3356,30 +3388,30 @@ var ui = (
|
|
|
3356
3388
|
case "select": {
|
|
3357
3389
|
var T = this.clonePosition();
|
|
3358
3390
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3359
|
-
return this.error(
|
|
3391
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(T, v({}, T)));
|
|
3360
3392
|
this.bumpSpace();
|
|
3361
|
-
var
|
|
3362
|
-
if (a !== "select" &&
|
|
3393
|
+
var O = this.parseIdentifierIfPossible(), H = 0;
|
|
3394
|
+
if (a !== "select" && O.value === "offset") {
|
|
3363
3395
|
if (!this.bumpIf(":"))
|
|
3364
|
-
return this.error(
|
|
3396
|
+
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3365
3397
|
this.bumpSpace();
|
|
3366
|
-
var
|
|
3367
|
-
if (
|
|
3368
|
-
return
|
|
3369
|
-
this.bumpSpace(),
|
|
3398
|
+
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3399
|
+
if (f.err)
|
|
3400
|
+
return f;
|
|
3401
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), H = f.val;
|
|
3370
3402
|
}
|
|
3371
|
-
var
|
|
3372
|
-
if (
|
|
3373
|
-
return
|
|
3374
|
-
var
|
|
3375
|
-
if (
|
|
3376
|
-
return
|
|
3377
|
-
var E =
|
|
3403
|
+
var M = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
|
3404
|
+
if (M.err)
|
|
3405
|
+
return M;
|
|
3406
|
+
var p = this.tryParseArgumentClose(i);
|
|
3407
|
+
if (p.err)
|
|
3408
|
+
return p;
|
|
3409
|
+
var E = y(i, this.clonePosition());
|
|
3378
3410
|
return a === "select" ? {
|
|
3379
3411
|
val: {
|
|
3380
3412
|
type: x.select,
|
|
3381
3413
|
value: n,
|
|
3382
|
-
options:
|
|
3414
|
+
options: Ht(M.val),
|
|
3383
3415
|
location: E
|
|
3384
3416
|
},
|
|
3385
3417
|
err: null
|
|
@@ -3387,8 +3419,8 @@ var ui = (
|
|
|
3387
3419
|
val: {
|
|
3388
3420
|
type: x.plural,
|
|
3389
3421
|
value: n,
|
|
3390
|
-
options:
|
|
3391
|
-
offset:
|
|
3422
|
+
options: Ht(M.val),
|
|
3423
|
+
offset: H,
|
|
3392
3424
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3393
3425
|
location: E
|
|
3394
3426
|
},
|
|
@@ -3396,10 +3428,10 @@ var ui = (
|
|
|
3396
3428
|
};
|
|
3397
3429
|
}
|
|
3398
3430
|
default:
|
|
3399
|
-
return this.error(
|
|
3431
|
+
return this.error(g.INVALID_ARGUMENT_TYPE, y(o, h));
|
|
3400
3432
|
}
|
|
3401
3433
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3402
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3434
|
+
return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3403
3435
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3404
3436
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3405
3437
|
var n = this.char();
|
|
@@ -3408,7 +3440,7 @@ var ui = (
|
|
|
3408
3440
|
this.bump();
|
|
3409
3441
|
var i = this.clonePosition();
|
|
3410
3442
|
if (!this.bumpUntil("'"))
|
|
3411
|
-
return this.error(
|
|
3443
|
+
return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
3412
3444
|
this.bump();
|
|
3413
3445
|
break;
|
|
3414
3446
|
}
|
|
@@ -3440,11 +3472,11 @@ var ui = (
|
|
|
3440
3472
|
try {
|
|
3441
3473
|
n = jn(t);
|
|
3442
3474
|
} catch {
|
|
3443
|
-
return this.error(
|
|
3475
|
+
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
3444
3476
|
}
|
|
3445
3477
|
return {
|
|
3446
3478
|
val: {
|
|
3447
|
-
type:
|
|
3479
|
+
type: K.number,
|
|
3448
3480
|
tokens: n,
|
|
3449
3481
|
location: r,
|
|
3450
3482
|
parsedOptions: this.shouldParseSkeletons ? Wn(n) : {}
|
|
@@ -3454,36 +3486,36 @@ var ui = (
|
|
|
3454
3486
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3455
3487
|
for (var s, o = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3456
3488
|
if (u.length === 0) {
|
|
3457
|
-
var
|
|
3489
|
+
var f = this.clonePosition();
|
|
3458
3490
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3459
|
-
var c = this.tryParseDecimalInteger(
|
|
3491
|
+
var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3460
3492
|
if (c.err)
|
|
3461
3493
|
return c;
|
|
3462
|
-
l =
|
|
3494
|
+
l = y(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3463
3495
|
} else
|
|
3464
3496
|
break;
|
|
3465
3497
|
}
|
|
3466
3498
|
if (h.has(u))
|
|
3467
|
-
return this.error(r === "select" ?
|
|
3499
|
+
return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3468
3500
|
u === "other" && (o = !0), this.bumpSpace();
|
|
3469
3501
|
var d = this.clonePosition();
|
|
3470
3502
|
if (!this.bumpIf("{"))
|
|
3471
|
-
return this.error(r === "select" ?
|
|
3472
|
-
var
|
|
3503
|
+
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3504
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3505
|
+
if (p.err)
|
|
3506
|
+
return p;
|
|
3507
|
+
var b = this.tryParseArgumentClose(d);
|
|
3473
3508
|
if (b.err)
|
|
3474
3509
|
return b;
|
|
3475
|
-
var y = this.tryParseArgumentClose(d);
|
|
3476
|
-
if (y.err)
|
|
3477
|
-
return y;
|
|
3478
3510
|
a.push([
|
|
3479
3511
|
u,
|
|
3480
3512
|
{
|
|
3481
|
-
value:
|
|
3482
|
-
location:
|
|
3513
|
+
value: p.val,
|
|
3514
|
+
location: y(d, this.clonePosition())
|
|
3483
3515
|
}
|
|
3484
3516
|
]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
|
|
3485
3517
|
}
|
|
3486
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3518
|
+
return a.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(g.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3487
3519
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3488
3520
|
var n = 1, i = this.clonePosition();
|
|
3489
3521
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3494,7 +3526,7 @@ var ui = (
|
|
|
3494
3526
|
else
|
|
3495
3527
|
break;
|
|
3496
3528
|
}
|
|
3497
|
-
var h =
|
|
3529
|
+
var h = y(i, this.clonePosition());
|
|
3498
3530
|
return s ? (o *= n, ii(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3499
3531
|
}, e.prototype.offset = function() {
|
|
3500
3532
|
return this.position.offset;
|
|
@@ -3510,7 +3542,7 @@ var ui = (
|
|
|
3510
3542
|
var t = this.position.offset;
|
|
3511
3543
|
if (t >= this.message.length)
|
|
3512
3544
|
throw Error("out of bound");
|
|
3513
|
-
var r =
|
|
3545
|
+
var r = cr(this.message, t);
|
|
3514
3546
|
if (r === void 0)
|
|
3515
3547
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3516
3548
|
return r;
|
|
@@ -3551,7 +3583,7 @@ var ui = (
|
|
|
3551
3583
|
break;
|
|
3552
3584
|
}
|
|
3553
3585
|
}, e.prototype.bumpSpace = function() {
|
|
3554
|
-
for (; !this.isEOF() &&
|
|
3586
|
+
for (; !this.isEOF() && mr(this.char()); )
|
|
3555
3587
|
this.bump();
|
|
3556
3588
|
}, e.prototype.peek = function() {
|
|
3557
3589
|
if (this.isEOF())
|
|
@@ -3561,43 +3593,44 @@ var ui = (
|
|
|
3561
3593
|
}, e;
|
|
3562
3594
|
}()
|
|
3563
3595
|
);
|
|
3564
|
-
function
|
|
3596
|
+
function Ke(e) {
|
|
3565
3597
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3566
3598
|
}
|
|
3567
3599
|
function hi(e) {
|
|
3568
|
-
return
|
|
3600
|
+
return Ke(e) || e === 47;
|
|
3569
3601
|
}
|
|
3570
3602
|
function li(e) {
|
|
3571
3603
|
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;
|
|
3572
3604
|
}
|
|
3573
|
-
function
|
|
3605
|
+
function mr(e) {
|
|
3574
3606
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3575
3607
|
}
|
|
3576
3608
|
function ci(e) {
|
|
3577
3609
|
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;
|
|
3578
3610
|
}
|
|
3579
|
-
function
|
|
3611
|
+
function et(e) {
|
|
3580
3612
|
e.forEach(function(t) {
|
|
3581
|
-
if (delete t.location,
|
|
3613
|
+
if (delete t.location, nr(t) || ir(t))
|
|
3582
3614
|
for (var r in t.options)
|
|
3583
|
-
delete t.options[r].location,
|
|
3584
|
-
else
|
|
3615
|
+
delete t.options[r].location, et(t.options[r].value);
|
|
3616
|
+
else
|
|
3617
|
+
er(t) && or(t.style) || (tr(t) || rr(t)) && Qe(t.style) ? delete t.style.location : sr(t) && et(t.children);
|
|
3585
3618
|
});
|
|
3586
3619
|
}
|
|
3587
3620
|
function fi(e, t) {
|
|
3588
3621
|
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3589
3622
|
var r = new ui(e, t).parse();
|
|
3590
3623
|
if (r.err) {
|
|
3591
|
-
var n = SyntaxError(
|
|
3624
|
+
var n = SyntaxError(g[r.err.kind]);
|
|
3592
3625
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3593
3626
|
}
|
|
3594
|
-
return t?.captureLocation ||
|
|
3627
|
+
return t?.captureLocation || et(r.val), r.val;
|
|
3595
3628
|
}
|
|
3596
|
-
var
|
|
3629
|
+
var ee;
|
|
3597
3630
|
(function(e) {
|
|
3598
3631
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3599
|
-
})(
|
|
3600
|
-
var
|
|
3632
|
+
})(ee || (ee = {}));
|
|
3633
|
+
var Be = (
|
|
3601
3634
|
/** @class */
|
|
3602
3635
|
function(e) {
|
|
3603
3636
|
U(t, e);
|
|
@@ -3609,33 +3642,33 @@ var Ae = (
|
|
|
3609
3642
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3610
3643
|
}, t;
|
|
3611
3644
|
}(Error)
|
|
3612
|
-
),
|
|
3645
|
+
), Bt = (
|
|
3613
3646
|
/** @class */
|
|
3614
3647
|
function(e) {
|
|
3615
3648
|
U(t, e);
|
|
3616
3649
|
function t(r, n, i, s) {
|
|
3617
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3650
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, s) || this;
|
|
3618
3651
|
}
|
|
3619
3652
|
return t;
|
|
3620
|
-
}(
|
|
3653
|
+
}(Be)
|
|
3621
3654
|
), mi = (
|
|
3622
3655
|
/** @class */
|
|
3623
3656
|
function(e) {
|
|
3624
3657
|
U(t, e);
|
|
3625
3658
|
function t(r, n, i) {
|
|
3626
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3659
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
|
|
3627
3660
|
}
|
|
3628
3661
|
return t;
|
|
3629
|
-
}(
|
|
3662
|
+
}(Be)
|
|
3630
3663
|
), di = (
|
|
3631
3664
|
/** @class */
|
|
3632
3665
|
function(e) {
|
|
3633
3666
|
U(t, e);
|
|
3634
3667
|
function t(r, n) {
|
|
3635
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3668
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
|
|
3636
3669
|
}
|
|
3637
3670
|
return t;
|
|
3638
|
-
}(
|
|
3671
|
+
}(Be)
|
|
3639
3672
|
), A;
|
|
3640
3673
|
(function(e) {
|
|
3641
3674
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -3649,8 +3682,8 @@ function bi(e) {
|
|
|
3649
3682
|
function pi(e) {
|
|
3650
3683
|
return typeof e == "function";
|
|
3651
3684
|
}
|
|
3652
|
-
function
|
|
3653
|
-
if (e.length === 1 &&
|
|
3685
|
+
function Ee(e, t, r, n, i, s, o) {
|
|
3686
|
+
if (e.length === 1 && Et(e[0]))
|
|
3654
3687
|
return [
|
|
3655
3688
|
{
|
|
3656
3689
|
type: A.literal,
|
|
@@ -3659,7 +3692,7 @@ function _e(e, t, r, n, i, s, o) {
|
|
|
3659
3692
|
];
|
|
3660
3693
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3661
3694
|
var l = u[h];
|
|
3662
|
-
if (
|
|
3695
|
+
if (Et(l)) {
|
|
3663
3696
|
a.push({
|
|
3664
3697
|
type: A.literal,
|
|
3665
3698
|
value: l.value
|
|
@@ -3673,10 +3706,10 @@ function _e(e, t, r, n, i, s, o) {
|
|
|
3673
3706
|
});
|
|
3674
3707
|
continue;
|
|
3675
3708
|
}
|
|
3676
|
-
var
|
|
3677
|
-
if (!(i &&
|
|
3678
|
-
throw new di(
|
|
3679
|
-
var c = i[
|
|
3709
|
+
var f = l.value;
|
|
3710
|
+
if (!(i && f in i))
|
|
3711
|
+
throw new di(f, o);
|
|
3712
|
+
var c = i[f];
|
|
3680
3713
|
if (Gn(l)) {
|
|
3681
3714
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3682
3715
|
type: typeof c == "string" ? A.literal : A.object,
|
|
@@ -3684,64 +3717,64 @@ function _e(e, t, r, n, i, s, o) {
|
|
|
3684
3717
|
});
|
|
3685
3718
|
continue;
|
|
3686
3719
|
}
|
|
3687
|
-
if (
|
|
3688
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
|
3720
|
+
if (tr(l)) {
|
|
3721
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Qe(l.style) ? l.style.parsedOptions : void 0;
|
|
3689
3722
|
a.push({
|
|
3690
3723
|
type: A.literal,
|
|
3691
3724
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3692
3725
|
});
|
|
3693
3726
|
continue;
|
|
3694
3727
|
}
|
|
3695
|
-
if (
|
|
3696
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
|
3728
|
+
if (rr(l)) {
|
|
3729
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Qe(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3697
3730
|
a.push({
|
|
3698
3731
|
type: A.literal,
|
|
3699
3732
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3700
3733
|
});
|
|
3701
3734
|
continue;
|
|
3702
3735
|
}
|
|
3703
|
-
if (
|
|
3704
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
|
3736
|
+
if (er(l)) {
|
|
3737
|
+
var d = typeof l.style == "string" ? n.number[l.style] : or(l.style) ? l.style.parsedOptions : void 0;
|
|
3705
3738
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
3706
3739
|
type: A.literal,
|
|
3707
3740
|
value: r.getNumberFormat(t, d).format(c)
|
|
3708
3741
|
});
|
|
3709
3742
|
continue;
|
|
3710
3743
|
}
|
|
3711
|
-
if (
|
|
3712
|
-
var
|
|
3744
|
+
if (sr(l)) {
|
|
3745
|
+
var p = l.children, b = l.value, w = i[b];
|
|
3713
3746
|
if (!pi(w))
|
|
3714
|
-
throw new mi(
|
|
3715
|
-
var C =
|
|
3716
|
-
return
|
|
3747
|
+
throw new mi(b, "function", o);
|
|
3748
|
+
var C = Ee(p, t, r, n, i, s), N = w(C.map(function(H) {
|
|
3749
|
+
return H.value;
|
|
3717
3750
|
}));
|
|
3718
|
-
Array.isArray(
|
|
3751
|
+
Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(H) {
|
|
3719
3752
|
return {
|
|
3720
|
-
type: typeof
|
|
3721
|
-
value:
|
|
3753
|
+
type: typeof H == "string" ? A.literal : A.object,
|
|
3754
|
+
value: H
|
|
3722
3755
|
};
|
|
3723
3756
|
}));
|
|
3724
3757
|
}
|
|
3725
|
-
if (
|
|
3758
|
+
if (nr(l)) {
|
|
3726
3759
|
var T = l.options[c] || l.options.other;
|
|
3727
3760
|
if (!T)
|
|
3728
|
-
throw new
|
|
3729
|
-
a.push.apply(a,
|
|
3761
|
+
throw new Bt(l.value, c, Object.keys(l.options), o);
|
|
3762
|
+
a.push.apply(a, Ee(T.value, t, r, n, i));
|
|
3730
3763
|
continue;
|
|
3731
3764
|
}
|
|
3732
|
-
if (
|
|
3765
|
+
if (ir(l)) {
|
|
3733
3766
|
var T = l.options["=".concat(c)];
|
|
3734
3767
|
if (!T) {
|
|
3735
3768
|
if (!Intl.PluralRules)
|
|
3736
|
-
throw new
|
|
3769
|
+
throw new Be(`Intl.PluralRules is not available in this environment.
|
|
3737
3770
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3738
|
-
`,
|
|
3739
|
-
var
|
|
3740
|
-
T = l.options[
|
|
3771
|
+
`, ee.MISSING_INTL_API, o);
|
|
3772
|
+
var O = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3773
|
+
T = l.options[O] || l.options.other;
|
|
3741
3774
|
}
|
|
3742
3775
|
if (!T)
|
|
3743
|
-
throw new
|
|
3744
|
-
a.push.apply(a,
|
|
3776
|
+
throw new Bt(l.value, c, Object.keys(l.options), o);
|
|
3777
|
+
a.push.apply(a, Ee(T.value, t, r, n, i, c - (l.offset || 0)));
|
|
3745
3778
|
continue;
|
|
3746
3779
|
}
|
|
3747
3780
|
}
|
|
@@ -3757,7 +3790,7 @@ function yi(e, t) {
|
|
|
3757
3790
|
return r[n] = gi(e[n], t[n]), r;
|
|
3758
3791
|
}, v({}, e)) : e;
|
|
3759
3792
|
}
|
|
3760
|
-
function
|
|
3793
|
+
function De(e) {
|
|
3761
3794
|
return {
|
|
3762
3795
|
create: function() {
|
|
3763
3796
|
return {
|
|
@@ -3777,29 +3810,29 @@ function vi(e) {
|
|
|
3777
3810
|
dateTime: {},
|
|
3778
3811
|
pluralRules: {}
|
|
3779
3812
|
}), {
|
|
3780
|
-
getNumberFormat:
|
|
3813
|
+
getNumberFormat: Re(function() {
|
|
3781
3814
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3782
3815
|
r[n] = arguments[n];
|
|
3783
3816
|
return new ((t = Intl.NumberFormat).bind.apply(t, q([void 0], r, !1)))();
|
|
3784
3817
|
}, {
|
|
3785
|
-
cache:
|
|
3786
|
-
strategy:
|
|
3818
|
+
cache: De(e.number),
|
|
3819
|
+
strategy: Ge.variadic
|
|
3787
3820
|
}),
|
|
3788
|
-
getDateTimeFormat:
|
|
3821
|
+
getDateTimeFormat: Re(function() {
|
|
3789
3822
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3790
3823
|
r[n] = arguments[n];
|
|
3791
3824
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, q([void 0], r, !1)))();
|
|
3792
3825
|
}, {
|
|
3793
|
-
cache:
|
|
3794
|
-
strategy:
|
|
3826
|
+
cache: De(e.dateTime),
|
|
3827
|
+
strategy: Ge.variadic
|
|
3795
3828
|
}),
|
|
3796
|
-
getPluralRules:
|
|
3829
|
+
getPluralRules: Re(function() {
|
|
3797
3830
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3798
3831
|
r[n] = arguments[n];
|
|
3799
3832
|
return new ((t = Intl.PluralRules).bind.apply(t, q([void 0], r, !1)))();
|
|
3800
3833
|
}, {
|
|
3801
|
-
cache:
|
|
3802
|
-
strategy:
|
|
3834
|
+
cache: De(e.pluralRules),
|
|
3835
|
+
strategy: Ge.variadic
|
|
3803
3836
|
})
|
|
3804
3837
|
};
|
|
3805
3838
|
}
|
|
@@ -3817,12 +3850,12 @@ var _i = (
|
|
|
3817
3850
|
var u = s.formatToParts(h);
|
|
3818
3851
|
if (u.length === 1)
|
|
3819
3852
|
return u[0].value;
|
|
3820
|
-
var l = u.reduce(function(
|
|
3821
|
-
return !
|
|
3853
|
+
var l = u.reduce(function(f, c) {
|
|
3854
|
+
return !f.length || c.type !== A.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3822
3855
|
}, []);
|
|
3823
3856
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3824
3857
|
}, this.formatToParts = function(h) {
|
|
3825
|
-
return
|
|
3858
|
+
return Ee(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3826
3859
|
}, this.resolvedOptions = function() {
|
|
3827
3860
|
var h;
|
|
3828
3861
|
return {
|
|
@@ -3936,79 +3969,79 @@ function Ei(e, t) {
|
|
|
3936
3969
|
n = void 0;
|
|
3937
3970
|
return n;
|
|
3938
3971
|
}
|
|
3939
|
-
const
|
|
3972
|
+
const D = {}, xi = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), dr = (e, t) => {
|
|
3940
3973
|
if (t == null)
|
|
3941
3974
|
return;
|
|
3942
|
-
if (t in
|
|
3943
|
-
return
|
|
3944
|
-
const r =
|
|
3975
|
+
if (t in D && e in D[t])
|
|
3976
|
+
return D[t][e];
|
|
3977
|
+
const r = Pe(t);
|
|
3945
3978
|
for (let n = 0; n < r.length; n++) {
|
|
3946
|
-
const i = r[n], s =
|
|
3979
|
+
const i = r[n], s = wi(i, e);
|
|
3947
3980
|
if (s)
|
|
3948
3981
|
return xi(e, t, s);
|
|
3949
3982
|
}
|
|
3950
3983
|
};
|
|
3951
|
-
let
|
|
3952
|
-
const me =
|
|
3984
|
+
let st;
|
|
3985
|
+
const me = Ae({});
|
|
3953
3986
|
function Si(e) {
|
|
3954
|
-
return
|
|
3987
|
+
return st[e] || null;
|
|
3955
3988
|
}
|
|
3956
|
-
function
|
|
3957
|
-
return e in
|
|
3989
|
+
function br(e) {
|
|
3990
|
+
return e in st;
|
|
3958
3991
|
}
|
|
3959
|
-
function
|
|
3960
|
-
if (!
|
|
3992
|
+
function wi(e, t) {
|
|
3993
|
+
if (!br(e))
|
|
3961
3994
|
return null;
|
|
3962
3995
|
const r = Si(e);
|
|
3963
3996
|
return Ei(r, t);
|
|
3964
3997
|
}
|
|
3965
|
-
function
|
|
3998
|
+
function Ti(e) {
|
|
3966
3999
|
if (e == null)
|
|
3967
4000
|
return;
|
|
3968
|
-
const t =
|
|
4001
|
+
const t = Pe(e);
|
|
3969
4002
|
for (let r = 0; r < t.length; r++) {
|
|
3970
4003
|
const n = t[r];
|
|
3971
|
-
if (
|
|
4004
|
+
if (br(n))
|
|
3972
4005
|
return n;
|
|
3973
4006
|
}
|
|
3974
4007
|
}
|
|
3975
|
-
function
|
|
3976
|
-
delete
|
|
4008
|
+
function pr(e, ...t) {
|
|
4009
|
+
delete D[e], me.update((r) => (r[e] = Nn.all([r[e] || {}, ...t]), r));
|
|
3977
4010
|
}
|
|
3978
4011
|
se(
|
|
3979
4012
|
[me],
|
|
3980
4013
|
([e]) => Object.keys(e)
|
|
3981
4014
|
);
|
|
3982
|
-
me.subscribe((e) =>
|
|
3983
|
-
const
|
|
4015
|
+
me.subscribe((e) => st = e);
|
|
4016
|
+
const xe = {};
|
|
3984
4017
|
function Hi(e, t) {
|
|
3985
|
-
|
|
4018
|
+
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
3986
4019
|
}
|
|
3987
|
-
function
|
|
3988
|
-
return
|
|
4020
|
+
function gr(e) {
|
|
4021
|
+
return xe[e];
|
|
3989
4022
|
}
|
|
3990
4023
|
function Ai(e) {
|
|
3991
|
-
return
|
|
3992
|
-
const r =
|
|
4024
|
+
return Pe(e).map((t) => {
|
|
4025
|
+
const r = gr(t);
|
|
3993
4026
|
return [t, r ? [...r] : []];
|
|
3994
4027
|
}).filter(([, t]) => t.length > 0);
|
|
3995
4028
|
}
|
|
3996
|
-
function
|
|
3997
|
-
return e == null ? !1 :
|
|
4029
|
+
function tt(e) {
|
|
4030
|
+
return e == null ? !1 : Pe(e).some(
|
|
3998
4031
|
(t) => {
|
|
3999
4032
|
var r;
|
|
4000
|
-
return (r =
|
|
4033
|
+
return (r = gr(t)) == null ? void 0 : r.size;
|
|
4001
4034
|
}
|
|
4002
4035
|
);
|
|
4003
4036
|
}
|
|
4004
4037
|
function Bi(e, t) {
|
|
4005
4038
|
return Promise.all(
|
|
4006
4039
|
t.map((n) => (Hi(e, n), n().then((i) => i.default || i)))
|
|
4007
|
-
).then((n) =>
|
|
4040
|
+
).then((n) => pr(e, ...n));
|
|
4008
4041
|
}
|
|
4009
4042
|
const ae = {};
|
|
4010
|
-
function
|
|
4011
|
-
if (!
|
|
4043
|
+
function yr(e) {
|
|
4044
|
+
if (!tt(e))
|
|
4012
4045
|
return e in ae ? ae[e] : Promise.resolve();
|
|
4013
4046
|
const t = Ai(e);
|
|
4014
4047
|
return ae[e] = Promise.all(
|
|
@@ -4016,8 +4049,8 @@ function gr(e) {
|
|
|
4016
4049
|
([r, n]) => Bi(r, n)
|
|
4017
4050
|
)
|
|
4018
4051
|
).then(() => {
|
|
4019
|
-
if (
|
|
4020
|
-
return
|
|
4052
|
+
if (tt(e))
|
|
4053
|
+
return yr(e);
|
|
4021
4054
|
delete ae[e];
|
|
4022
4055
|
}), ae[e];
|
|
4023
4056
|
}
|
|
@@ -4058,92 +4091,92 @@ const Pi = {
|
|
|
4058
4091
|
handleMissingMessage: void 0,
|
|
4059
4092
|
ignoreTag: !0
|
|
4060
4093
|
}, Oi = Ni;
|
|
4061
|
-
function
|
|
4094
|
+
function te() {
|
|
4062
4095
|
return Oi;
|
|
4063
4096
|
}
|
|
4064
|
-
const
|
|
4065
|
-
var Li = Object.defineProperty, Ii = Object.defineProperties, Ci = Object.getOwnPropertyDescriptors,
|
|
4097
|
+
const Fe = Ae(!1);
|
|
4098
|
+
var Li = Object.defineProperty, Ii = Object.defineProperties, Ci = Object.getOwnPropertyDescriptors, Pt = Object.getOwnPropertySymbols, Mi = Object.prototype.hasOwnProperty, Ri = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? Li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gi = (e, t) => {
|
|
4066
4099
|
for (var r in t || (t = {}))
|
|
4067
|
-
Mi.call(t, r) &&
|
|
4068
|
-
if (
|
|
4069
|
-
for (var r of
|
|
4070
|
-
Ri.call(t, r) &&
|
|
4100
|
+
Mi.call(t, r) && Nt(e, r, t[r]);
|
|
4101
|
+
if (Pt)
|
|
4102
|
+
for (var r of Pt(t))
|
|
4103
|
+
Ri.call(t, r) && Nt(e, r, t[r]);
|
|
4071
4104
|
return e;
|
|
4072
4105
|
}, Ui = (e, t) => Ii(e, Ci(t));
|
|
4073
|
-
let
|
|
4074
|
-
const
|
|
4075
|
-
function
|
|
4106
|
+
let rt;
|
|
4107
|
+
const Se = Ae(null);
|
|
4108
|
+
function Ot(e) {
|
|
4076
4109
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4077
4110
|
}
|
|
4078
|
-
function
|
|
4079
|
-
const r =
|
|
4080
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4111
|
+
function Pe(e, t = te().fallbackLocale) {
|
|
4112
|
+
const r = Ot(e);
|
|
4113
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ot(t)])] : r;
|
|
4081
4114
|
}
|
|
4082
4115
|
function V() {
|
|
4083
|
-
return
|
|
4116
|
+
return rt ?? void 0;
|
|
4084
4117
|
}
|
|
4085
|
-
|
|
4086
|
-
|
|
4118
|
+
Se.subscribe((e) => {
|
|
4119
|
+
rt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4087
4120
|
});
|
|
4088
4121
|
const Di = (e) => {
|
|
4089
|
-
if (e &&
|
|
4090
|
-
const { loadingDelay: t } =
|
|
4122
|
+
if (e && Ti(e) && tt(e)) {
|
|
4123
|
+
const { loadingDelay: t } = te();
|
|
4091
4124
|
let r;
|
|
4092
4125
|
return typeof window < "u" && V() != null && t ? r = window.setTimeout(
|
|
4093
|
-
() =>
|
|
4126
|
+
() => Fe.set(!0),
|
|
4094
4127
|
t
|
|
4095
|
-
) :
|
|
4096
|
-
|
|
4128
|
+
) : Fe.set(!0), yr(e).then(() => {
|
|
4129
|
+
Se.set(e);
|
|
4097
4130
|
}).finally(() => {
|
|
4098
|
-
clearTimeout(r),
|
|
4131
|
+
clearTimeout(r), Fe.set(!1);
|
|
4099
4132
|
});
|
|
4100
4133
|
}
|
|
4101
|
-
return
|
|
4102
|
-
}, de = Ui(Gi({},
|
|
4134
|
+
return Se.set(e);
|
|
4135
|
+
}, de = Ui(Gi({}, Se), {
|
|
4103
4136
|
set: Di
|
|
4104
|
-
}),
|
|
4137
|
+
}), Ne = (e) => {
|
|
4105
4138
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4106
4139
|
return (n) => {
|
|
4107
4140
|
const i = JSON.stringify(n);
|
|
4108
4141
|
return i in t ? t[i] : t[i] = e(n);
|
|
4109
4142
|
};
|
|
4110
4143
|
};
|
|
4111
|
-
var Fi = Object.defineProperty,
|
|
4144
|
+
var Fi = Object.defineProperty, we = Object.getOwnPropertySymbols, vr = Object.prototype.hasOwnProperty, _r = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ot = (e, t) => {
|
|
4112
4145
|
for (var r in t || (t = {}))
|
|
4113
|
-
|
|
4114
|
-
if (
|
|
4115
|
-
for (var r of
|
|
4116
|
-
|
|
4146
|
+
vr.call(t, r) && Lt(e, r, t[r]);
|
|
4147
|
+
if (we)
|
|
4148
|
+
for (var r of we(t))
|
|
4149
|
+
_r.call(t, r) && Lt(e, r, t[r]);
|
|
4117
4150
|
return e;
|
|
4118
4151
|
}, oe = (e, t) => {
|
|
4119
4152
|
var r = {};
|
|
4120
4153
|
for (var n in e)
|
|
4121
|
-
|
|
4122
|
-
if (e != null &&
|
|
4123
|
-
for (var n of
|
|
4124
|
-
t.indexOf(n) < 0 &&
|
|
4154
|
+
vr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4155
|
+
if (e != null && we)
|
|
4156
|
+
for (var n of we(e))
|
|
4157
|
+
t.indexOf(n) < 0 && _r.call(e, n) && (r[n] = e[n]);
|
|
4125
4158
|
return r;
|
|
4126
4159
|
};
|
|
4127
4160
|
const ce = (e, t) => {
|
|
4128
|
-
const { formats: r } =
|
|
4161
|
+
const { formats: r } = te();
|
|
4129
4162
|
if (e in r && t in r[e])
|
|
4130
4163
|
return r[e][t];
|
|
4131
4164
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4132
|
-
}, $i =
|
|
4165
|
+
}, $i = Ne(
|
|
4133
4166
|
(e) => {
|
|
4134
4167
|
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4135
4168
|
if (r == null)
|
|
4136
4169
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4137
4170
|
return n && (i = ce("number", n)), new Intl.NumberFormat(r, i);
|
|
4138
4171
|
}
|
|
4139
|
-
), ji =
|
|
4172
|
+
), ji = Ne(
|
|
4140
4173
|
(e) => {
|
|
4141
4174
|
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4142
4175
|
if (r == null)
|
|
4143
4176
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4144
4177
|
return n ? i = ce("date", n) : Object.keys(i).length === 0 && (i = ce("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4145
4178
|
}
|
|
4146
|
-
), ki =
|
|
4179
|
+
), ki = Ne(
|
|
4147
4180
|
(e) => {
|
|
4148
4181
|
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4149
4182
|
if (r == null)
|
|
@@ -4158,25 +4191,25 @@ const ce = (e, t) => {
|
|
|
4158
4191
|
} = t, n = oe(t, [
|
|
4159
4192
|
"locale"
|
|
4160
4193
|
]);
|
|
4161
|
-
return $i(
|
|
4194
|
+
return $i(ot({ locale: r }, n));
|
|
4162
4195
|
}, Xi = (e = {}) => {
|
|
4163
4196
|
var t = e, {
|
|
4164
4197
|
locale: r = V()
|
|
4165
4198
|
} = t, n = oe(t, [
|
|
4166
4199
|
"locale"
|
|
4167
4200
|
]);
|
|
4168
|
-
return ji(
|
|
4201
|
+
return ji(ot({ locale: r }, n));
|
|
4169
4202
|
}, Wi = (e = {}) => {
|
|
4170
4203
|
var t = e, {
|
|
4171
4204
|
locale: r = V()
|
|
4172
4205
|
} = t, n = oe(t, [
|
|
4173
4206
|
"locale"
|
|
4174
4207
|
]);
|
|
4175
|
-
return ki(
|
|
4176
|
-
}, zi =
|
|
4208
|
+
return ki(ot({ locale: r }, n));
|
|
4209
|
+
}, zi = Ne(
|
|
4177
4210
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4178
|
-
(e, t = V()) => new _i(e, t,
|
|
4179
|
-
ignoreTag:
|
|
4211
|
+
(e, t = V()) => new _i(e, t, te().formats, {
|
|
4212
|
+
ignoreTag: te().ignoreTag
|
|
4180
4213
|
})
|
|
4181
4214
|
), Zi = (e, t = {}) => {
|
|
4182
4215
|
var r, n, i, s;
|
|
@@ -4191,36 +4224,36 @@ const ce = (e, t) => {
|
|
|
4191
4224
|
throw new Error(
|
|
4192
4225
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4193
4226
|
);
|
|
4194
|
-
let l =
|
|
4227
|
+
let l = dr(e, h);
|
|
4195
4228
|
if (!l)
|
|
4196
|
-
l = (s = (i = (n = (r =
|
|
4229
|
+
l = (s = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4197
4230
|
else if (typeof l != "string")
|
|
4198
4231
|
return console.warn(
|
|
4199
4232
|
`[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.`
|
|
4200
4233
|
), l;
|
|
4201
4234
|
if (!a)
|
|
4202
4235
|
return l;
|
|
4203
|
-
let
|
|
4236
|
+
let f = l;
|
|
4204
4237
|
try {
|
|
4205
|
-
|
|
4238
|
+
f = zi(l, h).format(a);
|
|
4206
4239
|
} catch (c) {
|
|
4207
4240
|
c instanceof Error && console.warn(
|
|
4208
4241
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4209
4242
|
c.message
|
|
4210
4243
|
);
|
|
4211
4244
|
}
|
|
4212
|
-
return
|
|
4213
|
-
}, Qi = (e, t) => Wi(t).format(e), Yi = (e, t) => Xi(t).format(e), qi = (e, t) => Vi(t).format(e), Ji = (e, t = V()) =>
|
|
4245
|
+
return f;
|
|
4246
|
+
}, Qi = (e, t) => Wi(t).format(e), Yi = (e, t) => Xi(t).format(e), qi = (e, t) => Vi(t).format(e), Ji = (e, t = V()) => dr(e, t), Ki = se([de, me], () => Zi);
|
|
4214
4247
|
se([de], () => Qi);
|
|
4215
4248
|
se([de], () => Yi);
|
|
4216
4249
|
se([de], () => qi);
|
|
4217
4250
|
se([de, me], () => Ji);
|
|
4218
4251
|
window.emWidgets = { topic: mn };
|
|
4219
4252
|
const es = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4220
|
-
function
|
|
4221
|
-
|
|
4253
|
+
function It(e, t) {
|
|
4254
|
+
pr(e, t);
|
|
4222
4255
|
}
|
|
4223
|
-
const
|
|
4256
|
+
const Ct = {
|
|
4224
4257
|
en: {
|
|
4225
4258
|
lobbyName: "Lobby",
|
|
4226
4259
|
myGamesName: "My games"
|
|
@@ -4294,6 +4327,29 @@ const It = {
|
|
|
4294
4327
|
myGamesName: "My games"
|
|
4295
4328
|
}
|
|
4296
4329
|
};
|
|
4330
|
+
function ts(e, t) {
|
|
4331
|
+
if (e) {
|
|
4332
|
+
const r = document.createElement("style");
|
|
4333
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4334
|
+
}
|
|
4335
|
+
}
|
|
4336
|
+
function rs(e, t) {
|
|
4337
|
+
const r = new URL(t);
|
|
4338
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4339
|
+
const i = document.createElement("style");
|
|
4340
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4341
|
+
}).catch((n) => {
|
|
4342
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4343
|
+
});
|
|
4344
|
+
}
|
|
4345
|
+
function ns(e, t, r) {
|
|
4346
|
+
if (window.emMessageBus) {
|
|
4347
|
+
const n = document.createElement("style");
|
|
4348
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
4349
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4350
|
+
});
|
|
4351
|
+
}
|
|
4352
|
+
}
|
|
4297
4353
|
if (typeof window < "u") {
|
|
4298
4354
|
let e = function(t) {
|
|
4299
4355
|
return function(...r) {
|
|
@@ -4306,14 +4362,14 @@ if (typeof window < "u") {
|
|
|
4306
4362
|
}
|
|
4307
4363
|
};
|
|
4308
4364
|
};
|
|
4309
|
-
customElements.define = e(customElements.define), import("./CasinoSliderNd-
|
|
4365
|
+
customElements.define = e(customElements.define), import("./CasinoSliderNd-Bogm7697.js").then(({ default: t }) => {
|
|
4310
4366
|
!customElements.get("casino-slider-nd") && customElements.define("casino-slider-nd", t.element);
|
|
4311
4367
|
});
|
|
4312
4368
|
}
|
|
4313
|
-
function
|
|
4314
|
-
|
|
4369
|
+
function is(e) {
|
|
4370
|
+
Cr(e, "svelte-4b6cjp", ".svelte-4b6cjp{font-family:inherit}.CasinoCategoriesLoading.svelte-4b6cjp{height:52px}p.svelte-4b6cjp{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-4b6cjp{background:transparent;border-radius:var(--emw--border-radius-medium, 20px)}");
|
|
4315
4371
|
}
|
|
4316
|
-
function
|
|
4372
|
+
function ss(e) {
|
|
4317
4373
|
let t, r, n, i;
|
|
4318
4374
|
return {
|
|
4319
4375
|
c() {
|
|
@@ -4332,26 +4388,26 @@ function rs(e) {
|
|
|
4332
4388
|
"endpoint",
|
|
4333
4389
|
/*endpoint*/
|
|
4334
4390
|
e[1]
|
|
4335
|
-
), _(r, "identity",
|
|
4391
|
+
), _(r, "identity", Er), _(
|
|
4336
4392
|
r,
|
|
4337
4393
|
"favoritesnumber",
|
|
4338
4394
|
/*numberOfFavoredGames*/
|
|
4339
|
-
e[
|
|
4395
|
+
e[16]
|
|
4340
4396
|
), _(
|
|
4341
4397
|
r,
|
|
4342
4398
|
"showsubgroups",
|
|
4343
4399
|
/*showsubgroups*/
|
|
4344
|
-
e[
|
|
4400
|
+
e[9]
|
|
4345
4401
|
), _(
|
|
4346
4402
|
r,
|
|
4347
4403
|
"clientstyling",
|
|
4348
4404
|
/*clientstyling*/
|
|
4349
|
-
e[
|
|
4405
|
+
e[5]
|
|
4350
4406
|
), _(
|
|
4351
4407
|
r,
|
|
4352
4408
|
"clientstylingurl",
|
|
4353
4409
|
/*clientstylingurl*/
|
|
4354
|
-
e[
|
|
4410
|
+
e[6]
|
|
4355
4411
|
), _(
|
|
4356
4412
|
r,
|
|
4357
4413
|
"activeindex",
|
|
@@ -4361,33 +4417,38 @@ function rs(e) {
|
|
|
4361
4417
|
r,
|
|
4362
4418
|
"actionevent",
|
|
4363
4419
|
/*actionevent*/
|
|
4364
|
-
e[
|
|
4420
|
+
e[7]
|
|
4365
4421
|
), _(
|
|
4366
4422
|
r,
|
|
4367
4423
|
"location",
|
|
4368
4424
|
/*location*/
|
|
4369
|
-
e[
|
|
4425
|
+
e[8]
|
|
4370
4426
|
), _(
|
|
4371
4427
|
r,
|
|
4372
4428
|
"categoriesicon",
|
|
4373
4429
|
/*categoriesicon*/
|
|
4374
|
-
e[
|
|
4430
|
+
e[10]
|
|
4375
4431
|
), _(
|
|
4376
4432
|
r,
|
|
4377
4433
|
"lobbyiconimage",
|
|
4378
4434
|
/*lobbyiconimage*/
|
|
4379
|
-
e[
|
|
4435
|
+
e[11]
|
|
4380
4436
|
), _(
|
|
4381
4437
|
r,
|
|
4382
4438
|
"mygamesiconimage",
|
|
4383
4439
|
/*mygamesiconimage*/
|
|
4384
|
-
e[
|
|
4385
|
-
),
|
|
4440
|
+
e[12]
|
|
4441
|
+
), _(
|
|
4442
|
+
r,
|
|
4443
|
+
"mbsource",
|
|
4444
|
+
/*mbsource*/
|
|
4445
|
+
e[4]
|
|
4446
|
+
), _(r, "class", "svelte-4b6cjp"), ie(t, "class", "CasinoCategoriesContainer svelte-4b6cjp");
|
|
4386
4447
|
},
|
|
4387
4448
|
m(s, o) {
|
|
4388
|
-
fe(s, t, o),
|
|
4449
|
+
fe(s, t, o), Ut(t, r), n || (i = Ir(
|
|
4389
4450
|
/*sendSliderData*/
|
|
4390
|
-
e[
|
|
4451
|
+
e[17].call(null, r)
|
|
4391
4452
|
), n = !0);
|
|
4392
4453
|
},
|
|
4393
4454
|
p(s, o) {
|
|
@@ -4410,29 +4471,29 @@ function rs(e) {
|
|
|
4410
4471
|
/*endpoint*/
|
|
4411
4472
|
s[1]
|
|
4412
4473
|
), o[0] & /*numberOfFavoredGames*/
|
|
4413
|
-
|
|
4474
|
+
65536 && _(
|
|
4414
4475
|
r,
|
|
4415
4476
|
"favoritesnumber",
|
|
4416
4477
|
/*numberOfFavoredGames*/
|
|
4417
|
-
s[
|
|
4478
|
+
s[16]
|
|
4418
4479
|
), o[0] & /*showsubgroups*/
|
|
4419
|
-
|
|
4480
|
+
512 && _(
|
|
4420
4481
|
r,
|
|
4421
4482
|
"showsubgroups",
|
|
4422
4483
|
/*showsubgroups*/
|
|
4423
|
-
s[
|
|
4484
|
+
s[9]
|
|
4424
4485
|
), o[0] & /*clientstyling*/
|
|
4425
|
-
|
|
4486
|
+
32 && _(
|
|
4426
4487
|
r,
|
|
4427
4488
|
"clientstyling",
|
|
4428
4489
|
/*clientstyling*/
|
|
4429
|
-
s[
|
|
4490
|
+
s[5]
|
|
4430
4491
|
), o[0] & /*clientstylingurl*/
|
|
4431
|
-
|
|
4492
|
+
64 && _(
|
|
4432
4493
|
r,
|
|
4433
4494
|
"clientstylingurl",
|
|
4434
4495
|
/*clientstylingurl*/
|
|
4435
|
-
s[
|
|
4496
|
+
s[6]
|
|
4436
4497
|
), o[0] & /*activecategory*/
|
|
4437
4498
|
1 && _(
|
|
4438
4499
|
r,
|
|
@@ -4440,255 +4501,253 @@ function rs(e) {
|
|
|
4440
4501
|
/*activecategory*/
|
|
4441
4502
|
s[0]
|
|
4442
4503
|
), o[0] & /*actionevent*/
|
|
4443
|
-
|
|
4504
|
+
128 && _(
|
|
4444
4505
|
r,
|
|
4445
4506
|
"actionevent",
|
|
4446
4507
|
/*actionevent*/
|
|
4447
|
-
s[
|
|
4508
|
+
s[7]
|
|
4448
4509
|
), o[0] & /*location*/
|
|
4449
|
-
|
|
4510
|
+
256 && _(
|
|
4450
4511
|
r,
|
|
4451
4512
|
"location",
|
|
4452
4513
|
/*location*/
|
|
4453
|
-
s[
|
|
4514
|
+
s[8]
|
|
4454
4515
|
), o[0] & /*categoriesicon*/
|
|
4455
|
-
|
|
4516
|
+
1024 && _(
|
|
4456
4517
|
r,
|
|
4457
4518
|
"categoriesicon",
|
|
4458
4519
|
/*categoriesicon*/
|
|
4459
|
-
s[
|
|
4520
|
+
s[10]
|
|
4460
4521
|
), o[0] & /*lobbyiconimage*/
|
|
4461
|
-
|
|
4522
|
+
2048 && _(
|
|
4462
4523
|
r,
|
|
4463
4524
|
"lobbyiconimage",
|
|
4464
4525
|
/*lobbyiconimage*/
|
|
4465
|
-
s[
|
|
4526
|
+
s[11]
|
|
4466
4527
|
), o[0] & /*mygamesiconimage*/
|
|
4467
|
-
|
|
4528
|
+
4096 && _(
|
|
4468
4529
|
r,
|
|
4469
4530
|
"mygamesiconimage",
|
|
4470
4531
|
/*mygamesiconimage*/
|
|
4471
|
-
s[
|
|
4532
|
+
s[12]
|
|
4533
|
+
), o[0] & /*mbsource*/
|
|
4534
|
+
16 && _(
|
|
4535
|
+
r,
|
|
4536
|
+
"mbsource",
|
|
4537
|
+
/*mbsource*/
|
|
4538
|
+
s[4]
|
|
4472
4539
|
);
|
|
4473
4540
|
},
|
|
4474
4541
|
d(s) {
|
|
4475
|
-
s &&
|
|
4542
|
+
s && ne(t), n = !1, i();
|
|
4476
4543
|
}
|
|
4477
4544
|
};
|
|
4478
4545
|
}
|
|
4479
|
-
function
|
|
4546
|
+
function os(e) {
|
|
4480
4547
|
let t;
|
|
4481
4548
|
return {
|
|
4482
4549
|
c() {
|
|
4483
|
-
t = k("p"), t.textContent = "500 Error - Internal Server Error.",
|
|
4550
|
+
t = k("p"), t.textContent = "500 Error - Internal Server Error.", ie(t, "class", "SearchLoading svelte-4b6cjp");
|
|
4484
4551
|
},
|
|
4485
4552
|
m(r, n) {
|
|
4486
4553
|
fe(r, t, n);
|
|
4487
4554
|
},
|
|
4488
|
-
p:
|
|
4555
|
+
p: P,
|
|
4489
4556
|
d(r) {
|
|
4490
|
-
r &&
|
|
4557
|
+
r && ne(t);
|
|
4491
4558
|
}
|
|
4492
4559
|
};
|
|
4493
4560
|
}
|
|
4494
|
-
function
|
|
4561
|
+
function as(e) {
|
|
4495
4562
|
let t;
|
|
4496
4563
|
return {
|
|
4497
4564
|
c() {
|
|
4498
|
-
t = k("div"),
|
|
4565
|
+
t = k("div"), ie(t, "class", "CasinoCategoriesLoading svelte-4b6cjp");
|
|
4499
4566
|
},
|
|
4500
4567
|
m(r, n) {
|
|
4501
4568
|
fe(r, t, n);
|
|
4502
4569
|
},
|
|
4503
|
-
p:
|
|
4570
|
+
p: P,
|
|
4504
4571
|
d(r) {
|
|
4505
|
-
r &&
|
|
4572
|
+
r && ne(t);
|
|
4506
4573
|
}
|
|
4507
4574
|
};
|
|
4508
4575
|
}
|
|
4509
|
-
function
|
|
4576
|
+
function us(e) {
|
|
4510
4577
|
let t;
|
|
4511
4578
|
function r(s, o) {
|
|
4512
4579
|
return (
|
|
4513
4580
|
/*isLoading*/
|
|
4514
|
-
s[
|
|
4581
|
+
s[13] || hs || ls ? as : (
|
|
4515
4582
|
/*hasErrors*/
|
|
4516
|
-
s[
|
|
4583
|
+
s[15] ? os : ss
|
|
4517
4584
|
)
|
|
4518
4585
|
);
|
|
4519
4586
|
}
|
|
4520
4587
|
let n = r(e), i = n(e);
|
|
4521
4588
|
return {
|
|
4522
4589
|
c() {
|
|
4523
|
-
t = k("div"), i.c();
|
|
4590
|
+
t = k("div"), i.c(), ie(t, "class", "svelte-4b6cjp");
|
|
4524
4591
|
},
|
|
4525
4592
|
m(s, o) {
|
|
4526
|
-
fe(s, t, o), i.m(t, null), e[
|
|
4593
|
+
fe(s, t, o), i.m(t, null), e[27](t);
|
|
4527
4594
|
},
|
|
4528
4595
|
p(s, o) {
|
|
4529
4596
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
4530
4597
|
},
|
|
4531
|
-
i:
|
|
4532
|
-
o:
|
|
4598
|
+
i: P,
|
|
4599
|
+
o: P,
|
|
4533
4600
|
d(s) {
|
|
4534
|
-
s &&
|
|
4601
|
+
s && ne(t), i.d(), e[27](null);
|
|
4535
4602
|
}
|
|
4536
4603
|
};
|
|
4537
4604
|
}
|
|
4538
|
-
let
|
|
4539
|
-
function
|
|
4605
|
+
let Er = "CasinoSliderData", hs = !1, ls = !1;
|
|
4606
|
+
function cs(e, t, r) {
|
|
4540
4607
|
let n;
|
|
4541
|
-
|
|
4542
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites:
|
|
4543
|
-
const
|
|
4544
|
-
fetch(
|
|
4545
|
-
Object.keys(
|
|
4546
|
-
|
|
4608
|
+
Lr(e, Ki, (m) => r(33, n = m));
|
|
4609
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: f = "" } = t, { mbsource: c } = t, { clientstyling: d = "" } = t, { clientstylingurl: p = "" } = t, { activecategory: b = "" } = t, { actionevent: w = "" } = t, { sessioncheck: C = "" } = t, { location: N = "secondaryMenu" } = t, { showsubgroups: T = "false" } = t, { filteredcategories: O = "" } = t, { translationurl: H = "" } = t, { categoriesicon: M = "" } = t, { lobbyiconimage: E = "" } = t, { mygamesiconimage: L = "" } = t, I, F, $ = !0, X, W = [], j = !1, xr = window.navigator.userAgent, R, at, ut = !1, Oe = !1;
|
|
4610
|
+
const Sr = () => {
|
|
4611
|
+
fetch(H).then((B) => B.json()).then((B) => {
|
|
4612
|
+
Object.keys(B).forEach((be) => {
|
|
4613
|
+
It(be, B[be]);
|
|
4547
4614
|
});
|
|
4548
|
-
}).catch((
|
|
4549
|
-
console.log(
|
|
4615
|
+
}).catch((B) => {
|
|
4616
|
+
console.log(B);
|
|
4550
4617
|
});
|
|
4551
4618
|
};
|
|
4552
|
-
Object.keys(
|
|
4553
|
-
|
|
4619
|
+
Object.keys(Ct).forEach((m) => {
|
|
4620
|
+
It(m, Ct[m]);
|
|
4554
4621
|
});
|
|
4555
|
-
const
|
|
4556
|
-
|
|
4622
|
+
const wr = () => {
|
|
4623
|
+
ut == !1 && (f == "true" || u == "true" || l == "true") && W.splice(1, 0, {
|
|
4557
4624
|
// @ts-ignore
|
|
4558
4625
|
id: "MYGAMES",
|
|
4559
|
-
name:
|
|
4626
|
+
name: I,
|
|
4560
4627
|
href: "",
|
|
4561
4628
|
games: []
|
|
4562
|
-
}), $r(),
|
|
4563
|
-
}, Tr = () => (i || (X = "Endpoint is missing! Please provide a valid endpointURL.", r(
|
|
4564
|
-
if (
|
|
4565
|
-
let
|
|
4566
|
-
|
|
4567
|
-
(
|
|
4568
|
-
let
|
|
4569
|
-
let
|
|
4570
|
-
if (
|
|
4571
|
-
for (let
|
|
4572
|
-
|
|
4573
|
-
return
|
|
4629
|
+
}), $r(), ut = !0, r(26, Oe = !0), ht();
|
|
4630
|
+
}, Tr = () => (i || (X = "Endpoint is missing! Please provide a valid endpointURL.", r(15, j = !0), r(13, $ = !1), console.error(X)), s || (X = "Datasource is missing! Please provide a valid datasource.", r(15, j = !0), r(13, $ = !1), console.error(X)), (!o || o.length < 2) && (X = "Language is missing! Please provide a valid language (alpha2code)", r(15, j = !0), r(13, $ = !1), console.error(X)), j), Hr = () => {
|
|
4631
|
+
if (I = n("myGamesName"), F = n("lobbyName"), !Tr()) {
|
|
4632
|
+
let m = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4633
|
+
m.searchParams.append("datasource", s), m.searchParams.append("language", o), m.searchParams.append("platform", es(xr)), fetch(m).then((B) => B.json()).then(
|
|
4634
|
+
(B) => {
|
|
4635
|
+
let be = O.split(","), Pr = B.items.filter((lt) => {
|
|
4636
|
+
let Le = !1;
|
|
4637
|
+
if (lt.games.total > 0 && (Le = !0, O))
|
|
4638
|
+
for (let Nr of be)
|
|
4639
|
+
lt.flags == Nr && (Le = !1);
|
|
4640
|
+
return Le;
|
|
4574
4641
|
});
|
|
4575
|
-
W = [], W = W.concat(
|
|
4642
|
+
W = [], W = W.concat(Pr), W.unshift({
|
|
4576
4643
|
// @ts-ignore
|
|
4577
4644
|
id: "LOBBY",
|
|
4578
|
-
name:
|
|
4645
|
+
name: F,
|
|
4579
4646
|
href: "",
|
|
4580
4647
|
games: []
|
|
4581
|
-
}), r(
|
|
4648
|
+
}), r(13, $ = !1), window.postMessage({ type: "CategoriesLoadedForSlider" }, window.location.href);
|
|
4582
4649
|
},
|
|
4583
|
-
(
|
|
4584
|
-
r(
|
|
4650
|
+
(B) => {
|
|
4651
|
+
r(15, j = !0), console.error("There was an error while fetching the categories", B);
|
|
4585
4652
|
}
|
|
4586
|
-
).catch((
|
|
4587
|
-
r(
|
|
4653
|
+
).catch((B) => {
|
|
4654
|
+
r(15, j = !0), console.error("There was an error while fetching the categories", B);
|
|
4588
4655
|
});
|
|
4589
4656
|
}
|
|
4590
|
-
}, Hr = () => {
|
|
4591
|
-
let f = b.split("$");
|
|
4592
|
-
r(0, b = f.length > 2 ? b.split("$").slice(0, 2).join("$") : b);
|
|
4593
4657
|
}, Ar = () => {
|
|
4594
|
-
let
|
|
4595
|
-
|
|
4596
|
-
},
|
|
4597
|
-
let f = document.createElement("style"), H = new URL(d);
|
|
4598
|
-
fetch(H.href).then((D) => D.text()).then((D) => {
|
|
4599
|
-
f.innerHTML = D, setTimeout(
|
|
4600
|
-
() => {
|
|
4601
|
-
j.appendChild(f);
|
|
4602
|
-
},
|
|
4603
|
-
1
|
|
4604
|
-
);
|
|
4605
|
-
});
|
|
4606
|
-
}, ut = () => {
|
|
4658
|
+
let m = b.split("$");
|
|
4659
|
+
r(0, b = m.length > 2 ? b.split("$").slice(0, 2).join("$") : b);
|
|
4660
|
+
}, ht = () => {
|
|
4607
4661
|
window.postMessage(
|
|
4608
4662
|
{
|
|
4609
4663
|
type: "SliderData",
|
|
4610
|
-
identity:
|
|
4664
|
+
identity: Er,
|
|
4611
4665
|
data: W
|
|
4612
4666
|
},
|
|
4613
4667
|
window.location.href
|
|
4614
4668
|
);
|
|
4615
4669
|
};
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4670
|
+
Fr(() => () => {
|
|
4671
|
+
});
|
|
4672
|
+
function Br(m) {
|
|
4673
|
+
$e[m ? "unshift" : "push"](() => {
|
|
4674
|
+
R = m, r(14, R);
|
|
4619
4675
|
});
|
|
4620
4676
|
}
|
|
4621
|
-
return e.$$set = (
|
|
4622
|
-
"endpoint" in
|
|
4677
|
+
return e.$$set = (m) => {
|
|
4678
|
+
"endpoint" in m && r(1, i = m.endpoint), "datasource" in m && r(2, s = m.datasource), "lang" in m && r(3, o = m.lang), "userid" in m && r(18, a = m.userid), "session" in m && r(19, h = m.session), "mostplayed" in m && r(20, u = m.mostplayed), "lastplayed" in m && r(21, l = m.lastplayed), "favorites" in m && r(22, f = m.favorites), "mbsource" in m && r(4, c = m.mbsource), "clientstyling" in m && r(5, d = m.clientstyling), "clientstylingurl" in m && r(6, p = m.clientstylingurl), "activecategory" in m && r(0, b = m.activecategory), "actionevent" in m && r(7, w = m.actionevent), "sessioncheck" in m && r(23, C = m.sessioncheck), "location" in m && r(8, N = m.location), "showsubgroups" in m && r(9, T = m.showsubgroups), "filteredcategories" in m && r(24, O = m.filteredcategories), "translationurl" in m && r(25, H = m.translationurl), "categoriesicon" in m && r(10, M = m.categoriesicon), "lobbyiconimage" in m && r(11, E = m.lobbyiconimage), "mygamesiconimage" in m && r(12, L = m.mygamesiconimage);
|
|
4623
4679
|
}, e.$$.update = () => {
|
|
4624
4680
|
e.$$.dirty[0] & /*endpoint, datasource, lang*/
|
|
4625
|
-
14 && i && s && o &&
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4681
|
+
14 && i && s && o && Hr(), e.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
|
4682
|
+
7872514 && i && h && (u || l || f) && !$ && wr(), e.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
|
4683
|
+
67641345 && !$ && b && (!h || Oe) && Ar(), e.$$.dirty[0] & /*translationurl*/
|
|
4684
|
+
33554432 && H && Sr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4685
|
+
16416 && d && R && ts(R, d), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4686
|
+
16448 && p && R && rs(R, p), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4687
|
+
16400 && c && R && ns(R, `${c}.Style`);
|
|
4688
|
+
}, r(16, at = 0), [
|
|
4632
4689
|
b,
|
|
4633
4690
|
i,
|
|
4634
4691
|
s,
|
|
4635
4692
|
o,
|
|
4636
4693
|
c,
|
|
4637
4694
|
d,
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
R,
|
|
4643
|
-
E,
|
|
4695
|
+
p,
|
|
4696
|
+
w,
|
|
4697
|
+
N,
|
|
4698
|
+
T,
|
|
4644
4699
|
M,
|
|
4645
|
-
|
|
4700
|
+
E,
|
|
4701
|
+
L,
|
|
4646
4702
|
$,
|
|
4647
|
-
|
|
4648
|
-
|
|
4703
|
+
R,
|
|
4704
|
+
j,
|
|
4705
|
+
at,
|
|
4706
|
+
ht,
|
|
4649
4707
|
a,
|
|
4650
4708
|
h,
|
|
4651
4709
|
u,
|
|
4652
4710
|
l,
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4711
|
+
f,
|
|
4712
|
+
C,
|
|
4713
|
+
O,
|
|
4714
|
+
H,
|
|
4715
|
+
Oe,
|
|
4716
|
+
Br
|
|
4659
4717
|
];
|
|
4660
4718
|
}
|
|
4661
|
-
class
|
|
4719
|
+
class fs extends Yr {
|
|
4662
4720
|
constructor(t) {
|
|
4663
4721
|
super(), Zr(
|
|
4664
4722
|
this,
|
|
4665
4723
|
t,
|
|
4724
|
+
cs,
|
|
4666
4725
|
us,
|
|
4667
|
-
|
|
4668
|
-
Mt,
|
|
4726
|
+
Rt,
|
|
4669
4727
|
{
|
|
4670
4728
|
endpoint: 1,
|
|
4671
4729
|
datasource: 2,
|
|
4672
4730
|
lang: 3,
|
|
4673
|
-
userid:
|
|
4674
|
-
session:
|
|
4675
|
-
mostplayed:
|
|
4676
|
-
lastplayed:
|
|
4677
|
-
favorites:
|
|
4678
|
-
|
|
4679
|
-
|
|
4731
|
+
userid: 18,
|
|
4732
|
+
session: 19,
|
|
4733
|
+
mostplayed: 20,
|
|
4734
|
+
lastplayed: 21,
|
|
4735
|
+
favorites: 22,
|
|
4736
|
+
mbsource: 4,
|
|
4737
|
+
clientstyling: 5,
|
|
4738
|
+
clientstylingurl: 6,
|
|
4680
4739
|
activecategory: 0,
|
|
4681
|
-
actionevent:
|
|
4682
|
-
sessioncheck:
|
|
4683
|
-
location:
|
|
4684
|
-
showsubgroups:
|
|
4685
|
-
filteredcategories:
|
|
4686
|
-
translationurl:
|
|
4687
|
-
categoriesicon:
|
|
4688
|
-
lobbyiconimage:
|
|
4689
|
-
mygamesiconimage:
|
|
4740
|
+
actionevent: 7,
|
|
4741
|
+
sessioncheck: 23,
|
|
4742
|
+
location: 8,
|
|
4743
|
+
showsubgroups: 9,
|
|
4744
|
+
filteredcategories: 24,
|
|
4745
|
+
translationurl: 25,
|
|
4746
|
+
categoriesicon: 10,
|
|
4747
|
+
lobbyiconimage: 11,
|
|
4748
|
+
mygamesiconimage: 12
|
|
4690
4749
|
},
|
|
4691
|
-
|
|
4750
|
+
is,
|
|
4692
4751
|
[-1, -1]
|
|
4693
4752
|
);
|
|
4694
4753
|
}
|
|
@@ -4711,43 +4770,49 @@ class hs extends Yr {
|
|
|
4711
4770
|
this.$$set({ lang: t }), S();
|
|
4712
4771
|
}
|
|
4713
4772
|
get userid() {
|
|
4714
|
-
return this.$$.ctx[
|
|
4773
|
+
return this.$$.ctx[18];
|
|
4715
4774
|
}
|
|
4716
4775
|
set userid(t) {
|
|
4717
4776
|
this.$$set({ userid: t }), S();
|
|
4718
4777
|
}
|
|
4719
4778
|
get session() {
|
|
4720
|
-
return this.$$.ctx[
|
|
4779
|
+
return this.$$.ctx[19];
|
|
4721
4780
|
}
|
|
4722
4781
|
set session(t) {
|
|
4723
4782
|
this.$$set({ session: t }), S();
|
|
4724
4783
|
}
|
|
4725
4784
|
get mostplayed() {
|
|
4726
|
-
return this.$$.ctx[
|
|
4785
|
+
return this.$$.ctx[20];
|
|
4727
4786
|
}
|
|
4728
4787
|
set mostplayed(t) {
|
|
4729
4788
|
this.$$set({ mostplayed: t }), S();
|
|
4730
4789
|
}
|
|
4731
4790
|
get lastplayed() {
|
|
4732
|
-
return this.$$.ctx[
|
|
4791
|
+
return this.$$.ctx[21];
|
|
4733
4792
|
}
|
|
4734
4793
|
set lastplayed(t) {
|
|
4735
4794
|
this.$$set({ lastplayed: t }), S();
|
|
4736
4795
|
}
|
|
4737
4796
|
get favorites() {
|
|
4738
|
-
return this.$$.ctx[
|
|
4797
|
+
return this.$$.ctx[22];
|
|
4739
4798
|
}
|
|
4740
4799
|
set favorites(t) {
|
|
4741
4800
|
this.$$set({ favorites: t }), S();
|
|
4742
4801
|
}
|
|
4743
|
-
get
|
|
4802
|
+
get mbsource() {
|
|
4744
4803
|
return this.$$.ctx[4];
|
|
4745
4804
|
}
|
|
4805
|
+
set mbsource(t) {
|
|
4806
|
+
this.$$set({ mbsource: t }), S();
|
|
4807
|
+
}
|
|
4808
|
+
get clientstyling() {
|
|
4809
|
+
return this.$$.ctx[5];
|
|
4810
|
+
}
|
|
4746
4811
|
set clientstyling(t) {
|
|
4747
4812
|
this.$$set({ clientstyling: t }), S();
|
|
4748
4813
|
}
|
|
4749
4814
|
get clientstylingurl() {
|
|
4750
|
-
return this.$$.ctx[
|
|
4815
|
+
return this.$$.ctx[6];
|
|
4751
4816
|
}
|
|
4752
4817
|
set clientstylingurl(t) {
|
|
4753
4818
|
this.$$set({ clientstylingurl: t }), S();
|
|
@@ -4759,91 +4824,94 @@ class hs extends Yr {
|
|
|
4759
4824
|
this.$$set({ activecategory: t }), S();
|
|
4760
4825
|
}
|
|
4761
4826
|
get actionevent() {
|
|
4762
|
-
return this.$$.ctx[
|
|
4827
|
+
return this.$$.ctx[7];
|
|
4763
4828
|
}
|
|
4764
4829
|
set actionevent(t) {
|
|
4765
4830
|
this.$$set({ actionevent: t }), S();
|
|
4766
4831
|
}
|
|
4767
4832
|
get sessioncheck() {
|
|
4768
|
-
return this.$$.ctx[
|
|
4833
|
+
return this.$$.ctx[23];
|
|
4769
4834
|
}
|
|
4770
4835
|
set sessioncheck(t) {
|
|
4771
4836
|
this.$$set({ sessioncheck: t }), S();
|
|
4772
4837
|
}
|
|
4773
4838
|
get location() {
|
|
4774
|
-
return this.$$.ctx[
|
|
4839
|
+
return this.$$.ctx[8];
|
|
4775
4840
|
}
|
|
4776
4841
|
set location(t) {
|
|
4777
4842
|
this.$$set({ location: t }), S();
|
|
4778
4843
|
}
|
|
4779
4844
|
get showsubgroups() {
|
|
4780
|
-
return this.$$.ctx[
|
|
4845
|
+
return this.$$.ctx[9];
|
|
4781
4846
|
}
|
|
4782
4847
|
set showsubgroups(t) {
|
|
4783
4848
|
this.$$set({ showsubgroups: t }), S();
|
|
4784
4849
|
}
|
|
4785
4850
|
get filteredcategories() {
|
|
4786
|
-
return this.$$.ctx[
|
|
4851
|
+
return this.$$.ctx[24];
|
|
4787
4852
|
}
|
|
4788
4853
|
set filteredcategories(t) {
|
|
4789
4854
|
this.$$set({ filteredcategories: t }), S();
|
|
4790
4855
|
}
|
|
4791
4856
|
get translationurl() {
|
|
4792
|
-
return this.$$.ctx[
|
|
4857
|
+
return this.$$.ctx[25];
|
|
4793
4858
|
}
|
|
4794
4859
|
set translationurl(t) {
|
|
4795
4860
|
this.$$set({ translationurl: t }), S();
|
|
4796
4861
|
}
|
|
4797
4862
|
get categoriesicon() {
|
|
4798
|
-
return this.$$.ctx[
|
|
4863
|
+
return this.$$.ctx[10];
|
|
4799
4864
|
}
|
|
4800
4865
|
set categoriesicon(t) {
|
|
4801
4866
|
this.$$set({ categoriesicon: t }), S();
|
|
4802
4867
|
}
|
|
4803
4868
|
get lobbyiconimage() {
|
|
4804
|
-
return this.$$.ctx[
|
|
4869
|
+
return this.$$.ctx[11];
|
|
4805
4870
|
}
|
|
4806
4871
|
set lobbyiconimage(t) {
|
|
4807
4872
|
this.$$set({ lobbyiconimage: t }), S();
|
|
4808
4873
|
}
|
|
4809
4874
|
get mygamesiconimage() {
|
|
4810
|
-
return this.$$.ctx[
|
|
4875
|
+
return this.$$.ctx[12];
|
|
4811
4876
|
}
|
|
4812
4877
|
set mygamesiconimage(t) {
|
|
4813
4878
|
this.$$set({ mygamesiconimage: t }), S();
|
|
4814
4879
|
}
|
|
4815
4880
|
}
|
|
4816
|
-
Qr(
|
|
4881
|
+
Qr(fs, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
|
|
4817
4882
|
export {
|
|
4818
4883
|
de as $,
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4884
|
+
ds as A,
|
|
4885
|
+
Dt as B,
|
|
4886
|
+
vs as C,
|
|
4887
|
+
bs as D,
|
|
4888
|
+
ms as E,
|
|
4889
|
+
fs as F,
|
|
4822
4890
|
Yr as S,
|
|
4823
4891
|
me as a,
|
|
4824
|
-
|
|
4892
|
+
pr as b,
|
|
4825
4893
|
Qr as c,
|
|
4826
|
-
|
|
4894
|
+
Cr as d,
|
|
4827
4895
|
k as e,
|
|
4828
4896
|
S as f,
|
|
4829
|
-
|
|
4830
|
-
|
|
4897
|
+
ps as g,
|
|
4898
|
+
ie as h,
|
|
4831
4899
|
Zr as i,
|
|
4832
4900
|
fe as j,
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4901
|
+
Ut as k,
|
|
4902
|
+
ys as l,
|
|
4903
|
+
ne as m,
|
|
4904
|
+
P as n,
|
|
4837
4905
|
es as o,
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4906
|
+
Fr as p,
|
|
4907
|
+
rs as q,
|
|
4908
|
+
re as r,
|
|
4909
|
+
Rt as s,
|
|
4910
|
+
ns as t,
|
|
4843
4911
|
_s as u,
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4912
|
+
gs as v,
|
|
4913
|
+
xs as w,
|
|
4914
|
+
$e as x,
|
|
4915
|
+
ts as y,
|
|
4916
|
+
Es as z
|
|
4849
4917
|
};
|