@everymatrix/casino-favorites-section 1.65.3 → 1.66.0
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/{CasinoFavoritesSection-C9uGLh_4.js → CasinoFavoritesSection-7RMr-_y3.js} +1152 -1186
- package/components/CasinoFavoritesSection-C7TvawvN.cjs +3 -0
- package/components/{CasinoFavoritesSection-B6iFHg6k.js → CasinoFavoritesSection-n4-Aqtno.js} +1171 -1205
- package/components/CasinoFilter-DHhgMubo.cjs +16 -0
- package/components/{CasinoFilter-Yxodbebc.js → CasinoFilter-RoQiQnv3.js} +316 -250
- package/components/{CasinoFilter-Dz_ohVJz.js → CasinoFilter-mvWOkOb5.js} +233 -169
- package/components/{CasinoGameThumbnail-BBdp0-ev.js → CasinoGameThumbnail-C-K32zBm.js} +167 -167
- package/components/{CasinoGameThumbnail-OpJkkjhV.cjs → CasinoGameThumbnail-CU_3uOuW.cjs} +1 -1
- package/components/{CasinoGameThumbnail-BsFe10f0.js → CasinoGameThumbnail-D3TiZoB9.js} +169 -169
- package/components/CasinoGamesCategorySection-CbCvxoZp.cjs +1 -0
- package/components/{CasinoGamesCategorySection-CFRHZzLN.js → CasinoGamesCategorySection-CcTE8k2C.js} +122 -122
- package/components/{CasinoGamesCategorySection-_18dedyy.js → CasinoGamesCategorySection-CsNt4jh-.js} +118 -118
- package/components/{CasinoSort-Dzmcx6fm.cjs → CasinoSort-B-sbeMP1.cjs} +1 -1
- package/components/{CasinoSort-CnsSRidD.js → CasinoSort-DW3lCA_D.js} +22 -22
- package/components/{CasinoSort-l-XjWxpr.js → CasinoSort-KFN6J_YM.js} +22 -22
- package/es2015/casino-favorites-section.cjs +1 -1
- package/es2015/casino-favorites-section.js +1 -1
- package/esnext/casino-favorites-section.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-ChRvzjAp.js → index-97d17652-BEnqZAxL.js} +186 -186
- package/stencil/index-97d17652-D5_8Vwfn.cjs +1 -0
- package/stencil/{index-97d17652-DKsTmN3Z.js → index-97d17652-WK_DbPS4.js} +175 -175
- package/stencil/{ui-image-B2ynFkLT.cjs → ui-image-CMb1eK44.cjs} +1 -1
- package/stencil/{ui-image-D7A7MInC.js → ui-image-CQQDA5b0.js} +1 -1
- package/stencil/{ui-image-D_Js9Evk.js → ui-image-CmwNU-jf.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-B43lELFk.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-CRQDt62Z.cjs → ui-image-b7b48fe5-DCck2kk1.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-DVcK_myk.js → ui-image-b7b48fe5-V9vp4faA.js} +1 -1
- package/stencil/{ui-image_2-EP2dwjfi.js → ui-image_2-B56t6kXT.js} +2 -2
- package/stencil/{ui-image_2-Df0q0jE8.js → ui-image_2-BncuYpLi.js} +2 -2
- package/stencil/{ui-image_2-CyHaM9Na.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
- package/components/CasinoFavoritesSection-TJQ1DePN.cjs +0 -16
- package/components/CasinoFilter-Cgr6_ycG.cjs +0 -3
- package/components/CasinoGamesCategorySection-D-DVonjD.cjs +0 -1
- package/stencil/index-97d17652-qWThG1U9.cjs +0 -1
package/components/{CasinoFavoritesSection-C9uGLh_4.js → CasinoFavoritesSection-7RMr-_y3.js}
RENAMED
|
@@ -3,48 +3,48 @@ function N() {
|
|
|
3
3
|
function nt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Fe() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function W(e) {
|
|
10
10
|
e.forEach(nt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function $e(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function it(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
let
|
|
19
|
-
function
|
|
20
|
-
return e === t ? !0 : (
|
|
18
|
+
let ie;
|
|
19
|
+
function Jn(e, t) {
|
|
20
|
+
return e === t ? !0 : (ie || (ie = document.createElement("a")), ie.href = t, e === ie.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Mt(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function st(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
|
-
for (const
|
|
28
|
-
|
|
27
|
+
for (const n of t)
|
|
28
|
+
n(void 0);
|
|
29
29
|
return N;
|
|
30
30
|
}
|
|
31
|
-
const
|
|
32
|
-
return
|
|
31
|
+
const r = e.subscribe(...t);
|
|
32
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function Yn(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(st(t, r));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Rt(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const
|
|
42
|
-
if (!
|
|
43
|
-
const i =
|
|
44
|
-
i.id = t, i.textContent =
|
|
40
|
+
function $t(e, t, r) {
|
|
41
|
+
const n = Ut(e);
|
|
42
|
+
if (!n.getElementById(t)) {
|
|
43
|
+
const i = re("style");
|
|
44
|
+
i.id = t, i.textContent = r, Dt(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Ut(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,62 +54,62 @@ function $t(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
57
|
+
function Dt(e, t) {
|
|
58
|
+
return Rt(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
61
61
|
t
|
|
62
62
|
), t.sheet;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
e.insertBefore(t,
|
|
64
|
+
function ce(e, t, r) {
|
|
65
|
+
e.insertBefore(t, r || null);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function te(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
for (let
|
|
72
|
-
e[
|
|
70
|
+
function Kn(e, t) {
|
|
71
|
+
for (let r = 0; r < e.length; r += 1)
|
|
72
|
+
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function re(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Gt(e) {
|
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function ot(e) {
|
|
81
81
|
return document.createTextNode(e);
|
|
82
82
|
}
|
|
83
|
-
function Kr() {
|
|
84
|
-
return st(" ");
|
|
85
|
-
}
|
|
86
83
|
function ei() {
|
|
87
|
-
return
|
|
84
|
+
return ot(" ");
|
|
88
85
|
}
|
|
89
|
-
function ti(
|
|
90
|
-
return
|
|
86
|
+
function ti() {
|
|
87
|
+
return ot("");
|
|
91
88
|
}
|
|
92
|
-
function
|
|
93
|
-
|
|
89
|
+
function ri(e, t, r, n) {
|
|
90
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
94
91
|
}
|
|
95
|
-
function
|
|
96
|
-
|
|
97
|
-
r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : Re(e, t, n);
|
|
92
|
+
function Ue(e, t, r) {
|
|
93
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
98
94
|
}
|
|
99
|
-
function
|
|
95
|
+
function g(e, t, r) {
|
|
96
|
+
const n = t.toLowerCase();
|
|
97
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : Ue(e, t, r);
|
|
98
|
+
}
|
|
99
|
+
function Ft(e) {
|
|
100
100
|
return Array.from(e.childNodes);
|
|
101
101
|
}
|
|
102
102
|
function ni(e, t) {
|
|
103
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
104
104
|
t);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function ii(e, t) {
|
|
107
107
|
e.value = t ?? "";
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
e.classList.toggle(t, !!
|
|
109
|
+
function si(e, t, r) {
|
|
110
|
+
e.classList.toggle(t, !!r);
|
|
111
111
|
}
|
|
112
|
-
class
|
|
112
|
+
class oi {
|
|
113
113
|
/**
|
|
114
114
|
* @private
|
|
115
115
|
* @default false
|
|
@@ -139,17 +139,17 @@ class si {
|
|
|
139
139
|
* @param {HTMLElement | SVGElement} anchor
|
|
140
140
|
* @returns {void}
|
|
141
141
|
*/
|
|
142
|
-
m(t,
|
|
143
|
-
this.e || (this.is_svg ? this.e =
|
|
142
|
+
m(t, r, n = null) {
|
|
143
|
+
this.e || (this.is_svg ? this.e = Gt(
|
|
144
144
|
/** @type {keyof SVGElementTagNameMap} */
|
|
145
|
-
|
|
146
|
-
) : this.e =
|
|
145
|
+
r.nodeName
|
|
146
|
+
) : this.e = re(
|
|
147
147
|
/** @type {keyof HTMLElementTagNameMap} */
|
|
148
|
-
|
|
149
|
-
), this.t =
|
|
148
|
+
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
|
149
|
+
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
|
150
150
|
/** @type {HTMLTemplateElement} */
|
|
151
|
-
|
|
152
|
-
), this.c(t)), this.i(
|
|
151
|
+
r.content
|
|
152
|
+
), this.c(t)), this.i(n);
|
|
153
153
|
}
|
|
154
154
|
/**
|
|
155
155
|
* @param {string} html
|
|
@@ -163,8 +163,8 @@ class si {
|
|
|
163
163
|
/**
|
|
164
164
|
* @returns {void} */
|
|
165
165
|
i(t) {
|
|
166
|
-
for (let
|
|
167
|
-
|
|
166
|
+
for (let r = 0; r < this.n.length; r += 1)
|
|
167
|
+
ce(this.t, this.n[r], t);
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
170
|
* @param {string} html
|
|
@@ -176,146 +176,146 @@ class si {
|
|
|
176
176
|
/**
|
|
177
177
|
* @returns {void} */
|
|
178
178
|
d() {
|
|
179
|
-
this.n.forEach(
|
|
179
|
+
this.n.forEach(te);
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function jt(e) {
|
|
183
183
|
const t = {};
|
|
184
184
|
return e.childNodes.forEach(
|
|
185
185
|
/** @param {Element} node */
|
|
186
|
-
(
|
|
187
|
-
t[
|
|
186
|
+
(r) => {
|
|
187
|
+
t[r.slot || "default"] = !0;
|
|
188
188
|
}
|
|
189
189
|
), t;
|
|
190
190
|
}
|
|
191
|
-
let
|
|
192
|
-
function
|
|
193
|
-
|
|
191
|
+
let Y;
|
|
192
|
+
function J(e) {
|
|
193
|
+
Y = e;
|
|
194
194
|
}
|
|
195
195
|
function at() {
|
|
196
|
-
if (!
|
|
196
|
+
if (!Y)
|
|
197
197
|
throw new Error("Function called outside component initialization");
|
|
198
|
-
return
|
|
198
|
+
return Y;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function kt(e) {
|
|
201
201
|
at().$$.on_mount.push(e);
|
|
202
202
|
}
|
|
203
203
|
function ai(e) {
|
|
204
204
|
at().$$.on_destroy.push(e);
|
|
205
205
|
}
|
|
206
|
-
const
|
|
207
|
-
let
|
|
208
|
-
const
|
|
209
|
-
let
|
|
210
|
-
function
|
|
211
|
-
|
|
206
|
+
const G = [], Se = [];
|
|
207
|
+
let F = [];
|
|
208
|
+
const je = [], ut = /* @__PURE__ */ Promise.resolve();
|
|
209
|
+
let Be = !1;
|
|
210
|
+
function ht() {
|
|
211
|
+
Be || (Be = !0, ut.then(H));
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
return
|
|
213
|
+
function ui() {
|
|
214
|
+
return ht(), ut;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
|
|
216
|
+
function Ae(e) {
|
|
217
|
+
F.push(e);
|
|
218
218
|
}
|
|
219
|
-
const
|
|
220
|
-
let
|
|
219
|
+
const ye = /* @__PURE__ */ new Set();
|
|
220
|
+
let U = 0;
|
|
221
221
|
function H() {
|
|
222
|
-
if (
|
|
222
|
+
if (U !== 0)
|
|
223
223
|
return;
|
|
224
|
-
const e =
|
|
224
|
+
const e = Y;
|
|
225
225
|
do {
|
|
226
226
|
try {
|
|
227
|
-
for (;
|
|
228
|
-
const t =
|
|
229
|
-
|
|
227
|
+
for (; U < G.length; ) {
|
|
228
|
+
const t = G[U];
|
|
229
|
+
U++, J(t), Vt(t.$$);
|
|
230
230
|
}
|
|
231
231
|
} catch (t) {
|
|
232
|
-
throw
|
|
232
|
+
throw G.length = 0, U = 0, t;
|
|
233
233
|
}
|
|
234
|
-
for (
|
|
235
|
-
|
|
236
|
-
for (let t = 0; t <
|
|
237
|
-
const
|
|
238
|
-
|
|
234
|
+
for (J(null), G.length = 0, U = 0; Se.length; )
|
|
235
|
+
Se.pop()();
|
|
236
|
+
for (let t = 0; t < F.length; t += 1) {
|
|
237
|
+
const r = F[t];
|
|
238
|
+
ye.has(r) || (ye.add(r), r());
|
|
239
239
|
}
|
|
240
|
-
|
|
241
|
-
} while (
|
|
242
|
-
for (;
|
|
243
|
-
|
|
244
|
-
|
|
240
|
+
F.length = 0;
|
|
241
|
+
} while (G.length);
|
|
242
|
+
for (; je.length; )
|
|
243
|
+
je.pop()();
|
|
244
|
+
Be = !1, ye.clear(), J(e);
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Vt(e) {
|
|
247
247
|
if (e.fragment !== null) {
|
|
248
|
-
e.update(),
|
|
248
|
+
e.update(), W(e.before_update);
|
|
249
249
|
const t = e.dirty;
|
|
250
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
250
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ae);
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
const t = [],
|
|
255
|
-
|
|
253
|
+
function Xt(e) {
|
|
254
|
+
const t = [], r = [];
|
|
255
|
+
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
256
256
|
}
|
|
257
|
-
const
|
|
258
|
-
function
|
|
259
|
-
e && e.i && (
|
|
257
|
+
const Wt = /* @__PURE__ */ new Set();
|
|
258
|
+
function lt(e, t) {
|
|
259
|
+
e && e.i && (Wt.delete(e), e.i(t));
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function hi(e) {
|
|
262
262
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function li(e, t) {
|
|
265
265
|
e.d(1), t.delete(e.key);
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function fi(e, t, r, n, i, s, u, a, l, o, h, m) {
|
|
268
268
|
let f = e.length, b = s.length, y = f;
|
|
269
|
-
const
|
|
269
|
+
const _ = {};
|
|
270
270
|
for (; y--; )
|
|
271
|
-
|
|
271
|
+
_[e[y].key] = y;
|
|
272
272
|
const T = [], w = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map(), S = [];
|
|
273
273
|
for (y = b; y--; ) {
|
|
274
|
-
const c = m(i, s, y), I =
|
|
275
|
-
let L =
|
|
276
|
-
L ? S.push(() => L.p(c, t)) : (L =
|
|
274
|
+
const c = m(i, s, y), I = r(c);
|
|
275
|
+
let L = u.get(I);
|
|
276
|
+
L ? S.push(() => L.p(c, t)) : (L = o(I, c), L.c()), w.set(I, T[y] = L), I in _ && A.set(I, Math.abs(y - _[I]));
|
|
277
277
|
}
|
|
278
|
-
const P = /* @__PURE__ */ new Set(),
|
|
278
|
+
const P = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set();
|
|
279
279
|
function O(c) {
|
|
280
|
-
|
|
280
|
+
lt(c, 1), c.m(a, h), u.set(c.key, c), h = c.first, b--;
|
|
281
281
|
}
|
|
282
282
|
for (; f && b; ) {
|
|
283
283
|
const c = T[b - 1], I = e[f - 1], L = c.key, ne = I.key;
|
|
284
|
-
c === I ? (h = c.first, f--, b--) : w.has(ne) ? !
|
|
284
|
+
c === I ? (h = c.first, f--, b--) : w.has(ne) ? !u.has(L) || P.has(L) ? O(c) : x.has(ne) ? f-- : A.get(L) > A.get(ne) ? (x.add(L), O(c)) : (P.add(ne), f--) : (l(I, u), f--);
|
|
285
285
|
}
|
|
286
286
|
for (; f--; ) {
|
|
287
287
|
const c = e[f];
|
|
288
|
-
w.has(c.key) || l(c,
|
|
288
|
+
w.has(c.key) || l(c, u);
|
|
289
289
|
}
|
|
290
290
|
for (; b; )
|
|
291
291
|
O(T[b - 1]);
|
|
292
|
-
return
|
|
293
|
-
}
|
|
294
|
-
function zt(e, t, n) {
|
|
295
|
-
const { fragment: r, after_update: i } = e.$$;
|
|
296
|
-
r && r.m(t, n), Se(() => {
|
|
297
|
-
const s = e.$$.on_mount.map(nt).filter(Me);
|
|
298
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : X(s), e.$$.on_mount = [];
|
|
299
|
-
}), i.forEach(Se);
|
|
292
|
+
return W(S), T;
|
|
300
293
|
}
|
|
301
|
-
function
|
|
302
|
-
const n = e.$$;
|
|
303
|
-
n
|
|
294
|
+
function zt(e, t, r) {
|
|
295
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
296
|
+
n && n.m(t, r), Ae(() => {
|
|
297
|
+
const s = e.$$.on_mount.map(nt).filter($e);
|
|
298
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : W(s), e.$$.on_mount = [];
|
|
299
|
+
}), i.forEach(Ae);
|
|
304
300
|
}
|
|
305
301
|
function Zt(e, t) {
|
|
306
|
-
|
|
302
|
+
const r = e.$$;
|
|
303
|
+
r.fragment !== null && (Xt(r.after_update), W(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
307
304
|
}
|
|
308
|
-
function Qt(e, t
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
305
|
+
function Qt(e, t) {
|
|
306
|
+
e.$$.dirty[0] === -1 && (G.push(e), ht(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
307
|
+
}
|
|
308
|
+
function qt(e, t, r, n, i, s, u = null, a = [-1]) {
|
|
309
|
+
const l = Y;
|
|
310
|
+
J(e);
|
|
311
|
+
const o = e.$$ = {
|
|
312
312
|
fragment: null,
|
|
313
313
|
ctx: [],
|
|
314
314
|
// state
|
|
315
315
|
props: s,
|
|
316
316
|
update: N,
|
|
317
317
|
not_equal: i,
|
|
318
|
-
bound:
|
|
318
|
+
bound: Fe(),
|
|
319
319
|
// lifecycle
|
|
320
320
|
on_mount: [],
|
|
321
321
|
on_destroy: [],
|
|
@@ -324,28 +324,28 @@ function Qt(e, t, n, r, i, s, a = null, o = [-1]) {
|
|
|
324
324
|
after_update: [],
|
|
325
325
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
326
326
|
// everything else
|
|
327
|
-
callbacks:
|
|
328
|
-
dirty:
|
|
327
|
+
callbacks: Fe(),
|
|
328
|
+
dirty: a,
|
|
329
329
|
skip_bound: !1,
|
|
330
330
|
root: t.target || l.$$.root
|
|
331
331
|
};
|
|
332
|
-
|
|
332
|
+
u && u(o.root);
|
|
333
333
|
let h = !1;
|
|
334
|
-
if (
|
|
334
|
+
if (o.ctx = r ? r(e, t.props || {}, (m, f, ...b) => {
|
|
335
335
|
const y = b.length ? b[0] : f;
|
|
336
|
-
return
|
|
337
|
-
}) : [],
|
|
336
|
+
return o.ctx && i(o.ctx[m], o.ctx[m] = y) && (!o.skip_bound && o.bound[m] && o.bound[m](y), h && Qt(e, m)), f;
|
|
337
|
+
}) : [], o.update(), h = !0, W(o.before_update), o.fragment = n ? n(o.ctx) : !1, t.target) {
|
|
338
338
|
if (t.hydrate) {
|
|
339
|
-
const m =
|
|
340
|
-
|
|
339
|
+
const m = Ft(t.target);
|
|
340
|
+
o.fragment && o.fragment.l(m), m.forEach(te);
|
|
341
341
|
} else
|
|
342
|
-
|
|
343
|
-
t.intro &&
|
|
342
|
+
o.fragment && o.fragment.c();
|
|
343
|
+
t.intro && lt(e.$$.fragment), zt(e, t.target, t.anchor), H();
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
J(l);
|
|
346
346
|
}
|
|
347
|
-
let
|
|
348
|
-
typeof HTMLElement == "function" && (
|
|
347
|
+
let ft;
|
|
348
|
+
typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
349
349
|
/** The Svelte component constructor */
|
|
350
350
|
$$ctor;
|
|
351
351
|
/** Slots */
|
|
@@ -364,20 +364,20 @@ typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
|
|
364
364
|
$$l = {};
|
|
365
365
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
366
366
|
$$l_u = /* @__PURE__ */ new Map();
|
|
367
|
-
constructor(e, t,
|
|
368
|
-
super(), this.$$ctor = e, this.$$s = t,
|
|
367
|
+
constructor(e, t, r) {
|
|
368
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
369
369
|
}
|
|
370
|
-
addEventListener(e, t,
|
|
370
|
+
addEventListener(e, t, r) {
|
|
371
371
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
372
|
-
const
|
|
373
|
-
this.$$l_u.set(t,
|
|
372
|
+
const n = this.$$c.$on(e, t);
|
|
373
|
+
this.$$l_u.set(t, n);
|
|
374
374
|
}
|
|
375
|
-
super.addEventListener(e, t,
|
|
375
|
+
super.addEventListener(e, t, r);
|
|
376
376
|
}
|
|
377
|
-
removeEventListener(e, t,
|
|
378
|
-
if (super.removeEventListener(e, t,
|
|
379
|
-
const
|
|
380
|
-
|
|
377
|
+
removeEventListener(e, t, r) {
|
|
378
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
379
|
+
const n = this.$$l_u.get(t);
|
|
380
|
+
n && (n(), this.$$l_u.delete(t));
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
async connectedCallback() {
|
|
@@ -387,29 +387,29 @@ typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
|
|
387
387
|
let s;
|
|
388
388
|
return {
|
|
389
389
|
c: function() {
|
|
390
|
-
s =
|
|
390
|
+
s = re("slot"), i !== "default" && Ue(s, "name", i);
|
|
391
391
|
},
|
|
392
392
|
/**
|
|
393
393
|
* @param {HTMLElement} target
|
|
394
394
|
* @param {HTMLElement} [anchor]
|
|
395
395
|
*/
|
|
396
|
-
m: function(l,
|
|
397
|
-
|
|
396
|
+
m: function(l, o) {
|
|
397
|
+
ce(l, s, o);
|
|
398
398
|
},
|
|
399
399
|
d: function(l) {
|
|
400
|
-
l &&
|
|
400
|
+
l && te(s);
|
|
401
401
|
}
|
|
402
402
|
};
|
|
403
403
|
};
|
|
404
404
|
};
|
|
405
405
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
406
406
|
return;
|
|
407
|
-
const t = {},
|
|
407
|
+
const t = {}, r = jt(this);
|
|
408
408
|
for (const i of this.$$s)
|
|
409
|
-
i in
|
|
409
|
+
i in r && (t[i] = [e(i)]);
|
|
410
410
|
for (const i of this.attributes) {
|
|
411
411
|
const s = this.$$g_p(i.name);
|
|
412
|
-
s in this.$$d || (this.$$d[s] =
|
|
412
|
+
s in this.$$d || (this.$$d[s] = oe(s, i.value, this.$$p_d, "toProp"));
|
|
413
413
|
}
|
|
414
414
|
for (const i in this.$$p_d)
|
|
415
415
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -423,11 +423,11 @@ typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
|
-
const
|
|
426
|
+
const n = () => {
|
|
427
427
|
this.$$r = !0;
|
|
428
428
|
for (const i in this.$$p_d)
|
|
429
429
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
430
|
-
const s =
|
|
430
|
+
const s = oe(
|
|
431
431
|
i,
|
|
432
432
|
this.$$d[i],
|
|
433
433
|
this.$$p_d,
|
|
@@ -437,19 +437,19 @@ typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
|
|
437
437
|
}
|
|
438
438
|
this.$$r = !1;
|
|
439
439
|
};
|
|
440
|
-
this.$$c.$$.after_update.push(
|
|
440
|
+
this.$$c.$$.after_update.push(n), n();
|
|
441
441
|
for (const i in this.$$l)
|
|
442
442
|
for (const s of this.$$l[i]) {
|
|
443
|
-
const
|
|
444
|
-
this.$$l_u.set(s,
|
|
443
|
+
const u = this.$$c.$on(i, s);
|
|
444
|
+
this.$$l_u.set(s, u);
|
|
445
445
|
}
|
|
446
446
|
this.$$l = {};
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
450
450
|
// and setting attributes through setAttribute etc, this is helpful
|
|
451
|
-
attributeChangedCallback(e, t,
|
|
452
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
451
|
+
attributeChangedCallback(e, t, r) {
|
|
452
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = oe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
453
453
|
}
|
|
454
454
|
disconnectedCallback() {
|
|
455
455
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -462,11 +462,11 @@ typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
|
|
462
462
|
) || e;
|
|
463
463
|
}
|
|
464
464
|
});
|
|
465
|
-
function
|
|
466
|
-
const i =
|
|
467
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
465
|
+
function oe(e, t, r, n) {
|
|
466
|
+
const i = r[e]?.type;
|
|
467
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
468
468
|
return t;
|
|
469
|
-
if (
|
|
469
|
+
if (n === "toAttribute")
|
|
470
470
|
switch (i) {
|
|
471
471
|
case "Object":
|
|
472
472
|
case "Array":
|
|
@@ -491,36 +491,36 @@ function se(e, t, n, r) {
|
|
|
491
491
|
return t;
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function
|
|
495
|
-
let
|
|
494
|
+
function Jt(e, t, r, n, i, s) {
|
|
495
|
+
let u = class extends ft {
|
|
496
496
|
constructor() {
|
|
497
|
-
super(e,
|
|
497
|
+
super(e, r, i), this.$$p_d = t;
|
|
498
498
|
}
|
|
499
499
|
static get observedAttributes() {
|
|
500
500
|
return Object.keys(t).map(
|
|
501
|
-
(
|
|
501
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
502
502
|
);
|
|
503
503
|
}
|
|
504
504
|
};
|
|
505
|
-
return Object.keys(t).forEach((
|
|
506
|
-
Object.defineProperty(
|
|
505
|
+
return Object.keys(t).forEach((a) => {
|
|
506
|
+
Object.defineProperty(u.prototype, a, {
|
|
507
507
|
get() {
|
|
508
|
-
return this.$$c &&
|
|
508
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
509
509
|
},
|
|
510
510
|
set(l) {
|
|
511
|
-
l =
|
|
511
|
+
l = oe(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
512
512
|
}
|
|
513
513
|
});
|
|
514
|
-
}),
|
|
515
|
-
Object.defineProperty(
|
|
514
|
+
}), n.forEach((a) => {
|
|
515
|
+
Object.defineProperty(u.prototype, a, {
|
|
516
516
|
get() {
|
|
517
|
-
return this.$$c?.[
|
|
517
|
+
return this.$$c?.[a];
|
|
518
518
|
}
|
|
519
519
|
});
|
|
520
520
|
}), e.element = /** @type {any} */
|
|
521
|
-
|
|
521
|
+
u, u;
|
|
522
522
|
}
|
|
523
|
-
class
|
|
523
|
+
class Yt {
|
|
524
524
|
/**
|
|
525
525
|
* ### PRIVATE API
|
|
526
526
|
*
|
|
@@ -539,7 +539,7 @@ class Jt {
|
|
|
539
539
|
$$set = void 0;
|
|
540
540
|
/** @returns {void} */
|
|
541
541
|
$destroy() {
|
|
542
|
-
|
|
542
|
+
Zt(this, 1), this.$destroy = N;
|
|
543
543
|
}
|
|
544
544
|
/**
|
|
545
545
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -547,13 +547,13 @@ class Jt {
|
|
|
547
547
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
548
548
|
* @returns {() => void}
|
|
549
549
|
*/
|
|
550
|
-
$on(t,
|
|
551
|
-
if (
|
|
550
|
+
$on(t, r) {
|
|
551
|
+
if (!$e(r))
|
|
552
552
|
return N;
|
|
553
|
-
const
|
|
554
|
-
return
|
|
555
|
-
const i =
|
|
556
|
-
i !== -1 &&
|
|
553
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
554
|
+
return n.push(r), () => {
|
|
555
|
+
const i = n.indexOf(r);
|
|
556
|
+
i !== -1 && n.splice(i, 1);
|
|
557
557
|
};
|
|
558
558
|
}
|
|
559
559
|
/**
|
|
@@ -561,270 +561,221 @@ class Jt {
|
|
|
561
561
|
* @returns {void}
|
|
562
562
|
*/
|
|
563
563
|
$set(t) {
|
|
564
|
-
this.$$set && !
|
|
564
|
+
this.$$set && !Mt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
const
|
|
568
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
569
|
-
const
|
|
570
|
-
function
|
|
567
|
+
const Kt = "4";
|
|
568
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Kt);
|
|
569
|
+
const D = [];
|
|
570
|
+
function er(e, t) {
|
|
571
571
|
return {
|
|
572
|
-
subscribe:
|
|
572
|
+
subscribe: me(e, t).subscribe
|
|
573
573
|
};
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
let
|
|
577
|
-
const
|
|
578
|
-
function i(
|
|
579
|
-
if (
|
|
580
|
-
const l = !
|
|
581
|
-
for (const
|
|
582
|
-
|
|
575
|
+
function me(e, t = N) {
|
|
576
|
+
let r;
|
|
577
|
+
const n = /* @__PURE__ */ new Set();
|
|
578
|
+
function i(a) {
|
|
579
|
+
if (it(e, a) && (e = a, r)) {
|
|
580
|
+
const l = !D.length;
|
|
581
|
+
for (const o of n)
|
|
582
|
+
o[1](), D.push(o, e);
|
|
583
583
|
if (l) {
|
|
584
|
-
for (let
|
|
585
|
-
|
|
586
|
-
|
|
584
|
+
for (let o = 0; o < D.length; o += 2)
|
|
585
|
+
D[o][0](D[o + 1]);
|
|
586
|
+
D.length = 0;
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function s(
|
|
591
|
-
i(
|
|
590
|
+
function s(a) {
|
|
591
|
+
i(a(e));
|
|
592
592
|
}
|
|
593
|
-
function a
|
|
594
|
-
const
|
|
595
|
-
return
|
|
596
|
-
|
|
593
|
+
function u(a, l = N) {
|
|
594
|
+
const o = [a, l];
|
|
595
|
+
return n.add(o), n.size === 1 && (r = t(i, s) || N), a(e), () => {
|
|
596
|
+
n.delete(o), n.size === 0 && r && (r(), r = null);
|
|
597
597
|
};
|
|
598
598
|
}
|
|
599
|
-
return { set: i, update: s, subscribe:
|
|
599
|
+
return { set: i, update: s, subscribe: u };
|
|
600
600
|
}
|
|
601
|
-
function z(e, t,
|
|
602
|
-
const
|
|
601
|
+
function z(e, t, r) {
|
|
602
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
603
603
|
if (!i.every(Boolean))
|
|
604
604
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
605
605
|
const s = t.length < 2;
|
|
606
|
-
return
|
|
606
|
+
return er(r, (u, a) => {
|
|
607
607
|
let l = !1;
|
|
608
|
-
const
|
|
608
|
+
const o = [];
|
|
609
609
|
let h = 0, m = N;
|
|
610
610
|
const f = () => {
|
|
611
611
|
if (h)
|
|
612
612
|
return;
|
|
613
613
|
m();
|
|
614
|
-
const y = t(
|
|
615
|
-
s ?
|
|
614
|
+
const y = t(n ? o[0] : o, u, a);
|
|
615
|
+
s ? u(y) : m = $e(y) ? y : N;
|
|
616
616
|
}, b = i.map(
|
|
617
|
-
(y,
|
|
617
|
+
(y, _) => st(
|
|
618
618
|
y,
|
|
619
619
|
(T) => {
|
|
620
|
-
|
|
620
|
+
o[_] = T, h &= ~(1 << _), l && f();
|
|
621
621
|
},
|
|
622
622
|
() => {
|
|
623
|
-
h |= 1 <<
|
|
623
|
+
h |= 1 << _;
|
|
624
624
|
}
|
|
625
625
|
)
|
|
626
626
|
);
|
|
627
627
|
return l = !0, f(), function() {
|
|
628
|
-
|
|
628
|
+
W(b), m(), l = !1;
|
|
629
629
|
};
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
|
-
function
|
|
633
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
632
|
+
function tr(e) {
|
|
633
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
634
634
|
}
|
|
635
|
-
var
|
|
636
|
-
return
|
|
635
|
+
var rr = function(t) {
|
|
636
|
+
return nr(t) && !ir(t);
|
|
637
637
|
};
|
|
638
|
-
function
|
|
638
|
+
function nr(e) {
|
|
639
639
|
return !!e && typeof e == "object";
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function ir(e) {
|
|
642
642
|
var t = Object.prototype.toString.call(e);
|
|
643
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
643
|
+
return t === "[object RegExp]" || t === "[object Date]" || ar(e);
|
|
644
644
|
}
|
|
645
|
-
var
|
|
646
|
-
function
|
|
647
|
-
return e.$$typeof ===
|
|
645
|
+
var sr = typeof Symbol == "function" && Symbol.for, or = sr ? Symbol.for("react.element") : 60103;
|
|
646
|
+
function ar(e) {
|
|
647
|
+
return e.$$typeof === or;
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function ur(e) {
|
|
650
650
|
return Array.isArray(e) ? [] : {};
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
652
|
+
function K(e, t) {
|
|
653
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(ur(e), e, t) : e;
|
|
654
654
|
}
|
|
655
|
-
function
|
|
656
|
-
return e.concat(t).map(function(
|
|
657
|
-
return
|
|
655
|
+
function hr(e, t, r) {
|
|
656
|
+
return e.concat(t).map(function(n) {
|
|
657
|
+
return K(n, r);
|
|
658
658
|
});
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function lr(e, t) {
|
|
661
661
|
if (!t.customMerge)
|
|
662
|
-
return
|
|
663
|
-
var
|
|
664
|
-
return typeof
|
|
662
|
+
return j;
|
|
663
|
+
var r = t.customMerge(e);
|
|
664
|
+
return typeof r == "function" ? r : j;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function fr(e) {
|
|
667
667
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
668
668
|
return Object.propertyIsEnumerable.call(e, t);
|
|
669
669
|
}) : [];
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
return Object.keys(e).concat(
|
|
671
|
+
function ke(e) {
|
|
672
|
+
return Object.keys(e).concat(fr(e));
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function ct(e, t) {
|
|
675
675
|
try {
|
|
676
676
|
return t in e;
|
|
677
677
|
} catch {
|
|
678
678
|
return !1;
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
|
-
function
|
|
682
|
-
return
|
|
681
|
+
function cr(e, t) {
|
|
682
|
+
return ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
683
683
|
}
|
|
684
|
-
function
|
|
685
|
-
var
|
|
686
|
-
return
|
|
687
|
-
|
|
688
|
-
}),
|
|
689
|
-
|
|
690
|
-
}),
|
|
691
|
-
}
|
|
692
|
-
function
|
|
693
|
-
|
|
694
|
-
var
|
|
695
|
-
return s ?
|
|
696
|
-
}
|
|
697
|
-
|
|
684
|
+
function mr(e, t, r) {
|
|
685
|
+
var n = {};
|
|
686
|
+
return r.isMergeableObject(e) && ke(e).forEach(function(i) {
|
|
687
|
+
n[i] = K(e[i], r);
|
|
688
|
+
}), ke(t).forEach(function(i) {
|
|
689
|
+
cr(e, i) || (ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = lr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
690
|
+
}), n;
|
|
691
|
+
}
|
|
692
|
+
function j(e, t, r) {
|
|
693
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || hr, r.isMergeableObject = r.isMergeableObject || rr, r.cloneUnlessOtherwiseSpecified = K;
|
|
694
|
+
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
695
|
+
return s ? n ? r.arrayMerge(e, t, r) : mr(e, t, r) : K(t, r);
|
|
696
|
+
}
|
|
697
|
+
j.all = function(t, r) {
|
|
698
698
|
if (!Array.isArray(t))
|
|
699
699
|
throw new Error("first argument should be an array");
|
|
700
|
-
return t.reduce(function(
|
|
701
|
-
return
|
|
700
|
+
return t.reduce(function(n, i) {
|
|
701
|
+
return j(n, i, r);
|
|
702
702
|
}, {});
|
|
703
703
|
};
|
|
704
|
-
var
|
|
705
|
-
const
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
714
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
715
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
716
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
717
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
718
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
719
|
-
***************************************************************************** */
|
|
720
|
-
var Be = function(e, t) {
|
|
721
|
-
return Be = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
722
|
-
n.__proto__ = r;
|
|
723
|
-
} || function(n, r) {
|
|
724
|
-
for (var i in r)
|
|
725
|
-
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
726
|
-
}, Be(e, t);
|
|
704
|
+
var gr = j, dr = gr;
|
|
705
|
+
const br = /* @__PURE__ */ tr(dr);
|
|
706
|
+
var we = function(e, t) {
|
|
707
|
+
return we = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
708
|
+
r.__proto__ = n;
|
|
709
|
+
} || function(r, n) {
|
|
710
|
+
for (var i in n)
|
|
711
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
712
|
+
}, we(e, t);
|
|
727
713
|
};
|
|
728
|
-
function
|
|
714
|
+
function ge(e, t) {
|
|
729
715
|
if (typeof t != "function" && t !== null)
|
|
730
716
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
731
|
-
|
|
732
|
-
function
|
|
717
|
+
we(e, t);
|
|
718
|
+
function r() {
|
|
733
719
|
this.constructor = e;
|
|
734
720
|
}
|
|
735
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
736
|
-
}
|
|
737
|
-
var
|
|
738
|
-
return
|
|
739
|
-
for (var
|
|
740
|
-
|
|
741
|
-
for (var s in
|
|
742
|
-
Object.prototype.hasOwnProperty.call(
|
|
721
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
722
|
+
}
|
|
723
|
+
var C = function() {
|
|
724
|
+
return C = Object.assign || function(t) {
|
|
725
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
726
|
+
r = arguments[n];
|
|
727
|
+
for (var s in r)
|
|
728
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
743
729
|
}
|
|
744
730
|
return t;
|
|
745
|
-
},
|
|
731
|
+
}, C.apply(this, arguments);
|
|
746
732
|
};
|
|
747
|
-
function
|
|
748
|
-
var
|
|
749
|
-
for (var
|
|
750
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
733
|
+
function pr(e, t) {
|
|
734
|
+
var r = {};
|
|
735
|
+
for (var n in e)
|
|
736
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
751
737
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
752
|
-
for (var i = 0,
|
|
753
|
-
t.indexOf(
|
|
754
|
-
return
|
|
755
|
-
}
|
|
756
|
-
function fi(e) {
|
|
757
|
-
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
758
|
-
if (n)
|
|
759
|
-
return n.call(e);
|
|
760
|
-
if (e && typeof e.length == "number")
|
|
761
|
-
return {
|
|
762
|
-
next: function() {
|
|
763
|
-
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
764
|
-
}
|
|
765
|
-
};
|
|
766
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
767
|
-
}
|
|
768
|
-
function ci(e, t) {
|
|
769
|
-
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
770
|
-
if (!n)
|
|
771
|
-
return e;
|
|
772
|
-
var r = n.call(e), i, s = [], a;
|
|
773
|
-
try {
|
|
774
|
-
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
|
|
775
|
-
s.push(i.value);
|
|
776
|
-
} catch (o) {
|
|
777
|
-
a = { error: o };
|
|
778
|
-
} finally {
|
|
779
|
-
try {
|
|
780
|
-
i && !i.done && (n = r.return) && n.call(r);
|
|
781
|
-
} finally {
|
|
782
|
-
if (a)
|
|
783
|
-
throw a.error;
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
return s;
|
|
738
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
739
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
740
|
+
return r;
|
|
787
741
|
}
|
|
788
|
-
function
|
|
789
|
-
if (
|
|
790
|
-
for (var
|
|
791
|
-
(s || !(
|
|
792
|
-
return e.concat(s || t);
|
|
742
|
+
function Ee(e, t, r) {
|
|
743
|
+
if (r || arguments.length === 2)
|
|
744
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
745
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
746
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
793
747
|
}
|
|
794
|
-
function
|
|
795
|
-
var
|
|
748
|
+
function ve(e, t) {
|
|
749
|
+
var r = t && t.cache ? t.cache : Tr, n = t && t.serializer ? t.serializer : xr, i = t && t.strategy ? t.strategy : vr;
|
|
796
750
|
return i(e, {
|
|
797
|
-
cache:
|
|
798
|
-
serializer:
|
|
751
|
+
cache: r,
|
|
752
|
+
serializer: n
|
|
799
753
|
});
|
|
800
754
|
}
|
|
801
|
-
function
|
|
755
|
+
function yr(e) {
|
|
802
756
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
803
757
|
}
|
|
804
|
-
function
|
|
805
|
-
var i =
|
|
806
|
-
return typeof s > "u" && (s = e.call(this,
|
|
807
|
-
}
|
|
808
|
-
function mt(e, t, n) {
|
|
809
|
-
var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
|
|
810
|
-
return typeof s > "u" && (s = e.apply(this, r), t.set(i, s)), s;
|
|
758
|
+
function Er(e, t, r, n) {
|
|
759
|
+
var i = yr(n) ? n : r(n), s = t.get(i);
|
|
760
|
+
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
811
761
|
}
|
|
812
|
-
function
|
|
813
|
-
|
|
762
|
+
function mt(e, t, r) {
|
|
763
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
764
|
+
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
814
765
|
}
|
|
815
|
-
function
|
|
816
|
-
|
|
817
|
-
return $e(e, this, n, t.cache.create(), t.serializer);
|
|
766
|
+
function gt(e, t, r, n, i) {
|
|
767
|
+
return r.bind(t, e, n, i);
|
|
818
768
|
}
|
|
819
|
-
function
|
|
820
|
-
|
|
769
|
+
function vr(e, t) {
|
|
770
|
+
var r = e.length === 1 ? Er : mt;
|
|
771
|
+
return gt(e, this, r, t.cache.create(), t.serializer);
|
|
821
772
|
}
|
|
822
|
-
function
|
|
823
|
-
return
|
|
773
|
+
function _r(e, t) {
|
|
774
|
+
return gt(e, this, mt, t.cache.create(), t.serializer);
|
|
824
775
|
}
|
|
825
|
-
var
|
|
776
|
+
var xr = function() {
|
|
826
777
|
return JSON.stringify(arguments);
|
|
827
|
-
},
|
|
778
|
+
}, Hr = (
|
|
828
779
|
/** @class */
|
|
829
780
|
function() {
|
|
830
781
|
function e() {
|
|
@@ -832,73 +783,82 @@ var vn = function() {
|
|
|
832
783
|
}
|
|
833
784
|
return e.prototype.get = function(t) {
|
|
834
785
|
return this.cache[t];
|
|
835
|
-
}, e.prototype.set = function(t,
|
|
836
|
-
this.cache[t] =
|
|
786
|
+
}, e.prototype.set = function(t, r) {
|
|
787
|
+
this.cache[t] = r;
|
|
837
788
|
}, e;
|
|
838
789
|
}()
|
|
839
|
-
),
|
|
790
|
+
), Tr = {
|
|
840
791
|
create: function() {
|
|
841
|
-
return new
|
|
792
|
+
return new Hr();
|
|
842
793
|
}
|
|
843
|
-
},
|
|
844
|
-
variadic:
|
|
845
|
-
|
|
846
|
-
|
|
794
|
+
}, _e = {
|
|
795
|
+
variadic: _r
|
|
796
|
+
}, he = function() {
|
|
797
|
+
return he = Object.assign || function(t) {
|
|
798
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
799
|
+
r = arguments[n];
|
|
800
|
+
for (var s in r)
|
|
801
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
802
|
+
}
|
|
803
|
+
return t;
|
|
804
|
+
}, he.apply(this, arguments);
|
|
805
|
+
};
|
|
806
|
+
var d;
|
|
847
807
|
(function(e) {
|
|
848
808
|
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";
|
|
849
|
-
})(
|
|
850
|
-
var
|
|
809
|
+
})(d || (d = {}));
|
|
810
|
+
var E;
|
|
851
811
|
(function(e) {
|
|
852
812
|
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";
|
|
853
|
-
})(
|
|
854
|
-
var
|
|
813
|
+
})(E || (E = {}));
|
|
814
|
+
var k;
|
|
855
815
|
(function(e) {
|
|
856
816
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
857
|
-
})(
|
|
858
|
-
function
|
|
859
|
-
return e.type ===
|
|
817
|
+
})(k || (k = {}));
|
|
818
|
+
function Ve(e) {
|
|
819
|
+
return e.type === E.literal;
|
|
860
820
|
}
|
|
861
|
-
function
|
|
862
|
-
return e.type ===
|
|
821
|
+
function Sr(e) {
|
|
822
|
+
return e.type === E.argument;
|
|
863
823
|
}
|
|
864
824
|
function dt(e) {
|
|
865
|
-
return e.type ===
|
|
866
|
-
}
|
|
867
|
-
function gt(e) {
|
|
868
|
-
return e.type === _.date;
|
|
825
|
+
return e.type === E.number;
|
|
869
826
|
}
|
|
870
827
|
function bt(e) {
|
|
871
|
-
return e.type ===
|
|
828
|
+
return e.type === E.date;
|
|
872
829
|
}
|
|
873
830
|
function pt(e) {
|
|
874
|
-
return e.type ===
|
|
831
|
+
return e.type === E.time;
|
|
875
832
|
}
|
|
876
833
|
function yt(e) {
|
|
877
|
-
return e.type ===
|
|
878
|
-
}
|
|
879
|
-
function Bn(e) {
|
|
880
|
-
return e.type === _.pound;
|
|
834
|
+
return e.type === E.select;
|
|
881
835
|
}
|
|
882
836
|
function Et(e) {
|
|
883
|
-
return e.type ===
|
|
837
|
+
return e.type === E.plural;
|
|
838
|
+
}
|
|
839
|
+
function Br(e) {
|
|
840
|
+
return e.type === E.pound;
|
|
841
|
+
}
|
|
842
|
+
function vt(e) {
|
|
843
|
+
return e.type === E.tag;
|
|
884
844
|
}
|
|
885
845
|
function _t(e) {
|
|
886
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
846
|
+
return !!(e && typeof e == "object" && e.type === k.number);
|
|
887
847
|
}
|
|
888
|
-
function
|
|
889
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
848
|
+
function Pe(e) {
|
|
849
|
+
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
890
850
|
}
|
|
891
|
-
var xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
892
|
-
function
|
|
851
|
+
var xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ar = /(?:[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;
|
|
852
|
+
function wr(e) {
|
|
893
853
|
var t = {};
|
|
894
|
-
return e.replace(
|
|
895
|
-
var
|
|
896
|
-
switch (
|
|
854
|
+
return e.replace(Ar, function(r) {
|
|
855
|
+
var n = r.length;
|
|
856
|
+
switch (r[0]) {
|
|
897
857
|
case "G":
|
|
898
|
-
t.era =
|
|
858
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
899
859
|
break;
|
|
900
860
|
case "y":
|
|
901
|
-
t.year =
|
|
861
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
902
862
|
break;
|
|
903
863
|
case "Y":
|
|
904
864
|
case "u":
|
|
@@ -910,30 +870,30 @@ function wn(e) {
|
|
|
910
870
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
911
871
|
case "M":
|
|
912
872
|
case "L":
|
|
913
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
873
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
914
874
|
break;
|
|
915
875
|
case "w":
|
|
916
876
|
case "W":
|
|
917
877
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
918
878
|
case "d":
|
|
919
|
-
t.day = ["numeric", "2-digit"][
|
|
879
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
920
880
|
break;
|
|
921
881
|
case "D":
|
|
922
882
|
case "F":
|
|
923
883
|
case "g":
|
|
924
884
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
925
885
|
case "E":
|
|
926
|
-
t.weekday =
|
|
886
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
927
887
|
break;
|
|
928
888
|
case "e":
|
|
929
|
-
if (
|
|
889
|
+
if (n < 4)
|
|
930
890
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
931
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
891
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
932
892
|
break;
|
|
933
893
|
case "c":
|
|
934
|
-
if (
|
|
894
|
+
if (n < 4)
|
|
935
895
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
936
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
896
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
937
897
|
break;
|
|
938
898
|
case "a":
|
|
939
899
|
t.hour12 = !0;
|
|
@@ -942,32 +902,32 @@ function wn(e) {
|
|
|
942
902
|
case "B":
|
|
943
903
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
944
904
|
case "h":
|
|
945
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
905
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
946
906
|
break;
|
|
947
907
|
case "H":
|
|
948
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
908
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
949
909
|
break;
|
|
950
910
|
case "K":
|
|
951
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
911
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
952
912
|
break;
|
|
953
913
|
case "k":
|
|
954
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
914
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
955
915
|
break;
|
|
956
916
|
case "j":
|
|
957
917
|
case "J":
|
|
958
918
|
case "C":
|
|
959
919
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
960
920
|
case "m":
|
|
961
|
-
t.minute = ["numeric", "2-digit"][
|
|
921
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
962
922
|
break;
|
|
963
923
|
case "s":
|
|
964
|
-
t.second = ["numeric", "2-digit"][
|
|
924
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
965
925
|
break;
|
|
966
926
|
case "S":
|
|
967
927
|
case "A":
|
|
968
928
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
969
929
|
case "z":
|
|
970
|
-
t.timeZoneName =
|
|
930
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
971
931
|
break;
|
|
972
932
|
case "Z":
|
|
973
933
|
case "O":
|
|
@@ -980,36 +940,46 @@ function wn(e) {
|
|
|
980
940
|
return "";
|
|
981
941
|
}), t;
|
|
982
942
|
}
|
|
983
|
-
var
|
|
984
|
-
function
|
|
943
|
+
var v = function() {
|
|
944
|
+
return v = Object.assign || function(t) {
|
|
945
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
946
|
+
r = arguments[n];
|
|
947
|
+
for (var s in r)
|
|
948
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
949
|
+
}
|
|
950
|
+
return t;
|
|
951
|
+
}, v.apply(this, arguments);
|
|
952
|
+
};
|
|
953
|
+
var Pr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
954
|
+
function Nr(e) {
|
|
985
955
|
if (e.length === 0)
|
|
986
956
|
throw new Error("Number skeleton cannot be empty");
|
|
987
|
-
for (var t = e.split(
|
|
957
|
+
for (var t = e.split(Pr).filter(function(f) {
|
|
988
958
|
return f.length > 0;
|
|
989
|
-
}),
|
|
990
|
-
var s = i[
|
|
991
|
-
if (
|
|
959
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
960
|
+
var s = i[n], u = s.split("/");
|
|
961
|
+
if (u.length === 0)
|
|
992
962
|
throw new Error("Invalid number skeleton");
|
|
993
|
-
for (var
|
|
994
|
-
var m = h[
|
|
963
|
+
for (var a = u[0], l = u.slice(1), o = 0, h = l; o < h.length; o++) {
|
|
964
|
+
var m = h[o];
|
|
995
965
|
if (m.length === 0)
|
|
996
966
|
throw new Error("Invalid number skeleton");
|
|
997
967
|
}
|
|
998
|
-
|
|
968
|
+
r.push({ stem: a, options: l });
|
|
999
969
|
}
|
|
1000
|
-
return
|
|
970
|
+
return r;
|
|
1001
971
|
}
|
|
1002
|
-
function
|
|
972
|
+
function Or(e) {
|
|
1003
973
|
return e.replace(/^(.*?)-/, "");
|
|
1004
974
|
}
|
|
1005
|
-
var
|
|
1006
|
-
function
|
|
975
|
+
var Xe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ht = /^(@+)?(\+|#+)?[rs]?$/g, Ir = /(\*)(0+)|(#+)(0+)|(0+)/g, Tt = /^(0+)$/;
|
|
976
|
+
function We(e) {
|
|
1007
977
|
var t = {};
|
|
1008
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1009
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
978
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ht, function(r, n, i) {
|
|
979
|
+
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)), "";
|
|
1010
980
|
}), t;
|
|
1011
981
|
}
|
|
1012
|
-
function
|
|
982
|
+
function St(e) {
|
|
1013
983
|
switch (e) {
|
|
1014
984
|
case "sign-auto":
|
|
1015
985
|
return {
|
|
@@ -1049,27 +1019,27 @@ function Tt(e) {
|
|
|
1049
1019
|
};
|
|
1050
1020
|
}
|
|
1051
1021
|
}
|
|
1052
|
-
function
|
|
1022
|
+
function Lr(e) {
|
|
1053
1023
|
var t;
|
|
1054
1024
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1055
1025
|
notation: "engineering"
|
|
1056
1026
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1057
1027
|
notation: "scientific"
|
|
1058
1028
|
}, e = e.slice(1)), t) {
|
|
1059
|
-
var
|
|
1060
|
-
if (
|
|
1029
|
+
var r = e.slice(0, 2);
|
|
1030
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Tt.test(e))
|
|
1061
1031
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1062
1032
|
t.minimumIntegerDigits = e.length;
|
|
1063
1033
|
}
|
|
1064
1034
|
return t;
|
|
1065
1035
|
}
|
|
1066
1036
|
function ze(e) {
|
|
1067
|
-
var t = {},
|
|
1068
|
-
return
|
|
1037
|
+
var t = {}, r = St(e);
|
|
1038
|
+
return r || t;
|
|
1069
1039
|
}
|
|
1070
|
-
function
|
|
1071
|
-
for (var t = {},
|
|
1072
|
-
var i = r
|
|
1040
|
+
function Cr(e) {
|
|
1041
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1042
|
+
var i = n[r];
|
|
1073
1043
|
switch (i.stem) {
|
|
1074
1044
|
case "percent":
|
|
1075
1045
|
case "%":
|
|
@@ -1091,7 +1061,7 @@ function Cn(e) {
|
|
|
1091
1061
|
continue;
|
|
1092
1062
|
case "measure-unit":
|
|
1093
1063
|
case "unit":
|
|
1094
|
-
t.style = "unit", t.unit =
|
|
1064
|
+
t.style = "unit", t.unit = Or(i.options[0]);
|
|
1095
1065
|
continue;
|
|
1096
1066
|
case "compact-short":
|
|
1097
1067
|
case "K":
|
|
@@ -1102,13 +1072,13 @@ function Cn(e) {
|
|
|
1102
1072
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1103
1073
|
continue;
|
|
1104
1074
|
case "scientific":
|
|
1105
|
-
t =
|
|
1106
|
-
return
|
|
1075
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, o) {
|
|
1076
|
+
return v(v({}, l), ze(o));
|
|
1107
1077
|
}, {}));
|
|
1108
1078
|
continue;
|
|
1109
1079
|
case "engineering":
|
|
1110
|
-
t =
|
|
1111
|
-
return
|
|
1080
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, o) {
|
|
1081
|
+
return v(v({}, l), ze(o));
|
|
1112
1082
|
}, {}));
|
|
1113
1083
|
continue;
|
|
1114
1084
|
case "notation-simple":
|
|
@@ -1153,8 +1123,8 @@ function Cn(e) {
|
|
|
1153
1123
|
case "integer-width":
|
|
1154
1124
|
if (i.options.length > 1)
|
|
1155
1125
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1156
|
-
i.options[0].replace(
|
|
1157
|
-
if (
|
|
1126
|
+
i.options[0].replace(Ir, function(l, o, h, m, f, b) {
|
|
1127
|
+
if (o)
|
|
1158
1128
|
t.minimumIntegerDigits = h.length;
|
|
1159
1129
|
else {
|
|
1160
1130
|
if (m && f)
|
|
@@ -1166,32 +1136,32 @@ function Cn(e) {
|
|
|
1166
1136
|
});
|
|
1167
1137
|
continue;
|
|
1168
1138
|
}
|
|
1169
|
-
if (
|
|
1139
|
+
if (Tt.test(i.stem)) {
|
|
1170
1140
|
t.minimumIntegerDigits = i.stem.length;
|
|
1171
1141
|
continue;
|
|
1172
1142
|
}
|
|
1173
|
-
if (
|
|
1143
|
+
if (Xe.test(i.stem)) {
|
|
1174
1144
|
if (i.options.length > 1)
|
|
1175
1145
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1176
|
-
i.stem.replace(
|
|
1177
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1146
|
+
i.stem.replace(Xe, function(l, o, h, m, f, b) {
|
|
1147
|
+
return h === "*" ? t.minimumFractionDigits = o.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = o.length, t.maximumFractionDigits = o.length), "";
|
|
1178
1148
|
});
|
|
1179
1149
|
var s = i.options[0];
|
|
1180
|
-
s === "w" ? t =
|
|
1150
|
+
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), We(s)));
|
|
1181
1151
|
continue;
|
|
1182
1152
|
}
|
|
1183
|
-
if (
|
|
1184
|
-
t =
|
|
1153
|
+
if (Ht.test(i.stem)) {
|
|
1154
|
+
t = v(v({}, t), We(i.stem));
|
|
1185
1155
|
continue;
|
|
1186
1156
|
}
|
|
1187
|
-
var
|
|
1188
|
-
|
|
1189
|
-
var
|
|
1190
|
-
|
|
1157
|
+
var u = St(i.stem);
|
|
1158
|
+
u && (t = v(v({}, t), u));
|
|
1159
|
+
var a = Lr(i.stem);
|
|
1160
|
+
a && (t = v(v({}, t), a));
|
|
1191
1161
|
}
|
|
1192
1162
|
return t;
|
|
1193
1163
|
}
|
|
1194
|
-
var
|
|
1164
|
+
var se = {
|
|
1195
1165
|
"001": [
|
|
1196
1166
|
"H",
|
|
1197
1167
|
"h"
|
|
@@ -2606,23 +2576,23 @@ var ie = {
|
|
|
2606
2576
|
"h"
|
|
2607
2577
|
]
|
|
2608
2578
|
};
|
|
2609
|
-
function
|
|
2610
|
-
for (var
|
|
2611
|
-
var i = e.charAt(
|
|
2579
|
+
function Mr(e, t) {
|
|
2580
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
2581
|
+
var i = e.charAt(n);
|
|
2612
2582
|
if (i === "j") {
|
|
2613
|
-
for (var s = 0;
|
|
2614
|
-
s++,
|
|
2615
|
-
var
|
|
2616
|
-
for ((
|
|
2617
|
-
|
|
2618
|
-
for (;
|
|
2619
|
-
|
|
2583
|
+
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2584
|
+
s++, n++;
|
|
2585
|
+
var u = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", o = Rr(t);
|
|
2586
|
+
for ((o == "H" || o == "k") && (a = 0); a-- > 0; )
|
|
2587
|
+
r += l;
|
|
2588
|
+
for (; u-- > 0; )
|
|
2589
|
+
r = o + r;
|
|
2620
2590
|
} else
|
|
2621
|
-
i === "J" ?
|
|
2591
|
+
i === "J" ? r += "H" : r += i;
|
|
2622
2592
|
}
|
|
2623
|
-
return
|
|
2593
|
+
return r;
|
|
2624
2594
|
}
|
|
2625
|
-
function
|
|
2595
|
+
function Rr(e) {
|
|
2626
2596
|
var t = e.hourCycle;
|
|
2627
2597
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2628
2598
|
e.hourCycles && // @ts-ignore
|
|
@@ -2639,73 +2609,73 @@ function Rn(e) {
|
|
|
2639
2609
|
default:
|
|
2640
2610
|
throw new Error("Invalid hourCycle");
|
|
2641
2611
|
}
|
|
2642
|
-
var
|
|
2643
|
-
|
|
2644
|
-
var i =
|
|
2612
|
+
var r = e.language, n;
|
|
2613
|
+
r !== "root" && (n = e.maximize().region);
|
|
2614
|
+
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2645
2615
|
return i[0];
|
|
2646
2616
|
}
|
|
2647
|
-
var
|
|
2617
|
+
var xe, $r = new RegExp("^".concat(xt.source, "*")), Ur = new RegExp("".concat(xt.source, "*$"));
|
|
2648
2618
|
function p(e, t) {
|
|
2649
2619
|
return { start: e, end: t };
|
|
2650
2620
|
}
|
|
2651
|
-
var
|
|
2621
|
+
var Dr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Gr = !!String.fromCodePoint, Fr = !!Object.fromEntries, jr = !!String.prototype.codePointAt, kr = !!String.prototype.trimStart, Vr = !!String.prototype.trimEnd, Xr = !!Number.isSafeInteger, Wr = Xr ? Number.isSafeInteger : function(e) {
|
|
2652
2622
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2653
|
-
},
|
|
2623
|
+
}, Ne = !0;
|
|
2654
2624
|
try {
|
|
2655
|
-
var
|
|
2656
|
-
|
|
2625
|
+
var zr = At("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2626
|
+
Ne = ((xe = zr.exec("a")) === null || xe === void 0 ? void 0 : xe[0]) === "a";
|
|
2657
2627
|
} catch {
|
|
2658
|
-
|
|
2628
|
+
Ne = !1;
|
|
2659
2629
|
}
|
|
2660
|
-
var
|
|
2630
|
+
var Ze = Dr ? (
|
|
2661
2631
|
// Native
|
|
2662
|
-
function(t,
|
|
2663
|
-
return t.startsWith(
|
|
2632
|
+
function(t, r, n) {
|
|
2633
|
+
return t.startsWith(r, n);
|
|
2664
2634
|
}
|
|
2665
2635
|
) : (
|
|
2666
2636
|
// For IE11
|
|
2667
|
-
function(t,
|
|
2668
|
-
return t.slice(
|
|
2637
|
+
function(t, r, n) {
|
|
2638
|
+
return t.slice(n, n + r.length) === r;
|
|
2669
2639
|
}
|
|
2670
|
-
),
|
|
2640
|
+
), Oe = Gr ? String.fromCodePoint : (
|
|
2671
2641
|
// IE11
|
|
2672
2642
|
function() {
|
|
2673
|
-
for (var t = [],
|
|
2674
|
-
t[
|
|
2675
|
-
for (var
|
|
2676
|
-
if (
|
|
2677
|
-
throw RangeError(
|
|
2678
|
-
|
|
2643
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2644
|
+
t[r] = arguments[r];
|
|
2645
|
+
for (var n = "", i = t.length, s = 0, u; i > s; ) {
|
|
2646
|
+
if (u = t[s++], u > 1114111)
|
|
2647
|
+
throw RangeError(u + " is not a valid code point");
|
|
2648
|
+
n += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
|
|
2679
2649
|
}
|
|
2680
|
-
return
|
|
2650
|
+
return n;
|
|
2681
2651
|
}
|
|
2682
|
-
),
|
|
2652
|
+
), Qe = (
|
|
2683
2653
|
// native
|
|
2684
|
-
|
|
2654
|
+
Fr ? Object.fromEntries : (
|
|
2685
2655
|
// Ponyfill
|
|
2686
2656
|
function(t) {
|
|
2687
|
-
for (var
|
|
2688
|
-
var s = i[
|
|
2689
|
-
|
|
2657
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2658
|
+
var s = i[n], u = s[0], a = s[1];
|
|
2659
|
+
r[u] = a;
|
|
2690
2660
|
}
|
|
2691
|
-
return
|
|
2661
|
+
return r;
|
|
2692
2662
|
}
|
|
2693
2663
|
)
|
|
2694
|
-
),
|
|
2664
|
+
), Bt = jr ? (
|
|
2695
2665
|
// Native
|
|
2696
|
-
function(t,
|
|
2697
|
-
return t.codePointAt(
|
|
2666
|
+
function(t, r) {
|
|
2667
|
+
return t.codePointAt(r);
|
|
2698
2668
|
}
|
|
2699
2669
|
) : (
|
|
2700
2670
|
// IE 11
|
|
2701
|
-
function(t,
|
|
2702
|
-
var
|
|
2703
|
-
if (!(
|
|
2704
|
-
var i = t.charCodeAt(
|
|
2705
|
-
return i < 55296 || i > 56319 ||
|
|
2671
|
+
function(t, r) {
|
|
2672
|
+
var n = t.length;
|
|
2673
|
+
if (!(r < 0 || r >= n)) {
|
|
2674
|
+
var i = t.charCodeAt(r), s;
|
|
2675
|
+
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2706
2676
|
}
|
|
2707
2677
|
}
|
|
2708
|
-
),
|
|
2678
|
+
), Zr = kr ? (
|
|
2709
2679
|
// Native
|
|
2710
2680
|
function(t) {
|
|
2711
2681
|
return t.trimStart();
|
|
@@ -2713,9 +2683,9 @@ var We = Dn ? (
|
|
|
2713
2683
|
) : (
|
|
2714
2684
|
// Ponyfill
|
|
2715
2685
|
function(t) {
|
|
2716
|
-
return t.replace($
|
|
2686
|
+
return t.replace($r, "");
|
|
2717
2687
|
}
|
|
2718
|
-
),
|
|
2688
|
+
), Qr = Vr ? (
|
|
2719
2689
|
// Native
|
|
2720
2690
|
function(t) {
|
|
2721
2691
|
return t.trimEnd();
|
|
@@ -2723,143 +2693,143 @@ var We = Dn ? (
|
|
|
2723
2693
|
) : (
|
|
2724
2694
|
// Ponyfill
|
|
2725
2695
|
function(t) {
|
|
2726
|
-
return t.replace(
|
|
2696
|
+
return t.replace(Ur, "");
|
|
2727
2697
|
}
|
|
2728
2698
|
);
|
|
2729
|
-
function
|
|
2699
|
+
function At(e, t) {
|
|
2730
2700
|
return new RegExp(e, t);
|
|
2731
2701
|
}
|
|
2732
|
-
var
|
|
2733
|
-
if (
|
|
2734
|
-
var
|
|
2735
|
-
|
|
2736
|
-
var
|
|
2737
|
-
|
|
2738
|
-
var i =
|
|
2739
|
-
return (
|
|
2702
|
+
var Ie;
|
|
2703
|
+
if (Ne) {
|
|
2704
|
+
var qe = At("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2705
|
+
Ie = function(t, r) {
|
|
2706
|
+
var n;
|
|
2707
|
+
qe.lastIndex = r;
|
|
2708
|
+
var i = qe.exec(t);
|
|
2709
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2740
2710
|
};
|
|
2741
2711
|
} else
|
|
2742
|
-
|
|
2743
|
-
for (var
|
|
2744
|
-
var i =
|
|
2745
|
-
if (i === void 0 ||
|
|
2712
|
+
Ie = function(t, r) {
|
|
2713
|
+
for (var n = []; ; ) {
|
|
2714
|
+
var i = Bt(t, r);
|
|
2715
|
+
if (i === void 0 || wt(i) || Kr(i))
|
|
2746
2716
|
break;
|
|
2747
|
-
|
|
2717
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2748
2718
|
}
|
|
2749
|
-
return
|
|
2719
|
+
return Oe.apply(void 0, n);
|
|
2750
2720
|
};
|
|
2751
|
-
var
|
|
2721
|
+
var qr = (
|
|
2752
2722
|
/** @class */
|
|
2753
2723
|
function() {
|
|
2754
|
-
function e(t,
|
|
2755
|
-
|
|
2724
|
+
function e(t, r) {
|
|
2725
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
2756
2726
|
}
|
|
2757
2727
|
return e.prototype.parse = function() {
|
|
2758
2728
|
if (this.offset() !== 0)
|
|
2759
2729
|
throw Error("parser can only be used once");
|
|
2760
2730
|
return this.parseMessage(0, "", !1);
|
|
2761
|
-
}, e.prototype.parseMessage = function(t,
|
|
2731
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2762
2732
|
for (var i = []; !this.isEOF(); ) {
|
|
2763
2733
|
var s = this.char();
|
|
2764
2734
|
if (s === 123) {
|
|
2765
|
-
var
|
|
2766
|
-
if (
|
|
2767
|
-
return
|
|
2768
|
-
i.push(
|
|
2735
|
+
var u = this.parseArgument(t, n);
|
|
2736
|
+
if (u.err)
|
|
2737
|
+
return u;
|
|
2738
|
+
i.push(u.val);
|
|
2769
2739
|
} else {
|
|
2770
2740
|
if (s === 125 && t > 0)
|
|
2771
2741
|
break;
|
|
2772
|
-
if (s === 35 && (
|
|
2773
|
-
var
|
|
2742
|
+
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2743
|
+
var a = this.clonePosition();
|
|
2774
2744
|
this.bump(), i.push({
|
|
2775
|
-
type:
|
|
2776
|
-
location: p(
|
|
2745
|
+
type: E.pound,
|
|
2746
|
+
location: p(a, this.clonePosition())
|
|
2777
2747
|
});
|
|
2778
2748
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2779
|
-
if (
|
|
2749
|
+
if (n)
|
|
2780
2750
|
break;
|
|
2781
|
-
return this.error(
|
|
2782
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2783
|
-
var
|
|
2784
|
-
if (
|
|
2785
|
-
return
|
|
2786
|
-
i.push(
|
|
2751
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2752
|
+
} else if (s === 60 && !this.ignoreTag && Le(this.peek() || 0)) {
|
|
2753
|
+
var u = this.parseTag(t, r);
|
|
2754
|
+
if (u.err)
|
|
2755
|
+
return u;
|
|
2756
|
+
i.push(u.val);
|
|
2787
2757
|
} else {
|
|
2788
|
-
var
|
|
2789
|
-
if (
|
|
2790
|
-
return
|
|
2791
|
-
i.push(
|
|
2758
|
+
var u = this.parseLiteral(t, r);
|
|
2759
|
+
if (u.err)
|
|
2760
|
+
return u;
|
|
2761
|
+
i.push(u.val);
|
|
2792
2762
|
}
|
|
2793
2763
|
}
|
|
2794
2764
|
}
|
|
2795
2765
|
return { val: i, err: null };
|
|
2796
|
-
}, e.prototype.parseTag = function(t,
|
|
2797
|
-
var
|
|
2766
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
2767
|
+
var n = this.clonePosition();
|
|
2798
2768
|
this.bump();
|
|
2799
2769
|
var i = this.parseTagName();
|
|
2800
2770
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2801
2771
|
return {
|
|
2802
2772
|
val: {
|
|
2803
|
-
type:
|
|
2773
|
+
type: E.literal,
|
|
2804
2774
|
value: "<".concat(i, "/>"),
|
|
2805
|
-
location: p(
|
|
2775
|
+
location: p(n, this.clonePosition())
|
|
2806
2776
|
},
|
|
2807
2777
|
err: null
|
|
2808
2778
|
};
|
|
2809
2779
|
if (this.bumpIf(">")) {
|
|
2810
|
-
var s = this.parseMessage(t + 1,
|
|
2780
|
+
var s = this.parseMessage(t + 1, r, !0);
|
|
2811
2781
|
if (s.err)
|
|
2812
2782
|
return s;
|
|
2813
|
-
var
|
|
2783
|
+
var u = s.val, a = this.clonePosition();
|
|
2814
2784
|
if (this.bumpIf("</")) {
|
|
2815
|
-
if (this.isEOF() || !
|
|
2816
|
-
return this.error(
|
|
2817
|
-
var l = this.clonePosition(),
|
|
2818
|
-
return i !==
|
|
2785
|
+
if (this.isEOF() || !Le(this.char()))
|
|
2786
|
+
return this.error(d.INVALID_TAG, p(a, this.clonePosition()));
|
|
2787
|
+
var l = this.clonePosition(), o = this.parseTagName();
|
|
2788
|
+
return i !== o ? this.error(d.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2819
2789
|
val: {
|
|
2820
|
-
type:
|
|
2790
|
+
type: E.tag,
|
|
2821
2791
|
value: i,
|
|
2822
|
-
children:
|
|
2823
|
-
location: p(
|
|
2792
|
+
children: u,
|
|
2793
|
+
location: p(n, this.clonePosition())
|
|
2824
2794
|
},
|
|
2825
2795
|
err: null
|
|
2826
|
-
} : this.error(
|
|
2796
|
+
} : this.error(d.INVALID_TAG, p(a, this.clonePosition())));
|
|
2827
2797
|
} else
|
|
2828
|
-
return this.error(
|
|
2798
|
+
return this.error(d.UNCLOSED_TAG, p(n, this.clonePosition()));
|
|
2829
2799
|
} else
|
|
2830
|
-
return this.error(
|
|
2800
|
+
return this.error(d.INVALID_TAG, p(n, this.clonePosition()));
|
|
2831
2801
|
}, e.prototype.parseTagName = function() {
|
|
2832
2802
|
var t = this.offset();
|
|
2833
|
-
for (this.bump(); !this.isEOF() &&
|
|
2803
|
+
for (this.bump(); !this.isEOF() && Yr(this.char()); )
|
|
2834
2804
|
this.bump();
|
|
2835
2805
|
return this.message.slice(t, this.offset());
|
|
2836
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2837
|
-
for (var
|
|
2838
|
-
var s = this.tryParseQuote(
|
|
2806
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
2807
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2808
|
+
var s = this.tryParseQuote(r);
|
|
2839
2809
|
if (s) {
|
|
2840
2810
|
i += s;
|
|
2841
2811
|
continue;
|
|
2842
2812
|
}
|
|
2843
|
-
var
|
|
2844
|
-
if (
|
|
2845
|
-
i +=
|
|
2813
|
+
var u = this.tryParseUnquoted(t, r);
|
|
2814
|
+
if (u) {
|
|
2815
|
+
i += u;
|
|
2846
2816
|
continue;
|
|
2847
2817
|
}
|
|
2848
|
-
var
|
|
2849
|
-
if (
|
|
2850
|
-
i +=
|
|
2818
|
+
var a = this.tryParseLeftAngleBracket();
|
|
2819
|
+
if (a) {
|
|
2820
|
+
i += a;
|
|
2851
2821
|
continue;
|
|
2852
2822
|
}
|
|
2853
2823
|
break;
|
|
2854
2824
|
}
|
|
2855
|
-
var l = p(
|
|
2825
|
+
var l = p(n, this.clonePosition());
|
|
2856
2826
|
return {
|
|
2857
|
-
val: { type:
|
|
2827
|
+
val: { type: E.literal, value: i, location: l },
|
|
2858
2828
|
err: null
|
|
2859
2829
|
};
|
|
2860
2830
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2861
2831
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2862
|
-
!
|
|
2832
|
+
!Jr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2863
2833
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2864
2834
|
if (this.isEOF() || this.char() !== 39)
|
|
2865
2835
|
return null;
|
|
@@ -2879,114 +2849,114 @@ var qn = (
|
|
|
2879
2849
|
return null;
|
|
2880
2850
|
}
|
|
2881
2851
|
this.bump();
|
|
2882
|
-
var
|
|
2852
|
+
var r = [this.char()];
|
|
2883
2853
|
for (this.bump(); !this.isEOF(); ) {
|
|
2884
|
-
var
|
|
2885
|
-
if (
|
|
2854
|
+
var n = this.char();
|
|
2855
|
+
if (n === 39)
|
|
2886
2856
|
if (this.peek() === 39)
|
|
2887
|
-
|
|
2857
|
+
r.push(39), this.bump();
|
|
2888
2858
|
else {
|
|
2889
2859
|
this.bump();
|
|
2890
2860
|
break;
|
|
2891
2861
|
}
|
|
2892
2862
|
else
|
|
2893
|
-
|
|
2863
|
+
r.push(n);
|
|
2894
2864
|
this.bump();
|
|
2895
2865
|
}
|
|
2896
|
-
return
|
|
2897
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
2866
|
+
return Oe.apply(void 0, r);
|
|
2867
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2898
2868
|
if (this.isEOF())
|
|
2899
2869
|
return null;
|
|
2900
|
-
var
|
|
2901
|
-
return
|
|
2902
|
-
}, e.prototype.parseArgument = function(t,
|
|
2903
|
-
var
|
|
2870
|
+
var n = this.char();
|
|
2871
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Oe(n));
|
|
2872
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
2873
|
+
var n = this.clonePosition();
|
|
2904
2874
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2905
|
-
return this.error(
|
|
2875
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
|
|
2906
2876
|
if (this.char() === 125)
|
|
2907
|
-
return this.bump(), this.error(
|
|
2877
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, p(n, this.clonePosition()));
|
|
2908
2878
|
var i = this.parseIdentifierIfPossible().value;
|
|
2909
2879
|
if (!i)
|
|
2910
|
-
return this.error(
|
|
2880
|
+
return this.error(d.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2911
2881
|
if (this.bumpSpace(), this.isEOF())
|
|
2912
|
-
return this.error(
|
|
2882
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
|
|
2913
2883
|
switch (this.char()) {
|
|
2914
2884
|
case 125:
|
|
2915
2885
|
return this.bump(), {
|
|
2916
2886
|
val: {
|
|
2917
|
-
type:
|
|
2887
|
+
type: E.argument,
|
|
2918
2888
|
// value does not include the opening and closing braces.
|
|
2919
2889
|
value: i,
|
|
2920
|
-
location: p(
|
|
2890
|
+
location: p(n, this.clonePosition())
|
|
2921
2891
|
},
|
|
2922
2892
|
err: null
|
|
2923
2893
|
};
|
|
2924
2894
|
case 44:
|
|
2925
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2895
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2926
2896
|
default:
|
|
2927
|
-
return this.error(
|
|
2897
|
+
return this.error(d.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2928
2898
|
}
|
|
2929
2899
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2930
|
-
var t = this.clonePosition(),
|
|
2900
|
+
var t = this.clonePosition(), r = this.offset(), n = Ie(this.message, r), i = r + n.length;
|
|
2931
2901
|
this.bumpTo(i);
|
|
2932
|
-
var s = this.clonePosition(),
|
|
2933
|
-
return { value:
|
|
2934
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
2935
|
-
var s,
|
|
2936
|
-
switch (
|
|
2902
|
+
var s = this.clonePosition(), u = p(t, s);
|
|
2903
|
+
return { value: n, location: u };
|
|
2904
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2905
|
+
var s, u = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2906
|
+
switch (a) {
|
|
2937
2907
|
case "":
|
|
2938
|
-
return this.error(
|
|
2908
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, p(u, l));
|
|
2939
2909
|
case "number":
|
|
2940
2910
|
case "date":
|
|
2941
2911
|
case "time": {
|
|
2942
2912
|
this.bumpSpace();
|
|
2943
|
-
var
|
|
2913
|
+
var o = null;
|
|
2944
2914
|
if (this.bumpIf(",")) {
|
|
2945
2915
|
this.bumpSpace();
|
|
2946
2916
|
var h = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
|
2947
2917
|
if (m.err)
|
|
2948
2918
|
return m;
|
|
2949
|
-
var f =
|
|
2919
|
+
var f = Qr(m.val);
|
|
2950
2920
|
if (f.length === 0)
|
|
2951
|
-
return this.error(
|
|
2921
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2952
2922
|
var b = p(h, this.clonePosition());
|
|
2953
|
-
|
|
2923
|
+
o = { style: f, styleLocation: b };
|
|
2954
2924
|
}
|
|
2955
2925
|
var y = this.tryParseArgumentClose(i);
|
|
2956
2926
|
if (y.err)
|
|
2957
2927
|
return y;
|
|
2958
|
-
var
|
|
2959
|
-
if (
|
|
2960
|
-
var T =
|
|
2961
|
-
if (
|
|
2962
|
-
var m = this.parseNumberSkeletonFromString(T,
|
|
2928
|
+
var _ = p(i, this.clonePosition());
|
|
2929
|
+
if (o && Ze(o?.style, "::", 0)) {
|
|
2930
|
+
var T = Zr(o.style.slice(2));
|
|
2931
|
+
if (a === "number") {
|
|
2932
|
+
var m = this.parseNumberSkeletonFromString(T, o.styleLocation);
|
|
2963
2933
|
return m.err ? m : {
|
|
2964
|
-
val: { type:
|
|
2934
|
+
val: { type: E.number, value: n, location: _, style: m.val },
|
|
2965
2935
|
err: null
|
|
2966
2936
|
};
|
|
2967
2937
|
} else {
|
|
2968
2938
|
if (T.length === 0)
|
|
2969
|
-
return this.error(
|
|
2939
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, _);
|
|
2970
2940
|
var w = T;
|
|
2971
|
-
this.locale && (w =
|
|
2941
|
+
this.locale && (w = Mr(T, this.locale));
|
|
2972
2942
|
var f = {
|
|
2973
|
-
type:
|
|
2943
|
+
type: k.dateTime,
|
|
2974
2944
|
pattern: w,
|
|
2975
|
-
location:
|
|
2976
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2977
|
-
}, A =
|
|
2945
|
+
location: o.styleLocation,
|
|
2946
|
+
parsedOptions: this.shouldParseSkeletons ? wr(w) : {}
|
|
2947
|
+
}, A = a === "date" ? E.date : E.time;
|
|
2978
2948
|
return {
|
|
2979
|
-
val: { type: A, value:
|
|
2949
|
+
val: { type: A, value: n, location: _, style: f },
|
|
2980
2950
|
err: null
|
|
2981
2951
|
};
|
|
2982
2952
|
}
|
|
2983
2953
|
}
|
|
2984
2954
|
return {
|
|
2985
2955
|
val: {
|
|
2986
|
-
type:
|
|
2987
|
-
value:
|
|
2988
|
-
location:
|
|
2989
|
-
style: (s =
|
|
2956
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
2957
|
+
value: n,
|
|
2958
|
+
location: _,
|
|
2959
|
+
style: (s = o?.style) !== null && s !== void 0 ? s : null
|
|
2990
2960
|
},
|
|
2991
2961
|
err: null
|
|
2992
2962
|
};
|
|
@@ -2996,59 +2966,59 @@ var qn = (
|
|
|
2996
2966
|
case "select": {
|
|
2997
2967
|
var S = this.clonePosition();
|
|
2998
2968
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2999
|
-
return this.error(
|
|
2969
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, p(S, he({}, S)));
|
|
3000
2970
|
this.bumpSpace();
|
|
3001
|
-
var P = this.parseIdentifierIfPossible(),
|
|
3002
|
-
if (
|
|
2971
|
+
var P = this.parseIdentifierIfPossible(), x = 0;
|
|
2972
|
+
if (a !== "select" && P.value === "offset") {
|
|
3003
2973
|
if (!this.bumpIf(":"))
|
|
3004
|
-
return this.error(
|
|
2974
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
3005
2975
|
this.bumpSpace();
|
|
3006
|
-
var m = this.tryParseDecimalInteger(
|
|
2976
|
+
var m = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3007
2977
|
if (m.err)
|
|
3008
2978
|
return m;
|
|
3009
|
-
this.bumpSpace(), P = this.parseIdentifierIfPossible(),
|
|
2979
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), x = m.val;
|
|
3010
2980
|
}
|
|
3011
|
-
var O = this.tryParsePluralOrSelectOptions(t,
|
|
2981
|
+
var O = this.tryParsePluralOrSelectOptions(t, a, r, P);
|
|
3012
2982
|
if (O.err)
|
|
3013
2983
|
return O;
|
|
3014
2984
|
var y = this.tryParseArgumentClose(i);
|
|
3015
2985
|
if (y.err)
|
|
3016
2986
|
return y;
|
|
3017
2987
|
var c = p(i, this.clonePosition());
|
|
3018
|
-
return
|
|
2988
|
+
return a === "select" ? {
|
|
3019
2989
|
val: {
|
|
3020
|
-
type:
|
|
3021
|
-
value:
|
|
3022
|
-
options:
|
|
2990
|
+
type: E.select,
|
|
2991
|
+
value: n,
|
|
2992
|
+
options: Qe(O.val),
|
|
3023
2993
|
location: c
|
|
3024
2994
|
},
|
|
3025
2995
|
err: null
|
|
3026
2996
|
} : {
|
|
3027
2997
|
val: {
|
|
3028
|
-
type:
|
|
3029
|
-
value:
|
|
3030
|
-
options:
|
|
3031
|
-
offset:
|
|
3032
|
-
pluralType:
|
|
2998
|
+
type: E.plural,
|
|
2999
|
+
value: n,
|
|
3000
|
+
options: Qe(O.val),
|
|
3001
|
+
offset: x,
|
|
3002
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3033
3003
|
location: c
|
|
3034
3004
|
},
|
|
3035
3005
|
err: null
|
|
3036
3006
|
};
|
|
3037
3007
|
}
|
|
3038
3008
|
default:
|
|
3039
|
-
return this.error(
|
|
3009
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, p(u, l));
|
|
3040
3010
|
}
|
|
3041
3011
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3042
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3012
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3043
3013
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3044
|
-
for (var t = 0,
|
|
3045
|
-
var
|
|
3046
|
-
switch (
|
|
3014
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3015
|
+
var n = this.char();
|
|
3016
|
+
switch (n) {
|
|
3047
3017
|
case 39: {
|
|
3048
3018
|
this.bump();
|
|
3049
3019
|
var i = this.clonePosition();
|
|
3050
3020
|
if (!this.bumpUntil("'"))
|
|
3051
|
-
return this.error(
|
|
3021
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
|
|
3052
3022
|
this.bump();
|
|
3053
3023
|
break;
|
|
3054
3024
|
}
|
|
@@ -3061,7 +3031,7 @@ var qn = (
|
|
|
3061
3031
|
t -= 1;
|
|
3062
3032
|
else
|
|
3063
3033
|
return {
|
|
3064
|
-
val: this.message.slice(
|
|
3034
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3065
3035
|
err: null
|
|
3066
3036
|
};
|
|
3067
3037
|
break;
|
|
@@ -3072,70 +3042,70 @@ var qn = (
|
|
|
3072
3042
|
}
|
|
3073
3043
|
}
|
|
3074
3044
|
return {
|
|
3075
|
-
val: this.message.slice(
|
|
3045
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3076
3046
|
err: null
|
|
3077
3047
|
};
|
|
3078
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3079
|
-
var
|
|
3048
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3049
|
+
var n = [];
|
|
3080
3050
|
try {
|
|
3081
|
-
|
|
3051
|
+
n = Nr(t);
|
|
3082
3052
|
} catch {
|
|
3083
|
-
return this.error(
|
|
3053
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3084
3054
|
}
|
|
3085
3055
|
return {
|
|
3086
3056
|
val: {
|
|
3087
|
-
type:
|
|
3088
|
-
tokens:
|
|
3089
|
-
location:
|
|
3090
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3057
|
+
type: k.number,
|
|
3058
|
+
tokens: n,
|
|
3059
|
+
location: r,
|
|
3060
|
+
parsedOptions: this.shouldParseSkeletons ? Cr(n) : {}
|
|
3091
3061
|
},
|
|
3092
3062
|
err: null
|
|
3093
3063
|
};
|
|
3094
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3095
|
-
for (var s,
|
|
3096
|
-
if (
|
|
3064
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3065
|
+
for (var s, u = !1, a = [], l = /* @__PURE__ */ new Set(), o = i.value, h = i.location; ; ) {
|
|
3066
|
+
if (o.length === 0) {
|
|
3097
3067
|
var m = this.clonePosition();
|
|
3098
|
-
if (
|
|
3099
|
-
var f = this.tryParseDecimalInteger(
|
|
3068
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
3069
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3100
3070
|
if (f.err)
|
|
3101
3071
|
return f;
|
|
3102
|
-
h = p(m, this.clonePosition()),
|
|
3072
|
+
h = p(m, this.clonePosition()), o = this.message.slice(m.offset, this.offset());
|
|
3103
3073
|
} else
|
|
3104
3074
|
break;
|
|
3105
3075
|
}
|
|
3106
|
-
if (l.has(
|
|
3107
|
-
return this.error(
|
|
3108
|
-
|
|
3076
|
+
if (l.has(o))
|
|
3077
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3078
|
+
o === "other" && (u = !0), this.bumpSpace();
|
|
3109
3079
|
var b = this.clonePosition();
|
|
3110
3080
|
if (!this.bumpIf("{"))
|
|
3111
|
-
return this.error(
|
|
3112
|
-
var y = this.parseMessage(t + 1,
|
|
3081
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
3082
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3113
3083
|
if (y.err)
|
|
3114
3084
|
return y;
|
|
3115
|
-
var
|
|
3116
|
-
if (
|
|
3117
|
-
return
|
|
3118
|
-
|
|
3119
|
-
|
|
3085
|
+
var _ = this.tryParseArgumentClose(b);
|
|
3086
|
+
if (_.err)
|
|
3087
|
+
return _;
|
|
3088
|
+
a.push([
|
|
3089
|
+
o,
|
|
3120
3090
|
{
|
|
3121
3091
|
value: y.val,
|
|
3122
3092
|
location: p(b, this.clonePosition())
|
|
3123
3093
|
}
|
|
3124
|
-
]), l.add(
|
|
3094
|
+
]), l.add(o), this.bumpSpace(), s = this.parseIdentifierIfPossible(), o = s.value, h = s.location;
|
|
3125
3095
|
}
|
|
3126
|
-
return
|
|
3127
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3128
|
-
var
|
|
3129
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3130
|
-
for (var s = !1,
|
|
3131
|
-
var
|
|
3132
|
-
if (
|
|
3133
|
-
s = !0,
|
|
3096
|
+
return a.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(d.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3097
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3098
|
+
var n = 1, i = this.clonePosition();
|
|
3099
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3100
|
+
for (var s = !1, u = 0; !this.isEOF(); ) {
|
|
3101
|
+
var a = this.char();
|
|
3102
|
+
if (a >= 48 && a <= 57)
|
|
3103
|
+
s = !0, u = u * 10 + (a - 48), this.bump();
|
|
3134
3104
|
else
|
|
3135
3105
|
break;
|
|
3136
3106
|
}
|
|
3137
3107
|
var l = p(i, this.clonePosition());
|
|
3138
|
-
return s ? (
|
|
3108
|
+
return s ? (u *= n, Wr(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3139
3109
|
}, e.prototype.offset = function() {
|
|
3140
3110
|
return this.position.offset;
|
|
3141
3111
|
}, e.prototype.isEOF = function() {
|
|
@@ -3150,17 +3120,17 @@ var qn = (
|
|
|
3150
3120
|
var t = this.position.offset;
|
|
3151
3121
|
if (t >= this.message.length)
|
|
3152
3122
|
throw Error("out of bound");
|
|
3153
|
-
var
|
|
3154
|
-
if (
|
|
3123
|
+
var r = Bt(this.message, t);
|
|
3124
|
+
if (r === void 0)
|
|
3155
3125
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3156
|
-
return
|
|
3157
|
-
}, e.prototype.error = function(t,
|
|
3126
|
+
return r;
|
|
3127
|
+
}, e.prototype.error = function(t, r) {
|
|
3158
3128
|
return {
|
|
3159
3129
|
val: null,
|
|
3160
3130
|
err: {
|
|
3161
3131
|
kind: t,
|
|
3162
3132
|
message: this.message,
|
|
3163
|
-
location:
|
|
3133
|
+
location: r
|
|
3164
3134
|
}
|
|
3165
3135
|
};
|
|
3166
3136
|
}, e.prototype.bump = function() {
|
|
@@ -3169,296 +3139,296 @@ var qn = (
|
|
|
3169
3139
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3170
3140
|
}
|
|
3171
3141
|
}, e.prototype.bumpIf = function(t) {
|
|
3172
|
-
if (
|
|
3173
|
-
for (var
|
|
3142
|
+
if (Ze(this.message, t, this.offset())) {
|
|
3143
|
+
for (var r = 0; r < t.length; r++)
|
|
3174
3144
|
this.bump();
|
|
3175
3145
|
return !0;
|
|
3176
3146
|
}
|
|
3177
3147
|
return !1;
|
|
3178
3148
|
}, e.prototype.bumpUntil = function(t) {
|
|
3179
|
-
var
|
|
3180
|
-
return
|
|
3149
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3150
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3181
3151
|
}, e.prototype.bumpTo = function(t) {
|
|
3182
3152
|
if (this.offset() > t)
|
|
3183
3153
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3184
3154
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3185
|
-
var
|
|
3186
|
-
if (
|
|
3155
|
+
var r = this.offset();
|
|
3156
|
+
if (r === t)
|
|
3187
3157
|
break;
|
|
3188
|
-
if (
|
|
3158
|
+
if (r > t)
|
|
3189
3159
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3190
3160
|
if (this.bump(), this.isEOF())
|
|
3191
3161
|
break;
|
|
3192
3162
|
}
|
|
3193
3163
|
}, e.prototype.bumpSpace = function() {
|
|
3194
|
-
for (; !this.isEOF() &&
|
|
3164
|
+
for (; !this.isEOF() && wt(this.char()); )
|
|
3195
3165
|
this.bump();
|
|
3196
3166
|
}, e.prototype.peek = function() {
|
|
3197
3167
|
if (this.isEOF())
|
|
3198
3168
|
return null;
|
|
3199
|
-
var t = this.char(),
|
|
3200
|
-
return
|
|
3169
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3170
|
+
return n ?? null;
|
|
3201
3171
|
}, e;
|
|
3202
3172
|
}()
|
|
3203
3173
|
);
|
|
3204
|
-
function
|
|
3174
|
+
function Le(e) {
|
|
3205
3175
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3206
3176
|
}
|
|
3207
|
-
function
|
|
3208
|
-
return
|
|
3177
|
+
function Jr(e) {
|
|
3178
|
+
return Le(e) || e === 47;
|
|
3209
3179
|
}
|
|
3210
|
-
function
|
|
3180
|
+
function Yr(e) {
|
|
3211
3181
|
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;
|
|
3212
3182
|
}
|
|
3213
|
-
function
|
|
3183
|
+
function wt(e) {
|
|
3214
3184
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3215
3185
|
}
|
|
3216
|
-
function
|
|
3186
|
+
function Kr(e) {
|
|
3217
3187
|
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;
|
|
3218
3188
|
}
|
|
3219
|
-
function
|
|
3189
|
+
function Ce(e) {
|
|
3220
3190
|
e.forEach(function(t) {
|
|
3221
|
-
if (delete t.location,
|
|
3222
|
-
for (var
|
|
3223
|
-
delete t.options[
|
|
3191
|
+
if (delete t.location, yt(t) || Et(t))
|
|
3192
|
+
for (var r in t.options)
|
|
3193
|
+
delete t.options[r].location, Ce(t.options[r].value);
|
|
3224
3194
|
else
|
|
3225
|
-
dt(t) && _t(t.style) || (
|
|
3195
|
+
dt(t) && _t(t.style) || (bt(t) || pt(t)) && Pe(t.style) ? delete t.style.location : vt(t) && Ce(t.children);
|
|
3226
3196
|
});
|
|
3227
3197
|
}
|
|
3228
|
-
function
|
|
3229
|
-
t === void 0 && (t = {}), t =
|
|
3230
|
-
var
|
|
3231
|
-
if (
|
|
3232
|
-
var
|
|
3233
|
-
throw
|
|
3198
|
+
function en(e, t) {
|
|
3199
|
+
t === void 0 && (t = {}), t = he({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3200
|
+
var r = new qr(e, t).parse();
|
|
3201
|
+
if (r.err) {
|
|
3202
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3203
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3234
3204
|
}
|
|
3235
|
-
return t?.captureLocation ||
|
|
3205
|
+
return t?.captureLocation || Ce(r.val), r.val;
|
|
3236
3206
|
}
|
|
3237
|
-
var
|
|
3207
|
+
var V;
|
|
3238
3208
|
(function(e) {
|
|
3239
3209
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3240
|
-
})(
|
|
3241
|
-
var
|
|
3210
|
+
})(V || (V = {}));
|
|
3211
|
+
var de = (
|
|
3242
3212
|
/** @class */
|
|
3243
3213
|
function(e) {
|
|
3244
|
-
|
|
3245
|
-
function t(
|
|
3246
|
-
var s = e.call(this,
|
|
3247
|
-
return s.code =
|
|
3214
|
+
ge(t, e);
|
|
3215
|
+
function t(r, n, i) {
|
|
3216
|
+
var s = e.call(this, r) || this;
|
|
3217
|
+
return s.code = n, s.originalMessage = i, s;
|
|
3248
3218
|
}
|
|
3249
3219
|
return t.prototype.toString = function() {
|
|
3250
3220
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3251
3221
|
}, t;
|
|
3252
3222
|
}(Error)
|
|
3253
|
-
),
|
|
3223
|
+
), Je = (
|
|
3254
3224
|
/** @class */
|
|
3255
3225
|
function(e) {
|
|
3256
|
-
|
|
3257
|
-
function t(
|
|
3258
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3226
|
+
ge(t, e);
|
|
3227
|
+
function t(r, n, i, s) {
|
|
3228
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
|
|
3259
3229
|
}
|
|
3260
3230
|
return t;
|
|
3261
|
-
}(
|
|
3262
|
-
),
|
|
3231
|
+
}(de)
|
|
3232
|
+
), tn = (
|
|
3263
3233
|
/** @class */
|
|
3264
3234
|
function(e) {
|
|
3265
|
-
|
|
3266
|
-
function t(
|
|
3267
|
-
return e.call(this, 'Value for "'.concat(
|
|
3235
|
+
ge(t, e);
|
|
3236
|
+
function t(r, n, i) {
|
|
3237
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
|
3268
3238
|
}
|
|
3269
3239
|
return t;
|
|
3270
|
-
}(
|
|
3271
|
-
),
|
|
3240
|
+
}(de)
|
|
3241
|
+
), rn = (
|
|
3272
3242
|
/** @class */
|
|
3273
3243
|
function(e) {
|
|
3274
|
-
|
|
3275
|
-
function t(
|
|
3276
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3244
|
+
ge(t, e);
|
|
3245
|
+
function t(r, n) {
|
|
3246
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
|
3277
3247
|
}
|
|
3278
3248
|
return t;
|
|
3279
|
-
}(
|
|
3249
|
+
}(de)
|
|
3280
3250
|
), B;
|
|
3281
3251
|
(function(e) {
|
|
3282
3252
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3283
3253
|
})(B || (B = {}));
|
|
3284
|
-
function
|
|
3285
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3286
|
-
var
|
|
3287
|
-
return !
|
|
3254
|
+
function nn(e) {
|
|
3255
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3256
|
+
var n = t[t.length - 1];
|
|
3257
|
+
return !n || n.type !== B.literal || r.type !== B.literal ? t.push(r) : n.value += r.value, t;
|
|
3288
3258
|
}, []);
|
|
3289
3259
|
}
|
|
3290
|
-
function
|
|
3260
|
+
function sn(e) {
|
|
3291
3261
|
return typeof e == "function";
|
|
3292
3262
|
}
|
|
3293
|
-
function ae(e, t,
|
|
3294
|
-
if (e.length === 1 &&
|
|
3263
|
+
function ae(e, t, r, n, i, s, u) {
|
|
3264
|
+
if (e.length === 1 && Ve(e[0]))
|
|
3295
3265
|
return [
|
|
3296
3266
|
{
|
|
3297
3267
|
type: B.literal,
|
|
3298
3268
|
value: e[0].value
|
|
3299
3269
|
}
|
|
3300
3270
|
];
|
|
3301
|
-
for (var
|
|
3302
|
-
var h =
|
|
3303
|
-
if (
|
|
3304
|
-
|
|
3271
|
+
for (var a = [], l = 0, o = e; l < o.length; l++) {
|
|
3272
|
+
var h = o[l];
|
|
3273
|
+
if (Ve(h)) {
|
|
3274
|
+
a.push({
|
|
3305
3275
|
type: B.literal,
|
|
3306
3276
|
value: h.value
|
|
3307
3277
|
});
|
|
3308
3278
|
continue;
|
|
3309
3279
|
}
|
|
3310
|
-
if (
|
|
3311
|
-
typeof s == "number" &&
|
|
3280
|
+
if (Br(h)) {
|
|
3281
|
+
typeof s == "number" && a.push({
|
|
3312
3282
|
type: B.literal,
|
|
3313
|
-
value:
|
|
3283
|
+
value: r.getNumberFormat(t).format(s)
|
|
3314
3284
|
});
|
|
3315
3285
|
continue;
|
|
3316
3286
|
}
|
|
3317
3287
|
var m = h.value;
|
|
3318
3288
|
if (!(i && m in i))
|
|
3319
|
-
throw new
|
|
3289
|
+
throw new rn(m, u);
|
|
3320
3290
|
var f = i[m];
|
|
3321
|
-
if (
|
|
3322
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
|
3291
|
+
if (Sr(h)) {
|
|
3292
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3323
3293
|
type: typeof f == "string" ? B.literal : B.object,
|
|
3324
3294
|
value: f
|
|
3325
3295
|
});
|
|
3326
3296
|
continue;
|
|
3327
3297
|
}
|
|
3328
|
-
if (
|
|
3329
|
-
var b = typeof h.style == "string" ?
|
|
3330
|
-
|
|
3298
|
+
if (bt(h)) {
|
|
3299
|
+
var b = typeof h.style == "string" ? n.date[h.style] : Pe(h.style) ? h.style.parsedOptions : void 0;
|
|
3300
|
+
a.push({
|
|
3331
3301
|
type: B.literal,
|
|
3332
|
-
value:
|
|
3302
|
+
value: r.getDateTimeFormat(t, b).format(f)
|
|
3333
3303
|
});
|
|
3334
3304
|
continue;
|
|
3335
3305
|
}
|
|
3336
|
-
if (
|
|
3337
|
-
var b = typeof h.style == "string" ?
|
|
3338
|
-
|
|
3306
|
+
if (pt(h)) {
|
|
3307
|
+
var b = typeof h.style == "string" ? n.time[h.style] : Pe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3308
|
+
a.push({
|
|
3339
3309
|
type: B.literal,
|
|
3340
|
-
value:
|
|
3310
|
+
value: r.getDateTimeFormat(t, b).format(f)
|
|
3341
3311
|
});
|
|
3342
3312
|
continue;
|
|
3343
3313
|
}
|
|
3344
3314
|
if (dt(h)) {
|
|
3345
|
-
var b = typeof h.style == "string" ?
|
|
3346
|
-
b && b.scale && (f = f * (b.scale || 1)),
|
|
3315
|
+
var b = typeof h.style == "string" ? n.number[h.style] : _t(h.style) ? h.style.parsedOptions : void 0;
|
|
3316
|
+
b && b.scale && (f = f * (b.scale || 1)), a.push({
|
|
3347
3317
|
type: B.literal,
|
|
3348
|
-
value:
|
|
3318
|
+
value: r.getNumberFormat(t, b).format(f)
|
|
3349
3319
|
});
|
|
3350
3320
|
continue;
|
|
3351
3321
|
}
|
|
3352
|
-
if (
|
|
3353
|
-
var y = h.children,
|
|
3354
|
-
if (!
|
|
3355
|
-
throw new
|
|
3356
|
-
var w = ae(y, t,
|
|
3357
|
-
return
|
|
3322
|
+
if (vt(h)) {
|
|
3323
|
+
var y = h.children, _ = h.value, T = i[_];
|
|
3324
|
+
if (!sn(T))
|
|
3325
|
+
throw new tn(_, "function", u);
|
|
3326
|
+
var w = ae(y, t, r, n, i, s), A = T(w.map(function(x) {
|
|
3327
|
+
return x.value;
|
|
3358
3328
|
}));
|
|
3359
|
-
Array.isArray(A) || (A = [A]),
|
|
3329
|
+
Array.isArray(A) || (A = [A]), a.push.apply(a, A.map(function(x) {
|
|
3360
3330
|
return {
|
|
3361
|
-
type: typeof
|
|
3362
|
-
value:
|
|
3331
|
+
type: typeof x == "string" ? B.literal : B.object,
|
|
3332
|
+
value: x
|
|
3363
3333
|
};
|
|
3364
3334
|
}));
|
|
3365
3335
|
}
|
|
3366
|
-
if (
|
|
3336
|
+
if (yt(h)) {
|
|
3367
3337
|
var S = h.options[f] || h.options.other;
|
|
3368
3338
|
if (!S)
|
|
3369
|
-
throw new
|
|
3370
|
-
|
|
3339
|
+
throw new Je(h.value, f, Object.keys(h.options), u);
|
|
3340
|
+
a.push.apply(a, ae(S.value, t, r, n, i));
|
|
3371
3341
|
continue;
|
|
3372
3342
|
}
|
|
3373
|
-
if (
|
|
3343
|
+
if (Et(h)) {
|
|
3374
3344
|
var S = h.options["=".concat(f)];
|
|
3375
3345
|
if (!S) {
|
|
3376
3346
|
if (!Intl.PluralRules)
|
|
3377
|
-
throw new
|
|
3347
|
+
throw new de(`Intl.PluralRules is not available in this environment.
|
|
3378
3348
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3379
|
-
`,
|
|
3380
|
-
var P =
|
|
3349
|
+
`, V.MISSING_INTL_API, u);
|
|
3350
|
+
var P = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3381
3351
|
S = h.options[P] || h.options.other;
|
|
3382
3352
|
}
|
|
3383
3353
|
if (!S)
|
|
3384
|
-
throw new
|
|
3385
|
-
|
|
3354
|
+
throw new Je(h.value, f, Object.keys(h.options), u);
|
|
3355
|
+
a.push.apply(a, ae(S.value, t, r, n, i, f - (h.offset || 0)));
|
|
3386
3356
|
continue;
|
|
3387
3357
|
}
|
|
3388
3358
|
}
|
|
3389
|
-
return
|
|
3359
|
+
return nn(a);
|
|
3390
3360
|
}
|
|
3391
|
-
function
|
|
3392
|
-
return t ?
|
|
3393
|
-
return n
|
|
3361
|
+
function on(e, t) {
|
|
3362
|
+
return t ? C(C(C({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3363
|
+
return r[n] = C(C({}, e[n]), t[n] || {}), r;
|
|
3394
3364
|
}, {})) : e;
|
|
3395
3365
|
}
|
|
3396
|
-
function
|
|
3397
|
-
return t ? Object.keys(e).reduce(function(
|
|
3398
|
-
return n
|
|
3399
|
-
},
|
|
3366
|
+
function an(e, t) {
|
|
3367
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3368
|
+
return r[n] = on(e[n], t[n]), r;
|
|
3369
|
+
}, C({}, e)) : e;
|
|
3400
3370
|
}
|
|
3401
|
-
function
|
|
3371
|
+
function He(e) {
|
|
3402
3372
|
return {
|
|
3403
3373
|
create: function() {
|
|
3404
3374
|
return {
|
|
3405
3375
|
get: function(t) {
|
|
3406
3376
|
return e[t];
|
|
3407
3377
|
},
|
|
3408
|
-
set: function(t,
|
|
3409
|
-
e[t] =
|
|
3378
|
+
set: function(t, r) {
|
|
3379
|
+
e[t] = r;
|
|
3410
3380
|
}
|
|
3411
3381
|
};
|
|
3412
3382
|
}
|
|
3413
3383
|
};
|
|
3414
3384
|
}
|
|
3415
|
-
function
|
|
3385
|
+
function un(e) {
|
|
3416
3386
|
return e === void 0 && (e = {
|
|
3417
3387
|
number: {},
|
|
3418
3388
|
dateTime: {},
|
|
3419
3389
|
pluralRules: {}
|
|
3420
3390
|
}), {
|
|
3421
|
-
getNumberFormat:
|
|
3422
|
-
for (var t,
|
|
3423
|
-
n
|
|
3424
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3391
|
+
getNumberFormat: ve(function() {
|
|
3392
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3393
|
+
r[n] = arguments[n];
|
|
3394
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3425
3395
|
}, {
|
|
3426
|
-
cache:
|
|
3427
|
-
strategy:
|
|
3396
|
+
cache: He(e.number),
|
|
3397
|
+
strategy: _e.variadic
|
|
3428
3398
|
}),
|
|
3429
|
-
getDateTimeFormat:
|
|
3430
|
-
for (var t,
|
|
3431
|
-
n
|
|
3432
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3399
|
+
getDateTimeFormat: ve(function() {
|
|
3400
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3401
|
+
r[n] = arguments[n];
|
|
3402
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3433
3403
|
}, {
|
|
3434
|
-
cache:
|
|
3435
|
-
strategy:
|
|
3404
|
+
cache: He(e.dateTime),
|
|
3405
|
+
strategy: _e.variadic
|
|
3436
3406
|
}),
|
|
3437
|
-
getPluralRules:
|
|
3438
|
-
for (var t,
|
|
3439
|
-
n
|
|
3440
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3407
|
+
getPluralRules: ve(function() {
|
|
3408
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3409
|
+
r[n] = arguments[n];
|
|
3410
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3441
3411
|
}, {
|
|
3442
|
-
cache:
|
|
3443
|
-
strategy:
|
|
3412
|
+
cache: He(e.pluralRules),
|
|
3413
|
+
strategy: _e.variadic
|
|
3444
3414
|
})
|
|
3445
3415
|
};
|
|
3446
3416
|
}
|
|
3447
|
-
var
|
|
3417
|
+
var hn = (
|
|
3448
3418
|
/** @class */
|
|
3449
3419
|
function() {
|
|
3450
|
-
function e(t,
|
|
3451
|
-
|
|
3420
|
+
function e(t, r, n, i) {
|
|
3421
|
+
r === void 0 && (r = e.defaultLocale);
|
|
3452
3422
|
var s = this;
|
|
3453
3423
|
if (this.formatterCache = {
|
|
3454
3424
|
number: {},
|
|
3455
3425
|
dateTime: {},
|
|
3456
3426
|
pluralRules: {}
|
|
3457
3427
|
}, this.format = function(l) {
|
|
3458
|
-
var
|
|
3459
|
-
if (
|
|
3460
|
-
return
|
|
3461
|
-
var h =
|
|
3428
|
+
var o = s.formatToParts(l);
|
|
3429
|
+
if (o.length === 1)
|
|
3430
|
+
return o[0].value;
|
|
3431
|
+
var h = o.reduce(function(m, f) {
|
|
3462
3432
|
return !m.length || f.type !== B.literal || typeof m[m.length - 1] != "string" ? m.push(f.value) : m[m.length - 1] += f.value, m;
|
|
3463
3433
|
}, []);
|
|
3464
3434
|
return h.length <= 1 ? h[0] || "" : h;
|
|
@@ -3471,18 +3441,18 @@ var ur = (
|
|
|
3471
3441
|
};
|
|
3472
3442
|
}, this.getAst = function() {
|
|
3473
3443
|
return s.ast;
|
|
3474
|
-
}, this.locales =
|
|
3444
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3475
3445
|
if (this.message = t, !e.__parse)
|
|
3476
3446
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3477
|
-
var
|
|
3478
|
-
|
|
3479
|
-
var
|
|
3480
|
-
this.ast = e.__parse(t,
|
|
3447
|
+
var u = i || {};
|
|
3448
|
+
u.formatters;
|
|
3449
|
+
var a = pr(u, ["formatters"]);
|
|
3450
|
+
this.ast = e.__parse(t, C(C({}, a), { locale: this.resolvedLocale }));
|
|
3481
3451
|
} else
|
|
3482
3452
|
this.ast = t;
|
|
3483
3453
|
if (!Array.isArray(this.ast))
|
|
3484
3454
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3485
|
-
this.formats =
|
|
3455
|
+
this.formats = an(e.formats, n), this.formatters = i && i.formatters || un(this.formatterCache);
|
|
3486
3456
|
}
|
|
3487
3457
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3488
3458
|
get: function() {
|
|
@@ -3492,10 +3462,10 @@ var ur = (
|
|
|
3492
3462
|
configurable: !0
|
|
3493
3463
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3494
3464
|
if (!(typeof Intl.Locale > "u")) {
|
|
3495
|
-
var
|
|
3496
|
-
return
|
|
3465
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3466
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3497
3467
|
}
|
|
3498
|
-
}, e.__parse =
|
|
3468
|
+
}, e.__parse = en, e.formats = {
|
|
3499
3469
|
number: {
|
|
3500
3470
|
integer: {
|
|
3501
3471
|
maximumFractionDigits: 0
|
|
@@ -3556,113 +3526,113 @@ var ur = (
|
|
|
3556
3526
|
}, e;
|
|
3557
3527
|
}()
|
|
3558
3528
|
);
|
|
3559
|
-
function
|
|
3529
|
+
function ln(e, t) {
|
|
3560
3530
|
if (t == null)
|
|
3561
3531
|
return;
|
|
3562
3532
|
if (t in e)
|
|
3563
3533
|
return e[t];
|
|
3564
|
-
const
|
|
3565
|
-
let
|
|
3566
|
-
for (let i = 0; i <
|
|
3567
|
-
if (typeof
|
|
3534
|
+
const r = t.split(".");
|
|
3535
|
+
let n = e;
|
|
3536
|
+
for (let i = 0; i < r.length; i++)
|
|
3537
|
+
if (typeof n == "object") {
|
|
3568
3538
|
if (i > 0) {
|
|
3569
|
-
const s =
|
|
3570
|
-
if (s in
|
|
3571
|
-
|
|
3539
|
+
const s = r.slice(i, r.length).join(".");
|
|
3540
|
+
if (s in n) {
|
|
3541
|
+
n = n[s];
|
|
3572
3542
|
break;
|
|
3573
3543
|
}
|
|
3574
3544
|
}
|
|
3575
|
-
|
|
3545
|
+
n = n[r[i]];
|
|
3576
3546
|
} else
|
|
3577
|
-
|
|
3578
|
-
return
|
|
3547
|
+
n = void 0;
|
|
3548
|
+
return n;
|
|
3579
3549
|
}
|
|
3580
|
-
const
|
|
3550
|
+
const M = {}, fn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Pt = (e, t) => {
|
|
3581
3551
|
if (t == null)
|
|
3582
3552
|
return;
|
|
3583
|
-
if (t in
|
|
3584
|
-
return
|
|
3585
|
-
const
|
|
3586
|
-
for (let
|
|
3587
|
-
const i = n
|
|
3553
|
+
if (t in M && e in M[t])
|
|
3554
|
+
return M[t][e];
|
|
3555
|
+
const r = be(t);
|
|
3556
|
+
for (let n = 0; n < r.length; n++) {
|
|
3557
|
+
const i = r[n], s = mn(i, e);
|
|
3588
3558
|
if (s)
|
|
3589
|
-
return
|
|
3559
|
+
return fn(e, t, s);
|
|
3590
3560
|
}
|
|
3591
3561
|
};
|
|
3592
|
-
let
|
|
3593
|
-
const
|
|
3594
|
-
function
|
|
3595
|
-
return
|
|
3562
|
+
let De;
|
|
3563
|
+
const Z = me({});
|
|
3564
|
+
function cn(e) {
|
|
3565
|
+
return De[e] || null;
|
|
3596
3566
|
}
|
|
3597
|
-
function
|
|
3598
|
-
return e in
|
|
3567
|
+
function Nt(e) {
|
|
3568
|
+
return e in De;
|
|
3599
3569
|
}
|
|
3600
|
-
function
|
|
3601
|
-
if (!
|
|
3570
|
+
function mn(e, t) {
|
|
3571
|
+
if (!Nt(e))
|
|
3602
3572
|
return null;
|
|
3603
|
-
const
|
|
3604
|
-
return
|
|
3573
|
+
const r = cn(e);
|
|
3574
|
+
return ln(r, t);
|
|
3605
3575
|
}
|
|
3606
|
-
function
|
|
3576
|
+
function gn(e) {
|
|
3607
3577
|
if (e == null)
|
|
3608
3578
|
return;
|
|
3609
|
-
const t =
|
|
3610
|
-
for (let
|
|
3611
|
-
const
|
|
3612
|
-
if (
|
|
3613
|
-
return
|
|
3579
|
+
const t = be(e);
|
|
3580
|
+
for (let r = 0; r < t.length; r++) {
|
|
3581
|
+
const n = t[r];
|
|
3582
|
+
if (Nt(n))
|
|
3583
|
+
return n;
|
|
3614
3584
|
}
|
|
3615
3585
|
}
|
|
3616
|
-
function
|
|
3617
|
-
delete
|
|
3586
|
+
function dn(e, ...t) {
|
|
3587
|
+
delete M[e], Z.update((r) => (r[e] = br.all([r[e] || {}, ...t]), r));
|
|
3618
3588
|
}
|
|
3619
3589
|
z(
|
|
3620
|
-
[
|
|
3590
|
+
[Z],
|
|
3621
3591
|
([e]) => Object.keys(e)
|
|
3622
3592
|
);
|
|
3623
|
-
|
|
3624
|
-
const
|
|
3625
|
-
function
|
|
3626
|
-
|
|
3593
|
+
Z.subscribe((e) => De = e);
|
|
3594
|
+
const ue = {};
|
|
3595
|
+
function bn(e, t) {
|
|
3596
|
+
ue[e].delete(t), ue[e].size === 0 && delete ue[e];
|
|
3627
3597
|
}
|
|
3628
|
-
function
|
|
3629
|
-
return
|
|
3598
|
+
function Ot(e) {
|
|
3599
|
+
return ue[e];
|
|
3630
3600
|
}
|
|
3631
|
-
function
|
|
3632
|
-
return
|
|
3633
|
-
const
|
|
3634
|
-
return [t,
|
|
3601
|
+
function pn(e) {
|
|
3602
|
+
return be(e).map((t) => {
|
|
3603
|
+
const r = Ot(t);
|
|
3604
|
+
return [t, r ? [...r] : []];
|
|
3635
3605
|
}).filter(([, t]) => t.length > 0);
|
|
3636
3606
|
}
|
|
3637
|
-
function
|
|
3638
|
-
return e == null ? !1 :
|
|
3607
|
+
function Me(e) {
|
|
3608
|
+
return e == null ? !1 : be(e).some(
|
|
3639
3609
|
(t) => {
|
|
3640
|
-
var
|
|
3641
|
-
return (
|
|
3610
|
+
var r;
|
|
3611
|
+
return (r = Ot(t)) == null ? void 0 : r.size;
|
|
3642
3612
|
}
|
|
3643
3613
|
);
|
|
3644
3614
|
}
|
|
3645
|
-
function
|
|
3615
|
+
function yn(e, t) {
|
|
3646
3616
|
return Promise.all(
|
|
3647
|
-
t.map((
|
|
3648
|
-
).then((
|
|
3649
|
-
}
|
|
3650
|
-
const
|
|
3651
|
-
function
|
|
3652
|
-
if (!
|
|
3653
|
-
return e in
|
|
3654
|
-
const t =
|
|
3655
|
-
return
|
|
3617
|
+
t.map((n) => (bn(e, n), n().then((i) => i.default || i)))
|
|
3618
|
+
).then((n) => dn(e, ...n));
|
|
3619
|
+
}
|
|
3620
|
+
const q = {};
|
|
3621
|
+
function It(e) {
|
|
3622
|
+
if (!Me(e))
|
|
3623
|
+
return e in q ? q[e] : Promise.resolve();
|
|
3624
|
+
const t = pn(e);
|
|
3625
|
+
return q[e] = Promise.all(
|
|
3656
3626
|
t.map(
|
|
3657
|
-
([
|
|
3627
|
+
([r, n]) => yn(r, n)
|
|
3658
3628
|
)
|
|
3659
3629
|
).then(() => {
|
|
3660
|
-
if (
|
|
3661
|
-
return
|
|
3662
|
-
delete
|
|
3663
|
-
}),
|
|
3630
|
+
if (Me(e))
|
|
3631
|
+
return It(e);
|
|
3632
|
+
delete q[e];
|
|
3633
|
+
}), q[e];
|
|
3664
3634
|
}
|
|
3665
|
-
const
|
|
3635
|
+
const En = {
|
|
3666
3636
|
number: {
|
|
3667
3637
|
scientific: { notation: "scientific" },
|
|
3668
3638
|
engineering: { notation: "engineering" },
|
|
@@ -3691,159 +3661,159 @@ const yr = {
|
|
|
3691
3661
|
timeZoneName: "short"
|
|
3692
3662
|
}
|
|
3693
3663
|
}
|
|
3694
|
-
},
|
|
3664
|
+
}, vn = {
|
|
3695
3665
|
fallbackLocale: null,
|
|
3696
3666
|
loadingDelay: 200,
|
|
3697
|
-
formats:
|
|
3667
|
+
formats: En,
|
|
3698
3668
|
warnOnMissingMessages: !0,
|
|
3699
3669
|
handleMissingMessage: void 0,
|
|
3700
3670
|
ignoreTag: !0
|
|
3701
|
-
},
|
|
3702
|
-
function
|
|
3703
|
-
return
|
|
3704
|
-
}
|
|
3705
|
-
const
|
|
3706
|
-
var
|
|
3707
|
-
for (var
|
|
3708
|
-
|
|
3709
|
-
if (
|
|
3710
|
-
for (var
|
|
3711
|
-
|
|
3671
|
+
}, _n = vn;
|
|
3672
|
+
function X() {
|
|
3673
|
+
return _n;
|
|
3674
|
+
}
|
|
3675
|
+
const Te = me(!1);
|
|
3676
|
+
var xn = Object.defineProperty, Hn = Object.defineProperties, Tn = Object.getOwnPropertyDescriptors, Ye = Object.getOwnPropertySymbols, Sn = Object.prototype.hasOwnProperty, Bn = Object.prototype.propertyIsEnumerable, Ke = (e, t, r) => t in e ? xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, An = (e, t) => {
|
|
3677
|
+
for (var r in t || (t = {}))
|
|
3678
|
+
Sn.call(t, r) && Ke(e, r, t[r]);
|
|
3679
|
+
if (Ye)
|
|
3680
|
+
for (var r of Ye(t))
|
|
3681
|
+
Bn.call(t, r) && Ke(e, r, t[r]);
|
|
3712
3682
|
return e;
|
|
3713
|
-
},
|
|
3714
|
-
let
|
|
3715
|
-
const
|
|
3716
|
-
function
|
|
3717
|
-
return e.split("-").map((t,
|
|
3683
|
+
}, wn = (e, t) => Hn(e, Tn(t));
|
|
3684
|
+
let Re;
|
|
3685
|
+
const le = me(null);
|
|
3686
|
+
function et(e) {
|
|
3687
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3718
3688
|
}
|
|
3719
|
-
function
|
|
3720
|
-
const
|
|
3721
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3689
|
+
function be(e, t = X().fallbackLocale) {
|
|
3690
|
+
const r = et(e);
|
|
3691
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...et(t)])] : r;
|
|
3722
3692
|
}
|
|
3723
|
-
function
|
|
3724
|
-
return
|
|
3693
|
+
function $() {
|
|
3694
|
+
return Re ?? void 0;
|
|
3725
3695
|
}
|
|
3726
|
-
|
|
3727
|
-
|
|
3696
|
+
le.subscribe((e) => {
|
|
3697
|
+
Re = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3728
3698
|
});
|
|
3729
|
-
const
|
|
3730
|
-
if (e &&
|
|
3731
|
-
const { loadingDelay: t } =
|
|
3732
|
-
let
|
|
3733
|
-
return typeof window < "u" &&
|
|
3734
|
-
() =>
|
|
3699
|
+
const Pn = (e) => {
|
|
3700
|
+
if (e && gn(e) && Me(e)) {
|
|
3701
|
+
const { loadingDelay: t } = X();
|
|
3702
|
+
let r;
|
|
3703
|
+
return typeof window < "u" && $() != null && t ? r = window.setTimeout(
|
|
3704
|
+
() => Te.set(!0),
|
|
3735
3705
|
t
|
|
3736
|
-
) :
|
|
3737
|
-
|
|
3706
|
+
) : Te.set(!0), It(e).then(() => {
|
|
3707
|
+
le.set(e);
|
|
3738
3708
|
}).finally(() => {
|
|
3739
|
-
clearTimeout(
|
|
3709
|
+
clearTimeout(r), Te.set(!1);
|
|
3740
3710
|
});
|
|
3741
3711
|
}
|
|
3742
|
-
return
|
|
3743
|
-
},
|
|
3744
|
-
set:
|
|
3745
|
-
}),
|
|
3712
|
+
return le.set(e);
|
|
3713
|
+
}, R = wn(An({}, le), {
|
|
3714
|
+
set: Pn
|
|
3715
|
+
}), pe = (e) => {
|
|
3746
3716
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3747
|
-
return (
|
|
3748
|
-
const i = JSON.stringify(
|
|
3749
|
-
return i in t ? t[i] : t[i] = e(
|
|
3717
|
+
return (n) => {
|
|
3718
|
+
const i = JSON.stringify(n);
|
|
3719
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
3750
3720
|
};
|
|
3751
3721
|
};
|
|
3752
|
-
var
|
|
3753
|
-
for (var
|
|
3754
|
-
|
|
3755
|
-
if (
|
|
3756
|
-
for (var
|
|
3757
|
-
|
|
3722
|
+
var Nn = Object.defineProperty, fe = Object.getOwnPropertySymbols, Lt = Object.prototype.hasOwnProperty, Ct = Object.prototype.propertyIsEnumerable, tt = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ge = (e, t) => {
|
|
3723
|
+
for (var r in t || (t = {}))
|
|
3724
|
+
Lt.call(t, r) && tt(e, r, t[r]);
|
|
3725
|
+
if (fe)
|
|
3726
|
+
for (var r of fe(t))
|
|
3727
|
+
Ct.call(t, r) && tt(e, r, t[r]);
|
|
3758
3728
|
return e;
|
|
3759
|
-
},
|
|
3760
|
-
var
|
|
3761
|
-
for (var
|
|
3762
|
-
|
|
3763
|
-
if (e != null &&
|
|
3764
|
-
for (var
|
|
3765
|
-
t.indexOf(
|
|
3766
|
-
return
|
|
3729
|
+
}, Q = (e, t) => {
|
|
3730
|
+
var r = {};
|
|
3731
|
+
for (var n in e)
|
|
3732
|
+
Lt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3733
|
+
if (e != null && fe)
|
|
3734
|
+
for (var n of fe(e))
|
|
3735
|
+
t.indexOf(n) < 0 && Ct.call(e, n) && (r[n] = e[n]);
|
|
3736
|
+
return r;
|
|
3767
3737
|
};
|
|
3768
|
-
const
|
|
3769
|
-
const { formats:
|
|
3770
|
-
if (e in
|
|
3771
|
-
return
|
|
3738
|
+
const ee = (e, t) => {
|
|
3739
|
+
const { formats: r } = X();
|
|
3740
|
+
if (e in r && t in r[e])
|
|
3741
|
+
return r[e][t];
|
|
3772
3742
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3773
|
-
},
|
|
3743
|
+
}, On = pe(
|
|
3774
3744
|
(e) => {
|
|
3775
|
-
var t = e, { locale:
|
|
3776
|
-
if (
|
|
3745
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3746
|
+
if (r == null)
|
|
3777
3747
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3778
|
-
return
|
|
3748
|
+
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
3779
3749
|
}
|
|
3780
|
-
),
|
|
3750
|
+
), In = pe(
|
|
3781
3751
|
(e) => {
|
|
3782
|
-
var t = e, { locale:
|
|
3783
|
-
if (
|
|
3752
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3753
|
+
if (r == null)
|
|
3784
3754
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3785
|
-
return
|
|
3755
|
+
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3786
3756
|
}
|
|
3787
|
-
),
|
|
3757
|
+
), Ln = pe(
|
|
3788
3758
|
(e) => {
|
|
3789
|
-
var t = e, { locale:
|
|
3790
|
-
if (
|
|
3759
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3760
|
+
if (r == null)
|
|
3791
3761
|
throw new Error(
|
|
3792
3762
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3793
3763
|
);
|
|
3794
|
-
return
|
|
3764
|
+
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3795
3765
|
}
|
|
3796
|
-
),
|
|
3766
|
+
), Cn = (e = {}) => {
|
|
3797
3767
|
var t = e, {
|
|
3798
|
-
locale:
|
|
3799
|
-
} = t,
|
|
3768
|
+
locale: r = $()
|
|
3769
|
+
} = t, n = Q(t, [
|
|
3800
3770
|
"locale"
|
|
3801
3771
|
]);
|
|
3802
|
-
return
|
|
3803
|
-
},
|
|
3772
|
+
return On(Ge({ locale: r }, n));
|
|
3773
|
+
}, Mn = (e = {}) => {
|
|
3804
3774
|
var t = e, {
|
|
3805
|
-
locale:
|
|
3806
|
-
} = t,
|
|
3775
|
+
locale: r = $()
|
|
3776
|
+
} = t, n = Q(t, [
|
|
3807
3777
|
"locale"
|
|
3808
3778
|
]);
|
|
3809
|
-
return
|
|
3810
|
-
},
|
|
3779
|
+
return In(Ge({ locale: r }, n));
|
|
3780
|
+
}, Rn = (e = {}) => {
|
|
3811
3781
|
var t = e, {
|
|
3812
|
-
locale:
|
|
3813
|
-
} = t,
|
|
3782
|
+
locale: r = $()
|
|
3783
|
+
} = t, n = Q(t, [
|
|
3814
3784
|
"locale"
|
|
3815
3785
|
]);
|
|
3816
|
-
return
|
|
3817
|
-
},
|
|
3786
|
+
return Ln(Ge({ locale: r }, n));
|
|
3787
|
+
}, $n = pe(
|
|
3818
3788
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3819
|
-
(e, t =
|
|
3820
|
-
ignoreTag:
|
|
3789
|
+
(e, t = $()) => new hn(e, t, X().formats, {
|
|
3790
|
+
ignoreTag: X().ignoreTag
|
|
3821
3791
|
})
|
|
3822
|
-
),
|
|
3823
|
-
var
|
|
3824
|
-
let
|
|
3825
|
-
typeof e == "object" && (
|
|
3792
|
+
), Un = (e, t = {}) => {
|
|
3793
|
+
var r, n, i, s;
|
|
3794
|
+
let u = t;
|
|
3795
|
+
typeof e == "object" && (u = e, e = u.id);
|
|
3826
3796
|
const {
|
|
3827
|
-
values:
|
|
3828
|
-
locale: l =
|
|
3829
|
-
default:
|
|
3830
|
-
} =
|
|
3797
|
+
values: a,
|
|
3798
|
+
locale: l = $(),
|
|
3799
|
+
default: o
|
|
3800
|
+
} = u;
|
|
3831
3801
|
if (l == null)
|
|
3832
3802
|
throw new Error(
|
|
3833
3803
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3834
3804
|
);
|
|
3835
|
-
let h =
|
|
3805
|
+
let h = Pt(e, l);
|
|
3836
3806
|
if (!h)
|
|
3837
|
-
h = (s = (i = (
|
|
3807
|
+
h = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: o })) != null ? i : o) != null ? s : e;
|
|
3838
3808
|
else if (typeof h != "string")
|
|
3839
3809
|
return console.warn(
|
|
3840
3810
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3841
3811
|
), h;
|
|
3842
|
-
if (!
|
|
3812
|
+
if (!a)
|
|
3843
3813
|
return h;
|
|
3844
3814
|
let m = h;
|
|
3845
3815
|
try {
|
|
3846
|
-
m =
|
|
3816
|
+
m = $n(h, l).format(a);
|
|
3847
3817
|
} catch (f) {
|
|
3848
3818
|
f instanceof Error && console.warn(
|
|
3849
3819
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3851,343 +3821,343 @@ const K = (e, t) => {
|
|
|
3851
3821
|
);
|
|
3852
3822
|
}
|
|
3853
3823
|
return m;
|
|
3854
|
-
},
|
|
3855
|
-
z([
|
|
3856
|
-
z([
|
|
3857
|
-
z([
|
|
3858
|
-
z([
|
|
3859
|
-
function
|
|
3860
|
-
|
|
3861
|
-
|
|
3824
|
+
}, Dn = (e, t) => Rn(t).format(e), Gn = (e, t) => Mn(t).format(e), Fn = (e, t) => Cn(t).format(e), jn = (e, t = $()) => Pt(e, t), ci = z([R, Z], () => Un);
|
|
3825
|
+
z([R], () => Dn);
|
|
3826
|
+
z([R], () => Gn);
|
|
3827
|
+
z([R], () => Fn);
|
|
3828
|
+
z([R, Z], () => jn);
|
|
3829
|
+
function kn({ withLocale: e, translations: t }) {
|
|
3830
|
+
R.subscribe((r) => {
|
|
3831
|
+
r == null && (Z.set(t), R.set(e));
|
|
3862
3832
|
});
|
|
3863
3833
|
}
|
|
3864
|
-
function
|
|
3834
|
+
function Vn(e, t) {
|
|
3865
3835
|
if (e) {
|
|
3866
|
-
const
|
|
3867
|
-
|
|
3836
|
+
const r = document.createElement("style");
|
|
3837
|
+
r.innerHTML = t, e.appendChild(r);
|
|
3868
3838
|
}
|
|
3869
3839
|
}
|
|
3870
|
-
function
|
|
3871
|
-
const
|
|
3872
|
-
fetch(
|
|
3840
|
+
function Xn(e, t) {
|
|
3841
|
+
const r = new URL(t);
|
|
3842
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3873
3843
|
const i = document.createElement("style");
|
|
3874
|
-
i.innerHTML =
|
|
3875
|
-
}).catch((
|
|
3876
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
3844
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
3845
|
+
}).catch((n) => {
|
|
3846
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
3877
3847
|
});
|
|
3878
3848
|
}
|
|
3879
|
-
function
|
|
3849
|
+
function Wn(e, t, r) {
|
|
3880
3850
|
if (window.emMessageBus) {
|
|
3881
|
-
const
|
|
3851
|
+
const n = document.createElement("style");
|
|
3882
3852
|
window.emMessageBus.subscribe(t, (i) => {
|
|
3883
|
-
|
|
3853
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
3884
3854
|
});
|
|
3885
3855
|
}
|
|
3886
3856
|
}
|
|
3887
3857
|
if (typeof window < "u") {
|
|
3888
3858
|
let e = function(t) {
|
|
3889
|
-
return function(...
|
|
3859
|
+
return function(...r) {
|
|
3890
3860
|
try {
|
|
3891
|
-
return t.apply(this,
|
|
3892
|
-
} catch (
|
|
3893
|
-
if (
|
|
3861
|
+
return t.apply(this, r);
|
|
3862
|
+
} catch (n) {
|
|
3863
|
+
if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
3894
3864
|
return !1;
|
|
3895
|
-
throw
|
|
3865
|
+
throw n;
|
|
3896
3866
|
}
|
|
3897
3867
|
};
|
|
3898
3868
|
};
|
|
3899
|
-
customElements.define = e(customElements.define), import("./CasinoGamesCategorySection-
|
|
3869
|
+
customElements.define = e(customElements.define), import("./CasinoGamesCategorySection-CsNt4jh-.js").then(({ default: t }) => {
|
|
3900
3870
|
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", t.element);
|
|
3901
3871
|
});
|
|
3902
3872
|
}
|
|
3903
|
-
function
|
|
3904
|
-
|
|
3873
|
+
function zn(e) {
|
|
3874
|
+
$t(e, "svelte-nazqps", ".CasinoFavoritesSectionContainer{font-family:inherit;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
|
|
3905
3875
|
}
|
|
3906
|
-
function
|
|
3876
|
+
function rt(e) {
|
|
3907
3877
|
let t;
|
|
3908
3878
|
return {
|
|
3909
3879
|
c() {
|
|
3910
|
-
t =
|
|
3880
|
+
t = re("casino-games-category-section"), g(
|
|
3911
3881
|
t,
|
|
3912
3882
|
"session",
|
|
3913
3883
|
/*session*/
|
|
3914
3884
|
e[4]
|
|
3915
|
-
),
|
|
3885
|
+
), g(
|
|
3916
3886
|
t,
|
|
3917
3887
|
"userid",
|
|
3918
3888
|
/*userid*/
|
|
3919
3889
|
e[5]
|
|
3920
|
-
),
|
|
3890
|
+
), g(
|
|
3921
3891
|
t,
|
|
3922
3892
|
"endpoint",
|
|
3923
3893
|
/*endpoint*/
|
|
3924
3894
|
e[0]
|
|
3925
|
-
),
|
|
3895
|
+
), g(
|
|
3926
3896
|
t,
|
|
3927
3897
|
"datasource",
|
|
3928
3898
|
/*datasource*/
|
|
3929
3899
|
e[1]
|
|
3930
|
-
),
|
|
3900
|
+
), g(
|
|
3931
3901
|
t,
|
|
3932
3902
|
"lang",
|
|
3933
3903
|
/*lang*/
|
|
3934
3904
|
e[3]
|
|
3935
|
-
),
|
|
3905
|
+
), g(
|
|
3936
3906
|
t,
|
|
3937
3907
|
"currency",
|
|
3938
3908
|
/*currency*/
|
|
3939
3909
|
e[2]
|
|
3940
|
-
),
|
|
3910
|
+
), g(
|
|
3941
3911
|
t,
|
|
3942
3912
|
"favorites",
|
|
3943
3913
|
/*favorites*/
|
|
3944
3914
|
e[14]
|
|
3945
|
-
),
|
|
3915
|
+
), g(
|
|
3946
3916
|
t,
|
|
3947
3917
|
"fetchviaevent",
|
|
3948
3918
|
/*fetchviaevent*/
|
|
3949
3919
|
e[16]
|
|
3950
|
-
),
|
|
3920
|
+
), g(
|
|
3951
3921
|
t,
|
|
3952
3922
|
"mbsource",
|
|
3953
3923
|
/*mbsource*/
|
|
3954
3924
|
e[17]
|
|
3955
|
-
),
|
|
3925
|
+
), g(t, "categoryid", "FAVORITES"), g(t, "class", "CategoryContainer"), g(
|
|
3956
3926
|
t,
|
|
3957
3927
|
"showgamename",
|
|
3958
3928
|
/*showgamename*/
|
|
3959
3929
|
e[11]
|
|
3960
|
-
),
|
|
3930
|
+
), g(
|
|
3961
3931
|
t,
|
|
3962
3932
|
"clientstyling",
|
|
3963
3933
|
/*clientstyling*/
|
|
3964
3934
|
e[6]
|
|
3965
|
-
),
|
|
3935
|
+
), g(
|
|
3966
3936
|
t,
|
|
3967
3937
|
"clientstylingurl",
|
|
3968
3938
|
/*clientstylingurl*/
|
|
3969
3939
|
e[7]
|
|
3970
|
-
),
|
|
3940
|
+
), g(
|
|
3971
3941
|
t,
|
|
3972
3942
|
"livecasino",
|
|
3973
3943
|
/*livecasino*/
|
|
3974
3944
|
e[8]
|
|
3975
|
-
),
|
|
3945
|
+
), g(
|
|
3976
3946
|
t,
|
|
3977
3947
|
"visiblegames",
|
|
3978
3948
|
/*visiblegames*/
|
|
3979
3949
|
e[13]
|
|
3980
|
-
),
|
|
3950
|
+
), g(
|
|
3981
3951
|
t,
|
|
3982
3952
|
"gamepagemodalurl",
|
|
3983
3953
|
/*gamepagemodalurl*/
|
|
3984
3954
|
e[12]
|
|
3985
|
-
),
|
|
3955
|
+
), g(
|
|
3986
3956
|
t,
|
|
3987
3957
|
"integratedgameframedesktop",
|
|
3988
3958
|
/*integratedgameframedesktop*/
|
|
3989
3959
|
e[10]
|
|
3990
|
-
),
|
|
3960
|
+
), g(
|
|
3991
3961
|
t,
|
|
3992
3962
|
"integratedgameframemobile",
|
|
3993
3963
|
/*integratedgameframemobile*/
|
|
3994
3964
|
e[9]
|
|
3995
|
-
),
|
|
3965
|
+
), g(
|
|
3996
3966
|
t,
|
|
3997
3967
|
"casinomygames",
|
|
3998
3968
|
/*casinomygames*/
|
|
3999
3969
|
e[15]
|
|
4000
3970
|
);
|
|
4001
3971
|
},
|
|
4002
|
-
m(
|
|
4003
|
-
|
|
3972
|
+
m(r, n) {
|
|
3973
|
+
ce(r, t, n);
|
|
4004
3974
|
},
|
|
4005
|
-
p(
|
|
4006
|
-
|
|
4007
|
-
16 &&
|
|
3975
|
+
p(r, n) {
|
|
3976
|
+
n & /*session*/
|
|
3977
|
+
16 && g(
|
|
4008
3978
|
t,
|
|
4009
3979
|
"session",
|
|
4010
3980
|
/*session*/
|
|
4011
|
-
|
|
4012
|
-
),
|
|
4013
|
-
32 &&
|
|
3981
|
+
r[4]
|
|
3982
|
+
), n & /*userid*/
|
|
3983
|
+
32 && g(
|
|
4014
3984
|
t,
|
|
4015
3985
|
"userid",
|
|
4016
3986
|
/*userid*/
|
|
4017
|
-
|
|
4018
|
-
),
|
|
4019
|
-
1 &&
|
|
3987
|
+
r[5]
|
|
3988
|
+
), n & /*endpoint*/
|
|
3989
|
+
1 && g(
|
|
4020
3990
|
t,
|
|
4021
3991
|
"endpoint",
|
|
4022
3992
|
/*endpoint*/
|
|
4023
|
-
|
|
4024
|
-
),
|
|
4025
|
-
2 &&
|
|
3993
|
+
r[0]
|
|
3994
|
+
), n & /*datasource*/
|
|
3995
|
+
2 && g(
|
|
4026
3996
|
t,
|
|
4027
3997
|
"datasource",
|
|
4028
3998
|
/*datasource*/
|
|
4029
|
-
|
|
4030
|
-
),
|
|
4031
|
-
8 &&
|
|
3999
|
+
r[1]
|
|
4000
|
+
), n & /*lang*/
|
|
4001
|
+
8 && g(
|
|
4032
4002
|
t,
|
|
4033
4003
|
"lang",
|
|
4034
4004
|
/*lang*/
|
|
4035
|
-
|
|
4036
|
-
),
|
|
4037
|
-
4 &&
|
|
4005
|
+
r[3]
|
|
4006
|
+
), n & /*currency*/
|
|
4007
|
+
4 && g(
|
|
4038
4008
|
t,
|
|
4039
4009
|
"currency",
|
|
4040
4010
|
/*currency*/
|
|
4041
|
-
|
|
4042
|
-
),
|
|
4043
|
-
16384 &&
|
|
4011
|
+
r[2]
|
|
4012
|
+
), n & /*favorites*/
|
|
4013
|
+
16384 && g(
|
|
4044
4014
|
t,
|
|
4045
4015
|
"favorites",
|
|
4046
4016
|
/*favorites*/
|
|
4047
|
-
|
|
4048
|
-
),
|
|
4049
|
-
65536 &&
|
|
4017
|
+
r[14]
|
|
4018
|
+
), n & /*fetchviaevent*/
|
|
4019
|
+
65536 && g(
|
|
4050
4020
|
t,
|
|
4051
4021
|
"fetchviaevent",
|
|
4052
4022
|
/*fetchviaevent*/
|
|
4053
|
-
|
|
4054
|
-
),
|
|
4055
|
-
131072 &&
|
|
4023
|
+
r[16]
|
|
4024
|
+
), n & /*mbsource*/
|
|
4025
|
+
131072 && g(
|
|
4056
4026
|
t,
|
|
4057
4027
|
"mbsource",
|
|
4058
4028
|
/*mbsource*/
|
|
4059
|
-
|
|
4060
|
-
),
|
|
4061
|
-
2048 &&
|
|
4029
|
+
r[17]
|
|
4030
|
+
), n & /*showgamename*/
|
|
4031
|
+
2048 && g(
|
|
4062
4032
|
t,
|
|
4063
4033
|
"showgamename",
|
|
4064
4034
|
/*showgamename*/
|
|
4065
|
-
|
|
4066
|
-
),
|
|
4067
|
-
64 &&
|
|
4035
|
+
r[11]
|
|
4036
|
+
), n & /*clientstyling*/
|
|
4037
|
+
64 && g(
|
|
4068
4038
|
t,
|
|
4069
4039
|
"clientstyling",
|
|
4070
4040
|
/*clientstyling*/
|
|
4071
|
-
|
|
4072
|
-
),
|
|
4073
|
-
128 &&
|
|
4041
|
+
r[6]
|
|
4042
|
+
), n & /*clientstylingurl*/
|
|
4043
|
+
128 && g(
|
|
4074
4044
|
t,
|
|
4075
4045
|
"clientstylingurl",
|
|
4076
4046
|
/*clientstylingurl*/
|
|
4077
|
-
|
|
4078
|
-
),
|
|
4079
|
-
256 &&
|
|
4047
|
+
r[7]
|
|
4048
|
+
), n & /*livecasino*/
|
|
4049
|
+
256 && g(
|
|
4080
4050
|
t,
|
|
4081
4051
|
"livecasino",
|
|
4082
4052
|
/*livecasino*/
|
|
4083
|
-
|
|
4084
|
-
),
|
|
4085
|
-
8192 &&
|
|
4053
|
+
r[8]
|
|
4054
|
+
), n & /*visiblegames*/
|
|
4055
|
+
8192 && g(
|
|
4086
4056
|
t,
|
|
4087
4057
|
"visiblegames",
|
|
4088
4058
|
/*visiblegames*/
|
|
4089
|
-
|
|
4090
|
-
),
|
|
4091
|
-
4096 &&
|
|
4059
|
+
r[13]
|
|
4060
|
+
), n & /*gamepagemodalurl*/
|
|
4061
|
+
4096 && g(
|
|
4092
4062
|
t,
|
|
4093
4063
|
"gamepagemodalurl",
|
|
4094
4064
|
/*gamepagemodalurl*/
|
|
4095
|
-
|
|
4096
|
-
),
|
|
4097
|
-
1024 &&
|
|
4065
|
+
r[12]
|
|
4066
|
+
), n & /*integratedgameframedesktop*/
|
|
4067
|
+
1024 && g(
|
|
4098
4068
|
t,
|
|
4099
4069
|
"integratedgameframedesktop",
|
|
4100
4070
|
/*integratedgameframedesktop*/
|
|
4101
|
-
|
|
4102
|
-
),
|
|
4103
|
-
512 &&
|
|
4071
|
+
r[10]
|
|
4072
|
+
), n & /*integratedgameframemobile*/
|
|
4073
|
+
512 && g(
|
|
4104
4074
|
t,
|
|
4105
4075
|
"integratedgameframemobile",
|
|
4106
4076
|
/*integratedgameframemobile*/
|
|
4107
|
-
|
|
4108
|
-
),
|
|
4109
|
-
32768 &&
|
|
4077
|
+
r[9]
|
|
4078
|
+
), n & /*casinomygames*/
|
|
4079
|
+
32768 && g(
|
|
4110
4080
|
t,
|
|
4111
4081
|
"casinomygames",
|
|
4112
4082
|
/*casinomygames*/
|
|
4113
|
-
|
|
4083
|
+
r[15]
|
|
4114
4084
|
);
|
|
4115
4085
|
},
|
|
4116
|
-
d(
|
|
4117
|
-
|
|
4086
|
+
d(r) {
|
|
4087
|
+
r && te(t);
|
|
4118
4088
|
}
|
|
4119
4089
|
};
|
|
4120
4090
|
}
|
|
4121
|
-
function
|
|
4122
|
-
let t,
|
|
4091
|
+
function Zn(e) {
|
|
4092
|
+
let t, r = (
|
|
4123
4093
|
/*session*/
|
|
4124
|
-
e[4] &&
|
|
4094
|
+
e[4] && rt(e)
|
|
4125
4095
|
);
|
|
4126
4096
|
return {
|
|
4127
4097
|
c() {
|
|
4128
|
-
t =
|
|
4098
|
+
t = re("div"), r && r.c(), Ue(t, "class", "CasinoFavoritesSectionContainer");
|
|
4129
4099
|
},
|
|
4130
|
-
m(
|
|
4131
|
-
|
|
4100
|
+
m(n, i) {
|
|
4101
|
+
ce(n, t, i), r && r.m(t, null), e[19](t);
|
|
4132
4102
|
},
|
|
4133
|
-
p(
|
|
4103
|
+
p(n, [i]) {
|
|
4134
4104
|
/*session*/
|
|
4135
|
-
|
|
4105
|
+
n[4] ? r ? r.p(n, i) : (r = rt(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4136
4106
|
},
|
|
4137
4107
|
i: N,
|
|
4138
4108
|
o: N,
|
|
4139
|
-
d(
|
|
4140
|
-
|
|
4109
|
+
d(n) {
|
|
4110
|
+
n && te(t), r && r.d(), e[19](null);
|
|
4141
4111
|
}
|
|
4142
4112
|
};
|
|
4143
4113
|
}
|
|
4144
|
-
function
|
|
4145
|
-
let { endpoint:
|
|
4146
|
-
|
|
4114
|
+
function Qn(e, t, r) {
|
|
4115
|
+
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { currency: s = "" } = t, { lang: u = "" } = t, { session: a = "" } = t, { userid: l = "" } = t, { clientstyling: o = "" } = t, { clientstylingurl: h = "" } = t, { livecasino: m = "false" } = t, { integratedgameframemobile: f = "false" } = t, { integratedgameframedesktop: b = "false" } = t, { showgamename: y = "" } = t, { gamepagemodalurl: _ = "false" } = t, { visiblegames: T = "" } = t, { favorites: w = "" } = t, { casinomygames: A = "false" } = t, { fetchviaevent: S = "true" } = t, { mbsource: P } = t, x;
|
|
4116
|
+
kn({ withLocale: "en", translations: {} }), kt(() => () => {
|
|
4147
4117
|
});
|
|
4148
4118
|
function O(c) {
|
|
4149
|
-
|
|
4150
|
-
|
|
4119
|
+
Se[c ? "unshift" : "push"](() => {
|
|
4120
|
+
x = c, r(18, x);
|
|
4151
4121
|
});
|
|
4152
4122
|
}
|
|
4153
4123
|
return e.$$set = (c) => {
|
|
4154
|
-
"endpoint" in c &&
|
|
4124
|
+
"endpoint" in c && r(0, n = c.endpoint), "datasource" in c && r(1, i = c.datasource), "currency" in c && r(2, s = c.currency), "lang" in c && r(3, u = c.lang), "session" in c && r(4, a = c.session), "userid" in c && r(5, l = c.userid), "clientstyling" in c && r(6, o = c.clientstyling), "clientstylingurl" in c && r(7, h = c.clientstylingurl), "livecasino" in c && r(8, m = c.livecasino), "integratedgameframemobile" in c && r(9, f = c.integratedgameframemobile), "integratedgameframedesktop" in c && r(10, b = c.integratedgameframedesktop), "showgamename" in c && r(11, y = c.showgamename), "gamepagemodalurl" in c && r(12, _ = c.gamepagemodalurl), "visiblegames" in c && r(13, T = c.visiblegames), "favorites" in c && r(14, w = c.favorites), "casinomygames" in c && r(15, A = c.casinomygames), "fetchviaevent" in c && r(16, S = c.fetchviaevent), "mbsource" in c && r(17, P = c.mbsource);
|
|
4155
4125
|
}, e.$$.update = () => {
|
|
4156
4126
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4157
|
-
262208 &&
|
|
4158
|
-
262272 && h &&
|
|
4159
|
-
393216 &&
|
|
4127
|
+
262208 && o && x && Vn(x, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4128
|
+
262272 && h && x && Xn(x, h), e.$$.dirty & /*customStylingContainer, mbsource*/
|
|
4129
|
+
393216 && x && Wn(x, `${P}.Style`);
|
|
4160
4130
|
}, [
|
|
4161
|
-
|
|
4131
|
+
n,
|
|
4162
4132
|
i,
|
|
4163
4133
|
s,
|
|
4134
|
+
u,
|
|
4164
4135
|
a,
|
|
4165
|
-
o,
|
|
4166
4136
|
l,
|
|
4167
|
-
|
|
4137
|
+
o,
|
|
4168
4138
|
h,
|
|
4169
4139
|
m,
|
|
4170
4140
|
f,
|
|
4171
4141
|
b,
|
|
4172
4142
|
y,
|
|
4173
|
-
|
|
4143
|
+
_,
|
|
4174
4144
|
T,
|
|
4175
4145
|
w,
|
|
4176
4146
|
A,
|
|
4177
4147
|
S,
|
|
4178
4148
|
P,
|
|
4179
|
-
|
|
4149
|
+
x,
|
|
4180
4150
|
O
|
|
4181
4151
|
];
|
|
4182
4152
|
}
|
|
4183
|
-
class
|
|
4153
|
+
class qn extends Yt {
|
|
4184
4154
|
constructor(t) {
|
|
4185
|
-
super(),
|
|
4155
|
+
super(), qt(
|
|
4186
4156
|
this,
|
|
4187
4157
|
t,
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4158
|
+
Qn,
|
|
4159
|
+
Zn,
|
|
4160
|
+
it,
|
|
4191
4161
|
{
|
|
4192
4162
|
endpoint: 0,
|
|
4193
4163
|
datasource: 1,
|
|
@@ -4208,7 +4178,7 @@ class Qr extends Jt {
|
|
|
4208
4178
|
fetchviaevent: 16,
|
|
4209
4179
|
mbsource: 17
|
|
4210
4180
|
},
|
|
4211
|
-
|
|
4181
|
+
zn
|
|
4212
4182
|
);
|
|
4213
4183
|
}
|
|
4214
4184
|
get endpoint() {
|
|
@@ -4320,51 +4290,47 @@ class Qr extends Jt {
|
|
|
4320
4290
|
this.$$set({ mbsource: t }), H();
|
|
4321
4291
|
}
|
|
4322
4292
|
}
|
|
4323
|
-
|
|
4293
|
+
Jt(qn, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, showgamename: {}, gamepagemodalurl: {}, visiblegames: {}, favorites: {}, casinomygames: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
|
|
4324
4294
|
export {
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
ci as b,
|
|
4346
|
-
ce as c,
|
|
4347
|
-
W as d,
|
|
4348
|
-
dr as e,
|
|
4295
|
+
R as $,
|
|
4296
|
+
Xn as A,
|
|
4297
|
+
Wn as B,
|
|
4298
|
+
Jt as C,
|
|
4299
|
+
ci as D,
|
|
4300
|
+
g as E,
|
|
4301
|
+
si as F,
|
|
4302
|
+
ti as G,
|
|
4303
|
+
oi as H,
|
|
4304
|
+
ui as I,
|
|
4305
|
+
ai as J,
|
|
4306
|
+
fi as K,
|
|
4307
|
+
li as L,
|
|
4308
|
+
qn as M,
|
|
4309
|
+
Yt as S,
|
|
4310
|
+
Z as a,
|
|
4311
|
+
dn as b,
|
|
4312
|
+
$t as c,
|
|
4313
|
+
te as d,
|
|
4314
|
+
ce as e,
|
|
4349
4315
|
H as f,
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4316
|
+
re as g,
|
|
4317
|
+
Yn as h,
|
|
4318
|
+
qt as i,
|
|
4319
|
+
Se as j,
|
|
4320
|
+
ni as k,
|
|
4321
|
+
Rt as l,
|
|
4322
|
+
Ue as m,
|
|
4357
4323
|
N as n,
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4324
|
+
kt as o,
|
|
4325
|
+
hi as p,
|
|
4326
|
+
Kn as q,
|
|
4327
|
+
W as r,
|
|
4328
|
+
it as s,
|
|
4329
|
+
ot as t,
|
|
4330
|
+
ri as u,
|
|
4331
|
+
Gt as v,
|
|
4332
|
+
ei as w,
|
|
4333
|
+
ii as x,
|
|
4334
|
+
Jn as y,
|
|
4335
|
+
Vn as z
|
|
4370
4336
|
};
|