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