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