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