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