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