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