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