@everymatrix/casino-favorites-section 1.87.26 → 1.87.28
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-BfSDbfM0.cjs +3 -0
- package/components/{CasinoFavoritesSection-DDuAvc6Y.js → CasinoFavoritesSection-FlsVsLHY.js} +782 -753
- package/components/{CasinoFavoritesSection-C0BiG4De.js → CasinoFavoritesSection-Oi0rnafn.js} +759 -731
- package/components/CasinoFilter-CNcc2lJ8.cjs +1 -0
- package/components/CasinoFilter-CXp-Zshd.js +646 -0
- package/components/CasinoFilter-y5CBknUO.js +645 -0
- package/components/CasinoGameThumbnail-BtOAqqqJ.js +1831 -0
- package/components/CasinoGameThumbnail-DdB_aj8u.js +1847 -0
- package/components/CasinoGameThumbnail-y56OMaMA.cjs +38 -0
- package/components/CasinoGamesCategorySection-CE77UqlZ.js +6248 -0
- package/components/CasinoGamesCategorySection-D0-klIqM.cjs +25 -0
- package/components/CasinoGamesCategorySection-DTAqR94W.js +6280 -0
- package/components/{CasinoSort-BZv2SPft.js → CasinoSort-CEX4SToK.js} +112 -111
- package/components/{CasinoSort-CZx3iOfc.cjs → CasinoSort-QMe_DOcp.cjs} +1 -1
- package/components/{CasinoSort-DSRa4P-s.js → CasinoSort-gGAp-WFB.js} +100 -101
- 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/components/CasinoFavoritesSection-nIdSraW4.cjs +0 -3
- package/components/CasinoFilter-ByAU_0b7.js +0 -1185
- package/components/CasinoFilter-D8gwSSCO.js +0 -1184
- package/components/CasinoFilter-DvfBwDnB.cjs +0 -16
- package/components/CasinoGameThumbnail-3lArHpJI.js +0 -4376
- package/components/CasinoGameThumbnail-8WwPBAK9.cjs +0 -47
- package/components/CasinoGameThumbnail-BtpCjxYS.js +0 -4360
- package/components/CasinoGamesCategorySection-Cjoeiofx.cjs +0 -1
- package/components/CasinoGamesCategorySection-Db11EW4j.js +0 -3186
- package/components/CasinoGamesCategorySection-MWgg6AM2.js +0 -3218
package/components/{CasinoFavoritesSection-DDuAvc6Y.js → CasinoFavoritesSection-FlsVsLHY.js}
RENAMED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var kt = Object.defineProperty, Vt = Object.defineProperties;
|
|
2
|
+
var Xt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ve = Object.getOwnPropertySymbols;
|
|
4
|
+
var Wt = Object.prototype.hasOwnProperty, zt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ve = (e, t, r) => t in e ? kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xe = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
zt.call(t, r) &&
|
|
7
|
+
Wt.call(t, r) && ve(e, r, t[r]);
|
|
8
|
+
if (Ve)
|
|
9
|
+
for (var r of Ve(t))
|
|
10
|
+
zt.call(t, r) && ve(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, We = (e, t) => Vt(e, Xt(t));
|
|
13
|
+
var T = (e, t, r) => (ve(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var ze = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
17
|
+
a(r.next(l));
|
|
18
|
+
} catch (u) {
|
|
19
|
+
i(u);
|
|
20
20
|
}
|
|
21
21
|
}, o = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
23
|
+
a(r.throw(l));
|
|
24
|
+
} catch (u) {
|
|
25
|
+
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, o);
|
|
28
|
+
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function L() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function lt(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(lt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ge(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ft(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
47
|
+
let oe;
|
|
48
|
+
function ci(e, t) {
|
|
49
|
+
return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Zt(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function ct(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,20 +60,20 @@ function ft(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function mi(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(ct(t, r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Qt(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function qt(e, t, r) {
|
|
70
|
+
const n = Jt(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
|
-
const i =
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
72
|
+
const i = ie("style");
|
|
73
|
+
i.id = t, i.textContent = r, Yt(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Jt(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,76 +83,76 @@ function qt(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function Yt(e, t) {
|
|
87
|
+
return Qt(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
90
90
|
t
|
|
91
91
|
), t.sheet;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function ge(e, t, r) {
|
|
94
94
|
e.insertBefore(t, r || null);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function ne(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function gi(e, t) {
|
|
100
100
|
for (let r = 0; r < e.length; r += 1)
|
|
101
101
|
e[r] && e[r].d(t);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function ie(e) {
|
|
104
104
|
return document.createElement(e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Kt(e) {
|
|
107
107
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function mt(e) {
|
|
110
110
|
return document.createTextNode(e);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
112
|
+
function di() {
|
|
113
|
+
return mt(" ");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
return
|
|
115
|
+
function bi() {
|
|
116
|
+
return mt("");
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function pi(e, t, r, n) {
|
|
119
119
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Fe(e, t, r) {
|
|
122
122
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
123
123
|
}
|
|
124
124
|
function g(e, t, r) {
|
|
125
125
|
const n = t.toLowerCase();
|
|
126
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
126
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : Fe(e, t, r);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function er(e) {
|
|
129
129
|
return Array.from(e.childNodes);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function yi(e, t) {
|
|
132
132
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
133
133
|
t);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Ei(e, t) {
|
|
136
136
|
e.value = t == null ? "" : t;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function vi(e, t, r) {
|
|
139
139
|
e.classList.toggle(t, !!r);
|
|
140
140
|
}
|
|
141
|
-
class
|
|
141
|
+
class _i {
|
|
142
142
|
constructor(t = !1) {
|
|
143
143
|
/**
|
|
144
144
|
* @private
|
|
145
145
|
* @default false
|
|
146
146
|
*/
|
|
147
|
-
|
|
147
|
+
T(this, "is_svg", !1);
|
|
148
148
|
/** parent for creating node */
|
|
149
|
-
|
|
149
|
+
T(this, "e");
|
|
150
150
|
/** html tag nodes */
|
|
151
|
-
|
|
151
|
+
T(this, "n");
|
|
152
152
|
/** target */
|
|
153
|
-
|
|
153
|
+
T(this, "t");
|
|
154
154
|
/** anchor */
|
|
155
|
-
|
|
155
|
+
T(this, "a");
|
|
156
156
|
this.is_svg = t, this.e = this.n = null;
|
|
157
157
|
}
|
|
158
158
|
/**
|
|
@@ -169,10 +169,10 @@ class yi {
|
|
|
169
169
|
* @returns {void}
|
|
170
170
|
*/
|
|
171
171
|
m(t, r, n = null) {
|
|
172
|
-
this.e || (this.is_svg ? this.e =
|
|
172
|
+
this.e || (this.is_svg ? this.e = Kt(
|
|
173
173
|
/** @type {keyof SVGElementTagNameMap} */
|
|
174
174
|
r.nodeName
|
|
175
|
-
) : this.e =
|
|
175
|
+
) : this.e = ie(
|
|
176
176
|
/** @type {keyof HTMLElementTagNameMap} */
|
|
177
177
|
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
|
178
178
|
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
|
@@ -193,7 +193,7 @@ class yi {
|
|
|
193
193
|
* @returns {void} */
|
|
194
194
|
i(t) {
|
|
195
195
|
for (let r = 0; r < this.n.length; r += 1)
|
|
196
|
-
|
|
196
|
+
ge(this.t, this.n[r], t);
|
|
197
197
|
}
|
|
198
198
|
/**
|
|
199
199
|
* @param {string} html
|
|
@@ -205,10 +205,10 @@ class yi {
|
|
|
205
205
|
/**
|
|
206
206
|
* @returns {void} */
|
|
207
207
|
d() {
|
|
208
|
-
this.n.forEach(
|
|
208
|
+
this.n.forEach(ne);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function tr(e) {
|
|
212
212
|
const t = {};
|
|
213
213
|
return e.childNodes.forEach(
|
|
214
214
|
/** @param {Element} node */
|
|
@@ -217,134 +217,134 @@ function er(e) {
|
|
|
217
217
|
}
|
|
218
218
|
), t;
|
|
219
219
|
}
|
|
220
|
-
let
|
|
221
|
-
function
|
|
222
|
-
|
|
220
|
+
let ee;
|
|
221
|
+
function K(e) {
|
|
222
|
+
ee = e;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
if (!
|
|
224
|
+
function gt() {
|
|
225
|
+
if (!ee)
|
|
226
226
|
throw new Error("Function called outside component initialization");
|
|
227
|
-
return
|
|
227
|
+
return ee;
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
|
|
229
|
+
function rr(e) {
|
|
230
|
+
gt().$$.on_mount.push(e);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
|
|
232
|
+
function xi(e) {
|
|
233
|
+
gt().$$.on_destroy.push(e);
|
|
234
234
|
}
|
|
235
|
-
const F = [],
|
|
236
|
-
let
|
|
237
|
-
const
|
|
238
|
-
let
|
|
239
|
-
function
|
|
240
|
-
|
|
235
|
+
const F = [], we = [];
|
|
236
|
+
let k = [];
|
|
237
|
+
const Qe = [], dt = /* @__PURE__ */ Promise.resolve();
|
|
238
|
+
let Pe = !1;
|
|
239
|
+
function bt() {
|
|
240
|
+
Pe || (Pe = !0, dt.then(H));
|
|
241
241
|
}
|
|
242
|
-
function
|
|
243
|
-
return
|
|
242
|
+
function Hi() {
|
|
243
|
+
return bt(), dt;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
246
|
-
|
|
245
|
+
function Oe(e) {
|
|
246
|
+
k.push(e);
|
|
247
247
|
}
|
|
248
|
-
const
|
|
248
|
+
const _e = /* @__PURE__ */ new Set();
|
|
249
249
|
let D = 0;
|
|
250
250
|
function H() {
|
|
251
251
|
if (D !== 0)
|
|
252
252
|
return;
|
|
253
|
-
const e =
|
|
253
|
+
const e = ee;
|
|
254
254
|
do {
|
|
255
255
|
try {
|
|
256
256
|
for (; D < F.length; ) {
|
|
257
257
|
const t = F[D];
|
|
258
|
-
D++,
|
|
258
|
+
D++, K(t), nr(t.$$);
|
|
259
259
|
}
|
|
260
260
|
} catch (t) {
|
|
261
261
|
throw F.length = 0, D = 0, t;
|
|
262
262
|
}
|
|
263
|
-
for (
|
|
264
|
-
|
|
265
|
-
for (let t = 0; t <
|
|
266
|
-
const r =
|
|
267
|
-
|
|
263
|
+
for (K(null), F.length = 0, D = 0; we.length; )
|
|
264
|
+
we.pop()();
|
|
265
|
+
for (let t = 0; t < k.length; t += 1) {
|
|
266
|
+
const r = k[t];
|
|
267
|
+
_e.has(r) || (_e.add(r), r());
|
|
268
268
|
}
|
|
269
|
-
|
|
269
|
+
k.length = 0;
|
|
270
270
|
} while (F.length);
|
|
271
|
-
for (;
|
|
272
|
-
|
|
273
|
-
|
|
271
|
+
for (; Qe.length; )
|
|
272
|
+
Qe.pop()();
|
|
273
|
+
Pe = !1, _e.clear(), K(e);
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function nr(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(Oe);
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function ir(e) {
|
|
283
283
|
const t = [], r = [];
|
|
284
|
-
|
|
284
|
+
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
285
285
|
}
|
|
286
|
-
const
|
|
287
|
-
function
|
|
288
|
-
e && e.i && (
|
|
286
|
+
const sr = /* @__PURE__ */ new Set();
|
|
287
|
+
function pt(e, t) {
|
|
288
|
+
e && e.i && (sr.delete(e), e.i(t));
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Si(e) {
|
|
291
291
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function Ti(e, t) {
|
|
294
294
|
e.d(1), t.delete(e.key);
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function Ai(e, t, r, n, i, s, o, a, l, u, h, c) {
|
|
297
297
|
let f = e.length, b = s.length, y = f;
|
|
298
298
|
const x = {};
|
|
299
299
|
for (; y--; )
|
|
300
300
|
x[e[y].key] = y;
|
|
301
|
-
const S = [],
|
|
301
|
+
const S = [], O = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), A = [];
|
|
302
302
|
for (y = b; y--; ) {
|
|
303
|
-
const
|
|
304
|
-
let
|
|
305
|
-
|
|
303
|
+
const E = c(i, s, y), N = r(E);
|
|
304
|
+
let m = o.get(N);
|
|
305
|
+
m ? A.push(() => m.p(E, t)) : (m = u(N, E), m.c()), O.set(N, S[y] = m), N in x && P.set(N, Math.abs(y - x[N]));
|
|
306
306
|
}
|
|
307
|
-
const I = /* @__PURE__ */ new Set(),
|
|
308
|
-
function
|
|
309
|
-
|
|
307
|
+
const I = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new Set();
|
|
308
|
+
function C(E) {
|
|
309
|
+
pt(E, 1), E.m(a, h), o.set(E.key, E), h = E.first, b--;
|
|
310
310
|
}
|
|
311
311
|
for (; f && b; ) {
|
|
312
|
-
const
|
|
313
|
-
|
|
312
|
+
const E = S[b - 1], N = e[f - 1], m = E.key, se = N.key;
|
|
313
|
+
E === N ? (h = E.first, f--, b--) : O.has(se) ? !o.has(m) || I.has(m) ? C(E) : w.has(se) ? f-- : P.get(m) > P.get(se) ? (w.add(m), C(E)) : (I.add(se), f--) : (l(N, o), f--);
|
|
314
314
|
}
|
|
315
315
|
for (; f--; ) {
|
|
316
|
-
const
|
|
317
|
-
|
|
316
|
+
const E = e[f];
|
|
317
|
+
O.has(E.key) || l(E, o);
|
|
318
318
|
}
|
|
319
319
|
for (; b; )
|
|
320
|
-
|
|
321
|
-
return
|
|
320
|
+
C(S[b - 1]);
|
|
321
|
+
return Z(A), S;
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function or(e, t, r) {
|
|
324
324
|
const { fragment: n, after_update: i } = e.$$;
|
|
325
|
-
n && n.m(t, r),
|
|
326
|
-
const s = e.$$.on_mount.map(
|
|
327
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
328
|
-
}), i.forEach(
|
|
325
|
+
n && n.m(t, r), Oe(() => {
|
|
326
|
+
const s = e.$$.on_mount.map(lt).filter(Ge);
|
|
327
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Z(s), e.$$.on_mount = [];
|
|
328
|
+
}), i.forEach(Oe);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function ar(e, t) {
|
|
331
331
|
const r = e.$$;
|
|
332
|
-
r.fragment !== null && (
|
|
332
|
+
r.fragment !== null && (ir(r.after_update), Z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
335
|
-
e.$$.dirty[0] === -1 && (F.push(e),
|
|
334
|
+
function ur(e, t) {
|
|
335
|
+
e.$$.dirty[0] === -1 && (F.push(e), bt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
338
|
-
const l =
|
|
339
|
-
|
|
340
|
-
const
|
|
337
|
+
function hr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
338
|
+
const l = ee;
|
|
339
|
+
K(e);
|
|
340
|
+
const u = e.$$ = {
|
|
341
341
|
fragment: null,
|
|
342
342
|
ctx: [],
|
|
343
343
|
// state
|
|
344
344
|
props: s,
|
|
345
345
|
update: L,
|
|
346
346
|
not_equal: i,
|
|
347
|
-
bound:
|
|
347
|
+
bound: Ze(),
|
|
348
348
|
// lifecycle
|
|
349
349
|
on_mount: [],
|
|
350
350
|
on_destroy: [],
|
|
@@ -353,48 +353,48 @@ 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:
|
|
357
|
-
dirty:
|
|
356
|
+
callbacks: Ze(),
|
|
357
|
+
dirty: a,
|
|
358
358
|
skip_bound: !1,
|
|
359
359
|
root: t.target || l.$$.root
|
|
360
360
|
};
|
|
361
|
-
o && o(
|
|
361
|
+
o && o(u.root);
|
|
362
362
|
let h = !1;
|
|
363
|
-
if (
|
|
363
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...b) => {
|
|
364
364
|
const y = b.length ? b[0] : f;
|
|
365
|
-
return
|
|
366
|
-
}) : [],
|
|
365
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h && ur(e, c)), f;
|
|
366
|
+
}) : [], u.update(), h = !0, Z(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
367
367
|
if (t.hydrate) {
|
|
368
|
-
const c =
|
|
369
|
-
|
|
368
|
+
const c = er(t.target);
|
|
369
|
+
u.fragment && u.fragment.l(c), c.forEach(ne);
|
|
370
370
|
} else
|
|
371
|
-
|
|
372
|
-
t.intro &&
|
|
371
|
+
u.fragment && u.fragment.c();
|
|
372
|
+
t.intro && pt(e.$$.fragment), or(e, t.target, t.anchor), H();
|
|
373
373
|
}
|
|
374
|
-
|
|
374
|
+
K(l);
|
|
375
375
|
}
|
|
376
|
-
let
|
|
377
|
-
typeof HTMLElement == "function" && (
|
|
376
|
+
let yt;
|
|
377
|
+
typeof HTMLElement == "function" && (yt = class extends HTMLElement {
|
|
378
378
|
constructor(t, r, n) {
|
|
379
379
|
super();
|
|
380
380
|
/** The Svelte component constructor */
|
|
381
|
-
|
|
381
|
+
T(this, "$$ctor");
|
|
382
382
|
/** Slots */
|
|
383
|
-
|
|
383
|
+
T(this, "$$s");
|
|
384
384
|
/** The Svelte component instance */
|
|
385
|
-
|
|
385
|
+
T(this, "$$c");
|
|
386
386
|
/** Whether or not the custom element is connected */
|
|
387
|
-
|
|
387
|
+
T(this, "$$cn", !1);
|
|
388
388
|
/** Component props data */
|
|
389
|
-
|
|
389
|
+
T(this, "$$d", {});
|
|
390
390
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
391
|
-
|
|
391
|
+
T(this, "$$r", !1);
|
|
392
392
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
393
|
-
|
|
393
|
+
T(this, "$$p_d", {});
|
|
394
394
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
395
|
-
|
|
395
|
+
T(this, "$$l", {});
|
|
396
396
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
397
|
-
|
|
397
|
+
T(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
398
398
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
399
399
|
}
|
|
400
400
|
addEventListener(t, r, n) {
|
|
@@ -418,35 +418,35 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
|
|
|
418
418
|
let o;
|
|
419
419
|
return {
|
|
420
420
|
c: function() {
|
|
421
|
-
o =
|
|
421
|
+
o = ie("slot"), s !== "default" && Fe(o, "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(u, h) {
|
|
428
|
+
ge(u, o, h);
|
|
429
429
|
},
|
|
430
|
-
d: function(
|
|
431
|
-
|
|
430
|
+
d: function(u) {
|
|
431
|
+
u && ne(o);
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
434
|
};
|
|
435
435
|
};
|
|
436
436
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
437
437
|
return;
|
|
438
|
-
const r = {}, n =
|
|
438
|
+
const r = {}, n = tr(this);
|
|
439
439
|
for (const s of this.$$s)
|
|
440
440
|
s in n && (r[s] = [t(s)]);
|
|
441
441
|
for (const s of this.attributes) {
|
|
442
442
|
const o = this.$$g_p(s.name);
|
|
443
|
-
o in this.$$d || (this.$$d[o] =
|
|
443
|
+
o in this.$$d || (this.$$d[o] = ue(o, 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: Xe(
|
|
449
|
+
props: We(Xe({}, this.$$d), {
|
|
450
450
|
$$slots: r,
|
|
451
451
|
$$scope: {
|
|
452
452
|
ctx: []
|
|
@@ -457,7 +457,7 @@ 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 o =
|
|
460
|
+
const o = ue(
|
|
461
461
|
s,
|
|
462
462
|
this.$$d[s],
|
|
463
463
|
this.$$p_d,
|
|
@@ -470,8 +470,8 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
|
|
|
470
470
|
this.$$c.$$.after_update.push(i), i();
|
|
471
471
|
for (const s in this.$$l)
|
|
472
472
|
for (const o of this.$$l[s]) {
|
|
473
|
-
const
|
|
474
|
-
this.$$l_u.set(o,
|
|
473
|
+
const a = this.$$c.$on(s, o);
|
|
474
|
+
this.$$l_u.set(o, a);
|
|
475
475
|
}
|
|
476
476
|
this.$$l = {};
|
|
477
477
|
}
|
|
@@ -481,7 +481,7 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
|
|
|
481
481
|
// and setting attributes through setAttribute etc, this is helpful
|
|
482
482
|
attributeChangedCallback(t, r, n) {
|
|
483
483
|
var i;
|
|
484
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
484
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ue(t, n, 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(() => {
|
|
@@ -494,7 +494,7 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
|
|
|
494
494
|
) || t;
|
|
495
495
|
}
|
|
496
496
|
});
|
|
497
|
-
function
|
|
497
|
+
function ue(e, t, r, n) {
|
|
498
498
|
var s;
|
|
499
499
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
500
500
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -524,38 +524,38 @@ function ae(e, t, r, n) {
|
|
|
524
524
|
return t;
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
let o = class extends
|
|
527
|
+
function lr(e, t, r, n, i, s) {
|
|
528
|
+
let o = class extends yt {
|
|
529
529
|
constructor() {
|
|
530
530
|
super(e, r, i), this.$$p_d = t;
|
|
531
531
|
}
|
|
532
532
|
static get observedAttributes() {
|
|
533
533
|
return Object.keys(t).map(
|
|
534
|
-
(
|
|
534
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
535
535
|
);
|
|
536
536
|
}
|
|
537
537
|
};
|
|
538
|
-
return Object.keys(t).forEach((
|
|
539
|
-
Object.defineProperty(o.prototype,
|
|
538
|
+
return Object.keys(t).forEach((a) => {
|
|
539
|
+
Object.defineProperty(o.prototype, a, {
|
|
540
540
|
get() {
|
|
541
|
-
return this.$$c &&
|
|
541
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
542
542
|
},
|
|
543
543
|
set(l) {
|
|
544
|
-
var
|
|
545
|
-
l =
|
|
544
|
+
var u;
|
|
545
|
+
l = ue(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
546
546
|
}
|
|
547
547
|
});
|
|
548
|
-
}), n.forEach((
|
|
549
|
-
Object.defineProperty(o.prototype,
|
|
548
|
+
}), n.forEach((a) => {
|
|
549
|
+
Object.defineProperty(o.prototype, a, {
|
|
550
550
|
get() {
|
|
551
551
|
var l;
|
|
552
|
-
return (l = this.$$c) == null ? void 0 : l[
|
|
552
|
+
return (l = this.$$c) == null ? void 0 : l[a];
|
|
553
553
|
}
|
|
554
554
|
});
|
|
555
555
|
}), e.element = /** @type {any} */
|
|
556
556
|
o, o;
|
|
557
557
|
}
|
|
558
|
-
class
|
|
558
|
+
class fr {
|
|
559
559
|
constructor() {
|
|
560
560
|
/**
|
|
561
561
|
* ### PRIVATE API
|
|
@@ -564,7 +564,7 @@ class lr {
|
|
|
564
564
|
*
|
|
565
565
|
* @type {any}
|
|
566
566
|
*/
|
|
567
|
-
|
|
567
|
+
T(this, "$$");
|
|
568
568
|
/**
|
|
569
569
|
* ### PRIVATE API
|
|
570
570
|
*
|
|
@@ -572,11 +572,11 @@ class lr {
|
|
|
572
572
|
*
|
|
573
573
|
* @type {any}
|
|
574
574
|
*/
|
|
575
|
-
|
|
575
|
+
T(this, "$$set");
|
|
576
576
|
}
|
|
577
577
|
/** @returns {void} */
|
|
578
578
|
$destroy() {
|
|
579
|
-
|
|
579
|
+
ar(this, 1), this.$destroy = L;
|
|
580
580
|
}
|
|
581
581
|
/**
|
|
582
582
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -585,7 +585,7 @@ class lr {
|
|
|
585
585
|
* @returns {() => void}
|
|
586
586
|
*/
|
|
587
587
|
$on(t, r) {
|
|
588
|
-
if (!
|
|
588
|
+
if (!Ge(r))
|
|
589
589
|
return L;
|
|
590
590
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
591
591
|
return n.push(r), () => {
|
|
@@ -598,63 +598,63 @@ 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(
|
|
604
|
+
const cr = "4";
|
|
605
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(cr);
|
|
606
606
|
const G = [];
|
|
607
|
-
function
|
|
607
|
+
function mr(e, t) {
|
|
608
608
|
return {
|
|
609
|
-
subscribe:
|
|
609
|
+
subscribe: de(e, t).subscribe
|
|
610
610
|
};
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function de(e, t = L) {
|
|
613
613
|
let r;
|
|
614
614
|
const n = /* @__PURE__ */ new Set();
|
|
615
|
-
function i(
|
|
616
|
-
if (
|
|
615
|
+
function i(a) {
|
|
616
|
+
if (ft(e, a) && (e = a, r)) {
|
|
617
617
|
const l = !G.length;
|
|
618
|
-
for (const
|
|
619
|
-
|
|
618
|
+
for (const u of n)
|
|
619
|
+
u[1](), G.push(u, e);
|
|
620
620
|
if (l) {
|
|
621
|
-
for (let
|
|
622
|
-
G[
|
|
621
|
+
for (let u = 0; u < G.length; u += 2)
|
|
622
|
+
G[u][0](G[u + 1]);
|
|
623
623
|
G.length = 0;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
function s(
|
|
628
|
-
i(
|
|
627
|
+
function s(a) {
|
|
628
|
+
i(a(e));
|
|
629
629
|
}
|
|
630
|
-
function o(
|
|
631
|
-
const
|
|
632
|
-
return n.add(
|
|
633
|
-
n.delete(
|
|
630
|
+
function o(a, l = L) {
|
|
631
|
+
const u = [a, l];
|
|
632
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || L), a(e), () => {
|
|
633
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
636
|
return { set: i, update: s, subscribe: o };
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Q(e, t, r) {
|
|
639
639
|
const n = !Array.isArray(e), i = n ? [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 mr(r, (o, a) => {
|
|
644
644
|
let l = !1;
|
|
645
|
-
const
|
|
645
|
+
const u = [];
|
|
646
646
|
let h = 0, c = L;
|
|
647
647
|
const f = () => {
|
|
648
648
|
if (h)
|
|
649
649
|
return;
|
|
650
650
|
c();
|
|
651
|
-
const y = t(n ?
|
|
652
|
-
s ? o(y) : c =
|
|
651
|
+
const y = t(n ? u[0] : u, o, a);
|
|
652
|
+
s ? o(y) : c = Ge(y) ? y : L;
|
|
653
653
|
}, b = i.map(
|
|
654
|
-
(y, x) =>
|
|
654
|
+
(y, x) => ct(
|
|
655
655
|
y,
|
|
656
656
|
(S) => {
|
|
657
|
-
|
|
657
|
+
u[x] = S, h &= ~(1 << x), l && f();
|
|
658
658
|
},
|
|
659
659
|
() => {
|
|
660
660
|
h |= 1 << x;
|
|
@@ -662,53 +662,53 @@ function Z(e, t, r) {
|
|
|
662
662
|
)
|
|
663
663
|
);
|
|
664
664
|
return l = !0, f(), function() {
|
|
665
|
-
|
|
665
|
+
Z(b), c(), l = !1;
|
|
666
666
|
};
|
|
667
667
|
});
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function gr(e) {
|
|
670
670
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
671
671
|
}
|
|
672
|
-
var
|
|
673
|
-
return
|
|
672
|
+
var dr = function(t) {
|
|
673
|
+
return br(t) && !pr(t);
|
|
674
674
|
};
|
|
675
|
-
function
|
|
675
|
+
function br(e) {
|
|
676
676
|
return !!e && typeof e == "object";
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function pr(e) {
|
|
679
679
|
var t = Object.prototype.toString.call(e);
|
|
680
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
681
|
-
}
|
|
682
|
-
var pr = typeof Symbol == "function" && Symbol.for, yr = pr ? Symbol.for("react.element") : 60103;
|
|
683
|
-
function Er(e) {
|
|
684
|
-
return e.$$typeof === yr;
|
|
680
|
+
return t === "[object RegExp]" || t === "[object Date]" || vr(e);
|
|
685
681
|
}
|
|
682
|
+
var yr = typeof Symbol == "function" && Symbol.for, Er = yr ? Symbol.for("react.element") : 60103;
|
|
686
683
|
function vr(e) {
|
|
684
|
+
return e.$$typeof === Er;
|
|
685
|
+
}
|
|
686
|
+
function _r(e) {
|
|
687
687
|
return Array.isArray(e) ? [] : {};
|
|
688
688
|
}
|
|
689
|
-
function
|
|
690
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
689
|
+
function te(e, t) {
|
|
690
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(_r(e), e, t) : e;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function xr(e, t, r) {
|
|
693
693
|
return e.concat(t).map(function(n) {
|
|
694
|
-
return
|
|
694
|
+
return te(n, r);
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function Hr(e, t) {
|
|
698
698
|
if (!t.customMerge)
|
|
699
|
-
return
|
|
699
|
+
return V;
|
|
700
700
|
var r = t.customMerge(e);
|
|
701
|
-
return typeof r == "function" ? r :
|
|
701
|
+
return typeof r == "function" ? r : V;
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function Sr(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 qe(e) {
|
|
709
|
+
return Object.keys(e).concat(Sr(e));
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Et(e, t) {
|
|
712
712
|
try {
|
|
713
713
|
return t in e;
|
|
714
714
|
} catch (r) {
|
|
@@ -716,42 +716,42 @@ function yt(e, t) {
|
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
718
|
function Tr(e, t) {
|
|
719
|
-
return
|
|
719
|
+
return Et(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function Ar(e, t, r) {
|
|
722
722
|
var n = {};
|
|
723
|
-
return r.isMergeableObject(e) &&
|
|
724
|
-
n[i] =
|
|
725
|
-
}),
|
|
726
|
-
Tr(e, i) || (
|
|
723
|
+
return r.isMergeableObject(e) && qe(e).forEach(function(i) {
|
|
724
|
+
n[i] = te(e[i], r);
|
|
725
|
+
}), qe(t).forEach(function(i) {
|
|
726
|
+
Tr(e, i) || (Et(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hr(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
727
727
|
}), n;
|
|
728
728
|
}
|
|
729
|
-
function
|
|
730
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
729
|
+
function V(e, t, r) {
|
|
730
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || xr, r.isMergeableObject = r.isMergeableObject || dr, r.cloneUnlessOtherwiseSpecified = te;
|
|
731
731
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
732
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
732
|
+
return s ? n ? r.arrayMerge(e, t, r) : Ar(e, t, r) : te(t, r);
|
|
733
733
|
}
|
|
734
|
-
|
|
734
|
+
V.all = function(t, r) {
|
|
735
735
|
if (!Array.isArray(t))
|
|
736
736
|
throw new Error("first argument should be an array");
|
|
737
737
|
return t.reduce(function(n, i) {
|
|
738
|
-
return
|
|
738
|
+
return V(n, i, r);
|
|
739
739
|
}, {});
|
|
740
740
|
};
|
|
741
|
-
var Br =
|
|
742
|
-
const
|
|
743
|
-
var
|
|
744
|
-
return
|
|
741
|
+
var Br = V, wr = Br;
|
|
742
|
+
const Pr = /* @__PURE__ */ gr(wr);
|
|
743
|
+
var Ne = function(e, t) {
|
|
744
|
+
return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
745
745
|
r.__proto__ = n;
|
|
746
746
|
} || function(r, n) {
|
|
747
747
|
for (var i in n)
|
|
748
748
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
749
|
-
},
|
|
749
|
+
}, Ne(e, t);
|
|
750
750
|
};
|
|
751
|
-
function
|
|
751
|
+
function be(e, t) {
|
|
752
752
|
if (typeof t != "function" && t !== null)
|
|
753
753
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
754
|
-
|
|
754
|
+
Ne(e, t);
|
|
755
755
|
function r() {
|
|
756
756
|
this.constructor = e;
|
|
757
757
|
}
|
|
@@ -767,7 +767,7 @@ var M = function() {
|
|
|
767
767
|
return t;
|
|
768
768
|
}, M.apply(this, arguments);
|
|
769
769
|
};
|
|
770
|
-
function
|
|
770
|
+
function Or(e, t) {
|
|
771
771
|
var r = {};
|
|
772
772
|
for (var n in e)
|
|
773
773
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -776,43 +776,43 @@ function Pr(e, t) {
|
|
|
776
776
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
777
777
|
return r;
|
|
778
778
|
}
|
|
779
|
-
function
|
|
779
|
+
function xe(e, t, r) {
|
|
780
780
|
if (r || arguments.length === 2)
|
|
781
781
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
782
782
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
783
783
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
784
784
|
}
|
|
785
|
-
function
|
|
786
|
-
var r = t && t.cache ? t.cache :
|
|
785
|
+
function He(e, t) {
|
|
786
|
+
var r = t && t.cache ? t.cache : $r, n = t && t.serializer ? t.serializer : Mr, i = t && t.strategy ? t.strategy : Lr;
|
|
787
787
|
return i(e, {
|
|
788
788
|
cache: r,
|
|
789
789
|
serializer: n
|
|
790
790
|
});
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function Nr(e) {
|
|
793
793
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
794
794
|
}
|
|
795
|
-
function
|
|
796
|
-
var i =
|
|
795
|
+
function Ir(e, t, r, n) {
|
|
796
|
+
var i = Nr(n) ? n : r(n), s = t.get(i);
|
|
797
797
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function vt(e, t, r) {
|
|
800
800
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
801
801
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function _t(e, t, r, n, i) {
|
|
804
804
|
return r.bind(t, e, n, i);
|
|
805
805
|
}
|
|
806
|
-
function Ir(e, t) {
|
|
807
|
-
var r = e.length === 1 ? Nr : Et;
|
|
808
|
-
return vt(e, this, r, t.cache.create(), t.serializer);
|
|
809
|
-
}
|
|
810
806
|
function Lr(e, t) {
|
|
811
|
-
|
|
807
|
+
var r = e.length === 1 ? Ir : vt;
|
|
808
|
+
return _t(e, this, r, t.cache.create(), t.serializer);
|
|
809
|
+
}
|
|
810
|
+
function Cr(e, t) {
|
|
811
|
+
return _t(e, this, vt, t.cache.create(), t.serializer);
|
|
812
812
|
}
|
|
813
|
-
var
|
|
813
|
+
var Mr = function() {
|
|
814
814
|
return JSON.stringify(arguments);
|
|
815
|
-
},
|
|
815
|
+
}, Rr = (
|
|
816
816
|
/** @class */
|
|
817
817
|
function() {
|
|
818
818
|
function e() {
|
|
@@ -824,71 +824,71 @@ var Cr = function() {
|
|
|
824
824
|
this.cache[t] = r;
|
|
825
825
|
}, e;
|
|
826
826
|
}()
|
|
827
|
-
),
|
|
827
|
+
), $r = {
|
|
828
828
|
create: function() {
|
|
829
|
-
return new
|
|
829
|
+
return new Rr();
|
|
830
830
|
}
|
|
831
|
-
},
|
|
832
|
-
variadic:
|
|
833
|
-
},
|
|
834
|
-
return
|
|
831
|
+
}, Se = {
|
|
832
|
+
variadic: Cr
|
|
833
|
+
}, fe = function() {
|
|
834
|
+
return fe = Object.assign || function(t) {
|
|
835
835
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
836
836
|
r = arguments[n];
|
|
837
837
|
for (var s in r)
|
|
838
838
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
839
839
|
}
|
|
840
840
|
return t;
|
|
841
|
-
},
|
|
841
|
+
}, fe.apply(this, arguments);
|
|
842
842
|
};
|
|
843
843
|
var d;
|
|
844
844
|
(function(e) {
|
|
845
845
|
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
846
|
})(d || (d = {}));
|
|
847
|
-
var
|
|
847
|
+
var v;
|
|
848
848
|
(function(e) {
|
|
849
849
|
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
|
|
850
|
+
})(v || (v = {}));
|
|
851
|
+
var X;
|
|
852
852
|
(function(e) {
|
|
853
853
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
854
|
-
})(
|
|
855
|
-
function
|
|
856
|
-
return e.type ===
|
|
857
|
-
}
|
|
858
|
-
function $r(e) {
|
|
859
|
-
return e.type === E.argument;
|
|
854
|
+
})(X || (X = {}));
|
|
855
|
+
function Je(e) {
|
|
856
|
+
return e.type === v.literal;
|
|
860
857
|
}
|
|
861
|
-
function
|
|
862
|
-
return e.type ===
|
|
858
|
+
function Ur(e) {
|
|
859
|
+
return e.type === v.argument;
|
|
863
860
|
}
|
|
864
861
|
function xt(e) {
|
|
865
|
-
return e.type ===
|
|
862
|
+
return e.type === v.number;
|
|
866
863
|
}
|
|
867
864
|
function Ht(e) {
|
|
868
|
-
return e.type ===
|
|
865
|
+
return e.type === v.date;
|
|
866
|
+
}
|
|
867
|
+
function St(e) {
|
|
868
|
+
return e.type === v.time;
|
|
869
869
|
}
|
|
870
870
|
function Tt(e) {
|
|
871
|
-
return e.type ===
|
|
871
|
+
return e.type === v.select;
|
|
872
872
|
}
|
|
873
|
-
function
|
|
874
|
-
return e.type ===
|
|
873
|
+
function At(e) {
|
|
874
|
+
return e.type === v.plural;
|
|
875
875
|
}
|
|
876
|
-
function
|
|
877
|
-
return e.type ===
|
|
876
|
+
function Dr(e) {
|
|
877
|
+
return e.type === v.pound;
|
|
878
878
|
}
|
|
879
879
|
function Bt(e) {
|
|
880
|
-
return e.type ===
|
|
880
|
+
return e.type === v.tag;
|
|
881
881
|
}
|
|
882
|
-
function
|
|
883
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
882
|
+
function wt(e) {
|
|
883
|
+
return !!(e && typeof e == "object" && e.type === X.number);
|
|
884
884
|
}
|
|
885
|
-
function
|
|
886
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
885
|
+
function Ie(e) {
|
|
886
|
+
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
887
887
|
}
|
|
888
|
-
var
|
|
889
|
-
function
|
|
888
|
+
var Pt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gr = /(?:[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;
|
|
889
|
+
function Fr(e) {
|
|
890
890
|
var t = {};
|
|
891
|
-
return e.replace(
|
|
891
|
+
return e.replace(Gr, function(r) {
|
|
892
892
|
var n = r.length;
|
|
893
893
|
switch (r[0]) {
|
|
894
894
|
case "G":
|
|
@@ -987,36 +987,36 @@ var _ = function() {
|
|
|
987
987
|
return t;
|
|
988
988
|
}, _.apply(this, arguments);
|
|
989
989
|
};
|
|
990
|
-
var
|
|
991
|
-
function
|
|
990
|
+
var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
991
|
+
function kr(e) {
|
|
992
992
|
if (e.length === 0)
|
|
993
993
|
throw new Error("Number skeleton cannot be empty");
|
|
994
|
-
for (var t = e.split(
|
|
994
|
+
for (var t = e.split(jr).filter(function(f) {
|
|
995
995
|
return f.length > 0;
|
|
996
996
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
997
997
|
var s = i[n], o = s.split("/");
|
|
998
998
|
if (o.length === 0)
|
|
999
999
|
throw new Error("Invalid number skeleton");
|
|
1000
|
-
for (var
|
|
1001
|
-
var c = h[
|
|
1000
|
+
for (var a = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1001
|
+
var c = h[u];
|
|
1002
1002
|
if (c.length === 0)
|
|
1003
1003
|
throw new Error("Invalid number skeleton");
|
|
1004
1004
|
}
|
|
1005
|
-
r.push({ stem:
|
|
1005
|
+
r.push({ stem: a, options: l });
|
|
1006
1006
|
}
|
|
1007
1007
|
return r;
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1009
|
+
function Vr(e) {
|
|
1010
1010
|
return e.replace(/^(.*?)-/, "");
|
|
1011
1011
|
}
|
|
1012
|
-
var
|
|
1013
|
-
function
|
|
1012
|
+
var Ye = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ot = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Nt = /^(0+)$/;
|
|
1013
|
+
function Ke(e) {
|
|
1014
1014
|
var t = {};
|
|
1015
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1015
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ot, function(r, n, i) {
|
|
1016
1016
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1017
1017
|
}), t;
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1019
|
+
function It(e) {
|
|
1020
1020
|
switch (e) {
|
|
1021
1021
|
case "sign-auto":
|
|
1022
1022
|
return {
|
|
@@ -1056,7 +1056,7 @@ function Nt(e) {
|
|
|
1056
1056
|
};
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function Wr(e) {
|
|
1060
1060
|
var t;
|
|
1061
1061
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1062
1062
|
notation: "engineering"
|
|
@@ -1064,14 +1064,14 @@ function Xr(e) {
|
|
|
1064
1064
|
notation: "scientific"
|
|
1065
1065
|
}, e = e.slice(1)), t) {
|
|
1066
1066
|
var r = e.slice(0, 2);
|
|
1067
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1067
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Nt.test(e))
|
|
1068
1068
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1069
1069
|
t.minimumIntegerDigits = e.length;
|
|
1070
1070
|
}
|
|
1071
1071
|
return t;
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1074
|
-
var t = {}, r =
|
|
1073
|
+
function et(e) {
|
|
1074
|
+
var t = {}, r = It(e);
|
|
1075
1075
|
return r || t;
|
|
1076
1076
|
}
|
|
1077
1077
|
function zr(e) {
|
|
@@ -1098,7 +1098,7 @@ function zr(e) {
|
|
|
1098
1098
|
continue;
|
|
1099
1099
|
case "measure-unit":
|
|
1100
1100
|
case "unit":
|
|
1101
|
-
t.style = "unit", t.unit =
|
|
1101
|
+
t.style = "unit", t.unit = Vr(i.options[0]);
|
|
1102
1102
|
continue;
|
|
1103
1103
|
case "compact-short":
|
|
1104
1104
|
case "K":
|
|
@@ -1109,13 +1109,13 @@ function zr(e) {
|
|
|
1109
1109
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1110
1110
|
continue;
|
|
1111
1111
|
case "scientific":
|
|
1112
|
-
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l,
|
|
1113
|
-
return _(_({}, l),
|
|
1112
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1113
|
+
return _(_({}, l), et(u));
|
|
1114
1114
|
}, {}));
|
|
1115
1115
|
continue;
|
|
1116
1116
|
case "engineering":
|
|
1117
|
-
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l,
|
|
1118
|
-
return _(_({}, l),
|
|
1117
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1118
|
+
return _(_({}, l), et(u));
|
|
1119
1119
|
}, {}));
|
|
1120
1120
|
continue;
|
|
1121
1121
|
case "notation-simple":
|
|
@@ -1160,8 +1160,8 @@ function zr(e) {
|
|
|
1160
1160
|
case "integer-width":
|
|
1161
1161
|
if (i.options.length > 1)
|
|
1162
1162
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1163
|
-
i.options[0].replace(
|
|
1164
|
-
if (
|
|
1163
|
+
i.options[0].replace(Xr, function(l, u, h, c, f, b) {
|
|
1164
|
+
if (u)
|
|
1165
1165
|
t.minimumIntegerDigits = h.length;
|
|
1166
1166
|
else {
|
|
1167
1167
|
if (c && f)
|
|
@@ -1173,32 +1173,32 @@ function zr(e) {
|
|
|
1173
1173
|
});
|
|
1174
1174
|
continue;
|
|
1175
1175
|
}
|
|
1176
|
-
if (
|
|
1176
|
+
if (Nt.test(i.stem)) {
|
|
1177
1177
|
t.minimumIntegerDigits = i.stem.length;
|
|
1178
1178
|
continue;
|
|
1179
1179
|
}
|
|
1180
|
-
if (
|
|
1180
|
+
if (Ye.test(i.stem)) {
|
|
1181
1181
|
if (i.options.length > 1)
|
|
1182
1182
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1183
|
-
i.stem.replace(
|
|
1184
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1183
|
+
i.stem.replace(Ye, function(l, u, h, c, f, b) {
|
|
1184
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1185
1185
|
});
|
|
1186
1186
|
var s = i.options[0];
|
|
1187
|
-
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t),
|
|
1187
|
+
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t), Ke(s)));
|
|
1188
1188
|
continue;
|
|
1189
1189
|
}
|
|
1190
|
-
if (
|
|
1191
|
-
t = _(_({}, t),
|
|
1190
|
+
if (Ot.test(i.stem)) {
|
|
1191
|
+
t = _(_({}, t), Ke(i.stem));
|
|
1192
1192
|
continue;
|
|
1193
1193
|
}
|
|
1194
|
-
var o =
|
|
1194
|
+
var o = It(i.stem);
|
|
1195
1195
|
o && (t = _(_({}, t), o));
|
|
1196
|
-
var
|
|
1197
|
-
|
|
1196
|
+
var a = Wr(i.stem);
|
|
1197
|
+
a && (t = _(_({}, t), a));
|
|
1198
1198
|
}
|
|
1199
1199
|
return t;
|
|
1200
1200
|
}
|
|
1201
|
-
var
|
|
1201
|
+
var ae = {
|
|
1202
1202
|
"001": [
|
|
1203
1203
|
"H",
|
|
1204
1204
|
"h"
|
|
@@ -2613,23 +2613,23 @@ var oe = {
|
|
|
2613
2613
|
"h"
|
|
2614
2614
|
]
|
|
2615
2615
|
};
|
|
2616
|
-
function
|
|
2616
|
+
function Zr(e, t) {
|
|
2617
2617
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2618
2618
|
var i = e.charAt(n);
|
|
2619
2619
|
if (i === "j") {
|
|
2620
2620
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2621
2621
|
s++, n++;
|
|
2622
|
-
var o = 1 + (s & 1),
|
|
2623
|
-
for ((
|
|
2622
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Qr(t);
|
|
2623
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2624
2624
|
r += l;
|
|
2625
2625
|
for (; o-- > 0; )
|
|
2626
|
-
r =
|
|
2626
|
+
r = u + r;
|
|
2627
2627
|
} else
|
|
2628
2628
|
i === "J" ? r += "H" : r += i;
|
|
2629
2629
|
}
|
|
2630
2630
|
return r;
|
|
2631
2631
|
}
|
|
2632
|
-
function
|
|
2632
|
+
function Qr(e) {
|
|
2633
2633
|
var t = e.hourCycle;
|
|
2634
2634
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2635
2635
|
e.hourCycles && // @ts-ignore
|
|
@@ -2648,23 +2648,23 @@ function Zr(e) {
|
|
|
2648
2648
|
}
|
|
2649
2649
|
var r = e.language, n;
|
|
2650
2650
|
r !== "root" && (n = e.maximize().region);
|
|
2651
|
-
var i =
|
|
2651
|
+
var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
|
|
2652
2652
|
return i[0];
|
|
2653
2653
|
}
|
|
2654
|
-
var Te,
|
|
2654
|
+
var Te, qr = new RegExp("^".concat(Pt.source, "*")), Jr = new RegExp("".concat(Pt.source, "*$"));
|
|
2655
2655
|
function p(e, t) {
|
|
2656
2656
|
return { start: e, end: t };
|
|
2657
2657
|
}
|
|
2658
|
-
var
|
|
2658
|
+
var Yr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kr = !!String.fromCodePoint, en = !!Object.fromEntries, tn = !!String.prototype.codePointAt, rn = !!String.prototype.trimStart, nn = !!String.prototype.trimEnd, sn = !!Number.isSafeInteger, on = sn ? Number.isSafeInteger : function(e) {
|
|
2659
2659
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2660
|
-
},
|
|
2660
|
+
}, Le = !0;
|
|
2661
2661
|
try {
|
|
2662
|
-
var
|
|
2663
|
-
|
|
2662
|
+
var an = Ct("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2663
|
+
Le = ((Te = an.exec("a")) === null || Te === void 0 ? void 0 : Te[0]) === "a";
|
|
2664
2664
|
} catch (e) {
|
|
2665
|
-
|
|
2665
|
+
Le = !1;
|
|
2666
2666
|
}
|
|
2667
|
-
var
|
|
2667
|
+
var tt = Yr ? (
|
|
2668
2668
|
// Native
|
|
2669
2669
|
function(t, r, n) {
|
|
2670
2670
|
return t.startsWith(r, n);
|
|
@@ -2674,7 +2674,7 @@ var et = Jr ? (
|
|
|
2674
2674
|
function(t, r, n) {
|
|
2675
2675
|
return t.slice(n, n + r.length) === r;
|
|
2676
2676
|
}
|
|
2677
|
-
),
|
|
2677
|
+
), Ce = Kr ? String.fromCodePoint : (
|
|
2678
2678
|
// IE11
|
|
2679
2679
|
function() {
|
|
2680
2680
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2686,19 +2686,19 @@ var et = Jr ? (
|
|
|
2686
2686
|
}
|
|
2687
2687
|
return n;
|
|
2688
2688
|
}
|
|
2689
|
-
),
|
|
2689
|
+
), rt = (
|
|
2690
2690
|
// native
|
|
2691
|
-
|
|
2691
|
+
en ? Object.fromEntries : (
|
|
2692
2692
|
// Ponyfill
|
|
2693
2693
|
function(t) {
|
|
2694
2694
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2695
|
-
var s = i[n], o = s[0],
|
|
2696
|
-
r[o] =
|
|
2695
|
+
var s = i[n], o = s[0], a = s[1];
|
|
2696
|
+
r[o] = a;
|
|
2697
2697
|
}
|
|
2698
2698
|
return r;
|
|
2699
2699
|
}
|
|
2700
2700
|
)
|
|
2701
|
-
),
|
|
2701
|
+
), Lt = tn ? (
|
|
2702
2702
|
// Native
|
|
2703
2703
|
function(t, r) {
|
|
2704
2704
|
return t.codePointAt(r);
|
|
@@ -2712,7 +2712,7 @@ var et = Jr ? (
|
|
|
2712
2712
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2713
2713
|
}
|
|
2714
2714
|
}
|
|
2715
|
-
),
|
|
2715
|
+
), un = rn ? (
|
|
2716
2716
|
// Native
|
|
2717
2717
|
function(t) {
|
|
2718
2718
|
return t.trimStart();
|
|
@@ -2720,9 +2720,9 @@ var et = Jr ? (
|
|
|
2720
2720
|
) : (
|
|
2721
2721
|
// Ponyfill
|
|
2722
2722
|
function(t) {
|
|
2723
|
-
return t.replace(
|
|
2723
|
+
return t.replace(qr, "");
|
|
2724
2724
|
}
|
|
2725
|
-
),
|
|
2725
|
+
), hn = nn ? (
|
|
2726
2726
|
// Native
|
|
2727
2727
|
function(t) {
|
|
2728
2728
|
return t.trimEnd();
|
|
@@ -2730,32 +2730,32 @@ var et = Jr ? (
|
|
|
2730
2730
|
) : (
|
|
2731
2731
|
// Ponyfill
|
|
2732
2732
|
function(t) {
|
|
2733
|
-
return t.replace(
|
|
2733
|
+
return t.replace(Jr, "");
|
|
2734
2734
|
}
|
|
2735
2735
|
);
|
|
2736
|
-
function
|
|
2736
|
+
function Ct(e, t) {
|
|
2737
2737
|
return new RegExp(e, t);
|
|
2738
2738
|
}
|
|
2739
|
-
var
|
|
2740
|
-
if (
|
|
2741
|
-
var
|
|
2742
|
-
|
|
2739
|
+
var Me;
|
|
2740
|
+
if (Le) {
|
|
2741
|
+
var nt = Ct("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2742
|
+
Me = function(t, r) {
|
|
2743
2743
|
var n;
|
|
2744
|
-
|
|
2745
|
-
var i =
|
|
2744
|
+
nt.lastIndex = r;
|
|
2745
|
+
var i = nt.exec(t);
|
|
2746
2746
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2747
2747
|
};
|
|
2748
2748
|
} else
|
|
2749
|
-
|
|
2749
|
+
Me = function(t, r) {
|
|
2750
2750
|
for (var n = []; ; ) {
|
|
2751
|
-
var i =
|
|
2752
|
-
if (i === void 0 ||
|
|
2751
|
+
var i = Lt(t, r);
|
|
2752
|
+
if (i === void 0 || Mt(i) || mn(i))
|
|
2753
2753
|
break;
|
|
2754
2754
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2755
2755
|
}
|
|
2756
|
-
return
|
|
2756
|
+
return Ce.apply(void 0, n);
|
|
2757
2757
|
};
|
|
2758
|
-
var
|
|
2758
|
+
var ln = (
|
|
2759
2759
|
/** @class */
|
|
2760
2760
|
function() {
|
|
2761
2761
|
function e(t, r) {
|
|
@@ -2777,16 +2777,16 @@ var hn = (
|
|
|
2777
2777
|
if (s === 125 && t > 0)
|
|
2778
2778
|
break;
|
|
2779
2779
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2780
|
-
var
|
|
2780
|
+
var a = this.clonePosition();
|
|
2781
2781
|
this.bump(), i.push({
|
|
2782
|
-
type:
|
|
2783
|
-
location: p(
|
|
2782
|
+
type: v.pound,
|
|
2783
|
+
location: p(a, this.clonePosition())
|
|
2784
2784
|
});
|
|
2785
2785
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2786
2786
|
if (n)
|
|
2787
2787
|
break;
|
|
2788
2788
|
return this.error(d.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2789
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2789
|
+
} else if (s === 60 && !this.ignoreTag && Re(this.peek() || 0)) {
|
|
2790
2790
|
var o = this.parseTag(t, r);
|
|
2791
2791
|
if (o.err)
|
|
2792
2792
|
return o;
|
|
@@ -2807,7 +2807,7 @@ var hn = (
|
|
|
2807
2807
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2808
2808
|
return {
|
|
2809
2809
|
val: {
|
|
2810
|
-
type:
|
|
2810
|
+
type: v.literal,
|
|
2811
2811
|
value: "<".concat(i, "/>"),
|
|
2812
2812
|
location: p(n, this.clonePosition())
|
|
2813
2813
|
},
|
|
@@ -2817,27 +2817,27 @@ var hn = (
|
|
|
2817
2817
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2818
2818
|
if (s.err)
|
|
2819
2819
|
return s;
|
|
2820
|
-
var o = s.val,
|
|
2820
|
+
var o = s.val, a = this.clonePosition();
|
|
2821
2821
|
if (this.bumpIf("</")) {
|
|
2822
|
-
if (this.isEOF() || !
|
|
2823
|
-
return this.error(d.INVALID_TAG, p(
|
|
2824
|
-
var l = this.clonePosition(),
|
|
2825
|
-
return i !==
|
|
2822
|
+
if (this.isEOF() || !Re(this.char()))
|
|
2823
|
+
return this.error(d.INVALID_TAG, p(a, this.clonePosition()));
|
|
2824
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
2825
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2826
2826
|
val: {
|
|
2827
|
-
type:
|
|
2827
|
+
type: v.tag,
|
|
2828
2828
|
value: i,
|
|
2829
2829
|
children: o,
|
|
2830
2830
|
location: p(n, this.clonePosition())
|
|
2831
2831
|
},
|
|
2832
2832
|
err: null
|
|
2833
|
-
} : this.error(d.INVALID_TAG, p(
|
|
2833
|
+
} : this.error(d.INVALID_TAG, p(a, this.clonePosition())));
|
|
2834
2834
|
} else
|
|
2835
2835
|
return this.error(d.UNCLOSED_TAG, p(n, this.clonePosition()));
|
|
2836
2836
|
} else
|
|
2837
2837
|
return this.error(d.INVALID_TAG, p(n, this.clonePosition()));
|
|
2838
2838
|
}, e.prototype.parseTagName = function() {
|
|
2839
2839
|
var t = this.offset();
|
|
2840
|
-
for (this.bump(); !this.isEOF() &&
|
|
2840
|
+
for (this.bump(); !this.isEOF() && cn(this.char()); )
|
|
2841
2841
|
this.bump();
|
|
2842
2842
|
return this.message.slice(t, this.offset());
|
|
2843
2843
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2852,21 +2852,21 @@ var hn = (
|
|
|
2852
2852
|
i += o;
|
|
2853
2853
|
continue;
|
|
2854
2854
|
}
|
|
2855
|
-
var
|
|
2856
|
-
if (
|
|
2857
|
-
i +=
|
|
2855
|
+
var a = this.tryParseLeftAngleBracket();
|
|
2856
|
+
if (a) {
|
|
2857
|
+
i += a;
|
|
2858
2858
|
continue;
|
|
2859
2859
|
}
|
|
2860
2860
|
break;
|
|
2861
2861
|
}
|
|
2862
2862
|
var l = p(n, this.clonePosition());
|
|
2863
2863
|
return {
|
|
2864
|
-
val: { type:
|
|
2864
|
+
val: { type: v.literal, value: i, location: l },
|
|
2865
2865
|
err: null
|
|
2866
2866
|
};
|
|
2867
2867
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2868
2868
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2869
|
-
!
|
|
2869
|
+
!fn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2870
2870
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2871
2871
|
if (this.isEOF() || this.char() !== 39)
|
|
2872
2872
|
return null;
|
|
@@ -2900,12 +2900,12 @@ var hn = (
|
|
|
2900
2900
|
r.push(n);
|
|
2901
2901
|
this.bump();
|
|
2902
2902
|
}
|
|
2903
|
-
return
|
|
2903
|
+
return Ce.apply(void 0, r);
|
|
2904
2904
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2905
2905
|
if (this.isEOF())
|
|
2906
2906
|
return null;
|
|
2907
2907
|
var n = this.char();
|
|
2908
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2908
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ce(n));
|
|
2909
2909
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2910
2910
|
var n = this.clonePosition();
|
|
2911
2911
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2921,7 +2921,7 @@ var hn = (
|
|
|
2921
2921
|
case 125:
|
|
2922
2922
|
return this.bump(), {
|
|
2923
2923
|
val: {
|
|
2924
|
-
type:
|
|
2924
|
+
type: v.argument,
|
|
2925
2925
|
// value does not include the opening and closing braces.
|
|
2926
2926
|
value: i,
|
|
2927
2927
|
location: p(n, this.clonePosition())
|
|
@@ -2934,66 +2934,66 @@ var hn = (
|
|
|
2934
2934
|
return this.error(d.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2935
2935
|
}
|
|
2936
2936
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2937
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2937
|
+
var t = this.clonePosition(), r = this.offset(), n = Me(this.message, r), i = r + n.length;
|
|
2938
2938
|
this.bumpTo(i);
|
|
2939
2939
|
var s = this.clonePosition(), o = p(t, s);
|
|
2940
2940
|
return { value: n, location: o };
|
|
2941
2941
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2942
|
-
var s, o = this.clonePosition(),
|
|
2943
|
-
switch (
|
|
2942
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2943
|
+
switch (a) {
|
|
2944
2944
|
case "":
|
|
2945
2945
|
return this.error(d.EXPECT_ARGUMENT_TYPE, p(o, l));
|
|
2946
2946
|
case "number":
|
|
2947
2947
|
case "date":
|
|
2948
2948
|
case "time": {
|
|
2949
2949
|
this.bumpSpace();
|
|
2950
|
-
var
|
|
2950
|
+
var u = null;
|
|
2951
2951
|
if (this.bumpIf(",")) {
|
|
2952
2952
|
this.bumpSpace();
|
|
2953
2953
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2954
2954
|
if (c.err)
|
|
2955
2955
|
return c;
|
|
2956
|
-
var f =
|
|
2956
|
+
var f = hn(c.val);
|
|
2957
2957
|
if (f.length === 0)
|
|
2958
2958
|
return this.error(d.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2959
2959
|
var b = p(h, this.clonePosition());
|
|
2960
|
-
|
|
2960
|
+
u = { style: f, styleLocation: b };
|
|
2961
2961
|
}
|
|
2962
2962
|
var y = this.tryParseArgumentClose(i);
|
|
2963
2963
|
if (y.err)
|
|
2964
2964
|
return y;
|
|
2965
2965
|
var x = p(i, this.clonePosition());
|
|
2966
|
-
if (
|
|
2967
|
-
var S =
|
|
2968
|
-
if (
|
|
2969
|
-
var c = this.parseNumberSkeletonFromString(S,
|
|
2966
|
+
if (u && tt(u == null ? void 0 : u.style, "::", 0)) {
|
|
2967
|
+
var S = un(u.style.slice(2));
|
|
2968
|
+
if (a === "number") {
|
|
2969
|
+
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
2970
2970
|
return c.err ? c : {
|
|
2971
|
-
val: { type:
|
|
2971
|
+
val: { type: v.number, value: n, location: x, style: c.val },
|
|
2972
2972
|
err: null
|
|
2973
2973
|
};
|
|
2974
2974
|
} else {
|
|
2975
2975
|
if (S.length === 0)
|
|
2976
2976
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, x);
|
|
2977
|
-
var
|
|
2978
|
-
this.locale && (
|
|
2977
|
+
var O = S;
|
|
2978
|
+
this.locale && (O = Zr(S, this.locale));
|
|
2979
2979
|
var f = {
|
|
2980
|
-
type:
|
|
2981
|
-
pattern:
|
|
2982
|
-
location:
|
|
2983
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2984
|
-
},
|
|
2980
|
+
type: X.dateTime,
|
|
2981
|
+
pattern: O,
|
|
2982
|
+
location: u.styleLocation,
|
|
2983
|
+
parsedOptions: this.shouldParseSkeletons ? Fr(O) : {}
|
|
2984
|
+
}, P = a === "date" ? v.date : v.time;
|
|
2985
2985
|
return {
|
|
2986
|
-
val: { type:
|
|
2986
|
+
val: { type: P, value: n, location: x, style: f },
|
|
2987
2987
|
err: null
|
|
2988
2988
|
};
|
|
2989
2989
|
}
|
|
2990
2990
|
}
|
|
2991
2991
|
return {
|
|
2992
2992
|
val: {
|
|
2993
|
-
type:
|
|
2993
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
2994
2994
|
value: n,
|
|
2995
2995
|
location: x,
|
|
2996
|
-
style: (s =
|
|
2996
|
+
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
2997
2997
|
},
|
|
2998
2998
|
err: null
|
|
2999
2999
|
};
|
|
@@ -3003,41 +3003,41 @@ var hn = (
|
|
|
3003
3003
|
case "select": {
|
|
3004
3004
|
var A = this.clonePosition();
|
|
3005
3005
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3006
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, p(A,
|
|
3006
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, p(A, fe({}, A)));
|
|
3007
3007
|
this.bumpSpace();
|
|
3008
|
-
var I = this.parseIdentifierIfPossible(),
|
|
3009
|
-
if (
|
|
3008
|
+
var I = this.parseIdentifierIfPossible(), w = 0;
|
|
3009
|
+
if (a !== "select" && I.value === "offset") {
|
|
3010
3010
|
if (!this.bumpIf(":"))
|
|
3011
3011
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
3012
3012
|
this.bumpSpace();
|
|
3013
3013
|
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3014
3014
|
if (c.err)
|
|
3015
3015
|
return c;
|
|
3016
|
-
this.bumpSpace(), I = this.parseIdentifierIfPossible(),
|
|
3016
|
+
this.bumpSpace(), I = this.parseIdentifierIfPossible(), w = c.val;
|
|
3017
3017
|
}
|
|
3018
|
-
var
|
|
3019
|
-
if (
|
|
3020
|
-
return
|
|
3018
|
+
var C = this.tryParsePluralOrSelectOptions(t, a, r, I);
|
|
3019
|
+
if (C.err)
|
|
3020
|
+
return C;
|
|
3021
3021
|
var y = this.tryParseArgumentClose(i);
|
|
3022
3022
|
if (y.err)
|
|
3023
3023
|
return y;
|
|
3024
|
-
var
|
|
3025
|
-
return
|
|
3024
|
+
var E = p(i, this.clonePosition());
|
|
3025
|
+
return a === "select" ? {
|
|
3026
3026
|
val: {
|
|
3027
|
-
type:
|
|
3027
|
+
type: v.select,
|
|
3028
3028
|
value: n,
|
|
3029
|
-
options:
|
|
3030
|
-
location:
|
|
3029
|
+
options: rt(C.val),
|
|
3030
|
+
location: E
|
|
3031
3031
|
},
|
|
3032
3032
|
err: null
|
|
3033
3033
|
} : {
|
|
3034
3034
|
val: {
|
|
3035
|
-
type:
|
|
3035
|
+
type: v.plural,
|
|
3036
3036
|
value: n,
|
|
3037
|
-
options:
|
|
3038
|
-
offset:
|
|
3039
|
-
pluralType:
|
|
3040
|
-
location:
|
|
3037
|
+
options: rt(C.val),
|
|
3038
|
+
offset: w,
|
|
3039
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3040
|
+
location: E
|
|
3041
3041
|
},
|
|
3042
3042
|
err: null
|
|
3043
3043
|
};
|
|
@@ -3085,13 +3085,13 @@ var hn = (
|
|
|
3085
3085
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3086
3086
|
var n = [];
|
|
3087
3087
|
try {
|
|
3088
|
-
n =
|
|
3088
|
+
n = kr(t);
|
|
3089
3089
|
} catch (i) {
|
|
3090
3090
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3091
3091
|
}
|
|
3092
3092
|
return {
|
|
3093
3093
|
val: {
|
|
3094
|
-
type:
|
|
3094
|
+
type: X.number,
|
|
3095
3095
|
tokens: n,
|
|
3096
3096
|
location: r,
|
|
3097
3097
|
parsedOptions: this.shouldParseSkeletons ? zr(n) : {}
|
|
@@ -3099,20 +3099,20 @@ var hn = (
|
|
|
3099
3099
|
err: null
|
|
3100
3100
|
};
|
|
3101
3101
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3102
|
-
for (var s, o = !1,
|
|
3103
|
-
if (
|
|
3102
|
+
for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3103
|
+
if (u.length === 0) {
|
|
3104
3104
|
var c = this.clonePosition();
|
|
3105
3105
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3106
3106
|
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3107
3107
|
if (f.err)
|
|
3108
3108
|
return f;
|
|
3109
|
-
h = p(c, this.clonePosition()),
|
|
3109
|
+
h = p(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3110
3110
|
} else
|
|
3111
3111
|
break;
|
|
3112
3112
|
}
|
|
3113
|
-
if (l.has(
|
|
3113
|
+
if (l.has(u))
|
|
3114
3114
|
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3115
|
-
|
|
3115
|
+
u === "other" && (o = !0), this.bumpSpace();
|
|
3116
3116
|
var b = this.clonePosition();
|
|
3117
3117
|
if (!this.bumpIf("{"))
|
|
3118
3118
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
@@ -3122,27 +3122,27 @@ var hn = (
|
|
|
3122
3122
|
var x = this.tryParseArgumentClose(b);
|
|
3123
3123
|
if (x.err)
|
|
3124
3124
|
return x;
|
|
3125
|
-
|
|
3126
|
-
|
|
3125
|
+
a.push([
|
|
3126
|
+
u,
|
|
3127
3127
|
{
|
|
3128
3128
|
value: y.val,
|
|
3129
3129
|
location: p(b, this.clonePosition())
|
|
3130
3130
|
}
|
|
3131
|
-
]), l.add(
|
|
3131
|
+
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3132
3132
|
}
|
|
3133
|
-
return
|
|
3133
|
+
return a.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(d.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3134
3134
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3135
3135
|
var n = 1, i = this.clonePosition();
|
|
3136
3136
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3137
3137
|
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
3138
|
-
var
|
|
3139
|
-
if (
|
|
3140
|
-
s = !0, o = o * 10 + (
|
|
3138
|
+
var a = this.char();
|
|
3139
|
+
if (a >= 48 && a <= 57)
|
|
3140
|
+
s = !0, o = o * 10 + (a - 48), this.bump();
|
|
3141
3141
|
else
|
|
3142
3142
|
break;
|
|
3143
3143
|
}
|
|
3144
3144
|
var l = p(i, this.clonePosition());
|
|
3145
|
-
return s ? (o *= n,
|
|
3145
|
+
return s ? (o *= n, on(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3146
3146
|
}, e.prototype.offset = function() {
|
|
3147
3147
|
return this.position.offset;
|
|
3148
3148
|
}, e.prototype.isEOF = function() {
|
|
@@ -3157,7 +3157,7 @@ var hn = (
|
|
|
3157
3157
|
var t = this.position.offset;
|
|
3158
3158
|
if (t >= this.message.length)
|
|
3159
3159
|
throw Error("out of bound");
|
|
3160
|
-
var r =
|
|
3160
|
+
var r = Lt(this.message, t);
|
|
3161
3161
|
if (r === void 0)
|
|
3162
3162
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3163
3163
|
return r;
|
|
@@ -3176,7 +3176,7 @@ var hn = (
|
|
|
3176
3176
|
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
3177
|
}
|
|
3178
3178
|
}, e.prototype.bumpIf = function(t) {
|
|
3179
|
-
if (
|
|
3179
|
+
if (tt(this.message, t, this.offset())) {
|
|
3180
3180
|
for (var r = 0; r < t.length; r++)
|
|
3181
3181
|
this.bump();
|
|
3182
3182
|
return !0;
|
|
@@ -3198,7 +3198,7 @@ var hn = (
|
|
|
3198
3198
|
break;
|
|
3199
3199
|
}
|
|
3200
3200
|
}, e.prototype.bumpSpace = function() {
|
|
3201
|
-
for (; !this.isEOF() &&
|
|
3201
|
+
for (; !this.isEOF() && Mt(this.char()); )
|
|
3202
3202
|
this.bump();
|
|
3203
3203
|
}, e.prototype.peek = function() {
|
|
3204
3204
|
if (this.isEOF())
|
|
@@ -3208,47 +3208,47 @@ var hn = (
|
|
|
3208
3208
|
}, e;
|
|
3209
3209
|
}()
|
|
3210
3210
|
);
|
|
3211
|
-
function
|
|
3211
|
+
function Re(e) {
|
|
3212
3212
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3213
3213
|
}
|
|
3214
|
-
function ln(e) {
|
|
3215
|
-
return Me(e) || e === 47;
|
|
3216
|
-
}
|
|
3217
3214
|
function fn(e) {
|
|
3215
|
+
return Re(e) || e === 47;
|
|
3216
|
+
}
|
|
3217
|
+
function cn(e) {
|
|
3218
3218
|
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
3219
|
}
|
|
3220
|
-
function
|
|
3220
|
+
function Mt(e) {
|
|
3221
3221
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3222
3222
|
}
|
|
3223
|
-
function
|
|
3223
|
+
function mn(e) {
|
|
3224
3224
|
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
3225
|
}
|
|
3226
|
-
function
|
|
3226
|
+
function $e(e) {
|
|
3227
3227
|
e.forEach(function(t) {
|
|
3228
|
-
if (delete t.location, Tt(t) ||
|
|
3228
|
+
if (delete t.location, Tt(t) || At(t))
|
|
3229
3229
|
for (var r in t.options)
|
|
3230
|
-
delete t.options[r].location,
|
|
3230
|
+
delete t.options[r].location, $e(t.options[r].value);
|
|
3231
3231
|
else
|
|
3232
|
-
|
|
3232
|
+
xt(t) && wt(t.style) || (Ht(t) || St(t)) && Ie(t.style) ? delete t.style.location : Bt(t) && $e(t.children);
|
|
3233
3233
|
});
|
|
3234
3234
|
}
|
|
3235
|
-
function
|
|
3236
|
-
t === void 0 && (t = {}), t =
|
|
3237
|
-
var r = new
|
|
3235
|
+
function gn(e, t) {
|
|
3236
|
+
t === void 0 && (t = {}), t = fe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3237
|
+
var r = new ln(e, t).parse();
|
|
3238
3238
|
if (r.err) {
|
|
3239
3239
|
var n = SyntaxError(d[r.err.kind]);
|
|
3240
3240
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3241
3241
|
}
|
|
3242
|
-
return t != null && t.captureLocation ||
|
|
3242
|
+
return t != null && t.captureLocation || $e(r.val), r.val;
|
|
3243
3243
|
}
|
|
3244
|
-
var
|
|
3244
|
+
var W;
|
|
3245
3245
|
(function(e) {
|
|
3246
3246
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3247
|
-
})(
|
|
3248
|
-
var
|
|
3247
|
+
})(W || (W = {}));
|
|
3248
|
+
var pe = (
|
|
3249
3249
|
/** @class */
|
|
3250
3250
|
function(e) {
|
|
3251
|
-
|
|
3251
|
+
be(t, e);
|
|
3252
3252
|
function t(r, n, i) {
|
|
3253
3253
|
var s = e.call(this, r) || this;
|
|
3254
3254
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3257,155 +3257,155 @@ var be = (
|
|
|
3257
3257
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3258
3258
|
}, t;
|
|
3259
3259
|
}(Error)
|
|
3260
|
-
),
|
|
3260
|
+
), it = (
|
|
3261
3261
|
/** @class */
|
|
3262
3262
|
function(e) {
|
|
3263
|
-
|
|
3263
|
+
be(t, e);
|
|
3264
3264
|
function t(r, n, i, s) {
|
|
3265
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3265
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, s) || this;
|
|
3266
3266
|
}
|
|
3267
3267
|
return t;
|
|
3268
|
-
}(
|
|
3269
|
-
),
|
|
3268
|
+
}(pe)
|
|
3269
|
+
), dn = (
|
|
3270
3270
|
/** @class */
|
|
3271
3271
|
function(e) {
|
|
3272
|
-
|
|
3272
|
+
be(t, e);
|
|
3273
3273
|
function t(r, n, i) {
|
|
3274
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3274
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
|
|
3275
3275
|
}
|
|
3276
3276
|
return t;
|
|
3277
|
-
}(
|
|
3278
|
-
),
|
|
3277
|
+
}(pe)
|
|
3278
|
+
), bn = (
|
|
3279
3279
|
/** @class */
|
|
3280
3280
|
function(e) {
|
|
3281
|
-
|
|
3281
|
+
be(t, e);
|
|
3282
3282
|
function t(r, n) {
|
|
3283
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3283
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
|
|
3284
3284
|
}
|
|
3285
3285
|
return t;
|
|
3286
|
-
}(
|
|
3287
|
-
),
|
|
3286
|
+
}(pe)
|
|
3287
|
+
), B;
|
|
3288
3288
|
(function(e) {
|
|
3289
3289
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3290
|
-
})(
|
|
3291
|
-
function
|
|
3290
|
+
})(B || (B = {}));
|
|
3291
|
+
function pn(e) {
|
|
3292
3292
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3293
3293
|
var n = t[t.length - 1];
|
|
3294
|
-
return !n || n.type !==
|
|
3294
|
+
return !n || n.type !== B.literal || r.type !== B.literal ? t.push(r) : n.value += r.value, t;
|
|
3295
3295
|
}, []);
|
|
3296
3296
|
}
|
|
3297
|
-
function
|
|
3297
|
+
function yn(e) {
|
|
3298
3298
|
return typeof e == "function";
|
|
3299
3299
|
}
|
|
3300
|
-
function
|
|
3301
|
-
if (e.length === 1 &&
|
|
3300
|
+
function he(e, t, r, n, i, s, o) {
|
|
3301
|
+
if (e.length === 1 && Je(e[0]))
|
|
3302
3302
|
return [
|
|
3303
3303
|
{
|
|
3304
|
-
type:
|
|
3304
|
+
type: B.literal,
|
|
3305
3305
|
value: e[0].value
|
|
3306
3306
|
}
|
|
3307
3307
|
];
|
|
3308
|
-
for (var
|
|
3309
|
-
var h =
|
|
3310
|
-
if (
|
|
3311
|
-
|
|
3312
|
-
type:
|
|
3308
|
+
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3309
|
+
var h = u[l];
|
|
3310
|
+
if (Je(h)) {
|
|
3311
|
+
a.push({
|
|
3312
|
+
type: B.literal,
|
|
3313
3313
|
value: h.value
|
|
3314
3314
|
});
|
|
3315
3315
|
continue;
|
|
3316
3316
|
}
|
|
3317
|
-
if (
|
|
3318
|
-
typeof s == "number" &&
|
|
3319
|
-
type:
|
|
3317
|
+
if (Dr(h)) {
|
|
3318
|
+
typeof s == "number" && a.push({
|
|
3319
|
+
type: B.literal,
|
|
3320
3320
|
value: r.getNumberFormat(t).format(s)
|
|
3321
3321
|
});
|
|
3322
3322
|
continue;
|
|
3323
3323
|
}
|
|
3324
3324
|
var c = h.value;
|
|
3325
3325
|
if (!(i && c in i))
|
|
3326
|
-
throw new
|
|
3326
|
+
throw new bn(c, o);
|
|
3327
3327
|
var f = i[c];
|
|
3328
|
-
if (
|
|
3329
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
|
3330
|
-
type: typeof f == "string" ?
|
|
3328
|
+
if (Ur(h)) {
|
|
3329
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3330
|
+
type: typeof f == "string" ? B.literal : B.object,
|
|
3331
3331
|
value: f
|
|
3332
3332
|
});
|
|
3333
3333
|
continue;
|
|
3334
3334
|
}
|
|
3335
|
-
if (
|
|
3336
|
-
var b = typeof h.style == "string" ? n.date[h.style] :
|
|
3337
|
-
|
|
3338
|
-
type:
|
|
3335
|
+
if (Ht(h)) {
|
|
3336
|
+
var b = typeof h.style == "string" ? n.date[h.style] : Ie(h.style) ? h.style.parsedOptions : void 0;
|
|
3337
|
+
a.push({
|
|
3338
|
+
type: B.literal,
|
|
3339
3339
|
value: r.getDateTimeFormat(t, b).format(f)
|
|
3340
3340
|
});
|
|
3341
3341
|
continue;
|
|
3342
3342
|
}
|
|
3343
|
-
if (
|
|
3344
|
-
var b = typeof h.style == "string" ? n.time[h.style] :
|
|
3345
|
-
|
|
3346
|
-
type:
|
|
3343
|
+
if (St(h)) {
|
|
3344
|
+
var b = typeof h.style == "string" ? n.time[h.style] : Ie(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3345
|
+
a.push({
|
|
3346
|
+
type: B.literal,
|
|
3347
3347
|
value: r.getDateTimeFormat(t, b).format(f)
|
|
3348
3348
|
});
|
|
3349
3349
|
continue;
|
|
3350
3350
|
}
|
|
3351
|
-
if (
|
|
3352
|
-
var b = typeof h.style == "string" ? n.number[h.style] :
|
|
3353
|
-
b && b.scale && (f = f * (b.scale || 1)),
|
|
3354
|
-
type:
|
|
3351
|
+
if (xt(h)) {
|
|
3352
|
+
var b = typeof h.style == "string" ? n.number[h.style] : wt(h.style) ? h.style.parsedOptions : void 0;
|
|
3353
|
+
b && b.scale && (f = f * (b.scale || 1)), a.push({
|
|
3354
|
+
type: B.literal,
|
|
3355
3355
|
value: r.getNumberFormat(t, b).format(f)
|
|
3356
3356
|
});
|
|
3357
3357
|
continue;
|
|
3358
3358
|
}
|
|
3359
3359
|
if (Bt(h)) {
|
|
3360
3360
|
var y = h.children, x = h.value, S = i[x];
|
|
3361
|
-
if (!
|
|
3362
|
-
throw new
|
|
3363
|
-
var
|
|
3364
|
-
return
|
|
3361
|
+
if (!yn(S))
|
|
3362
|
+
throw new dn(x, "function", o);
|
|
3363
|
+
var O = he(y, t, r, n, i, s), P = S(O.map(function(w) {
|
|
3364
|
+
return w.value;
|
|
3365
3365
|
}));
|
|
3366
|
-
Array.isArray(
|
|
3366
|
+
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(w) {
|
|
3367
3367
|
return {
|
|
3368
|
-
type: typeof
|
|
3369
|
-
value:
|
|
3368
|
+
type: typeof w == "string" ? B.literal : B.object,
|
|
3369
|
+
value: w
|
|
3370
3370
|
};
|
|
3371
3371
|
}));
|
|
3372
3372
|
}
|
|
3373
3373
|
if (Tt(h)) {
|
|
3374
3374
|
var A = h.options[f] || h.options.other;
|
|
3375
3375
|
if (!A)
|
|
3376
|
-
throw new
|
|
3377
|
-
|
|
3376
|
+
throw new it(h.value, f, Object.keys(h.options), o);
|
|
3377
|
+
a.push.apply(a, he(A.value, t, r, n, i));
|
|
3378
3378
|
continue;
|
|
3379
3379
|
}
|
|
3380
|
-
if (
|
|
3380
|
+
if (At(h)) {
|
|
3381
3381
|
var A = h.options["=".concat(f)];
|
|
3382
3382
|
if (!A) {
|
|
3383
3383
|
if (!Intl.PluralRules)
|
|
3384
|
-
throw new
|
|
3384
|
+
throw new pe(`Intl.PluralRules is not available in this environment.
|
|
3385
3385
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3386
|
-
`,
|
|
3386
|
+
`, W.MISSING_INTL_API, o);
|
|
3387
3387
|
var I = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3388
3388
|
A = h.options[I] || h.options.other;
|
|
3389
3389
|
}
|
|
3390
3390
|
if (!A)
|
|
3391
|
-
throw new
|
|
3392
|
-
|
|
3391
|
+
throw new it(h.value, f, Object.keys(h.options), o);
|
|
3392
|
+
a.push.apply(a, he(A.value, t, r, n, i, f - (h.offset || 0)));
|
|
3393
3393
|
continue;
|
|
3394
3394
|
}
|
|
3395
3395
|
}
|
|
3396
|
-
return
|
|
3396
|
+
return pn(a);
|
|
3397
3397
|
}
|
|
3398
|
-
function
|
|
3398
|
+
function En(e, t) {
|
|
3399
3399
|
return t ? M(M(M({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3400
3400
|
return r[n] = M(M({}, e[n]), t[n] || {}), r;
|
|
3401
3401
|
}, {})) : e;
|
|
3402
3402
|
}
|
|
3403
|
-
function
|
|
3403
|
+
function vn(e, t) {
|
|
3404
3404
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3405
|
-
return r[n] =
|
|
3405
|
+
return r[n] = En(e[n], t[n]), r;
|
|
3406
3406
|
}, M({}, e)) : e;
|
|
3407
3407
|
}
|
|
3408
|
-
function
|
|
3408
|
+
function Ae(e) {
|
|
3409
3409
|
return {
|
|
3410
3410
|
create: function() {
|
|
3411
3411
|
return {
|
|
@@ -3419,39 +3419,39 @@ function Se(e) {
|
|
|
3419
3419
|
}
|
|
3420
3420
|
};
|
|
3421
3421
|
}
|
|
3422
|
-
function
|
|
3422
|
+
function _n(e) {
|
|
3423
3423
|
return e === void 0 && (e = {
|
|
3424
3424
|
number: {},
|
|
3425
3425
|
dateTime: {},
|
|
3426
3426
|
pluralRules: {}
|
|
3427
3427
|
}), {
|
|
3428
|
-
getNumberFormat:
|
|
3428
|
+
getNumberFormat: He(function() {
|
|
3429
3429
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3430
3430
|
r[n] = arguments[n];
|
|
3431
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3431
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, xe([void 0], r, !1)))();
|
|
3432
3432
|
}, {
|
|
3433
|
-
cache:
|
|
3434
|
-
strategy:
|
|
3433
|
+
cache: Ae(e.number),
|
|
3434
|
+
strategy: Se.variadic
|
|
3435
3435
|
}),
|
|
3436
|
-
getDateTimeFormat:
|
|
3436
|
+
getDateTimeFormat: He(function() {
|
|
3437
3437
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3438
3438
|
r[n] = arguments[n];
|
|
3439
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3439
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, xe([void 0], r, !1)))();
|
|
3440
3440
|
}, {
|
|
3441
|
-
cache:
|
|
3442
|
-
strategy:
|
|
3441
|
+
cache: Ae(e.dateTime),
|
|
3442
|
+
strategy: Se.variadic
|
|
3443
3443
|
}),
|
|
3444
|
-
getPluralRules:
|
|
3444
|
+
getPluralRules: He(function() {
|
|
3445
3445
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3446
3446
|
r[n] = arguments[n];
|
|
3447
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3447
|
+
return new ((t = Intl.PluralRules).bind.apply(t, xe([void 0], r, !1)))();
|
|
3448
3448
|
}, {
|
|
3449
|
-
cache:
|
|
3450
|
-
strategy:
|
|
3449
|
+
cache: Ae(e.pluralRules),
|
|
3450
|
+
strategy: Se.variadic
|
|
3451
3451
|
})
|
|
3452
3452
|
};
|
|
3453
3453
|
}
|
|
3454
|
-
var
|
|
3454
|
+
var xn = (
|
|
3455
3455
|
/** @class */
|
|
3456
3456
|
function() {
|
|
3457
3457
|
function e(t, r, n, i) {
|
|
@@ -3462,15 +3462,15 @@ var _n = (
|
|
|
3462
3462
|
dateTime: {},
|
|
3463
3463
|
pluralRules: {}
|
|
3464
3464
|
}, this.format = function(l) {
|
|
3465
|
-
var
|
|
3466
|
-
if (
|
|
3467
|
-
return
|
|
3468
|
-
var h =
|
|
3469
|
-
return !c.length || f.type !==
|
|
3465
|
+
var u = s.formatToParts(l);
|
|
3466
|
+
if (u.length === 1)
|
|
3467
|
+
return u[0].value;
|
|
3468
|
+
var h = u.reduce(function(c, f) {
|
|
3469
|
+
return !c.length || f.type !== B.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3470
3470
|
}, []);
|
|
3471
3471
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3472
3472
|
}, this.formatToParts = function(l) {
|
|
3473
|
-
return
|
|
3473
|
+
return he(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3474
3474
|
}, this.resolvedOptions = function() {
|
|
3475
3475
|
var l;
|
|
3476
3476
|
return {
|
|
@@ -3483,13 +3483,13 @@ var _n = (
|
|
|
3483
3483
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3484
3484
|
var o = i || {};
|
|
3485
3485
|
o.formatters;
|
|
3486
|
-
var
|
|
3487
|
-
this.ast = e.__parse(t, M(M({},
|
|
3486
|
+
var a = Or(o, ["formatters"]);
|
|
3487
|
+
this.ast = e.__parse(t, M(M({}, a), { locale: this.resolvedLocale }));
|
|
3488
3488
|
} else
|
|
3489
3489
|
this.ast = t;
|
|
3490
3490
|
if (!Array.isArray(this.ast))
|
|
3491
3491
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3492
|
-
this.formats =
|
|
3492
|
+
this.formats = vn(e.formats, n), this.formatters = i && i.formatters || _n(this.formatterCache);
|
|
3493
3493
|
}
|
|
3494
3494
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3495
3495
|
get: function() {
|
|
@@ -3502,7 +3502,7 @@ var _n = (
|
|
|
3502
3502
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3503
3503
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3504
3504
|
}
|
|
3505
|
-
}, e.__parse =
|
|
3505
|
+
}, e.__parse = gn, e.formats = {
|
|
3506
3506
|
number: {
|
|
3507
3507
|
integer: {
|
|
3508
3508
|
maximumFractionDigits: 0
|
|
@@ -3563,7 +3563,7 @@ var _n = (
|
|
|
3563
3563
|
}, e;
|
|
3564
3564
|
}()
|
|
3565
3565
|
);
|
|
3566
|
-
function
|
|
3566
|
+
function Hn(e, t) {
|
|
3567
3567
|
if (t == null)
|
|
3568
3568
|
return;
|
|
3569
3569
|
if (t in e)
|
|
@@ -3584,92 +3584,92 @@ function xn(e, t) {
|
|
|
3584
3584
|
n = void 0;
|
|
3585
3585
|
return n;
|
|
3586
3586
|
}
|
|
3587
|
-
const R = {},
|
|
3587
|
+
const R = {}, Sn = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), Rt = (e, t) => {
|
|
3588
3588
|
if (t == null)
|
|
3589
3589
|
return;
|
|
3590
3590
|
if (t in R && e in R[t])
|
|
3591
3591
|
return R[t][e];
|
|
3592
|
-
const r =
|
|
3592
|
+
const r = ye(t);
|
|
3593
3593
|
for (let n = 0; n < r.length; n++) {
|
|
3594
|
-
const i = r[n], s =
|
|
3594
|
+
const i = r[n], s = An(i, e);
|
|
3595
3595
|
if (s)
|
|
3596
|
-
return
|
|
3596
|
+
return Sn(e, t, s);
|
|
3597
3597
|
}
|
|
3598
3598
|
};
|
|
3599
|
-
let
|
|
3600
|
-
const
|
|
3599
|
+
let je;
|
|
3600
|
+
const q = de({});
|
|
3601
3601
|
function Tn(e) {
|
|
3602
|
-
return
|
|
3602
|
+
return je[e] || null;
|
|
3603
3603
|
}
|
|
3604
|
-
function
|
|
3605
|
-
return e in
|
|
3604
|
+
function $t(e) {
|
|
3605
|
+
return e in je;
|
|
3606
3606
|
}
|
|
3607
|
-
function
|
|
3608
|
-
if (
|
|
3607
|
+
function An(e, t) {
|
|
3608
|
+
if (!$t(e))
|
|
3609
3609
|
return null;
|
|
3610
3610
|
const r = Tn(e);
|
|
3611
|
-
return
|
|
3611
|
+
return Hn(r, t);
|
|
3612
3612
|
}
|
|
3613
3613
|
function Bn(e) {
|
|
3614
3614
|
if (e == null)
|
|
3615
3615
|
return;
|
|
3616
|
-
const t =
|
|
3616
|
+
const t = ye(e);
|
|
3617
3617
|
for (let r = 0; r < t.length; r++) {
|
|
3618
3618
|
const n = t[r];
|
|
3619
|
-
if (
|
|
3619
|
+
if ($t(n))
|
|
3620
3620
|
return n;
|
|
3621
3621
|
}
|
|
3622
3622
|
}
|
|
3623
|
-
function
|
|
3624
|
-
delete R[e],
|
|
3623
|
+
function wn(e, ...t) {
|
|
3624
|
+
delete R[e], q.update((r) => (r[e] = Pr.all([r[e] || {}, ...t]), r));
|
|
3625
3625
|
}
|
|
3626
|
-
|
|
3627
|
-
[
|
|
3626
|
+
Q(
|
|
3627
|
+
[q],
|
|
3628
3628
|
([e]) => Object.keys(e)
|
|
3629
3629
|
);
|
|
3630
|
-
|
|
3631
|
-
const
|
|
3632
|
-
function
|
|
3633
|
-
|
|
3630
|
+
q.subscribe((e) => je = e);
|
|
3631
|
+
const le = {};
|
|
3632
|
+
function Pn(e, t) {
|
|
3633
|
+
le[e].delete(t), le[e].size === 0 && delete le[e];
|
|
3634
3634
|
}
|
|
3635
|
-
function
|
|
3636
|
-
return
|
|
3635
|
+
function Ut(e) {
|
|
3636
|
+
return le[e];
|
|
3637
3637
|
}
|
|
3638
|
-
function
|
|
3639
|
-
return
|
|
3640
|
-
const r =
|
|
3638
|
+
function On(e) {
|
|
3639
|
+
return ye(e).map((t) => {
|
|
3640
|
+
const r = Ut(t);
|
|
3641
3641
|
return [t, r ? [...r] : []];
|
|
3642
3642
|
}).filter(([, t]) => t.length > 0);
|
|
3643
3643
|
}
|
|
3644
|
-
function
|
|
3645
|
-
return e == null ? !1 :
|
|
3644
|
+
function Ue(e) {
|
|
3645
|
+
return e == null ? !1 : ye(e).some(
|
|
3646
3646
|
(t) => {
|
|
3647
3647
|
var r;
|
|
3648
|
-
return (r =
|
|
3648
|
+
return (r = Ut(t)) == null ? void 0 : r.size;
|
|
3649
3649
|
}
|
|
3650
3650
|
);
|
|
3651
3651
|
}
|
|
3652
|
-
function
|
|
3652
|
+
function Nn(e, t) {
|
|
3653
3653
|
return Promise.all(
|
|
3654
|
-
t.map((n) => (
|
|
3655
|
-
).then((n) =>
|
|
3656
|
-
}
|
|
3657
|
-
const
|
|
3658
|
-
function
|
|
3659
|
-
if (
|
|
3660
|
-
return e in
|
|
3661
|
-
const t =
|
|
3662
|
-
return
|
|
3654
|
+
t.map((n) => (Pn(e, n), n().then((i) => i.default || i)))
|
|
3655
|
+
).then((n) => wn(e, ...n));
|
|
3656
|
+
}
|
|
3657
|
+
const Y = {};
|
|
3658
|
+
function Dt(e) {
|
|
3659
|
+
if (!Ue(e))
|
|
3660
|
+
return e in Y ? Y[e] : Promise.resolve();
|
|
3661
|
+
const t = On(e);
|
|
3662
|
+
return Y[e] = Promise.all(
|
|
3663
3663
|
t.map(
|
|
3664
|
-
([r, n]) =>
|
|
3664
|
+
([r, n]) => Nn(r, n)
|
|
3665
3665
|
)
|
|
3666
3666
|
).then(() => {
|
|
3667
|
-
if (
|
|
3668
|
-
return
|
|
3669
|
-
delete
|
|
3670
|
-
}),
|
|
3667
|
+
if (Ue(e))
|
|
3668
|
+
return Dt(e);
|
|
3669
|
+
delete Y[e];
|
|
3670
|
+
}), Y[e];
|
|
3671
3671
|
}
|
|
3672
|
-
const
|
|
3672
|
+
const In = {
|
|
3673
3673
|
number: {
|
|
3674
3674
|
scientific: { notation: "scientific" },
|
|
3675
3675
|
engineering: { notation: "engineering" },
|
|
@@ -3698,159 +3698,159 @@ const Nn = {
|
|
|
3698
3698
|
timeZoneName: "short"
|
|
3699
3699
|
}
|
|
3700
3700
|
}
|
|
3701
|
-
},
|
|
3701
|
+
}, Ln = {
|
|
3702
3702
|
fallbackLocale: null,
|
|
3703
3703
|
loadingDelay: 200,
|
|
3704
|
-
formats:
|
|
3704
|
+
formats: In,
|
|
3705
3705
|
warnOnMissingMessages: !0,
|
|
3706
3706
|
handleMissingMessage: void 0,
|
|
3707
3707
|
ignoreTag: !0
|
|
3708
|
-
},
|
|
3708
|
+
}, Cn = Ln;
|
|
3709
3709
|
function z() {
|
|
3710
|
-
return
|
|
3710
|
+
return Cn;
|
|
3711
3711
|
}
|
|
3712
|
-
const Be =
|
|
3713
|
-
var
|
|
3712
|
+
const Be = de(!1);
|
|
3713
|
+
var Mn = Object.defineProperty, Rn = Object.defineProperties, $n = Object.getOwnPropertyDescriptors, st = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, ot = (e, t, r) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gn = (e, t) => {
|
|
3714
3714
|
for (var r in t || (t = {}))
|
|
3715
|
-
|
|
3716
|
-
if (
|
|
3717
|
-
for (var r of
|
|
3718
|
-
|
|
3715
|
+
Un.call(t, r) && ot(e, r, t[r]);
|
|
3716
|
+
if (st)
|
|
3717
|
+
for (var r of st(t))
|
|
3718
|
+
Dn.call(t, r) && ot(e, r, t[r]);
|
|
3719
3719
|
return e;
|
|
3720
|
-
},
|
|
3721
|
-
let
|
|
3722
|
-
const
|
|
3723
|
-
function
|
|
3720
|
+
}, Fn = (e, t) => Rn(e, $n(t));
|
|
3721
|
+
let De;
|
|
3722
|
+
const ce = de(null);
|
|
3723
|
+
function at(e) {
|
|
3724
3724
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3725
3725
|
}
|
|
3726
|
-
function
|
|
3727
|
-
const r =
|
|
3728
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3726
|
+
function ye(e, t = z().fallbackLocale) {
|
|
3727
|
+
const r = at(e);
|
|
3728
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...at(t)])] : r;
|
|
3729
3729
|
}
|
|
3730
3730
|
function U() {
|
|
3731
|
-
return
|
|
3731
|
+
return De != null ? De : void 0;
|
|
3732
3732
|
}
|
|
3733
|
-
|
|
3734
|
-
|
|
3733
|
+
ce.subscribe((e) => {
|
|
3734
|
+
De = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3735
3735
|
});
|
|
3736
|
-
const
|
|
3737
|
-
if (e && Bn(e) &&
|
|
3736
|
+
const jn = (e) => {
|
|
3737
|
+
if (e && Bn(e) && Ue(e)) {
|
|
3738
3738
|
const { loadingDelay: t } = z();
|
|
3739
3739
|
let r;
|
|
3740
3740
|
return typeof window != "undefined" && U() != null && t ? r = window.setTimeout(
|
|
3741
3741
|
() => Be.set(!0),
|
|
3742
3742
|
t
|
|
3743
|
-
) : Be.set(!0),
|
|
3744
|
-
|
|
3743
|
+
) : Be.set(!0), Dt(e).then(() => {
|
|
3744
|
+
ce.set(e);
|
|
3745
3745
|
}).finally(() => {
|
|
3746
3746
|
clearTimeout(r), Be.set(!1);
|
|
3747
3747
|
});
|
|
3748
3748
|
}
|
|
3749
|
-
return
|
|
3750
|
-
}, $ = Gn(
|
|
3751
|
-
set:
|
|
3752
|
-
}),
|
|
3749
|
+
return ce.set(e);
|
|
3750
|
+
}, $ = Fn(Gn({}, ce), {
|
|
3751
|
+
set: jn
|
|
3752
|
+
}), Ee = (e) => {
|
|
3753
3753
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3754
3754
|
return (n) => {
|
|
3755
3755
|
const i = JSON.stringify(n);
|
|
3756
3756
|
return i in t ? t[i] : t[i] = e(n);
|
|
3757
3757
|
};
|
|
3758
3758
|
};
|
|
3759
|
-
var
|
|
3759
|
+
var kn = Object.defineProperty, me = Object.getOwnPropertySymbols, Gt = Object.prototype.hasOwnProperty, Ft = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ke = (e, t) => {
|
|
3760
3760
|
for (var r in t || (t = {}))
|
|
3761
|
-
|
|
3762
|
-
if (
|
|
3763
|
-
for (var r of
|
|
3764
|
-
|
|
3761
|
+
Gt.call(t, r) && ut(e, r, t[r]);
|
|
3762
|
+
if (me)
|
|
3763
|
+
for (var r of me(t))
|
|
3764
|
+
Ft.call(t, r) && ut(e, r, t[r]);
|
|
3765
3765
|
return e;
|
|
3766
|
-
},
|
|
3766
|
+
}, J = (e, t) => {
|
|
3767
3767
|
var r = {};
|
|
3768
3768
|
for (var n in e)
|
|
3769
|
-
|
|
3770
|
-
if (e != null &&
|
|
3771
|
-
for (var n of
|
|
3772
|
-
t.indexOf(n) < 0 &&
|
|
3769
|
+
Gt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3770
|
+
if (e != null && me)
|
|
3771
|
+
for (var n of me(e))
|
|
3772
|
+
t.indexOf(n) < 0 && Ft.call(e, n) && (r[n] = e[n]);
|
|
3773
3773
|
return r;
|
|
3774
3774
|
};
|
|
3775
|
-
const
|
|
3775
|
+
const re = (e, t) => {
|
|
3776
3776
|
const { formats: r } = z();
|
|
3777
3777
|
if (e in r && t in r[e])
|
|
3778
3778
|
return r[e][t];
|
|
3779
3779
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3780
|
-
},
|
|
3780
|
+
}, Vn = Ee(
|
|
3781
3781
|
(e) => {
|
|
3782
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3782
|
+
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
3783
3783
|
if (r == null)
|
|
3784
3784
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3785
|
-
return n && (i =
|
|
3785
|
+
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
|
3786
3786
|
}
|
|
3787
|
-
),
|
|
3787
|
+
), Xn = Ee(
|
|
3788
3788
|
(e) => {
|
|
3789
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3789
|
+
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
3790
3790
|
if (r == null)
|
|
3791
3791
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3792
|
-
return n ? i =
|
|
3792
|
+
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3793
3793
|
}
|
|
3794
|
-
),
|
|
3794
|
+
), Wn = Ee(
|
|
3795
3795
|
(e) => {
|
|
3796
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3796
|
+
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
3797
3797
|
if (r == null)
|
|
3798
3798
|
throw new Error(
|
|
3799
3799
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3800
3800
|
);
|
|
3801
|
-
return n ? i =
|
|
3801
|
+
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3802
3802
|
}
|
|
3803
3803
|
), zn = (e = {}) => {
|
|
3804
3804
|
var t = e, {
|
|
3805
3805
|
locale: r = U()
|
|
3806
|
-
} = t, n =
|
|
3806
|
+
} = t, n = J(t, [
|
|
3807
3807
|
"locale"
|
|
3808
3808
|
]);
|
|
3809
|
-
return
|
|
3810
|
-
},
|
|
3809
|
+
return Vn(ke({ locale: r }, n));
|
|
3810
|
+
}, Zn = (e = {}) => {
|
|
3811
3811
|
var t = e, {
|
|
3812
3812
|
locale: r = U()
|
|
3813
|
-
} = t, n =
|
|
3813
|
+
} = t, n = J(t, [
|
|
3814
3814
|
"locale"
|
|
3815
3815
|
]);
|
|
3816
|
-
return
|
|
3817
|
-
},
|
|
3816
|
+
return Xn(ke({ locale: r }, n));
|
|
3817
|
+
}, Qn = (e = {}) => {
|
|
3818
3818
|
var t = e, {
|
|
3819
3819
|
locale: r = U()
|
|
3820
|
-
} = t, n =
|
|
3820
|
+
} = t, n = J(t, [
|
|
3821
3821
|
"locale"
|
|
3822
3822
|
]);
|
|
3823
|
-
return
|
|
3824
|
-
},
|
|
3823
|
+
return Wn(ke({ locale: r }, n));
|
|
3824
|
+
}, qn = Ee(
|
|
3825
3825
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3826
|
-
(e, t = U()) => new
|
|
3826
|
+
(e, t = U()) => new xn(e, t, z().formats, {
|
|
3827
3827
|
ignoreTag: z().ignoreTag
|
|
3828
3828
|
})
|
|
3829
|
-
),
|
|
3829
|
+
), Jn = (e, t = {}) => {
|
|
3830
3830
|
var r, n, i, s;
|
|
3831
3831
|
let o = t;
|
|
3832
3832
|
typeof e == "object" && (o = e, e = o.id);
|
|
3833
3833
|
const {
|
|
3834
|
-
values:
|
|
3834
|
+
values: a,
|
|
3835
3835
|
locale: l = U(),
|
|
3836
|
-
default:
|
|
3836
|
+
default: u
|
|
3837
3837
|
} = o;
|
|
3838
3838
|
if (l == null)
|
|
3839
3839
|
throw new Error(
|
|
3840
3840
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3841
3841
|
);
|
|
3842
|
-
let h =
|
|
3842
|
+
let h = Rt(e, l);
|
|
3843
3843
|
if (!h)
|
|
3844
|
-
h = (s = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue:
|
|
3844
|
+
h = (s = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3845
3845
|
else if (typeof h != "string")
|
|
3846
3846
|
return console.warn(
|
|
3847
3847
|
`[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.`
|
|
3848
3848
|
), h;
|
|
3849
|
-
if (!
|
|
3849
|
+
if (!a)
|
|
3850
3850
|
return h;
|
|
3851
3851
|
let c = h;
|
|
3852
3852
|
try {
|
|
3853
|
-
c =
|
|
3853
|
+
c = qn(h, l).format(a);
|
|
3854
3854
|
} catch (f) {
|
|
3855
3855
|
f instanceof Error && console.warn(
|
|
3856
3856
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3858,23 +3858,24 @@ const te = (e, t) => {
|
|
|
3858
3858
|
);
|
|
3859
3859
|
}
|
|
3860
3860
|
return c;
|
|
3861
|
-
},
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
function
|
|
3861
|
+
}, Yn = (e, t) => Qn(t).format(e), Kn = (e, t) => Zn(t).format(e), ei = (e, t) => zn(t).format(e), ti = (e, t = U()) => Rt(e, t), Bi = Q([$, q], () => Jn);
|
|
3862
|
+
Q([$], () => Yn);
|
|
3863
|
+
Q([$], () => Kn);
|
|
3864
|
+
Q([$], () => ei);
|
|
3865
|
+
Q([$, q], () => ti);
|
|
3866
|
+
function ri({ withLocale: e, translations: t }) {
|
|
3867
3867
|
$.subscribe((r) => {
|
|
3868
|
-
r == null && (
|
|
3868
|
+
r == null && (q.set(t), $.set(e));
|
|
3869
3869
|
});
|
|
3870
3870
|
}
|
|
3871
|
-
|
|
3871
|
+
const j = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
3872
|
+
function ni(e, t) {
|
|
3872
3873
|
if (e) {
|
|
3873
3874
|
const r = document.createElement("style");
|
|
3874
3875
|
r.innerHTML = t, e.appendChild(r);
|
|
3875
3876
|
}
|
|
3876
3877
|
}
|
|
3877
|
-
function
|
|
3878
|
+
function ii(e, t) {
|
|
3878
3879
|
if (!e || !t)
|
|
3879
3880
|
return;
|
|
3880
3881
|
const r = new URL(t);
|
|
@@ -3885,13 +3886,41 @@ function ni(e, t) {
|
|
|
3885
3886
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3886
3887
|
});
|
|
3887
3888
|
}
|
|
3888
|
-
function
|
|
3889
|
-
if (window.emMessageBus)
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3889
|
+
function si(e, t, r, n = !1) {
|
|
3890
|
+
if (!window.emMessageBus)
|
|
3891
|
+
return;
|
|
3892
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
3893
|
+
return r = oi(e, t), r;
|
|
3894
|
+
window[j] || (window[j] = {}), r = ai(e, t);
|
|
3895
|
+
const s = r.unsubscribe.bind(r), o = () => {
|
|
3896
|
+
if (window[j][t]) {
|
|
3897
|
+
const a = window[j][t];
|
|
3898
|
+
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[j][t];
|
|
3899
|
+
}
|
|
3900
|
+
s();
|
|
3901
|
+
};
|
|
3902
|
+
return r.unsubscribe = o, r;
|
|
3903
|
+
}
|
|
3904
|
+
function oi(e, t) {
|
|
3905
|
+
const r = document.createElement("style");
|
|
3906
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
3907
|
+
e && (r.innerHTML = n, e.appendChild(r));
|
|
3908
|
+
});
|
|
3909
|
+
}
|
|
3910
|
+
function ai(e, t) {
|
|
3911
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
3912
|
+
var a;
|
|
3913
|
+
if (!e)
|
|
3914
|
+
return;
|
|
3915
|
+
const n = e.getRootNode(), i = window[j];
|
|
3916
|
+
let s = (a = i[t]) == null ? void 0 : a.sheet;
|
|
3917
|
+
s ? i[t].refCount = i[t].refCount + 1 : (s = new CSSStyleSheet(), s.replaceSync(r), i[t] = {
|
|
3918
|
+
sheet: s,
|
|
3919
|
+
refCount: 1
|
|
3893
3920
|
});
|
|
3894
|
-
|
|
3921
|
+
const o = n.adoptedStyleSheets || [];
|
|
3922
|
+
o.includes(s) || (n.adoptedStyleSheets = [...o, s]);
|
|
3923
|
+
});
|
|
3895
3924
|
}
|
|
3896
3925
|
if (typeof window != "undefined") {
|
|
3897
3926
|
let e = function(t) {
|
|
@@ -3905,18 +3934,18 @@ if (typeof window != "undefined") {
|
|
|
3905
3934
|
}
|
|
3906
3935
|
};
|
|
3907
3936
|
};
|
|
3908
|
-
customElements.define = e(customElements.define), import("./CasinoGamesCategorySection-
|
|
3937
|
+
customElements.define = e(customElements.define), import("./CasinoGamesCategorySection-DTAqR94W.js").then((t) => t.C).then(({ default: t }) => {
|
|
3909
3938
|
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", t.element);
|
|
3910
3939
|
});
|
|
3911
3940
|
}
|
|
3912
|
-
function
|
|
3913
|
-
|
|
3941
|
+
function ui(e) {
|
|
3942
|
+
qt(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))}");
|
|
3914
3943
|
}
|
|
3915
|
-
function
|
|
3944
|
+
function ht(e) {
|
|
3916
3945
|
let t;
|
|
3917
3946
|
return {
|
|
3918
3947
|
c() {
|
|
3919
|
-
t =
|
|
3948
|
+
t = ie("casino-games-category-section"), g(
|
|
3920
3949
|
t,
|
|
3921
3950
|
"session",
|
|
3922
3951
|
/*session*/
|
|
@@ -4014,7 +4043,7 @@ function ut(e) {
|
|
|
4014
4043
|
);
|
|
4015
4044
|
},
|
|
4016
4045
|
m(r, n) {
|
|
4017
|
-
|
|
4046
|
+
ge(r, t, n);
|
|
4018
4047
|
},
|
|
4019
4048
|
p(r, n) {
|
|
4020
4049
|
n & /*session*/
|
|
@@ -4134,57 +4163,57 @@ function ut(e) {
|
|
|
4134
4163
|
);
|
|
4135
4164
|
},
|
|
4136
4165
|
d(r) {
|
|
4137
|
-
r &&
|
|
4166
|
+
r && ne(t);
|
|
4138
4167
|
}
|
|
4139
4168
|
};
|
|
4140
4169
|
}
|
|
4141
|
-
function
|
|
4170
|
+
function hi(e) {
|
|
4142
4171
|
let t, r = (
|
|
4143
4172
|
/*session*/
|
|
4144
|
-
e[4] &&
|
|
4173
|
+
e[4] && ht(e)
|
|
4145
4174
|
);
|
|
4146
4175
|
return {
|
|
4147
4176
|
c() {
|
|
4148
|
-
t =
|
|
4177
|
+
t = ie("div"), r && r.c(), Fe(t, "class", "CasinoFavoritesSectionContainer");
|
|
4149
4178
|
},
|
|
4150
4179
|
m(n, i) {
|
|
4151
|
-
|
|
4180
|
+
ge(n, t, i), r && r.m(t, null), e[20](t);
|
|
4152
4181
|
},
|
|
4153
4182
|
p(n, [i]) {
|
|
4154
4183
|
/*session*/
|
|
4155
|
-
n[4] ? r ? r.p(n, i) : (r =
|
|
4184
|
+
n[4] ? r ? r.p(n, i) : (r = ht(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4156
4185
|
},
|
|
4157
4186
|
i: L,
|
|
4158
4187
|
o: L,
|
|
4159
4188
|
d(n) {
|
|
4160
|
-
n &&
|
|
4189
|
+
n && ne(t), r && r.d(), e[20](null);
|
|
4161
4190
|
}
|
|
4162
4191
|
};
|
|
4163
4192
|
}
|
|
4164
|
-
function
|
|
4165
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { currency: s = "" } = t, { lang: o = "" } = t, { session:
|
|
4166
|
-
|
|
4193
|
+
function li(e, t, r) {
|
|
4194
|
+
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { currency: s = "" } = t, { lang: o = "" } = t, { session: a = "" } = t, { userid: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { livecasino: f = "false" } = t, { integratedgameframemobile: b = "false" } = t, { integratedgameframedesktop: y = "false" } = t, { showgamename: x = "" } = t, { gamepagemodalurl: S = "false" } = t, { visiblegames: O = "" } = t, { favorites: P = "" } = t, { casinomygames: A = "false" } = t, { fetchviaevent: I = "true" } = t, { mbsource: w } = t, C, E;
|
|
4195
|
+
ri({ withLocale: "en", translations: {} }), rr(() => () => {
|
|
4167
4196
|
});
|
|
4168
|
-
function
|
|
4169
|
-
|
|
4170
|
-
|
|
4197
|
+
function N(m) {
|
|
4198
|
+
we[m ? "unshift" : "push"](() => {
|
|
4199
|
+
E = m, r(19, E);
|
|
4171
4200
|
});
|
|
4172
4201
|
}
|
|
4173
4202
|
return e.$$set = (m) => {
|
|
4174
|
-
"endpoint" in m && r(0, n = m.endpoint), "datasource" in m && r(1, i = m.datasource), "currency" in m && r(2, s = m.currency), "lang" in m && r(3, o = m.lang), "session" in m && r(4,
|
|
4203
|
+
"endpoint" in m && r(0, n = m.endpoint), "datasource" in m && r(1, i = m.datasource), "currency" in m && r(2, s = m.currency), "lang" in m && r(3, o = m.lang), "session" in m && r(4, a = m.session), "userid" in m && r(5, l = m.userid), "clientstyling" in m && r(6, u = m.clientstyling), "clientstylingurl" in m && r(7, h = m.clientstylingurl), "translationurl" in m && r(8, c = m.translationurl), "livecasino" in m && r(9, f = m.livecasino), "integratedgameframemobile" in m && r(10, b = m.integratedgameframemobile), "integratedgameframedesktop" in m && r(11, y = m.integratedgameframedesktop), "showgamename" in m && r(12, x = m.showgamename), "gamepagemodalurl" in m && r(13, S = m.gamepagemodalurl), "visiblegames" in m && r(14, O = m.visiblegames), "favorites" in m && r(15, P = m.favorites), "casinomygames" in m && r(16, A = m.casinomygames), "fetchviaevent" in m && r(17, I = m.fetchviaevent), "mbsource" in m && r(18, w = m.mbsource);
|
|
4175
4204
|
}, e.$$.update = () => {
|
|
4176
4205
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4177
|
-
524352 &&
|
|
4178
|
-
524416 && h &&
|
|
4179
|
-
786432 &&
|
|
4206
|
+
524352 && u && E && ni(E, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4207
|
+
524416 && h && E && ii(E, h), e.$$.dirty & /*customStylingContainer, mbsource*/
|
|
4208
|
+
786432 && E && si(E, `${w}.Style`, C);
|
|
4180
4209
|
}, [
|
|
4181
4210
|
n,
|
|
4182
4211
|
i,
|
|
4183
4212
|
s,
|
|
4184
4213
|
o,
|
|
4185
|
-
u,
|
|
4186
|
-
l,
|
|
4187
4214
|
a,
|
|
4215
|
+
l,
|
|
4216
|
+
u,
|
|
4188
4217
|
h,
|
|
4189
4218
|
c,
|
|
4190
4219
|
f,
|
|
@@ -4192,23 +4221,23 @@ function ai(e, t, r) {
|
|
|
4192
4221
|
y,
|
|
4193
4222
|
x,
|
|
4194
4223
|
S,
|
|
4195
|
-
N,
|
|
4196
4224
|
O,
|
|
4225
|
+
P,
|
|
4197
4226
|
A,
|
|
4198
4227
|
I,
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4228
|
+
w,
|
|
4229
|
+
E,
|
|
4230
|
+
N
|
|
4202
4231
|
];
|
|
4203
4232
|
}
|
|
4204
|
-
class
|
|
4233
|
+
class jt extends fr {
|
|
4205
4234
|
constructor(t) {
|
|
4206
|
-
super(),
|
|
4235
|
+
super(), hr(
|
|
4207
4236
|
this,
|
|
4208
4237
|
t,
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4238
|
+
li,
|
|
4239
|
+
hi,
|
|
4240
|
+
ft,
|
|
4212
4241
|
{
|
|
4213
4242
|
endpoint: 0,
|
|
4214
4243
|
datasource: 1,
|
|
@@ -4230,7 +4259,7 @@ class Ft extends lr {
|
|
|
4230
4259
|
fetchviaevent: 17,
|
|
4231
4260
|
mbsource: 18
|
|
4232
4261
|
},
|
|
4233
|
-
|
|
4262
|
+
ui
|
|
4234
4263
|
);
|
|
4235
4264
|
}
|
|
4236
4265
|
get endpoint() {
|
|
@@ -4348,51 +4377,51 @@ class Ft extends lr {
|
|
|
4348
4377
|
this.$$set({ mbsource: t }), H();
|
|
4349
4378
|
}
|
|
4350
4379
|
}
|
|
4351
|
-
|
|
4352
|
-
const
|
|
4380
|
+
lr(jt, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, showgamename: {}, gamepagemodalurl: {}, visiblegames: {}, favorites: {}, casinomygames: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
|
|
4381
|
+
const wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4353
4382
|
__proto__: null,
|
|
4354
|
-
default:
|
|
4383
|
+
default: jt
|
|
4355
4384
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4356
4385
|
export {
|
|
4357
4386
|
$,
|
|
4358
4387
|
ni as A,
|
|
4359
4388
|
ii as B,
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4389
|
+
si as C,
|
|
4390
|
+
lr as D,
|
|
4391
|
+
Bi as E,
|
|
4392
|
+
ci as F,
|
|
4393
|
+
vi as G,
|
|
4394
|
+
_i as H,
|
|
4395
|
+
Hi as I,
|
|
4396
|
+
q as J,
|
|
4397
|
+
Z as K,
|
|
4398
|
+
Ei as L,
|
|
4399
|
+
wi as M,
|
|
4400
|
+
fr as S,
|
|
4401
|
+
wn as a,
|
|
4402
|
+
qt as b,
|
|
4403
|
+
ge as c,
|
|
4404
|
+
ne as d,
|
|
4405
|
+
ie as e,
|
|
4377
4406
|
H as f,
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4407
|
+
Fe as g,
|
|
4408
|
+
mi as h,
|
|
4409
|
+
hr as i,
|
|
4410
|
+
rr as j,
|
|
4411
|
+
we as k,
|
|
4412
|
+
bi as l,
|
|
4413
|
+
Qt as m,
|
|
4385
4414
|
L as n,
|
|
4386
|
-
|
|
4415
|
+
xi as o,
|
|
4387
4416
|
di as p,
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4417
|
+
yi as q,
|
|
4418
|
+
Si as r,
|
|
4419
|
+
ft as s,
|
|
4420
|
+
mt as t,
|
|
4421
|
+
Ai as u,
|
|
4422
|
+
g as v,
|
|
4423
|
+
Ti as w,
|
|
4424
|
+
gi as x,
|
|
4425
|
+
pi as y,
|
|
4426
|
+
Kt as z
|
|
4398
4427
|
};
|