@everymatrix/casino-slider 1.86.2 → 1.86.4
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-Bw7Wimze.cjs +16 -0
- package/components/{CasinoSlider-Bs1P1nft.js → CasinoSlider-CG2xb7x_.js} +762 -766
- package/components/{CasinoSlider-D4VMNPTd.js → CasinoSlider-_Z5r1hRk.js} +762 -766
- 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--2EOQgrO.cjs +0 -3
|
@@ -2,29 +2,29 @@ var kr = Object.defineProperty, $r = Object.defineProperties;
|
|
|
2
2
|
var jr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var pt = Object.getOwnPropertySymbols;
|
|
4
4
|
var Vr = Object.prototype.hasOwnProperty, Xr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Ge = (e, t, r) => t in e ? kr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
Vr.call(t, r) &&
|
|
7
|
+
Vr.call(t, r) && Ge(e, r, t[r]);
|
|
8
8
|
if (pt)
|
|
9
9
|
for (var r of pt(t))
|
|
10
|
-
Xr.call(t, r) &&
|
|
10
|
+
Xr.call(t, r) && Ge(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, bt = (e, t) => $r(e, jr(t));
|
|
13
|
-
var G = (e, t, r) => (
|
|
13
|
+
var G = (e, t, r) => (Ge(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var yt = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var
|
|
15
|
+
var s = (u) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(u));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
i(l);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, o = (u) => {
|
|
22
22
|
try {
|
|
23
23
|
a(r.throw(u));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
i(l);
|
|
26
26
|
}
|
|
27
|
-
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(
|
|
27
|
+
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(s, o);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function $() {
|
|
@@ -35,18 +35,18 @@ function zt(e) {
|
|
|
35
35
|
function vt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Y(e) {
|
|
39
39
|
e.forEach(zt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function ot(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
44
|
function Zt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
let
|
|
47
|
+
let Se;
|
|
48
48
|
function _t(e, t) {
|
|
49
|
-
return e === t ? !0 : (
|
|
49
|
+
return e === t ? !0 : (Se || (Se = document.createElement("a")), Se.href = t, e === Se.href);
|
|
50
50
|
}
|
|
51
51
|
function Wr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
@@ -100,16 +100,16 @@ function Jr(e, t) {
|
|
|
100
100
|
function P(e) {
|
|
101
101
|
return document.createElement(e);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function we(e) {
|
|
104
104
|
return document.createTextNode(e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
return
|
|
106
|
+
function J() {
|
|
107
|
+
return we(" ");
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
109
|
+
function ve() {
|
|
110
|
+
return we("");
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function V(e, t, r, n) {
|
|
113
113
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
114
114
|
}
|
|
115
115
|
function Yr(e) {
|
|
@@ -117,13 +117,13 @@ function Yr(e) {
|
|
|
117
117
|
return t.preventDefault(), e.call(this, t);
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function T(e, t, r) {
|
|
121
121
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
122
122
|
}
|
|
123
123
|
function Kr(e) {
|
|
124
124
|
return Array.from(e.childNodes);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function st(e, t) {
|
|
127
127
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
128
128
|
t);
|
|
129
129
|
}
|
|
@@ -136,14 +136,14 @@ function en(e) {
|
|
|
136
136
|
}
|
|
137
137
|
), t;
|
|
138
138
|
}
|
|
139
|
-
let
|
|
140
|
-
function
|
|
141
|
-
|
|
139
|
+
let _e;
|
|
140
|
+
function be(e) {
|
|
141
|
+
_e = e;
|
|
142
142
|
}
|
|
143
143
|
function tn() {
|
|
144
|
-
if (!
|
|
144
|
+
if (!_e)
|
|
145
145
|
throw new Error("Function called outside component initialization");
|
|
146
|
-
return
|
|
146
|
+
return _e;
|
|
147
147
|
}
|
|
148
148
|
function rn(e) {
|
|
149
149
|
tn().$$.on_mount.push(e);
|
|
@@ -152,113 +152,113 @@ function nn(e, t) {
|
|
|
152
152
|
const r = e.$$.callbacks[t.type];
|
|
153
153
|
r && r.slice().forEach((n) => n.call(this, t));
|
|
154
154
|
}
|
|
155
|
-
const
|
|
156
|
-
let
|
|
155
|
+
const ie = [], ye = [];
|
|
156
|
+
let oe = [];
|
|
157
157
|
const Et = [], on = /* @__PURE__ */ Promise.resolve();
|
|
158
|
-
let
|
|
158
|
+
let Ze = !1;
|
|
159
159
|
function sn() {
|
|
160
|
-
|
|
160
|
+
Ze || (Ze = !0, on.then(B));
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
|
|
162
|
+
function Qe(e) {
|
|
163
|
+
oe.push(e);
|
|
164
164
|
}
|
|
165
|
-
const
|
|
166
|
-
let
|
|
165
|
+
const ke = /* @__PURE__ */ new Set();
|
|
166
|
+
let re = 0;
|
|
167
167
|
function B() {
|
|
168
|
-
if (
|
|
168
|
+
if (re !== 0)
|
|
169
169
|
return;
|
|
170
|
-
const e =
|
|
170
|
+
const e = _e;
|
|
171
171
|
do {
|
|
172
172
|
try {
|
|
173
|
-
for (;
|
|
174
|
-
const t =
|
|
175
|
-
|
|
173
|
+
for (; re < ie.length; ) {
|
|
174
|
+
const t = ie[re];
|
|
175
|
+
re++, be(t), an(t.$$);
|
|
176
176
|
}
|
|
177
177
|
} catch (t) {
|
|
178
|
-
throw
|
|
178
|
+
throw ie.length = 0, re = 0, t;
|
|
179
179
|
}
|
|
180
|
-
for (
|
|
181
|
-
|
|
182
|
-
for (let t = 0; t <
|
|
183
|
-
const r =
|
|
184
|
-
|
|
180
|
+
for (be(null), ie.length = 0, re = 0; ye.length; )
|
|
181
|
+
ye.pop()();
|
|
182
|
+
for (let t = 0; t < oe.length; t += 1) {
|
|
183
|
+
const r = oe[t];
|
|
184
|
+
ke.has(r) || (ke.add(r), r());
|
|
185
185
|
}
|
|
186
|
-
|
|
187
|
-
} while (
|
|
186
|
+
oe.length = 0;
|
|
187
|
+
} while (ie.length);
|
|
188
188
|
for (; Et.length; )
|
|
189
189
|
Et.pop()();
|
|
190
|
-
|
|
190
|
+
Ze = !1, ke.clear(), be(e);
|
|
191
191
|
}
|
|
192
192
|
function an(e) {
|
|
193
193
|
if (e.fragment !== null) {
|
|
194
|
-
e.update(),
|
|
194
|
+
e.update(), Y(e.before_update);
|
|
195
195
|
const t = e.dirty;
|
|
196
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
196
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Qe);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
function ln(e) {
|
|
200
200
|
const t = [], r = [];
|
|
201
|
-
|
|
201
|
+
oe.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), oe = t;
|
|
202
202
|
}
|
|
203
203
|
const un = /* @__PURE__ */ new Set();
|
|
204
204
|
function Qt(e, t) {
|
|
205
205
|
e && e.i && (un.delete(e), e.i(t));
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function se(e) {
|
|
208
208
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
209
209
|
}
|
|
210
210
|
function qt(e, t) {
|
|
211
211
|
e.d(1), t.delete(e.key);
|
|
212
212
|
}
|
|
213
|
-
function Jt(e, t, r, n, i,
|
|
214
|
-
let f = e.length, p =
|
|
213
|
+
function Jt(e, t, r, n, i, s, o, a, u, l, c, m) {
|
|
214
|
+
let f = e.length, p = s.length, g = f;
|
|
215
215
|
const b = {};
|
|
216
216
|
for (; g--; )
|
|
217
217
|
b[e[g].key] = g;
|
|
218
|
-
const d = [],
|
|
218
|
+
const d = [], H = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), C = [];
|
|
219
219
|
for (g = p; g--; ) {
|
|
220
|
-
const
|
|
221
|
-
let D =
|
|
222
|
-
D ?
|
|
220
|
+
const S = m(i, s, g), R = r(S);
|
|
221
|
+
let D = o.get(R);
|
|
222
|
+
D ? C.push(() => D.p(S, t)) : (D = l(R, S), D.c()), H.set(R, d[g] = D), R in b && E.set(R, Math.abs(g - b[R]));
|
|
223
223
|
}
|
|
224
224
|
const O = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
|
|
225
|
-
function v(
|
|
226
|
-
Qt(
|
|
225
|
+
function v(S) {
|
|
226
|
+
Qt(S, 1), S.m(a, c), o.set(S.key, S), c = S.first, p--;
|
|
227
227
|
}
|
|
228
228
|
for (; f && p; ) {
|
|
229
|
-
const
|
|
230
|
-
|
|
229
|
+
const S = d[p - 1], R = e[f - 1], D = S.key, ee = R.key;
|
|
230
|
+
S === R ? (c = S.first, f--, p--) : H.has(ee) ? !o.has(D) || O.has(D) ? v(S) : L.has(ee) ? f-- : E.get(D) > E.get(ee) ? (L.add(D), v(S)) : (O.add(ee), f--) : (u(R, o), f--);
|
|
231
231
|
}
|
|
232
232
|
for (; f--; ) {
|
|
233
|
-
const
|
|
234
|
-
|
|
233
|
+
const S = e[f];
|
|
234
|
+
H.has(S.key) || u(S, o);
|
|
235
235
|
}
|
|
236
236
|
for (; p; )
|
|
237
237
|
v(d[p - 1]);
|
|
238
|
-
return
|
|
238
|
+
return Y(C), d;
|
|
239
239
|
}
|
|
240
240
|
function hn(e, t, r) {
|
|
241
241
|
const { fragment: n, after_update: i } = e.$$;
|
|
242
|
-
n && n.m(t, r),
|
|
243
|
-
const
|
|
244
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
245
|
-
}), i.forEach(
|
|
242
|
+
n && n.m(t, r), Qe(() => {
|
|
243
|
+
const s = e.$$.on_mount.map(zt).filter(ot);
|
|
244
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Y(s), e.$$.on_mount = [];
|
|
245
|
+
}), i.forEach(Qe);
|
|
246
246
|
}
|
|
247
247
|
function cn(e, t) {
|
|
248
248
|
const r = e.$$;
|
|
249
|
-
r.fragment !== null && (ln(r.after_update),
|
|
249
|
+
r.fragment !== null && (ln(r.after_update), Y(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
250
250
|
}
|
|
251
251
|
function fn(e, t) {
|
|
252
|
-
e.$$.dirty[0] === -1 && (
|
|
252
|
+
e.$$.dirty[0] === -1 && (ie.push(e), sn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
253
253
|
}
|
|
254
|
-
function mn(e, t, r, n, i,
|
|
255
|
-
const u =
|
|
256
|
-
|
|
254
|
+
function mn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
255
|
+
const u = _e;
|
|
256
|
+
be(e);
|
|
257
257
|
const l = e.$$ = {
|
|
258
258
|
fragment: null,
|
|
259
259
|
ctx: [],
|
|
260
260
|
// state
|
|
261
|
-
props:
|
|
261
|
+
props: s,
|
|
262
262
|
update: $,
|
|
263
263
|
not_equal: i,
|
|
264
264
|
bound: vt(),
|
|
@@ -275,12 +275,12 @@ function mn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
275
275
|
skip_bound: !1,
|
|
276
276
|
root: t.target || u.$$.root
|
|
277
277
|
};
|
|
278
|
-
|
|
278
|
+
o && o(l.root);
|
|
279
279
|
let c = !1;
|
|
280
280
|
if (l.ctx = r ? r(e, t.props || {}, (m, f, ...p) => {
|
|
281
281
|
const g = p.length ? p[0] : f;
|
|
282
282
|
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), c && fn(e, m)), f;
|
|
283
|
-
}) : [], l.update(), c = !0,
|
|
283
|
+
}) : [], l.update(), c = !0, Y(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
284
284
|
if (t.hydrate) {
|
|
285
285
|
const m = Kr(t.target);
|
|
286
286
|
l.fragment && l.fragment.l(m), m.forEach(U);
|
|
@@ -288,7 +288,7 @@ function mn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
288
288
|
l.fragment && l.fragment.c();
|
|
289
289
|
t.intro && Qt(e.$$.fragment), hn(e, t.target, t.anchor), B();
|
|
290
290
|
}
|
|
291
|
-
|
|
291
|
+
be(u);
|
|
292
292
|
}
|
|
293
293
|
let Yt;
|
|
294
294
|
typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
@@ -330,22 +330,22 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
330
330
|
connectedCallback() {
|
|
331
331
|
return yt(this, null, function* () {
|
|
332
332
|
if (this.$$cn = !0, !this.$$c) {
|
|
333
|
-
let t = function(
|
|
333
|
+
let t = function(s) {
|
|
334
334
|
return () => {
|
|
335
|
-
let
|
|
335
|
+
let o;
|
|
336
336
|
return {
|
|
337
337
|
c: function() {
|
|
338
|
-
|
|
338
|
+
o = P("slot"), s !== "default" && T(o, "name", s);
|
|
339
339
|
},
|
|
340
340
|
/**
|
|
341
341
|
* @param {HTMLElement} target
|
|
342
342
|
* @param {HTMLElement} [anchor]
|
|
343
343
|
*/
|
|
344
344
|
m: function(l, c) {
|
|
345
|
-
k(l,
|
|
345
|
+
k(l, o, c);
|
|
346
346
|
},
|
|
347
347
|
d: function(l) {
|
|
348
|
-
l && U(
|
|
348
|
+
l && U(o);
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
351
|
};
|
|
@@ -353,14 +353,14 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
353
353
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
354
354
|
return;
|
|
355
355
|
const r = {}, n = en(this);
|
|
356
|
-
for (const
|
|
357
|
-
|
|
358
|
-
for (const
|
|
359
|
-
const
|
|
360
|
-
|
|
356
|
+
for (const s of this.$$s)
|
|
357
|
+
s in n && (r[s] = [t(s)]);
|
|
358
|
+
for (const s of this.attributes) {
|
|
359
|
+
const o = this.$$g_p(s.name);
|
|
360
|
+
o in this.$$d || (this.$$d[o] = Ae(o, s.value, this.$$p_d, "toProp"));
|
|
361
361
|
}
|
|
362
|
-
for (const
|
|
363
|
-
!(
|
|
362
|
+
for (const s in this.$$p_d)
|
|
363
|
+
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
364
364
|
this.$$c = new this.$$ctor({
|
|
365
365
|
target: this.shadowRoot || this,
|
|
366
366
|
props: bt(gt({}, this.$$d), {
|
|
@@ -372,23 +372,23 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
372
372
|
});
|
|
373
373
|
const i = () => {
|
|
374
374
|
this.$$r = !0;
|
|
375
|
-
for (const
|
|
376
|
-
if (this.$$d[
|
|
377
|
-
const
|
|
378
|
-
|
|
379
|
-
this.$$d[
|
|
375
|
+
for (const s in this.$$p_d)
|
|
376
|
+
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
377
|
+
const o = Ae(
|
|
378
|
+
s,
|
|
379
|
+
this.$$d[s],
|
|
380
380
|
this.$$p_d,
|
|
381
381
|
"toAttribute"
|
|
382
382
|
);
|
|
383
|
-
|
|
383
|
+
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
384
384
|
}
|
|
385
385
|
this.$$r = !1;
|
|
386
386
|
};
|
|
387
387
|
this.$$c.$$.after_update.push(i), i();
|
|
388
|
-
for (const
|
|
389
|
-
for (const
|
|
390
|
-
const a = this.$$c.$on(
|
|
391
|
-
this.$$l_u.set(
|
|
388
|
+
for (const s in this.$$l)
|
|
389
|
+
for (const o of this.$$l[s]) {
|
|
390
|
+
const a = this.$$c.$on(s, o);
|
|
391
|
+
this.$$l_u.set(o, a);
|
|
392
392
|
}
|
|
393
393
|
this.$$l = {};
|
|
394
394
|
}
|
|
@@ -398,7 +398,7 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
398
398
|
// and setting attributes through setAttribute etc, this is helpful
|
|
399
399
|
attributeChangedCallback(t, r, n) {
|
|
400
400
|
var i;
|
|
401
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
401
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ae(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
402
402
|
}
|
|
403
403
|
disconnectedCallback() {
|
|
404
404
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -411,9 +411,9 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
411
411
|
) || t;
|
|
412
412
|
}
|
|
413
413
|
});
|
|
414
|
-
function
|
|
415
|
-
var
|
|
416
|
-
const i = (
|
|
414
|
+
function Ae(e, t, r, n) {
|
|
415
|
+
var s;
|
|
416
|
+
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
417
417
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
418
418
|
return t;
|
|
419
419
|
if (n === "toAttribute")
|
|
@@ -441,8 +441,8 @@ function Be(e, t, r, n) {
|
|
|
441
441
|
return t;
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
function dn(e, t, r, n, i,
|
|
445
|
-
let
|
|
444
|
+
function dn(e, t, r, n, i, s) {
|
|
445
|
+
let o = class extends Yt {
|
|
446
446
|
constructor() {
|
|
447
447
|
super(e, r, i), this.$$p_d = t;
|
|
448
448
|
}
|
|
@@ -453,24 +453,24 @@ function dn(e, t, r, n, i, o) {
|
|
|
453
453
|
}
|
|
454
454
|
};
|
|
455
455
|
return Object.keys(t).forEach((a) => {
|
|
456
|
-
Object.defineProperty(
|
|
456
|
+
Object.defineProperty(o.prototype, a, {
|
|
457
457
|
get() {
|
|
458
458
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
459
459
|
},
|
|
460
460
|
set(u) {
|
|
461
461
|
var l;
|
|
462
|
-
u =
|
|
462
|
+
u = Ae(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
|
|
463
463
|
}
|
|
464
464
|
});
|
|
465
465
|
}), n.forEach((a) => {
|
|
466
|
-
Object.defineProperty(
|
|
466
|
+
Object.defineProperty(o.prototype, a, {
|
|
467
467
|
get() {
|
|
468
468
|
var u;
|
|
469
469
|
return (u = this.$$c) == null ? void 0 : u[a];
|
|
470
470
|
}
|
|
471
471
|
});
|
|
472
472
|
}), e.element = /** @type {any} */
|
|
473
|
-
|
|
473
|
+
o, o;
|
|
474
474
|
}
|
|
475
475
|
class pn {
|
|
476
476
|
constructor() {
|
|
@@ -502,7 +502,7 @@ class pn {
|
|
|
502
502
|
* @returns {() => void}
|
|
503
503
|
*/
|
|
504
504
|
$on(t, r) {
|
|
505
|
-
if (!
|
|
505
|
+
if (!ot(r))
|
|
506
506
|
return $;
|
|
507
507
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
508
508
|
return n.push(r), () => {
|
|
@@ -545,44 +545,44 @@ function vn(e, t, r) {
|
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
const
|
|
548
|
+
const ne = [];
|
|
549
549
|
function _n(e, t) {
|
|
550
550
|
return {
|
|
551
|
-
subscribe:
|
|
551
|
+
subscribe: Ne(e, t).subscribe
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Ne(e, t = $) {
|
|
555
555
|
let r;
|
|
556
556
|
const n = /* @__PURE__ */ new Set();
|
|
557
557
|
function i(a) {
|
|
558
558
|
if (Zt(e, a) && (e = a, r)) {
|
|
559
|
-
const u = !
|
|
559
|
+
const u = !ne.length;
|
|
560
560
|
for (const l of n)
|
|
561
|
-
l[1](),
|
|
561
|
+
l[1](), ne.push(l, e);
|
|
562
562
|
if (u) {
|
|
563
|
-
for (let l = 0; l <
|
|
564
|
-
|
|
565
|
-
|
|
563
|
+
for (let l = 0; l < ne.length; l += 2)
|
|
564
|
+
ne[l][0](ne[l + 1]);
|
|
565
|
+
ne.length = 0;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function s(a) {
|
|
570
570
|
i(a(e));
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function o(a, u = $) {
|
|
573
573
|
const l = [a, u];
|
|
574
|
-
return n.add(l), n.size === 1 && (r = t(i,
|
|
574
|
+
return n.add(l), n.size === 1 && (r = t(i, s) || $), a(e), () => {
|
|
575
575
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
576
576
|
};
|
|
577
577
|
}
|
|
578
|
-
return { set: i, update:
|
|
578
|
+
return { set: i, update: s, subscribe: o };
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function ce(e, t, r) {
|
|
581
581
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
582
582
|
if (!i.every(Boolean))
|
|
583
583
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
584
|
-
const
|
|
585
|
-
return _n(r, (
|
|
584
|
+
const s = t.length < 2;
|
|
585
|
+
return _n(r, (o, a) => {
|
|
586
586
|
let u = !1;
|
|
587
587
|
const l = [];
|
|
588
588
|
let c = 0, m = $;
|
|
@@ -590,8 +590,8 @@ function fe(e, t, r) {
|
|
|
590
590
|
if (c)
|
|
591
591
|
return;
|
|
592
592
|
m();
|
|
593
|
-
const g = t(n ? l[0] : l,
|
|
594
|
-
|
|
593
|
+
const g = t(n ? l[0] : l, o, a);
|
|
594
|
+
s ? o(g) : m = ot(g) ? g : $;
|
|
595
595
|
}, p = i.map(
|
|
596
596
|
(g, b) => zr(
|
|
597
597
|
g,
|
|
@@ -604,7 +604,7 @@ function fe(e, t, r) {
|
|
|
604
604
|
)
|
|
605
605
|
);
|
|
606
606
|
return u = !0, f(), function() {
|
|
607
|
-
|
|
607
|
+
Y(p), m(), u = !1;
|
|
608
608
|
};
|
|
609
609
|
});
|
|
610
610
|
}
|
|
@@ -628,19 +628,19 @@ function Tn(e) {
|
|
|
628
628
|
function An(e) {
|
|
629
629
|
return Array.isArray(e) ? [] : {};
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
631
|
+
function Ee(e, t) {
|
|
632
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ae(An(e), e, t) : e;
|
|
633
633
|
}
|
|
634
634
|
function Bn(e, t, r) {
|
|
635
635
|
return e.concat(t).map(function(n) {
|
|
636
|
-
return
|
|
636
|
+
return Ee(n, r);
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
639
|
function In(e, t) {
|
|
640
640
|
if (!t.customMerge)
|
|
641
|
-
return
|
|
641
|
+
return ae;
|
|
642
642
|
var r = t.customMerge(e);
|
|
643
|
-
return typeof r == "function" ? r :
|
|
643
|
+
return typeof r == "function" ? r : ae;
|
|
644
644
|
}
|
|
645
645
|
function Mn(e) {
|
|
646
646
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -663,51 +663,65 @@ function Ln(e, t) {
|
|
|
663
663
|
function Nn(e, t, r) {
|
|
664
664
|
var n = {};
|
|
665
665
|
return r.isMergeableObject(e) && xt(e).forEach(function(i) {
|
|
666
|
-
n[i] =
|
|
666
|
+
n[i] = Ee(e[i], r);
|
|
667
667
|
}), xt(t).forEach(function(i) {
|
|
668
|
-
Ln(e, i) || (Kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = In(i, r)(e[i], t[i], r) : n[i] =
|
|
668
|
+
Ln(e, i) || (Kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = In(i, r)(e[i], t[i], r) : n[i] = Ee(t[i], r));
|
|
669
669
|
}), n;
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Bn, r.isMergeableObject = r.isMergeableObject || xn, r.cloneUnlessOtherwiseSpecified =
|
|
673
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
|
674
|
-
return
|
|
671
|
+
function ae(e, t, r) {
|
|
672
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Bn, r.isMergeableObject = r.isMergeableObject || xn, r.cloneUnlessOtherwiseSpecified = Ee;
|
|
673
|
+
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
674
|
+
return s ? n ? r.arrayMerge(e, t, r) : Nn(e, t, r) : Ee(t, r);
|
|
675
675
|
}
|
|
676
|
-
|
|
676
|
+
ae.all = function(t, r) {
|
|
677
677
|
if (!Array.isArray(t))
|
|
678
678
|
throw new Error("first argument should be an array");
|
|
679
679
|
return t.reduce(function(n, i) {
|
|
680
|
-
return
|
|
680
|
+
return ae(n, i, r);
|
|
681
681
|
}, {});
|
|
682
682
|
};
|
|
683
|
-
var Pn =
|
|
683
|
+
var Pn = ae, On = Pn;
|
|
684
684
|
const Fn = /* @__PURE__ */ En(On);
|
|
685
|
-
|
|
686
|
-
|
|
685
|
+
/*! *****************************************************************************
|
|
686
|
+
Copyright (c) Microsoft Corporation.
|
|
687
|
+
|
|
688
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
689
|
+
purpose with or without fee is hereby granted.
|
|
690
|
+
|
|
691
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
692
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
693
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
694
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
695
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
696
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
697
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
698
|
+
***************************************************************************** */
|
|
699
|
+
var qe = function(e, t) {
|
|
700
|
+
return qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
687
701
|
r.__proto__ = n;
|
|
688
702
|
} || function(r, n) {
|
|
689
703
|
for (var i in n)
|
|
690
704
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
691
|
-
},
|
|
705
|
+
}, qe(e, t);
|
|
692
706
|
};
|
|
693
|
-
function
|
|
707
|
+
function Pe(e, t) {
|
|
694
708
|
if (typeof t != "function" && t !== null)
|
|
695
709
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
696
|
-
|
|
710
|
+
qe(e, t);
|
|
697
711
|
function r() {
|
|
698
712
|
this.constructor = e;
|
|
699
713
|
}
|
|
700
714
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
701
715
|
}
|
|
702
|
-
var
|
|
703
|
-
return
|
|
716
|
+
var w = function() {
|
|
717
|
+
return w = Object.assign || function(t) {
|
|
704
718
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
705
719
|
r = arguments[n];
|
|
706
|
-
for (var
|
|
707
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
720
|
+
for (var s in r)
|
|
721
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
708
722
|
}
|
|
709
723
|
return t;
|
|
710
|
-
},
|
|
724
|
+
}, w.apply(this, arguments);
|
|
711
725
|
};
|
|
712
726
|
function Rn(e, t) {
|
|
713
727
|
var r = {};
|
|
@@ -718,14 +732,14 @@ function Rn(e, t) {
|
|
|
718
732
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
719
733
|
return r;
|
|
720
734
|
}
|
|
721
|
-
function
|
|
722
|
-
if (
|
|
723
|
-
for (var n = 0, i = t.length,
|
|
724
|
-
(
|
|
725
|
-
return e.concat(
|
|
735
|
+
function $e(e, t, r) {
|
|
736
|
+
if (arguments.length === 2)
|
|
737
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
738
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
739
|
+
return e.concat(s || t);
|
|
726
740
|
}
|
|
727
|
-
function
|
|
728
|
-
var r = t && t.cache ? t.cache :
|
|
741
|
+
function je(e, t) {
|
|
742
|
+
var r = t && t.cache ? t.cache : jn, n = t && t.serializer ? t.serializer : $n, i = t && t.strategy ? t.strategy : Un;
|
|
729
743
|
return i(e, {
|
|
730
744
|
cache: r,
|
|
731
745
|
serializer: n
|
|
@@ -734,103 +748,95 @@ function Xe(e, t) {
|
|
|
734
748
|
function Dn(e) {
|
|
735
749
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
736
750
|
}
|
|
737
|
-
function
|
|
738
|
-
var i = Dn(n) ? n : r(n),
|
|
739
|
-
return typeof
|
|
751
|
+
function er(e, t, r, n) {
|
|
752
|
+
var i = Dn(n) ? n : r(n), s = t.get(i);
|
|
753
|
+
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
740
754
|
}
|
|
741
|
-
function
|
|
742
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
|
743
|
-
return typeof
|
|
755
|
+
function tr(e, t, r) {
|
|
756
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
757
|
+
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
744
758
|
}
|
|
745
|
-
function
|
|
759
|
+
function at(e, t, r, n, i) {
|
|
746
760
|
return r.bind(t, e, n, i);
|
|
747
761
|
}
|
|
762
|
+
function Un(e, t) {
|
|
763
|
+
var r = e.length === 1 ? er : tr;
|
|
764
|
+
return at(e, this, r, t.cache.create(), t.serializer);
|
|
765
|
+
}
|
|
748
766
|
function Gn(e, t) {
|
|
749
|
-
|
|
750
|
-
return tr(e, this, r, t.cache.create(), t.serializer);
|
|
767
|
+
return at(e, this, tr, t.cache.create(), t.serializer);
|
|
751
768
|
}
|
|
752
769
|
function kn(e, t) {
|
|
753
|
-
return
|
|
770
|
+
return at(e, this, er, t.cache.create(), t.serializer);
|
|
754
771
|
}
|
|
755
772
|
var $n = function() {
|
|
756
773
|
return JSON.stringify(arguments);
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
}()
|
|
769
|
-
), Vn = {
|
|
774
|
+
};
|
|
775
|
+
function lt() {
|
|
776
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
777
|
+
}
|
|
778
|
+
lt.prototype.get = function(e) {
|
|
779
|
+
return this.cache[e];
|
|
780
|
+
};
|
|
781
|
+
lt.prototype.set = function(e, t) {
|
|
782
|
+
this.cache[e] = t;
|
|
783
|
+
};
|
|
784
|
+
var jn = {
|
|
770
785
|
create: function() {
|
|
771
|
-
return new
|
|
786
|
+
return new lt();
|
|
772
787
|
}
|
|
773
|
-
},
|
|
774
|
-
variadic:
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
778
|
-
r = arguments[n];
|
|
779
|
-
for (var o in r)
|
|
780
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
781
|
-
}
|
|
782
|
-
return t;
|
|
783
|
-
}, Le.apply(this, arguments);
|
|
784
|
-
};
|
|
785
|
-
var y;
|
|
788
|
+
}, Ve = {
|
|
789
|
+
variadic: Gn,
|
|
790
|
+
monadic: kn
|
|
791
|
+
}, y;
|
|
786
792
|
(function(e) {
|
|
787
793
|
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";
|
|
788
794
|
})(y || (y = {}));
|
|
789
|
-
var
|
|
795
|
+
var A;
|
|
790
796
|
(function(e) {
|
|
791
797
|
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";
|
|
792
|
-
})(
|
|
793
|
-
var
|
|
798
|
+
})(A || (A = {}));
|
|
799
|
+
var le;
|
|
794
800
|
(function(e) {
|
|
795
801
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
796
|
-
})(
|
|
802
|
+
})(le || (le = {}));
|
|
797
803
|
function wt(e) {
|
|
798
|
-
return e.type ===
|
|
804
|
+
return e.type === A.literal;
|
|
799
805
|
}
|
|
800
|
-
function
|
|
801
|
-
return e.type ===
|
|
806
|
+
function Vn(e) {
|
|
807
|
+
return e.type === A.argument;
|
|
802
808
|
}
|
|
803
809
|
function rr(e) {
|
|
804
|
-
return e.type ===
|
|
810
|
+
return e.type === A.number;
|
|
805
811
|
}
|
|
806
812
|
function nr(e) {
|
|
807
|
-
return e.type ===
|
|
813
|
+
return e.type === A.date;
|
|
808
814
|
}
|
|
809
815
|
function ir(e) {
|
|
810
|
-
return e.type ===
|
|
816
|
+
return e.type === A.time;
|
|
811
817
|
}
|
|
812
818
|
function or(e) {
|
|
813
|
-
return e.type ===
|
|
819
|
+
return e.type === A.select;
|
|
814
820
|
}
|
|
815
821
|
function sr(e) {
|
|
816
|
-
return e.type ===
|
|
822
|
+
return e.type === A.plural;
|
|
817
823
|
}
|
|
818
|
-
function
|
|
819
|
-
return e.type ===
|
|
824
|
+
function Xn(e) {
|
|
825
|
+
return e.type === A.pound;
|
|
820
826
|
}
|
|
821
827
|
function ar(e) {
|
|
822
|
-
return e.type ===
|
|
828
|
+
return e.type === A.tag;
|
|
823
829
|
}
|
|
824
830
|
function lr(e) {
|
|
825
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
831
|
+
return !!(e && typeof e == "object" && e.type === le.number);
|
|
826
832
|
}
|
|
827
|
-
function
|
|
828
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
833
|
+
function Je(e) {
|
|
834
|
+
return !!(e && typeof e == "object" && e.type === le.dateTime);
|
|
829
835
|
}
|
|
830
|
-
var ur = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
831
|
-
function
|
|
836
|
+
var ur = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wn = /(?:[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;
|
|
837
|
+
function zn(e) {
|
|
832
838
|
var t = {};
|
|
833
|
-
return e.replace(
|
|
839
|
+
return e.replace(Wn, function(r) {
|
|
834
840
|
var n = r.length;
|
|
835
841
|
switch (r[0]) {
|
|
836
842
|
case "G":
|
|
@@ -919,27 +925,17 @@ function Zn(e) {
|
|
|
919
925
|
return "";
|
|
920
926
|
}), t;
|
|
921
927
|
}
|
|
922
|
-
var
|
|
923
|
-
|
|
924
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
925
|
-
r = arguments[n];
|
|
926
|
-
for (var o in r)
|
|
927
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
928
|
-
}
|
|
929
|
-
return t;
|
|
930
|
-
}, A.apply(this, arguments);
|
|
931
|
-
};
|
|
932
|
-
var Qn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
933
|
-
function qn(e) {
|
|
928
|
+
var Zn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
929
|
+
function Qn(e) {
|
|
934
930
|
if (e.length === 0)
|
|
935
931
|
throw new Error("Number skeleton cannot be empty");
|
|
936
|
-
for (var t = e.split(
|
|
932
|
+
for (var t = e.split(Zn).filter(function(f) {
|
|
937
933
|
return f.length > 0;
|
|
938
934
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
939
|
-
var
|
|
940
|
-
if (
|
|
935
|
+
var s = i[n], o = s.split("/");
|
|
936
|
+
if (o.length === 0)
|
|
941
937
|
throw new Error("Invalid number skeleton");
|
|
942
|
-
for (var a =
|
|
938
|
+
for (var a = o[0], u = o.slice(1), l = 0, c = u; l < c.length; l++) {
|
|
943
939
|
var m = c[l];
|
|
944
940
|
if (m.length === 0)
|
|
945
941
|
throw new Error("Invalid number skeleton");
|
|
@@ -948,10 +944,10 @@ function qn(e) {
|
|
|
948
944
|
}
|
|
949
945
|
return r;
|
|
950
946
|
}
|
|
951
|
-
function
|
|
947
|
+
function qn(e) {
|
|
952
948
|
return e.replace(/^(.*?)-/, "");
|
|
953
949
|
}
|
|
954
|
-
var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hr = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
950
|
+
var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hr = /^(@+)?(\+|#+)?[rs]?$/g, Jn = /(\*)(0+)|(#+)(0+)|(0+)/g, cr = /^(0+)$/;
|
|
955
951
|
function Ht(e) {
|
|
956
952
|
var t = {};
|
|
957
953
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(hr, function(r, n, i) {
|
|
@@ -998,7 +994,7 @@ function fr(e) {
|
|
|
998
994
|
};
|
|
999
995
|
}
|
|
1000
996
|
}
|
|
1001
|
-
function
|
|
997
|
+
function Yn(e) {
|
|
1002
998
|
var t;
|
|
1003
999
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1004
1000
|
notation: "engineering"
|
|
@@ -1016,7 +1012,7 @@ function St(e) {
|
|
|
1016
1012
|
var t = {}, r = fr(e);
|
|
1017
1013
|
return r || t;
|
|
1018
1014
|
}
|
|
1019
|
-
function
|
|
1015
|
+
function Kn(e) {
|
|
1020
1016
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1021
1017
|
var i = n[r];
|
|
1022
1018
|
switch (i.stem) {
|
|
@@ -1040,7 +1036,7 @@ function ei(e) {
|
|
|
1040
1036
|
continue;
|
|
1041
1037
|
case "measure-unit":
|
|
1042
1038
|
case "unit":
|
|
1043
|
-
t.style = "unit", t.unit =
|
|
1039
|
+
t.style = "unit", t.unit = qn(i.options[0]);
|
|
1044
1040
|
continue;
|
|
1045
1041
|
case "compact-short":
|
|
1046
1042
|
case "K":
|
|
@@ -1051,13 +1047,13 @@ function ei(e) {
|
|
|
1051
1047
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1052
1048
|
continue;
|
|
1053
1049
|
case "scientific":
|
|
1054
|
-
t =
|
|
1055
|
-
return
|
|
1050
|
+
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1051
|
+
return w(w({}, u), St(l));
|
|
1056
1052
|
}, {}));
|
|
1057
1053
|
continue;
|
|
1058
1054
|
case "engineering":
|
|
1059
|
-
t =
|
|
1060
|
-
return
|
|
1055
|
+
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1056
|
+
return w(w({}, u), St(l));
|
|
1061
1057
|
}, {}));
|
|
1062
1058
|
continue;
|
|
1063
1059
|
case "notation-simple":
|
|
@@ -1102,7 +1098,7 @@ function ei(e) {
|
|
|
1102
1098
|
case "integer-width":
|
|
1103
1099
|
if (i.options.length > 1)
|
|
1104
1100
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1105
|
-
i.options[0].replace(
|
|
1101
|
+
i.options[0].replace(Jn, function(u, l, c, m, f, p) {
|
|
1106
1102
|
if (l)
|
|
1107
1103
|
t.minimumIntegerDigits = c.length;
|
|
1108
1104
|
else {
|
|
@@ -1125,22 +1121,22 @@ function ei(e) {
|
|
|
1125
1121
|
i.stem.replace(Ct, function(u, l, c, m, f, p) {
|
|
1126
1122
|
return c === "*" ? 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), "";
|
|
1127
1123
|
});
|
|
1128
|
-
var
|
|
1129
|
-
|
|
1124
|
+
var s = i.options[0];
|
|
1125
|
+
s === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = w(w({}, t), Ht(s)));
|
|
1130
1126
|
continue;
|
|
1131
1127
|
}
|
|
1132
1128
|
if (hr.test(i.stem)) {
|
|
1133
|
-
t =
|
|
1129
|
+
t = w(w({}, t), Ht(i.stem));
|
|
1134
1130
|
continue;
|
|
1135
1131
|
}
|
|
1136
|
-
var
|
|
1137
|
-
|
|
1138
|
-
var a =
|
|
1139
|
-
a && (t =
|
|
1132
|
+
var o = fr(i.stem);
|
|
1133
|
+
o && (t = w(w({}, t), o));
|
|
1134
|
+
var a = Yn(i.stem);
|
|
1135
|
+
a && (t = w(w({}, t), a));
|
|
1140
1136
|
}
|
|
1141
1137
|
return t;
|
|
1142
1138
|
}
|
|
1143
|
-
var
|
|
1139
|
+
var Te = {
|
|
1144
1140
|
"001": [
|
|
1145
1141
|
"H",
|
|
1146
1142
|
"h"
|
|
@@ -2555,23 +2551,23 @@ var Ae = {
|
|
|
2555
2551
|
"h"
|
|
2556
2552
|
]
|
|
2557
2553
|
};
|
|
2558
|
-
function
|
|
2554
|
+
function ei(e, t) {
|
|
2559
2555
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2560
2556
|
var i = e.charAt(n);
|
|
2561
2557
|
if (i === "j") {
|
|
2562
|
-
for (var
|
|
2563
|
-
|
|
2564
|
-
var
|
|
2558
|
+
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2559
|
+
s++, n++;
|
|
2560
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), u = "a", l = ti(t);
|
|
2565
2561
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2566
2562
|
r += u;
|
|
2567
|
-
for (;
|
|
2563
|
+
for (; o-- > 0; )
|
|
2568
2564
|
r = l + r;
|
|
2569
2565
|
} else
|
|
2570
2566
|
i === "J" ? r += "H" : r += i;
|
|
2571
2567
|
}
|
|
2572
2568
|
return r;
|
|
2573
2569
|
}
|
|
2574
|
-
function
|
|
2570
|
+
function ti(e) {
|
|
2575
2571
|
var t = e.hourCycle;
|
|
2576
2572
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2577
2573
|
e.hourCycles && // @ts-ignore
|
|
@@ -2590,23 +2586,23 @@ function ri(e) {
|
|
|
2590
2586
|
}
|
|
2591
2587
|
var r = e.language, n;
|
|
2592
2588
|
r !== "root" && (n = e.maximize().region);
|
|
2593
|
-
var i =
|
|
2589
|
+
var i = Te[n || ""] || Te[r || ""] || Te["".concat(r, "-001")] || Te["001"];
|
|
2594
2590
|
return i[0];
|
|
2595
2591
|
}
|
|
2596
|
-
var
|
|
2592
|
+
var Xe, ri = new RegExp("^".concat(ur.source, "*")), ni = new RegExp("".concat(ur.source, "*$"));
|
|
2597
2593
|
function _(e, t) {
|
|
2598
2594
|
return { start: e, end: t };
|
|
2599
2595
|
}
|
|
2600
|
-
var
|
|
2596
|
+
var ii = !!String.prototype.startsWith && "_a".startsWith("a", 1), oi = !!String.fromCodePoint, si = !!Object.fromEntries, ai = !!String.prototype.codePointAt, li = !!String.prototype.trimStart, ui = !!String.prototype.trimEnd, hi = !!Number.isSafeInteger, ci = hi ? Number.isSafeInteger : function(e) {
|
|
2601
2597
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2602
|
-
},
|
|
2598
|
+
}, Ye = !0;
|
|
2603
2599
|
try {
|
|
2604
|
-
var
|
|
2605
|
-
|
|
2600
|
+
var fi = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2601
|
+
Ye = ((Xe = fi.exec("a")) === null || Xe === void 0 ? void 0 : Xe[0]) === "a";
|
|
2606
2602
|
} catch (e) {
|
|
2607
|
-
|
|
2603
|
+
Ye = !1;
|
|
2608
2604
|
}
|
|
2609
|
-
var Tt =
|
|
2605
|
+
var Tt = ii ? (
|
|
2610
2606
|
// Native
|
|
2611
2607
|
function(t, r, n) {
|
|
2612
2608
|
return t.startsWith(r, n);
|
|
@@ -2616,31 +2612,31 @@ var Tt = oi ? (
|
|
|
2616
2612
|
function(t, r, n) {
|
|
2617
2613
|
return t.slice(n, n + r.length) === r;
|
|
2618
2614
|
}
|
|
2619
|
-
),
|
|
2615
|
+
), Ke = oi ? String.fromCodePoint : (
|
|
2620
2616
|
// IE11
|
|
2621
2617
|
function() {
|
|
2622
2618
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2623
2619
|
t[r] = arguments[r];
|
|
2624
|
-
for (var n = "", i = t.length,
|
|
2625
|
-
if (
|
|
2626
|
-
throw RangeError(
|
|
2627
|
-
n +=
|
|
2620
|
+
for (var n = "", i = t.length, s = 0, o; i > s; ) {
|
|
2621
|
+
if (o = t[s++], o > 1114111)
|
|
2622
|
+
throw RangeError(o + " is not a valid code point");
|
|
2623
|
+
n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
2628
2624
|
}
|
|
2629
2625
|
return n;
|
|
2630
2626
|
}
|
|
2631
2627
|
), At = (
|
|
2632
2628
|
// native
|
|
2633
|
-
|
|
2629
|
+
si ? Object.fromEntries : (
|
|
2634
2630
|
// Ponyfill
|
|
2635
2631
|
function(t) {
|
|
2636
2632
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2637
|
-
var
|
|
2638
|
-
r[
|
|
2633
|
+
var s = i[n], o = s[0], a = s[1];
|
|
2634
|
+
r[o] = a;
|
|
2639
2635
|
}
|
|
2640
2636
|
return r;
|
|
2641
2637
|
}
|
|
2642
2638
|
)
|
|
2643
|
-
), mr =
|
|
2639
|
+
), mr = ai ? (
|
|
2644
2640
|
// Native
|
|
2645
2641
|
function(t, r) {
|
|
2646
2642
|
return t.codePointAt(r);
|
|
@@ -2650,11 +2646,11 @@ var Tt = oi ? (
|
|
|
2650
2646
|
function(t, r) {
|
|
2651
2647
|
var n = t.length;
|
|
2652
2648
|
if (!(r < 0 || r >= n)) {
|
|
2653
|
-
var i = t.charCodeAt(r),
|
|
2654
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
|
2649
|
+
var i = t.charCodeAt(r), s;
|
|
2650
|
+
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2655
2651
|
}
|
|
2656
2652
|
}
|
|
2657
|
-
),
|
|
2653
|
+
), mi = li ? (
|
|
2658
2654
|
// Native
|
|
2659
2655
|
function(t) {
|
|
2660
2656
|
return t.trimStart();
|
|
@@ -2662,9 +2658,9 @@ var Tt = oi ? (
|
|
|
2662
2658
|
) : (
|
|
2663
2659
|
// Ponyfill
|
|
2664
2660
|
function(t) {
|
|
2665
|
-
return t.replace(
|
|
2661
|
+
return t.replace(ri, "");
|
|
2666
2662
|
}
|
|
2667
|
-
),
|
|
2663
|
+
), di = ui ? (
|
|
2668
2664
|
// Native
|
|
2669
2665
|
function(t) {
|
|
2670
2666
|
return t.trimEnd();
|
|
@@ -2672,32 +2668,32 @@ var Tt = oi ? (
|
|
|
2672
2668
|
) : (
|
|
2673
2669
|
// Ponyfill
|
|
2674
2670
|
function(t) {
|
|
2675
|
-
return t.replace(
|
|
2671
|
+
return t.replace(ni, "");
|
|
2676
2672
|
}
|
|
2677
2673
|
);
|
|
2678
2674
|
function dr(e, t) {
|
|
2679
2675
|
return new RegExp(e, t);
|
|
2680
2676
|
}
|
|
2681
|
-
var
|
|
2682
|
-
if (
|
|
2677
|
+
var et;
|
|
2678
|
+
if (Ye) {
|
|
2683
2679
|
var Bt = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2684
|
-
|
|
2680
|
+
et = function(t, r) {
|
|
2685
2681
|
var n;
|
|
2686
2682
|
Bt.lastIndex = r;
|
|
2687
2683
|
var i = Bt.exec(t);
|
|
2688
2684
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2689
2685
|
};
|
|
2690
2686
|
} else
|
|
2691
|
-
|
|
2687
|
+
et = function(t, r) {
|
|
2692
2688
|
for (var n = []; ; ) {
|
|
2693
2689
|
var i = mr(t, r);
|
|
2694
|
-
if (i === void 0 || pr(i) ||
|
|
2690
|
+
if (i === void 0 || pr(i) || yi(i))
|
|
2695
2691
|
break;
|
|
2696
2692
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2697
2693
|
}
|
|
2698
|
-
return
|
|
2694
|
+
return Ke.apply(void 0, n);
|
|
2699
2695
|
};
|
|
2700
|
-
var
|
|
2696
|
+
var pi = (
|
|
2701
2697
|
/** @class */
|
|
2702
2698
|
function() {
|
|
2703
2699
|
function e(t, r) {
|
|
@@ -2709,35 +2705,35 @@ var gi = (
|
|
|
2709
2705
|
return this.parseMessage(0, "", !1);
|
|
2710
2706
|
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2711
2707
|
for (var i = []; !this.isEOF(); ) {
|
|
2712
|
-
var
|
|
2713
|
-
if (
|
|
2714
|
-
var
|
|
2715
|
-
if (
|
|
2716
|
-
return
|
|
2717
|
-
i.push(
|
|
2708
|
+
var s = this.char();
|
|
2709
|
+
if (s === 123) {
|
|
2710
|
+
var o = this.parseArgument(t, n);
|
|
2711
|
+
if (o.err)
|
|
2712
|
+
return o;
|
|
2713
|
+
i.push(o.val);
|
|
2718
2714
|
} else {
|
|
2719
|
-
if (
|
|
2715
|
+
if (s === 125 && t > 0)
|
|
2720
2716
|
break;
|
|
2721
|
-
if (
|
|
2717
|
+
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2722
2718
|
var a = this.clonePosition();
|
|
2723
2719
|
this.bump(), i.push({
|
|
2724
|
-
type:
|
|
2720
|
+
type: A.pound,
|
|
2725
2721
|
location: _(a, this.clonePosition())
|
|
2726
2722
|
});
|
|
2727
|
-
} else if (
|
|
2723
|
+
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2728
2724
|
if (n)
|
|
2729
2725
|
break;
|
|
2730
2726
|
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2731
|
-
} else if (
|
|
2732
|
-
var
|
|
2733
|
-
if (
|
|
2734
|
-
return
|
|
2735
|
-
i.push(
|
|
2727
|
+
} else if (s === 60 && !this.ignoreTag && tt(this.peek() || 0)) {
|
|
2728
|
+
var o = this.parseTag(t, r);
|
|
2729
|
+
if (o.err)
|
|
2730
|
+
return o;
|
|
2731
|
+
i.push(o.val);
|
|
2736
2732
|
} else {
|
|
2737
|
-
var
|
|
2738
|
-
if (
|
|
2739
|
-
return
|
|
2740
|
-
i.push(
|
|
2733
|
+
var o = this.parseLiteral(t, r);
|
|
2734
|
+
if (o.err)
|
|
2735
|
+
return o;
|
|
2736
|
+
i.push(o.val);
|
|
2741
2737
|
}
|
|
2742
2738
|
}
|
|
2743
2739
|
}
|
|
@@ -2749,26 +2745,26 @@ var gi = (
|
|
|
2749
2745
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2750
2746
|
return {
|
|
2751
2747
|
val: {
|
|
2752
|
-
type:
|
|
2748
|
+
type: A.literal,
|
|
2753
2749
|
value: "<".concat(i, "/>"),
|
|
2754
2750
|
location: _(n, this.clonePosition())
|
|
2755
2751
|
},
|
|
2756
2752
|
err: null
|
|
2757
2753
|
};
|
|
2758
2754
|
if (this.bumpIf(">")) {
|
|
2759
|
-
var
|
|
2760
|
-
if (
|
|
2761
|
-
return
|
|
2762
|
-
var
|
|
2755
|
+
var s = this.parseMessage(t + 1, r, !0);
|
|
2756
|
+
if (s.err)
|
|
2757
|
+
return s;
|
|
2758
|
+
var o = s.val, a = this.clonePosition();
|
|
2763
2759
|
if (this.bumpIf("</")) {
|
|
2764
|
-
if (this.isEOF() || !
|
|
2760
|
+
if (this.isEOF() || !tt(this.char()))
|
|
2765
2761
|
return this.error(y.INVALID_TAG, _(a, this.clonePosition()));
|
|
2766
2762
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
2767
2763
|
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, _(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2768
2764
|
val: {
|
|
2769
|
-
type:
|
|
2765
|
+
type: A.tag,
|
|
2770
2766
|
value: i,
|
|
2771
|
-
children:
|
|
2767
|
+
children: o,
|
|
2772
2768
|
location: _(n, this.clonePosition())
|
|
2773
2769
|
},
|
|
2774
2770
|
err: null
|
|
@@ -2779,21 +2775,21 @@ var gi = (
|
|
|
2779
2775
|
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
|
2780
2776
|
}, e.prototype.parseTagName = function() {
|
|
2781
2777
|
var t = this.offset();
|
|
2782
|
-
for (this.bump(); !this.isEOF() &&
|
|
2778
|
+
for (this.bump(); !this.isEOF() && bi(this.char()); )
|
|
2783
2779
|
this.bump();
|
|
2784
2780
|
return this.message.slice(t, this.offset());
|
|
2785
2781
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
2786
2782
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2787
|
-
var
|
|
2788
|
-
if (o) {
|
|
2789
|
-
i += o;
|
|
2790
|
-
continue;
|
|
2791
|
-
}
|
|
2792
|
-
var s = this.tryParseUnquoted(t, r);
|
|
2783
|
+
var s = this.tryParseQuote(r);
|
|
2793
2784
|
if (s) {
|
|
2794
2785
|
i += s;
|
|
2795
2786
|
continue;
|
|
2796
2787
|
}
|
|
2788
|
+
var o = this.tryParseUnquoted(t, r);
|
|
2789
|
+
if (o) {
|
|
2790
|
+
i += o;
|
|
2791
|
+
continue;
|
|
2792
|
+
}
|
|
2797
2793
|
var a = this.tryParseLeftAngleBracket();
|
|
2798
2794
|
if (a) {
|
|
2799
2795
|
i += a;
|
|
@@ -2803,12 +2799,12 @@ var gi = (
|
|
|
2803
2799
|
}
|
|
2804
2800
|
var u = _(n, this.clonePosition());
|
|
2805
2801
|
return {
|
|
2806
|
-
val: { type:
|
|
2802
|
+
val: { type: A.literal, value: i, location: u },
|
|
2807
2803
|
err: null
|
|
2808
2804
|
};
|
|
2809
2805
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2810
2806
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2811
|
-
!
|
|
2807
|
+
!gi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2812
2808
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2813
2809
|
if (this.isEOF() || this.char() !== 39)
|
|
2814
2810
|
return null;
|
|
@@ -2842,12 +2838,12 @@ var gi = (
|
|
|
2842
2838
|
r.push(n);
|
|
2843
2839
|
this.bump();
|
|
2844
2840
|
}
|
|
2845
|
-
return
|
|
2841
|
+
return Ke.apply(void 0, r);
|
|
2846
2842
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2847
2843
|
if (this.isEOF())
|
|
2848
2844
|
return null;
|
|
2849
2845
|
var n = this.char();
|
|
2850
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2846
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ke(n));
|
|
2851
2847
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2852
2848
|
var n = this.clonePosition();
|
|
2853
2849
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2863,7 +2859,7 @@ var gi = (
|
|
|
2863
2859
|
case 125:
|
|
2864
2860
|
return this.bump(), {
|
|
2865
2861
|
val: {
|
|
2866
|
-
type:
|
|
2862
|
+
type: A.argument,
|
|
2867
2863
|
// value does not include the opening and closing braces.
|
|
2868
2864
|
value: i,
|
|
2869
2865
|
location: _(n, this.clonePosition())
|
|
@@ -2876,15 +2872,15 @@ var gi = (
|
|
|
2876
2872
|
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2877
2873
|
}
|
|
2878
2874
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2879
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2875
|
+
var t = this.clonePosition(), r = this.offset(), n = et(this.message, r), i = r + n.length;
|
|
2880
2876
|
this.bumpTo(i);
|
|
2881
|
-
var
|
|
2882
|
-
return { value: n, location:
|
|
2877
|
+
var s = this.clonePosition(), o = _(t, s);
|
|
2878
|
+
return { value: n, location: o };
|
|
2883
2879
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2884
|
-
var
|
|
2880
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
2885
2881
|
switch (a) {
|
|
2886
2882
|
case "":
|
|
2887
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE, _(
|
|
2883
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, _(o, u));
|
|
2888
2884
|
case "number":
|
|
2889
2885
|
case "date":
|
|
2890
2886
|
case "time": {
|
|
@@ -2895,7 +2891,7 @@ var gi = (
|
|
|
2895
2891
|
var c = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
|
2896
2892
|
if (m.err)
|
|
2897
2893
|
return m;
|
|
2898
|
-
var f =
|
|
2894
|
+
var f = di(m.val);
|
|
2899
2895
|
if (f.length === 0)
|
|
2900
2896
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2901
2897
|
var p = _(c, this.clonePosition());
|
|
@@ -2906,24 +2902,24 @@ var gi = (
|
|
|
2906
2902
|
return g;
|
|
2907
2903
|
var b = _(i, this.clonePosition());
|
|
2908
2904
|
if (l && Tt(l == null ? void 0 : l.style, "::", 0)) {
|
|
2909
|
-
var d =
|
|
2905
|
+
var d = mi(l.style.slice(2));
|
|
2910
2906
|
if (a === "number") {
|
|
2911
2907
|
var m = this.parseNumberSkeletonFromString(d, l.styleLocation);
|
|
2912
2908
|
return m.err ? m : {
|
|
2913
|
-
val: { type:
|
|
2909
|
+
val: { type: A.number, value: n, location: b, style: m.val },
|
|
2914
2910
|
err: null
|
|
2915
2911
|
};
|
|
2916
2912
|
} else {
|
|
2917
2913
|
if (d.length === 0)
|
|
2918
2914
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
|
2919
|
-
var
|
|
2920
|
-
this.locale && (
|
|
2915
|
+
var H = d;
|
|
2916
|
+
this.locale && (H = ei(d, this.locale));
|
|
2921
2917
|
var f = {
|
|
2922
|
-
type:
|
|
2923
|
-
pattern:
|
|
2918
|
+
type: le.dateTime,
|
|
2919
|
+
pattern: H,
|
|
2924
2920
|
location: l.styleLocation,
|
|
2925
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2926
|
-
}, E = a === "date" ?
|
|
2921
|
+
parsedOptions: this.shouldParseSkeletons ? zn(H) : {}
|
|
2922
|
+
}, E = a === "date" ? A.date : A.time;
|
|
2927
2923
|
return {
|
|
2928
2924
|
val: { type: E, value: n, location: b, style: f },
|
|
2929
2925
|
err: null
|
|
@@ -2932,10 +2928,10 @@ var gi = (
|
|
|
2932
2928
|
}
|
|
2933
2929
|
return {
|
|
2934
2930
|
val: {
|
|
2935
|
-
type: a === "number" ?
|
|
2931
|
+
type: a === "number" ? A.number : a === "date" ? A.date : A.time,
|
|
2936
2932
|
value: n,
|
|
2937
2933
|
location: b,
|
|
2938
|
-
style: (
|
|
2934
|
+
style: (s = l == null ? void 0 : l.style) !== null && s !== void 0 ? s : null
|
|
2939
2935
|
},
|
|
2940
2936
|
err: null
|
|
2941
2937
|
};
|
|
@@ -2943,9 +2939,9 @@ var gi = (
|
|
|
2943
2939
|
case "plural":
|
|
2944
2940
|
case "selectordinal":
|
|
2945
2941
|
case "select": {
|
|
2946
|
-
var
|
|
2942
|
+
var C = this.clonePosition();
|
|
2947
2943
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2948
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(
|
|
2944
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(C, w({}, C)));
|
|
2949
2945
|
this.bumpSpace();
|
|
2950
2946
|
var O = this.parseIdentifierIfPossible(), L = 0;
|
|
2951
2947
|
if (a !== "select" && O.value === "offset") {
|
|
@@ -2963,29 +2959,29 @@ var gi = (
|
|
|
2963
2959
|
var g = this.tryParseArgumentClose(i);
|
|
2964
2960
|
if (g.err)
|
|
2965
2961
|
return g;
|
|
2966
|
-
var
|
|
2962
|
+
var S = _(i, this.clonePosition());
|
|
2967
2963
|
return a === "select" ? {
|
|
2968
2964
|
val: {
|
|
2969
|
-
type:
|
|
2965
|
+
type: A.select,
|
|
2970
2966
|
value: n,
|
|
2971
2967
|
options: At(v.val),
|
|
2972
|
-
location:
|
|
2968
|
+
location: S
|
|
2973
2969
|
},
|
|
2974
2970
|
err: null
|
|
2975
2971
|
} : {
|
|
2976
2972
|
val: {
|
|
2977
|
-
type:
|
|
2973
|
+
type: A.plural,
|
|
2978
2974
|
value: n,
|
|
2979
2975
|
options: At(v.val),
|
|
2980
2976
|
offset: L,
|
|
2981
2977
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2982
|
-
location:
|
|
2978
|
+
location: S
|
|
2983
2979
|
},
|
|
2984
2980
|
err: null
|
|
2985
2981
|
};
|
|
2986
2982
|
}
|
|
2987
2983
|
default:
|
|
2988
|
-
return this.error(y.INVALID_ARGUMENT_TYPE, _(
|
|
2984
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, _(o, u));
|
|
2989
2985
|
}
|
|
2990
2986
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2991
2987
|
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3027,21 +3023,21 @@ var gi = (
|
|
|
3027
3023
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3028
3024
|
var n = [];
|
|
3029
3025
|
try {
|
|
3030
|
-
n =
|
|
3026
|
+
n = Qn(t);
|
|
3031
3027
|
} catch (i) {
|
|
3032
3028
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3033
3029
|
}
|
|
3034
3030
|
return {
|
|
3035
3031
|
val: {
|
|
3036
|
-
type:
|
|
3032
|
+
type: le.number,
|
|
3037
3033
|
tokens: n,
|
|
3038
3034
|
location: r,
|
|
3039
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3035
|
+
parsedOptions: this.shouldParseSkeletons ? Kn(n) : {}
|
|
3040
3036
|
},
|
|
3041
3037
|
err: null
|
|
3042
3038
|
};
|
|
3043
3039
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3044
|
-
for (var
|
|
3040
|
+
for (var s, o = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
|
|
3045
3041
|
if (l.length === 0) {
|
|
3046
3042
|
var m = this.clonePosition();
|
|
3047
3043
|
if (r !== "select" && this.bumpIf("=")) {
|
|
@@ -3054,7 +3050,7 @@ var gi = (
|
|
|
3054
3050
|
}
|
|
3055
3051
|
if (u.has(l))
|
|
3056
3052
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3057
|
-
l === "other" && (
|
|
3053
|
+
l === "other" && (o = !0), this.bumpSpace();
|
|
3058
3054
|
var p = this.clonePosition();
|
|
3059
3055
|
if (!this.bumpIf("{"))
|
|
3060
3056
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
@@ -3070,21 +3066,21 @@ var gi = (
|
|
|
3070
3066
|
value: g.val,
|
|
3071
3067
|
location: _(p, this.clonePosition())
|
|
3072
3068
|
}
|
|
3073
|
-
]), u.add(l), this.bumpSpace(),
|
|
3069
|
+
]), u.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, c = s.location;
|
|
3074
3070
|
}
|
|
3075
|
-
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !
|
|
3071
|
+
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3076
3072
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3077
3073
|
var n = 1, i = this.clonePosition();
|
|
3078
3074
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3079
|
-
for (var
|
|
3075
|
+
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
3080
3076
|
var a = this.char();
|
|
3081
3077
|
if (a >= 48 && a <= 57)
|
|
3082
|
-
|
|
3078
|
+
s = !0, o = o * 10 + (a - 48), this.bump();
|
|
3083
3079
|
else
|
|
3084
3080
|
break;
|
|
3085
3081
|
}
|
|
3086
3082
|
var u = _(i, this.clonePosition());
|
|
3087
|
-
return
|
|
3083
|
+
return s ? (o *= n, ci(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3088
3084
|
}, e.prototype.offset = function() {
|
|
3089
3085
|
return this.position.offset;
|
|
3090
3086
|
}, e.prototype.isEOF = function() {
|
|
@@ -3150,50 +3146,50 @@ var gi = (
|
|
|
3150
3146
|
}, e;
|
|
3151
3147
|
}()
|
|
3152
3148
|
);
|
|
3153
|
-
function
|
|
3149
|
+
function tt(e) {
|
|
3154
3150
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3155
3151
|
}
|
|
3156
|
-
function
|
|
3157
|
-
return
|
|
3152
|
+
function gi(e) {
|
|
3153
|
+
return tt(e) || e === 47;
|
|
3158
3154
|
}
|
|
3159
|
-
function
|
|
3155
|
+
function bi(e) {
|
|
3160
3156
|
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;
|
|
3161
3157
|
}
|
|
3162
3158
|
function pr(e) {
|
|
3163
3159
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3164
3160
|
}
|
|
3165
|
-
function
|
|
3161
|
+
function yi(e) {
|
|
3166
3162
|
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;
|
|
3167
3163
|
}
|
|
3168
|
-
function
|
|
3164
|
+
function rt(e) {
|
|
3169
3165
|
e.forEach(function(t) {
|
|
3170
3166
|
if (delete t.location, or(t) || sr(t))
|
|
3171
3167
|
for (var r in t.options)
|
|
3172
|
-
delete t.options[r].location,
|
|
3168
|
+
delete t.options[r].location, rt(t.options[r].value);
|
|
3173
3169
|
else
|
|
3174
|
-
rr(t) && lr(t.style) || (nr(t) || ir(t)) &&
|
|
3170
|
+
rr(t) && lr(t.style) || (nr(t) || ir(t)) && Je(t.style) ? delete t.style.location : ar(t) && rt(t.children);
|
|
3175
3171
|
});
|
|
3176
3172
|
}
|
|
3177
|
-
function
|
|
3178
|
-
t === void 0 && (t = {}), t =
|
|
3179
|
-
var r = new
|
|
3173
|
+
function vi(e, t) {
|
|
3174
|
+
t === void 0 && (t = {}), t = w({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3175
|
+
var r = new pi(e, t).parse();
|
|
3180
3176
|
if (r.err) {
|
|
3181
3177
|
var n = SyntaxError(y[r.err.kind]);
|
|
3182
3178
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3183
3179
|
}
|
|
3184
|
-
return t != null && t.captureLocation ||
|
|
3180
|
+
return t != null && t.captureLocation || rt(r.val), r.val;
|
|
3185
3181
|
}
|
|
3186
|
-
var
|
|
3182
|
+
var ue;
|
|
3187
3183
|
(function(e) {
|
|
3188
3184
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3189
|
-
})(
|
|
3190
|
-
var
|
|
3185
|
+
})(ue || (ue = {}));
|
|
3186
|
+
var Oe = (
|
|
3191
3187
|
/** @class */
|
|
3192
3188
|
function(e) {
|
|
3193
|
-
|
|
3189
|
+
Pe(t, e);
|
|
3194
3190
|
function t(r, n, i) {
|
|
3195
|
-
var
|
|
3196
|
-
return
|
|
3191
|
+
var s = e.call(this, r) || this;
|
|
3192
|
+
return s.code = n, s.originalMessage = i, s;
|
|
3197
3193
|
}
|
|
3198
3194
|
return t.prototype.toString = function() {
|
|
3199
3195
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
@@ -3202,44 +3198,44 @@ var Re = (
|
|
|
3202
3198
|
), It = (
|
|
3203
3199
|
/** @class */
|
|
3204
3200
|
function(e) {
|
|
3205
|
-
|
|
3206
|
-
function t(r, n, i,
|
|
3207
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3201
|
+
Pe(t, e);
|
|
3202
|
+
function t(r, n, i, s) {
|
|
3203
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ue.INVALID_VALUE, s) || this;
|
|
3208
3204
|
}
|
|
3209
3205
|
return t;
|
|
3210
|
-
}(
|
|
3211
|
-
),
|
|
3206
|
+
}(Oe)
|
|
3207
|
+
), _i = (
|
|
3212
3208
|
/** @class */
|
|
3213
3209
|
function(e) {
|
|
3214
|
-
|
|
3210
|
+
Pe(t, e);
|
|
3215
3211
|
function t(r, n, i) {
|
|
3216
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3212
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ue.INVALID_VALUE, i) || this;
|
|
3217
3213
|
}
|
|
3218
3214
|
return t;
|
|
3219
|
-
}(
|
|
3220
|
-
),
|
|
3215
|
+
}(Oe)
|
|
3216
|
+
), Ei = (
|
|
3221
3217
|
/** @class */
|
|
3222
3218
|
function(e) {
|
|
3223
|
-
|
|
3219
|
+
Pe(t, e);
|
|
3224
3220
|
function t(r, n) {
|
|
3225
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3221
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ue.MISSING_VALUE, n) || this;
|
|
3226
3222
|
}
|
|
3227
3223
|
return t;
|
|
3228
|
-
}(
|
|
3224
|
+
}(Oe)
|
|
3229
3225
|
), F;
|
|
3230
3226
|
(function(e) {
|
|
3231
3227
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3232
3228
|
})(F || (F = {}));
|
|
3233
|
-
function
|
|
3229
|
+
function xi(e) {
|
|
3234
3230
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3235
3231
|
var n = t[t.length - 1];
|
|
3236
3232
|
return !n || n.type !== F.literal || r.type !== F.literal ? t.push(r) : n.value += r.value, t;
|
|
3237
3233
|
}, []);
|
|
3238
3234
|
}
|
|
3239
|
-
function
|
|
3235
|
+
function wi(e) {
|
|
3240
3236
|
return typeof e == "function";
|
|
3241
3237
|
}
|
|
3242
|
-
function
|
|
3238
|
+
function Be(e, t, r, n, i, s, o) {
|
|
3243
3239
|
if (e.length === 1 && wt(e[0]))
|
|
3244
3240
|
return [
|
|
3245
3241
|
{
|
|
@@ -3256,18 +3252,18 @@ function Ie(e, t, r, n, i, o, s) {
|
|
|
3256
3252
|
});
|
|
3257
3253
|
continue;
|
|
3258
3254
|
}
|
|
3259
|
-
if (
|
|
3260
|
-
typeof
|
|
3255
|
+
if (Xn(c)) {
|
|
3256
|
+
typeof s == "number" && a.push({
|
|
3261
3257
|
type: F.literal,
|
|
3262
|
-
value: r.getNumberFormat(t).format(
|
|
3258
|
+
value: r.getNumberFormat(t).format(s)
|
|
3263
3259
|
});
|
|
3264
3260
|
continue;
|
|
3265
3261
|
}
|
|
3266
3262
|
var m = c.value;
|
|
3267
3263
|
if (!(i && m in i))
|
|
3268
|
-
throw new
|
|
3264
|
+
throw new Ei(m, o);
|
|
3269
3265
|
var f = i[m];
|
|
3270
|
-
if (
|
|
3266
|
+
if (Vn(c)) {
|
|
3271
3267
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3272
3268
|
type: typeof f == "string" ? F.literal : F.object,
|
|
3273
3269
|
value: f
|
|
@@ -3275,7 +3271,7 @@ function Ie(e, t, r, n, i, o, s) {
|
|
|
3275
3271
|
continue;
|
|
3276
3272
|
}
|
|
3277
3273
|
if (nr(c)) {
|
|
3278
|
-
var p = typeof c.style == "string" ? n.date[c.style] :
|
|
3274
|
+
var p = typeof c.style == "string" ? n.date[c.style] : Je(c.style) ? c.style.parsedOptions : void 0;
|
|
3279
3275
|
a.push({
|
|
3280
3276
|
type: F.literal,
|
|
3281
3277
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
@@ -3283,7 +3279,7 @@ function Ie(e, t, r, n, i, o, s) {
|
|
|
3283
3279
|
continue;
|
|
3284
3280
|
}
|
|
3285
3281
|
if (ir(c)) {
|
|
3286
|
-
var p = typeof c.style == "string" ? n.time[c.style] :
|
|
3282
|
+
var p = typeof c.style == "string" ? n.time[c.style] : Je(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3287
3283
|
a.push({
|
|
3288
3284
|
type: F.literal,
|
|
3289
3285
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
@@ -3300,9 +3296,9 @@ function Ie(e, t, r, n, i, o, s) {
|
|
|
3300
3296
|
}
|
|
3301
3297
|
if (ar(c)) {
|
|
3302
3298
|
var g = c.children, b = c.value, d = i[b];
|
|
3303
|
-
if (!
|
|
3304
|
-
throw new
|
|
3305
|
-
var
|
|
3299
|
+
if (!wi(d))
|
|
3300
|
+
throw new _i(b, "function", o);
|
|
3301
|
+
var H = Be(g, t, r, n, i, s), E = d(H.map(function(L) {
|
|
3306
3302
|
return L.value;
|
|
3307
3303
|
}));
|
|
3308
3304
|
Array.isArray(E) || (E = [E]), a.push.apply(a, E.map(function(L) {
|
|
@@ -3313,41 +3309,41 @@ function Ie(e, t, r, n, i, o, s) {
|
|
|
3313
3309
|
}));
|
|
3314
3310
|
}
|
|
3315
3311
|
if (or(c)) {
|
|
3316
|
-
var
|
|
3317
|
-
if (!
|
|
3318
|
-
throw new It(c.value, f, Object.keys(c.options),
|
|
3319
|
-
a.push.apply(a,
|
|
3312
|
+
var C = c.options[f] || c.options.other;
|
|
3313
|
+
if (!C)
|
|
3314
|
+
throw new It(c.value, f, Object.keys(c.options), o);
|
|
3315
|
+
a.push.apply(a, Be(C.value, t, r, n, i));
|
|
3320
3316
|
continue;
|
|
3321
3317
|
}
|
|
3322
3318
|
if (sr(c)) {
|
|
3323
|
-
var
|
|
3324
|
-
if (!
|
|
3319
|
+
var C = c.options["=".concat(f)];
|
|
3320
|
+
if (!C) {
|
|
3325
3321
|
if (!Intl.PluralRules)
|
|
3326
|
-
throw new
|
|
3322
|
+
throw new Oe(`Intl.PluralRules is not available in this environment.
|
|
3327
3323
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3328
|
-
`,
|
|
3324
|
+
`, ue.MISSING_INTL_API, o);
|
|
3329
3325
|
var O = r.getPluralRules(t, { type: c.pluralType }).select(f - (c.offset || 0));
|
|
3330
|
-
|
|
3326
|
+
C = c.options[O] || c.options.other;
|
|
3331
3327
|
}
|
|
3332
|
-
if (!
|
|
3333
|
-
throw new It(c.value, f, Object.keys(c.options),
|
|
3334
|
-
a.push.apply(a,
|
|
3328
|
+
if (!C)
|
|
3329
|
+
throw new It(c.value, f, Object.keys(c.options), o);
|
|
3330
|
+
a.push.apply(a, Be(C.value, t, r, n, i, f - (c.offset || 0)));
|
|
3335
3331
|
continue;
|
|
3336
3332
|
}
|
|
3337
3333
|
}
|
|
3338
|
-
return
|
|
3334
|
+
return xi(a);
|
|
3339
3335
|
}
|
|
3340
|
-
function
|
|
3341
|
-
return t ?
|
|
3342
|
-
return r[n] =
|
|
3336
|
+
function Ci(e, t) {
|
|
3337
|
+
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3338
|
+
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3343
3339
|
}, {})) : e;
|
|
3344
3340
|
}
|
|
3345
|
-
function
|
|
3341
|
+
function Hi(e, t) {
|
|
3346
3342
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3347
|
-
return r[n] =
|
|
3348
|
-
},
|
|
3343
|
+
return r[n] = Ci(e[n], t[n]), r;
|
|
3344
|
+
}, w({}, e)) : e;
|
|
3349
3345
|
}
|
|
3350
|
-
function
|
|
3346
|
+
function We(e) {
|
|
3351
3347
|
return {
|
|
3352
3348
|
create: function() {
|
|
3353
3349
|
return {
|
|
@@ -3361,50 +3357,50 @@ function Ze(e) {
|
|
|
3361
3357
|
}
|
|
3362
3358
|
};
|
|
3363
3359
|
}
|
|
3364
|
-
function
|
|
3360
|
+
function Si(e) {
|
|
3365
3361
|
return e === void 0 && (e = {
|
|
3366
3362
|
number: {},
|
|
3367
3363
|
dateTime: {},
|
|
3368
3364
|
pluralRules: {}
|
|
3369
3365
|
}), {
|
|
3370
|
-
getNumberFormat:
|
|
3366
|
+
getNumberFormat: je(function() {
|
|
3371
3367
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3372
3368
|
r[n] = arguments[n];
|
|
3373
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3369
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, $e([void 0], r, !1)))();
|
|
3374
3370
|
}, {
|
|
3375
|
-
cache:
|
|
3376
|
-
strategy:
|
|
3371
|
+
cache: We(e.number),
|
|
3372
|
+
strategy: Ve.variadic
|
|
3377
3373
|
}),
|
|
3378
|
-
getDateTimeFormat:
|
|
3374
|
+
getDateTimeFormat: je(function() {
|
|
3379
3375
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3380
3376
|
r[n] = arguments[n];
|
|
3381
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3377
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, $e([void 0], r, !1)))();
|
|
3382
3378
|
}, {
|
|
3383
|
-
cache:
|
|
3384
|
-
strategy:
|
|
3379
|
+
cache: We(e.dateTime),
|
|
3380
|
+
strategy: Ve.variadic
|
|
3385
3381
|
}),
|
|
3386
|
-
getPluralRules:
|
|
3382
|
+
getPluralRules: je(function() {
|
|
3387
3383
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3388
3384
|
r[n] = arguments[n];
|
|
3389
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3385
|
+
return new ((t = Intl.PluralRules).bind.apply(t, $e([void 0], r, !1)))();
|
|
3390
3386
|
}, {
|
|
3391
|
-
cache:
|
|
3392
|
-
strategy:
|
|
3387
|
+
cache: We(e.pluralRules),
|
|
3388
|
+
strategy: Ve.variadic
|
|
3393
3389
|
})
|
|
3394
3390
|
};
|
|
3395
3391
|
}
|
|
3396
|
-
var
|
|
3392
|
+
var Ti = (
|
|
3397
3393
|
/** @class */
|
|
3398
3394
|
function() {
|
|
3399
3395
|
function e(t, r, n, i) {
|
|
3400
3396
|
r === void 0 && (r = e.defaultLocale);
|
|
3401
|
-
var
|
|
3397
|
+
var s = this;
|
|
3402
3398
|
if (this.formatterCache = {
|
|
3403
3399
|
number: {},
|
|
3404
3400
|
dateTime: {},
|
|
3405
3401
|
pluralRules: {}
|
|
3406
3402
|
}, this.format = function(u) {
|
|
3407
|
-
var l =
|
|
3403
|
+
var l = s.formatToParts(u);
|
|
3408
3404
|
if (l.length === 1)
|
|
3409
3405
|
return l[0].value;
|
|
3410
3406
|
var c = l.reduce(function(m, f) {
|
|
@@ -3412,26 +3408,26 @@ var Ai = (
|
|
|
3412
3408
|
}, []);
|
|
3413
3409
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3414
3410
|
}, this.formatToParts = function(u) {
|
|
3415
|
-
return
|
|
3411
|
+
return Be(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
|
|
3416
3412
|
}, this.resolvedOptions = function() {
|
|
3417
3413
|
var u;
|
|
3418
3414
|
return {
|
|
3419
|
-
locale: ((u =
|
|
3415
|
+
locale: ((u = s.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3420
3416
|
};
|
|
3421
3417
|
}, this.getAst = function() {
|
|
3422
|
-
return
|
|
3418
|
+
return s.ast;
|
|
3423
3419
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3424
3420
|
if (this.message = t, !e.__parse)
|
|
3425
3421
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3426
|
-
var
|
|
3427
|
-
|
|
3428
|
-
var a = Rn(
|
|
3429
|
-
this.ast = e.__parse(t,
|
|
3422
|
+
var o = i || {};
|
|
3423
|
+
o.formatters;
|
|
3424
|
+
var a = Rn(o, ["formatters"]);
|
|
3425
|
+
this.ast = e.__parse(t, w(w({}, a), { locale: this.resolvedLocale }));
|
|
3430
3426
|
} else
|
|
3431
3427
|
this.ast = t;
|
|
3432
3428
|
if (!Array.isArray(this.ast))
|
|
3433
3429
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3434
|
-
this.formats =
|
|
3430
|
+
this.formats = Hi(e.formats, n), this.formatters = i && i.formatters || Si(this.formatterCache);
|
|
3435
3431
|
}
|
|
3436
3432
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3437
3433
|
get: function() {
|
|
@@ -3444,7 +3440,7 @@ var Ai = (
|
|
|
3444
3440
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3445
3441
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3446
3442
|
}
|
|
3447
|
-
}, e.__parse =
|
|
3443
|
+
}, e.__parse = vi, e.formats = {
|
|
3448
3444
|
number: {
|
|
3449
3445
|
integer: {
|
|
3450
3446
|
maximumFractionDigits: 0
|
|
@@ -3505,7 +3501,7 @@ var Ai = (
|
|
|
3505
3501
|
}, e;
|
|
3506
3502
|
}()
|
|
3507
3503
|
);
|
|
3508
|
-
function
|
|
3504
|
+
function Ai(e, t) {
|
|
3509
3505
|
if (t == null)
|
|
3510
3506
|
return;
|
|
3511
3507
|
if (t in e)
|
|
@@ -3515,9 +3511,9 @@ function Bi(e, t) {
|
|
|
3515
3511
|
for (let i = 0; i < r.length; i++)
|
|
3516
3512
|
if (typeof n == "object") {
|
|
3517
3513
|
if (i > 0) {
|
|
3518
|
-
const
|
|
3519
|
-
if (
|
|
3520
|
-
n = n[
|
|
3514
|
+
const s = r.slice(i, r.length).join(".");
|
|
3515
|
+
if (s in n) {
|
|
3516
|
+
n = n[s];
|
|
3521
3517
|
break;
|
|
3522
3518
|
}
|
|
3523
3519
|
}
|
|
@@ -3526,36 +3522,36 @@ function Bi(e, t) {
|
|
|
3526
3522
|
n = void 0;
|
|
3527
3523
|
return n;
|
|
3528
3524
|
}
|
|
3529
|
-
const
|
|
3525
|
+
const W = {}, Bi = (e, t, r) => r && (t in W || (W[t] = {}), e in W[t] || (W[t][e] = r), r), gr = (e, t) => {
|
|
3530
3526
|
if (t == null)
|
|
3531
3527
|
return;
|
|
3532
|
-
if (t in
|
|
3533
|
-
return
|
|
3534
|
-
const r =
|
|
3528
|
+
if (t in W && e in W[t])
|
|
3529
|
+
return W[t][e];
|
|
3530
|
+
const r = Fe(t);
|
|
3535
3531
|
for (let n = 0; n < r.length; n++) {
|
|
3536
|
-
const i = r[n],
|
|
3537
|
-
if (
|
|
3538
|
-
return
|
|
3532
|
+
const i = r[n], s = Mi(i, e);
|
|
3533
|
+
if (s)
|
|
3534
|
+
return Bi(e, t, s);
|
|
3539
3535
|
}
|
|
3540
3536
|
};
|
|
3541
3537
|
let ut;
|
|
3542
|
-
const
|
|
3543
|
-
function
|
|
3538
|
+
const fe = Ne({});
|
|
3539
|
+
function Ii(e) {
|
|
3544
3540
|
return ut[e] || null;
|
|
3545
3541
|
}
|
|
3546
3542
|
function br(e) {
|
|
3547
3543
|
return e in ut;
|
|
3548
3544
|
}
|
|
3549
|
-
function
|
|
3545
|
+
function Mi(e, t) {
|
|
3550
3546
|
if (!br(e))
|
|
3551
3547
|
return null;
|
|
3552
|
-
const r =
|
|
3553
|
-
return
|
|
3548
|
+
const r = Ii(e);
|
|
3549
|
+
return Ai(r, t);
|
|
3554
3550
|
}
|
|
3555
|
-
function
|
|
3551
|
+
function Li(e) {
|
|
3556
3552
|
if (e == null)
|
|
3557
3553
|
return;
|
|
3558
|
-
const t =
|
|
3554
|
+
const t = Fe(e);
|
|
3559
3555
|
for (let r = 0; r < t.length; r++) {
|
|
3560
3556
|
const n = t[r];
|
|
3561
3557
|
if (br(n))
|
|
@@ -3563,55 +3559,55 @@ function Ni(e) {
|
|
|
3563
3559
|
}
|
|
3564
3560
|
}
|
|
3565
3561
|
function yr(e, ...t) {
|
|
3566
|
-
delete
|
|
3562
|
+
delete W[e], fe.update((r) => (r[e] = Fn.all([r[e] || {}, ...t]), r));
|
|
3567
3563
|
}
|
|
3568
|
-
|
|
3569
|
-
[
|
|
3564
|
+
ce(
|
|
3565
|
+
[fe],
|
|
3570
3566
|
([e]) => Object.keys(e)
|
|
3571
3567
|
);
|
|
3572
|
-
|
|
3573
|
-
const
|
|
3574
|
-
function
|
|
3575
|
-
|
|
3568
|
+
fe.subscribe((e) => ut = e);
|
|
3569
|
+
const Ie = {};
|
|
3570
|
+
function Ni(e, t) {
|
|
3571
|
+
Ie[e].delete(t), Ie[e].size === 0 && delete Ie[e];
|
|
3576
3572
|
}
|
|
3577
3573
|
function vr(e) {
|
|
3578
|
-
return
|
|
3574
|
+
return Ie[e];
|
|
3579
3575
|
}
|
|
3580
|
-
function
|
|
3581
|
-
return
|
|
3576
|
+
function Pi(e) {
|
|
3577
|
+
return Fe(e).map((t) => {
|
|
3582
3578
|
const r = vr(t);
|
|
3583
3579
|
return [t, r ? [...r] : []];
|
|
3584
3580
|
}).filter(([, t]) => t.length > 0);
|
|
3585
3581
|
}
|
|
3586
|
-
function
|
|
3587
|
-
return e == null ? !1 :
|
|
3582
|
+
function nt(e) {
|
|
3583
|
+
return e == null ? !1 : Fe(e).some(
|
|
3588
3584
|
(t) => {
|
|
3589
3585
|
var r;
|
|
3590
3586
|
return (r = vr(t)) == null ? void 0 : r.size;
|
|
3591
3587
|
}
|
|
3592
3588
|
);
|
|
3593
3589
|
}
|
|
3594
|
-
function
|
|
3590
|
+
function Oi(e, t) {
|
|
3595
3591
|
return Promise.all(
|
|
3596
|
-
t.map((n) => (
|
|
3592
|
+
t.map((n) => (Ni(e, n), n().then((i) => i.default || i)))
|
|
3597
3593
|
).then((n) => yr(e, ...n));
|
|
3598
3594
|
}
|
|
3599
|
-
const
|
|
3595
|
+
const ge = {};
|
|
3600
3596
|
function _r(e) {
|
|
3601
|
-
if (!
|
|
3602
|
-
return e in
|
|
3603
|
-
const t =
|
|
3604
|
-
return
|
|
3597
|
+
if (!nt(e))
|
|
3598
|
+
return e in ge ? ge[e] : Promise.resolve();
|
|
3599
|
+
const t = Pi(e);
|
|
3600
|
+
return ge[e] = Promise.all(
|
|
3605
3601
|
t.map(
|
|
3606
|
-
([r, n]) =>
|
|
3602
|
+
([r, n]) => Oi(r, n)
|
|
3607
3603
|
)
|
|
3608
3604
|
).then(() => {
|
|
3609
|
-
if (
|
|
3605
|
+
if (nt(e))
|
|
3610
3606
|
return _r(e);
|
|
3611
|
-
delete
|
|
3612
|
-
}),
|
|
3607
|
+
delete ge[e];
|
|
3608
|
+
}), ge[e];
|
|
3613
3609
|
}
|
|
3614
|
-
const
|
|
3610
|
+
const Fi = {
|
|
3615
3611
|
number: {
|
|
3616
3612
|
scientific: { notation: "scientific" },
|
|
3617
3613
|
engineering: { notation: "engineering" },
|
|
@@ -3640,150 +3636,150 @@ const Ri = {
|
|
|
3640
3636
|
timeZoneName: "short"
|
|
3641
3637
|
}
|
|
3642
3638
|
}
|
|
3643
|
-
},
|
|
3639
|
+
}, Ri = {
|
|
3644
3640
|
fallbackLocale: null,
|
|
3645
3641
|
loadingDelay: 200,
|
|
3646
|
-
formats:
|
|
3642
|
+
formats: Fi,
|
|
3647
3643
|
warnOnMissingMessages: !0,
|
|
3648
3644
|
handleMissingMessage: void 0,
|
|
3649
3645
|
ignoreTag: !0
|
|
3650
|
-
},
|
|
3651
|
-
function
|
|
3652
|
-
return
|
|
3646
|
+
}, Di = Ri;
|
|
3647
|
+
function he() {
|
|
3648
|
+
return Di;
|
|
3653
3649
|
}
|
|
3654
|
-
const
|
|
3655
|
-
var
|
|
3650
|
+
const ze = Ne(!1);
|
|
3651
|
+
var Ui = Object.defineProperty, Gi = Object.defineProperties, ki = Object.getOwnPropertyDescriptors, Mt = Object.getOwnPropertySymbols, $i = Object.prototype.hasOwnProperty, ji = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? Ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Vi = (e, t) => {
|
|
3656
3652
|
for (var r in t || (t = {}))
|
|
3657
|
-
|
|
3653
|
+
$i.call(t, r) && Lt(e, r, t[r]);
|
|
3658
3654
|
if (Mt)
|
|
3659
3655
|
for (var r of Mt(t))
|
|
3660
|
-
|
|
3656
|
+
ji.call(t, r) && Lt(e, r, t[r]);
|
|
3661
3657
|
return e;
|
|
3662
|
-
},
|
|
3663
|
-
let
|
|
3664
|
-
const
|
|
3658
|
+
}, Xi = (e, t) => Gi(e, ki(t));
|
|
3659
|
+
let it;
|
|
3660
|
+
const Me = Ne(null);
|
|
3665
3661
|
function Nt(e) {
|
|
3666
3662
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3667
3663
|
}
|
|
3668
|
-
function
|
|
3664
|
+
function Fe(e, t = he().fallbackLocale) {
|
|
3669
3665
|
const r = Nt(e);
|
|
3670
3666
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Nt(t)])] : r;
|
|
3671
3667
|
}
|
|
3672
|
-
function
|
|
3673
|
-
return
|
|
3668
|
+
function K() {
|
|
3669
|
+
return it != null ? it : void 0;
|
|
3674
3670
|
}
|
|
3675
|
-
|
|
3676
|
-
|
|
3671
|
+
Me.subscribe((e) => {
|
|
3672
|
+
it = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3677
3673
|
});
|
|
3678
|
-
const
|
|
3679
|
-
if (e &&
|
|
3680
|
-
const { loadingDelay: t } =
|
|
3674
|
+
const Wi = (e) => {
|
|
3675
|
+
if (e && Li(e) && nt(e)) {
|
|
3676
|
+
const { loadingDelay: t } = he();
|
|
3681
3677
|
let r;
|
|
3682
|
-
return typeof window != "undefined" &&
|
|
3683
|
-
() =>
|
|
3678
|
+
return typeof window != "undefined" && K() != null && t ? r = window.setTimeout(
|
|
3679
|
+
() => ze.set(!0),
|
|
3684
3680
|
t
|
|
3685
|
-
) :
|
|
3686
|
-
|
|
3681
|
+
) : ze.set(!0), _r(e).then(() => {
|
|
3682
|
+
Me.set(e);
|
|
3687
3683
|
}).finally(() => {
|
|
3688
|
-
clearTimeout(r),
|
|
3684
|
+
clearTimeout(r), ze.set(!1);
|
|
3689
3685
|
});
|
|
3690
3686
|
}
|
|
3691
|
-
return
|
|
3692
|
-
},
|
|
3693
|
-
set:
|
|
3694
|
-
}),
|
|
3687
|
+
return Me.set(e);
|
|
3688
|
+
}, z = Xi(Vi({}, Me), {
|
|
3689
|
+
set: Wi
|
|
3690
|
+
}), Re = (e) => {
|
|
3695
3691
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3696
3692
|
return (n) => {
|
|
3697
3693
|
const i = JSON.stringify(n);
|
|
3698
3694
|
return i in t ? t[i] : t[i] = e(n);
|
|
3699
3695
|
};
|
|
3700
3696
|
};
|
|
3701
|
-
var
|
|
3697
|
+
var zi = Object.defineProperty, Le = Object.getOwnPropertySymbols, Er = Object.prototype.hasOwnProperty, xr = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ht = (e, t) => {
|
|
3702
3698
|
for (var r in t || (t = {}))
|
|
3703
3699
|
Er.call(t, r) && Pt(e, r, t[r]);
|
|
3704
|
-
if (
|
|
3705
|
-
for (var r of
|
|
3700
|
+
if (Le)
|
|
3701
|
+
for (var r of Le(t))
|
|
3706
3702
|
xr.call(t, r) && Pt(e, r, t[r]);
|
|
3707
3703
|
return e;
|
|
3708
|
-
},
|
|
3704
|
+
}, me = (e, t) => {
|
|
3709
3705
|
var r = {};
|
|
3710
3706
|
for (var n in e)
|
|
3711
3707
|
Er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3712
|
-
if (e != null &&
|
|
3713
|
-
for (var n of
|
|
3708
|
+
if (e != null && Le)
|
|
3709
|
+
for (var n of Le(e))
|
|
3714
3710
|
t.indexOf(n) < 0 && xr.call(e, n) && (r[n] = e[n]);
|
|
3715
3711
|
return r;
|
|
3716
3712
|
};
|
|
3717
|
-
const
|
|
3718
|
-
const { formats: r } =
|
|
3713
|
+
const xe = (e, t) => {
|
|
3714
|
+
const { formats: r } = he();
|
|
3719
3715
|
if (e in r && t in r[e])
|
|
3720
3716
|
return r[e][t];
|
|
3721
3717
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3722
|
-
},
|
|
3718
|
+
}, Zi = Re(
|
|
3723
3719
|
(e) => {
|
|
3724
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3720
|
+
var t = e, { locale: r, format: n } = t, i = me(t, ["locale", "format"]);
|
|
3725
3721
|
if (r == null)
|
|
3726
3722
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3727
|
-
return n && (i =
|
|
3723
|
+
return n && (i = xe("number", n)), new Intl.NumberFormat(r, i);
|
|
3728
3724
|
}
|
|
3729
|
-
),
|
|
3725
|
+
), Qi = Re(
|
|
3730
3726
|
(e) => {
|
|
3731
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3727
|
+
var t = e, { locale: r, format: n } = t, i = me(t, ["locale", "format"]);
|
|
3732
3728
|
if (r == null)
|
|
3733
3729
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3734
|
-
return n ? i =
|
|
3730
|
+
return n ? i = xe("date", n) : Object.keys(i).length === 0 && (i = xe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3735
3731
|
}
|
|
3736
|
-
),
|
|
3732
|
+
), qi = Re(
|
|
3737
3733
|
(e) => {
|
|
3738
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3734
|
+
var t = e, { locale: r, format: n } = t, i = me(t, ["locale", "format"]);
|
|
3739
3735
|
if (r == null)
|
|
3740
3736
|
throw new Error(
|
|
3741
3737
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3742
3738
|
);
|
|
3743
|
-
return n ? i =
|
|
3739
|
+
return n ? i = xe("time", n) : Object.keys(i).length === 0 && (i = xe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3744
3740
|
}
|
|
3745
|
-
),
|
|
3741
|
+
), Ji = (e = {}) => {
|
|
3746
3742
|
var t = e, {
|
|
3747
|
-
locale: r =
|
|
3748
|
-
} = t, n =
|
|
3743
|
+
locale: r = K()
|
|
3744
|
+
} = t, n = me(t, [
|
|
3749
3745
|
"locale"
|
|
3750
3746
|
]);
|
|
3751
|
-
return
|
|
3752
|
-
},
|
|
3747
|
+
return Zi(ht({ locale: r }, n));
|
|
3748
|
+
}, Yi = (e = {}) => {
|
|
3753
3749
|
var t = e, {
|
|
3754
|
-
locale: r =
|
|
3755
|
-
} = t, n =
|
|
3750
|
+
locale: r = K()
|
|
3751
|
+
} = t, n = me(t, [
|
|
3756
3752
|
"locale"
|
|
3757
3753
|
]);
|
|
3758
|
-
return
|
|
3759
|
-
},
|
|
3754
|
+
return Qi(ht({ locale: r }, n));
|
|
3755
|
+
}, Ki = (e = {}) => {
|
|
3760
3756
|
var t = e, {
|
|
3761
|
-
locale: r =
|
|
3762
|
-
} = t, n =
|
|
3757
|
+
locale: r = K()
|
|
3758
|
+
} = t, n = me(t, [
|
|
3763
3759
|
"locale"
|
|
3764
3760
|
]);
|
|
3765
|
-
return
|
|
3766
|
-
},
|
|
3761
|
+
return qi(ht({ locale: r }, n));
|
|
3762
|
+
}, eo = Re(
|
|
3767
3763
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3768
|
-
(e, t =
|
|
3769
|
-
ignoreTag:
|
|
3764
|
+
(e, t = K()) => new Ti(e, t, he().formats, {
|
|
3765
|
+
ignoreTag: he().ignoreTag
|
|
3770
3766
|
})
|
|
3771
|
-
),
|
|
3772
|
-
var r, n, i,
|
|
3773
|
-
let
|
|
3774
|
-
typeof e == "object" && (
|
|
3767
|
+
), to = (e, t = {}) => {
|
|
3768
|
+
var r, n, i, s;
|
|
3769
|
+
let o = t;
|
|
3770
|
+
typeof e == "object" && (o = e, e = o.id);
|
|
3775
3771
|
const {
|
|
3776
3772
|
values: a,
|
|
3777
|
-
locale: u =
|
|
3773
|
+
locale: u = K(),
|
|
3778
3774
|
default: l
|
|
3779
|
-
} =
|
|
3775
|
+
} = o;
|
|
3780
3776
|
if (u == null)
|
|
3781
3777
|
throw new Error(
|
|
3782
3778
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3783
3779
|
);
|
|
3784
3780
|
let c = gr(e, u);
|
|
3785
3781
|
if (!c)
|
|
3786
|
-
c = (
|
|
3782
|
+
c = (s = (i = (n = (r = he()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
|
3787
3783
|
else if (typeof c != "string")
|
|
3788
3784
|
return console.warn(
|
|
3789
3785
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3792,7 +3788,7 @@ const we = (e, t) => {
|
|
|
3792
3788
|
return c;
|
|
3793
3789
|
let m = c;
|
|
3794
3790
|
try {
|
|
3795
|
-
m =
|
|
3791
|
+
m = eo(c, u).format(a);
|
|
3796
3792
|
} catch (f) {
|
|
3797
3793
|
f instanceof Error && console.warn(
|
|
3798
3794
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3800,22 +3796,22 @@ const we = (e, t) => {
|
|
|
3800
3796
|
);
|
|
3801
3797
|
}
|
|
3802
3798
|
return m;
|
|
3803
|
-
},
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
function
|
|
3810
|
-
|
|
3811
|
-
r == null && (
|
|
3799
|
+
}, ro = (e, t) => Ki(t).format(e), no = (e, t) => Yi(t).format(e), io = (e, t) => Ji(t).format(e), oo = (e, t = K()) => gr(e, t);
|
|
3800
|
+
ce([z, fe], () => to);
|
|
3801
|
+
ce([z], () => ro);
|
|
3802
|
+
ce([z], () => no);
|
|
3803
|
+
ce([z], () => io);
|
|
3804
|
+
ce([z, fe], () => oo);
|
|
3805
|
+
function so({ withLocale: e, translations: t }) {
|
|
3806
|
+
z.subscribe((r) => {
|
|
3807
|
+
r == null && (fe.set(t), z.set(e));
|
|
3812
3808
|
});
|
|
3813
3809
|
}
|
|
3814
3810
|
function Ot(e, t) {
|
|
3815
3811
|
yr(e, t);
|
|
3816
3812
|
}
|
|
3817
|
-
function
|
|
3818
|
-
|
|
3813
|
+
function ao(e) {
|
|
3814
|
+
z.set(e);
|
|
3819
3815
|
}
|
|
3820
3816
|
const Ft = {
|
|
3821
3817
|
en: {
|
|
@@ -3874,7 +3870,7 @@ const Ft = {
|
|
|
3874
3870
|
deposit: "Deposit"
|
|
3875
3871
|
}
|
|
3876
3872
|
};
|
|
3877
|
-
function
|
|
3873
|
+
function lo(e) {
|
|
3878
3874
|
Zr(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}');
|
|
3879
3875
|
}
|
|
3880
3876
|
function Rt(e, t, r) {
|
|
@@ -3890,87 +3886,87 @@ function Ut(e, t, r) {
|
|
|
3890
3886
|
return n[63] = t[r], n[65] = r, n;
|
|
3891
3887
|
}
|
|
3892
3888
|
function Gt(e) {
|
|
3893
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
|
3889
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = se(
|
|
3894
3890
|
/*sliderdata*/
|
|
3895
3891
|
e[9]
|
|
3896
3892
|
);
|
|
3897
|
-
const
|
|
3893
|
+
const s = (o) => (
|
|
3898
3894
|
/*category*/
|
|
3899
|
-
|
|
3895
|
+
o[57].id
|
|
3900
3896
|
);
|
|
3901
|
-
for (let
|
|
3902
|
-
let a = Rt(e, i,
|
|
3903
|
-
r.set(u, t[
|
|
3897
|
+
for (let o = 0; o < i.length; o += 1) {
|
|
3898
|
+
let a = Rt(e, i, o), u = s(a);
|
|
3899
|
+
r.set(u, t[o] = Wt(u, a));
|
|
3904
3900
|
}
|
|
3905
3901
|
return {
|
|
3906
3902
|
c() {
|
|
3907
|
-
for (let
|
|
3908
|
-
t[
|
|
3909
|
-
n =
|
|
3903
|
+
for (let o = 0; o < t.length; o += 1)
|
|
3904
|
+
t[o].c();
|
|
3905
|
+
n = ve();
|
|
3910
3906
|
},
|
|
3911
|
-
m(
|
|
3907
|
+
m(o, a) {
|
|
3912
3908
|
for (let u = 0; u < t.length; u += 1)
|
|
3913
|
-
t[u] && t[u].m(
|
|
3914
|
-
k(
|
|
3909
|
+
t[u] && t[u].m(o, a);
|
|
3910
|
+
k(o, n, a);
|
|
3915
3911
|
},
|
|
3916
|
-
p(
|
|
3912
|
+
p(o, a) {
|
|
3917
3913
|
a[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
|
|
3918
|
-
1183695 && (i =
|
|
3914
|
+
1183695 && (i = se(
|
|
3919
3915
|
/*sliderdata*/
|
|
3920
|
-
|
|
3921
|
-
), t = Jt(t, a,
|
|
3916
|
+
o[9]
|
|
3917
|
+
), t = Jt(t, a, s, 1, o, i, r, n.parentNode, qt, Wt, n, Rt));
|
|
3922
3918
|
},
|
|
3923
|
-
d(
|
|
3924
|
-
|
|
3919
|
+
d(o) {
|
|
3920
|
+
o && U(n);
|
|
3925
3921
|
for (let a = 0; a < t.length; a += 1)
|
|
3926
|
-
t[a].d(
|
|
3922
|
+
t[a].d(o);
|
|
3927
3923
|
}
|
|
3928
3924
|
};
|
|
3929
3925
|
}
|
|
3930
|
-
function
|
|
3926
|
+
function uo(e) {
|
|
3931
3927
|
let t, r = (
|
|
3932
3928
|
/*category*/
|
|
3933
3929
|
e[57].name + ""
|
|
3934
3930
|
), n;
|
|
3935
3931
|
return {
|
|
3936
3932
|
c() {
|
|
3937
|
-
t = P("button"), n =
|
|
3933
|
+
t = P("button"), n = we(r), T(t, "class", "CategoryButton");
|
|
3938
3934
|
},
|
|
3939
|
-
m(i,
|
|
3940
|
-
k(i, t,
|
|
3935
|
+
m(i, s) {
|
|
3936
|
+
k(i, t, s), M(t, n);
|
|
3941
3937
|
},
|
|
3942
|
-
p(i,
|
|
3943
|
-
|
|
3938
|
+
p(i, s) {
|
|
3939
|
+
s[0] & /*sliderdata*/
|
|
3944
3940
|
512 && r !== (r = /*category*/
|
|
3945
|
-
i[57].name + "") &&
|
|
3941
|
+
i[57].name + "") && st(n, r);
|
|
3946
3942
|
},
|
|
3947
3943
|
d(i) {
|
|
3948
3944
|
i && U(t);
|
|
3949
3945
|
}
|
|
3950
3946
|
};
|
|
3951
3947
|
}
|
|
3952
|
-
function
|
|
3948
|
+
function ho(e) {
|
|
3953
3949
|
let t, r = (
|
|
3954
3950
|
/*category*/
|
|
3955
3951
|
e[57].label + ""
|
|
3956
3952
|
), n, i;
|
|
3957
3953
|
return {
|
|
3958
3954
|
c() {
|
|
3959
|
-
t = P("a"), n =
|
|
3955
|
+
t = P("a"), n = we(r), T(t, "href", i = /*category*/
|
|
3960
3956
|
e[57].path);
|
|
3961
3957
|
},
|
|
3962
|
-
m(
|
|
3963
|
-
k(
|
|
3958
|
+
m(s, o) {
|
|
3959
|
+
k(s, t, o), M(t, n);
|
|
3964
3960
|
},
|
|
3965
|
-
p(
|
|
3966
|
-
|
|
3961
|
+
p(s, o) {
|
|
3962
|
+
o[0] & /*sliderdata*/
|
|
3967
3963
|
512 && r !== (r = /*category*/
|
|
3968
|
-
|
|
3964
|
+
s[57].label + "") && st(n, r), o[0] & /*sliderdata*/
|
|
3969
3965
|
512 && i !== (i = /*category*/
|
|
3970
|
-
|
|
3966
|
+
s[57].path) && T(t, "href", i);
|
|
3971
3967
|
},
|
|
3972
|
-
d(
|
|
3973
|
-
|
|
3968
|
+
d(s) {
|
|
3969
|
+
s && U(t);
|
|
3974
3970
|
}
|
|
3975
3971
|
};
|
|
3976
3972
|
}
|
|
@@ -3982,7 +3978,7 @@ function kt(e) {
|
|
|
3982
3978
|
);
|
|
3983
3979
|
return {
|
|
3984
3980
|
c() {
|
|
3985
|
-
r && r.c(), t =
|
|
3981
|
+
r && r.c(), t = ve();
|
|
3986
3982
|
},
|
|
3987
3983
|
m(n, i) {
|
|
3988
3984
|
r && r.m(n, i), k(n, t, i);
|
|
@@ -3998,7 +3994,7 @@ function kt(e) {
|
|
|
3998
3994
|
};
|
|
3999
3995
|
}
|
|
4000
3996
|
function $t(e) {
|
|
4001
|
-
let t, r =
|
|
3997
|
+
let t, r = se(
|
|
4002
3998
|
/*subGroupsData*/
|
|
4003
3999
|
e[10]
|
|
4004
4000
|
), n = [];
|
|
@@ -4009,27 +4005,27 @@ function $t(e) {
|
|
|
4009
4005
|
t = P("ul");
|
|
4010
4006
|
for (let i = 0; i < n.length; i += 1)
|
|
4011
4007
|
n[i].c();
|
|
4012
|
-
|
|
4008
|
+
T(t, "class", "DropDown");
|
|
4013
4009
|
},
|
|
4014
|
-
m(i,
|
|
4015
|
-
k(i, t,
|
|
4016
|
-
for (let
|
|
4017
|
-
n[
|
|
4010
|
+
m(i, s) {
|
|
4011
|
+
k(i, t, s);
|
|
4012
|
+
for (let o = 0; o < n.length; o += 1)
|
|
4013
|
+
n[o] && n[o].m(t, null);
|
|
4018
4014
|
},
|
|
4019
|
-
p(i,
|
|
4020
|
-
if (
|
|
4015
|
+
p(i, s) {
|
|
4016
|
+
if (s[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
|
|
4021
4017
|
133056) {
|
|
4022
|
-
r =
|
|
4018
|
+
r = se(
|
|
4023
4019
|
/*subGroupsData*/
|
|
4024
4020
|
i[10]
|
|
4025
4021
|
);
|
|
4026
|
-
let
|
|
4027
|
-
for (
|
|
4028
|
-
const a = Dt(i, r,
|
|
4029
|
-
n[
|
|
4022
|
+
let o;
|
|
4023
|
+
for (o = 0; o < r.length; o += 1) {
|
|
4024
|
+
const a = Dt(i, r, o);
|
|
4025
|
+
n[o] ? n[o].p(a, s) : (n[o] = Xt(a), n[o].c(), n[o].m(t, null));
|
|
4030
4026
|
}
|
|
4031
|
-
for (;
|
|
4032
|
-
n[
|
|
4027
|
+
for (; o < n.length; o += 1)
|
|
4028
|
+
n[o].d(1);
|
|
4033
4029
|
n.length = r.length;
|
|
4034
4030
|
}
|
|
4035
4031
|
},
|
|
@@ -4043,7 +4039,7 @@ function jt(e) {
|
|
|
4043
4039
|
let t, r, n = (
|
|
4044
4040
|
/*subGroupItem*/
|
|
4045
4041
|
((c = e[63]) == null ? void 0 : c.name) + ""
|
|
4046
|
-
), i,
|
|
4042
|
+
), i, s, o, a, u;
|
|
4047
4043
|
function l(...m) {
|
|
4048
4044
|
return (
|
|
4049
4045
|
/*click_handler_2*/
|
|
@@ -4062,7 +4058,7 @@ function jt(e) {
|
|
|
4062
4058
|
}
|
|
4063
4059
|
return {
|
|
4064
4060
|
c() {
|
|
4065
|
-
t = P("li"), r = P("a"), i =
|
|
4061
|
+
t = P("li"), r = P("a"), i = we(n), o = J(), T(r, "class", s = "SubDropDown " + /*index*/
|
|
4066
4062
|
(e[59] == /*activeIndex*/
|
|
4067
4063
|
e[6] && /*activeSubIndex*/
|
|
4068
4064
|
(e[7] == /*subindex*/
|
|
@@ -4071,20 +4067,20 @@ function jt(e) {
|
|
|
4071
4067
|
e[65]) ? "active" : ""));
|
|
4072
4068
|
},
|
|
4073
4069
|
m(m, f) {
|
|
4074
|
-
k(m, t, f), M(t, r), M(r, i), M(t,
|
|
4070
|
+
k(m, t, f), M(t, r), M(r, i), M(t, o), a || (u = V(t, "click", l), a = !0);
|
|
4075
4071
|
},
|
|
4076
4072
|
p(m, f) {
|
|
4077
4073
|
var p;
|
|
4078
4074
|
e = m, f[0] & /*subGroupsData*/
|
|
4079
4075
|
1024 && n !== (n = /*subGroupItem*/
|
|
4080
|
-
((p = e[63]) == null ? void 0 : p.name) + "") &&
|
|
4081
|
-
1984 &&
|
|
4076
|
+
((p = e[63]) == null ? void 0 : p.name) + "") && st(i, n), f[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
|
|
4077
|
+
1984 && s !== (s = "SubDropDown " + /*index*/
|
|
4082
4078
|
(e[59] == /*activeIndex*/
|
|
4083
4079
|
e[6] && /*activeSubIndex*/
|
|
4084
4080
|
(e[7] == /*subindex*/
|
|
4085
4081
|
e[65] || /*prevSubIndex*/
|
|
4086
4082
|
e[8] == /*subindex*/
|
|
4087
|
-
e[65]) ? "active" : "")) &&
|
|
4083
|
+
e[65]) ? "active" : "")) && T(r, "class", s);
|
|
4088
4084
|
},
|
|
4089
4085
|
d(m) {
|
|
4090
4086
|
m && U(t), a = !1, u();
|
|
@@ -4101,65 +4097,65 @@ function Vt(e, t) {
|
|
|
4101
4097
|
key: e,
|
|
4102
4098
|
first: null,
|
|
4103
4099
|
c() {
|
|
4104
|
-
r =
|
|
4100
|
+
r = ve(), i && i.c(), n = ve(), this.first = r;
|
|
4105
4101
|
},
|
|
4106
|
-
m(
|
|
4107
|
-
k(
|
|
4102
|
+
m(s, o) {
|
|
4103
|
+
k(s, r, o), i && i.m(s, o), k(s, n, o);
|
|
4108
4104
|
},
|
|
4109
|
-
p(
|
|
4110
|
-
t =
|
|
4105
|
+
p(s, o) {
|
|
4106
|
+
t = s, /*index*/
|
|
4111
4107
|
t[59] == /*subGroup*/
|
|
4112
|
-
t[60].index ? i ? i.p(t,
|
|
4108
|
+
t[60].index ? i ? i.p(t, o) : (i = jt(t), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
|
|
4113
4109
|
},
|
|
4114
|
-
d(
|
|
4115
|
-
|
|
4110
|
+
d(s) {
|
|
4111
|
+
s && (U(r), U(n)), i && i.d(s);
|
|
4116
4112
|
}
|
|
4117
4113
|
};
|
|
4118
4114
|
}
|
|
4119
4115
|
function Xt(e) {
|
|
4120
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
|
4116
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = se(
|
|
4121
4117
|
/*subGroup*/
|
|
4122
4118
|
e[60].items
|
|
4123
4119
|
);
|
|
4124
|
-
const
|
|
4120
|
+
const s = (o) => (
|
|
4125
4121
|
/*subGroupItem*/
|
|
4126
|
-
|
|
4122
|
+
o[63].id
|
|
4127
4123
|
);
|
|
4128
|
-
for (let
|
|
4129
|
-
let a = Ut(e, i,
|
|
4130
|
-
r.set(u, t[
|
|
4124
|
+
for (let o = 0; o < i.length; o += 1) {
|
|
4125
|
+
let a = Ut(e, i, o), u = s(a);
|
|
4126
|
+
r.set(u, t[o] = Vt(u, a));
|
|
4131
4127
|
}
|
|
4132
4128
|
return {
|
|
4133
4129
|
c() {
|
|
4134
|
-
for (let
|
|
4135
|
-
t[
|
|
4136
|
-
n =
|
|
4130
|
+
for (let o = 0; o < t.length; o += 1)
|
|
4131
|
+
t[o].c();
|
|
4132
|
+
n = ve();
|
|
4137
4133
|
},
|
|
4138
|
-
m(
|
|
4134
|
+
m(o, a) {
|
|
4139
4135
|
for (let u = 0; u < t.length; u += 1)
|
|
4140
|
-
t[u] && t[u].m(
|
|
4141
|
-
k(
|
|
4136
|
+
t[u] && t[u].m(o, a);
|
|
4137
|
+
k(o, n, a);
|
|
4142
4138
|
},
|
|
4143
|
-
p(
|
|
4139
|
+
p(o, a) {
|
|
4144
4140
|
a[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
|
|
4145
|
-
133056 && (i =
|
|
4141
|
+
133056 && (i = se(
|
|
4146
4142
|
/*subGroup*/
|
|
4147
|
-
|
|
4148
|
-
), t = Jt(t, a,
|
|
4143
|
+
o[60].items
|
|
4144
|
+
), t = Jt(t, a, s, 1, o, i, r, n.parentNode, qt, Vt, n, Ut));
|
|
4149
4145
|
},
|
|
4150
|
-
d(
|
|
4151
|
-
|
|
4146
|
+
d(o) {
|
|
4147
|
+
o && U(n);
|
|
4152
4148
|
for (let a = 0; a < t.length; a += 1)
|
|
4153
|
-
t[a].d(
|
|
4149
|
+
t[a].d(o);
|
|
4154
4150
|
}
|
|
4155
4151
|
};
|
|
4156
4152
|
}
|
|
4157
4153
|
function Wt(e, t) {
|
|
4158
|
-
let r, n, i,
|
|
4159
|
-
function p(E,
|
|
4154
|
+
let r, n, i, s, o, a, u, l, c, m, f;
|
|
4155
|
+
function p(E, C) {
|
|
4160
4156
|
return (
|
|
4161
4157
|
/*location*/
|
|
4162
|
-
E[0] === "headerMain" ?
|
|
4158
|
+
E[0] === "headerMain" ? ho : uo
|
|
4163
4159
|
);
|
|
4164
4160
|
}
|
|
4165
4161
|
let g = p(t), b = g(t), d = (
|
|
@@ -4169,7 +4165,7 @@ function Wt(e, t) {
|
|
|
4169
4165
|
t[59]
|
|
4170
4166
|
] == !0 && kt(t)
|
|
4171
4167
|
);
|
|
4172
|
-
function
|
|
4168
|
+
function H(...E) {
|
|
4173
4169
|
return (
|
|
4174
4170
|
/*click_handler_3*/
|
|
4175
4171
|
t[39](
|
|
@@ -4185,16 +4181,16 @@ function Wt(e, t) {
|
|
|
4185
4181
|
key: e,
|
|
4186
4182
|
first: null,
|
|
4187
4183
|
c() {
|
|
4188
|
-
var E,
|
|
4189
|
-
r = P("li"), n = P("div"), i = P("img"), a =
|
|
4190
|
-
(t[3] === "true" ? "" : "DisplayNone")), _t(i.src,
|
|
4184
|
+
var E, C;
|
|
4185
|
+
r = P("li"), n = P("div"), i = P("img"), a = J(), b.c(), u = J(), d && d.c(), l = J(), T(i, "class", s = "CategoryIconImg " + /*categoriesicon*/
|
|
4186
|
+
(t[3] === "true" ? "" : "DisplayNone")), _t(i.src, o = /*handleSrc*/
|
|
4191
4187
|
t[20](
|
|
4192
4188
|
/*category*/
|
|
4193
4189
|
t[57]
|
|
4194
|
-
)) ||
|
|
4190
|
+
)) || T(i, "src", o), T(n, "class", "CategoryIcon"), T(r, "class", c = "CarouselItem " + /*activeindex*/
|
|
4195
4191
|
(((E = t[1]) == null ? void 0 : E.toString().indexOf("$")) > -1 ? (
|
|
4196
4192
|
/*activeindex*/
|
|
4197
|
-
((
|
|
4193
|
+
((C = t[1]) == null ? void 0 : C.split("$").pop()) == /*category*/
|
|
4198
4194
|
t[57].id.split("$").pop() ? "active" : ""
|
|
4199
4195
|
) : (
|
|
4200
4196
|
/*activeindex*/
|
|
@@ -4203,23 +4199,23 @@ function Wt(e, t) {
|
|
|
4203
4199
|
)) + " " + /*location*/
|
|
4204
4200
|
(t[0] == "headerMain" ? "" : "SecondaryMenu")), this.first = r;
|
|
4205
4201
|
},
|
|
4206
|
-
m(E,
|
|
4207
|
-
k(E, r,
|
|
4202
|
+
m(E, C) {
|
|
4203
|
+
k(E, r, C), M(r, n), M(n, i), M(r, a), b.m(r, null), M(r, u), d && d.m(r, null), M(r, l), m || (f = V(r, "click", H), m = !0);
|
|
4208
4204
|
},
|
|
4209
|
-
p(E,
|
|
4205
|
+
p(E, C) {
|
|
4210
4206
|
var O, L;
|
|
4211
|
-
t = E,
|
|
4212
|
-
8 &&
|
|
4213
|
-
(t[3] === "true" ? "" : "DisplayNone")) &&
|
|
4214
|
-
512 && !_t(i.src,
|
|
4207
|
+
t = E, C[0] & /*categoriesicon*/
|
|
4208
|
+
8 && s !== (s = "CategoryIconImg " + /*categoriesicon*/
|
|
4209
|
+
(t[3] === "true" ? "" : "DisplayNone")) && T(i, "class", s), C[0] & /*sliderdata*/
|
|
4210
|
+
512 && !_t(i.src, o = /*handleSrc*/
|
|
4215
4211
|
t[20](
|
|
4216
4212
|
/*category*/
|
|
4217
4213
|
t[57]
|
|
4218
|
-
)) &&
|
|
4214
|
+
)) && T(i, "src", o), g === (g = p(t)) && b ? b.p(t, C) : (b.d(1), b = g(t), b && (b.c(), b.m(r, u))), /*itemsActive*/
|
|
4219
4215
|
t[11][
|
|
4220
4216
|
/*index*/
|
|
4221
4217
|
t[59]
|
|
4222
|
-
] == !0 ? d ? d.p(t,
|
|
4218
|
+
] == !0 ? d ? d.p(t, C) : (d = kt(t), d.c(), d.m(r, l)) : d && (d.d(1), d = null), C[0] & /*activeindex, sliderdata, location*/
|
|
4223
4219
|
515 && c !== (c = "CarouselItem " + /*activeindex*/
|
|
4224
4220
|
(((O = t[1]) == null ? void 0 : O.toString().indexOf("$")) > -1 ? (
|
|
4225
4221
|
/*activeindex*/
|
|
@@ -4230,62 +4226,62 @@ function Wt(e, t) {
|
|
|
4230
4226
|
t[1] == /*category*/
|
|
4231
4227
|
t[57].id ? "active" : ""
|
|
4232
4228
|
)) + " " + /*location*/
|
|
4233
|
-
(t[0] == "headerMain" ? "" : "SecondaryMenu")) &&
|
|
4229
|
+
(t[0] == "headerMain" ? "" : "SecondaryMenu")) && T(r, "class", c);
|
|
4234
4230
|
},
|
|
4235
4231
|
d(E) {
|
|
4236
4232
|
E && U(r), b.d(), d && d.d(), m = !1, f();
|
|
4237
4233
|
}
|
|
4238
4234
|
};
|
|
4239
4235
|
}
|
|
4240
|
-
function
|
|
4241
|
-
let t, r, n, i,
|
|
4236
|
+
function co(e) {
|
|
4237
|
+
let t, r, n, i, s, o, a, u, l, c, m, f, p, g, b, d = (
|
|
4242
4238
|
/*sliderdata*/
|
|
4243
4239
|
e[9].length > 0 && Gt(e)
|
|
4244
4240
|
);
|
|
4245
4241
|
return {
|
|
4246
4242
|
c() {
|
|
4247
|
-
t = P("div"), r = P("div"), n = P("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 =
|
|
4248
|
-
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`),
|
|
4249
|
-
e[0] === "headerMain" ? "max-width: auto" : void 0),
|
|
4243
|
+
t = P("div"), r = P("div"), n = P("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 = J(), s = P("div"), o = P("ul"), a = P("li"), a.innerHTML = '<a href="#CarouselNav">Close Subs</a>', u = J(), d && d.c(), l = J(), c = P("div"), c.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>', T(n, "class", "CarouselLeftArrow"), T(a, "class", "TouchOnly"), T(o, "id", "CarouselNav"), T(o, "class", "CarouselItems"), T(s, "class", "CarouselNavWrap scroller"), T(c, "class", "CarouselRightArrow"), T(r, "class", m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
|
4244
|
+
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), T(r, "style", f = /*location*/
|
|
4245
|
+
e[0] === "headerMain" ? "max-width: auto" : void 0), T(t, "class", p = "CarouselWrapper " + /*location*/
|
|
4250
4246
|
(e[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
|
|
4251
4247
|
},
|
|
4252
|
-
m(
|
|
4253
|
-
k(
|
|
4254
|
-
|
|
4248
|
+
m(H, E) {
|
|
4249
|
+
k(H, t, E), M(t, r), M(r, n), M(r, i), M(r, s), M(s, o), M(o, a), M(o, u), d && d.m(o, null), e[40](o), e[41](s), M(r, l), M(r, c), e[43](t), g || (b = [
|
|
4250
|
+
V(
|
|
4255
4251
|
n,
|
|
4256
4252
|
"click",
|
|
4257
4253
|
/*click_handler_1*/
|
|
4258
4254
|
e[37]
|
|
4259
4255
|
),
|
|
4260
|
-
|
|
4261
|
-
|
|
4256
|
+
V(
|
|
4257
|
+
o,
|
|
4262
4258
|
"mousedown",
|
|
4263
4259
|
/*handleMouseDown*/
|
|
4264
4260
|
e[13]
|
|
4265
4261
|
),
|
|
4266
|
-
|
|
4267
|
-
|
|
4262
|
+
V(
|
|
4263
|
+
o,
|
|
4268
4264
|
"mouseleave",
|
|
4269
4265
|
/*handleMouseLeave*/
|
|
4270
4266
|
e[14]
|
|
4271
4267
|
),
|
|
4272
|
-
|
|
4273
|
-
|
|
4268
|
+
V(
|
|
4269
|
+
o,
|
|
4274
4270
|
"mouseup",
|
|
4275
4271
|
/*handleMouseUp*/
|
|
4276
4272
|
e[15]
|
|
4277
4273
|
),
|
|
4278
|
-
|
|
4279
|
-
|
|
4274
|
+
V(
|
|
4275
|
+
o,
|
|
4280
4276
|
"mousemove",
|
|
4281
4277
|
/*handleMouseMove*/
|
|
4282
4278
|
e[16]
|
|
4283
4279
|
),
|
|
4284
|
-
|
|
4280
|
+
V(o, "click", Yr(
|
|
4285
4281
|
/*click_handler*/
|
|
4286
4282
|
e[36]
|
|
4287
4283
|
)),
|
|
4288
|
-
|
|
4284
|
+
V(
|
|
4289
4285
|
c,
|
|
4290
4286
|
"click",
|
|
4291
4287
|
/*click_handler_4*/
|
|
@@ -4293,36 +4289,36 @@ function fo(e) {
|
|
|
4293
4289
|
)
|
|
4294
4290
|
], g = !0);
|
|
4295
4291
|
},
|
|
4296
|
-
p(
|
|
4292
|
+
p(H, E) {
|
|
4297
4293
|
/*sliderdata*/
|
|
4298
|
-
|
|
4294
|
+
H[9].length > 0 ? d ? d.p(H, E) : (d = Gt(H), d.c(), d.m(o, null)) : d && (d.d(1), d = null), E[0] & /*location*/
|
|
4299
4295
|
1 && m !== (m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
|
4300
|
-
|
|
4296
|
+
H[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && T(r, "class", m), E[0] & /*location*/
|
|
4301
4297
|
1 && f !== (f = /*location*/
|
|
4302
|
-
|
|
4298
|
+
H[0] === "headerMain" ? "max-width: auto" : void 0) && T(r, "style", f), E[0] & /*location*/
|
|
4303
4299
|
1 && p !== (p = "CarouselWrapper " + /*location*/
|
|
4304
|
-
(
|
|
4300
|
+
(H[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && T(t, "class", p);
|
|
4305
4301
|
},
|
|
4306
4302
|
i: $,
|
|
4307
4303
|
o: $,
|
|
4308
|
-
d(
|
|
4309
|
-
|
|
4304
|
+
d(H) {
|
|
4305
|
+
H && U(t), d && d.d(), e[40](null), e[41](null), e[43](null), g = !1, Y(b);
|
|
4310
4306
|
}
|
|
4311
4307
|
};
|
|
4312
4308
|
}
|
|
4313
|
-
function
|
|
4314
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname:
|
|
4315
|
-
|
|
4316
|
-
let
|
|
4317
|
-
const
|
|
4309
|
+
function fo(e, t, r) {
|
|
4310
|
+
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname: s = "defaultEvent" } = t, { actionevent: o = "defaultEvent" } = t, { favoritesnumber: a = "0" } = t, { location: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { identity: m = "" } = t, { translationurl: f = "" } = t, { isprimarymenu: p = !1 } = t, { issecondarymenu: g = !1 } = t, { lang: b = "" } = t, { activeindex: d = "0" } = t, { showsubgroups: H = "false" } = t, { categoriesicon: E = "false" } = t, { lobbyiconimage: C = "" } = t, { mygamesiconimage: O = "" } = t, { mbsource: L = "" } = t, v;
|
|
4311
|
+
so({ withLocale: "en", translations: {} });
|
|
4312
|
+
let S = !1, R = 0, D = 0;
|
|
4313
|
+
const ee = (h) => {
|
|
4318
4314
|
var x, I;
|
|
4319
|
-
h.preventDefault(),
|
|
4315
|
+
h.preventDefault(), S = !0, v == null || v.classList.add("dragging"), R = h.pageX - ((x = v == null ? void 0 : v.offsetLeft) != null ? x : 0), D = (I = v == null ? void 0 : v.scrollLeft) != null ? I : 0;
|
|
4320
4316
|
}, wr = (h) => {
|
|
4321
|
-
h.preventDefault(),
|
|
4317
|
+
h.preventDefault(), S = !1, v == null || v.classList.remove("dragging");
|
|
4322
4318
|
}, Cr = (h) => {
|
|
4323
|
-
|
|
4319
|
+
S = !1, v == null || v.classList.remove("dragging");
|
|
4324
4320
|
}, Hr = (h) => {
|
|
4325
|
-
if (!
|
|
4321
|
+
if (!S || !v)
|
|
4326
4322
|
return;
|
|
4327
4323
|
h.preventDefault();
|
|
4328
4324
|
const I = (h.pageX - v.offsetLeft - R) * 2.5;
|
|
@@ -4339,152 +4335,152 @@ function mo(e, t, r) {
|
|
|
4339
4335
|
Object.keys(Ft).forEach((h) => {
|
|
4340
4336
|
Ot(h, Ft[h]);
|
|
4341
4337
|
});
|
|
4342
|
-
let
|
|
4343
|
-
var
|
|
4344
|
-
if (!(h.subGroups &&
|
|
4345
|
-
if (
|
|
4338
|
+
let Z, de, De, j, pe = [], Ce = [], te = [], N, Ue = (h, x, I, Q, X) => {
|
|
4339
|
+
var q;
|
|
4340
|
+
if (!(h.subGroups && Q === null)) {
|
|
4341
|
+
if (He(), r(6, Z = x), r(6, Z), X != "secondary") {
|
|
4346
4342
|
window.postMessage(
|
|
4347
4343
|
{
|
|
4348
|
-
type:
|
|
4344
|
+
type: o == "CategoryChange" ? "CategoryChange" : "NavigateTo",
|
|
4349
4345
|
buzz: "1",
|
|
4350
4346
|
itemId: h.id,
|
|
4351
4347
|
index: x,
|
|
4352
4348
|
item: h,
|
|
4353
4349
|
path: h.path,
|
|
4354
4350
|
externalLink: h.externalLink || !1,
|
|
4355
|
-
target: ((
|
|
4351
|
+
target: ((q = h.attrs) == null ? void 0 : q.target) || null
|
|
4356
4352
|
},
|
|
4357
4353
|
window.location.href
|
|
4358
|
-
), r(7,
|
|
4354
|
+
), r(7, de = null), r(8, De = null);
|
|
4359
4355
|
return;
|
|
4360
4356
|
}
|
|
4361
|
-
r(7,
|
|
4357
|
+
r(7, de = Q), r(7, de), r(8, De = de), window.postMessage(
|
|
4362
4358
|
{
|
|
4363
|
-
type:
|
|
4359
|
+
type: o,
|
|
4364
4360
|
itemId: I.id,
|
|
4365
|
-
subIndex:
|
|
4361
|
+
subIndex: Q,
|
|
4366
4362
|
subItem: I
|
|
4367
4363
|
},
|
|
4368
4364
|
window.location.href
|
|
4369
4365
|
);
|
|
4370
4366
|
}
|
|
4371
4367
|
}, ct = () => {
|
|
4372
|
-
N && (
|
|
4368
|
+
N && (te.length !== Z ? r(12, N.scrollLeft -= 250, N) : r(12, N.scrollLeft = 0, N));
|
|
4373
4369
|
}, ft = () => {
|
|
4374
|
-
N && (
|
|
4370
|
+
N && (te.length !== Z ? r(12, N.scrollLeft += 250, N) : r(12, N.scrollLeft = 0, N));
|
|
4375
4371
|
};
|
|
4376
4372
|
const mt = (h) => {
|
|
4377
|
-
h.data.type == "SliderData" && h.data.identity == m && (r(9,
|
|
4378
|
-
x.path.endsWith("/casino") && (r(6,
|
|
4373
|
+
h.data.type == "SliderData" && h.data.identity == m && (r(9, pe = h.data.data), r(11, te = new Array(pe.length).fill(!1)), H == "true" && Br()), h.data.type == "GoToHomepage" && pe.forEach((x, I) => {
|
|
4374
|
+
x.path.endsWith("/casino") && (r(6, Z = I), r(6, Z));
|
|
4379
4375
|
});
|
|
4380
4376
|
}, Tr = () => {
|
|
4381
|
-
|
|
4377
|
+
ao(b);
|
|
4382
4378
|
}, Ar = (h, x, I) => {
|
|
4383
4379
|
if (u == "secondaryMenu" && n && i && b && h.id) {
|
|
4384
|
-
let
|
|
4385
|
-
fetch(
|
|
4386
|
-
|
|
4380
|
+
let Q = new URL(`${n}/v1/casino/groups/${i}/${h.id}/subGroups?language=${b}`);
|
|
4381
|
+
fetch(Q.href).then((X) => X.json()).then((X) => {
|
|
4382
|
+
X.index = x, r(10, Ce = Ce.concat(X)), H == "false" && window.postMessage(
|
|
4387
4383
|
{
|
|
4388
|
-
type:
|
|
4384
|
+
type: o,
|
|
4389
4385
|
itemId: h.id,
|
|
4390
4386
|
index: x,
|
|
4391
4387
|
item: h
|
|
4392
4388
|
},
|
|
4393
4389
|
window.location.href
|
|
4394
4390
|
);
|
|
4395
|
-
const
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
}),
|
|
4391
|
+
const q = [];
|
|
4392
|
+
Ce.map((Ur) => (Ur.items.forEach((dt) => {
|
|
4393
|
+
q.find((Gr) => dt.id == Gr) || q.push(dt.id);
|
|
4394
|
+
}), q.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: q }, window.location.href);
|
|
4399
4395
|
}).then(() => {
|
|
4400
|
-
v.querySelectorAll(".DropDown") &&
|
|
4396
|
+
v.querySelectorAll(".DropDown") && He();
|
|
4401
4397
|
});
|
|
4402
4398
|
}
|
|
4403
|
-
u == "headerMain" && window.postMessage({ type:
|
|
4404
|
-
},
|
|
4399
|
+
u == "headerMain" && window.postMessage({ type: o, item: h }, window.location.href);
|
|
4400
|
+
}, He = () => {
|
|
4405
4401
|
const h = v.querySelectorAll(".DropDown");
|
|
4406
4402
|
document.activeElement.blur(), N.classList.add("isScrolling");
|
|
4407
4403
|
for (let x = 0; x < h.length; x++)
|
|
4408
4404
|
h[x].style.transform = "translateX(-" + N.scrollLeft + "px)";
|
|
4409
4405
|
N.classList.remove("isScrolling");
|
|
4410
4406
|
}, Br = () => {
|
|
4411
|
-
|
|
4407
|
+
pe.forEach((h, x) => {
|
|
4412
4408
|
var I;
|
|
4413
|
-
((I = h == null ? void 0 : h.subGroups) == null ? void 0 : I.count) > 0 && (r(11,
|
|
4409
|
+
((I = h == null ? void 0 : h.subGroups) == null ? void 0 : I.count) > 0 && (r(11, te[x] = !0, te), Ar(h, x));
|
|
4414
4410
|
});
|
|
4415
4411
|
}, Ir = (h) => {
|
|
4416
4412
|
let x = "";
|
|
4417
|
-
return h.id === "LOBBY" ? x =
|
|
4413
|
+
return h.id === "LOBBY" ? x = C : h.id === "MYGAMES" && (x = O), h.icon || x;
|
|
4418
4414
|
};
|
|
4419
4415
|
rn(() => (window.addEventListener("message", mt, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
|
4420
4416
|
() => {
|
|
4421
|
-
N.addEventListener("scroll",
|
|
4417
|
+
N.addEventListener("scroll", He);
|
|
4422
4418
|
},
|
|
4423
4419
|
500
|
|
4424
4420
|
), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
|
|
4425
|
-
window.removeEventListener("message", mt), v.removeEventListener("scroll",
|
|
4421
|
+
window.removeEventListener("message", mt), v.removeEventListener("scroll", He);
|
|
4426
4422
|
}));
|
|
4427
4423
|
function Mr(h) {
|
|
4428
4424
|
nn.call(this, e, h);
|
|
4429
4425
|
}
|
|
4430
|
-
const Lr = () => ct(), Nr = (h, x, I,
|
|
4431
|
-
|
|
4426
|
+
const Lr = () => ct(), Nr = (h, x, I, Q, X) => {
|
|
4427
|
+
Ue(h, x, I, Q, "secondary"), X.stopPropagation();
|
|
4432
4428
|
}, Pr = (h, x, I) => {
|
|
4433
|
-
|
|
4429
|
+
Ue(h, x, null, null, "main"), I.preventDefault();
|
|
4434
4430
|
};
|
|
4435
4431
|
function Or(h) {
|
|
4436
|
-
|
|
4432
|
+
ye[h ? "unshift" : "push"](() => {
|
|
4437
4433
|
v = h, r(5, v);
|
|
4438
4434
|
});
|
|
4439
4435
|
}
|
|
4440
4436
|
function Fr(h) {
|
|
4441
|
-
|
|
4437
|
+
ye[h ? "unshift" : "push"](() => {
|
|
4442
4438
|
N = h, r(12, N);
|
|
4443
4439
|
});
|
|
4444
4440
|
}
|
|
4445
4441
|
const Rr = () => ft();
|
|
4446
4442
|
function Dr(h) {
|
|
4447
|
-
|
|
4448
|
-
|
|
4443
|
+
ye[h ? "unshift" : "push"](() => {
|
|
4444
|
+
j = h, r(4, j);
|
|
4449
4445
|
});
|
|
4450
4446
|
}
|
|
4451
4447
|
return e.$$set = (h) => {
|
|
4452
|
-
"endpoint" in h && r(21, n = h.endpoint), "datasource" in h && r(22, i = h.datasource), "onclickeventname" in h && r(23,
|
|
4448
|
+
"endpoint" in h && r(21, n = h.endpoint), "datasource" in h && r(22, i = h.datasource), "onclickeventname" in h && r(23, s = h.onclickeventname), "actionevent" in h && r(24, o = h.actionevent), "favoritesnumber" in h && r(25, a = h.favoritesnumber), "location" in h && r(0, u = h.location), "clientstyling" in h && r(26, l = h.clientstyling), "clientstylingurl" in h && r(27, c = h.clientstylingurl), "identity" in h && r(28, m = h.identity), "translationurl" in h && r(29, f = h.translationurl), "isprimarymenu" in h && r(30, p = h.isprimarymenu), "issecondarymenu" in h && r(31, g = h.issecondarymenu), "lang" in h && r(32, b = h.lang), "activeindex" in h && r(1, d = h.activeindex), "showsubgroups" in h && r(2, H = h.showsubgroups), "categoriesicon" in h && r(3, E = h.categoriesicon), "lobbyiconimage" in h && r(33, C = h.lobbyiconimage), "mygamesiconimage" in h && r(34, O = h.mygamesiconimage), "mbsource" in h && r(35, L = h.mbsource);
|
|
4453
4449
|
}, e.$$.update = () => {
|
|
4454
4450
|
e.$$.dirty[0] & /*activeindex*/
|
|
4455
4451
|
2, e.$$.dirty[0] & /*translationurl*/
|
|
4456
4452
|
536870912 && f && Sr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4457
|
-
67108880 && l &&
|
|
4458
|
-
134217744 && c &&
|
|
4453
|
+
67108880 && l && j && bn(j, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4454
|
+
134217744 && c && j && yn(j, c), e.$$.dirty[0] & /*customStylingContainer*/
|
|
4459
4455
|
16 | e.$$.dirty[1] & /*mbsource*/
|
|
4460
|
-
16 && L &&
|
|
4456
|
+
16 && L && j && vn(j, `${L}.Style`), e.$$.dirty[1] & /*lang*/
|
|
4461
4457
|
2 && b && Tr();
|
|
4462
4458
|
}, [
|
|
4463
4459
|
u,
|
|
4464
4460
|
d,
|
|
4465
|
-
|
|
4461
|
+
H,
|
|
4466
4462
|
E,
|
|
4467
|
-
|
|
4463
|
+
j,
|
|
4468
4464
|
v,
|
|
4469
|
-
|
|
4465
|
+
Z,
|
|
4466
|
+
de,
|
|
4467
|
+
De,
|
|
4470
4468
|
pe,
|
|
4471
|
-
|
|
4472
|
-
ge,
|
|
4473
|
-
He,
|
|
4474
|
-
re,
|
|
4475
|
-
N,
|
|
4469
|
+
Ce,
|
|
4476
4470
|
te,
|
|
4471
|
+
N,
|
|
4472
|
+
ee,
|
|
4477
4473
|
wr,
|
|
4478
4474
|
Cr,
|
|
4479
4475
|
Hr,
|
|
4480
|
-
|
|
4476
|
+
Ue,
|
|
4481
4477
|
ct,
|
|
4482
4478
|
ft,
|
|
4483
4479
|
Ir,
|
|
4484
4480
|
n,
|
|
4485
4481
|
i,
|
|
4486
|
-
o,
|
|
4487
4482
|
s,
|
|
4483
|
+
o,
|
|
4488
4484
|
a,
|
|
4489
4485
|
l,
|
|
4490
4486
|
c,
|
|
@@ -4493,7 +4489,7 @@ function mo(e, t, r) {
|
|
|
4493
4489
|
p,
|
|
4494
4490
|
g,
|
|
4495
4491
|
b,
|
|
4496
|
-
|
|
4492
|
+
C,
|
|
4497
4493
|
O,
|
|
4498
4494
|
L,
|
|
4499
4495
|
Mr,
|
|
@@ -4506,13 +4502,13 @@ function mo(e, t, r) {
|
|
|
4506
4502
|
Dr
|
|
4507
4503
|
];
|
|
4508
4504
|
}
|
|
4509
|
-
class
|
|
4505
|
+
class mo extends pn {
|
|
4510
4506
|
constructor(t) {
|
|
4511
4507
|
super(), mn(
|
|
4512
4508
|
this,
|
|
4513
4509
|
t,
|
|
4514
|
-
mo,
|
|
4515
4510
|
fo,
|
|
4511
|
+
co,
|
|
4516
4512
|
Zt,
|
|
4517
4513
|
{
|
|
4518
4514
|
endpoint: 21,
|
|
@@ -4535,7 +4531,7 @@ class po extends pn {
|
|
|
4535
4531
|
mygamesiconimage: 34,
|
|
4536
4532
|
mbsource: 35
|
|
4537
4533
|
},
|
|
4538
|
-
|
|
4534
|
+
lo,
|
|
4539
4535
|
[-1, -1, -1]
|
|
4540
4536
|
);
|
|
4541
4537
|
}
|
|
@@ -4654,7 +4650,7 @@ class po extends pn {
|
|
|
4654
4650
|
this.$$set({ mbsource: t }), B();
|
|
4655
4651
|
}
|
|
4656
4652
|
}
|
|
4657
|
-
dn(
|
|
4653
|
+
dn(mo, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
|
4658
4654
|
export {
|
|
4659
|
-
|
|
4655
|
+
mo as default
|
|
4660
4656
|
};
|