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