@everymatrix/casino-lobby-mini-games 0.3.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoLobbyMiniGames-BY57Q6t9.js → CasinoLobbyMiniGames-BryWSr_q.js} +839 -874
- package/components/CasinoLobbyMiniGames-n4MOHFqS.cjs +20 -0
- package/components/{CasinoLobbyMiniGames-Bh5LeG52.js → CasinoLobbyMiniGames-sNUyjxD5.js} +804 -839
- package/components/{CasinoMysteryChestContainer-IiI_otYE.js → CasinoMysteryChestContainer-CdhHMGFs.js} +16 -16
- package/components/{CasinoMysteryChestContainer-Z25Fea_T.cjs → CasinoMysteryChestContainer-D15BPVsB.cjs} +1 -1
- package/components/{CasinoMysteryChestContainer-wxjkuWy1.js → CasinoMysteryChestContainer-D7JtkMJ9.js} +18 -18
- package/components/{CasinoMysteryChestDetails-Dqlj_CKW.js → CasinoMysteryChestDetails--0wC24zE.js} +169 -169
- package/components/{CasinoMysteryChestDetails-Chfd66X8.js → CasinoMysteryChestDetails-D5dMcrfJ.js} +183 -183
- package/components/{CasinoMysteryChestDetails-foimB6DB.cjs → CasinoMysteryChestDetails-xS_2_kXB.cjs} +2 -2
- package/components/{CasinoMysteryChestModal-CC3ky83r.js → CasinoMysteryChestModal-Dg8ZAcJN.js} +13 -13
- package/components/{CasinoMysteryChestModal-a-4F-9oK.cjs → CasinoMysteryChestModal-DoD9hwC0.cjs} +1 -1
- package/components/{CasinoMysteryChestModal-CePqroCF.js → CasinoMysteryChestModal-GMfH3Nfr.js} +16 -16
- package/components/CasinoMysteryChestsList-6U8-I26u.cjs +1 -0
- package/components/{CasinoMysteryChestsList-DK9sWaBi.js → CasinoMysteryChestsList-BT105bIk.js} +565 -563
- package/components/{CasinoMysteryChestsList-IyypXB58.js → CasinoMysteryChestsList-D2r8u6uw.js} +593 -591
- package/components/{GeneralAnimationLoading-kV60Vm7G.js → GeneralAnimationLoading-5QXKFRlL.js} +13 -13
- package/components/{GeneralAnimationLoading-C5zco7Jv.js → GeneralAnimationLoading-5lYCjCwv.js} +17 -17
- package/components/{GeneralAnimationLoading-ie71G-dL.cjs → GeneralAnimationLoading-CRL3xtro.cjs} +1 -1
- package/es2015/casino-lobby-mini-games.cjs +1 -1
- package/es2015/casino-lobby-mini-games.js +1 -1
- package/esnext/casino-lobby-mini-games.js +1 -1
- package/package.json +1 -1
- package/components/CasinoLobbyMiniGames-CajMXLVl.cjs +0 -20
- package/components/CasinoMysteryChestsList-Bub2sm61.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var vr = Object.defineProperty, _r = Object.defineProperties;
|
|
2
|
+
var Er = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ut = Object.getOwnPropertySymbols;
|
|
4
|
+
var xr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Le = (e, t, r) => t in e ? vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ht = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
xr.call(t, r) && Le(e, r, t[r]);
|
|
8
|
+
if (ut)
|
|
9
|
+
for (var r of ut(t))
|
|
10
|
+
Sr.call(t, r) && Le(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var N = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, lt = (e, t) => _r(e, Er(t));
|
|
13
|
+
var N = (e, t, r) => (Le(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var Me = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -29,29 +29,29 @@ var $e = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function I() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function $t(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function ft() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ne(e) {
|
|
39
|
+
e.forEach($t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function nt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Rt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let be;
|
|
48
|
-
function
|
|
48
|
+
function fs(e, t) {
|
|
49
49
|
return e === t ? !0 : (be || (be = document.createElement("a")), be.href = t, e === be.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Tr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Ut(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,20 +60,20 @@ function jt(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function Hr(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(Ut(t, r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function w(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function wr(e, t, r) {
|
|
70
|
+
const n = Br(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
72
|
const i = C("style");
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
i.id = t, i.textContent = r, Ar(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Br(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,20 +83,20 @@ function Cr(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function Ar(e, t) {
|
|
87
|
+
return w(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
90
90
|
t
|
|
91
91
|
), t.sheet;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function ie(e, t, r) {
|
|
94
94
|
e.insertBefore(t, r || null);
|
|
95
95
|
}
|
|
96
96
|
function V(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function cs(e, t) {
|
|
100
100
|
for (let r = 0; r < e.length; r += 1)
|
|
101
101
|
e[r] && e[r].d(t);
|
|
102
102
|
}
|
|
@@ -109,20 +109,20 @@ function q(e) {
|
|
|
109
109
|
function ye() {
|
|
110
110
|
return q(" ");
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function ds() {
|
|
113
113
|
return q("");
|
|
114
114
|
}
|
|
115
115
|
function ge(e, t, r, n) {
|
|
116
116
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function B(e, t, r) {
|
|
119
119
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
120
120
|
}
|
|
121
121
|
function R(e, t, r) {
|
|
122
122
|
const n = t.toLowerCase();
|
|
123
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
123
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : B(e, t, r);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Or(e) {
|
|
126
126
|
return Array.from(e.childNodes);
|
|
127
127
|
}
|
|
128
128
|
function ve(e, t) {
|
|
@@ -132,7 +132,7 @@ function ve(e, t) {
|
|
|
132
132
|
function F(e, t, r) {
|
|
133
133
|
e.classList.toggle(t, !!r);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Pr(e) {
|
|
136
136
|
const t = {};
|
|
137
137
|
return e.childNodes.forEach(
|
|
138
138
|
/** @param {Element} node */
|
|
@@ -141,90 +141,90 @@ function Mr(e) {
|
|
|
141
141
|
}
|
|
142
142
|
), t;
|
|
143
143
|
}
|
|
144
|
-
let
|
|
145
|
-
function
|
|
146
|
-
|
|
144
|
+
let fe;
|
|
145
|
+
function le(e) {
|
|
146
|
+
fe = e;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
if (!
|
|
148
|
+
function Cr() {
|
|
149
|
+
if (!fe)
|
|
150
150
|
throw new Error("Function called outside component initialization");
|
|
151
|
-
return
|
|
151
|
+
return fe;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
|
|
153
|
+
function Ir(e) {
|
|
154
|
+
Cr().$$.on_mount.push(e);
|
|
155
155
|
}
|
|
156
|
-
const Q = [],
|
|
156
|
+
const Q = [], je = [];
|
|
157
157
|
let J = [];
|
|
158
|
-
const
|
|
159
|
-
let
|
|
160
|
-
function
|
|
161
|
-
|
|
158
|
+
const ct = [], Lr = /* @__PURE__ */ Promise.resolve();
|
|
159
|
+
let ke = !1;
|
|
160
|
+
function Mr() {
|
|
161
|
+
ke || (ke = !0, Lr.then(U));
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Ve(e) {
|
|
164
164
|
J.push(e);
|
|
165
165
|
}
|
|
166
|
-
const
|
|
166
|
+
const Ne = /* @__PURE__ */ new Set();
|
|
167
167
|
let z = 0;
|
|
168
|
-
function
|
|
168
|
+
function U() {
|
|
169
169
|
if (z !== 0)
|
|
170
170
|
return;
|
|
171
|
-
const e =
|
|
171
|
+
const e = fe;
|
|
172
172
|
do {
|
|
173
173
|
try {
|
|
174
174
|
for (; z < Q.length; ) {
|
|
175
175
|
const t = Q[z];
|
|
176
|
-
z++,
|
|
176
|
+
z++, le(t), Nr(t.$$);
|
|
177
177
|
}
|
|
178
178
|
} catch (t) {
|
|
179
179
|
throw Q.length = 0, z = 0, t;
|
|
180
180
|
}
|
|
181
|
-
for (
|
|
182
|
-
|
|
181
|
+
for (le(null), Q.length = 0, z = 0; je.length; )
|
|
182
|
+
je.pop()();
|
|
183
183
|
for (let t = 0; t < J.length; t += 1) {
|
|
184
184
|
const r = J[t];
|
|
185
|
-
|
|
185
|
+
Ne.has(r) || (Ne.add(r), r());
|
|
186
186
|
}
|
|
187
187
|
J.length = 0;
|
|
188
188
|
} while (Q.length);
|
|
189
|
-
for (;
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
for (; ct.length; )
|
|
190
|
+
ct.pop()();
|
|
191
|
+
ke = !1, Ne.clear(), le(e);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Nr(e) {
|
|
194
194
|
if (e.fragment !== null) {
|
|
195
|
-
e.update(),
|
|
195
|
+
e.update(), ne(e.before_update);
|
|
196
196
|
const t = e.dirty;
|
|
197
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
197
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function $r(e) {
|
|
201
201
|
const t = [], r = [];
|
|
202
202
|
J.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), J = t;
|
|
203
203
|
}
|
|
204
|
-
const
|
|
205
|
-
function
|
|
206
|
-
e && e.i && (
|
|
204
|
+
const Rr = /* @__PURE__ */ new Set();
|
|
205
|
+
function Ur(e, t) {
|
|
206
|
+
e && e.i && (Rr.delete(e), e.i(t));
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function ps(e) {
|
|
209
209
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Dr(e, t, r) {
|
|
212
212
|
const { fragment: n, after_update: i } = e.$$;
|
|
213
|
-
n && n.m(t, r),
|
|
214
|
-
const s = e.$$.on_mount.map(
|
|
215
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
216
|
-
}), i.forEach(
|
|
213
|
+
n && n.m(t, r), Ve(() => {
|
|
214
|
+
const s = e.$$.on_mount.map($t).filter(nt);
|
|
215
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ne(s), e.$$.on_mount = [];
|
|
216
|
+
}), i.forEach(Ve);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function Gr(e, t) {
|
|
219
219
|
const r = e.$$;
|
|
220
|
-
r.fragment !== null && (
|
|
220
|
+
r.fragment !== null && ($r(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
e.$$.dirty[0] === -1 && (Q.push(e),
|
|
222
|
+
function Fr(e, t) {
|
|
223
|
+
e.$$.dirty[0] === -1 && (Q.push(e), Mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
const h =
|
|
227
|
-
|
|
225
|
+
function jr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
226
|
+
const h = fe;
|
|
227
|
+
le(e);
|
|
228
228
|
const u = e.$$ = {
|
|
229
229
|
fragment: null,
|
|
230
230
|
ctx: [],
|
|
@@ -232,7 +232,7 @@ function Wr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
232
232
|
props: s,
|
|
233
233
|
update: I,
|
|
234
234
|
not_equal: i,
|
|
235
|
-
bound:
|
|
235
|
+
bound: ft(),
|
|
236
236
|
// lifecycle
|
|
237
237
|
on_mount: [],
|
|
238
238
|
on_destroy: [],
|
|
@@ -241,28 +241,28 @@ function Wr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
241
241
|
after_update: [],
|
|
242
242
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
243
243
|
// everything else
|
|
244
|
-
callbacks:
|
|
244
|
+
callbacks: ft(),
|
|
245
245
|
dirty: a,
|
|
246
246
|
skip_bound: !1,
|
|
247
247
|
root: t.target || h.$$.root
|
|
248
248
|
};
|
|
249
249
|
o && o(u.root);
|
|
250
250
|
let l = !1;
|
|
251
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
252
|
-
const y =
|
|
253
|
-
return u.ctx && i(u.ctx[
|
|
254
|
-
}) : [], u.update(), l = !0,
|
|
251
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
252
|
+
const y = d.length ? d[0] : c;
|
|
253
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = y) && (!u.skip_bound && u.bound[f] && u.bound[f](y), l && Fr(e, f)), c;
|
|
254
|
+
}) : [], u.update(), l = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
255
255
|
if (t.hydrate) {
|
|
256
|
-
const
|
|
257
|
-
u.fragment && u.fragment.l(
|
|
256
|
+
const f = Or(t.target);
|
|
257
|
+
u.fragment && u.fragment.l(f), f.forEach(V);
|
|
258
258
|
} else
|
|
259
259
|
u.fragment && u.fragment.c();
|
|
260
|
-
t.intro &&
|
|
260
|
+
t.intro && Ur(e.$$.fragment), Dr(e, t.target, t.anchor), U();
|
|
261
261
|
}
|
|
262
|
-
|
|
262
|
+
le(h);
|
|
263
263
|
}
|
|
264
|
-
let
|
|
265
|
-
typeof HTMLElement == "function" && (
|
|
264
|
+
let Dt;
|
|
265
|
+
typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
|
|
266
266
|
constructor(t, r, n) {
|
|
267
267
|
super();
|
|
268
268
|
/** The Svelte component constructor */
|
|
@@ -299,21 +299,21 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
connectedCallback() {
|
|
302
|
-
return
|
|
302
|
+
return Me(this, null, function* () {
|
|
303
303
|
if (this.$$cn = !0, !this.$$c) {
|
|
304
304
|
let t = function(s) {
|
|
305
305
|
return () => {
|
|
306
306
|
let o;
|
|
307
307
|
return {
|
|
308
308
|
c: function() {
|
|
309
|
-
o = C("slot"), s !== "default" &&
|
|
309
|
+
o = C("slot"), s !== "default" && B(o, "name", s);
|
|
310
310
|
},
|
|
311
311
|
/**
|
|
312
312
|
* @param {HTMLElement} target
|
|
313
313
|
* @param {HTMLElement} [anchor]
|
|
314
314
|
*/
|
|
315
315
|
m: function(u, l) {
|
|
316
|
-
|
|
316
|
+
ie(u, o, l);
|
|
317
317
|
},
|
|
318
318
|
d: function(u) {
|
|
319
319
|
u && V(o);
|
|
@@ -323,7 +323,7 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
323
323
|
};
|
|
324
324
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
325
325
|
return;
|
|
326
|
-
const r = {}, n =
|
|
326
|
+
const r = {}, n = Pr(this);
|
|
327
327
|
for (const s of this.$$s)
|
|
328
328
|
s in n && (r[s] = [t(s)]);
|
|
329
329
|
for (const s of this.attributes) {
|
|
@@ -334,7 +334,7 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
334
334
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
335
335
|
this.$$c = new this.$$ctor({
|
|
336
336
|
target: this.shadowRoot || this,
|
|
337
|
-
props:
|
|
337
|
+
props: lt(ht({}, this.$$d), {
|
|
338
338
|
$$slots: r,
|
|
339
339
|
$$scope: {
|
|
340
340
|
ctx: []
|
|
@@ -412,8 +412,8 @@ function xe(e, t, r, n) {
|
|
|
412
412
|
return t;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
function
|
|
416
|
-
let o = class extends
|
|
415
|
+
function kr(e, t, r, n, i, s) {
|
|
416
|
+
let o = class extends Dt {
|
|
417
417
|
constructor() {
|
|
418
418
|
super(e, r, i), this.$$p_d = t;
|
|
419
419
|
}
|
|
@@ -443,7 +443,7 @@ function zr(e, t, r, n, i, s) {
|
|
|
443
443
|
}), e.element = /** @type {any} */
|
|
444
444
|
o, o;
|
|
445
445
|
}
|
|
446
|
-
class
|
|
446
|
+
class Vr {
|
|
447
447
|
constructor() {
|
|
448
448
|
/**
|
|
449
449
|
* ### PRIVATE API
|
|
@@ -464,7 +464,7 @@ class Zr {
|
|
|
464
464
|
}
|
|
465
465
|
/** @returns {void} */
|
|
466
466
|
$destroy() {
|
|
467
|
-
|
|
467
|
+
Gr(this, 1), this.$destroy = I;
|
|
468
468
|
}
|
|
469
469
|
/**
|
|
470
470
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -473,7 +473,7 @@ class Zr {
|
|
|
473
473
|
* @returns {() => void}
|
|
474
474
|
*/
|
|
475
475
|
$on(t, r) {
|
|
476
|
-
if (!
|
|
476
|
+
if (!nt(r))
|
|
477
477
|
return I;
|
|
478
478
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
479
479
|
return n.push(r), () => {
|
|
@@ -486,11 +486,11 @@ class Zr {
|
|
|
486
486
|
* @returns {void}
|
|
487
487
|
*/
|
|
488
488
|
$set(t) {
|
|
489
|
-
this.$$set && !
|
|
489
|
+
this.$$set && !Tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
const
|
|
493
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
492
|
+
const Xr = "4";
|
|
493
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Xr);
|
|
494
494
|
if (typeof window != "undefined") {
|
|
495
495
|
let e = function(t) {
|
|
496
496
|
return function(...r) {
|
|
@@ -503,7 +503,7 @@ if (typeof window != "undefined") {
|
|
|
503
503
|
}
|
|
504
504
|
};
|
|
505
505
|
};
|
|
506
|
-
customElements.define = e(customElements.define), import("./CasinoMysteryChestContainer-
|
|
506
|
+
customElements.define = e(customElements.define), import("./CasinoMysteryChestContainer-D7JtkMJ9.js").then(({ default: t }) => {
|
|
507
507
|
!customElements.get("casino-mystery-chest-container") && customElements.define("casino-mystery-chest-container", t.element);
|
|
508
508
|
});
|
|
509
509
|
}
|
|
@@ -521,24 +521,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
521
521
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
522
522
|
PERFORMANCE OF THIS SOFTWARE.
|
|
523
523
|
***************************************************************************** */
|
|
524
|
-
var
|
|
525
|
-
return
|
|
524
|
+
var Xe = function(e, t) {
|
|
525
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
526
526
|
r.__proto__ = n;
|
|
527
527
|
} || function(r, n) {
|
|
528
528
|
for (var i in n)
|
|
529
529
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
530
|
-
},
|
|
530
|
+
}, Xe(e, t);
|
|
531
531
|
};
|
|
532
|
-
function
|
|
532
|
+
function G(e, t) {
|
|
533
533
|
if (typeof t != "function" && t !== null)
|
|
534
534
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
535
|
-
|
|
535
|
+
Xe(e, t);
|
|
536
536
|
function r() {
|
|
537
537
|
this.constructor = e;
|
|
538
538
|
}
|
|
539
539
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
var v = function() {
|
|
542
|
+
return v = Object.assign || function(t) {
|
|
543
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
544
|
+
r = arguments[n];
|
|
545
|
+
for (var s in r)
|
|
546
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
547
|
+
}
|
|
548
|
+
return t;
|
|
549
|
+
}, v.apply(this, arguments);
|
|
550
|
+
};
|
|
551
|
+
function Wr(e, t) {
|
|
552
|
+
var r = {};
|
|
553
|
+
for (var n in e)
|
|
554
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
555
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
556
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
557
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
558
|
+
return r;
|
|
559
|
+
}
|
|
560
|
+
function We(e) {
|
|
542
561
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
543
562
|
if (r)
|
|
544
563
|
return r.call(e);
|
|
@@ -550,7 +569,7 @@ function Qe(e) {
|
|
|
550
569
|
};
|
|
551
570
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
552
571
|
}
|
|
553
|
-
function
|
|
572
|
+
function ze(e, t) {
|
|
554
573
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
555
574
|
if (!r)
|
|
556
575
|
return e;
|
|
@@ -570,22 +589,22 @@ function qe(e, t) {
|
|
|
570
589
|
}
|
|
571
590
|
return s;
|
|
572
591
|
}
|
|
573
|
-
function
|
|
574
|
-
if (arguments.length === 2)
|
|
592
|
+
function Y(e, t, r) {
|
|
593
|
+
if (r || arguments.length === 2)
|
|
575
594
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
576
595
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
577
596
|
return e.concat(s || t);
|
|
578
597
|
}
|
|
579
|
-
function
|
|
598
|
+
function D(e) {
|
|
580
599
|
return typeof e == "function";
|
|
581
600
|
}
|
|
582
|
-
function
|
|
601
|
+
function Gt(e) {
|
|
583
602
|
var t = function(n) {
|
|
584
603
|
Error.call(n), n.stack = new Error().stack;
|
|
585
604
|
}, r = e(t);
|
|
586
605
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
587
606
|
}
|
|
588
|
-
var
|
|
607
|
+
var $e = Gt(function(e) {
|
|
589
608
|
return function(r) {
|
|
590
609
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
591
610
|
` + r.map(function(n, i) {
|
|
@@ -594,13 +613,13 @@ var Ue = Vt(function(e) {
|
|
|
594
613
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
595
614
|
};
|
|
596
615
|
});
|
|
597
|
-
function
|
|
616
|
+
function Ze(e, t) {
|
|
598
617
|
if (e) {
|
|
599
618
|
var r = e.indexOf(t);
|
|
600
619
|
0 <= r && e.splice(r, 1);
|
|
601
620
|
}
|
|
602
621
|
}
|
|
603
|
-
var
|
|
622
|
+
var Oe = function() {
|
|
604
623
|
function e(t) {
|
|
605
624
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
606
625
|
}
|
|
@@ -612,7 +631,7 @@ var Pe = function() {
|
|
|
612
631
|
if (o)
|
|
613
632
|
if (this._parentage = null, Array.isArray(o))
|
|
614
633
|
try {
|
|
615
|
-
for (var a =
|
|
634
|
+
for (var a = We(o), h = a.next(); !h.done; h = a.next()) {
|
|
616
635
|
var u = h.value;
|
|
617
636
|
u.remove(this);
|
|
618
637
|
}
|
|
@@ -629,29 +648,29 @@ var Pe = function() {
|
|
|
629
648
|
else
|
|
630
649
|
o.remove(this);
|
|
631
650
|
var l = this.initialTeardown;
|
|
632
|
-
if (
|
|
651
|
+
if (D(l))
|
|
633
652
|
try {
|
|
634
653
|
l();
|
|
635
654
|
} catch (g) {
|
|
636
|
-
s = g instanceof
|
|
655
|
+
s = g instanceof $e ? g.errors : [g];
|
|
637
656
|
}
|
|
638
|
-
var
|
|
639
|
-
if (
|
|
657
|
+
var f = this._finalizers;
|
|
658
|
+
if (f) {
|
|
640
659
|
this._finalizers = null;
|
|
641
660
|
try {
|
|
642
|
-
for (var
|
|
643
|
-
var y =
|
|
661
|
+
for (var c = We(f), d = c.next(); !d.done; d = c.next()) {
|
|
662
|
+
var y = d.value;
|
|
644
663
|
try {
|
|
645
|
-
|
|
664
|
+
dt(y);
|
|
646
665
|
} catch (g) {
|
|
647
|
-
s = s != null ? s : [], g instanceof
|
|
666
|
+
s = s != null ? s : [], g instanceof $e ? s = Y(Y([], ze(s)), ze(g.errors)) : s.push(g);
|
|
648
667
|
}
|
|
649
668
|
}
|
|
650
669
|
} catch (g) {
|
|
651
670
|
n = { error: g };
|
|
652
671
|
} finally {
|
|
653
672
|
try {
|
|
654
|
-
|
|
673
|
+
d && !d.done && (i = c.return) && i.call(c);
|
|
655
674
|
} finally {
|
|
656
675
|
if (n)
|
|
657
676
|
throw n.error;
|
|
@@ -659,13 +678,13 @@ var Pe = function() {
|
|
|
659
678
|
}
|
|
660
679
|
}
|
|
661
680
|
if (s)
|
|
662
|
-
throw new
|
|
681
|
+
throw new $e(s);
|
|
663
682
|
}
|
|
664
683
|
}, e.prototype.add = function(t) {
|
|
665
684
|
var r;
|
|
666
685
|
if (t && t !== this)
|
|
667
686
|
if (this.closed)
|
|
668
|
-
|
|
687
|
+
dt(t);
|
|
669
688
|
else {
|
|
670
689
|
if (t instanceof e) {
|
|
671
690
|
if (t.closed || t._hasParent(this))
|
|
@@ -682,52 +701,56 @@ var Pe = function() {
|
|
|
682
701
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
683
702
|
}, e.prototype._removeParent = function(t) {
|
|
684
703
|
var r = this._parentage;
|
|
685
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
704
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ze(r, t);
|
|
686
705
|
}, e.prototype.remove = function(t) {
|
|
687
706
|
var r = this._finalizers;
|
|
688
|
-
r &&
|
|
707
|
+
r && Ze(r, t), t instanceof e && t._removeParent(this);
|
|
689
708
|
}, e.EMPTY = function() {
|
|
690
709
|
var t = new e();
|
|
691
710
|
return t.closed = !0, t;
|
|
692
711
|
}(), e;
|
|
693
|
-
}(),
|
|
694
|
-
function
|
|
695
|
-
return e instanceof
|
|
696
|
-
}
|
|
697
|
-
function
|
|
698
|
-
|
|
699
|
-
}
|
|
700
|
-
var
|
|
701
|
-
|
|
702
|
-
|
|
712
|
+
}(), Ft = Oe.EMPTY;
|
|
713
|
+
function jt(e) {
|
|
714
|
+
return e instanceof Oe || e && "closed" in e && D(e.remove) && D(e.add) && D(e.unsubscribe);
|
|
715
|
+
}
|
|
716
|
+
function dt(e) {
|
|
717
|
+
D(e) ? e() : e.unsubscribe();
|
|
718
|
+
}
|
|
719
|
+
var zr = {
|
|
720
|
+
onUnhandledError: null,
|
|
721
|
+
onStoppedNotification: null,
|
|
722
|
+
Promise: void 0,
|
|
723
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
724
|
+
useDeprecatedNextContext: !1
|
|
725
|
+
}, Zr = {
|
|
703
726
|
setTimeout: function(e, t) {
|
|
704
727
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
705
728
|
r[n - 2] = arguments[n];
|
|
706
|
-
return setTimeout.apply(void 0,
|
|
729
|
+
return setTimeout.apply(void 0, Y([e, t], ze(r)));
|
|
707
730
|
},
|
|
708
731
|
clearTimeout: function(e) {
|
|
709
732
|
return clearTimeout(e);
|
|
710
733
|
},
|
|
711
734
|
delegate: void 0
|
|
712
735
|
};
|
|
713
|
-
function
|
|
714
|
-
|
|
736
|
+
function Qr(e) {
|
|
737
|
+
Zr.setTimeout(function() {
|
|
715
738
|
throw e;
|
|
716
739
|
});
|
|
717
740
|
}
|
|
718
|
-
function
|
|
741
|
+
function pt() {
|
|
719
742
|
}
|
|
720
743
|
function Se(e) {
|
|
721
744
|
e();
|
|
722
745
|
}
|
|
723
|
-
var
|
|
724
|
-
|
|
746
|
+
var kt = function(e) {
|
|
747
|
+
G(t, e);
|
|
725
748
|
function t(r) {
|
|
726
749
|
var n = e.call(this) || this;
|
|
727
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
750
|
+
return n.isStopped = !1, r ? (n.destination = r, jt(r) && r.add(n)) : n.destination = Yr, n;
|
|
728
751
|
}
|
|
729
752
|
return t.create = function(r, n, i) {
|
|
730
|
-
return new
|
|
753
|
+
return new Qe(r, n, i);
|
|
731
754
|
}, t.prototype.next = function(r) {
|
|
732
755
|
this.isStopped || this._next(r);
|
|
733
756
|
}, t.prototype.error = function(r) {
|
|
@@ -751,7 +774,7 @@ var zt = function(e) {
|
|
|
751
774
|
this.unsubscribe();
|
|
752
775
|
}
|
|
753
776
|
}, t;
|
|
754
|
-
}(
|
|
777
|
+
}(Oe), qr = function() {
|
|
755
778
|
function e(t) {
|
|
756
779
|
this.partialObserver = t;
|
|
757
780
|
}
|
|
@@ -782,43 +805,43 @@ var zt = function(e) {
|
|
|
782
805
|
_e(r);
|
|
783
806
|
}
|
|
784
807
|
}, e;
|
|
785
|
-
}(),
|
|
786
|
-
|
|
808
|
+
}(), Qe = function(e) {
|
|
809
|
+
G(t, e);
|
|
787
810
|
function t(r, n, i) {
|
|
788
811
|
var s = e.call(this) || this, o;
|
|
789
|
-
return
|
|
812
|
+
return D(r) || !r ? o = {
|
|
790
813
|
next: r != null ? r : void 0,
|
|
791
814
|
error: n != null ? n : void 0,
|
|
792
815
|
complete: i != null ? i : void 0
|
|
793
|
-
} : o = r, s.destination = new
|
|
816
|
+
} : o = r, s.destination = new qr(o), s;
|
|
794
817
|
}
|
|
795
818
|
return t;
|
|
796
|
-
}(
|
|
819
|
+
}(kt);
|
|
797
820
|
function _e(e) {
|
|
798
|
-
|
|
821
|
+
Qr(e);
|
|
799
822
|
}
|
|
800
|
-
function
|
|
823
|
+
function Jr(e) {
|
|
801
824
|
throw e;
|
|
802
825
|
}
|
|
803
|
-
var
|
|
826
|
+
var Yr = {
|
|
804
827
|
closed: !0,
|
|
805
|
-
next:
|
|
806
|
-
error:
|
|
807
|
-
complete:
|
|
808
|
-
},
|
|
828
|
+
next: pt,
|
|
829
|
+
error: Jr,
|
|
830
|
+
complete: pt
|
|
831
|
+
}, Kr = function() {
|
|
809
832
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
810
833
|
}();
|
|
811
|
-
function
|
|
834
|
+
function en(e) {
|
|
812
835
|
return e;
|
|
813
836
|
}
|
|
814
|
-
function
|
|
815
|
-
return e.length === 0 ?
|
|
837
|
+
function tn(e) {
|
|
838
|
+
return e.length === 0 ? en : e.length === 1 ? e[0] : function(r) {
|
|
816
839
|
return e.reduce(function(n, i) {
|
|
817
840
|
return i(n);
|
|
818
841
|
}, r);
|
|
819
842
|
};
|
|
820
843
|
}
|
|
821
|
-
var
|
|
844
|
+
var mt = function() {
|
|
822
845
|
function e(t) {
|
|
823
846
|
t && (this._subscribe = t);
|
|
824
847
|
}
|
|
@@ -826,7 +849,7 @@ var vt = function() {
|
|
|
826
849
|
var r = new e();
|
|
827
850
|
return r.source = this, r.operator = t, r;
|
|
828
851
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
829
|
-
var i = this, s =
|
|
852
|
+
var i = this, s = nn(t) ? t : new Qe(t, r, n);
|
|
830
853
|
return Se(function() {
|
|
831
854
|
var o = i, a = o.operator, h = o.source;
|
|
832
855
|
s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
|
|
@@ -839,8 +862,8 @@ var vt = function() {
|
|
|
839
862
|
}
|
|
840
863
|
}, e.prototype.forEach = function(t, r) {
|
|
841
864
|
var n = this;
|
|
842
|
-
return r =
|
|
843
|
-
var o = new
|
|
865
|
+
return r = bt(r), new r(function(i, s) {
|
|
866
|
+
var o = new Qe({
|
|
844
867
|
next: function(a) {
|
|
845
868
|
try {
|
|
846
869
|
t(a);
|
|
@@ -856,15 +879,15 @@ var vt = function() {
|
|
|
856
879
|
}, e.prototype._subscribe = function(t) {
|
|
857
880
|
var r;
|
|
858
881
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
859
|
-
}, e.prototype[
|
|
882
|
+
}, e.prototype[Kr] = function() {
|
|
860
883
|
return this;
|
|
861
884
|
}, e.prototype.pipe = function() {
|
|
862
885
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
863
886
|
t[r] = arguments[r];
|
|
864
|
-
return
|
|
887
|
+
return tn(t)(this);
|
|
865
888
|
}, e.prototype.toPromise = function(t) {
|
|
866
889
|
var r = this;
|
|
867
|
-
return t =
|
|
890
|
+
return t = bt(t), new t(function(n, i) {
|
|
868
891
|
var s;
|
|
869
892
|
r.subscribe(function(o) {
|
|
870
893
|
return s = o;
|
|
@@ -878,32 +901,32 @@ var vt = function() {
|
|
|
878
901
|
return new e(t);
|
|
879
902
|
}, e;
|
|
880
903
|
}();
|
|
881
|
-
function
|
|
904
|
+
function bt(e) {
|
|
882
905
|
var t;
|
|
883
|
-
return (t = e != null ? e :
|
|
906
|
+
return (t = e != null ? e : zr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
884
907
|
}
|
|
885
|
-
function
|
|
886
|
-
return e &&
|
|
908
|
+
function rn(e) {
|
|
909
|
+
return e && D(e.next) && D(e.error) && D(e.complete);
|
|
887
910
|
}
|
|
888
|
-
function
|
|
889
|
-
return e && e instanceof
|
|
911
|
+
function nn(e) {
|
|
912
|
+
return e && e instanceof kt || rn(e) && jt(e);
|
|
890
913
|
}
|
|
891
|
-
var
|
|
914
|
+
var sn = Gt(function(e) {
|
|
892
915
|
return function() {
|
|
893
916
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
894
917
|
};
|
|
895
|
-
}),
|
|
896
|
-
|
|
918
|
+
}), Vt = function(e) {
|
|
919
|
+
G(t, e);
|
|
897
920
|
function t() {
|
|
898
921
|
var r = e.call(this) || this;
|
|
899
922
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
900
923
|
}
|
|
901
924
|
return t.prototype.lift = function(r) {
|
|
902
|
-
var n = new
|
|
925
|
+
var n = new yt(this, this);
|
|
903
926
|
return n.operator = r, n;
|
|
904
927
|
}, t.prototype._throwIfClosed = function() {
|
|
905
928
|
if (this.closed)
|
|
906
|
-
throw new
|
|
929
|
+
throw new sn();
|
|
907
930
|
}, t.prototype.next = function(r) {
|
|
908
931
|
var n = this;
|
|
909
932
|
Se(function() {
|
|
@@ -911,7 +934,7 @@ var un = Vt(function(e) {
|
|
|
911
934
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
912
935
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
913
936
|
try {
|
|
914
|
-
for (var o =
|
|
937
|
+
for (var o = We(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
915
938
|
var h = a.value;
|
|
916
939
|
h.next(r);
|
|
917
940
|
}
|
|
@@ -960,20 +983,20 @@ var un = Vt(function(e) {
|
|
|
960
983
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
961
984
|
}, t.prototype._innerSubscribe = function(r) {
|
|
962
985
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
|
963
|
-
return s || o ?
|
|
964
|
-
n.currentObservers = null,
|
|
986
|
+
return s || o ? Ft : (this.currentObservers = null, a.push(r), new Oe(function() {
|
|
987
|
+
n.currentObservers = null, Ze(a, r);
|
|
965
988
|
}));
|
|
966
989
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
967
990
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
|
968
991
|
i ? r.error(s) : o && r.complete();
|
|
969
992
|
}, t.prototype.asObservable = function() {
|
|
970
|
-
var r = new
|
|
993
|
+
var r = new mt();
|
|
971
994
|
return r.source = this, r;
|
|
972
995
|
}, t.create = function(r, n) {
|
|
973
|
-
return new
|
|
996
|
+
return new yt(r, n);
|
|
974
997
|
}, t;
|
|
975
|
-
}(
|
|
976
|
-
|
|
998
|
+
}(mt), yt = function(e) {
|
|
999
|
+
G(t, e);
|
|
977
1000
|
function t(r, n) {
|
|
978
1001
|
var i = e.call(this) || this;
|
|
979
1002
|
return i.destination = r, i.source = n, i;
|
|
@@ -989,17 +1012,17 @@ var un = Vt(function(e) {
|
|
|
989
1012
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
990
1013
|
}, t.prototype._subscribe = function(r) {
|
|
991
1014
|
var n, i;
|
|
992
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1015
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ft;
|
|
993
1016
|
}, t;
|
|
994
|
-
}(
|
|
1017
|
+
}(Vt), Xt = {
|
|
995
1018
|
now: function() {
|
|
996
|
-
return (
|
|
1019
|
+
return (Xt.delegate || Date).now();
|
|
997
1020
|
},
|
|
998
1021
|
delegate: void 0
|
|
999
|
-
},
|
|
1000
|
-
|
|
1022
|
+
}, on = function(e) {
|
|
1023
|
+
G(t, e);
|
|
1001
1024
|
function t(r, n, i) {
|
|
1002
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1025
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Xt);
|
|
1003
1026
|
var s = e.call(this) || this;
|
|
1004
1027
|
return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
|
|
1005
1028
|
}
|
|
@@ -1019,24 +1042,24 @@ var un = Vt(function(e) {
|
|
|
1019
1042
|
u && s.splice(0, u + 1);
|
|
1020
1043
|
}
|
|
1021
1044
|
}, t;
|
|
1022
|
-
}(
|
|
1023
|
-
const
|
|
1024
|
-
if (
|
|
1025
|
-
const r = new
|
|
1026
|
-
|
|
1045
|
+
}(Vt);
|
|
1046
|
+
const gt = [], vt = {}, an = (e, t = 0) => {
|
|
1047
|
+
if (gt.indexOf(e) == -1) {
|
|
1048
|
+
const r = new on(t);
|
|
1049
|
+
vt[e] = r, gt.push(e);
|
|
1027
1050
|
}
|
|
1028
|
-
return
|
|
1051
|
+
return vt[e];
|
|
1029
1052
|
}, Z = [];
|
|
1030
|
-
function
|
|
1053
|
+
function un(e, t) {
|
|
1031
1054
|
return {
|
|
1032
|
-
subscribe:
|
|
1055
|
+
subscribe: Pe(e, t).subscribe
|
|
1033
1056
|
};
|
|
1034
1057
|
}
|
|
1035
|
-
function
|
|
1058
|
+
function Pe(e, t = I) {
|
|
1036
1059
|
let r;
|
|
1037
1060
|
const n = /* @__PURE__ */ new Set();
|
|
1038
1061
|
function i(a) {
|
|
1039
|
-
if (
|
|
1062
|
+
if (Rt(e, a) && (e = a, r)) {
|
|
1040
1063
|
const h = !Z.length;
|
|
1041
1064
|
for (const u of n)
|
|
1042
1065
|
u[1](), Z.push(u, e);
|
|
@@ -1058,184 +1081,145 @@ function Ce(e, t = I) {
|
|
|
1058
1081
|
}
|
|
1059
1082
|
return { set: i, update: s, subscribe: o };
|
|
1060
1083
|
}
|
|
1061
|
-
function
|
|
1084
|
+
function se(e, t, r) {
|
|
1062
1085
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1063
1086
|
if (!i.every(Boolean))
|
|
1064
1087
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1065
1088
|
const s = t.length < 2;
|
|
1066
|
-
return
|
|
1089
|
+
return un(r, (o, a) => {
|
|
1067
1090
|
let h = !1;
|
|
1068
1091
|
const u = [];
|
|
1069
|
-
let l = 0,
|
|
1070
|
-
const
|
|
1092
|
+
let l = 0, f = I;
|
|
1093
|
+
const c = () => {
|
|
1071
1094
|
if (l)
|
|
1072
1095
|
return;
|
|
1073
|
-
|
|
1096
|
+
f();
|
|
1074
1097
|
const y = t(n ? u[0] : u, o, a);
|
|
1075
|
-
s ? o(y) :
|
|
1076
|
-
},
|
|
1077
|
-
(y, g) =>
|
|
1098
|
+
s ? o(y) : f = nt(y) ? y : I;
|
|
1099
|
+
}, d = i.map(
|
|
1100
|
+
(y, g) => Ut(
|
|
1078
1101
|
y,
|
|
1079
|
-
(
|
|
1080
|
-
u[g] =
|
|
1102
|
+
(O) => {
|
|
1103
|
+
u[g] = O, l &= ~(1 << g), h && c();
|
|
1081
1104
|
},
|
|
1082
1105
|
() => {
|
|
1083
1106
|
l |= 1 << g;
|
|
1084
1107
|
}
|
|
1085
1108
|
)
|
|
1086
1109
|
);
|
|
1087
|
-
return h = !0,
|
|
1088
|
-
|
|
1110
|
+
return h = !0, c(), function() {
|
|
1111
|
+
ne(d), f(), h = !1;
|
|
1089
1112
|
};
|
|
1090
1113
|
});
|
|
1091
1114
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return e
|
|
1115
|
+
function hn(e) {
|
|
1116
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1094
1117
|
}
|
|
1095
|
-
var
|
|
1096
|
-
return
|
|
1118
|
+
var ln = function(t) {
|
|
1119
|
+
return fn(t) && !cn(t);
|
|
1097
1120
|
};
|
|
1098
|
-
function
|
|
1121
|
+
function fn(e) {
|
|
1099
1122
|
return !!e && typeof e == "object";
|
|
1100
1123
|
}
|
|
1101
|
-
function
|
|
1124
|
+
function cn(e) {
|
|
1102
1125
|
var t = Object.prototype.toString.call(e);
|
|
1103
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1126
|
+
return t === "[object RegExp]" || t === "[object Date]" || mn(e);
|
|
1104
1127
|
}
|
|
1105
|
-
var
|
|
1106
|
-
function
|
|
1107
|
-
return e.$$typeof ===
|
|
1128
|
+
var dn = typeof Symbol == "function" && Symbol.for, pn = dn ? Symbol.for("react.element") : 60103;
|
|
1129
|
+
function mn(e) {
|
|
1130
|
+
return e.$$typeof === pn;
|
|
1108
1131
|
}
|
|
1109
|
-
function
|
|
1132
|
+
function bn(e) {
|
|
1110
1133
|
return Array.isArray(e) ? [] : {};
|
|
1111
1134
|
}
|
|
1112
1135
|
function ce(e, t) {
|
|
1113
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1136
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? K(bn(e), e, t) : e;
|
|
1114
1137
|
}
|
|
1115
|
-
function
|
|
1138
|
+
function yn(e, t, r) {
|
|
1116
1139
|
return e.concat(t).map(function(n) {
|
|
1117
1140
|
return ce(n, r);
|
|
1118
1141
|
});
|
|
1119
1142
|
}
|
|
1120
|
-
function
|
|
1143
|
+
function gn(e, t) {
|
|
1121
1144
|
if (!t.customMerge)
|
|
1122
|
-
return
|
|
1145
|
+
return K;
|
|
1123
1146
|
var r = t.customMerge(e);
|
|
1124
|
-
return typeof r == "function" ? r :
|
|
1147
|
+
return typeof r == "function" ? r : K;
|
|
1125
1148
|
}
|
|
1126
|
-
function
|
|
1149
|
+
function vn(e) {
|
|
1127
1150
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1128
1151
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1129
1152
|
}) : [];
|
|
1130
1153
|
}
|
|
1131
|
-
function
|
|
1132
|
-
return Object.keys(e).concat(
|
|
1154
|
+
function _t(e) {
|
|
1155
|
+
return Object.keys(e).concat(vn(e));
|
|
1133
1156
|
}
|
|
1134
|
-
function
|
|
1157
|
+
function Wt(e, t) {
|
|
1135
1158
|
try {
|
|
1136
1159
|
return t in e;
|
|
1137
1160
|
} catch (r) {
|
|
1138
1161
|
return !1;
|
|
1139
1162
|
}
|
|
1140
1163
|
}
|
|
1141
|
-
function
|
|
1142
|
-
return
|
|
1164
|
+
function _n(e, t) {
|
|
1165
|
+
return Wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1143
1166
|
}
|
|
1144
|
-
function
|
|
1167
|
+
function En(e, t, r) {
|
|
1145
1168
|
var n = {};
|
|
1146
|
-
return r.isMergeableObject(e) &&
|
|
1169
|
+
return r.isMergeableObject(e) && _t(e).forEach(function(i) {
|
|
1147
1170
|
n[i] = ce(e[i], r);
|
|
1148
|
-
}),
|
|
1149
|
-
|
|
1171
|
+
}), _t(t).forEach(function(i) {
|
|
1172
|
+
_n(e, i) || (Wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = gn(i, r)(e[i], t[i], r) : n[i] = ce(t[i], r));
|
|
1150
1173
|
}), n;
|
|
1151
1174
|
}
|
|
1152
|
-
function
|
|
1153
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1175
|
+
function K(e, t, r) {
|
|
1176
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || yn, r.isMergeableObject = r.isMergeableObject || ln, r.cloneUnlessOtherwiseSpecified = ce;
|
|
1154
1177
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
1155
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
1178
|
+
return s ? n ? r.arrayMerge(e, t, r) : En(e, t, r) : ce(t, r);
|
|
1156
1179
|
}
|
|
1157
|
-
|
|
1180
|
+
K.all = function(t, r) {
|
|
1158
1181
|
if (!Array.isArray(t))
|
|
1159
1182
|
throw new Error("first argument should be an array");
|
|
1160
1183
|
return t.reduce(function(n, i) {
|
|
1161
|
-
return
|
|
1184
|
+
return K(n, i, r);
|
|
1162
1185
|
}, {});
|
|
1163
1186
|
};
|
|
1164
|
-
var
|
|
1165
|
-
const
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
r.__proto__ = n;
|
|
1169
|
-
} || function(r, n) {
|
|
1170
|
-
for (var i in n)
|
|
1171
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1172
|
-
}, et(e, t);
|
|
1173
|
-
};
|
|
1174
|
-
function Ie(e, t) {
|
|
1175
|
-
if (typeof t != "function" && t !== null)
|
|
1176
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1177
|
-
et(e, t);
|
|
1178
|
-
function r() {
|
|
1179
|
-
this.constructor = e;
|
|
1180
|
-
}
|
|
1181
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1182
|
-
}
|
|
1183
|
-
var U = function() {
|
|
1184
|
-
return U = Object.assign || function(t) {
|
|
1185
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1186
|
-
r = arguments[n];
|
|
1187
|
-
for (var s in r)
|
|
1188
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1189
|
-
}
|
|
1190
|
-
return t;
|
|
1191
|
-
}, U.apply(this, arguments);
|
|
1192
|
-
};
|
|
1193
|
-
function An(e, t) {
|
|
1194
|
-
var r = {};
|
|
1195
|
-
for (var n in e)
|
|
1196
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1197
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1198
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1199
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1200
|
-
return r;
|
|
1201
|
-
}
|
|
1202
|
-
function De(e, t, r) {
|
|
1203
|
-
if (r || arguments.length === 2)
|
|
1204
|
-
for (var n = 0, i = t.length, s; n < i; n++)
|
|
1205
|
-
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
1206
|
-
return e.concat(s || Array.prototype.slice.call(t));
|
|
1207
|
-
}
|
|
1208
|
-
function Ge(e, t) {
|
|
1209
|
-
var r = t && t.cache ? t.cache : Nn, n = t && t.serializer ? t.serializer : Ln, i = t && t.strategy ? t.strategy : Cn;
|
|
1187
|
+
var xn = K, Sn = xn;
|
|
1188
|
+
const Tn = /* @__PURE__ */ hn(Sn);
|
|
1189
|
+
function Re(e, t) {
|
|
1190
|
+
var r = t && t.cache ? t.cache : Cn, n = t && t.serializer ? t.serializer : On, i = t && t.strategy ? t.strategy : wn;
|
|
1210
1191
|
return i(e, {
|
|
1211
1192
|
cache: r,
|
|
1212
1193
|
serializer: n
|
|
1213
1194
|
});
|
|
1214
1195
|
}
|
|
1215
|
-
function
|
|
1196
|
+
function Hn(e) {
|
|
1216
1197
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1217
1198
|
}
|
|
1218
|
-
function
|
|
1219
|
-
var i =
|
|
1199
|
+
function zt(e, t, r, n) {
|
|
1200
|
+
var i = Hn(n) ? n : r(n), s = t.get(i);
|
|
1220
1201
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1221
1202
|
}
|
|
1222
|
-
function
|
|
1203
|
+
function Zt(e, t, r) {
|
|
1223
1204
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1224
1205
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1225
1206
|
}
|
|
1226
|
-
function
|
|
1207
|
+
function it(e, t, r, n, i) {
|
|
1227
1208
|
return r.bind(t, e, n, i);
|
|
1228
1209
|
}
|
|
1229
|
-
function
|
|
1230
|
-
var r = e.length === 1 ?
|
|
1231
|
-
return
|
|
1210
|
+
function wn(e, t) {
|
|
1211
|
+
var r = e.length === 1 ? zt : Zt;
|
|
1212
|
+
return it(e, this, r, t.cache.create(), t.serializer);
|
|
1232
1213
|
}
|
|
1233
|
-
function
|
|
1234
|
-
return
|
|
1214
|
+
function Bn(e, t) {
|
|
1215
|
+
return it(e, this, Zt, t.cache.create(), t.serializer);
|
|
1235
1216
|
}
|
|
1236
|
-
|
|
1217
|
+
function An(e, t) {
|
|
1218
|
+
return it(e, this, zt, t.cache.create(), t.serializer);
|
|
1219
|
+
}
|
|
1220
|
+
var On = function() {
|
|
1237
1221
|
return JSON.stringify(arguments);
|
|
1238
|
-
},
|
|
1222
|
+
}, Pn = (
|
|
1239
1223
|
/** @class */
|
|
1240
1224
|
function() {
|
|
1241
1225
|
function e() {
|
|
@@ -1247,71 +1231,62 @@ var Ln = function() {
|
|
|
1247
1231
|
this.cache[t] = r;
|
|
1248
1232
|
}, e;
|
|
1249
1233
|
}()
|
|
1250
|
-
),
|
|
1234
|
+
), Cn = {
|
|
1251
1235
|
create: function() {
|
|
1252
|
-
return new
|
|
1236
|
+
return new Pn();
|
|
1253
1237
|
}
|
|
1254
|
-
},
|
|
1255
|
-
variadic:
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1259
|
-
r = arguments[n];
|
|
1260
|
-
for (var s in r)
|
|
1261
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1262
|
-
}
|
|
1263
|
-
return t;
|
|
1264
|
-
}, He.apply(this, arguments);
|
|
1265
|
-
};
|
|
1266
|
-
var d;
|
|
1238
|
+
}, Ue = {
|
|
1239
|
+
variadic: Bn,
|
|
1240
|
+
monadic: An
|
|
1241
|
+
}, p;
|
|
1267
1242
|
(function(e) {
|
|
1268
1243
|
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";
|
|
1269
|
-
})(
|
|
1270
|
-
var
|
|
1244
|
+
})(p || (p = {}));
|
|
1245
|
+
var _;
|
|
1271
1246
|
(function(e) {
|
|
1272
1247
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1273
|
-
})(
|
|
1274
|
-
var
|
|
1248
|
+
})(_ || (_ = {}));
|
|
1249
|
+
var ee;
|
|
1275
1250
|
(function(e) {
|
|
1276
1251
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1277
|
-
})(
|
|
1278
|
-
function
|
|
1279
|
-
return e.type ===
|
|
1252
|
+
})(ee || (ee = {}));
|
|
1253
|
+
function Et(e) {
|
|
1254
|
+
return e.type === _.literal;
|
|
1280
1255
|
}
|
|
1281
|
-
function
|
|
1282
|
-
return e.type ===
|
|
1256
|
+
function In(e) {
|
|
1257
|
+
return e.type === _.argument;
|
|
1283
1258
|
}
|
|
1284
|
-
function
|
|
1285
|
-
return e.type ===
|
|
1259
|
+
function Qt(e) {
|
|
1260
|
+
return e.type === _.number;
|
|
1286
1261
|
}
|
|
1287
|
-
function
|
|
1288
|
-
return e.type ===
|
|
1262
|
+
function qt(e) {
|
|
1263
|
+
return e.type === _.date;
|
|
1289
1264
|
}
|
|
1290
|
-
function
|
|
1291
|
-
return e.type ===
|
|
1265
|
+
function Jt(e) {
|
|
1266
|
+
return e.type === _.time;
|
|
1292
1267
|
}
|
|
1293
|
-
function
|
|
1294
|
-
return e.type ===
|
|
1268
|
+
function Yt(e) {
|
|
1269
|
+
return e.type === _.select;
|
|
1295
1270
|
}
|
|
1296
|
-
function
|
|
1297
|
-
return e.type ===
|
|
1271
|
+
function Kt(e) {
|
|
1272
|
+
return e.type === _.plural;
|
|
1298
1273
|
}
|
|
1299
|
-
function
|
|
1300
|
-
return e.type ===
|
|
1274
|
+
function Ln(e) {
|
|
1275
|
+
return e.type === _.pound;
|
|
1301
1276
|
}
|
|
1302
|
-
function
|
|
1303
|
-
return e.type ===
|
|
1277
|
+
function er(e) {
|
|
1278
|
+
return e.type === _.tag;
|
|
1304
1279
|
}
|
|
1305
|
-
function
|
|
1306
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1280
|
+
function tr(e) {
|
|
1281
|
+
return !!(e && typeof e == "object" && e.type === ee.number);
|
|
1307
1282
|
}
|
|
1308
|
-
function
|
|
1309
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1283
|
+
function qe(e) {
|
|
1284
|
+
return !!(e && typeof e == "object" && e.type === ee.dateTime);
|
|
1310
1285
|
}
|
|
1311
|
-
var
|
|
1312
|
-
function
|
|
1286
|
+
var rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Mn = /(?:[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;
|
|
1287
|
+
function Nn(e) {
|
|
1313
1288
|
var t = {};
|
|
1314
|
-
return e.replace(
|
|
1289
|
+
return e.replace(Mn, function(r) {
|
|
1315
1290
|
var n = r.length;
|
|
1316
1291
|
switch (r[0]) {
|
|
1317
1292
|
case "G":
|
|
@@ -1400,46 +1375,36 @@ function Dn(e) {
|
|
|
1400
1375
|
return "";
|
|
1401
1376
|
}), t;
|
|
1402
1377
|
}
|
|
1403
|
-
var
|
|
1404
|
-
|
|
1405
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1406
|
-
r = arguments[n];
|
|
1407
|
-
for (var s in r)
|
|
1408
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1409
|
-
}
|
|
1410
|
-
return t;
|
|
1411
|
-
}, _.apply(this, arguments);
|
|
1412
|
-
};
|
|
1413
|
-
var Gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1414
|
-
function Fn(e) {
|
|
1378
|
+
var $n = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1379
|
+
function Rn(e) {
|
|
1415
1380
|
if (e.length === 0)
|
|
1416
1381
|
throw new Error("Number skeleton cannot be empty");
|
|
1417
|
-
for (var t = e.split(
|
|
1418
|
-
return
|
|
1382
|
+
for (var t = e.split($n).filter(function(c) {
|
|
1383
|
+
return c.length > 0;
|
|
1419
1384
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1420
1385
|
var s = i[n], o = s.split("/");
|
|
1421
1386
|
if (o.length === 0)
|
|
1422
1387
|
throw new Error("Invalid number skeleton");
|
|
1423
1388
|
for (var a = o[0], h = o.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1424
|
-
var
|
|
1425
|
-
if (
|
|
1389
|
+
var f = l[u];
|
|
1390
|
+
if (f.length === 0)
|
|
1426
1391
|
throw new Error("Invalid number skeleton");
|
|
1427
1392
|
}
|
|
1428
1393
|
r.push({ stem: a, options: h });
|
|
1429
1394
|
}
|
|
1430
1395
|
return r;
|
|
1431
1396
|
}
|
|
1432
|
-
function
|
|
1397
|
+
function Un(e) {
|
|
1433
1398
|
return e.replace(/^(.*?)-/, "");
|
|
1434
1399
|
}
|
|
1435
|
-
var
|
|
1436
|
-
function
|
|
1400
|
+
var xt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, nr = /^(@+)?(\+|#+)?[rs]?$/g, Dn = /(\*)(0+)|(#+)(0+)|(0+)/g, ir = /^(0+)$/;
|
|
1401
|
+
function St(e) {
|
|
1437
1402
|
var t = {};
|
|
1438
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1403
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(nr, function(r, n, i) {
|
|
1439
1404
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1440
1405
|
}), t;
|
|
1441
1406
|
}
|
|
1442
|
-
function
|
|
1407
|
+
function sr(e) {
|
|
1443
1408
|
switch (e) {
|
|
1444
1409
|
case "sign-auto":
|
|
1445
1410
|
return {
|
|
@@ -1479,7 +1444,7 @@ function hr(e) {
|
|
|
1479
1444
|
};
|
|
1480
1445
|
}
|
|
1481
1446
|
}
|
|
1482
|
-
function
|
|
1447
|
+
function Gn(e) {
|
|
1483
1448
|
var t;
|
|
1484
1449
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1485
1450
|
notation: "engineering"
|
|
@@ -1487,17 +1452,17 @@ function Vn(e) {
|
|
|
1487
1452
|
notation: "scientific"
|
|
1488
1453
|
}, e = e.slice(1)), t) {
|
|
1489
1454
|
var r = e.slice(0, 2);
|
|
1490
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1455
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ir.test(e))
|
|
1491
1456
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1492
1457
|
t.minimumIntegerDigits = e.length;
|
|
1493
1458
|
}
|
|
1494
1459
|
return t;
|
|
1495
1460
|
}
|
|
1496
|
-
function
|
|
1497
|
-
var t = {}, r =
|
|
1461
|
+
function Tt(e) {
|
|
1462
|
+
var t = {}, r = sr(e);
|
|
1498
1463
|
return r || t;
|
|
1499
1464
|
}
|
|
1500
|
-
function
|
|
1465
|
+
function Fn(e) {
|
|
1501
1466
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1502
1467
|
var i = n[r];
|
|
1503
1468
|
switch (i.stem) {
|
|
@@ -1521,7 +1486,7 @@ function Xn(e) {
|
|
|
1521
1486
|
continue;
|
|
1522
1487
|
case "measure-unit":
|
|
1523
1488
|
case "unit":
|
|
1524
|
-
t.style = "unit", t.unit =
|
|
1489
|
+
t.style = "unit", t.unit = Un(i.options[0]);
|
|
1525
1490
|
continue;
|
|
1526
1491
|
case "compact-short":
|
|
1527
1492
|
case "K":
|
|
@@ -1532,13 +1497,13 @@ function Xn(e) {
|
|
|
1532
1497
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1533
1498
|
continue;
|
|
1534
1499
|
case "scientific":
|
|
1535
|
-
t =
|
|
1536
|
-
return
|
|
1500
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1501
|
+
return v(v({}, h), Tt(u));
|
|
1537
1502
|
}, {}));
|
|
1538
1503
|
continue;
|
|
1539
1504
|
case "engineering":
|
|
1540
|
-
t =
|
|
1541
|
-
return
|
|
1505
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1506
|
+
return v(v({}, h), Tt(u));
|
|
1542
1507
|
}, {}));
|
|
1543
1508
|
continue;
|
|
1544
1509
|
case "notation-simple":
|
|
@@ -1583,41 +1548,41 @@ function Xn(e) {
|
|
|
1583
1548
|
case "integer-width":
|
|
1584
1549
|
if (i.options.length > 1)
|
|
1585
1550
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1586
|
-
i.options[0].replace(
|
|
1551
|
+
i.options[0].replace(Dn, function(h, u, l, f, c, d) {
|
|
1587
1552
|
if (u)
|
|
1588
1553
|
t.minimumIntegerDigits = l.length;
|
|
1589
1554
|
else {
|
|
1590
|
-
if (
|
|
1555
|
+
if (f && c)
|
|
1591
1556
|
throw new Error("We currently do not support maximum integer digits");
|
|
1592
|
-
if (
|
|
1557
|
+
if (d)
|
|
1593
1558
|
throw new Error("We currently do not support exact integer digits");
|
|
1594
1559
|
}
|
|
1595
1560
|
return "";
|
|
1596
1561
|
});
|
|
1597
1562
|
continue;
|
|
1598
1563
|
}
|
|
1599
|
-
if (
|
|
1564
|
+
if (ir.test(i.stem)) {
|
|
1600
1565
|
t.minimumIntegerDigits = i.stem.length;
|
|
1601
1566
|
continue;
|
|
1602
1567
|
}
|
|
1603
|
-
if (
|
|
1568
|
+
if (xt.test(i.stem)) {
|
|
1604
1569
|
if (i.options.length > 1)
|
|
1605
1570
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1606
|
-
i.stem.replace(
|
|
1607
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1571
|
+
i.stem.replace(xt, function(h, u, l, f, c, d) {
|
|
1572
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1608
1573
|
});
|
|
1609
1574
|
var s = i.options[0];
|
|
1610
|
-
s === "w" ? t =
|
|
1575
|
+
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), St(s)));
|
|
1611
1576
|
continue;
|
|
1612
1577
|
}
|
|
1613
|
-
if (
|
|
1614
|
-
t =
|
|
1578
|
+
if (nr.test(i.stem)) {
|
|
1579
|
+
t = v(v({}, t), St(i.stem));
|
|
1615
1580
|
continue;
|
|
1616
1581
|
}
|
|
1617
|
-
var o =
|
|
1618
|
-
o && (t =
|
|
1619
|
-
var a =
|
|
1620
|
-
a && (t =
|
|
1582
|
+
var o = sr(i.stem);
|
|
1583
|
+
o && (t = v(v({}, t), o));
|
|
1584
|
+
var a = Gn(i.stem);
|
|
1585
|
+
a && (t = v(v({}, t), a));
|
|
1621
1586
|
}
|
|
1622
1587
|
return t;
|
|
1623
1588
|
}
|
|
@@ -3036,13 +3001,13 @@ var Ee = {
|
|
|
3036
3001
|
"h"
|
|
3037
3002
|
]
|
|
3038
3003
|
};
|
|
3039
|
-
function
|
|
3004
|
+
function jn(e, t) {
|
|
3040
3005
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3041
3006
|
var i = e.charAt(n);
|
|
3042
3007
|
if (i === "j") {
|
|
3043
3008
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3044
3009
|
s++, n++;
|
|
3045
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
|
3010
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = kn(t);
|
|
3046
3011
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3047
3012
|
r += h;
|
|
3048
3013
|
for (; o-- > 0; )
|
|
@@ -3052,7 +3017,7 @@ function Wn(e, t) {
|
|
|
3052
3017
|
}
|
|
3053
3018
|
return r;
|
|
3054
3019
|
}
|
|
3055
|
-
function
|
|
3020
|
+
function kn(e) {
|
|
3056
3021
|
var t = e.hourCycle;
|
|
3057
3022
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3058
3023
|
e.hourCycles && // @ts-ignore
|
|
@@ -3074,20 +3039,20 @@ function zn(e) {
|
|
|
3074
3039
|
var i = Ee[n || ""] || Ee[r || ""] || Ee["".concat(r, "-001")] || Ee["001"];
|
|
3075
3040
|
return i[0];
|
|
3076
3041
|
}
|
|
3077
|
-
var
|
|
3042
|
+
var De, Vn = new RegExp("^".concat(rr.source, "*")), Xn = new RegExp("".concat(rr.source, "*$"));
|
|
3078
3043
|
function b(e, t) {
|
|
3079
3044
|
return { start: e, end: t };
|
|
3080
3045
|
}
|
|
3081
|
-
var
|
|
3046
|
+
var Wn = !!String.prototype.startsWith && "_a".startsWith("a", 1), zn = !!String.fromCodePoint, Zn = !!Object.fromEntries, Qn = !!String.prototype.codePointAt, qn = !!String.prototype.trimStart, Jn = !!String.prototype.trimEnd, Yn = !!Number.isSafeInteger, Kn = Yn ? Number.isSafeInteger : function(e) {
|
|
3082
3047
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3083
|
-
},
|
|
3048
|
+
}, Je = !0;
|
|
3084
3049
|
try {
|
|
3085
|
-
var
|
|
3086
|
-
|
|
3050
|
+
var ei = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3051
|
+
Je = ((De = ei.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
|
|
3087
3052
|
} catch (e) {
|
|
3088
|
-
|
|
3053
|
+
Je = !1;
|
|
3089
3054
|
}
|
|
3090
|
-
var
|
|
3055
|
+
var Ht = Wn ? (
|
|
3091
3056
|
// Native
|
|
3092
3057
|
function(t, r, n) {
|
|
3093
3058
|
return t.startsWith(r, n);
|
|
@@ -3097,7 +3062,7 @@ var Bt = qn ? (
|
|
|
3097
3062
|
function(t, r, n) {
|
|
3098
3063
|
return t.slice(n, n + r.length) === r;
|
|
3099
3064
|
}
|
|
3100
|
-
),
|
|
3065
|
+
), Ye = zn ? String.fromCodePoint : (
|
|
3101
3066
|
// IE11
|
|
3102
3067
|
function() {
|
|
3103
3068
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3109,9 +3074,9 @@ var Bt = qn ? (
|
|
|
3109
3074
|
}
|
|
3110
3075
|
return n;
|
|
3111
3076
|
}
|
|
3112
|
-
),
|
|
3077
|
+
), wt = (
|
|
3113
3078
|
// native
|
|
3114
|
-
|
|
3079
|
+
Zn ? Object.fromEntries : (
|
|
3115
3080
|
// Ponyfill
|
|
3116
3081
|
function(t) {
|
|
3117
3082
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3121,7 +3086,7 @@ var Bt = qn ? (
|
|
|
3121
3086
|
return r;
|
|
3122
3087
|
}
|
|
3123
3088
|
)
|
|
3124
|
-
),
|
|
3089
|
+
), or = Qn ? (
|
|
3125
3090
|
// Native
|
|
3126
3091
|
function(t, r) {
|
|
3127
3092
|
return t.codePointAt(r);
|
|
@@ -3135,7 +3100,7 @@ var Bt = qn ? (
|
|
|
3135
3100
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
3136
3101
|
}
|
|
3137
3102
|
}
|
|
3138
|
-
),
|
|
3103
|
+
), ti = qn ? (
|
|
3139
3104
|
// Native
|
|
3140
3105
|
function(t) {
|
|
3141
3106
|
return t.trimStart();
|
|
@@ -3143,9 +3108,9 @@ var Bt = qn ? (
|
|
|
3143
3108
|
) : (
|
|
3144
3109
|
// Ponyfill
|
|
3145
3110
|
function(t) {
|
|
3146
|
-
return t.replace(
|
|
3111
|
+
return t.replace(Vn, "");
|
|
3147
3112
|
}
|
|
3148
|
-
),
|
|
3113
|
+
), ri = Jn ? (
|
|
3149
3114
|
// Native
|
|
3150
3115
|
function(t) {
|
|
3151
3116
|
return t.trimEnd();
|
|
@@ -3153,32 +3118,32 @@ var Bt = qn ? (
|
|
|
3153
3118
|
) : (
|
|
3154
3119
|
// Ponyfill
|
|
3155
3120
|
function(t) {
|
|
3156
|
-
return t.replace(
|
|
3121
|
+
return t.replace(Xn, "");
|
|
3157
3122
|
}
|
|
3158
3123
|
);
|
|
3159
|
-
function
|
|
3124
|
+
function ar(e, t) {
|
|
3160
3125
|
return new RegExp(e, t);
|
|
3161
3126
|
}
|
|
3162
|
-
var
|
|
3163
|
-
if (
|
|
3164
|
-
var
|
|
3165
|
-
|
|
3127
|
+
var Ke;
|
|
3128
|
+
if (Je) {
|
|
3129
|
+
var Bt = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3130
|
+
Ke = function(t, r) {
|
|
3166
3131
|
var n;
|
|
3167
|
-
|
|
3168
|
-
var i =
|
|
3132
|
+
Bt.lastIndex = r;
|
|
3133
|
+
var i = Bt.exec(t);
|
|
3169
3134
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3170
3135
|
};
|
|
3171
3136
|
} else
|
|
3172
|
-
|
|
3137
|
+
Ke = function(t, r) {
|
|
3173
3138
|
for (var n = []; ; ) {
|
|
3174
|
-
var i =
|
|
3175
|
-
if (i === void 0 ||
|
|
3139
|
+
var i = or(t, r);
|
|
3140
|
+
if (i === void 0 || ur(i) || oi(i))
|
|
3176
3141
|
break;
|
|
3177
3142
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3178
3143
|
}
|
|
3179
|
-
return
|
|
3144
|
+
return Ye.apply(void 0, n);
|
|
3180
3145
|
};
|
|
3181
|
-
var
|
|
3146
|
+
var ni = (
|
|
3182
3147
|
/** @class */
|
|
3183
3148
|
function() {
|
|
3184
3149
|
function e(t, r) {
|
|
@@ -3202,14 +3167,14 @@ var ai = (
|
|
|
3202
3167
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3203
3168
|
var a = this.clonePosition();
|
|
3204
3169
|
this.bump(), i.push({
|
|
3205
|
-
type:
|
|
3170
|
+
type: _.pound,
|
|
3206
3171
|
location: b(a, this.clonePosition())
|
|
3207
3172
|
});
|
|
3208
3173
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3209
3174
|
if (n)
|
|
3210
3175
|
break;
|
|
3211
|
-
return this.error(
|
|
3212
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
3176
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3177
|
+
} else if (s === 60 && !this.ignoreTag && et(this.peek() || 0)) {
|
|
3213
3178
|
var o = this.parseTag(t, r);
|
|
3214
3179
|
if (o.err)
|
|
3215
3180
|
return o;
|
|
@@ -3230,7 +3195,7 @@ var ai = (
|
|
|
3230
3195
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3231
3196
|
return {
|
|
3232
3197
|
val: {
|
|
3233
|
-
type:
|
|
3198
|
+
type: _.literal,
|
|
3234
3199
|
value: "<".concat(i, "/>"),
|
|
3235
3200
|
location: b(n, this.clonePosition())
|
|
3236
3201
|
},
|
|
@@ -3242,25 +3207,25 @@ var ai = (
|
|
|
3242
3207
|
return s;
|
|
3243
3208
|
var o = s.val, a = this.clonePosition();
|
|
3244
3209
|
if (this.bumpIf("</")) {
|
|
3245
|
-
if (this.isEOF() || !
|
|
3246
|
-
return this.error(
|
|
3210
|
+
if (this.isEOF() || !et(this.char()))
|
|
3211
|
+
return this.error(p.INVALID_TAG, b(a, this.clonePosition()));
|
|
3247
3212
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3248
|
-
return i !== u ? this.error(
|
|
3213
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3249
3214
|
val: {
|
|
3250
|
-
type:
|
|
3215
|
+
type: _.tag,
|
|
3251
3216
|
value: i,
|
|
3252
3217
|
children: o,
|
|
3253
3218
|
location: b(n, this.clonePosition())
|
|
3254
3219
|
},
|
|
3255
3220
|
err: null
|
|
3256
|
-
} : this.error(
|
|
3221
|
+
} : this.error(p.INVALID_TAG, b(a, this.clonePosition())));
|
|
3257
3222
|
} else
|
|
3258
|
-
return this.error(
|
|
3223
|
+
return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3259
3224
|
} else
|
|
3260
|
-
return this.error(
|
|
3225
|
+
return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
|
|
3261
3226
|
}, e.prototype.parseTagName = function() {
|
|
3262
3227
|
var t = this.offset();
|
|
3263
|
-
for (this.bump(); !this.isEOF() &&
|
|
3228
|
+
for (this.bump(); !this.isEOF() && si(this.char()); )
|
|
3264
3229
|
this.bump();
|
|
3265
3230
|
return this.message.slice(t, this.offset());
|
|
3266
3231
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3284,12 +3249,12 @@ var ai = (
|
|
|
3284
3249
|
}
|
|
3285
3250
|
var h = b(n, this.clonePosition());
|
|
3286
3251
|
return {
|
|
3287
|
-
val: { type:
|
|
3252
|
+
val: { type: _.literal, value: i, location: h },
|
|
3288
3253
|
err: null
|
|
3289
3254
|
};
|
|
3290
3255
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3291
3256
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3292
|
-
!
|
|
3257
|
+
!ii(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3293
3258
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3294
3259
|
if (this.isEOF() || this.char() !== 39)
|
|
3295
3260
|
return null;
|
|
@@ -3323,28 +3288,28 @@ var ai = (
|
|
|
3323
3288
|
r.push(n);
|
|
3324
3289
|
this.bump();
|
|
3325
3290
|
}
|
|
3326
|
-
return
|
|
3291
|
+
return Ye.apply(void 0, r);
|
|
3327
3292
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3328
3293
|
if (this.isEOF())
|
|
3329
3294
|
return null;
|
|
3330
3295
|
var n = this.char();
|
|
3331
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3296
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ye(n));
|
|
3332
3297
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3333
3298
|
var n = this.clonePosition();
|
|
3334
3299
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3335
|
-
return this.error(
|
|
3300
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3336
3301
|
if (this.char() === 125)
|
|
3337
|
-
return this.bump(), this.error(
|
|
3302
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
3338
3303
|
var i = this.parseIdentifierIfPossible().value;
|
|
3339
3304
|
if (!i)
|
|
3340
|
-
return this.error(
|
|
3305
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3341
3306
|
if (this.bumpSpace(), this.isEOF())
|
|
3342
|
-
return this.error(
|
|
3307
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3343
3308
|
switch (this.char()) {
|
|
3344
3309
|
case 125:
|
|
3345
3310
|
return this.bump(), {
|
|
3346
3311
|
val: {
|
|
3347
|
-
type:
|
|
3312
|
+
type: _.argument,
|
|
3348
3313
|
// value does not include the opening and closing braces.
|
|
3349
3314
|
value: i,
|
|
3350
3315
|
location: b(n, this.clonePosition())
|
|
@@ -3352,12 +3317,12 @@ var ai = (
|
|
|
3352
3317
|
err: null
|
|
3353
3318
|
};
|
|
3354
3319
|
case 44:
|
|
3355
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3320
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3356
3321
|
default:
|
|
3357
|
-
return this.error(
|
|
3322
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3358
3323
|
}
|
|
3359
3324
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3360
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3325
|
+
var t = this.clonePosition(), r = this.offset(), n = Ke(this.message, r), i = r + n.length;
|
|
3361
3326
|
this.bumpTo(i);
|
|
3362
3327
|
var s = this.clonePosition(), o = b(t, s);
|
|
3363
3328
|
return { value: n, location: o };
|
|
@@ -3365,7 +3330,7 @@ var ai = (
|
|
|
3365
3330
|
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3366
3331
|
switch (a) {
|
|
3367
3332
|
case "":
|
|
3368
|
-
return this.error(
|
|
3333
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, b(o, h));
|
|
3369
3334
|
case "number":
|
|
3370
3335
|
case "date":
|
|
3371
3336
|
case "time": {
|
|
@@ -3373,47 +3338,47 @@ var ai = (
|
|
|
3373
3338
|
var u = null;
|
|
3374
3339
|
if (this.bumpIf(",")) {
|
|
3375
3340
|
this.bumpSpace();
|
|
3376
|
-
var l = this.clonePosition(),
|
|
3377
|
-
if (
|
|
3378
|
-
return
|
|
3379
|
-
var
|
|
3380
|
-
if (
|
|
3381
|
-
return this.error(
|
|
3382
|
-
var
|
|
3383
|
-
u = { style:
|
|
3341
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3342
|
+
if (f.err)
|
|
3343
|
+
return f;
|
|
3344
|
+
var c = ri(f.val);
|
|
3345
|
+
if (c.length === 0)
|
|
3346
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3347
|
+
var d = b(l, this.clonePosition());
|
|
3348
|
+
u = { style: c, styleLocation: d };
|
|
3384
3349
|
}
|
|
3385
3350
|
var y = this.tryParseArgumentClose(i);
|
|
3386
3351
|
if (y.err)
|
|
3387
3352
|
return y;
|
|
3388
3353
|
var g = b(i, this.clonePosition());
|
|
3389
|
-
if (u &&
|
|
3390
|
-
var
|
|
3354
|
+
if (u && Ht(u == null ? void 0 : u.style, "::", 0)) {
|
|
3355
|
+
var O = ti(u.style.slice(2));
|
|
3391
3356
|
if (a === "number") {
|
|
3392
|
-
var
|
|
3393
|
-
return
|
|
3394
|
-
val: { type:
|
|
3357
|
+
var f = this.parseNumberSkeletonFromString(O, u.styleLocation);
|
|
3358
|
+
return f.err ? f : {
|
|
3359
|
+
val: { type: _.number, value: n, location: g, style: f.val },
|
|
3395
3360
|
err: null
|
|
3396
3361
|
};
|
|
3397
3362
|
} else {
|
|
3398
|
-
if (
|
|
3399
|
-
return this.error(
|
|
3400
|
-
var
|
|
3401
|
-
this.locale && (
|
|
3402
|
-
var
|
|
3403
|
-
type:
|
|
3404
|
-
pattern:
|
|
3363
|
+
if (O.length === 0)
|
|
3364
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
|
|
3365
|
+
var T = O;
|
|
3366
|
+
this.locale && (T = jn(O, this.locale));
|
|
3367
|
+
var c = {
|
|
3368
|
+
type: ee.dateTime,
|
|
3369
|
+
pattern: T,
|
|
3405
3370
|
location: u.styleLocation,
|
|
3406
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3407
|
-
}, L = a === "date" ?
|
|
3371
|
+
parsedOptions: this.shouldParseSkeletons ? Nn(T) : {}
|
|
3372
|
+
}, L = a === "date" ? _.date : _.time;
|
|
3408
3373
|
return {
|
|
3409
|
-
val: { type: L, value: n, location: g, style:
|
|
3374
|
+
val: { type: L, value: n, location: g, style: c },
|
|
3410
3375
|
err: null
|
|
3411
3376
|
};
|
|
3412
3377
|
}
|
|
3413
3378
|
}
|
|
3414
3379
|
return {
|
|
3415
3380
|
val: {
|
|
3416
|
-
type: a === "number" ?
|
|
3381
|
+
type: a === "number" ? _.number : a === "date" ? _.date : _.time,
|
|
3417
3382
|
value: n,
|
|
3418
3383
|
location: g,
|
|
3419
3384
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
@@ -3424,19 +3389,19 @@ var ai = (
|
|
|
3424
3389
|
case "plural":
|
|
3425
3390
|
case "selectordinal":
|
|
3426
3391
|
case "select": {
|
|
3427
|
-
var
|
|
3392
|
+
var H = this.clonePosition();
|
|
3428
3393
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3429
|
-
return this.error(
|
|
3394
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, v({}, H)));
|
|
3430
3395
|
this.bumpSpace();
|
|
3431
3396
|
var m = this.parseIdentifierIfPossible(), S = 0;
|
|
3432
3397
|
if (a !== "select" && m.value === "offset") {
|
|
3433
3398
|
if (!this.bumpIf(":"))
|
|
3434
|
-
return this.error(
|
|
3399
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3435
3400
|
this.bumpSpace();
|
|
3436
|
-
var
|
|
3437
|
-
if (
|
|
3438
|
-
return
|
|
3439
|
-
this.bumpSpace(), m = this.parseIdentifierIfPossible(), S =
|
|
3401
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3402
|
+
if (f.err)
|
|
3403
|
+
return f;
|
|
3404
|
+
this.bumpSpace(), m = this.parseIdentifierIfPossible(), S = f.val;
|
|
3440
3405
|
}
|
|
3441
3406
|
var $ = this.tryParsePluralOrSelectOptions(t, a, r, m);
|
|
3442
3407
|
if ($.err)
|
|
@@ -3444,32 +3409,32 @@ var ai = (
|
|
|
3444
3409
|
var y = this.tryParseArgumentClose(i);
|
|
3445
3410
|
if (y.err)
|
|
3446
3411
|
return y;
|
|
3447
|
-
var
|
|
3412
|
+
var ae = b(i, this.clonePosition());
|
|
3448
3413
|
return a === "select" ? {
|
|
3449
3414
|
val: {
|
|
3450
|
-
type:
|
|
3415
|
+
type: _.select,
|
|
3451
3416
|
value: n,
|
|
3452
|
-
options:
|
|
3453
|
-
location:
|
|
3417
|
+
options: wt($.val),
|
|
3418
|
+
location: ae
|
|
3454
3419
|
},
|
|
3455
3420
|
err: null
|
|
3456
3421
|
} : {
|
|
3457
3422
|
val: {
|
|
3458
|
-
type:
|
|
3423
|
+
type: _.plural,
|
|
3459
3424
|
value: n,
|
|
3460
|
-
options:
|
|
3425
|
+
options: wt($.val),
|
|
3461
3426
|
offset: S,
|
|
3462
3427
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3463
|
-
location:
|
|
3428
|
+
location: ae
|
|
3464
3429
|
},
|
|
3465
3430
|
err: null
|
|
3466
3431
|
};
|
|
3467
3432
|
}
|
|
3468
3433
|
default:
|
|
3469
|
-
return this.error(
|
|
3434
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, b(o, h));
|
|
3470
3435
|
}
|
|
3471
3436
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3472
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3437
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3473
3438
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3474
3439
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3475
3440
|
var n = this.char();
|
|
@@ -3478,7 +3443,7 @@ var ai = (
|
|
|
3478
3443
|
this.bump();
|
|
3479
3444
|
var i = this.clonePosition();
|
|
3480
3445
|
if (!this.bumpUntil("'"))
|
|
3481
|
-
return this.error(
|
|
3446
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3482
3447
|
this.bump();
|
|
3483
3448
|
break;
|
|
3484
3449
|
}
|
|
@@ -3508,52 +3473,52 @@ var ai = (
|
|
|
3508
3473
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3509
3474
|
var n = [];
|
|
3510
3475
|
try {
|
|
3511
|
-
n =
|
|
3476
|
+
n = Rn(t);
|
|
3512
3477
|
} catch (i) {
|
|
3513
|
-
return this.error(
|
|
3478
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3514
3479
|
}
|
|
3515
3480
|
return {
|
|
3516
3481
|
val: {
|
|
3517
|
-
type:
|
|
3482
|
+
type: ee.number,
|
|
3518
3483
|
tokens: n,
|
|
3519
3484
|
location: r,
|
|
3520
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3485
|
+
parsedOptions: this.shouldParseSkeletons ? Fn(n) : {}
|
|
3521
3486
|
},
|
|
3522
3487
|
err: null
|
|
3523
3488
|
};
|
|
3524
3489
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3525
3490
|
for (var s, o = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3526
3491
|
if (u.length === 0) {
|
|
3527
|
-
var
|
|
3492
|
+
var f = this.clonePosition();
|
|
3528
3493
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3529
|
-
var
|
|
3530
|
-
if (
|
|
3531
|
-
return
|
|
3532
|
-
l = b(
|
|
3494
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3495
|
+
if (c.err)
|
|
3496
|
+
return c;
|
|
3497
|
+
l = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3533
3498
|
} else
|
|
3534
3499
|
break;
|
|
3535
3500
|
}
|
|
3536
3501
|
if (h.has(u))
|
|
3537
|
-
return this.error(r === "select" ?
|
|
3502
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3538
3503
|
u === "other" && (o = !0), this.bumpSpace();
|
|
3539
|
-
var
|
|
3504
|
+
var d = this.clonePosition();
|
|
3540
3505
|
if (!this.bumpIf("{"))
|
|
3541
|
-
return this.error(r === "select" ?
|
|
3506
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3542
3507
|
var y = this.parseMessage(t + 1, r, n);
|
|
3543
3508
|
if (y.err)
|
|
3544
3509
|
return y;
|
|
3545
|
-
var g = this.tryParseArgumentClose(
|
|
3510
|
+
var g = this.tryParseArgumentClose(d);
|
|
3546
3511
|
if (g.err)
|
|
3547
3512
|
return g;
|
|
3548
3513
|
a.push([
|
|
3549
3514
|
u,
|
|
3550
3515
|
{
|
|
3551
3516
|
value: y.val,
|
|
3552
|
-
location: b(
|
|
3517
|
+
location: b(d, this.clonePosition())
|
|
3553
3518
|
}
|
|
3554
3519
|
]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
|
|
3555
3520
|
}
|
|
3556
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3521
|
+
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3557
3522
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3558
3523
|
var n = 1, i = this.clonePosition();
|
|
3559
3524
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3565,7 +3530,7 @@ var ai = (
|
|
|
3565
3530
|
break;
|
|
3566
3531
|
}
|
|
3567
3532
|
var h = b(i, this.clonePosition());
|
|
3568
|
-
return s ? (o *= n,
|
|
3533
|
+
return s ? (o *= n, Kn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3569
3534
|
}, e.prototype.offset = function() {
|
|
3570
3535
|
return this.position.offset;
|
|
3571
3536
|
}, e.prototype.isEOF = function() {
|
|
@@ -3580,7 +3545,7 @@ var ai = (
|
|
|
3580
3545
|
var t = this.position.offset;
|
|
3581
3546
|
if (t >= this.message.length)
|
|
3582
3547
|
throw Error("out of bound");
|
|
3583
|
-
var r =
|
|
3548
|
+
var r = or(this.message, t);
|
|
3584
3549
|
if (r === void 0)
|
|
3585
3550
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3586
3551
|
return r;
|
|
@@ -3599,7 +3564,7 @@ var ai = (
|
|
|
3599
3564
|
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);
|
|
3600
3565
|
}
|
|
3601
3566
|
}, e.prototype.bumpIf = function(t) {
|
|
3602
|
-
if (
|
|
3567
|
+
if (Ht(this.message, t, this.offset())) {
|
|
3603
3568
|
for (var r = 0; r < t.length; r++)
|
|
3604
3569
|
this.bump();
|
|
3605
3570
|
return !0;
|
|
@@ -3621,7 +3586,7 @@ var ai = (
|
|
|
3621
3586
|
break;
|
|
3622
3587
|
}
|
|
3623
3588
|
}, e.prototype.bumpSpace = function() {
|
|
3624
|
-
for (; !this.isEOF() &&
|
|
3589
|
+
for (; !this.isEOF() && ur(this.char()); )
|
|
3625
3590
|
this.bump();
|
|
3626
3591
|
}, e.prototype.peek = function() {
|
|
3627
3592
|
if (this.isEOF())
|
|
@@ -3631,47 +3596,47 @@ var ai = (
|
|
|
3631
3596
|
}, e;
|
|
3632
3597
|
}()
|
|
3633
3598
|
);
|
|
3634
|
-
function
|
|
3599
|
+
function et(e) {
|
|
3635
3600
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3636
3601
|
}
|
|
3637
|
-
function
|
|
3638
|
-
return
|
|
3602
|
+
function ii(e) {
|
|
3603
|
+
return et(e) || e === 47;
|
|
3639
3604
|
}
|
|
3640
|
-
function
|
|
3605
|
+
function si(e) {
|
|
3641
3606
|
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;
|
|
3642
3607
|
}
|
|
3643
|
-
function
|
|
3608
|
+
function ur(e) {
|
|
3644
3609
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3645
3610
|
}
|
|
3646
|
-
function
|
|
3611
|
+
function oi(e) {
|
|
3647
3612
|
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;
|
|
3648
3613
|
}
|
|
3649
|
-
function
|
|
3614
|
+
function tt(e) {
|
|
3650
3615
|
e.forEach(function(t) {
|
|
3651
|
-
if (delete t.location,
|
|
3616
|
+
if (delete t.location, Yt(t) || Kt(t))
|
|
3652
3617
|
for (var r in t.options)
|
|
3653
|
-
delete t.options[r].location,
|
|
3618
|
+
delete t.options[r].location, tt(t.options[r].value);
|
|
3654
3619
|
else
|
|
3655
|
-
|
|
3620
|
+
Qt(t) && tr(t.style) || (qt(t) || Jt(t)) && qe(t.style) ? delete t.style.location : er(t) && tt(t.children);
|
|
3656
3621
|
});
|
|
3657
3622
|
}
|
|
3658
|
-
function
|
|
3659
|
-
t === void 0 && (t = {}), t =
|
|
3660
|
-
var r = new
|
|
3623
|
+
function ai(e, t) {
|
|
3624
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3625
|
+
var r = new ni(e, t).parse();
|
|
3661
3626
|
if (r.err) {
|
|
3662
|
-
var n = SyntaxError(
|
|
3627
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3663
3628
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3664
3629
|
}
|
|
3665
|
-
return t != null && t.captureLocation ||
|
|
3630
|
+
return t != null && t.captureLocation || tt(r.val), r.val;
|
|
3666
3631
|
}
|
|
3667
|
-
var
|
|
3632
|
+
var te;
|
|
3668
3633
|
(function(e) {
|
|
3669
3634
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3670
|
-
})(
|
|
3671
|
-
var
|
|
3635
|
+
})(te || (te = {}));
|
|
3636
|
+
var Ce = (
|
|
3672
3637
|
/** @class */
|
|
3673
3638
|
function(e) {
|
|
3674
|
-
|
|
3639
|
+
G(t, e);
|
|
3675
3640
|
function t(r, n, i) {
|
|
3676
3641
|
var s = e.call(this, r) || this;
|
|
3677
3642
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3680,48 +3645,48 @@ var Le = (
|
|
|
3680
3645
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3681
3646
|
}, t;
|
|
3682
3647
|
}(Error)
|
|
3683
|
-
),
|
|
3648
|
+
), At = (
|
|
3684
3649
|
/** @class */
|
|
3685
3650
|
function(e) {
|
|
3686
|
-
|
|
3651
|
+
G(t, e);
|
|
3687
3652
|
function t(r, n, i, s) {
|
|
3688
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3653
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, s) || this;
|
|
3689
3654
|
}
|
|
3690
3655
|
return t;
|
|
3691
|
-
}(
|
|
3692
|
-
),
|
|
3656
|
+
}(Ce)
|
|
3657
|
+
), ui = (
|
|
3693
3658
|
/** @class */
|
|
3694
3659
|
function(e) {
|
|
3695
|
-
|
|
3660
|
+
G(t, e);
|
|
3696
3661
|
function t(r, n, i) {
|
|
3697
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3662
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
|
|
3698
3663
|
}
|
|
3699
3664
|
return t;
|
|
3700
|
-
}(
|
|
3701
|
-
),
|
|
3665
|
+
}(Ce)
|
|
3666
|
+
), hi = (
|
|
3702
3667
|
/** @class */
|
|
3703
3668
|
function(e) {
|
|
3704
|
-
|
|
3669
|
+
G(t, e);
|
|
3705
3670
|
function t(r, n) {
|
|
3706
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3671
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
|
|
3707
3672
|
}
|
|
3708
3673
|
return t;
|
|
3709
|
-
}(
|
|
3674
|
+
}(Ce)
|
|
3710
3675
|
), A;
|
|
3711
3676
|
(function(e) {
|
|
3712
3677
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3713
3678
|
})(A || (A = {}));
|
|
3714
|
-
function
|
|
3679
|
+
function li(e) {
|
|
3715
3680
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3716
3681
|
var n = t[t.length - 1];
|
|
3717
3682
|
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3718
3683
|
}, []);
|
|
3719
3684
|
}
|
|
3720
|
-
function
|
|
3685
|
+
function fi(e) {
|
|
3721
3686
|
return typeof e == "function";
|
|
3722
3687
|
}
|
|
3723
|
-
function
|
|
3724
|
-
if (e.length === 1 &&
|
|
3688
|
+
function Te(e, t, r, n, i, s, o) {
|
|
3689
|
+
if (e.length === 1 && Et(e[0]))
|
|
3725
3690
|
return [
|
|
3726
3691
|
{
|
|
3727
3692
|
type: A.literal,
|
|
@@ -3730,60 +3695,60 @@ function we(e, t, r, n, i, s, o) {
|
|
|
3730
3695
|
];
|
|
3731
3696
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3732
3697
|
var l = u[h];
|
|
3733
|
-
if (
|
|
3698
|
+
if (Et(l)) {
|
|
3734
3699
|
a.push({
|
|
3735
3700
|
type: A.literal,
|
|
3736
3701
|
value: l.value
|
|
3737
3702
|
});
|
|
3738
3703
|
continue;
|
|
3739
3704
|
}
|
|
3740
|
-
if (
|
|
3705
|
+
if (Ln(l)) {
|
|
3741
3706
|
typeof s == "number" && a.push({
|
|
3742
3707
|
type: A.literal,
|
|
3743
3708
|
value: r.getNumberFormat(t).format(s)
|
|
3744
3709
|
});
|
|
3745
3710
|
continue;
|
|
3746
3711
|
}
|
|
3747
|
-
var
|
|
3748
|
-
if (!(i &&
|
|
3749
|
-
throw new
|
|
3750
|
-
var
|
|
3751
|
-
if (
|
|
3752
|
-
(!
|
|
3753
|
-
type: typeof
|
|
3754
|
-
value:
|
|
3712
|
+
var f = l.value;
|
|
3713
|
+
if (!(i && f in i))
|
|
3714
|
+
throw new hi(f, o);
|
|
3715
|
+
var c = i[f];
|
|
3716
|
+
if (In(l)) {
|
|
3717
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3718
|
+
type: typeof c == "string" ? A.literal : A.object,
|
|
3719
|
+
value: c
|
|
3755
3720
|
});
|
|
3756
3721
|
continue;
|
|
3757
3722
|
}
|
|
3758
|
-
if (
|
|
3759
|
-
var
|
|
3723
|
+
if (qt(l)) {
|
|
3724
|
+
var d = typeof l.style == "string" ? n.date[l.style] : qe(l.style) ? l.style.parsedOptions : void 0;
|
|
3760
3725
|
a.push({
|
|
3761
3726
|
type: A.literal,
|
|
3762
|
-
value: r.getDateTimeFormat(t,
|
|
3727
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3763
3728
|
});
|
|
3764
3729
|
continue;
|
|
3765
3730
|
}
|
|
3766
|
-
if (
|
|
3767
|
-
var
|
|
3731
|
+
if (Jt(l)) {
|
|
3732
|
+
var d = typeof l.style == "string" ? n.time[l.style] : qe(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3768
3733
|
a.push({
|
|
3769
3734
|
type: A.literal,
|
|
3770
|
-
value: r.getDateTimeFormat(t,
|
|
3735
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3771
3736
|
});
|
|
3772
3737
|
continue;
|
|
3773
3738
|
}
|
|
3774
|
-
if (
|
|
3775
|
-
var
|
|
3776
|
-
|
|
3739
|
+
if (Qt(l)) {
|
|
3740
|
+
var d = typeof l.style == "string" ? n.number[l.style] : tr(l.style) ? l.style.parsedOptions : void 0;
|
|
3741
|
+
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
3777
3742
|
type: A.literal,
|
|
3778
|
-
value: r.getNumberFormat(t,
|
|
3743
|
+
value: r.getNumberFormat(t, d).format(c)
|
|
3779
3744
|
});
|
|
3780
3745
|
continue;
|
|
3781
3746
|
}
|
|
3782
|
-
if (
|
|
3783
|
-
var y = l.children, g = l.value,
|
|
3784
|
-
if (!
|
|
3785
|
-
throw new
|
|
3786
|
-
var
|
|
3747
|
+
if (er(l)) {
|
|
3748
|
+
var y = l.children, g = l.value, O = i[g];
|
|
3749
|
+
if (!fi(O))
|
|
3750
|
+
throw new ui(g, "function", o);
|
|
3751
|
+
var T = Te(y, t, r, n, i, s), L = O(T.map(function(S) {
|
|
3787
3752
|
return S.value;
|
|
3788
3753
|
}));
|
|
3789
3754
|
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(S) {
|
|
@@ -3793,42 +3758,42 @@ function we(e, t, r, n, i, s, o) {
|
|
|
3793
3758
|
};
|
|
3794
3759
|
}));
|
|
3795
3760
|
}
|
|
3796
|
-
if (
|
|
3797
|
-
var
|
|
3798
|
-
if (!
|
|
3799
|
-
throw new
|
|
3800
|
-
a.push.apply(a,
|
|
3761
|
+
if (Yt(l)) {
|
|
3762
|
+
var H = l.options[c] || l.options.other;
|
|
3763
|
+
if (!H)
|
|
3764
|
+
throw new At(l.value, c, Object.keys(l.options), o);
|
|
3765
|
+
a.push.apply(a, Te(H.value, t, r, n, i));
|
|
3801
3766
|
continue;
|
|
3802
3767
|
}
|
|
3803
|
-
if (
|
|
3804
|
-
var
|
|
3805
|
-
if (!
|
|
3768
|
+
if (Kt(l)) {
|
|
3769
|
+
var H = l.options["=".concat(c)];
|
|
3770
|
+
if (!H) {
|
|
3806
3771
|
if (!Intl.PluralRules)
|
|
3807
|
-
throw new
|
|
3772
|
+
throw new Ce(`Intl.PluralRules is not available in this environment.
|
|
3808
3773
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3809
|
-
`,
|
|
3810
|
-
var m = r.getPluralRules(t, { type: l.pluralType }).select(
|
|
3811
|
-
|
|
3774
|
+
`, te.MISSING_INTL_API, o);
|
|
3775
|
+
var m = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3776
|
+
H = l.options[m] || l.options.other;
|
|
3812
3777
|
}
|
|
3813
|
-
if (!
|
|
3814
|
-
throw new
|
|
3815
|
-
a.push.apply(a,
|
|
3778
|
+
if (!H)
|
|
3779
|
+
throw new At(l.value, c, Object.keys(l.options), o);
|
|
3780
|
+
a.push.apply(a, Te(H.value, t, r, n, i, c - (l.offset || 0)));
|
|
3816
3781
|
continue;
|
|
3817
3782
|
}
|
|
3818
3783
|
}
|
|
3819
|
-
return
|
|
3784
|
+
return li(a);
|
|
3820
3785
|
}
|
|
3821
|
-
function
|
|
3822
|
-
return t ?
|
|
3823
|
-
return r[n] =
|
|
3786
|
+
function ci(e, t) {
|
|
3787
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3788
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3824
3789
|
}, {})) : e;
|
|
3825
3790
|
}
|
|
3826
|
-
function
|
|
3791
|
+
function di(e, t) {
|
|
3827
3792
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3828
|
-
return r[n] =
|
|
3829
|
-
},
|
|
3793
|
+
return r[n] = ci(e[n], t[n]), r;
|
|
3794
|
+
}, v({}, e)) : e;
|
|
3830
3795
|
}
|
|
3831
|
-
function
|
|
3796
|
+
function Ge(e) {
|
|
3832
3797
|
return {
|
|
3833
3798
|
create: function() {
|
|
3834
3799
|
return {
|
|
@@ -3842,39 +3807,39 @@ function ke(e) {
|
|
|
3842
3807
|
}
|
|
3843
3808
|
};
|
|
3844
3809
|
}
|
|
3845
|
-
function
|
|
3810
|
+
function pi(e) {
|
|
3846
3811
|
return e === void 0 && (e = {
|
|
3847
3812
|
number: {},
|
|
3848
3813
|
dateTime: {},
|
|
3849
3814
|
pluralRules: {}
|
|
3850
3815
|
}), {
|
|
3851
|
-
getNumberFormat:
|
|
3816
|
+
getNumberFormat: Re(function() {
|
|
3852
3817
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3853
3818
|
r[n] = arguments[n];
|
|
3854
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3819
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Y([void 0], r, !1)))();
|
|
3855
3820
|
}, {
|
|
3856
|
-
cache:
|
|
3857
|
-
strategy:
|
|
3821
|
+
cache: Ge(e.number),
|
|
3822
|
+
strategy: Ue.variadic
|
|
3858
3823
|
}),
|
|
3859
|
-
getDateTimeFormat:
|
|
3824
|
+
getDateTimeFormat: Re(function() {
|
|
3860
3825
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3861
3826
|
r[n] = arguments[n];
|
|
3862
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3827
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Y([void 0], r, !1)))();
|
|
3863
3828
|
}, {
|
|
3864
|
-
cache:
|
|
3865
|
-
strategy:
|
|
3829
|
+
cache: Ge(e.dateTime),
|
|
3830
|
+
strategy: Ue.variadic
|
|
3866
3831
|
}),
|
|
3867
|
-
getPluralRules:
|
|
3832
|
+
getPluralRules: Re(function() {
|
|
3868
3833
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3869
3834
|
r[n] = arguments[n];
|
|
3870
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3835
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Y([void 0], r, !1)))();
|
|
3871
3836
|
}, {
|
|
3872
|
-
cache:
|
|
3873
|
-
strategy:
|
|
3837
|
+
cache: Ge(e.pluralRules),
|
|
3838
|
+
strategy: Ue.variadic
|
|
3874
3839
|
})
|
|
3875
3840
|
};
|
|
3876
3841
|
}
|
|
3877
|
-
var
|
|
3842
|
+
var hr = (
|
|
3878
3843
|
/** @class */
|
|
3879
3844
|
function() {
|
|
3880
3845
|
function e(t, r, n, i) {
|
|
@@ -3888,12 +3853,12 @@ var pr = (
|
|
|
3888
3853
|
var u = s.formatToParts(h);
|
|
3889
3854
|
if (u.length === 1)
|
|
3890
3855
|
return u[0].value;
|
|
3891
|
-
var l = u.reduce(function(
|
|
3892
|
-
return !
|
|
3856
|
+
var l = u.reduce(function(f, c) {
|
|
3857
|
+
return !f.length || c.type !== A.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3893
3858
|
}, []);
|
|
3894
3859
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3895
3860
|
}, this.formatToParts = function(h) {
|
|
3896
|
-
return
|
|
3861
|
+
return Te(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3897
3862
|
}, this.resolvedOptions = function() {
|
|
3898
3863
|
var h;
|
|
3899
3864
|
return {
|
|
@@ -3906,13 +3871,13 @@ var pr = (
|
|
|
3906
3871
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3907
3872
|
var o = i || {};
|
|
3908
3873
|
o.formatters;
|
|
3909
|
-
var a =
|
|
3910
|
-
this.ast = e.__parse(t,
|
|
3874
|
+
var a = Wr(o, ["formatters"]);
|
|
3875
|
+
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
|
3911
3876
|
} else
|
|
3912
3877
|
this.ast = t;
|
|
3913
3878
|
if (!Array.isArray(this.ast))
|
|
3914
3879
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3915
|
-
this.formats =
|
|
3880
|
+
this.formats = di(e.formats, n), this.formatters = i && i.formatters || pi(this.formatterCache);
|
|
3916
3881
|
}
|
|
3917
3882
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3918
3883
|
get: function() {
|
|
@@ -3925,7 +3890,7 @@ var pr = (
|
|
|
3925
3890
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3926
3891
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3927
3892
|
}
|
|
3928
|
-
}, e.__parse =
|
|
3893
|
+
}, e.__parse = ai, e.formats = {
|
|
3929
3894
|
number: {
|
|
3930
3895
|
integer: {
|
|
3931
3896
|
maximumFractionDigits: 0
|
|
@@ -3986,7 +3951,7 @@ var pr = (
|
|
|
3986
3951
|
}, e;
|
|
3987
3952
|
}()
|
|
3988
3953
|
);
|
|
3989
|
-
function
|
|
3954
|
+
function mi(e, t) {
|
|
3990
3955
|
if (t == null)
|
|
3991
3956
|
return;
|
|
3992
3957
|
if (t in e)
|
|
@@ -4007,101 +3972,101 @@ function vi(e, t) {
|
|
|
4007
3972
|
n = void 0;
|
|
4008
3973
|
return n;
|
|
4009
3974
|
}
|
|
4010
|
-
const j = {},
|
|
3975
|
+
const j = {}, bi = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), lr = (e, t) => {
|
|
4011
3976
|
if (t == null)
|
|
4012
3977
|
return;
|
|
4013
3978
|
if (t in j && e in j[t])
|
|
4014
3979
|
return j[t][e];
|
|
4015
3980
|
const r = me(t);
|
|
4016
3981
|
for (let n = 0; n < r.length; n++) {
|
|
4017
|
-
const i = r[n], s =
|
|
3982
|
+
const i = r[n], s = gi(i, e);
|
|
4018
3983
|
if (s)
|
|
4019
|
-
return
|
|
3984
|
+
return bi(e, t, s);
|
|
4020
3985
|
}
|
|
4021
3986
|
};
|
|
4022
|
-
let
|
|
4023
|
-
const
|
|
4024
|
-
function
|
|
4025
|
-
return
|
|
3987
|
+
let st;
|
|
3988
|
+
const pe = Pe({});
|
|
3989
|
+
function yi(e) {
|
|
3990
|
+
return st[e] || null;
|
|
4026
3991
|
}
|
|
4027
|
-
function
|
|
4028
|
-
return e in
|
|
3992
|
+
function fr(e) {
|
|
3993
|
+
return e in st;
|
|
4029
3994
|
}
|
|
4030
|
-
function
|
|
4031
|
-
if (!
|
|
3995
|
+
function gi(e, t) {
|
|
3996
|
+
if (!fr(e))
|
|
4032
3997
|
return null;
|
|
4033
|
-
const r =
|
|
4034
|
-
return
|
|
3998
|
+
const r = yi(e);
|
|
3999
|
+
return mi(r, t);
|
|
4035
4000
|
}
|
|
4036
|
-
function
|
|
4001
|
+
function vi(e) {
|
|
4037
4002
|
if (e == null)
|
|
4038
4003
|
return;
|
|
4039
4004
|
const t = me(e);
|
|
4040
4005
|
for (let r = 0; r < t.length; r++) {
|
|
4041
4006
|
const n = t[r];
|
|
4042
|
-
if (
|
|
4007
|
+
if (fr(n))
|
|
4043
4008
|
return n;
|
|
4044
4009
|
}
|
|
4045
4010
|
}
|
|
4046
|
-
function
|
|
4047
|
-
delete j[e],
|
|
4011
|
+
function cr(e, ...t) {
|
|
4012
|
+
delete j[e], pe.update((r) => (r[e] = Tn.all([r[e] || {}, ...t]), r));
|
|
4048
4013
|
}
|
|
4049
|
-
|
|
4050
|
-
[
|
|
4014
|
+
se(
|
|
4015
|
+
[pe],
|
|
4051
4016
|
([e]) => Object.keys(e)
|
|
4052
4017
|
);
|
|
4053
|
-
|
|
4054
|
-
const
|
|
4055
|
-
function
|
|
4056
|
-
|
|
4018
|
+
pe.subscribe((e) => st = e);
|
|
4019
|
+
const He = {};
|
|
4020
|
+
function _i(e, t) {
|
|
4021
|
+
He[e].delete(t), He[e].size === 0 && delete He[e];
|
|
4057
4022
|
}
|
|
4058
|
-
function
|
|
4059
|
-
return
|
|
4023
|
+
function dr(e) {
|
|
4024
|
+
return He[e];
|
|
4060
4025
|
}
|
|
4061
|
-
function
|
|
4026
|
+
function Ei(e) {
|
|
4062
4027
|
return me(e).map((t) => {
|
|
4063
|
-
const r =
|
|
4028
|
+
const r = dr(t);
|
|
4064
4029
|
return [t, r ? [...r] : []];
|
|
4065
4030
|
}).filter(([, t]) => t.length > 0);
|
|
4066
4031
|
}
|
|
4067
|
-
function
|
|
4032
|
+
function we(e) {
|
|
4068
4033
|
return e == null ? !1 : me(e).some(
|
|
4069
4034
|
(t) => {
|
|
4070
4035
|
var r;
|
|
4071
|
-
return (r =
|
|
4036
|
+
return (r = dr(t)) == null ? void 0 : r.size;
|
|
4072
4037
|
}
|
|
4073
4038
|
);
|
|
4074
4039
|
}
|
|
4075
|
-
function
|
|
4040
|
+
function xi(e, t) {
|
|
4076
4041
|
return Promise.all(
|
|
4077
|
-
t.map((n) => (
|
|
4078
|
-
).then((n) =>
|
|
4079
|
-
}
|
|
4080
|
-
const
|
|
4081
|
-
function
|
|
4082
|
-
if (!
|
|
4083
|
-
return e in
|
|
4084
|
-
const t =
|
|
4085
|
-
return
|
|
4042
|
+
t.map((n) => (_i(e, n), n().then((i) => i.default || i)))
|
|
4043
|
+
).then((n) => cr(e, ...n));
|
|
4044
|
+
}
|
|
4045
|
+
const ue = {};
|
|
4046
|
+
function pr(e) {
|
|
4047
|
+
if (!we(e))
|
|
4048
|
+
return e in ue ? ue[e] : Promise.resolve();
|
|
4049
|
+
const t = Ei(e);
|
|
4050
|
+
return ue[e] = Promise.all(
|
|
4086
4051
|
t.map(
|
|
4087
|
-
([r, n]) =>
|
|
4052
|
+
([r, n]) => xi(r, n)
|
|
4088
4053
|
)
|
|
4089
4054
|
).then(() => {
|
|
4090
|
-
if (
|
|
4091
|
-
return
|
|
4092
|
-
delete
|
|
4093
|
-
}),
|
|
4055
|
+
if (we(e))
|
|
4056
|
+
return pr(e);
|
|
4057
|
+
delete ue[e];
|
|
4058
|
+
}), ue[e];
|
|
4094
4059
|
}
|
|
4095
|
-
var
|
|
4060
|
+
var Ot = Object.getOwnPropertySymbols, Si = Object.prototype.hasOwnProperty, Ti = Object.prototype.propertyIsEnumerable, Hi = (e, t) => {
|
|
4096
4061
|
var r = {};
|
|
4097
4062
|
for (var n in e)
|
|
4098
|
-
|
|
4099
|
-
if (e != null &&
|
|
4100
|
-
for (var n of
|
|
4101
|
-
t.indexOf(n) < 0 &&
|
|
4063
|
+
Si.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4064
|
+
if (e != null && Ot)
|
|
4065
|
+
for (var n of Ot(e))
|
|
4066
|
+
t.indexOf(n) < 0 && Ti.call(e, n) && (r[n] = e[n]);
|
|
4102
4067
|
return r;
|
|
4103
4068
|
};
|
|
4104
|
-
const
|
|
4069
|
+
const wi = {
|
|
4105
4070
|
number: {
|
|
4106
4071
|
scientific: { notation: "scientific" },
|
|
4107
4072
|
engineering: { notation: "engineering" },
|
|
@@ -4131,159 +4096,159 @@ const Pi = {
|
|
|
4131
4096
|
}
|
|
4132
4097
|
}
|
|
4133
4098
|
};
|
|
4134
|
-
function
|
|
4099
|
+
function Bi({ locale: e, id: t }) {
|
|
4135
4100
|
console.warn(
|
|
4136
4101
|
`[svelte-i18n] The message "${t}" was not found in "${me(
|
|
4137
4102
|
e
|
|
4138
|
-
).join('", "')}".${
|
|
4103
|
+
).join('", "')}".${we(k()) ? `
|
|
4139
4104
|
|
|
4140
4105
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
4141
4106
|
);
|
|
4142
4107
|
}
|
|
4143
|
-
const
|
|
4108
|
+
const Ai = {
|
|
4144
4109
|
fallbackLocale: null,
|
|
4145
4110
|
loadingDelay: 200,
|
|
4146
|
-
formats:
|
|
4111
|
+
formats: wi,
|
|
4147
4112
|
warnOnMissingMessages: !0,
|
|
4148
4113
|
handleMissingMessage: void 0,
|
|
4149
4114
|
ignoreTag: !0
|
|
4150
|
-
},
|
|
4151
|
-
function
|
|
4152
|
-
return
|
|
4115
|
+
}, he = Ai;
|
|
4116
|
+
function re() {
|
|
4117
|
+
return he;
|
|
4153
4118
|
}
|
|
4154
|
-
function
|
|
4155
|
-
const t = e, { formats: r } = t, n =
|
|
4119
|
+
function Oi(e) {
|
|
4120
|
+
const t = e, { formats: r } = t, n = Hi(t, ["formats"]);
|
|
4156
4121
|
let i = e.fallbackLocale;
|
|
4157
4122
|
if (e.initialLocale)
|
|
4158
4123
|
try {
|
|
4159
|
-
|
|
4124
|
+
hr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
4160
4125
|
} catch (s) {
|
|
4161
4126
|
console.warn(
|
|
4162
4127
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
4163
4128
|
);
|
|
4164
4129
|
}
|
|
4165
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
4130
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Bi : console.warn(
|
|
4166
4131
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
4167
|
-
)), Object.assign(
|
|
4168
|
-
}
|
|
4169
|
-
const
|
|
4170
|
-
var
|
|
4171
|
-
for (var r in t
|
|
4172
|
-
|
|
4173
|
-
if (
|
|
4174
|
-
for (var r of
|
|
4175
|
-
|
|
4132
|
+
)), Object.assign(he, n, { initialLocale: i }), r && ("number" in r && Object.assign(he.formats.number, r.number), "date" in r && Object.assign(he.formats.date, r.date), "time" in r && Object.assign(he.formats.time, r.time)), X.set(i);
|
|
4133
|
+
}
|
|
4134
|
+
const Fe = Pe(!1);
|
|
4135
|
+
var Pi = Object.defineProperty, Ci = Object.defineProperties, Ii = Object.getOwnPropertyDescriptors, Pt = Object.getOwnPropertySymbols, Li = Object.prototype.hasOwnProperty, Mi = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ni = (e, t) => {
|
|
4136
|
+
for (var r in t)
|
|
4137
|
+
Li.call(t, r) && Ct(e, r, t[r]);
|
|
4138
|
+
if (Pt)
|
|
4139
|
+
for (var r of Pt(t))
|
|
4140
|
+
Mi.call(t, r) && Ct(e, r, t[r]);
|
|
4176
4141
|
return e;
|
|
4177
|
-
},
|
|
4178
|
-
let
|
|
4179
|
-
const
|
|
4180
|
-
function
|
|
4142
|
+
}, $i = (e, t) => Ci(e, Ii(t));
|
|
4143
|
+
let rt;
|
|
4144
|
+
const Be = Pe(null);
|
|
4145
|
+
function It(e) {
|
|
4181
4146
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4182
4147
|
}
|
|
4183
|
-
function me(e, t =
|
|
4184
|
-
const r =
|
|
4185
|
-
return t ? [.../* @__PURE__ */ new Set([...r,
|
|
4148
|
+
function me(e, t = re().fallbackLocale) {
|
|
4149
|
+
const r = It(e);
|
|
4150
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...It(t)])] : r;
|
|
4186
4151
|
}
|
|
4187
4152
|
function k() {
|
|
4188
|
-
return
|
|
4153
|
+
return rt != null ? rt : void 0;
|
|
4189
4154
|
}
|
|
4190
|
-
|
|
4191
|
-
|
|
4155
|
+
Be.subscribe((e) => {
|
|
4156
|
+
rt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4192
4157
|
});
|
|
4193
|
-
const
|
|
4194
|
-
if (e &&
|
|
4195
|
-
const { loadingDelay: t } =
|
|
4158
|
+
const Ri = (e) => {
|
|
4159
|
+
if (e && vi(e) && we(e)) {
|
|
4160
|
+
const { loadingDelay: t } = re();
|
|
4196
4161
|
let r;
|
|
4197
4162
|
return typeof window != "undefined" && k() != null && t ? r = window.setTimeout(
|
|
4198
|
-
() =>
|
|
4163
|
+
() => Fe.set(!0),
|
|
4199
4164
|
t
|
|
4200
|
-
) :
|
|
4201
|
-
|
|
4165
|
+
) : Fe.set(!0), pr(e).then(() => {
|
|
4166
|
+
Be.set(e);
|
|
4202
4167
|
}).finally(() => {
|
|
4203
|
-
clearTimeout(r),
|
|
4168
|
+
clearTimeout(r), Fe.set(!1);
|
|
4204
4169
|
});
|
|
4205
4170
|
}
|
|
4206
|
-
return
|
|
4207
|
-
}, X =
|
|
4208
|
-
set:
|
|
4209
|
-
}),
|
|
4171
|
+
return Be.set(e);
|
|
4172
|
+
}, X = $i(Ni({}, Be), {
|
|
4173
|
+
set: Ri
|
|
4174
|
+
}), Ie = (e) => {
|
|
4210
4175
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4211
4176
|
return (n) => {
|
|
4212
4177
|
const i = JSON.stringify(n);
|
|
4213
4178
|
return i in t ? t[i] : t[i] = e(n);
|
|
4214
4179
|
};
|
|
4215
4180
|
};
|
|
4216
|
-
var
|
|
4181
|
+
var Ui = Object.defineProperty, Ae = Object.getOwnPropertySymbols, mr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? Ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ot = (e, t) => {
|
|
4217
4182
|
for (var r in t || (t = {}))
|
|
4218
|
-
|
|
4219
|
-
if (
|
|
4220
|
-
for (var r of
|
|
4221
|
-
|
|
4183
|
+
mr.call(t, r) && Lt(e, r, t[r]);
|
|
4184
|
+
if (Ae)
|
|
4185
|
+
for (var r of Ae(t))
|
|
4186
|
+
br.call(t, r) && Lt(e, r, t[r]);
|
|
4222
4187
|
return e;
|
|
4223
|
-
},
|
|
4188
|
+
}, oe = (e, t) => {
|
|
4224
4189
|
var r = {};
|
|
4225
4190
|
for (var n in e)
|
|
4226
|
-
|
|
4227
|
-
if (e != null &&
|
|
4228
|
-
for (var n of
|
|
4229
|
-
t.indexOf(n) < 0 &&
|
|
4191
|
+
mr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4192
|
+
if (e != null && Ae)
|
|
4193
|
+
for (var n of Ae(e))
|
|
4194
|
+
t.indexOf(n) < 0 && br.call(e, n) && (r[n] = e[n]);
|
|
4230
4195
|
return r;
|
|
4231
4196
|
};
|
|
4232
|
-
const
|
|
4233
|
-
const { formats: r } =
|
|
4197
|
+
const de = (e, t) => {
|
|
4198
|
+
const { formats: r } = re();
|
|
4234
4199
|
if (e in r && t in r[e])
|
|
4235
4200
|
return r[e][t];
|
|
4236
4201
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4237
|
-
},
|
|
4202
|
+
}, Di = Ie(
|
|
4238
4203
|
(e) => {
|
|
4239
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4204
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4240
4205
|
if (r == null)
|
|
4241
4206
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4242
|
-
return n && (i =
|
|
4207
|
+
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
4243
4208
|
}
|
|
4244
|
-
),
|
|
4209
|
+
), Gi = Ie(
|
|
4245
4210
|
(e) => {
|
|
4246
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4211
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4247
4212
|
if (r == null)
|
|
4248
4213
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4249
|
-
return n ? i =
|
|
4214
|
+
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4250
4215
|
}
|
|
4251
|
-
),
|
|
4216
|
+
), Fi = Ie(
|
|
4252
4217
|
(e) => {
|
|
4253
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4218
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4254
4219
|
if (r == null)
|
|
4255
4220
|
throw new Error(
|
|
4256
4221
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4257
4222
|
);
|
|
4258
|
-
return n ? i =
|
|
4223
|
+
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4259
4224
|
}
|
|
4260
|
-
),
|
|
4225
|
+
), ji = (e = {}) => {
|
|
4261
4226
|
var t = e, {
|
|
4262
4227
|
locale: r = k()
|
|
4263
|
-
} = t, n =
|
|
4228
|
+
} = t, n = oe(t, [
|
|
4264
4229
|
"locale"
|
|
4265
4230
|
]);
|
|
4266
|
-
return
|
|
4267
|
-
},
|
|
4231
|
+
return Di(ot({ locale: r }, n));
|
|
4232
|
+
}, ki = (e = {}) => {
|
|
4268
4233
|
var t = e, {
|
|
4269
4234
|
locale: r = k()
|
|
4270
|
-
} = t, n =
|
|
4235
|
+
} = t, n = oe(t, [
|
|
4271
4236
|
"locale"
|
|
4272
4237
|
]);
|
|
4273
|
-
return
|
|
4274
|
-
},
|
|
4238
|
+
return Gi(ot({ locale: r }, n));
|
|
4239
|
+
}, Vi = (e = {}) => {
|
|
4275
4240
|
var t = e, {
|
|
4276
4241
|
locale: r = k()
|
|
4277
|
-
} = t, n =
|
|
4242
|
+
} = t, n = oe(t, [
|
|
4278
4243
|
"locale"
|
|
4279
4244
|
]);
|
|
4280
|
-
return
|
|
4281
|
-
},
|
|
4245
|
+
return Fi(ot({ locale: r }, n));
|
|
4246
|
+
}, Xi = Ie(
|
|
4282
4247
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4283
|
-
(e, t = k()) => new
|
|
4284
|
-
ignoreTag:
|
|
4248
|
+
(e, t = k()) => new hr(e, t, re().formats, {
|
|
4249
|
+
ignoreTag: re().ignoreTag
|
|
4285
4250
|
})
|
|
4286
|
-
),
|
|
4251
|
+
), Wi = (e, t = {}) => {
|
|
4287
4252
|
var r, n, i, s;
|
|
4288
4253
|
let o = t;
|
|
4289
4254
|
typeof e == "object" && (o = e, e = o.id);
|
|
@@ -4296,39 +4261,39 @@ const fe = (e, t) => {
|
|
|
4296
4261
|
throw new Error(
|
|
4297
4262
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4298
4263
|
);
|
|
4299
|
-
let l =
|
|
4264
|
+
let l = lr(e, h);
|
|
4300
4265
|
if (!l)
|
|
4301
|
-
l = (s = (i = (n = (r =
|
|
4266
|
+
l = (s = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4302
4267
|
else if (typeof l != "string")
|
|
4303
4268
|
return console.warn(
|
|
4304
4269
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4305
4270
|
), l;
|
|
4306
4271
|
if (!a)
|
|
4307
4272
|
return l;
|
|
4308
|
-
let
|
|
4273
|
+
let f = l;
|
|
4309
4274
|
try {
|
|
4310
|
-
|
|
4311
|
-
} catch (
|
|
4312
|
-
|
|
4275
|
+
f = Xi(l, h).format(a);
|
|
4276
|
+
} catch (c) {
|
|
4277
|
+
c instanceof Error && console.warn(
|
|
4313
4278
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4314
|
-
|
|
4279
|
+
c.message
|
|
4315
4280
|
);
|
|
4316
4281
|
}
|
|
4317
|
-
return
|
|
4318
|
-
},
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
window.emWidgets = { topic:
|
|
4324
|
-
const
|
|
4325
|
-
function
|
|
4282
|
+
return f;
|
|
4283
|
+
}, zi = (e, t) => Vi(t).format(e), Zi = (e, t) => ki(t).format(e), Qi = (e, t) => ji(t).format(e), qi = (e, t = k()) => lr(e, t), Ji = se([X, pe], () => Wi);
|
|
4284
|
+
se([X], () => zi);
|
|
4285
|
+
se([X], () => Zi);
|
|
4286
|
+
se([X], () => Qi);
|
|
4287
|
+
se([X, pe], () => qi);
|
|
4288
|
+
window.emWidgets = { topic: an };
|
|
4289
|
+
const Yi = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4290
|
+
function Ki(e, t) {
|
|
4326
4291
|
if (e) {
|
|
4327
4292
|
const r = document.createElement("style");
|
|
4328
4293
|
r.innerHTML = t, e.appendChild(r);
|
|
4329
4294
|
}
|
|
4330
4295
|
}
|
|
4331
|
-
function
|
|
4296
|
+
function es(e, t) {
|
|
4332
4297
|
const r = new URL(t);
|
|
4333
4298
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4334
4299
|
const i = document.createElement("style");
|
|
@@ -4337,7 +4302,7 @@ function is(e, t) {
|
|
|
4337
4302
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4338
4303
|
});
|
|
4339
4304
|
}
|
|
4340
|
-
function
|
|
4305
|
+
function ts(e, t, r) {
|
|
4341
4306
|
if (window.emMessageBus) {
|
|
4342
4307
|
const n = document.createElement("style");
|
|
4343
4308
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4345,8 +4310,8 @@ function ss(e, t, r) {
|
|
|
4345
4310
|
});
|
|
4346
4311
|
}
|
|
4347
4312
|
}
|
|
4348
|
-
var x = /* @__PURE__ */ ((e) => (e.MysteryChests = "MysteryChests", e.FlipCoin = "FlipCoin", e.LuckyWheels = "LuckyWheels", e.Dices = "Dices", e))(x || {}),
|
|
4349
|
-
const
|
|
4313
|
+
var x = /* @__PURE__ */ ((e) => (e.MysteryChests = "MysteryChests", e.FlipCoin = "FlipCoin", e.LuckyWheels = "LuckyWheels", e.Dices = "Dices", e))(x || {}), yr = /* @__PURE__ */ ((e) => (e.Showed = "Showed", e.Hiden = "Hiden", e))(yr || {});
|
|
4314
|
+
const Mt = {
|
|
4350
4315
|
en: {
|
|
4351
4316
|
mysteryChest: "Mystery Chest",
|
|
4352
4317
|
luckyWheel: "LuckyWheel",
|
|
@@ -4354,25 +4319,25 @@ const Ut = {
|
|
|
4354
4319
|
flipCoin: "Flip Coin"
|
|
4355
4320
|
}
|
|
4356
4321
|
};
|
|
4357
|
-
function
|
|
4358
|
-
|
|
4322
|
+
function Nt(e, t) {
|
|
4323
|
+
cr(e, t);
|
|
4359
4324
|
}
|
|
4360
|
-
function
|
|
4361
|
-
|
|
4325
|
+
function rs(e) {
|
|
4326
|
+
Oi({
|
|
4362
4327
|
fallbackLocale: "en"
|
|
4363
4328
|
}), X.set(e);
|
|
4364
4329
|
}
|
|
4365
|
-
function
|
|
4366
|
-
|
|
4330
|
+
function ns(e) {
|
|
4331
|
+
wr(e, "svelte-dp9rm6", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.container{padding:0 16.5%}.container.mobile{padding:0 28px}.container.mobile .header{padding:16px 0 13px}.container.mobile .header .slider__container{gap:16px;justify-content:space-between;padding:0 24px}.container.mobile .header .slider__container__tab{font-size:var(--emw--font-size-2x-small, 10px)}.header{background:linear-gradient(89.94deg, var(--emw--color-background, #003e5c) 0.05%, var(--emw--color-background-secondary, #113b21) 87.69%);padding:23px 0 17px;border-radius:12px}.header .slider__container{display:flex;position:relative;gap:60px;justify-content:center}.header .slider__tab{padding:8px 0 13px;font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-gray-300, #729787);cursor:pointer;text-align:center;background:transparent;border:none;font-size:var(--emw--font-size-x-small, 12px);line-height:15px}.header .slider__tab.active{color:var(--emw--color-typography, #fff);border-bottom:2px solid var(--emw--button-border-color, #00b74f);margin-bottom:-2px}");
|
|
4367
4332
|
}
|
|
4368
|
-
function
|
|
4333
|
+
function is(e) {
|
|
4369
4334
|
let t;
|
|
4370
4335
|
return {
|
|
4371
4336
|
c() {
|
|
4372
4337
|
t = C("div"), t.textContent = "Comming soon";
|
|
4373
4338
|
},
|
|
4374
4339
|
m(r, n) {
|
|
4375
|
-
|
|
4340
|
+
ie(r, t, n);
|
|
4376
4341
|
},
|
|
4377
4342
|
p: I,
|
|
4378
4343
|
d(r) {
|
|
@@ -4380,14 +4345,14 @@ function us(e) {
|
|
|
4380
4345
|
}
|
|
4381
4346
|
};
|
|
4382
4347
|
}
|
|
4383
|
-
function
|
|
4348
|
+
function ss(e) {
|
|
4384
4349
|
let t;
|
|
4385
4350
|
return {
|
|
4386
4351
|
c() {
|
|
4387
4352
|
t = C("div"), t.textContent = "Comming soon";
|
|
4388
4353
|
},
|
|
4389
4354
|
m(r, n) {
|
|
4390
|
-
|
|
4355
|
+
ie(r, t, n);
|
|
4391
4356
|
},
|
|
4392
4357
|
p: I,
|
|
4393
4358
|
d(r) {
|
|
@@ -4395,14 +4360,14 @@ function hs(e) {
|
|
|
4395
4360
|
}
|
|
4396
4361
|
};
|
|
4397
4362
|
}
|
|
4398
|
-
function
|
|
4363
|
+
function os(e) {
|
|
4399
4364
|
let t;
|
|
4400
4365
|
return {
|
|
4401
4366
|
c() {
|
|
4402
4367
|
t = C("div"), t.textContent = "Comming soon";
|
|
4403
4368
|
},
|
|
4404
4369
|
m(r, n) {
|
|
4405
|
-
|
|
4370
|
+
ie(r, t, n);
|
|
4406
4371
|
},
|
|
4407
4372
|
p: I,
|
|
4408
4373
|
d(r) {
|
|
@@ -4410,7 +4375,7 @@ function ls(e) {
|
|
|
4410
4375
|
}
|
|
4411
4376
|
};
|
|
4412
4377
|
}
|
|
4413
|
-
function
|
|
4378
|
+
function as(e) {
|
|
4414
4379
|
let t;
|
|
4415
4380
|
return {
|
|
4416
4381
|
c() {
|
|
@@ -4434,7 +4399,7 @@ function cs(e) {
|
|
|
4434
4399
|
"clientstylingurl",
|
|
4435
4400
|
/*clientstylingurl*/
|
|
4436
4401
|
e[0]
|
|
4437
|
-
), R(t, "gameoverlay",
|
|
4402
|
+
), R(t, "gameoverlay", yr.Hiden), R(t, "openedbydefauls", !0), R(
|
|
4438
4403
|
t,
|
|
4439
4404
|
"clientstyling",
|
|
4440
4405
|
/*mysteryChestDrawerStyles*/
|
|
@@ -4442,7 +4407,7 @@ function cs(e) {
|
|
|
4442
4407
|
);
|
|
4443
4408
|
},
|
|
4444
4409
|
m(r, n) {
|
|
4445
|
-
|
|
4410
|
+
ie(r, t, n);
|
|
4446
4411
|
},
|
|
4447
4412
|
p(r, n) {
|
|
4448
4413
|
n & /*endpoint*/
|
|
@@ -4476,70 +4441,70 @@ function cs(e) {
|
|
|
4476
4441
|
}
|
|
4477
4442
|
};
|
|
4478
4443
|
}
|
|
4479
|
-
function
|
|
4444
|
+
function us(e) {
|
|
4480
4445
|
let t, r, n, i, s, o = (
|
|
4481
4446
|
/*$_*/
|
|
4482
4447
|
e[7]("mysteryChest") + ""
|
|
4483
4448
|
), a, h, u, l = (
|
|
4484
4449
|
/*$_*/
|
|
4485
4450
|
e[7]("flipCoin") + ""
|
|
4486
|
-
),
|
|
4451
|
+
), f, c, d, y = (
|
|
4487
4452
|
/*$_*/
|
|
4488
4453
|
e[7]("luckyWheel") + ""
|
|
4489
|
-
), g,
|
|
4454
|
+
), g, O, T, L = (
|
|
4490
4455
|
/*$_*/
|
|
4491
4456
|
e[7]("dices") + ""
|
|
4492
|
-
),
|
|
4493
|
-
function
|
|
4457
|
+
), H, m, S, $, ae;
|
|
4458
|
+
function at(E, M) {
|
|
4494
4459
|
if (
|
|
4495
4460
|
/*activeTab*/
|
|
4496
4461
|
E[6] === x.MysteryChests
|
|
4497
4462
|
)
|
|
4498
|
-
return
|
|
4463
|
+
return as;
|
|
4499
4464
|
if (
|
|
4500
4465
|
/*activeTab*/
|
|
4501
4466
|
E[6] === x.LuckyWheels
|
|
4502
4467
|
)
|
|
4503
|
-
return
|
|
4468
|
+
return os;
|
|
4504
4469
|
if (
|
|
4505
4470
|
/*activeTab*/
|
|
4506
4471
|
E[6] === x.FlipCoin
|
|
4507
4472
|
)
|
|
4508
|
-
return
|
|
4473
|
+
return ss;
|
|
4509
4474
|
if (
|
|
4510
4475
|
/*activeTab*/
|
|
4511
4476
|
E[6] === x.Dices
|
|
4512
4477
|
)
|
|
4513
|
-
return
|
|
4478
|
+
return is;
|
|
4514
4479
|
}
|
|
4515
|
-
let W =
|
|
4480
|
+
let W = at(e), P = W && W(e);
|
|
4516
4481
|
return {
|
|
4517
4482
|
c() {
|
|
4518
|
-
t = C("div"), r = C("div"), n = C("div"), i = C("div"), s = C("button"), a = q(o), h = ye(), u = C("button"),
|
|
4483
|
+
t = C("div"), r = C("div"), n = C("div"), i = C("div"), s = C("button"), a = q(o), h = ye(), u = C("button"), f = q(l), c = ye(), d = C("button"), g = q(y), O = ye(), T = C("button"), H = q(L), m = ye(), P && P.c(), B(s, "data-index", x.MysteryChests), B(s, "class", "slider__tab"), F(
|
|
4519
4484
|
s,
|
|
4520
4485
|
"active",
|
|
4521
4486
|
/*activeTab*/
|
|
4522
4487
|
e[6] === x.MysteryChests
|
|
4523
|
-
),
|
|
4488
|
+
), B(u, "data-index", x.FlipCoin), B(u, "class", "slider__tab"), F(
|
|
4524
4489
|
u,
|
|
4525
4490
|
"active",
|
|
4526
4491
|
/*activeTab*/
|
|
4527
4492
|
e[6] === x.FlipCoin
|
|
4528
|
-
),
|
|
4529
|
-
|
|
4493
|
+
), B(d, "data-index", x.LuckyWheels), B(d, "class", "slider__tab"), F(
|
|
4494
|
+
d,
|
|
4530
4495
|
"active",
|
|
4531
4496
|
/*activeTab*/
|
|
4532
4497
|
e[6] === x.LuckyWheels
|
|
4533
|
-
),
|
|
4534
|
-
|
|
4498
|
+
), B(T, "data-index", x.Dices), B(T, "class", "slider__tab"), F(
|
|
4499
|
+
T,
|
|
4535
4500
|
"active",
|
|
4536
4501
|
/*activeTab*/
|
|
4537
4502
|
e[6] === x.Dices
|
|
4538
|
-
),
|
|
4503
|
+
), B(i, "class", "slider__container"), B(n, "class", "slider"), B(r, "class", "header"), B(t, "class", S = "container " + /*mobileView*/
|
|
4539
4504
|
(e[5] ? "mobile" : ""));
|
|
4540
4505
|
},
|
|
4541
4506
|
m(E, M) {
|
|
4542
|
-
|
|
4507
|
+
ie(E, t, M), w(t, r), w(r, n), w(n, i), w(i, s), w(s, a), w(i, h), w(i, u), w(u, f), w(i, c), w(i, d), w(d, g), w(i, O), w(i, T), w(T, H), w(t, m), P && P.m(t, null), e[13](t), $ || (ae = [
|
|
4543
4508
|
ge(
|
|
4544
4509
|
s,
|
|
4545
4510
|
"click",
|
|
@@ -4553,13 +4518,13 @@ function fs(e) {
|
|
|
4553
4518
|
e[9]
|
|
4554
4519
|
),
|
|
4555
4520
|
ge(
|
|
4556
|
-
|
|
4521
|
+
d,
|
|
4557
4522
|
"click",
|
|
4558
4523
|
/*handleTabChange*/
|
|
4559
4524
|
e[9]
|
|
4560
4525
|
),
|
|
4561
4526
|
ge(
|
|
4562
|
-
|
|
4527
|
+
T,
|
|
4563
4528
|
"click",
|
|
4564
4529
|
/*handleTabChange*/
|
|
4565
4530
|
e[9]
|
|
@@ -4577,7 +4542,7 @@ function fs(e) {
|
|
|
4577
4542
|
E[6] === x.MysteryChests
|
|
4578
4543
|
), M & /*$_*/
|
|
4579
4544
|
128 && l !== (l = /*$_*/
|
|
4580
|
-
E[7]("flipCoin") + "") && ve(
|
|
4545
|
+
E[7]("flipCoin") + "") && ve(f, l), M & /*activeTab*/
|
|
4581
4546
|
64 && F(
|
|
4582
4547
|
u,
|
|
4583
4548
|
"active",
|
|
@@ -4587,87 +4552,87 @@ function fs(e) {
|
|
|
4587
4552
|
128 && y !== (y = /*$_*/
|
|
4588
4553
|
E[7]("luckyWheel") + "") && ve(g, y), M & /*activeTab*/
|
|
4589
4554
|
64 && F(
|
|
4590
|
-
|
|
4555
|
+
d,
|
|
4591
4556
|
"active",
|
|
4592
4557
|
/*activeTab*/
|
|
4593
4558
|
E[6] === x.LuckyWheels
|
|
4594
4559
|
), M & /*$_*/
|
|
4595
4560
|
128 && L !== (L = /*$_*/
|
|
4596
|
-
E[7]("dices") + "") && ve(
|
|
4561
|
+
E[7]("dices") + "") && ve(H, L), M & /*activeTab*/
|
|
4597
4562
|
64 && F(
|
|
4598
|
-
|
|
4563
|
+
T,
|
|
4599
4564
|
"active",
|
|
4600
4565
|
/*activeTab*/
|
|
4601
4566
|
E[6] === x.Dices
|
|
4602
|
-
), W === (W =
|
|
4567
|
+
), W === (W = at(E)) && P ? P.p(E, M) : (P && P.d(1), P = W && W(E), P && (P.c(), P.m(t, null))), M & /*mobileView*/
|
|
4603
4568
|
32 && S !== (S = "container " + /*mobileView*/
|
|
4604
|
-
(E[5] ? "mobile" : "")) &&
|
|
4569
|
+
(E[5] ? "mobile" : "")) && B(t, "class", S);
|
|
4605
4570
|
},
|
|
4606
4571
|
i: I,
|
|
4607
4572
|
o: I,
|
|
4608
4573
|
d(E) {
|
|
4609
|
-
E && V(t), P && P.d(), e[13](null), $ = !1,
|
|
4574
|
+
E && V(t), P && P.d(), e[13](null), $ = !1, ne(ae);
|
|
4610
4575
|
}
|
|
4611
4576
|
};
|
|
4612
4577
|
}
|
|
4613
|
-
function
|
|
4578
|
+
function hs(e, t, r) {
|
|
4614
4579
|
let n;
|
|
4615
|
-
|
|
4616
|
-
let { clientstyling: i = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: o = "" } = t, { mbsource: a } = t, { endpoint: h = "" } = t, { session: u = "" } = t, { lang: l = "en" } = t,
|
|
4617
|
-
const g = ".overlay { display: none; } .drawer { position: unset; transform: none; background: transparent; width: initial; height: initial; padding: 0; border-radius: 0; } .chests-header,.close,.chest-header__title { display: none } .mobile.drawer { padding: 0 } .back { height: 40px; width: 40px;} .chest-header {padding: 20px 0 0}",
|
|
4580
|
+
Hr(e, Ji, (m) => r(7, n = m));
|
|
4581
|
+
let { clientstyling: i = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: o = "" } = t, { mbsource: a } = t, { endpoint: h = "" } = t, { session: u = "" } = t, { lang: l = "en" } = t, f = !0, c = window.navigator.userAgent, d, y = x.MysteryChests;
|
|
4582
|
+
const g = ".overlay { display: none; } .drawer { position: unset; transform: none; background: transparent; width: initial; height: initial; padding: 0; border-radius: 0; } .chests-header,.close,.chest-header__title { display: none } .mobile.drawer { padding: 0 } .back { height: 40px; width: 40px;} .chest-header {padding: 20px 0 0}", O = (m) => Me(this, null, function* () {
|
|
4618
4583
|
r(6, y = m.target.getAttribute("data-index")), y === x.MysteryChests && window.postMessage({ type: "OpenMysteryChestDrawer" });
|
|
4619
|
-
}),
|
|
4620
|
-
|
|
4584
|
+
}), T = () => {
|
|
4585
|
+
rs(l);
|
|
4621
4586
|
}, L = () => {
|
|
4622
4587
|
fetch(o).then((S) => S.json()).then((S) => {
|
|
4623
4588
|
Object.keys(S).forEach(($) => {
|
|
4624
|
-
|
|
4589
|
+
Nt($, S[$]);
|
|
4625
4590
|
});
|
|
4626
4591
|
});
|
|
4627
4592
|
};
|
|
4628
|
-
Object.keys(
|
|
4629
|
-
|
|
4630
|
-
}),
|
|
4593
|
+
Object.keys(Mt).forEach((m) => {
|
|
4594
|
+
Nt(m, Mt[m]);
|
|
4595
|
+
}), Ir(() => (r(5, f = Yi(c)), () => {
|
|
4631
4596
|
}));
|
|
4632
|
-
function
|
|
4633
|
-
|
|
4634
|
-
|
|
4597
|
+
function H(m) {
|
|
4598
|
+
je[m ? "unshift" : "push"](() => {
|
|
4599
|
+
d = m, r(4, d);
|
|
4635
4600
|
});
|
|
4636
4601
|
}
|
|
4637
4602
|
return e.$$set = (m) => {
|
|
4638
4603
|
"clientstyling" in m && r(10, i = m.clientstyling), "clientstylingurl" in m && r(0, s = m.clientstylingurl), "translationurl" in m && r(11, o = m.translationurl), "mbsource" in m && r(12, a = m.mbsource), "endpoint" in m && r(1, h = m.endpoint), "session" in m && r(2, u = m.session), "lang" in m && r(3, l = m.lang);
|
|
4639
4604
|
}, e.$$.update = () => {
|
|
4640
4605
|
e.$$.dirty & /*lang*/
|
|
4641
|
-
8 && l &&
|
|
4606
|
+
8 && l && T(), e.$$.dirty & /*translationurl*/
|
|
4642
4607
|
2048 && o && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4643
|
-
1040 && i &&
|
|
4644
|
-
17 && s &&
|
|
4645
|
-
4112 && a &&
|
|
4608
|
+
1040 && i && d && Ki(d, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4609
|
+
17 && s && d && es(d, s), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4610
|
+
4112 && a && d && ts(d, `${a}.Style`);
|
|
4646
4611
|
}, [
|
|
4647
4612
|
s,
|
|
4648
4613
|
h,
|
|
4649
4614
|
u,
|
|
4650
4615
|
l,
|
|
4651
|
-
|
|
4652
|
-
|
|
4616
|
+
d,
|
|
4617
|
+
f,
|
|
4653
4618
|
y,
|
|
4654
4619
|
n,
|
|
4655
4620
|
g,
|
|
4656
|
-
|
|
4621
|
+
O,
|
|
4657
4622
|
i,
|
|
4658
4623
|
o,
|
|
4659
4624
|
a,
|
|
4660
|
-
|
|
4625
|
+
H
|
|
4661
4626
|
];
|
|
4662
4627
|
}
|
|
4663
|
-
class
|
|
4628
|
+
class gr extends Vr {
|
|
4664
4629
|
constructor(t) {
|
|
4665
|
-
super(),
|
|
4630
|
+
super(), jr(
|
|
4666
4631
|
this,
|
|
4667
4632
|
t,
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4633
|
+
hs,
|
|
4634
|
+
us,
|
|
4635
|
+
Rt,
|
|
4671
4636
|
{
|
|
4672
4637
|
clientstyling: 10,
|
|
4673
4638
|
clientstylingurl: 0,
|
|
@@ -4677,90 +4642,90 @@ class xr extends Zr {
|
|
|
4677
4642
|
session: 2,
|
|
4678
4643
|
lang: 3
|
|
4679
4644
|
},
|
|
4680
|
-
|
|
4645
|
+
ns
|
|
4681
4646
|
);
|
|
4682
4647
|
}
|
|
4683
4648
|
get clientstyling() {
|
|
4684
4649
|
return this.$$.ctx[10];
|
|
4685
4650
|
}
|
|
4686
4651
|
set clientstyling(t) {
|
|
4687
|
-
this.$$set({ clientstyling: t }),
|
|
4652
|
+
this.$$set({ clientstyling: t }), U();
|
|
4688
4653
|
}
|
|
4689
4654
|
get clientstylingurl() {
|
|
4690
4655
|
return this.$$.ctx[0];
|
|
4691
4656
|
}
|
|
4692
4657
|
set clientstylingurl(t) {
|
|
4693
|
-
this.$$set({ clientstylingurl: t }),
|
|
4658
|
+
this.$$set({ clientstylingurl: t }), U();
|
|
4694
4659
|
}
|
|
4695
4660
|
get translationurl() {
|
|
4696
4661
|
return this.$$.ctx[11];
|
|
4697
4662
|
}
|
|
4698
4663
|
set translationurl(t) {
|
|
4699
|
-
this.$$set({ translationurl: t }),
|
|
4664
|
+
this.$$set({ translationurl: t }), U();
|
|
4700
4665
|
}
|
|
4701
4666
|
get mbsource() {
|
|
4702
4667
|
return this.$$.ctx[12];
|
|
4703
4668
|
}
|
|
4704
4669
|
set mbsource(t) {
|
|
4705
|
-
this.$$set({ mbsource: t }),
|
|
4670
|
+
this.$$set({ mbsource: t }), U();
|
|
4706
4671
|
}
|
|
4707
4672
|
get endpoint() {
|
|
4708
4673
|
return this.$$.ctx[1];
|
|
4709
4674
|
}
|
|
4710
4675
|
set endpoint(t) {
|
|
4711
|
-
this.$$set({ endpoint: t }),
|
|
4676
|
+
this.$$set({ endpoint: t }), U();
|
|
4712
4677
|
}
|
|
4713
4678
|
get session() {
|
|
4714
4679
|
return this.$$.ctx[2];
|
|
4715
4680
|
}
|
|
4716
4681
|
set session(t) {
|
|
4717
|
-
this.$$set({ session: t }),
|
|
4682
|
+
this.$$set({ session: t }), U();
|
|
4718
4683
|
}
|
|
4719
4684
|
get lang() {
|
|
4720
4685
|
return this.$$.ctx[3];
|
|
4721
4686
|
}
|
|
4722
4687
|
set lang(t) {
|
|
4723
|
-
this.$$set({ lang: t }),
|
|
4688
|
+
this.$$set({ lang: t }), U();
|
|
4724
4689
|
}
|
|
4725
4690
|
}
|
|
4726
|
-
|
|
4727
|
-
const
|
|
4691
|
+
kr(gr, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, endpoint: {}, session: {}, lang: {} }, [], [], !0);
|
|
4692
|
+
const ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4728
4693
|
__proto__: null,
|
|
4729
|
-
default:
|
|
4694
|
+
default: gr
|
|
4730
4695
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4731
4696
|
export {
|
|
4732
4697
|
X as $,
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4698
|
+
ps as A,
|
|
4699
|
+
cs as B,
|
|
4700
|
+
Ki as C,
|
|
4701
|
+
es as D,
|
|
4702
|
+
ts as E,
|
|
4703
|
+
ms as F,
|
|
4704
|
+
Vr as S,
|
|
4705
|
+
wr as a,
|
|
4706
|
+
ye as b,
|
|
4707
|
+
kr as c,
|
|
4708
|
+
ie as d,
|
|
4709
|
+
ds as e,
|
|
4710
|
+
U as f,
|
|
4711
|
+
V as g,
|
|
4712
|
+
Yi as h,
|
|
4713
|
+
jr as i,
|
|
4749
4714
|
C as j,
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4715
|
+
R as k,
|
|
4716
|
+
B as l,
|
|
4717
|
+
fs as m,
|
|
4753
4718
|
I as n,
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4719
|
+
Ir as o,
|
|
4720
|
+
w as p,
|
|
4721
|
+
ge as q,
|
|
4722
|
+
cr as r,
|
|
4723
|
+
Rt as s,
|
|
4724
|
+
q as t,
|
|
4760
4725
|
ve as u,
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4726
|
+
ne as v,
|
|
4727
|
+
Hr as w,
|
|
4728
|
+
je as x,
|
|
4729
|
+
Ji as y,
|
|
4765
4730
|
F as z
|
|
4766
4731
|
};
|