@everymatrix/casino-random-game 1.76.3 → 1.76.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoRandomGame-40wnmLKZ.js → CasinoRandomGame-BCx6_mSm.js} +1366 -1331
- package/components/CasinoRandomGame-CIt395QJ.cjs +19 -0
- package/components/{CasinoRandomGame-DaqT6dCn.js → CasinoRandomGame-DGqtZD9p.js} +1378 -1343
- package/es2015/casino-random-game.cjs +1 -1
- package/es2015/casino-random-game.js +1 -1
- package/esnext/casino-random-game.js +1 -1
- package/package.json +1 -1
- package/components/CasinoRandomGame-CuH73zJq.cjs +0 -19
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var Zr = Object.defineProperty, Qr = Object.defineProperties;
|
|
2
|
+
var Yr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var yt = Object.getOwnPropertySymbols;
|
|
4
|
+
var qr = Object.prototype.hasOwnProperty, Kr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var $e = (e, t, r) => t in e ? Zr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vt = (e, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
qr.call(t, r) && $e(e, r, t[r]);
|
|
8
|
+
if (yt)
|
|
9
|
+
for (var r of yt(t))
|
|
10
|
+
Kr.call(t, r) && $e(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var N = (e, t,
|
|
14
|
-
var ye = (e, t,
|
|
12
|
+
}, _t = (e, t) => Qr(e, Yr(t));
|
|
13
|
+
var N = (e, t, r) => ($e(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var ye = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
|
-
s(
|
|
17
|
+
s(r.next(h));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
i(l);
|
|
20
20
|
}
|
|
21
21
|
}, a = (h) => {
|
|
22
22
|
try {
|
|
23
|
-
s(
|
|
23
|
+
s(r.throw(h));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
i(l);
|
|
26
26
|
}
|
|
27
|
-
}, s = (h) => h.done ?
|
|
28
|
-
s((
|
|
27
|
+
}, s = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, a);
|
|
28
|
+
s((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function G() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
for (const
|
|
34
|
-
e[
|
|
32
|
+
function en(e, t) {
|
|
33
|
+
for (const r in t)
|
|
34
|
+
e[r] = t[r];
|
|
35
35
|
return (
|
|
36
36
|
/** @type {T & S} */
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function qt(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function xt() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
46
|
function J(e) {
|
|
47
|
-
e.forEach(
|
|
47
|
+
e.forEach(qt);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function ft(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Kt(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
|
-
let
|
|
56
|
-
function
|
|
57
|
-
return e === t ? !0 : (
|
|
55
|
+
let ve;
|
|
56
|
+
function Et(e, t) {
|
|
57
|
+
return e === t ? !0 : (ve || (ve = document.createElement("a")), ve.href = t, e === ve.href);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function tn(e) {
|
|
60
60
|
return Object.keys(e).length === 0;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function er(e, ...t) {
|
|
63
63
|
if (e == null) {
|
|
64
|
-
for (const
|
|
65
|
-
|
|
66
|
-
return
|
|
64
|
+
for (const n of t)
|
|
65
|
+
n(void 0);
|
|
66
|
+
return G;
|
|
67
67
|
}
|
|
68
|
-
const
|
|
69
|
-
return
|
|
68
|
+
const r = e.subscribe(...t);
|
|
69
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
e.$$.on_destroy.push(
|
|
71
|
+
function rn(e, t, r) {
|
|
72
|
+
e.$$.on_destroy.push(er(t, r));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function nn(e, t, r, n) {
|
|
75
75
|
if (e) {
|
|
76
|
-
const i =
|
|
76
|
+
const i = tr(e, t, r, n);
|
|
77
77
|
return e[0](i);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return e[1] &&
|
|
80
|
+
function tr(e, t, r, n) {
|
|
81
|
+
return e[1] && n ? en(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
if (e[2] &&
|
|
85
|
-
const i = e[2](r
|
|
83
|
+
function on(e, t, r, n) {
|
|
84
|
+
if (e[2] && n) {
|
|
85
|
+
const i = e[2](n(r));
|
|
86
86
|
if (t.dirty === void 0)
|
|
87
87
|
return i;
|
|
88
88
|
if (typeof i == "object") {
|
|
@@ -95,32 +95,32 @@ function tr(e, t, n, r) {
|
|
|
95
95
|
}
|
|
96
96
|
return t.dirty;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function an(e, t, r, n, i, o) {
|
|
99
99
|
if (i) {
|
|
100
|
-
const a =
|
|
100
|
+
const a = tr(t, r, n, o);
|
|
101
101
|
e.p(a, i);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function sn(e) {
|
|
105
105
|
if (e.ctx.length > 32) {
|
|
106
|
-
const t = [],
|
|
107
|
-
for (let
|
|
108
|
-
t[
|
|
106
|
+
const t = [], r = e.ctx.length / 32;
|
|
107
|
+
for (let n = 0; n < r; n++)
|
|
108
|
+
t[n] = -1;
|
|
109
109
|
return t;
|
|
110
110
|
}
|
|
111
111
|
return -1;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function _(e, t) {
|
|
114
114
|
e.appendChild(t);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
const
|
|
118
|
-
if (!
|
|
119
|
-
const i =
|
|
120
|
-
i.id = t, i.textContent =
|
|
116
|
+
function un(e, t, r) {
|
|
117
|
+
const n = ln(e);
|
|
118
|
+
if (!n.getElementById(t)) {
|
|
119
|
+
const i = w("style");
|
|
120
|
+
i.id = t, i.textContent = r, hn(n, i);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function ln(e) {
|
|
124
124
|
if (!e)
|
|
125
125
|
return document;
|
|
126
126
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -130,27 +130,27 @@ function or(e) {
|
|
|
130
130
|
t
|
|
131
131
|
) : e.ownerDocument;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return
|
|
133
|
+
function hn(e, t) {
|
|
134
|
+
return _(
|
|
135
135
|
/** @type {Document} */
|
|
136
136
|
e.head || e,
|
|
137
137
|
t
|
|
138
138
|
), t.sheet;
|
|
139
139
|
}
|
|
140
|
-
function I(e, t,
|
|
141
|
-
e.insertBefore(t,
|
|
140
|
+
function I(e, t, r) {
|
|
141
|
+
e.insertBefore(t, r || null);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function O(e) {
|
|
144
144
|
e.parentNode && e.parentNode.removeChild(e);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
for (let
|
|
148
|
-
e[
|
|
146
|
+
function cn(e, t) {
|
|
147
|
+
for (let r = 0; r < e.length; r += 1)
|
|
148
|
+
e[r] && e[r].d(t);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function w(e) {
|
|
151
151
|
return document.createElement(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function wt(e) {
|
|
154
154
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
155
155
|
}
|
|
156
156
|
function k(e) {
|
|
@@ -159,94 +159,94 @@ function k(e) {
|
|
|
159
159
|
function V() {
|
|
160
160
|
return k(" ");
|
|
161
161
|
}
|
|
162
|
-
function Be(e, t,
|
|
163
|
-
return e.addEventListener(t,
|
|
162
|
+
function Be(e, t, r, n) {
|
|
163
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
164
164
|
}
|
|
165
|
-
function g(e, t,
|
|
166
|
-
|
|
165
|
+
function g(e, t, r) {
|
|
166
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function fn(e) {
|
|
169
169
|
return Array.from(e.childNodes);
|
|
170
170
|
}
|
|
171
171
|
function z(e, t) {
|
|
172
172
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
173
173
|
t);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function mn(e) {
|
|
176
176
|
const t = {};
|
|
177
177
|
return e.childNodes.forEach(
|
|
178
178
|
/** @param {Element} node */
|
|
179
|
-
(
|
|
180
|
-
t[
|
|
179
|
+
(r) => {
|
|
180
|
+
t[r.slot || "default"] = !0;
|
|
181
181
|
}
|
|
182
182
|
), t;
|
|
183
183
|
}
|
|
184
|
-
let
|
|
185
|
-
function
|
|
186
|
-
|
|
184
|
+
let fe;
|
|
185
|
+
function he(e) {
|
|
186
|
+
fe = e;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
if (!
|
|
188
|
+
function dn() {
|
|
189
|
+
if (!fe)
|
|
190
190
|
throw new Error("Function called outside component initialization");
|
|
191
|
-
return
|
|
191
|
+
return fe;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
193
|
+
function pn(e) {
|
|
194
|
+
dn().$$.on_mount.push(e);
|
|
195
195
|
}
|
|
196
196
|
const K = [], Ae = [];
|
|
197
197
|
let ee = [];
|
|
198
|
-
const
|
|
199
|
-
let
|
|
200
|
-
function
|
|
201
|
-
|
|
198
|
+
const St = [], rr = /* @__PURE__ */ Promise.resolve();
|
|
199
|
+
let Je = !1;
|
|
200
|
+
function nr() {
|
|
201
|
+
Je || (Je = !0, rr.then(R));
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
return
|
|
203
|
+
function bn() {
|
|
204
|
+
return nr(), rr;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Ze(e) {
|
|
207
207
|
ee.push(e);
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const Fe = /* @__PURE__ */ new Set();
|
|
210
210
|
let Y = 0;
|
|
211
|
-
function
|
|
211
|
+
function R() {
|
|
212
212
|
if (Y !== 0)
|
|
213
213
|
return;
|
|
214
|
-
const e =
|
|
214
|
+
const e = fe;
|
|
215
215
|
do {
|
|
216
216
|
try {
|
|
217
217
|
for (; Y < K.length; ) {
|
|
218
218
|
const t = K[Y];
|
|
219
|
-
Y++,
|
|
219
|
+
Y++, he(t), gn(t.$$);
|
|
220
220
|
}
|
|
221
221
|
} catch (t) {
|
|
222
222
|
throw K.length = 0, Y = 0, t;
|
|
223
223
|
}
|
|
224
|
-
for (
|
|
224
|
+
for (he(null), K.length = 0, Y = 0; Ae.length; )
|
|
225
225
|
Ae.pop()();
|
|
226
226
|
for (let t = 0; t < ee.length; t += 1) {
|
|
227
|
-
const
|
|
228
|
-
|
|
227
|
+
const r = ee[t];
|
|
228
|
+
Fe.has(r) || (Fe.add(r), r());
|
|
229
229
|
}
|
|
230
230
|
ee.length = 0;
|
|
231
231
|
} while (K.length);
|
|
232
|
-
for (;
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
for (; St.length; )
|
|
233
|
+
St.pop()();
|
|
234
|
+
Je = !1, Fe.clear(), he(e);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function gn(e) {
|
|
237
237
|
if (e.fragment !== null) {
|
|
238
238
|
e.update(), J(e.before_update);
|
|
239
239
|
const t = e.dirty;
|
|
240
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
240
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ze);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
const t = [],
|
|
245
|
-
ee.forEach((
|
|
243
|
+
function yn(e) {
|
|
244
|
+
const t = [], r = [];
|
|
245
|
+
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
246
246
|
}
|
|
247
247
|
const Ee = /* @__PURE__ */ new Set();
|
|
248
248
|
let X;
|
|
249
|
-
function
|
|
249
|
+
function vn() {
|
|
250
250
|
X = {
|
|
251
251
|
r: 0,
|
|
252
252
|
c: [],
|
|
@@ -254,50 +254,50 @@ function pr() {
|
|
|
254
254
|
// parent group
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function _n() {
|
|
258
258
|
X.r || J(X.c), X = X.p;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function ce(e, t) {
|
|
261
261
|
e && e.i && (Ee.delete(e), e.i(t));
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function Qe(e, t, r, n) {
|
|
264
264
|
if (e && e.o) {
|
|
265
265
|
if (Ee.has(e))
|
|
266
266
|
return;
|
|
267
267
|
Ee.add(e), X.c.push(() => {
|
|
268
|
-
Ee.delete(e),
|
|
268
|
+
Ee.delete(e), n && (r && e.d(1), n());
|
|
269
269
|
}), e.o(t);
|
|
270
270
|
} else
|
|
271
|
-
|
|
271
|
+
n && n();
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function Tt(e) {
|
|
274
274
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
const { fragment:
|
|
278
|
-
|
|
279
|
-
const o = e.$$.on_mount.map(
|
|
276
|
+
function xn(e, t, r) {
|
|
277
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
278
|
+
n && n.m(t, r), Ze(() => {
|
|
279
|
+
const o = e.$$.on_mount.map(qt).filter(ft);
|
|
280
280
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
|
|
281
|
-
}), i.forEach(
|
|
281
|
+
}), i.forEach(Ze);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
284
|
-
const
|
|
285
|
-
|
|
283
|
+
function En(e, t) {
|
|
284
|
+
const r = e.$$;
|
|
285
|
+
r.fragment !== null && (yn(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
e.$$.dirty[0] === -1 && (K.push(e),
|
|
287
|
+
function wn(e, t) {
|
|
288
|
+
e.$$.dirty[0] === -1 && (K.push(e), nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
const h =
|
|
292
|
-
|
|
290
|
+
function Sn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
291
|
+
const h = fe;
|
|
292
|
+
he(e);
|
|
293
293
|
const l = e.$$ = {
|
|
294
294
|
fragment: null,
|
|
295
295
|
ctx: [],
|
|
296
296
|
// state
|
|
297
297
|
props: o,
|
|
298
|
-
update:
|
|
298
|
+
update: G,
|
|
299
299
|
not_equal: i,
|
|
300
|
-
bound:
|
|
300
|
+
bound: xt(),
|
|
301
301
|
// lifecycle
|
|
302
302
|
on_mount: [],
|
|
303
303
|
on_destroy: [],
|
|
@@ -306,29 +306,29 @@ function xr(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
|
306
306
|
after_update: [],
|
|
307
307
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
308
308
|
// everything else
|
|
309
|
-
callbacks:
|
|
309
|
+
callbacks: xt(),
|
|
310
310
|
dirty: s,
|
|
311
311
|
skip_bound: !1,
|
|
312
312
|
root: t.target || h.$$.root
|
|
313
313
|
};
|
|
314
314
|
a && a(l.root);
|
|
315
315
|
let u = !1;
|
|
316
|
-
if (l.ctx =
|
|
317
|
-
const
|
|
318
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] =
|
|
319
|
-
}), l.update(), u = !0, J(l.before_update), l.fragment =
|
|
316
|
+
if (l.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
|
|
317
|
+
const d = m.length ? m[0] : c;
|
|
318
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), u && wn(e, f)), c;
|
|
319
|
+
}) : [], l.update(), u = !0, J(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
320
320
|
if (t.hydrate) {
|
|
321
|
-
const f =
|
|
322
|
-
l.fragment && l.fragment.l(f), f.forEach(
|
|
321
|
+
const f = fn(t.target);
|
|
322
|
+
l.fragment && l.fragment.l(f), f.forEach(O);
|
|
323
323
|
} else
|
|
324
324
|
l.fragment && l.fragment.c();
|
|
325
|
-
t.intro &&
|
|
325
|
+
t.intro && ce(e.$$.fragment), xn(e, t.target, t.anchor), R();
|
|
326
326
|
}
|
|
327
|
-
|
|
327
|
+
he(h);
|
|
328
328
|
}
|
|
329
|
-
let
|
|
330
|
-
typeof HTMLElement == "function" && (
|
|
331
|
-
constructor(t,
|
|
329
|
+
let ir;
|
|
330
|
+
typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
331
|
+
constructor(t, r, n) {
|
|
332
332
|
super();
|
|
333
333
|
/** The Svelte component constructor */
|
|
334
334
|
N(this, "$$ctor");
|
|
@@ -348,19 +348,19 @@ typeof HTMLElement == "function" && (en = class extends HTMLElement {
|
|
|
348
348
|
N(this, "$$l", {});
|
|
349
349
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
350
350
|
N(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
351
|
-
this.$$ctor = t, this.$$s =
|
|
351
|
+
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
352
352
|
}
|
|
353
|
-
addEventListener(t,
|
|
354
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(
|
|
355
|
-
const i = this.$$c.$on(t,
|
|
356
|
-
this.$$l_u.set(
|
|
353
|
+
addEventListener(t, r, n) {
|
|
354
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
|
|
355
|
+
const i = this.$$c.$on(t, r);
|
|
356
|
+
this.$$l_u.set(r, i);
|
|
357
357
|
}
|
|
358
|
-
super.addEventListener(t,
|
|
358
|
+
super.addEventListener(t, r, n);
|
|
359
359
|
}
|
|
360
|
-
removeEventListener(t,
|
|
361
|
-
if (super.removeEventListener(t,
|
|
362
|
-
const i = this.$$l_u.get(
|
|
363
|
-
i && (i(), this.$$l_u.delete(
|
|
360
|
+
removeEventListener(t, r, n) {
|
|
361
|
+
if (super.removeEventListener(t, r, n), this.$$c) {
|
|
362
|
+
const i = this.$$l_u.get(r);
|
|
363
|
+
i && (i(), this.$$l_u.delete(r));
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
connectedCallback() {
|
|
@@ -371,7 +371,7 @@ typeof HTMLElement == "function" && (en = class extends HTMLElement {
|
|
|
371
371
|
let a;
|
|
372
372
|
return {
|
|
373
373
|
c: function() {
|
|
374
|
-
a =
|
|
374
|
+
a = w("slot"), o !== "default" && g(a, "name", o);
|
|
375
375
|
},
|
|
376
376
|
/**
|
|
377
377
|
* @param {HTMLElement} target
|
|
@@ -381,16 +381,16 @@ typeof HTMLElement == "function" && (en = class extends HTMLElement {
|
|
|
381
381
|
I(l, a, u);
|
|
382
382
|
},
|
|
383
383
|
d: function(l) {
|
|
384
|
-
l &&
|
|
384
|
+
l && O(a);
|
|
385
385
|
}
|
|
386
386
|
};
|
|
387
387
|
};
|
|
388
388
|
};
|
|
389
389
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
390
390
|
return;
|
|
391
|
-
const
|
|
391
|
+
const r = {}, n = mn(this);
|
|
392
392
|
for (const o of this.$$s)
|
|
393
|
-
o in
|
|
393
|
+
o in n && (r[o] = [t(o)]);
|
|
394
394
|
for (const o of this.attributes) {
|
|
395
395
|
const a = this.$$g_p(o.name);
|
|
396
396
|
a in this.$$d || (this.$$d[a] = we(a, o.value, this.$$p_d, "toProp"));
|
|
@@ -399,8 +399,8 @@ typeof HTMLElement == "function" && (en = class extends HTMLElement {
|
|
|
399
399
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
400
400
|
this.$$c = new this.$$ctor({
|
|
401
401
|
target: this.shadowRoot || this,
|
|
402
|
-
props:
|
|
403
|
-
$$slots:
|
|
402
|
+
props: _t(vt({}, this.$$d), {
|
|
403
|
+
$$slots: r,
|
|
404
404
|
$$scope: {
|
|
405
405
|
ctx: []
|
|
406
406
|
}
|
|
@@ -432,9 +432,9 @@ typeof HTMLElement == "function" && (en = class extends HTMLElement {
|
|
|
432
432
|
}
|
|
433
433
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
434
434
|
// and setting attributes through setAttribute etc, this is helpful
|
|
435
|
-
attributeChangedCallback(t,
|
|
435
|
+
attributeChangedCallback(t, r, n) {
|
|
436
436
|
var i;
|
|
437
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = we(t,
|
|
437
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = we(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
438
438
|
}
|
|
439
439
|
disconnectedCallback() {
|
|
440
440
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -443,16 +443,16 @@ typeof HTMLElement == "function" && (en = class extends HTMLElement {
|
|
|
443
443
|
}
|
|
444
444
|
$$g_p(t) {
|
|
445
445
|
return Object.keys(this.$$p_d).find(
|
|
446
|
-
(
|
|
446
|
+
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
447
447
|
) || t;
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
|
-
function we(e, t,
|
|
450
|
+
function we(e, t, r, n) {
|
|
451
451
|
var o;
|
|
452
|
-
const i = (o =
|
|
453
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
452
|
+
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
453
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
454
454
|
return t;
|
|
455
|
-
if (
|
|
455
|
+
if (n === "toAttribute")
|
|
456
456
|
switch (i) {
|
|
457
457
|
case "Object":
|
|
458
458
|
case "Array":
|
|
@@ -477,10 +477,10 @@ function we(e, t, n, r) {
|
|
|
477
477
|
return t;
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
let a = class extends
|
|
480
|
+
function Tn(e, t, r, n, i, o) {
|
|
481
|
+
let a = class extends ir {
|
|
482
482
|
constructor() {
|
|
483
|
-
super(e,
|
|
483
|
+
super(e, r, i), this.$$p_d = t;
|
|
484
484
|
}
|
|
485
485
|
static get observedAttributes() {
|
|
486
486
|
return Object.keys(t).map(
|
|
@@ -498,7 +498,7 @@ function vr(e, t, n, r, i, o) {
|
|
|
498
498
|
h = we(s, h, t), this.$$d[s] = h, (l = this.$$c) == null || l.$set({ [s]: h });
|
|
499
499
|
}
|
|
500
500
|
});
|
|
501
|
-
}),
|
|
501
|
+
}), n.forEach((s) => {
|
|
502
502
|
Object.defineProperty(a.prototype, s, {
|
|
503
503
|
get() {
|
|
504
504
|
var h;
|
|
@@ -508,7 +508,7 @@ function vr(e, t, n, r, i, o) {
|
|
|
508
508
|
}), e.element = /** @type {any} */
|
|
509
509
|
a, a;
|
|
510
510
|
}
|
|
511
|
-
class
|
|
511
|
+
class Hn {
|
|
512
512
|
constructor() {
|
|
513
513
|
/**
|
|
514
514
|
* ### PRIVATE API
|
|
@@ -529,7 +529,7 @@ class Er {
|
|
|
529
529
|
}
|
|
530
530
|
/** @returns {void} */
|
|
531
531
|
$destroy() {
|
|
532
|
-
|
|
532
|
+
En(this, 1), this.$destroy = G;
|
|
533
533
|
}
|
|
534
534
|
/**
|
|
535
535
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -537,13 +537,13 @@ class Er {
|
|
|
537
537
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
538
538
|
* @returns {() => void}
|
|
539
539
|
*/
|
|
540
|
-
$on(t,
|
|
541
|
-
if (!
|
|
542
|
-
return
|
|
543
|
-
const
|
|
544
|
-
return
|
|
545
|
-
const i =
|
|
546
|
-
i !== -1 &&
|
|
540
|
+
$on(t, r) {
|
|
541
|
+
if (!ft(r))
|
|
542
|
+
return G;
|
|
543
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
544
|
+
return n.push(r), () => {
|
|
545
|
+
const i = n.indexOf(r);
|
|
546
|
+
i !== -1 && n.splice(i, 1);
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
549
|
/**
|
|
@@ -551,11 +551,11 @@ class Er {
|
|
|
551
551
|
* @returns {void}
|
|
552
552
|
*/
|
|
553
553
|
$set(t) {
|
|
554
|
-
this.$$set && !
|
|
554
|
+
this.$$set && !tn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
const
|
|
558
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
557
|
+
const Bn = "4";
|
|
558
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Bn);
|
|
559
559
|
/*! *****************************************************************************
|
|
560
560
|
Copyright (c) Microsoft Corporation.
|
|
561
561
|
|
|
@@ -570,67 +570,48 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
570
570
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
571
571
|
PERFORMANCE OF THIS SOFTWARE.
|
|
572
572
|
***************************************************************************** */
|
|
573
|
-
var
|
|
574
|
-
return
|
|
575
|
-
|
|
576
|
-
} || function(
|
|
577
|
-
for (var i in
|
|
578
|
-
Object.prototype.hasOwnProperty.call(
|
|
579
|
-
},
|
|
573
|
+
var Ye = function(e, t) {
|
|
574
|
+
return Ye = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
575
|
+
r.__proto__ = n;
|
|
576
|
+
} || function(r, n) {
|
|
577
|
+
for (var i in n)
|
|
578
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
579
|
+
}, Ye(e, t);
|
|
580
580
|
};
|
|
581
|
-
function
|
|
581
|
+
function pe(e, t) {
|
|
582
582
|
if (typeof t != "function" && t !== null)
|
|
583
583
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
584
|
-
|
|
585
|
-
function
|
|
584
|
+
Ye(e, t);
|
|
585
|
+
function r() {
|
|
586
586
|
this.constructor = e;
|
|
587
587
|
}
|
|
588
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
589
|
-
}
|
|
590
|
-
var x = function() {
|
|
591
|
-
return x = Object.assign || function(t) {
|
|
592
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
593
|
-
n = arguments[r];
|
|
594
|
-
for (var o in n)
|
|
595
|
-
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
596
|
-
}
|
|
597
|
-
return t;
|
|
598
|
-
}, x.apply(this, arguments);
|
|
599
|
-
};
|
|
600
|
-
function Sr(e, t) {
|
|
601
|
-
var n = {};
|
|
602
|
-
for (var r in e)
|
|
603
|
-
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
604
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
605
|
-
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
606
|
-
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
607
|
-
return n;
|
|
588
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
608
589
|
}
|
|
609
|
-
function
|
|
610
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
611
|
-
if (
|
|
612
|
-
return
|
|
590
|
+
function qe(e) {
|
|
591
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
592
|
+
if (r)
|
|
593
|
+
return r.call(e);
|
|
613
594
|
if (e && typeof e.length == "number")
|
|
614
595
|
return {
|
|
615
596
|
next: function() {
|
|
616
|
-
return e &&
|
|
597
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
617
598
|
}
|
|
618
599
|
};
|
|
619
600
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
620
601
|
}
|
|
621
|
-
function
|
|
622
|
-
var
|
|
623
|
-
if (!
|
|
602
|
+
function Ke(e, t) {
|
|
603
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
604
|
+
if (!r)
|
|
624
605
|
return e;
|
|
625
|
-
var
|
|
606
|
+
var n = r.call(e), i, o = [], a;
|
|
626
607
|
try {
|
|
627
|
-
for (; (t === void 0 || t-- > 0) && !(i =
|
|
608
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
628
609
|
o.push(i.value);
|
|
629
610
|
} catch (s) {
|
|
630
611
|
a = { error: s };
|
|
631
612
|
} finally {
|
|
632
613
|
try {
|
|
633
|
-
i && !i.done && (
|
|
614
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
634
615
|
} finally {
|
|
635
616
|
if (a)
|
|
636
617
|
throw a.error;
|
|
@@ -638,49 +619,49 @@ function Qe(e, t) {
|
|
|
638
619
|
}
|
|
639
620
|
return o;
|
|
640
621
|
}
|
|
641
|
-
function
|
|
642
|
-
if (
|
|
643
|
-
for (var
|
|
644
|
-
(o || !(
|
|
622
|
+
function et(e, t, r) {
|
|
623
|
+
if (arguments.length === 2)
|
|
624
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
625
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
645
626
|
return e.concat(o || t);
|
|
646
627
|
}
|
|
647
628
|
function D(e) {
|
|
648
629
|
return typeof e == "function";
|
|
649
630
|
}
|
|
650
|
-
function
|
|
651
|
-
var t = function(
|
|
652
|
-
Error.call(
|
|
653
|
-
},
|
|
654
|
-
return
|
|
655
|
-
}
|
|
656
|
-
var
|
|
657
|
-
return function(
|
|
658
|
-
e(this), this.message =
|
|
659
|
-
` +
|
|
660
|
-
return i + 1 + ") " +
|
|
631
|
+
function or(e) {
|
|
632
|
+
var t = function(n) {
|
|
633
|
+
Error.call(n), n.stack = new Error().stack;
|
|
634
|
+
}, r = e(t);
|
|
635
|
+
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
636
|
+
}
|
|
637
|
+
var De = or(function(e) {
|
|
638
|
+
return function(r) {
|
|
639
|
+
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
640
|
+
` + r.map(function(n, i) {
|
|
641
|
+
return i + 1 + ") " + n.toString();
|
|
661
642
|
}).join(`
|
|
662
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
643
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
663
644
|
};
|
|
664
645
|
});
|
|
665
|
-
function
|
|
646
|
+
function tt(e, t) {
|
|
666
647
|
if (e) {
|
|
667
|
-
var
|
|
668
|
-
0 <=
|
|
648
|
+
var r = e.indexOf(t);
|
|
649
|
+
0 <= r && e.splice(r, 1);
|
|
669
650
|
}
|
|
670
651
|
}
|
|
671
|
-
var
|
|
652
|
+
var Ie = function() {
|
|
672
653
|
function e(t) {
|
|
673
654
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
674
655
|
}
|
|
675
656
|
return e.prototype.unsubscribe = function() {
|
|
676
|
-
var t,
|
|
657
|
+
var t, r, n, i, o;
|
|
677
658
|
if (!this.closed) {
|
|
678
659
|
this.closed = !0;
|
|
679
660
|
var a = this._parentage;
|
|
680
661
|
if (a)
|
|
681
662
|
if (this._parentage = null, Array.isArray(a))
|
|
682
663
|
try {
|
|
683
|
-
for (var s =
|
|
664
|
+
for (var s = qe(a), h = s.next(); !h.done; h = s.next()) {
|
|
684
665
|
var l = h.value;
|
|
685
666
|
l.remove(this);
|
|
686
667
|
}
|
|
@@ -688,7 +669,7 @@ var Oe = function() {
|
|
|
688
669
|
t = { error: p };
|
|
689
670
|
} finally {
|
|
690
671
|
try {
|
|
691
|
-
h && !h.done && (
|
|
672
|
+
h && !h.done && (r = s.return) && r.call(s);
|
|
692
673
|
} finally {
|
|
693
674
|
if (t)
|
|
694
675
|
throw t.error;
|
|
@@ -701,118 +682,114 @@ var Oe = function() {
|
|
|
701
682
|
try {
|
|
702
683
|
u();
|
|
703
684
|
} catch (p) {
|
|
704
|
-
o = p instanceof
|
|
685
|
+
o = p instanceof De ? p.errors : [p];
|
|
705
686
|
}
|
|
706
687
|
var f = this._finalizers;
|
|
707
688
|
if (f) {
|
|
708
689
|
this._finalizers = null;
|
|
709
690
|
try {
|
|
710
|
-
for (var c =
|
|
711
|
-
var
|
|
691
|
+
for (var c = qe(f), m = c.next(); !m.done; m = c.next()) {
|
|
692
|
+
var d = m.value;
|
|
712
693
|
try {
|
|
713
|
-
|
|
694
|
+
Ht(d);
|
|
714
695
|
} catch (p) {
|
|
715
|
-
o = o != null ? o : [], p instanceof
|
|
696
|
+
o = o != null ? o : [], p instanceof De ? o = et(et([], Ke(o)), Ke(p.errors)) : o.push(p);
|
|
716
697
|
}
|
|
717
698
|
}
|
|
718
699
|
} catch (p) {
|
|
719
|
-
|
|
700
|
+
n = { error: p };
|
|
720
701
|
} finally {
|
|
721
702
|
try {
|
|
722
|
-
|
|
703
|
+
m && !m.done && (i = c.return) && i.call(c);
|
|
723
704
|
} finally {
|
|
724
|
-
if (
|
|
725
|
-
throw
|
|
705
|
+
if (n)
|
|
706
|
+
throw n.error;
|
|
726
707
|
}
|
|
727
708
|
}
|
|
728
709
|
}
|
|
729
710
|
if (o)
|
|
730
|
-
throw new
|
|
711
|
+
throw new De(o);
|
|
731
712
|
}
|
|
732
713
|
}, e.prototype.add = function(t) {
|
|
733
|
-
var
|
|
714
|
+
var r;
|
|
734
715
|
if (t && t !== this)
|
|
735
716
|
if (this.closed)
|
|
736
|
-
|
|
717
|
+
Ht(t);
|
|
737
718
|
else {
|
|
738
719
|
if (t instanceof e) {
|
|
739
720
|
if (t.closed || t._hasParent(this))
|
|
740
721
|
return;
|
|
741
722
|
t._addParent(this);
|
|
742
723
|
}
|
|
743
|
-
(this._finalizers = (
|
|
724
|
+
(this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
|
|
744
725
|
}
|
|
745
726
|
}, e.prototype._hasParent = function(t) {
|
|
746
|
-
var
|
|
747
|
-
return
|
|
727
|
+
var r = this._parentage;
|
|
728
|
+
return r === t || Array.isArray(r) && r.includes(t);
|
|
748
729
|
}, e.prototype._addParent = function(t) {
|
|
749
|
-
var
|
|
750
|
-
this._parentage = Array.isArray(
|
|
730
|
+
var r = this._parentage;
|
|
731
|
+
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
751
732
|
}, e.prototype._removeParent = function(t) {
|
|
752
|
-
var
|
|
753
|
-
|
|
733
|
+
var r = this._parentage;
|
|
734
|
+
r === t ? this._parentage = null : Array.isArray(r) && tt(r, t);
|
|
754
735
|
}, e.prototype.remove = function(t) {
|
|
755
|
-
var
|
|
756
|
-
|
|
736
|
+
var r = this._finalizers;
|
|
737
|
+
r && tt(r, t), t instanceof e && t._removeParent(this);
|
|
757
738
|
}, e.EMPTY = function() {
|
|
758
739
|
var t = new e();
|
|
759
740
|
return t.closed = !0, t;
|
|
760
741
|
}(), e;
|
|
761
|
-
}(),
|
|
762
|
-
function
|
|
763
|
-
return e instanceof
|
|
742
|
+
}(), ar = Ie.EMPTY;
|
|
743
|
+
function sr(e) {
|
|
744
|
+
return e instanceof Ie || e && "closed" in e && D(e.remove) && D(e.add) && D(e.unsubscribe);
|
|
764
745
|
}
|
|
765
|
-
function
|
|
746
|
+
function Ht(e) {
|
|
766
747
|
D(e) ? e() : e.unsubscribe();
|
|
767
748
|
}
|
|
768
|
-
var
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
Promise: void 0,
|
|
772
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
773
|
-
useDeprecatedNextContext: !1
|
|
774
|
-
}, Hr = {
|
|
749
|
+
var An = {
|
|
750
|
+
Promise: void 0
|
|
751
|
+
}, Pn = {
|
|
775
752
|
setTimeout: function(e, t) {
|
|
776
|
-
for (var
|
|
777
|
-
n
|
|
778
|
-
return setTimeout.apply(void 0,
|
|
753
|
+
for (var r = [], n = 2; n < arguments.length; n++)
|
|
754
|
+
r[n - 2] = arguments[n];
|
|
755
|
+
return setTimeout.apply(void 0, et([e, t], Ke(r)));
|
|
779
756
|
},
|
|
780
757
|
clearTimeout: function(e) {
|
|
781
758
|
return clearTimeout(e);
|
|
782
759
|
},
|
|
783
760
|
delegate: void 0
|
|
784
761
|
};
|
|
785
|
-
function
|
|
786
|
-
|
|
762
|
+
function On(e) {
|
|
763
|
+
Pn.setTimeout(function() {
|
|
787
764
|
throw e;
|
|
788
765
|
});
|
|
789
766
|
}
|
|
790
|
-
function
|
|
767
|
+
function Bt() {
|
|
791
768
|
}
|
|
792
769
|
function Se(e) {
|
|
793
770
|
e();
|
|
794
771
|
}
|
|
795
|
-
var
|
|
796
|
-
|
|
797
|
-
function t(
|
|
798
|
-
var
|
|
799
|
-
return
|
|
772
|
+
var ur = function(e) {
|
|
773
|
+
pe(t, e);
|
|
774
|
+
function t(r) {
|
|
775
|
+
var n = e.call(this) || this;
|
|
776
|
+
return n.isStopped = !1, r ? (n.destination = r, sr(r) && r.add(n)) : n.destination = Nn, n;
|
|
800
777
|
}
|
|
801
|
-
return t.create = function(
|
|
802
|
-
return new
|
|
803
|
-
}, t.prototype.next = function(
|
|
804
|
-
this.isStopped || this._next(
|
|
805
|
-
}, t.prototype.error = function(
|
|
806
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
778
|
+
return t.create = function(r, n, i) {
|
|
779
|
+
return new rt(r, n, i);
|
|
780
|
+
}, t.prototype.next = function(r) {
|
|
781
|
+
this.isStopped || this._next(r);
|
|
782
|
+
}, t.prototype.error = function(r) {
|
|
783
|
+
this.isStopped || (this.isStopped = !0, this._error(r));
|
|
807
784
|
}, t.prototype.complete = function() {
|
|
808
785
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
809
786
|
}, t.prototype.unsubscribe = function() {
|
|
810
787
|
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
811
|
-
}, t.prototype._next = function(
|
|
812
|
-
this.destination.next(
|
|
813
|
-
}, t.prototype._error = function(
|
|
788
|
+
}, t.prototype._next = function(r) {
|
|
789
|
+
this.destination.next(r);
|
|
790
|
+
}, t.prototype._error = function(r) {
|
|
814
791
|
try {
|
|
815
|
-
this.destination.error(
|
|
792
|
+
this.destination.error(r);
|
|
816
793
|
} finally {
|
|
817
794
|
this.unsubscribe();
|
|
818
795
|
}
|
|
@@ -823,82 +800,82 @@ var on = function(e) {
|
|
|
823
800
|
this.unsubscribe();
|
|
824
801
|
}
|
|
825
802
|
}, t;
|
|
826
|
-
}(
|
|
803
|
+
}(Ie), Rn = function() {
|
|
827
804
|
function e(t) {
|
|
828
805
|
this.partialObserver = t;
|
|
829
806
|
}
|
|
830
807
|
return e.prototype.next = function(t) {
|
|
831
|
-
var
|
|
832
|
-
if (
|
|
808
|
+
var r = this.partialObserver;
|
|
809
|
+
if (r.next)
|
|
833
810
|
try {
|
|
834
|
-
|
|
835
|
-
} catch (
|
|
836
|
-
|
|
811
|
+
r.next(t);
|
|
812
|
+
} catch (n) {
|
|
813
|
+
_e(n);
|
|
837
814
|
}
|
|
838
815
|
}, e.prototype.error = function(t) {
|
|
839
|
-
var
|
|
840
|
-
if (
|
|
816
|
+
var r = this.partialObserver;
|
|
817
|
+
if (r.error)
|
|
841
818
|
try {
|
|
842
|
-
|
|
843
|
-
} catch (
|
|
844
|
-
|
|
819
|
+
r.error(t);
|
|
820
|
+
} catch (n) {
|
|
821
|
+
_e(n);
|
|
845
822
|
}
|
|
846
823
|
else
|
|
847
|
-
|
|
824
|
+
_e(t);
|
|
848
825
|
}, e.prototype.complete = function() {
|
|
849
826
|
var t = this.partialObserver;
|
|
850
827
|
if (t.complete)
|
|
851
828
|
try {
|
|
852
829
|
t.complete();
|
|
853
|
-
} catch (
|
|
854
|
-
|
|
830
|
+
} catch (r) {
|
|
831
|
+
_e(r);
|
|
855
832
|
}
|
|
856
833
|
}, e;
|
|
857
|
-
}(),
|
|
858
|
-
|
|
859
|
-
function t(
|
|
834
|
+
}(), rt = function(e) {
|
|
835
|
+
pe(t, e);
|
|
836
|
+
function t(r, n, i) {
|
|
860
837
|
var o = e.call(this) || this, a;
|
|
861
|
-
return D(
|
|
862
|
-
next:
|
|
863
|
-
error:
|
|
838
|
+
return D(r) || !r ? a = {
|
|
839
|
+
next: r != null ? r : void 0,
|
|
840
|
+
error: n != null ? n : void 0,
|
|
864
841
|
complete: i != null ? i : void 0
|
|
865
|
-
} : a =
|
|
842
|
+
} : a = r, o.destination = new Rn(a), o;
|
|
866
843
|
}
|
|
867
844
|
return t;
|
|
868
|
-
}(
|
|
869
|
-
function
|
|
870
|
-
|
|
845
|
+
}(ur);
|
|
846
|
+
function _e(e) {
|
|
847
|
+
On(e);
|
|
871
848
|
}
|
|
872
|
-
function
|
|
849
|
+
function In(e) {
|
|
873
850
|
throw e;
|
|
874
851
|
}
|
|
875
|
-
var
|
|
852
|
+
var Nn = {
|
|
876
853
|
closed: !0,
|
|
877
|
-
next:
|
|
878
|
-
error:
|
|
879
|
-
complete:
|
|
880
|
-
},
|
|
854
|
+
next: Bt,
|
|
855
|
+
error: In,
|
|
856
|
+
complete: Bt
|
|
857
|
+
}, Ln = function() {
|
|
881
858
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
882
859
|
}();
|
|
883
|
-
function
|
|
860
|
+
function Mn(e) {
|
|
884
861
|
return e;
|
|
885
862
|
}
|
|
886
|
-
function
|
|
887
|
-
return e.length === 0 ?
|
|
888
|
-
return e.reduce(function(
|
|
889
|
-
return i(
|
|
890
|
-
},
|
|
863
|
+
function Cn(e) {
|
|
864
|
+
return e.length === 0 ? Mn : e.length === 1 ? e[0] : function(r) {
|
|
865
|
+
return e.reduce(function(n, i) {
|
|
866
|
+
return i(n);
|
|
867
|
+
}, r);
|
|
891
868
|
};
|
|
892
869
|
}
|
|
893
|
-
var
|
|
870
|
+
var At = function() {
|
|
894
871
|
function e(t) {
|
|
895
872
|
t && (this._subscribe = t);
|
|
896
873
|
}
|
|
897
874
|
return e.prototype.lift = function(t) {
|
|
898
|
-
var
|
|
899
|
-
return
|
|
900
|
-
}, e.prototype.subscribe = function(t,
|
|
901
|
-
var i = this, o =
|
|
875
|
+
var r = new e();
|
|
876
|
+
return r.source = this, r.operator = t, r;
|
|
877
|
+
}, e.prototype.subscribe = function(t, r, n) {
|
|
878
|
+
var i = this, o = Un(t) ? t : new rt(t, r, n);
|
|
902
879
|
return Se(function() {
|
|
903
880
|
var a = i, s = a.operator, h = a.source;
|
|
904
881
|
o.add(s ? s.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -906,13 +883,13 @@ var St = function() {
|
|
|
906
883
|
}, e.prototype._trySubscribe = function(t) {
|
|
907
884
|
try {
|
|
908
885
|
return this._subscribe(t);
|
|
909
|
-
} catch (
|
|
910
|
-
t.error(
|
|
886
|
+
} catch (r) {
|
|
887
|
+
t.error(r);
|
|
911
888
|
}
|
|
912
|
-
}, e.prototype.forEach = function(t,
|
|
913
|
-
var
|
|
914
|
-
return
|
|
915
|
-
var a = new
|
|
889
|
+
}, e.prototype.forEach = function(t, r) {
|
|
890
|
+
var n = this;
|
|
891
|
+
return r = Pt(r), new r(function(i, o) {
|
|
892
|
+
var a = new rt({
|
|
916
893
|
next: function(s) {
|
|
917
894
|
try {
|
|
918
895
|
t(s);
|
|
@@ -923,69 +900,69 @@ var St = function() {
|
|
|
923
900
|
error: o,
|
|
924
901
|
complete: i
|
|
925
902
|
});
|
|
926
|
-
|
|
903
|
+
n.subscribe(a);
|
|
927
904
|
});
|
|
928
905
|
}, e.prototype._subscribe = function(t) {
|
|
929
|
-
var
|
|
930
|
-
return (
|
|
931
|
-
}, e.prototype[
|
|
906
|
+
var r;
|
|
907
|
+
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
908
|
+
}, e.prototype[Ln] = function() {
|
|
932
909
|
return this;
|
|
933
910
|
}, e.prototype.pipe = function() {
|
|
934
|
-
for (var t = [],
|
|
935
|
-
t[
|
|
936
|
-
return
|
|
911
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
912
|
+
t[r] = arguments[r];
|
|
913
|
+
return Cn(t)(this);
|
|
937
914
|
}, e.prototype.toPromise = function(t) {
|
|
938
|
-
var
|
|
939
|
-
return t =
|
|
915
|
+
var r = this;
|
|
916
|
+
return t = Pt(t), new t(function(n, i) {
|
|
940
917
|
var o;
|
|
941
|
-
|
|
918
|
+
r.subscribe(function(a) {
|
|
942
919
|
return o = a;
|
|
943
920
|
}, function(a) {
|
|
944
921
|
return i(a);
|
|
945
922
|
}, function() {
|
|
946
|
-
return
|
|
923
|
+
return n(o);
|
|
947
924
|
});
|
|
948
925
|
});
|
|
949
926
|
}, e.create = function(t) {
|
|
950
927
|
return new e(t);
|
|
951
928
|
}, e;
|
|
952
929
|
}();
|
|
953
|
-
function
|
|
930
|
+
function Pt(e) {
|
|
954
931
|
var t;
|
|
955
|
-
return (t = e != null ? e :
|
|
932
|
+
return (t = e != null ? e : An.Promise) !== null && t !== void 0 ? t : Promise;
|
|
956
933
|
}
|
|
957
|
-
function
|
|
934
|
+
function Gn(e) {
|
|
958
935
|
return e && D(e.next) && D(e.error) && D(e.complete);
|
|
959
936
|
}
|
|
960
|
-
function
|
|
961
|
-
return e && e instanceof
|
|
937
|
+
function Un(e) {
|
|
938
|
+
return e && e instanceof ur || Gn(e) && sr(e);
|
|
962
939
|
}
|
|
963
|
-
var
|
|
940
|
+
var $n = or(function(e) {
|
|
964
941
|
return function() {
|
|
965
942
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
966
943
|
};
|
|
967
|
-
}),
|
|
968
|
-
|
|
944
|
+
}), lr = function(e) {
|
|
945
|
+
pe(t, e);
|
|
969
946
|
function t() {
|
|
970
|
-
var
|
|
971
|
-
return
|
|
947
|
+
var r = e.call(this) || this;
|
|
948
|
+
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
972
949
|
}
|
|
973
|
-
return t.prototype.lift = function(
|
|
974
|
-
var
|
|
975
|
-
return
|
|
950
|
+
return t.prototype.lift = function(r) {
|
|
951
|
+
var n = new Ot(this, this);
|
|
952
|
+
return n.operator = r, n;
|
|
976
953
|
}, t.prototype._throwIfClosed = function() {
|
|
977
954
|
if (this.closed)
|
|
978
|
-
throw new
|
|
979
|
-
}, t.prototype.next = function(
|
|
980
|
-
var
|
|
955
|
+
throw new $n();
|
|
956
|
+
}, t.prototype.next = function(r) {
|
|
957
|
+
var n = this;
|
|
981
958
|
Se(function() {
|
|
982
959
|
var i, o;
|
|
983
|
-
if (
|
|
984
|
-
|
|
960
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
961
|
+
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
985
962
|
try {
|
|
986
|
-
for (var a =
|
|
963
|
+
for (var a = qe(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
987
964
|
var h = s.value;
|
|
988
|
-
h.next(
|
|
965
|
+
h.next(r);
|
|
989
966
|
}
|
|
990
967
|
} catch (l) {
|
|
991
968
|
i = { error: l };
|
|
@@ -999,118 +976,118 @@ var Cr = tn(function(e) {
|
|
|
999
976
|
}
|
|
1000
977
|
}
|
|
1001
978
|
});
|
|
1002
|
-
}, t.prototype.error = function(
|
|
1003
|
-
var
|
|
979
|
+
}, t.prototype.error = function(r) {
|
|
980
|
+
var n = this;
|
|
1004
981
|
Se(function() {
|
|
1005
|
-
if (
|
|
1006
|
-
|
|
1007
|
-
for (var i =
|
|
1008
|
-
i.shift().error(
|
|
982
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
983
|
+
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
984
|
+
for (var i = n.observers; i.length; )
|
|
985
|
+
i.shift().error(r);
|
|
1009
986
|
}
|
|
1010
987
|
});
|
|
1011
988
|
}, t.prototype.complete = function() {
|
|
1012
|
-
var
|
|
989
|
+
var r = this;
|
|
1013
990
|
Se(function() {
|
|
1014
|
-
if (
|
|
1015
|
-
|
|
1016
|
-
for (var
|
|
1017
|
-
|
|
991
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
992
|
+
r.isStopped = !0;
|
|
993
|
+
for (var n = r.observers; n.length; )
|
|
994
|
+
n.shift().complete();
|
|
1018
995
|
}
|
|
1019
996
|
});
|
|
1020
997
|
}, t.prototype.unsubscribe = function() {
|
|
1021
998
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
1022
999
|
}, Object.defineProperty(t.prototype, "observed", {
|
|
1023
1000
|
get: function() {
|
|
1024
|
-
var
|
|
1025
|
-
return ((
|
|
1001
|
+
var r;
|
|
1002
|
+
return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
|
|
1026
1003
|
},
|
|
1027
1004
|
enumerable: !1,
|
|
1028
1005
|
configurable: !0
|
|
1029
|
-
}), t.prototype._trySubscribe = function(
|
|
1030
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this,
|
|
1031
|
-
}, t.prototype._subscribe = function(
|
|
1032
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(
|
|
1033
|
-
}, t.prototype._innerSubscribe = function(
|
|
1034
|
-
var
|
|
1035
|
-
return o || a ?
|
|
1036
|
-
|
|
1006
|
+
}), t.prototype._trySubscribe = function(r) {
|
|
1007
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
|
|
1008
|
+
}, t.prototype._subscribe = function(r) {
|
|
1009
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1010
|
+
}, t.prototype._innerSubscribe = function(r) {
|
|
1011
|
+
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1012
|
+
return o || a ? ar : (this.currentObservers = null, s.push(r), new Ie(function() {
|
|
1013
|
+
n.currentObservers = null, tt(s, r);
|
|
1037
1014
|
}));
|
|
1038
|
-
}, t.prototype._checkFinalizedStatuses = function(
|
|
1039
|
-
var
|
|
1040
|
-
i ?
|
|
1015
|
+
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1016
|
+
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1017
|
+
i ? r.error(o) : a && r.complete();
|
|
1041
1018
|
}, t.prototype.asObservable = function() {
|
|
1042
|
-
var
|
|
1043
|
-
return
|
|
1044
|
-
}, t.create = function(
|
|
1045
|
-
return new
|
|
1019
|
+
var r = new At();
|
|
1020
|
+
return r.source = this, r;
|
|
1021
|
+
}, t.create = function(r, n) {
|
|
1022
|
+
return new Ot(r, n);
|
|
1046
1023
|
}, t;
|
|
1047
|
-
}(
|
|
1048
|
-
|
|
1049
|
-
function t(
|
|
1024
|
+
}(At), Ot = function(e) {
|
|
1025
|
+
pe(t, e);
|
|
1026
|
+
function t(r, n) {
|
|
1050
1027
|
var i = e.call(this) || this;
|
|
1051
|
-
return i.destination =
|
|
1028
|
+
return i.destination = r, i.source = n, i;
|
|
1052
1029
|
}
|
|
1053
|
-
return t.prototype.next = function(
|
|
1054
|
-
var
|
|
1055
|
-
(i = (
|
|
1056
|
-
}, t.prototype.error = function(
|
|
1057
|
-
var
|
|
1058
|
-
(i = (
|
|
1030
|
+
return t.prototype.next = function(r) {
|
|
1031
|
+
var n, i;
|
|
1032
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
|
|
1033
|
+
}, t.prototype.error = function(r) {
|
|
1034
|
+
var n, i;
|
|
1035
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
|
|
1059
1036
|
}, t.prototype.complete = function() {
|
|
1060
|
-
var
|
|
1061
|
-
(
|
|
1062
|
-
}, t.prototype._subscribe = function(
|
|
1063
|
-
var
|
|
1064
|
-
return (i = (
|
|
1037
|
+
var r, n;
|
|
1038
|
+
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1039
|
+
}, t.prototype._subscribe = function(r) {
|
|
1040
|
+
var n, i;
|
|
1041
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : ar;
|
|
1065
1042
|
}, t;
|
|
1066
|
-
}(
|
|
1043
|
+
}(lr), hr = {
|
|
1067
1044
|
now: function() {
|
|
1068
|
-
return (
|
|
1045
|
+
return (hr.delegate || Date).now();
|
|
1069
1046
|
},
|
|
1070
1047
|
delegate: void 0
|
|
1071
|
-
},
|
|
1072
|
-
|
|
1073
|
-
function t(
|
|
1074
|
-
|
|
1048
|
+
}, Fn = function(e) {
|
|
1049
|
+
pe(t, e);
|
|
1050
|
+
function t(r, n, i) {
|
|
1051
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = hr);
|
|
1075
1052
|
var o = e.call(this) || this;
|
|
1076
|
-
return o._bufferSize =
|
|
1053
|
+
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1077
1054
|
}
|
|
1078
|
-
return t.prototype.next = function(
|
|
1079
|
-
var
|
|
1080
|
-
i || (o.push(
|
|
1081
|
-
}, t.prototype._subscribe = function(
|
|
1055
|
+
return t.prototype.next = function(r) {
|
|
1056
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, h = n._windowTime;
|
|
1057
|
+
i || (o.push(r), !a && o.push(s.now() + h)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1058
|
+
}, t.prototype._subscribe = function(r) {
|
|
1082
1059
|
this._throwIfClosed(), this._trimBuffer();
|
|
1083
|
-
for (var
|
|
1084
|
-
|
|
1085
|
-
return this._checkFinalizedStatuses(
|
|
1060
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), h = 0; h < s.length && !r.closed; h += o ? 1 : 2)
|
|
1061
|
+
r.next(s[h]);
|
|
1062
|
+
return this._checkFinalizedStatuses(r), n;
|
|
1086
1063
|
}, t.prototype._trimBuffer = function() {
|
|
1087
|
-
var
|
|
1088
|
-
if (
|
|
1064
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
1065
|
+
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1089
1066
|
for (var h = i.now(), l = 0, u = 1; u < o.length && o[u] <= h; u += 2)
|
|
1090
1067
|
l = u;
|
|
1091
1068
|
l && o.splice(0, l + 1);
|
|
1092
1069
|
}
|
|
1093
1070
|
}, t;
|
|
1094
|
-
}(
|
|
1095
|
-
const
|
|
1096
|
-
if (
|
|
1097
|
-
const
|
|
1098
|
-
|
|
1071
|
+
}(lr);
|
|
1072
|
+
const Rt = [], It = {}, Dn = (e, t = 0) => {
|
|
1073
|
+
if (Rt.indexOf(e) == -1) {
|
|
1074
|
+
const r = new Fn(t);
|
|
1075
|
+
It[e] = r, Rt.push(e);
|
|
1099
1076
|
}
|
|
1100
|
-
return
|
|
1077
|
+
return It[e];
|
|
1101
1078
|
}, q = [];
|
|
1102
|
-
function
|
|
1079
|
+
function jn(e, t) {
|
|
1103
1080
|
return {
|
|
1104
|
-
subscribe:
|
|
1081
|
+
subscribe: Ne(e, t).subscribe
|
|
1105
1082
|
};
|
|
1106
1083
|
}
|
|
1107
|
-
function
|
|
1108
|
-
let
|
|
1109
|
-
const
|
|
1084
|
+
function Ne(e, t = G) {
|
|
1085
|
+
let r;
|
|
1086
|
+
const n = /* @__PURE__ */ new Set();
|
|
1110
1087
|
function i(s) {
|
|
1111
|
-
if (
|
|
1088
|
+
if (Kt(e, s) && (e = s, r)) {
|
|
1112
1089
|
const h = !q.length;
|
|
1113
|
-
for (const l of
|
|
1090
|
+
for (const l of n)
|
|
1114
1091
|
l[1](), q.push(l, e);
|
|
1115
1092
|
if (h) {
|
|
1116
1093
|
for (let l = 0; l < q.length; l += 2)
|
|
@@ -1122,32 +1099,32 @@ function Ie(e, t = C) {
|
|
|
1122
1099
|
function o(s) {
|
|
1123
1100
|
i(s(e));
|
|
1124
1101
|
}
|
|
1125
|
-
function a(s, h =
|
|
1102
|
+
function a(s, h = G) {
|
|
1126
1103
|
const l = [s, h];
|
|
1127
|
-
return
|
|
1128
|
-
|
|
1104
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || G), s(e), () => {
|
|
1105
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1129
1106
|
};
|
|
1130
1107
|
}
|
|
1131
1108
|
return { set: i, update: o, subscribe: a };
|
|
1132
1109
|
}
|
|
1133
|
-
function
|
|
1134
|
-
const
|
|
1110
|
+
function oe(e, t, r) {
|
|
1111
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1135
1112
|
if (!i.every(Boolean))
|
|
1136
1113
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1137
1114
|
const o = t.length < 2;
|
|
1138
|
-
return
|
|
1115
|
+
return jn(r, (a, s) => {
|
|
1139
1116
|
let h = !1;
|
|
1140
1117
|
const l = [];
|
|
1141
|
-
let u = 0, f =
|
|
1118
|
+
let u = 0, f = G;
|
|
1142
1119
|
const c = () => {
|
|
1143
1120
|
if (u)
|
|
1144
1121
|
return;
|
|
1145
1122
|
f();
|
|
1146
|
-
const
|
|
1147
|
-
o ? a(
|
|
1148
|
-
},
|
|
1149
|
-
(
|
|
1150
|
-
|
|
1123
|
+
const d = t(n ? l[0] : l, a, s);
|
|
1124
|
+
o ? a(d) : f = ft(d) ? d : G;
|
|
1125
|
+
}, m = i.map(
|
|
1126
|
+
(d, p) => er(
|
|
1127
|
+
d,
|
|
1151
1128
|
(A) => {
|
|
1152
1129
|
l[p] = A, u &= ~(1 << p), h && c();
|
|
1153
1130
|
},
|
|
@@ -1157,118 +1134,157 @@ function ae(e, t, n) {
|
|
|
1157
1134
|
)
|
|
1158
1135
|
);
|
|
1159
1136
|
return h = !0, c(), function() {
|
|
1160
|
-
J(
|
|
1137
|
+
J(m), f(), h = !1;
|
|
1161
1138
|
};
|
|
1162
1139
|
});
|
|
1163
1140
|
}
|
|
1164
|
-
function
|
|
1165
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1141
|
+
function kn(e) {
|
|
1142
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1166
1143
|
}
|
|
1167
|
-
var
|
|
1168
|
-
return
|
|
1144
|
+
var Vn = function(t) {
|
|
1145
|
+
return Wn(t) && !Xn(t);
|
|
1169
1146
|
};
|
|
1170
|
-
function
|
|
1147
|
+
function Wn(e) {
|
|
1171
1148
|
return !!e && typeof e == "object";
|
|
1172
1149
|
}
|
|
1173
|
-
function
|
|
1150
|
+
function Xn(e) {
|
|
1174
1151
|
var t = Object.prototype.toString.call(e);
|
|
1175
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1152
|
+
return t === "[object RegExp]" || t === "[object Date]" || Zn(e);
|
|
1176
1153
|
}
|
|
1177
|
-
var
|
|
1178
|
-
function
|
|
1179
|
-
return e.$$typeof ===
|
|
1154
|
+
var zn = typeof Symbol == "function" && Symbol.for, Jn = zn ? Symbol.for("react.element") : 60103;
|
|
1155
|
+
function Zn(e) {
|
|
1156
|
+
return e.$$typeof === Jn;
|
|
1180
1157
|
}
|
|
1181
|
-
function
|
|
1158
|
+
function Qn(e) {
|
|
1182
1159
|
return Array.isArray(e) ? [] : {};
|
|
1183
1160
|
}
|
|
1184
1161
|
function me(e, t) {
|
|
1185
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1162
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? te(Qn(e), e, t) : e;
|
|
1186
1163
|
}
|
|
1187
|
-
function
|
|
1188
|
-
return e.concat(t).map(function(
|
|
1189
|
-
return me(
|
|
1164
|
+
function Yn(e, t, r) {
|
|
1165
|
+
return e.concat(t).map(function(n) {
|
|
1166
|
+
return me(n, r);
|
|
1190
1167
|
});
|
|
1191
1168
|
}
|
|
1192
|
-
function
|
|
1169
|
+
function qn(e, t) {
|
|
1193
1170
|
if (!t.customMerge)
|
|
1194
|
-
return
|
|
1195
|
-
var
|
|
1196
|
-
return typeof
|
|
1171
|
+
return te;
|
|
1172
|
+
var r = t.customMerge(e);
|
|
1173
|
+
return typeof r == "function" ? r : te;
|
|
1197
1174
|
}
|
|
1198
|
-
function
|
|
1175
|
+
function Kn(e) {
|
|
1199
1176
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1200
1177
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1201
1178
|
}) : [];
|
|
1202
1179
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return Object.keys(e).concat(
|
|
1180
|
+
function Nt(e) {
|
|
1181
|
+
return Object.keys(e).concat(Kn(e));
|
|
1205
1182
|
}
|
|
1206
|
-
function
|
|
1183
|
+
function cr(e, t) {
|
|
1207
1184
|
try {
|
|
1208
1185
|
return t in e;
|
|
1209
|
-
} catch (
|
|
1186
|
+
} catch (r) {
|
|
1210
1187
|
return !1;
|
|
1211
1188
|
}
|
|
1212
1189
|
}
|
|
1213
|
-
function
|
|
1214
|
-
return
|
|
1190
|
+
function ei(e, t) {
|
|
1191
|
+
return cr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1215
1192
|
}
|
|
1216
|
-
function
|
|
1217
|
-
var
|
|
1218
|
-
return
|
|
1219
|
-
|
|
1220
|
-
}),
|
|
1221
|
-
|
|
1222
|
-
}),
|
|
1223
|
-
}
|
|
1224
|
-
function
|
|
1225
|
-
|
|
1226
|
-
var
|
|
1227
|
-
return o ?
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1193
|
+
function ti(e, t, r) {
|
|
1194
|
+
var n = {};
|
|
1195
|
+
return r.isMergeableObject(e) && Nt(e).forEach(function(i) {
|
|
1196
|
+
n[i] = me(e[i], r);
|
|
1197
|
+
}), Nt(t).forEach(function(i) {
|
|
1198
|
+
ei(e, i) || (cr(e, i) && r.isMergeableObject(t[i]) ? n[i] = qn(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
|
|
1199
|
+
}), n;
|
|
1200
|
+
}
|
|
1201
|
+
function te(e, t, r) {
|
|
1202
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Yn, r.isMergeableObject = r.isMergeableObject || Vn, r.cloneUnlessOtherwiseSpecified = me;
|
|
1203
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1204
|
+
return o ? n ? r.arrayMerge(e, t, r) : ti(e, t, r) : me(t, r);
|
|
1205
|
+
}
|
|
1206
|
+
te.all = function(t, r) {
|
|
1230
1207
|
if (!Array.isArray(t))
|
|
1231
1208
|
throw new Error("first argument should be an array");
|
|
1232
|
-
return t.reduce(function(
|
|
1233
|
-
return
|
|
1209
|
+
return t.reduce(function(n, i) {
|
|
1210
|
+
return te(n, i, r);
|
|
1234
1211
|
}, {});
|
|
1235
1212
|
};
|
|
1236
|
-
var
|
|
1237
|
-
const
|
|
1238
|
-
function
|
|
1239
|
-
|
|
1213
|
+
var ri = te, ni = ri;
|
|
1214
|
+
const ii = /* @__PURE__ */ kn(ni);
|
|
1215
|
+
var nt = function(e, t) {
|
|
1216
|
+
return nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1217
|
+
r.__proto__ = n;
|
|
1218
|
+
} || function(r, n) {
|
|
1219
|
+
for (var i in n)
|
|
1220
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1221
|
+
}, nt(e, t);
|
|
1222
|
+
};
|
|
1223
|
+
function Le(e, t) {
|
|
1224
|
+
if (typeof t != "function" && t !== null)
|
|
1225
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1226
|
+
nt(e, t);
|
|
1227
|
+
function r() {
|
|
1228
|
+
this.constructor = e;
|
|
1229
|
+
}
|
|
1230
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1231
|
+
}
|
|
1232
|
+
var C = function() {
|
|
1233
|
+
return C = Object.assign || function(t) {
|
|
1234
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1235
|
+
r = arguments[n];
|
|
1236
|
+
for (var o in r)
|
|
1237
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1238
|
+
}
|
|
1239
|
+
return t;
|
|
1240
|
+
}, C.apply(this, arguments);
|
|
1241
|
+
};
|
|
1242
|
+
function oi(e, t) {
|
|
1243
|
+
var r = {};
|
|
1244
|
+
for (var n in e)
|
|
1245
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1246
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1247
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1248
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1249
|
+
return r;
|
|
1250
|
+
}
|
|
1251
|
+
function je(e, t, r) {
|
|
1252
|
+
if (r || arguments.length === 2)
|
|
1253
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1254
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1255
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1256
|
+
}
|
|
1257
|
+
function ke(e, t) {
|
|
1258
|
+
var r = t && t.cache ? t.cache : fi, n = t && t.serializer ? t.serializer : hi, i = t && t.strategy ? t.strategy : ui;
|
|
1240
1259
|
return i(e, {
|
|
1241
|
-
cache:
|
|
1242
|
-
serializer:
|
|
1260
|
+
cache: r,
|
|
1261
|
+
serializer: n
|
|
1243
1262
|
});
|
|
1244
1263
|
}
|
|
1245
|
-
function
|
|
1264
|
+
function ai(e) {
|
|
1246
1265
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1247
1266
|
}
|
|
1248
|
-
function
|
|
1249
|
-
var i =
|
|
1250
|
-
return typeof o == "undefined" && (o = e.call(this,
|
|
1251
|
-
}
|
|
1252
|
-
function hn(e, t, n) {
|
|
1253
|
-
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
1254
|
-
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
1267
|
+
function si(e, t, r, n) {
|
|
1268
|
+
var i = ai(n) ? n : r(n), o = t.get(i);
|
|
1269
|
+
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1255
1270
|
}
|
|
1256
|
-
function
|
|
1257
|
-
|
|
1271
|
+
function fr(e, t, r) {
|
|
1272
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1273
|
+
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1258
1274
|
}
|
|
1259
|
-
function
|
|
1260
|
-
|
|
1261
|
-
return ut(e, this, n, t.cache.create(), t.serializer);
|
|
1275
|
+
function mr(e, t, r, n, i) {
|
|
1276
|
+
return r.bind(t, e, n, i);
|
|
1262
1277
|
}
|
|
1263
|
-
function
|
|
1264
|
-
|
|
1278
|
+
function ui(e, t) {
|
|
1279
|
+
var r = e.length === 1 ? si : fr;
|
|
1280
|
+
return mr(e, this, r, t.cache.create(), t.serializer);
|
|
1265
1281
|
}
|
|
1266
|
-
function
|
|
1267
|
-
return
|
|
1282
|
+
function li(e, t) {
|
|
1283
|
+
return mr(e, this, fr, t.cache.create(), t.serializer);
|
|
1268
1284
|
}
|
|
1269
|
-
var
|
|
1285
|
+
var hi = function() {
|
|
1270
1286
|
return JSON.stringify(arguments);
|
|
1271
|
-
},
|
|
1287
|
+
}, ci = (
|
|
1272
1288
|
/** @class */
|
|
1273
1289
|
function() {
|
|
1274
1290
|
function e() {
|
|
@@ -1276,73 +1292,82 @@ var ai = function() {
|
|
|
1276
1292
|
}
|
|
1277
1293
|
return e.prototype.get = function(t) {
|
|
1278
1294
|
return this.cache[t];
|
|
1279
|
-
}, e.prototype.set = function(t,
|
|
1280
|
-
this.cache[t] =
|
|
1295
|
+
}, e.prototype.set = function(t, r) {
|
|
1296
|
+
this.cache[t] = r;
|
|
1281
1297
|
}, e;
|
|
1282
1298
|
}()
|
|
1283
|
-
),
|
|
1299
|
+
), fi = {
|
|
1284
1300
|
create: function() {
|
|
1285
|
-
return new
|
|
1301
|
+
return new ci();
|
|
1286
1302
|
}
|
|
1287
|
-
},
|
|
1288
|
-
variadic:
|
|
1289
|
-
|
|
1290
|
-
|
|
1303
|
+
}, Ve = {
|
|
1304
|
+
variadic: li
|
|
1305
|
+
}, Pe = function() {
|
|
1306
|
+
return Pe = Object.assign || function(t) {
|
|
1307
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1308
|
+
r = arguments[n];
|
|
1309
|
+
for (var o in r)
|
|
1310
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1311
|
+
}
|
|
1312
|
+
return t;
|
|
1313
|
+
}, Pe.apply(this, arguments);
|
|
1314
|
+
};
|
|
1315
|
+
var y;
|
|
1291
1316
|
(function(e) {
|
|
1292
1317
|
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";
|
|
1293
1318
|
})(y || (y = {}));
|
|
1294
|
-
var
|
|
1319
|
+
var E;
|
|
1295
1320
|
(function(e) {
|
|
1296
1321
|
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";
|
|
1297
|
-
})(
|
|
1322
|
+
})(E || (E = {}));
|
|
1298
1323
|
var re;
|
|
1299
1324
|
(function(e) {
|
|
1300
1325
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1301
1326
|
})(re || (re = {}));
|
|
1302
|
-
function
|
|
1303
|
-
return e.type ===
|
|
1327
|
+
function Lt(e) {
|
|
1328
|
+
return e.type === E.literal;
|
|
1304
1329
|
}
|
|
1305
|
-
function
|
|
1306
|
-
return e.type ===
|
|
1330
|
+
function mi(e) {
|
|
1331
|
+
return e.type === E.argument;
|
|
1307
1332
|
}
|
|
1308
|
-
function
|
|
1309
|
-
return e.type ===
|
|
1333
|
+
function dr(e) {
|
|
1334
|
+
return e.type === E.number;
|
|
1310
1335
|
}
|
|
1311
|
-
function
|
|
1312
|
-
return e.type ===
|
|
1336
|
+
function pr(e) {
|
|
1337
|
+
return e.type === E.date;
|
|
1313
1338
|
}
|
|
1314
|
-
function
|
|
1315
|
-
return e.type ===
|
|
1339
|
+
function br(e) {
|
|
1340
|
+
return e.type === E.time;
|
|
1316
1341
|
}
|
|
1317
|
-
function
|
|
1318
|
-
return e.type ===
|
|
1342
|
+
function gr(e) {
|
|
1343
|
+
return e.type === E.select;
|
|
1319
1344
|
}
|
|
1320
|
-
function
|
|
1321
|
-
return e.type ===
|
|
1345
|
+
function yr(e) {
|
|
1346
|
+
return e.type === E.plural;
|
|
1322
1347
|
}
|
|
1323
|
-
function
|
|
1324
|
-
return e.type ===
|
|
1348
|
+
function di(e) {
|
|
1349
|
+
return e.type === E.pound;
|
|
1325
1350
|
}
|
|
1326
|
-
function
|
|
1327
|
-
return e.type ===
|
|
1351
|
+
function vr(e) {
|
|
1352
|
+
return e.type === E.tag;
|
|
1328
1353
|
}
|
|
1329
|
-
function
|
|
1354
|
+
function _r(e) {
|
|
1330
1355
|
return !!(e && typeof e == "object" && e.type === re.number);
|
|
1331
1356
|
}
|
|
1332
|
-
function
|
|
1357
|
+
function it(e) {
|
|
1333
1358
|
return !!(e && typeof e == "object" && e.type === re.dateTime);
|
|
1334
1359
|
}
|
|
1335
|
-
var
|
|
1336
|
-
function
|
|
1360
|
+
var xr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, pi = /(?:[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;
|
|
1361
|
+
function bi(e) {
|
|
1337
1362
|
var t = {};
|
|
1338
|
-
return e.replace(
|
|
1339
|
-
var
|
|
1340
|
-
switch (
|
|
1363
|
+
return e.replace(pi, function(r) {
|
|
1364
|
+
var n = r.length;
|
|
1365
|
+
switch (r[0]) {
|
|
1341
1366
|
case "G":
|
|
1342
|
-
t.era =
|
|
1367
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1343
1368
|
break;
|
|
1344
1369
|
case "y":
|
|
1345
|
-
t.year =
|
|
1370
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
1346
1371
|
break;
|
|
1347
1372
|
case "Y":
|
|
1348
1373
|
case "u":
|
|
@@ -1354,30 +1379,30 @@ function fi(e) {
|
|
|
1354
1379
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1355
1380
|
case "M":
|
|
1356
1381
|
case "L":
|
|
1357
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1382
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
1358
1383
|
break;
|
|
1359
1384
|
case "w":
|
|
1360
1385
|
case "W":
|
|
1361
1386
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1362
1387
|
case "d":
|
|
1363
|
-
t.day = ["numeric", "2-digit"][
|
|
1388
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
1364
1389
|
break;
|
|
1365
1390
|
case "D":
|
|
1366
1391
|
case "F":
|
|
1367
1392
|
case "g":
|
|
1368
1393
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1369
1394
|
case "E":
|
|
1370
|
-
t.weekday =
|
|
1395
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1371
1396
|
break;
|
|
1372
1397
|
case "e":
|
|
1373
|
-
if (
|
|
1398
|
+
if (n < 4)
|
|
1374
1399
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1375
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1400
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1376
1401
|
break;
|
|
1377
1402
|
case "c":
|
|
1378
|
-
if (
|
|
1403
|
+
if (n < 4)
|
|
1379
1404
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1380
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1405
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1381
1406
|
break;
|
|
1382
1407
|
case "a":
|
|
1383
1408
|
t.hour12 = !0;
|
|
@@ -1386,32 +1411,32 @@ function fi(e) {
|
|
|
1386
1411
|
case "B":
|
|
1387
1412
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1388
1413
|
case "h":
|
|
1389
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1414
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1390
1415
|
break;
|
|
1391
1416
|
case "H":
|
|
1392
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1417
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1393
1418
|
break;
|
|
1394
1419
|
case "K":
|
|
1395
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1420
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1396
1421
|
break;
|
|
1397
1422
|
case "k":
|
|
1398
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1423
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1399
1424
|
break;
|
|
1400
1425
|
case "j":
|
|
1401
1426
|
case "J":
|
|
1402
1427
|
case "C":
|
|
1403
1428
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1404
1429
|
case "m":
|
|
1405
|
-
t.minute = ["numeric", "2-digit"][
|
|
1430
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
1406
1431
|
break;
|
|
1407
1432
|
case "s":
|
|
1408
|
-
t.second = ["numeric", "2-digit"][
|
|
1433
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
1409
1434
|
break;
|
|
1410
1435
|
case "S":
|
|
1411
1436
|
case "A":
|
|
1412
1437
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1413
1438
|
case "z":
|
|
1414
|
-
t.timeZoneName =
|
|
1439
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
1415
1440
|
break;
|
|
1416
1441
|
case "Z":
|
|
1417
1442
|
case "O":
|
|
@@ -1424,14 +1449,24 @@ function fi(e) {
|
|
|
1424
1449
|
return "";
|
|
1425
1450
|
}), t;
|
|
1426
1451
|
}
|
|
1427
|
-
var
|
|
1428
|
-
function
|
|
1452
|
+
var S = function() {
|
|
1453
|
+
return S = Object.assign || function(t) {
|
|
1454
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1455
|
+
r = arguments[n];
|
|
1456
|
+
for (var o in r)
|
|
1457
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1458
|
+
}
|
|
1459
|
+
return t;
|
|
1460
|
+
}, S.apply(this, arguments);
|
|
1461
|
+
};
|
|
1462
|
+
var gi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1463
|
+
function yi(e) {
|
|
1429
1464
|
if (e.length === 0)
|
|
1430
1465
|
throw new Error("Number skeleton cannot be empty");
|
|
1431
|
-
for (var t = e.split(
|
|
1466
|
+
for (var t = e.split(gi).filter(function(c) {
|
|
1432
1467
|
return c.length > 0;
|
|
1433
|
-
}),
|
|
1434
|
-
var o = i[
|
|
1468
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1469
|
+
var o = i[n], a = o.split("/");
|
|
1435
1470
|
if (a.length === 0)
|
|
1436
1471
|
throw new Error("Invalid number skeleton");
|
|
1437
1472
|
for (var s = a[0], h = a.slice(1), l = 0, u = h; l < u.length; l++) {
|
|
@@ -1439,21 +1474,21 @@ function mi(e) {
|
|
|
1439
1474
|
if (f.length === 0)
|
|
1440
1475
|
throw new Error("Invalid number skeleton");
|
|
1441
1476
|
}
|
|
1442
|
-
|
|
1477
|
+
r.push({ stem: s, options: h });
|
|
1443
1478
|
}
|
|
1444
|
-
return
|
|
1479
|
+
return r;
|
|
1445
1480
|
}
|
|
1446
|
-
function
|
|
1481
|
+
function vi(e) {
|
|
1447
1482
|
return e.replace(/^(.*?)-/, "");
|
|
1448
1483
|
}
|
|
1449
|
-
var
|
|
1450
|
-
function
|
|
1484
|
+
var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Er = /^(@+)?(\+|#+)?[rs]?$/g, _i = /(\*)(0+)|(#+)(0+)|(0+)/g, wr = /^(0+)$/;
|
|
1485
|
+
function Ct(e) {
|
|
1451
1486
|
var t = {};
|
|
1452
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1453
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
1487
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Er, function(r, n, i) {
|
|
1488
|
+
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)), "";
|
|
1454
1489
|
}), t;
|
|
1455
1490
|
}
|
|
1456
|
-
function
|
|
1491
|
+
function Sr(e) {
|
|
1457
1492
|
switch (e) {
|
|
1458
1493
|
case "sign-auto":
|
|
1459
1494
|
return {
|
|
@@ -1493,27 +1528,27 @@ function vn(e) {
|
|
|
1493
1528
|
};
|
|
1494
1529
|
}
|
|
1495
1530
|
}
|
|
1496
|
-
function
|
|
1531
|
+
function xi(e) {
|
|
1497
1532
|
var t;
|
|
1498
1533
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1499
1534
|
notation: "engineering"
|
|
1500
1535
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1501
1536
|
notation: "scientific"
|
|
1502
1537
|
}, e = e.slice(1)), t) {
|
|
1503
|
-
var
|
|
1504
|
-
if (
|
|
1538
|
+
var r = e.slice(0, 2);
|
|
1539
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !wr.test(e))
|
|
1505
1540
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1506
1541
|
t.minimumIntegerDigits = e.length;
|
|
1507
1542
|
}
|
|
1508
1543
|
return t;
|
|
1509
1544
|
}
|
|
1510
|
-
function
|
|
1511
|
-
var t = {},
|
|
1512
|
-
return
|
|
1545
|
+
function Gt(e) {
|
|
1546
|
+
var t = {}, r = Sr(e);
|
|
1547
|
+
return r || t;
|
|
1513
1548
|
}
|
|
1514
|
-
function
|
|
1515
|
-
for (var t = {},
|
|
1516
|
-
var i = r
|
|
1549
|
+
function Ei(e) {
|
|
1550
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1551
|
+
var i = n[r];
|
|
1517
1552
|
switch (i.stem) {
|
|
1518
1553
|
case "percent":
|
|
1519
1554
|
case "%":
|
|
@@ -1535,7 +1570,7 @@ function yi(e) {
|
|
|
1535
1570
|
continue;
|
|
1536
1571
|
case "measure-unit":
|
|
1537
1572
|
case "unit":
|
|
1538
|
-
t.style = "unit", t.unit =
|
|
1573
|
+
t.style = "unit", t.unit = vi(i.options[0]);
|
|
1539
1574
|
continue;
|
|
1540
1575
|
case "compact-short":
|
|
1541
1576
|
case "K":
|
|
@@ -1546,13 +1581,13 @@ function yi(e) {
|
|
|
1546
1581
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1547
1582
|
continue;
|
|
1548
1583
|
case "scientific":
|
|
1549
|
-
t =
|
|
1550
|
-
return
|
|
1584
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
|
1585
|
+
return S(S({}, h), Gt(l));
|
|
1551
1586
|
}, {}));
|
|
1552
1587
|
continue;
|
|
1553
1588
|
case "engineering":
|
|
1554
|
-
t =
|
|
1555
|
-
return
|
|
1589
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
|
1590
|
+
return S(S({}, h), Gt(l));
|
|
1556
1591
|
}, {}));
|
|
1557
1592
|
continue;
|
|
1558
1593
|
case "notation-simple":
|
|
@@ -1597,45 +1632,45 @@ function yi(e) {
|
|
|
1597
1632
|
case "integer-width":
|
|
1598
1633
|
if (i.options.length > 1)
|
|
1599
1634
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1600
|
-
i.options[0].replace(
|
|
1635
|
+
i.options[0].replace(_i, function(h, l, u, f, c, m) {
|
|
1601
1636
|
if (l)
|
|
1602
1637
|
t.minimumIntegerDigits = u.length;
|
|
1603
1638
|
else {
|
|
1604
1639
|
if (f && c)
|
|
1605
1640
|
throw new Error("We currently do not support maximum integer digits");
|
|
1606
|
-
if (
|
|
1641
|
+
if (m)
|
|
1607
1642
|
throw new Error("We currently do not support exact integer digits");
|
|
1608
1643
|
}
|
|
1609
1644
|
return "";
|
|
1610
1645
|
});
|
|
1611
1646
|
continue;
|
|
1612
1647
|
}
|
|
1613
|
-
if (
|
|
1648
|
+
if (wr.test(i.stem)) {
|
|
1614
1649
|
t.minimumIntegerDigits = i.stem.length;
|
|
1615
1650
|
continue;
|
|
1616
1651
|
}
|
|
1617
|
-
if (
|
|
1652
|
+
if (Mt.test(i.stem)) {
|
|
1618
1653
|
if (i.options.length > 1)
|
|
1619
1654
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1620
|
-
i.stem.replace(
|
|
1621
|
-
return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1655
|
+
i.stem.replace(Mt, function(h, l, u, f, c, m) {
|
|
1656
|
+
return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1622
1657
|
});
|
|
1623
1658
|
var o = i.options[0];
|
|
1624
|
-
o === "w" ? t =
|
|
1659
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), Ct(o)));
|
|
1625
1660
|
continue;
|
|
1626
1661
|
}
|
|
1627
|
-
if (
|
|
1628
|
-
t =
|
|
1662
|
+
if (Er.test(i.stem)) {
|
|
1663
|
+
t = S(S({}, t), Ct(i.stem));
|
|
1629
1664
|
continue;
|
|
1630
1665
|
}
|
|
1631
|
-
var a =
|
|
1632
|
-
a && (t =
|
|
1633
|
-
var s =
|
|
1634
|
-
s && (t =
|
|
1666
|
+
var a = Sr(i.stem);
|
|
1667
|
+
a && (t = S(S({}, t), a));
|
|
1668
|
+
var s = xi(i.stem);
|
|
1669
|
+
s && (t = S(S({}, t), s));
|
|
1635
1670
|
}
|
|
1636
1671
|
return t;
|
|
1637
1672
|
}
|
|
1638
|
-
var
|
|
1673
|
+
var xe = {
|
|
1639
1674
|
"001": [
|
|
1640
1675
|
"H",
|
|
1641
1676
|
"h"
|
|
@@ -3050,23 +3085,23 @@ var ve = {
|
|
|
3050
3085
|
"h"
|
|
3051
3086
|
]
|
|
3052
3087
|
};
|
|
3053
|
-
function
|
|
3054
|
-
for (var
|
|
3055
|
-
var i = e.charAt(
|
|
3088
|
+
function wi(e, t) {
|
|
3089
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
3090
|
+
var i = e.charAt(n);
|
|
3056
3091
|
if (i === "j") {
|
|
3057
|
-
for (var o = 0;
|
|
3058
|
-
o++,
|
|
3059
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l =
|
|
3092
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3093
|
+
o++, n++;
|
|
3094
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = Si(t);
|
|
3060
3095
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
3061
|
-
|
|
3096
|
+
r += h;
|
|
3062
3097
|
for (; a-- > 0; )
|
|
3063
|
-
|
|
3098
|
+
r = l + r;
|
|
3064
3099
|
} else
|
|
3065
|
-
i === "J" ?
|
|
3100
|
+
i === "J" ? r += "H" : r += i;
|
|
3066
3101
|
}
|
|
3067
|
-
return
|
|
3102
|
+
return r;
|
|
3068
3103
|
}
|
|
3069
|
-
function
|
|
3104
|
+
function Si(e) {
|
|
3070
3105
|
var t = e.hourCycle;
|
|
3071
3106
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3072
3107
|
e.hourCycles && // @ts-ignore
|
|
@@ -3083,73 +3118,73 @@ function xi(e) {
|
|
|
3083
3118
|
default:
|
|
3084
3119
|
throw new Error("Invalid hourCycle");
|
|
3085
3120
|
}
|
|
3086
|
-
var
|
|
3087
|
-
|
|
3088
|
-
var i =
|
|
3121
|
+
var r = e.language, n;
|
|
3122
|
+
r !== "root" && (n = e.maximize().region);
|
|
3123
|
+
var i = xe[n || ""] || xe[r || ""] || xe["".concat(r, "-001")] || xe["001"];
|
|
3089
3124
|
return i[0];
|
|
3090
3125
|
}
|
|
3091
|
-
var
|
|
3092
|
-
function
|
|
3126
|
+
var We, Ti = new RegExp("^".concat(xr.source, "*")), Hi = new RegExp("".concat(xr.source, "*$"));
|
|
3127
|
+
function v(e, t) {
|
|
3093
3128
|
return { start: e, end: t };
|
|
3094
3129
|
}
|
|
3095
|
-
var
|
|
3130
|
+
var Bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ai = !!String.fromCodePoint, Pi = !!Object.fromEntries, Oi = !!String.prototype.codePointAt, Ri = !!String.prototype.trimStart, Ii = !!String.prototype.trimEnd, Ni = !!Number.isSafeInteger, Li = Ni ? Number.isSafeInteger : function(e) {
|
|
3096
3131
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3097
|
-
},
|
|
3132
|
+
}, ot = !0;
|
|
3098
3133
|
try {
|
|
3099
|
-
var
|
|
3100
|
-
|
|
3134
|
+
var Mi = Hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3135
|
+
ot = ((We = Mi.exec("a")) === null || We === void 0 ? void 0 : We[0]) === "a";
|
|
3101
3136
|
} catch (e) {
|
|
3102
|
-
|
|
3137
|
+
ot = !1;
|
|
3103
3138
|
}
|
|
3104
|
-
var
|
|
3139
|
+
var Ut = Bi ? (
|
|
3105
3140
|
// Native
|
|
3106
|
-
function(t,
|
|
3107
|
-
return t.startsWith(
|
|
3141
|
+
function(t, r, n) {
|
|
3142
|
+
return t.startsWith(r, n);
|
|
3108
3143
|
}
|
|
3109
3144
|
) : (
|
|
3110
3145
|
// For IE11
|
|
3111
|
-
function(t,
|
|
3112
|
-
return t.slice(
|
|
3146
|
+
function(t, r, n) {
|
|
3147
|
+
return t.slice(n, n + r.length) === r;
|
|
3113
3148
|
}
|
|
3114
|
-
),
|
|
3149
|
+
), at = Ai ? String.fromCodePoint : (
|
|
3115
3150
|
// IE11
|
|
3116
3151
|
function() {
|
|
3117
|
-
for (var t = [],
|
|
3118
|
-
t[
|
|
3119
|
-
for (var
|
|
3152
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3153
|
+
t[r] = arguments[r];
|
|
3154
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
3120
3155
|
if (a = t[o++], a > 1114111)
|
|
3121
3156
|
throw RangeError(a + " is not a valid code point");
|
|
3122
|
-
|
|
3157
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3123
3158
|
}
|
|
3124
|
-
return
|
|
3159
|
+
return n;
|
|
3125
3160
|
}
|
|
3126
|
-
),
|
|
3161
|
+
), $t = (
|
|
3127
3162
|
// native
|
|
3128
|
-
|
|
3163
|
+
Pi ? Object.fromEntries : (
|
|
3129
3164
|
// Ponyfill
|
|
3130
3165
|
function(t) {
|
|
3131
|
-
for (var
|
|
3132
|
-
var o = i[
|
|
3133
|
-
|
|
3166
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3167
|
+
var o = i[n], a = o[0], s = o[1];
|
|
3168
|
+
r[a] = s;
|
|
3134
3169
|
}
|
|
3135
|
-
return
|
|
3170
|
+
return r;
|
|
3136
3171
|
}
|
|
3137
3172
|
)
|
|
3138
|
-
),
|
|
3173
|
+
), Tr = Oi ? (
|
|
3139
3174
|
// Native
|
|
3140
|
-
function(t,
|
|
3141
|
-
return t.codePointAt(
|
|
3175
|
+
function(t, r) {
|
|
3176
|
+
return t.codePointAt(r);
|
|
3142
3177
|
}
|
|
3143
3178
|
) : (
|
|
3144
3179
|
// IE 11
|
|
3145
|
-
function(t,
|
|
3146
|
-
var
|
|
3147
|
-
if (!(
|
|
3148
|
-
var i = t.charCodeAt(
|
|
3149
|
-
return i < 55296 || i > 56319 ||
|
|
3180
|
+
function(t, r) {
|
|
3181
|
+
var n = t.length;
|
|
3182
|
+
if (!(r < 0 || r >= n)) {
|
|
3183
|
+
var i = t.charCodeAt(r), o;
|
|
3184
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3150
3185
|
}
|
|
3151
3186
|
}
|
|
3152
|
-
),
|
|
3187
|
+
), Ci = Ri ? (
|
|
3153
3188
|
// Native
|
|
3154
3189
|
function(t) {
|
|
3155
3190
|
return t.trimStart();
|
|
@@ -3157,9 +3192,9 @@ var Mt = wi ? (
|
|
|
3157
3192
|
) : (
|
|
3158
3193
|
// Ponyfill
|
|
3159
3194
|
function(t) {
|
|
3160
|
-
return t.replace(
|
|
3195
|
+
return t.replace(Ti, "");
|
|
3161
3196
|
}
|
|
3162
|
-
),
|
|
3197
|
+
), Gi = Ii ? (
|
|
3163
3198
|
// Native
|
|
3164
3199
|
function(t) {
|
|
3165
3200
|
return t.trimEnd();
|
|
@@ -3167,69 +3202,69 @@ var Mt = wi ? (
|
|
|
3167
3202
|
) : (
|
|
3168
3203
|
// Ponyfill
|
|
3169
3204
|
function(t) {
|
|
3170
|
-
return t.replace(
|
|
3205
|
+
return t.replace(Hi, "");
|
|
3171
3206
|
}
|
|
3172
3207
|
);
|
|
3173
|
-
function
|
|
3208
|
+
function Hr(e, t) {
|
|
3174
3209
|
return new RegExp(e, t);
|
|
3175
3210
|
}
|
|
3176
|
-
var
|
|
3177
|
-
if (
|
|
3178
|
-
var
|
|
3179
|
-
|
|
3180
|
-
var
|
|
3181
|
-
|
|
3182
|
-
var i =
|
|
3183
|
-
return (
|
|
3211
|
+
var st;
|
|
3212
|
+
if (ot) {
|
|
3213
|
+
var Ft = Hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3214
|
+
st = function(t, r) {
|
|
3215
|
+
var n;
|
|
3216
|
+
Ft.lastIndex = r;
|
|
3217
|
+
var i = Ft.exec(t);
|
|
3218
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3184
3219
|
};
|
|
3185
3220
|
} else
|
|
3186
|
-
|
|
3187
|
-
for (var
|
|
3188
|
-
var i =
|
|
3189
|
-
if (i === void 0 ||
|
|
3221
|
+
st = function(t, r) {
|
|
3222
|
+
for (var n = []; ; ) {
|
|
3223
|
+
var i = Tr(t, r);
|
|
3224
|
+
if (i === void 0 || Br(i) || Di(i))
|
|
3190
3225
|
break;
|
|
3191
|
-
|
|
3226
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3192
3227
|
}
|
|
3193
|
-
return
|
|
3228
|
+
return at.apply(void 0, n);
|
|
3194
3229
|
};
|
|
3195
|
-
var
|
|
3230
|
+
var Ui = (
|
|
3196
3231
|
/** @class */
|
|
3197
3232
|
function() {
|
|
3198
|
-
function e(t,
|
|
3199
|
-
|
|
3233
|
+
function e(t, r) {
|
|
3234
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
3200
3235
|
}
|
|
3201
3236
|
return e.prototype.parse = function() {
|
|
3202
3237
|
if (this.offset() !== 0)
|
|
3203
3238
|
throw Error("parser can only be used once");
|
|
3204
3239
|
return this.parseMessage(0, "", !1);
|
|
3205
|
-
}, e.prototype.parseMessage = function(t,
|
|
3240
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
3206
3241
|
for (var i = []; !this.isEOF(); ) {
|
|
3207
3242
|
var o = this.char();
|
|
3208
3243
|
if (o === 123) {
|
|
3209
|
-
var a = this.parseArgument(t,
|
|
3244
|
+
var a = this.parseArgument(t, n);
|
|
3210
3245
|
if (a.err)
|
|
3211
3246
|
return a;
|
|
3212
3247
|
i.push(a.val);
|
|
3213
3248
|
} else {
|
|
3214
3249
|
if (o === 125 && t > 0)
|
|
3215
3250
|
break;
|
|
3216
|
-
if (o === 35 && (
|
|
3251
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3217
3252
|
var s = this.clonePosition();
|
|
3218
3253
|
this.bump(), i.push({
|
|
3219
|
-
type:
|
|
3220
|
-
location:
|
|
3254
|
+
type: E.pound,
|
|
3255
|
+
location: v(s, this.clonePosition())
|
|
3221
3256
|
});
|
|
3222
3257
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3223
|
-
if (
|
|
3258
|
+
if (n)
|
|
3224
3259
|
break;
|
|
3225
|
-
return this.error(y.UNMATCHED_CLOSING_TAG,
|
|
3226
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3227
|
-
var a = this.parseTag(t,
|
|
3260
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3261
|
+
} else if (o === 60 && !this.ignoreTag && ut(this.peek() || 0)) {
|
|
3262
|
+
var a = this.parseTag(t, r);
|
|
3228
3263
|
if (a.err)
|
|
3229
3264
|
return a;
|
|
3230
3265
|
i.push(a.val);
|
|
3231
3266
|
} else {
|
|
3232
|
-
var a = this.parseLiteral(t,
|
|
3267
|
+
var a = this.parseLiteral(t, r);
|
|
3233
3268
|
if (a.err)
|
|
3234
3269
|
return a;
|
|
3235
3270
|
i.push(a.val);
|
|
@@ -3237,54 +3272,54 @@ var Mi = (
|
|
|
3237
3272
|
}
|
|
3238
3273
|
}
|
|
3239
3274
|
return { val: i, err: null };
|
|
3240
|
-
}, e.prototype.parseTag = function(t,
|
|
3241
|
-
var
|
|
3275
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
3276
|
+
var n = this.clonePosition();
|
|
3242
3277
|
this.bump();
|
|
3243
3278
|
var i = this.parseTagName();
|
|
3244
3279
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3245
3280
|
return {
|
|
3246
3281
|
val: {
|
|
3247
|
-
type:
|
|
3282
|
+
type: E.literal,
|
|
3248
3283
|
value: "<".concat(i, "/>"),
|
|
3249
|
-
location:
|
|
3284
|
+
location: v(n, this.clonePosition())
|
|
3250
3285
|
},
|
|
3251
3286
|
err: null
|
|
3252
3287
|
};
|
|
3253
3288
|
if (this.bumpIf(">")) {
|
|
3254
|
-
var o = this.parseMessage(t + 1,
|
|
3289
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
3255
3290
|
if (o.err)
|
|
3256
3291
|
return o;
|
|
3257
3292
|
var a = o.val, s = this.clonePosition();
|
|
3258
3293
|
if (this.bumpIf("</")) {
|
|
3259
|
-
if (this.isEOF() || !
|
|
3260
|
-
return this.error(y.INVALID_TAG,
|
|
3294
|
+
if (this.isEOF() || !ut(this.char()))
|
|
3295
|
+
return this.error(y.INVALID_TAG, v(s, this.clonePosition()));
|
|
3261
3296
|
var h = this.clonePosition(), l = this.parseTagName();
|
|
3262
|
-
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG,
|
|
3297
|
+
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3263
3298
|
val: {
|
|
3264
|
-
type:
|
|
3299
|
+
type: E.tag,
|
|
3265
3300
|
value: i,
|
|
3266
3301
|
children: a,
|
|
3267
|
-
location:
|
|
3302
|
+
location: v(n, this.clonePosition())
|
|
3268
3303
|
},
|
|
3269
3304
|
err: null
|
|
3270
|
-
} : this.error(y.INVALID_TAG,
|
|
3305
|
+
} : this.error(y.INVALID_TAG, v(s, this.clonePosition())));
|
|
3271
3306
|
} else
|
|
3272
|
-
return this.error(y.UNCLOSED_TAG,
|
|
3307
|
+
return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3273
3308
|
} else
|
|
3274
|
-
return this.error(y.INVALID_TAG,
|
|
3309
|
+
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
|
3275
3310
|
}, e.prototype.parseTagName = function() {
|
|
3276
3311
|
var t = this.offset();
|
|
3277
|
-
for (this.bump(); !this.isEOF() &&
|
|
3312
|
+
for (this.bump(); !this.isEOF() && Fi(this.char()); )
|
|
3278
3313
|
this.bump();
|
|
3279
3314
|
return this.message.slice(t, this.offset());
|
|
3280
|
-
}, e.prototype.parseLiteral = function(t,
|
|
3281
|
-
for (var
|
|
3282
|
-
var o = this.tryParseQuote(
|
|
3315
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
3316
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3317
|
+
var o = this.tryParseQuote(r);
|
|
3283
3318
|
if (o) {
|
|
3284
3319
|
i += o;
|
|
3285
3320
|
continue;
|
|
3286
3321
|
}
|
|
3287
|
-
var a = this.tryParseUnquoted(t,
|
|
3322
|
+
var a = this.tryParseUnquoted(t, r);
|
|
3288
3323
|
if (a) {
|
|
3289
3324
|
i += a;
|
|
3290
3325
|
continue;
|
|
@@ -3296,14 +3331,14 @@ var Mi = (
|
|
|
3296
3331
|
}
|
|
3297
3332
|
break;
|
|
3298
3333
|
}
|
|
3299
|
-
var h =
|
|
3334
|
+
var h = v(n, this.clonePosition());
|
|
3300
3335
|
return {
|
|
3301
|
-
val: { type:
|
|
3336
|
+
val: { type: E.literal, value: i, location: h },
|
|
3302
3337
|
err: null
|
|
3303
3338
|
};
|
|
3304
3339
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3305
3340
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3306
|
-
|
|
3341
|
+
!$i(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3307
3342
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3308
3343
|
if (this.isEOF() || this.char() !== 39)
|
|
3309
3344
|
return null;
|
|
@@ -3323,63 +3358,63 @@ var Mi = (
|
|
|
3323
3358
|
return null;
|
|
3324
3359
|
}
|
|
3325
3360
|
this.bump();
|
|
3326
|
-
var
|
|
3361
|
+
var r = [this.char()];
|
|
3327
3362
|
for (this.bump(); !this.isEOF(); ) {
|
|
3328
|
-
var
|
|
3329
|
-
if (
|
|
3363
|
+
var n = this.char();
|
|
3364
|
+
if (n === 39)
|
|
3330
3365
|
if (this.peek() === 39)
|
|
3331
|
-
|
|
3366
|
+
r.push(39), this.bump();
|
|
3332
3367
|
else {
|
|
3333
3368
|
this.bump();
|
|
3334
3369
|
break;
|
|
3335
3370
|
}
|
|
3336
3371
|
else
|
|
3337
|
-
|
|
3372
|
+
r.push(n);
|
|
3338
3373
|
this.bump();
|
|
3339
3374
|
}
|
|
3340
|
-
return
|
|
3341
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
3375
|
+
return at.apply(void 0, r);
|
|
3376
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3342
3377
|
if (this.isEOF())
|
|
3343
3378
|
return null;
|
|
3344
|
-
var
|
|
3345
|
-
return
|
|
3346
|
-
}, e.prototype.parseArgument = function(t,
|
|
3347
|
-
var
|
|
3379
|
+
var n = this.char();
|
|
3380
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), at(n));
|
|
3381
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
3382
|
+
var n = this.clonePosition();
|
|
3348
3383
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3349
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3384
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3350
3385
|
if (this.char() === 125)
|
|
3351
|
-
return this.bump(), this.error(y.EMPTY_ARGUMENT,
|
|
3386
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3352
3387
|
var i = this.parseIdentifierIfPossible().value;
|
|
3353
3388
|
if (!i)
|
|
3354
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
3389
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3355
3390
|
if (this.bumpSpace(), this.isEOF())
|
|
3356
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3391
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3357
3392
|
switch (this.char()) {
|
|
3358
3393
|
case 125:
|
|
3359
3394
|
return this.bump(), {
|
|
3360
3395
|
val: {
|
|
3361
|
-
type:
|
|
3396
|
+
type: E.argument,
|
|
3362
3397
|
// value does not include the opening and closing braces.
|
|
3363
3398
|
value: i,
|
|
3364
|
-
location:
|
|
3399
|
+
location: v(n, this.clonePosition())
|
|
3365
3400
|
},
|
|
3366
3401
|
err: null
|
|
3367
3402
|
};
|
|
3368
3403
|
case 44:
|
|
3369
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3404
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3370
3405
|
default:
|
|
3371
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
3406
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3372
3407
|
}
|
|
3373
3408
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3374
|
-
var t = this.clonePosition(),
|
|
3409
|
+
var t = this.clonePosition(), r = this.offset(), n = st(this.message, r), i = r + n.length;
|
|
3375
3410
|
this.bumpTo(i);
|
|
3376
|
-
var o = this.clonePosition(), a =
|
|
3377
|
-
return { value:
|
|
3378
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
3411
|
+
var o = this.clonePosition(), a = v(t, o);
|
|
3412
|
+
return { value: n, location: a };
|
|
3413
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3379
3414
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3380
3415
|
switch (s) {
|
|
3381
3416
|
case "":
|
|
3382
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE,
|
|
3417
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, v(a, h));
|
|
3383
3418
|
case "number":
|
|
3384
3419
|
case "date":
|
|
3385
3420
|
case "time": {
|
|
@@ -3390,45 +3425,45 @@ var Mi = (
|
|
|
3390
3425
|
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3391
3426
|
if (f.err)
|
|
3392
3427
|
return f;
|
|
3393
|
-
var c =
|
|
3428
|
+
var c = Gi(f.val);
|
|
3394
3429
|
if (c.length === 0)
|
|
3395
|
-
return this.error(y.EXPECT_ARGUMENT_STYLE,
|
|
3396
|
-
var
|
|
3397
|
-
l = { style: c, styleLocation:
|
|
3430
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3431
|
+
var m = v(u, this.clonePosition());
|
|
3432
|
+
l = { style: c, styleLocation: m };
|
|
3398
3433
|
}
|
|
3399
|
-
var
|
|
3400
|
-
if (
|
|
3401
|
-
return
|
|
3402
|
-
var p =
|
|
3403
|
-
if (l &&
|
|
3404
|
-
var A =
|
|
3434
|
+
var d = this.tryParseArgumentClose(i);
|
|
3435
|
+
if (d.err)
|
|
3436
|
+
return d;
|
|
3437
|
+
var p = v(i, this.clonePosition());
|
|
3438
|
+
if (l && Ut(l == null ? void 0 : l.style, "::", 0)) {
|
|
3439
|
+
var A = Ci(l.style.slice(2));
|
|
3405
3440
|
if (s === "number") {
|
|
3406
3441
|
var f = this.parseNumberSkeletonFromString(A, l.styleLocation);
|
|
3407
3442
|
return f.err ? f : {
|
|
3408
|
-
val: { type:
|
|
3443
|
+
val: { type: E.number, value: n, location: p, style: f.val },
|
|
3409
3444
|
err: null
|
|
3410
3445
|
};
|
|
3411
3446
|
} else {
|
|
3412
3447
|
if (A.length === 0)
|
|
3413
3448
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, p);
|
|
3414
3449
|
var H = A;
|
|
3415
|
-
this.locale && (H =
|
|
3450
|
+
this.locale && (H = wi(A, this.locale));
|
|
3416
3451
|
var c = {
|
|
3417
3452
|
type: re.dateTime,
|
|
3418
3453
|
pattern: H,
|
|
3419
3454
|
location: l.styleLocation,
|
|
3420
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3421
|
-
}, T = s === "date" ?
|
|
3455
|
+
parsedOptions: this.shouldParseSkeletons ? bi(H) : {}
|
|
3456
|
+
}, T = s === "date" ? E.date : E.time;
|
|
3422
3457
|
return {
|
|
3423
|
-
val: { type: T, value:
|
|
3458
|
+
val: { type: T, value: n, location: p, style: c },
|
|
3424
3459
|
err: null
|
|
3425
3460
|
};
|
|
3426
3461
|
}
|
|
3427
3462
|
}
|
|
3428
3463
|
return {
|
|
3429
3464
|
val: {
|
|
3430
|
-
type: s === "number" ?
|
|
3431
|
-
value:
|
|
3465
|
+
type: s === "number" ? E.number : s === "date" ? E.date : E.time,
|
|
3466
|
+
value: n,
|
|
3432
3467
|
location: p,
|
|
3433
3468
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
3434
3469
|
},
|
|
@@ -3440,39 +3475,39 @@ var Mi = (
|
|
|
3440
3475
|
case "select": {
|
|
3441
3476
|
var B = this.clonePosition();
|
|
3442
3477
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3443
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3478
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(B, Pe({}, B)));
|
|
3444
3479
|
this.bumpSpace();
|
|
3445
|
-
var
|
|
3446
|
-
if (s !== "select" &&
|
|
3480
|
+
var L = this.parseIdentifierIfPossible(), M = 0;
|
|
3481
|
+
if (s !== "select" && L.value === "offset") {
|
|
3447
3482
|
if (!this.bumpIf(":"))
|
|
3448
|
-
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3483
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3449
3484
|
this.bumpSpace();
|
|
3450
3485
|
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3451
3486
|
if (f.err)
|
|
3452
3487
|
return f;
|
|
3453
|
-
this.bumpSpace(),
|
|
3488
|
+
this.bumpSpace(), L = this.parseIdentifierIfPossible(), M = f.val;
|
|
3454
3489
|
}
|
|
3455
|
-
var
|
|
3456
|
-
if (
|
|
3457
|
-
return
|
|
3458
|
-
var
|
|
3459
|
-
if (
|
|
3460
|
-
return
|
|
3461
|
-
var be =
|
|
3490
|
+
var U = this.tryParsePluralOrSelectOptions(t, s, r, L);
|
|
3491
|
+
if (U.err)
|
|
3492
|
+
return U;
|
|
3493
|
+
var d = this.tryParseArgumentClose(i);
|
|
3494
|
+
if (d.err)
|
|
3495
|
+
return d;
|
|
3496
|
+
var be = v(i, this.clonePosition());
|
|
3462
3497
|
return s === "select" ? {
|
|
3463
3498
|
val: {
|
|
3464
|
-
type:
|
|
3465
|
-
value:
|
|
3466
|
-
options:
|
|
3499
|
+
type: E.select,
|
|
3500
|
+
value: n,
|
|
3501
|
+
options: $t(U.val),
|
|
3467
3502
|
location: be
|
|
3468
3503
|
},
|
|
3469
3504
|
err: null
|
|
3470
3505
|
} : {
|
|
3471
3506
|
val: {
|
|
3472
|
-
type:
|
|
3473
|
-
value:
|
|
3474
|
-
options:
|
|
3475
|
-
offset:
|
|
3507
|
+
type: E.plural,
|
|
3508
|
+
value: n,
|
|
3509
|
+
options: $t(U.val),
|
|
3510
|
+
offset: M,
|
|
3476
3511
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3477
3512
|
location: be
|
|
3478
3513
|
},
|
|
@@ -3480,19 +3515,19 @@ var Mi = (
|
|
|
3480
3515
|
};
|
|
3481
3516
|
}
|
|
3482
3517
|
default:
|
|
3483
|
-
return this.error(y.INVALID_ARGUMENT_TYPE,
|
|
3518
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, v(a, h));
|
|
3484
3519
|
}
|
|
3485
3520
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3486
|
-
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3521
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3487
3522
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3488
|
-
for (var t = 0,
|
|
3489
|
-
var
|
|
3490
|
-
switch (
|
|
3523
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3524
|
+
var n = this.char();
|
|
3525
|
+
switch (n) {
|
|
3491
3526
|
case 39: {
|
|
3492
3527
|
this.bump();
|
|
3493
3528
|
var i = this.clonePosition();
|
|
3494
3529
|
if (!this.bumpUntil("'"))
|
|
3495
|
-
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3530
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3496
3531
|
this.bump();
|
|
3497
3532
|
break;
|
|
3498
3533
|
}
|
|
@@ -3505,7 +3540,7 @@ var Mi = (
|
|
|
3505
3540
|
t -= 1;
|
|
3506
3541
|
else
|
|
3507
3542
|
return {
|
|
3508
|
-
val: this.message.slice(
|
|
3543
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3509
3544
|
err: null
|
|
3510
3545
|
};
|
|
3511
3546
|
break;
|
|
@@ -3516,61 +3551,61 @@ var Mi = (
|
|
|
3516
3551
|
}
|
|
3517
3552
|
}
|
|
3518
3553
|
return {
|
|
3519
|
-
val: this.message.slice(
|
|
3554
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3520
3555
|
err: null
|
|
3521
3556
|
};
|
|
3522
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3523
|
-
var
|
|
3557
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3558
|
+
var n = [];
|
|
3524
3559
|
try {
|
|
3525
|
-
|
|
3560
|
+
n = yi(t);
|
|
3526
3561
|
} catch (i) {
|
|
3527
|
-
return this.error(y.INVALID_NUMBER_SKELETON,
|
|
3562
|
+
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3528
3563
|
}
|
|
3529
3564
|
return {
|
|
3530
3565
|
val: {
|
|
3531
3566
|
type: re.number,
|
|
3532
|
-
tokens:
|
|
3533
|
-
location:
|
|
3534
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3567
|
+
tokens: n,
|
|
3568
|
+
location: r,
|
|
3569
|
+
parsedOptions: this.shouldParseSkeletons ? Ei(n) : {}
|
|
3535
3570
|
},
|
|
3536
3571
|
err: null
|
|
3537
3572
|
};
|
|
3538
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3573
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3539
3574
|
for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
|
3540
3575
|
if (l.length === 0) {
|
|
3541
3576
|
var f = this.clonePosition();
|
|
3542
|
-
if (
|
|
3577
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
3543
3578
|
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3544
3579
|
if (c.err)
|
|
3545
3580
|
return c;
|
|
3546
|
-
u =
|
|
3581
|
+
u = v(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
|
3547
3582
|
} else
|
|
3548
3583
|
break;
|
|
3549
3584
|
}
|
|
3550
3585
|
if (h.has(l))
|
|
3551
|
-
return this.error(
|
|
3586
|
+
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
3552
3587
|
l === "other" && (a = !0), this.bumpSpace();
|
|
3553
|
-
var
|
|
3588
|
+
var m = this.clonePosition();
|
|
3554
3589
|
if (!this.bumpIf("{"))
|
|
3555
|
-
return this.error(
|
|
3556
|
-
var
|
|
3557
|
-
if (
|
|
3558
|
-
return
|
|
3559
|
-
var p = this.tryParseArgumentClose(
|
|
3590
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3591
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3592
|
+
if (d.err)
|
|
3593
|
+
return d;
|
|
3594
|
+
var p = this.tryParseArgumentClose(m);
|
|
3560
3595
|
if (p.err)
|
|
3561
3596
|
return p;
|
|
3562
3597
|
s.push([
|
|
3563
3598
|
l,
|
|
3564
3599
|
{
|
|
3565
|
-
value:
|
|
3566
|
-
location:
|
|
3600
|
+
value: d.val,
|
|
3601
|
+
location: v(m, this.clonePosition())
|
|
3567
3602
|
}
|
|
3568
3603
|
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
|
3569
3604
|
}
|
|
3570
|
-
return s.length === 0 ? this.error(
|
|
3571
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3572
|
-
var
|
|
3573
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3605
|
+
return s.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3606
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3607
|
+
var n = 1, i = this.clonePosition();
|
|
3608
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3574
3609
|
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3575
3610
|
var s = this.char();
|
|
3576
3611
|
if (s >= 48 && s <= 57)
|
|
@@ -3578,8 +3613,8 @@ var Mi = (
|
|
|
3578
3613
|
else
|
|
3579
3614
|
break;
|
|
3580
3615
|
}
|
|
3581
|
-
var h =
|
|
3582
|
-
return o ? (a *=
|
|
3616
|
+
var h = v(i, this.clonePosition());
|
|
3617
|
+
return o ? (a *= n, Li(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3583
3618
|
}, e.prototype.offset = function() {
|
|
3584
3619
|
return this.position.offset;
|
|
3585
3620
|
}, e.prototype.isEOF = function() {
|
|
@@ -3594,17 +3629,17 @@ var Mi = (
|
|
|
3594
3629
|
var t = this.position.offset;
|
|
3595
3630
|
if (t >= this.message.length)
|
|
3596
3631
|
throw Error("out of bound");
|
|
3597
|
-
var
|
|
3598
|
-
if (
|
|
3632
|
+
var r = Tr(this.message, t);
|
|
3633
|
+
if (r === void 0)
|
|
3599
3634
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3600
|
-
return
|
|
3601
|
-
}, e.prototype.error = function(t,
|
|
3635
|
+
return r;
|
|
3636
|
+
}, e.prototype.error = function(t, r) {
|
|
3602
3637
|
return {
|
|
3603
3638
|
val: null,
|
|
3604
3639
|
err: {
|
|
3605
3640
|
kind: t,
|
|
3606
3641
|
message: this.message,
|
|
3607
|
-
location:
|
|
3642
|
+
location: r
|
|
3608
3643
|
}
|
|
3609
3644
|
};
|
|
3610
3645
|
}, e.prototype.bump = function() {
|
|
@@ -3613,129 +3648,129 @@ var Mi = (
|
|
|
3613
3648
|
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);
|
|
3614
3649
|
}
|
|
3615
3650
|
}, e.prototype.bumpIf = function(t) {
|
|
3616
|
-
if (
|
|
3617
|
-
for (var
|
|
3651
|
+
if (Ut(this.message, t, this.offset())) {
|
|
3652
|
+
for (var r = 0; r < t.length; r++)
|
|
3618
3653
|
this.bump();
|
|
3619
3654
|
return !0;
|
|
3620
3655
|
}
|
|
3621
3656
|
return !1;
|
|
3622
3657
|
}, e.prototype.bumpUntil = function(t) {
|
|
3623
|
-
var
|
|
3624
|
-
return
|
|
3658
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3659
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3625
3660
|
}, e.prototype.bumpTo = function(t) {
|
|
3626
3661
|
if (this.offset() > t)
|
|
3627
3662
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3628
3663
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3629
|
-
var
|
|
3630
|
-
if (
|
|
3664
|
+
var r = this.offset();
|
|
3665
|
+
if (r === t)
|
|
3631
3666
|
break;
|
|
3632
|
-
if (
|
|
3667
|
+
if (r > t)
|
|
3633
3668
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3634
3669
|
if (this.bump(), this.isEOF())
|
|
3635
3670
|
break;
|
|
3636
3671
|
}
|
|
3637
3672
|
}, e.prototype.bumpSpace = function() {
|
|
3638
|
-
for (; !this.isEOF() &&
|
|
3673
|
+
for (; !this.isEOF() && Br(this.char()); )
|
|
3639
3674
|
this.bump();
|
|
3640
3675
|
}, e.prototype.peek = function() {
|
|
3641
3676
|
if (this.isEOF())
|
|
3642
3677
|
return null;
|
|
3643
|
-
var t = this.char(),
|
|
3644
|
-
return
|
|
3678
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3679
|
+
return n != null ? n : null;
|
|
3645
3680
|
}, e;
|
|
3646
3681
|
}()
|
|
3647
3682
|
);
|
|
3648
|
-
function
|
|
3683
|
+
function ut(e) {
|
|
3649
3684
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3650
3685
|
}
|
|
3651
|
-
function
|
|
3652
|
-
return
|
|
3686
|
+
function $i(e) {
|
|
3687
|
+
return ut(e) || e === 47;
|
|
3653
3688
|
}
|
|
3654
|
-
function
|
|
3689
|
+
function Fi(e) {
|
|
3655
3690
|
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;
|
|
3656
3691
|
}
|
|
3657
|
-
function
|
|
3692
|
+
function Br(e) {
|
|
3658
3693
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3659
3694
|
}
|
|
3660
|
-
function
|
|
3695
|
+
function Di(e) {
|
|
3661
3696
|
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;
|
|
3662
3697
|
}
|
|
3663
|
-
function
|
|
3698
|
+
function lt(e) {
|
|
3664
3699
|
e.forEach(function(t) {
|
|
3665
|
-
if (delete t.location,
|
|
3666
|
-
for (var
|
|
3667
|
-
delete t.options[
|
|
3700
|
+
if (delete t.location, gr(t) || yr(t))
|
|
3701
|
+
for (var r in t.options)
|
|
3702
|
+
delete t.options[r].location, lt(t.options[r].value);
|
|
3668
3703
|
else
|
|
3669
|
-
|
|
3704
|
+
dr(t) && _r(t.style) || (pr(t) || br(t)) && it(t.style) ? delete t.style.location : vr(t) && lt(t.children);
|
|
3670
3705
|
});
|
|
3671
3706
|
}
|
|
3672
|
-
function
|
|
3673
|
-
t === void 0 && (t = {}), t =
|
|
3674
|
-
var
|
|
3675
|
-
if (
|
|
3676
|
-
var
|
|
3677
|
-
throw
|
|
3707
|
+
function ji(e, t) {
|
|
3708
|
+
t === void 0 && (t = {}), t = Pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3709
|
+
var r = new Ui(e, t).parse();
|
|
3710
|
+
if (r.err) {
|
|
3711
|
+
var n = SyntaxError(y[r.err.kind]);
|
|
3712
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3678
3713
|
}
|
|
3679
|
-
return t != null && t.captureLocation ||
|
|
3714
|
+
return t != null && t.captureLocation || lt(r.val), r.val;
|
|
3680
3715
|
}
|
|
3681
|
-
var
|
|
3716
|
+
var ne;
|
|
3682
3717
|
(function(e) {
|
|
3683
3718
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3684
|
-
})(
|
|
3685
|
-
var
|
|
3719
|
+
})(ne || (ne = {}));
|
|
3720
|
+
var Me = (
|
|
3686
3721
|
/** @class */
|
|
3687
3722
|
function(e) {
|
|
3688
|
-
|
|
3689
|
-
function t(
|
|
3690
|
-
var o = e.call(this,
|
|
3691
|
-
return o.code =
|
|
3723
|
+
Le(t, e);
|
|
3724
|
+
function t(r, n, i) {
|
|
3725
|
+
var o = e.call(this, r) || this;
|
|
3726
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3692
3727
|
}
|
|
3693
3728
|
return t.prototype.toString = function() {
|
|
3694
3729
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3695
3730
|
}, t;
|
|
3696
3731
|
}(Error)
|
|
3697
|
-
),
|
|
3732
|
+
), Dt = (
|
|
3698
3733
|
/** @class */
|
|
3699
3734
|
function(e) {
|
|
3700
|
-
|
|
3701
|
-
function t(
|
|
3702
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3735
|
+
Le(t, e);
|
|
3736
|
+
function t(r, n, i, o) {
|
|
3737
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
|
|
3703
3738
|
}
|
|
3704
3739
|
return t;
|
|
3705
|
-
}(
|
|
3706
|
-
),
|
|
3740
|
+
}(Me)
|
|
3741
|
+
), ki = (
|
|
3707
3742
|
/** @class */
|
|
3708
3743
|
function(e) {
|
|
3709
|
-
|
|
3710
|
-
function t(
|
|
3711
|
-
return e.call(this, 'Value for "'.concat(
|
|
3744
|
+
Le(t, e);
|
|
3745
|
+
function t(r, n, i) {
|
|
3746
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
|
|
3712
3747
|
}
|
|
3713
3748
|
return t;
|
|
3714
|
-
}(
|
|
3715
|
-
),
|
|
3749
|
+
}(Me)
|
|
3750
|
+
), Vi = (
|
|
3716
3751
|
/** @class */
|
|
3717
3752
|
function(e) {
|
|
3718
|
-
|
|
3719
|
-
function t(
|
|
3720
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3753
|
+
Le(t, e);
|
|
3754
|
+
function t(r, n) {
|
|
3755
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
|
|
3721
3756
|
}
|
|
3722
3757
|
return t;
|
|
3723
|
-
}(
|
|
3758
|
+
}(Me)
|
|
3724
3759
|
), P;
|
|
3725
3760
|
(function(e) {
|
|
3726
3761
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3727
3762
|
})(P || (P = {}));
|
|
3728
|
-
function
|
|
3729
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3730
|
-
var
|
|
3731
|
-
return !
|
|
3763
|
+
function Wi(e) {
|
|
3764
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3765
|
+
var n = t[t.length - 1];
|
|
3766
|
+
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
|
3732
3767
|
}, []);
|
|
3733
3768
|
}
|
|
3734
|
-
function
|
|
3769
|
+
function Xi(e) {
|
|
3735
3770
|
return typeof e == "function";
|
|
3736
3771
|
}
|
|
3737
|
-
function Te(e, t,
|
|
3738
|
-
if (e.length === 1 &&
|
|
3772
|
+
function Te(e, t, r, n, i, o, a) {
|
|
3773
|
+
if (e.length === 1 && Lt(e[0]))
|
|
3739
3774
|
return [
|
|
3740
3775
|
{
|
|
3741
3776
|
type: P.literal,
|
|
@@ -3744,155 +3779,155 @@ function Te(e, t, n, r, i, o, a) {
|
|
|
3744
3779
|
];
|
|
3745
3780
|
for (var s = [], h = 0, l = e; h < l.length; h++) {
|
|
3746
3781
|
var u = l[h];
|
|
3747
|
-
if (
|
|
3782
|
+
if (Lt(u)) {
|
|
3748
3783
|
s.push({
|
|
3749
3784
|
type: P.literal,
|
|
3750
3785
|
value: u.value
|
|
3751
3786
|
});
|
|
3752
3787
|
continue;
|
|
3753
3788
|
}
|
|
3754
|
-
if (
|
|
3789
|
+
if (di(u)) {
|
|
3755
3790
|
typeof o == "number" && s.push({
|
|
3756
3791
|
type: P.literal,
|
|
3757
|
-
value:
|
|
3792
|
+
value: r.getNumberFormat(t).format(o)
|
|
3758
3793
|
});
|
|
3759
3794
|
continue;
|
|
3760
3795
|
}
|
|
3761
3796
|
var f = u.value;
|
|
3762
3797
|
if (!(i && f in i))
|
|
3763
|
-
throw new
|
|
3798
|
+
throw new Vi(f, a);
|
|
3764
3799
|
var c = i[f];
|
|
3765
|
-
if (
|
|
3800
|
+
if (mi(u)) {
|
|
3766
3801
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3767
3802
|
type: typeof c == "string" ? P.literal : P.object,
|
|
3768
3803
|
value: c
|
|
3769
3804
|
});
|
|
3770
3805
|
continue;
|
|
3771
3806
|
}
|
|
3772
|
-
if (
|
|
3773
|
-
var
|
|
3807
|
+
if (pr(u)) {
|
|
3808
|
+
var m = typeof u.style == "string" ? n.date[u.style] : it(u.style) ? u.style.parsedOptions : void 0;
|
|
3774
3809
|
s.push({
|
|
3775
3810
|
type: P.literal,
|
|
3776
|
-
value:
|
|
3811
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3777
3812
|
});
|
|
3778
3813
|
continue;
|
|
3779
3814
|
}
|
|
3780
|
-
if (
|
|
3781
|
-
var
|
|
3815
|
+
if (br(u)) {
|
|
3816
|
+
var m = typeof u.style == "string" ? n.time[u.style] : it(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3782
3817
|
s.push({
|
|
3783
3818
|
type: P.literal,
|
|
3784
|
-
value:
|
|
3819
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3785
3820
|
});
|
|
3786
3821
|
continue;
|
|
3787
3822
|
}
|
|
3788
|
-
if (
|
|
3789
|
-
var
|
|
3790
|
-
|
|
3823
|
+
if (dr(u)) {
|
|
3824
|
+
var m = typeof u.style == "string" ? n.number[u.style] : _r(u.style) ? u.style.parsedOptions : void 0;
|
|
3825
|
+
m && m.scale && (c = c * (m.scale || 1)), s.push({
|
|
3791
3826
|
type: P.literal,
|
|
3792
|
-
value:
|
|
3827
|
+
value: r.getNumberFormat(t, m).format(c)
|
|
3793
3828
|
});
|
|
3794
3829
|
continue;
|
|
3795
3830
|
}
|
|
3796
|
-
if (
|
|
3797
|
-
var
|
|
3798
|
-
if (!
|
|
3799
|
-
throw new
|
|
3800
|
-
var H = Te(
|
|
3801
|
-
return
|
|
3831
|
+
if (vr(u)) {
|
|
3832
|
+
var d = u.children, p = u.value, A = i[p];
|
|
3833
|
+
if (!Xi(A))
|
|
3834
|
+
throw new ki(p, "function", a);
|
|
3835
|
+
var H = Te(d, t, r, n, i, o), T = A(H.map(function(M) {
|
|
3836
|
+
return M.value;
|
|
3802
3837
|
}));
|
|
3803
|
-
Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(
|
|
3838
|
+
Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(M) {
|
|
3804
3839
|
return {
|
|
3805
|
-
type: typeof
|
|
3806
|
-
value:
|
|
3840
|
+
type: typeof M == "string" ? P.literal : P.object,
|
|
3841
|
+
value: M
|
|
3807
3842
|
};
|
|
3808
3843
|
}));
|
|
3809
3844
|
}
|
|
3810
|
-
if (
|
|
3845
|
+
if (gr(u)) {
|
|
3811
3846
|
var B = u.options[c] || u.options.other;
|
|
3812
3847
|
if (!B)
|
|
3813
|
-
throw new
|
|
3814
|
-
s.push.apply(s, Te(B.value, t,
|
|
3848
|
+
throw new Dt(u.value, c, Object.keys(u.options), a);
|
|
3849
|
+
s.push.apply(s, Te(B.value, t, r, n, i));
|
|
3815
3850
|
continue;
|
|
3816
3851
|
}
|
|
3817
|
-
if (
|
|
3852
|
+
if (yr(u)) {
|
|
3818
3853
|
var B = u.options["=".concat(c)];
|
|
3819
3854
|
if (!B) {
|
|
3820
3855
|
if (!Intl.PluralRules)
|
|
3821
|
-
throw new
|
|
3856
|
+
throw new Me(`Intl.PluralRules is not available in this environment.
|
|
3822
3857
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3823
|
-
`,
|
|
3824
|
-
var
|
|
3825
|
-
B = u.options[
|
|
3858
|
+
`, ne.MISSING_INTL_API, a);
|
|
3859
|
+
var L = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
|
3860
|
+
B = u.options[L] || u.options.other;
|
|
3826
3861
|
}
|
|
3827
3862
|
if (!B)
|
|
3828
|
-
throw new
|
|
3829
|
-
s.push.apply(s, Te(B.value, t,
|
|
3863
|
+
throw new Dt(u.value, c, Object.keys(u.options), a);
|
|
3864
|
+
s.push.apply(s, Te(B.value, t, r, n, i, c - (u.offset || 0)));
|
|
3830
3865
|
continue;
|
|
3831
3866
|
}
|
|
3832
3867
|
}
|
|
3833
|
-
return
|
|
3868
|
+
return Wi(s);
|
|
3834
3869
|
}
|
|
3835
|
-
function
|
|
3836
|
-
return t ?
|
|
3837
|
-
return n
|
|
3870
|
+
function zi(e, t) {
|
|
3871
|
+
return t ? C(C(C({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3872
|
+
return r[n] = C(C({}, e[n]), t[n] || {}), r;
|
|
3838
3873
|
}, {})) : e;
|
|
3839
3874
|
}
|
|
3840
|
-
function
|
|
3841
|
-
return t ? Object.keys(e).reduce(function(
|
|
3842
|
-
return n
|
|
3843
|
-
},
|
|
3875
|
+
function Ji(e, t) {
|
|
3876
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3877
|
+
return r[n] = zi(e[n], t[n]), r;
|
|
3878
|
+
}, C({}, e)) : e;
|
|
3844
3879
|
}
|
|
3845
|
-
function
|
|
3880
|
+
function Xe(e) {
|
|
3846
3881
|
return {
|
|
3847
3882
|
create: function() {
|
|
3848
3883
|
return {
|
|
3849
3884
|
get: function(t) {
|
|
3850
3885
|
return e[t];
|
|
3851
3886
|
},
|
|
3852
|
-
set: function(t,
|
|
3853
|
-
e[t] =
|
|
3887
|
+
set: function(t, r) {
|
|
3888
|
+
e[t] = r;
|
|
3854
3889
|
}
|
|
3855
3890
|
};
|
|
3856
3891
|
}
|
|
3857
3892
|
};
|
|
3858
3893
|
}
|
|
3859
|
-
function
|
|
3894
|
+
function Zi(e) {
|
|
3860
3895
|
return e === void 0 && (e = {
|
|
3861
3896
|
number: {},
|
|
3862
3897
|
dateTime: {},
|
|
3863
3898
|
pluralRules: {}
|
|
3864
3899
|
}), {
|
|
3865
|
-
getNumberFormat:
|
|
3866
|
-
for (var t,
|
|
3867
|
-
n
|
|
3868
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3900
|
+
getNumberFormat: ke(function() {
|
|
3901
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3902
|
+
r[n] = arguments[n];
|
|
3903
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, je([void 0], r, !1)))();
|
|
3869
3904
|
}, {
|
|
3870
|
-
cache:
|
|
3871
|
-
strategy:
|
|
3905
|
+
cache: Xe(e.number),
|
|
3906
|
+
strategy: Ve.variadic
|
|
3872
3907
|
}),
|
|
3873
|
-
getDateTimeFormat:
|
|
3874
|
-
for (var t,
|
|
3875
|
-
n
|
|
3876
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3908
|
+
getDateTimeFormat: ke(function() {
|
|
3909
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3910
|
+
r[n] = arguments[n];
|
|
3911
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, je([void 0], r, !1)))();
|
|
3877
3912
|
}, {
|
|
3878
|
-
cache:
|
|
3879
|
-
strategy:
|
|
3913
|
+
cache: Xe(e.dateTime),
|
|
3914
|
+
strategy: Ve.variadic
|
|
3880
3915
|
}),
|
|
3881
|
-
getPluralRules:
|
|
3882
|
-
for (var t,
|
|
3883
|
-
n
|
|
3884
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3916
|
+
getPluralRules: ke(function() {
|
|
3917
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3918
|
+
r[n] = arguments[n];
|
|
3919
|
+
return new ((t = Intl.PluralRules).bind.apply(t, je([void 0], r, !1)))();
|
|
3885
3920
|
}, {
|
|
3886
|
-
cache:
|
|
3887
|
-
strategy:
|
|
3921
|
+
cache: Xe(e.pluralRules),
|
|
3922
|
+
strategy: Ve.variadic
|
|
3888
3923
|
})
|
|
3889
3924
|
};
|
|
3890
3925
|
}
|
|
3891
|
-
var
|
|
3926
|
+
var Qi = (
|
|
3892
3927
|
/** @class */
|
|
3893
3928
|
function() {
|
|
3894
|
-
function e(t,
|
|
3895
|
-
|
|
3929
|
+
function e(t, r, n, i) {
|
|
3930
|
+
r === void 0 && (r = e.defaultLocale);
|
|
3896
3931
|
var o = this;
|
|
3897
3932
|
if (this.formatterCache = {
|
|
3898
3933
|
number: {},
|
|
@@ -3915,18 +3950,18 @@ var Xi = (
|
|
|
3915
3950
|
};
|
|
3916
3951
|
}, this.getAst = function() {
|
|
3917
3952
|
return o.ast;
|
|
3918
|
-
}, this.locales =
|
|
3953
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3919
3954
|
if (this.message = t, !e.__parse)
|
|
3920
3955
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3921
3956
|
var a = i || {};
|
|
3922
3957
|
a.formatters;
|
|
3923
|
-
var s =
|
|
3924
|
-
this.ast = e.__parse(t,
|
|
3958
|
+
var s = oi(a, ["formatters"]);
|
|
3959
|
+
this.ast = e.__parse(t, C(C({}, s), { locale: this.resolvedLocale }));
|
|
3925
3960
|
} else
|
|
3926
3961
|
this.ast = t;
|
|
3927
3962
|
if (!Array.isArray(this.ast))
|
|
3928
3963
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3929
|
-
this.formats =
|
|
3964
|
+
this.formats = Ji(e.formats, n), this.formatters = i && i.formatters || Zi(this.formatterCache);
|
|
3930
3965
|
}
|
|
3931
3966
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3932
3967
|
get: function() {
|
|
@@ -3936,10 +3971,10 @@ var Xi = (
|
|
|
3936
3971
|
configurable: !0
|
|
3937
3972
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3938
3973
|
if (typeof Intl.Locale != "undefined") {
|
|
3939
|
-
var
|
|
3940
|
-
return
|
|
3974
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3975
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3941
3976
|
}
|
|
3942
|
-
}, e.__parse =
|
|
3977
|
+
}, e.__parse = ji, e.formats = {
|
|
3943
3978
|
number: {
|
|
3944
3979
|
integer: {
|
|
3945
3980
|
maximumFractionDigits: 0
|
|
@@ -4000,113 +4035,113 @@ var Xi = (
|
|
|
4000
4035
|
}, e;
|
|
4001
4036
|
}()
|
|
4002
4037
|
);
|
|
4003
|
-
function
|
|
4038
|
+
function Yi(e, t) {
|
|
4004
4039
|
if (t == null)
|
|
4005
4040
|
return;
|
|
4006
4041
|
if (t in e)
|
|
4007
4042
|
return e[t];
|
|
4008
|
-
const
|
|
4009
|
-
let
|
|
4010
|
-
for (let i = 0; i <
|
|
4011
|
-
if (typeof
|
|
4043
|
+
const r = t.split(".");
|
|
4044
|
+
let n = e;
|
|
4045
|
+
for (let i = 0; i < r.length; i++)
|
|
4046
|
+
if (typeof n == "object") {
|
|
4012
4047
|
if (i > 0) {
|
|
4013
|
-
const o =
|
|
4014
|
-
if (o in
|
|
4015
|
-
|
|
4048
|
+
const o = r.slice(i, r.length).join(".");
|
|
4049
|
+
if (o in n) {
|
|
4050
|
+
n = n[o];
|
|
4016
4051
|
break;
|
|
4017
4052
|
}
|
|
4018
4053
|
}
|
|
4019
|
-
|
|
4054
|
+
n = n[r[i]];
|
|
4020
4055
|
} else
|
|
4021
|
-
|
|
4022
|
-
return
|
|
4056
|
+
n = void 0;
|
|
4057
|
+
return n;
|
|
4023
4058
|
}
|
|
4024
|
-
const j = {},
|
|
4059
|
+
const j = {}, qi = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), Ar = (e, t) => {
|
|
4025
4060
|
if (t == null)
|
|
4026
4061
|
return;
|
|
4027
4062
|
if (t in j && e in j[t])
|
|
4028
4063
|
return j[t][e];
|
|
4029
|
-
const
|
|
4030
|
-
for (let
|
|
4031
|
-
const i = n
|
|
4064
|
+
const r = Ce(t);
|
|
4065
|
+
for (let n = 0; n < r.length; n++) {
|
|
4066
|
+
const i = r[n], o = eo(i, e);
|
|
4032
4067
|
if (o)
|
|
4033
|
-
return
|
|
4068
|
+
return qi(e, t, o);
|
|
4034
4069
|
}
|
|
4035
4070
|
};
|
|
4036
|
-
let
|
|
4037
|
-
const
|
|
4038
|
-
function
|
|
4039
|
-
return
|
|
4071
|
+
let mt;
|
|
4072
|
+
const ae = Ne({});
|
|
4073
|
+
function Ki(e) {
|
|
4074
|
+
return mt[e] || null;
|
|
4040
4075
|
}
|
|
4041
|
-
function
|
|
4042
|
-
return e in
|
|
4076
|
+
function Pr(e) {
|
|
4077
|
+
return e in mt;
|
|
4043
4078
|
}
|
|
4044
|
-
function
|
|
4045
|
-
if (!
|
|
4079
|
+
function eo(e, t) {
|
|
4080
|
+
if (!Pr(e))
|
|
4046
4081
|
return null;
|
|
4047
|
-
const
|
|
4048
|
-
return
|
|
4082
|
+
const r = Ki(e);
|
|
4083
|
+
return Yi(r, t);
|
|
4049
4084
|
}
|
|
4050
|
-
function
|
|
4085
|
+
function to(e) {
|
|
4051
4086
|
if (e == null)
|
|
4052
4087
|
return;
|
|
4053
|
-
const t =
|
|
4054
|
-
for (let
|
|
4055
|
-
const
|
|
4056
|
-
if (
|
|
4057
|
-
return
|
|
4088
|
+
const t = Ce(e);
|
|
4089
|
+
for (let r = 0; r < t.length; r++) {
|
|
4090
|
+
const n = t[r];
|
|
4091
|
+
if (Pr(n))
|
|
4092
|
+
return n;
|
|
4058
4093
|
}
|
|
4059
4094
|
}
|
|
4060
|
-
function
|
|
4061
|
-
delete j[e],
|
|
4095
|
+
function Or(e, ...t) {
|
|
4096
|
+
delete j[e], ae.update((r) => (r[e] = ii.all([r[e] || {}, ...t]), r));
|
|
4062
4097
|
}
|
|
4063
|
-
|
|
4064
|
-
[
|
|
4098
|
+
oe(
|
|
4099
|
+
[ae],
|
|
4065
4100
|
([e]) => Object.keys(e)
|
|
4066
4101
|
);
|
|
4067
|
-
|
|
4102
|
+
ae.subscribe((e) => mt = e);
|
|
4068
4103
|
const He = {};
|
|
4069
|
-
function
|
|
4104
|
+
function ro(e, t) {
|
|
4070
4105
|
He[e].delete(t), He[e].size === 0 && delete He[e];
|
|
4071
4106
|
}
|
|
4072
|
-
function
|
|
4107
|
+
function Rr(e) {
|
|
4073
4108
|
return He[e];
|
|
4074
4109
|
}
|
|
4075
|
-
function
|
|
4076
|
-
return
|
|
4077
|
-
const
|
|
4078
|
-
return [t,
|
|
4110
|
+
function no(e) {
|
|
4111
|
+
return Ce(e).map((t) => {
|
|
4112
|
+
const r = Rr(t);
|
|
4113
|
+
return [t, r ? [...r] : []];
|
|
4079
4114
|
}).filter(([, t]) => t.length > 0);
|
|
4080
4115
|
}
|
|
4081
|
-
function
|
|
4082
|
-
return e == null ? !1 :
|
|
4116
|
+
function ht(e) {
|
|
4117
|
+
return e == null ? !1 : Ce(e).some(
|
|
4083
4118
|
(t) => {
|
|
4084
|
-
var
|
|
4085
|
-
return (
|
|
4119
|
+
var r;
|
|
4120
|
+
return (r = Rr(t)) == null ? void 0 : r.size;
|
|
4086
4121
|
}
|
|
4087
4122
|
);
|
|
4088
4123
|
}
|
|
4089
|
-
function
|
|
4124
|
+
function io(e, t) {
|
|
4090
4125
|
return Promise.all(
|
|
4091
|
-
t.map((
|
|
4092
|
-
).then((
|
|
4093
|
-
}
|
|
4094
|
-
const
|
|
4095
|
-
function
|
|
4096
|
-
if (!
|
|
4097
|
-
return e in
|
|
4098
|
-
const t =
|
|
4099
|
-
return
|
|
4126
|
+
t.map((n) => (ro(e, n), n().then((i) => i.default || i)))
|
|
4127
|
+
).then((n) => Or(e, ...n));
|
|
4128
|
+
}
|
|
4129
|
+
const le = {};
|
|
4130
|
+
function Ir(e) {
|
|
4131
|
+
if (!ht(e))
|
|
4132
|
+
return e in le ? le[e] : Promise.resolve();
|
|
4133
|
+
const t = no(e);
|
|
4134
|
+
return le[e] = Promise.all(
|
|
4100
4135
|
t.map(
|
|
4101
|
-
([
|
|
4136
|
+
([r, n]) => io(r, n)
|
|
4102
4137
|
)
|
|
4103
4138
|
).then(() => {
|
|
4104
|
-
if (
|
|
4105
|
-
return
|
|
4106
|
-
delete
|
|
4107
|
-
}),
|
|
4139
|
+
if (ht(e))
|
|
4140
|
+
return Ir(e);
|
|
4141
|
+
delete le[e];
|
|
4142
|
+
}), le[e];
|
|
4108
4143
|
}
|
|
4109
|
-
const
|
|
4144
|
+
const oo = {
|
|
4110
4145
|
number: {
|
|
4111
4146
|
scientific: { notation: "scientific" },
|
|
4112
4147
|
engineering: { notation: "engineering" },
|
|
@@ -4135,136 +4170,136 @@ const to = {
|
|
|
4135
4170
|
timeZoneName: "short"
|
|
4136
4171
|
}
|
|
4137
4172
|
}
|
|
4138
|
-
},
|
|
4173
|
+
}, ao = {
|
|
4139
4174
|
fallbackLocale: null,
|
|
4140
4175
|
loadingDelay: 200,
|
|
4141
|
-
formats:
|
|
4176
|
+
formats: oo,
|
|
4142
4177
|
warnOnMissingMessages: !0,
|
|
4143
4178
|
handleMissingMessage: void 0,
|
|
4144
4179
|
ignoreTag: !0
|
|
4145
|
-
},
|
|
4146
|
-
function
|
|
4147
|
-
return
|
|
4148
|
-
}
|
|
4149
|
-
const
|
|
4150
|
-
var
|
|
4151
|
-
for (var
|
|
4152
|
-
|
|
4153
|
-
if (
|
|
4154
|
-
for (var
|
|
4155
|
-
|
|
4180
|
+
}, so = ao;
|
|
4181
|
+
function ie() {
|
|
4182
|
+
return so;
|
|
4183
|
+
}
|
|
4184
|
+
const ze = Ne(!1);
|
|
4185
|
+
var uo = Object.defineProperty, lo = Object.defineProperties, ho = Object.getOwnPropertyDescriptors, jt = Object.getOwnPropertySymbols, co = Object.prototype.hasOwnProperty, fo = Object.prototype.propertyIsEnumerable, kt = (e, t, r) => t in e ? uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mo = (e, t) => {
|
|
4186
|
+
for (var r in t || (t = {}))
|
|
4187
|
+
co.call(t, r) && kt(e, r, t[r]);
|
|
4188
|
+
if (jt)
|
|
4189
|
+
for (var r of jt(t))
|
|
4190
|
+
fo.call(t, r) && kt(e, r, t[r]);
|
|
4156
4191
|
return e;
|
|
4157
|
-
},
|
|
4158
|
-
let
|
|
4159
|
-
const
|
|
4160
|
-
function
|
|
4161
|
-
return e.split("-").map((t,
|
|
4192
|
+
}, po = (e, t) => lo(e, ho(t));
|
|
4193
|
+
let ct;
|
|
4194
|
+
const Oe = Ne(null);
|
|
4195
|
+
function Vt(e) {
|
|
4196
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4162
4197
|
}
|
|
4163
|
-
function
|
|
4164
|
-
const
|
|
4165
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
4198
|
+
function Ce(e, t = ie().fallbackLocale) {
|
|
4199
|
+
const r = Vt(e);
|
|
4200
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Vt(t)])] : r;
|
|
4166
4201
|
}
|
|
4167
4202
|
function Z() {
|
|
4168
|
-
return
|
|
4203
|
+
return ct != null ? ct : void 0;
|
|
4169
4204
|
}
|
|
4170
|
-
|
|
4171
|
-
|
|
4205
|
+
Oe.subscribe((e) => {
|
|
4206
|
+
ct = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4172
4207
|
});
|
|
4173
|
-
const
|
|
4174
|
-
if (e &&
|
|
4175
|
-
const { loadingDelay: t } =
|
|
4176
|
-
let
|
|
4177
|
-
return typeof window != "undefined" && Z() != null && t ?
|
|
4178
|
-
() =>
|
|
4208
|
+
const bo = (e) => {
|
|
4209
|
+
if (e && to(e) && ht(e)) {
|
|
4210
|
+
const { loadingDelay: t } = ie();
|
|
4211
|
+
let r;
|
|
4212
|
+
return typeof window != "undefined" && Z() != null && t ? r = window.setTimeout(
|
|
4213
|
+
() => ze.set(!0),
|
|
4179
4214
|
t
|
|
4180
|
-
) :
|
|
4181
|
-
|
|
4215
|
+
) : ze.set(!0), Ir(e).then(() => {
|
|
4216
|
+
Oe.set(e);
|
|
4182
4217
|
}).finally(() => {
|
|
4183
|
-
clearTimeout(
|
|
4218
|
+
clearTimeout(r), ze.set(!1);
|
|
4184
4219
|
});
|
|
4185
4220
|
}
|
|
4186
|
-
return
|
|
4187
|
-
}, W =
|
|
4188
|
-
set:
|
|
4189
|
-
}),
|
|
4221
|
+
return Oe.set(e);
|
|
4222
|
+
}, W = po(mo({}, Oe), {
|
|
4223
|
+
set: bo
|
|
4224
|
+
}), Ge = (e) => {
|
|
4190
4225
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4191
|
-
return (
|
|
4192
|
-
const i = JSON.stringify(
|
|
4193
|
-
return i in t ? t[i] : t[i] = e(
|
|
4226
|
+
return (n) => {
|
|
4227
|
+
const i = JSON.stringify(n);
|
|
4228
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
4194
4229
|
};
|
|
4195
4230
|
};
|
|
4196
|
-
var
|
|
4197
|
-
for (var
|
|
4198
|
-
|
|
4231
|
+
var go = Object.defineProperty, Re = Object.getOwnPropertySymbols, Nr = Object.prototype.hasOwnProperty, Lr = Object.prototype.propertyIsEnumerable, Wt = (e, t, r) => t in e ? go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, dt = (e, t) => {
|
|
4232
|
+
for (var r in t || (t = {}))
|
|
4233
|
+
Nr.call(t, r) && Wt(e, r, t[r]);
|
|
4199
4234
|
if (Re)
|
|
4200
|
-
for (var
|
|
4201
|
-
|
|
4235
|
+
for (var r of Re(t))
|
|
4236
|
+
Lr.call(t, r) && Wt(e, r, t[r]);
|
|
4202
4237
|
return e;
|
|
4203
|
-
},
|
|
4204
|
-
var
|
|
4205
|
-
for (var
|
|
4206
|
-
|
|
4238
|
+
}, se = (e, t) => {
|
|
4239
|
+
var r = {};
|
|
4240
|
+
for (var n in e)
|
|
4241
|
+
Nr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4207
4242
|
if (e != null && Re)
|
|
4208
|
-
for (var
|
|
4209
|
-
t.indexOf(
|
|
4210
|
-
return
|
|
4243
|
+
for (var n of Re(e))
|
|
4244
|
+
t.indexOf(n) < 0 && Lr.call(e, n) && (r[n] = e[n]);
|
|
4245
|
+
return r;
|
|
4211
4246
|
};
|
|
4212
|
-
const
|
|
4213
|
-
const { formats:
|
|
4214
|
-
if (e in
|
|
4215
|
-
return
|
|
4247
|
+
const de = (e, t) => {
|
|
4248
|
+
const { formats: r } = ie();
|
|
4249
|
+
if (e in r && t in r[e])
|
|
4250
|
+
return r[e][t];
|
|
4216
4251
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4217
|
-
},
|
|
4252
|
+
}, yo = Ge(
|
|
4218
4253
|
(e) => {
|
|
4219
|
-
var t = e, { locale:
|
|
4220
|
-
if (
|
|
4254
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4255
|
+
if (r == null)
|
|
4221
4256
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4222
|
-
return
|
|
4257
|
+
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
4223
4258
|
}
|
|
4224
|
-
),
|
|
4259
|
+
), vo = Ge(
|
|
4225
4260
|
(e) => {
|
|
4226
|
-
var t = e, { locale:
|
|
4227
|
-
if (
|
|
4261
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4262
|
+
if (r == null)
|
|
4228
4263
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4229
|
-
return
|
|
4264
|
+
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4230
4265
|
}
|
|
4231
|
-
),
|
|
4266
|
+
), _o = Ge(
|
|
4232
4267
|
(e) => {
|
|
4233
|
-
var t = e, { locale:
|
|
4234
|
-
if (
|
|
4268
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4269
|
+
if (r == null)
|
|
4235
4270
|
throw new Error(
|
|
4236
4271
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4237
4272
|
);
|
|
4238
|
-
return
|
|
4273
|
+
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4239
4274
|
}
|
|
4240
|
-
),
|
|
4275
|
+
), xo = (e = {}) => {
|
|
4241
4276
|
var t = e, {
|
|
4242
|
-
locale:
|
|
4243
|
-
} = t,
|
|
4277
|
+
locale: r = Z()
|
|
4278
|
+
} = t, n = se(t, [
|
|
4244
4279
|
"locale"
|
|
4245
4280
|
]);
|
|
4246
|
-
return
|
|
4247
|
-
},
|
|
4281
|
+
return yo(dt({ locale: r }, n));
|
|
4282
|
+
}, Eo = (e = {}) => {
|
|
4248
4283
|
var t = e, {
|
|
4249
|
-
locale:
|
|
4250
|
-
} = t,
|
|
4284
|
+
locale: r = Z()
|
|
4285
|
+
} = t, n = se(t, [
|
|
4251
4286
|
"locale"
|
|
4252
4287
|
]);
|
|
4253
|
-
return
|
|
4254
|
-
},
|
|
4288
|
+
return vo(dt({ locale: r }, n));
|
|
4289
|
+
}, wo = (e = {}) => {
|
|
4255
4290
|
var t = e, {
|
|
4256
|
-
locale:
|
|
4257
|
-
} = t,
|
|
4291
|
+
locale: r = Z()
|
|
4292
|
+
} = t, n = se(t, [
|
|
4258
4293
|
"locale"
|
|
4259
4294
|
]);
|
|
4260
|
-
return
|
|
4261
|
-
},
|
|
4295
|
+
return _o(dt({ locale: r }, n));
|
|
4296
|
+
}, So = Ge(
|
|
4262
4297
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4263
|
-
(e, t = Z()) => new
|
|
4264
|
-
ignoreTag:
|
|
4298
|
+
(e, t = Z()) => new Qi(e, t, ie().formats, {
|
|
4299
|
+
ignoreTag: ie().ignoreTag
|
|
4265
4300
|
})
|
|
4266
|
-
),
|
|
4267
|
-
var
|
|
4301
|
+
), To = (e, t = {}) => {
|
|
4302
|
+
var r, n, i, o;
|
|
4268
4303
|
let a = t;
|
|
4269
4304
|
typeof e == "object" && (a = e, e = a.id);
|
|
4270
4305
|
const {
|
|
@@ -4276,9 +4311,9 @@ const pe = (e, t) => {
|
|
|
4276
4311
|
throw new Error(
|
|
4277
4312
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4278
4313
|
);
|
|
4279
|
-
let u =
|
|
4314
|
+
let u = Ar(e, h);
|
|
4280
4315
|
if (!u)
|
|
4281
|
-
u = (o = (i = (
|
|
4316
|
+
u = (o = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4282
4317
|
else if (typeof u != "string")
|
|
4283
4318
|
return console.warn(
|
|
4284
4319
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4287,7 +4322,7 @@ const pe = (e, t) => {
|
|
|
4287
4322
|
return u;
|
|
4288
4323
|
let f = u;
|
|
4289
4324
|
try {
|
|
4290
|
-
f =
|
|
4325
|
+
f = So(u, h).format(s);
|
|
4291
4326
|
} catch (c) {
|
|
4292
4327
|
c instanceof Error && console.warn(
|
|
4293
4328
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4295,48 +4330,48 @@ const pe = (e, t) => {
|
|
|
4295
4330
|
);
|
|
4296
4331
|
}
|
|
4297
4332
|
return f;
|
|
4298
|
-
},
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
window.emWidgets = { topic:
|
|
4304
|
-
const
|
|
4305
|
-
function
|
|
4333
|
+
}, Ho = (e, t) => wo(t).format(e), Bo = (e, t) => Eo(t).format(e), Ao = (e, t) => xo(t).format(e), Po = (e, t = Z()) => Ar(e, t), Oo = oe([W, ae], () => To);
|
|
4334
|
+
oe([W], () => Ho);
|
|
4335
|
+
oe([W], () => Bo);
|
|
4336
|
+
oe([W], () => Ao);
|
|
4337
|
+
oe([W, ae], () => Po);
|
|
4338
|
+
window.emWidgets = { topic: Dn };
|
|
4339
|
+
const Ro = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4340
|
+
function Io(e, t) {
|
|
4306
4341
|
if (e) {
|
|
4307
|
-
const
|
|
4308
|
-
|
|
4342
|
+
const r = document.createElement("style");
|
|
4343
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4309
4344
|
}
|
|
4310
4345
|
}
|
|
4311
|
-
function
|
|
4312
|
-
const
|
|
4313
|
-
fetch(
|
|
4346
|
+
function No(e, t) {
|
|
4347
|
+
const r = new URL(t);
|
|
4348
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4314
4349
|
const i = document.createElement("style");
|
|
4315
|
-
i.innerHTML =
|
|
4316
|
-
}).catch((
|
|
4317
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
4350
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4351
|
+
}).catch((n) => {
|
|
4352
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4318
4353
|
});
|
|
4319
4354
|
}
|
|
4320
|
-
function
|
|
4355
|
+
function Lo(e, t, r) {
|
|
4321
4356
|
if (window.emMessageBus) {
|
|
4322
|
-
const
|
|
4357
|
+
const n = document.createElement("style");
|
|
4323
4358
|
window.emMessageBus.subscribe(t, (i) => {
|
|
4324
|
-
|
|
4359
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4325
4360
|
});
|
|
4326
4361
|
}
|
|
4327
4362
|
}
|
|
4328
|
-
function
|
|
4329
|
-
W.subscribe((
|
|
4330
|
-
|
|
4363
|
+
function Mo({ withLocale: e, translations: t }) {
|
|
4364
|
+
W.subscribe((r) => {
|
|
4365
|
+
r == null && (ae.set(t), W.set(e));
|
|
4331
4366
|
});
|
|
4332
4367
|
}
|
|
4333
|
-
function
|
|
4334
|
-
|
|
4368
|
+
function Xt(e, t) {
|
|
4369
|
+
Or(e, t);
|
|
4335
4370
|
}
|
|
4336
|
-
function
|
|
4371
|
+
function Co(e) {
|
|
4337
4372
|
W.set(e);
|
|
4338
4373
|
}
|
|
4339
|
-
const
|
|
4374
|
+
const zt = {
|
|
4340
4375
|
en: {
|
|
4341
4376
|
playRandomGame: "Play a random game",
|
|
4342
4377
|
randomGameLoading: "Selecting ...",
|
|
@@ -4410,152 +4445,152 @@ const kt = {
|
|
|
4410
4445
|
noGames: "There are no random games to play"
|
|
4411
4446
|
}
|
|
4412
4447
|
};
|
|
4413
|
-
function
|
|
4414
|
-
|
|
4448
|
+
function Go(e) {
|
|
4449
|
+
un(e, "svelte-kfgfhx", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px;background:var(--emw--color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.CasinoPlayRandomGameWrapper{min-height:0}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{margin:5px 0;font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}");
|
|
4415
4450
|
}
|
|
4416
|
-
function
|
|
4417
|
-
const
|
|
4418
|
-
return
|
|
4451
|
+
function Jt(e, t, r) {
|
|
4452
|
+
const n = e.slice();
|
|
4453
|
+
return n[41] = t[r], n;
|
|
4419
4454
|
}
|
|
4420
|
-
const
|
|
4421
|
-
function
|
|
4422
|
-
let t,
|
|
4455
|
+
const Uo = (e) => ({}), Zt = (e) => ({});
|
|
4456
|
+
function Qt(e) {
|
|
4457
|
+
let t, r, n, i, o, a, s;
|
|
4423
4458
|
const h = (
|
|
4424
4459
|
/*#slots*/
|
|
4425
4460
|
e[23].close
|
|
4426
|
-
), l =
|
|
4461
|
+
), l = nn(
|
|
4427
4462
|
h,
|
|
4428
4463
|
e,
|
|
4429
4464
|
/*$$scope*/
|
|
4430
4465
|
e[22],
|
|
4431
|
-
|
|
4432
|
-
), u = l ||
|
|
4433
|
-
function f(
|
|
4466
|
+
Zt
|
|
4467
|
+
), u = l || $o();
|
|
4468
|
+
function f(d, p) {
|
|
4434
4469
|
return (
|
|
4435
4470
|
/*hasRandomGames*/
|
|
4436
|
-
|
|
4471
|
+
d[7] ? Do : Fo
|
|
4437
4472
|
);
|
|
4438
4473
|
}
|
|
4439
|
-
let c = f(e),
|
|
4474
|
+
let c = f(e), m = c(e);
|
|
4440
4475
|
return {
|
|
4441
4476
|
c() {
|
|
4442
|
-
t =
|
|
4477
|
+
t = w("div"), r = w("div"), n = w("span"), u && u.c(), i = V(), m.c(), g(n, "class", "ModalCloseBtn"), g(n, "role", "button"), g(r, "class", "ModalContainer"), g(t, "class", "ModalWindow");
|
|
4443
4478
|
},
|
|
4444
|
-
m(
|
|
4445
|
-
I(
|
|
4446
|
-
|
|
4479
|
+
m(d, p) {
|
|
4480
|
+
I(d, t, p), _(t, r), _(r, n), u && u.m(n, null), _(r, i), m.m(r, null), o = !0, a || (s = Be(
|
|
4481
|
+
n,
|
|
4447
4482
|
"click",
|
|
4448
4483
|
/*closeModal*/
|
|
4449
4484
|
e[12]
|
|
4450
4485
|
), a = !0);
|
|
4451
4486
|
},
|
|
4452
|
-
p(
|
|
4487
|
+
p(d, p) {
|
|
4453
4488
|
l && l.p && (!o || p[0] & /*$$scope*/
|
|
4454
|
-
4194304) &&
|
|
4489
|
+
4194304) && an(
|
|
4455
4490
|
l,
|
|
4456
4491
|
h,
|
|
4457
|
-
|
|
4492
|
+
d,
|
|
4458
4493
|
/*$$scope*/
|
|
4459
|
-
|
|
4460
|
-
o ?
|
|
4494
|
+
d[22],
|
|
4495
|
+
o ? on(
|
|
4461
4496
|
h,
|
|
4462
4497
|
/*$$scope*/
|
|
4463
|
-
|
|
4498
|
+
d[22],
|
|
4464
4499
|
p,
|
|
4465
|
-
|
|
4466
|
-
) :
|
|
4500
|
+
Uo
|
|
4501
|
+
) : sn(
|
|
4467
4502
|
/*$$scope*/
|
|
4468
|
-
|
|
4503
|
+
d[22]
|
|
4469
4504
|
),
|
|
4470
|
-
|
|
4471
|
-
), c === (c = f(
|
|
4505
|
+
Zt
|
|
4506
|
+
), c === (c = f(d)) && m ? m.p(d, p) : (m.d(1), m = c(d), m && (m.c(), m.m(r, null)));
|
|
4472
4507
|
},
|
|
4473
|
-
i(
|
|
4474
|
-
o || (
|
|
4508
|
+
i(d) {
|
|
4509
|
+
o || (ce(u, d), o = !0);
|
|
4475
4510
|
},
|
|
4476
|
-
o(
|
|
4477
|
-
|
|
4511
|
+
o(d) {
|
|
4512
|
+
Qe(u, d), o = !1;
|
|
4478
4513
|
},
|
|
4479
|
-
d(
|
|
4480
|
-
|
|
4514
|
+
d(d) {
|
|
4515
|
+
d && O(t), u && u.d(d), m.d(), a = !1, s();
|
|
4481
4516
|
}
|
|
4482
4517
|
};
|
|
4483
4518
|
}
|
|
4484
|
-
function
|
|
4485
|
-
let t,
|
|
4519
|
+
function $o(e) {
|
|
4520
|
+
let t, r;
|
|
4486
4521
|
return {
|
|
4487
4522
|
c() {
|
|
4488
|
-
t =
|
|
4523
|
+
t = wt("svg"), r = wt("path"), g(r, "stroke-linecap", "round"), g(r, "stroke-linejoin", "round"), g(r, "stroke-width", "2"), g(r, "d", "M6 18L18 6M6 6l12 12"), g(t, "class", "w-6 h-6"), g(t, "fill", "none"), g(t, "stroke", "currentColor"), g(t, "viewBox", "0 0 24 24"), g(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4489
4524
|
},
|
|
4490
|
-
m(
|
|
4491
|
-
I(
|
|
4525
|
+
m(n, i) {
|
|
4526
|
+
I(n, t, i), _(t, r);
|
|
4492
4527
|
},
|
|
4493
|
-
p:
|
|
4494
|
-
d(
|
|
4495
|
-
|
|
4528
|
+
p: G,
|
|
4529
|
+
d(n) {
|
|
4530
|
+
n && O(t);
|
|
4496
4531
|
}
|
|
4497
4532
|
};
|
|
4498
4533
|
}
|
|
4499
|
-
function
|
|
4500
|
-
let t,
|
|
4534
|
+
function Fo(e) {
|
|
4535
|
+
let t, r = (
|
|
4501
4536
|
/*$_*/
|
|
4502
4537
|
e[9]("noGames") + ""
|
|
4503
|
-
),
|
|
4538
|
+
), n;
|
|
4504
4539
|
return {
|
|
4505
4540
|
c() {
|
|
4506
|
-
t =
|
|
4541
|
+
t = w("p"), n = k(r), g(t, "class", "RandomGameLoading");
|
|
4507
4542
|
},
|
|
4508
4543
|
m(i, o) {
|
|
4509
|
-
I(i, t, o),
|
|
4544
|
+
I(i, t, o), _(t, n);
|
|
4510
4545
|
},
|
|
4511
4546
|
p(i, o) {
|
|
4512
4547
|
o[0] & /*$_*/
|
|
4513
|
-
512 &&
|
|
4514
|
-
i[9]("noGames") + "") && z(
|
|
4548
|
+
512 && r !== (r = /*$_*/
|
|
4549
|
+
i[9]("noGames") + "") && z(n, r);
|
|
4515
4550
|
},
|
|
4516
4551
|
d(i) {
|
|
4517
|
-
i &&
|
|
4552
|
+
i && O(t);
|
|
4518
4553
|
}
|
|
4519
4554
|
};
|
|
4520
4555
|
}
|
|
4521
|
-
function
|
|
4522
|
-
let t,
|
|
4556
|
+
function Do(e) {
|
|
4557
|
+
let t, r, n, i, o = Tt(
|
|
4523
4558
|
/*gamesToShow*/
|
|
4524
4559
|
e[4]
|
|
4525
4560
|
), a = [];
|
|
4526
4561
|
for (let u = 0; u < o.length; u += 1)
|
|
4527
|
-
a[u] =
|
|
4562
|
+
a[u] = Yt(Jt(e, o, u));
|
|
4528
4563
|
function s(u, f) {
|
|
4529
4564
|
return (
|
|
4530
4565
|
/*animationDone*/
|
|
4531
|
-
u[6] ?
|
|
4566
|
+
u[6] ? ko : jo
|
|
4532
4567
|
);
|
|
4533
4568
|
}
|
|
4534
4569
|
let h = s(e), l = h(e);
|
|
4535
4570
|
return {
|
|
4536
4571
|
c() {
|
|
4537
|
-
t =
|
|
4572
|
+
t = w("div"), r = w("main"), n = w("div");
|
|
4538
4573
|
for (let u = 0; u < a.length; u += 1)
|
|
4539
4574
|
a[u].c();
|
|
4540
|
-
i = V(), l.c(), g(
|
|
4575
|
+
i = V(), l.c(), g(n, "class", "GamesContainer"), g(r, "class", "RandomGamesSliderWrapper"), g(t, "class", "RandomGameWrapper");
|
|
4541
4576
|
},
|
|
4542
4577
|
m(u, f) {
|
|
4543
|
-
I(u, t, f),
|
|
4578
|
+
I(u, t, f), _(t, r), _(r, n);
|
|
4544
4579
|
for (let c = 0; c < a.length; c += 1)
|
|
4545
|
-
a[c] && a[c].m(
|
|
4546
|
-
e[24](
|
|
4580
|
+
a[c] && a[c].m(n, null);
|
|
4581
|
+
e[24](n), _(t, i), l.m(t, null);
|
|
4547
4582
|
},
|
|
4548
4583
|
p(u, f) {
|
|
4549
4584
|
if (f[0] & /*gamesToShow*/
|
|
4550
4585
|
16) {
|
|
4551
|
-
o =
|
|
4586
|
+
o = Tt(
|
|
4552
4587
|
/*gamesToShow*/
|
|
4553
4588
|
u[4]
|
|
4554
4589
|
);
|
|
4555
4590
|
let c;
|
|
4556
4591
|
for (c = 0; c < o.length; c += 1) {
|
|
4557
|
-
const
|
|
4558
|
-
a[c] ? a[c].p(
|
|
4592
|
+
const m = Jt(u, o, c);
|
|
4593
|
+
a[c] ? a[c].p(m, f) : (a[c] = Yt(m), a[c].c(), a[c].m(n, null));
|
|
4559
4594
|
}
|
|
4560
4595
|
for (; c < a.length; c += 1)
|
|
4561
4596
|
a[c].d(1);
|
|
@@ -4564,76 +4599,76 @@ function Go(e) {
|
|
|
4564
4599
|
h === (h = s(u)) && l ? l.p(u, f) : (l.d(1), l = h(u), l && (l.c(), l.m(t, null)));
|
|
4565
4600
|
},
|
|
4566
4601
|
d(u) {
|
|
4567
|
-
u &&
|
|
4602
|
+
u && O(t), cn(a, u), e[24](null), l.d();
|
|
4568
4603
|
}
|
|
4569
4604
|
};
|
|
4570
4605
|
}
|
|
4571
|
-
function
|
|
4572
|
-
let t,
|
|
4606
|
+
function Yt(e) {
|
|
4607
|
+
let t, r, n, i, o, a;
|
|
4573
4608
|
return {
|
|
4574
4609
|
c() {
|
|
4575
|
-
t =
|
|
4576
|
-
e[41].thumbnail) || g(
|
|
4577
|
-
e[41].name), g(
|
|
4610
|
+
t = w("div"), r = w("img"), a = V(), g(r, "class", "RandomGameImage"), Et(r.src, n = /*game*/
|
|
4611
|
+
e[41].thumbnail) || g(r, "src", n), g(r, "alt", i = /*game*/
|
|
4612
|
+
e[41].name), g(r, "title", o = /*game*/
|
|
4578
4613
|
e[41].name), g(t, "class", "item");
|
|
4579
4614
|
},
|
|
4580
4615
|
m(s, h) {
|
|
4581
|
-
I(s, t, h),
|
|
4616
|
+
I(s, t, h), _(t, r), _(t, a);
|
|
4582
4617
|
},
|
|
4583
4618
|
p(s, h) {
|
|
4584
4619
|
h[0] & /*gamesToShow*/
|
|
4585
|
-
16 && !
|
|
4586
|
-
s[41].thumbnail) && g(
|
|
4620
|
+
16 && !Et(r.src, n = /*game*/
|
|
4621
|
+
s[41].thumbnail) && g(r, "src", n), h[0] & /*gamesToShow*/
|
|
4587
4622
|
16 && i !== (i = /*game*/
|
|
4588
|
-
s[41].name) && g(
|
|
4623
|
+
s[41].name) && g(r, "alt", i), h[0] & /*gamesToShow*/
|
|
4589
4624
|
16 && o !== (o = /*game*/
|
|
4590
|
-
s[41].name) && g(
|
|
4625
|
+
s[41].name) && g(r, "title", o);
|
|
4591
4626
|
},
|
|
4592
4627
|
d(s) {
|
|
4593
|
-
s &&
|
|
4628
|
+
s && O(t);
|
|
4594
4629
|
}
|
|
4595
4630
|
};
|
|
4596
4631
|
}
|
|
4597
|
-
function
|
|
4598
|
-
let t,
|
|
4632
|
+
function jo(e) {
|
|
4633
|
+
let t, r = (
|
|
4599
4634
|
/*$_*/
|
|
4600
4635
|
e[9]("randomGameLoading") + ""
|
|
4601
|
-
),
|
|
4636
|
+
), n;
|
|
4602
4637
|
return {
|
|
4603
4638
|
c() {
|
|
4604
|
-
t =
|
|
4639
|
+
t = w("p"), n = k(r), g(t, "class", "RandomGameLoading");
|
|
4605
4640
|
},
|
|
4606
4641
|
m(i, o) {
|
|
4607
|
-
I(i, t, o),
|
|
4642
|
+
I(i, t, o), _(t, n);
|
|
4608
4643
|
},
|
|
4609
4644
|
p(i, o) {
|
|
4610
4645
|
o[0] & /*$_*/
|
|
4611
|
-
512 &&
|
|
4612
|
-
i[9]("randomGameLoading") + "") && z(
|
|
4646
|
+
512 && r !== (r = /*$_*/
|
|
4647
|
+
i[9]("randomGameLoading") + "") && z(n, r);
|
|
4613
4648
|
},
|
|
4614
4649
|
d(i) {
|
|
4615
|
-
i &&
|
|
4650
|
+
i && O(t);
|
|
4616
4651
|
}
|
|
4617
4652
|
};
|
|
4618
4653
|
}
|
|
4619
|
-
function
|
|
4620
|
-
let t,
|
|
4654
|
+
function ko(e) {
|
|
4655
|
+
let t, r, n, i, o = (
|
|
4621
4656
|
/*randomGame*/
|
|
4622
4657
|
e[3].name + ""
|
|
4623
4658
|
), a, s, h, l = (
|
|
4624
4659
|
/*randomGame*/
|
|
4625
4660
|
e[3].vendor.name + ""
|
|
4626
|
-
), u, f, c,
|
|
4661
|
+
), u, f, c, m = (
|
|
4627
4662
|
/*$_*/
|
|
4628
4663
|
e[9]("playNowRandomGame") + ""
|
|
4629
|
-
),
|
|
4664
|
+
), d, p, A;
|
|
4630
4665
|
return {
|
|
4631
4666
|
c() {
|
|
4632
|
-
t =
|
|
4633
|
-
</style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`,
|
|
4667
|
+
t = w("button"), t.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));}
|
|
4668
|
+
</style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`, r = V(), n = w("div"), i = w("p"), a = k(o), s = V(), h = w("p"), u = k(l), f = V(), c = w("button"), d = k(m), g(t, "class", "RandomTryAgain"), g(i, "class", "RandomGameTitle"), g(h, "class", "RandomGameVendor"), g(c, "class", "RandomGamePlay"), g(n, "class", "RandomGameDetails");
|
|
4634
4669
|
},
|
|
4635
4670
|
m(H, T) {
|
|
4636
|
-
I(H, t, T), I(H,
|
|
4671
|
+
I(H, t, T), I(H, r, T), I(H, n, T), _(n, i), _(i, a), _(n, s), _(n, h), _(h, u), _(n, f), _(n, c), _(c, d), p || (A = [
|
|
4637
4672
|
Be(
|
|
4638
4673
|
t,
|
|
4639
4674
|
"click",
|
|
@@ -4654,83 +4689,83 @@ function Fo(e) {
|
|
|
4654
4689
|
H[3].name + "") && z(a, o), T[0] & /*randomGame*/
|
|
4655
4690
|
8 && l !== (l = /*randomGame*/
|
|
4656
4691
|
H[3].vendor.name + "") && z(u, l), T[0] & /*$_*/
|
|
4657
|
-
512 &&
|
|
4658
|
-
H[9]("playNowRandomGame") + "") && z(
|
|
4692
|
+
512 && m !== (m = /*$_*/
|
|
4693
|
+
H[9]("playNowRandomGame") + "") && z(d, m);
|
|
4659
4694
|
},
|
|
4660
4695
|
d(H) {
|
|
4661
|
-
H && (
|
|
4696
|
+
H && (O(t), O(r), O(n)), p = !1, J(A);
|
|
4662
4697
|
}
|
|
4663
4698
|
};
|
|
4664
4699
|
}
|
|
4665
|
-
function
|
|
4666
|
-
let t,
|
|
4700
|
+
function Vo(e) {
|
|
4701
|
+
let t, r = (
|
|
4667
4702
|
/*$_*/
|
|
4668
4703
|
e[9]("playRandomGame") + ""
|
|
4669
|
-
),
|
|
4704
|
+
), n;
|
|
4670
4705
|
return {
|
|
4671
4706
|
c() {
|
|
4672
|
-
t =
|
|
4707
|
+
t = w("span"), n = k(r), g(t, "class", "RandomButtonText");
|
|
4673
4708
|
},
|
|
4674
4709
|
m(i, o) {
|
|
4675
|
-
I(i, t, o),
|
|
4710
|
+
I(i, t, o), _(t, n);
|
|
4676
4711
|
},
|
|
4677
4712
|
p(i, o) {
|
|
4678
4713
|
o[0] & /*$_*/
|
|
4679
|
-
512 &&
|
|
4680
|
-
i[9]("playRandomGame") + "") && z(
|
|
4714
|
+
512 && r !== (r = /*$_*/
|
|
4715
|
+
i[9]("playRandomGame") + "") && z(n, r);
|
|
4681
4716
|
},
|
|
4682
4717
|
d(i) {
|
|
4683
|
-
i &&
|
|
4718
|
+
i && O(t);
|
|
4684
4719
|
}
|
|
4685
4720
|
};
|
|
4686
4721
|
}
|
|
4687
|
-
function
|
|
4688
|
-
let t,
|
|
4722
|
+
function Wo(e) {
|
|
4723
|
+
let t, r;
|
|
4689
4724
|
return {
|
|
4690
4725
|
c() {
|
|
4691
|
-
t =
|
|
4726
|
+
t = w("span"), r = k(
|
|
4692
4727
|
/*buttontext*/
|
|
4693
4728
|
e[1]
|
|
4694
4729
|
), g(t, "class", "RandomButtonText");
|
|
4695
4730
|
},
|
|
4696
|
-
m(
|
|
4697
|
-
I(
|
|
4731
|
+
m(n, i) {
|
|
4732
|
+
I(n, t, i), _(t, r);
|
|
4698
4733
|
},
|
|
4699
|
-
p(
|
|
4734
|
+
p(n, i) {
|
|
4700
4735
|
i[0] & /*buttontext*/
|
|
4701
4736
|
2 && z(
|
|
4702
|
-
|
|
4737
|
+
r,
|
|
4703
4738
|
/*buttontext*/
|
|
4704
|
-
|
|
4739
|
+
n[1]
|
|
4705
4740
|
);
|
|
4706
4741
|
},
|
|
4707
|
-
d(
|
|
4708
|
-
|
|
4742
|
+
d(n) {
|
|
4743
|
+
n && O(t);
|
|
4709
4744
|
}
|
|
4710
4745
|
};
|
|
4711
4746
|
}
|
|
4712
|
-
function
|
|
4713
|
-
let t,
|
|
4747
|
+
function Xo(e) {
|
|
4748
|
+
let t, r, n, i, o, a, s, h, l, u = (
|
|
4714
4749
|
/*show*/
|
|
4715
|
-
e[5] &&
|
|
4750
|
+
e[5] && Qt(e)
|
|
4716
4751
|
);
|
|
4717
|
-
function f(
|
|
4752
|
+
function f(d, p) {
|
|
4718
4753
|
if (
|
|
4719
4754
|
/*buttontext*/
|
|
4720
|
-
|
|
4755
|
+
d[1]
|
|
4721
4756
|
)
|
|
4722
|
-
return
|
|
4757
|
+
return Wo;
|
|
4723
4758
|
if (!/*buttontext*/
|
|
4724
|
-
|
|
4725
|
-
return
|
|
4759
|
+
d[1])
|
|
4760
|
+
return Vo;
|
|
4726
4761
|
}
|
|
4727
|
-
let c = f(e),
|
|
4762
|
+
let c = f(e), m = c && c(e);
|
|
4728
4763
|
return {
|
|
4729
4764
|
c() {
|
|
4730
|
-
t =
|
|
4765
|
+
t = w("div"), u && u.c(), r = V(), n = w("div"), i = w("button"), m && m.c(), o = V(), a = w("span"), g(a, "class", "RandomButtonIcon"), g(i, "class", "RandomButton"), g(n, "class", "RandomButtonWrapper");
|
|
4731
4766
|
},
|
|
4732
|
-
m(
|
|
4733
|
-
I(
|
|
4767
|
+
m(d, p) {
|
|
4768
|
+
I(d, t, p), u && u.m(t, null), _(t, r), _(t, n), _(n, i), m && m.m(i, null), _(i, o), _(i, a), a.innerHTML = /*randombuttonicon*/
|
|
4734
4769
|
e[0], e[28](t), s = !0, h || (l = Be(
|
|
4735
4770
|
i,
|
|
4736
4771
|
"click",
|
|
@@ -4738,156 +4773,156 @@ function jo(e) {
|
|
|
4738
4773
|
e[27]
|
|
4739
4774
|
), h = !0);
|
|
4740
4775
|
},
|
|
4741
|
-
p(
|
|
4776
|
+
p(d, p) {
|
|
4742
4777
|
/*show*/
|
|
4743
|
-
|
|
4744
|
-
32 &&
|
|
4778
|
+
d[5] ? u ? (u.p(d, p), p[0] & /*show*/
|
|
4779
|
+
32 && ce(u, 1)) : (u = Qt(d), u.c(), ce(u, 1), u.m(t, r)) : u && (vn(), Qe(u, 1, 1, () => {
|
|
4745
4780
|
u = null;
|
|
4746
|
-
}),
|
|
4781
|
+
}), _n()), c === (c = f(d)) && m ? m.p(d, p) : (m && m.d(1), m = c && c(d), m && (m.c(), m.m(i, o))), (!s || p[0] & /*randombuttonicon*/
|
|
4747
4782
|
1) && (a.innerHTML = /*randombuttonicon*/
|
|
4748
|
-
|
|
4783
|
+
d[0]);
|
|
4749
4784
|
},
|
|
4750
|
-
i(
|
|
4751
|
-
s || (
|
|
4785
|
+
i(d) {
|
|
4786
|
+
s || (ce(u), s = !0);
|
|
4752
4787
|
},
|
|
4753
|
-
o(
|
|
4754
|
-
|
|
4788
|
+
o(d) {
|
|
4789
|
+
Qe(u), s = !1;
|
|
4755
4790
|
},
|
|
4756
|
-
d(
|
|
4757
|
-
|
|
4791
|
+
d(d) {
|
|
4792
|
+
d && O(t), u && u.d(), m && m.d(), e[28](null), h = !1, l();
|
|
4758
4793
|
}
|
|
4759
4794
|
};
|
|
4760
4795
|
}
|
|
4761
|
-
function
|
|
4762
|
-
let
|
|
4763
|
-
|
|
4764
|
-
let { $$slots: i = {}, $$scope: o } = t, { endpoint: a = "" } = t, { datasource: s = "" } = t, { gameevent: h = "" } = t, { lang: l = "" } = t, { randombuttonicon: u = "" } = t, { buttontext: f = "" } = t, { translationurl: c = "" } = t, { clientstyling:
|
|
4765
|
-
|
|
4766
|
-
const
|
|
4767
|
-
fetch(c).then((
|
|
4768
|
-
Object.keys(
|
|
4769
|
-
|
|
4796
|
+
function zo(e, t, r) {
|
|
4797
|
+
let n;
|
|
4798
|
+
rn(e, Oo, (b) => r(9, n = b));
|
|
4799
|
+
let { $$slots: i = {}, $$scope: o } = t, { endpoint: a = "" } = t, { datasource: s = "" } = t, { gameevent: h = "" } = t, { lang: l = "" } = t, { randombuttonicon: u = "" } = t, { buttontext: f = "" } = t, { translationurl: c = "" } = t, { clientstyling: m = "" } = t, { clientstylingurl: d = "" } = t, { filteredrandomgamecategories: p = "" } = t, { mbsource: A } = t, H = [], T = "", B, L = !1, M = !1, U = !1, be = window.navigator.userAgent, $, Q, pt, ge, bt = null;
|
|
4800
|
+
Mo({ withLocale: "en", translations: {} });
|
|
4801
|
+
const Mr = () => {
|
|
4802
|
+
fetch(c).then((x) => x.json()).then((x) => {
|
|
4803
|
+
Object.keys(x).forEach((F) => {
|
|
4804
|
+
Xt(F, x[F]);
|
|
4770
4805
|
});
|
|
4771
|
-
}).catch((
|
|
4772
|
-
console.log(
|
|
4806
|
+
}).catch((x) => {
|
|
4807
|
+
console.log(x);
|
|
4773
4808
|
});
|
|
4774
4809
|
};
|
|
4775
|
-
Object.keys(
|
|
4776
|
-
|
|
4810
|
+
Object.keys(zt).forEach((b) => {
|
|
4811
|
+
Xt(b, zt[b]);
|
|
4777
4812
|
});
|
|
4778
|
-
const
|
|
4813
|
+
const Cr = () => {
|
|
4779
4814
|
let b = new URL(`${a}/v1/casino/games`);
|
|
4780
|
-
b.searchParams.append("platform",
|
|
4781
|
-
H =
|
|
4782
|
-
}).catch((
|
|
4783
|
-
console.log(
|
|
4815
|
+
b.searchParams.append("platform", Ro(be)), b.searchParams.append("datasource", s), b.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), p && b.searchParams.append("filter", `groups=${p}`), b.searchParams.append("expand", "categories,vendor"), b.searchParams.append("pagination", "offset=0,limit=1000"), fetch(b.href).then((x) => x.json()).then((x) => {
|
|
4816
|
+
H = x.items, H.length ? (r(4, B = Gr(H.slice(0, 19))), r(7, U = !0)) : (r(4, B = []), r(7, U = !1));
|
|
4817
|
+
}).catch((x) => {
|
|
4818
|
+
console.log(x), r(7, U = !1);
|
|
4784
4819
|
});
|
|
4785
|
-
},
|
|
4786
|
-
const
|
|
4787
|
-
return
|
|
4788
|
-
},
|
|
4789
|
-
yield
|
|
4790
|
-
}),
|
|
4791
|
-
|
|
4792
|
-
const b = window.getComputedStyle(Q).getPropertyValue("gap"),
|
|
4820
|
+
}, Gr = (b) => {
|
|
4821
|
+
const x = $r(b);
|
|
4822
|
+
return x.concat(x);
|
|
4823
|
+
}, Ur = () => ye(this, null, function* () {
|
|
4824
|
+
yield bn(), ge = Math.floor(Math.random() * (B.length / 2)) + B.length / 2, r(3, T = B[ge]), pt = Q.children[ge];
|
|
4825
|
+
}), Ue = () => ye(this, null, function* () {
|
|
4826
|
+
r(6, M = !1), r(5, L = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), yield Ur();
|
|
4827
|
+
const b = window.getComputedStyle(Q).getPropertyValue("gap"), x = parseInt(b, 10) || 0, ue = (pt.offsetHeight + x) * ge, zr = [
|
|
4793
4828
|
{ transform: "translateX(0px)" },
|
|
4794
4829
|
{ filter: "blur(5px)" },
|
|
4795
4830
|
{
|
|
4796
|
-
transform: `translateY(-${
|
|
4831
|
+
transform: `translateY(-${ue}px)`
|
|
4797
4832
|
}
|
|
4798
|
-
],
|
|
4833
|
+
], Jr = {
|
|
4799
4834
|
duration: 2e3,
|
|
4800
4835
|
easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
|
|
4801
4836
|
fill: "forwards"
|
|
4802
4837
|
};
|
|
4803
|
-
|
|
4804
|
-
|
|
4838
|
+
bt = Q.animate(zr, Jr), bt.onfinish = () => {
|
|
4839
|
+
r(6, M = !0);
|
|
4805
4840
|
};
|
|
4806
|
-
}),
|
|
4807
|
-
const
|
|
4808
|
-
let F =
|
|
4841
|
+
}), $r = (b) => {
|
|
4842
|
+
const x = structuredClone(b);
|
|
4843
|
+
let F = x.length, ue;
|
|
4809
4844
|
for (; F != 0; )
|
|
4810
|
-
|
|
4811
|
-
return
|
|
4812
|
-
},
|
|
4845
|
+
ue = Math.floor(Math.random() * F), F--, [x[F], x[ue]] = [x[ue], x[F]];
|
|
4846
|
+
return x;
|
|
4847
|
+
}, gt = () => {
|
|
4813
4848
|
window.postMessage(
|
|
4814
4849
|
{
|
|
4815
4850
|
type: h,
|
|
4816
4851
|
gameId: T.gId || T.id
|
|
4817
4852
|
},
|
|
4818
4853
|
window.location.href
|
|
4819
|
-
),
|
|
4854
|
+
), r(5, L = !1), window.postMessage({ type: "RandomWidgetState", state: !1 }, window.location.href), typeof gtag == "function" && gtag("event", "OpenGame", {
|
|
4820
4855
|
context: "RandomGameWidget",
|
|
4821
4856
|
gameId: `${T.gId || T.id}`
|
|
4822
4857
|
});
|
|
4823
|
-
},
|
|
4824
|
-
|
|
4825
|
-
},
|
|
4826
|
-
|
|
4858
|
+
}, Fr = () => {
|
|
4859
|
+
r(5, L = !1), window.postMessage({ type: "RandomWidgetState", state: L }, window.location.href);
|
|
4860
|
+
}, Dr = () => {
|
|
4861
|
+
Co(l);
|
|
4827
4862
|
};
|
|
4828
|
-
|
|
4863
|
+
pn(() => () => {
|
|
4829
4864
|
});
|
|
4830
|
-
function
|
|
4865
|
+
function jr(b) {
|
|
4831
4866
|
Ae[b ? "unshift" : "push"](() => {
|
|
4832
|
-
Q = b,
|
|
4867
|
+
Q = b, r(8, Q);
|
|
4833
4868
|
});
|
|
4834
4869
|
}
|
|
4835
|
-
const
|
|
4836
|
-
function
|
|
4870
|
+
const kr = () => Ue(), Vr = () => gt(), Wr = () => Ue();
|
|
4871
|
+
function Xr(b) {
|
|
4837
4872
|
Ae[b ? "unshift" : "push"](() => {
|
|
4838
|
-
|
|
4873
|
+
$ = b, r(2, $);
|
|
4839
4874
|
});
|
|
4840
4875
|
}
|
|
4841
4876
|
return e.$$set = (b) => {
|
|
4842
|
-
"endpoint" in b &&
|
|
4877
|
+
"endpoint" in b && r(13, a = b.endpoint), "datasource" in b && r(14, s = b.datasource), "gameevent" in b && r(15, h = b.gameevent), "lang" in b && r(16, l = b.lang), "randombuttonicon" in b && r(0, u = b.randombuttonicon), "buttontext" in b && r(1, f = b.buttontext), "translationurl" in b && r(17, c = b.translationurl), "clientstyling" in b && r(18, m = b.clientstyling), "clientstylingurl" in b && r(19, d = b.clientstylingurl), "filteredrandomgamecategories" in b && r(20, p = b.filteredrandomgamecategories), "mbsource" in b && r(21, A = b.mbsource), "$$scope" in b && r(22, o = b.$$scope);
|
|
4843
4878
|
}, e.$$.update = () => {
|
|
4844
4879
|
e.$$.dirty[0] & /*lang*/
|
|
4845
|
-
65536 && l &&
|
|
4846
|
-
131072 && c &&
|
|
4847
|
-
24576 && a && s &&
|
|
4848
|
-
262148 &&
|
|
4849
|
-
524292 &&
|
|
4850
|
-
2097156 &&
|
|
4880
|
+
65536 && l && Dr(), e.$$.dirty[0] & /*translationurl*/
|
|
4881
|
+
131072 && c && Mr(), e.$$.dirty[0] & /*endpoint, datasource*/
|
|
4882
|
+
24576 && a && s && Cr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4883
|
+
262148 && m && $ && Io($, m), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4884
|
+
524292 && d && $ && No($, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4885
|
+
2097156 && $ && Lo($, `${A}.Style`);
|
|
4851
4886
|
}, [
|
|
4852
4887
|
u,
|
|
4853
4888
|
f,
|
|
4854
|
-
|
|
4889
|
+
$,
|
|
4855
4890
|
T,
|
|
4856
4891
|
B,
|
|
4857
|
-
M,
|
|
4858
4892
|
L,
|
|
4859
|
-
|
|
4893
|
+
M,
|
|
4894
|
+
U,
|
|
4860
4895
|
Q,
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4896
|
+
n,
|
|
4897
|
+
Ue,
|
|
4898
|
+
gt,
|
|
4899
|
+
Fr,
|
|
4865
4900
|
a,
|
|
4866
4901
|
s,
|
|
4867
4902
|
h,
|
|
4868
4903
|
l,
|
|
4869
4904
|
c,
|
|
4870
|
-
d,
|
|
4871
4905
|
m,
|
|
4906
|
+
d,
|
|
4872
4907
|
p,
|
|
4873
4908
|
A,
|
|
4874
4909
|
o,
|
|
4875
4910
|
i,
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4911
|
+
jr,
|
|
4912
|
+
kr,
|
|
4913
|
+
Vr,
|
|
4914
|
+
Wr,
|
|
4915
|
+
Xr
|
|
4881
4916
|
];
|
|
4882
4917
|
}
|
|
4883
|
-
class
|
|
4918
|
+
class Jo extends Hn {
|
|
4884
4919
|
constructor(t) {
|
|
4885
|
-
super(),
|
|
4920
|
+
super(), Sn(
|
|
4886
4921
|
this,
|
|
4887
4922
|
t,
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4923
|
+
zo,
|
|
4924
|
+
Xo,
|
|
4925
|
+
Kt,
|
|
4891
4926
|
{
|
|
4892
4927
|
endpoint: 13,
|
|
4893
4928
|
datasource: 14,
|
|
@@ -4901,7 +4936,7 @@ class Vo extends Er {
|
|
|
4901
4936
|
filteredrandomgamecategories: 20,
|
|
4902
4937
|
mbsource: 21
|
|
4903
4938
|
},
|
|
4904
|
-
|
|
4939
|
+
Go,
|
|
4905
4940
|
[-1, -1]
|
|
4906
4941
|
);
|
|
4907
4942
|
}
|
|
@@ -4909,70 +4944,70 @@ class Vo extends Er {
|
|
|
4909
4944
|
return this.$$.ctx[13];
|
|
4910
4945
|
}
|
|
4911
4946
|
set endpoint(t) {
|
|
4912
|
-
this.$$set({ endpoint: t }),
|
|
4947
|
+
this.$$set({ endpoint: t }), R();
|
|
4913
4948
|
}
|
|
4914
4949
|
get datasource() {
|
|
4915
4950
|
return this.$$.ctx[14];
|
|
4916
4951
|
}
|
|
4917
4952
|
set datasource(t) {
|
|
4918
|
-
this.$$set({ datasource: t }),
|
|
4953
|
+
this.$$set({ datasource: t }), R();
|
|
4919
4954
|
}
|
|
4920
4955
|
get gameevent() {
|
|
4921
4956
|
return this.$$.ctx[15];
|
|
4922
4957
|
}
|
|
4923
4958
|
set gameevent(t) {
|
|
4924
|
-
this.$$set({ gameevent: t }),
|
|
4959
|
+
this.$$set({ gameevent: t }), R();
|
|
4925
4960
|
}
|
|
4926
4961
|
get lang() {
|
|
4927
4962
|
return this.$$.ctx[16];
|
|
4928
4963
|
}
|
|
4929
4964
|
set lang(t) {
|
|
4930
|
-
this.$$set({ lang: t }),
|
|
4965
|
+
this.$$set({ lang: t }), R();
|
|
4931
4966
|
}
|
|
4932
4967
|
get randombuttonicon() {
|
|
4933
4968
|
return this.$$.ctx[0];
|
|
4934
4969
|
}
|
|
4935
4970
|
set randombuttonicon(t) {
|
|
4936
|
-
this.$$set({ randombuttonicon: t }),
|
|
4971
|
+
this.$$set({ randombuttonicon: t }), R();
|
|
4937
4972
|
}
|
|
4938
4973
|
get buttontext() {
|
|
4939
4974
|
return this.$$.ctx[1];
|
|
4940
4975
|
}
|
|
4941
4976
|
set buttontext(t) {
|
|
4942
|
-
this.$$set({ buttontext: t }),
|
|
4977
|
+
this.$$set({ buttontext: t }), R();
|
|
4943
4978
|
}
|
|
4944
4979
|
get translationurl() {
|
|
4945
4980
|
return this.$$.ctx[17];
|
|
4946
4981
|
}
|
|
4947
4982
|
set translationurl(t) {
|
|
4948
|
-
this.$$set({ translationurl: t }),
|
|
4983
|
+
this.$$set({ translationurl: t }), R();
|
|
4949
4984
|
}
|
|
4950
4985
|
get clientstyling() {
|
|
4951
4986
|
return this.$$.ctx[18];
|
|
4952
4987
|
}
|
|
4953
4988
|
set clientstyling(t) {
|
|
4954
|
-
this.$$set({ clientstyling: t }),
|
|
4989
|
+
this.$$set({ clientstyling: t }), R();
|
|
4955
4990
|
}
|
|
4956
4991
|
get clientstylingurl() {
|
|
4957
4992
|
return this.$$.ctx[19];
|
|
4958
4993
|
}
|
|
4959
4994
|
set clientstylingurl(t) {
|
|
4960
|
-
this.$$set({ clientstylingurl: t }),
|
|
4995
|
+
this.$$set({ clientstylingurl: t }), R();
|
|
4961
4996
|
}
|
|
4962
4997
|
get filteredrandomgamecategories() {
|
|
4963
4998
|
return this.$$.ctx[20];
|
|
4964
4999
|
}
|
|
4965
5000
|
set filteredrandomgamecategories(t) {
|
|
4966
|
-
this.$$set({ filteredrandomgamecategories: t }),
|
|
5001
|
+
this.$$set({ filteredrandomgamecategories: t }), R();
|
|
4967
5002
|
}
|
|
4968
5003
|
get mbsource() {
|
|
4969
5004
|
return this.$$.ctx[21];
|
|
4970
5005
|
}
|
|
4971
5006
|
set mbsource(t) {
|
|
4972
|
-
this.$$set({ mbsource: t }),
|
|
5007
|
+
this.$$set({ mbsource: t }), R();
|
|
4973
5008
|
}
|
|
4974
5009
|
}
|
|
4975
|
-
|
|
5010
|
+
Tn(Jo, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {}, mbsource: {} }, ["close"], [], !0);
|
|
4976
5011
|
export {
|
|
4977
|
-
|
|
5012
|
+
Jo as default
|
|
4978
5013
|
};
|