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