@everymatrix/casino-slider 1.70.1 → 1.71.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/{CasinoSlider-DjWsrMoE.js → CasinoSlider-B7m3YqGa.js} +579 -583
- package/components/{CasinoSlider-D695H9Sp.js → CasinoSlider-CPOaJyYS.js} +769 -773
- package/components/CasinoSlider-CrkuJukb.cjs +16 -0
- package/es2015/casino-slider.cjs +1 -1
- package/es2015/casino-slider.js +1 -1
- package/esnext/casino-slider.js +1 -1
- package/package.json +1 -1
- package/components/CasinoSlider-2k8UQrFs.cjs +0 -3
@@ -6,18 +6,18 @@ function Dt(e) {
|
|
6
6
|
function ht() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
|
-
function
|
9
|
+
function Q(e) {
|
10
10
|
e.forEach(Dt);
|
11
11
|
}
|
12
|
-
function
|
12
|
+
function et(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
15
|
function Ut(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
|
-
let
|
18
|
+
let xe;
|
19
19
|
function ct(e, t) {
|
20
|
-
return e === t ? !0 : (
|
20
|
+
return e === t ? !0 : (xe || (xe = document.createElement("a")), xe.href = t, e === xe.href);
|
21
21
|
}
|
22
22
|
function Tr(e) {
|
23
23
|
return Object.keys(e).length === 0;
|
@@ -71,29 +71,29 @@ function Nr(e, t) {
|
|
71
71
|
function N(e) {
|
72
72
|
return document.createElement(e);
|
73
73
|
}
|
74
|
-
function
|
74
|
+
function ye(e) {
|
75
75
|
return document.createTextNode(e);
|
76
76
|
}
|
77
|
-
function
|
78
|
-
return
|
77
|
+
function Z() {
|
78
|
+
return ye(" ");
|
79
79
|
}
|
80
|
-
function
|
81
|
-
return
|
80
|
+
function de() {
|
81
|
+
return ye("");
|
82
82
|
}
|
83
|
-
function
|
83
|
+
function Te(e, t, r, n) {
|
84
84
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
85
85
|
}
|
86
|
-
function
|
86
|
+
function S(e, t, r) {
|
87
87
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
88
88
|
}
|
89
|
-
function
|
89
|
+
function Lr(e) {
|
90
90
|
return Array.from(e.childNodes);
|
91
91
|
}
|
92
|
-
function
|
92
|
+
function tt(e, t) {
|
93
93
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
94
94
|
t);
|
95
95
|
}
|
96
|
-
function
|
96
|
+
function Pr(e) {
|
97
97
|
const t = {};
|
98
98
|
return e.childNodes.forEach(
|
99
99
|
/** @param {Element} node */
|
@@ -102,125 +102,125 @@ function Or(e) {
|
|
102
102
|
}
|
103
103
|
), t;
|
104
104
|
}
|
105
|
-
let
|
106
|
-
function
|
107
|
-
|
105
|
+
let pe;
|
106
|
+
function fe(e) {
|
107
|
+
pe = e;
|
108
108
|
}
|
109
|
-
function
|
110
|
-
if (!
|
109
|
+
function Or() {
|
110
|
+
if (!pe)
|
111
111
|
throw new Error("Function called outside component initialization");
|
112
|
-
return
|
112
|
+
return pe;
|
113
113
|
}
|
114
114
|
function Fr(e) {
|
115
|
-
|
115
|
+
Or().$$.on_mount.push(e);
|
116
116
|
}
|
117
|
-
const
|
118
|
-
let
|
117
|
+
const ee = [], me = [];
|
118
|
+
let te = [];
|
119
119
|
const ft = [], Rr = /* @__PURE__ */ Promise.resolve();
|
120
|
-
let
|
120
|
+
let je = !1;
|
121
121
|
function Dr() {
|
122
|
-
|
122
|
+
je || (je = !0, Rr.then(A));
|
123
123
|
}
|
124
|
-
function
|
125
|
-
|
124
|
+
function Ve(e) {
|
125
|
+
te.push(e);
|
126
126
|
}
|
127
|
-
const
|
128
|
-
let
|
127
|
+
const Fe = /* @__PURE__ */ new Set();
|
128
|
+
let Y = 0;
|
129
129
|
function A() {
|
130
|
-
if (
|
130
|
+
if (Y !== 0)
|
131
131
|
return;
|
132
|
-
const e =
|
132
|
+
const e = pe;
|
133
133
|
do {
|
134
134
|
try {
|
135
|
-
for (;
|
136
|
-
const t =
|
137
|
-
|
135
|
+
for (; Y < ee.length; ) {
|
136
|
+
const t = ee[Y];
|
137
|
+
Y++, fe(t), Ur(t.$$);
|
138
138
|
}
|
139
139
|
} catch (t) {
|
140
|
-
throw
|
140
|
+
throw ee.length = 0, Y = 0, t;
|
141
141
|
}
|
142
|
-
for (
|
143
|
-
|
144
|
-
for (let t = 0; t <
|
145
|
-
const r =
|
146
|
-
|
142
|
+
for (fe(null), ee.length = 0, Y = 0; me.length; )
|
143
|
+
me.pop()();
|
144
|
+
for (let t = 0; t < te.length; t += 1) {
|
145
|
+
const r = te[t];
|
146
|
+
Fe.has(r) || (Fe.add(r), r());
|
147
147
|
}
|
148
|
-
|
149
|
-
} while (
|
148
|
+
te.length = 0;
|
149
|
+
} while (ee.length);
|
150
150
|
for (; ft.length; )
|
151
151
|
ft.pop()();
|
152
|
-
|
152
|
+
je = !1, Fe.clear(), fe(e);
|
153
153
|
}
|
154
154
|
function Ur(e) {
|
155
155
|
if (e.fragment !== null) {
|
156
|
-
e.update(),
|
156
|
+
e.update(), Q(e.before_update);
|
157
157
|
const t = e.dirty;
|
158
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
158
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
|
159
159
|
}
|
160
160
|
}
|
161
161
|
function Gr(e) {
|
162
162
|
const t = [], r = [];
|
163
|
-
|
163
|
+
te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), te = t;
|
164
164
|
}
|
165
165
|
const kr = /* @__PURE__ */ new Set();
|
166
166
|
function Gt(e, t) {
|
167
167
|
e && e.i && (kr.delete(e), e.i(t));
|
168
168
|
}
|
169
|
-
function
|
169
|
+
function re(e) {
|
170
170
|
return e?.length !== void 0 ? e : Array.from(e);
|
171
171
|
}
|
172
172
|
function kt(e, t) {
|
173
173
|
e.d(1), t.delete(e.key);
|
174
174
|
}
|
175
|
-
function $t(e, t, r, n, i,
|
176
|
-
let f = e.length, p =
|
175
|
+
function $t(e, t, r, n, i, s, o, a, h, l, u, m) {
|
176
|
+
let f = e.length, p = s.length, g = f;
|
177
177
|
const b = {};
|
178
178
|
for (; g--; )
|
179
179
|
b[e[g].key] = g;
|
180
|
-
const d = [],
|
180
|
+
const d = [], w = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), H = [];
|
181
181
|
for (g = p; g--; ) {
|
182
|
-
const
|
183
|
-
let
|
184
|
-
|
182
|
+
const C = m(i, s, g), I = r(C);
|
183
|
+
let L = o.get(I);
|
184
|
+
L ? H.push(() => L.p(C, t)) : (L = l(I, C), L.c()), w.set(I, d[g] = L), I in b && E.set(I, Math.abs(g - b[I]));
|
185
185
|
}
|
186
|
-
const R = /* @__PURE__ */ new Set(),
|
187
|
-
function k(
|
188
|
-
Gt(
|
186
|
+
const R = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
|
187
|
+
function k(C) {
|
188
|
+
Gt(C, 1), C.m(a, u), o.set(C.key, C), u = C.first, p--;
|
189
189
|
}
|
190
190
|
for (; f && p; ) {
|
191
|
-
const
|
192
|
-
|
191
|
+
const C = d[p - 1], I = e[f - 1], L = C.key, j = I.key;
|
192
|
+
C === I ? (u = C.first, f--, p--) : w.has(j) ? !o.has(L) || R.has(L) ? k(C) : P.has(j) ? f-- : E.get(L) > E.get(j) ? (P.add(L), k(C)) : (R.add(j), f--) : (h(I, o), f--);
|
193
193
|
}
|
194
194
|
for (; f--; ) {
|
195
|
-
const
|
196
|
-
|
195
|
+
const C = e[f];
|
196
|
+
w.has(C.key) || h(C, o);
|
197
197
|
}
|
198
198
|
for (; p; )
|
199
199
|
k(d[p - 1]);
|
200
|
-
return
|
200
|
+
return Q(H), d;
|
201
201
|
}
|
202
202
|
function $r(e, t, r) {
|
203
203
|
const { fragment: n, after_update: i } = e.$$;
|
204
|
-
n && n.m(t, r),
|
205
|
-
const
|
206
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
207
|
-
}), i.forEach(
|
204
|
+
n && n.m(t, r), Ve(() => {
|
205
|
+
const s = e.$$.on_mount.map(Dt).filter(et);
|
206
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Q(s), e.$$.on_mount = [];
|
207
|
+
}), i.forEach(Ve);
|
208
208
|
}
|
209
209
|
function jr(e, t) {
|
210
210
|
const r = e.$$;
|
211
|
-
r.fragment !== null && (Gr(r.after_update),
|
211
|
+
r.fragment !== null && (Gr(r.after_update), Q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
212
212
|
}
|
213
213
|
function Vr(e, t) {
|
214
|
-
e.$$.dirty[0] === -1 && (
|
214
|
+
e.$$.dirty[0] === -1 && (ee.push(e), Dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
215
215
|
}
|
216
|
-
function Xr(e, t, r, n, i,
|
217
|
-
const h =
|
218
|
-
|
216
|
+
function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
217
|
+
const h = pe;
|
218
|
+
fe(e);
|
219
219
|
const l = e.$$ = {
|
220
220
|
fragment: null,
|
221
221
|
ctx: [],
|
222
222
|
// state
|
223
|
-
props:
|
223
|
+
props: s,
|
224
224
|
update: G,
|
225
225
|
not_equal: i,
|
226
226
|
bound: ht(),
|
@@ -237,20 +237,20 @@ function Xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
237
237
|
skip_bound: !1,
|
238
238
|
root: t.target || h.$$.root
|
239
239
|
};
|
240
|
-
|
240
|
+
o && o(l.root);
|
241
241
|
let u = !1;
|
242
242
|
if (l.ctx = r ? r(e, t.props || {}, (m, f, ...p) => {
|
243
243
|
const g = p.length ? p[0] : f;
|
244
244
|
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), u && Vr(e, m)), f;
|
245
|
-
}) : [], l.update(), u = !0,
|
245
|
+
}) : [], l.update(), u = !0, Q(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
246
246
|
if (t.hydrate) {
|
247
|
-
const m =
|
247
|
+
const m = Lr(t.target);
|
248
248
|
l.fragment && l.fragment.l(m), m.forEach(F);
|
249
249
|
} else
|
250
250
|
l.fragment && l.fragment.c();
|
251
251
|
t.intro && Gt(e.$$.fragment), $r(e, t.target, t.anchor), A();
|
252
252
|
}
|
253
|
-
|
253
|
+
fe(h);
|
254
254
|
}
|
255
255
|
let jt;
|
256
256
|
typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
@@ -292,32 +292,32 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
292
292
|
if (this.$$cn = !0, !this.$$c) {
|
293
293
|
let e = function(i) {
|
294
294
|
return () => {
|
295
|
-
let
|
295
|
+
let s;
|
296
296
|
return {
|
297
297
|
c: function() {
|
298
|
-
|
298
|
+
s = N("slot"), i !== "default" && S(s, "name", i);
|
299
299
|
},
|
300
300
|
/**
|
301
301
|
* @param {HTMLElement} target
|
302
302
|
* @param {HTMLElement} [anchor]
|
303
303
|
*/
|
304
304
|
m: function(h, l) {
|
305
|
-
U(h,
|
305
|
+
U(h, s, l);
|
306
306
|
},
|
307
307
|
d: function(h) {
|
308
|
-
h && F(
|
308
|
+
h && F(s);
|
309
309
|
}
|
310
310
|
};
|
311
311
|
};
|
312
312
|
};
|
313
313
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
314
314
|
return;
|
315
|
-
const t = {}, r =
|
315
|
+
const t = {}, r = Pr(this);
|
316
316
|
for (const i of this.$$s)
|
317
317
|
i in r && (t[i] = [e(i)]);
|
318
318
|
for (const i of this.attributes) {
|
319
|
-
const
|
320
|
-
|
319
|
+
const s = this.$$g_p(i.name);
|
320
|
+
s in this.$$d || (this.$$d[s] = we(s, i.value, this.$$p_d, "toProp"));
|
321
321
|
}
|
322
322
|
for (const i in this.$$p_d)
|
323
323
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
@@ -335,21 +335,21 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
335
335
|
this.$$r = !0;
|
336
336
|
for (const i in this.$$p_d)
|
337
337
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
338
|
-
const
|
338
|
+
const s = we(
|
339
339
|
i,
|
340
340
|
this.$$d[i],
|
341
341
|
this.$$p_d,
|
342
342
|
"toAttribute"
|
343
343
|
);
|
344
|
-
|
344
|
+
s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
|
345
345
|
}
|
346
346
|
this.$$r = !1;
|
347
347
|
};
|
348
348
|
this.$$c.$$.after_update.push(n), n();
|
349
349
|
for (const i in this.$$l)
|
350
|
-
for (const
|
351
|
-
const
|
352
|
-
this.$$l_u.set(
|
350
|
+
for (const s of this.$$l[i]) {
|
351
|
+
const o = this.$$c.$on(i, s);
|
352
|
+
this.$$l_u.set(s, o);
|
353
353
|
}
|
354
354
|
this.$$l = {};
|
355
355
|
}
|
@@ -357,7 +357,7 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
357
357
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
358
358
|
// and setting attributes through setAttribute etc, this is helpful
|
359
359
|
attributeChangedCallback(e, t, r) {
|
360
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
360
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = we(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
361
361
|
}
|
362
362
|
disconnectedCallback() {
|
363
363
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -370,7 +370,7 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
370
370
|
) || e;
|
371
371
|
}
|
372
372
|
});
|
373
|
-
function
|
373
|
+
function we(e, t, r, n) {
|
374
374
|
const i = r[e]?.type;
|
375
375
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
376
376
|
return t;
|
@@ -399,8 +399,8 @@ function He(e, t, r, n) {
|
|
399
399
|
return t;
|
400
400
|
}
|
401
401
|
}
|
402
|
-
function Wr(e, t, r, n, i,
|
403
|
-
let
|
402
|
+
function Wr(e, t, r, n, i, s) {
|
403
|
+
let o = class extends jt {
|
404
404
|
constructor() {
|
405
405
|
super(e, r, i), this.$$p_d = t;
|
406
406
|
}
|
@@ -411,22 +411,22 @@ function Wr(e, t, r, n, i, o) {
|
|
411
411
|
}
|
412
412
|
};
|
413
413
|
return Object.keys(t).forEach((a) => {
|
414
|
-
Object.defineProperty(
|
414
|
+
Object.defineProperty(o.prototype, a, {
|
415
415
|
get() {
|
416
416
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
417
417
|
},
|
418
418
|
set(h) {
|
419
|
-
h =
|
419
|
+
h = we(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
420
420
|
}
|
421
421
|
});
|
422
422
|
}), n.forEach((a) => {
|
423
|
-
Object.defineProperty(
|
423
|
+
Object.defineProperty(o.prototype, a, {
|
424
424
|
get() {
|
425
425
|
return this.$$c?.[a];
|
426
426
|
}
|
427
427
|
});
|
428
428
|
}), e.element = /** @type {any} */
|
429
|
-
|
429
|
+
o, o;
|
430
430
|
}
|
431
431
|
class zr {
|
432
432
|
/**
|
@@ -456,7 +456,7 @@ class zr {
|
|
456
456
|
* @returns {() => void}
|
457
457
|
*/
|
458
458
|
$on(t, r) {
|
459
|
-
if (!
|
459
|
+
if (!et(r))
|
460
460
|
return G;
|
461
461
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
462
462
|
return n.push(r), () => {
|
@@ -497,44 +497,44 @@ function Jr(e, t, r) {
|
|
497
497
|
});
|
498
498
|
}
|
499
499
|
}
|
500
|
-
const
|
500
|
+
const K = [];
|
501
501
|
function Yr(e, t) {
|
502
502
|
return {
|
503
|
-
subscribe:
|
503
|
+
subscribe: Ie(e, t).subscribe
|
504
504
|
};
|
505
505
|
}
|
506
|
-
function
|
506
|
+
function Ie(e, t = G) {
|
507
507
|
let r;
|
508
508
|
const n = /* @__PURE__ */ new Set();
|
509
509
|
function i(a) {
|
510
510
|
if (Ut(e, a) && (e = a, r)) {
|
511
|
-
const h = !
|
511
|
+
const h = !K.length;
|
512
512
|
for (const l of n)
|
513
|
-
l[1](),
|
513
|
+
l[1](), K.push(l, e);
|
514
514
|
if (h) {
|
515
|
-
for (let l = 0; l <
|
516
|
-
|
517
|
-
|
515
|
+
for (let l = 0; l < K.length; l += 2)
|
516
|
+
K[l][0](K[l + 1]);
|
517
|
+
K.length = 0;
|
518
518
|
}
|
519
519
|
}
|
520
520
|
}
|
521
|
-
function
|
521
|
+
function s(a) {
|
522
522
|
i(a(e));
|
523
523
|
}
|
524
|
-
function
|
524
|
+
function o(a, h = G) {
|
525
525
|
const l = [a, h];
|
526
|
-
return n.add(l), n.size === 1 && (r = t(i,
|
526
|
+
return n.add(l), n.size === 1 && (r = t(i, s) || G), a(e), () => {
|
527
527
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
528
528
|
};
|
529
529
|
}
|
530
|
-
return { set: i, update:
|
530
|
+
return { set: i, update: s, subscribe: o };
|
531
531
|
}
|
532
|
-
function
|
532
|
+
function ae(e, t, r) {
|
533
533
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
534
534
|
if (!i.every(Boolean))
|
535
535
|
throw new Error("derived() expects stores as input, got a falsy value");
|
536
|
-
const
|
537
|
-
return Yr(r, (
|
536
|
+
const s = t.length < 2;
|
537
|
+
return Yr(r, (o, a) => {
|
538
538
|
let h = !1;
|
539
539
|
const l = [];
|
540
540
|
let u = 0, m = G;
|
@@ -542,8 +542,8 @@ function le(e, t, r) {
|
|
542
542
|
if (u)
|
543
543
|
return;
|
544
544
|
m();
|
545
|
-
const g = t(n ? l[0] : l,
|
546
|
-
|
545
|
+
const g = t(n ? l[0] : l, o, a);
|
546
|
+
s ? o(g) : m = et(g) ? g : G;
|
547
547
|
}, p = i.map(
|
548
548
|
(g, b) => Ar(
|
549
549
|
g,
|
@@ -556,7 +556,7 @@ function le(e, t, r) {
|
|
556
556
|
)
|
557
557
|
);
|
558
558
|
return h = !0, f(), function() {
|
559
|
-
|
559
|
+
Q(p), m(), h = !1;
|
560
560
|
};
|
561
561
|
});
|
562
562
|
}
|
@@ -580,19 +580,19 @@ function sn(e) {
|
|
580
580
|
function an(e) {
|
581
581
|
return Array.isArray(e) ? [] : {};
|
582
582
|
}
|
583
|
-
function
|
584
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
583
|
+
function ge(e, t) {
|
584
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ne(an(e), e, t) : e;
|
585
585
|
}
|
586
586
|
function ln(e, t, r) {
|
587
587
|
return e.concat(t).map(function(n) {
|
588
|
-
return
|
588
|
+
return ge(n, r);
|
589
589
|
});
|
590
590
|
}
|
591
591
|
function un(e, t) {
|
592
592
|
if (!t.customMerge)
|
593
|
-
return
|
593
|
+
return ne;
|
594
594
|
var r = t.customMerge(e);
|
595
|
-
return typeof r == "function" ? r :
|
595
|
+
return typeof r == "function" ? r : ne;
|
596
596
|
}
|
597
597
|
function hn(e) {
|
598
598
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
@@ -615,51 +615,65 @@ function cn(e, t) {
|
|
615
615
|
function fn(e, t, r) {
|
616
616
|
var n = {};
|
617
617
|
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
618
|
-
n[i] =
|
618
|
+
n[i] = ge(e[i], r);
|
619
619
|
}), mt(t).forEach(function(i) {
|
620
|
-
cn(e, i) || (Vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = un(i, r)(e[i], t[i], r) : n[i] =
|
620
|
+
cn(e, i) || (Vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = un(i, r)(e[i], t[i], r) : n[i] = ge(t[i], r));
|
621
621
|
}), n;
|
622
622
|
}
|
623
|
-
function
|
624
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified =
|
625
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
626
|
-
return
|
623
|
+
function ne(e, t, r) {
|
624
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified = ge;
|
625
|
+
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
626
|
+
return s ? n ? r.arrayMerge(e, t, r) : fn(e, t, r) : ge(t, r);
|
627
627
|
}
|
628
|
-
|
628
|
+
ne.all = function(t, r) {
|
629
629
|
if (!Array.isArray(t))
|
630
630
|
throw new Error("first argument should be an array");
|
631
631
|
return t.reduce(function(n, i) {
|
632
|
-
return
|
632
|
+
return ne(n, i, r);
|
633
633
|
}, {});
|
634
634
|
};
|
635
|
-
var mn =
|
635
|
+
var mn = ne, dn = mn;
|
636
636
|
const pn = /* @__PURE__ */ Kr(dn);
|
637
|
-
|
638
|
-
|
637
|
+
/*! *****************************************************************************
|
638
|
+
Copyright (c) Microsoft Corporation.
|
639
|
+
|
640
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
641
|
+
purpose with or without fee is hereby granted.
|
642
|
+
|
643
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
644
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
645
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
646
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
647
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
648
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
649
|
+
PERFORMANCE OF THIS SOFTWARE.
|
650
|
+
***************************************************************************** */
|
651
|
+
var Xe = function(e, t) {
|
652
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
639
653
|
r.__proto__ = n;
|
640
654
|
} || function(r, n) {
|
641
655
|
for (var i in n)
|
642
656
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
643
|
-
},
|
657
|
+
}, Xe(e, t);
|
644
658
|
};
|
645
|
-
function
|
659
|
+
function Me(e, t) {
|
646
660
|
if (typeof t != "function" && t !== null)
|
647
661
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
648
|
-
|
662
|
+
Xe(e, t);
|
649
663
|
function r() {
|
650
664
|
this.constructor = e;
|
651
665
|
}
|
652
666
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
653
667
|
}
|
654
|
-
var
|
655
|
-
return
|
668
|
+
var _ = function() {
|
669
|
+
return _ = Object.assign || function(t) {
|
656
670
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
657
671
|
r = arguments[n];
|
658
|
-
for (var
|
659
|
-
Object.prototype.hasOwnProperty.call(r,
|
672
|
+
for (var s in r)
|
673
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
660
674
|
}
|
661
675
|
return t;
|
662
|
-
},
|
676
|
+
}, _.apply(this, arguments);
|
663
677
|
};
|
664
678
|
function gn(e, t) {
|
665
679
|
var r = {};
|
@@ -670,14 +684,14 @@ function gn(e, t) {
|
|
670
684
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
671
685
|
return r;
|
672
686
|
}
|
673
|
-
function
|
674
|
-
if (
|
675
|
-
for (var n = 0, i = t.length,
|
676
|
-
(
|
677
|
-
return e.concat(
|
687
|
+
function Re(e, t, r) {
|
688
|
+
if (arguments.length === 2)
|
689
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
690
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
691
|
+
return e.concat(s || t);
|
678
692
|
}
|
679
|
-
function
|
680
|
-
var r = t && t.cache ? t.cache :
|
693
|
+
function De(e, t) {
|
694
|
+
var r = t && t.cache ? t.cache : xn, n = t && t.serializer ? t.serializer : En, i = t && t.strategy ? t.strategy : yn;
|
681
695
|
return i(e, {
|
682
696
|
cache: r,
|
683
697
|
serializer: n
|
@@ -686,103 +700,95 @@ function Ge(e, t) {
|
|
686
700
|
function bn(e) {
|
687
701
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
688
702
|
}
|
689
|
-
function
|
690
|
-
var i = bn(n) ? n : r(n),
|
691
|
-
return typeof
|
703
|
+
function Xt(e, t, r, n) {
|
704
|
+
var i = bn(n) ? n : r(n), s = t.get(i);
|
705
|
+
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
692
706
|
}
|
693
|
-
function
|
694
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
695
|
-
return typeof
|
707
|
+
function Wt(e, t, r) {
|
708
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
709
|
+
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
696
710
|
}
|
697
|
-
function
|
711
|
+
function rt(e, t, r, n, i) {
|
698
712
|
return r.bind(t, e, n, i);
|
699
713
|
}
|
714
|
+
function yn(e, t) {
|
715
|
+
var r = e.length === 1 ? Xt : Wt;
|
716
|
+
return rt(e, this, r, t.cache.create(), t.serializer);
|
717
|
+
}
|
700
718
|
function vn(e, t) {
|
701
|
-
|
702
|
-
return Wt(e, this, r, t.cache.create(), t.serializer);
|
719
|
+
return rt(e, this, Wt, t.cache.create(), t.serializer);
|
703
720
|
}
|
704
721
|
function _n(e, t) {
|
705
|
-
return
|
722
|
+
return rt(e, this, Xt, t.cache.create(), t.serializer);
|
706
723
|
}
|
707
724
|
var En = function() {
|
708
725
|
return JSON.stringify(arguments);
|
709
|
-
}
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
}()
|
721
|
-
), Cn = {
|
726
|
+
};
|
727
|
+
function nt() {
|
728
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
729
|
+
}
|
730
|
+
nt.prototype.get = function(e) {
|
731
|
+
return this.cache[e];
|
732
|
+
};
|
733
|
+
nt.prototype.set = function(e, t) {
|
734
|
+
this.cache[e] = t;
|
735
|
+
};
|
736
|
+
var xn = {
|
722
737
|
create: function() {
|
723
|
-
return new
|
738
|
+
return new nt();
|
724
739
|
}
|
725
|
-
},
|
726
|
-
variadic:
|
727
|
-
|
728
|
-
|
729
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
730
|
-
r = arguments[n];
|
731
|
-
for (var o in r)
|
732
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
733
|
-
}
|
734
|
-
return t;
|
735
|
-
}, Be.apply(this, arguments);
|
736
|
-
};
|
737
|
-
var y;
|
740
|
+
}, Ue = {
|
741
|
+
variadic: vn,
|
742
|
+
monadic: _n
|
743
|
+
}, y;
|
738
744
|
(function(e) {
|
739
745
|
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";
|
740
746
|
})(y || (y = {}));
|
741
|
-
var
|
747
|
+
var T;
|
742
748
|
(function(e) {
|
743
749
|
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";
|
744
|
-
})(
|
745
|
-
var
|
750
|
+
})(T || (T = {}));
|
751
|
+
var ie;
|
746
752
|
(function(e) {
|
747
753
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
748
|
-
})(
|
754
|
+
})(ie || (ie = {}));
|
749
755
|
function dt(e) {
|
750
|
-
return e.type ===
|
756
|
+
return e.type === T.literal;
|
751
757
|
}
|
752
|
-
function
|
753
|
-
return e.type ===
|
758
|
+
function Cn(e) {
|
759
|
+
return e.type === T.argument;
|
754
760
|
}
|
755
761
|
function zt(e) {
|
756
|
-
return e.type ===
|
762
|
+
return e.type === T.number;
|
757
763
|
}
|
758
764
|
function Zt(e) {
|
759
|
-
return e.type ===
|
765
|
+
return e.type === T.date;
|
760
766
|
}
|
761
767
|
function Qt(e) {
|
762
|
-
return e.type ===
|
768
|
+
return e.type === T.time;
|
763
769
|
}
|
764
770
|
function qt(e) {
|
765
|
-
return e.type ===
|
771
|
+
return e.type === T.select;
|
766
772
|
}
|
767
773
|
function Jt(e) {
|
768
|
-
return e.type ===
|
774
|
+
return e.type === T.plural;
|
769
775
|
}
|
770
|
-
function
|
771
|
-
return e.type ===
|
776
|
+
function wn(e) {
|
777
|
+
return e.type === T.pound;
|
772
778
|
}
|
773
779
|
function Yt(e) {
|
774
|
-
return e.type ===
|
780
|
+
return e.type === T.tag;
|
775
781
|
}
|
776
782
|
function Kt(e) {
|
777
|
-
return !!(e && typeof e == "object" && e.type ===
|
783
|
+
return !!(e && typeof e == "object" && e.type === ie.number);
|
778
784
|
}
|
779
|
-
function
|
780
|
-
return !!(e && typeof e == "object" && e.type ===
|
785
|
+
function We(e) {
|
786
|
+
return !!(e && typeof e == "object" && e.type === ie.dateTime);
|
781
787
|
}
|
782
|
-
var er = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
783
|
-
function
|
788
|
+
var er = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Hn = /(?:[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;
|
789
|
+
function Sn(e) {
|
784
790
|
var t = {};
|
785
|
-
return e.replace(
|
791
|
+
return e.replace(Hn, function(r) {
|
786
792
|
var n = r.length;
|
787
793
|
switch (r[0]) {
|
788
794
|
case "G":
|
@@ -871,27 +877,17 @@ function Tn(e) {
|
|
871
877
|
return "";
|
872
878
|
}), t;
|
873
879
|
}
|
874
|
-
var
|
875
|
-
|
876
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
877
|
-
r = arguments[n];
|
878
|
-
for (var o in r)
|
879
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
880
|
-
}
|
881
|
-
return t;
|
882
|
-
}, T.apply(this, arguments);
|
883
|
-
};
|
884
|
-
var An = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
885
|
-
function Bn(e) {
|
880
|
+
var Tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
881
|
+
function An(e) {
|
886
882
|
if (e.length === 0)
|
887
883
|
throw new Error("Number skeleton cannot be empty");
|
888
|
-
for (var t = e.split(
|
884
|
+
for (var t = e.split(Tn).filter(function(f) {
|
889
885
|
return f.length > 0;
|
890
886
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
891
|
-
var
|
892
|
-
if (
|
887
|
+
var s = i[n], o = s.split("/");
|
888
|
+
if (o.length === 0)
|
893
889
|
throw new Error("Invalid number skeleton");
|
894
|
-
for (var a =
|
890
|
+
for (var a = o[0], h = o.slice(1), l = 0, u = h; l < u.length; l++) {
|
895
891
|
var m = u[l];
|
896
892
|
if (m.length === 0)
|
897
893
|
throw new Error("Invalid number skeleton");
|
@@ -900,10 +896,10 @@ function Bn(e) {
|
|
900
896
|
}
|
901
897
|
return r;
|
902
898
|
}
|
903
|
-
function
|
899
|
+
function Bn(e) {
|
904
900
|
return e.replace(/^(.*?)-/, "");
|
905
901
|
}
|
906
|
-
var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, tr = /^(@+)?(\+|#+)?[rs]?$/g,
|
902
|
+
var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, tr = /^(@+)?(\+|#+)?[rs]?$/g, In = /(\*)(0+)|(#+)(0+)|(0+)/g, rr = /^(0+)$/;
|
907
903
|
function gt(e) {
|
908
904
|
var t = {};
|
909
905
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(tr, function(r, n, i) {
|
@@ -950,7 +946,7 @@ function nr(e) {
|
|
950
946
|
};
|
951
947
|
}
|
952
948
|
}
|
953
|
-
function
|
949
|
+
function Mn(e) {
|
954
950
|
var t;
|
955
951
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
956
952
|
notation: "engineering"
|
@@ -968,7 +964,7 @@ function bt(e) {
|
|
968
964
|
var t = {}, r = nr(e);
|
969
965
|
return r || t;
|
970
966
|
}
|
971
|
-
function
|
967
|
+
function Nn(e) {
|
972
968
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
973
969
|
var i = n[r];
|
974
970
|
switch (i.stem) {
|
@@ -992,7 +988,7 @@ function Pn(e) {
|
|
992
988
|
continue;
|
993
989
|
case "measure-unit":
|
994
990
|
case "unit":
|
995
|
-
t.style = "unit", t.unit =
|
991
|
+
t.style = "unit", t.unit = Bn(i.options[0]);
|
996
992
|
continue;
|
997
993
|
case "compact-short":
|
998
994
|
case "K":
|
@@ -1003,13 +999,13 @@ function Pn(e) {
|
|
1003
999
|
t.notation = "compact", t.compactDisplay = "long";
|
1004
1000
|
continue;
|
1005
1001
|
case "scientific":
|
1006
|
-
t =
|
1007
|
-
return
|
1002
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
1003
|
+
return _(_({}, h), bt(l));
|
1008
1004
|
}, {}));
|
1009
1005
|
continue;
|
1010
1006
|
case "engineering":
|
1011
|
-
t =
|
1012
|
-
return
|
1007
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
1008
|
+
return _(_({}, h), bt(l));
|
1013
1009
|
}, {}));
|
1014
1010
|
continue;
|
1015
1011
|
case "notation-simple":
|
@@ -1054,7 +1050,7 @@ function Pn(e) {
|
|
1054
1050
|
case "integer-width":
|
1055
1051
|
if (i.options.length > 1)
|
1056
1052
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1057
|
-
i.options[0].replace(
|
1053
|
+
i.options[0].replace(In, function(h, l, u, m, f, p) {
|
1058
1054
|
if (l)
|
1059
1055
|
t.minimumIntegerDigits = u.length;
|
1060
1056
|
else {
|
@@ -1077,22 +1073,22 @@ function Pn(e) {
|
|
1077
1073
|
i.stem.replace(pt, function(h, l, u, m, f, p) {
|
1078
1074
|
return u === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
1079
1075
|
});
|
1080
|
-
var
|
1081
|
-
|
1076
|
+
var s = i.options[0];
|
1077
|
+
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t), gt(s)));
|
1082
1078
|
continue;
|
1083
1079
|
}
|
1084
1080
|
if (tr.test(i.stem)) {
|
1085
|
-
t =
|
1081
|
+
t = _(_({}, t), gt(i.stem));
|
1086
1082
|
continue;
|
1087
1083
|
}
|
1088
|
-
var
|
1089
|
-
|
1090
|
-
var a =
|
1091
|
-
a && (t =
|
1084
|
+
var o = nr(i.stem);
|
1085
|
+
o && (t = _(_({}, t), o));
|
1086
|
+
var a = Mn(i.stem);
|
1087
|
+
a && (t = _(_({}, t), a));
|
1092
1088
|
}
|
1093
1089
|
return t;
|
1094
1090
|
}
|
1095
|
-
var
|
1091
|
+
var Ce = {
|
1096
1092
|
"001": [
|
1097
1093
|
"H",
|
1098
1094
|
"h"
|
@@ -2507,23 +2503,23 @@ var we = {
|
|
2507
2503
|
"h"
|
2508
2504
|
]
|
2509
2505
|
};
|
2510
|
-
function
|
2506
|
+
function Ln(e, t) {
|
2511
2507
|
for (var r = "", n = 0; n < e.length; n++) {
|
2512
2508
|
var i = e.charAt(n);
|
2513
2509
|
if (i === "j") {
|
2514
|
-
for (var
|
2515
|
-
|
2516
|
-
var
|
2510
|
+
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2511
|
+
s++, n++;
|
2512
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", l = Pn(t);
|
2517
2513
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
2518
2514
|
r += h;
|
2519
|
-
for (;
|
2515
|
+
for (; o-- > 0; )
|
2520
2516
|
r = l + r;
|
2521
2517
|
} else
|
2522
2518
|
i === "J" ? r += "H" : r += i;
|
2523
2519
|
}
|
2524
2520
|
return r;
|
2525
2521
|
}
|
2526
|
-
function
|
2522
|
+
function Pn(e) {
|
2527
2523
|
var t = e.hourCycle;
|
2528
2524
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2529
2525
|
e.hourCycles && // @ts-ignore
|
@@ -2542,23 +2538,23 @@ function Ln(e) {
|
|
2542
2538
|
}
|
2543
2539
|
var r = e.language, n;
|
2544
2540
|
r !== "root" && (n = e.maximize().region);
|
2545
|
-
var i =
|
2541
|
+
var i = Ce[n || ""] || Ce[r || ""] || Ce["".concat(r, "-001")] || Ce["001"];
|
2546
2542
|
return i[0];
|
2547
2543
|
}
|
2548
|
-
var
|
2544
|
+
var Ge, On = new RegExp("^".concat(er.source, "*")), Fn = new RegExp("".concat(er.source, "*$"));
|
2549
2545
|
function v(e, t) {
|
2550
2546
|
return { start: e, end: t };
|
2551
2547
|
}
|
2552
|
-
var
|
2548
|
+
var Rn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dn = !!String.fromCodePoint, Un = !!Object.fromEntries, Gn = !!String.prototype.codePointAt, kn = !!String.prototype.trimStart, $n = !!String.prototype.trimEnd, jn = !!Number.isSafeInteger, Vn = jn ? Number.isSafeInteger : function(e) {
|
2553
2549
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2554
|
-
},
|
2550
|
+
}, ze = !0;
|
2555
2551
|
try {
|
2556
|
-
var
|
2557
|
-
|
2552
|
+
var Xn = or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2553
|
+
ze = ((Ge = Xn.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
|
2558
2554
|
} catch {
|
2559
|
-
|
2555
|
+
ze = !1;
|
2560
2556
|
}
|
2561
|
-
var yt =
|
2557
|
+
var yt = Rn ? (
|
2562
2558
|
// Native
|
2563
2559
|
function(t, r, n) {
|
2564
2560
|
return t.startsWith(r, n);
|
@@ -2568,31 +2564,31 @@ var yt = Dn ? (
|
|
2568
2564
|
function(t, r, n) {
|
2569
2565
|
return t.slice(n, n + r.length) === r;
|
2570
2566
|
}
|
2571
|
-
),
|
2567
|
+
), Ze = Dn ? String.fromCodePoint : (
|
2572
2568
|
// IE11
|
2573
2569
|
function() {
|
2574
2570
|
for (var t = [], r = 0; r < arguments.length; r++)
|
2575
2571
|
t[r] = arguments[r];
|
2576
|
-
for (var n = "", i = t.length,
|
2577
|
-
if (
|
2578
|
-
throw RangeError(
|
2579
|
-
n +=
|
2572
|
+
for (var n = "", i = t.length, s = 0, o; i > s; ) {
|
2573
|
+
if (o = t[s++], o > 1114111)
|
2574
|
+
throw RangeError(o + " is not a valid code point");
|
2575
|
+
n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
2580
2576
|
}
|
2581
2577
|
return n;
|
2582
2578
|
}
|
2583
2579
|
), vt = (
|
2584
2580
|
// native
|
2585
|
-
|
2581
|
+
Un ? Object.fromEntries : (
|
2586
2582
|
// Ponyfill
|
2587
2583
|
function(t) {
|
2588
2584
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
2589
|
-
var
|
2590
|
-
r[
|
2585
|
+
var s = i[n], o = s[0], a = s[1];
|
2586
|
+
r[o] = a;
|
2591
2587
|
}
|
2592
2588
|
return r;
|
2593
2589
|
}
|
2594
2590
|
)
|
2595
|
-
), ir =
|
2591
|
+
), ir = Gn ? (
|
2596
2592
|
// Native
|
2597
2593
|
function(t, r) {
|
2598
2594
|
return t.codePointAt(r);
|
@@ -2602,11 +2598,11 @@ var yt = Dn ? (
|
|
2602
2598
|
function(t, r) {
|
2603
2599
|
var n = t.length;
|
2604
2600
|
if (!(r < 0 || r >= n)) {
|
2605
|
-
var i = t.charCodeAt(r),
|
2606
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
2601
|
+
var i = t.charCodeAt(r), s;
|
2602
|
+
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2607
2603
|
}
|
2608
2604
|
}
|
2609
|
-
),
|
2605
|
+
), Wn = kn ? (
|
2610
2606
|
// Native
|
2611
2607
|
function(t) {
|
2612
2608
|
return t.trimStart();
|
@@ -2614,9 +2610,9 @@ var yt = Dn ? (
|
|
2614
2610
|
) : (
|
2615
2611
|
// Ponyfill
|
2616
2612
|
function(t) {
|
2617
|
-
return t.replace(
|
2613
|
+
return t.replace(On, "");
|
2618
2614
|
}
|
2619
|
-
),
|
2615
|
+
), zn = $n ? (
|
2620
2616
|
// Native
|
2621
2617
|
function(t) {
|
2622
2618
|
return t.trimEnd();
|
@@ -2624,32 +2620,32 @@ var yt = Dn ? (
|
|
2624
2620
|
) : (
|
2625
2621
|
// Ponyfill
|
2626
2622
|
function(t) {
|
2627
|
-
return t.replace(
|
2623
|
+
return t.replace(Fn, "");
|
2628
2624
|
}
|
2629
2625
|
);
|
2630
2626
|
function or(e, t) {
|
2631
2627
|
return new RegExp(e, t);
|
2632
2628
|
}
|
2633
|
-
var
|
2634
|
-
if (
|
2629
|
+
var Qe;
|
2630
|
+
if (ze) {
|
2635
2631
|
var _t = or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2636
|
-
|
2632
|
+
Qe = function(t, r) {
|
2637
2633
|
var n;
|
2638
2634
|
_t.lastIndex = r;
|
2639
2635
|
var i = _t.exec(t);
|
2640
2636
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2641
2637
|
};
|
2642
2638
|
} else
|
2643
|
-
|
2639
|
+
Qe = function(t, r) {
|
2644
2640
|
for (var n = []; ; ) {
|
2645
2641
|
var i = ir(t, r);
|
2646
|
-
if (i === void 0 || sr(i) ||
|
2642
|
+
if (i === void 0 || sr(i) || Jn(i))
|
2647
2643
|
break;
|
2648
2644
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2649
2645
|
}
|
2650
|
-
return
|
2646
|
+
return Ze.apply(void 0, n);
|
2651
2647
|
};
|
2652
|
-
var
|
2648
|
+
var Zn = (
|
2653
2649
|
/** @class */
|
2654
2650
|
function() {
|
2655
2651
|
function e(t, r) {
|
@@ -2661,35 +2657,35 @@ var Qn = (
|
|
2661
2657
|
return this.parseMessage(0, "", !1);
|
2662
2658
|
}, e.prototype.parseMessage = function(t, r, n) {
|
2663
2659
|
for (var i = []; !this.isEOF(); ) {
|
2664
|
-
var
|
2665
|
-
if (
|
2666
|
-
var
|
2667
|
-
if (
|
2668
|
-
return
|
2669
|
-
i.push(
|
2660
|
+
var s = this.char();
|
2661
|
+
if (s === 123) {
|
2662
|
+
var o = this.parseArgument(t, n);
|
2663
|
+
if (o.err)
|
2664
|
+
return o;
|
2665
|
+
i.push(o.val);
|
2670
2666
|
} else {
|
2671
|
-
if (
|
2667
|
+
if (s === 125 && t > 0)
|
2672
2668
|
break;
|
2673
|
-
if (
|
2669
|
+
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
2674
2670
|
var a = this.clonePosition();
|
2675
2671
|
this.bump(), i.push({
|
2676
|
-
type:
|
2672
|
+
type: T.pound,
|
2677
2673
|
location: v(a, this.clonePosition())
|
2678
2674
|
});
|
2679
|
-
} else if (
|
2675
|
+
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
2680
2676
|
if (n)
|
2681
2677
|
break;
|
2682
2678
|
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
2683
|
-
} else if (
|
2684
|
-
var
|
2685
|
-
if (
|
2686
|
-
return
|
2687
|
-
i.push(
|
2679
|
+
} else if (s === 60 && !this.ignoreTag && qe(this.peek() || 0)) {
|
2680
|
+
var o = this.parseTag(t, r);
|
2681
|
+
if (o.err)
|
2682
|
+
return o;
|
2683
|
+
i.push(o.val);
|
2688
2684
|
} else {
|
2689
|
-
var
|
2690
|
-
if (
|
2691
|
-
return
|
2692
|
-
i.push(
|
2685
|
+
var o = this.parseLiteral(t, r);
|
2686
|
+
if (o.err)
|
2687
|
+
return o;
|
2688
|
+
i.push(o.val);
|
2693
2689
|
}
|
2694
2690
|
}
|
2695
2691
|
}
|
@@ -2701,26 +2697,26 @@ var Qn = (
|
|
2701
2697
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2702
2698
|
return {
|
2703
2699
|
val: {
|
2704
|
-
type:
|
2700
|
+
type: T.literal,
|
2705
2701
|
value: "<".concat(i, "/>"),
|
2706
2702
|
location: v(n, this.clonePosition())
|
2707
2703
|
},
|
2708
2704
|
err: null
|
2709
2705
|
};
|
2710
2706
|
if (this.bumpIf(">")) {
|
2711
|
-
var
|
2712
|
-
if (
|
2713
|
-
return
|
2714
|
-
var
|
2707
|
+
var s = this.parseMessage(t + 1, r, !0);
|
2708
|
+
if (s.err)
|
2709
|
+
return s;
|
2710
|
+
var o = s.val, a = this.clonePosition();
|
2715
2711
|
if (this.bumpIf("</")) {
|
2716
|
-
if (this.isEOF() || !
|
2712
|
+
if (this.isEOF() || !qe(this.char()))
|
2717
2713
|
return this.error(y.INVALID_TAG, v(a, this.clonePosition()));
|
2718
2714
|
var h = this.clonePosition(), l = this.parseTagName();
|
2719
2715
|
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2720
2716
|
val: {
|
2721
|
-
type:
|
2717
|
+
type: T.tag,
|
2722
2718
|
value: i,
|
2723
|
-
children:
|
2719
|
+
children: o,
|
2724
2720
|
location: v(n, this.clonePosition())
|
2725
2721
|
},
|
2726
2722
|
err: null
|
@@ -2731,21 +2727,21 @@ var Qn = (
|
|
2731
2727
|
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
2732
2728
|
}, e.prototype.parseTagName = function() {
|
2733
2729
|
var t = this.offset();
|
2734
|
-
for (this.bump(); !this.isEOF() &&
|
2730
|
+
for (this.bump(); !this.isEOF() && qn(this.char()); )
|
2735
2731
|
this.bump();
|
2736
2732
|
return this.message.slice(t, this.offset());
|
2737
2733
|
}, e.prototype.parseLiteral = function(t, r) {
|
2738
2734
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
2739
|
-
var
|
2740
|
-
if (o) {
|
2741
|
-
i += o;
|
2742
|
-
continue;
|
2743
|
-
}
|
2744
|
-
var s = this.tryParseUnquoted(t, r);
|
2735
|
+
var s = this.tryParseQuote(r);
|
2745
2736
|
if (s) {
|
2746
2737
|
i += s;
|
2747
2738
|
continue;
|
2748
2739
|
}
|
2740
|
+
var o = this.tryParseUnquoted(t, r);
|
2741
|
+
if (o) {
|
2742
|
+
i += o;
|
2743
|
+
continue;
|
2744
|
+
}
|
2749
2745
|
var a = this.tryParseLeftAngleBracket();
|
2750
2746
|
if (a) {
|
2751
2747
|
i += a;
|
@@ -2755,12 +2751,12 @@ var Qn = (
|
|
2755
2751
|
}
|
2756
2752
|
var h = v(n, this.clonePosition());
|
2757
2753
|
return {
|
2758
|
-
val: { type:
|
2754
|
+
val: { type: T.literal, value: i, location: h },
|
2759
2755
|
err: null
|
2760
2756
|
};
|
2761
2757
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2762
2758
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2763
|
-
!
|
2759
|
+
!Qn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2764
2760
|
}, e.prototype.tryParseQuote = function(t) {
|
2765
2761
|
if (this.isEOF() || this.char() !== 39)
|
2766
2762
|
return null;
|
@@ -2794,12 +2790,12 @@ var Qn = (
|
|
2794
2790
|
r.push(n);
|
2795
2791
|
this.bump();
|
2796
2792
|
}
|
2797
|
-
return
|
2793
|
+
return Ze.apply(void 0, r);
|
2798
2794
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2799
2795
|
if (this.isEOF())
|
2800
2796
|
return null;
|
2801
2797
|
var n = this.char();
|
2802
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2798
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ze(n));
|
2803
2799
|
}, e.prototype.parseArgument = function(t, r) {
|
2804
2800
|
var n = this.clonePosition();
|
2805
2801
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2815,7 +2811,7 @@ var Qn = (
|
|
2815
2811
|
case 125:
|
2816
2812
|
return this.bump(), {
|
2817
2813
|
val: {
|
2818
|
-
type:
|
2814
|
+
type: T.argument,
|
2819
2815
|
// value does not include the opening and closing braces.
|
2820
2816
|
value: i,
|
2821
2817
|
location: v(n, this.clonePosition())
|
@@ -2828,15 +2824,15 @@ var Qn = (
|
|
2828
2824
|
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
2829
2825
|
}
|
2830
2826
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2831
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2827
|
+
var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
|
2832
2828
|
this.bumpTo(i);
|
2833
|
-
var
|
2834
|
-
return { value: n, location:
|
2829
|
+
var s = this.clonePosition(), o = v(t, s);
|
2830
|
+
return { value: n, location: o };
|
2835
2831
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2836
|
-
var
|
2832
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
2837
2833
|
switch (a) {
|
2838
2834
|
case "":
|
2839
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE, v(
|
2835
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, v(o, h));
|
2840
2836
|
case "number":
|
2841
2837
|
case "date":
|
2842
2838
|
case "time": {
|
@@ -2847,7 +2843,7 @@ var Qn = (
|
|
2847
2843
|
var u = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
2848
2844
|
if (m.err)
|
2849
2845
|
return m;
|
2850
|
-
var f =
|
2846
|
+
var f = zn(m.val);
|
2851
2847
|
if (f.length === 0)
|
2852
2848
|
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
2853
2849
|
var p = v(u, this.clonePosition());
|
@@ -2858,36 +2854,36 @@ var Qn = (
|
|
2858
2854
|
return g;
|
2859
2855
|
var b = v(i, this.clonePosition());
|
2860
2856
|
if (l && yt(l?.style, "::", 0)) {
|
2861
|
-
var d =
|
2857
|
+
var d = Wn(l.style.slice(2));
|
2862
2858
|
if (a === "number") {
|
2863
2859
|
var m = this.parseNumberSkeletonFromString(d, l.styleLocation);
|
2864
2860
|
return m.err ? m : {
|
2865
|
-
val: { type:
|
2861
|
+
val: { type: T.number, value: n, location: b, style: m.val },
|
2866
2862
|
err: null
|
2867
2863
|
};
|
2868
2864
|
} else {
|
2869
2865
|
if (d.length === 0)
|
2870
2866
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
2871
|
-
var
|
2872
|
-
this.locale && (
|
2867
|
+
var w = d;
|
2868
|
+
this.locale && (w = Ln(d, this.locale));
|
2873
2869
|
var f = {
|
2874
|
-
type:
|
2875
|
-
pattern:
|
2870
|
+
type: ie.dateTime,
|
2871
|
+
pattern: w,
|
2876
2872
|
location: l.styleLocation,
|
2877
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2878
|
-
},
|
2873
|
+
parsedOptions: this.shouldParseSkeletons ? Sn(w) : {}
|
2874
|
+
}, E = a === "date" ? T.date : T.time;
|
2879
2875
|
return {
|
2880
|
-
val: { type:
|
2876
|
+
val: { type: E, value: n, location: b, style: f },
|
2881
2877
|
err: null
|
2882
2878
|
};
|
2883
2879
|
}
|
2884
2880
|
}
|
2885
2881
|
return {
|
2886
2882
|
val: {
|
2887
|
-
type: a === "number" ?
|
2883
|
+
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
2888
2884
|
value: n,
|
2889
2885
|
location: b,
|
2890
|
-
style: (
|
2886
|
+
style: (s = l?.style) !== null && s !== void 0 ? s : null
|
2891
2887
|
},
|
2892
2888
|
err: null
|
2893
2889
|
};
|
@@ -2895,11 +2891,11 @@ var Qn = (
|
|
2895
2891
|
case "plural":
|
2896
2892
|
case "selectordinal":
|
2897
2893
|
case "select": {
|
2898
|
-
var
|
2894
|
+
var H = this.clonePosition();
|
2899
2895
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2900
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(
|
2896
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(H, _({}, H)));
|
2901
2897
|
this.bumpSpace();
|
2902
|
-
var R = this.parseIdentifierIfPossible(),
|
2898
|
+
var R = this.parseIdentifierIfPossible(), P = 0;
|
2903
2899
|
if (a !== "select" && R.value === "offset") {
|
2904
2900
|
if (!this.bumpIf(":"))
|
2905
2901
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
@@ -2907,7 +2903,7 @@ var Qn = (
|
|
2907
2903
|
var m = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2908
2904
|
if (m.err)
|
2909
2905
|
return m;
|
2910
|
-
this.bumpSpace(), R = this.parseIdentifierIfPossible(),
|
2906
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), P = m.val;
|
2911
2907
|
}
|
2912
2908
|
var k = this.tryParsePluralOrSelectOptions(t, a, r, R);
|
2913
2909
|
if (k.err)
|
@@ -2915,29 +2911,29 @@ var Qn = (
|
|
2915
2911
|
var g = this.tryParseArgumentClose(i);
|
2916
2912
|
if (g.err)
|
2917
2913
|
return g;
|
2918
|
-
var
|
2914
|
+
var C = v(i, this.clonePosition());
|
2919
2915
|
return a === "select" ? {
|
2920
2916
|
val: {
|
2921
|
-
type:
|
2917
|
+
type: T.select,
|
2922
2918
|
value: n,
|
2923
2919
|
options: vt(k.val),
|
2924
|
-
location:
|
2920
|
+
location: C
|
2925
2921
|
},
|
2926
2922
|
err: null
|
2927
2923
|
} : {
|
2928
2924
|
val: {
|
2929
|
-
type:
|
2925
|
+
type: T.plural,
|
2930
2926
|
value: n,
|
2931
2927
|
options: vt(k.val),
|
2932
|
-
offset:
|
2928
|
+
offset: P,
|
2933
2929
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2934
|
-
location:
|
2930
|
+
location: C
|
2935
2931
|
},
|
2936
2932
|
err: null
|
2937
2933
|
};
|
2938
2934
|
}
|
2939
2935
|
default:
|
2940
|
-
return this.error(y.INVALID_ARGUMENT_TYPE, v(
|
2936
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, v(o, h));
|
2941
2937
|
}
|
2942
2938
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2943
2939
|
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
@@ -2979,21 +2975,21 @@ var Qn = (
|
|
2979
2975
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2980
2976
|
var n = [];
|
2981
2977
|
try {
|
2982
|
-
n =
|
2978
|
+
n = An(t);
|
2983
2979
|
} catch {
|
2984
2980
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
2985
2981
|
}
|
2986
2982
|
return {
|
2987
2983
|
val: {
|
2988
|
-
type:
|
2984
|
+
type: ie.number,
|
2989
2985
|
tokens: n,
|
2990
2986
|
location: r,
|
2991
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2987
|
+
parsedOptions: this.shouldParseSkeletons ? Nn(n) : {}
|
2992
2988
|
},
|
2993
2989
|
err: null
|
2994
2990
|
};
|
2995
2991
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2996
|
-
for (var
|
2992
|
+
for (var s, o = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
2997
2993
|
if (l.length === 0) {
|
2998
2994
|
var m = this.clonePosition();
|
2999
2995
|
if (r !== "select" && this.bumpIf("=")) {
|
@@ -3006,7 +3002,7 @@ var Qn = (
|
|
3006
3002
|
}
|
3007
3003
|
if (h.has(l))
|
3008
3004
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
3009
|
-
l === "other" && (
|
3005
|
+
l === "other" && (o = !0), this.bumpSpace();
|
3010
3006
|
var p = this.clonePosition();
|
3011
3007
|
if (!this.bumpIf("{"))
|
3012
3008
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
@@ -3022,21 +3018,21 @@ var Qn = (
|
|
3022
3018
|
value: g.val,
|
3023
3019
|
location: v(p, this.clonePosition())
|
3024
3020
|
}
|
3025
|
-
]), h.add(l), this.bumpSpace(),
|
3021
|
+
]), h.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, u = s.location;
|
3026
3022
|
}
|
3027
|
-
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !
|
3023
|
+
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
3028
3024
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
3029
3025
|
var n = 1, i = this.clonePosition();
|
3030
3026
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
3031
|
-
for (var
|
3027
|
+
for (var s = !1, o = 0; !this.isEOF(); ) {
|
3032
3028
|
var a = this.char();
|
3033
3029
|
if (a >= 48 && a <= 57)
|
3034
|
-
|
3030
|
+
s = !0, o = o * 10 + (a - 48), this.bump();
|
3035
3031
|
else
|
3036
3032
|
break;
|
3037
3033
|
}
|
3038
3034
|
var h = v(i, this.clonePosition());
|
3039
|
-
return
|
3035
|
+
return s ? (o *= n, Vn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
3040
3036
|
}, e.prototype.offset = function() {
|
3041
3037
|
return this.position.offset;
|
3042
3038
|
}, e.prototype.isEOF = function() {
|
@@ -3102,50 +3098,50 @@ var Qn = (
|
|
3102
3098
|
}, e;
|
3103
3099
|
}()
|
3104
3100
|
);
|
3105
|
-
function
|
3101
|
+
function qe(e) {
|
3106
3102
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3107
3103
|
}
|
3108
|
-
function
|
3109
|
-
return
|
3104
|
+
function Qn(e) {
|
3105
|
+
return qe(e) || e === 47;
|
3110
3106
|
}
|
3111
|
-
function
|
3107
|
+
function qn(e) {
|
3112
3108
|
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;
|
3113
3109
|
}
|
3114
3110
|
function sr(e) {
|
3115
3111
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3116
3112
|
}
|
3117
|
-
function
|
3113
|
+
function Jn(e) {
|
3118
3114
|
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;
|
3119
3115
|
}
|
3120
|
-
function
|
3116
|
+
function Je(e) {
|
3121
3117
|
e.forEach(function(t) {
|
3122
3118
|
if (delete t.location, qt(t) || Jt(t))
|
3123
3119
|
for (var r in t.options)
|
3124
|
-
delete t.options[r].location,
|
3120
|
+
delete t.options[r].location, Je(t.options[r].value);
|
3125
3121
|
else
|
3126
|
-
zt(t) && Kt(t.style) || (Zt(t) || Qt(t)) &&
|
3122
|
+
zt(t) && Kt(t.style) || (Zt(t) || Qt(t)) && We(t.style) ? delete t.style.location : Yt(t) && Je(t.children);
|
3127
3123
|
});
|
3128
3124
|
}
|
3129
|
-
function
|
3130
|
-
t === void 0 && (t = {}), t =
|
3131
|
-
var r = new
|
3125
|
+
function Yn(e, t) {
|
3126
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3127
|
+
var r = new Zn(e, t).parse();
|
3132
3128
|
if (r.err) {
|
3133
3129
|
var n = SyntaxError(y[r.err.kind]);
|
3134
3130
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3135
3131
|
}
|
3136
|
-
return t?.captureLocation ||
|
3132
|
+
return t?.captureLocation || Je(r.val), r.val;
|
3137
3133
|
}
|
3138
|
-
var
|
3134
|
+
var oe;
|
3139
3135
|
(function(e) {
|
3140
3136
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3141
|
-
})(
|
3142
|
-
var
|
3137
|
+
})(oe || (oe = {}));
|
3138
|
+
var Ne = (
|
3143
3139
|
/** @class */
|
3144
3140
|
function(e) {
|
3145
|
-
|
3141
|
+
Me(t, e);
|
3146
3142
|
function t(r, n, i) {
|
3147
|
-
var
|
3148
|
-
return
|
3143
|
+
var s = e.call(this, r) || this;
|
3144
|
+
return s.code = n, s.originalMessage = i, s;
|
3149
3145
|
}
|
3150
3146
|
return t.prototype.toString = function() {
|
3151
3147
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
@@ -3154,48 +3150,48 @@ var Oe = (
|
|
3154
3150
|
), Et = (
|
3155
3151
|
/** @class */
|
3156
3152
|
function(e) {
|
3157
|
-
|
3158
|
-
function t(r, n, i,
|
3159
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3153
|
+
Me(t, e);
|
3154
|
+
function t(r, n, i, s) {
|
3155
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), oe.INVALID_VALUE, s) || this;
|
3160
3156
|
}
|
3161
3157
|
return t;
|
3162
|
-
}(
|
3163
|
-
),
|
3158
|
+
}(Ne)
|
3159
|
+
), Kn = (
|
3164
3160
|
/** @class */
|
3165
3161
|
function(e) {
|
3166
|
-
|
3162
|
+
Me(t, e);
|
3167
3163
|
function t(r, n, i) {
|
3168
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3164
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), oe.INVALID_VALUE, i) || this;
|
3169
3165
|
}
|
3170
3166
|
return t;
|
3171
|
-
}(
|
3172
|
-
),
|
3167
|
+
}(Ne)
|
3168
|
+
), ei = (
|
3173
3169
|
/** @class */
|
3174
3170
|
function(e) {
|
3175
|
-
|
3171
|
+
Me(t, e);
|
3176
3172
|
function t(r, n) {
|
3177
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3173
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), oe.MISSING_VALUE, n) || this;
|
3178
3174
|
}
|
3179
3175
|
return t;
|
3180
|
-
}(
|
3181
|
-
),
|
3176
|
+
}(Ne)
|
3177
|
+
), O;
|
3182
3178
|
(function(e) {
|
3183
3179
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3184
|
-
})(
|
3185
|
-
function
|
3180
|
+
})(O || (O = {}));
|
3181
|
+
function ti(e) {
|
3186
3182
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3187
3183
|
var n = t[t.length - 1];
|
3188
|
-
return !n || n.type !==
|
3184
|
+
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
3189
3185
|
}, []);
|
3190
3186
|
}
|
3191
|
-
function
|
3187
|
+
function ri(e) {
|
3192
3188
|
return typeof e == "function";
|
3193
3189
|
}
|
3194
|
-
function
|
3190
|
+
function He(e, t, r, n, i, s, o) {
|
3195
3191
|
if (e.length === 1 && dt(e[0]))
|
3196
3192
|
return [
|
3197
3193
|
{
|
3198
|
-
type:
|
3194
|
+
type: O.literal,
|
3199
3195
|
value: e[0].value
|
3200
3196
|
}
|
3201
3197
|
];
|
@@ -3203,41 +3199,41 @@ function Se(e, t, r, n, i, o, s) {
|
|
3203
3199
|
var u = l[h];
|
3204
3200
|
if (dt(u)) {
|
3205
3201
|
a.push({
|
3206
|
-
type:
|
3202
|
+
type: O.literal,
|
3207
3203
|
value: u.value
|
3208
3204
|
});
|
3209
3205
|
continue;
|
3210
3206
|
}
|
3211
|
-
if (
|
3212
|
-
typeof
|
3213
|
-
type:
|
3214
|
-
value: r.getNumberFormat(t).format(
|
3207
|
+
if (wn(u)) {
|
3208
|
+
typeof s == "number" && a.push({
|
3209
|
+
type: O.literal,
|
3210
|
+
value: r.getNumberFormat(t).format(s)
|
3215
3211
|
});
|
3216
3212
|
continue;
|
3217
3213
|
}
|
3218
3214
|
var m = u.value;
|
3219
3215
|
if (!(i && m in i))
|
3220
|
-
throw new
|
3216
|
+
throw new ei(m, o);
|
3221
3217
|
var f = i[m];
|
3222
|
-
if (
|
3218
|
+
if (Cn(u)) {
|
3223
3219
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3224
|
-
type: typeof f == "string" ?
|
3220
|
+
type: typeof f == "string" ? O.literal : O.object,
|
3225
3221
|
value: f
|
3226
3222
|
});
|
3227
3223
|
continue;
|
3228
3224
|
}
|
3229
3225
|
if (Zt(u)) {
|
3230
|
-
var p = typeof u.style == "string" ? n.date[u.style] :
|
3226
|
+
var p = typeof u.style == "string" ? n.date[u.style] : We(u.style) ? u.style.parsedOptions : void 0;
|
3231
3227
|
a.push({
|
3232
|
-
type:
|
3228
|
+
type: O.literal,
|
3233
3229
|
value: r.getDateTimeFormat(t, p).format(f)
|
3234
3230
|
});
|
3235
3231
|
continue;
|
3236
3232
|
}
|
3237
3233
|
if (Qt(u)) {
|
3238
|
-
var p = typeof u.style == "string" ? n.time[u.style] :
|
3234
|
+
var p = typeof u.style == "string" ? n.time[u.style] : We(u.style) ? u.style.parsedOptions : n.time.medium;
|
3239
3235
|
a.push({
|
3240
|
-
type:
|
3236
|
+
type: O.literal,
|
3241
3237
|
value: r.getDateTimeFormat(t, p).format(f)
|
3242
3238
|
});
|
3243
3239
|
continue;
|
@@ -3245,61 +3241,61 @@ function Se(e, t, r, n, i, o, s) {
|
|
3245
3241
|
if (zt(u)) {
|
3246
3242
|
var p = typeof u.style == "string" ? n.number[u.style] : Kt(u.style) ? u.style.parsedOptions : void 0;
|
3247
3243
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
3248
|
-
type:
|
3244
|
+
type: O.literal,
|
3249
3245
|
value: r.getNumberFormat(t, p).format(f)
|
3250
3246
|
});
|
3251
3247
|
continue;
|
3252
3248
|
}
|
3253
3249
|
if (Yt(u)) {
|
3254
3250
|
var g = u.children, b = u.value, d = i[b];
|
3255
|
-
if (!
|
3256
|
-
throw new
|
3257
|
-
var
|
3258
|
-
return
|
3251
|
+
if (!ri(d))
|
3252
|
+
throw new Kn(b, "function", o);
|
3253
|
+
var w = He(g, t, r, n, i, s), E = d(w.map(function(P) {
|
3254
|
+
return P.value;
|
3259
3255
|
}));
|
3260
|
-
Array.isArray(
|
3256
|
+
Array.isArray(E) || (E = [E]), a.push.apply(a, E.map(function(P) {
|
3261
3257
|
return {
|
3262
|
-
type: typeof
|
3263
|
-
value:
|
3258
|
+
type: typeof P == "string" ? O.literal : O.object,
|
3259
|
+
value: P
|
3264
3260
|
};
|
3265
3261
|
}));
|
3266
3262
|
}
|
3267
3263
|
if (qt(u)) {
|
3268
|
-
var
|
3269
|
-
if (!
|
3270
|
-
throw new Et(u.value, f, Object.keys(u.options),
|
3271
|
-
a.push.apply(a,
|
3264
|
+
var H = u.options[f] || u.options.other;
|
3265
|
+
if (!H)
|
3266
|
+
throw new Et(u.value, f, Object.keys(u.options), o);
|
3267
|
+
a.push.apply(a, He(H.value, t, r, n, i));
|
3272
3268
|
continue;
|
3273
3269
|
}
|
3274
3270
|
if (Jt(u)) {
|
3275
|
-
var
|
3276
|
-
if (!
|
3271
|
+
var H = u.options["=".concat(f)];
|
3272
|
+
if (!H) {
|
3277
3273
|
if (!Intl.PluralRules)
|
3278
|
-
throw new
|
3274
|
+
throw new Ne(`Intl.PluralRules is not available in this environment.
|
3279
3275
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3280
|
-
`,
|
3276
|
+
`, oe.MISSING_INTL_API, o);
|
3281
3277
|
var R = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
|
3282
|
-
|
3278
|
+
H = u.options[R] || u.options.other;
|
3283
3279
|
}
|
3284
|
-
if (!
|
3285
|
-
throw new Et(u.value, f, Object.keys(u.options),
|
3286
|
-
a.push.apply(a,
|
3280
|
+
if (!H)
|
3281
|
+
throw new Et(u.value, f, Object.keys(u.options), o);
|
3282
|
+
a.push.apply(a, He(H.value, t, r, n, i, f - (u.offset || 0)));
|
3287
3283
|
continue;
|
3288
3284
|
}
|
3289
3285
|
}
|
3290
|
-
return
|
3286
|
+
return ti(a);
|
3291
3287
|
}
|
3292
|
-
function
|
3293
|
-
return t ?
|
3294
|
-
return r[n] =
|
3288
|
+
function ni(e, t) {
|
3289
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3290
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
3295
3291
|
}, {})) : e;
|
3296
3292
|
}
|
3297
|
-
function
|
3293
|
+
function ii(e, t) {
|
3298
3294
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3299
|
-
return r[n] =
|
3300
|
-
},
|
3295
|
+
return r[n] = ni(e[n], t[n]), r;
|
3296
|
+
}, _({}, e)) : e;
|
3301
3297
|
}
|
3302
|
-
function
|
3298
|
+
function ke(e) {
|
3303
3299
|
return {
|
3304
3300
|
create: function() {
|
3305
3301
|
return {
|
@@ -3313,77 +3309,77 @@ function je(e) {
|
|
3313
3309
|
}
|
3314
3310
|
};
|
3315
3311
|
}
|
3316
|
-
function
|
3312
|
+
function oi(e) {
|
3317
3313
|
return e === void 0 && (e = {
|
3318
3314
|
number: {},
|
3319
3315
|
dateTime: {},
|
3320
3316
|
pluralRules: {}
|
3321
3317
|
}), {
|
3322
|
-
getNumberFormat:
|
3318
|
+
getNumberFormat: De(function() {
|
3323
3319
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3324
3320
|
r[n] = arguments[n];
|
3325
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3321
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Re([void 0], r, !1)))();
|
3326
3322
|
}, {
|
3327
|
-
cache:
|
3328
|
-
strategy:
|
3323
|
+
cache: ke(e.number),
|
3324
|
+
strategy: Ue.variadic
|
3329
3325
|
}),
|
3330
|
-
getDateTimeFormat:
|
3326
|
+
getDateTimeFormat: De(function() {
|
3331
3327
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3332
3328
|
r[n] = arguments[n];
|
3333
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3329
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Re([void 0], r, !1)))();
|
3334
3330
|
}, {
|
3335
|
-
cache:
|
3336
|
-
strategy:
|
3331
|
+
cache: ke(e.dateTime),
|
3332
|
+
strategy: Ue.variadic
|
3337
3333
|
}),
|
3338
|
-
getPluralRules:
|
3334
|
+
getPluralRules: De(function() {
|
3339
3335
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3340
3336
|
r[n] = arguments[n];
|
3341
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3337
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Re([void 0], r, !1)))();
|
3342
3338
|
}, {
|
3343
|
-
cache:
|
3344
|
-
strategy:
|
3339
|
+
cache: ke(e.pluralRules),
|
3340
|
+
strategy: Ue.variadic
|
3345
3341
|
})
|
3346
3342
|
};
|
3347
3343
|
}
|
3348
|
-
var
|
3344
|
+
var si = (
|
3349
3345
|
/** @class */
|
3350
3346
|
function() {
|
3351
3347
|
function e(t, r, n, i) {
|
3352
3348
|
r === void 0 && (r = e.defaultLocale);
|
3353
|
-
var
|
3349
|
+
var s = this;
|
3354
3350
|
if (this.formatterCache = {
|
3355
3351
|
number: {},
|
3356
3352
|
dateTime: {},
|
3357
3353
|
pluralRules: {}
|
3358
3354
|
}, this.format = function(h) {
|
3359
|
-
var l =
|
3355
|
+
var l = s.formatToParts(h);
|
3360
3356
|
if (l.length === 1)
|
3361
3357
|
return l[0].value;
|
3362
3358
|
var u = l.reduce(function(m, f) {
|
3363
|
-
return !m.length || f.type !==
|
3359
|
+
return !m.length || f.type !== O.literal || typeof m[m.length - 1] != "string" ? m.push(f.value) : m[m.length - 1] += f.value, m;
|
3364
3360
|
}, []);
|
3365
3361
|
return u.length <= 1 ? u[0] || "" : u;
|
3366
3362
|
}, this.formatToParts = function(h) {
|
3367
|
-
return
|
3363
|
+
return He(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
3368
3364
|
}, this.resolvedOptions = function() {
|
3369
3365
|
var h;
|
3370
3366
|
return {
|
3371
|
-
locale: ((h =
|
3367
|
+
locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
3372
3368
|
};
|
3373
3369
|
}, this.getAst = function() {
|
3374
|
-
return
|
3370
|
+
return s.ast;
|
3375
3371
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
3376
3372
|
if (this.message = t, !e.__parse)
|
3377
3373
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3378
|
-
var
|
3379
|
-
|
3380
|
-
var a = gn(
|
3381
|
-
this.ast = e.__parse(t,
|
3374
|
+
var o = i || {};
|
3375
|
+
o.formatters;
|
3376
|
+
var a = gn(o, ["formatters"]);
|
3377
|
+
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
3382
3378
|
} else
|
3383
3379
|
this.ast = t;
|
3384
3380
|
if (!Array.isArray(this.ast))
|
3385
3381
|
throw new TypeError("A message must be provided as a String or AST.");
|
3386
|
-
this.formats =
|
3382
|
+
this.formats = ii(e.formats, n), this.formatters = i && i.formatters || oi(this.formatterCache);
|
3387
3383
|
}
|
3388
3384
|
return Object.defineProperty(e, "defaultLocale", {
|
3389
3385
|
get: function() {
|
@@ -3396,7 +3392,7 @@ var ai = (
|
|
3396
3392
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3397
3393
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3398
3394
|
}
|
3399
|
-
}, e.__parse =
|
3395
|
+
}, e.__parse = Yn, e.formats = {
|
3400
3396
|
number: {
|
3401
3397
|
integer: {
|
3402
3398
|
maximumFractionDigits: 0
|
@@ -3457,7 +3453,7 @@ var ai = (
|
|
3457
3453
|
}, e;
|
3458
3454
|
}()
|
3459
3455
|
);
|
3460
|
-
function
|
3456
|
+
function ai(e, t) {
|
3461
3457
|
if (t == null)
|
3462
3458
|
return;
|
3463
3459
|
if (t in e)
|
@@ -3467,9 +3463,9 @@ function li(e, t) {
|
|
3467
3463
|
for (let i = 0; i < r.length; i++)
|
3468
3464
|
if (typeof n == "object") {
|
3469
3465
|
if (i > 0) {
|
3470
|
-
const
|
3471
|
-
if (
|
3472
|
-
n = n[
|
3466
|
+
const s = r.slice(i, r.length).join(".");
|
3467
|
+
if (s in n) {
|
3468
|
+
n = n[s];
|
3473
3469
|
break;
|
3474
3470
|
}
|
3475
3471
|
}
|
@@ -3478,33 +3474,33 @@ function li(e, t) {
|
|
3478
3474
|
n = void 0;
|
3479
3475
|
return n;
|
3480
3476
|
}
|
3481
|
-
const
|
3477
|
+
const X = {}, li = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][e] = r), r), ar = (e, t) => {
|
3482
3478
|
if (t == null)
|
3483
3479
|
return;
|
3484
|
-
if (t in
|
3485
|
-
return
|
3480
|
+
if (t in X && e in X[t])
|
3481
|
+
return X[t][e];
|
3486
3482
|
const r = Le(t);
|
3487
3483
|
for (let n = 0; n < r.length; n++) {
|
3488
|
-
const i = r[n],
|
3489
|
-
if (
|
3490
|
-
return
|
3484
|
+
const i = r[n], s = hi(i, e);
|
3485
|
+
if (s)
|
3486
|
+
return li(e, t, s);
|
3491
3487
|
}
|
3492
3488
|
};
|
3493
3489
|
let it;
|
3494
|
-
const
|
3495
|
-
function
|
3490
|
+
const le = Ie({});
|
3491
|
+
function ui(e) {
|
3496
3492
|
return it[e] || null;
|
3497
3493
|
}
|
3498
3494
|
function lr(e) {
|
3499
3495
|
return e in it;
|
3500
3496
|
}
|
3501
|
-
function
|
3497
|
+
function hi(e, t) {
|
3502
3498
|
if (!lr(e))
|
3503
3499
|
return null;
|
3504
|
-
const r =
|
3505
|
-
return
|
3500
|
+
const r = ui(e);
|
3501
|
+
return ai(r, t);
|
3506
3502
|
}
|
3507
|
-
function
|
3503
|
+
function ci(e) {
|
3508
3504
|
if (e == null)
|
3509
3505
|
return;
|
3510
3506
|
const t = Le(e);
|
@@ -3515,27 +3511,27 @@ function fi(e) {
|
|
3515
3511
|
}
|
3516
3512
|
}
|
3517
3513
|
function ur(e, ...t) {
|
3518
|
-
delete
|
3514
|
+
delete X[e], le.update((r) => (r[e] = pn.all([r[e] || {}, ...t]), r));
|
3519
3515
|
}
|
3520
|
-
|
3521
|
-
[
|
3516
|
+
ae(
|
3517
|
+
[le],
|
3522
3518
|
([e]) => Object.keys(e)
|
3523
3519
|
);
|
3524
|
-
|
3525
|
-
const
|
3526
|
-
function
|
3527
|
-
|
3520
|
+
le.subscribe((e) => it = e);
|
3521
|
+
const Se = {};
|
3522
|
+
function fi(e, t) {
|
3523
|
+
Se[e].delete(t), Se[e].size === 0 && delete Se[e];
|
3528
3524
|
}
|
3529
3525
|
function hr(e) {
|
3530
|
-
return
|
3526
|
+
return Se[e];
|
3531
3527
|
}
|
3532
|
-
function
|
3528
|
+
function mi(e) {
|
3533
3529
|
return Le(e).map((t) => {
|
3534
3530
|
const r = hr(t);
|
3535
3531
|
return [t, r ? [...r] : []];
|
3536
3532
|
}).filter(([, t]) => t.length > 0);
|
3537
3533
|
}
|
3538
|
-
function
|
3534
|
+
function Ye(e) {
|
3539
3535
|
return e == null ? !1 : Le(e).some(
|
3540
3536
|
(t) => {
|
3541
3537
|
var r;
|
@@ -3543,27 +3539,27 @@ function et(e) {
|
|
3543
3539
|
}
|
3544
3540
|
);
|
3545
3541
|
}
|
3546
|
-
function
|
3542
|
+
function di(e, t) {
|
3547
3543
|
return Promise.all(
|
3548
|
-
t.map((n) => (
|
3544
|
+
t.map((n) => (fi(e, n), n().then((i) => i.default || i)))
|
3549
3545
|
).then((n) => ur(e, ...n));
|
3550
3546
|
}
|
3551
|
-
const
|
3547
|
+
const ce = {};
|
3552
3548
|
function cr(e) {
|
3553
|
-
if (!
|
3554
|
-
return e in
|
3555
|
-
const t =
|
3556
|
-
return
|
3549
|
+
if (!Ye(e))
|
3550
|
+
return e in ce ? ce[e] : Promise.resolve();
|
3551
|
+
const t = mi(e);
|
3552
|
+
return ce[e] = Promise.all(
|
3557
3553
|
t.map(
|
3558
|
-
([r, n]) =>
|
3554
|
+
([r, n]) => di(r, n)
|
3559
3555
|
)
|
3560
3556
|
).then(() => {
|
3561
|
-
if (
|
3557
|
+
if (Ye(e))
|
3562
3558
|
return cr(e);
|
3563
|
-
delete
|
3564
|
-
}),
|
3559
|
+
delete ce[e];
|
3560
|
+
}), ce[e];
|
3565
3561
|
}
|
3566
|
-
const
|
3562
|
+
const pi = {
|
3567
3563
|
number: {
|
3568
3564
|
scientific: { notation: "scientific" },
|
3569
3565
|
engineering: { notation: "engineering" },
|
@@ -3592,150 +3588,150 @@ const gi = {
|
|
3592
3588
|
timeZoneName: "short"
|
3593
3589
|
}
|
3594
3590
|
}
|
3595
|
-
},
|
3591
|
+
}, gi = {
|
3596
3592
|
fallbackLocale: null,
|
3597
3593
|
loadingDelay: 200,
|
3598
|
-
formats:
|
3594
|
+
formats: pi,
|
3599
3595
|
warnOnMissingMessages: !0,
|
3600
3596
|
handleMissingMessage: void 0,
|
3601
3597
|
ignoreTag: !0
|
3602
|
-
},
|
3603
|
-
function
|
3604
|
-
return
|
3598
|
+
}, bi = gi;
|
3599
|
+
function se() {
|
3600
|
+
return bi;
|
3605
3601
|
}
|
3606
|
-
const
|
3607
|
-
var
|
3602
|
+
const $e = Ie(!1);
|
3603
|
+
var yi = Object.defineProperty, vi = Object.defineProperties, _i = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Ei = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ci = (e, t) => {
|
3608
3604
|
for (var r in t || (t = {}))
|
3609
|
-
|
3605
|
+
Ei.call(t, r) && Ct(e, r, t[r]);
|
3610
3606
|
if (xt)
|
3611
3607
|
for (var r of xt(t))
|
3612
|
-
|
3608
|
+
xi.call(t, r) && Ct(e, r, t[r]);
|
3613
3609
|
return e;
|
3614
|
-
},
|
3615
|
-
let
|
3616
|
-
const
|
3610
|
+
}, wi = (e, t) => vi(e, _i(t));
|
3611
|
+
let Ke;
|
3612
|
+
const Ae = Ie(null);
|
3617
3613
|
function wt(e) {
|
3618
3614
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3619
3615
|
}
|
3620
|
-
function Le(e, t =
|
3616
|
+
function Le(e, t = se().fallbackLocale) {
|
3621
3617
|
const r = wt(e);
|
3622
3618
|
return t ? [.../* @__PURE__ */ new Set([...r, ...wt(t)])] : r;
|
3623
3619
|
}
|
3624
|
-
function
|
3625
|
-
return
|
3620
|
+
function q() {
|
3621
|
+
return Ke ?? void 0;
|
3626
3622
|
}
|
3627
|
-
|
3628
|
-
|
3623
|
+
Ae.subscribe((e) => {
|
3624
|
+
Ke = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3629
3625
|
});
|
3630
|
-
const
|
3631
|
-
if (e &&
|
3632
|
-
const { loadingDelay: t } =
|
3626
|
+
const Hi = (e) => {
|
3627
|
+
if (e && ci(e) && Ye(e)) {
|
3628
|
+
const { loadingDelay: t } = se();
|
3633
3629
|
let r;
|
3634
|
-
return typeof window < "u" &&
|
3635
|
-
() =>
|
3630
|
+
return typeof window < "u" && q() != null && t ? r = window.setTimeout(
|
3631
|
+
() => $e.set(!0),
|
3636
3632
|
t
|
3637
|
-
) :
|
3638
|
-
|
3633
|
+
) : $e.set(!0), cr(e).then(() => {
|
3634
|
+
Ae.set(e);
|
3639
3635
|
}).finally(() => {
|
3640
|
-
clearTimeout(r),
|
3636
|
+
clearTimeout(r), $e.set(!1);
|
3641
3637
|
});
|
3642
3638
|
}
|
3643
|
-
return
|
3644
|
-
},
|
3645
|
-
set:
|
3646
|
-
}),
|
3639
|
+
return Ae.set(e);
|
3640
|
+
}, W = wi(Ci({}, Ae), {
|
3641
|
+
set: Hi
|
3642
|
+
}), Pe = (e) => {
|
3647
3643
|
const t = /* @__PURE__ */ Object.create(null);
|
3648
3644
|
return (n) => {
|
3649
3645
|
const i = JSON.stringify(n);
|
3650
3646
|
return i in t ? t[i] : t[i] = e(n);
|
3651
3647
|
};
|
3652
3648
|
};
|
3653
|
-
var
|
3649
|
+
var Si = Object.defineProperty, Be = Object.getOwnPropertySymbols, fr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ot = (e, t) => {
|
3654
3650
|
for (var r in t || (t = {}))
|
3655
3651
|
fr.call(t, r) && Ht(e, r, t[r]);
|
3656
|
-
if (
|
3657
|
-
for (var r of
|
3652
|
+
if (Be)
|
3653
|
+
for (var r of Be(t))
|
3658
3654
|
mr.call(t, r) && Ht(e, r, t[r]);
|
3659
3655
|
return e;
|
3660
|
-
},
|
3656
|
+
}, ue = (e, t) => {
|
3661
3657
|
var r = {};
|
3662
3658
|
for (var n in e)
|
3663
3659
|
fr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3664
|
-
if (e != null &&
|
3665
|
-
for (var n of
|
3660
|
+
if (e != null && Be)
|
3661
|
+
for (var n of Be(e))
|
3666
3662
|
t.indexOf(n) < 0 && mr.call(e, n) && (r[n] = e[n]);
|
3667
3663
|
return r;
|
3668
3664
|
};
|
3669
|
-
const
|
3670
|
-
const { formats: r } =
|
3665
|
+
const be = (e, t) => {
|
3666
|
+
const { formats: r } = se();
|
3671
3667
|
if (e in r && t in r[e])
|
3672
3668
|
return r[e][t];
|
3673
3669
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3674
|
-
},
|
3670
|
+
}, Ti = Pe(
|
3675
3671
|
(e) => {
|
3676
|
-
var t = e, { locale: r, format: n } = t, i =
|
3672
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
3677
3673
|
if (r == null)
|
3678
3674
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3679
|
-
return n && (i =
|
3675
|
+
return n && (i = be("number", n)), new Intl.NumberFormat(r, i);
|
3680
3676
|
}
|
3681
|
-
),
|
3677
|
+
), Ai = Pe(
|
3682
3678
|
(e) => {
|
3683
|
-
var t = e, { locale: r, format: n } = t, i =
|
3679
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
3684
3680
|
if (r == null)
|
3685
3681
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3686
|
-
return n ? i =
|
3682
|
+
return n ? i = be("date", n) : Object.keys(i).length === 0 && (i = be("date", "short")), new Intl.DateTimeFormat(r, i);
|
3687
3683
|
}
|
3688
|
-
),
|
3684
|
+
), Bi = Pe(
|
3689
3685
|
(e) => {
|
3690
|
-
var t = e, { locale: r, format: n } = t, i =
|
3686
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
3691
3687
|
if (r == null)
|
3692
3688
|
throw new Error(
|
3693
3689
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3694
3690
|
);
|
3695
|
-
return n ? i =
|
3691
|
+
return n ? i = be("time", n) : Object.keys(i).length === 0 && (i = be("time", "short")), new Intl.DateTimeFormat(r, i);
|
3696
3692
|
}
|
3697
|
-
),
|
3693
|
+
), Ii = (e = {}) => {
|
3698
3694
|
var t = e, {
|
3699
|
-
locale: r =
|
3700
|
-
} = t, n =
|
3695
|
+
locale: r = q()
|
3696
|
+
} = t, n = ue(t, [
|
3701
3697
|
"locale"
|
3702
3698
|
]);
|
3703
|
-
return
|
3704
|
-
},
|
3699
|
+
return Ti(ot({ locale: r }, n));
|
3700
|
+
}, Mi = (e = {}) => {
|
3705
3701
|
var t = e, {
|
3706
|
-
locale: r =
|
3707
|
-
} = t, n =
|
3702
|
+
locale: r = q()
|
3703
|
+
} = t, n = ue(t, [
|
3708
3704
|
"locale"
|
3709
3705
|
]);
|
3710
|
-
return
|
3711
|
-
},
|
3706
|
+
return Ai(ot({ locale: r }, n));
|
3707
|
+
}, Ni = (e = {}) => {
|
3712
3708
|
var t = e, {
|
3713
|
-
locale: r =
|
3714
|
-
} = t, n =
|
3709
|
+
locale: r = q()
|
3710
|
+
} = t, n = ue(t, [
|
3715
3711
|
"locale"
|
3716
3712
|
]);
|
3717
|
-
return
|
3718
|
-
},
|
3713
|
+
return Bi(ot({ locale: r }, n));
|
3714
|
+
}, Li = Pe(
|
3719
3715
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3720
|
-
(e, t =
|
3721
|
-
ignoreTag:
|
3716
|
+
(e, t = q()) => new si(e, t, se().formats, {
|
3717
|
+
ignoreTag: se().ignoreTag
|
3722
3718
|
})
|
3723
|
-
),
|
3724
|
-
var r, n, i,
|
3725
|
-
let
|
3726
|
-
typeof e == "object" && (
|
3719
|
+
), Pi = (e, t = {}) => {
|
3720
|
+
var r, n, i, s;
|
3721
|
+
let o = t;
|
3722
|
+
typeof e == "object" && (o = e, e = o.id);
|
3727
3723
|
const {
|
3728
3724
|
values: a,
|
3729
|
-
locale: h =
|
3725
|
+
locale: h = q(),
|
3730
3726
|
default: l
|
3731
|
-
} =
|
3727
|
+
} = o;
|
3732
3728
|
if (h == null)
|
3733
3729
|
throw new Error(
|
3734
3730
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3735
3731
|
);
|
3736
3732
|
let u = ar(e, h);
|
3737
3733
|
if (!u)
|
3738
|
-
u = (
|
3734
|
+
u = (s = (i = (n = (r = se()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
3739
3735
|
else if (typeof u != "string")
|
3740
3736
|
return console.warn(
|
3741
3737
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
@@ -3744,7 +3740,7 @@ const ye = (e, t) => {
|
|
3744
3740
|
return u;
|
3745
3741
|
let m = u;
|
3746
3742
|
try {
|
3747
|
-
m =
|
3743
|
+
m = Li(u, h).format(a);
|
3748
3744
|
} catch (f) {
|
3749
3745
|
f instanceof Error && console.warn(
|
3750
3746
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3752,22 +3748,22 @@ const ye = (e, t) => {
|
|
3752
3748
|
);
|
3753
3749
|
}
|
3754
3750
|
return m;
|
3755
|
-
},
|
3756
|
-
|
3757
|
-
|
3758
|
-
|
3759
|
-
|
3760
|
-
|
3761
|
-
function
|
3762
|
-
|
3763
|
-
r == null && (
|
3751
|
+
}, Oi = (e, t) => Ni(t).format(e), Fi = (e, t) => Mi(t).format(e), Ri = (e, t) => Ii(t).format(e), Di = (e, t = q()) => ar(e, t);
|
3752
|
+
ae([W, le], () => Pi);
|
3753
|
+
ae([W], () => Oi);
|
3754
|
+
ae([W], () => Fi);
|
3755
|
+
ae([W], () => Ri);
|
3756
|
+
ae([W, le], () => Di);
|
3757
|
+
function Ui({ withLocale: e, translations: t }) {
|
3758
|
+
W.subscribe((r) => {
|
3759
|
+
r == null && (le.set(t), W.set(e));
|
3764
3760
|
});
|
3765
3761
|
}
|
3766
3762
|
function St(e, t) {
|
3767
3763
|
ur(e, t);
|
3768
3764
|
}
|
3769
|
-
function
|
3770
|
-
|
3765
|
+
function Gi(e) {
|
3766
|
+
W.set(e);
|
3771
3767
|
}
|
3772
3768
|
const Tt = {
|
3773
3769
|
en: {
|
@@ -3826,7 +3822,7 @@ const Tt = {
|
|
3826
3822
|
deposit: "Deposit"
|
3827
3823
|
}
|
3828
3824
|
};
|
3829
|
-
function
|
3825
|
+
function ki(e) {
|
3830
3826
|
Br(e, "svelte-wvhhix", '*,*::before,*::after{margin:0;padding:0;font-family:inherit;box-sizing:border-box}.scroller{scroll-behavior:smooth}.CarouselWrapper{background:var(--emw--color-primary, #194127)}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));margin:0 auto;max-width:1300px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emw--categories-arrows-bg, var(--emw--color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emw--categories-arrows, var(--emw--color-white, #FFFFFF))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left;padding:7px 10px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems a{display:block;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839));background:-webkit-linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #22B04E)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #22B04E)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emw--categories-contrast, var(--emw--color-contrast, #07072A));background:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem span{border-top:1px solid transparent;padding-top:5px;transition-duration:0.3s}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emw--color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emw--color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}.CategoryIconImg{height:20px;margin:0 auto;display:block}.DisplayNone{display:none}');
|
3831
3827
|
}
|
3832
3828
|
function At(e, t, r) {
|
@@ -3842,87 +3838,87 @@ function It(e, t, r) {
|
|
3842
3838
|
return n[54] = t[r], n[56] = r, n;
|
3843
3839
|
}
|
3844
3840
|
function Mt(e) {
|
3845
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
3841
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = re(
|
3846
3842
|
/*sliderdata*/
|
3847
3843
|
e[9]
|
3848
3844
|
);
|
3849
|
-
const
|
3845
|
+
const s = (o) => (
|
3850
3846
|
/*category*/
|
3851
|
-
|
3847
|
+
o[48].id
|
3852
3848
|
);
|
3853
|
-
for (let
|
3854
|
-
let a = At(e, i,
|
3855
|
-
r.set(h, t[
|
3849
|
+
for (let o = 0; o < i.length; o += 1) {
|
3850
|
+
let a = At(e, i, o), h = s(a);
|
3851
|
+
r.set(h, t[o] = Rt(h, a));
|
3856
3852
|
}
|
3857
3853
|
return {
|
3858
3854
|
c() {
|
3859
|
-
for (let
|
3860
|
-
t[
|
3861
|
-
n =
|
3855
|
+
for (let o = 0; o < t.length; o += 1)
|
3856
|
+
t[o].c();
|
3857
|
+
n = de();
|
3862
3858
|
},
|
3863
|
-
m(
|
3859
|
+
m(o, a) {
|
3864
3860
|
for (let h = 0; h < t.length; h += 1)
|
3865
|
-
t[h] && t[h].m(
|
3866
|
-
U(
|
3861
|
+
t[h] && t[h].m(o, a);
|
3862
|
+
U(o, n, a);
|
3867
3863
|
},
|
3868
|
-
p(
|
3864
|
+
p(o, a) {
|
3869
3865
|
a[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
|
3870
|
-
77775 && (i =
|
3866
|
+
77775 && (i = re(
|
3871
3867
|
/*sliderdata*/
|
3872
|
-
|
3873
|
-
), t = $t(t, a,
|
3868
|
+
o[9]
|
3869
|
+
), t = $t(t, a, s, 1, o, i, r, n.parentNode, kt, Rt, n, At));
|
3874
3870
|
},
|
3875
|
-
d(
|
3876
|
-
|
3871
|
+
d(o) {
|
3872
|
+
o && F(n);
|
3877
3873
|
for (let a = 0; a < t.length; a += 1)
|
3878
|
-
t[a].d(
|
3874
|
+
t[a].d(o);
|
3879
3875
|
}
|
3880
3876
|
};
|
3881
3877
|
}
|
3882
|
-
function
|
3878
|
+
function $i(e) {
|
3883
3879
|
let t, r = (
|
3884
3880
|
/*category*/
|
3885
3881
|
e[48].name + ""
|
3886
3882
|
), n;
|
3887
3883
|
return {
|
3888
3884
|
c() {
|
3889
|
-
t = N("button"), n =
|
3885
|
+
t = N("button"), n = ye(r), S(t, "class", "CategoryButton");
|
3890
3886
|
},
|
3891
|
-
m(i,
|
3892
|
-
U(i, t,
|
3887
|
+
m(i, s) {
|
3888
|
+
U(i, t, s), B(t, n);
|
3893
3889
|
},
|
3894
|
-
p(i,
|
3895
|
-
|
3890
|
+
p(i, s) {
|
3891
|
+
s[0] & /*sliderdata*/
|
3896
3892
|
512 && r !== (r = /*category*/
|
3897
|
-
i[48].name + "") &&
|
3893
|
+
i[48].name + "") && tt(n, r);
|
3898
3894
|
},
|
3899
3895
|
d(i) {
|
3900
3896
|
i && F(t);
|
3901
3897
|
}
|
3902
3898
|
};
|
3903
3899
|
}
|
3904
|
-
function
|
3900
|
+
function ji(e) {
|
3905
3901
|
let t, r = (
|
3906
3902
|
/*category*/
|
3907
3903
|
e[48].label + ""
|
3908
3904
|
), n, i;
|
3909
3905
|
return {
|
3910
3906
|
c() {
|
3911
|
-
t = N("a"), n =
|
3907
|
+
t = N("a"), n = ye(r), S(t, "href", i = /*category*/
|
3912
3908
|
e[48].path);
|
3913
3909
|
},
|
3914
|
-
m(
|
3915
|
-
U(
|
3910
|
+
m(s, o) {
|
3911
|
+
U(s, t, o), B(t, n);
|
3916
3912
|
},
|
3917
|
-
p(
|
3918
|
-
|
3913
|
+
p(s, o) {
|
3914
|
+
o[0] & /*sliderdata*/
|
3919
3915
|
512 && r !== (r = /*category*/
|
3920
|
-
|
3916
|
+
s[48].label + "") && tt(n, r), o[0] & /*sliderdata*/
|
3921
3917
|
512 && i !== (i = /*category*/
|
3922
|
-
|
3918
|
+
s[48].path) && S(t, "href", i);
|
3923
3919
|
},
|
3924
|
-
d(
|
3925
|
-
|
3920
|
+
d(s) {
|
3921
|
+
s && F(t);
|
3926
3922
|
}
|
3927
3923
|
};
|
3928
3924
|
}
|
@@ -3930,11 +3926,11 @@ function Nt(e) {
|
|
3930
3926
|
let t, r = (
|
3931
3927
|
/*subGroupsData*/
|
3932
3928
|
e[10].length > 0 && /*showsubgroups*/
|
3933
|
-
e[2] == "true" &&
|
3929
|
+
e[2] == "true" && Lt(e)
|
3934
3930
|
);
|
3935
3931
|
return {
|
3936
3932
|
c() {
|
3937
|
-
r && r.c(), t =
|
3933
|
+
r && r.c(), t = de();
|
3938
3934
|
},
|
3939
3935
|
m(n, i) {
|
3940
3936
|
r && r.m(n, i), U(n, t, i);
|
@@ -3942,15 +3938,15 @@ function Nt(e) {
|
|
3942
3938
|
p(n, i) {
|
3943
3939
|
/*subGroupsData*/
|
3944
3940
|
n[10].length > 0 && /*showsubgroups*/
|
3945
|
-
n[2] == "true" ? r ? r.p(n, i) : (r =
|
3941
|
+
n[2] == "true" ? r ? r.p(n, i) : (r = Lt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
3946
3942
|
},
|
3947
3943
|
d(n) {
|
3948
3944
|
n && F(t), r && r.d(n);
|
3949
3945
|
}
|
3950
3946
|
};
|
3951
3947
|
}
|
3952
|
-
function
|
3953
|
-
let t, r =
|
3948
|
+
function Lt(e) {
|
3949
|
+
let t, r = re(
|
3954
3950
|
/*subGroupsData*/
|
3955
3951
|
e[10]
|
3956
3952
|
), n = [];
|
@@ -3961,27 +3957,27 @@ function Pt(e) {
|
|
3961
3957
|
t = N("ul");
|
3962
3958
|
for (let i = 0; i < n.length; i += 1)
|
3963
3959
|
n[i].c();
|
3964
|
-
|
3960
|
+
S(t, "class", "DropDown");
|
3965
3961
|
},
|
3966
|
-
m(i,
|
3967
|
-
U(i, t,
|
3968
|
-
for (let
|
3969
|
-
n[
|
3962
|
+
m(i, s) {
|
3963
|
+
U(i, t, s);
|
3964
|
+
for (let o = 0; o < n.length; o += 1)
|
3965
|
+
n[o] && n[o].m(t, null);
|
3970
3966
|
},
|
3971
|
-
p(i,
|
3972
|
-
if (
|
3967
|
+
p(i, s) {
|
3968
|
+
if (s[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
|
3973
3969
|
10176) {
|
3974
|
-
r =
|
3970
|
+
r = re(
|
3975
3971
|
/*subGroupsData*/
|
3976
3972
|
i[10]
|
3977
3973
|
);
|
3978
|
-
let
|
3979
|
-
for (
|
3980
|
-
const a = Bt(i, r,
|
3981
|
-
n[
|
3974
|
+
let o;
|
3975
|
+
for (o = 0; o < r.length; o += 1) {
|
3976
|
+
const a = Bt(i, r, o);
|
3977
|
+
n[o] ? n[o].p(a, s) : (n[o] = Ft(a), n[o].c(), n[o].m(t, null));
|
3982
3978
|
}
|
3983
|
-
for (;
|
3984
|
-
n[
|
3979
|
+
for (; o < n.length; o += 1)
|
3980
|
+
n[o].d(1);
|
3985
3981
|
n.length = r.length;
|
3986
3982
|
}
|
3987
3983
|
},
|
@@ -3990,11 +3986,11 @@ function Pt(e) {
|
|
3990
3986
|
}
|
3991
3987
|
};
|
3992
3988
|
}
|
3993
|
-
function
|
3989
|
+
function Pt(e) {
|
3994
3990
|
let t, r, n = (
|
3995
3991
|
/*subGroupItem*/
|
3996
3992
|
e[54]?.name + ""
|
3997
|
-
), i,
|
3993
|
+
), i, s, o, a, h;
|
3998
3994
|
function l(...u) {
|
3999
3995
|
return (
|
4000
3996
|
/*click_handler_1*/
|
@@ -4013,7 +4009,7 @@ function Ot(e) {
|
|
4013
4009
|
}
|
4014
4010
|
return {
|
4015
4011
|
c() {
|
4016
|
-
t = N("li"), r = N("a"), i =
|
4012
|
+
t = N("li"), r = N("a"), i = ye(n), o = Z(), S(r, "class", s = "SubDropDown " + /*index*/
|
4017
4013
|
(e[50] == /*activeIndex*/
|
4018
4014
|
e[6] && /*activeSubIndex*/
|
4019
4015
|
(e[7] == /*subindex*/
|
@@ -4022,94 +4018,94 @@ function Ot(e) {
|
|
4022
4018
|
e[56]) ? "active" : ""));
|
4023
4019
|
},
|
4024
4020
|
m(u, m) {
|
4025
|
-
U(u, t, m), B(t, r), B(r, i), B(t,
|
4021
|
+
U(u, t, m), B(t, r), B(r, i), B(t, o), a || (h = Te(t, "click", l), a = !0);
|
4026
4022
|
},
|
4027
4023
|
p(u, m) {
|
4028
4024
|
e = u, m[0] & /*subGroupsData*/
|
4029
4025
|
1024 && n !== (n = /*subGroupItem*/
|
4030
|
-
e[54]?.name + "") &&
|
4031
|
-
1984 &&
|
4026
|
+
e[54]?.name + "") && tt(i, n), m[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
|
4027
|
+
1984 && s !== (s = "SubDropDown " + /*index*/
|
4032
4028
|
(e[50] == /*activeIndex*/
|
4033
4029
|
e[6] && /*activeSubIndex*/
|
4034
4030
|
(e[7] == /*subindex*/
|
4035
4031
|
e[56] || /*prevSubIndex*/
|
4036
4032
|
e[8] == /*subindex*/
|
4037
|
-
e[56]) ? "active" : "")) &&
|
4033
|
+
e[56]) ? "active" : "")) && S(r, "class", s);
|
4038
4034
|
},
|
4039
4035
|
d(u) {
|
4040
4036
|
u && F(t), a = !1, h();
|
4041
4037
|
}
|
4042
4038
|
};
|
4043
4039
|
}
|
4044
|
-
function
|
4040
|
+
function Ot(e, t) {
|
4045
4041
|
let r, n, i = (
|
4046
4042
|
/*index*/
|
4047
4043
|
t[50] == /*subGroup*/
|
4048
|
-
t[51].index &&
|
4044
|
+
t[51].index && Pt(t)
|
4049
4045
|
);
|
4050
4046
|
return {
|
4051
4047
|
key: e,
|
4052
4048
|
first: null,
|
4053
4049
|
c() {
|
4054
|
-
r =
|
4050
|
+
r = de(), i && i.c(), n = de(), this.first = r;
|
4055
4051
|
},
|
4056
|
-
m(
|
4057
|
-
U(
|
4052
|
+
m(s, o) {
|
4053
|
+
U(s, r, o), i && i.m(s, o), U(s, n, o);
|
4058
4054
|
},
|
4059
|
-
p(
|
4060
|
-
t =
|
4055
|
+
p(s, o) {
|
4056
|
+
t = s, /*index*/
|
4061
4057
|
t[50] == /*subGroup*/
|
4062
|
-
t[51].index ? i ? i.p(t,
|
4058
|
+
t[51].index ? i ? i.p(t, o) : (i = Pt(t), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
|
4063
4059
|
},
|
4064
|
-
d(
|
4065
|
-
|
4060
|
+
d(s) {
|
4061
|
+
s && (F(r), F(n)), i && i.d(s);
|
4066
4062
|
}
|
4067
4063
|
};
|
4068
4064
|
}
|
4069
4065
|
function Ft(e) {
|
4070
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
4066
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = re(
|
4071
4067
|
/*subGroup*/
|
4072
4068
|
e[51].items
|
4073
4069
|
);
|
4074
|
-
const
|
4070
|
+
const s = (o) => (
|
4075
4071
|
/*subGroupItem*/
|
4076
|
-
|
4072
|
+
o[54].id
|
4077
4073
|
);
|
4078
|
-
for (let
|
4079
|
-
let a = It(e, i,
|
4080
|
-
r.set(h, t[
|
4074
|
+
for (let o = 0; o < i.length; o += 1) {
|
4075
|
+
let a = It(e, i, o), h = s(a);
|
4076
|
+
r.set(h, t[o] = Ot(h, a));
|
4081
4077
|
}
|
4082
4078
|
return {
|
4083
4079
|
c() {
|
4084
|
-
for (let
|
4085
|
-
t[
|
4086
|
-
n =
|
4080
|
+
for (let o = 0; o < t.length; o += 1)
|
4081
|
+
t[o].c();
|
4082
|
+
n = de();
|
4087
4083
|
},
|
4088
|
-
m(
|
4084
|
+
m(o, a) {
|
4089
4085
|
for (let h = 0; h < t.length; h += 1)
|
4090
|
-
t[h] && t[h].m(
|
4091
|
-
U(
|
4086
|
+
t[h] && t[h].m(o, a);
|
4087
|
+
U(o, n, a);
|
4092
4088
|
},
|
4093
|
-
p(
|
4089
|
+
p(o, a) {
|
4094
4090
|
a[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
|
4095
|
-
10176 && (i =
|
4091
|
+
10176 && (i = re(
|
4096
4092
|
/*subGroup*/
|
4097
|
-
|
4098
|
-
), t = $t(t, a,
|
4093
|
+
o[51].items
|
4094
|
+
), t = $t(t, a, s, 1, o, i, r, n.parentNode, kt, Ot, n, It));
|
4099
4095
|
},
|
4100
|
-
d(
|
4101
|
-
|
4096
|
+
d(o) {
|
4097
|
+
o && F(n);
|
4102
4098
|
for (let a = 0; a < t.length; a += 1)
|
4103
|
-
t[a].d(
|
4099
|
+
t[a].d(o);
|
4104
4100
|
}
|
4105
4101
|
};
|
4106
4102
|
}
|
4107
4103
|
function Rt(e, t) {
|
4108
|
-
let r, n, i,
|
4109
|
-
function p(
|
4104
|
+
let r, n, i, s, o, a, h, l, u, m, f;
|
4105
|
+
function p(E, H) {
|
4110
4106
|
return (
|
4111
4107
|
/*location*/
|
4112
|
-
|
4108
|
+
E[0] === "headerMain" ? ji : $i
|
4113
4109
|
);
|
4114
4110
|
}
|
4115
4111
|
let g = p(t), b = g(t), d = (
|
@@ -4119,7 +4115,7 @@ function Rt(e, t) {
|
|
4119
4115
|
t[50]
|
4120
4116
|
] == !0 && Nt(t)
|
4121
4117
|
);
|
4122
|
-
function
|
4118
|
+
function w(...E) {
|
4123
4119
|
return (
|
4124
4120
|
/*click_handler_2*/
|
4125
4121
|
t[34](
|
@@ -4127,7 +4123,7 @@ function Rt(e, t) {
|
|
4127
4123
|
t[48],
|
4128
4124
|
/*index*/
|
4129
4125
|
t[50],
|
4130
|
-
...
|
4126
|
+
...E
|
4131
4127
|
)
|
4132
4128
|
);
|
4133
4129
|
}
|
@@ -4135,12 +4131,12 @@ function Rt(e, t) {
|
|
4135
4131
|
key: e,
|
4136
4132
|
first: null,
|
4137
4133
|
c() {
|
4138
|
-
r = N("li"), n = N("div"), i = N("img"), a =
|
4139
|
-
(t[3] === "true" ? "" : "DisplayNone")), ct(i.src,
|
4134
|
+
r = N("li"), n = N("div"), i = N("img"), a = Z(), b.c(), h = Z(), d && d.c(), l = Z(), S(i, "class", s = "CategoryIconImg " + /*categoriesicon*/
|
4135
|
+
(t[3] === "true" ? "" : "DisplayNone")), ct(i.src, o = /*handleSrc*/
|
4140
4136
|
t[16](
|
4141
4137
|
/*category*/
|
4142
4138
|
t[48]
|
4143
|
-
)) ||
|
4139
|
+
)) || S(i, "src", o), S(n, "class", "CategoryIcon"), S(r, "class", u = "CarouselItem " + /*activeindex*/
|
4144
4140
|
(t[1]?.toString().indexOf("$") > -1 ? (
|
4145
4141
|
/*activeindex*/
|
4146
4142
|
t[1]?.split("$").pop() == /*category*/
|
@@ -4152,22 +4148,22 @@ function Rt(e, t) {
|
|
4152
4148
|
)) + " " + /*location*/
|
4153
4149
|
(t[0] == "headerMain" ? "" : "SecondaryMenu")), this.first = r;
|
4154
4150
|
},
|
4155
|
-
m(
|
4156
|
-
U(
|
4151
|
+
m(E, H) {
|
4152
|
+
U(E, r, H), B(r, n), B(n, i), B(r, a), b.m(r, null), B(r, h), d && d.m(r, null), B(r, l), m || (f = Te(r, "click", w), m = !0);
|
4157
4153
|
},
|
4158
|
-
p(
|
4159
|
-
t =
|
4160
|
-
8 &&
|
4161
|
-
(t[3] === "true" ? "" : "DisplayNone")) &&
|
4162
|
-
512 && !ct(i.src,
|
4154
|
+
p(E, H) {
|
4155
|
+
t = E, H[0] & /*categoriesicon*/
|
4156
|
+
8 && s !== (s = "CategoryIconImg " + /*categoriesicon*/
|
4157
|
+
(t[3] === "true" ? "" : "DisplayNone")) && S(i, "class", s), H[0] & /*sliderdata*/
|
4158
|
+
512 && !ct(i.src, o = /*handleSrc*/
|
4163
4159
|
t[16](
|
4164
4160
|
/*category*/
|
4165
4161
|
t[48]
|
4166
|
-
)) &&
|
4162
|
+
)) && S(i, "src", o), g === (g = p(t)) && b ? b.p(t, H) : (b.d(1), b = g(t), b && (b.c(), b.m(r, h))), /*itemsActive*/
|
4167
4163
|
t[11][
|
4168
4164
|
/*index*/
|
4169
4165
|
t[50]
|
4170
|
-
] == !0 ? d ? d.p(t,
|
4166
|
+
] == !0 ? d ? d.p(t, H) : (d = Nt(t), d.c(), d.m(r, l)) : d && (d.d(1), d = null), H[0] & /*activeindex, sliderdata, location*/
|
4171
4167
|
515 && u !== (u = "CarouselItem " + /*activeindex*/
|
4172
4168
|
(t[1]?.toString().indexOf("$") > -1 ? (
|
4173
4169
|
/*activeindex*/
|
@@ -4178,34 +4174,34 @@ function Rt(e, t) {
|
|
4178
4174
|
t[1] == /*category*/
|
4179
4175
|
t[48].id ? "active" : ""
|
4180
4176
|
)) + " " + /*location*/
|
4181
|
-
(t[0] == "headerMain" ? "" : "SecondaryMenu")) &&
|
4177
|
+
(t[0] == "headerMain" ? "" : "SecondaryMenu")) && S(r, "class", u);
|
4182
4178
|
},
|
4183
|
-
d(
|
4184
|
-
|
4179
|
+
d(E) {
|
4180
|
+
E && F(r), b.d(), d && d.d(), m = !1, f();
|
4185
4181
|
}
|
4186
4182
|
};
|
4187
4183
|
}
|
4188
|
-
function
|
4189
|
-
let t, r, n, i,
|
4184
|
+
function Vi(e) {
|
4185
|
+
let t, r, n, i, s, o, a, h, l, u, m, f, p, g, b, d = (
|
4190
4186
|
/*sliderdata*/
|
4191
4187
|
e[9].length > 0 && Mt(e)
|
4192
4188
|
);
|
4193
4189
|
return {
|
4194
4190
|
c() {
|
4195
|
-
t = N("div"), r = N("div"), n = N("div"), n.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', i =
|
4196
|
-
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`),
|
4197
|
-
e[0] === "headerMain" ? "max-width: auto" : void 0),
|
4191
|
+
t = N("div"), r = N("div"), n = N("div"), n.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', i = Z(), s = N("div"), o = N("ul"), a = N("li"), a.innerHTML = '<a href="#CarouselNav">Close Subs</a>', h = Z(), d && d.c(), l = Z(), u = N("div"), u.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', S(n, "class", "CarouselLeftArrow"), S(a, "class", "TouchOnly"), S(o, "id", "CarouselNav"), S(o, "class", "CarouselItems"), S(s, "class", "CarouselNavWrap scroller"), S(u, "class", "CarouselRightArrow"), S(r, "class", m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4192
|
+
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), S(r, "style", f = /*location*/
|
4193
|
+
e[0] === "headerMain" ? "max-width: auto" : void 0), S(t, "class", p = "CarouselWrapper " + /*location*/
|
4198
4194
|
(e[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
|
4199
4195
|
},
|
4200
|
-
m(
|
4201
|
-
U(
|
4202
|
-
|
4196
|
+
m(w, E) {
|
4197
|
+
U(w, t, E), B(t, r), B(r, n), B(r, i), B(r, s), B(s, o), B(o, a), B(o, h), d && d.m(o, null), e[35](o), e[36](s), B(r, l), B(r, u), e[38](t), g || (b = [
|
4198
|
+
Te(
|
4203
4199
|
n,
|
4204
4200
|
"click",
|
4205
4201
|
/*click_handler*/
|
4206
4202
|
e[32]
|
4207
4203
|
),
|
4208
|
-
|
4204
|
+
Te(
|
4209
4205
|
u,
|
4210
4206
|
"click",
|
4211
4207
|
/*click_handler_3*/
|
@@ -4213,175 +4209,175 @@ function Xi(e) {
|
|
4213
4209
|
)
|
4214
4210
|
], g = !0);
|
4215
4211
|
},
|
4216
|
-
p(
|
4212
|
+
p(w, E) {
|
4217
4213
|
/*sliderdata*/
|
4218
|
-
|
4214
|
+
w[9].length > 0 ? d ? d.p(w, E) : (d = Mt(w), d.c(), d.m(o, null)) : d && (d.d(1), d = null), E[0] & /*location*/
|
4219
4215
|
1 && m !== (m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4220
|
-
|
4216
|
+
w[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && S(r, "class", m), E[0] & /*location*/
|
4221
4217
|
1 && f !== (f = /*location*/
|
4222
|
-
|
4218
|
+
w[0] === "headerMain" ? "max-width: auto" : void 0) && S(r, "style", f), E[0] & /*location*/
|
4223
4219
|
1 && p !== (p = "CarouselWrapper " + /*location*/
|
4224
|
-
(
|
4220
|
+
(w[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && S(t, "class", p);
|
4225
4221
|
},
|
4226
4222
|
i: G,
|
4227
4223
|
o: G,
|
4228
|
-
d(
|
4229
|
-
|
4224
|
+
d(w) {
|
4225
|
+
w && F(t), d && d.d(), e[35](null), e[36](null), e[38](null), g = !1, Q(b);
|
4230
4226
|
}
|
4231
4227
|
};
|
4232
4228
|
}
|
4233
|
-
function
|
4234
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname:
|
4235
|
-
|
4229
|
+
function Xi(e, t, r) {
|
4230
|
+
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname: s = "defaultEvent" } = t, { actionevent: o = "defaultEvent" } = t, { favoritesnumber: a = "0" } = t, { location: h = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { identity: m = "" } = t, { translationurl: f = "" } = t, { isprimarymenu: p = !1 } = t, { issecondarymenu: g = !1 } = t, { lang: b = "" } = t, { activeindex: d = "0" } = t, { showsubgroups: w = "false" } = t, { categoriesicon: E = "false" } = t, { lobbyiconimage: H = "" } = t, { mygamesiconimage: R = "" } = t, { mbsource: P = "" } = t;
|
4231
|
+
Ui({ withLocale: "en", translations: {} });
|
4236
4232
|
const k = () => {
|
4237
|
-
fetch(f).then((
|
4238
|
-
Object.keys(
|
4239
|
-
St(D,
|
4233
|
+
fetch(f).then((x) => x.json()).then((x) => {
|
4234
|
+
Object.keys(x).forEach((D) => {
|
4235
|
+
St(D, x[D]);
|
4240
4236
|
});
|
4241
|
-
}).catch((
|
4242
|
-
console.log(
|
4237
|
+
}).catch((x) => {
|
4238
|
+
console.log(x);
|
4243
4239
|
});
|
4244
4240
|
};
|
4245
4241
|
Object.keys(Tt).forEach((c) => {
|
4246
4242
|
St(c, Tt[c]);
|
4247
4243
|
});
|
4248
|
-
let
|
4249
|
-
if (!(c.subGroups &&
|
4250
|
-
if (
|
4244
|
+
let C, I, L, j, $, he = [], ve = [], J = [], M, Oe = (c, x, D, z, V) => {
|
4245
|
+
if (!(c.subGroups && z === null)) {
|
4246
|
+
if (_e(), r(6, I = x), r(6, I), V != "secondary") {
|
4251
4247
|
window.postMessage(
|
4252
4248
|
{
|
4253
|
-
type:
|
4249
|
+
type: o == "CategoryChange" ? "CategoryChange" : "NavigateTo",
|
4254
4250
|
buzz: "1",
|
4255
4251
|
itemId: c.id,
|
4256
|
-
index:
|
4252
|
+
index: x,
|
4257
4253
|
item: c,
|
4258
4254
|
path: c.path,
|
4259
4255
|
externalLink: c.externalLink || !1,
|
4260
4256
|
target: c.attrs?.target || null
|
4261
4257
|
},
|
4262
4258
|
window.location.href
|
4263
|
-
), r(7,
|
4259
|
+
), r(7, L = null), r(8, j = null);
|
4264
4260
|
return;
|
4265
4261
|
}
|
4266
|
-
r(7,
|
4262
|
+
r(7, L = z), r(7, L), r(8, j = L), window.postMessage(
|
4267
4263
|
{
|
4268
|
-
type:
|
4264
|
+
type: o,
|
4269
4265
|
itemId: D.id,
|
4270
|
-
subIndex:
|
4266
|
+
subIndex: z,
|
4271
4267
|
subItem: D
|
4272
4268
|
},
|
4273
4269
|
window.location.href
|
4274
4270
|
);
|
4275
4271
|
}
|
4276
4272
|
}, st = () => {
|
4277
|
-
M && (
|
4273
|
+
M && (J.length !== I ? r(12, M.scrollLeft -= 250, M) : r(12, M.scrollLeft = 0, M));
|
4278
4274
|
}, at = () => {
|
4279
|
-
M && (
|
4275
|
+
M && (J.length !== I ? r(12, M.scrollLeft += 250, M) : r(12, M.scrollLeft = 0, M));
|
4280
4276
|
};
|
4281
4277
|
const lt = (c) => {
|
4282
|
-
c.data.type == "SliderData" && c.data.identity == m && (r(9,
|
4283
|
-
|
4278
|
+
c.data.type == "SliderData" && c.data.identity == m && (r(9, he = c.data.data), r(11, J = new Array(he.length).fill(!1)), w == "true" && gr()), c.data.type == "GoToHomepage" && he.forEach((x, D) => {
|
4279
|
+
x.path.endsWith("/casino") && (r(6, I = D), r(6, I));
|
4284
4280
|
});
|
4285
4281
|
}, dr = () => {
|
4286
|
-
|
4287
|
-
}, pr = (c,
|
4282
|
+
Gi(b);
|
4283
|
+
}, pr = (c, x, D) => {
|
4288
4284
|
if (h == "secondaryMenu" && n && i && b && c.id) {
|
4289
|
-
let
|
4290
|
-
fetch(
|
4291
|
-
|
4285
|
+
let z = new URL(`${n}/v1/casino/groups/${i}/${c.id}/subGroups?language=${b}`);
|
4286
|
+
fetch(z.href).then((V) => V.json()).then((V) => {
|
4287
|
+
V.index = x, r(10, ve = ve.concat(V)), w == "false" && window.postMessage(
|
4292
4288
|
{
|
4293
|
-
type:
|
4289
|
+
type: o,
|
4294
4290
|
itemId: c.id,
|
4295
|
-
index:
|
4291
|
+
index: x,
|
4296
4292
|
item: c
|
4297
4293
|
},
|
4298
4294
|
window.location.href
|
4299
4295
|
);
|
4300
|
-
const
|
4301
|
-
|
4302
|
-
|
4303
|
-
}),
|
4296
|
+
const Ee = [];
|
4297
|
+
ve.map((Hr) => (Hr.items.forEach((ut) => {
|
4298
|
+
Ee.find((Sr) => ut.id == Sr) || Ee.push(ut.id);
|
4299
|
+
}), Ee.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: Ee }, window.location.href);
|
4304
4300
|
}).then(() => {
|
4305
|
-
|
4301
|
+
C.querySelectorAll(".DropDown") && _e();
|
4306
4302
|
});
|
4307
4303
|
}
|
4308
|
-
h == "headerMain" && window.postMessage({ type:
|
4309
|
-
},
|
4310
|
-
const c =
|
4304
|
+
h == "headerMain" && window.postMessage({ type: o, item: c }, window.location.href);
|
4305
|
+
}, _e = () => {
|
4306
|
+
const c = C.querySelectorAll(".DropDown");
|
4311
4307
|
document.activeElement.blur(), M.classList.add("isScrolling");
|
4312
|
-
for (let
|
4313
|
-
c[
|
4308
|
+
for (let x = 0; x < c.length; x++)
|
4309
|
+
c[x].style.transform = "translateX(-" + M.scrollLeft + "px)";
|
4314
4310
|
M.classList.remove("isScrolling");
|
4315
4311
|
}, gr = () => {
|
4316
|
-
|
4317
|
-
c?.subGroups?.count > 0 && (r(11,
|
4312
|
+
he.forEach((c, x) => {
|
4313
|
+
c?.subGroups?.count > 0 && (r(11, J[x] = !0, J), pr(c, x));
|
4318
4314
|
});
|
4319
4315
|
}, br = (c) => {
|
4320
|
-
let
|
4321
|
-
return c.id === "LOBBY" ?
|
4316
|
+
let x = "";
|
4317
|
+
return c.id === "LOBBY" ? x = H : c.id === "MYGAMES" && (x = R), c.icon || x;
|
4322
4318
|
};
|
4323
4319
|
Fr(() => (window.addEventListener("message", lt, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
4324
4320
|
() => {
|
4325
|
-
M.addEventListener("scroll",
|
4321
|
+
M.addEventListener("scroll", _e);
|
4326
4322
|
},
|
4327
4323
|
500
|
4328
4324
|
), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
|
4329
|
-
window.removeEventListener("message", lt),
|
4325
|
+
window.removeEventListener("message", lt), C.removeEventListener("scroll", _e);
|
4330
4326
|
}));
|
4331
|
-
const yr = () => st(), vr = (c,
|
4332
|
-
|
4333
|
-
}, _r = (c,
|
4334
|
-
|
4327
|
+
const yr = () => st(), vr = (c, x, D, z, V) => {
|
4328
|
+
Oe(c, x, D, z, "secondary"), V.stopPropagation();
|
4329
|
+
}, _r = (c, x, D) => {
|
4330
|
+
Oe(c, x, null, null, "main"), D.preventDefault();
|
4335
4331
|
};
|
4336
4332
|
function Er(c) {
|
4337
|
-
|
4338
|
-
|
4333
|
+
me[c ? "unshift" : "push"](() => {
|
4334
|
+
C = c, r(5, C);
|
4339
4335
|
});
|
4340
4336
|
}
|
4341
4337
|
function xr(c) {
|
4342
|
-
|
4338
|
+
me[c ? "unshift" : "push"](() => {
|
4343
4339
|
M = c, r(12, M);
|
4344
4340
|
});
|
4345
4341
|
}
|
4346
4342
|
const Cr = () => at();
|
4347
4343
|
function wr(c) {
|
4348
|
-
|
4349
|
-
|
4344
|
+
me[c ? "unshift" : "push"](() => {
|
4345
|
+
$ = c, r(4, $);
|
4350
4346
|
});
|
4351
4347
|
}
|
4352
4348
|
return e.$$set = (c) => {
|
4353
|
-
"endpoint" in c && r(17, n = c.endpoint), "datasource" in c && r(18, i = c.datasource), "onclickeventname" in c && r(19,
|
4349
|
+
"endpoint" in c && r(17, n = c.endpoint), "datasource" in c && r(18, i = c.datasource), "onclickeventname" in c && r(19, s = c.onclickeventname), "actionevent" in c && r(20, o = c.actionevent), "favoritesnumber" in c && r(21, a = c.favoritesnumber), "location" in c && r(0, h = c.location), "clientstyling" in c && r(22, l = c.clientstyling), "clientstylingurl" in c && r(23, u = c.clientstylingurl), "identity" in c && r(24, m = c.identity), "translationurl" in c && r(25, f = c.translationurl), "isprimarymenu" in c && r(26, p = c.isprimarymenu), "issecondarymenu" in c && r(27, g = c.issecondarymenu), "lang" in c && r(28, b = c.lang), "activeindex" in c && r(1, d = c.activeindex), "showsubgroups" in c && r(2, w = c.showsubgroups), "categoriesicon" in c && r(3, E = c.categoriesicon), "lobbyiconimage" in c && r(29, H = c.lobbyiconimage), "mygamesiconimage" in c && r(30, R = c.mygamesiconimage), "mbsource" in c && r(31, P = c.mbsource);
|
4354
4350
|
}, e.$$.update = () => {
|
4355
4351
|
e.$$.dirty[0] & /*activeindex*/
|
4356
4352
|
2, e.$$.dirty[0] & /*translationurl*/
|
4357
4353
|
33554432 && f && k(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4358
|
-
4194320 && l &&
|
4359
|
-
8388624 && u &&
|
4354
|
+
4194320 && l && $ && Qr($, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4355
|
+
8388624 && u && $ && qr($, u), e.$$.dirty[0] & /*customStylingContainer*/
|
4360
4356
|
16 | e.$$.dirty[1] & /*mbsource*/
|
4361
|
-
1 &&
|
4357
|
+
1 && P && $ && Jr($, `${P}.Style`), e.$$.dirty[0] & /*lang*/
|
4362
4358
|
268435456 && b && dr();
|
4363
4359
|
}, [
|
4364
4360
|
h,
|
4365
4361
|
d,
|
4362
|
+
w,
|
4363
|
+
E,
|
4364
|
+
$,
|
4366
4365
|
C,
|
4367
|
-
_,
|
4368
|
-
j,
|
4369
|
-
x,
|
4370
4366
|
I,
|
4371
|
-
|
4372
|
-
|
4373
|
-
|
4374
|
-
|
4375
|
-
|
4367
|
+
L,
|
4368
|
+
j,
|
4369
|
+
he,
|
4370
|
+
ve,
|
4371
|
+
J,
|
4376
4372
|
M,
|
4377
|
-
|
4373
|
+
Oe,
|
4378
4374
|
st,
|
4379
4375
|
at,
|
4380
4376
|
br,
|
4381
4377
|
n,
|
4382
4378
|
i,
|
4383
|
-
o,
|
4384
4379
|
s,
|
4380
|
+
o,
|
4385
4381
|
a,
|
4386
4382
|
l,
|
4387
4383
|
u,
|
@@ -4390,9 +4386,9 @@ function Wi(e, t, r) {
|
|
4390
4386
|
p,
|
4391
4387
|
g,
|
4392
4388
|
b,
|
4393
|
-
|
4389
|
+
H,
|
4394
4390
|
R,
|
4395
|
-
|
4391
|
+
P,
|
4396
4392
|
yr,
|
4397
4393
|
vr,
|
4398
4394
|
_r,
|
@@ -4402,13 +4398,13 @@ function Wi(e, t, r) {
|
|
4402
4398
|
wr
|
4403
4399
|
];
|
4404
4400
|
}
|
4405
|
-
class
|
4401
|
+
class Wi extends zr {
|
4406
4402
|
constructor(t) {
|
4407
4403
|
super(), Xr(
|
4408
4404
|
this,
|
4409
4405
|
t,
|
4410
|
-
Wi,
|
4411
4406
|
Xi,
|
4407
|
+
Vi,
|
4412
4408
|
Ut,
|
4413
4409
|
{
|
4414
4410
|
endpoint: 17,
|
@@ -4431,7 +4427,7 @@ class zi extends zr {
|
|
4431
4427
|
mygamesiconimage: 30,
|
4432
4428
|
mbsource: 31
|
4433
4429
|
},
|
4434
|
-
|
4430
|
+
ki,
|
4435
4431
|
[-1, -1]
|
4436
4432
|
);
|
4437
4433
|
}
|
@@ -4550,7 +4546,7 @@ class zi extends zr {
|
|
4550
4546
|
this.$$set({ mbsource: t }), A();
|
4551
4547
|
}
|
4552
4548
|
}
|
4553
|
-
Wr(
|
4549
|
+
Wr(Wi, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
4554
4550
|
export {
|
4555
|
-
|
4551
|
+
Wi as C
|
4556
4552
|
};
|