@everymatrix/casino-navigation-search 1.53.11 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCategories-BVV69FR_.js → CasinoCategories-Br7I1MKI.js} +1014 -974
- package/components/CasinoCategories-CjumhZf4.cjs +3 -0
- package/components/{CasinoCategoriesProviders-D46WISf1.js → CasinoCategoriesProviders-DIK5M_eQ.js} +5 -5
- package/components/CasinoCategoriesProviders-DjoY3afG.cjs +1 -0
- package/components/{CasinoGameThumbnail-4DpF2Wt0.js → CasinoGameThumbnail-8RglhOtI.js} +740 -724
- package/components/CasinoGameThumbnail-DfWZhum9.cjs +49 -0
- package/components/CasinoNavigationSearch-Cc__fl-A.cjs +1 -0
- package/components/{CasinoNavigationSearch-BTJpl3Ss.js → CasinoNavigationSearch-D28DtrSO.js} +9 -9
- package/components/CasinoProviders-BGHDpsL7.cjs +1 -0
- package/components/{CasinoProviders-ZOdiCkDq.js → CasinoProviders-bvqlymHa.js} +1 -1
- package/components/{CasinoSearch-DlTZgI6O.js → CasinoSearch-DaHWz-w2.js} +223 -221
- package/components/CasinoSearch-DvAR4JpK.cjs +1 -0
- package/es2015/casino-navigation-search.cjs +1 -0
- package/es2015/casino-navigation-search.js +16 -0
- package/package.json +12 -12
- package/esnext/casino-navigation-search.js +0 -14
|
@@ -1,50 +1,79 @@
|
|
|
1
|
-
|
|
1
|
+
var nr = Object.defineProperty, ir = Object.defineProperties;
|
|
2
|
+
var sr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var or = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ce = (e, t, r) => t in e ? nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
or.call(t, r) && Ce(e, r, t[r]);
|
|
8
|
+
if (qe)
|
|
9
|
+
for (var r of qe(t))
|
|
10
|
+
ar.call(t, r) && Ce(e, r, t[r]);
|
|
11
|
+
return e;
|
|
12
|
+
}, Ye = (e, t) => ir(e, sr(t));
|
|
13
|
+
var O = (e, t, r) => Ce(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
+
var Ke = (e, t, r) => new Promise((n, i) => {
|
|
15
|
+
var s = (h) => {
|
|
16
|
+
try {
|
|
17
|
+
u(r.next(h));
|
|
18
|
+
} catch (a) {
|
|
19
|
+
i(a);
|
|
20
|
+
}
|
|
21
|
+
}, o = (h) => {
|
|
22
|
+
try {
|
|
23
|
+
u(r.throw(h));
|
|
24
|
+
} catch (a) {
|
|
25
|
+
i(a);
|
|
26
|
+
}
|
|
27
|
+
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
|
+
u((r = r.apply(e, t)).next());
|
|
29
|
+
});
|
|
30
|
+
function M() {
|
|
2
31
|
}
|
|
3
|
-
function
|
|
32
|
+
function vt(e) {
|
|
4
33
|
return e();
|
|
5
34
|
}
|
|
6
|
-
function
|
|
35
|
+
function et() {
|
|
7
36
|
return /* @__PURE__ */ Object.create(null);
|
|
8
37
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
38
|
+
function ue(e) {
|
|
39
|
+
e.forEach(vt);
|
|
11
40
|
}
|
|
12
|
-
function
|
|
41
|
+
function Ve(e) {
|
|
13
42
|
return typeof e == "function";
|
|
14
43
|
}
|
|
15
|
-
function
|
|
44
|
+
function Tt(e, t) {
|
|
16
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
46
|
}
|
|
18
|
-
let
|
|
19
|
-
function
|
|
20
|
-
return e === t ? !0 : (
|
|
47
|
+
let le;
|
|
48
|
+
function pe(e, t) {
|
|
49
|
+
return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
|
|
21
50
|
}
|
|
22
|
-
function
|
|
51
|
+
function ur(e) {
|
|
23
52
|
return Object.keys(e).length === 0;
|
|
24
53
|
}
|
|
25
|
-
function
|
|
54
|
+
function Ct(e, ...t) {
|
|
26
55
|
if (e == null) {
|
|
27
56
|
for (const n of t)
|
|
28
57
|
n(void 0);
|
|
29
|
-
return
|
|
58
|
+
return M;
|
|
30
59
|
}
|
|
31
60
|
const r = e.subscribe(...t);
|
|
32
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
62
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function hr(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(Ct(t, r));
|
|
36
65
|
}
|
|
37
66
|
function v(e, t) {
|
|
38
67
|
e.appendChild(t);
|
|
39
68
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
69
|
+
function lr(e, t, r) {
|
|
70
|
+
const n = fr(e);
|
|
42
71
|
if (!n.getElementById(t)) {
|
|
43
72
|
const i = B("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
i.id = t, i.textContent = r, cr(n, i);
|
|
45
74
|
}
|
|
46
75
|
}
|
|
47
|
-
function
|
|
76
|
+
function fr(e) {
|
|
48
77
|
if (!e) return document;
|
|
49
78
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
50
79
|
return t && /** @type {ShadowRoot} */
|
|
@@ -53,76 +82,76 @@ function Kt(e) {
|
|
|
53
82
|
t
|
|
54
83
|
) : e.ownerDocument;
|
|
55
84
|
}
|
|
56
|
-
function
|
|
85
|
+
function cr(e, t) {
|
|
57
86
|
return v(
|
|
58
87
|
/** @type {Document} */
|
|
59
88
|
e.head || e,
|
|
60
89
|
t
|
|
61
90
|
), t.sheet;
|
|
62
91
|
}
|
|
63
|
-
function
|
|
92
|
+
function V(e, t, r) {
|
|
64
93
|
e.insertBefore(t, r || null);
|
|
65
94
|
}
|
|
66
|
-
function
|
|
95
|
+
function j(e) {
|
|
67
96
|
e.parentNode && e.parentNode.removeChild(e);
|
|
68
97
|
}
|
|
69
|
-
function
|
|
98
|
+
function tt(e, t) {
|
|
70
99
|
for (let r = 0; r < e.length; r += 1)
|
|
71
100
|
e[r] && e[r].d(t);
|
|
72
101
|
}
|
|
73
102
|
function B(e) {
|
|
74
103
|
return document.createElement(e);
|
|
75
104
|
}
|
|
76
|
-
function
|
|
105
|
+
function gr(e) {
|
|
77
106
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
78
107
|
}
|
|
79
|
-
function
|
|
108
|
+
function U(e) {
|
|
80
109
|
return document.createTextNode(e);
|
|
81
110
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
111
|
+
function R() {
|
|
112
|
+
return U(" ");
|
|
84
113
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
114
|
+
function Ci() {
|
|
115
|
+
return U("");
|
|
87
116
|
}
|
|
88
|
-
function
|
|
117
|
+
function Ht(e, t, r, n) {
|
|
89
118
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
90
119
|
}
|
|
91
120
|
function H(e, t, r) {
|
|
92
121
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
93
122
|
}
|
|
94
|
-
function
|
|
123
|
+
function Hi(e, t, r) {
|
|
95
124
|
const n = t.toLowerCase();
|
|
96
125
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
|
|
97
126
|
}
|
|
98
|
-
function
|
|
127
|
+
function mr(e) {
|
|
99
128
|
return Array.from(e.childNodes);
|
|
100
129
|
}
|
|
101
|
-
function
|
|
130
|
+
function F(e, t) {
|
|
102
131
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
103
132
|
t);
|
|
104
133
|
}
|
|
105
|
-
function
|
|
106
|
-
e.value = t
|
|
134
|
+
function Ai(e, t) {
|
|
135
|
+
e.value = t == null ? "" : t;
|
|
107
136
|
}
|
|
108
|
-
function
|
|
137
|
+
function Si(e, t, r) {
|
|
109
138
|
e.classList.toggle(t, !!r);
|
|
110
139
|
}
|
|
111
|
-
class
|
|
112
|
-
/**
|
|
113
|
-
* @private
|
|
114
|
-
* @default false
|
|
115
|
-
*/
|
|
116
|
-
is_svg = !1;
|
|
117
|
-
/** parent for creating node */
|
|
118
|
-
e = void 0;
|
|
119
|
-
/** html tag nodes */
|
|
120
|
-
n = void 0;
|
|
121
|
-
/** target */
|
|
122
|
-
t = void 0;
|
|
123
|
-
/** anchor */
|
|
124
|
-
a = void 0;
|
|
140
|
+
class Bi {
|
|
125
141
|
constructor(t = !1) {
|
|
142
|
+
/**
|
|
143
|
+
* @private
|
|
144
|
+
* @default false
|
|
145
|
+
*/
|
|
146
|
+
O(this, "is_svg", !1);
|
|
147
|
+
/** parent for creating node */
|
|
148
|
+
O(this, "e");
|
|
149
|
+
/** html tag nodes */
|
|
150
|
+
O(this, "n");
|
|
151
|
+
/** target */
|
|
152
|
+
O(this, "t");
|
|
153
|
+
/** anchor */
|
|
154
|
+
O(this, "a");
|
|
126
155
|
this.is_svg = t, this.e = this.n = null;
|
|
127
156
|
}
|
|
128
157
|
/**
|
|
@@ -139,7 +168,7 @@ class di {
|
|
|
139
168
|
* @returns {void}
|
|
140
169
|
*/
|
|
141
170
|
m(t, r, n = null) {
|
|
142
|
-
this.e || (this.is_svg ? this.e =
|
|
171
|
+
this.e || (this.is_svg ? this.e = gr(
|
|
143
172
|
/** @type {keyof SVGElementTagNameMap} */
|
|
144
173
|
r.nodeName
|
|
145
174
|
) : this.e = B(
|
|
@@ -163,7 +192,7 @@ class di {
|
|
|
163
192
|
* @returns {void} */
|
|
164
193
|
i(t) {
|
|
165
194
|
for (let r = 0; r < this.n.length; r += 1)
|
|
166
|
-
|
|
195
|
+
V(this.t, this.n[r], t);
|
|
167
196
|
}
|
|
168
197
|
/**
|
|
169
198
|
* @param {string} html
|
|
@@ -175,10 +204,10 @@ class di {
|
|
|
175
204
|
/**
|
|
176
205
|
* @returns {void} */
|
|
177
206
|
d() {
|
|
178
|
-
this.n.forEach(
|
|
207
|
+
this.n.forEach(j);
|
|
179
208
|
}
|
|
180
209
|
}
|
|
181
|
-
function
|
|
210
|
+
function dr(e) {
|
|
182
211
|
const t = {};
|
|
183
212
|
return e.childNodes.forEach(
|
|
184
213
|
/** @param {Element} node */
|
|
@@ -187,247 +216,251 @@ function nr(e) {
|
|
|
187
216
|
}
|
|
188
217
|
), t;
|
|
189
218
|
}
|
|
190
|
-
let
|
|
191
|
-
function
|
|
192
|
-
|
|
219
|
+
let se;
|
|
220
|
+
function ie(e) {
|
|
221
|
+
se = e;
|
|
193
222
|
}
|
|
194
|
-
function
|
|
195
|
-
if (!
|
|
196
|
-
return
|
|
223
|
+
function pr() {
|
|
224
|
+
if (!se) throw new Error("Function called outside component initialization");
|
|
225
|
+
return se;
|
|
197
226
|
}
|
|
198
|
-
function
|
|
199
|
-
|
|
227
|
+
function wi(e) {
|
|
228
|
+
pr().$$.on_mount.push(e);
|
|
200
229
|
}
|
|
201
|
-
const
|
|
202
|
-
let
|
|
203
|
-
const
|
|
204
|
-
let
|
|
205
|
-
function
|
|
206
|
-
|
|
230
|
+
const Z = [], Ne = [];
|
|
231
|
+
let Q = [];
|
|
232
|
+
const rt = [], At = /* @__PURE__ */ Promise.resolve();
|
|
233
|
+
let Le = !1;
|
|
234
|
+
function St() {
|
|
235
|
+
Le || (Le = !0, At.then($));
|
|
207
236
|
}
|
|
208
|
-
function
|
|
209
|
-
return
|
|
237
|
+
function Oi() {
|
|
238
|
+
return St(), At;
|
|
210
239
|
}
|
|
211
|
-
function
|
|
212
|
-
|
|
240
|
+
function Ie(e) {
|
|
241
|
+
Q.push(e);
|
|
213
242
|
}
|
|
214
|
-
const
|
|
215
|
-
let
|
|
216
|
-
function
|
|
217
|
-
if (
|
|
243
|
+
const He = /* @__PURE__ */ new Set();
|
|
244
|
+
let z = 0;
|
|
245
|
+
function $() {
|
|
246
|
+
if (z !== 0)
|
|
218
247
|
return;
|
|
219
|
-
const e =
|
|
248
|
+
const e = se;
|
|
220
249
|
do {
|
|
221
250
|
try {
|
|
222
|
-
for (;
|
|
223
|
-
const t =
|
|
224
|
-
|
|
251
|
+
for (; z < Z.length; ) {
|
|
252
|
+
const t = Z[z];
|
|
253
|
+
z++, ie(t), br(t.$$);
|
|
225
254
|
}
|
|
226
255
|
} catch (t) {
|
|
227
|
-
throw
|
|
256
|
+
throw Z.length = 0, z = 0, t;
|
|
228
257
|
}
|
|
229
|
-
for (
|
|
230
|
-
for (let t = 0; t <
|
|
231
|
-
const r =
|
|
232
|
-
|
|
258
|
+
for (ie(null), Z.length = 0, z = 0; Ne.length; ) Ne.pop()();
|
|
259
|
+
for (let t = 0; t < Q.length; t += 1) {
|
|
260
|
+
const r = Q[t];
|
|
261
|
+
He.has(r) || (He.add(r), r());
|
|
233
262
|
}
|
|
234
|
-
|
|
235
|
-
} while (
|
|
236
|
-
for (;
|
|
237
|
-
|
|
238
|
-
|
|
263
|
+
Q.length = 0;
|
|
264
|
+
} while (Z.length);
|
|
265
|
+
for (; rt.length; )
|
|
266
|
+
rt.pop()();
|
|
267
|
+
Le = !1, He.clear(), ie(e);
|
|
239
268
|
}
|
|
240
|
-
function
|
|
269
|
+
function br(e) {
|
|
241
270
|
if (e.fragment !== null) {
|
|
242
|
-
e.update(),
|
|
271
|
+
e.update(), ue(e.before_update);
|
|
243
272
|
const t = e.dirty;
|
|
244
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
273
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
|
|
245
274
|
}
|
|
246
275
|
}
|
|
247
|
-
function
|
|
276
|
+
function yr(e) {
|
|
248
277
|
const t = [], r = [];
|
|
249
|
-
|
|
278
|
+
Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
|
|
250
279
|
}
|
|
251
|
-
const
|
|
252
|
-
function
|
|
253
|
-
e && e.i && (
|
|
280
|
+
const _r = /* @__PURE__ */ new Set();
|
|
281
|
+
function Er(e, t) {
|
|
282
|
+
e && e.i && (_r.delete(e), e.i(t));
|
|
254
283
|
}
|
|
255
|
-
function
|
|
256
|
-
return e
|
|
284
|
+
function fe(e) {
|
|
285
|
+
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
257
286
|
}
|
|
258
|
-
function
|
|
287
|
+
function xr(e, t, r) {
|
|
259
288
|
const { fragment: n, after_update: i } = e.$$;
|
|
260
|
-
n && n.m(t, r),
|
|
261
|
-
const s = e.$$.on_mount.map(
|
|
262
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
263
|
-
}), i.forEach(
|
|
289
|
+
n && n.m(t, r), Ie(() => {
|
|
290
|
+
const s = e.$$.on_mount.map(vt).filter(Ve);
|
|
291
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ue(s), e.$$.on_mount = [];
|
|
292
|
+
}), i.forEach(Ie);
|
|
264
293
|
}
|
|
265
|
-
function
|
|
294
|
+
function vr(e, t) {
|
|
266
295
|
const r = e.$$;
|
|
267
|
-
r.fragment !== null && (
|
|
296
|
+
r.fragment !== null && (yr(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
268
297
|
}
|
|
269
|
-
function
|
|
270
|
-
e.$$.dirty[0] === -1 && (
|
|
298
|
+
function Tr(e, t) {
|
|
299
|
+
e.$$.dirty[0] === -1 && (Z.push(e), St(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
271
300
|
}
|
|
272
|
-
function
|
|
273
|
-
const
|
|
274
|
-
|
|
275
|
-
const
|
|
301
|
+
function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
302
|
+
const h = se;
|
|
303
|
+
ie(e);
|
|
304
|
+
const a = e.$$ = {
|
|
276
305
|
fragment: null,
|
|
277
306
|
ctx: [],
|
|
278
307
|
// state
|
|
279
308
|
props: s,
|
|
280
|
-
update:
|
|
309
|
+
update: M,
|
|
281
310
|
not_equal: i,
|
|
282
|
-
bound:
|
|
311
|
+
bound: et(),
|
|
283
312
|
// lifecycle
|
|
284
313
|
on_mount: [],
|
|
285
314
|
on_destroy: [],
|
|
286
315
|
on_disconnect: [],
|
|
287
316
|
before_update: [],
|
|
288
317
|
after_update: [],
|
|
289
|
-
context: new Map(t.context || (
|
|
318
|
+
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
290
319
|
// everything else
|
|
291
|
-
callbacks:
|
|
292
|
-
dirty:
|
|
320
|
+
callbacks: et(),
|
|
321
|
+
dirty: u,
|
|
293
322
|
skip_bound: !1,
|
|
294
|
-
root: t.target ||
|
|
323
|
+
root: t.target || h.$$.root
|
|
295
324
|
};
|
|
296
|
-
o && o(
|
|
297
|
-
let
|
|
298
|
-
if (
|
|
299
|
-
const d = p.length ? p[0] :
|
|
300
|
-
return
|
|
301
|
-
}) : [],
|
|
325
|
+
o && o(a.root);
|
|
326
|
+
let l = !1;
|
|
327
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
328
|
+
const d = p.length ? p[0] : f;
|
|
329
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l && Tr(e, c)), f;
|
|
330
|
+
}) : [], a.update(), l = !0, ue(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
302
331
|
if (t.hydrate) {
|
|
303
|
-
const c =
|
|
304
|
-
|
|
332
|
+
const c = mr(t.target);
|
|
333
|
+
a.fragment && a.fragment.l(c), c.forEach(j);
|
|
305
334
|
} else
|
|
306
|
-
|
|
307
|
-
t.intro &&
|
|
335
|
+
a.fragment && a.fragment.c();
|
|
336
|
+
t.intro && Er(e.$$.fragment), xr(e, t.target, t.anchor), $();
|
|
308
337
|
}
|
|
309
|
-
|
|
310
|
-
}
|
|
311
|
-
let
|
|
312
|
-
typeof HTMLElement == "function" && (
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
338
|
+
ie(h);
|
|
339
|
+
}
|
|
340
|
+
let Bt;
|
|
341
|
+
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
342
|
+
constructor(t, r, n) {
|
|
343
|
+
super();
|
|
344
|
+
/** The Svelte component constructor */
|
|
345
|
+
O(this, "$$ctor");
|
|
346
|
+
/** Slots */
|
|
347
|
+
O(this, "$$s");
|
|
348
|
+
/** The Svelte component instance */
|
|
349
|
+
O(this, "$$c");
|
|
350
|
+
/** Whether or not the custom element is connected */
|
|
351
|
+
O(this, "$$cn", !1);
|
|
352
|
+
/** Component props data */
|
|
353
|
+
O(this, "$$d", {});
|
|
354
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
355
|
+
O(this, "$$r", !1);
|
|
356
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
357
|
+
O(this, "$$p_d", {});
|
|
358
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
359
|
+
O(this, "$$l", {});
|
|
360
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
361
|
+
O(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
362
|
+
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
333
363
|
}
|
|
334
|
-
addEventListener(
|
|
335
|
-
if (this.$$l[
|
|
336
|
-
const
|
|
337
|
-
this.$$l_u.set(
|
|
364
|
+
addEventListener(t, r, n) {
|
|
365
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
|
|
366
|
+
const i = this.$$c.$on(t, r);
|
|
367
|
+
this.$$l_u.set(r, i);
|
|
338
368
|
}
|
|
339
|
-
super.addEventListener(
|
|
369
|
+
super.addEventListener(t, r, n);
|
|
340
370
|
}
|
|
341
|
-
removeEventListener(
|
|
342
|
-
if (super.removeEventListener(
|
|
343
|
-
const
|
|
344
|
-
|
|
371
|
+
removeEventListener(t, r, n) {
|
|
372
|
+
if (super.removeEventListener(t, r, n), this.$$c) {
|
|
373
|
+
const i = this.$$l_u.get(r);
|
|
374
|
+
i && (i(), this.$$l_u.delete(r));
|
|
345
375
|
}
|
|
346
376
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
377
|
+
connectedCallback() {
|
|
378
|
+
return Ke(this, null, function* () {
|
|
379
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
380
|
+
let t = function(s) {
|
|
381
|
+
return () => {
|
|
382
|
+
let o;
|
|
383
|
+
return {
|
|
384
|
+
c: function() {
|
|
385
|
+
o = B("slot"), s !== "default" && H(o, "name", s);
|
|
386
|
+
},
|
|
387
|
+
/**
|
|
388
|
+
* @param {HTMLElement} target
|
|
389
|
+
* @param {HTMLElement} [anchor]
|
|
390
|
+
*/
|
|
391
|
+
m: function(a, l) {
|
|
392
|
+
V(a, o, l);
|
|
393
|
+
},
|
|
394
|
+
d: function(a) {
|
|
395
|
+
a && j(o);
|
|
396
|
+
}
|
|
397
|
+
};
|
|
366
398
|
};
|
|
367
399
|
};
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
s in this.$$d || (this.$$d[s] = ce(s, i.value, this.$$p_d, "toProp"));
|
|
377
|
-
}
|
|
378
|
-
for (const i in this.$$p_d)
|
|
379
|
-
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
380
|
-
this.$$c = new this.$$ctor({
|
|
381
|
-
target: this.shadowRoot || this,
|
|
382
|
-
props: {
|
|
383
|
-
...this.$$d,
|
|
384
|
-
$$slots: t,
|
|
385
|
-
$$scope: {
|
|
386
|
-
ctx: []
|
|
387
|
-
}
|
|
400
|
+
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
401
|
+
return;
|
|
402
|
+
const r = {}, n = dr(this);
|
|
403
|
+
for (const s of this.$$s)
|
|
404
|
+
s in n && (r[s] = [t(s)]);
|
|
405
|
+
for (const s of this.attributes) {
|
|
406
|
+
const o = this.$$g_p(s.name);
|
|
407
|
+
o in this.$$d || (this.$$d[o] = ge(o, s.value, this.$$p_d, "toProp"));
|
|
388
408
|
}
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
this.$$
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
409
|
+
for (const s in this.$$p_d)
|
|
410
|
+
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
411
|
+
this.$$c = new this.$$ctor({
|
|
412
|
+
target: this.shadowRoot || this,
|
|
413
|
+
props: Ye(Je({}, this.$$d), {
|
|
414
|
+
$$slots: r,
|
|
415
|
+
$$scope: {
|
|
416
|
+
ctx: []
|
|
417
|
+
}
|
|
418
|
+
})
|
|
419
|
+
});
|
|
420
|
+
const i = () => {
|
|
421
|
+
this.$$r = !0;
|
|
422
|
+
for (const s in this.$$p_d)
|
|
423
|
+
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
424
|
+
const o = ge(
|
|
425
|
+
s,
|
|
426
|
+
this.$$d[s],
|
|
427
|
+
this.$$p_d,
|
|
428
|
+
"toAttribute"
|
|
429
|
+
);
|
|
430
|
+
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
431
|
+
}
|
|
432
|
+
this.$$r = !1;
|
|
433
|
+
};
|
|
434
|
+
this.$$c.$$.after_update.push(i), i();
|
|
435
|
+
for (const s in this.$$l)
|
|
436
|
+
for (const o of this.$$l[s]) {
|
|
437
|
+
const u = this.$$c.$on(s, o);
|
|
438
|
+
this.$$l_u.set(o, u);
|
|
401
439
|
}
|
|
402
|
-
this.$$
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
for (const i in this.$$l)
|
|
406
|
-
for (const s of this.$$l[i]) {
|
|
407
|
-
const o = this.$$c.$on(i, s);
|
|
408
|
-
this.$$l_u.set(s, o);
|
|
409
|
-
}
|
|
410
|
-
this.$$l = {};
|
|
411
|
-
}
|
|
440
|
+
this.$$l = {};
|
|
441
|
+
}
|
|
442
|
+
});
|
|
412
443
|
}
|
|
413
444
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
414
445
|
// and setting attributes through setAttribute etc, this is helpful
|
|
415
|
-
attributeChangedCallback(
|
|
416
|
-
|
|
446
|
+
attributeChangedCallback(t, r, n) {
|
|
447
|
+
var i;
|
|
448
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ge(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
417
449
|
}
|
|
418
450
|
disconnectedCallback() {
|
|
419
451
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
420
452
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
421
453
|
});
|
|
422
454
|
}
|
|
423
|
-
$$g_p(
|
|
455
|
+
$$g_p(t) {
|
|
424
456
|
return Object.keys(this.$$p_d).find(
|
|
425
|
-
(
|
|
426
|
-
) ||
|
|
457
|
+
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
458
|
+
) || t;
|
|
427
459
|
}
|
|
428
460
|
});
|
|
429
|
-
function
|
|
430
|
-
|
|
461
|
+
function ge(e, t, r, n) {
|
|
462
|
+
var s;
|
|
463
|
+
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
431
464
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
432
465
|
return t;
|
|
433
466
|
if (n === "toAttribute")
|
|
@@ -438,7 +471,7 @@ function ce(e, t, r, n) {
|
|
|
438
471
|
case "Boolean":
|
|
439
472
|
return t ? "" : null;
|
|
440
473
|
case "Number":
|
|
441
|
-
return t
|
|
474
|
+
return t == null ? null : t;
|
|
442
475
|
default:
|
|
443
476
|
return t;
|
|
444
477
|
}
|
|
@@ -455,55 +488,59 @@ function ce(e, t, r, n) {
|
|
|
455
488
|
return t;
|
|
456
489
|
}
|
|
457
490
|
}
|
|
458
|
-
function
|
|
459
|
-
let o = class extends
|
|
491
|
+
function Hr(e, t, r, n, i, s) {
|
|
492
|
+
let o = class extends Bt {
|
|
460
493
|
constructor() {
|
|
461
494
|
super(e, r, i), this.$$p_d = t;
|
|
462
495
|
}
|
|
463
496
|
static get observedAttributes() {
|
|
464
497
|
return Object.keys(t).map(
|
|
465
|
-
(
|
|
498
|
+
(u) => (t[u].attribute || u).toLowerCase()
|
|
466
499
|
);
|
|
467
500
|
}
|
|
468
501
|
};
|
|
469
|
-
return Object.keys(t).forEach((
|
|
470
|
-
Object.defineProperty(o.prototype,
|
|
502
|
+
return Object.keys(t).forEach((u) => {
|
|
503
|
+
Object.defineProperty(o.prototype, u, {
|
|
471
504
|
get() {
|
|
472
|
-
return this.$$c &&
|
|
505
|
+
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
473
506
|
},
|
|
474
|
-
set(
|
|
475
|
-
|
|
507
|
+
set(h) {
|
|
508
|
+
var a;
|
|
509
|
+
h = ge(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
|
476
510
|
}
|
|
477
511
|
});
|
|
478
|
-
}), n.forEach((
|
|
479
|
-
Object.defineProperty(o.prototype,
|
|
512
|
+
}), n.forEach((u) => {
|
|
513
|
+
Object.defineProperty(o.prototype, u, {
|
|
480
514
|
get() {
|
|
481
|
-
|
|
515
|
+
var h;
|
|
516
|
+
return (h = this.$$c) == null ? void 0 : h[u];
|
|
482
517
|
}
|
|
483
518
|
});
|
|
484
519
|
}), e.element = /** @type {any} */
|
|
485
520
|
o, o;
|
|
486
521
|
}
|
|
487
|
-
class
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
522
|
+
class Ar {
|
|
523
|
+
constructor() {
|
|
524
|
+
/**
|
|
525
|
+
* ### PRIVATE API
|
|
526
|
+
*
|
|
527
|
+
* Do not use, may change at any time
|
|
528
|
+
*
|
|
529
|
+
* @type {any}
|
|
530
|
+
*/
|
|
531
|
+
O(this, "$$");
|
|
532
|
+
/**
|
|
533
|
+
* ### PRIVATE API
|
|
534
|
+
*
|
|
535
|
+
* Do not use, may change at any time
|
|
536
|
+
*
|
|
537
|
+
* @type {any}
|
|
538
|
+
*/
|
|
539
|
+
O(this, "$$set");
|
|
540
|
+
}
|
|
504
541
|
/** @returns {void} */
|
|
505
542
|
$destroy() {
|
|
506
|
-
|
|
543
|
+
vr(this, 1), this.$destroy = M;
|
|
507
544
|
}
|
|
508
545
|
/**
|
|
509
546
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -512,8 +549,8 @@ class mr {
|
|
|
512
549
|
* @returns {() => void}
|
|
513
550
|
*/
|
|
514
551
|
$on(t, r) {
|
|
515
|
-
if (!
|
|
516
|
-
return
|
|
552
|
+
if (!Ve(r))
|
|
553
|
+
return M;
|
|
517
554
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
518
555
|
return n.push(r), () => {
|
|
519
556
|
const i = n.indexOf(r);
|
|
@@ -525,159 +562,159 @@ class mr {
|
|
|
525
562
|
* @returns {void}
|
|
526
563
|
*/
|
|
527
564
|
$set(t) {
|
|
528
|
-
this.$$set && !
|
|
565
|
+
this.$$set && !ur(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
529
566
|
}
|
|
530
567
|
}
|
|
531
|
-
const
|
|
532
|
-
typeof window
|
|
533
|
-
const
|
|
534
|
-
function
|
|
568
|
+
const Sr = "4";
|
|
569
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Sr);
|
|
570
|
+
const W = [];
|
|
571
|
+
function Br(e, t) {
|
|
535
572
|
return {
|
|
536
|
-
subscribe:
|
|
573
|
+
subscribe: _e(e, t).subscribe
|
|
537
574
|
};
|
|
538
575
|
}
|
|
539
|
-
function
|
|
576
|
+
function _e(e, t = M) {
|
|
540
577
|
let r;
|
|
541
578
|
const n = /* @__PURE__ */ new Set();
|
|
542
|
-
function i(
|
|
543
|
-
if (
|
|
544
|
-
const
|
|
545
|
-
for (const
|
|
546
|
-
|
|
547
|
-
if (
|
|
548
|
-
for (let
|
|
549
|
-
|
|
550
|
-
|
|
579
|
+
function i(u) {
|
|
580
|
+
if (Tt(e, u) && (e = u, r)) {
|
|
581
|
+
const h = !W.length;
|
|
582
|
+
for (const a of n)
|
|
583
|
+
a[1](), W.push(a, e);
|
|
584
|
+
if (h) {
|
|
585
|
+
for (let a = 0; a < W.length; a += 2)
|
|
586
|
+
W[a][0](W[a + 1]);
|
|
587
|
+
W.length = 0;
|
|
551
588
|
}
|
|
552
589
|
}
|
|
553
590
|
}
|
|
554
|
-
function s(
|
|
555
|
-
i(
|
|
591
|
+
function s(u) {
|
|
592
|
+
i(u(e));
|
|
556
593
|
}
|
|
557
|
-
function o(
|
|
558
|
-
const
|
|
559
|
-
return n.add(
|
|
560
|
-
n.delete(
|
|
594
|
+
function o(u, h = M) {
|
|
595
|
+
const a = [u, h];
|
|
596
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || M), u(e), () => {
|
|
597
|
+
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
561
598
|
};
|
|
562
599
|
}
|
|
563
600
|
return { set: i, update: s, subscribe: o };
|
|
564
601
|
}
|
|
565
|
-
function
|
|
602
|
+
function ee(e, t, r) {
|
|
566
603
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
567
604
|
if (!i.every(Boolean))
|
|
568
605
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
569
606
|
const s = t.length < 2;
|
|
570
|
-
return
|
|
571
|
-
let
|
|
572
|
-
const
|
|
573
|
-
let
|
|
574
|
-
const
|
|
575
|
-
if (
|
|
607
|
+
return Br(r, (o, u) => {
|
|
608
|
+
let h = !1;
|
|
609
|
+
const a = [];
|
|
610
|
+
let l = 0, c = M;
|
|
611
|
+
const f = () => {
|
|
612
|
+
if (l)
|
|
576
613
|
return;
|
|
577
614
|
c();
|
|
578
|
-
const d = t(n ?
|
|
579
|
-
s ? o(d) : c =
|
|
615
|
+
const d = t(n ? a[0] : a, o, u);
|
|
616
|
+
s ? o(d) : c = Ve(d) ? d : M;
|
|
580
617
|
}, p = i.map(
|
|
581
|
-
(d, g) =>
|
|
618
|
+
(d, g) => Ct(
|
|
582
619
|
d,
|
|
583
620
|
(x) => {
|
|
584
|
-
|
|
621
|
+
a[g] = x, l &= ~(1 << g), h && f();
|
|
585
622
|
},
|
|
586
623
|
() => {
|
|
587
|
-
|
|
624
|
+
l |= 1 << g;
|
|
588
625
|
}
|
|
589
626
|
)
|
|
590
627
|
);
|
|
591
|
-
return
|
|
592
|
-
|
|
628
|
+
return h = !0, f(), function() {
|
|
629
|
+
ue(p), c(), h = !1;
|
|
593
630
|
};
|
|
594
631
|
});
|
|
595
632
|
}
|
|
596
|
-
function
|
|
633
|
+
function wr(e) {
|
|
597
634
|
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
598
635
|
}
|
|
599
|
-
var
|
|
600
|
-
return
|
|
636
|
+
var Or = function(t) {
|
|
637
|
+
return Pr(t) && !Nr(t);
|
|
601
638
|
};
|
|
602
|
-
function
|
|
639
|
+
function Pr(e) {
|
|
603
640
|
return !!e && typeof e == "object";
|
|
604
641
|
}
|
|
605
|
-
function
|
|
642
|
+
function Nr(e) {
|
|
606
643
|
var t = Object.prototype.toString.call(e);
|
|
607
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
644
|
+
return t === "[object RegExp]" || t === "[object Date]" || Mr(e);
|
|
608
645
|
}
|
|
609
|
-
var
|
|
610
|
-
function
|
|
611
|
-
return e.$$typeof ===
|
|
646
|
+
var Lr = typeof Symbol == "function" && Symbol.for, Ir = Lr ? Symbol.for("react.element") : 60103;
|
|
647
|
+
function Mr(e) {
|
|
648
|
+
return e.$$typeof === Ir;
|
|
612
649
|
}
|
|
613
|
-
function
|
|
650
|
+
function $r(e) {
|
|
614
651
|
return Array.isArray(e) ? [] : {};
|
|
615
652
|
}
|
|
616
|
-
function
|
|
617
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
653
|
+
function oe(e, t) {
|
|
654
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? q($r(e), e, t) : e;
|
|
618
655
|
}
|
|
619
|
-
function
|
|
656
|
+
function Rr(e, t, r) {
|
|
620
657
|
return e.concat(t).map(function(n) {
|
|
621
|
-
return
|
|
658
|
+
return oe(n, r);
|
|
622
659
|
});
|
|
623
660
|
}
|
|
624
|
-
function
|
|
661
|
+
function Ur(e, t) {
|
|
625
662
|
if (!t.customMerge)
|
|
626
|
-
return
|
|
663
|
+
return q;
|
|
627
664
|
var r = t.customMerge(e);
|
|
628
|
-
return typeof r == "function" ? r :
|
|
665
|
+
return typeof r == "function" ? r : q;
|
|
629
666
|
}
|
|
630
|
-
function
|
|
667
|
+
function Gr(e) {
|
|
631
668
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
632
669
|
return Object.propertyIsEnumerable.call(e, t);
|
|
633
670
|
}) : [];
|
|
634
671
|
}
|
|
635
|
-
function
|
|
636
|
-
return Object.keys(e).concat(
|
|
672
|
+
function nt(e) {
|
|
673
|
+
return Object.keys(e).concat(Gr(e));
|
|
637
674
|
}
|
|
638
|
-
function
|
|
675
|
+
function wt(e, t) {
|
|
639
676
|
try {
|
|
640
677
|
return t in e;
|
|
641
|
-
} catch {
|
|
678
|
+
} catch (r) {
|
|
642
679
|
return !1;
|
|
643
680
|
}
|
|
644
681
|
}
|
|
645
|
-
function
|
|
646
|
-
return
|
|
682
|
+
function Dr(e, t) {
|
|
683
|
+
return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
647
684
|
}
|
|
648
|
-
function
|
|
685
|
+
function Fr(e, t, r) {
|
|
649
686
|
var n = {};
|
|
650
|
-
return r.isMergeableObject(e) &&
|
|
651
|
-
n[i] =
|
|
652
|
-
}),
|
|
653
|
-
|
|
687
|
+
return r.isMergeableObject(e) && nt(e).forEach(function(i) {
|
|
688
|
+
n[i] = oe(e[i], r);
|
|
689
|
+
}), nt(t).forEach(function(i) {
|
|
690
|
+
Dr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ur(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
654
691
|
}), n;
|
|
655
692
|
}
|
|
656
|
-
function
|
|
657
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
693
|
+
function q(e, t, r) {
|
|
694
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Rr, r.isMergeableObject = r.isMergeableObject || Or, r.cloneUnlessOtherwiseSpecified = oe;
|
|
658
695
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
659
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
696
|
+
return s ? n ? r.arrayMerge(e, t, r) : Fr(e, t, r) : oe(t, r);
|
|
660
697
|
}
|
|
661
|
-
|
|
698
|
+
q.all = function(t, r) {
|
|
662
699
|
if (!Array.isArray(t))
|
|
663
700
|
throw new Error("first argument should be an array");
|
|
664
701
|
return t.reduce(function(n, i) {
|
|
665
|
-
return
|
|
702
|
+
return q(n, i, r);
|
|
666
703
|
}, {});
|
|
667
704
|
};
|
|
668
|
-
var
|
|
669
|
-
const
|
|
670
|
-
var
|
|
671
|
-
return
|
|
705
|
+
var jr = q, kr = jr;
|
|
706
|
+
const Vr = /* @__PURE__ */ wr(kr);
|
|
707
|
+
var Me = function(e, t) {
|
|
708
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
672
709
|
r.__proto__ = n;
|
|
673
710
|
} || function(r, n) {
|
|
674
711
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
675
|
-
},
|
|
712
|
+
}, Me(e, t);
|
|
676
713
|
};
|
|
677
|
-
function
|
|
714
|
+
function Ee(e, t) {
|
|
678
715
|
if (typeof t != "function" && t !== null)
|
|
679
716
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
680
|
-
|
|
717
|
+
Me(e, t);
|
|
681
718
|
function r() {
|
|
682
719
|
this.constructor = e;
|
|
683
720
|
}
|
|
@@ -692,7 +729,7 @@ var E = function() {
|
|
|
692
729
|
return t;
|
|
693
730
|
}, E.apply(this, arguments);
|
|
694
731
|
};
|
|
695
|
-
function
|
|
732
|
+
function Xr(e, t) {
|
|
696
733
|
var r = {};
|
|
697
734
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
698
735
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -700,7 +737,7 @@ function Lr(e, t) {
|
|
|
700
737
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
701
738
|
return r;
|
|
702
739
|
}
|
|
703
|
-
function
|
|
740
|
+
function Pi(e) {
|
|
704
741
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
705
742
|
if (r) return r.call(e);
|
|
706
743
|
if (e && typeof e.length == "number") return {
|
|
@@ -710,14 +747,14 @@ function yi(e) {
|
|
|
710
747
|
};
|
|
711
748
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
712
749
|
}
|
|
713
|
-
function
|
|
750
|
+
function Ni(e, t) {
|
|
714
751
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
715
752
|
if (!r) return e;
|
|
716
753
|
var n = r.call(e), i, s = [], o;
|
|
717
754
|
try {
|
|
718
755
|
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) s.push(i.value);
|
|
719
|
-
} catch (
|
|
720
|
-
o = { error:
|
|
756
|
+
} catch (u) {
|
|
757
|
+
o = { error: u };
|
|
721
758
|
} finally {
|
|
722
759
|
try {
|
|
723
760
|
i && !i.done && (r = n.return) && r.call(n);
|
|
@@ -727,45 +764,45 @@ function _i(e, t) {
|
|
|
727
764
|
}
|
|
728
765
|
return s;
|
|
729
766
|
}
|
|
730
|
-
function
|
|
767
|
+
function Ae(e, t, r) {
|
|
731
768
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
732
769
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
733
770
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
734
771
|
}
|
|
735
|
-
function
|
|
736
|
-
var r = t && t.cache ? t.cache :
|
|
772
|
+
function Se(e, t) {
|
|
773
|
+
var r = t && t.cache ? t.cache : Yr, n = t && t.serializer ? t.serializer : qr, i = t && t.strategy ? t.strategy : Wr;
|
|
737
774
|
return i(e, {
|
|
738
775
|
cache: r,
|
|
739
776
|
serializer: n
|
|
740
777
|
});
|
|
741
778
|
}
|
|
742
|
-
function
|
|
779
|
+
function zr(e) {
|
|
743
780
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
744
781
|
}
|
|
745
|
-
function
|
|
746
|
-
var i =
|
|
747
|
-
return typeof s
|
|
782
|
+
function Ot(e, t, r, n) {
|
|
783
|
+
var i = zr(n) ? n : r(n), s = t.get(i);
|
|
784
|
+
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
748
785
|
}
|
|
749
|
-
function
|
|
786
|
+
function Pt(e, t, r) {
|
|
750
787
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
751
|
-
return typeof s
|
|
788
|
+
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
752
789
|
}
|
|
753
|
-
function
|
|
790
|
+
function Xe(e, t, r, n, i) {
|
|
754
791
|
return r.bind(t, e, n, i);
|
|
755
792
|
}
|
|
756
|
-
function
|
|
757
|
-
var r = e.length === 1 ?
|
|
758
|
-
return
|
|
793
|
+
function Wr(e, t) {
|
|
794
|
+
var r = e.length === 1 ? Ot : Pt;
|
|
795
|
+
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
759
796
|
}
|
|
760
|
-
function
|
|
761
|
-
return
|
|
797
|
+
function Zr(e, t) {
|
|
798
|
+
return Xe(e, this, Pt, t.cache.create(), t.serializer);
|
|
762
799
|
}
|
|
763
|
-
function
|
|
764
|
-
return
|
|
800
|
+
function Qr(e, t) {
|
|
801
|
+
return Xe(e, this, Ot, t.cache.create(), t.serializer);
|
|
765
802
|
}
|
|
766
|
-
var
|
|
803
|
+
var qr = function() {
|
|
767
804
|
return JSON.stringify(arguments);
|
|
768
|
-
},
|
|
805
|
+
}, Jr = (
|
|
769
806
|
/** @class */
|
|
770
807
|
function() {
|
|
771
808
|
function e() {
|
|
@@ -777,13 +814,13 @@ var Ur = function() {
|
|
|
777
814
|
this.cache[t] = r;
|
|
778
815
|
}, e;
|
|
779
816
|
}()
|
|
780
|
-
),
|
|
817
|
+
), Yr = {
|
|
781
818
|
create: function() {
|
|
782
|
-
return new
|
|
819
|
+
return new Jr();
|
|
783
820
|
}
|
|
784
|
-
},
|
|
785
|
-
variadic:
|
|
786
|
-
monadic:
|
|
821
|
+
}, Be = {
|
|
822
|
+
variadic: Zr,
|
|
823
|
+
monadic: Qr
|
|
787
824
|
}, y;
|
|
788
825
|
(function(e) {
|
|
789
826
|
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";
|
|
@@ -792,47 +829,47 @@ var T;
|
|
|
792
829
|
(function(e) {
|
|
793
830
|
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";
|
|
794
831
|
})(T || (T = {}));
|
|
795
|
-
var
|
|
832
|
+
var J;
|
|
796
833
|
(function(e) {
|
|
797
834
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
798
|
-
})(
|
|
799
|
-
function
|
|
835
|
+
})(J || (J = {}));
|
|
836
|
+
function it(e) {
|
|
800
837
|
return e.type === T.literal;
|
|
801
838
|
}
|
|
802
|
-
function
|
|
839
|
+
function Kr(e) {
|
|
803
840
|
return e.type === T.argument;
|
|
804
841
|
}
|
|
805
|
-
function
|
|
842
|
+
function Nt(e) {
|
|
806
843
|
return e.type === T.number;
|
|
807
844
|
}
|
|
808
|
-
function
|
|
845
|
+
function Lt(e) {
|
|
809
846
|
return e.type === T.date;
|
|
810
847
|
}
|
|
811
|
-
function
|
|
848
|
+
function It(e) {
|
|
812
849
|
return e.type === T.time;
|
|
813
850
|
}
|
|
814
|
-
function
|
|
851
|
+
function Mt(e) {
|
|
815
852
|
return e.type === T.select;
|
|
816
853
|
}
|
|
817
|
-
function
|
|
854
|
+
function $t(e) {
|
|
818
855
|
return e.type === T.plural;
|
|
819
856
|
}
|
|
820
|
-
function
|
|
857
|
+
function en(e) {
|
|
821
858
|
return e.type === T.pound;
|
|
822
859
|
}
|
|
823
|
-
function
|
|
860
|
+
function Rt(e) {
|
|
824
861
|
return e.type === T.tag;
|
|
825
862
|
}
|
|
826
|
-
function
|
|
827
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
863
|
+
function Ut(e) {
|
|
864
|
+
return !!(e && typeof e == "object" && e.type === J.number);
|
|
828
865
|
}
|
|
829
|
-
function
|
|
830
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
866
|
+
function $e(e) {
|
|
867
|
+
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
831
868
|
}
|
|
832
|
-
var
|
|
833
|
-
function
|
|
869
|
+
var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, tn = /(?:[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;
|
|
870
|
+
function rn(e) {
|
|
834
871
|
var t = {};
|
|
835
|
-
return e.replace(
|
|
872
|
+
return e.replace(tn, function(r) {
|
|
836
873
|
var n = r.length;
|
|
837
874
|
switch (r[0]) {
|
|
838
875
|
case "G":
|
|
@@ -921,36 +958,36 @@ function Vr(e) {
|
|
|
921
958
|
return "";
|
|
922
959
|
}), t;
|
|
923
960
|
}
|
|
924
|
-
var
|
|
925
|
-
function
|
|
961
|
+
var nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
962
|
+
function sn(e) {
|
|
926
963
|
if (e.length === 0)
|
|
927
964
|
throw new Error("Number skeleton cannot be empty");
|
|
928
|
-
for (var t = e.split(
|
|
929
|
-
return
|
|
965
|
+
for (var t = e.split(nn).filter(function(f) {
|
|
966
|
+
return f.length > 0;
|
|
930
967
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
931
968
|
var s = i[n], o = s.split("/");
|
|
932
969
|
if (o.length === 0)
|
|
933
970
|
throw new Error("Invalid number skeleton");
|
|
934
|
-
for (var
|
|
935
|
-
var c =
|
|
971
|
+
for (var u = o[0], h = o.slice(1), a = 0, l = h; a < l.length; a++) {
|
|
972
|
+
var c = l[a];
|
|
936
973
|
if (c.length === 0)
|
|
937
974
|
throw new Error("Invalid number skeleton");
|
|
938
975
|
}
|
|
939
|
-
r.push({ stem:
|
|
976
|
+
r.push({ stem: u, options: h });
|
|
940
977
|
}
|
|
941
978
|
return r;
|
|
942
979
|
}
|
|
943
|
-
function
|
|
980
|
+
function on(e) {
|
|
944
981
|
return e.replace(/^(.*?)-/, "");
|
|
945
982
|
}
|
|
946
|
-
var
|
|
947
|
-
function
|
|
983
|
+
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g, an = /(\*)(0+)|(#+)(0+)|(0+)/g, Ft = /^(0+)$/;
|
|
984
|
+
function ot(e) {
|
|
948
985
|
var t = {};
|
|
949
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
986
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dt, function(r, n, i) {
|
|
950
987
|
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)), "";
|
|
951
988
|
}), t;
|
|
952
989
|
}
|
|
953
|
-
function
|
|
990
|
+
function jt(e) {
|
|
954
991
|
switch (e) {
|
|
955
992
|
case "sign-auto":
|
|
956
993
|
return {
|
|
@@ -990,7 +1027,7 @@ function Mt(e) {
|
|
|
990
1027
|
};
|
|
991
1028
|
}
|
|
992
1029
|
}
|
|
993
|
-
function
|
|
1030
|
+
function un(e) {
|
|
994
1031
|
var t;
|
|
995
1032
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
996
1033
|
notation: "engineering"
|
|
@@ -998,17 +1035,17 @@ function Qr(e) {
|
|
|
998
1035
|
notation: "scientific"
|
|
999
1036
|
}, e = e.slice(1)), t) {
|
|
1000
1037
|
var r = e.slice(0, 2);
|
|
1001
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1038
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ft.test(e))
|
|
1002
1039
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1003
1040
|
t.minimumIntegerDigits = e.length;
|
|
1004
1041
|
}
|
|
1005
1042
|
return t;
|
|
1006
1043
|
}
|
|
1007
|
-
function
|
|
1008
|
-
var t = {}, r =
|
|
1044
|
+
function at(e) {
|
|
1045
|
+
var t = {}, r = jt(e);
|
|
1009
1046
|
return r || t;
|
|
1010
1047
|
}
|
|
1011
|
-
function
|
|
1048
|
+
function hn(e) {
|
|
1012
1049
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1013
1050
|
var i = n[r];
|
|
1014
1051
|
switch (i.stem) {
|
|
@@ -1032,7 +1069,7 @@ function qr(e) {
|
|
|
1032
1069
|
continue;
|
|
1033
1070
|
case "measure-unit":
|
|
1034
1071
|
case "unit":
|
|
1035
|
-
t.style = "unit", t.unit =
|
|
1072
|
+
t.style = "unit", t.unit = on(i.options[0]);
|
|
1036
1073
|
continue;
|
|
1037
1074
|
case "compact-short":
|
|
1038
1075
|
case "K":
|
|
@@ -1043,13 +1080,13 @@ function qr(e) {
|
|
|
1043
1080
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1044
1081
|
continue;
|
|
1045
1082
|
case "scientific":
|
|
1046
|
-
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
1047
|
-
return E(E({},
|
|
1083
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
|
|
1084
|
+
return E(E({}, h), at(a));
|
|
1048
1085
|
}, {}));
|
|
1049
1086
|
continue;
|
|
1050
1087
|
case "engineering":
|
|
1051
|
-
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
1052
|
-
return E(E({},
|
|
1088
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
|
|
1089
|
+
return E(E({}, h), at(a));
|
|
1053
1090
|
}, {}));
|
|
1054
1091
|
continue;
|
|
1055
1092
|
case "notation-simple":
|
|
@@ -1094,11 +1131,11 @@ function qr(e) {
|
|
|
1094
1131
|
case "integer-width":
|
|
1095
1132
|
if (i.options.length > 1)
|
|
1096
1133
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1097
|
-
i.options[0].replace(
|
|
1098
|
-
if (
|
|
1099
|
-
t.minimumIntegerDigits =
|
|
1134
|
+
i.options[0].replace(an, function(h, a, l, c, f, p) {
|
|
1135
|
+
if (a)
|
|
1136
|
+
t.minimumIntegerDigits = l.length;
|
|
1100
1137
|
else {
|
|
1101
|
-
if (c &&
|
|
1138
|
+
if (c && f)
|
|
1102
1139
|
throw new Error("We currently do not support maximum integer digits");
|
|
1103
1140
|
if (p)
|
|
1104
1141
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1107,32 +1144,32 @@ function qr(e) {
|
|
|
1107
1144
|
});
|
|
1108
1145
|
continue;
|
|
1109
1146
|
}
|
|
1110
|
-
if (
|
|
1147
|
+
if (Ft.test(i.stem)) {
|
|
1111
1148
|
t.minimumIntegerDigits = i.stem.length;
|
|
1112
1149
|
continue;
|
|
1113
1150
|
}
|
|
1114
|
-
if (
|
|
1151
|
+
if (st.test(i.stem)) {
|
|
1115
1152
|
if (i.options.length > 1)
|
|
1116
1153
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1117
|
-
i.stem.replace(
|
|
1118
|
-
return
|
|
1154
|
+
i.stem.replace(st, function(h, a, l, c, f, p) {
|
|
1155
|
+
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1119
1156
|
});
|
|
1120
1157
|
var s = i.options[0];
|
|
1121
|
-
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t),
|
|
1158
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), ot(s)));
|
|
1122
1159
|
continue;
|
|
1123
1160
|
}
|
|
1124
|
-
if (
|
|
1125
|
-
t = E(E({}, t),
|
|
1161
|
+
if (Dt.test(i.stem)) {
|
|
1162
|
+
t = E(E({}, t), ot(i.stem));
|
|
1126
1163
|
continue;
|
|
1127
1164
|
}
|
|
1128
|
-
var o =
|
|
1165
|
+
var o = jt(i.stem);
|
|
1129
1166
|
o && (t = E(E({}, t), o));
|
|
1130
|
-
var
|
|
1131
|
-
|
|
1167
|
+
var u = un(i.stem);
|
|
1168
|
+
u && (t = E(E({}, t), u));
|
|
1132
1169
|
}
|
|
1133
1170
|
return t;
|
|
1134
1171
|
}
|
|
1135
|
-
var
|
|
1172
|
+
var ce = {
|
|
1136
1173
|
"001": [
|
|
1137
1174
|
"H",
|
|
1138
1175
|
"h"
|
|
@@ -2547,22 +2584,22 @@ var fe = {
|
|
|
2547
2584
|
"h"
|
|
2548
2585
|
]
|
|
2549
2586
|
};
|
|
2550
|
-
function
|
|
2587
|
+
function ln(e, t) {
|
|
2551
2588
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2552
2589
|
var i = e.charAt(n);
|
|
2553
2590
|
if (i === "j") {
|
|
2554
2591
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2555
2592
|
s++, n++;
|
|
2556
|
-
var o = 1 + (s & 1),
|
|
2557
|
-
for ((
|
|
2558
|
-
r +=
|
|
2593
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = fn(t);
|
|
2594
|
+
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2595
|
+
r += h;
|
|
2559
2596
|
for (; o-- > 0; )
|
|
2560
|
-
r =
|
|
2597
|
+
r = a + r;
|
|
2561
2598
|
} else i === "J" ? r += "H" : r += i;
|
|
2562
2599
|
}
|
|
2563
2600
|
return r;
|
|
2564
2601
|
}
|
|
2565
|
-
function
|
|
2602
|
+
function fn(e) {
|
|
2566
2603
|
var t = e.hourCycle;
|
|
2567
2604
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2568
2605
|
e.hourCycles && // @ts-ignore
|
|
@@ -2581,23 +2618,23 @@ function Yr(e) {
|
|
|
2581
2618
|
}
|
|
2582
2619
|
var r = e.language, n;
|
|
2583
2620
|
r !== "root" && (n = e.maximize().region);
|
|
2584
|
-
var i =
|
|
2621
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
2585
2622
|
return i[0];
|
|
2586
2623
|
}
|
|
2587
|
-
var
|
|
2624
|
+
var we, cn = new RegExp("^".concat(Gt.source, "*")), gn = new RegExp("".concat(Gt.source, "*$"));
|
|
2588
2625
|
function _(e, t) {
|
|
2589
2626
|
return { start: e, end: t };
|
|
2590
2627
|
}
|
|
2591
|
-
var
|
|
2628
|
+
var mn = !!String.prototype.startsWith && "_a".startsWith("a", 1), dn = !!String.fromCodePoint, pn = !!Object.fromEntries, bn = !!String.prototype.codePointAt, yn = !!String.prototype.trimStart, _n = !!String.prototype.trimEnd, En = !!Number.isSafeInteger, xn = En ? Number.isSafeInteger : function(e) {
|
|
2592
2629
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2593
|
-
},
|
|
2630
|
+
}, Re = !0;
|
|
2594
2631
|
try {
|
|
2595
|
-
var
|
|
2596
|
-
|
|
2597
|
-
} catch {
|
|
2598
|
-
|
|
2632
|
+
var vn = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2633
|
+
Re = ((we = vn.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
|
|
2634
|
+
} catch (e) {
|
|
2635
|
+
Re = !1;
|
|
2599
2636
|
}
|
|
2600
|
-
var
|
|
2637
|
+
var ut = mn ? (
|
|
2601
2638
|
// Native
|
|
2602
2639
|
function(t, r, n) {
|
|
2603
2640
|
return t.startsWith(r, n);
|
|
@@ -2607,7 +2644,7 @@ var tt = tn ? (
|
|
|
2607
2644
|
function(t, r, n) {
|
|
2608
2645
|
return t.slice(n, n + r.length) === r;
|
|
2609
2646
|
}
|
|
2610
|
-
),
|
|
2647
|
+
), Ue = dn ? String.fromCodePoint : (
|
|
2611
2648
|
// IE11
|
|
2612
2649
|
function() {
|
|
2613
2650
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2619,19 +2656,19 @@ var tt = tn ? (
|
|
|
2619
2656
|
}
|
|
2620
2657
|
return n;
|
|
2621
2658
|
}
|
|
2622
|
-
),
|
|
2659
|
+
), ht = (
|
|
2623
2660
|
// native
|
|
2624
|
-
|
|
2661
|
+
pn ? Object.fromEntries : (
|
|
2625
2662
|
// Ponyfill
|
|
2626
2663
|
function(t) {
|
|
2627
2664
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2628
|
-
var s = i[n], o = s[0],
|
|
2629
|
-
r[o] =
|
|
2665
|
+
var s = i[n], o = s[0], u = s[1];
|
|
2666
|
+
r[o] = u;
|
|
2630
2667
|
}
|
|
2631
2668
|
return r;
|
|
2632
2669
|
}
|
|
2633
2670
|
)
|
|
2634
|
-
),
|
|
2671
|
+
), kt = bn ? (
|
|
2635
2672
|
// Native
|
|
2636
2673
|
function(t, r) {
|
|
2637
2674
|
return t.codePointAt(r);
|
|
@@ -2645,7 +2682,7 @@ var tt = tn ? (
|
|
|
2645
2682
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2646
2683
|
}
|
|
2647
2684
|
}
|
|
2648
|
-
),
|
|
2685
|
+
), Tn = yn ? (
|
|
2649
2686
|
// Native
|
|
2650
2687
|
function(t) {
|
|
2651
2688
|
return t.trimStart();
|
|
@@ -2653,9 +2690,9 @@ var tt = tn ? (
|
|
|
2653
2690
|
) : (
|
|
2654
2691
|
// Ponyfill
|
|
2655
2692
|
function(t) {
|
|
2656
|
-
return t.replace(
|
|
2693
|
+
return t.replace(cn, "");
|
|
2657
2694
|
}
|
|
2658
|
-
),
|
|
2695
|
+
), Cn = _n ? (
|
|
2659
2696
|
// Native
|
|
2660
2697
|
function(t) {
|
|
2661
2698
|
return t.trimEnd();
|
|
@@ -2663,32 +2700,32 @@ var tt = tn ? (
|
|
|
2663
2700
|
) : (
|
|
2664
2701
|
// Ponyfill
|
|
2665
2702
|
function(t) {
|
|
2666
|
-
return t.replace(
|
|
2703
|
+
return t.replace(gn, "");
|
|
2667
2704
|
}
|
|
2668
2705
|
);
|
|
2669
|
-
function
|
|
2706
|
+
function Vt(e, t) {
|
|
2670
2707
|
return new RegExp(e, t);
|
|
2671
2708
|
}
|
|
2672
|
-
var
|
|
2673
|
-
if (
|
|
2674
|
-
var
|
|
2675
|
-
|
|
2709
|
+
var Ge;
|
|
2710
|
+
if (Re) {
|
|
2711
|
+
var lt = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2712
|
+
Ge = function(t, r) {
|
|
2676
2713
|
var n;
|
|
2677
|
-
|
|
2678
|
-
var i =
|
|
2714
|
+
lt.lastIndex = r;
|
|
2715
|
+
var i = lt.exec(t);
|
|
2679
2716
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2680
2717
|
};
|
|
2681
2718
|
} else
|
|
2682
|
-
|
|
2719
|
+
Ge = function(t, r) {
|
|
2683
2720
|
for (var n = []; ; ) {
|
|
2684
|
-
var i =
|
|
2685
|
-
if (i === void 0 ||
|
|
2721
|
+
var i = kt(t, r);
|
|
2722
|
+
if (i === void 0 || Xt(i) || Bn(i))
|
|
2686
2723
|
break;
|
|
2687
2724
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2688
2725
|
}
|
|
2689
|
-
return
|
|
2726
|
+
return Ue.apply(void 0, n);
|
|
2690
2727
|
};
|
|
2691
|
-
var
|
|
2728
|
+
var Hn = (
|
|
2692
2729
|
/** @class */
|
|
2693
2730
|
function() {
|
|
2694
2731
|
function e(t, r) {
|
|
@@ -2710,16 +2747,16 @@ var gn = (
|
|
|
2710
2747
|
if (s === 125 && t > 0)
|
|
2711
2748
|
break;
|
|
2712
2749
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2713
|
-
var
|
|
2750
|
+
var u = this.clonePosition();
|
|
2714
2751
|
this.bump(), i.push({
|
|
2715
2752
|
type: T.pound,
|
|
2716
|
-
location: _(
|
|
2753
|
+
location: _(u, this.clonePosition())
|
|
2717
2754
|
});
|
|
2718
2755
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2719
2756
|
if (n)
|
|
2720
2757
|
break;
|
|
2721
2758
|
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2722
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2759
|
+
} else if (s === 60 && !this.ignoreTag && De(this.peek() || 0)) {
|
|
2723
2760
|
var o = this.parseTag(t, r);
|
|
2724
2761
|
if (o.err)
|
|
2725
2762
|
return o;
|
|
@@ -2750,12 +2787,12 @@ var gn = (
|
|
|
2750
2787
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2751
2788
|
if (s.err)
|
|
2752
2789
|
return s;
|
|
2753
|
-
var o = s.val,
|
|
2790
|
+
var o = s.val, u = this.clonePosition();
|
|
2754
2791
|
if (this.bumpIf("</")) {
|
|
2755
|
-
if (this.isEOF() || !
|
|
2756
|
-
return this.error(y.INVALID_TAG, _(
|
|
2757
|
-
var
|
|
2758
|
-
return i !==
|
|
2792
|
+
if (this.isEOF() || !De(this.char()))
|
|
2793
|
+
return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
|
|
2794
|
+
var h = this.clonePosition(), a = this.parseTagName();
|
|
2795
|
+
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2759
2796
|
val: {
|
|
2760
2797
|
type: T.tag,
|
|
2761
2798
|
value: i,
|
|
@@ -2763,14 +2800,14 @@ var gn = (
|
|
|
2763
2800
|
location: _(n, this.clonePosition())
|
|
2764
2801
|
},
|
|
2765
2802
|
err: null
|
|
2766
|
-
} : this.error(y.INVALID_TAG, _(
|
|
2803
|
+
} : this.error(y.INVALID_TAG, _(u, this.clonePosition())));
|
|
2767
2804
|
} else
|
|
2768
2805
|
return this.error(y.UNCLOSED_TAG, _(n, this.clonePosition()));
|
|
2769
2806
|
} else
|
|
2770
2807
|
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
|
2771
2808
|
}, e.prototype.parseTagName = function() {
|
|
2772
2809
|
var t = this.offset();
|
|
2773
|
-
for (this.bump(); !this.isEOF() &&
|
|
2810
|
+
for (this.bump(); !this.isEOF() && Sn(this.char()); )
|
|
2774
2811
|
this.bump();
|
|
2775
2812
|
return this.message.slice(t, this.offset());
|
|
2776
2813
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2785,21 +2822,21 @@ var gn = (
|
|
|
2785
2822
|
i += o;
|
|
2786
2823
|
continue;
|
|
2787
2824
|
}
|
|
2788
|
-
var
|
|
2789
|
-
if (
|
|
2790
|
-
i +=
|
|
2825
|
+
var u = this.tryParseLeftAngleBracket();
|
|
2826
|
+
if (u) {
|
|
2827
|
+
i += u;
|
|
2791
2828
|
continue;
|
|
2792
2829
|
}
|
|
2793
2830
|
break;
|
|
2794
2831
|
}
|
|
2795
|
-
var
|
|
2832
|
+
var h = _(n, this.clonePosition());
|
|
2796
2833
|
return {
|
|
2797
|
-
val: { type: T.literal, value: i, location:
|
|
2834
|
+
val: { type: T.literal, value: i, location: h },
|
|
2798
2835
|
err: null
|
|
2799
2836
|
};
|
|
2800
2837
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2801
2838
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2802
|
-
!
|
|
2839
|
+
!An(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2803
2840
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2804
2841
|
if (this.isEOF() || this.char() !== 39)
|
|
2805
2842
|
return null;
|
|
@@ -2833,12 +2870,12 @@ var gn = (
|
|
|
2833
2870
|
r.push(n);
|
|
2834
2871
|
this.bump();
|
|
2835
2872
|
}
|
|
2836
|
-
return
|
|
2873
|
+
return Ue.apply(void 0, r);
|
|
2837
2874
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2838
2875
|
if (this.isEOF())
|
|
2839
2876
|
return null;
|
|
2840
2877
|
var n = this.char();
|
|
2841
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2878
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
|
|
2842
2879
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2843
2880
|
var n = this.clonePosition();
|
|
2844
2881
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2867,39 +2904,39 @@ var gn = (
|
|
|
2867
2904
|
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2868
2905
|
}
|
|
2869
2906
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2870
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2907
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
2871
2908
|
this.bumpTo(i);
|
|
2872
2909
|
var s = this.clonePosition(), o = _(t, s);
|
|
2873
2910
|
return { value: n, location: o };
|
|
2874
2911
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2875
|
-
var s, o = this.clonePosition(),
|
|
2876
|
-
switch (
|
|
2912
|
+
var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2913
|
+
switch (u) {
|
|
2877
2914
|
case "":
|
|
2878
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE, _(o,
|
|
2915
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, _(o, h));
|
|
2879
2916
|
case "number":
|
|
2880
2917
|
case "date":
|
|
2881
2918
|
case "time": {
|
|
2882
2919
|
this.bumpSpace();
|
|
2883
|
-
var
|
|
2920
|
+
var a = null;
|
|
2884
2921
|
if (this.bumpIf(",")) {
|
|
2885
2922
|
this.bumpSpace();
|
|
2886
|
-
var
|
|
2923
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2887
2924
|
if (c.err)
|
|
2888
2925
|
return c;
|
|
2889
|
-
var
|
|
2890
|
-
if (
|
|
2926
|
+
var f = Cn(c.val);
|
|
2927
|
+
if (f.length === 0)
|
|
2891
2928
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2892
|
-
var p = _(
|
|
2893
|
-
|
|
2929
|
+
var p = _(l, this.clonePosition());
|
|
2930
|
+
a = { style: f, styleLocation: p };
|
|
2894
2931
|
}
|
|
2895
2932
|
var d = this.tryParseArgumentClose(i);
|
|
2896
2933
|
if (d.err)
|
|
2897
2934
|
return d;
|
|
2898
2935
|
var g = _(i, this.clonePosition());
|
|
2899
|
-
if (
|
|
2900
|
-
var x =
|
|
2901
|
-
if (
|
|
2902
|
-
var c = this.parseNumberSkeletonFromString(x,
|
|
2936
|
+
if (a && ut(a == null ? void 0 : a.style, "::", 0)) {
|
|
2937
|
+
var x = Tn(a.style.slice(2));
|
|
2938
|
+
if (u === "number") {
|
|
2939
|
+
var c = this.parseNumberSkeletonFromString(x, a.styleLocation);
|
|
2903
2940
|
return c.err ? c : {
|
|
2904
2941
|
val: { type: T.number, value: n, location: g, style: c.val },
|
|
2905
2942
|
err: null
|
|
@@ -2908,25 +2945,25 @@ var gn = (
|
|
|
2908
2945
|
if (x.length === 0)
|
|
2909
2946
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2910
2947
|
var m = x;
|
|
2911
|
-
this.locale && (m =
|
|
2912
|
-
var
|
|
2913
|
-
type:
|
|
2948
|
+
this.locale && (m = ln(x, this.locale));
|
|
2949
|
+
var f = {
|
|
2950
|
+
type: J.dateTime,
|
|
2914
2951
|
pattern: m,
|
|
2915
|
-
location:
|
|
2916
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2917
|
-
}, C =
|
|
2952
|
+
location: a.styleLocation,
|
|
2953
|
+
parsedOptions: this.shouldParseSkeletons ? rn(m) : {}
|
|
2954
|
+
}, C = u === "date" ? T.date : T.time;
|
|
2918
2955
|
return {
|
|
2919
|
-
val: { type: C, value: n, location: g, style:
|
|
2956
|
+
val: { type: C, value: n, location: g, style: f },
|
|
2920
2957
|
err: null
|
|
2921
2958
|
};
|
|
2922
2959
|
}
|
|
2923
2960
|
}
|
|
2924
2961
|
return {
|
|
2925
2962
|
val: {
|
|
2926
|
-
type:
|
|
2963
|
+
type: u === "number" ? T.number : u === "date" ? T.date : T.time,
|
|
2927
2964
|
value: n,
|
|
2928
2965
|
location: g,
|
|
2929
|
-
style: (s =
|
|
2966
|
+
style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
|
|
2930
2967
|
},
|
|
2931
2968
|
err: null
|
|
2932
2969
|
};
|
|
@@ -2938,45 +2975,45 @@ var gn = (
|
|
|
2938
2975
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2939
2976
|
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(A, E({}, A)));
|
|
2940
2977
|
this.bumpSpace();
|
|
2941
|
-
var
|
|
2942
|
-
if (
|
|
2978
|
+
var I = this.parseIdentifierIfPossible(), w = 0;
|
|
2979
|
+
if (u !== "select" && I.value === "offset") {
|
|
2943
2980
|
if (!this.bumpIf(":"))
|
|
2944
2981
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2945
2982
|
this.bumpSpace();
|
|
2946
2983
|
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2947
2984
|
if (c.err)
|
|
2948
2985
|
return c;
|
|
2949
|
-
this.bumpSpace(),
|
|
2986
|
+
this.bumpSpace(), I = this.parseIdentifierIfPossible(), w = c.val;
|
|
2950
2987
|
}
|
|
2951
|
-
var S = this.tryParsePluralOrSelectOptions(t,
|
|
2988
|
+
var S = this.tryParsePluralOrSelectOptions(t, u, r, I);
|
|
2952
2989
|
if (S.err)
|
|
2953
2990
|
return S;
|
|
2954
2991
|
var d = this.tryParseArgumentClose(i);
|
|
2955
2992
|
if (d.err)
|
|
2956
2993
|
return d;
|
|
2957
|
-
var
|
|
2958
|
-
return
|
|
2994
|
+
var N = _(i, this.clonePosition());
|
|
2995
|
+
return u === "select" ? {
|
|
2959
2996
|
val: {
|
|
2960
2997
|
type: T.select,
|
|
2961
2998
|
value: n,
|
|
2962
|
-
options:
|
|
2963
|
-
location:
|
|
2999
|
+
options: ht(S.val),
|
|
3000
|
+
location: N
|
|
2964
3001
|
},
|
|
2965
3002
|
err: null
|
|
2966
3003
|
} : {
|
|
2967
3004
|
val: {
|
|
2968
3005
|
type: T.plural,
|
|
2969
3006
|
value: n,
|
|
2970
|
-
options:
|
|
3007
|
+
options: ht(S.val),
|
|
2971
3008
|
offset: w,
|
|
2972
|
-
pluralType:
|
|
2973
|
-
location:
|
|
3009
|
+
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
3010
|
+
location: N
|
|
2974
3011
|
},
|
|
2975
3012
|
err: null
|
|
2976
3013
|
};
|
|
2977
3014
|
}
|
|
2978
3015
|
default:
|
|
2979
|
-
return this.error(y.INVALID_ARGUMENT_TYPE, _(o,
|
|
3016
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, _(o, h));
|
|
2980
3017
|
}
|
|
2981
3018
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2982
3019
|
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3018,34 +3055,34 @@ var gn = (
|
|
|
3018
3055
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3019
3056
|
var n = [];
|
|
3020
3057
|
try {
|
|
3021
|
-
n =
|
|
3022
|
-
} catch {
|
|
3058
|
+
n = sn(t);
|
|
3059
|
+
} catch (i) {
|
|
3023
3060
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3024
3061
|
}
|
|
3025
3062
|
return {
|
|
3026
3063
|
val: {
|
|
3027
|
-
type:
|
|
3064
|
+
type: J.number,
|
|
3028
3065
|
tokens: n,
|
|
3029
3066
|
location: r,
|
|
3030
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3067
|
+
parsedOptions: this.shouldParseSkeletons ? hn(n) : {}
|
|
3031
3068
|
},
|
|
3032
3069
|
err: null
|
|
3033
3070
|
};
|
|
3034
3071
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3035
|
-
for (var s, o = !1,
|
|
3036
|
-
if (
|
|
3072
|
+
for (var s, o = !1, u = [], h = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
|
|
3073
|
+
if (a.length === 0) {
|
|
3037
3074
|
var c = this.clonePosition();
|
|
3038
3075
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3039
|
-
var
|
|
3040
|
-
if (
|
|
3041
|
-
return
|
|
3042
|
-
|
|
3076
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3077
|
+
if (f.err)
|
|
3078
|
+
return f;
|
|
3079
|
+
l = _(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
3043
3080
|
} else
|
|
3044
3081
|
break;
|
|
3045
3082
|
}
|
|
3046
|
-
if (
|
|
3047
|
-
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
3048
|
-
|
|
3083
|
+
if (h.has(a))
|
|
3084
|
+
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3085
|
+
a === "other" && (o = !0), this.bumpSpace();
|
|
3049
3086
|
var p = this.clonePosition();
|
|
3050
3087
|
if (!this.bumpIf("{"))
|
|
3051
3088
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
@@ -3055,27 +3092,27 @@ var gn = (
|
|
|
3055
3092
|
var g = this.tryParseArgumentClose(p);
|
|
3056
3093
|
if (g.err)
|
|
3057
3094
|
return g;
|
|
3058
|
-
|
|
3059
|
-
|
|
3095
|
+
u.push([
|
|
3096
|
+
a,
|
|
3060
3097
|
{
|
|
3061
3098
|
value: d.val,
|
|
3062
3099
|
location: _(p, this.clonePosition())
|
|
3063
3100
|
}
|
|
3064
|
-
]),
|
|
3101
|
+
]), h.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
|
|
3065
3102
|
}
|
|
3066
|
-
return
|
|
3103
|
+
return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
3067
3104
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3068
3105
|
var n = 1, i = this.clonePosition();
|
|
3069
3106
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3070
3107
|
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
3071
|
-
var
|
|
3072
|
-
if (
|
|
3073
|
-
s = !0, o = o * 10 + (
|
|
3108
|
+
var u = this.char();
|
|
3109
|
+
if (u >= 48 && u <= 57)
|
|
3110
|
+
s = !0, o = o * 10 + (u - 48), this.bump();
|
|
3074
3111
|
else
|
|
3075
3112
|
break;
|
|
3076
3113
|
}
|
|
3077
|
-
var
|
|
3078
|
-
return s ? (o *= n,
|
|
3114
|
+
var h = _(i, this.clonePosition());
|
|
3115
|
+
return s ? (o *= n, xn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3079
3116
|
}, e.prototype.offset = function() {
|
|
3080
3117
|
return this.position.offset;
|
|
3081
3118
|
}, e.prototype.isEOF = function() {
|
|
@@ -3090,7 +3127,7 @@ var gn = (
|
|
|
3090
3127
|
var t = this.position.offset;
|
|
3091
3128
|
if (t >= this.message.length)
|
|
3092
3129
|
throw Error("out of bound");
|
|
3093
|
-
var r =
|
|
3130
|
+
var r = kt(this.message, t);
|
|
3094
3131
|
if (r === void 0)
|
|
3095
3132
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3096
3133
|
return r;
|
|
@@ -3109,7 +3146,7 @@ var gn = (
|
|
|
3109
3146
|
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);
|
|
3110
3147
|
}
|
|
3111
3148
|
}, e.prototype.bumpIf = function(t) {
|
|
3112
|
-
if (
|
|
3149
|
+
if (ut(this.message, t, this.offset())) {
|
|
3113
3150
|
for (var r = 0; r < t.length; r++)
|
|
3114
3151
|
this.bump();
|
|
3115
3152
|
return !0;
|
|
@@ -3131,56 +3168,56 @@ var gn = (
|
|
|
3131
3168
|
break;
|
|
3132
3169
|
}
|
|
3133
3170
|
}, e.prototype.bumpSpace = function() {
|
|
3134
|
-
for (; !this.isEOF() &&
|
|
3171
|
+
for (; !this.isEOF() && Xt(this.char()); )
|
|
3135
3172
|
this.bump();
|
|
3136
3173
|
}, e.prototype.peek = function() {
|
|
3137
3174
|
if (this.isEOF())
|
|
3138
3175
|
return null;
|
|
3139
3176
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3140
|
-
return n
|
|
3177
|
+
return n != null ? n : null;
|
|
3141
3178
|
}, e;
|
|
3142
3179
|
}()
|
|
3143
3180
|
);
|
|
3144
|
-
function
|
|
3181
|
+
function De(e) {
|
|
3145
3182
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3146
3183
|
}
|
|
3147
|
-
function
|
|
3148
|
-
return
|
|
3184
|
+
function An(e) {
|
|
3185
|
+
return De(e) || e === 47;
|
|
3149
3186
|
}
|
|
3150
|
-
function
|
|
3187
|
+
function Sn(e) {
|
|
3151
3188
|
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;
|
|
3152
3189
|
}
|
|
3153
|
-
function
|
|
3190
|
+
function Xt(e) {
|
|
3154
3191
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3155
3192
|
}
|
|
3156
|
-
function
|
|
3193
|
+
function Bn(e) {
|
|
3157
3194
|
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;
|
|
3158
3195
|
}
|
|
3159
|
-
function
|
|
3196
|
+
function Fe(e) {
|
|
3160
3197
|
e.forEach(function(t) {
|
|
3161
|
-
if (delete t.location,
|
|
3198
|
+
if (delete t.location, Mt(t) || $t(t))
|
|
3162
3199
|
for (var r in t.options)
|
|
3163
|
-
delete t.options[r].location,
|
|
3164
|
-
else
|
|
3200
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3201
|
+
else Nt(t) && Ut(t.style) || (Lt(t) || It(t)) && $e(t.style) ? delete t.style.location : Rt(t) && Fe(t.children);
|
|
3165
3202
|
});
|
|
3166
3203
|
}
|
|
3167
|
-
function
|
|
3204
|
+
function wn(e, t) {
|
|
3168
3205
|
t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3169
|
-
var r = new
|
|
3206
|
+
var r = new Hn(e, t).parse();
|
|
3170
3207
|
if (r.err) {
|
|
3171
3208
|
var n = SyntaxError(y[r.err.kind]);
|
|
3172
3209
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3173
3210
|
}
|
|
3174
|
-
return t
|
|
3211
|
+
return t != null && t.captureLocation || Fe(r.val), r.val;
|
|
3175
3212
|
}
|
|
3176
|
-
var
|
|
3213
|
+
var Y;
|
|
3177
3214
|
(function(e) {
|
|
3178
3215
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3179
|
-
})(
|
|
3180
|
-
var
|
|
3216
|
+
})(Y || (Y = {}));
|
|
3217
|
+
var xe = (
|
|
3181
3218
|
/** @class */
|
|
3182
3219
|
function(e) {
|
|
3183
|
-
|
|
3220
|
+
Ee(t, e);
|
|
3184
3221
|
function t(r, n, i) {
|
|
3185
3222
|
var s = e.call(this, r) || this;
|
|
3186
3223
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3189,155 +3226,155 @@ var Ee = (
|
|
|
3189
3226
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3190
3227
|
}, t;
|
|
3191
3228
|
}(Error)
|
|
3192
|
-
),
|
|
3229
|
+
), ft = (
|
|
3193
3230
|
/** @class */
|
|
3194
3231
|
function(e) {
|
|
3195
|
-
|
|
3232
|
+
Ee(t, e);
|
|
3196
3233
|
function t(r, n, i, s) {
|
|
3197
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3234
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, s) || this;
|
|
3198
3235
|
}
|
|
3199
3236
|
return t;
|
|
3200
|
-
}(
|
|
3201
|
-
),
|
|
3237
|
+
}(xe)
|
|
3238
|
+
), On = (
|
|
3202
3239
|
/** @class */
|
|
3203
3240
|
function(e) {
|
|
3204
|
-
|
|
3241
|
+
Ee(t, e);
|
|
3205
3242
|
function t(r, n, i) {
|
|
3206
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3243
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
|
|
3207
3244
|
}
|
|
3208
3245
|
return t;
|
|
3209
|
-
}(
|
|
3210
|
-
),
|
|
3246
|
+
}(xe)
|
|
3247
|
+
), Pn = (
|
|
3211
3248
|
/** @class */
|
|
3212
3249
|
function(e) {
|
|
3213
|
-
|
|
3250
|
+
Ee(t, e);
|
|
3214
3251
|
function t(r, n) {
|
|
3215
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3252
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
|
|
3216
3253
|
}
|
|
3217
3254
|
return t;
|
|
3218
|
-
}(
|
|
3219
|
-
),
|
|
3255
|
+
}(xe)
|
|
3256
|
+
), P;
|
|
3220
3257
|
(function(e) {
|
|
3221
3258
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3222
|
-
})(
|
|
3223
|
-
function
|
|
3259
|
+
})(P || (P = {}));
|
|
3260
|
+
function Nn(e) {
|
|
3224
3261
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3225
3262
|
var n = t[t.length - 1];
|
|
3226
|
-
return !n || n.type !==
|
|
3263
|
+
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
|
3227
3264
|
}, []);
|
|
3228
3265
|
}
|
|
3229
|
-
function
|
|
3266
|
+
function Ln(e) {
|
|
3230
3267
|
return typeof e == "function";
|
|
3231
3268
|
}
|
|
3232
|
-
function
|
|
3233
|
-
if (e.length === 1 &&
|
|
3269
|
+
function me(e, t, r, n, i, s, o) {
|
|
3270
|
+
if (e.length === 1 && it(e[0]))
|
|
3234
3271
|
return [
|
|
3235
3272
|
{
|
|
3236
|
-
type:
|
|
3273
|
+
type: P.literal,
|
|
3237
3274
|
value: e[0].value
|
|
3238
3275
|
}
|
|
3239
3276
|
];
|
|
3240
|
-
for (var
|
|
3241
|
-
var
|
|
3242
|
-
if (
|
|
3243
|
-
|
|
3244
|
-
type:
|
|
3245
|
-
value:
|
|
3277
|
+
for (var u = [], h = 0, a = e; h < a.length; h++) {
|
|
3278
|
+
var l = a[h];
|
|
3279
|
+
if (it(l)) {
|
|
3280
|
+
u.push({
|
|
3281
|
+
type: P.literal,
|
|
3282
|
+
value: l.value
|
|
3246
3283
|
});
|
|
3247
3284
|
continue;
|
|
3248
3285
|
}
|
|
3249
|
-
if (
|
|
3250
|
-
typeof s == "number" &&
|
|
3251
|
-
type:
|
|
3286
|
+
if (en(l)) {
|
|
3287
|
+
typeof s == "number" && u.push({
|
|
3288
|
+
type: P.literal,
|
|
3252
3289
|
value: r.getNumberFormat(t).format(s)
|
|
3253
3290
|
});
|
|
3254
3291
|
continue;
|
|
3255
3292
|
}
|
|
3256
|
-
var c =
|
|
3293
|
+
var c = l.value;
|
|
3257
3294
|
if (!(i && c in i))
|
|
3258
|
-
throw new
|
|
3259
|
-
var
|
|
3260
|
-
if (
|
|
3261
|
-
(!
|
|
3262
|
-
type: typeof
|
|
3263
|
-
value:
|
|
3295
|
+
throw new Pn(c, o);
|
|
3296
|
+
var f = i[c];
|
|
3297
|
+
if (Kr(l)) {
|
|
3298
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3299
|
+
type: typeof f == "string" ? P.literal : P.object,
|
|
3300
|
+
value: f
|
|
3264
3301
|
});
|
|
3265
3302
|
continue;
|
|
3266
3303
|
}
|
|
3267
|
-
if (
|
|
3268
|
-
var p = typeof
|
|
3269
|
-
|
|
3270
|
-
type:
|
|
3271
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3304
|
+
if (Lt(l)) {
|
|
3305
|
+
var p = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
|
|
3306
|
+
u.push({
|
|
3307
|
+
type: P.literal,
|
|
3308
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3272
3309
|
});
|
|
3273
3310
|
continue;
|
|
3274
3311
|
}
|
|
3275
|
-
if (
|
|
3276
|
-
var p = typeof
|
|
3277
|
-
|
|
3278
|
-
type:
|
|
3279
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3312
|
+
if (It(l)) {
|
|
3313
|
+
var p = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3314
|
+
u.push({
|
|
3315
|
+
type: P.literal,
|
|
3316
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3280
3317
|
});
|
|
3281
3318
|
continue;
|
|
3282
3319
|
}
|
|
3283
|
-
if (
|
|
3284
|
-
var p = typeof
|
|
3285
|
-
p && p.scale && (
|
|
3286
|
-
type:
|
|
3287
|
-
value: r.getNumberFormat(t, p).format(
|
|
3320
|
+
if (Nt(l)) {
|
|
3321
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Ut(l.style) ? l.style.parsedOptions : void 0;
|
|
3322
|
+
p && p.scale && (f = f * (p.scale || 1)), u.push({
|
|
3323
|
+
type: P.literal,
|
|
3324
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3288
3325
|
});
|
|
3289
3326
|
continue;
|
|
3290
3327
|
}
|
|
3291
|
-
if (
|
|
3292
|
-
var d =
|
|
3293
|
-
if (!
|
|
3294
|
-
throw new
|
|
3295
|
-
var m =
|
|
3328
|
+
if (Rt(l)) {
|
|
3329
|
+
var d = l.children, g = l.value, x = i[g];
|
|
3330
|
+
if (!Ln(x))
|
|
3331
|
+
throw new On(g, "function", o);
|
|
3332
|
+
var m = me(d, t, r, n, i, s), C = x(m.map(function(w) {
|
|
3296
3333
|
return w.value;
|
|
3297
3334
|
}));
|
|
3298
|
-
Array.isArray(C) || (C = [C]),
|
|
3335
|
+
Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(w) {
|
|
3299
3336
|
return {
|
|
3300
|
-
type: typeof w == "string" ?
|
|
3337
|
+
type: typeof w == "string" ? P.literal : P.object,
|
|
3301
3338
|
value: w
|
|
3302
3339
|
};
|
|
3303
3340
|
}));
|
|
3304
3341
|
}
|
|
3305
|
-
if (
|
|
3306
|
-
var A =
|
|
3342
|
+
if (Mt(l)) {
|
|
3343
|
+
var A = l.options[f] || l.options.other;
|
|
3307
3344
|
if (!A)
|
|
3308
|
-
throw new
|
|
3309
|
-
|
|
3345
|
+
throw new ft(l.value, f, Object.keys(l.options), o);
|
|
3346
|
+
u.push.apply(u, me(A.value, t, r, n, i));
|
|
3310
3347
|
continue;
|
|
3311
3348
|
}
|
|
3312
|
-
if (
|
|
3313
|
-
var A =
|
|
3349
|
+
if ($t(l)) {
|
|
3350
|
+
var A = l.options["=".concat(f)];
|
|
3314
3351
|
if (!A) {
|
|
3315
3352
|
if (!Intl.PluralRules)
|
|
3316
|
-
throw new
|
|
3353
|
+
throw new xe(`Intl.PluralRules is not available in this environment.
|
|
3317
3354
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3318
|
-
`,
|
|
3319
|
-
var
|
|
3320
|
-
A =
|
|
3355
|
+
`, Y.MISSING_INTL_API, o);
|
|
3356
|
+
var I = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3357
|
+
A = l.options[I] || l.options.other;
|
|
3321
3358
|
}
|
|
3322
3359
|
if (!A)
|
|
3323
|
-
throw new
|
|
3324
|
-
|
|
3360
|
+
throw new ft(l.value, f, Object.keys(l.options), o);
|
|
3361
|
+
u.push.apply(u, me(A.value, t, r, n, i, f - (l.offset || 0)));
|
|
3325
3362
|
continue;
|
|
3326
3363
|
}
|
|
3327
3364
|
}
|
|
3328
|
-
return
|
|
3365
|
+
return Nn(u);
|
|
3329
3366
|
}
|
|
3330
|
-
function
|
|
3367
|
+
function In(e, t) {
|
|
3331
3368
|
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3332
3369
|
return r[n] = E(E({}, e[n]), t[n] || {}), r;
|
|
3333
3370
|
}, {})) : e;
|
|
3334
3371
|
}
|
|
3335
|
-
function
|
|
3372
|
+
function Mn(e, t) {
|
|
3336
3373
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3337
|
-
return r[n] =
|
|
3374
|
+
return r[n] = In(e[n], t[n]), r;
|
|
3338
3375
|
}, E({}, e)) : e;
|
|
3339
3376
|
}
|
|
3340
|
-
function
|
|
3377
|
+
function Oe(e) {
|
|
3341
3378
|
return {
|
|
3342
3379
|
create: function() {
|
|
3343
3380
|
return {
|
|
@@ -3351,39 +3388,39 @@ function Be(e) {
|
|
|
3351
3388
|
}
|
|
3352
3389
|
};
|
|
3353
3390
|
}
|
|
3354
|
-
function
|
|
3391
|
+
function $n(e) {
|
|
3355
3392
|
return e === void 0 && (e = {
|
|
3356
3393
|
number: {},
|
|
3357
3394
|
dateTime: {},
|
|
3358
3395
|
pluralRules: {}
|
|
3359
3396
|
}), {
|
|
3360
|
-
getNumberFormat:
|
|
3397
|
+
getNumberFormat: Se(function() {
|
|
3361
3398
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3362
3399
|
r[n] = arguments[n];
|
|
3363
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3400
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3364
3401
|
}, {
|
|
3365
|
-
cache:
|
|
3366
|
-
strategy:
|
|
3402
|
+
cache: Oe(e.number),
|
|
3403
|
+
strategy: Be.variadic
|
|
3367
3404
|
}),
|
|
3368
|
-
getDateTimeFormat:
|
|
3405
|
+
getDateTimeFormat: Se(function() {
|
|
3369
3406
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3370
3407
|
r[n] = arguments[n];
|
|
3371
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3408
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3372
3409
|
}, {
|
|
3373
|
-
cache:
|
|
3374
|
-
strategy:
|
|
3410
|
+
cache: Oe(e.dateTime),
|
|
3411
|
+
strategy: Be.variadic
|
|
3375
3412
|
}),
|
|
3376
|
-
getPluralRules:
|
|
3413
|
+
getPluralRules: Se(function() {
|
|
3377
3414
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3378
3415
|
r[n] = arguments[n];
|
|
3379
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3416
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3380
3417
|
}, {
|
|
3381
|
-
cache:
|
|
3382
|
-
strategy:
|
|
3418
|
+
cache: Oe(e.pluralRules),
|
|
3419
|
+
strategy: Be.variadic
|
|
3383
3420
|
})
|
|
3384
3421
|
};
|
|
3385
3422
|
}
|
|
3386
|
-
var
|
|
3423
|
+
var Rn = (
|
|
3387
3424
|
/** @class */
|
|
3388
3425
|
function() {
|
|
3389
3426
|
function e(t, r, n, i) {
|
|
@@ -3393,20 +3430,20 @@ var Hn = (
|
|
|
3393
3430
|
number: {},
|
|
3394
3431
|
dateTime: {},
|
|
3395
3432
|
pluralRules: {}
|
|
3396
|
-
}, this.format = function(
|
|
3397
|
-
var
|
|
3398
|
-
if (
|
|
3399
|
-
return
|
|
3400
|
-
var
|
|
3401
|
-
return !c.length ||
|
|
3433
|
+
}, this.format = function(h) {
|
|
3434
|
+
var a = s.formatToParts(h);
|
|
3435
|
+
if (a.length === 1)
|
|
3436
|
+
return a[0].value;
|
|
3437
|
+
var l = a.reduce(function(c, f) {
|
|
3438
|
+
return !c.length || f.type !== P.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3402
3439
|
}, []);
|
|
3403
|
-
return
|
|
3404
|
-
}, this.formatToParts = function(
|
|
3405
|
-
return
|
|
3440
|
+
return l.length <= 1 ? l[0] || "" : l;
|
|
3441
|
+
}, this.formatToParts = function(h) {
|
|
3442
|
+
return me(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3406
3443
|
}, this.resolvedOptions = function() {
|
|
3407
|
-
var
|
|
3444
|
+
var h;
|
|
3408
3445
|
return {
|
|
3409
|
-
locale: ((
|
|
3446
|
+
locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3410
3447
|
};
|
|
3411
3448
|
}, this.getAst = function() {
|
|
3412
3449
|
return s.ast;
|
|
@@ -3415,13 +3452,13 @@ var Hn = (
|
|
|
3415
3452
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3416
3453
|
var o = i || {};
|
|
3417
3454
|
o.formatters;
|
|
3418
|
-
var
|
|
3419
|
-
this.ast = e.__parse(t, E(E({},
|
|
3455
|
+
var u = Xr(o, ["formatters"]);
|
|
3456
|
+
this.ast = e.__parse(t, E(E({}, u), { locale: this.resolvedLocale }));
|
|
3420
3457
|
} else
|
|
3421
3458
|
this.ast = t;
|
|
3422
3459
|
if (!Array.isArray(this.ast))
|
|
3423
3460
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3424
|
-
this.formats =
|
|
3461
|
+
this.formats = Mn(e.formats, n), this.formatters = i && i.formatters || $n(this.formatterCache);
|
|
3425
3462
|
}
|
|
3426
3463
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3427
3464
|
get: function() {
|
|
@@ -3430,11 +3467,11 @@ var Hn = (
|
|
|
3430
3467
|
enumerable: !1,
|
|
3431
3468
|
configurable: !0
|
|
3432
3469
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3433
|
-
if (
|
|
3470
|
+
if (typeof Intl.Locale != "undefined") {
|
|
3434
3471
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3435
3472
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3436
3473
|
}
|
|
3437
|
-
}, e.__parse =
|
|
3474
|
+
}, e.__parse = wn, e.formats = {
|
|
3438
3475
|
number: {
|
|
3439
3476
|
integer: {
|
|
3440
3477
|
maximumFractionDigits: 0
|
|
@@ -3495,7 +3532,7 @@ var Hn = (
|
|
|
3495
3532
|
}, e;
|
|
3496
3533
|
}()
|
|
3497
3534
|
);
|
|
3498
|
-
function
|
|
3535
|
+
function Un(e, t) {
|
|
3499
3536
|
if (t == null)
|
|
3500
3537
|
return;
|
|
3501
3538
|
if (t in e)
|
|
@@ -3516,92 +3553,92 @@ function An(e, t) {
|
|
|
3516
3553
|
n = void 0;
|
|
3517
3554
|
return n;
|
|
3518
3555
|
}
|
|
3519
|
-
const
|
|
3556
|
+
const D = {}, Gn = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), zt = (e, t) => {
|
|
3520
3557
|
if (t == null)
|
|
3521
3558
|
return;
|
|
3522
|
-
if (t in
|
|
3523
|
-
return
|
|
3524
|
-
const r =
|
|
3559
|
+
if (t in D && e in D[t])
|
|
3560
|
+
return D[t][e];
|
|
3561
|
+
const r = ve(t);
|
|
3525
3562
|
for (let n = 0; n < r.length; n++) {
|
|
3526
|
-
const i = r[n], s =
|
|
3563
|
+
const i = r[n], s = Fn(i, e);
|
|
3527
3564
|
if (s)
|
|
3528
|
-
return
|
|
3565
|
+
return Gn(e, t, s);
|
|
3529
3566
|
}
|
|
3530
3567
|
};
|
|
3531
|
-
let
|
|
3532
|
-
const
|
|
3533
|
-
function
|
|
3534
|
-
return
|
|
3568
|
+
let ze;
|
|
3569
|
+
const he = _e({});
|
|
3570
|
+
function Dn(e) {
|
|
3571
|
+
return ze[e] || null;
|
|
3535
3572
|
}
|
|
3536
|
-
function
|
|
3537
|
-
return e in
|
|
3573
|
+
function Wt(e) {
|
|
3574
|
+
return e in ze;
|
|
3538
3575
|
}
|
|
3539
|
-
function
|
|
3540
|
-
if (!
|
|
3576
|
+
function Fn(e, t) {
|
|
3577
|
+
if (!Wt(e))
|
|
3541
3578
|
return null;
|
|
3542
|
-
const r =
|
|
3543
|
-
return
|
|
3579
|
+
const r = Dn(e);
|
|
3580
|
+
return Un(r, t);
|
|
3544
3581
|
}
|
|
3545
|
-
function
|
|
3582
|
+
function jn(e) {
|
|
3546
3583
|
if (e == null)
|
|
3547
3584
|
return;
|
|
3548
|
-
const t =
|
|
3585
|
+
const t = ve(e);
|
|
3549
3586
|
for (let r = 0; r < t.length; r++) {
|
|
3550
3587
|
const n = t[r];
|
|
3551
|
-
if (
|
|
3588
|
+
if (Wt(n))
|
|
3552
3589
|
return n;
|
|
3553
3590
|
}
|
|
3554
3591
|
}
|
|
3555
|
-
function
|
|
3556
|
-
delete
|
|
3592
|
+
function Zt(e, ...t) {
|
|
3593
|
+
delete D[e], he.update((r) => (r[e] = Vr.all([r[e] || {}, ...t]), r));
|
|
3557
3594
|
}
|
|
3558
|
-
|
|
3559
|
-
[
|
|
3595
|
+
ee(
|
|
3596
|
+
[he],
|
|
3560
3597
|
([e]) => Object.keys(e)
|
|
3561
3598
|
);
|
|
3562
|
-
|
|
3563
|
-
const
|
|
3564
|
-
function
|
|
3565
|
-
|
|
3599
|
+
he.subscribe((e) => ze = e);
|
|
3600
|
+
const de = {};
|
|
3601
|
+
function kn(e, t) {
|
|
3602
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3566
3603
|
}
|
|
3567
|
-
function
|
|
3568
|
-
return
|
|
3604
|
+
function Qt(e) {
|
|
3605
|
+
return de[e];
|
|
3569
3606
|
}
|
|
3570
|
-
function
|
|
3571
|
-
return
|
|
3572
|
-
const r =
|
|
3607
|
+
function Vn(e) {
|
|
3608
|
+
return ve(e).map((t) => {
|
|
3609
|
+
const r = Qt(t);
|
|
3573
3610
|
return [t, r ? [...r] : []];
|
|
3574
3611
|
}).filter(([, t]) => t.length > 0);
|
|
3575
3612
|
}
|
|
3576
|
-
function
|
|
3577
|
-
return e == null ? !1 :
|
|
3613
|
+
function je(e) {
|
|
3614
|
+
return e == null ? !1 : ve(e).some(
|
|
3578
3615
|
(t) => {
|
|
3579
3616
|
var r;
|
|
3580
|
-
return (r =
|
|
3617
|
+
return (r = Qt(t)) == null ? void 0 : r.size;
|
|
3581
3618
|
}
|
|
3582
3619
|
);
|
|
3583
3620
|
}
|
|
3584
|
-
function
|
|
3621
|
+
function Xn(e, t) {
|
|
3585
3622
|
return Promise.all(
|
|
3586
|
-
t.map((n) => (
|
|
3587
|
-
).then((n) =>
|
|
3588
|
-
}
|
|
3589
|
-
const
|
|
3590
|
-
function
|
|
3591
|
-
if (!
|
|
3592
|
-
return e in
|
|
3593
|
-
const t =
|
|
3594
|
-
return
|
|
3623
|
+
t.map((n) => (kn(e, n), n().then((i) => i.default || i)))
|
|
3624
|
+
).then((n) => Zt(e, ...n));
|
|
3625
|
+
}
|
|
3626
|
+
const ne = {};
|
|
3627
|
+
function qt(e) {
|
|
3628
|
+
if (!je(e))
|
|
3629
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
3630
|
+
const t = Vn(e);
|
|
3631
|
+
return ne[e] = Promise.all(
|
|
3595
3632
|
t.map(
|
|
3596
|
-
([r, n]) =>
|
|
3633
|
+
([r, n]) => Xn(r, n)
|
|
3597
3634
|
)
|
|
3598
3635
|
).then(() => {
|
|
3599
|
-
if (
|
|
3600
|
-
return
|
|
3601
|
-
delete
|
|
3602
|
-
}),
|
|
3636
|
+
if (je(e))
|
|
3637
|
+
return qt(e);
|
|
3638
|
+
delete ne[e];
|
|
3639
|
+
}), ne[e];
|
|
3603
3640
|
}
|
|
3604
|
-
const
|
|
3641
|
+
const zn = {
|
|
3605
3642
|
number: {
|
|
3606
3643
|
scientific: { notation: "scientific" },
|
|
3607
3644
|
engineering: { notation: "engineering" },
|
|
@@ -3630,178 +3667,178 @@ const In = {
|
|
|
3630
3667
|
timeZoneName: "short"
|
|
3631
3668
|
}
|
|
3632
3669
|
}
|
|
3633
|
-
},
|
|
3670
|
+
}, Wn = {
|
|
3634
3671
|
fallbackLocale: null,
|
|
3635
3672
|
loadingDelay: 200,
|
|
3636
|
-
formats:
|
|
3673
|
+
formats: zn,
|
|
3637
3674
|
warnOnMissingMessages: !0,
|
|
3638
3675
|
handleMissingMessage: void 0,
|
|
3639
3676
|
ignoreTag: !0
|
|
3640
|
-
},
|
|
3641
|
-
function
|
|
3642
|
-
return
|
|
3677
|
+
}, Zn = Wn;
|
|
3678
|
+
function K() {
|
|
3679
|
+
return Zn;
|
|
3643
3680
|
}
|
|
3644
|
-
const
|
|
3645
|
-
var
|
|
3681
|
+
const Pe = _e(!1);
|
|
3682
|
+
var Qn = Object.defineProperty, qn = Object.defineProperties, Jn = Object.getOwnPropertyDescriptors, ct = Object.getOwnPropertySymbols, Yn = Object.prototype.hasOwnProperty, Kn = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? Qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ei = (e, t) => {
|
|
3646
3683
|
for (var r in t)
|
|
3647
|
-
|
|
3648
|
-
if (
|
|
3649
|
-
for (var r of
|
|
3650
|
-
|
|
3684
|
+
Yn.call(t, r) && gt(e, r, t[r]);
|
|
3685
|
+
if (ct)
|
|
3686
|
+
for (var r of ct(t))
|
|
3687
|
+
Kn.call(t, r) && gt(e, r, t[r]);
|
|
3651
3688
|
return e;
|
|
3652
|
-
},
|
|
3653
|
-
let
|
|
3654
|
-
const
|
|
3655
|
-
function
|
|
3689
|
+
}, ti = (e, t) => qn(e, Jn(t));
|
|
3690
|
+
let ke;
|
|
3691
|
+
const be = _e(null);
|
|
3692
|
+
function mt(e) {
|
|
3656
3693
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3657
3694
|
}
|
|
3658
|
-
function
|
|
3659
|
-
const r =
|
|
3660
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3695
|
+
function ve(e, t = K().fallbackLocale) {
|
|
3696
|
+
const r = mt(e);
|
|
3697
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...mt(t)])] : r;
|
|
3661
3698
|
}
|
|
3662
|
-
function
|
|
3663
|
-
return
|
|
3699
|
+
function X() {
|
|
3700
|
+
return ke != null ? ke : void 0;
|
|
3664
3701
|
}
|
|
3665
|
-
|
|
3666
|
-
|
|
3702
|
+
be.subscribe((e) => {
|
|
3703
|
+
ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3667
3704
|
});
|
|
3668
|
-
const
|
|
3669
|
-
if (e &&
|
|
3670
|
-
const { loadingDelay: t } =
|
|
3705
|
+
const ri = (e) => {
|
|
3706
|
+
if (e && jn(e) && je(e)) {
|
|
3707
|
+
const { loadingDelay: t } = K();
|
|
3671
3708
|
let r;
|
|
3672
|
-
return typeof window
|
|
3673
|
-
() =>
|
|
3709
|
+
return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
|
|
3710
|
+
() => Pe.set(!0),
|
|
3674
3711
|
t
|
|
3675
|
-
) :
|
|
3676
|
-
|
|
3712
|
+
) : Pe.set(!0), qt(e).then(() => {
|
|
3713
|
+
be.set(e);
|
|
3677
3714
|
}).finally(() => {
|
|
3678
|
-
clearTimeout(r),
|
|
3715
|
+
clearTimeout(r), Pe.set(!1);
|
|
3679
3716
|
});
|
|
3680
3717
|
}
|
|
3681
|
-
return
|
|
3682
|
-
},
|
|
3683
|
-
set:
|
|
3684
|
-
}),
|
|
3718
|
+
return be.set(e);
|
|
3719
|
+
}, te = ti(ei({}, be), {
|
|
3720
|
+
set: ri
|
|
3721
|
+
}), Te = (e) => {
|
|
3685
3722
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3686
3723
|
return (n) => {
|
|
3687
3724
|
const i = JSON.stringify(n);
|
|
3688
3725
|
return i in t ? t[i] : t[i] = e(n);
|
|
3689
3726
|
};
|
|
3690
3727
|
};
|
|
3691
|
-
var
|
|
3728
|
+
var ni = Object.defineProperty, ye = Object.getOwnPropertySymbols, Jt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
|
|
3692
3729
|
for (var r in t || (t = {}))
|
|
3693
|
-
|
|
3694
|
-
if (
|
|
3695
|
-
for (var r of
|
|
3696
|
-
|
|
3730
|
+
Jt.call(t, r) && dt(e, r, t[r]);
|
|
3731
|
+
if (ye)
|
|
3732
|
+
for (var r of ye(t))
|
|
3733
|
+
Yt.call(t, r) && dt(e, r, t[r]);
|
|
3697
3734
|
return e;
|
|
3698
|
-
},
|
|
3735
|
+
}, re = (e, t) => {
|
|
3699
3736
|
var r = {};
|
|
3700
3737
|
for (var n in e)
|
|
3701
|
-
|
|
3702
|
-
if (e != null &&
|
|
3703
|
-
for (var n of
|
|
3704
|
-
t.indexOf(n) < 0 &&
|
|
3738
|
+
Jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3739
|
+
if (e != null && ye)
|
|
3740
|
+
for (var n of ye(e))
|
|
3741
|
+
t.indexOf(n) < 0 && Yt.call(e, n) && (r[n] = e[n]);
|
|
3705
3742
|
return r;
|
|
3706
3743
|
};
|
|
3707
|
-
const
|
|
3708
|
-
const { formats: r } =
|
|
3744
|
+
const ae = (e, t) => {
|
|
3745
|
+
const { formats: r } = K();
|
|
3709
3746
|
if (e in r && t in r[e])
|
|
3710
3747
|
return r[e][t];
|
|
3711
3748
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3712
|
-
},
|
|
3749
|
+
}, ii = Te(
|
|
3713
3750
|
(e) => {
|
|
3714
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3751
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3715
3752
|
if (r == null)
|
|
3716
3753
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3717
|
-
return n && (i =
|
|
3754
|
+
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
3718
3755
|
}
|
|
3719
|
-
),
|
|
3756
|
+
), si = Te(
|
|
3720
3757
|
(e) => {
|
|
3721
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3758
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3722
3759
|
if (r == null)
|
|
3723
3760
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3724
|
-
return n ? i =
|
|
3761
|
+
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3725
3762
|
}
|
|
3726
|
-
),
|
|
3763
|
+
), oi = Te(
|
|
3727
3764
|
(e) => {
|
|
3728
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3765
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3729
3766
|
if (r == null)
|
|
3730
3767
|
throw new Error(
|
|
3731
3768
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3732
3769
|
);
|
|
3733
|
-
return n ? i =
|
|
3770
|
+
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3734
3771
|
}
|
|
3735
|
-
),
|
|
3772
|
+
), ai = (e = {}) => {
|
|
3736
3773
|
var t = e, {
|
|
3737
|
-
locale: r =
|
|
3738
|
-
} = t, n =
|
|
3774
|
+
locale: r = X()
|
|
3775
|
+
} = t, n = re(t, [
|
|
3739
3776
|
"locale"
|
|
3740
3777
|
]);
|
|
3741
|
-
return
|
|
3742
|
-
},
|
|
3778
|
+
return ii(We({ locale: r }, n));
|
|
3779
|
+
}, ui = (e = {}) => {
|
|
3743
3780
|
var t = e, {
|
|
3744
|
-
locale: r =
|
|
3745
|
-
} = t, n =
|
|
3781
|
+
locale: r = X()
|
|
3782
|
+
} = t, n = re(t, [
|
|
3746
3783
|
"locale"
|
|
3747
3784
|
]);
|
|
3748
|
-
return
|
|
3749
|
-
},
|
|
3785
|
+
return si(We({ locale: r }, n));
|
|
3786
|
+
}, hi = (e = {}) => {
|
|
3750
3787
|
var t = e, {
|
|
3751
|
-
locale: r =
|
|
3752
|
-
} = t, n =
|
|
3788
|
+
locale: r = X()
|
|
3789
|
+
} = t, n = re(t, [
|
|
3753
3790
|
"locale"
|
|
3754
3791
|
]);
|
|
3755
|
-
return
|
|
3756
|
-
},
|
|
3792
|
+
return oi(We({ locale: r }, n));
|
|
3793
|
+
}, li = Te(
|
|
3757
3794
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3758
|
-
(e, t =
|
|
3759
|
-
ignoreTag:
|
|
3795
|
+
(e, t = X()) => new Rn(e, t, K().formats, {
|
|
3796
|
+
ignoreTag: K().ignoreTag
|
|
3760
3797
|
})
|
|
3761
|
-
),
|
|
3798
|
+
), fi = (e, t = {}) => {
|
|
3762
3799
|
var r, n, i, s;
|
|
3763
3800
|
let o = t;
|
|
3764
3801
|
typeof e == "object" && (o = e, e = o.id);
|
|
3765
3802
|
const {
|
|
3766
|
-
values:
|
|
3767
|
-
locale:
|
|
3768
|
-
default:
|
|
3803
|
+
values: u,
|
|
3804
|
+
locale: h = X(),
|
|
3805
|
+
default: a
|
|
3769
3806
|
} = o;
|
|
3770
|
-
if (
|
|
3807
|
+
if (h == null)
|
|
3771
3808
|
throw new Error(
|
|
3772
3809
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3773
3810
|
);
|
|
3774
|
-
let
|
|
3775
|
-
if (!
|
|
3776
|
-
|
|
3777
|
-
else if (typeof
|
|
3811
|
+
let l = zt(e, h);
|
|
3812
|
+
if (!l)
|
|
3813
|
+
l = (s = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3814
|
+
else if (typeof l != "string")
|
|
3778
3815
|
return console.warn(
|
|
3779
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3780
|
-
),
|
|
3781
|
-
if (!
|
|
3782
|
-
return
|
|
3783
|
-
let c =
|
|
3816
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3817
|
+
), l;
|
|
3818
|
+
if (!u)
|
|
3819
|
+
return l;
|
|
3820
|
+
let c = l;
|
|
3784
3821
|
try {
|
|
3785
|
-
c =
|
|
3786
|
-
} catch (
|
|
3787
|
-
|
|
3822
|
+
c = li(l, h).format(u);
|
|
3823
|
+
} catch (f) {
|
|
3824
|
+
f instanceof Error && console.warn(
|
|
3788
3825
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3789
|
-
|
|
3826
|
+
f.message
|
|
3790
3827
|
);
|
|
3791
3828
|
}
|
|
3792
3829
|
return c;
|
|
3793
|
-
},
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
function
|
|
3799
|
-
|
|
3800
|
-
}
|
|
3801
|
-
function
|
|
3802
|
-
|
|
3803
|
-
}
|
|
3804
|
-
const
|
|
3830
|
+
}, ci = (e, t) => hi(t).format(e), gi = (e, t) => ui(t).format(e), mi = (e, t) => ai(t).format(e), di = (e, t = X()) => zt(e, t), pi = ee([te, he], () => fi);
|
|
3831
|
+
ee([te], () => ci);
|
|
3832
|
+
ee([te], () => gi);
|
|
3833
|
+
ee([te], () => mi);
|
|
3834
|
+
ee([te, he], () => di);
|
|
3835
|
+
function pt(e, t) {
|
|
3836
|
+
Zt(e, t);
|
|
3837
|
+
}
|
|
3838
|
+
function bi(e) {
|
|
3839
|
+
te.set(e);
|
|
3840
|
+
}
|
|
3841
|
+
const bt = {
|
|
3805
3842
|
en: {
|
|
3806
3843
|
topCategories: "Top Categories",
|
|
3807
3844
|
otherCategories: "Other Categories",
|
|
@@ -3911,84 +3948,84 @@ const lt = {
|
|
|
3911
3948
|
games: "games"
|
|
3912
3949
|
}
|
|
3913
3950
|
};
|
|
3914
|
-
function
|
|
3915
|
-
|
|
3951
|
+
function yi(e) {
|
|
3952
|
+
lr(e, "svelte-131a9uf", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
|
|
3916
3953
|
}
|
|
3917
|
-
function
|
|
3954
|
+
function yt(e, t, r) {
|
|
3918
3955
|
const n = e.slice();
|
|
3919
3956
|
return n[24] = t[r], n;
|
|
3920
3957
|
}
|
|
3921
|
-
function
|
|
3958
|
+
function _t(e, t, r) {
|
|
3922
3959
|
const n = e.slice();
|
|
3923
3960
|
return n[24] = t[r], n;
|
|
3924
3961
|
}
|
|
3925
|
-
function
|
|
3962
|
+
function _i(e) {
|
|
3926
3963
|
let t, r, n = (
|
|
3927
3964
|
/*$_*/
|
|
3928
3965
|
e[5]("topCategories") + ""
|
|
3929
|
-
), i, s, o,
|
|
3966
|
+
), i, s, o, u, h = (
|
|
3930
3967
|
/*$_*/
|
|
3931
3968
|
e[5]("otherCategories") + ""
|
|
3932
|
-
),
|
|
3969
|
+
), a, l, c = fe(
|
|
3933
3970
|
/*topCategories*/
|
|
3934
3971
|
e[3]
|
|
3935
|
-
),
|
|
3972
|
+
), f = [];
|
|
3936
3973
|
for (let g = 0; g < c.length; g += 1)
|
|
3937
|
-
|
|
3938
|
-
let p =
|
|
3974
|
+
f[g] = Et(_t(e, c, g));
|
|
3975
|
+
let p = fe(
|
|
3939
3976
|
/*otherCategories*/
|
|
3940
3977
|
e[4]
|
|
3941
3978
|
), d = [];
|
|
3942
3979
|
for (let g = 0; g < p.length; g += 1)
|
|
3943
|
-
d[g] =
|
|
3980
|
+
d[g] = xt(yt(e, p, g));
|
|
3944
3981
|
return {
|
|
3945
3982
|
c() {
|
|
3946
|
-
t = B("div"), r = B("h4"), i =
|
|
3947
|
-
for (let g = 0; g <
|
|
3948
|
-
|
|
3949
|
-
o =
|
|
3983
|
+
t = B("div"), r = B("h4"), i = U(n), s = R();
|
|
3984
|
+
for (let g = 0; g < f.length; g += 1)
|
|
3985
|
+
f[g].c();
|
|
3986
|
+
o = R(), u = B("h4"), a = U(h), l = R();
|
|
3950
3987
|
for (let g = 0; g < d.length; g += 1)
|
|
3951
3988
|
d[g].c();
|
|
3952
|
-
H(r, "class", "CategoryTitle"), H(
|
|
3989
|
+
H(r, "class", "CategoryTitle"), H(u, "class", "CategoryTitle"), H(t, "class", "CasinoCategories");
|
|
3953
3990
|
},
|
|
3954
3991
|
m(g, x) {
|
|
3955
|
-
|
|
3956
|
-
for (let m = 0; m <
|
|
3957
|
-
|
|
3958
|
-
v(t, o), v(t,
|
|
3992
|
+
V(g, t, x), v(t, r), v(r, i), v(t, s);
|
|
3993
|
+
for (let m = 0; m < f.length; m += 1)
|
|
3994
|
+
f[m] && f[m].m(t, null);
|
|
3995
|
+
v(t, o), v(t, u), v(u, a), v(t, l);
|
|
3959
3996
|
for (let m = 0; m < d.length; m += 1)
|
|
3960
3997
|
d[m] && d[m].m(t, null);
|
|
3961
3998
|
},
|
|
3962
3999
|
p(g, x) {
|
|
3963
4000
|
if (x & /*$_*/
|
|
3964
4001
|
32 && n !== (n = /*$_*/
|
|
3965
|
-
g[5]("topCategories") + "") &&
|
|
4002
|
+
g[5]("topCategories") + "") && F(i, n), x & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3966
4003
|
105) {
|
|
3967
|
-
c =
|
|
4004
|
+
c = fe(
|
|
3968
4005
|
/*topCategories*/
|
|
3969
4006
|
g[3]
|
|
3970
4007
|
);
|
|
3971
4008
|
let m;
|
|
3972
4009
|
for (m = 0; m < c.length; m += 1) {
|
|
3973
|
-
const C =
|
|
3974
|
-
|
|
4010
|
+
const C = _t(g, c, m);
|
|
4011
|
+
f[m] ? f[m].p(C, x) : (f[m] = Et(C), f[m].c(), f[m].m(t, o));
|
|
3975
4012
|
}
|
|
3976
|
-
for (; m <
|
|
3977
|
-
|
|
3978
|
-
|
|
4013
|
+
for (; m < f.length; m += 1)
|
|
4014
|
+
f[m].d(1);
|
|
4015
|
+
f.length = c.length;
|
|
3979
4016
|
}
|
|
3980
4017
|
if (x & /*$_*/
|
|
3981
|
-
32 &&
|
|
3982
|
-
g[5]("otherCategories") + "") &&
|
|
4018
|
+
32 && h !== (h = /*$_*/
|
|
4019
|
+
g[5]("otherCategories") + "") && F(a, h), x & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3983
4020
|
113) {
|
|
3984
|
-
p =
|
|
4021
|
+
p = fe(
|
|
3985
4022
|
/*otherCategories*/
|
|
3986
4023
|
g[4]
|
|
3987
4024
|
);
|
|
3988
4025
|
let m;
|
|
3989
4026
|
for (m = 0; m < p.length; m += 1) {
|
|
3990
|
-
const C =
|
|
3991
|
-
d[m] ? d[m].p(C, x) : (d[m] =
|
|
4027
|
+
const C = yt(g, p, m);
|
|
4028
|
+
d[m] ? d[m].p(C, x) : (d[m] = xt(C), d[m].c(), d[m].m(t, null));
|
|
3992
4029
|
}
|
|
3993
4030
|
for (; m < d.length; m += 1)
|
|
3994
4031
|
d[m].d(1);
|
|
@@ -3996,37 +4033,37 @@ function ai(e) {
|
|
|
3996
4033
|
}
|
|
3997
4034
|
},
|
|
3998
4035
|
d(g) {
|
|
3999
|
-
g &&
|
|
4036
|
+
g && j(t), tt(f, g), tt(d, g);
|
|
4000
4037
|
}
|
|
4001
4038
|
};
|
|
4002
4039
|
}
|
|
4003
|
-
function
|
|
4040
|
+
function Ei(e) {
|
|
4004
4041
|
let t;
|
|
4005
4042
|
return {
|
|
4006
4043
|
c() {
|
|
4007
4044
|
t = B("p"), t.textContent = "Loading, please wait...", H(t, "class", "Message");
|
|
4008
4045
|
},
|
|
4009
4046
|
m(r, n) {
|
|
4010
|
-
|
|
4047
|
+
V(r, t, n);
|
|
4011
4048
|
},
|
|
4012
|
-
p:
|
|
4049
|
+
p: M,
|
|
4013
4050
|
d(r) {
|
|
4014
|
-
r &&
|
|
4051
|
+
r && j(t);
|
|
4015
4052
|
}
|
|
4016
4053
|
};
|
|
4017
4054
|
}
|
|
4018
|
-
function
|
|
4019
|
-
let t, r, n, i, s, o,
|
|
4055
|
+
function Et(e) {
|
|
4056
|
+
let t, r, n, i, s, o, u, h = (
|
|
4020
4057
|
/*category*/
|
|
4021
4058
|
e[24].name + ""
|
|
4022
|
-
),
|
|
4059
|
+
), a, l, c, f = (
|
|
4023
4060
|
/*category*/
|
|
4024
4061
|
e[24].games.count + ""
|
|
4025
4062
|
), p, d, g = (
|
|
4026
4063
|
/*$_*/
|
|
4027
4064
|
e[5]("games") + ""
|
|
4028
4065
|
), x, m, C, A;
|
|
4029
|
-
function
|
|
4066
|
+
function I() {
|
|
4030
4067
|
return (
|
|
4031
4068
|
/*click_handler*/
|
|
4032
4069
|
e[14](
|
|
@@ -4037,47 +4074,47 @@ function gt(e) {
|
|
|
4037
4074
|
}
|
|
4038
4075
|
return {
|
|
4039
4076
|
c() {
|
|
4040
|
-
t = B("div"), r = B("img"), s =
|
|
4077
|
+
t = B("div"), r = B("img"), s = R(), o = B("div"), u = B("p"), a = U(h), l = R(), c = B("p"), p = U(f), d = R(), x = U(g), pe(r.src, n = /*category*/
|
|
4041
4078
|
e[24].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
|
|
4042
4079
|
e[24].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", m = "Category " + /*activecategory*/
|
|
4043
4080
|
(e[0] === /*category*/
|
|
4044
4081
|
e[24].id ? "Active" : ""));
|
|
4045
4082
|
},
|
|
4046
4083
|
m(w, S) {
|
|
4047
|
-
|
|
4084
|
+
V(w, t, S), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, p), v(c, d), v(c, x), C || (A = Ht(t, "click", I), C = !0);
|
|
4048
4085
|
},
|
|
4049
4086
|
p(w, S) {
|
|
4050
4087
|
e = w, S & /*topCategories*/
|
|
4051
|
-
8 && !
|
|
4088
|
+
8 && !pe(r.src, n = /*category*/
|
|
4052
4089
|
e[24].icon) && H(r, "src", n), S & /*topCategories*/
|
|
4053
4090
|
8 && i !== (i = /*category*/
|
|
4054
4091
|
e[24].name) && H(r, "alt", i), S & /*topCategories*/
|
|
4092
|
+
8 && h !== (h = /*category*/
|
|
4093
|
+
e[24].name + "") && F(a, h), S & /*topCategories*/
|
|
4055
4094
|
8 && f !== (f = /*category*/
|
|
4056
|
-
e[24].
|
|
4057
|
-
8 && l !== (l = /*category*/
|
|
4058
|
-
e[24].games.count + "") && D(p, l), S & /*$_*/
|
|
4095
|
+
e[24].games.count + "") && F(p, f), S & /*$_*/
|
|
4059
4096
|
32 && g !== (g = /*$_*/
|
|
4060
|
-
e[5]("games") + "") &&
|
|
4097
|
+
e[5]("games") + "") && F(x, g), S & /*activecategory, topCategories*/
|
|
4061
4098
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
4062
4099
|
(e[0] === /*category*/
|
|
4063
4100
|
e[24].id ? "Active" : "")) && H(t, "class", m);
|
|
4064
4101
|
},
|
|
4065
4102
|
d(w) {
|
|
4066
|
-
w &&
|
|
4103
|
+
w && j(t), C = !1, A();
|
|
4067
4104
|
}
|
|
4068
4105
|
};
|
|
4069
4106
|
}
|
|
4070
|
-
function
|
|
4071
|
-
let t, r, n, i, s, o,
|
|
4107
|
+
function xt(e) {
|
|
4108
|
+
let t, r, n, i, s, o, u, h = (
|
|
4072
4109
|
/*category*/
|
|
4073
4110
|
e[24].name + ""
|
|
4074
|
-
),
|
|
4111
|
+
), a, l, c, f = (
|
|
4075
4112
|
/*category*/
|
|
4076
4113
|
e[24].games.count + ""
|
|
4077
4114
|
), p, d, g = (
|
|
4078
4115
|
/*$_*/
|
|
4079
4116
|
e[5]("games") + ""
|
|
4080
|
-
), x, m, C, A,
|
|
4117
|
+
), x, m, C, A, I;
|
|
4081
4118
|
function w() {
|
|
4082
4119
|
return (
|
|
4083
4120
|
/*click_handler_1*/
|
|
@@ -4089,42 +4126,42 @@ function mt(e) {
|
|
|
4089
4126
|
}
|
|
4090
4127
|
return {
|
|
4091
4128
|
c() {
|
|
4092
|
-
t = B("div"), r = B("img"), s =
|
|
4129
|
+
t = B("div"), r = B("img"), s = R(), o = B("div"), u = B("p"), a = U(h), l = R(), c = B("p"), p = U(f), d = R(), x = U(g), m = R(), pe(r.src, n = /*category*/
|
|
4093
4130
|
e[24].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
|
|
4094
4131
|
e[24].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", C = "Category " + /*activecategory*/
|
|
4095
4132
|
(e[0] === /*category*/
|
|
4096
4133
|
e[24].id ? "Active" : ""));
|
|
4097
4134
|
},
|
|
4098
|
-
m(S,
|
|
4099
|
-
|
|
4135
|
+
m(S, N) {
|
|
4136
|
+
V(S, t, N), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, p), v(c, d), v(c, x), v(t, m), A || (I = Ht(t, "click", w), A = !0);
|
|
4100
4137
|
},
|
|
4101
|
-
p(S,
|
|
4102
|
-
e = S,
|
|
4103
|
-
16 && !
|
|
4104
|
-
e[24].icon) && H(r, "src", n),
|
|
4138
|
+
p(S, N) {
|
|
4139
|
+
e = S, N & /*otherCategories*/
|
|
4140
|
+
16 && !pe(r.src, n = /*category*/
|
|
4141
|
+
e[24].icon) && H(r, "src", n), N & /*otherCategories*/
|
|
4105
4142
|
16 && i !== (i = /*category*/
|
|
4106
|
-
e[24].name) && H(r, "alt", i),
|
|
4143
|
+
e[24].name) && H(r, "alt", i), N & /*otherCategories*/
|
|
4144
|
+
16 && h !== (h = /*category*/
|
|
4145
|
+
e[24].name + "") && F(a, h), N & /*otherCategories*/
|
|
4107
4146
|
16 && f !== (f = /*category*/
|
|
4108
|
-
e[24].
|
|
4109
|
-
16 && l !== (l = /*category*/
|
|
4110
|
-
e[24].games.count + "") && D(p, l), P & /*$_*/
|
|
4147
|
+
e[24].games.count + "") && F(p, f), N & /*$_*/
|
|
4111
4148
|
32 && g !== (g = /*$_*/
|
|
4112
|
-
e[5]("games") + "") &&
|
|
4149
|
+
e[5]("games") + "") && F(x, g), N & /*activecategory, otherCategories*/
|
|
4113
4150
|
17 && C !== (C = "Category " + /*activecategory*/
|
|
4114
4151
|
(e[0] === /*category*/
|
|
4115
4152
|
e[24].id ? "Active" : "")) && H(t, "class", C);
|
|
4116
4153
|
},
|
|
4117
4154
|
d(S) {
|
|
4118
|
-
S &&
|
|
4155
|
+
S && j(t), A = !1, I();
|
|
4119
4156
|
}
|
|
4120
4157
|
};
|
|
4121
4158
|
}
|
|
4122
|
-
function
|
|
4159
|
+
function xi(e) {
|
|
4123
4160
|
let t;
|
|
4124
4161
|
function r(s, o) {
|
|
4125
4162
|
return (
|
|
4126
4163
|
/*isLoading*/
|
|
4127
|
-
s[2] ?
|
|
4164
|
+
s[2] ? Ei : _i
|
|
4128
4165
|
);
|
|
4129
4166
|
}
|
|
4130
4167
|
let n = r(e), i = n(e);
|
|
@@ -4133,58 +4170,61 @@ function hi(e) {
|
|
|
4133
4170
|
t = B("div"), i.c();
|
|
4134
4171
|
},
|
|
4135
4172
|
m(s, o) {
|
|
4136
|
-
|
|
4173
|
+
V(s, t, o), i.m(t, null), e[16](t);
|
|
4137
4174
|
},
|
|
4138
4175
|
p(s, [o]) {
|
|
4139
4176
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
4140
4177
|
},
|
|
4141
|
-
i:
|
|
4142
|
-
o:
|
|
4178
|
+
i: M,
|
|
4179
|
+
o: M,
|
|
4143
4180
|
d(s) {
|
|
4144
|
-
s &&
|
|
4181
|
+
s && j(t), i.d(), e[16](null);
|
|
4145
4182
|
}
|
|
4146
4183
|
};
|
|
4147
4184
|
}
|
|
4148
|
-
function
|
|
4185
|
+
function vi(e, t, r) {
|
|
4149
4186
|
let n;
|
|
4150
|
-
|
|
4151
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory:
|
|
4187
|
+
hr(e, pi, (b) => r(5, n = b));
|
|
4188
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, f, p = !1;
|
|
4152
4189
|
const d = [];
|
|
4153
4190
|
let g = [], x = [];
|
|
4154
|
-
Object.keys(
|
|
4155
|
-
|
|
4191
|
+
Object.keys(bt).forEach((b) => {
|
|
4192
|
+
pt(b, bt[b]);
|
|
4156
4193
|
});
|
|
4157
4194
|
const m = () => {
|
|
4158
|
-
fetch(c).then((
|
|
4159
|
-
Object.keys(
|
|
4160
|
-
|
|
4195
|
+
fetch(c).then((L) => L.json()).then((L) => {
|
|
4196
|
+
Object.keys(L).forEach((G) => {
|
|
4197
|
+
pt(G, L[G]);
|
|
4161
4198
|
});
|
|
4162
|
-
}).catch((
|
|
4163
|
-
console.log(
|
|
4199
|
+
}).catch((L) => {
|
|
4200
|
+
console.log(L);
|
|
4164
4201
|
});
|
|
4165
4202
|
}, C = () => {
|
|
4166
4203
|
r(2, p = !0);
|
|
4167
4204
|
const b = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4168
|
-
b.searchParams.append("language", o), fetch(b).then((
|
|
4205
|
+
b.searchParams.append("language", o), fetch(b).then((L) => L.json()).then((L) => {
|
|
4169
4206
|
r(2, p = !1);
|
|
4170
|
-
const
|
|
4171
|
-
d.push(...
|
|
4172
|
-
const
|
|
4173
|
-
|
|
4207
|
+
const G = h.split(",").map((k) => k.trim());
|
|
4208
|
+
d.push(...L.items);
|
|
4209
|
+
const Ze = d.filter((k) => !G.some((rr) => {
|
|
4210
|
+
var Qe;
|
|
4211
|
+
return ((Qe = k.flags) == null ? void 0 : Qe.indexOf(rr)) >= 0;
|
|
4212
|
+
}));
|
|
4213
|
+
r(3, g = Ze.filter((k) => k.isTopCategory === !0)), r(4, x = Ze.filter((k) => k.isTopCategory === !1));
|
|
4174
4214
|
});
|
|
4175
4215
|
}, A = (b) => {
|
|
4176
4216
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4177
|
-
},
|
|
4178
|
-
|
|
4217
|
+
}, I = () => {
|
|
4218
|
+
bi(o);
|
|
4179
4219
|
}, w = () => {
|
|
4180
4220
|
let b = document.createElement("style");
|
|
4181
|
-
b.innerHTML =
|
|
4221
|
+
b.innerHTML = a, f.appendChild(b);
|
|
4182
4222
|
}, S = () => {
|
|
4183
|
-
let b = new URL(
|
|
4184
|
-
fetch(b.href).then((
|
|
4185
|
-
|
|
4223
|
+
let b = new URL(l), L = document.createElement("style");
|
|
4224
|
+
fetch(b.href).then((G) => G.text()).then((G) => {
|
|
4225
|
+
L.innerHTML = G, setTimeout(
|
|
4186
4226
|
() => {
|
|
4187
|
-
|
|
4227
|
+
f.appendChild(L);
|
|
4188
4228
|
},
|
|
4189
4229
|
1
|
|
4190
4230
|
), setTimeout(
|
|
@@ -4193,24 +4233,24 @@ function li(e, t, r) {
|
|
|
4193
4233
|
500
|
|
4194
4234
|
);
|
|
4195
4235
|
});
|
|
4196
|
-
},
|
|
4197
|
-
function
|
|
4198
|
-
|
|
4199
|
-
|
|
4236
|
+
}, N = (b) => A(b.id), er = (b) => A(b.id);
|
|
4237
|
+
function tr(b) {
|
|
4238
|
+
Ne[b ? "unshift" : "push"](() => {
|
|
4239
|
+
f = b, r(1, f);
|
|
4200
4240
|
});
|
|
4201
4241
|
}
|
|
4202
4242
|
return e.$$set = (b) => {
|
|
4203
|
-
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0,
|
|
4243
|
+
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl);
|
|
4204
4244
|
}, e.$$.update = () => {
|
|
4205
4245
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4206
4246
|
384 && i && s && C(), e.$$.dirty & /*translationurl*/
|
|
4207
4247
|
8192 && c && m(), e.$$.dirty & /*lang*/
|
|
4208
|
-
512 && o &&
|
|
4209
|
-
2050 &&
|
|
4210
|
-
4098 &&
|
|
4248
|
+
512 && o && I(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4249
|
+
2050 && a && f && w(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4250
|
+
4098 && l && f && S();
|
|
4211
4251
|
}, [
|
|
4212
|
-
|
|
4213
|
-
|
|
4252
|
+
u,
|
|
4253
|
+
f,
|
|
4214
4254
|
p,
|
|
4215
4255
|
g,
|
|
4216
4256
|
x,
|
|
@@ -4219,23 +4259,23 @@ function li(e, t, r) {
|
|
|
4219
4259
|
i,
|
|
4220
4260
|
s,
|
|
4221
4261
|
o,
|
|
4222
|
-
f,
|
|
4223
|
-
u,
|
|
4224
4262
|
h,
|
|
4263
|
+
a,
|
|
4264
|
+
l,
|
|
4225
4265
|
c,
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4266
|
+
N,
|
|
4267
|
+
er,
|
|
4268
|
+
tr
|
|
4229
4269
|
];
|
|
4230
4270
|
}
|
|
4231
|
-
class
|
|
4271
|
+
class Kt extends Ar {
|
|
4232
4272
|
constructor(t) {
|
|
4233
|
-
super(),
|
|
4273
|
+
super(), Cr(
|
|
4234
4274
|
this,
|
|
4235
4275
|
t,
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4276
|
+
vi,
|
|
4277
|
+
xi,
|
|
4278
|
+
Tt,
|
|
4239
4279
|
{
|
|
4240
4280
|
endpoint: 7,
|
|
4241
4281
|
datasource: 8,
|
|
@@ -4246,100 +4286,100 @@ class zt extends mr {
|
|
|
4246
4286
|
clientstylingurl: 12,
|
|
4247
4287
|
translationurl: 13
|
|
4248
4288
|
},
|
|
4249
|
-
|
|
4289
|
+
yi
|
|
4250
4290
|
);
|
|
4251
4291
|
}
|
|
4252
4292
|
get endpoint() {
|
|
4253
4293
|
return this.$$.ctx[7];
|
|
4254
4294
|
}
|
|
4255
4295
|
set endpoint(t) {
|
|
4256
|
-
this.$$set({ endpoint: t }),
|
|
4296
|
+
this.$$set({ endpoint: t }), $();
|
|
4257
4297
|
}
|
|
4258
4298
|
get datasource() {
|
|
4259
4299
|
return this.$$.ctx[8];
|
|
4260
4300
|
}
|
|
4261
4301
|
set datasource(t) {
|
|
4262
|
-
this.$$set({ datasource: t }),
|
|
4302
|
+
this.$$set({ datasource: t }), $();
|
|
4263
4303
|
}
|
|
4264
4304
|
get lang() {
|
|
4265
4305
|
return this.$$.ctx[9];
|
|
4266
4306
|
}
|
|
4267
4307
|
set lang(t) {
|
|
4268
|
-
this.$$set({ lang: t }),
|
|
4308
|
+
this.$$set({ lang: t }), $();
|
|
4269
4309
|
}
|
|
4270
4310
|
get activecategory() {
|
|
4271
4311
|
return this.$$.ctx[0];
|
|
4272
4312
|
}
|
|
4273
4313
|
set activecategory(t) {
|
|
4274
|
-
this.$$set({ activecategory: t }),
|
|
4314
|
+
this.$$set({ activecategory: t }), $();
|
|
4275
4315
|
}
|
|
4276
4316
|
get excludedflags() {
|
|
4277
4317
|
return this.$$.ctx[10];
|
|
4278
4318
|
}
|
|
4279
4319
|
set excludedflags(t) {
|
|
4280
|
-
this.$$set({ excludedflags: t }),
|
|
4320
|
+
this.$$set({ excludedflags: t }), $();
|
|
4281
4321
|
}
|
|
4282
4322
|
get clientstyling() {
|
|
4283
4323
|
return this.$$.ctx[11];
|
|
4284
4324
|
}
|
|
4285
4325
|
set clientstyling(t) {
|
|
4286
|
-
this.$$set({ clientstyling: t }),
|
|
4326
|
+
this.$$set({ clientstyling: t }), $();
|
|
4287
4327
|
}
|
|
4288
4328
|
get clientstylingurl() {
|
|
4289
4329
|
return this.$$.ctx[12];
|
|
4290
4330
|
}
|
|
4291
4331
|
set clientstylingurl(t) {
|
|
4292
|
-
this.$$set({ clientstylingurl: t }),
|
|
4332
|
+
this.$$set({ clientstylingurl: t }), $();
|
|
4293
4333
|
}
|
|
4294
4334
|
get translationurl() {
|
|
4295
4335
|
return this.$$.ctx[13];
|
|
4296
4336
|
}
|
|
4297
4337
|
set translationurl(t) {
|
|
4298
|
-
this.$$set({ translationurl: t }),
|
|
4338
|
+
this.$$set({ translationurl: t }), $();
|
|
4299
4339
|
}
|
|
4300
4340
|
}
|
|
4301
|
-
|
|
4302
|
-
const
|
|
4341
|
+
Hr(Kt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4342
|
+
const Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4303
4343
|
__proto__: null,
|
|
4304
|
-
default:
|
|
4344
|
+
default: Kt
|
|
4305
4345
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4306
4346
|
export {
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4347
|
+
te as $,
|
|
4348
|
+
wi as A,
|
|
4349
|
+
Ci as B,
|
|
4350
|
+
fe as C,
|
|
4351
|
+
tt as D,
|
|
4352
|
+
Oi as E,
|
|
4353
|
+
gr as F,
|
|
4354
|
+
Ai as G,
|
|
4355
|
+
Bi as H,
|
|
4356
|
+
Li as I,
|
|
4357
|
+
Ar as S,
|
|
4358
|
+
Pi as _,
|
|
4359
|
+
Zt as a,
|
|
4360
|
+
lr as b,
|
|
4361
|
+
Hr as c,
|
|
4362
|
+
R as d,
|
|
4323
4363
|
B as e,
|
|
4324
|
-
|
|
4364
|
+
$ as f,
|
|
4325
4365
|
H as g,
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4366
|
+
Hi as h,
|
|
4367
|
+
Cr as i,
|
|
4368
|
+
V as j,
|
|
4329
4369
|
v as k,
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4370
|
+
Ht as l,
|
|
4371
|
+
F as m,
|
|
4372
|
+
M as n,
|
|
4373
|
+
j as o,
|
|
4374
|
+
hr as p,
|
|
4375
|
+
Ne as q,
|
|
4376
|
+
ue as r,
|
|
4377
|
+
Tt as s,
|
|
4378
|
+
U as t,
|
|
4379
|
+
pi as u,
|
|
4380
|
+
Ae as v,
|
|
4381
|
+
Ni as w,
|
|
4382
|
+
Ee as x,
|
|
4383
|
+
pe as y,
|
|
4384
|
+
Si as z
|
|
4345
4385
|
};
|