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