@everymatrix/casino-hamburger-menu-nd 1.76.0 → 1.76.1
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/CasinoHamburgerMenuNd-DfEuISYI.cjs +18 -0
- package/components/{CasinoHamburgerMenuNd-BOLmp713.js → CasinoHamburgerMenuNd-DvsaFjKg.js} +1015 -1036
- package/components/{CasinoHamburgerMenuNd-DkK6CHR3.js → CasinoHamburgerMenuNd-Y9oVYPBS.js} +978 -999
- package/es2015/casino-hamburger-menu-nd.cjs +1 -1
- package/es2015/casino-hamburger-menu-nd.js +1 -1
- package/esnext/casino-hamburger-menu-nd.js +1 -1
- package/package.json +1 -1
- package/components/CasinoHamburgerMenuNd-CVclT4vf.cjs +0 -18
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function $() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function cr(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Ht() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function de(e) {
|
|
10
|
+
e.forEach(cr);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function dt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function fr(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let Oe;
|
|
19
19
|
function K(e, t) {
|
|
20
20
|
return e === t ? !0 : (Oe || (Oe = document.createElement("a")), Oe.href = t, e === Oe.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function an(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function dr(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function mr(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function sn(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(dr(t, r));
|
|
36
36
|
}
|
|
37
37
|
function b(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
40
|
function ln(e, t, r) {
|
|
41
|
-
const n =
|
|
41
|
+
const n = un(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = y("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, hn(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function un(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function hn(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function hn(e, t) {
|
|
58
58
|
return b(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -67,14 +67,14 @@ function F(e, t, r) {
|
|
|
67
67
|
function I(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function we(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
74
74
|
function y(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Tt(e) {
|
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
79
79
|
}
|
|
80
80
|
function ee(e) {
|
|
@@ -83,26 +83,26 @@ function ee(e) {
|
|
|
83
83
|
function U() {
|
|
84
84
|
return ee(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function mr() {
|
|
87
87
|
return ee("");
|
|
88
88
|
}
|
|
89
89
|
function te(e, t, r, n) {
|
|
90
90
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function p(e, t, r) {
|
|
93
93
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function cn(e) {
|
|
96
96
|
return Array.from(e.childNodes);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function me(e, t) {
|
|
99
99
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
100
100
|
t);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Ot(e, t) {
|
|
103
103
|
e.value = t ?? "";
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Mt(e, t, r) {
|
|
106
106
|
for (let n = 0; n < e.options.length; n += 1) {
|
|
107
107
|
const i = e.options[n];
|
|
108
108
|
if (i.__value === t) {
|
|
@@ -112,7 +112,7 @@ function Pt(e, t, r) {
|
|
|
112
112
|
}
|
|
113
113
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function fn(e) {
|
|
116
116
|
const t = e.querySelector(":checked");
|
|
117
117
|
return t && t.__value;
|
|
118
118
|
}
|
|
@@ -125,128 +125,128 @@ function dn(e) {
|
|
|
125
125
|
}
|
|
126
126
|
), t;
|
|
127
127
|
}
|
|
128
|
-
let
|
|
129
|
-
function
|
|
130
|
-
|
|
128
|
+
let _e;
|
|
129
|
+
function ye(e) {
|
|
130
|
+
_e = e;
|
|
131
131
|
}
|
|
132
132
|
function mn() {
|
|
133
|
-
if (!
|
|
133
|
+
if (!_e)
|
|
134
134
|
throw new Error("Function called outside component initialization");
|
|
135
|
-
return
|
|
135
|
+
return _e;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function pn(e) {
|
|
138
138
|
mn().$$.on_mount.push(e);
|
|
139
139
|
}
|
|
140
140
|
const ae = [], Ce = [];
|
|
141
141
|
let se = [];
|
|
142
|
-
const
|
|
143
|
-
let
|
|
144
|
-
function
|
|
145
|
-
|
|
142
|
+
const At = [], gn = /* @__PURE__ */ Promise.resolve();
|
|
143
|
+
let Ke = !1;
|
|
144
|
+
function bn() {
|
|
145
|
+
Ke || (Ke = !0, gn.then(D));
|
|
146
146
|
}
|
|
147
147
|
function Ne(e) {
|
|
148
148
|
se.push(e);
|
|
149
149
|
}
|
|
150
|
-
const
|
|
150
|
+
const Ve = /* @__PURE__ */ new Set();
|
|
151
151
|
let ie = 0;
|
|
152
|
-
function
|
|
152
|
+
function D() {
|
|
153
153
|
if (ie !== 0)
|
|
154
154
|
return;
|
|
155
|
-
const e =
|
|
155
|
+
const e = _e;
|
|
156
156
|
do {
|
|
157
157
|
try {
|
|
158
158
|
for (; ie < ae.length; ) {
|
|
159
159
|
const t = ae[ie];
|
|
160
|
-
ie++,
|
|
160
|
+
ie++, ye(t), vn(t.$$);
|
|
161
161
|
}
|
|
162
162
|
} catch (t) {
|
|
163
163
|
throw ae.length = 0, ie = 0, t;
|
|
164
164
|
}
|
|
165
|
-
for (
|
|
165
|
+
for (ye(null), ae.length = 0, ie = 0; Ce.length; )
|
|
166
166
|
Ce.pop()();
|
|
167
167
|
for (let t = 0; t < se.length; t += 1) {
|
|
168
168
|
const r = se[t];
|
|
169
|
-
|
|
169
|
+
Ve.has(r) || (Ve.add(r), r());
|
|
170
170
|
}
|
|
171
171
|
se.length = 0;
|
|
172
172
|
} while (ae.length);
|
|
173
|
-
for (;
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
for (; At.length; )
|
|
174
|
+
At.pop()();
|
|
175
|
+
Ke = !1, Ve.clear(), ye(e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function vn(e) {
|
|
178
178
|
if (e.fragment !== null) {
|
|
179
|
-
e.update(),
|
|
179
|
+
e.update(), de(e.before_update);
|
|
180
180
|
const t = e.dirty;
|
|
181
181
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function yn(e) {
|
|
185
185
|
const t = [], r = [];
|
|
186
186
|
se.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), se = t;
|
|
187
187
|
}
|
|
188
|
-
const
|
|
189
|
-
function
|
|
190
|
-
e && e.i && (
|
|
188
|
+
const _n = /* @__PURE__ */ new Set();
|
|
189
|
+
function xn(e, t) {
|
|
190
|
+
e && e.i && (_n.delete(e), e.i(t));
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Q(e) {
|
|
193
193
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function En(e, t, r) {
|
|
196
196
|
const { fragment: n, after_update: i } = e.$$;
|
|
197
197
|
n && n.m(t, r), Ne(() => {
|
|
198
|
-
const o = e.$$.on_mount.map(
|
|
199
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
198
|
+
const o = e.$$.on_mount.map(cr).filter(dt);
|
|
199
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : de(o), e.$$.on_mount = [];
|
|
200
200
|
}), i.forEach(Ne);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function wn(e, t) {
|
|
203
203
|
const r = e.$$;
|
|
204
|
-
r.fragment !== null && (
|
|
204
|
+
r.fragment !== null && (yn(r.after_update), de(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
e.$$.dirty[0] === -1 && (ae.push(e),
|
|
206
|
+
function Sn(e, t) {
|
|
207
|
+
e.$$.dirty[0] === -1 && (ae.push(e), bn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
const
|
|
211
|
-
|
|
212
|
-
const
|
|
209
|
+
function Hn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
210
|
+
const l = _e;
|
|
211
|
+
ye(e);
|
|
212
|
+
const u = e.$$ = {
|
|
213
213
|
fragment: null,
|
|
214
214
|
ctx: [],
|
|
215
215
|
// state
|
|
216
216
|
props: o,
|
|
217
217
|
update: $,
|
|
218
218
|
not_equal: i,
|
|
219
|
-
bound:
|
|
219
|
+
bound: Ht(),
|
|
220
220
|
// lifecycle
|
|
221
221
|
on_mount: [],
|
|
222
222
|
on_destroy: [],
|
|
223
223
|
on_disconnect: [],
|
|
224
224
|
before_update: [],
|
|
225
225
|
after_update: [],
|
|
226
|
-
context: new Map(t.context || (
|
|
226
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
227
227
|
// everything else
|
|
228
|
-
callbacks:
|
|
228
|
+
callbacks: Ht(),
|
|
229
229
|
dirty: s,
|
|
230
230
|
skip_bound: !1,
|
|
231
|
-
root: t.target ||
|
|
231
|
+
root: t.target || l.$$.root
|
|
232
232
|
};
|
|
233
|
-
a && a(
|
|
233
|
+
a && a(u.root);
|
|
234
234
|
let h = !1;
|
|
235
|
-
if (
|
|
236
|
-
const g =
|
|
237
|
-
return
|
|
238
|
-
}) : [],
|
|
235
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
236
|
+
const g = m.length ? m[0] : f;
|
|
237
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && Sn(e, c)), f;
|
|
238
|
+
}) : [], u.update(), h = !0, de(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
239
239
|
if (t.hydrate) {
|
|
240
|
-
const c =
|
|
241
|
-
|
|
240
|
+
const c = cn(t.target);
|
|
241
|
+
u.fragment && u.fragment.l(c), c.forEach(I);
|
|
242
242
|
} else
|
|
243
|
-
|
|
244
|
-
t.intro &&
|
|
243
|
+
u.fragment && u.fragment.c();
|
|
244
|
+
t.intro && xn(e.$$.fragment), En(e, t.target, t.anchor), D();
|
|
245
245
|
}
|
|
246
|
-
|
|
246
|
+
ye(l);
|
|
247
247
|
}
|
|
248
|
-
let
|
|
249
|
-
typeof HTMLElement == "function" && (
|
|
248
|
+
let pr;
|
|
249
|
+
typeof HTMLElement == "function" && (pr = class extends HTMLElement {
|
|
250
250
|
/** The Svelte component constructor */
|
|
251
251
|
$$ctor;
|
|
252
252
|
/** Slots */
|
|
@@ -288,17 +288,17 @@ typeof HTMLElement == "function" && (br = class extends HTMLElement {
|
|
|
288
288
|
let o;
|
|
289
289
|
return {
|
|
290
290
|
c: function() {
|
|
291
|
-
o = y("slot"), i !== "default" &&
|
|
291
|
+
o = y("slot"), i !== "default" && p(o, "name", i);
|
|
292
292
|
},
|
|
293
293
|
/**
|
|
294
294
|
* @param {HTMLElement} target
|
|
295
295
|
* @param {HTMLElement} [anchor]
|
|
296
296
|
*/
|
|
297
|
-
m: function(
|
|
298
|
-
F(
|
|
297
|
+
m: function(l, u) {
|
|
298
|
+
F(l, o, u);
|
|
299
299
|
},
|
|
300
|
-
d: function(
|
|
301
|
-
|
|
300
|
+
d: function(l) {
|
|
301
|
+
l && I(o);
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
304
|
};
|
|
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (br = class extends HTMLElement {
|
|
|
310
310
|
i in r && (t[i] = [e(i)]);
|
|
311
311
|
for (const i of this.attributes) {
|
|
312
312
|
const o = this.$$g_p(i.name);
|
|
313
|
-
o in this.$$d || (this.$$d[o] =
|
|
313
|
+
o in this.$$d || (this.$$d[o] = Be(o, i.value, this.$$p_d, "toProp"));
|
|
314
314
|
}
|
|
315
315
|
for (const i in this.$$p_d)
|
|
316
316
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -328,7 +328,7 @@ typeof HTMLElement == "function" && (br = class extends HTMLElement {
|
|
|
328
328
|
this.$$r = !0;
|
|
329
329
|
for (const i in this.$$p_d)
|
|
330
330
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
331
|
-
const o =
|
|
331
|
+
const o = Be(
|
|
332
332
|
i,
|
|
333
333
|
this.$$d[i],
|
|
334
334
|
this.$$p_d,
|
|
@@ -350,7 +350,7 @@ typeof HTMLElement == "function" && (br = class extends HTMLElement {
|
|
|
350
350
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
351
351
|
// and setting attributes through setAttribute etc, this is helpful
|
|
352
352
|
attributeChangedCallback(e, t, r) {
|
|
353
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
353
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Be(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
354
354
|
}
|
|
355
355
|
disconnectedCallback() {
|
|
356
356
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -363,7 +363,7 @@ typeof HTMLElement == "function" && (br = class extends HTMLElement {
|
|
|
363
363
|
) || e;
|
|
364
364
|
}
|
|
365
365
|
});
|
|
366
|
-
function
|
|
366
|
+
function Be(e, t, r, n) {
|
|
367
367
|
const i = r[e]?.type;
|
|
368
368
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
369
369
|
return t;
|
|
@@ -392,8 +392,8 @@ function Pe(e, t, r, n) {
|
|
|
392
392
|
return t;
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
let a = class extends
|
|
395
|
+
function Tn(e, t, r, n, i, o) {
|
|
396
|
+
let a = class extends pr {
|
|
397
397
|
constructor() {
|
|
398
398
|
super(e, r, i), this.$$p_d = t;
|
|
399
399
|
}
|
|
@@ -408,8 +408,8 @@ function On(e, t, r, n, i, o) {
|
|
|
408
408
|
get() {
|
|
409
409
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
410
410
|
},
|
|
411
|
-
set(
|
|
412
|
-
|
|
411
|
+
set(l) {
|
|
412
|
+
l = Be(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
|
|
413
413
|
}
|
|
414
414
|
});
|
|
415
415
|
}), n.forEach((s) => {
|
|
@@ -421,7 +421,7 @@ function On(e, t, r, n, i, o) {
|
|
|
421
421
|
}), e.element = /** @type {any} */
|
|
422
422
|
a, a;
|
|
423
423
|
}
|
|
424
|
-
class
|
|
424
|
+
class On {
|
|
425
425
|
/**
|
|
426
426
|
* ### PRIVATE API
|
|
427
427
|
*
|
|
@@ -440,7 +440,7 @@ class An {
|
|
|
440
440
|
$$set = void 0;
|
|
441
441
|
/** @returns {void} */
|
|
442
442
|
$destroy() {
|
|
443
|
-
|
|
443
|
+
wn(this, 1), this.$destroy = $;
|
|
444
444
|
}
|
|
445
445
|
/**
|
|
446
446
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -449,7 +449,7 @@ class An {
|
|
|
449
449
|
* @returns {() => void}
|
|
450
450
|
*/
|
|
451
451
|
$on(t, r) {
|
|
452
|
-
if (!
|
|
452
|
+
if (!dt(r))
|
|
453
453
|
return $;
|
|
454
454
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
455
455
|
return n.push(r), () => {
|
|
@@ -462,7 +462,7 @@ class An {
|
|
|
462
462
|
* @returns {void}
|
|
463
463
|
*/
|
|
464
464
|
$set(t) {
|
|
465
|
-
this.$$set && !
|
|
465
|
+
this.$$set && !an(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
const Mn = "4";
|
|
@@ -481,24 +481,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
481
481
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
482
482
|
PERFORMANCE OF THIS SOFTWARE.
|
|
483
483
|
***************************************************************************** */
|
|
484
|
-
var
|
|
485
|
-
return
|
|
484
|
+
var et = function(e, t) {
|
|
485
|
+
return et = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
486
486
|
r.__proto__ = n;
|
|
487
487
|
} || function(r, n) {
|
|
488
488
|
for (var i in n)
|
|
489
489
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
490
|
-
},
|
|
490
|
+
}, et(e, t);
|
|
491
491
|
};
|
|
492
|
-
function
|
|
492
|
+
function Y(e, t) {
|
|
493
493
|
if (typeof t != "function" && t !== null)
|
|
494
494
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
495
|
-
|
|
495
|
+
et(e, t);
|
|
496
496
|
function r() {
|
|
497
497
|
this.constructor = e;
|
|
498
498
|
}
|
|
499
499
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
var w = function() {
|
|
502
|
+
return w = Object.assign || function(t) {
|
|
503
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
504
|
+
r = arguments[n];
|
|
505
|
+
for (var o in r)
|
|
506
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
507
|
+
}
|
|
508
|
+
return t;
|
|
509
|
+
}, w.apply(this, arguments);
|
|
510
|
+
};
|
|
511
|
+
function An(e, t) {
|
|
512
|
+
var r = {};
|
|
513
|
+
for (var n in e)
|
|
514
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
515
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
516
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
517
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
518
|
+
return r;
|
|
519
|
+
}
|
|
520
|
+
function tt(e) {
|
|
502
521
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
503
522
|
if (r)
|
|
504
523
|
return r.call(e);
|
|
@@ -510,7 +529,7 @@ function nt(e) {
|
|
|
510
529
|
};
|
|
511
530
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
512
531
|
}
|
|
513
|
-
function
|
|
532
|
+
function rt(e, t) {
|
|
514
533
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
515
534
|
if (!r)
|
|
516
535
|
return e;
|
|
@@ -530,22 +549,22 @@ function it(e, t) {
|
|
|
530
549
|
}
|
|
531
550
|
return o;
|
|
532
551
|
}
|
|
533
|
-
function
|
|
534
|
-
if (arguments.length === 2)
|
|
552
|
+
function le(e, t, r) {
|
|
553
|
+
if (r || arguments.length === 2)
|
|
535
554
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
536
555
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
537
556
|
return e.concat(o || t);
|
|
538
557
|
}
|
|
539
|
-
function
|
|
558
|
+
function Z(e) {
|
|
540
559
|
return typeof e == "function";
|
|
541
560
|
}
|
|
542
|
-
function
|
|
561
|
+
function gr(e) {
|
|
543
562
|
var t = function(n) {
|
|
544
563
|
Error.call(n), n.stack = new Error().stack;
|
|
545
564
|
}, r = e(t);
|
|
546
565
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
547
566
|
}
|
|
548
|
-
var
|
|
567
|
+
var Xe = gr(function(e) {
|
|
549
568
|
return function(r) {
|
|
550
569
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
551
570
|
` + r.map(function(n, i) {
|
|
@@ -554,13 +573,13 @@ var Ze = vr(function(e) {
|
|
|
554
573
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
555
574
|
};
|
|
556
575
|
});
|
|
557
|
-
function
|
|
576
|
+
function nt(e, t) {
|
|
558
577
|
if (e) {
|
|
559
578
|
var r = e.indexOf(t);
|
|
560
579
|
0 <= r && e.splice(r, 1);
|
|
561
580
|
}
|
|
562
581
|
}
|
|
563
|
-
var
|
|
582
|
+
var Fe = function() {
|
|
564
583
|
function e(t) {
|
|
565
584
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
566
585
|
}
|
|
@@ -572,15 +591,15 @@ var ke = function() {
|
|
|
572
591
|
if (a)
|
|
573
592
|
if (this._parentage = null, Array.isArray(a))
|
|
574
593
|
try {
|
|
575
|
-
for (var s =
|
|
576
|
-
var
|
|
577
|
-
|
|
594
|
+
for (var s = tt(a), l = s.next(); !l.done; l = s.next()) {
|
|
595
|
+
var u = l.value;
|
|
596
|
+
u.remove(this);
|
|
578
597
|
}
|
|
579
598
|
} catch (v) {
|
|
580
599
|
t = { error: v };
|
|
581
600
|
} finally {
|
|
582
601
|
try {
|
|
583
|
-
|
|
602
|
+
l && !l.done && (r = s.return) && r.call(s);
|
|
584
603
|
} finally {
|
|
585
604
|
if (t)
|
|
586
605
|
throw t.error;
|
|
@@ -589,29 +608,29 @@ var ke = function() {
|
|
|
589
608
|
else
|
|
590
609
|
a.remove(this);
|
|
591
610
|
var h = this.initialTeardown;
|
|
592
|
-
if (
|
|
611
|
+
if (Z(h))
|
|
593
612
|
try {
|
|
594
613
|
h();
|
|
595
614
|
} catch (v) {
|
|
596
|
-
o = v instanceof
|
|
615
|
+
o = v instanceof Xe ? v.errors : [v];
|
|
597
616
|
}
|
|
598
617
|
var c = this._finalizers;
|
|
599
618
|
if (c) {
|
|
600
619
|
this._finalizers = null;
|
|
601
620
|
try {
|
|
602
|
-
for (var f =
|
|
603
|
-
var g =
|
|
621
|
+
for (var f = tt(c), m = f.next(); !m.done; m = f.next()) {
|
|
622
|
+
var g = m.value;
|
|
604
623
|
try {
|
|
605
|
-
|
|
624
|
+
Bt(g);
|
|
606
625
|
} catch (v) {
|
|
607
|
-
o = o ?? [], v instanceof
|
|
626
|
+
o = o ?? [], v instanceof Xe ? o = le(le([], rt(o)), rt(v.errors)) : o.push(v);
|
|
608
627
|
}
|
|
609
628
|
}
|
|
610
629
|
} catch (v) {
|
|
611
630
|
n = { error: v };
|
|
612
631
|
} finally {
|
|
613
632
|
try {
|
|
614
|
-
|
|
633
|
+
m && !m.done && (i = f.return) && i.call(f);
|
|
615
634
|
} finally {
|
|
616
635
|
if (n)
|
|
617
636
|
throw n.error;
|
|
@@ -619,13 +638,13 @@ var ke = function() {
|
|
|
619
638
|
}
|
|
620
639
|
}
|
|
621
640
|
if (o)
|
|
622
|
-
throw new
|
|
641
|
+
throw new Xe(o);
|
|
623
642
|
}
|
|
624
643
|
}, e.prototype.add = function(t) {
|
|
625
644
|
var r;
|
|
626
645
|
if (t && t !== this)
|
|
627
646
|
if (this.closed)
|
|
628
|
-
|
|
647
|
+
Bt(t);
|
|
629
648
|
else {
|
|
630
649
|
if (t instanceof e) {
|
|
631
650
|
if (t.closed || t._hasParent(this))
|
|
@@ -642,28 +661,32 @@ var ke = function() {
|
|
|
642
661
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
643
662
|
}, e.prototype._removeParent = function(t) {
|
|
644
663
|
var r = this._parentage;
|
|
645
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
664
|
+
r === t ? this._parentage = null : Array.isArray(r) && nt(r, t);
|
|
646
665
|
}, e.prototype.remove = function(t) {
|
|
647
666
|
var r = this._finalizers;
|
|
648
|
-
r &&
|
|
667
|
+
r && nt(r, t), t instanceof e && t._removeParent(this);
|
|
649
668
|
}, e.EMPTY = function() {
|
|
650
669
|
var t = new e();
|
|
651
670
|
return t.closed = !0, t;
|
|
652
671
|
}(), e;
|
|
653
|
-
}(),
|
|
654
|
-
function
|
|
655
|
-
return e instanceof
|
|
672
|
+
}(), br = Fe.EMPTY;
|
|
673
|
+
function vr(e) {
|
|
674
|
+
return e instanceof Fe || e && "closed" in e && Z(e.remove) && Z(e.add) && Z(e.unsubscribe);
|
|
656
675
|
}
|
|
657
|
-
function
|
|
658
|
-
|
|
676
|
+
function Bt(e) {
|
|
677
|
+
Z(e) ? e() : e.unsubscribe();
|
|
659
678
|
}
|
|
660
|
-
var
|
|
661
|
-
|
|
679
|
+
var yr = {
|
|
680
|
+
onUnhandledError: null,
|
|
681
|
+
onStoppedNotification: null,
|
|
682
|
+
Promise: void 0,
|
|
683
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
684
|
+
useDeprecatedNextContext: !1
|
|
662
685
|
}, Bn = {
|
|
663
686
|
setTimeout: function(e, t) {
|
|
664
687
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
665
688
|
r[n - 2] = arguments[n];
|
|
666
|
-
return setTimeout.apply(void 0,
|
|
689
|
+
return setTimeout.apply(void 0, le([e, t], rt(r)));
|
|
667
690
|
},
|
|
668
691
|
clearTimeout: function(e) {
|
|
669
692
|
return clearTimeout(e);
|
|
@@ -675,19 +698,19 @@ function Ln(e) {
|
|
|
675
698
|
throw e;
|
|
676
699
|
});
|
|
677
700
|
}
|
|
678
|
-
function
|
|
701
|
+
function Lt() {
|
|
679
702
|
}
|
|
680
|
-
function
|
|
703
|
+
function Le(e) {
|
|
681
704
|
e();
|
|
682
705
|
}
|
|
683
|
-
var
|
|
684
|
-
|
|
706
|
+
var _r = function(e) {
|
|
707
|
+
Y(t, e);
|
|
685
708
|
function t(r) {
|
|
686
709
|
var n = e.call(this) || this;
|
|
687
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
710
|
+
return n.isStopped = !1, r ? (n.destination = r, vr(r) && r.add(n)) : n.destination = Nn, n;
|
|
688
711
|
}
|
|
689
712
|
return t.create = function(r, n, i) {
|
|
690
|
-
return new
|
|
713
|
+
return new it(r, n, i);
|
|
691
714
|
}, t.prototype.next = function(r) {
|
|
692
715
|
this.isStopped || this._next(r);
|
|
693
716
|
}, t.prototype.error = function(r) {
|
|
@@ -711,7 +734,11 @@ var xr = function(e) {
|
|
|
711
734
|
this.unsubscribe();
|
|
712
735
|
}
|
|
713
736
|
}, t;
|
|
714
|
-
}(
|
|
737
|
+
}(Fe), Pn = Function.prototype.bind;
|
|
738
|
+
function ze(e, t) {
|
|
739
|
+
return Pn.call(e, t);
|
|
740
|
+
}
|
|
741
|
+
var In = function() {
|
|
715
742
|
function e(t) {
|
|
716
743
|
this.partialObserver = t;
|
|
717
744
|
}
|
|
@@ -721,7 +748,7 @@ var xr = function(e) {
|
|
|
721
748
|
try {
|
|
722
749
|
r.next(t);
|
|
723
750
|
} catch (n) {
|
|
724
|
-
|
|
751
|
+
Me(n);
|
|
725
752
|
}
|
|
726
753
|
}, e.prototype.error = function(t) {
|
|
727
754
|
var r = this.partialObserver;
|
|
@@ -729,32 +756,44 @@ var xr = function(e) {
|
|
|
729
756
|
try {
|
|
730
757
|
r.error(t);
|
|
731
758
|
} catch (n) {
|
|
732
|
-
|
|
759
|
+
Me(n);
|
|
733
760
|
}
|
|
734
761
|
else
|
|
735
|
-
|
|
762
|
+
Me(t);
|
|
736
763
|
}, e.prototype.complete = function() {
|
|
737
764
|
var t = this.partialObserver;
|
|
738
765
|
if (t.complete)
|
|
739
766
|
try {
|
|
740
767
|
t.complete();
|
|
741
768
|
} catch (r) {
|
|
742
|
-
|
|
769
|
+
Me(r);
|
|
743
770
|
}
|
|
744
771
|
}, e;
|
|
745
|
-
}(),
|
|
746
|
-
|
|
772
|
+
}(), it = function(e) {
|
|
773
|
+
Y(t, e);
|
|
747
774
|
function t(r, n, i) {
|
|
748
775
|
var o = e.call(this) || this, a;
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
776
|
+
if (Z(r) || !r)
|
|
777
|
+
a = {
|
|
778
|
+
next: r ?? void 0,
|
|
779
|
+
error: n ?? void 0,
|
|
780
|
+
complete: i ?? void 0
|
|
781
|
+
};
|
|
782
|
+
else {
|
|
783
|
+
var s;
|
|
784
|
+
o && yr.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
785
|
+
return o.unsubscribe();
|
|
786
|
+
}, a = {
|
|
787
|
+
next: r.next && ze(r.next, s),
|
|
788
|
+
error: r.error && ze(r.error, s),
|
|
789
|
+
complete: r.complete && ze(r.complete, s)
|
|
790
|
+
}) : a = r;
|
|
791
|
+
}
|
|
792
|
+
return o.destination = new In(a), o;
|
|
754
793
|
}
|
|
755
794
|
return t;
|
|
756
|
-
}(
|
|
757
|
-
function
|
|
795
|
+
}(_r);
|
|
796
|
+
function Me(e) {
|
|
758
797
|
Ln(e);
|
|
759
798
|
}
|
|
760
799
|
function Cn(e) {
|
|
@@ -762,9 +801,9 @@ function Cn(e) {
|
|
|
762
801
|
}
|
|
763
802
|
var Nn = {
|
|
764
803
|
closed: !0,
|
|
765
|
-
next:
|
|
804
|
+
next: Lt,
|
|
766
805
|
error: Cn,
|
|
767
|
-
complete:
|
|
806
|
+
complete: Lt
|
|
768
807
|
}, Rn = function() {
|
|
769
808
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
770
809
|
}();
|
|
@@ -778,7 +817,7 @@ function Fn(e) {
|
|
|
778
817
|
}, r);
|
|
779
818
|
};
|
|
780
819
|
}
|
|
781
|
-
var
|
|
820
|
+
var Pt = function() {
|
|
782
821
|
function e(t) {
|
|
783
822
|
t && (this._subscribe = t);
|
|
784
823
|
}
|
|
@@ -786,10 +825,10 @@ var Ct = function() {
|
|
|
786
825
|
var r = new e();
|
|
787
826
|
return r.source = this, r.operator = t, r;
|
|
788
827
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
789
|
-
var i = this, o =
|
|
790
|
-
return
|
|
791
|
-
var a = i, s = a.operator,
|
|
792
|
-
o.add(s ? s.call(o,
|
|
828
|
+
var i = this, o = kn(t) ? t : new it(t, r, n);
|
|
829
|
+
return Le(function() {
|
|
830
|
+
var a = i, s = a.operator, l = a.source;
|
|
831
|
+
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
793
832
|
}), o;
|
|
794
833
|
}, e.prototype._trySubscribe = function(t) {
|
|
795
834
|
try {
|
|
@@ -799,13 +838,13 @@ var Ct = function() {
|
|
|
799
838
|
}
|
|
800
839
|
}, e.prototype.forEach = function(t, r) {
|
|
801
840
|
var n = this;
|
|
802
|
-
return r =
|
|
803
|
-
var a = new
|
|
841
|
+
return r = It(r), new r(function(i, o) {
|
|
842
|
+
var a = new it({
|
|
804
843
|
next: function(s) {
|
|
805
844
|
try {
|
|
806
845
|
t(s);
|
|
807
|
-
} catch (
|
|
808
|
-
o(
|
|
846
|
+
} catch (l) {
|
|
847
|
+
o(l), a.unsubscribe();
|
|
809
848
|
}
|
|
810
849
|
},
|
|
811
850
|
error: o,
|
|
@@ -824,7 +863,7 @@ var Ct = function() {
|
|
|
824
863
|
return Fn(t)(this);
|
|
825
864
|
}, e.prototype.toPromise = function(t) {
|
|
826
865
|
var r = this;
|
|
827
|
-
return t =
|
|
866
|
+
return t = It(t), new t(function(n, i) {
|
|
828
867
|
var o;
|
|
829
868
|
r.subscribe(function(a) {
|
|
830
869
|
return o = a;
|
|
@@ -838,45 +877,45 @@ var Ct = function() {
|
|
|
838
877
|
return new e(t);
|
|
839
878
|
}, e;
|
|
840
879
|
}();
|
|
841
|
-
function
|
|
880
|
+
function It(e) {
|
|
842
881
|
var t;
|
|
843
|
-
return (t = e ??
|
|
844
|
-
}
|
|
845
|
-
function kn(e) {
|
|
846
|
-
return e && Q(e.next) && Q(e.error) && Q(e.complete);
|
|
882
|
+
return (t = e ?? yr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
847
883
|
}
|
|
848
884
|
function Dn(e) {
|
|
849
|
-
return e && e
|
|
885
|
+
return e && Z(e.next) && Z(e.error) && Z(e.complete);
|
|
886
|
+
}
|
|
887
|
+
function kn(e) {
|
|
888
|
+
return e && e instanceof _r || Dn(e) && vr(e);
|
|
850
889
|
}
|
|
851
|
-
var Gn =
|
|
890
|
+
var Gn = gr(function(e) {
|
|
852
891
|
return function() {
|
|
853
892
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
854
893
|
};
|
|
855
|
-
}),
|
|
856
|
-
|
|
894
|
+
}), xr = function(e) {
|
|
895
|
+
Y(t, e);
|
|
857
896
|
function t() {
|
|
858
897
|
var r = e.call(this) || this;
|
|
859
898
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
860
899
|
}
|
|
861
900
|
return t.prototype.lift = function(r) {
|
|
862
|
-
var n = new
|
|
901
|
+
var n = new Ct(this, this);
|
|
863
902
|
return n.operator = r, n;
|
|
864
903
|
}, t.prototype._throwIfClosed = function() {
|
|
865
904
|
if (this.closed)
|
|
866
905
|
throw new Gn();
|
|
867
906
|
}, t.prototype.next = function(r) {
|
|
868
907
|
var n = this;
|
|
869
|
-
|
|
908
|
+
Le(function() {
|
|
870
909
|
var i, o;
|
|
871
910
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
872
911
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
873
912
|
try {
|
|
874
|
-
for (var a =
|
|
875
|
-
var
|
|
876
|
-
|
|
913
|
+
for (var a = tt(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
914
|
+
var l = s.value;
|
|
915
|
+
l.next(r);
|
|
877
916
|
}
|
|
878
|
-
} catch (
|
|
879
|
-
i = { error:
|
|
917
|
+
} catch (u) {
|
|
918
|
+
i = { error: u };
|
|
880
919
|
} finally {
|
|
881
920
|
try {
|
|
882
921
|
s && !s.done && (o = a.return) && o.call(a);
|
|
@@ -889,7 +928,7 @@ var Gn = vr(function(e) {
|
|
|
889
928
|
});
|
|
890
929
|
}, t.prototype.error = function(r) {
|
|
891
930
|
var n = this;
|
|
892
|
-
|
|
931
|
+
Le(function() {
|
|
893
932
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
894
933
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
895
934
|
for (var i = n.observers; i.length; )
|
|
@@ -898,7 +937,7 @@ var Gn = vr(function(e) {
|
|
|
898
937
|
});
|
|
899
938
|
}, t.prototype.complete = function() {
|
|
900
939
|
var r = this;
|
|
901
|
-
|
|
940
|
+
Le(function() {
|
|
902
941
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
903
942
|
r.isStopped = !0;
|
|
904
943
|
for (var n = r.observers; n.length; )
|
|
@@ -920,20 +959,20 @@ var Gn = vr(function(e) {
|
|
|
920
959
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
921
960
|
}, t.prototype._innerSubscribe = function(r) {
|
|
922
961
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
923
|
-
return o || a ?
|
|
924
|
-
n.currentObservers = null,
|
|
962
|
+
return o || a ? br : (this.currentObservers = null, s.push(r), new Fe(function() {
|
|
963
|
+
n.currentObservers = null, nt(s, r);
|
|
925
964
|
}));
|
|
926
965
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
927
966
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
928
967
|
i ? r.error(o) : a && r.complete();
|
|
929
968
|
}, t.prototype.asObservable = function() {
|
|
930
|
-
var r = new
|
|
969
|
+
var r = new Pt();
|
|
931
970
|
return r.source = this, r;
|
|
932
971
|
}, t.create = function(r, n) {
|
|
933
|
-
return new
|
|
972
|
+
return new Ct(r, n);
|
|
934
973
|
}, t;
|
|
935
|
-
}(
|
|
936
|
-
|
|
974
|
+
}(Pt), Ct = function(e) {
|
|
975
|
+
Y(t, e);
|
|
937
976
|
function t(r, n) {
|
|
938
977
|
var i = e.call(this) || this;
|
|
939
978
|
return i.destination = r, i.source = n, i;
|
|
@@ -949,43 +988,43 @@ var Gn = vr(function(e) {
|
|
|
949
988
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
950
989
|
}, t.prototype._subscribe = function(r) {
|
|
951
990
|
var n, i;
|
|
952
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
991
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : br;
|
|
953
992
|
}, t;
|
|
954
|
-
}(
|
|
993
|
+
}(xr), Er = {
|
|
955
994
|
now: function() {
|
|
956
|
-
return (
|
|
995
|
+
return (Er.delegate || Date).now();
|
|
957
996
|
},
|
|
958
997
|
delegate: void 0
|
|
959
998
|
}, $n = function(e) {
|
|
960
|
-
|
|
999
|
+
Y(t, e);
|
|
961
1000
|
function t(r, n, i) {
|
|
962
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1001
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Er);
|
|
963
1002
|
var o = e.call(this) || this;
|
|
964
1003
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
965
1004
|
}
|
|
966
1005
|
return t.prototype.next = function(r) {
|
|
967
|
-
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider,
|
|
968
|
-
i || (o.push(r), !a && o.push(s.now() +
|
|
1006
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, l = n._windowTime;
|
|
1007
|
+
i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
969
1008
|
}, t.prototype._subscribe = function(r) {
|
|
970
1009
|
this._throwIfClosed(), this._trimBuffer();
|
|
971
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(),
|
|
972
|
-
r.next(s[
|
|
1010
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !r.closed; l += o ? 1 : 2)
|
|
1011
|
+
r.next(s[l]);
|
|
973
1012
|
return this._checkFinalizedStatuses(r), n;
|
|
974
1013
|
}, t.prototype._trimBuffer = function() {
|
|
975
1014
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
976
1015
|
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
977
|
-
for (var
|
|
978
|
-
|
|
979
|
-
|
|
1016
|
+
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1017
|
+
u = h;
|
|
1018
|
+
u && o.splice(0, u + 1);
|
|
980
1019
|
}
|
|
981
1020
|
}, t;
|
|
982
|
-
}(
|
|
983
|
-
const
|
|
984
|
-
if (
|
|
1021
|
+
}(xr);
|
|
1022
|
+
const Nt = [], Rt = {}, jn = (e, t = 0) => {
|
|
1023
|
+
if (Nt.indexOf(e) == -1) {
|
|
985
1024
|
const r = new $n(t);
|
|
986
|
-
|
|
1025
|
+
Rt[e] = r, Nt.push(e);
|
|
987
1026
|
}
|
|
988
|
-
return
|
|
1027
|
+
return Rt[e];
|
|
989
1028
|
}, oe = [];
|
|
990
1029
|
function Wn(e, t) {
|
|
991
1030
|
return {
|
|
@@ -996,13 +1035,13 @@ function De(e, t = $) {
|
|
|
996
1035
|
let r;
|
|
997
1036
|
const n = /* @__PURE__ */ new Set();
|
|
998
1037
|
function i(s) {
|
|
999
|
-
if (
|
|
1000
|
-
const
|
|
1001
|
-
for (const
|
|
1002
|
-
|
|
1003
|
-
if (
|
|
1004
|
-
for (let
|
|
1005
|
-
oe[
|
|
1038
|
+
if (fr(e, s) && (e = s, r)) {
|
|
1039
|
+
const l = !oe.length;
|
|
1040
|
+
for (const u of n)
|
|
1041
|
+
u[1](), oe.push(u, e);
|
|
1042
|
+
if (l) {
|
|
1043
|
+
for (let u = 0; u < oe.length; u += 2)
|
|
1044
|
+
oe[u][0](oe[u + 1]);
|
|
1006
1045
|
oe.length = 0;
|
|
1007
1046
|
}
|
|
1008
1047
|
}
|
|
@@ -1010,42 +1049,42 @@ function De(e, t = $) {
|
|
|
1010
1049
|
function o(s) {
|
|
1011
1050
|
i(s(e));
|
|
1012
1051
|
}
|
|
1013
|
-
function a(s,
|
|
1014
|
-
const
|
|
1015
|
-
return n.add(
|
|
1016
|
-
n.delete(
|
|
1052
|
+
function a(s, l = $) {
|
|
1053
|
+
const u = [s, l];
|
|
1054
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || $), s(e), () => {
|
|
1055
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1017
1056
|
};
|
|
1018
1057
|
}
|
|
1019
1058
|
return { set: i, update: o, subscribe: a };
|
|
1020
1059
|
}
|
|
1021
|
-
function
|
|
1060
|
+
function pe(e, t, r) {
|
|
1022
1061
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1023
1062
|
if (!i.every(Boolean))
|
|
1024
1063
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1025
1064
|
const o = t.length < 2;
|
|
1026
1065
|
return Wn(r, (a, s) => {
|
|
1027
|
-
let
|
|
1028
|
-
const
|
|
1066
|
+
let l = !1;
|
|
1067
|
+
const u = [];
|
|
1029
1068
|
let h = 0, c = $;
|
|
1030
1069
|
const f = () => {
|
|
1031
1070
|
if (h)
|
|
1032
1071
|
return;
|
|
1033
1072
|
c();
|
|
1034
|
-
const g = t(n ?
|
|
1035
|
-
o ? a(g) : c =
|
|
1036
|
-
},
|
|
1037
|
-
(g, v) =>
|
|
1073
|
+
const g = t(n ? u[0] : u, a, s);
|
|
1074
|
+
o ? a(g) : c = dt(g) ? g : $;
|
|
1075
|
+
}, m = i.map(
|
|
1076
|
+
(g, v) => dr(
|
|
1038
1077
|
g,
|
|
1039
|
-
(
|
|
1040
|
-
|
|
1078
|
+
(S) => {
|
|
1079
|
+
u[v] = S, h &= ~(1 << v), l && f();
|
|
1041
1080
|
},
|
|
1042
1081
|
() => {
|
|
1043
1082
|
h |= 1 << v;
|
|
1044
1083
|
}
|
|
1045
1084
|
)
|
|
1046
1085
|
);
|
|
1047
|
-
return
|
|
1048
|
-
|
|
1086
|
+
return l = !0, f(), function() {
|
|
1087
|
+
de(m), c(), l = !1;
|
|
1049
1088
|
};
|
|
1050
1089
|
});
|
|
1051
1090
|
}
|
|
@@ -1069,12 +1108,12 @@ function qn(e) {
|
|
|
1069
1108
|
function Jn(e) {
|
|
1070
1109
|
return Array.isArray(e) ? [] : {};
|
|
1071
1110
|
}
|
|
1072
|
-
function
|
|
1111
|
+
function xe(e, t) {
|
|
1073
1112
|
return t.clone !== !1 && t.isMergeableObject(e) ? ue(Jn(e), e, t) : e;
|
|
1074
1113
|
}
|
|
1075
1114
|
function Kn(e, t, r) {
|
|
1076
1115
|
return e.concat(t).map(function(n) {
|
|
1077
|
-
return
|
|
1116
|
+
return xe(n, r);
|
|
1078
1117
|
});
|
|
1079
1118
|
}
|
|
1080
1119
|
function ei(e, t) {
|
|
@@ -1088,10 +1127,10 @@ function ti(e) {
|
|
|
1088
1127
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1089
1128
|
}) : [];
|
|
1090
1129
|
}
|
|
1091
|
-
function
|
|
1130
|
+
function Ut(e) {
|
|
1092
1131
|
return Object.keys(e).concat(ti(e));
|
|
1093
1132
|
}
|
|
1094
|
-
function
|
|
1133
|
+
function wr(e, t) {
|
|
1095
1134
|
try {
|
|
1096
1135
|
return t in e;
|
|
1097
1136
|
} catch {
|
|
@@ -1099,20 +1138,20 @@ function Sr(e, t) {
|
|
|
1099
1138
|
}
|
|
1100
1139
|
}
|
|
1101
1140
|
function ri(e, t) {
|
|
1102
|
-
return
|
|
1141
|
+
return wr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1103
1142
|
}
|
|
1104
1143
|
function ni(e, t, r) {
|
|
1105
1144
|
var n = {};
|
|
1106
|
-
return r.isMergeableObject(e) &&
|
|
1107
|
-
n[i] =
|
|
1108
|
-
}),
|
|
1109
|
-
ri(e, i) || (
|
|
1145
|
+
return r.isMergeableObject(e) && Ut(e).forEach(function(i) {
|
|
1146
|
+
n[i] = xe(e[i], r);
|
|
1147
|
+
}), Ut(t).forEach(function(i) {
|
|
1148
|
+
ri(e, i) || (wr(e, i) && r.isMergeableObject(t[i]) ? n[i] = ei(i, r)(e[i], t[i], r) : n[i] = xe(t[i], r));
|
|
1110
1149
|
}), n;
|
|
1111
1150
|
}
|
|
1112
1151
|
function ue(e, t, r) {
|
|
1113
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Kn, r.isMergeableObject = r.isMergeableObject || Xn, r.cloneUnlessOtherwiseSpecified =
|
|
1152
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Kn, r.isMergeableObject = r.isMergeableObject || Xn, r.cloneUnlessOtherwiseSpecified = xe;
|
|
1114
1153
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1115
|
-
return o ? n ? r.arrayMerge(e, t, r) : ni(e, t, r) :
|
|
1154
|
+
return o ? n ? r.arrayMerge(e, t, r) : ni(e, t, r) : xe(t, r);
|
|
1116
1155
|
}
|
|
1117
1156
|
ue.all = function(t, r) {
|
|
1118
1157
|
if (!Array.isArray(t))
|
|
@@ -1123,155 +1162,105 @@ ue.all = function(t, r) {
|
|
|
1123
1162
|
};
|
|
1124
1163
|
var ii = ue, oi = ii;
|
|
1125
1164
|
const ai = /* @__PURE__ */ Vn(oi);
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
r.__proto__ = n;
|
|
1129
|
-
} || function(r, n) {
|
|
1130
|
-
for (var i in n)
|
|
1131
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1132
|
-
}, ut(e, t);
|
|
1133
|
-
};
|
|
1134
|
-
function Ge(e, t) {
|
|
1135
|
-
if (typeof t != "function" && t !== null)
|
|
1136
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1137
|
-
ut(e, t);
|
|
1138
|
-
function r() {
|
|
1139
|
-
this.constructor = e;
|
|
1140
|
-
}
|
|
1141
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1142
|
-
}
|
|
1143
|
-
var X = function() {
|
|
1144
|
-
return X = Object.assign || function(t) {
|
|
1145
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1146
|
-
r = arguments[n];
|
|
1147
|
-
for (var o in r)
|
|
1148
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1149
|
-
}
|
|
1150
|
-
return t;
|
|
1151
|
-
}, X.apply(this, arguments);
|
|
1152
|
-
};
|
|
1153
|
-
function si(e, t) {
|
|
1154
|
-
var r = {};
|
|
1155
|
-
for (var n in e)
|
|
1156
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1157
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1158
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1159
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1160
|
-
return r;
|
|
1161
|
-
}
|
|
1162
|
-
function Qe(e, t, r) {
|
|
1163
|
-
if (r || arguments.length === 2)
|
|
1164
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1165
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1166
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1167
|
-
}
|
|
1168
|
-
function Ye(e, t) {
|
|
1169
|
-
var r = t && t.cache ? t.cache : di, n = t && t.serializer ? t.serializer : fi, i = t && t.strategy ? t.strategy : hi;
|
|
1165
|
+
function Ze(e, t) {
|
|
1166
|
+
var r = t && t.cache ? t.cache : fi, n = t && t.serializer ? t.serializer : ci, i = t && t.strategy ? t.strategy : li;
|
|
1170
1167
|
return i(e, {
|
|
1171
1168
|
cache: r,
|
|
1172
1169
|
serializer: n
|
|
1173
1170
|
});
|
|
1174
1171
|
}
|
|
1175
|
-
function
|
|
1172
|
+
function si(e) {
|
|
1176
1173
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1177
1174
|
}
|
|
1178
|
-
function
|
|
1179
|
-
var i =
|
|
1175
|
+
function Sr(e, t, r, n) {
|
|
1176
|
+
var i = si(n) ? n : r(n), o = t.get(i);
|
|
1180
1177
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1181
1178
|
}
|
|
1182
1179
|
function Hr(e, t, r) {
|
|
1183
1180
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1184
1181
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1185
1182
|
}
|
|
1186
|
-
function
|
|
1183
|
+
function mt(e, t, r, n, i) {
|
|
1187
1184
|
return r.bind(t, e, n, i);
|
|
1188
1185
|
}
|
|
1189
|
-
function
|
|
1190
|
-
var r = e.length === 1 ?
|
|
1191
|
-
return
|
|
1186
|
+
function li(e, t) {
|
|
1187
|
+
var r = e.length === 1 ? Sr : Hr;
|
|
1188
|
+
return mt(e, this, r, t.cache.create(), t.serializer);
|
|
1189
|
+
}
|
|
1190
|
+
function ui(e, t) {
|
|
1191
|
+
return mt(e, this, Hr, t.cache.create(), t.serializer);
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1194
|
-
return
|
|
1193
|
+
function hi(e, t) {
|
|
1194
|
+
return mt(e, this, Sr, t.cache.create(), t.serializer);
|
|
1195
1195
|
}
|
|
1196
|
-
var
|
|
1196
|
+
var ci = function() {
|
|
1197
1197
|
return JSON.stringify(arguments);
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
}()
|
|
1210
|
-
), di = {
|
|
1198
|
+
};
|
|
1199
|
+
function pt() {
|
|
1200
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1201
|
+
}
|
|
1202
|
+
pt.prototype.get = function(e) {
|
|
1203
|
+
return this.cache[e];
|
|
1204
|
+
};
|
|
1205
|
+
pt.prototype.set = function(e, t) {
|
|
1206
|
+
this.cache[e] = t;
|
|
1207
|
+
};
|
|
1208
|
+
var fi = {
|
|
1211
1209
|
create: function() {
|
|
1212
|
-
return new
|
|
1210
|
+
return new pt();
|
|
1213
1211
|
}
|
|
1214
|
-
},
|
|
1215
|
-
variadic:
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1219
|
-
r = arguments[n];
|
|
1220
|
-
for (var o in r)
|
|
1221
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1222
|
-
}
|
|
1223
|
-
return t;
|
|
1224
|
-
}, Re.apply(this, arguments);
|
|
1225
|
-
};
|
|
1226
|
-
var _;
|
|
1212
|
+
}, Qe = {
|
|
1213
|
+
variadic: ui,
|
|
1214
|
+
monadic: hi
|
|
1215
|
+
}, _;
|
|
1227
1216
|
(function(e) {
|
|
1228
1217
|
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";
|
|
1229
1218
|
})(_ || (_ = {}));
|
|
1230
|
-
var
|
|
1219
|
+
var O;
|
|
1231
1220
|
(function(e) {
|
|
1232
1221
|
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";
|
|
1233
|
-
})(
|
|
1234
|
-
var
|
|
1222
|
+
})(O || (O = {}));
|
|
1223
|
+
var he;
|
|
1235
1224
|
(function(e) {
|
|
1236
1225
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1237
|
-
})(
|
|
1238
|
-
function
|
|
1239
|
-
return e.type ===
|
|
1226
|
+
})(he || (he = {}));
|
|
1227
|
+
function Ft(e) {
|
|
1228
|
+
return e.type === O.literal;
|
|
1240
1229
|
}
|
|
1241
|
-
function
|
|
1242
|
-
return e.type ===
|
|
1230
|
+
function di(e) {
|
|
1231
|
+
return e.type === O.argument;
|
|
1243
1232
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return e.type ===
|
|
1233
|
+
function Tr(e) {
|
|
1234
|
+
return e.type === O.number;
|
|
1246
1235
|
}
|
|
1247
|
-
function
|
|
1248
|
-
return e.type ===
|
|
1236
|
+
function Or(e) {
|
|
1237
|
+
return e.type === O.date;
|
|
1249
1238
|
}
|
|
1250
1239
|
function Mr(e) {
|
|
1251
|
-
return e.type ===
|
|
1240
|
+
return e.type === O.time;
|
|
1252
1241
|
}
|
|
1253
|
-
function
|
|
1254
|
-
return e.type ===
|
|
1242
|
+
function Ar(e) {
|
|
1243
|
+
return e.type === O.select;
|
|
1255
1244
|
}
|
|
1256
1245
|
function Br(e) {
|
|
1257
|
-
return e.type ===
|
|
1246
|
+
return e.type === O.plural;
|
|
1258
1247
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return e.type ===
|
|
1248
|
+
function mi(e) {
|
|
1249
|
+
return e.type === O.pound;
|
|
1261
1250
|
}
|
|
1262
1251
|
function Lr(e) {
|
|
1263
|
-
return e.type ===
|
|
1252
|
+
return e.type === O.tag;
|
|
1264
1253
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1254
|
+
function Pr(e) {
|
|
1255
|
+
return !!(e && typeof e == "object" && e.type === he.number);
|
|
1267
1256
|
}
|
|
1268
|
-
function
|
|
1269
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1257
|
+
function ot(e) {
|
|
1258
|
+
return !!(e && typeof e == "object" && e.type === he.dateTime);
|
|
1270
1259
|
}
|
|
1271
|
-
var
|
|
1272
|
-
function
|
|
1260
|
+
var Ir = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, pi = /(?:[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;
|
|
1261
|
+
function gi(e) {
|
|
1273
1262
|
var t = {};
|
|
1274
|
-
return e.replace(
|
|
1263
|
+
return e.replace(pi, function(r) {
|
|
1275
1264
|
var n = r.length;
|
|
1276
1265
|
switch (r[0]) {
|
|
1277
1266
|
case "G":
|
|
@@ -1360,46 +1349,36 @@ function vi(e) {
|
|
|
1360
1349
|
return "";
|
|
1361
1350
|
}), t;
|
|
1362
1351
|
}
|
|
1363
|
-
var
|
|
1364
|
-
|
|
1365
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1366
|
-
r = arguments[n];
|
|
1367
|
-
for (var o in r)
|
|
1368
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1369
|
-
}
|
|
1370
|
-
return t;
|
|
1371
|
-
}, M.apply(this, arguments);
|
|
1372
|
-
};
|
|
1373
|
-
var yi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1374
|
-
function _i(e) {
|
|
1352
|
+
var bi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1353
|
+
function vi(e) {
|
|
1375
1354
|
if (e.length === 0)
|
|
1376
1355
|
throw new Error("Number skeleton cannot be empty");
|
|
1377
|
-
for (var t = e.split(
|
|
1356
|
+
for (var t = e.split(bi).filter(function(f) {
|
|
1378
1357
|
return f.length > 0;
|
|
1379
1358
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1380
1359
|
var o = i[n], a = o.split("/");
|
|
1381
1360
|
if (a.length === 0)
|
|
1382
1361
|
throw new Error("Invalid number skeleton");
|
|
1383
|
-
for (var s = a[0],
|
|
1384
|
-
var c = h[
|
|
1362
|
+
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1363
|
+
var c = h[u];
|
|
1385
1364
|
if (c.length === 0)
|
|
1386
1365
|
throw new Error("Invalid number skeleton");
|
|
1387
1366
|
}
|
|
1388
|
-
r.push({ stem: s, options:
|
|
1367
|
+
r.push({ stem: s, options: l });
|
|
1389
1368
|
}
|
|
1390
1369
|
return r;
|
|
1391
1370
|
}
|
|
1392
|
-
function
|
|
1371
|
+
function yi(e) {
|
|
1393
1372
|
return e.replace(/^(.*?)-/, "");
|
|
1394
1373
|
}
|
|
1395
|
-
var
|
|
1396
|
-
function
|
|
1374
|
+
var Dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Cr = /^(@+)?(\+|#+)?[rs]?$/g, _i = /(\*)(0+)|(#+)(0+)|(0+)/g, Nr = /^(0+)$/;
|
|
1375
|
+
function kt(e) {
|
|
1397
1376
|
var t = {};
|
|
1398
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1377
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Cr, function(r, n, i) {
|
|
1399
1378
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1400
1379
|
}), t;
|
|
1401
1380
|
}
|
|
1402
|
-
function
|
|
1381
|
+
function Rr(e) {
|
|
1403
1382
|
switch (e) {
|
|
1404
1383
|
case "sign-auto":
|
|
1405
1384
|
return {
|
|
@@ -1439,7 +1418,7 @@ function Ur(e) {
|
|
|
1439
1418
|
};
|
|
1440
1419
|
}
|
|
1441
1420
|
}
|
|
1442
|
-
function
|
|
1421
|
+
function xi(e) {
|
|
1443
1422
|
var t;
|
|
1444
1423
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1445
1424
|
notation: "engineering"
|
|
@@ -1447,17 +1426,17 @@ function wi(e) {
|
|
|
1447
1426
|
notation: "scientific"
|
|
1448
1427
|
}, e = e.slice(1)), t) {
|
|
1449
1428
|
var r = e.slice(0, 2);
|
|
1450
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1429
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Nr.test(e))
|
|
1451
1430
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1452
1431
|
t.minimumIntegerDigits = e.length;
|
|
1453
1432
|
}
|
|
1454
1433
|
return t;
|
|
1455
1434
|
}
|
|
1456
|
-
function
|
|
1457
|
-
var t = {}, r =
|
|
1435
|
+
function Gt(e) {
|
|
1436
|
+
var t = {}, r = Rr(e);
|
|
1458
1437
|
return r || t;
|
|
1459
1438
|
}
|
|
1460
|
-
function
|
|
1439
|
+
function Ei(e) {
|
|
1461
1440
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1462
1441
|
var i = n[r];
|
|
1463
1442
|
switch (i.stem) {
|
|
@@ -1481,7 +1460,7 @@ function Si(e) {
|
|
|
1481
1460
|
continue;
|
|
1482
1461
|
case "measure-unit":
|
|
1483
1462
|
case "unit":
|
|
1484
|
-
t.style = "unit", t.unit =
|
|
1463
|
+
t.style = "unit", t.unit = yi(i.options[0]);
|
|
1485
1464
|
continue;
|
|
1486
1465
|
case "compact-short":
|
|
1487
1466
|
case "K":
|
|
@@ -1492,13 +1471,13 @@ function Si(e) {
|
|
|
1492
1471
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1493
1472
|
continue;
|
|
1494
1473
|
case "scientific":
|
|
1495
|
-
t =
|
|
1496
|
-
return
|
|
1474
|
+
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1475
|
+
return w(w({}, l), Gt(u));
|
|
1497
1476
|
}, {}));
|
|
1498
1477
|
continue;
|
|
1499
1478
|
case "engineering":
|
|
1500
|
-
t =
|
|
1501
|
-
return
|
|
1479
|
+
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1480
|
+
return w(w({}, l), Gt(u));
|
|
1502
1481
|
}, {}));
|
|
1503
1482
|
continue;
|
|
1504
1483
|
case "notation-simple":
|
|
@@ -1543,45 +1522,45 @@ function Si(e) {
|
|
|
1543
1522
|
case "integer-width":
|
|
1544
1523
|
if (i.options.length > 1)
|
|
1545
1524
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1546
|
-
i.options[0].replace(
|
|
1547
|
-
if (
|
|
1525
|
+
i.options[0].replace(_i, function(l, u, h, c, f, m) {
|
|
1526
|
+
if (u)
|
|
1548
1527
|
t.minimumIntegerDigits = h.length;
|
|
1549
1528
|
else {
|
|
1550
1529
|
if (c && f)
|
|
1551
1530
|
throw new Error("We currently do not support maximum integer digits");
|
|
1552
|
-
if (
|
|
1531
|
+
if (m)
|
|
1553
1532
|
throw new Error("We currently do not support exact integer digits");
|
|
1554
1533
|
}
|
|
1555
1534
|
return "";
|
|
1556
1535
|
});
|
|
1557
1536
|
continue;
|
|
1558
1537
|
}
|
|
1559
|
-
if (
|
|
1538
|
+
if (Nr.test(i.stem)) {
|
|
1560
1539
|
t.minimumIntegerDigits = i.stem.length;
|
|
1561
1540
|
continue;
|
|
1562
1541
|
}
|
|
1563
|
-
if (
|
|
1542
|
+
if (Dt.test(i.stem)) {
|
|
1564
1543
|
if (i.options.length > 1)
|
|
1565
1544
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1566
|
-
i.stem.replace(
|
|
1567
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1545
|
+
i.stem.replace(Dt, function(l, u, h, c, f, m) {
|
|
1546
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1568
1547
|
});
|
|
1569
1548
|
var o = i.options[0];
|
|
1570
|
-
o === "w" ? t =
|
|
1549
|
+
o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t), kt(o)));
|
|
1571
1550
|
continue;
|
|
1572
1551
|
}
|
|
1573
|
-
if (
|
|
1574
|
-
t =
|
|
1552
|
+
if (Cr.test(i.stem)) {
|
|
1553
|
+
t = w(w({}, t), kt(i.stem));
|
|
1575
1554
|
continue;
|
|
1576
1555
|
}
|
|
1577
|
-
var a =
|
|
1578
|
-
a && (t =
|
|
1579
|
-
var s =
|
|
1580
|
-
s && (t =
|
|
1556
|
+
var a = Rr(i.stem);
|
|
1557
|
+
a && (t = w(w({}, t), a));
|
|
1558
|
+
var s = xi(i.stem);
|
|
1559
|
+
s && (t = w(w({}, t), s));
|
|
1581
1560
|
}
|
|
1582
1561
|
return t;
|
|
1583
1562
|
}
|
|
1584
|
-
var
|
|
1563
|
+
var Ae = {
|
|
1585
1564
|
"001": [
|
|
1586
1565
|
"H",
|
|
1587
1566
|
"h"
|
|
@@ -2996,23 +2975,23 @@ var Me = {
|
|
|
2996
2975
|
"h"
|
|
2997
2976
|
]
|
|
2998
2977
|
};
|
|
2999
|
-
function
|
|
2978
|
+
function wi(e, t) {
|
|
3000
2979
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3001
2980
|
var i = e.charAt(n);
|
|
3002
2981
|
if (i === "j") {
|
|
3003
2982
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3004
2983
|
o++, n++;
|
|
3005
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1),
|
|
3006
|
-
for ((
|
|
3007
|
-
r +=
|
|
2984
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Si(t);
|
|
2985
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2986
|
+
r += l;
|
|
3008
2987
|
for (; a-- > 0; )
|
|
3009
|
-
r =
|
|
2988
|
+
r = u + r;
|
|
3010
2989
|
} else
|
|
3011
2990
|
i === "J" ? r += "H" : r += i;
|
|
3012
2991
|
}
|
|
3013
2992
|
return r;
|
|
3014
2993
|
}
|
|
3015
|
-
function
|
|
2994
|
+
function Si(e) {
|
|
3016
2995
|
var t = e.hourCycle;
|
|
3017
2996
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3018
2997
|
e.hourCycles && // @ts-ignore
|
|
@@ -3031,23 +3010,23 @@ function Ti(e) {
|
|
|
3031
3010
|
}
|
|
3032
3011
|
var r = e.language, n;
|
|
3033
3012
|
r !== "root" && (n = e.maximize().region);
|
|
3034
|
-
var i =
|
|
3013
|
+
var i = Ae[n || ""] || Ae[r || ""] || Ae["".concat(r, "-001")] || Ae["001"];
|
|
3035
3014
|
return i[0];
|
|
3036
3015
|
}
|
|
3037
|
-
var
|
|
3016
|
+
var Ye, Hi = new RegExp("^".concat(Ir.source, "*")), Ti = new RegExp("".concat(Ir.source, "*$"));
|
|
3038
3017
|
function E(e, t) {
|
|
3039
3018
|
return { start: e, end: t };
|
|
3040
3019
|
}
|
|
3041
|
-
var
|
|
3020
|
+
var Oi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Mi = !!String.fromCodePoint, Ai = !!Object.fromEntries, Bi = !!String.prototype.codePointAt, Li = !!String.prototype.trimStart, Pi = !!String.prototype.trimEnd, Ii = !!Number.isSafeInteger, Ci = Ii ? Number.isSafeInteger : function(e) {
|
|
3042
3021
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3043
|
-
},
|
|
3022
|
+
}, at = !0;
|
|
3044
3023
|
try {
|
|
3045
|
-
var
|
|
3046
|
-
|
|
3024
|
+
var Ni = Fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3025
|
+
at = ((Ye = Ni.exec("a")) === null || Ye === void 0 ? void 0 : Ye[0]) === "a";
|
|
3047
3026
|
} catch {
|
|
3048
|
-
|
|
3027
|
+
at = !1;
|
|
3049
3028
|
}
|
|
3050
|
-
var
|
|
3029
|
+
var $t = Oi ? (
|
|
3051
3030
|
// Native
|
|
3052
3031
|
function(t, r, n) {
|
|
3053
3032
|
return t.startsWith(r, n);
|
|
@@ -3057,7 +3036,7 @@ var Wt = Mi ? (
|
|
|
3057
3036
|
function(t, r, n) {
|
|
3058
3037
|
return t.slice(n, n + r.length) === r;
|
|
3059
3038
|
}
|
|
3060
|
-
),
|
|
3039
|
+
), st = Mi ? String.fromCodePoint : (
|
|
3061
3040
|
// IE11
|
|
3062
3041
|
function() {
|
|
3063
3042
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3069,9 +3048,9 @@ var Wt = Mi ? (
|
|
|
3069
3048
|
}
|
|
3070
3049
|
return n;
|
|
3071
3050
|
}
|
|
3072
|
-
),
|
|
3051
|
+
), jt = (
|
|
3073
3052
|
// native
|
|
3074
|
-
|
|
3053
|
+
Ai ? Object.fromEntries : (
|
|
3075
3054
|
// Ponyfill
|
|
3076
3055
|
function(t) {
|
|
3077
3056
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3081,7 +3060,7 @@ var Wt = Mi ? (
|
|
|
3081
3060
|
return r;
|
|
3082
3061
|
}
|
|
3083
3062
|
)
|
|
3084
|
-
),
|
|
3063
|
+
), Ur = Bi ? (
|
|
3085
3064
|
// Native
|
|
3086
3065
|
function(t, r) {
|
|
3087
3066
|
return t.codePointAt(r);
|
|
@@ -3095,7 +3074,7 @@ var Wt = Mi ? (
|
|
|
3095
3074
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3096
3075
|
}
|
|
3097
3076
|
}
|
|
3098
|
-
),
|
|
3077
|
+
), Ri = Li ? (
|
|
3099
3078
|
// Native
|
|
3100
3079
|
function(t) {
|
|
3101
3080
|
return t.trimStart();
|
|
@@ -3103,9 +3082,9 @@ var Wt = Mi ? (
|
|
|
3103
3082
|
) : (
|
|
3104
3083
|
// Ponyfill
|
|
3105
3084
|
function(t) {
|
|
3106
|
-
return t.replace(
|
|
3085
|
+
return t.replace(Hi, "");
|
|
3107
3086
|
}
|
|
3108
|
-
),
|
|
3087
|
+
), Ui = Pi ? (
|
|
3109
3088
|
// Native
|
|
3110
3089
|
function(t) {
|
|
3111
3090
|
return t.trimEnd();
|
|
@@ -3113,32 +3092,32 @@ var Wt = Mi ? (
|
|
|
3113
3092
|
) : (
|
|
3114
3093
|
// Ponyfill
|
|
3115
3094
|
function(t) {
|
|
3116
|
-
return t.replace(
|
|
3095
|
+
return t.replace(Ti, "");
|
|
3117
3096
|
}
|
|
3118
3097
|
);
|
|
3119
|
-
function
|
|
3098
|
+
function Fr(e, t) {
|
|
3120
3099
|
return new RegExp(e, t);
|
|
3121
3100
|
}
|
|
3122
|
-
var
|
|
3123
|
-
if (
|
|
3124
|
-
var
|
|
3125
|
-
|
|
3101
|
+
var lt;
|
|
3102
|
+
if (at) {
|
|
3103
|
+
var Wt = Fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3104
|
+
lt = function(t, r) {
|
|
3126
3105
|
var n;
|
|
3127
|
-
|
|
3128
|
-
var i =
|
|
3106
|
+
Wt.lastIndex = r;
|
|
3107
|
+
var i = Wt.exec(t);
|
|
3129
3108
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3130
3109
|
};
|
|
3131
3110
|
} else
|
|
3132
|
-
|
|
3111
|
+
lt = function(t, r) {
|
|
3133
3112
|
for (var n = []; ; ) {
|
|
3134
|
-
var i =
|
|
3135
|
-
if (i === void 0 || Dr(i) ||
|
|
3113
|
+
var i = Ur(t, r);
|
|
3114
|
+
if (i === void 0 || Dr(i) || Gi(i))
|
|
3136
3115
|
break;
|
|
3137
3116
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3138
3117
|
}
|
|
3139
|
-
return
|
|
3118
|
+
return st.apply(void 0, n);
|
|
3140
3119
|
};
|
|
3141
|
-
var
|
|
3120
|
+
var Fi = (
|
|
3142
3121
|
/** @class */
|
|
3143
3122
|
function() {
|
|
3144
3123
|
function e(t, r) {
|
|
@@ -3162,14 +3141,14 @@ var Di = (
|
|
|
3162
3141
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3163
3142
|
var s = this.clonePosition();
|
|
3164
3143
|
this.bump(), i.push({
|
|
3165
|
-
type:
|
|
3144
|
+
type: O.pound,
|
|
3166
3145
|
location: E(s, this.clonePosition())
|
|
3167
3146
|
});
|
|
3168
3147
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3169
3148
|
if (n)
|
|
3170
3149
|
break;
|
|
3171
3150
|
return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3172
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3151
|
+
} else if (o === 60 && !this.ignoreTag && ut(this.peek() || 0)) {
|
|
3173
3152
|
var a = this.parseTag(t, r);
|
|
3174
3153
|
if (a.err)
|
|
3175
3154
|
return a;
|
|
@@ -3190,7 +3169,7 @@ var Di = (
|
|
|
3190
3169
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3191
3170
|
return {
|
|
3192
3171
|
val: {
|
|
3193
|
-
type:
|
|
3172
|
+
type: O.literal,
|
|
3194
3173
|
value: "<".concat(i, "/>"),
|
|
3195
3174
|
location: E(n, this.clonePosition())
|
|
3196
3175
|
},
|
|
@@ -3202,12 +3181,12 @@ var Di = (
|
|
|
3202
3181
|
return o;
|
|
3203
3182
|
var a = o.val, s = this.clonePosition();
|
|
3204
3183
|
if (this.bumpIf("</")) {
|
|
3205
|
-
if (this.isEOF() || !
|
|
3184
|
+
if (this.isEOF() || !ut(this.char()))
|
|
3206
3185
|
return this.error(_.INVALID_TAG, E(s, this.clonePosition()));
|
|
3207
|
-
var
|
|
3208
|
-
return i !==
|
|
3186
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
3187
|
+
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3209
3188
|
val: {
|
|
3210
|
-
type:
|
|
3189
|
+
type: O.tag,
|
|
3211
3190
|
value: i,
|
|
3212
3191
|
children: a,
|
|
3213
3192
|
location: E(n, this.clonePosition())
|
|
@@ -3220,7 +3199,7 @@ var Di = (
|
|
|
3220
3199
|
return this.error(_.INVALID_TAG, E(n, this.clonePosition()));
|
|
3221
3200
|
}, e.prototype.parseTagName = function() {
|
|
3222
3201
|
var t = this.offset();
|
|
3223
|
-
for (this.bump(); !this.isEOF() &&
|
|
3202
|
+
for (this.bump(); !this.isEOF() && ki(this.char()); )
|
|
3224
3203
|
this.bump();
|
|
3225
3204
|
return this.message.slice(t, this.offset());
|
|
3226
3205
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3242,14 +3221,14 @@ var Di = (
|
|
|
3242
3221
|
}
|
|
3243
3222
|
break;
|
|
3244
3223
|
}
|
|
3245
|
-
var
|
|
3224
|
+
var l = E(n, this.clonePosition());
|
|
3246
3225
|
return {
|
|
3247
|
-
val: { type:
|
|
3226
|
+
val: { type: O.literal, value: i, location: l },
|
|
3248
3227
|
err: null
|
|
3249
3228
|
};
|
|
3250
3229
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3251
3230
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3252
|
-
!
|
|
3231
|
+
!Di(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3253
3232
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3254
3233
|
if (this.isEOF() || this.char() !== 39)
|
|
3255
3234
|
return null;
|
|
@@ -3283,12 +3262,12 @@ var Di = (
|
|
|
3283
3262
|
r.push(n);
|
|
3284
3263
|
this.bump();
|
|
3285
3264
|
}
|
|
3286
|
-
return
|
|
3265
|
+
return st.apply(void 0, r);
|
|
3287
3266
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3288
3267
|
if (this.isEOF())
|
|
3289
3268
|
return null;
|
|
3290
3269
|
var n = this.char();
|
|
3291
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3270
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), st(n));
|
|
3292
3271
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3293
3272
|
var n = this.clonePosition();
|
|
3294
3273
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3304,7 +3283,7 @@ var Di = (
|
|
|
3304
3283
|
case 125:
|
|
3305
3284
|
return this.bump(), {
|
|
3306
3285
|
val: {
|
|
3307
|
-
type:
|
|
3286
|
+
type: O.argument,
|
|
3308
3287
|
// value does not include the opening and closing braces.
|
|
3309
3288
|
value: i,
|
|
3310
3289
|
location: E(n, this.clonePosition())
|
|
@@ -3317,66 +3296,66 @@ var Di = (
|
|
|
3317
3296
|
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3318
3297
|
}
|
|
3319
3298
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3320
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3299
|
+
var t = this.clonePosition(), r = this.offset(), n = lt(this.message, r), i = r + n.length;
|
|
3321
3300
|
this.bumpTo(i);
|
|
3322
3301
|
var o = this.clonePosition(), a = E(t, o);
|
|
3323
3302
|
return { value: n, location: a };
|
|
3324
3303
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3325
|
-
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value,
|
|
3304
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3326
3305
|
switch (s) {
|
|
3327
3306
|
case "":
|
|
3328
|
-
return this.error(_.EXPECT_ARGUMENT_TYPE, E(a,
|
|
3307
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, E(a, l));
|
|
3329
3308
|
case "number":
|
|
3330
3309
|
case "date":
|
|
3331
3310
|
case "time": {
|
|
3332
3311
|
this.bumpSpace();
|
|
3333
|
-
var
|
|
3312
|
+
var u = null;
|
|
3334
3313
|
if (this.bumpIf(",")) {
|
|
3335
3314
|
this.bumpSpace();
|
|
3336
3315
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3337
3316
|
if (c.err)
|
|
3338
3317
|
return c;
|
|
3339
|
-
var f =
|
|
3318
|
+
var f = Ui(c.val);
|
|
3340
3319
|
if (f.length === 0)
|
|
3341
3320
|
return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3342
|
-
var
|
|
3343
|
-
|
|
3321
|
+
var m = E(h, this.clonePosition());
|
|
3322
|
+
u = { style: f, styleLocation: m };
|
|
3344
3323
|
}
|
|
3345
3324
|
var g = this.tryParseArgumentClose(i);
|
|
3346
3325
|
if (g.err)
|
|
3347
3326
|
return g;
|
|
3348
3327
|
var v = E(i, this.clonePosition());
|
|
3349
|
-
if (
|
|
3350
|
-
var
|
|
3328
|
+
if (u && $t(u?.style, "::", 0)) {
|
|
3329
|
+
var S = Ri(u.style.slice(2));
|
|
3351
3330
|
if (s === "number") {
|
|
3352
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3331
|
+
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3353
3332
|
return c.err ? c : {
|
|
3354
|
-
val: { type:
|
|
3333
|
+
val: { type: O.number, value: n, location: v, style: c.val },
|
|
3355
3334
|
err: null
|
|
3356
3335
|
};
|
|
3357
3336
|
} else {
|
|
3358
|
-
if (
|
|
3337
|
+
if (S.length === 0)
|
|
3359
3338
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, v);
|
|
3360
|
-
var
|
|
3361
|
-
this.locale && (
|
|
3339
|
+
var T = S;
|
|
3340
|
+
this.locale && (T = wi(S, this.locale));
|
|
3362
3341
|
var f = {
|
|
3363
|
-
type:
|
|
3364
|
-
pattern:
|
|
3365
|
-
location:
|
|
3366
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3367
|
-
},
|
|
3342
|
+
type: he.dateTime,
|
|
3343
|
+
pattern: T,
|
|
3344
|
+
location: u.styleLocation,
|
|
3345
|
+
parsedOptions: this.shouldParseSkeletons ? gi(T) : {}
|
|
3346
|
+
}, P = s === "date" ? O.date : O.time;
|
|
3368
3347
|
return {
|
|
3369
|
-
val: { type:
|
|
3348
|
+
val: { type: P, value: n, location: v, style: f },
|
|
3370
3349
|
err: null
|
|
3371
3350
|
};
|
|
3372
3351
|
}
|
|
3373
3352
|
}
|
|
3374
3353
|
return {
|
|
3375
3354
|
val: {
|
|
3376
|
-
type: s === "number" ?
|
|
3355
|
+
type: s === "number" ? O.number : s === "date" ? O.date : O.time,
|
|
3377
3356
|
value: n,
|
|
3378
3357
|
location: v,
|
|
3379
|
-
style: (o =
|
|
3358
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3380
3359
|
},
|
|
3381
3360
|
err: null
|
|
3382
3361
|
};
|
|
@@ -3384,9 +3363,9 @@ var Di = (
|
|
|
3384
3363
|
case "plural":
|
|
3385
3364
|
case "selectordinal":
|
|
3386
3365
|
case "select": {
|
|
3387
|
-
var
|
|
3366
|
+
var B = this.clonePosition();
|
|
3388
3367
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3389
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(
|
|
3368
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(B, w({}, B)));
|
|
3390
3369
|
this.bumpSpace();
|
|
3391
3370
|
var G = this.parseIdentifierIfPossible(), C = 0;
|
|
3392
3371
|
if (s !== "select" && G.value === "offset") {
|
|
@@ -3404,29 +3383,29 @@ var Di = (
|
|
|
3404
3383
|
var g = this.tryParseArgumentClose(i);
|
|
3405
3384
|
if (g.err)
|
|
3406
3385
|
return g;
|
|
3407
|
-
var
|
|
3386
|
+
var X = E(i, this.clonePosition());
|
|
3408
3387
|
return s === "select" ? {
|
|
3409
3388
|
val: {
|
|
3410
|
-
type:
|
|
3389
|
+
type: O.select,
|
|
3411
3390
|
value: n,
|
|
3412
|
-
options:
|
|
3413
|
-
location:
|
|
3391
|
+
options: jt(V.val),
|
|
3392
|
+
location: X
|
|
3414
3393
|
},
|
|
3415
3394
|
err: null
|
|
3416
3395
|
} : {
|
|
3417
3396
|
val: {
|
|
3418
|
-
type:
|
|
3397
|
+
type: O.plural,
|
|
3419
3398
|
value: n,
|
|
3420
|
-
options:
|
|
3399
|
+
options: jt(V.val),
|
|
3421
3400
|
offset: C,
|
|
3422
3401
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3423
|
-
location:
|
|
3402
|
+
location: X
|
|
3424
3403
|
},
|
|
3425
3404
|
err: null
|
|
3426
3405
|
};
|
|
3427
3406
|
}
|
|
3428
3407
|
default:
|
|
3429
|
-
return this.error(_.INVALID_ARGUMENT_TYPE, E(a,
|
|
3408
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, E(a, l));
|
|
3430
3409
|
}
|
|
3431
3410
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3432
3411
|
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3468,50 +3447,50 @@ var Di = (
|
|
|
3468
3447
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3469
3448
|
var n = [];
|
|
3470
3449
|
try {
|
|
3471
|
-
n =
|
|
3450
|
+
n = vi(t);
|
|
3472
3451
|
} catch {
|
|
3473
3452
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3474
3453
|
}
|
|
3475
3454
|
return {
|
|
3476
3455
|
val: {
|
|
3477
|
-
type:
|
|
3456
|
+
type: he.number,
|
|
3478
3457
|
tokens: n,
|
|
3479
3458
|
location: r,
|
|
3480
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3459
|
+
parsedOptions: this.shouldParseSkeletons ? Ei(n) : {}
|
|
3481
3460
|
},
|
|
3482
3461
|
err: null
|
|
3483
3462
|
};
|
|
3484
3463
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3485
|
-
for (var o, a = !1, s = [],
|
|
3486
|
-
if (
|
|
3464
|
+
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3465
|
+
if (u.length === 0) {
|
|
3487
3466
|
var c = this.clonePosition();
|
|
3488
3467
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3489
3468
|
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3490
3469
|
if (f.err)
|
|
3491
3470
|
return f;
|
|
3492
|
-
h = E(c, this.clonePosition()),
|
|
3471
|
+
h = E(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3493
3472
|
} else
|
|
3494
3473
|
break;
|
|
3495
3474
|
}
|
|
3496
|
-
if (
|
|
3475
|
+
if (l.has(u))
|
|
3497
3476
|
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3498
|
-
|
|
3499
|
-
var
|
|
3477
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3478
|
+
var m = this.clonePosition();
|
|
3500
3479
|
if (!this.bumpIf("{"))
|
|
3501
3480
|
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
3502
3481
|
var g = this.parseMessage(t + 1, r, n);
|
|
3503
3482
|
if (g.err)
|
|
3504
3483
|
return g;
|
|
3505
|
-
var v = this.tryParseArgumentClose(
|
|
3484
|
+
var v = this.tryParseArgumentClose(m);
|
|
3506
3485
|
if (v.err)
|
|
3507
3486
|
return v;
|
|
3508
3487
|
s.push([
|
|
3509
|
-
|
|
3488
|
+
u,
|
|
3510
3489
|
{
|
|
3511
3490
|
value: g.val,
|
|
3512
|
-
location: E(
|
|
3491
|
+
location: E(m, this.clonePosition())
|
|
3513
3492
|
}
|
|
3514
|
-
]),
|
|
3493
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3515
3494
|
}
|
|
3516
3495
|
return s.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(_.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3517
3496
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -3524,8 +3503,8 @@ var Di = (
|
|
|
3524
3503
|
else
|
|
3525
3504
|
break;
|
|
3526
3505
|
}
|
|
3527
|
-
var
|
|
3528
|
-
return o ? (a *= n,
|
|
3506
|
+
var l = E(i, this.clonePosition());
|
|
3507
|
+
return o ? (a *= n, Ci(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3529
3508
|
}, e.prototype.offset = function() {
|
|
3530
3509
|
return this.position.offset;
|
|
3531
3510
|
}, e.prototype.isEOF = function() {
|
|
@@ -3540,7 +3519,7 @@ var Di = (
|
|
|
3540
3519
|
var t = this.position.offset;
|
|
3541
3520
|
if (t >= this.message.length)
|
|
3542
3521
|
throw Error("out of bound");
|
|
3543
|
-
var r =
|
|
3522
|
+
var r = Ur(this.message, t);
|
|
3544
3523
|
if (r === void 0)
|
|
3545
3524
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3546
3525
|
return r;
|
|
@@ -3559,7 +3538,7 @@ var Di = (
|
|
|
3559
3538
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3560
3539
|
}
|
|
3561
3540
|
}, e.prototype.bumpIf = function(t) {
|
|
3562
|
-
if (
|
|
3541
|
+
if ($t(this.message, t, this.offset())) {
|
|
3563
3542
|
for (var r = 0; r < t.length; r++)
|
|
3564
3543
|
this.bump();
|
|
3565
3544
|
return !0;
|
|
@@ -3591,47 +3570,47 @@ var Di = (
|
|
|
3591
3570
|
}, e;
|
|
3592
3571
|
}()
|
|
3593
3572
|
);
|
|
3594
|
-
function
|
|
3573
|
+
function ut(e) {
|
|
3595
3574
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3596
3575
|
}
|
|
3597
|
-
function
|
|
3598
|
-
return
|
|
3576
|
+
function Di(e) {
|
|
3577
|
+
return ut(e) || e === 47;
|
|
3599
3578
|
}
|
|
3600
|
-
function
|
|
3579
|
+
function ki(e) {
|
|
3601
3580
|
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;
|
|
3602
3581
|
}
|
|
3603
3582
|
function Dr(e) {
|
|
3604
3583
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3605
3584
|
}
|
|
3606
|
-
function
|
|
3585
|
+
function Gi(e) {
|
|
3607
3586
|
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;
|
|
3608
3587
|
}
|
|
3609
|
-
function
|
|
3588
|
+
function ht(e) {
|
|
3610
3589
|
e.forEach(function(t) {
|
|
3611
|
-
if (delete t.location,
|
|
3590
|
+
if (delete t.location, Ar(t) || Br(t))
|
|
3612
3591
|
for (var r in t.options)
|
|
3613
|
-
delete t.options[r].location,
|
|
3592
|
+
delete t.options[r].location, ht(t.options[r].value);
|
|
3614
3593
|
else
|
|
3615
|
-
|
|
3594
|
+
Tr(t) && Pr(t.style) || (Or(t) || Mr(t)) && ot(t.style) ? delete t.style.location : Lr(t) && ht(t.children);
|
|
3616
3595
|
});
|
|
3617
3596
|
}
|
|
3618
|
-
function
|
|
3619
|
-
t === void 0 && (t = {}), t =
|
|
3620
|
-
var r = new
|
|
3597
|
+
function $i(e, t) {
|
|
3598
|
+
t === void 0 && (t = {}), t = w({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3599
|
+
var r = new Fi(e, t).parse();
|
|
3621
3600
|
if (r.err) {
|
|
3622
3601
|
var n = SyntaxError(_[r.err.kind]);
|
|
3623
3602
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3624
3603
|
}
|
|
3625
|
-
return t?.captureLocation ||
|
|
3604
|
+
return t?.captureLocation || ht(r.val), r.val;
|
|
3626
3605
|
}
|
|
3627
|
-
var
|
|
3606
|
+
var ce;
|
|
3628
3607
|
(function(e) {
|
|
3629
3608
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3630
|
-
})(
|
|
3631
|
-
var
|
|
3609
|
+
})(ce || (ce = {}));
|
|
3610
|
+
var ke = (
|
|
3632
3611
|
/** @class */
|
|
3633
3612
|
function(e) {
|
|
3634
|
-
|
|
3613
|
+
Y(t, e);
|
|
3635
3614
|
function t(r, n, i) {
|
|
3636
3615
|
var o = e.call(this, r) || this;
|
|
3637
3616
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3640,155 +3619,155 @@ var $e = (
|
|
|
3640
3619
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3641
3620
|
}, t;
|
|
3642
3621
|
}(Error)
|
|
3643
|
-
),
|
|
3622
|
+
), Vt = (
|
|
3644
3623
|
/** @class */
|
|
3645
3624
|
function(e) {
|
|
3646
|
-
|
|
3625
|
+
Y(t, e);
|
|
3647
3626
|
function t(r, n, i, o) {
|
|
3648
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3627
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ce.INVALID_VALUE, o) || this;
|
|
3649
3628
|
}
|
|
3650
3629
|
return t;
|
|
3651
|
-
}(
|
|
3652
|
-
),
|
|
3630
|
+
}(ke)
|
|
3631
|
+
), ji = (
|
|
3653
3632
|
/** @class */
|
|
3654
3633
|
function(e) {
|
|
3655
|
-
|
|
3634
|
+
Y(t, e);
|
|
3656
3635
|
function t(r, n, i) {
|
|
3657
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3636
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ce.INVALID_VALUE, i) || this;
|
|
3658
3637
|
}
|
|
3659
3638
|
return t;
|
|
3660
|
-
}(
|
|
3661
|
-
),
|
|
3639
|
+
}(ke)
|
|
3640
|
+
), Wi = (
|
|
3662
3641
|
/** @class */
|
|
3663
3642
|
function(e) {
|
|
3664
|
-
|
|
3643
|
+
Y(t, e);
|
|
3665
3644
|
function t(r, n) {
|
|
3666
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3645
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ce.MISSING_VALUE, n) || this;
|
|
3667
3646
|
}
|
|
3668
3647
|
return t;
|
|
3669
|
-
}(
|
|
3670
|
-
),
|
|
3648
|
+
}(ke)
|
|
3649
|
+
), k;
|
|
3671
3650
|
(function(e) {
|
|
3672
3651
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3673
|
-
})(
|
|
3674
|
-
function
|
|
3652
|
+
})(k || (k = {}));
|
|
3653
|
+
function Vi(e) {
|
|
3675
3654
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3676
3655
|
var n = t[t.length - 1];
|
|
3677
|
-
return !n || n.type !==
|
|
3656
|
+
return !n || n.type !== k.literal || r.type !== k.literal ? t.push(r) : n.value += r.value, t;
|
|
3678
3657
|
}, []);
|
|
3679
3658
|
}
|
|
3680
|
-
function
|
|
3659
|
+
function Xi(e) {
|
|
3681
3660
|
return typeof e == "function";
|
|
3682
3661
|
}
|
|
3683
|
-
function
|
|
3684
|
-
if (e.length === 1 &&
|
|
3662
|
+
function Pe(e, t, r, n, i, o, a) {
|
|
3663
|
+
if (e.length === 1 && Ft(e[0]))
|
|
3685
3664
|
return [
|
|
3686
3665
|
{
|
|
3687
|
-
type:
|
|
3666
|
+
type: k.literal,
|
|
3688
3667
|
value: e[0].value
|
|
3689
3668
|
}
|
|
3690
3669
|
];
|
|
3691
|
-
for (var s = [],
|
|
3692
|
-
var h = l
|
|
3693
|
-
if (
|
|
3670
|
+
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3671
|
+
var h = u[l];
|
|
3672
|
+
if (Ft(h)) {
|
|
3694
3673
|
s.push({
|
|
3695
|
-
type:
|
|
3674
|
+
type: k.literal,
|
|
3696
3675
|
value: h.value
|
|
3697
3676
|
});
|
|
3698
3677
|
continue;
|
|
3699
3678
|
}
|
|
3700
|
-
if (
|
|
3679
|
+
if (mi(h)) {
|
|
3701
3680
|
typeof o == "number" && s.push({
|
|
3702
|
-
type:
|
|
3681
|
+
type: k.literal,
|
|
3703
3682
|
value: r.getNumberFormat(t).format(o)
|
|
3704
3683
|
});
|
|
3705
3684
|
continue;
|
|
3706
3685
|
}
|
|
3707
3686
|
var c = h.value;
|
|
3708
3687
|
if (!(i && c in i))
|
|
3709
|
-
throw new
|
|
3688
|
+
throw new Wi(c, a);
|
|
3710
3689
|
var f = i[c];
|
|
3711
|
-
if (
|
|
3690
|
+
if (di(h)) {
|
|
3712
3691
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3713
|
-
type: typeof f == "string" ?
|
|
3692
|
+
type: typeof f == "string" ? k.literal : k.object,
|
|
3714
3693
|
value: f
|
|
3715
3694
|
});
|
|
3716
3695
|
continue;
|
|
3717
3696
|
}
|
|
3718
|
-
if (
|
|
3719
|
-
var
|
|
3697
|
+
if (Or(h)) {
|
|
3698
|
+
var m = typeof h.style == "string" ? n.date[h.style] : ot(h.style) ? h.style.parsedOptions : void 0;
|
|
3720
3699
|
s.push({
|
|
3721
|
-
type:
|
|
3722
|
-
value: r.getDateTimeFormat(t,
|
|
3700
|
+
type: k.literal,
|
|
3701
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3723
3702
|
});
|
|
3724
3703
|
continue;
|
|
3725
3704
|
}
|
|
3726
3705
|
if (Mr(h)) {
|
|
3727
|
-
var
|
|
3706
|
+
var m = typeof h.style == "string" ? n.time[h.style] : ot(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3728
3707
|
s.push({
|
|
3729
|
-
type:
|
|
3730
|
-
value: r.getDateTimeFormat(t,
|
|
3708
|
+
type: k.literal,
|
|
3709
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3731
3710
|
});
|
|
3732
3711
|
continue;
|
|
3733
3712
|
}
|
|
3734
|
-
if (
|
|
3735
|
-
var
|
|
3736
|
-
|
|
3737
|
-
type:
|
|
3738
|
-
value: r.getNumberFormat(t,
|
|
3713
|
+
if (Tr(h)) {
|
|
3714
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Pr(h.style) ? h.style.parsedOptions : void 0;
|
|
3715
|
+
m && m.scale && (f = f * (m.scale || 1)), s.push({
|
|
3716
|
+
type: k.literal,
|
|
3717
|
+
value: r.getNumberFormat(t, m).format(f)
|
|
3739
3718
|
});
|
|
3740
3719
|
continue;
|
|
3741
3720
|
}
|
|
3742
3721
|
if (Lr(h)) {
|
|
3743
|
-
var g = h.children, v = h.value,
|
|
3744
|
-
if (!
|
|
3745
|
-
throw new
|
|
3746
|
-
var
|
|
3722
|
+
var g = h.children, v = h.value, S = i[v];
|
|
3723
|
+
if (!Xi(S))
|
|
3724
|
+
throw new ji(v, "function", a);
|
|
3725
|
+
var T = Pe(g, t, r, n, i, o), P = S(T.map(function(C) {
|
|
3747
3726
|
return C.value;
|
|
3748
3727
|
}));
|
|
3749
|
-
Array.isArray(
|
|
3728
|
+
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(C) {
|
|
3750
3729
|
return {
|
|
3751
|
-
type: typeof C == "string" ?
|
|
3730
|
+
type: typeof C == "string" ? k.literal : k.object,
|
|
3752
3731
|
value: C
|
|
3753
3732
|
};
|
|
3754
3733
|
}));
|
|
3755
3734
|
}
|
|
3756
|
-
if (
|
|
3757
|
-
var
|
|
3758
|
-
if (!
|
|
3759
|
-
throw new
|
|
3760
|
-
s.push.apply(s,
|
|
3735
|
+
if (Ar(h)) {
|
|
3736
|
+
var B = h.options[f] || h.options.other;
|
|
3737
|
+
if (!B)
|
|
3738
|
+
throw new Vt(h.value, f, Object.keys(h.options), a);
|
|
3739
|
+
s.push.apply(s, Pe(B.value, t, r, n, i));
|
|
3761
3740
|
continue;
|
|
3762
3741
|
}
|
|
3763
3742
|
if (Br(h)) {
|
|
3764
|
-
var
|
|
3765
|
-
if (!
|
|
3743
|
+
var B = h.options["=".concat(f)];
|
|
3744
|
+
if (!B) {
|
|
3766
3745
|
if (!Intl.PluralRules)
|
|
3767
|
-
throw new
|
|
3746
|
+
throw new ke(`Intl.PluralRules is not available in this environment.
|
|
3768
3747
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3769
|
-
`,
|
|
3748
|
+
`, ce.MISSING_INTL_API, a);
|
|
3770
3749
|
var G = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3771
|
-
|
|
3750
|
+
B = h.options[G] || h.options.other;
|
|
3772
3751
|
}
|
|
3773
|
-
if (!
|
|
3774
|
-
throw new
|
|
3775
|
-
s.push.apply(s,
|
|
3752
|
+
if (!B)
|
|
3753
|
+
throw new Vt(h.value, f, Object.keys(h.options), a);
|
|
3754
|
+
s.push.apply(s, Pe(B.value, t, r, n, i, f - (h.offset || 0)));
|
|
3776
3755
|
continue;
|
|
3777
3756
|
}
|
|
3778
3757
|
}
|
|
3779
|
-
return
|
|
3758
|
+
return Vi(s);
|
|
3780
3759
|
}
|
|
3781
|
-
function
|
|
3782
|
-
return t ?
|
|
3783
|
-
return r[n] =
|
|
3760
|
+
function zi(e, t) {
|
|
3761
|
+
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3762
|
+
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3784
3763
|
}, {})) : e;
|
|
3785
3764
|
}
|
|
3786
|
-
function
|
|
3765
|
+
function Zi(e, t) {
|
|
3787
3766
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3788
|
-
return r[n] =
|
|
3789
|
-
},
|
|
3767
|
+
return r[n] = zi(e[n], t[n]), r;
|
|
3768
|
+
}, w({}, e)) : e;
|
|
3790
3769
|
}
|
|
3791
|
-
function
|
|
3770
|
+
function qe(e) {
|
|
3792
3771
|
return {
|
|
3793
3772
|
create: function() {
|
|
3794
3773
|
return {
|
|
@@ -3802,39 +3781,39 @@ function Ke(e) {
|
|
|
3802
3781
|
}
|
|
3803
3782
|
};
|
|
3804
3783
|
}
|
|
3805
|
-
function
|
|
3784
|
+
function Qi(e) {
|
|
3806
3785
|
return e === void 0 && (e = {
|
|
3807
3786
|
number: {},
|
|
3808
3787
|
dateTime: {},
|
|
3809
3788
|
pluralRules: {}
|
|
3810
3789
|
}), {
|
|
3811
|
-
getNumberFormat:
|
|
3790
|
+
getNumberFormat: Ze(function() {
|
|
3812
3791
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3813
3792
|
r[n] = arguments[n];
|
|
3814
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3793
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, le([void 0], r, !1)))();
|
|
3815
3794
|
}, {
|
|
3816
|
-
cache:
|
|
3817
|
-
strategy:
|
|
3795
|
+
cache: qe(e.number),
|
|
3796
|
+
strategy: Qe.variadic
|
|
3818
3797
|
}),
|
|
3819
|
-
getDateTimeFormat:
|
|
3798
|
+
getDateTimeFormat: Ze(function() {
|
|
3820
3799
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3821
3800
|
r[n] = arguments[n];
|
|
3822
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3801
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, le([void 0], r, !1)))();
|
|
3823
3802
|
}, {
|
|
3824
|
-
cache:
|
|
3825
|
-
strategy:
|
|
3803
|
+
cache: qe(e.dateTime),
|
|
3804
|
+
strategy: Qe.variadic
|
|
3826
3805
|
}),
|
|
3827
|
-
getPluralRules:
|
|
3806
|
+
getPluralRules: Ze(function() {
|
|
3828
3807
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3829
3808
|
r[n] = arguments[n];
|
|
3830
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3809
|
+
return new ((t = Intl.PluralRules).bind.apply(t, le([void 0], r, !1)))();
|
|
3831
3810
|
}, {
|
|
3832
|
-
cache:
|
|
3833
|
-
strategy:
|
|
3811
|
+
cache: qe(e.pluralRules),
|
|
3812
|
+
strategy: Qe.variadic
|
|
3834
3813
|
})
|
|
3835
3814
|
};
|
|
3836
3815
|
}
|
|
3837
|
-
var
|
|
3816
|
+
var Yi = (
|
|
3838
3817
|
/** @class */
|
|
3839
3818
|
function() {
|
|
3840
3819
|
function e(t, r, n, i) {
|
|
@@ -3844,20 +3823,20 @@ var Ji = (
|
|
|
3844
3823
|
number: {},
|
|
3845
3824
|
dateTime: {},
|
|
3846
3825
|
pluralRules: {}
|
|
3847
|
-
}, this.format = function(
|
|
3848
|
-
var
|
|
3849
|
-
if (
|
|
3850
|
-
return
|
|
3851
|
-
var h =
|
|
3852
|
-
return !c.length || f.type !==
|
|
3826
|
+
}, this.format = function(l) {
|
|
3827
|
+
var u = o.formatToParts(l);
|
|
3828
|
+
if (u.length === 1)
|
|
3829
|
+
return u[0].value;
|
|
3830
|
+
var h = u.reduce(function(c, f) {
|
|
3831
|
+
return !c.length || f.type !== k.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3853
3832
|
}, []);
|
|
3854
3833
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3855
|
-
}, this.formatToParts = function(
|
|
3856
|
-
return
|
|
3834
|
+
}, this.formatToParts = function(l) {
|
|
3835
|
+
return Pe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3857
3836
|
}, this.resolvedOptions = function() {
|
|
3858
|
-
var
|
|
3837
|
+
var l;
|
|
3859
3838
|
return {
|
|
3860
|
-
locale: ((
|
|
3839
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3861
3840
|
};
|
|
3862
3841
|
}, this.getAst = function() {
|
|
3863
3842
|
return o.ast;
|
|
@@ -3866,13 +3845,13 @@ var Ji = (
|
|
|
3866
3845
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3867
3846
|
var a = i || {};
|
|
3868
3847
|
a.formatters;
|
|
3869
|
-
var s =
|
|
3870
|
-
this.ast = e.__parse(t,
|
|
3848
|
+
var s = An(a, ["formatters"]);
|
|
3849
|
+
this.ast = e.__parse(t, w(w({}, s), { locale: this.resolvedLocale }));
|
|
3871
3850
|
} else
|
|
3872
3851
|
this.ast = t;
|
|
3873
3852
|
if (!Array.isArray(this.ast))
|
|
3874
3853
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3875
|
-
this.formats =
|
|
3854
|
+
this.formats = Zi(e.formats, n), this.formatters = i && i.formatters || Qi(this.formatterCache);
|
|
3876
3855
|
}
|
|
3877
3856
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3878
3857
|
get: function() {
|
|
@@ -3885,7 +3864,7 @@ var Ji = (
|
|
|
3885
3864
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3886
3865
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3887
3866
|
}
|
|
3888
|
-
}, e.__parse =
|
|
3867
|
+
}, e.__parse = $i, e.formats = {
|
|
3889
3868
|
number: {
|
|
3890
3869
|
integer: {
|
|
3891
3870
|
maximumFractionDigits: 0
|
|
@@ -3946,7 +3925,7 @@ var Ji = (
|
|
|
3946
3925
|
}, e;
|
|
3947
3926
|
}()
|
|
3948
3927
|
);
|
|
3949
|
-
function
|
|
3928
|
+
function qi(e, t) {
|
|
3950
3929
|
if (t == null)
|
|
3951
3930
|
return;
|
|
3952
3931
|
if (t in e)
|
|
@@ -3967,92 +3946,92 @@ function Ki(e, t) {
|
|
|
3967
3946
|
n = void 0;
|
|
3968
3947
|
return n;
|
|
3969
3948
|
}
|
|
3970
|
-
const J = {},
|
|
3949
|
+
const J = {}, Ji = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r), kr = (e, t) => {
|
|
3971
3950
|
if (t == null)
|
|
3972
3951
|
return;
|
|
3973
3952
|
if (t in J && e in J[t])
|
|
3974
3953
|
return J[t][e];
|
|
3975
|
-
const r =
|
|
3954
|
+
const r = Ge(t);
|
|
3976
3955
|
for (let n = 0; n < r.length; n++) {
|
|
3977
|
-
const i = r[n], o =
|
|
3956
|
+
const i = r[n], o = eo(i, e);
|
|
3978
3957
|
if (o)
|
|
3979
|
-
return
|
|
3958
|
+
return Ji(e, t, o);
|
|
3980
3959
|
}
|
|
3981
3960
|
};
|
|
3982
|
-
let
|
|
3961
|
+
let gt;
|
|
3983
3962
|
const Se = De({});
|
|
3984
|
-
function
|
|
3985
|
-
return
|
|
3963
|
+
function Ki(e) {
|
|
3964
|
+
return gt[e] || null;
|
|
3986
3965
|
}
|
|
3987
|
-
function
|
|
3988
|
-
return e in
|
|
3966
|
+
function Gr(e) {
|
|
3967
|
+
return e in gt;
|
|
3989
3968
|
}
|
|
3990
|
-
function
|
|
3991
|
-
if (
|
|
3969
|
+
function eo(e, t) {
|
|
3970
|
+
if (!Gr(e))
|
|
3992
3971
|
return null;
|
|
3993
|
-
const r =
|
|
3994
|
-
return
|
|
3972
|
+
const r = Ki(e);
|
|
3973
|
+
return qi(r, t);
|
|
3995
3974
|
}
|
|
3996
|
-
function
|
|
3975
|
+
function to(e) {
|
|
3997
3976
|
if (e == null)
|
|
3998
3977
|
return;
|
|
3999
|
-
const t =
|
|
3978
|
+
const t = Ge(e);
|
|
4000
3979
|
for (let r = 0; r < t.length; r++) {
|
|
4001
3980
|
const n = t[r];
|
|
4002
|
-
if (
|
|
3981
|
+
if (Gr(n))
|
|
4003
3982
|
return n;
|
|
4004
3983
|
}
|
|
4005
3984
|
}
|
|
4006
|
-
function
|
|
3985
|
+
function $r(e, ...t) {
|
|
4007
3986
|
delete J[e], Se.update((r) => (r[e] = ai.all([r[e] || {}, ...t]), r));
|
|
4008
3987
|
}
|
|
4009
|
-
|
|
3988
|
+
pe(
|
|
4010
3989
|
[Se],
|
|
4011
3990
|
([e]) => Object.keys(e)
|
|
4012
3991
|
);
|
|
4013
|
-
Se.subscribe((e) =>
|
|
3992
|
+
Se.subscribe((e) => gt = e);
|
|
4014
3993
|
const Ie = {};
|
|
4015
|
-
function
|
|
3994
|
+
function ro(e, t) {
|
|
4016
3995
|
Ie[e].delete(t), Ie[e].size === 0 && delete Ie[e];
|
|
4017
3996
|
}
|
|
4018
|
-
function
|
|
3997
|
+
function jr(e) {
|
|
4019
3998
|
return Ie[e];
|
|
4020
3999
|
}
|
|
4021
|
-
function
|
|
4022
|
-
return
|
|
4023
|
-
const r =
|
|
4000
|
+
function no(e) {
|
|
4001
|
+
return Ge(e).map((t) => {
|
|
4002
|
+
const r = jr(t);
|
|
4024
4003
|
return [t, r ? [...r] : []];
|
|
4025
4004
|
}).filter(([, t]) => t.length > 0);
|
|
4026
4005
|
}
|
|
4027
|
-
function
|
|
4028
|
-
return e == null ? !1 :
|
|
4006
|
+
function ct(e) {
|
|
4007
|
+
return e == null ? !1 : Ge(e).some(
|
|
4029
4008
|
(t) => {
|
|
4030
4009
|
var r;
|
|
4031
|
-
return (r =
|
|
4010
|
+
return (r = jr(t)) == null ? void 0 : r.size;
|
|
4032
4011
|
}
|
|
4033
4012
|
);
|
|
4034
4013
|
}
|
|
4035
|
-
function
|
|
4014
|
+
function io(e, t) {
|
|
4036
4015
|
return Promise.all(
|
|
4037
|
-
t.map((n) => (
|
|
4038
|
-
).then((n) =>
|
|
4039
|
-
}
|
|
4040
|
-
const
|
|
4041
|
-
function
|
|
4042
|
-
if (!
|
|
4043
|
-
return e in
|
|
4044
|
-
const t =
|
|
4045
|
-
return
|
|
4016
|
+
t.map((n) => (ro(e, n), n().then((i) => i.default || i)))
|
|
4017
|
+
).then((n) => $r(e, ...n));
|
|
4018
|
+
}
|
|
4019
|
+
const ve = {};
|
|
4020
|
+
function Wr(e) {
|
|
4021
|
+
if (!ct(e))
|
|
4022
|
+
return e in ve ? ve[e] : Promise.resolve();
|
|
4023
|
+
const t = no(e);
|
|
4024
|
+
return ve[e] = Promise.all(
|
|
4046
4025
|
t.map(
|
|
4047
|
-
([r, n]) =>
|
|
4026
|
+
([r, n]) => io(r, n)
|
|
4048
4027
|
)
|
|
4049
4028
|
).then(() => {
|
|
4050
|
-
if (
|
|
4051
|
-
return
|
|
4052
|
-
delete
|
|
4053
|
-
}),
|
|
4029
|
+
if (ct(e))
|
|
4030
|
+
return Wr(e);
|
|
4031
|
+
delete ve[e];
|
|
4032
|
+
}), ve[e];
|
|
4054
4033
|
}
|
|
4055
|
-
const
|
|
4034
|
+
const oo = {
|
|
4056
4035
|
number: {
|
|
4057
4036
|
scientific: { notation: "scientific" },
|
|
4058
4037
|
engineering: { notation: "engineering" },
|
|
@@ -4081,150 +4060,150 @@ const so = {
|
|
|
4081
4060
|
timeZoneName: "short"
|
|
4082
4061
|
}
|
|
4083
4062
|
}
|
|
4084
|
-
},
|
|
4063
|
+
}, ao = {
|
|
4085
4064
|
fallbackLocale: null,
|
|
4086
4065
|
loadingDelay: 200,
|
|
4087
|
-
formats:
|
|
4066
|
+
formats: oo,
|
|
4088
4067
|
warnOnMissingMessages: !0,
|
|
4089
4068
|
handleMissingMessage: void 0,
|
|
4090
4069
|
ignoreTag: !0
|
|
4091
|
-
},
|
|
4092
|
-
function
|
|
4093
|
-
return
|
|
4070
|
+
}, so = ao;
|
|
4071
|
+
function fe() {
|
|
4072
|
+
return so;
|
|
4094
4073
|
}
|
|
4095
|
-
const
|
|
4096
|
-
var
|
|
4074
|
+
const Je = De(!1);
|
|
4075
|
+
var lo = Object.defineProperty, uo = Object.defineProperties, ho = Object.getOwnPropertyDescriptors, Xt = Object.getOwnPropertySymbols, co = Object.prototype.hasOwnProperty, fo = Object.prototype.propertyIsEnumerable, zt = (e, t, r) => t in e ? lo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mo = (e, t) => {
|
|
4097
4076
|
for (var r in t || (t = {}))
|
|
4098
|
-
|
|
4099
|
-
if (
|
|
4100
|
-
for (var r of
|
|
4101
|
-
|
|
4077
|
+
co.call(t, r) && zt(e, r, t[r]);
|
|
4078
|
+
if (Xt)
|
|
4079
|
+
for (var r of Xt(t))
|
|
4080
|
+
fo.call(t, r) && zt(e, r, t[r]);
|
|
4102
4081
|
return e;
|
|
4103
|
-
},
|
|
4104
|
-
let
|
|
4105
|
-
const
|
|
4106
|
-
function
|
|
4082
|
+
}, po = (e, t) => uo(e, ho(t));
|
|
4083
|
+
let ft;
|
|
4084
|
+
const Re = De(null);
|
|
4085
|
+
function Zt(e) {
|
|
4107
4086
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4108
4087
|
}
|
|
4109
|
-
function
|
|
4110
|
-
const r =
|
|
4111
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4088
|
+
function Ge(e, t = fe().fallbackLocale) {
|
|
4089
|
+
const r = Zt(e);
|
|
4090
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Zt(t)])] : r;
|
|
4112
4091
|
}
|
|
4113
4092
|
function re() {
|
|
4114
|
-
return
|
|
4093
|
+
return ft ?? void 0;
|
|
4115
4094
|
}
|
|
4116
|
-
|
|
4117
|
-
|
|
4095
|
+
Re.subscribe((e) => {
|
|
4096
|
+
ft = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4118
4097
|
});
|
|
4119
|
-
const
|
|
4120
|
-
if (e &&
|
|
4121
|
-
const { loadingDelay: t } =
|
|
4098
|
+
const go = (e) => {
|
|
4099
|
+
if (e && to(e) && ct(e)) {
|
|
4100
|
+
const { loadingDelay: t } = fe();
|
|
4122
4101
|
let r;
|
|
4123
4102
|
return typeof window < "u" && re() != null && t ? r = window.setTimeout(
|
|
4124
|
-
() =>
|
|
4103
|
+
() => Je.set(!0),
|
|
4125
4104
|
t
|
|
4126
|
-
) :
|
|
4127
|
-
|
|
4105
|
+
) : Je.set(!0), Wr(e).then(() => {
|
|
4106
|
+
Re.set(e);
|
|
4128
4107
|
}).finally(() => {
|
|
4129
|
-
clearTimeout(r),
|
|
4108
|
+
clearTimeout(r), Je.set(!1);
|
|
4130
4109
|
});
|
|
4131
4110
|
}
|
|
4132
|
-
return
|
|
4133
|
-
},
|
|
4134
|
-
set:
|
|
4135
|
-
}),
|
|
4111
|
+
return Re.set(e);
|
|
4112
|
+
}, ge = po(mo({}, Re), {
|
|
4113
|
+
set: go
|
|
4114
|
+
}), $e = (e) => {
|
|
4136
4115
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4137
4116
|
return (n) => {
|
|
4138
4117
|
const i = JSON.stringify(n);
|
|
4139
4118
|
return i in t ? t[i] : t[i] = e(n);
|
|
4140
4119
|
};
|
|
4141
4120
|
};
|
|
4142
|
-
var
|
|
4121
|
+
var bo = Object.defineProperty, Ue = Object.getOwnPropertySymbols, Vr = Object.prototype.hasOwnProperty, Xr = Object.prototype.propertyIsEnumerable, Qt = (e, t, r) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bt = (e, t) => {
|
|
4143
4122
|
for (var r in t || (t = {}))
|
|
4144
|
-
|
|
4145
|
-
if (
|
|
4146
|
-
for (var r of
|
|
4147
|
-
|
|
4123
|
+
Vr.call(t, r) && Qt(e, r, t[r]);
|
|
4124
|
+
if (Ue)
|
|
4125
|
+
for (var r of Ue(t))
|
|
4126
|
+
Xr.call(t, r) && Qt(e, r, t[r]);
|
|
4148
4127
|
return e;
|
|
4149
|
-
},
|
|
4128
|
+
}, be = (e, t) => {
|
|
4150
4129
|
var r = {};
|
|
4151
4130
|
for (var n in e)
|
|
4152
|
-
|
|
4153
|
-
if (e != null &&
|
|
4154
|
-
for (var n of
|
|
4155
|
-
t.indexOf(n) < 0 &&
|
|
4131
|
+
Vr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4132
|
+
if (e != null && Ue)
|
|
4133
|
+
for (var n of Ue(e))
|
|
4134
|
+
t.indexOf(n) < 0 && Xr.call(e, n) && (r[n] = e[n]);
|
|
4156
4135
|
return r;
|
|
4157
4136
|
};
|
|
4158
|
-
const
|
|
4159
|
-
const { formats: r } =
|
|
4137
|
+
const Ee = (e, t) => {
|
|
4138
|
+
const { formats: r } = fe();
|
|
4160
4139
|
if (e in r && t in r[e])
|
|
4161
4140
|
return r[e][t];
|
|
4162
4141
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4163
|
-
},
|
|
4142
|
+
}, vo = $e(
|
|
4164
4143
|
(e) => {
|
|
4165
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4144
|
+
var t = e, { locale: r, format: n } = t, i = be(t, ["locale", "format"]);
|
|
4166
4145
|
if (r == null)
|
|
4167
4146
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4168
|
-
return n && (i =
|
|
4147
|
+
return n && (i = Ee("number", n)), new Intl.NumberFormat(r, i);
|
|
4169
4148
|
}
|
|
4170
|
-
),
|
|
4149
|
+
), yo = $e(
|
|
4171
4150
|
(e) => {
|
|
4172
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4151
|
+
var t = e, { locale: r, format: n } = t, i = be(t, ["locale", "format"]);
|
|
4173
4152
|
if (r == null)
|
|
4174
4153
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4175
|
-
return n ? i =
|
|
4154
|
+
return n ? i = Ee("date", n) : Object.keys(i).length === 0 && (i = Ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4176
4155
|
}
|
|
4177
|
-
),
|
|
4156
|
+
), _o = $e(
|
|
4178
4157
|
(e) => {
|
|
4179
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4158
|
+
var t = e, { locale: r, format: n } = t, i = be(t, ["locale", "format"]);
|
|
4180
4159
|
if (r == null)
|
|
4181
4160
|
throw new Error(
|
|
4182
4161
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4183
4162
|
);
|
|
4184
|
-
return n ? i =
|
|
4163
|
+
return n ? i = Ee("time", n) : Object.keys(i).length === 0 && (i = Ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4185
4164
|
}
|
|
4186
|
-
),
|
|
4165
|
+
), xo = (e = {}) => {
|
|
4187
4166
|
var t = e, {
|
|
4188
4167
|
locale: r = re()
|
|
4189
|
-
} = t, n =
|
|
4168
|
+
} = t, n = be(t, [
|
|
4190
4169
|
"locale"
|
|
4191
4170
|
]);
|
|
4192
|
-
return
|
|
4193
|
-
},
|
|
4171
|
+
return vo(bt({ locale: r }, n));
|
|
4172
|
+
}, Eo = (e = {}) => {
|
|
4194
4173
|
var t = e, {
|
|
4195
4174
|
locale: r = re()
|
|
4196
|
-
} = t, n =
|
|
4175
|
+
} = t, n = be(t, [
|
|
4197
4176
|
"locale"
|
|
4198
4177
|
]);
|
|
4199
|
-
return
|
|
4200
|
-
},
|
|
4178
|
+
return yo(bt({ locale: r }, n));
|
|
4179
|
+
}, wo = (e = {}) => {
|
|
4201
4180
|
var t = e, {
|
|
4202
4181
|
locale: r = re()
|
|
4203
|
-
} = t, n =
|
|
4182
|
+
} = t, n = be(t, [
|
|
4204
4183
|
"locale"
|
|
4205
4184
|
]);
|
|
4206
|
-
return
|
|
4207
|
-
},
|
|
4185
|
+
return _o(bt({ locale: r }, n));
|
|
4186
|
+
}, So = $e(
|
|
4208
4187
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4209
|
-
(e, t = re()) => new
|
|
4210
|
-
ignoreTag:
|
|
4188
|
+
(e, t = re()) => new Yi(e, t, fe().formats, {
|
|
4189
|
+
ignoreTag: fe().ignoreTag
|
|
4211
4190
|
})
|
|
4212
|
-
),
|
|
4191
|
+
), Ho = (e, t = {}) => {
|
|
4213
4192
|
var r, n, i, o;
|
|
4214
4193
|
let a = t;
|
|
4215
4194
|
typeof e == "object" && (a = e, e = a.id);
|
|
4216
4195
|
const {
|
|
4217
4196
|
values: s,
|
|
4218
|
-
locale:
|
|
4219
|
-
default:
|
|
4197
|
+
locale: l = re(),
|
|
4198
|
+
default: u
|
|
4220
4199
|
} = a;
|
|
4221
|
-
if (
|
|
4200
|
+
if (l == null)
|
|
4222
4201
|
throw new Error(
|
|
4223
4202
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4224
4203
|
);
|
|
4225
|
-
let h =
|
|
4204
|
+
let h = kr(e, l);
|
|
4226
4205
|
if (!h)
|
|
4227
|
-
h = (o = (i = (n = (r =
|
|
4206
|
+
h = (o = (i = (n = (r = fe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4228
4207
|
else if (typeof h != "string")
|
|
4229
4208
|
return console.warn(
|
|
4230
4209
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4233,7 +4212,7 @@ const xe = (e, t) => {
|
|
|
4233
4212
|
return h;
|
|
4234
4213
|
let c = h;
|
|
4235
4214
|
try {
|
|
4236
|
-
c =
|
|
4215
|
+
c = So(h, l).format(s);
|
|
4237
4216
|
} catch (f) {
|
|
4238
4217
|
f instanceof Error && console.warn(
|
|
4239
4218
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4241,20 +4220,20 @@ const xe = (e, t) => {
|
|
|
4241
4220
|
);
|
|
4242
4221
|
}
|
|
4243
4222
|
return c;
|
|
4244
|
-
},
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4223
|
+
}, To = (e, t) => wo(t).format(e), Oo = (e, t) => Eo(t).format(e), Mo = (e, t) => xo(t).format(e), Ao = (e, t = re()) => kr(e, t), Bo = pe([ge, Se], () => Ho);
|
|
4224
|
+
pe([ge], () => To);
|
|
4225
|
+
pe([ge], () => Oo);
|
|
4226
|
+
pe([ge], () => Mo);
|
|
4227
|
+
pe([ge, Se], () => Ao);
|
|
4249
4228
|
window.emWidgets = { topic: jn };
|
|
4250
|
-
const
|
|
4251
|
-
function
|
|
4229
|
+
const Lo = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), Po = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4230
|
+
function Io(e, t) {
|
|
4252
4231
|
if (e) {
|
|
4253
4232
|
const r = document.createElement("style");
|
|
4254
4233
|
r.innerHTML = t, e.appendChild(r);
|
|
4255
4234
|
}
|
|
4256
4235
|
}
|
|
4257
|
-
function
|
|
4236
|
+
function Co(e, t) {
|
|
4258
4237
|
const r = new URL(t);
|
|
4259
4238
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4260
4239
|
const i = document.createElement("style");
|
|
@@ -4263,7 +4242,7 @@ function Ro(e, t) {
|
|
|
4263
4242
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4264
4243
|
});
|
|
4265
4244
|
}
|
|
4266
|
-
function
|
|
4245
|
+
function No(e, t, r) {
|
|
4267
4246
|
if (window.emMessageBus) {
|
|
4268
4247
|
const n = document.createElement("style");
|
|
4269
4248
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4271,13 +4250,13 @@ function Uo(e, t, r) {
|
|
|
4271
4250
|
});
|
|
4272
4251
|
}
|
|
4273
4252
|
}
|
|
4274
|
-
function
|
|
4275
|
-
|
|
4253
|
+
function Yt(e, t) {
|
|
4254
|
+
$r(e, t);
|
|
4276
4255
|
}
|
|
4277
|
-
function
|
|
4278
|
-
|
|
4256
|
+
function Ro(e) {
|
|
4257
|
+
ge.set(e);
|
|
4279
4258
|
}
|
|
4280
|
-
const
|
|
4259
|
+
const qt = {
|
|
4281
4260
|
en: {
|
|
4282
4261
|
language: "Select Language"
|
|
4283
4262
|
},
|
|
@@ -4312,65 +4291,65 @@ const Kt = {
|
|
|
4312
4291
|
language: "Select Language"
|
|
4313
4292
|
}
|
|
4314
4293
|
};
|
|
4315
|
-
function
|
|
4294
|
+
function Uo(e) {
|
|
4316
4295
|
ln(e, "svelte-1kfw037", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.Skeleton{animation:skeleton-loading 0.6s linear infinite alternate}@keyframes skeleton-loading{0%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.2) 0%, rgba(0, 61, 93, 0.2) 100%)}12%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.225) 0%, rgba(0, 61, 93, 0.225) 100%)}25%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.25) 0%, rgba(0, 61, 93, 0.25) 100%)}33%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.275) 0%, rgba(0, 61, 93, 0.275) 100%)}50%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.3) 0%, rgba(0, 61, 93, 0.3) 100%)}63%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.325) 0%, rgba(0, 61, 93, 0.325) 100%)}75%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.35) 0%, rgba(0, 61, 93, 0.35) 100%)}88%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.375) 0%, rgba(0, 61, 93, 0.375) 100%)}100%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.4) 0%, rgba(0, 61, 93, 0.4) 100%)}}@keyframes increaseTransparency{0%{opacity:0}25%{opacity:0.25}75%{opacity:0.75}100%{opacity:1}}@keyframes decreaseTransparency{100%{opacity:1}75%{opacity:0.75}25%{opacity:0.25}0%{opacity:0}}@keyframes growWidthPercent{from{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes growWidth{from{transform:translateY(0)}to{transform:translateY(0)}}@keyframes decreaseWidth{from{transform:translateX(1)}to{transform:translateX(0)}}.NavIcon{width:30px;height:28px;position:relative;margin:3px auto;transform:rotate(0deg);transition:transform 0.2s ease-in-out;cursor:pointer}.NavIcon span{display:block;position:absolute;height:3px;width:100%;background:#ffffff;border-radius:9px;opacity:1;left:0;transform:rotate(0deg);transition:transform 0.2s ease-in-out, opacity 0.2s ease-in-out}.NavIcon span:nth-child(1){top:0px;width:80%}.NavIcon span:nth-child(2){top:9px}.NavIcon span:nth-child(3){top:18px}.NavIcon.Open span:nth-child(1){top:9px;width:100%;transform:rotate(135deg);transition:transform 0.3s ease-in-out}.NavIcon.Open span:nth-child(2){opacity:0;left:-60px}.NavIcon.Open span:nth-child(3){top:9px;transform:rotate(-135deg);transition:transform 0.3s ease-in-out}.SelectedOption{display:flex;align-items:center;justify-content:center}.SelectedOption .TriangleActive,.SelectedOption .TriangleInactive{display:block;margin:0 0 0 10px;transform:rotateX(0deg);transition:transform 0.2s ease-in-out}.SelectedOption .TriangleActive svg,.SelectedOption .TriangleInactive svg{margin:-2px 0px;fill:white}.SelectedOption .TriangleActive{transform:rotateX(180deg);transition:transform 0.2s ease-in-out}.SelectedOption .TriangleActive:hover{transform:rotateX(180deg);transition:transform 0.2s ease-in-out}.FlagIcon>img{width:20px;height:14px;margin-right:8px;border-radius:2px}.LanguageSelector{padding:5px 0;margin-bottom:0;display:flex;justify-content:space-between;background:linear-gradient(90deg, rgba(35, 178, 78, 0.9) 0%, rgba(0, 61, 93, 0.9) 100%);transition:transform 0.2s linear;height:44px}.LanguageSelector span{display:inline;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));opacity:0.8;padding:5px 0;display:flex;align-items:center;gap:15px;font-size:14px}.LanguageSelector:active{transition:all 0.2s ease}.LanguageSelector:active span{transition:all 0.1s linear;opacity:1}.LanguageSelector.Open{box-shadow:inset 0 -3.25em 0 0 var(--emw--color-primary)}.LanguageSelector .LanguageSelectorTitle{margin:0 20px}.LanguageSelector .LanguageDropdown{margin-right:16px;display:inline-block}.LanguageSelector .OptionList{position:absolute;background:linear-gradient(90deg, rgba(35, 178, 78, 0.1) 0%, rgba(0, 61, 93, 0.1) 100%);min-width:180px;z-index:1;overflow-y:auto;display:flex;flex-direction:column-reverse;bottom:44px;left:0;gap:5px;padding-bottom:5px;width:100%;height:0px;transition:transform 0.2s linear}.LanguageSelector .OptionList.Open{transition:transform 0.2s linear;height:auto;background-color:var(--emw--color-background-secondary, #000000);overflow:auto}.LanguageSelector .OptionList .LanguageOption{display:flex;border:2px solid #22B04E;border-radius:13px;align-items:center;opacity:0.2;height:0px;background:linear-gradient(90deg, rgba(35, 178, 78, 0.2) 0%, rgba(0, 61, 93, 0.2) 100%);margin:0 5px;transition:transform 0.3s linear}.LanguageSelector .OptionList .LanguageOption.Open{height:50px;opacity:1;padding:10px 5px}.LanguageSelector .OptionList .LanguageOption:active,.LanguageSelector .OptionList .LanguageOption:hover{background:linear-gradient(90deg, rgb(35, 178, 78) 0%, rgb(0, 61, 93) 100%);transform:scale(1.03);transition:transform 0.2s ease-in-out}.LanguageSelector .OptionList .LanguageOption:active span,.LanguageSelector .OptionList .LanguageOption:hover span{color:black}.ItemLanguage{height:34px;width:100%;text-align:left;line-height:34px;background:transparent;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));border:none}.ItemLanguage option{color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.HamburgerModalWindow{display:flex;align-items:flex-start;position:fixed;width:100%;height:100%;z-index:100;z-index:999999;top:0;left:0;background-color:rgba(0, 0, 0, 0.85);animation:increaseTransparency 0.2s ease-in forwards}.HamburgerModalWindow>span{opacity:0}.HamburgerModalWindow .HamburgerModalContainer{max-width:992px;position:relative;background:var(--emw--color-primary);display:flex;flex-direction:column;justify-content:space-between;height:100%;padding:0;border-top:0;border-radius:0;overflow-x:hidden;overflow-y:scroll}.HamburgerModalWindow .HamburgerModalContainer.ActiveHamburgerMenu{animation:growWidth 0.2s forwards;transform-origin:left;will-change:transform}.HamburgerModalWindow .HamburgerModalContainer.Closing{animation:decreaseWidth 0.2s backwards;transform-origin:right;animation-fill-mode:backwards;will-change:transform}.HamburgerModalWindow .HamburgerModalContainer .Separator{width:100%;height:5px;background:rgb(0, 0, 0);background:linear-gradient(90deg, rgb(13, 78, 2) 0%, rgb(35, 172, 77) 50%, rgb(13, 78, 2) 100%);z-index:3}.HamburgerModalWindow .ModalCloseBtn{position:relative;top:25px;width:30px;height:30px;opacity:1;margin-left:7px;margin-right:9px;cursor:pointer}.HamburgerModalWindow .ModalCloseBtn .NavIcon .Open{width:90vw}.HamburgerModalWindow .ModalCloseBtn svg{width:20px;height:20px;padding:2px}.HamburgerModalWindow .HamburgerPrimaryMenu,.HamburgerModalWindow .HamburgerSecondaryMenu{font-size:12px;display:flex;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));transform-origin:left;transform:scaleX(0);animation:growWidthPercent 0.2s both;animation-delay:0.1s}.HamburgerModalWindow .HamburgerPrimaryMenu li,.HamburgerModalWindow .HamburgerSecondaryMenu li{transition:transform 150ms ease-in-out, opacity 150ms ease-in-out}.HamburgerModalWindow .HamburgerPrimaryMenu img,.HamburgerModalWindow .HamburgerSecondaryMenu img{max-width:40px}.HamburgerModalWindow .HamburgerPrimaryMenu{background:var(--emw--header-color-menu-bg, var(--emw--color-background-secondary, #000000));white-space:nowrap;overflow-x:scroll;list-style:none;width:90vw;text-transform:uppercase;font-size:11px;transition:all 0.2s;height:80px}.HamburgerModalWindow .HamburgerPrimaryMenu>li{max-width:125px;padding:14px 25px;display:inline-block}.HamburgerModalWindow .HamburgerPrimaryMenu>li:active{transform:scale(1.1)}.HamburgerModalWindow .HamburgerPrimaryMenu>li.ActiveItem{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04F));color:black}.HamburgerModalWindow .HamburgerPrimaryMenu .Loading{width:150px;height:86px;margin:0 2px}.HamburgerModalWindow .HamburgerPrimaryMenu .HamburgerItemContainer{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px}.HamburgerModalWindow .HamburgerSecondaryMenu{margin-top:10px;list-style:none;height:calc(100% - 124px);overflow:auto;width:90vw;display:flex;flex-direction:column}.HamburgerModalWindow .HamburgerSecondaryMenu.Overlay{opacity:0.5;transition:opacity 0.2s ease-in-out}.HamburgerModalWindow .HamburgerSecondaryMenu li{padding:10px;display:flex;align-items:center;gap:15px;transition:transform 0.2s linear}.HamburgerModalWindow .HamburgerSecondaryMenu li:active{background-color:var(--emw--color-primary);transform:scale(1.1)}.HamburgerModalWindow .HamburgerSecondaryMenu li a{text-decoration:none;display:flex;align-items:center;gap:15px;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));font-size:14px}.HamburgerModalWindow .HamburgerSecondaryMenu li:not(:last-child){border-bottom:1px solid var(--emw--color-gray-300, #58586B)}.HamburgerModalWindow .HamburgerSecondaryMenu li:active a{color:var(--emw--color-primary, #22B04F)}.FlagIcon{margin-left:12px}.NoFlag{width:88%;margin:0 20px}");
|
|
4317
4296
|
}
|
|
4318
|
-
function
|
|
4297
|
+
function Jt(e, t, r) {
|
|
4319
4298
|
const n = e.slice();
|
|
4320
4299
|
return n[57] = t[r], n;
|
|
4321
4300
|
}
|
|
4322
|
-
function
|
|
4301
|
+
function Kt(e, t, r) {
|
|
4323
4302
|
const n = e.slice();
|
|
4324
4303
|
return n[1] = t[r], n;
|
|
4325
4304
|
}
|
|
4326
|
-
function
|
|
4305
|
+
function er(e, t, r) {
|
|
4327
4306
|
const n = e.slice();
|
|
4328
4307
|
return n[60] = t[r], n;
|
|
4329
4308
|
}
|
|
4330
|
-
function
|
|
4309
|
+
function Fo(e, t, r) {
|
|
4331
4310
|
const n = e.slice();
|
|
4332
4311
|
return n[66] = t[r], n;
|
|
4333
4312
|
}
|
|
4334
|
-
function
|
|
4313
|
+
function tr(e, t, r) {
|
|
4335
4314
|
const n = e.slice();
|
|
4336
4315
|
return n[63] = t[r], n;
|
|
4337
4316
|
}
|
|
4338
|
-
function
|
|
4339
|
-
let t, r, n, i, o, a, s,
|
|
4317
|
+
function rr(e) {
|
|
4318
|
+
let t, r, n, i, o, a, s, l, u, h, c, f, m, g, v, S, T, P, B, G, C, V, X;
|
|
4340
4319
|
function ne(x, R) {
|
|
4341
4320
|
return (
|
|
4342
4321
|
/*HamburgerMenuItems*/
|
|
4343
|
-
x[4].length > 0 ?
|
|
4322
|
+
x[4].length > 0 ? ko : Do
|
|
4344
4323
|
);
|
|
4345
4324
|
}
|
|
4346
|
-
let q = ne(e), N = q(e), j =
|
|
4325
|
+
let q = ne(e), N = q(e), j = Q(
|
|
4347
4326
|
/*activeMenuItemChildren*/
|
|
4348
4327
|
e[6]
|
|
4349
|
-
),
|
|
4328
|
+
), M = [];
|
|
4350
4329
|
for (let x = 0; x < j.length; x += 1)
|
|
4351
|
-
|
|
4352
|
-
let
|
|
4330
|
+
M[x] = ar(er(e, j, x));
|
|
4331
|
+
let L = (
|
|
4353
4332
|
/*languagesArray*/
|
|
4354
|
-
e[9].length > 1 &&
|
|
4333
|
+
e[9].length > 1 && sr(e)
|
|
4355
4334
|
);
|
|
4356
4335
|
return {
|
|
4357
4336
|
c() {
|
|
4358
4337
|
t = y("div"), r = y("div"), n = y("ul"), N.c(), i = U(), o = y("div"), a = U(), s = y("ul");
|
|
4359
|
-
for (let x = 0; x <
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
(e[10] ? "Overlay" : "")),
|
|
4338
|
+
for (let x = 0; x < M.length; x += 1)
|
|
4339
|
+
M[x].c();
|
|
4340
|
+
u = U(), L && L.c(), c = U(), f = y("span"), m = y("div"), g = y("span"), v = U(), S = y("span"), T = U(), P = y("span"), p(n, "class", "HamburgerPrimaryMenu"), p(o, "class", "Separator"), p(s, "class", l = "HamburgerSecondaryMenu " + /*isOptionsListVisible*/
|
|
4341
|
+
(e[10] ? "Overlay" : "")), p(r, "class", h = "HamburgerModalContainer " + /*modalIsOpen*/
|
|
4363
4342
|
(e[7] ? "ActiveHamburgerMenu" : "") + " " + /*isClosing*/
|
|
4364
|
-
(e[12] ? "Closing" : "")), m
|
|
4365
|
-
e[13] ? "" : "Open")),
|
|
4366
|
-
e[7] ? "ModalCloseBtn" : ""),
|
|
4343
|
+
(e[12] ? "Closing" : "")), p(m, "class", B = "NavIcon " + (/*navIconClosing*/
|
|
4344
|
+
e[13] ? "" : "Open")), p(f, "class", G = /*modalIsOpen*/
|
|
4345
|
+
e[7] ? "ModalCloseBtn" : ""), p(f, "role", "button"), p(t, "class", C = "HamburgerModalWindow " + /*isClosing*/
|
|
4367
4346
|
(e[12] ? " Closing" : ""));
|
|
4368
4347
|
},
|
|
4369
4348
|
m(x, R) {
|
|
4370
4349
|
F(x, t, R), b(t, r), b(r, n), N.m(n, null), b(r, i), b(r, o), b(r, a), b(r, s);
|
|
4371
|
-
for (let
|
|
4372
|
-
|
|
4373
|
-
b(r,
|
|
4350
|
+
for (let H = 0; H < M.length; H += 1)
|
|
4351
|
+
M[H] && M[H].m(s, null);
|
|
4352
|
+
b(r, u), L && L.m(r, null), b(t, c), b(t, f), b(f, m), b(m, g), b(m, v), b(m, S), b(m, T), b(m, P), e[40](t), V || (X = te(
|
|
4374
4353
|
f,
|
|
4375
4354
|
"click",
|
|
4376
4355
|
/*close*/
|
|
@@ -4380,47 +4359,47 @@ function ir(e) {
|
|
|
4380
4359
|
p(x, R) {
|
|
4381
4360
|
if (q === (q = ne(x)) && N ? N.p(x, R) : (N.d(1), N = q(x), N && (N.c(), N.m(n, null))), R[0] & /*handleClick, activeMenuItemChildren*/
|
|
4382
4361
|
262208) {
|
|
4383
|
-
j =
|
|
4362
|
+
j = Q(
|
|
4384
4363
|
/*activeMenuItemChildren*/
|
|
4385
4364
|
x[6]
|
|
4386
4365
|
);
|
|
4387
|
-
let
|
|
4388
|
-
for (
|
|
4389
|
-
const W =
|
|
4390
|
-
|
|
4366
|
+
let H;
|
|
4367
|
+
for (H = 0; H < j.length; H += 1) {
|
|
4368
|
+
const W = er(x, j, H);
|
|
4369
|
+
M[H] ? M[H].p(W, R) : (M[H] = ar(W), M[H].c(), M[H].m(s, null));
|
|
4391
4370
|
}
|
|
4392
|
-
for (;
|
|
4393
|
-
|
|
4394
|
-
|
|
4371
|
+
for (; H < M.length; H += 1)
|
|
4372
|
+
M[H].d(1);
|
|
4373
|
+
M.length = j.length;
|
|
4395
4374
|
}
|
|
4396
4375
|
R[0] & /*isOptionsListVisible*/
|
|
4397
|
-
1024 &&
|
|
4398
|
-
(x[10] ? "Overlay" : "")) &&
|
|
4399
|
-
x[9].length > 1 ?
|
|
4376
|
+
1024 && l !== (l = "HamburgerSecondaryMenu " + /*isOptionsListVisible*/
|
|
4377
|
+
(x[10] ? "Overlay" : "")) && p(s, "class", l), /*languagesArray*/
|
|
4378
|
+
x[9].length > 1 ? L ? L.p(x, R) : (L = sr(x), L.c(), L.m(r, null)) : L && (L.d(1), L = null), R[0] & /*modalIsOpen, isClosing*/
|
|
4400
4379
|
4224 && h !== (h = "HamburgerModalContainer " + /*modalIsOpen*/
|
|
4401
4380
|
(x[7] ? "ActiveHamburgerMenu" : "") + " " + /*isClosing*/
|
|
4402
|
-
(x[12] ? "Closing" : "")) &&
|
|
4403
|
-
8192 &&
|
|
4404
|
-
x[13] ? "" : "Open")) && m
|
|
4381
|
+
(x[12] ? "Closing" : "")) && p(r, "class", h), R[0] & /*navIconClosing*/
|
|
4382
|
+
8192 && B !== (B = "NavIcon " + (/*navIconClosing*/
|
|
4383
|
+
x[13] ? "" : "Open")) && p(m, "class", B), R[0] & /*modalIsOpen*/
|
|
4405
4384
|
128 && G !== (G = /*modalIsOpen*/
|
|
4406
|
-
x[7] ? "ModalCloseBtn" : "") &&
|
|
4385
|
+
x[7] ? "ModalCloseBtn" : "") && p(f, "class", G), R[0] & /*isClosing*/
|
|
4407
4386
|
4096 && C !== (C = "HamburgerModalWindow " + /*isClosing*/
|
|
4408
|
-
(x[12] ? " Closing" : "")) &&
|
|
4387
|
+
(x[12] ? " Closing" : "")) && p(t, "class", C);
|
|
4409
4388
|
},
|
|
4410
4389
|
d(x) {
|
|
4411
|
-
x && I(t), N.d(),
|
|
4390
|
+
x && I(t), N.d(), we(M, x), L && L.d(), e[40](null), V = !1, X();
|
|
4412
4391
|
}
|
|
4413
4392
|
};
|
|
4414
4393
|
}
|
|
4415
|
-
function
|
|
4416
|
-
let t, r =
|
|
4394
|
+
function Do(e) {
|
|
4395
|
+
let t, r = Q(new Array(5)), n = [];
|
|
4417
4396
|
for (let i = 0; i < r.length; i += 1)
|
|
4418
|
-
n[i] =
|
|
4397
|
+
n[i] = Go(Fo(e, r, i));
|
|
4419
4398
|
return {
|
|
4420
4399
|
c() {
|
|
4421
4400
|
for (let i = 0; i < n.length; i += 1)
|
|
4422
4401
|
n[i].c();
|
|
4423
|
-
t =
|
|
4402
|
+
t = mr();
|
|
4424
4403
|
},
|
|
4425
4404
|
m(i, o) {
|
|
4426
4405
|
for (let a = 0; a < n.length; a += 1)
|
|
@@ -4429,22 +4408,22 @@ function Go(e) {
|
|
|
4429
4408
|
},
|
|
4430
4409
|
p: $,
|
|
4431
4410
|
d(i) {
|
|
4432
|
-
i && I(t),
|
|
4411
|
+
i && I(t), we(n, i);
|
|
4433
4412
|
}
|
|
4434
4413
|
};
|
|
4435
4414
|
}
|
|
4436
|
-
function
|
|
4437
|
-
let t, r =
|
|
4415
|
+
function ko(e) {
|
|
4416
|
+
let t, r = Q(
|
|
4438
4417
|
/*HamburgerMenuItems*/
|
|
4439
4418
|
e[4]
|
|
4440
4419
|
), n = [];
|
|
4441
4420
|
for (let i = 0; i < r.length; i += 1)
|
|
4442
|
-
n[i] =
|
|
4421
|
+
n[i] = ir(tr(e, r, i));
|
|
4443
4422
|
return {
|
|
4444
4423
|
c() {
|
|
4445
4424
|
for (let i = 0; i < n.length; i += 1)
|
|
4446
4425
|
n[i].c();
|
|
4447
|
-
t =
|
|
4426
|
+
t = mr();
|
|
4448
4427
|
},
|
|
4449
4428
|
m(i, o) {
|
|
4450
4429
|
for (let a = 0; a < n.length; a += 1)
|
|
@@ -4454,14 +4433,14 @@ function $o(e) {
|
|
|
4454
4433
|
p(i, o) {
|
|
4455
4434
|
if (o[0] & /*activeMenuItemId, HamburgerMenuItems, changeMenu*/
|
|
4456
4435
|
131120) {
|
|
4457
|
-
r =
|
|
4436
|
+
r = Q(
|
|
4458
4437
|
/*HamburgerMenuItems*/
|
|
4459
4438
|
i[4]
|
|
4460
4439
|
);
|
|
4461
4440
|
let a;
|
|
4462
4441
|
for (a = 0; a < r.length; a += 1) {
|
|
4463
|
-
const s =
|
|
4464
|
-
n[a] ? n[a].p(s, o) : (n[a] =
|
|
4442
|
+
const s = tr(i, r, a);
|
|
4443
|
+
n[a] ? n[a].p(s, o) : (n[a] = ir(s), n[a].c(), n[a].m(t.parentNode, t));
|
|
4465
4444
|
}
|
|
4466
4445
|
for (; a < n.length; a += 1)
|
|
4467
4446
|
n[a].d(1);
|
|
@@ -4469,15 +4448,15 @@ function $o(e) {
|
|
|
4469
4448
|
}
|
|
4470
4449
|
},
|
|
4471
4450
|
d(i) {
|
|
4472
|
-
i && I(t),
|
|
4451
|
+
i && I(t), we(n, i);
|
|
4473
4452
|
}
|
|
4474
4453
|
};
|
|
4475
4454
|
}
|
|
4476
|
-
function
|
|
4455
|
+
function Go(e) {
|
|
4477
4456
|
let t;
|
|
4478
4457
|
return {
|
|
4479
4458
|
c() {
|
|
4480
|
-
t = y("div"), t.innerHTML = "",
|
|
4459
|
+
t = y("div"), t.innerHTML = "", p(t, "class", "Loading Skeleton");
|
|
4481
4460
|
},
|
|
4482
4461
|
m(r, n) {
|
|
4483
4462
|
F(r, t, n);
|
|
@@ -4488,12 +4467,12 @@ function jo(e) {
|
|
|
4488
4467
|
}
|
|
4489
4468
|
};
|
|
4490
4469
|
}
|
|
4491
|
-
function
|
|
4470
|
+
function nr(e) {
|
|
4492
4471
|
let t, r;
|
|
4493
4472
|
return {
|
|
4494
4473
|
c() {
|
|
4495
4474
|
t = y("img"), K(t.src, r = /*mainItem*/
|
|
4496
|
-
e[63].img) ||
|
|
4475
|
+
e[63].img) || p(t, "src", r), p(t, "alt", "menu icon");
|
|
4497
4476
|
},
|
|
4498
4477
|
m(n, i) {
|
|
4499
4478
|
F(n, t, i);
|
|
@@ -4501,20 +4480,20 @@ function or(e) {
|
|
|
4501
4480
|
p(n, i) {
|
|
4502
4481
|
i[0] & /*HamburgerMenuItems*/
|
|
4503
4482
|
16 && !K(t.src, r = /*mainItem*/
|
|
4504
|
-
n[63].img) &&
|
|
4483
|
+
n[63].img) && p(t, "src", r);
|
|
4505
4484
|
},
|
|
4506
4485
|
d(n) {
|
|
4507
4486
|
n && I(t);
|
|
4508
4487
|
}
|
|
4509
4488
|
};
|
|
4510
4489
|
}
|
|
4511
|
-
function
|
|
4490
|
+
function ir(e) {
|
|
4512
4491
|
let t, r, n, i, o = (
|
|
4513
4492
|
/*mainItem*/
|
|
4514
4493
|
e[63].label + ""
|
|
4515
|
-
), a, s,
|
|
4494
|
+
), a, s, l, u, h, c = (
|
|
4516
4495
|
/*mainItem*/
|
|
4517
|
-
e[63]?.img &&
|
|
4496
|
+
e[63]?.img && nr(e)
|
|
4518
4497
|
);
|
|
4519
4498
|
function f() {
|
|
4520
4499
|
return (
|
|
@@ -4527,33 +4506,33 @@ function ar(e) {
|
|
|
4527
4506
|
}
|
|
4528
4507
|
return {
|
|
4529
4508
|
c() {
|
|
4530
|
-
t = y("li"), r = y("div"), c && c.c(), n = U(), i = y("p"), a = ee(o), s = U(),
|
|
4509
|
+
t = y("li"), r = y("div"), c && c.c(), n = U(), i = y("p"), a = ee(o), s = U(), p(r, "class", "HamburgerItemContainer"), p(t, "class", l = /*activeMenuItemId*/
|
|
4531
4510
|
e[5] === /*mainItem*/
|
|
4532
4511
|
e[63].id ? "ActiveItem" : "");
|
|
4533
4512
|
},
|
|
4534
|
-
m(
|
|
4535
|
-
F(
|
|
4513
|
+
m(m, g) {
|
|
4514
|
+
F(m, t, g), b(t, r), c && c.m(r, null), b(r, n), b(r, i), b(i, a), b(t, s), u || (h = te(t, "click", f), u = !0);
|
|
4536
4515
|
},
|
|
4537
|
-
p(
|
|
4538
|
-
e =
|
|
4539
|
-
e[63]?.img ? c ? c.p(e, g) : (c =
|
|
4516
|
+
p(m, g) {
|
|
4517
|
+
e = m, /*mainItem*/
|
|
4518
|
+
e[63]?.img ? c ? c.p(e, g) : (c = nr(e), c.c(), c.m(r, n)) : c && (c.d(1), c = null), g[0] & /*HamburgerMenuItems*/
|
|
4540
4519
|
16 && o !== (o = /*mainItem*/
|
|
4541
|
-
e[63].label + "") &&
|
|
4542
|
-
48 &&
|
|
4520
|
+
e[63].label + "") && me(a, o), g[0] & /*activeMenuItemId, HamburgerMenuItems*/
|
|
4521
|
+
48 && l !== (l = /*activeMenuItemId*/
|
|
4543
4522
|
e[5] === /*mainItem*/
|
|
4544
|
-
e[63].id ? "ActiveItem" : "") &&
|
|
4523
|
+
e[63].id ? "ActiveItem" : "") && p(t, "class", l);
|
|
4545
4524
|
},
|
|
4546
|
-
d(
|
|
4547
|
-
|
|
4525
|
+
d(m) {
|
|
4526
|
+
m && I(t), c && c.d(), u = !1, h();
|
|
4548
4527
|
}
|
|
4549
4528
|
};
|
|
4550
4529
|
}
|
|
4551
|
-
function
|
|
4530
|
+
function or(e) {
|
|
4552
4531
|
let t, r;
|
|
4553
4532
|
return {
|
|
4554
4533
|
c() {
|
|
4555
4534
|
t = y("img"), K(t.src, r = /*secondaryItem*/
|
|
4556
|
-
e[60].img) ||
|
|
4535
|
+
e[60].img) || p(t, "src", r), p(t, "alt", "menu icon");
|
|
4557
4536
|
},
|
|
4558
4537
|
m(n, i) {
|
|
4559
4538
|
F(n, t, i);
|
|
@@ -4561,20 +4540,20 @@ function sr(e) {
|
|
|
4561
4540
|
p(n, i) {
|
|
4562
4541
|
i[0] & /*activeMenuItemChildren*/
|
|
4563
4542
|
64 && !K(t.src, r = /*secondaryItem*/
|
|
4564
|
-
n[60].img) &&
|
|
4543
|
+
n[60].img) && p(t, "src", r);
|
|
4565
4544
|
},
|
|
4566
4545
|
d(n) {
|
|
4567
4546
|
n && I(t);
|
|
4568
4547
|
}
|
|
4569
4548
|
};
|
|
4570
4549
|
}
|
|
4571
|
-
function
|
|
4550
|
+
function ar(e) {
|
|
4572
4551
|
let t, r, n, i = (
|
|
4573
4552
|
/*secondaryItem*/
|
|
4574
4553
|
e[60].label + ""
|
|
4575
|
-
), o, a, s,
|
|
4554
|
+
), o, a, s, l, u = (
|
|
4576
4555
|
/*secondaryItem*/
|
|
4577
|
-
e[60]?.img &&
|
|
4556
|
+
e[60]?.img && or(e)
|
|
4578
4557
|
);
|
|
4579
4558
|
function h(...c) {
|
|
4580
4559
|
return (
|
|
@@ -4588,110 +4567,110 @@ function ur(e) {
|
|
|
4588
4567
|
}
|
|
4589
4568
|
return {
|
|
4590
4569
|
c() {
|
|
4591
|
-
t = y("li"),
|
|
4570
|
+
t = y("li"), u && u.c(), r = U(), n = y("p"), o = ee(i), a = U();
|
|
4592
4571
|
},
|
|
4593
4572
|
m(c, f) {
|
|
4594
|
-
F(c, t, f),
|
|
4573
|
+
F(c, t, f), u && u.m(t, null), b(t, r), b(t, n), b(n, o), b(t, a), s || (l = te(t, "click", h), s = !0);
|
|
4595
4574
|
},
|
|
4596
4575
|
p(c, f) {
|
|
4597
4576
|
e = c, /*secondaryItem*/
|
|
4598
|
-
e[60]?.img ?
|
|
4577
|
+
e[60]?.img ? u ? u.p(e, f) : (u = or(e), u.c(), u.m(t, r)) : u && (u.d(1), u = null), f[0] & /*activeMenuItemChildren*/
|
|
4599
4578
|
64 && i !== (i = /*secondaryItem*/
|
|
4600
|
-
e[60].label + "") &&
|
|
4579
|
+
e[60].label + "") && me(o, i);
|
|
4601
4580
|
},
|
|
4602
4581
|
d(c) {
|
|
4603
|
-
c && I(t),
|
|
4582
|
+
c && I(t), u && u.d(), s = !1, l();
|
|
4604
4583
|
}
|
|
4605
4584
|
};
|
|
4606
4585
|
}
|
|
4607
|
-
function
|
|
4586
|
+
function sr(e) {
|
|
4608
4587
|
let t, r, n = (
|
|
4609
4588
|
/*$_*/
|
|
4610
4589
|
e[15]("language") + ""
|
|
4611
|
-
), i, o, a, s,
|
|
4612
|
-
function
|
|
4590
|
+
), i, o, a, s, l;
|
|
4591
|
+
function u(f, m) {
|
|
4613
4592
|
return (
|
|
4614
4593
|
/*countryflaghamburger*/
|
|
4615
|
-
f[0] !== "true" ?
|
|
4594
|
+
f[0] !== "true" ? jo : $o
|
|
4616
4595
|
);
|
|
4617
4596
|
}
|
|
4618
|
-
let h =
|
|
4597
|
+
let h = u(e), c = h(e);
|
|
4619
4598
|
return {
|
|
4620
4599
|
c() {
|
|
4621
|
-
t = y("div"), r = y("span"), i = ee(n), o = U(), c.c(),
|
|
4600
|
+
t = y("div"), r = y("span"), i = ee(n), o = U(), c.c(), p(r, "class", "LanguageSelectorTitle"), p(t, "class", a = "LanguageSelector " + /*isOptionsListVisible*/
|
|
4622
4601
|
(e[10] ? "Open" : ""));
|
|
4623
4602
|
},
|
|
4624
|
-
m(f,
|
|
4625
|
-
F(f, t,
|
|
4603
|
+
m(f, m) {
|
|
4604
|
+
F(f, t, m), b(t, r), b(r, i), b(t, o), c.m(t, null), s || (l = te(
|
|
4626
4605
|
t,
|
|
4627
4606
|
"click",
|
|
4628
4607
|
/*toggleLanguageDropdown*/
|
|
4629
4608
|
e[21]
|
|
4630
4609
|
), s = !0);
|
|
4631
4610
|
},
|
|
4632
|
-
p(f,
|
|
4633
|
-
|
|
4611
|
+
p(f, m) {
|
|
4612
|
+
m[0] & /*$_*/
|
|
4634
4613
|
32768 && n !== (n = /*$_*/
|
|
4635
|
-
f[15]("language") + "") &&
|
|
4614
|
+
f[15]("language") + "") && me(i, n), h === (h = u(f)) && c ? c.p(f, m) : (c.d(1), c = h(f), c && (c.c(), c.m(t, null))), m[0] & /*isOptionsListVisible*/
|
|
4636
4615
|
1024 && a !== (a = "LanguageSelector " + /*isOptionsListVisible*/
|
|
4637
|
-
(f[10] ? "Open" : "")) &&
|
|
4616
|
+
(f[10] ? "Open" : "")) && p(t, "class", a);
|
|
4638
4617
|
},
|
|
4639
4618
|
d(f) {
|
|
4640
|
-
f && I(t), c.d(), s = !1,
|
|
4619
|
+
f && I(t), c.d(), s = !1, l();
|
|
4641
4620
|
}
|
|
4642
4621
|
};
|
|
4643
4622
|
}
|
|
4644
|
-
function
|
|
4645
|
-
let t, r, n, i, o, a, s,
|
|
4623
|
+
function $o(e) {
|
|
4624
|
+
let t, r, n, i, o, a, s, l = (
|
|
4646
4625
|
/*selectedLanguage*/
|
|
4647
4626
|
e[14].slice(-2) + ""
|
|
4648
|
-
),
|
|
4627
|
+
), u, h, c, f, m, g, v, S = (
|
|
4649
4628
|
/*isOptionsListVisible*/
|
|
4650
|
-
e[10] &&
|
|
4629
|
+
e[10] && lr(e)
|
|
4651
4630
|
);
|
|
4652
4631
|
return {
|
|
4653
4632
|
c() {
|
|
4654
|
-
t = y("div"), r = y("div"), n = y("span"), i = y("img"), a = U(), s = y("span"),
|
|
4633
|
+
t = y("div"), r = y("div"), n = y("span"), i = y("img"), a = U(), s = y("span"), u = ee(l), h = U(), c = y("span"), f = Tt("svg"), m = Tt("path"), v = U(), S && S.c(), K(i.src, o = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4655
4634
|
e[22](
|
|
4656
4635
|
/*selectedLanguage*/
|
|
4657
4636
|
e[14]
|
|
4658
|
-
)}.svg`) ||
|
|
4659
|
-
(e[10] ? "TriangleActive" : "")),
|
|
4637
|
+
)}.svg`) || p(i, "src", o), p(n, "class", "FlagIcon"), p(s, "class", "LanguageName"), p(m, "id", "arrow"), p(m, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), p(m, "transform", "translate(-274.511 -441.088)"), p(m, "fill", "#d1d1d1"), p(f, "xmlns", "http://www.w3.org/2000/svg"), p(f, "width", "14"), p(f, "height", "6.835"), p(f, "viewBox", "0 0 14 6.835"), p(c, "class", g = "TriangleInactive " + /*isOptionsListVisible*/
|
|
4638
|
+
(e[10] ? "TriangleActive" : "")), p(r, "class", "SelectedOption Item ItemLanguage"), p(t, "class", "LanguageDropdown");
|
|
4660
4639
|
},
|
|
4661
|
-
m(
|
|
4662
|
-
F(
|
|
4640
|
+
m(T, P) {
|
|
4641
|
+
F(T, t, P), b(t, r), b(r, n), b(n, i), b(r, a), b(r, s), b(s, u), b(r, h), b(r, c), b(c, f), b(f, m), b(t, v), S && S.m(t, null);
|
|
4663
4642
|
},
|
|
4664
|
-
p(
|
|
4665
|
-
|
|
4643
|
+
p(T, P) {
|
|
4644
|
+
P[0] & /*selectedLanguage, languagesArray*/
|
|
4666
4645
|
16896 && !K(i.src, o = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4667
|
-
|
|
4646
|
+
T[22](
|
|
4668
4647
|
/*selectedLanguage*/
|
|
4669
|
-
|
|
4670
|
-
)}.svg`) &&
|
|
4671
|
-
16384 &&
|
|
4672
|
-
|
|
4648
|
+
T[14]
|
|
4649
|
+
)}.svg`) && p(i, "src", o), P[0] & /*selectedLanguage*/
|
|
4650
|
+
16384 && l !== (l = /*selectedLanguage*/
|
|
4651
|
+
T[14].slice(-2) + "") && me(u, l), P[0] & /*isOptionsListVisible*/
|
|
4673
4652
|
1024 && g !== (g = "TriangleInactive " + /*isOptionsListVisible*/
|
|
4674
|
-
(
|
|
4675
|
-
|
|
4653
|
+
(T[10] ? "TriangleActive" : "")) && p(c, "class", g), /*isOptionsListVisible*/
|
|
4654
|
+
T[10] ? S ? S.p(T, P) : (S = lr(T), S.c(), S.m(t, null)) : S && (S.d(1), S = null);
|
|
4676
4655
|
},
|
|
4677
|
-
d(
|
|
4678
|
-
|
|
4656
|
+
d(T) {
|
|
4657
|
+
T && I(t), S && S.d();
|
|
4679
4658
|
}
|
|
4680
4659
|
};
|
|
4681
4660
|
}
|
|
4682
|
-
function
|
|
4683
|
-
let t, r, n, i =
|
|
4661
|
+
function jo(e) {
|
|
4662
|
+
let t, r, n, i = Q(
|
|
4684
4663
|
/*languagesArray*/
|
|
4685
4664
|
e[9]
|
|
4686
4665
|
), o = [];
|
|
4687
4666
|
for (let a = 0; a < i.length; a += 1)
|
|
4688
|
-
o[a] =
|
|
4667
|
+
o[a] = hr(Kt(e, i, a));
|
|
4689
4668
|
return {
|
|
4690
4669
|
c() {
|
|
4691
4670
|
t = y("select");
|
|
4692
4671
|
for (let a = 0; a < o.length; a += 1)
|
|
4693
4672
|
o[a].c();
|
|
4694
|
-
|
|
4673
|
+
p(t, "class", "Item ItemLanguage NoFlag"), /*selectedLanguage*/
|
|
4695
4674
|
e[14] === void 0 && Ne(() => (
|
|
4696
4675
|
/*select_change_handler*/
|
|
4697
4676
|
e[37].call(t)
|
|
@@ -4699,9 +4678,9 @@ function Vo(e) {
|
|
|
4699
4678
|
},
|
|
4700
4679
|
m(a, s) {
|
|
4701
4680
|
F(a, t, s);
|
|
4702
|
-
for (let
|
|
4703
|
-
o[
|
|
4704
|
-
|
|
4681
|
+
for (let l = 0; l < o.length; l += 1)
|
|
4682
|
+
o[l] && o[l].m(t, null);
|
|
4683
|
+
Mt(
|
|
4705
4684
|
t,
|
|
4706
4685
|
/*selectedLanguage*/
|
|
4707
4686
|
e[14],
|
|
@@ -4724,44 +4703,44 @@ function Vo(e) {
|
|
|
4724
4703
|
p(a, s) {
|
|
4725
4704
|
if (s[0] & /*languagesArray*/
|
|
4726
4705
|
512) {
|
|
4727
|
-
i =
|
|
4706
|
+
i = Q(
|
|
4728
4707
|
/*languagesArray*/
|
|
4729
4708
|
a[9]
|
|
4730
4709
|
);
|
|
4731
|
-
let
|
|
4732
|
-
for (
|
|
4733
|
-
const
|
|
4734
|
-
o[
|
|
4710
|
+
let l;
|
|
4711
|
+
for (l = 0; l < i.length; l += 1) {
|
|
4712
|
+
const u = Kt(a, i, l);
|
|
4713
|
+
o[l] ? o[l].p(u, s) : (o[l] = hr(u), o[l].c(), o[l].m(t, null));
|
|
4735
4714
|
}
|
|
4736
|
-
for (;
|
|
4737
|
-
o[
|
|
4715
|
+
for (; l < o.length; l += 1)
|
|
4716
|
+
o[l].d(1);
|
|
4738
4717
|
o.length = i.length;
|
|
4739
4718
|
}
|
|
4740
4719
|
s[0] & /*selectedLanguage, languagesArray*/
|
|
4741
|
-
16896 &&
|
|
4720
|
+
16896 && Mt(
|
|
4742
4721
|
t,
|
|
4743
4722
|
/*selectedLanguage*/
|
|
4744
4723
|
a[14]
|
|
4745
4724
|
);
|
|
4746
4725
|
},
|
|
4747
4726
|
d(a) {
|
|
4748
|
-
a && I(t),
|
|
4727
|
+
a && I(t), we(o, a), r = !1, de(n);
|
|
4749
4728
|
}
|
|
4750
4729
|
};
|
|
4751
4730
|
}
|
|
4752
|
-
function
|
|
4753
|
-
let t, r, n =
|
|
4731
|
+
function lr(e) {
|
|
4732
|
+
let t, r, n = Q(
|
|
4754
4733
|
/*languagesArray*/
|
|
4755
4734
|
e[9]
|
|
4756
4735
|
), i = [];
|
|
4757
4736
|
for (let o = 0; o < n.length; o += 1)
|
|
4758
|
-
i[o] =
|
|
4737
|
+
i[o] = ur(Jt(e, n, o));
|
|
4759
4738
|
return {
|
|
4760
4739
|
c() {
|
|
4761
4740
|
t = y("div");
|
|
4762
4741
|
for (let o = 0; o < i.length; o += 1)
|
|
4763
4742
|
i[o].c();
|
|
4764
|
-
|
|
4743
|
+
p(t, "class", r = "OptionList " + /*languageListOpen*/
|
|
4765
4744
|
(e[11] ? "Open" : ""));
|
|
4766
4745
|
},
|
|
4767
4746
|
m(o, a) {
|
|
@@ -4772,14 +4751,14 @@ function hr(e) {
|
|
|
4772
4751
|
p(o, a) {
|
|
4773
4752
|
if (a[0] & /*languageListOpen, selectLanguage, languagesArray, determineFlag*/
|
|
4774
4753
|
5245440) {
|
|
4775
|
-
n =
|
|
4754
|
+
n = Q(
|
|
4776
4755
|
/*languagesArray*/
|
|
4777
4756
|
o[9]
|
|
4778
4757
|
);
|
|
4779
4758
|
let s;
|
|
4780
4759
|
for (s = 0; s < n.length; s += 1) {
|
|
4781
|
-
const
|
|
4782
|
-
i[s] ? i[s].p(
|
|
4760
|
+
const l = Jt(o, n, s);
|
|
4761
|
+
i[s] ? i[s].p(l, a) : (i[s] = ur(l), i[s].c(), i[s].m(t, null));
|
|
4783
4762
|
}
|
|
4784
4763
|
for (; s < i.length; s += 1)
|
|
4785
4764
|
i[s].d(1);
|
|
@@ -4787,19 +4766,19 @@ function hr(e) {
|
|
|
4787
4766
|
}
|
|
4788
4767
|
a[0] & /*languageListOpen*/
|
|
4789
4768
|
2048 && r !== (r = "OptionList " + /*languageListOpen*/
|
|
4790
|
-
(o[11] ? "Open" : "")) &&
|
|
4769
|
+
(o[11] ? "Open" : "")) && p(t, "class", r);
|
|
4791
4770
|
},
|
|
4792
4771
|
d(o) {
|
|
4793
|
-
o && I(t),
|
|
4772
|
+
o && I(t), we(i, o);
|
|
4794
4773
|
}
|
|
4795
4774
|
};
|
|
4796
4775
|
}
|
|
4797
|
-
function
|
|
4776
|
+
function ur(e) {
|
|
4798
4777
|
let t, r, n, i, o, a, s = (
|
|
4799
4778
|
/*operatorLanguage*/
|
|
4800
4779
|
e[57] + ""
|
|
4801
|
-
),
|
|
4802
|
-
function
|
|
4780
|
+
), l, u, h, c, f;
|
|
4781
|
+
function m() {
|
|
4803
4782
|
return (
|
|
4804
4783
|
/*click_handler_2*/
|
|
4805
4784
|
e[39](
|
|
@@ -4810,15 +4789,15 @@ function cr(e) {
|
|
|
4810
4789
|
}
|
|
4811
4790
|
return {
|
|
4812
4791
|
c() {
|
|
4813
|
-
t = y("div"), r = y("span"), n = y("img"), o = U(), a = y("span"),
|
|
4792
|
+
t = y("div"), r = y("span"), n = y("img"), o = U(), a = y("span"), l = ee(s), u = U(), K(n.src, i = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4814
4793
|
e[22](
|
|
4815
4794
|
/*operatorLanguage*/
|
|
4816
4795
|
e[57]
|
|
4817
|
-
)}.svg`) ||
|
|
4796
|
+
)}.svg`) || p(n, "src", i), p(r, "class", "FlagIcon"), p(a, "class", "LanguageName"), p(t, "class", h = "LanguageOption " + /*languageListOpen*/
|
|
4818
4797
|
(e[11] ? "Open" : ""));
|
|
4819
4798
|
},
|
|
4820
4799
|
m(g, v) {
|
|
4821
|
-
F(g, t, v), b(t, r), b(r, n), b(t, o), b(t, a), b(a,
|
|
4800
|
+
F(g, t, v), b(t, r), b(r, n), b(t, o), b(t, a), b(a, l), b(t, u), c || (f = te(t, "click", m), c = !0);
|
|
4822
4801
|
},
|
|
4823
4802
|
p(g, v) {
|
|
4824
4803
|
e = g, v[0] & /*languagesArray*/
|
|
@@ -4826,18 +4805,18 @@ function cr(e) {
|
|
|
4826
4805
|
e[22](
|
|
4827
4806
|
/*operatorLanguage*/
|
|
4828
4807
|
e[57]
|
|
4829
|
-
)}.svg`) &&
|
|
4808
|
+
)}.svg`) && p(n, "src", i), v[0] & /*languagesArray*/
|
|
4830
4809
|
512 && s !== (s = /*operatorLanguage*/
|
|
4831
|
-
e[57] + "") &&
|
|
4810
|
+
e[57] + "") && me(l, s), v[0] & /*languageListOpen*/
|
|
4832
4811
|
2048 && h !== (h = "LanguageOption " + /*languageListOpen*/
|
|
4833
|
-
(e[11] ? "Open" : "")) &&
|
|
4812
|
+
(e[11] ? "Open" : "")) && p(t, "class", h);
|
|
4834
4813
|
},
|
|
4835
4814
|
d(g) {
|
|
4836
4815
|
g && I(t), c = !1, f();
|
|
4837
4816
|
}
|
|
4838
4817
|
};
|
|
4839
4818
|
}
|
|
4840
|
-
function
|
|
4819
|
+
function hr(e) {
|
|
4841
4820
|
let t, r = (
|
|
4842
4821
|
/*lang*/
|
|
4843
4822
|
e[1].slice(-2) + ""
|
|
@@ -4845,7 +4824,7 @@ function fr(e) {
|
|
|
4845
4824
|
return {
|
|
4846
4825
|
c() {
|
|
4847
4826
|
t = y("option"), n = ee(r), t.__value = i = /*lang*/
|
|
4848
|
-
e[1],
|
|
4827
|
+
e[1], Ot(t, t.__value), t.selected = !0;
|
|
4849
4828
|
},
|
|
4850
4829
|
m(o, a) {
|
|
4851
4830
|
F(o, t, a), b(t, n);
|
|
@@ -4853,19 +4832,19 @@ function fr(e) {
|
|
|
4853
4832
|
p(o, a) {
|
|
4854
4833
|
a[0] & /*languagesArray*/
|
|
4855
4834
|
512 && r !== (r = /*lang*/
|
|
4856
|
-
o[1].slice(-2) + "") &&
|
|
4835
|
+
o[1].slice(-2) + "") && me(n, r), a[0] & /*languagesArray*/
|
|
4857
4836
|
512 && i !== (i = /*lang*/
|
|
4858
|
-
o[1]) && (t.__value = i,
|
|
4837
|
+
o[1]) && (t.__value = i, Ot(t, t.__value));
|
|
4859
4838
|
},
|
|
4860
4839
|
d(o) {
|
|
4861
4840
|
o && I(t);
|
|
4862
4841
|
}
|
|
4863
4842
|
};
|
|
4864
4843
|
}
|
|
4865
|
-
function
|
|
4844
|
+
function Wo(e) {
|
|
4866
4845
|
let t, r = (
|
|
4867
4846
|
/*show*/
|
|
4868
|
-
e[8] === !0 &&
|
|
4847
|
+
e[8] === !0 && rr(e)
|
|
4869
4848
|
);
|
|
4870
4849
|
return {
|
|
4871
4850
|
c() {
|
|
@@ -4876,7 +4855,7 @@ function Xo(e) {
|
|
|
4876
4855
|
},
|
|
4877
4856
|
p(n, i) {
|
|
4878
4857
|
/*show*/
|
|
4879
|
-
n[8] === !0 ? r ? r.p(n, i) : (r =
|
|
4858
|
+
n[8] === !0 ? r ? r.p(n, i) : (r = rr(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4880
4859
|
},
|
|
4881
4860
|
i: $,
|
|
4882
4861
|
o: $,
|
|
@@ -4885,30 +4864,30 @@ function Xo(e) {
|
|
|
4885
4864
|
}
|
|
4886
4865
|
};
|
|
4887
4866
|
}
|
|
4888
|
-
function
|
|
4867
|
+
function Vo(e, t, r) {
|
|
4889
4868
|
let n;
|
|
4890
|
-
|
|
4891
|
-
let { menuitemsurl: i = "" } = t, { cmsendpoint: o } = t, { cmsenv: a = "stage" } = t, { userroles: s } = t, { lang:
|
|
4892
|
-
const
|
|
4893
|
-
fetch(c).then((
|
|
4894
|
-
Object.keys(
|
|
4895
|
-
|
|
4869
|
+
sn(e, Bo, (d) => r(15, n = d));
|
|
4870
|
+
let { menuitemsurl: i = "" } = t, { cmsendpoint: o } = t, { cmsenv: a = "stage" } = t, { userroles: s } = t, { lang: l = "en" } = t, { activecategory: u = "" } = t, { languageslist: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, { clientstyling: m = "" } = t, { clientstylingurl: g = "" } = t, { customlocaleidentifier: v = "" } = t, { countryflaghamburger: S = "" } = t, T, P = window.navigator.userAgent, B = [], G, C = "", V = [], X = !1, ne = !1, q = !0, N = [], j = !1, M = !1, L = !1, x = !1, R = !0, H, W = "", z;
|
|
4871
|
+
const zr = () => {
|
|
4872
|
+
fetch(c).then((d) => d.json()).then((d) => {
|
|
4873
|
+
Object.keys(d).forEach((A) => {
|
|
4874
|
+
Yt(A, d[A]);
|
|
4896
4875
|
});
|
|
4897
|
-
}).catch((
|
|
4898
|
-
console.log(
|
|
4876
|
+
}).catch((d) => {
|
|
4877
|
+
console.log(d);
|
|
4899
4878
|
});
|
|
4900
4879
|
};
|
|
4901
|
-
Object.keys(
|
|
4902
|
-
|
|
4880
|
+
Object.keys(qt).forEach((d) => {
|
|
4881
|
+
Yt(d, qt[d]);
|
|
4903
4882
|
});
|
|
4904
|
-
const
|
|
4905
|
-
|
|
4906
|
-
let
|
|
4907
|
-
|
|
4908
|
-
},
|
|
4909
|
-
r(12, x = !0), r(13, R = !0), r(10,
|
|
4883
|
+
const je = () => {
|
|
4884
|
+
H = new URL(`${o}/${W.toLowerCase()}/hamburger-menu`);
|
|
4885
|
+
let d = Po(P);
|
|
4886
|
+
d && (d === "PC" ? H.searchParams.append("device", "dk") : H.searchParams.append("device", "mtWeb")), H.searchParams.append("env", a), H.searchParams.append("language", W.toLowerCase()), H.searchParams.append("userRoles", s);
|
|
4887
|
+
}, vt = () => {
|
|
4888
|
+
r(12, x = !0), r(13, R = !0), r(10, M = !1), r(11, L = !1), setTimeout(
|
|
4910
4889
|
() => {
|
|
4911
|
-
r(8, ne = !1), r(7,
|
|
4890
|
+
r(8, ne = !1), r(7, X = !1);
|
|
4912
4891
|
},
|
|
4913
4892
|
200
|
|
4914
4893
|
), window.postMessage(
|
|
@@ -4918,50 +4897,50 @@ function zo(e, t, r) {
|
|
|
4918
4897
|
},
|
|
4919
4898
|
window.location.href
|
|
4920
4899
|
);
|
|
4921
|
-
},
|
|
4922
|
-
|
|
4900
|
+
}, yt = (d) => {
|
|
4901
|
+
d.data.type === "OpenHamburgerMenuModal" && (window.postMessage({ type: "DisableScroll" }, window.location.href), r(12, x = !1), setTimeout(
|
|
4923
4902
|
() => {
|
|
4924
4903
|
r(13, R = !1);
|
|
4925
4904
|
},
|
|
4926
4905
|
125
|
|
4927
|
-
), r(8, ne = !0), r(7,
|
|
4928
|
-
}, He = (
|
|
4929
|
-
r(5, C =
|
|
4906
|
+
), r(8, ne = !0), r(7, X = !0), je(), xt(H)), d.data.type === "LanguageChanged" && (j = !0, je(), xt(H));
|
|
4907
|
+
}, He = (d, A) => {
|
|
4908
|
+
r(5, C = d), r(6, V = A || []), typeof gtag == "function" && gtag("event", "ChangeMenu", {
|
|
4930
4909
|
context: "HamburgerMenu",
|
|
4931
4910
|
menuItem: `${C}`
|
|
4932
4911
|
});
|
|
4933
|
-
},
|
|
4934
|
-
let
|
|
4912
|
+
}, _t = () => {
|
|
4913
|
+
let d = B.filter((A) => {
|
|
4935
4914
|
let Te = !1;
|
|
4936
|
-
return A.children?.forEach((
|
|
4937
|
-
|
|
4915
|
+
return A.children?.forEach((on) => {
|
|
4916
|
+
on.path.includes(u) && (Te = !0);
|
|
4938
4917
|
}), Te;
|
|
4939
4918
|
});
|
|
4940
|
-
|
|
4941
|
-
},
|
|
4942
|
-
G && !j ||
|
|
4943
|
-
},
|
|
4944
|
-
fetch(
|
|
4919
|
+
d.length > 0 ? He(d[0].id, d[0].children) : He(B[0].id, B[0].children);
|
|
4920
|
+
}, xt = (d) => {
|
|
4921
|
+
G && !j || Et(d);
|
|
4922
|
+
}, Et = (d) => {
|
|
4923
|
+
fetch(d).then((A) => A.json()).then(
|
|
4945
4924
|
(A) => {
|
|
4946
|
-
r(4,
|
|
4925
|
+
r(4, B = A.filter((Te) => Te?.type !== "banner")), _t(), r(34, q = !1), G = A, j = !1;
|
|
4947
4926
|
},
|
|
4948
4927
|
(A) => {
|
|
4949
4928
|
console.error(A);
|
|
4950
4929
|
}
|
|
4951
4930
|
);
|
|
4952
4931
|
};
|
|
4953
|
-
let
|
|
4932
|
+
let wt = (d) => {
|
|
4954
4933
|
window.postMessage(
|
|
4955
4934
|
{
|
|
4956
4935
|
type: "NavigateTo",
|
|
4957
|
-
path:
|
|
4958
|
-
externalLink:
|
|
4959
|
-
target:
|
|
4936
|
+
path: d.path,
|
|
4937
|
+
externalLink: d.externalLink || !1,
|
|
4938
|
+
target: d.attrs.target || null
|
|
4960
4939
|
},
|
|
4961
4940
|
window.location.href
|
|
4962
|
-
),
|
|
4941
|
+
), vt();
|
|
4963
4942
|
};
|
|
4964
|
-
const
|
|
4943
|
+
const We = () => {
|
|
4965
4944
|
j = !0, window.postMessage(
|
|
4966
4945
|
{
|
|
4967
4946
|
type: "LanguageChanged",
|
|
@@ -4969,122 +4948,122 @@ function zo(e, t, r) {
|
|
|
4969
4948
|
},
|
|
4970
4949
|
window.location.href
|
|
4971
4950
|
);
|
|
4972
|
-
},
|
|
4973
|
-
|
|
4974
|
-
},
|
|
4975
|
-
r(14, W =
|
|
4951
|
+
}, Zr = () => {
|
|
4952
|
+
Ro(l), je(), j && Et(H), r(9, N = h.replace(/ /g, "").split(",")), r(9, N = N.map((d) => d.toUpperCase())), r(14, W = l.toUpperCase());
|
|
4953
|
+
}, St = (d) => {
|
|
4954
|
+
r(14, W = d), setTimeout(
|
|
4976
4955
|
() => {
|
|
4977
|
-
r(11,
|
|
4956
|
+
r(11, L = !1);
|
|
4978
4957
|
},
|
|
4979
4958
|
250
|
|
4980
4959
|
), setTimeout(
|
|
4981
4960
|
() => {
|
|
4982
|
-
r(10,
|
|
4961
|
+
r(10, M = !1);
|
|
4983
4962
|
},
|
|
4984
4963
|
500
|
|
4985
|
-
),
|
|
4986
|
-
},
|
|
4987
|
-
|
|
4964
|
+
), We();
|
|
4965
|
+
}, Qr = () => {
|
|
4966
|
+
M ? (setTimeout(
|
|
4988
4967
|
() => {
|
|
4989
|
-
r(10,
|
|
4968
|
+
r(10, M = !1);
|
|
4990
4969
|
},
|
|
4991
4970
|
250
|
|
4992
|
-
), r(11,
|
|
4971
|
+
), r(11, L = !1)) : (r(10, M = !0), setTimeout(
|
|
4993
4972
|
() => {
|
|
4994
|
-
r(11,
|
|
4973
|
+
r(11, L = !0);
|
|
4995
4974
|
},
|
|
4996
4975
|
300
|
|
4997
4976
|
));
|
|
4998
|
-
},
|
|
4999
|
-
let A =
|
|
4977
|
+
}, Yr = (d) => {
|
|
4978
|
+
let A = d ? d.slice(-2) : W.slice(-2);
|
|
5000
4979
|
return v && (A = v.includes(A.toLowerCase()) ? v.slice(-2) : A), A == "EN" ? "GB" : A.toUpperCase();
|
|
5001
4980
|
};
|
|
5002
|
-
|
|
5003
|
-
window.removeEventListener("message",
|
|
4981
|
+
pn(() => (window.addEventListener("message", yt, !1), Lo(P), () => {
|
|
4982
|
+
window.removeEventListener("message", yt);
|
|
5004
4983
|
}));
|
|
5005
|
-
const
|
|
5006
|
-
|
|
4984
|
+
const qr = (d) => He(d.id, d.children), Jr = (d, A) => {
|
|
4985
|
+
wt(d), A.preventDefault();
|
|
5007
4986
|
};
|
|
5008
|
-
function
|
|
5009
|
-
W =
|
|
4987
|
+
function Kr() {
|
|
4988
|
+
W = fn(this), r(14, W), r(9, N);
|
|
5010
4989
|
}
|
|
5011
|
-
const
|
|
5012
|
-
function
|
|
5013
|
-
Ce[
|
|
5014
|
-
|
|
4990
|
+
const en = () => We(), tn = (d) => St(d);
|
|
4991
|
+
function rn(d) {
|
|
4992
|
+
Ce[d ? "unshift" : "push"](() => {
|
|
4993
|
+
T = d, r(3, T);
|
|
5015
4994
|
});
|
|
5016
4995
|
}
|
|
5017
|
-
function
|
|
5018
|
-
Ce[
|
|
5019
|
-
|
|
4996
|
+
function nn(d) {
|
|
4997
|
+
Ce[d ? "unshift" : "push"](() => {
|
|
4998
|
+
z = d, r(2, z);
|
|
5020
4999
|
});
|
|
5021
5000
|
}
|
|
5022
|
-
return e.$$set = (
|
|
5023
|
-
"menuitemsurl" in
|
|
5001
|
+
return e.$$set = (d) => {
|
|
5002
|
+
"menuitemsurl" in d && r(23, i = d.menuitemsurl), "cmsendpoint" in d && r(24, o = d.cmsendpoint), "cmsenv" in d && r(25, a = d.cmsenv), "userroles" in d && r(26, s = d.userroles), "lang" in d && r(1, l = d.lang), "activecategory" in d && r(27, u = d.activecategory), "languageslist" in d && r(28, h = d.languageslist), "translationurl" in d && r(29, c = d.translationurl), "mbsource" in d && r(30, f = d.mbsource), "clientstyling" in d && r(31, m = d.clientstyling), "clientstylingurl" in d && r(32, g = d.clientstylingurl), "customlocaleidentifier" in d && r(33, v = d.customlocaleidentifier), "countryflaghamburger" in d && r(0, S = d.countryflaghamburger);
|
|
5024
5003
|
}, e.$$.update = () => {
|
|
5025
5004
|
e.$$.dirty[0] & /*cmsendpoint, cmsenv, lang, languageslist*/
|
|
5026
|
-
318767106 && o && a &&
|
|
5005
|
+
318767106 && o && a && l && h && Zr(), e.$$.dirty[0] & /*activecategory*/
|
|
5027
5006
|
134217728 | e.$$.dirty[1] & /*isLoading*/
|
|
5028
|
-
8 &&
|
|
5029
|
-
536870912 && c &&
|
|
5007
|
+
8 && u && !q && _t(), e.$$.dirty[0] & /*translationurl*/
|
|
5008
|
+
536870912 && c && zr(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5030
5009
|
4 | e.$$.dirty[1] & /*clientstyling*/
|
|
5031
|
-
1 &&
|
|
5010
|
+
1 && m && z && Io(z, m), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5032
5011
|
4 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5033
|
-
2 && g &&
|
|
5034
|
-
1073741828 && f &&
|
|
5012
|
+
2 && g && z && Co(z, g), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5013
|
+
1073741828 && f && z && No(z, `${f}.Style`);
|
|
5035
5014
|
}, [
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5015
|
+
S,
|
|
5016
|
+
l,
|
|
5017
|
+
z,
|
|
5018
|
+
T,
|
|
5019
|
+
B,
|
|
5041
5020
|
C,
|
|
5042
5021
|
V,
|
|
5043
|
-
|
|
5022
|
+
X,
|
|
5044
5023
|
ne,
|
|
5045
5024
|
N,
|
|
5046
|
-
|
|
5047
|
-
|
|
5025
|
+
M,
|
|
5026
|
+
L,
|
|
5048
5027
|
x,
|
|
5049
5028
|
R,
|
|
5050
5029
|
W,
|
|
5051
5030
|
n,
|
|
5052
|
-
|
|
5031
|
+
vt,
|
|
5053
5032
|
He,
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5033
|
+
wt,
|
|
5034
|
+
We,
|
|
5035
|
+
St,
|
|
5036
|
+
Qr,
|
|
5057
5037
|
Yr,
|
|
5058
|
-
qr,
|
|
5059
5038
|
i,
|
|
5060
5039
|
o,
|
|
5061
5040
|
a,
|
|
5062
5041
|
s,
|
|
5063
|
-
|
|
5042
|
+
u,
|
|
5064
5043
|
h,
|
|
5065
5044
|
c,
|
|
5066
5045
|
f,
|
|
5067
|
-
|
|
5046
|
+
m,
|
|
5068
5047
|
g,
|
|
5069
5048
|
v,
|
|
5070
5049
|
q,
|
|
5050
|
+
qr,
|
|
5071
5051
|
Jr,
|
|
5072
5052
|
Kr,
|
|
5073
5053
|
en,
|
|
5074
5054
|
tn,
|
|
5075
5055
|
rn,
|
|
5076
|
-
nn
|
|
5077
|
-
on
|
|
5056
|
+
nn
|
|
5078
5057
|
];
|
|
5079
5058
|
}
|
|
5080
|
-
class
|
|
5059
|
+
class Xo extends On {
|
|
5081
5060
|
constructor(t) {
|
|
5082
|
-
super(),
|
|
5061
|
+
super(), Hn(
|
|
5083
5062
|
this,
|
|
5084
5063
|
t,
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5064
|
+
Vo,
|
|
5065
|
+
Wo,
|
|
5066
|
+
fr,
|
|
5088
5067
|
{
|
|
5089
5068
|
menuitemsurl: 23,
|
|
5090
5069
|
cmsendpoint: 24,
|
|
@@ -5100,7 +5079,7 @@ class Zo extends An {
|
|
|
5100
5079
|
customlocaleidentifier: 33,
|
|
5101
5080
|
countryflaghamburger: 0
|
|
5102
5081
|
},
|
|
5103
|
-
|
|
5082
|
+
Uo,
|
|
5104
5083
|
[-1, -1, -1]
|
|
5105
5084
|
);
|
|
5106
5085
|
}
|
|
@@ -5108,82 +5087,82 @@ class Zo extends An {
|
|
|
5108
5087
|
return this.$$.ctx[23];
|
|
5109
5088
|
}
|
|
5110
5089
|
set menuitemsurl(t) {
|
|
5111
|
-
this.$$set({ menuitemsurl: t }),
|
|
5090
|
+
this.$$set({ menuitemsurl: t }), D();
|
|
5112
5091
|
}
|
|
5113
5092
|
get cmsendpoint() {
|
|
5114
5093
|
return this.$$.ctx[24];
|
|
5115
5094
|
}
|
|
5116
5095
|
set cmsendpoint(t) {
|
|
5117
|
-
this.$$set({ cmsendpoint: t }),
|
|
5096
|
+
this.$$set({ cmsendpoint: t }), D();
|
|
5118
5097
|
}
|
|
5119
5098
|
get cmsenv() {
|
|
5120
5099
|
return this.$$.ctx[25];
|
|
5121
5100
|
}
|
|
5122
5101
|
set cmsenv(t) {
|
|
5123
|
-
this.$$set({ cmsenv: t }),
|
|
5102
|
+
this.$$set({ cmsenv: t }), D();
|
|
5124
5103
|
}
|
|
5125
5104
|
get userroles() {
|
|
5126
5105
|
return this.$$.ctx[26];
|
|
5127
5106
|
}
|
|
5128
5107
|
set userroles(t) {
|
|
5129
|
-
this.$$set({ userroles: t }),
|
|
5108
|
+
this.$$set({ userroles: t }), D();
|
|
5130
5109
|
}
|
|
5131
5110
|
get lang() {
|
|
5132
5111
|
return this.$$.ctx[1];
|
|
5133
5112
|
}
|
|
5134
5113
|
set lang(t) {
|
|
5135
|
-
this.$$set({ lang: t }),
|
|
5114
|
+
this.$$set({ lang: t }), D();
|
|
5136
5115
|
}
|
|
5137
5116
|
get activecategory() {
|
|
5138
5117
|
return this.$$.ctx[27];
|
|
5139
5118
|
}
|
|
5140
5119
|
set activecategory(t) {
|
|
5141
|
-
this.$$set({ activecategory: t }),
|
|
5120
|
+
this.$$set({ activecategory: t }), D();
|
|
5142
5121
|
}
|
|
5143
5122
|
get languageslist() {
|
|
5144
5123
|
return this.$$.ctx[28];
|
|
5145
5124
|
}
|
|
5146
5125
|
set languageslist(t) {
|
|
5147
|
-
this.$$set({ languageslist: t }),
|
|
5126
|
+
this.$$set({ languageslist: t }), D();
|
|
5148
5127
|
}
|
|
5149
5128
|
get translationurl() {
|
|
5150
5129
|
return this.$$.ctx[29];
|
|
5151
5130
|
}
|
|
5152
5131
|
set translationurl(t) {
|
|
5153
|
-
this.$$set({ translationurl: t }),
|
|
5132
|
+
this.$$set({ translationurl: t }), D();
|
|
5154
5133
|
}
|
|
5155
5134
|
get mbsource() {
|
|
5156
5135
|
return this.$$.ctx[30];
|
|
5157
5136
|
}
|
|
5158
5137
|
set mbsource(t) {
|
|
5159
|
-
this.$$set({ mbsource: t }),
|
|
5138
|
+
this.$$set({ mbsource: t }), D();
|
|
5160
5139
|
}
|
|
5161
5140
|
get clientstyling() {
|
|
5162
5141
|
return this.$$.ctx[31];
|
|
5163
5142
|
}
|
|
5164
5143
|
set clientstyling(t) {
|
|
5165
|
-
this.$$set({ clientstyling: t }),
|
|
5144
|
+
this.$$set({ clientstyling: t }), D();
|
|
5166
5145
|
}
|
|
5167
5146
|
get clientstylingurl() {
|
|
5168
5147
|
return this.$$.ctx[32];
|
|
5169
5148
|
}
|
|
5170
5149
|
set clientstylingurl(t) {
|
|
5171
|
-
this.$$set({ clientstylingurl: t }),
|
|
5150
|
+
this.$$set({ clientstylingurl: t }), D();
|
|
5172
5151
|
}
|
|
5173
5152
|
get customlocaleidentifier() {
|
|
5174
5153
|
return this.$$.ctx[33];
|
|
5175
5154
|
}
|
|
5176
5155
|
set customlocaleidentifier(t) {
|
|
5177
|
-
this.$$set({ customlocaleidentifier: t }),
|
|
5156
|
+
this.$$set({ customlocaleidentifier: t }), D();
|
|
5178
5157
|
}
|
|
5179
5158
|
get countryflaghamburger() {
|
|
5180
5159
|
return this.$$.ctx[0];
|
|
5181
5160
|
}
|
|
5182
5161
|
set countryflaghamburger(t) {
|
|
5183
|
-
this.$$set({ countryflaghamburger: t }),
|
|
5162
|
+
this.$$set({ countryflaghamburger: t }), D();
|
|
5184
5163
|
}
|
|
5185
5164
|
}
|
|
5186
|
-
|
|
5165
|
+
Tn(Xo, { menuitemsurl: {}, cmsendpoint: {}, cmsenv: {}, userroles: {}, lang: {}, activecategory: {}, languageslist: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, customlocaleidentifier: {}, countryflaghamburger: {} }, [], [], !0);
|
|
5187
5166
|
export {
|
|
5188
|
-
|
|
5167
|
+
Xo as C
|
|
5189
5168
|
};
|