@everymatrix/casino-hamburger-menu-nd 1.74.3 → 1.74.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoHamburgerMenuNd-DfEuISYI.cjs +18 -0
- package/components/{CasinoHamburgerMenuNd-Dx5ne9Tu.js → CasinoHamburgerMenuNd-DvsaFjKg.js} +760 -746
- package/components/{CasinoHamburgerMenuNd-CZKU1een.js → CasinoHamburgerMenuNd-Y9oVYPBS.js} +779 -765
- 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-DEeyYzC7.cjs +0 -18
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Xe = (e, t, r) => t in e ?
|
|
1
|
+
var dn = Object.defineProperty, mn = Object.defineProperties;
|
|
2
|
+
var pn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Mt = Object.getOwnPropertySymbols;
|
|
4
|
+
var gn = Object.prototype.hasOwnProperty, bn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Xe = (e, t, r) => t in e ? dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, At = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
gn.call(t, r) && Xe(e, r, t[r]);
|
|
8
|
+
if (Mt)
|
|
9
|
+
for (var r of Mt(t))
|
|
10
|
+
bn.call(t, r) && Xe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, Bt = (e, t) => mn(e, pn(t));
|
|
13
13
|
var V = (e, t, r) => (Xe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
15
|
-
var o = (
|
|
14
|
+
var Lt = (e, t, r) => new Promise((n, i) => {
|
|
15
|
+
var o = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
s(r.next(
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
17
|
+
s(r.next(l));
|
|
18
|
+
} catch (u) {
|
|
19
|
+
i(u);
|
|
20
20
|
}
|
|
21
|
-
}, a = (
|
|
21
|
+
}, a = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
s(r.throw(
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
23
|
+
s(r.throw(l));
|
|
24
|
+
} catch (u) {
|
|
25
|
+
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, s = (
|
|
27
|
+
}, s = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, a);
|
|
28
28
|
s((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function $() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function vr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Pt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function pe(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(vr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function pt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function yr(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let Me;
|
|
48
48
|
function ee(e, t) {
|
|
49
49
|
return e === t ? !0 : (Me || (Me = document.createElement("a")), Me.href = t, e === Me.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function vn(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function _r(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,20 +60,20 @@ function yr(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function yn(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(_r(t, r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function v(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function _n(e, t, r) {
|
|
70
|
+
const n = xn(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
|
-
const i =
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
72
|
+
const i = y("style");
|
|
73
|
+
i.id = t, i.textContent = r, En(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function xn(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,8 +83,8 @@ function yn(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function En(e, t) {
|
|
87
|
+
return v(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
90
90
|
t
|
|
@@ -100,10 +100,10 @@ function He(e, t) {
|
|
|
100
100
|
for (let r = 0; r < e.length; r += 1)
|
|
101
101
|
e[r] && e[r].d(t);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function y(e) {
|
|
104
104
|
return document.createElement(e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function It(e) {
|
|
107
107
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
108
108
|
}
|
|
109
109
|
function te(e) {
|
|
@@ -112,7 +112,7 @@ function te(e) {
|
|
|
112
112
|
function U() {
|
|
113
113
|
return te(" ");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function xr() {
|
|
116
116
|
return te("");
|
|
117
117
|
}
|
|
118
118
|
function re(e, t, r, n) {
|
|
@@ -121,17 +121,17 @@ function re(e, t, r, n) {
|
|
|
121
121
|
function p(e, t, r) {
|
|
122
122
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function wn(e) {
|
|
125
125
|
return Array.from(e.childNodes);
|
|
126
126
|
}
|
|
127
127
|
function ge(e, t) {
|
|
128
128
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
129
129
|
t);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Ct(e, t) {
|
|
132
132
|
e.value = t == null ? "" : t;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Nt(e, t, r) {
|
|
135
135
|
for (let n = 0; n < e.options.length; n += 1) {
|
|
136
136
|
const i = e.options[n];
|
|
137
137
|
if (i.__value === t) {
|
|
@@ -141,11 +141,11 @@ function It(e, t, r) {
|
|
|
141
141
|
}
|
|
142
142
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function Sn(e) {
|
|
145
145
|
const t = e.querySelector(":checked");
|
|
146
146
|
return t && t.__value;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Hn(e) {
|
|
149
149
|
const t = {};
|
|
150
150
|
return e.childNodes.forEach(
|
|
151
151
|
/** @param {Element} node */
|
|
@@ -158,23 +158,23 @@ let Ee;
|
|
|
158
158
|
function xe(e) {
|
|
159
159
|
Ee = e;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Tn() {
|
|
162
162
|
if (!Ee)
|
|
163
163
|
throw new Error("Function called outside component initialization");
|
|
164
164
|
return Ee;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
166
|
+
function On(e) {
|
|
167
|
+
Tn().$$.on_mount.push(e);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
170
|
-
let
|
|
171
|
-
const
|
|
172
|
-
let
|
|
173
|
-
function
|
|
174
|
-
|
|
169
|
+
const le = [], Ne = [];
|
|
170
|
+
let ue = [];
|
|
171
|
+
const Rt = [], Mn = /* @__PURE__ */ Promise.resolve();
|
|
172
|
+
let tt = !1;
|
|
173
|
+
function An() {
|
|
174
|
+
tt || (tt = !0, Mn.then(D));
|
|
175
175
|
}
|
|
176
176
|
function Re(e) {
|
|
177
|
-
|
|
177
|
+
ue.push(e);
|
|
178
178
|
}
|
|
179
179
|
const ze = /* @__PURE__ */ new Set();
|
|
180
180
|
let ae = 0;
|
|
@@ -184,98 +184,98 @@ function D() {
|
|
|
184
184
|
const e = Ee;
|
|
185
185
|
do {
|
|
186
186
|
try {
|
|
187
|
-
for (; ae <
|
|
188
|
-
const t =
|
|
189
|
-
ae++, xe(t),
|
|
187
|
+
for (; ae < le.length; ) {
|
|
188
|
+
const t = le[ae];
|
|
189
|
+
ae++, xe(t), Bn(t.$$);
|
|
190
190
|
}
|
|
191
191
|
} catch (t) {
|
|
192
|
-
throw
|
|
192
|
+
throw le.length = 0, ae = 0, t;
|
|
193
193
|
}
|
|
194
|
-
for (xe(null),
|
|
194
|
+
for (xe(null), le.length = 0, ae = 0; Ne.length; )
|
|
195
195
|
Ne.pop()();
|
|
196
|
-
for (let t = 0; t <
|
|
197
|
-
const r =
|
|
196
|
+
for (let t = 0; t < ue.length; t += 1) {
|
|
197
|
+
const r = ue[t];
|
|
198
198
|
ze.has(r) || (ze.add(r), r());
|
|
199
199
|
}
|
|
200
|
-
|
|
201
|
-
} while (
|
|
202
|
-
for (;
|
|
203
|
-
|
|
204
|
-
|
|
200
|
+
ue.length = 0;
|
|
201
|
+
} while (le.length);
|
|
202
|
+
for (; Rt.length; )
|
|
203
|
+
Rt.pop()();
|
|
204
|
+
tt = !1, ze.clear(), xe(e);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Bn(e) {
|
|
207
207
|
if (e.fragment !== null) {
|
|
208
208
|
e.update(), pe(e.before_update);
|
|
209
209
|
const t = e.dirty;
|
|
210
210
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function Ln(e) {
|
|
214
214
|
const t = [], r = [];
|
|
215
|
-
|
|
215
|
+
ue.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ue = t;
|
|
216
216
|
}
|
|
217
|
-
const
|
|
218
|
-
function
|
|
219
|
-
e && e.i && (
|
|
217
|
+
const Pn = /* @__PURE__ */ new Set();
|
|
218
|
+
function In(e, t) {
|
|
219
|
+
e && e.i && (Pn.delete(e), e.i(t));
|
|
220
220
|
}
|
|
221
221
|
function Y(e) {
|
|
222
222
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function Cn(e, t, r) {
|
|
225
225
|
const { fragment: n, after_update: i } = e.$$;
|
|
226
226
|
n && n.m(t, r), Re(() => {
|
|
227
|
-
const o = e.$$.on_mount.map(
|
|
227
|
+
const o = e.$$.on_mount.map(vr).filter(pt);
|
|
228
228
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : pe(o), e.$$.on_mount = [];
|
|
229
229
|
}), i.forEach(Re);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Nn(e, t) {
|
|
232
232
|
const r = e.$$;
|
|
233
|
-
r.fragment !== null && (
|
|
233
|
+
r.fragment !== null && (Ln(r.after_update), pe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
e.$$.dirty[0] === -1 && (
|
|
235
|
+
function Rn(e, t) {
|
|
236
|
+
e.$$.dirty[0] === -1 && (le.push(e), An(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
const
|
|
238
|
+
function Un(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
239
|
+
const l = Ee;
|
|
240
240
|
xe(e);
|
|
241
|
-
const
|
|
241
|
+
const u = e.$$ = {
|
|
242
242
|
fragment: null,
|
|
243
243
|
ctx: [],
|
|
244
244
|
// state
|
|
245
245
|
props: o,
|
|
246
246
|
update: $,
|
|
247
247
|
not_equal: i,
|
|
248
|
-
bound:
|
|
248
|
+
bound: Pt(),
|
|
249
249
|
// lifecycle
|
|
250
250
|
on_mount: [],
|
|
251
251
|
on_destroy: [],
|
|
252
252
|
on_disconnect: [],
|
|
253
253
|
before_update: [],
|
|
254
254
|
after_update: [],
|
|
255
|
-
context: new Map(t.context || (
|
|
255
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
256
256
|
// everything else
|
|
257
|
-
callbacks:
|
|
257
|
+
callbacks: Pt(),
|
|
258
258
|
dirty: s,
|
|
259
259
|
skip_bound: !1,
|
|
260
|
-
root: t.target ||
|
|
260
|
+
root: t.target || l.$$.root
|
|
261
261
|
};
|
|
262
|
-
a && a(
|
|
262
|
+
a && a(u.root);
|
|
263
263
|
let h = !1;
|
|
264
|
-
if (
|
|
264
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
265
265
|
const g = m.length ? m[0] : f;
|
|
266
|
-
return
|
|
267
|
-
}),
|
|
266
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && Rn(e, c)), f;
|
|
267
|
+
}) : [], u.update(), h = !0, pe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
268
268
|
if (t.hydrate) {
|
|
269
|
-
const c =
|
|
270
|
-
|
|
269
|
+
const c = wn(t.target);
|
|
270
|
+
u.fragment && u.fragment.l(c), c.forEach(I);
|
|
271
271
|
} else
|
|
272
|
-
|
|
273
|
-
t.intro &&
|
|
272
|
+
u.fragment && u.fragment.c();
|
|
273
|
+
t.intro && In(e.$$.fragment), Cn(e, t.target, t.anchor), D();
|
|
274
274
|
}
|
|
275
|
-
xe(
|
|
275
|
+
xe(l);
|
|
276
276
|
}
|
|
277
|
-
let
|
|
278
|
-
typeof HTMLElement == "function" && (
|
|
277
|
+
let Er;
|
|
278
|
+
typeof HTMLElement == "function" && (Er = class extends HTMLElement {
|
|
279
279
|
constructor(t, r, n) {
|
|
280
280
|
super();
|
|
281
281
|
/** The Svelte component constructor */
|
|
@@ -312,31 +312,31 @@ typeof HTMLElement == "function" && (_r = class extends HTMLElement {
|
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
connectedCallback() {
|
|
315
|
-
return
|
|
315
|
+
return Lt(this, null, function* () {
|
|
316
316
|
if (this.$$cn = !0, !this.$$c) {
|
|
317
317
|
let t = function(o) {
|
|
318
318
|
return () => {
|
|
319
319
|
let a;
|
|
320
320
|
return {
|
|
321
321
|
c: function() {
|
|
322
|
-
a =
|
|
322
|
+
a = y("slot"), o !== "default" && p(a, "name", o);
|
|
323
323
|
},
|
|
324
324
|
/**
|
|
325
325
|
* @param {HTMLElement} target
|
|
326
326
|
* @param {HTMLElement} [anchor]
|
|
327
327
|
*/
|
|
328
|
-
m: function(
|
|
329
|
-
F(
|
|
328
|
+
m: function(u, h) {
|
|
329
|
+
F(u, a, h);
|
|
330
330
|
},
|
|
331
|
-
d: function(
|
|
332
|
-
|
|
331
|
+
d: function(u) {
|
|
332
|
+
u && I(a);
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
335
|
};
|
|
336
336
|
};
|
|
337
337
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
338
338
|
return;
|
|
339
|
-
const r = {}, n =
|
|
339
|
+
const r = {}, n = Hn(this);
|
|
340
340
|
for (const o of this.$$s)
|
|
341
341
|
o in n && (r[o] = [t(o)]);
|
|
342
342
|
for (const o of this.attributes) {
|
|
@@ -347,7 +347,7 @@ typeof HTMLElement == "function" && (_r = class extends HTMLElement {
|
|
|
347
347
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
348
348
|
this.$$c = new this.$$ctor({
|
|
349
349
|
target: this.shadowRoot || this,
|
|
350
|
-
props:
|
|
350
|
+
props: Bt(At({}, this.$$d), {
|
|
351
351
|
$$slots: r,
|
|
352
352
|
$$scope: {
|
|
353
353
|
ctx: []
|
|
@@ -425,8 +425,8 @@ function Le(e, t, r, n) {
|
|
|
425
425
|
return t;
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
function
|
|
429
|
-
let a = class extends
|
|
428
|
+
function Fn(e, t, r, n, i, o) {
|
|
429
|
+
let a = class extends Er {
|
|
430
430
|
constructor() {
|
|
431
431
|
super(e, r, i), this.$$p_d = t;
|
|
432
432
|
}
|
|
@@ -441,22 +441,22 @@ function Nn(e, t, r, n, i, o) {
|
|
|
441
441
|
get() {
|
|
442
442
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
443
443
|
},
|
|
444
|
-
set(
|
|
445
|
-
var
|
|
446
|
-
|
|
444
|
+
set(l) {
|
|
445
|
+
var u;
|
|
446
|
+
l = Le(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
|
|
447
447
|
}
|
|
448
448
|
});
|
|
449
449
|
}), n.forEach((s) => {
|
|
450
450
|
Object.defineProperty(a.prototype, s, {
|
|
451
451
|
get() {
|
|
452
|
-
var
|
|
453
|
-
return (
|
|
452
|
+
var l;
|
|
453
|
+
return (l = this.$$c) == null ? void 0 : l[s];
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
456
|
}), e.element = /** @type {any} */
|
|
457
457
|
a, a;
|
|
458
458
|
}
|
|
459
|
-
class
|
|
459
|
+
class Dn {
|
|
460
460
|
constructor() {
|
|
461
461
|
/**
|
|
462
462
|
* ### PRIVATE API
|
|
@@ -477,7 +477,7 @@ class Rn {
|
|
|
477
477
|
}
|
|
478
478
|
/** @returns {void} */
|
|
479
479
|
$destroy() {
|
|
480
|
-
|
|
480
|
+
Nn(this, 1), this.$destroy = $;
|
|
481
481
|
}
|
|
482
482
|
/**
|
|
483
483
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -486,7 +486,7 @@ class Rn {
|
|
|
486
486
|
* @returns {() => void}
|
|
487
487
|
*/
|
|
488
488
|
$on(t, r) {
|
|
489
|
-
if (!
|
|
489
|
+
if (!pt(r))
|
|
490
490
|
return $;
|
|
491
491
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
492
492
|
return n.push(r), () => {
|
|
@@ -499,11 +499,11 @@ class Rn {
|
|
|
499
499
|
* @returns {void}
|
|
500
500
|
*/
|
|
501
501
|
$set(t) {
|
|
502
|
-
this.$$set && !
|
|
502
|
+
this.$$set && !vn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
const
|
|
506
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
505
|
+
const kn = "4";
|
|
506
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(kn);
|
|
507
507
|
/*! *****************************************************************************
|
|
508
508
|
Copyright (c) Microsoft Corporation.
|
|
509
509
|
|
|
@@ -518,18 +518,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
518
518
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
519
519
|
PERFORMANCE OF THIS SOFTWARE.
|
|
520
520
|
***************************************************************************** */
|
|
521
|
-
var
|
|
522
|
-
return
|
|
521
|
+
var rt = function(e, t) {
|
|
522
|
+
return rt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
523
523
|
r.__proto__ = n;
|
|
524
524
|
} || function(r, n) {
|
|
525
525
|
for (var i in n)
|
|
526
526
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
527
|
-
},
|
|
527
|
+
}, rt(e, t);
|
|
528
528
|
};
|
|
529
529
|
function q(e, t) {
|
|
530
530
|
if (typeof t != "function" && t !== null)
|
|
531
531
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
532
|
-
|
|
532
|
+
rt(e, t);
|
|
533
533
|
function r() {
|
|
534
534
|
this.constructor = e;
|
|
535
535
|
}
|
|
@@ -545,7 +545,7 @@ var S = function() {
|
|
|
545
545
|
return t;
|
|
546
546
|
}, S.apply(this, arguments);
|
|
547
547
|
};
|
|
548
|
-
function
|
|
548
|
+
function Gn(e, t) {
|
|
549
549
|
var r = {};
|
|
550
550
|
for (var n in e)
|
|
551
551
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -554,7 +554,7 @@ function Fn(e, t) {
|
|
|
554
554
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
555
555
|
return r;
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function nt(e) {
|
|
558
558
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
559
559
|
if (r)
|
|
560
560
|
return r.call(e);
|
|
@@ -566,7 +566,7 @@ function rt(e) {
|
|
|
566
566
|
};
|
|
567
567
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function it(e, t) {
|
|
570
570
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
571
571
|
if (!r)
|
|
572
572
|
return e;
|
|
@@ -595,13 +595,13 @@ function he(e, t, r) {
|
|
|
595
595
|
function Q(e) {
|
|
596
596
|
return typeof e == "function";
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function wr(e) {
|
|
599
599
|
var t = function(n) {
|
|
600
600
|
Error.call(n), n.stack = new Error().stack;
|
|
601
601
|
}, r = e(t);
|
|
602
602
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
603
603
|
}
|
|
604
|
-
var Ze =
|
|
604
|
+
var Ze = wr(function(e) {
|
|
605
605
|
return function(r) {
|
|
606
606
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
607
607
|
` + r.map(function(n, i) {
|
|
@@ -610,7 +610,7 @@ var Ze = xr(function(e) {
|
|
|
610
610
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
611
611
|
};
|
|
612
612
|
});
|
|
613
|
-
function
|
|
613
|
+
function ot(e, t) {
|
|
614
614
|
if (e) {
|
|
615
615
|
var r = e.indexOf(t);
|
|
616
616
|
0 <= r && e.splice(r, 1);
|
|
@@ -628,15 +628,15 @@ var De = function() {
|
|
|
628
628
|
if (a)
|
|
629
629
|
if (this._parentage = null, Array.isArray(a))
|
|
630
630
|
try {
|
|
631
|
-
for (var s =
|
|
632
|
-
var
|
|
633
|
-
|
|
631
|
+
for (var s = nt(a), l = s.next(); !l.done; l = s.next()) {
|
|
632
|
+
var u = l.value;
|
|
633
|
+
u.remove(this);
|
|
634
634
|
}
|
|
635
635
|
} catch (b) {
|
|
636
636
|
t = { error: b };
|
|
637
637
|
} finally {
|
|
638
638
|
try {
|
|
639
|
-
|
|
639
|
+
l && !l.done && (r = s.return) && r.call(s);
|
|
640
640
|
} finally {
|
|
641
641
|
if (t)
|
|
642
642
|
throw t.error;
|
|
@@ -655,12 +655,12 @@ var De = function() {
|
|
|
655
655
|
if (c) {
|
|
656
656
|
this._finalizers = null;
|
|
657
657
|
try {
|
|
658
|
-
for (var f =
|
|
658
|
+
for (var f = nt(c), m = f.next(); !m.done; m = f.next()) {
|
|
659
659
|
var g = m.value;
|
|
660
660
|
try {
|
|
661
|
-
|
|
661
|
+
Ut(g);
|
|
662
662
|
} catch (b) {
|
|
663
|
-
o = o != null ? o : [], b instanceof Ze ? o = he(he([],
|
|
663
|
+
o = o != null ? o : [], b instanceof Ze ? o = he(he([], it(o)), it(b.errors)) : o.push(b);
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
666
|
} catch (b) {
|
|
@@ -681,7 +681,7 @@ var De = function() {
|
|
|
681
681
|
var r;
|
|
682
682
|
if (t && t !== this)
|
|
683
683
|
if (this.closed)
|
|
684
|
-
|
|
684
|
+
Ut(t);
|
|
685
685
|
else {
|
|
686
686
|
if (t instanceof e) {
|
|
687
687
|
if (t.closed || t._hasParent(this))
|
|
@@ -698,56 +698,56 @@ var De = function() {
|
|
|
698
698
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
699
699
|
}, e.prototype._removeParent = function(t) {
|
|
700
700
|
var r = this._parentage;
|
|
701
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
701
|
+
r === t ? this._parentage = null : Array.isArray(r) && ot(r, t);
|
|
702
702
|
}, e.prototype.remove = function(t) {
|
|
703
703
|
var r = this._finalizers;
|
|
704
|
-
r &&
|
|
704
|
+
r && ot(r, t), t instanceof e && t._removeParent(this);
|
|
705
705
|
}, e.EMPTY = function() {
|
|
706
706
|
var t = new e();
|
|
707
707
|
return t.closed = !0, t;
|
|
708
708
|
}(), e;
|
|
709
|
-
}(),
|
|
710
|
-
function
|
|
709
|
+
}(), Sr = De.EMPTY;
|
|
710
|
+
function Hr(e) {
|
|
711
711
|
return e instanceof De || e && "closed" in e && Q(e.remove) && Q(e.add) && Q(e.unsubscribe);
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function Ut(e) {
|
|
714
714
|
Q(e) ? e() : e.unsubscribe();
|
|
715
715
|
}
|
|
716
|
-
var
|
|
716
|
+
var Tr = {
|
|
717
717
|
onUnhandledError: null,
|
|
718
718
|
onStoppedNotification: null,
|
|
719
719
|
Promise: void 0,
|
|
720
720
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
721
721
|
useDeprecatedNextContext: !1
|
|
722
|
-
},
|
|
722
|
+
}, $n = {
|
|
723
723
|
setTimeout: function(e, t) {
|
|
724
724
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
725
725
|
r[n - 2] = arguments[n];
|
|
726
|
-
return setTimeout.apply(void 0, he([e, t],
|
|
726
|
+
return setTimeout.apply(void 0, he([e, t], it(r)));
|
|
727
727
|
},
|
|
728
728
|
clearTimeout: function(e) {
|
|
729
729
|
return clearTimeout(e);
|
|
730
730
|
},
|
|
731
731
|
delegate: void 0
|
|
732
732
|
};
|
|
733
|
-
function
|
|
734
|
-
|
|
733
|
+
function jn(e) {
|
|
734
|
+
$n.setTimeout(function() {
|
|
735
735
|
throw e;
|
|
736
736
|
});
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function Ft() {
|
|
739
739
|
}
|
|
740
740
|
function Pe(e) {
|
|
741
741
|
e();
|
|
742
742
|
}
|
|
743
|
-
var
|
|
743
|
+
var Or = function(e) {
|
|
744
744
|
q(t, e);
|
|
745
745
|
function t(r) {
|
|
746
746
|
var n = e.call(this) || this;
|
|
747
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
747
|
+
return n.isStopped = !1, r ? (n.destination = r, Hr(r) && r.add(n)) : n.destination = zn, n;
|
|
748
748
|
}
|
|
749
749
|
return t.create = function(r, n, i) {
|
|
750
|
-
return new
|
|
750
|
+
return new at(r, n, i);
|
|
751
751
|
}, t.prototype.next = function(r) {
|
|
752
752
|
this.isStopped || this._next(r);
|
|
753
753
|
}, t.prototype.error = function(r) {
|
|
@@ -771,7 +771,11 @@ var Sr = function(e) {
|
|
|
771
771
|
this.unsubscribe();
|
|
772
772
|
}
|
|
773
773
|
}, t;
|
|
774
|
-
}(De),
|
|
774
|
+
}(De), Wn = Function.prototype.bind;
|
|
775
|
+
function Qe(e, t) {
|
|
776
|
+
return Wn.call(e, t);
|
|
777
|
+
}
|
|
778
|
+
var Vn = function() {
|
|
775
779
|
function e(t) {
|
|
776
780
|
this.partialObserver = t;
|
|
777
781
|
}
|
|
@@ -802,43 +806,55 @@ var Sr = function(e) {
|
|
|
802
806
|
Ae(r);
|
|
803
807
|
}
|
|
804
808
|
}, e;
|
|
805
|
-
}(),
|
|
809
|
+
}(), at = function(e) {
|
|
806
810
|
q(t, e);
|
|
807
811
|
function t(r, n, i) {
|
|
808
812
|
var o = e.call(this) || this, a;
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
813
|
+
if (Q(r) || !r)
|
|
814
|
+
a = {
|
|
815
|
+
next: r != null ? r : void 0,
|
|
816
|
+
error: n != null ? n : void 0,
|
|
817
|
+
complete: i != null ? i : void 0
|
|
818
|
+
};
|
|
819
|
+
else {
|
|
820
|
+
var s;
|
|
821
|
+
o && Tr.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
822
|
+
return o.unsubscribe();
|
|
823
|
+
}, a = {
|
|
824
|
+
next: r.next && Qe(r.next, s),
|
|
825
|
+
error: r.error && Qe(r.error, s),
|
|
826
|
+
complete: r.complete && Qe(r.complete, s)
|
|
827
|
+
}) : a = r;
|
|
828
|
+
}
|
|
829
|
+
return o.destination = new Vn(a), o;
|
|
814
830
|
}
|
|
815
831
|
return t;
|
|
816
|
-
}(
|
|
832
|
+
}(Or);
|
|
817
833
|
function Ae(e) {
|
|
818
|
-
|
|
834
|
+
jn(e);
|
|
819
835
|
}
|
|
820
|
-
function
|
|
836
|
+
function Xn(e) {
|
|
821
837
|
throw e;
|
|
822
838
|
}
|
|
823
|
-
var
|
|
839
|
+
var zn = {
|
|
824
840
|
closed: !0,
|
|
825
|
-
next:
|
|
826
|
-
error:
|
|
827
|
-
complete:
|
|
828
|
-
},
|
|
841
|
+
next: Ft,
|
|
842
|
+
error: Xn,
|
|
843
|
+
complete: Ft
|
|
844
|
+
}, Zn = function() {
|
|
829
845
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
830
846
|
}();
|
|
831
|
-
function
|
|
847
|
+
function Qn(e) {
|
|
832
848
|
return e;
|
|
833
849
|
}
|
|
834
|
-
function
|
|
835
|
-
return e.length === 0 ?
|
|
850
|
+
function Yn(e) {
|
|
851
|
+
return e.length === 0 ? Qn : e.length === 1 ? e[0] : function(r) {
|
|
836
852
|
return e.reduce(function(n, i) {
|
|
837
853
|
return i(n);
|
|
838
854
|
}, r);
|
|
839
855
|
};
|
|
840
856
|
}
|
|
841
|
-
var
|
|
857
|
+
var Dt = function() {
|
|
842
858
|
function e(t) {
|
|
843
859
|
t && (this._subscribe = t);
|
|
844
860
|
}
|
|
@@ -846,10 +862,10 @@ var Ut = function() {
|
|
|
846
862
|
var r = new e();
|
|
847
863
|
return r.source = this, r.operator = t, r;
|
|
848
864
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
849
|
-
var i = this, o =
|
|
865
|
+
var i = this, o = Jn(t) ? t : new at(t, r, n);
|
|
850
866
|
return Pe(function() {
|
|
851
|
-
var a = i, s = a.operator,
|
|
852
|
-
o.add(s ? s.call(o,
|
|
867
|
+
var a = i, s = a.operator, l = a.source;
|
|
868
|
+
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
853
869
|
}), o;
|
|
854
870
|
}, e.prototype._trySubscribe = function(t) {
|
|
855
871
|
try {
|
|
@@ -859,13 +875,13 @@ var Ut = function() {
|
|
|
859
875
|
}
|
|
860
876
|
}, e.prototype.forEach = function(t, r) {
|
|
861
877
|
var n = this;
|
|
862
|
-
return r =
|
|
863
|
-
var a = new
|
|
878
|
+
return r = kt(r), new r(function(i, o) {
|
|
879
|
+
var a = new at({
|
|
864
880
|
next: function(s) {
|
|
865
881
|
try {
|
|
866
882
|
t(s);
|
|
867
|
-
} catch (
|
|
868
|
-
o(
|
|
883
|
+
} catch (l) {
|
|
884
|
+
o(l), a.unsubscribe();
|
|
869
885
|
}
|
|
870
886
|
},
|
|
871
887
|
error: o,
|
|
@@ -876,15 +892,15 @@ var Ut = function() {
|
|
|
876
892
|
}, e.prototype._subscribe = function(t) {
|
|
877
893
|
var r;
|
|
878
894
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
879
|
-
}, e.prototype[
|
|
895
|
+
}, e.prototype[Zn] = function() {
|
|
880
896
|
return this;
|
|
881
897
|
}, e.prototype.pipe = function() {
|
|
882
898
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
883
899
|
t[r] = arguments[r];
|
|
884
|
-
return
|
|
900
|
+
return Yn(t)(this);
|
|
885
901
|
}, e.prototype.toPromise = function(t) {
|
|
886
902
|
var r = this;
|
|
887
|
-
return t =
|
|
903
|
+
return t = kt(t), new t(function(n, i) {
|
|
888
904
|
var o;
|
|
889
905
|
r.subscribe(function(a) {
|
|
890
906
|
return o = a;
|
|
@@ -898,32 +914,32 @@ var Ut = function() {
|
|
|
898
914
|
return new e(t);
|
|
899
915
|
}, e;
|
|
900
916
|
}();
|
|
901
|
-
function
|
|
917
|
+
function kt(e) {
|
|
902
918
|
var t;
|
|
903
|
-
return (t = e != null ? e :
|
|
919
|
+
return (t = e != null ? e : Tr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
904
920
|
}
|
|
905
|
-
function
|
|
921
|
+
function qn(e) {
|
|
906
922
|
return e && Q(e.next) && Q(e.error) && Q(e.complete);
|
|
907
923
|
}
|
|
908
|
-
function
|
|
909
|
-
return e && e instanceof
|
|
924
|
+
function Jn(e) {
|
|
925
|
+
return e && e instanceof Or || qn(e) && Hr(e);
|
|
910
926
|
}
|
|
911
|
-
var
|
|
927
|
+
var Kn = wr(function(e) {
|
|
912
928
|
return function() {
|
|
913
929
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
914
930
|
};
|
|
915
|
-
}),
|
|
931
|
+
}), Mr = function(e) {
|
|
916
932
|
q(t, e);
|
|
917
933
|
function t() {
|
|
918
934
|
var r = e.call(this) || this;
|
|
919
935
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
920
936
|
}
|
|
921
937
|
return t.prototype.lift = function(r) {
|
|
922
|
-
var n = new
|
|
938
|
+
var n = new Gt(this, this);
|
|
923
939
|
return n.operator = r, n;
|
|
924
940
|
}, t.prototype._throwIfClosed = function() {
|
|
925
941
|
if (this.closed)
|
|
926
|
-
throw new
|
|
942
|
+
throw new Kn();
|
|
927
943
|
}, t.prototype.next = function(r) {
|
|
928
944
|
var n = this;
|
|
929
945
|
Pe(function() {
|
|
@@ -931,12 +947,12 @@ var Yn = xr(function(e) {
|
|
|
931
947
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
932
948
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
933
949
|
try {
|
|
934
|
-
for (var a =
|
|
935
|
-
var
|
|
936
|
-
|
|
950
|
+
for (var a = nt(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
951
|
+
var l = s.value;
|
|
952
|
+
l.next(r);
|
|
937
953
|
}
|
|
938
|
-
} catch (
|
|
939
|
-
i = { error:
|
|
954
|
+
} catch (u) {
|
|
955
|
+
i = { error: u };
|
|
940
956
|
} finally {
|
|
941
957
|
try {
|
|
942
958
|
s && !s.done && (o = a.return) && o.call(a);
|
|
@@ -980,19 +996,19 @@ var Yn = xr(function(e) {
|
|
|
980
996
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
981
997
|
}, t.prototype._innerSubscribe = function(r) {
|
|
982
998
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
983
|
-
return o || a ?
|
|
984
|
-
n.currentObservers = null,
|
|
999
|
+
return o || a ? Sr : (this.currentObservers = null, s.push(r), new De(function() {
|
|
1000
|
+
n.currentObservers = null, ot(s, r);
|
|
985
1001
|
}));
|
|
986
1002
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
987
1003
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
988
1004
|
i ? r.error(o) : a && r.complete();
|
|
989
1005
|
}, t.prototype.asObservable = function() {
|
|
990
|
-
var r = new
|
|
1006
|
+
var r = new Dt();
|
|
991
1007
|
return r.source = this, r;
|
|
992
1008
|
}, t.create = function(r, n) {
|
|
993
|
-
return new
|
|
1009
|
+
return new Gt(r, n);
|
|
994
1010
|
}, t;
|
|
995
|
-
}(
|
|
1011
|
+
}(Dt), Gt = function(e) {
|
|
996
1012
|
q(t, e);
|
|
997
1013
|
function t(r, n) {
|
|
998
1014
|
var i = e.call(this) || this;
|
|
@@ -1009,45 +1025,45 @@ var Yn = xr(function(e) {
|
|
|
1009
1025
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1010
1026
|
}, t.prototype._subscribe = function(r) {
|
|
1011
1027
|
var n, i;
|
|
1012
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1028
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Sr;
|
|
1013
1029
|
}, t;
|
|
1014
|
-
}(
|
|
1030
|
+
}(Mr), Ar = {
|
|
1015
1031
|
now: function() {
|
|
1016
|
-
return (
|
|
1032
|
+
return (Ar.delegate || Date).now();
|
|
1017
1033
|
},
|
|
1018
1034
|
delegate: void 0
|
|
1019
|
-
},
|
|
1035
|
+
}, ei = function(e) {
|
|
1020
1036
|
q(t, e);
|
|
1021
1037
|
function t(r, n, i) {
|
|
1022
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1038
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ar);
|
|
1023
1039
|
var o = e.call(this) || this;
|
|
1024
1040
|
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;
|
|
1025
1041
|
}
|
|
1026
1042
|
return t.prototype.next = function(r) {
|
|
1027
|
-
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider,
|
|
1028
|
-
i || (o.push(r), !a && o.push(s.now() +
|
|
1043
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, l = n._windowTime;
|
|
1044
|
+
i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1029
1045
|
}, t.prototype._subscribe = function(r) {
|
|
1030
1046
|
this._throwIfClosed(), this._trimBuffer();
|
|
1031
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(),
|
|
1032
|
-
r.next(s[
|
|
1047
|
+
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)
|
|
1048
|
+
r.next(s[l]);
|
|
1033
1049
|
return this._checkFinalizedStatuses(r), n;
|
|
1034
1050
|
}, t.prototype._trimBuffer = function() {
|
|
1035
1051
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
1036
1052
|
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1037
|
-
for (var
|
|
1038
|
-
|
|
1039
|
-
|
|
1053
|
+
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1054
|
+
u = h;
|
|
1055
|
+
u && o.splice(0, u + 1);
|
|
1040
1056
|
}
|
|
1041
1057
|
}, t;
|
|
1042
|
-
}(
|
|
1043
|
-
const
|
|
1044
|
-
if (
|
|
1045
|
-
const r = new
|
|
1046
|
-
|
|
1058
|
+
}(Mr);
|
|
1059
|
+
const $t = [], jt = {}, ti = (e, t = 0) => {
|
|
1060
|
+
if ($t.indexOf(e) == -1) {
|
|
1061
|
+
const r = new ei(t);
|
|
1062
|
+
jt[e] = r, $t.push(e);
|
|
1047
1063
|
}
|
|
1048
|
-
return
|
|
1064
|
+
return jt[e];
|
|
1049
1065
|
}, se = [];
|
|
1050
|
-
function
|
|
1066
|
+
function ri(e, t) {
|
|
1051
1067
|
return {
|
|
1052
1068
|
subscribe: ke(e, t).subscribe
|
|
1053
1069
|
};
|
|
@@ -1056,13 +1072,13 @@ function ke(e, t = $) {
|
|
|
1056
1072
|
let r;
|
|
1057
1073
|
const n = /* @__PURE__ */ new Set();
|
|
1058
1074
|
function i(s) {
|
|
1059
|
-
if (
|
|
1060
|
-
const
|
|
1061
|
-
for (const
|
|
1062
|
-
|
|
1063
|
-
if (
|
|
1064
|
-
for (let
|
|
1065
|
-
se[
|
|
1075
|
+
if (yr(e, s) && (e = s, r)) {
|
|
1076
|
+
const l = !se.length;
|
|
1077
|
+
for (const u of n)
|
|
1078
|
+
u[1](), se.push(u, e);
|
|
1079
|
+
if (l) {
|
|
1080
|
+
for (let u = 0; u < se.length; u += 2)
|
|
1081
|
+
se[u][0](se[u + 1]);
|
|
1066
1082
|
se.length = 0;
|
|
1067
1083
|
}
|
|
1068
1084
|
}
|
|
@@ -1070,10 +1086,10 @@ function ke(e, t = $) {
|
|
|
1070
1086
|
function o(s) {
|
|
1071
1087
|
i(s(e));
|
|
1072
1088
|
}
|
|
1073
|
-
function a(s,
|
|
1074
|
-
const
|
|
1075
|
-
return n.add(
|
|
1076
|
-
n.delete(
|
|
1089
|
+
function a(s, l = $) {
|
|
1090
|
+
const u = [s, l];
|
|
1091
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || $), s(e), () => {
|
|
1092
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1077
1093
|
};
|
|
1078
1094
|
}
|
|
1079
1095
|
return { set: i, update: o, subscribe: a };
|
|
@@ -1083,96 +1099,96 @@ function be(e, t, r) {
|
|
|
1083
1099
|
if (!i.every(Boolean))
|
|
1084
1100
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1085
1101
|
const o = t.length < 2;
|
|
1086
|
-
return
|
|
1087
|
-
let
|
|
1088
|
-
const
|
|
1102
|
+
return ri(r, (a, s) => {
|
|
1103
|
+
let l = !1;
|
|
1104
|
+
const u = [];
|
|
1089
1105
|
let h = 0, c = $;
|
|
1090
1106
|
const f = () => {
|
|
1091
1107
|
if (h)
|
|
1092
1108
|
return;
|
|
1093
1109
|
c();
|
|
1094
|
-
const g = t(n ?
|
|
1095
|
-
o ? a(g) : c =
|
|
1110
|
+
const g = t(n ? u[0] : u, a, s);
|
|
1111
|
+
o ? a(g) : c = pt(g) ? g : $;
|
|
1096
1112
|
}, m = i.map(
|
|
1097
|
-
(g, b) =>
|
|
1113
|
+
(g, b) => _r(
|
|
1098
1114
|
g,
|
|
1099
1115
|
(w) => {
|
|
1100
|
-
|
|
1116
|
+
u[b] = w, h &= ~(1 << b), l && f();
|
|
1101
1117
|
},
|
|
1102
1118
|
() => {
|
|
1103
1119
|
h |= 1 << b;
|
|
1104
1120
|
}
|
|
1105
1121
|
)
|
|
1106
1122
|
);
|
|
1107
|
-
return
|
|
1108
|
-
pe(m), c(),
|
|
1123
|
+
return l = !0, f(), function() {
|
|
1124
|
+
pe(m), c(), l = !1;
|
|
1109
1125
|
};
|
|
1110
1126
|
});
|
|
1111
1127
|
}
|
|
1112
|
-
function
|
|
1113
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1128
|
+
function ni(e) {
|
|
1129
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1114
1130
|
}
|
|
1115
|
-
var
|
|
1116
|
-
return
|
|
1131
|
+
var ii = function(t) {
|
|
1132
|
+
return oi(t) && !ai(t);
|
|
1117
1133
|
};
|
|
1118
|
-
function
|
|
1134
|
+
function oi(e) {
|
|
1119
1135
|
return !!e && typeof e == "object";
|
|
1120
1136
|
}
|
|
1121
|
-
function
|
|
1137
|
+
function ai(e) {
|
|
1122
1138
|
var t = Object.prototype.toString.call(e);
|
|
1123
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1139
|
+
return t === "[object RegExp]" || t === "[object Date]" || ui(e);
|
|
1124
1140
|
}
|
|
1125
|
-
var
|
|
1126
|
-
function
|
|
1127
|
-
return e.$$typeof ===
|
|
1141
|
+
var si = typeof Symbol == "function" && Symbol.for, li = si ? Symbol.for("react.element") : 60103;
|
|
1142
|
+
function ui(e) {
|
|
1143
|
+
return e.$$typeof === li;
|
|
1128
1144
|
}
|
|
1129
|
-
function
|
|
1145
|
+
function hi(e) {
|
|
1130
1146
|
return Array.isArray(e) ? [] : {};
|
|
1131
1147
|
}
|
|
1132
1148
|
function we(e, t) {
|
|
1133
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? ce(
|
|
1149
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ce(hi(e), e, t) : e;
|
|
1134
1150
|
}
|
|
1135
|
-
function
|
|
1151
|
+
function ci(e, t, r) {
|
|
1136
1152
|
return e.concat(t).map(function(n) {
|
|
1137
1153
|
return we(n, r);
|
|
1138
1154
|
});
|
|
1139
1155
|
}
|
|
1140
|
-
function
|
|
1156
|
+
function fi(e, t) {
|
|
1141
1157
|
if (!t.customMerge)
|
|
1142
1158
|
return ce;
|
|
1143
1159
|
var r = t.customMerge(e);
|
|
1144
1160
|
return typeof r == "function" ? r : ce;
|
|
1145
1161
|
}
|
|
1146
|
-
function
|
|
1162
|
+
function di(e) {
|
|
1147
1163
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1148
1164
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1149
1165
|
}) : [];
|
|
1150
1166
|
}
|
|
1151
|
-
function
|
|
1152
|
-
return Object.keys(e).concat(
|
|
1167
|
+
function Wt(e) {
|
|
1168
|
+
return Object.keys(e).concat(di(e));
|
|
1153
1169
|
}
|
|
1154
|
-
function
|
|
1170
|
+
function Br(e, t) {
|
|
1155
1171
|
try {
|
|
1156
1172
|
return t in e;
|
|
1157
1173
|
} catch (r) {
|
|
1158
1174
|
return !1;
|
|
1159
1175
|
}
|
|
1160
1176
|
}
|
|
1161
|
-
function
|
|
1162
|
-
return
|
|
1177
|
+
function mi(e, t) {
|
|
1178
|
+
return Br(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1163
1179
|
}
|
|
1164
|
-
function
|
|
1180
|
+
function pi(e, t, r) {
|
|
1165
1181
|
var n = {};
|
|
1166
|
-
return r.isMergeableObject(e) &&
|
|
1182
|
+
return r.isMergeableObject(e) && Wt(e).forEach(function(i) {
|
|
1167
1183
|
n[i] = we(e[i], r);
|
|
1168
|
-
}),
|
|
1169
|
-
|
|
1184
|
+
}), Wt(t).forEach(function(i) {
|
|
1185
|
+
mi(e, i) || (Br(e, i) && r.isMergeableObject(t[i]) ? n[i] = fi(i, r)(e[i], t[i], r) : n[i] = we(t[i], r));
|
|
1170
1186
|
}), n;
|
|
1171
1187
|
}
|
|
1172
1188
|
function ce(e, t, r) {
|
|
1173
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1189
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ci, r.isMergeableObject = r.isMergeableObject || ii, r.cloneUnlessOtherwiseSpecified = we;
|
|
1174
1190
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1175
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1191
|
+
return o ? n ? r.arrayMerge(e, t, r) : pi(e, t, r) : we(t, r);
|
|
1176
1192
|
}
|
|
1177
1193
|
ce.all = function(t, r) {
|
|
1178
1194
|
if (!Array.isArray(t))
|
|
@@ -1181,60 +1197,58 @@ ce.all = function(t, r) {
|
|
|
1181
1197
|
return ce(n, i, r);
|
|
1182
1198
|
}, {});
|
|
1183
1199
|
};
|
|
1184
|
-
var
|
|
1185
|
-
const
|
|
1186
|
-
function
|
|
1187
|
-
var r = t && t.cache ? t.cache :
|
|
1200
|
+
var gi = ce, bi = gi;
|
|
1201
|
+
const vi = /* @__PURE__ */ ni(bi);
|
|
1202
|
+
function Ye(e, t) {
|
|
1203
|
+
var r = t && t.cache ? t.cache : Si, n = t && t.serializer ? t.serializer : wi, i = t && t.strategy ? t.strategy : _i;
|
|
1188
1204
|
return i(e, {
|
|
1189
1205
|
cache: r,
|
|
1190
1206
|
serializer: n
|
|
1191
1207
|
});
|
|
1192
1208
|
}
|
|
1193
|
-
function
|
|
1209
|
+
function yi(e) {
|
|
1194
1210
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1195
1211
|
}
|
|
1196
|
-
function
|
|
1197
|
-
var i =
|
|
1212
|
+
function Lr(e, t, r, n) {
|
|
1213
|
+
var i = yi(n) ? n : r(n), o = t.get(i);
|
|
1198
1214
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1199
1215
|
}
|
|
1200
|
-
function
|
|
1216
|
+
function Pr(e, t, r) {
|
|
1201
1217
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1202
1218
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1203
1219
|
}
|
|
1204
|
-
function
|
|
1220
|
+
function gt(e, t, r, n, i) {
|
|
1205
1221
|
return r.bind(t, e, n, i);
|
|
1206
1222
|
}
|
|
1207
|
-
function
|
|
1208
|
-
var r = e.length === 1 ?
|
|
1209
|
-
return
|
|
1223
|
+
function _i(e, t) {
|
|
1224
|
+
var r = e.length === 1 ? Lr : Pr;
|
|
1225
|
+
return gt(e, this, r, t.cache.create(), t.serializer);
|
|
1210
1226
|
}
|
|
1211
|
-
function
|
|
1212
|
-
return
|
|
1227
|
+
function xi(e, t) {
|
|
1228
|
+
return gt(e, this, Pr, t.cache.create(), t.serializer);
|
|
1213
1229
|
}
|
|
1214
|
-
function
|
|
1215
|
-
return
|
|
1230
|
+
function Ei(e, t) {
|
|
1231
|
+
return gt(e, this, Lr, t.cache.create(), t.serializer);
|
|
1216
1232
|
}
|
|
1217
|
-
var
|
|
1233
|
+
var wi = function() {
|
|
1218
1234
|
return JSON.stringify(arguments);
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
}()
|
|
1231
|
-
), Ei = {
|
|
1235
|
+
};
|
|
1236
|
+
function bt() {
|
|
1237
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1238
|
+
}
|
|
1239
|
+
bt.prototype.get = function(e) {
|
|
1240
|
+
return this.cache[e];
|
|
1241
|
+
};
|
|
1242
|
+
bt.prototype.set = function(e, t) {
|
|
1243
|
+
this.cache[e] = t;
|
|
1244
|
+
};
|
|
1245
|
+
var Si = {
|
|
1232
1246
|
create: function() {
|
|
1233
|
-
return new
|
|
1247
|
+
return new bt();
|
|
1234
1248
|
}
|
|
1235
|
-
},
|
|
1236
|
-
variadic:
|
|
1237
|
-
monadic:
|
|
1249
|
+
}, qe = {
|
|
1250
|
+
variadic: xi,
|
|
1251
|
+
monadic: Ei
|
|
1238
1252
|
}, _;
|
|
1239
1253
|
(function(e) {
|
|
1240
1254
|
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";
|
|
@@ -1247,43 +1261,43 @@ var fe;
|
|
|
1247
1261
|
(function(e) {
|
|
1248
1262
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1249
1263
|
})(fe || (fe = {}));
|
|
1250
|
-
function
|
|
1264
|
+
function Vt(e) {
|
|
1251
1265
|
return e.type === O.literal;
|
|
1252
1266
|
}
|
|
1253
|
-
function
|
|
1267
|
+
function Hi(e) {
|
|
1254
1268
|
return e.type === O.argument;
|
|
1255
1269
|
}
|
|
1256
|
-
function
|
|
1270
|
+
function Ir(e) {
|
|
1257
1271
|
return e.type === O.number;
|
|
1258
1272
|
}
|
|
1259
|
-
function
|
|
1273
|
+
function Cr(e) {
|
|
1260
1274
|
return e.type === O.date;
|
|
1261
1275
|
}
|
|
1262
|
-
function
|
|
1276
|
+
function Nr(e) {
|
|
1263
1277
|
return e.type === O.time;
|
|
1264
1278
|
}
|
|
1265
|
-
function
|
|
1279
|
+
function Rr(e) {
|
|
1266
1280
|
return e.type === O.select;
|
|
1267
1281
|
}
|
|
1268
|
-
function
|
|
1282
|
+
function Ur(e) {
|
|
1269
1283
|
return e.type === O.plural;
|
|
1270
1284
|
}
|
|
1271
|
-
function
|
|
1285
|
+
function Ti(e) {
|
|
1272
1286
|
return e.type === O.pound;
|
|
1273
1287
|
}
|
|
1274
|
-
function
|
|
1288
|
+
function Fr(e) {
|
|
1275
1289
|
return e.type === O.tag;
|
|
1276
1290
|
}
|
|
1277
|
-
function
|
|
1291
|
+
function Dr(e) {
|
|
1278
1292
|
return !!(e && typeof e == "object" && e.type === fe.number);
|
|
1279
1293
|
}
|
|
1280
|
-
function
|
|
1294
|
+
function st(e) {
|
|
1281
1295
|
return !!(e && typeof e == "object" && e.type === fe.dateTime);
|
|
1282
1296
|
}
|
|
1283
|
-
var
|
|
1284
|
-
function
|
|
1297
|
+
var kr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Oi = /(?:[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;
|
|
1298
|
+
function Mi(e) {
|
|
1285
1299
|
var t = {};
|
|
1286
|
-
return e.replace(
|
|
1300
|
+
return e.replace(Oi, function(r) {
|
|
1287
1301
|
var n = r.length;
|
|
1288
1302
|
switch (r[0]) {
|
|
1289
1303
|
case "G":
|
|
@@ -1372,36 +1386,36 @@ function Ti(e) {
|
|
|
1372
1386
|
return "";
|
|
1373
1387
|
}), t;
|
|
1374
1388
|
}
|
|
1375
|
-
var
|
|
1376
|
-
function
|
|
1389
|
+
var Ai = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1390
|
+
function Bi(e) {
|
|
1377
1391
|
if (e.length === 0)
|
|
1378
1392
|
throw new Error("Number skeleton cannot be empty");
|
|
1379
|
-
for (var t = e.split(
|
|
1393
|
+
for (var t = e.split(Ai).filter(function(f) {
|
|
1380
1394
|
return f.length > 0;
|
|
1381
1395
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1382
1396
|
var o = i[n], a = o.split("/");
|
|
1383
1397
|
if (a.length === 0)
|
|
1384
1398
|
throw new Error("Invalid number skeleton");
|
|
1385
|
-
for (var s = a[0],
|
|
1386
|
-
var c = h[
|
|
1399
|
+
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1400
|
+
var c = h[u];
|
|
1387
1401
|
if (c.length === 0)
|
|
1388
1402
|
throw new Error("Invalid number skeleton");
|
|
1389
1403
|
}
|
|
1390
|
-
r.push({ stem: s, options:
|
|
1404
|
+
r.push({ stem: s, options: l });
|
|
1391
1405
|
}
|
|
1392
1406
|
return r;
|
|
1393
1407
|
}
|
|
1394
|
-
function
|
|
1408
|
+
function Li(e) {
|
|
1395
1409
|
return e.replace(/^(.*?)-/, "");
|
|
1396
1410
|
}
|
|
1397
|
-
var
|
|
1398
|
-
function
|
|
1411
|
+
var Xt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gr = /^(@+)?(\+|#+)?[rs]?$/g, Pi = /(\*)(0+)|(#+)(0+)|(0+)/g, $r = /^(0+)$/;
|
|
1412
|
+
function zt(e) {
|
|
1399
1413
|
var t = {};
|
|
1400
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1414
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Gr, function(r, n, i) {
|
|
1401
1415
|
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)), "";
|
|
1402
1416
|
}), t;
|
|
1403
1417
|
}
|
|
1404
|
-
function
|
|
1418
|
+
function jr(e) {
|
|
1405
1419
|
switch (e) {
|
|
1406
1420
|
case "sign-auto":
|
|
1407
1421
|
return {
|
|
@@ -1441,7 +1455,7 @@ function kr(e) {
|
|
|
1441
1455
|
};
|
|
1442
1456
|
}
|
|
1443
1457
|
}
|
|
1444
|
-
function
|
|
1458
|
+
function Ii(e) {
|
|
1445
1459
|
var t;
|
|
1446
1460
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1447
1461
|
notation: "engineering"
|
|
@@ -1449,17 +1463,17 @@ function Li(e) {
|
|
|
1449
1463
|
notation: "scientific"
|
|
1450
1464
|
}, e = e.slice(1)), t) {
|
|
1451
1465
|
var r = e.slice(0, 2);
|
|
1452
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)),
|
|
1466
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !$r.test(e))
|
|
1453
1467
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1454
1468
|
t.minimumIntegerDigits = e.length;
|
|
1455
1469
|
}
|
|
1456
1470
|
return t;
|
|
1457
1471
|
}
|
|
1458
|
-
function
|
|
1459
|
-
var t = {}, r =
|
|
1472
|
+
function Zt(e) {
|
|
1473
|
+
var t = {}, r = jr(e);
|
|
1460
1474
|
return r || t;
|
|
1461
1475
|
}
|
|
1462
|
-
function
|
|
1476
|
+
function Ci(e) {
|
|
1463
1477
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1464
1478
|
var i = n[r];
|
|
1465
1479
|
switch (i.stem) {
|
|
@@ -1483,7 +1497,7 @@ function Pi(e) {
|
|
|
1483
1497
|
continue;
|
|
1484
1498
|
case "measure-unit":
|
|
1485
1499
|
case "unit":
|
|
1486
|
-
t.style = "unit", t.unit =
|
|
1500
|
+
t.style = "unit", t.unit = Li(i.options[0]);
|
|
1487
1501
|
continue;
|
|
1488
1502
|
case "compact-short":
|
|
1489
1503
|
case "K":
|
|
@@ -1494,13 +1508,13 @@ function Pi(e) {
|
|
|
1494
1508
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1495
1509
|
continue;
|
|
1496
1510
|
case "scientific":
|
|
1497
|
-
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
1498
|
-
return S(S({},
|
|
1511
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1512
|
+
return S(S({}, l), Zt(u));
|
|
1499
1513
|
}, {}));
|
|
1500
1514
|
continue;
|
|
1501
1515
|
case "engineering":
|
|
1502
|
-
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
1503
|
-
return S(S({},
|
|
1516
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1517
|
+
return S(S({}, l), Zt(u));
|
|
1504
1518
|
}, {}));
|
|
1505
1519
|
continue;
|
|
1506
1520
|
case "notation-simple":
|
|
@@ -1545,8 +1559,8 @@ function Pi(e) {
|
|
|
1545
1559
|
case "integer-width":
|
|
1546
1560
|
if (i.options.length > 1)
|
|
1547
1561
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1548
|
-
i.options[0].replace(
|
|
1549
|
-
if (
|
|
1562
|
+
i.options[0].replace(Pi, function(l, u, h, c, f, m) {
|
|
1563
|
+
if (u)
|
|
1550
1564
|
t.minimumIntegerDigits = h.length;
|
|
1551
1565
|
else {
|
|
1552
1566
|
if (c && f)
|
|
@@ -1558,27 +1572,27 @@ function Pi(e) {
|
|
|
1558
1572
|
});
|
|
1559
1573
|
continue;
|
|
1560
1574
|
}
|
|
1561
|
-
if (
|
|
1575
|
+
if ($r.test(i.stem)) {
|
|
1562
1576
|
t.minimumIntegerDigits = i.stem.length;
|
|
1563
1577
|
continue;
|
|
1564
1578
|
}
|
|
1565
|
-
if (
|
|
1579
|
+
if (Xt.test(i.stem)) {
|
|
1566
1580
|
if (i.options.length > 1)
|
|
1567
1581
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1568
|
-
i.stem.replace(
|
|
1569
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1582
|
+
i.stem.replace(Xt, function(l, u, h, c, f, m) {
|
|
1583
|
+
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), "";
|
|
1570
1584
|
});
|
|
1571
1585
|
var o = i.options[0];
|
|
1572
|
-
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t),
|
|
1586
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), zt(o)));
|
|
1573
1587
|
continue;
|
|
1574
1588
|
}
|
|
1575
|
-
if (
|
|
1576
|
-
t = S(S({}, t),
|
|
1589
|
+
if (Gr.test(i.stem)) {
|
|
1590
|
+
t = S(S({}, t), zt(i.stem));
|
|
1577
1591
|
continue;
|
|
1578
1592
|
}
|
|
1579
|
-
var a =
|
|
1593
|
+
var a = jr(i.stem);
|
|
1580
1594
|
a && (t = S(S({}, t), a));
|
|
1581
|
-
var s =
|
|
1595
|
+
var s = Ii(i.stem);
|
|
1582
1596
|
s && (t = S(S({}, t), s));
|
|
1583
1597
|
}
|
|
1584
1598
|
return t;
|
|
@@ -2998,23 +3012,23 @@ var Be = {
|
|
|
2998
3012
|
"h"
|
|
2999
3013
|
]
|
|
3000
3014
|
};
|
|
3001
|
-
function
|
|
3015
|
+
function Ni(e, t) {
|
|
3002
3016
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3003
3017
|
var i = e.charAt(n);
|
|
3004
3018
|
if (i === "j") {
|
|
3005
3019
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3006
3020
|
o++, n++;
|
|
3007
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1),
|
|
3008
|
-
for ((
|
|
3009
|
-
r +=
|
|
3021
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Ri(t);
|
|
3022
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3023
|
+
r += l;
|
|
3010
3024
|
for (; a-- > 0; )
|
|
3011
|
-
r =
|
|
3025
|
+
r = u + r;
|
|
3012
3026
|
} else
|
|
3013
3027
|
i === "J" ? r += "H" : r += i;
|
|
3014
3028
|
}
|
|
3015
3029
|
return r;
|
|
3016
3030
|
}
|
|
3017
|
-
function
|
|
3031
|
+
function Ri(e) {
|
|
3018
3032
|
var t = e.hourCycle;
|
|
3019
3033
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3020
3034
|
e.hourCycles && // @ts-ignore
|
|
@@ -3036,20 +3050,20 @@ function Ci(e) {
|
|
|
3036
3050
|
var i = Be[n || ""] || Be[r || ""] || Be["".concat(r, "-001")] || Be["001"];
|
|
3037
3051
|
return i[0];
|
|
3038
3052
|
}
|
|
3039
|
-
var
|
|
3053
|
+
var Je, Ui = new RegExp("^".concat(kr.source, "*")), Fi = new RegExp("".concat(kr.source, "*$"));
|
|
3040
3054
|
function E(e, t) {
|
|
3041
3055
|
return { start: e, end: t };
|
|
3042
3056
|
}
|
|
3043
|
-
var
|
|
3057
|
+
var Di = !!String.prototype.startsWith && "_a".startsWith("a", 1), ki = !!String.fromCodePoint, Gi = !!Object.fromEntries, $i = !!String.prototype.codePointAt, ji = !!String.prototype.trimStart, Wi = !!String.prototype.trimEnd, Vi = !!Number.isSafeInteger, Xi = Vi ? Number.isSafeInteger : function(e) {
|
|
3044
3058
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3045
|
-
},
|
|
3059
|
+
}, lt = !0;
|
|
3046
3060
|
try {
|
|
3047
|
-
var
|
|
3048
|
-
|
|
3061
|
+
var zi = Vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3062
|
+
lt = ((Je = zi.exec("a")) === null || Je === void 0 ? void 0 : Je[0]) === "a";
|
|
3049
3063
|
} catch (e) {
|
|
3050
|
-
|
|
3064
|
+
lt = !1;
|
|
3051
3065
|
}
|
|
3052
|
-
var
|
|
3066
|
+
var Qt = Di ? (
|
|
3053
3067
|
// Native
|
|
3054
3068
|
function(t, r, n) {
|
|
3055
3069
|
return t.startsWith(r, n);
|
|
@@ -3059,7 +3073,7 @@ var zt = Ui ? (
|
|
|
3059
3073
|
function(t, r, n) {
|
|
3060
3074
|
return t.slice(n, n + r.length) === r;
|
|
3061
3075
|
}
|
|
3062
|
-
), ut =
|
|
3076
|
+
), ut = ki ? String.fromCodePoint : (
|
|
3063
3077
|
// IE11
|
|
3064
3078
|
function() {
|
|
3065
3079
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3071,9 +3085,9 @@ var zt = Ui ? (
|
|
|
3071
3085
|
}
|
|
3072
3086
|
return n;
|
|
3073
3087
|
}
|
|
3074
|
-
),
|
|
3088
|
+
), Yt = (
|
|
3075
3089
|
// native
|
|
3076
|
-
|
|
3090
|
+
Gi ? Object.fromEntries : (
|
|
3077
3091
|
// Ponyfill
|
|
3078
3092
|
function(t) {
|
|
3079
3093
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3083,7 +3097,7 @@ var zt = Ui ? (
|
|
|
3083
3097
|
return r;
|
|
3084
3098
|
}
|
|
3085
3099
|
)
|
|
3086
|
-
),
|
|
3100
|
+
), Wr = $i ? (
|
|
3087
3101
|
// Native
|
|
3088
3102
|
function(t, r) {
|
|
3089
3103
|
return t.codePointAt(r);
|
|
@@ -3097,7 +3111,7 @@ var zt = Ui ? (
|
|
|
3097
3111
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3098
3112
|
}
|
|
3099
3113
|
}
|
|
3100
|
-
),
|
|
3114
|
+
), Zi = ji ? (
|
|
3101
3115
|
// Native
|
|
3102
3116
|
function(t) {
|
|
3103
3117
|
return t.trimStart();
|
|
@@ -3105,9 +3119,9 @@ var zt = Ui ? (
|
|
|
3105
3119
|
) : (
|
|
3106
3120
|
// Ponyfill
|
|
3107
3121
|
function(t) {
|
|
3108
|
-
return t.replace(
|
|
3122
|
+
return t.replace(Ui, "");
|
|
3109
3123
|
}
|
|
3110
|
-
),
|
|
3124
|
+
), Qi = Wi ? (
|
|
3111
3125
|
// Native
|
|
3112
3126
|
function(t) {
|
|
3113
3127
|
return t.trimEnd();
|
|
@@ -3115,32 +3129,32 @@ var zt = Ui ? (
|
|
|
3115
3129
|
) : (
|
|
3116
3130
|
// Ponyfill
|
|
3117
3131
|
function(t) {
|
|
3118
|
-
return t.replace(
|
|
3132
|
+
return t.replace(Fi, "");
|
|
3119
3133
|
}
|
|
3120
3134
|
);
|
|
3121
|
-
function
|
|
3135
|
+
function Vr(e, t) {
|
|
3122
3136
|
return new RegExp(e, t);
|
|
3123
3137
|
}
|
|
3124
|
-
var
|
|
3125
|
-
if (
|
|
3126
|
-
var
|
|
3127
|
-
|
|
3138
|
+
var ht;
|
|
3139
|
+
if (lt) {
|
|
3140
|
+
var qt = Vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3141
|
+
ht = function(t, r) {
|
|
3128
3142
|
var n;
|
|
3129
|
-
|
|
3130
|
-
var i =
|
|
3143
|
+
qt.lastIndex = r;
|
|
3144
|
+
var i = qt.exec(t);
|
|
3131
3145
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3132
3146
|
};
|
|
3133
3147
|
} else
|
|
3134
|
-
|
|
3148
|
+
ht = function(t, r) {
|
|
3135
3149
|
for (var n = []; ; ) {
|
|
3136
|
-
var i =
|
|
3137
|
-
if (i === void 0 ||
|
|
3150
|
+
var i = Wr(t, r);
|
|
3151
|
+
if (i === void 0 || Xr(i) || Ki(i))
|
|
3138
3152
|
break;
|
|
3139
3153
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3140
3154
|
}
|
|
3141
3155
|
return ut.apply(void 0, n);
|
|
3142
3156
|
};
|
|
3143
|
-
var
|
|
3157
|
+
var Yi = (
|
|
3144
3158
|
/** @class */
|
|
3145
3159
|
function() {
|
|
3146
3160
|
function e(t, r) {
|
|
@@ -3171,7 +3185,7 @@ var Zi = (
|
|
|
3171
3185
|
if (n)
|
|
3172
3186
|
break;
|
|
3173
3187
|
return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3174
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3188
|
+
} else if (o === 60 && !this.ignoreTag && ct(this.peek() || 0)) {
|
|
3175
3189
|
var a = this.parseTag(t, r);
|
|
3176
3190
|
if (a.err)
|
|
3177
3191
|
return a;
|
|
@@ -3204,10 +3218,10 @@ var Zi = (
|
|
|
3204
3218
|
return o;
|
|
3205
3219
|
var a = o.val, s = this.clonePosition();
|
|
3206
3220
|
if (this.bumpIf("</")) {
|
|
3207
|
-
if (this.isEOF() || !
|
|
3221
|
+
if (this.isEOF() || !ct(this.char()))
|
|
3208
3222
|
return this.error(_.INVALID_TAG, E(s, this.clonePosition()));
|
|
3209
|
-
var
|
|
3210
|
-
return i !==
|
|
3223
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
3224
|
+
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3211
3225
|
val: {
|
|
3212
3226
|
type: O.tag,
|
|
3213
3227
|
value: i,
|
|
@@ -3222,7 +3236,7 @@ var Zi = (
|
|
|
3222
3236
|
return this.error(_.INVALID_TAG, E(n, this.clonePosition()));
|
|
3223
3237
|
}, e.prototype.parseTagName = function() {
|
|
3224
3238
|
var t = this.offset();
|
|
3225
|
-
for (this.bump(); !this.isEOF() &&
|
|
3239
|
+
for (this.bump(); !this.isEOF() && Ji(this.char()); )
|
|
3226
3240
|
this.bump();
|
|
3227
3241
|
return this.message.slice(t, this.offset());
|
|
3228
3242
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3244,14 +3258,14 @@ var Zi = (
|
|
|
3244
3258
|
}
|
|
3245
3259
|
break;
|
|
3246
3260
|
}
|
|
3247
|
-
var
|
|
3261
|
+
var l = E(n, this.clonePosition());
|
|
3248
3262
|
return {
|
|
3249
|
-
val: { type: O.literal, value: i, location:
|
|
3263
|
+
val: { type: O.literal, value: i, location: l },
|
|
3250
3264
|
err: null
|
|
3251
3265
|
};
|
|
3252
3266
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3253
3267
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3254
|
-
!
|
|
3268
|
+
!qi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3255
3269
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3256
3270
|
if (this.isEOF() || this.char() !== 39)
|
|
3257
3271
|
return null;
|
|
@@ -3319,39 +3333,39 @@ var Zi = (
|
|
|
3319
3333
|
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3320
3334
|
}
|
|
3321
3335
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3322
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3336
|
+
var t = this.clonePosition(), r = this.offset(), n = ht(this.message, r), i = r + n.length;
|
|
3323
3337
|
this.bumpTo(i);
|
|
3324
3338
|
var o = this.clonePosition(), a = E(t, o);
|
|
3325
3339
|
return { value: n, location: a };
|
|
3326
3340
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3327
|
-
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value,
|
|
3341
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3328
3342
|
switch (s) {
|
|
3329
3343
|
case "":
|
|
3330
|
-
return this.error(_.EXPECT_ARGUMENT_TYPE, E(a,
|
|
3344
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, E(a, l));
|
|
3331
3345
|
case "number":
|
|
3332
3346
|
case "date":
|
|
3333
3347
|
case "time": {
|
|
3334
3348
|
this.bumpSpace();
|
|
3335
|
-
var
|
|
3349
|
+
var u = null;
|
|
3336
3350
|
if (this.bumpIf(",")) {
|
|
3337
3351
|
this.bumpSpace();
|
|
3338
3352
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3339
3353
|
if (c.err)
|
|
3340
3354
|
return c;
|
|
3341
|
-
var f =
|
|
3355
|
+
var f = Qi(c.val);
|
|
3342
3356
|
if (f.length === 0)
|
|
3343
3357
|
return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3344
3358
|
var m = E(h, this.clonePosition());
|
|
3345
|
-
|
|
3359
|
+
u = { style: f, styleLocation: m };
|
|
3346
3360
|
}
|
|
3347
3361
|
var g = this.tryParseArgumentClose(i);
|
|
3348
3362
|
if (g.err)
|
|
3349
3363
|
return g;
|
|
3350
3364
|
var b = E(i, this.clonePosition());
|
|
3351
|
-
if (
|
|
3352
|
-
var w =
|
|
3365
|
+
if (u && Qt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3366
|
+
var w = Zi(u.style.slice(2));
|
|
3353
3367
|
if (s === "number") {
|
|
3354
|
-
var c = this.parseNumberSkeletonFromString(w,
|
|
3368
|
+
var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3355
3369
|
return c.err ? c : {
|
|
3356
3370
|
val: { type: O.number, value: n, location: b, style: c.val },
|
|
3357
3371
|
err: null
|
|
@@ -3360,12 +3374,12 @@ var Zi = (
|
|
|
3360
3374
|
if (w.length === 0)
|
|
3361
3375
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, b);
|
|
3362
3376
|
var T = w;
|
|
3363
|
-
this.locale && (T =
|
|
3377
|
+
this.locale && (T = Ni(w, this.locale));
|
|
3364
3378
|
var f = {
|
|
3365
3379
|
type: fe.dateTime,
|
|
3366
3380
|
pattern: T,
|
|
3367
|
-
location:
|
|
3368
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3381
|
+
location: u.styleLocation,
|
|
3382
|
+
parsedOptions: this.shouldParseSkeletons ? Mi(T) : {}
|
|
3369
3383
|
}, P = s === "date" ? O.date : O.time;
|
|
3370
3384
|
return {
|
|
3371
3385
|
val: { type: P, value: n, location: b, style: f },
|
|
@@ -3378,7 +3392,7 @@ var Zi = (
|
|
|
3378
3392
|
type: s === "number" ? O.number : s === "date" ? O.date : O.time,
|
|
3379
3393
|
value: n,
|
|
3380
3394
|
location: b,
|
|
3381
|
-
style: (o =
|
|
3395
|
+
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3382
3396
|
},
|
|
3383
3397
|
err: null
|
|
3384
3398
|
};
|
|
@@ -3411,7 +3425,7 @@ var Zi = (
|
|
|
3411
3425
|
val: {
|
|
3412
3426
|
type: O.select,
|
|
3413
3427
|
value: n,
|
|
3414
|
-
options:
|
|
3428
|
+
options: Yt(X.val),
|
|
3415
3429
|
location: z
|
|
3416
3430
|
},
|
|
3417
3431
|
err: null
|
|
@@ -3419,7 +3433,7 @@ var Zi = (
|
|
|
3419
3433
|
val: {
|
|
3420
3434
|
type: O.plural,
|
|
3421
3435
|
value: n,
|
|
3422
|
-
options:
|
|
3436
|
+
options: Yt(X.val),
|
|
3423
3437
|
offset: C,
|
|
3424
3438
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3425
3439
|
location: z
|
|
@@ -3428,7 +3442,7 @@ var Zi = (
|
|
|
3428
3442
|
};
|
|
3429
3443
|
}
|
|
3430
3444
|
default:
|
|
3431
|
-
return this.error(_.INVALID_ARGUMENT_TYPE, E(a,
|
|
3445
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, E(a, l));
|
|
3432
3446
|
}
|
|
3433
3447
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3434
3448
|
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3470,7 +3484,7 @@ var Zi = (
|
|
|
3470
3484
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3471
3485
|
var n = [];
|
|
3472
3486
|
try {
|
|
3473
|
-
n =
|
|
3487
|
+
n = Bi(t);
|
|
3474
3488
|
} catch (i) {
|
|
3475
3489
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3476
3490
|
}
|
|
@@ -3479,25 +3493,25 @@ var Zi = (
|
|
|
3479
3493
|
type: fe.number,
|
|
3480
3494
|
tokens: n,
|
|
3481
3495
|
location: r,
|
|
3482
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3496
|
+
parsedOptions: this.shouldParseSkeletons ? Ci(n) : {}
|
|
3483
3497
|
},
|
|
3484
3498
|
err: null
|
|
3485
3499
|
};
|
|
3486
3500
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3487
|
-
for (var o, a = !1, s = [],
|
|
3488
|
-
if (
|
|
3501
|
+
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3502
|
+
if (u.length === 0) {
|
|
3489
3503
|
var c = this.clonePosition();
|
|
3490
3504
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3491
3505
|
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3492
3506
|
if (f.err)
|
|
3493
3507
|
return f;
|
|
3494
|
-
h = E(c, this.clonePosition()),
|
|
3508
|
+
h = E(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3495
3509
|
} else
|
|
3496
3510
|
break;
|
|
3497
3511
|
}
|
|
3498
|
-
if (
|
|
3512
|
+
if (l.has(u))
|
|
3499
3513
|
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3500
|
-
|
|
3514
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3501
3515
|
var m = this.clonePosition();
|
|
3502
3516
|
if (!this.bumpIf("{"))
|
|
3503
3517
|
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
@@ -3508,12 +3522,12 @@ var Zi = (
|
|
|
3508
3522
|
if (b.err)
|
|
3509
3523
|
return b;
|
|
3510
3524
|
s.push([
|
|
3511
|
-
|
|
3525
|
+
u,
|
|
3512
3526
|
{
|
|
3513
3527
|
value: g.val,
|
|
3514
3528
|
location: E(m, this.clonePosition())
|
|
3515
3529
|
}
|
|
3516
|
-
]),
|
|
3530
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3517
3531
|
}
|
|
3518
3532
|
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 };
|
|
3519
3533
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -3526,8 +3540,8 @@ var Zi = (
|
|
|
3526
3540
|
else
|
|
3527
3541
|
break;
|
|
3528
3542
|
}
|
|
3529
|
-
var
|
|
3530
|
-
return o ? (a *= n,
|
|
3543
|
+
var l = E(i, this.clonePosition());
|
|
3544
|
+
return o ? (a *= n, Xi(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3531
3545
|
}, e.prototype.offset = function() {
|
|
3532
3546
|
return this.position.offset;
|
|
3533
3547
|
}, e.prototype.isEOF = function() {
|
|
@@ -3542,7 +3556,7 @@ var Zi = (
|
|
|
3542
3556
|
var t = this.position.offset;
|
|
3543
3557
|
if (t >= this.message.length)
|
|
3544
3558
|
throw Error("out of bound");
|
|
3545
|
-
var r =
|
|
3559
|
+
var r = Wr(this.message, t);
|
|
3546
3560
|
if (r === void 0)
|
|
3547
3561
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3548
3562
|
return r;
|
|
@@ -3561,7 +3575,7 @@ var Zi = (
|
|
|
3561
3575
|
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);
|
|
3562
3576
|
}
|
|
3563
3577
|
}, e.prototype.bumpIf = function(t) {
|
|
3564
|
-
if (
|
|
3578
|
+
if (Qt(this.message, t, this.offset())) {
|
|
3565
3579
|
for (var r = 0; r < t.length; r++)
|
|
3566
3580
|
this.bump();
|
|
3567
3581
|
return !0;
|
|
@@ -3583,7 +3597,7 @@ var Zi = (
|
|
|
3583
3597
|
break;
|
|
3584
3598
|
}
|
|
3585
3599
|
}, e.prototype.bumpSpace = function() {
|
|
3586
|
-
for (; !this.isEOF() &&
|
|
3600
|
+
for (; !this.isEOF() && Xr(this.char()); )
|
|
3587
3601
|
this.bump();
|
|
3588
3602
|
}, e.prototype.peek = function() {
|
|
3589
3603
|
if (this.isEOF())
|
|
@@ -3593,38 +3607,38 @@ var Zi = (
|
|
|
3593
3607
|
}, e;
|
|
3594
3608
|
}()
|
|
3595
3609
|
);
|
|
3596
|
-
function
|
|
3610
|
+
function ct(e) {
|
|
3597
3611
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3598
3612
|
}
|
|
3599
|
-
function
|
|
3600
|
-
return
|
|
3613
|
+
function qi(e) {
|
|
3614
|
+
return ct(e) || e === 47;
|
|
3601
3615
|
}
|
|
3602
|
-
function
|
|
3616
|
+
function Ji(e) {
|
|
3603
3617
|
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;
|
|
3604
3618
|
}
|
|
3605
|
-
function
|
|
3619
|
+
function Xr(e) {
|
|
3606
3620
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3607
3621
|
}
|
|
3608
|
-
function
|
|
3622
|
+
function Ki(e) {
|
|
3609
3623
|
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;
|
|
3610
3624
|
}
|
|
3611
|
-
function
|
|
3625
|
+
function ft(e) {
|
|
3612
3626
|
e.forEach(function(t) {
|
|
3613
|
-
if (delete t.location,
|
|
3627
|
+
if (delete t.location, Rr(t) || Ur(t))
|
|
3614
3628
|
for (var r in t.options)
|
|
3615
|
-
delete t.options[r].location,
|
|
3629
|
+
delete t.options[r].location, ft(t.options[r].value);
|
|
3616
3630
|
else
|
|
3617
|
-
|
|
3631
|
+
Ir(t) && Dr(t.style) || (Cr(t) || Nr(t)) && st(t.style) ? delete t.style.location : Fr(t) && ft(t.children);
|
|
3618
3632
|
});
|
|
3619
3633
|
}
|
|
3620
|
-
function
|
|
3634
|
+
function eo(e, t) {
|
|
3621
3635
|
t === void 0 && (t = {}), t = S({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3622
|
-
var r = new
|
|
3636
|
+
var r = new Yi(e, t).parse();
|
|
3623
3637
|
if (r.err) {
|
|
3624
3638
|
var n = SyntaxError(_[r.err.kind]);
|
|
3625
3639
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3626
3640
|
}
|
|
3627
|
-
return t != null && t.captureLocation ||
|
|
3641
|
+
return t != null && t.captureLocation || ft(r.val), r.val;
|
|
3628
3642
|
}
|
|
3629
3643
|
var de;
|
|
3630
3644
|
(function(e) {
|
|
@@ -3642,7 +3656,7 @@ var Ge = (
|
|
|
3642
3656
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3643
3657
|
}, t;
|
|
3644
3658
|
}(Error)
|
|
3645
|
-
),
|
|
3659
|
+
), Jt = (
|
|
3646
3660
|
/** @class */
|
|
3647
3661
|
function(e) {
|
|
3648
3662
|
q(t, e);
|
|
@@ -3651,7 +3665,7 @@ var Ge = (
|
|
|
3651
3665
|
}
|
|
3652
3666
|
return t;
|
|
3653
3667
|
}(Ge)
|
|
3654
|
-
),
|
|
3668
|
+
), to = (
|
|
3655
3669
|
/** @class */
|
|
3656
3670
|
function(e) {
|
|
3657
3671
|
q(t, e);
|
|
@@ -3660,7 +3674,7 @@ var Ge = (
|
|
|
3660
3674
|
}
|
|
3661
3675
|
return t;
|
|
3662
3676
|
}(Ge)
|
|
3663
|
-
),
|
|
3677
|
+
), ro = (
|
|
3664
3678
|
/** @class */
|
|
3665
3679
|
function(e) {
|
|
3666
3680
|
q(t, e);
|
|
@@ -3673,33 +3687,33 @@ var Ge = (
|
|
|
3673
3687
|
(function(e) {
|
|
3674
3688
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3675
3689
|
})(k || (k = {}));
|
|
3676
|
-
function
|
|
3690
|
+
function no(e) {
|
|
3677
3691
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3678
3692
|
var n = t[t.length - 1];
|
|
3679
3693
|
return !n || n.type !== k.literal || r.type !== k.literal ? t.push(r) : n.value += r.value, t;
|
|
3680
3694
|
}, []);
|
|
3681
3695
|
}
|
|
3682
|
-
function
|
|
3696
|
+
function io(e) {
|
|
3683
3697
|
return typeof e == "function";
|
|
3684
3698
|
}
|
|
3685
3699
|
function Ie(e, t, r, n, i, o, a) {
|
|
3686
|
-
if (e.length === 1 &&
|
|
3700
|
+
if (e.length === 1 && Vt(e[0]))
|
|
3687
3701
|
return [
|
|
3688
3702
|
{
|
|
3689
3703
|
type: k.literal,
|
|
3690
3704
|
value: e[0].value
|
|
3691
3705
|
}
|
|
3692
3706
|
];
|
|
3693
|
-
for (var s = [],
|
|
3694
|
-
var h = l
|
|
3695
|
-
if (
|
|
3707
|
+
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3708
|
+
var h = u[l];
|
|
3709
|
+
if (Vt(h)) {
|
|
3696
3710
|
s.push({
|
|
3697
3711
|
type: k.literal,
|
|
3698
3712
|
value: h.value
|
|
3699
3713
|
});
|
|
3700
3714
|
continue;
|
|
3701
3715
|
}
|
|
3702
|
-
if (
|
|
3716
|
+
if (Ti(h)) {
|
|
3703
3717
|
typeof o == "number" && s.push({
|
|
3704
3718
|
type: k.literal,
|
|
3705
3719
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3708,43 +3722,43 @@ function Ie(e, t, r, n, i, o, a) {
|
|
|
3708
3722
|
}
|
|
3709
3723
|
var c = h.value;
|
|
3710
3724
|
if (!(i && c in i))
|
|
3711
|
-
throw new
|
|
3725
|
+
throw new ro(c, a);
|
|
3712
3726
|
var f = i[c];
|
|
3713
|
-
if (
|
|
3727
|
+
if (Hi(h)) {
|
|
3714
3728
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3715
3729
|
type: typeof f == "string" ? k.literal : k.object,
|
|
3716
3730
|
value: f
|
|
3717
3731
|
});
|
|
3718
3732
|
continue;
|
|
3719
3733
|
}
|
|
3720
|
-
if (
|
|
3721
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3734
|
+
if (Cr(h)) {
|
|
3735
|
+
var m = typeof h.style == "string" ? n.date[h.style] : st(h.style) ? h.style.parsedOptions : void 0;
|
|
3722
3736
|
s.push({
|
|
3723
3737
|
type: k.literal,
|
|
3724
3738
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3725
3739
|
});
|
|
3726
3740
|
continue;
|
|
3727
3741
|
}
|
|
3728
|
-
if (
|
|
3729
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3742
|
+
if (Nr(h)) {
|
|
3743
|
+
var m = typeof h.style == "string" ? n.time[h.style] : st(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3730
3744
|
s.push({
|
|
3731
3745
|
type: k.literal,
|
|
3732
3746
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3733
3747
|
});
|
|
3734
3748
|
continue;
|
|
3735
3749
|
}
|
|
3736
|
-
if (
|
|
3737
|
-
var m = typeof h.style == "string" ? n.number[h.style] :
|
|
3750
|
+
if (Ir(h)) {
|
|
3751
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Dr(h.style) ? h.style.parsedOptions : void 0;
|
|
3738
3752
|
m && m.scale && (f = f * (m.scale || 1)), s.push({
|
|
3739
3753
|
type: k.literal,
|
|
3740
3754
|
value: r.getNumberFormat(t, m).format(f)
|
|
3741
3755
|
});
|
|
3742
3756
|
continue;
|
|
3743
3757
|
}
|
|
3744
|
-
if (
|
|
3758
|
+
if (Fr(h)) {
|
|
3745
3759
|
var g = h.children, b = h.value, w = i[b];
|
|
3746
|
-
if (!
|
|
3747
|
-
throw new
|
|
3760
|
+
if (!io(w))
|
|
3761
|
+
throw new to(b, "function", a);
|
|
3748
3762
|
var T = Ie(g, t, r, n, i, o), P = w(T.map(function(C) {
|
|
3749
3763
|
return C.value;
|
|
3750
3764
|
}));
|
|
@@ -3755,14 +3769,14 @@ function Ie(e, t, r, n, i, o, a) {
|
|
|
3755
3769
|
};
|
|
3756
3770
|
}));
|
|
3757
3771
|
}
|
|
3758
|
-
if (
|
|
3772
|
+
if (Rr(h)) {
|
|
3759
3773
|
var B = h.options[f] || h.options.other;
|
|
3760
3774
|
if (!B)
|
|
3761
|
-
throw new
|
|
3775
|
+
throw new Jt(h.value, f, Object.keys(h.options), a);
|
|
3762
3776
|
s.push.apply(s, Ie(B.value, t, r, n, i));
|
|
3763
3777
|
continue;
|
|
3764
3778
|
}
|
|
3765
|
-
if (
|
|
3779
|
+
if (Ur(h)) {
|
|
3766
3780
|
var B = h.options["=".concat(f)];
|
|
3767
3781
|
if (!B) {
|
|
3768
3782
|
if (!Intl.PluralRules)
|
|
@@ -3773,24 +3787,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3773
3787
|
B = h.options[G] || h.options.other;
|
|
3774
3788
|
}
|
|
3775
3789
|
if (!B)
|
|
3776
|
-
throw new
|
|
3790
|
+
throw new Jt(h.value, f, Object.keys(h.options), a);
|
|
3777
3791
|
s.push.apply(s, Ie(B.value, t, r, n, i, f - (h.offset || 0)));
|
|
3778
3792
|
continue;
|
|
3779
3793
|
}
|
|
3780
3794
|
}
|
|
3781
|
-
return
|
|
3795
|
+
return no(s);
|
|
3782
3796
|
}
|
|
3783
|
-
function
|
|
3797
|
+
function oo(e, t) {
|
|
3784
3798
|
return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3785
3799
|
return r[n] = S(S({}, e[n]), t[n] || {}), r;
|
|
3786
3800
|
}, {})) : e;
|
|
3787
3801
|
}
|
|
3788
|
-
function
|
|
3802
|
+
function ao(e, t) {
|
|
3789
3803
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3790
|
-
return r[n] =
|
|
3804
|
+
return r[n] = oo(e[n], t[n]), r;
|
|
3791
3805
|
}, S({}, e)) : e;
|
|
3792
3806
|
}
|
|
3793
|
-
function
|
|
3807
|
+
function Ke(e) {
|
|
3794
3808
|
return {
|
|
3795
3809
|
create: function() {
|
|
3796
3810
|
return {
|
|
@@ -3804,39 +3818,39 @@ function Je(e) {
|
|
|
3804
3818
|
}
|
|
3805
3819
|
};
|
|
3806
3820
|
}
|
|
3807
|
-
function
|
|
3821
|
+
function so(e) {
|
|
3808
3822
|
return e === void 0 && (e = {
|
|
3809
3823
|
number: {},
|
|
3810
3824
|
dateTime: {},
|
|
3811
3825
|
pluralRules: {}
|
|
3812
3826
|
}), {
|
|
3813
|
-
getNumberFormat:
|
|
3827
|
+
getNumberFormat: Ye(function() {
|
|
3814
3828
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3815
3829
|
r[n] = arguments[n];
|
|
3816
3830
|
return new ((t = Intl.NumberFormat).bind.apply(t, he([void 0], r, !1)))();
|
|
3817
3831
|
}, {
|
|
3818
|
-
cache:
|
|
3819
|
-
strategy:
|
|
3832
|
+
cache: Ke(e.number),
|
|
3833
|
+
strategy: qe.variadic
|
|
3820
3834
|
}),
|
|
3821
|
-
getDateTimeFormat:
|
|
3835
|
+
getDateTimeFormat: Ye(function() {
|
|
3822
3836
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3823
3837
|
r[n] = arguments[n];
|
|
3824
3838
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, he([void 0], r, !1)))();
|
|
3825
3839
|
}, {
|
|
3826
|
-
cache:
|
|
3827
|
-
strategy:
|
|
3840
|
+
cache: Ke(e.dateTime),
|
|
3841
|
+
strategy: qe.variadic
|
|
3828
3842
|
}),
|
|
3829
|
-
getPluralRules:
|
|
3843
|
+
getPluralRules: Ye(function() {
|
|
3830
3844
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3831
3845
|
r[n] = arguments[n];
|
|
3832
3846
|
return new ((t = Intl.PluralRules).bind.apply(t, he([void 0], r, !1)))();
|
|
3833
3847
|
}, {
|
|
3834
|
-
cache:
|
|
3835
|
-
strategy:
|
|
3848
|
+
cache: Ke(e.pluralRules),
|
|
3849
|
+
strategy: qe.variadic
|
|
3836
3850
|
})
|
|
3837
3851
|
};
|
|
3838
3852
|
}
|
|
3839
|
-
var
|
|
3853
|
+
var lo = (
|
|
3840
3854
|
/** @class */
|
|
3841
3855
|
function() {
|
|
3842
3856
|
function e(t, r, n, i) {
|
|
@@ -3846,20 +3860,20 @@ var ao = (
|
|
|
3846
3860
|
number: {},
|
|
3847
3861
|
dateTime: {},
|
|
3848
3862
|
pluralRules: {}
|
|
3849
|
-
}, this.format = function(
|
|
3850
|
-
var
|
|
3851
|
-
if (
|
|
3852
|
-
return
|
|
3853
|
-
var h =
|
|
3863
|
+
}, this.format = function(l) {
|
|
3864
|
+
var u = o.formatToParts(l);
|
|
3865
|
+
if (u.length === 1)
|
|
3866
|
+
return u[0].value;
|
|
3867
|
+
var h = u.reduce(function(c, f) {
|
|
3854
3868
|
return !c.length || f.type !== k.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3855
3869
|
}, []);
|
|
3856
3870
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3857
|
-
}, this.formatToParts = function(
|
|
3858
|
-
return Ie(o.ast, o.locales, o.formatters, o.formats,
|
|
3871
|
+
}, this.formatToParts = function(l) {
|
|
3872
|
+
return Ie(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3859
3873
|
}, this.resolvedOptions = function() {
|
|
3860
|
-
var
|
|
3874
|
+
var l;
|
|
3861
3875
|
return {
|
|
3862
|
-
locale: ((
|
|
3876
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3863
3877
|
};
|
|
3864
3878
|
}, this.getAst = function() {
|
|
3865
3879
|
return o.ast;
|
|
@@ -3868,13 +3882,13 @@ var ao = (
|
|
|
3868
3882
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3869
3883
|
var a = i || {};
|
|
3870
3884
|
a.formatters;
|
|
3871
|
-
var s =
|
|
3885
|
+
var s = Gn(a, ["formatters"]);
|
|
3872
3886
|
this.ast = e.__parse(t, S(S({}, s), { locale: this.resolvedLocale }));
|
|
3873
3887
|
} else
|
|
3874
3888
|
this.ast = t;
|
|
3875
3889
|
if (!Array.isArray(this.ast))
|
|
3876
3890
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3877
|
-
this.formats =
|
|
3891
|
+
this.formats = ao(e.formats, n), this.formatters = i && i.formatters || so(this.formatterCache);
|
|
3878
3892
|
}
|
|
3879
3893
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3880
3894
|
get: function() {
|
|
@@ -3887,7 +3901,7 @@ var ao = (
|
|
|
3887
3901
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3888
3902
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3889
3903
|
}
|
|
3890
|
-
}, e.__parse =
|
|
3904
|
+
}, e.__parse = eo, e.formats = {
|
|
3891
3905
|
number: {
|
|
3892
3906
|
integer: {
|
|
3893
3907
|
maximumFractionDigits: 0
|
|
@@ -3948,7 +3962,7 @@ var ao = (
|
|
|
3948
3962
|
}, e;
|
|
3949
3963
|
}()
|
|
3950
3964
|
);
|
|
3951
|
-
function
|
|
3965
|
+
function uo(e, t) {
|
|
3952
3966
|
if (t == null)
|
|
3953
3967
|
return;
|
|
3954
3968
|
if (t in e)
|
|
@@ -3969,92 +3983,92 @@ function so(e, t) {
|
|
|
3969
3983
|
n = void 0;
|
|
3970
3984
|
return n;
|
|
3971
3985
|
}
|
|
3972
|
-
const K = {},
|
|
3986
|
+
const K = {}, ho = (e, t, r) => r && (t in K || (K[t] = {}), e in K[t] || (K[t][e] = r), r), zr = (e, t) => {
|
|
3973
3987
|
if (t == null)
|
|
3974
3988
|
return;
|
|
3975
3989
|
if (t in K && e in K[t])
|
|
3976
3990
|
return K[t][e];
|
|
3977
3991
|
const r = $e(t);
|
|
3978
3992
|
for (let n = 0; n < r.length; n++) {
|
|
3979
|
-
const i = r[n], o =
|
|
3993
|
+
const i = r[n], o = fo(i, e);
|
|
3980
3994
|
if (o)
|
|
3981
|
-
return
|
|
3995
|
+
return ho(e, t, o);
|
|
3982
3996
|
}
|
|
3983
3997
|
};
|
|
3984
|
-
let
|
|
3998
|
+
let vt;
|
|
3985
3999
|
const Te = ke({});
|
|
3986
|
-
function
|
|
3987
|
-
return
|
|
4000
|
+
function co(e) {
|
|
4001
|
+
return vt[e] || null;
|
|
3988
4002
|
}
|
|
3989
|
-
function
|
|
3990
|
-
return e in
|
|
4003
|
+
function Zr(e) {
|
|
4004
|
+
return e in vt;
|
|
3991
4005
|
}
|
|
3992
|
-
function
|
|
3993
|
-
if (!
|
|
4006
|
+
function fo(e, t) {
|
|
4007
|
+
if (!Zr(e))
|
|
3994
4008
|
return null;
|
|
3995
|
-
const r =
|
|
3996
|
-
return
|
|
4009
|
+
const r = co(e);
|
|
4010
|
+
return uo(r, t);
|
|
3997
4011
|
}
|
|
3998
|
-
function
|
|
4012
|
+
function mo(e) {
|
|
3999
4013
|
if (e == null)
|
|
4000
4014
|
return;
|
|
4001
4015
|
const t = $e(e);
|
|
4002
4016
|
for (let r = 0; r < t.length; r++) {
|
|
4003
4017
|
const n = t[r];
|
|
4004
|
-
if (
|
|
4018
|
+
if (Zr(n))
|
|
4005
4019
|
return n;
|
|
4006
4020
|
}
|
|
4007
4021
|
}
|
|
4008
|
-
function
|
|
4009
|
-
delete K[e], Te.update((r) => (r[e] =
|
|
4022
|
+
function Qr(e, ...t) {
|
|
4023
|
+
delete K[e], Te.update((r) => (r[e] = vi.all([r[e] || {}, ...t]), r));
|
|
4010
4024
|
}
|
|
4011
4025
|
be(
|
|
4012
4026
|
[Te],
|
|
4013
4027
|
([e]) => Object.keys(e)
|
|
4014
4028
|
);
|
|
4015
|
-
Te.subscribe((e) =>
|
|
4029
|
+
Te.subscribe((e) => vt = e);
|
|
4016
4030
|
const Ce = {};
|
|
4017
|
-
function
|
|
4031
|
+
function po(e, t) {
|
|
4018
4032
|
Ce[e].delete(t), Ce[e].size === 0 && delete Ce[e];
|
|
4019
4033
|
}
|
|
4020
|
-
function
|
|
4034
|
+
function Yr(e) {
|
|
4021
4035
|
return Ce[e];
|
|
4022
4036
|
}
|
|
4023
|
-
function
|
|
4037
|
+
function go(e) {
|
|
4024
4038
|
return $e(e).map((t) => {
|
|
4025
|
-
const r =
|
|
4039
|
+
const r = Yr(t);
|
|
4026
4040
|
return [t, r ? [...r] : []];
|
|
4027
4041
|
}).filter(([, t]) => t.length > 0);
|
|
4028
4042
|
}
|
|
4029
|
-
function
|
|
4043
|
+
function dt(e) {
|
|
4030
4044
|
return e == null ? !1 : $e(e).some(
|
|
4031
4045
|
(t) => {
|
|
4032
4046
|
var r;
|
|
4033
|
-
return (r =
|
|
4047
|
+
return (r = Yr(t)) == null ? void 0 : r.size;
|
|
4034
4048
|
}
|
|
4035
4049
|
);
|
|
4036
4050
|
}
|
|
4037
|
-
function
|
|
4051
|
+
function bo(e, t) {
|
|
4038
4052
|
return Promise.all(
|
|
4039
|
-
t.map((n) => (
|
|
4040
|
-
).then((n) =>
|
|
4053
|
+
t.map((n) => (po(e, n), n().then((i) => i.default || i)))
|
|
4054
|
+
).then((n) => Qr(e, ...n));
|
|
4041
4055
|
}
|
|
4042
4056
|
const _e = {};
|
|
4043
|
-
function
|
|
4044
|
-
if (!
|
|
4057
|
+
function qr(e) {
|
|
4058
|
+
if (!dt(e))
|
|
4045
4059
|
return e in _e ? _e[e] : Promise.resolve();
|
|
4046
|
-
const t =
|
|
4060
|
+
const t = go(e);
|
|
4047
4061
|
return _e[e] = Promise.all(
|
|
4048
4062
|
t.map(
|
|
4049
|
-
([r, n]) =>
|
|
4063
|
+
([r, n]) => bo(r, n)
|
|
4050
4064
|
)
|
|
4051
4065
|
).then(() => {
|
|
4052
|
-
if (
|
|
4053
|
-
return
|
|
4066
|
+
if (dt(e))
|
|
4067
|
+
return qr(e);
|
|
4054
4068
|
delete _e[e];
|
|
4055
4069
|
}), _e[e];
|
|
4056
4070
|
}
|
|
4057
|
-
const
|
|
4071
|
+
const vo = {
|
|
4058
4072
|
number: {
|
|
4059
4073
|
scientific: { notation: "scientific" },
|
|
4060
4074
|
engineering: { notation: "engineering" },
|
|
@@ -4083,57 +4097,57 @@ const go = {
|
|
|
4083
4097
|
timeZoneName: "short"
|
|
4084
4098
|
}
|
|
4085
4099
|
}
|
|
4086
|
-
},
|
|
4100
|
+
}, yo = {
|
|
4087
4101
|
fallbackLocale: null,
|
|
4088
4102
|
loadingDelay: 200,
|
|
4089
|
-
formats:
|
|
4103
|
+
formats: vo,
|
|
4090
4104
|
warnOnMissingMessages: !0,
|
|
4091
4105
|
handleMissingMessage: void 0,
|
|
4092
4106
|
ignoreTag: !0
|
|
4093
|
-
},
|
|
4107
|
+
}, _o = yo;
|
|
4094
4108
|
function me() {
|
|
4095
|
-
return
|
|
4096
|
-
}
|
|
4097
|
-
const
|
|
4098
|
-
var
|
|
4099
|
-
for (var r in t)
|
|
4100
|
-
|
|
4101
|
-
if (
|
|
4102
|
-
for (var r of
|
|
4103
|
-
|
|
4109
|
+
return _o;
|
|
4110
|
+
}
|
|
4111
|
+
const et = ke(!1);
|
|
4112
|
+
var xo = Object.defineProperty, Eo = Object.defineProperties, wo = Object.getOwnPropertyDescriptors, Kt = Object.getOwnPropertySymbols, So = Object.prototype.hasOwnProperty, Ho = Object.prototype.propertyIsEnumerable, er = (e, t, r) => t in e ? xo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, To = (e, t) => {
|
|
4113
|
+
for (var r in t || (t = {}))
|
|
4114
|
+
So.call(t, r) && er(e, r, t[r]);
|
|
4115
|
+
if (Kt)
|
|
4116
|
+
for (var r of Kt(t))
|
|
4117
|
+
Ho.call(t, r) && er(e, r, t[r]);
|
|
4104
4118
|
return e;
|
|
4105
|
-
},
|
|
4106
|
-
let
|
|
4119
|
+
}, Oo = (e, t) => Eo(e, wo(t));
|
|
4120
|
+
let mt;
|
|
4107
4121
|
const Ue = ke(null);
|
|
4108
|
-
function
|
|
4122
|
+
function tr(e) {
|
|
4109
4123
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4110
4124
|
}
|
|
4111
4125
|
function $e(e, t = me().fallbackLocale) {
|
|
4112
|
-
const r =
|
|
4113
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4126
|
+
const r = tr(e);
|
|
4127
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...tr(t)])] : r;
|
|
4114
4128
|
}
|
|
4115
4129
|
function ne() {
|
|
4116
|
-
return
|
|
4130
|
+
return mt != null ? mt : void 0;
|
|
4117
4131
|
}
|
|
4118
4132
|
Ue.subscribe((e) => {
|
|
4119
|
-
|
|
4133
|
+
mt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4120
4134
|
});
|
|
4121
|
-
const
|
|
4122
|
-
if (e &&
|
|
4135
|
+
const Mo = (e) => {
|
|
4136
|
+
if (e && mo(e) && dt(e)) {
|
|
4123
4137
|
const { loadingDelay: t } = me();
|
|
4124
4138
|
let r;
|
|
4125
4139
|
return typeof window != "undefined" && ne() != null && t ? r = window.setTimeout(
|
|
4126
|
-
() =>
|
|
4140
|
+
() => et.set(!0),
|
|
4127
4141
|
t
|
|
4128
|
-
) :
|
|
4142
|
+
) : et.set(!0), qr(e).then(() => {
|
|
4129
4143
|
Ue.set(e);
|
|
4130
4144
|
}).finally(() => {
|
|
4131
|
-
clearTimeout(r),
|
|
4145
|
+
clearTimeout(r), et.set(!1);
|
|
4132
4146
|
});
|
|
4133
4147
|
}
|
|
4134
4148
|
return Ue.set(e);
|
|
4135
|
-
},
|
|
4136
|
-
set:
|
|
4149
|
+
}, ve = Oo(To({}, Ue), {
|
|
4150
|
+
set: Mo
|
|
4137
4151
|
}), je = (e) => {
|
|
4138
4152
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4139
4153
|
return (n) => {
|
|
@@ -4141,20 +4155,20 @@ const To = (e) => {
|
|
|
4141
4155
|
return i in t ? t[i] : t[i] = e(n);
|
|
4142
4156
|
};
|
|
4143
4157
|
};
|
|
4144
|
-
var
|
|
4158
|
+
var Ao = Object.defineProperty, Fe = Object.getOwnPropertySymbols, Jr = Object.prototype.hasOwnProperty, Kr = Object.prototype.propertyIsEnumerable, rr = (e, t, r) => t in e ? Ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yt = (e, t) => {
|
|
4145
4159
|
for (var r in t || (t = {}))
|
|
4146
|
-
|
|
4160
|
+
Jr.call(t, r) && rr(e, r, t[r]);
|
|
4147
4161
|
if (Fe)
|
|
4148
4162
|
for (var r of Fe(t))
|
|
4149
|
-
|
|
4163
|
+
Kr.call(t, r) && rr(e, r, t[r]);
|
|
4150
4164
|
return e;
|
|
4151
|
-
},
|
|
4165
|
+
}, ye = (e, t) => {
|
|
4152
4166
|
var r = {};
|
|
4153
4167
|
for (var n in e)
|
|
4154
|
-
|
|
4168
|
+
Jr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4155
4169
|
if (e != null && Fe)
|
|
4156
4170
|
for (var n of Fe(e))
|
|
4157
|
-
t.indexOf(n) < 0 &&
|
|
4171
|
+
t.indexOf(n) < 0 && Kr.call(e, n) && (r[n] = e[n]);
|
|
4158
4172
|
return r;
|
|
4159
4173
|
};
|
|
4160
4174
|
const Se = (e, t) => {
|
|
@@ -4162,71 +4176,71 @@ const Se = (e, t) => {
|
|
|
4162
4176
|
if (e in r && t in r[e])
|
|
4163
4177
|
return r[e][t];
|
|
4164
4178
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4165
|
-
},
|
|
4179
|
+
}, Bo = je(
|
|
4166
4180
|
(e) => {
|
|
4167
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4181
|
+
var t = e, { locale: r, format: n } = t, i = ye(t, ["locale", "format"]);
|
|
4168
4182
|
if (r == null)
|
|
4169
4183
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4170
4184
|
return n && (i = Se("number", n)), new Intl.NumberFormat(r, i);
|
|
4171
4185
|
}
|
|
4172
|
-
),
|
|
4186
|
+
), Lo = je(
|
|
4173
4187
|
(e) => {
|
|
4174
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4188
|
+
var t = e, { locale: r, format: n } = t, i = ye(t, ["locale", "format"]);
|
|
4175
4189
|
if (r == null)
|
|
4176
4190
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4177
4191
|
return n ? i = Se("date", n) : Object.keys(i).length === 0 && (i = Se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4178
4192
|
}
|
|
4179
|
-
),
|
|
4193
|
+
), Po = je(
|
|
4180
4194
|
(e) => {
|
|
4181
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4195
|
+
var t = e, { locale: r, format: n } = t, i = ye(t, ["locale", "format"]);
|
|
4182
4196
|
if (r == null)
|
|
4183
4197
|
throw new Error(
|
|
4184
4198
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4185
4199
|
);
|
|
4186
4200
|
return n ? i = Se("time", n) : Object.keys(i).length === 0 && (i = Se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4187
4201
|
}
|
|
4188
|
-
),
|
|
4202
|
+
), Io = (e = {}) => {
|
|
4189
4203
|
var t = e, {
|
|
4190
4204
|
locale: r = ne()
|
|
4191
|
-
} = t, n =
|
|
4205
|
+
} = t, n = ye(t, [
|
|
4192
4206
|
"locale"
|
|
4193
4207
|
]);
|
|
4194
|
-
return
|
|
4195
|
-
},
|
|
4208
|
+
return Bo(yt({ locale: r }, n));
|
|
4209
|
+
}, Co = (e = {}) => {
|
|
4196
4210
|
var t = e, {
|
|
4197
4211
|
locale: r = ne()
|
|
4198
|
-
} = t, n =
|
|
4212
|
+
} = t, n = ye(t, [
|
|
4199
4213
|
"locale"
|
|
4200
4214
|
]);
|
|
4201
|
-
return
|
|
4202
|
-
},
|
|
4215
|
+
return Lo(yt({ locale: r }, n));
|
|
4216
|
+
}, No = (e = {}) => {
|
|
4203
4217
|
var t = e, {
|
|
4204
4218
|
locale: r = ne()
|
|
4205
|
-
} = t, n =
|
|
4219
|
+
} = t, n = ye(t, [
|
|
4206
4220
|
"locale"
|
|
4207
4221
|
]);
|
|
4208
|
-
return
|
|
4209
|
-
},
|
|
4222
|
+
return Po(yt({ locale: r }, n));
|
|
4223
|
+
}, Ro = je(
|
|
4210
4224
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4211
|
-
(e, t = ne()) => new
|
|
4225
|
+
(e, t = ne()) => new lo(e, t, me().formats, {
|
|
4212
4226
|
ignoreTag: me().ignoreTag
|
|
4213
4227
|
})
|
|
4214
|
-
),
|
|
4228
|
+
), Uo = (e, t = {}) => {
|
|
4215
4229
|
var r, n, i, o;
|
|
4216
4230
|
let a = t;
|
|
4217
4231
|
typeof e == "object" && (a = e, e = a.id);
|
|
4218
4232
|
const {
|
|
4219
4233
|
values: s,
|
|
4220
|
-
locale:
|
|
4221
|
-
default:
|
|
4234
|
+
locale: l = ne(),
|
|
4235
|
+
default: u
|
|
4222
4236
|
} = a;
|
|
4223
|
-
if (
|
|
4237
|
+
if (l == null)
|
|
4224
4238
|
throw new Error(
|
|
4225
4239
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4226
4240
|
);
|
|
4227
|
-
let h =
|
|
4241
|
+
let h = zr(e, l);
|
|
4228
4242
|
if (!h)
|
|
4229
|
-
h = (o = (i = (n = (r = me()).handleMissingMessage) == null ? void 0 : n.call(r, { locale:
|
|
4243
|
+
h = (o = (i = (n = (r = me()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4230
4244
|
else if (typeof h != "string")
|
|
4231
4245
|
return console.warn(
|
|
4232
4246
|
`[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.`
|
|
@@ -4235,7 +4249,7 @@ const Se = (e, t) => {
|
|
|
4235
4249
|
return h;
|
|
4236
4250
|
let c = h;
|
|
4237
4251
|
try {
|
|
4238
|
-
c =
|
|
4252
|
+
c = Ro(h, l).format(s);
|
|
4239
4253
|
} catch (f) {
|
|
4240
4254
|
f instanceof Error && console.warn(
|
|
4241
4255
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4243,20 +4257,20 @@ const Se = (e, t) => {
|
|
|
4243
4257
|
);
|
|
4244
4258
|
}
|
|
4245
4259
|
return c;
|
|
4246
|
-
},
|
|
4247
|
-
be([
|
|
4248
|
-
be([
|
|
4249
|
-
be([
|
|
4250
|
-
be([
|
|
4251
|
-
window.emWidgets = { topic:
|
|
4252
|
-
const
|
|
4253
|
-
function
|
|
4260
|
+
}, Fo = (e, t) => No(t).format(e), Do = (e, t) => Co(t).format(e), ko = (e, t) => Io(t).format(e), Go = (e, t = ne()) => zr(e, t), $o = be([ve, Te], () => Uo);
|
|
4261
|
+
be([ve], () => Fo);
|
|
4262
|
+
be([ve], () => Do);
|
|
4263
|
+
be([ve], () => ko);
|
|
4264
|
+
be([ve, Te], () => Go);
|
|
4265
|
+
window.emWidgets = { topic: ti };
|
|
4266
|
+
const jo = (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)), Wo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4267
|
+
function Vo(e, t) {
|
|
4254
4268
|
if (e) {
|
|
4255
4269
|
const r = document.createElement("style");
|
|
4256
4270
|
r.innerHTML = t, e.appendChild(r);
|
|
4257
4271
|
}
|
|
4258
4272
|
}
|
|
4259
|
-
function
|
|
4273
|
+
function Xo(e, t) {
|
|
4260
4274
|
const r = new URL(t);
|
|
4261
4275
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4262
4276
|
const i = document.createElement("style");
|
|
@@ -4265,7 +4279,7 @@ function Wo(e, t) {
|
|
|
4265
4279
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4266
4280
|
});
|
|
4267
4281
|
}
|
|
4268
|
-
function
|
|
4282
|
+
function zo(e, t, r) {
|
|
4269
4283
|
if (window.emMessageBus) {
|
|
4270
4284
|
const n = document.createElement("style");
|
|
4271
4285
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4273,13 +4287,13 @@ function Vo(e, t, r) {
|
|
|
4273
4287
|
});
|
|
4274
4288
|
}
|
|
4275
4289
|
}
|
|
4276
|
-
function
|
|
4277
|
-
|
|
4290
|
+
function nr(e, t) {
|
|
4291
|
+
Qr(e, t);
|
|
4278
4292
|
}
|
|
4279
|
-
function
|
|
4280
|
-
|
|
4293
|
+
function Zo(e) {
|
|
4294
|
+
ve.set(e);
|
|
4281
4295
|
}
|
|
4282
|
-
const
|
|
4296
|
+
const ir = {
|
|
4283
4297
|
en: {
|
|
4284
4298
|
language: "Select Language"
|
|
4285
4299
|
},
|
|
@@ -4314,35 +4328,35 @@ const rr = {
|
|
|
4314
4328
|
language: "Select Language"
|
|
4315
4329
|
}
|
|
4316
4330
|
};
|
|
4317
|
-
function
|
|
4318
|
-
|
|
4331
|
+
function Qo(e) {
|
|
4332
|
+
_n(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}");
|
|
4319
4333
|
}
|
|
4320
|
-
function
|
|
4334
|
+
function or(e, t, r) {
|
|
4321
4335
|
const n = e.slice();
|
|
4322
4336
|
return n[57] = t[r], n;
|
|
4323
4337
|
}
|
|
4324
|
-
function
|
|
4338
|
+
function ar(e, t, r) {
|
|
4325
4339
|
const n = e.slice();
|
|
4326
4340
|
return n[1] = t[r], n;
|
|
4327
4341
|
}
|
|
4328
|
-
function
|
|
4342
|
+
function sr(e, t, r) {
|
|
4329
4343
|
const n = e.slice();
|
|
4330
4344
|
return n[60] = t[r], n;
|
|
4331
4345
|
}
|
|
4332
|
-
function
|
|
4346
|
+
function Yo(e, t, r) {
|
|
4333
4347
|
const n = e.slice();
|
|
4334
4348
|
return n[66] = t[r], n;
|
|
4335
4349
|
}
|
|
4336
|
-
function
|
|
4350
|
+
function lr(e, t, r) {
|
|
4337
4351
|
const n = e.slice();
|
|
4338
4352
|
return n[63] = t[r], n;
|
|
4339
4353
|
}
|
|
4340
|
-
function
|
|
4341
|
-
let t, r, n, i, o, a, s,
|
|
4354
|
+
function ur(e) {
|
|
4355
|
+
let t, r, n, i, o, a, s, l, u, h, c, f, m, g, b, w, T, P, B, G, C, X, z;
|
|
4342
4356
|
function ie(x, R) {
|
|
4343
4357
|
return (
|
|
4344
4358
|
/*HamburgerMenuItems*/
|
|
4345
|
-
x[4].length > 0 ?
|
|
4359
|
+
x[4].length > 0 ? Jo : qo
|
|
4346
4360
|
);
|
|
4347
4361
|
}
|
|
4348
4362
|
let J = ie(e), N = J(e), j = Y(
|
|
@@ -4350,17 +4364,17 @@ function sr(e) {
|
|
|
4350
4364
|
e[6]
|
|
4351
4365
|
), M = [];
|
|
4352
4366
|
for (let x = 0; x < j.length; x += 1)
|
|
4353
|
-
M[x] =
|
|
4367
|
+
M[x] = dr(sr(e, j, x));
|
|
4354
4368
|
let L = (
|
|
4355
4369
|
/*languagesArray*/
|
|
4356
|
-
e[9].length > 1 &&
|
|
4370
|
+
e[9].length > 1 && mr(e)
|
|
4357
4371
|
);
|
|
4358
4372
|
return {
|
|
4359
4373
|
c() {
|
|
4360
|
-
t =
|
|
4374
|
+
t = y("div"), r = y("div"), n = y("ul"), N.c(), i = U(), o = y("div"), a = U(), s = y("ul");
|
|
4361
4375
|
for (let x = 0; x < M.length; x += 1)
|
|
4362
4376
|
M[x].c();
|
|
4363
|
-
|
|
4377
|
+
u = U(), L && L.c(), c = U(), f = y("span"), m = y("div"), g = y("span"), b = U(), w = y("span"), T = U(), P = y("span"), p(n, "class", "HamburgerPrimaryMenu"), p(o, "class", "Separator"), p(s, "class", l = "HamburgerSecondaryMenu " + /*isOptionsListVisible*/
|
|
4364
4378
|
(e[10] ? "Overlay" : "")), p(r, "class", h = "HamburgerModalContainer " + /*modalIsOpen*/
|
|
4365
4379
|
(e[7] ? "ActiveHamburgerMenu" : "") + " " + /*isClosing*/
|
|
4366
4380
|
(e[12] ? "Closing" : "")), p(m, "class", B = "NavIcon " + (/*navIconClosing*/
|
|
@@ -4369,10 +4383,10 @@ function sr(e) {
|
|
|
4369
4383
|
(e[12] ? " Closing" : ""));
|
|
4370
4384
|
},
|
|
4371
4385
|
m(x, R) {
|
|
4372
|
-
F(x, t, R),
|
|
4386
|
+
F(x, t, R), v(t, r), v(r, n), N.m(n, null), v(r, i), v(r, o), v(r, a), v(r, s);
|
|
4373
4387
|
for (let H = 0; H < M.length; H += 1)
|
|
4374
4388
|
M[H] && M[H].m(s, null);
|
|
4375
|
-
|
|
4389
|
+
v(r, u), L && L.m(r, null), v(t, c), v(t, f), v(f, m), v(m, g), v(m, b), v(m, w), v(m, T), v(m, P), e[40](t), X || (z = re(
|
|
4376
4390
|
f,
|
|
4377
4391
|
"click",
|
|
4378
4392
|
/*close*/
|
|
@@ -4388,17 +4402,17 @@ function sr(e) {
|
|
|
4388
4402
|
);
|
|
4389
4403
|
let H;
|
|
4390
4404
|
for (H = 0; H < j.length; H += 1) {
|
|
4391
|
-
const W =
|
|
4392
|
-
M[H] ? M[H].p(W, R) : (M[H] =
|
|
4405
|
+
const W = sr(x, j, H);
|
|
4406
|
+
M[H] ? M[H].p(W, R) : (M[H] = dr(W), M[H].c(), M[H].m(s, null));
|
|
4393
4407
|
}
|
|
4394
4408
|
for (; H < M.length; H += 1)
|
|
4395
4409
|
M[H].d(1);
|
|
4396
4410
|
M.length = j.length;
|
|
4397
4411
|
}
|
|
4398
4412
|
R[0] & /*isOptionsListVisible*/
|
|
4399
|
-
1024 &&
|
|
4400
|
-
(x[10] ? "Overlay" : "")) && p(s, "class",
|
|
4401
|
-
x[9].length > 1 ? L ? L.p(x, R) : (L =
|
|
4413
|
+
1024 && l !== (l = "HamburgerSecondaryMenu " + /*isOptionsListVisible*/
|
|
4414
|
+
(x[10] ? "Overlay" : "")) && p(s, "class", l), /*languagesArray*/
|
|
4415
|
+
x[9].length > 1 ? L ? L.p(x, R) : (L = mr(x), L.c(), L.m(r, null)) : L && (L.d(1), L = null), R[0] & /*modalIsOpen, isClosing*/
|
|
4402
4416
|
4224 && h !== (h = "HamburgerModalContainer " + /*modalIsOpen*/
|
|
4403
4417
|
(x[7] ? "ActiveHamburgerMenu" : "") + " " + /*isClosing*/
|
|
4404
4418
|
(x[12] ? "Closing" : "")) && p(r, "class", h), R[0] & /*navIconClosing*/
|
|
@@ -4414,15 +4428,15 @@ function sr(e) {
|
|
|
4414
4428
|
}
|
|
4415
4429
|
};
|
|
4416
4430
|
}
|
|
4417
|
-
function
|
|
4431
|
+
function qo(e) {
|
|
4418
4432
|
let t, r = Y(new Array(5)), n = [];
|
|
4419
4433
|
for (let i = 0; i < r.length; i += 1)
|
|
4420
|
-
n[i] =
|
|
4434
|
+
n[i] = Ko(Yo(e, r, i));
|
|
4421
4435
|
return {
|
|
4422
4436
|
c() {
|
|
4423
4437
|
for (let i = 0; i < n.length; i += 1)
|
|
4424
4438
|
n[i].c();
|
|
4425
|
-
t =
|
|
4439
|
+
t = xr();
|
|
4426
4440
|
},
|
|
4427
4441
|
m(i, o) {
|
|
4428
4442
|
for (let a = 0; a < n.length; a += 1)
|
|
@@ -4435,18 +4449,18 @@ function Qo(e) {
|
|
|
4435
4449
|
}
|
|
4436
4450
|
};
|
|
4437
4451
|
}
|
|
4438
|
-
function
|
|
4452
|
+
function Jo(e) {
|
|
4439
4453
|
let t, r = Y(
|
|
4440
4454
|
/*HamburgerMenuItems*/
|
|
4441
4455
|
e[4]
|
|
4442
4456
|
), n = [];
|
|
4443
4457
|
for (let i = 0; i < r.length; i += 1)
|
|
4444
|
-
n[i] = lr(
|
|
4458
|
+
n[i] = cr(lr(e, r, i));
|
|
4445
4459
|
return {
|
|
4446
4460
|
c() {
|
|
4447
4461
|
for (let i = 0; i < n.length; i += 1)
|
|
4448
4462
|
n[i].c();
|
|
4449
|
-
t =
|
|
4463
|
+
t = xr();
|
|
4450
4464
|
},
|
|
4451
4465
|
m(i, o) {
|
|
4452
4466
|
for (let a = 0; a < n.length; a += 1)
|
|
@@ -4462,8 +4476,8 @@ function Yo(e) {
|
|
|
4462
4476
|
);
|
|
4463
4477
|
let a;
|
|
4464
4478
|
for (a = 0; a < r.length; a += 1) {
|
|
4465
|
-
const s =
|
|
4466
|
-
n[a] ? n[a].p(s, o) : (n[a] =
|
|
4479
|
+
const s = lr(i, r, a);
|
|
4480
|
+
n[a] ? n[a].p(s, o) : (n[a] = cr(s), n[a].c(), n[a].m(t.parentNode, t));
|
|
4467
4481
|
}
|
|
4468
4482
|
for (; a < n.length; a += 1)
|
|
4469
4483
|
n[a].d(1);
|
|
@@ -4475,11 +4489,11 @@ function Yo(e) {
|
|
|
4475
4489
|
}
|
|
4476
4490
|
};
|
|
4477
4491
|
}
|
|
4478
|
-
function
|
|
4492
|
+
function Ko(e) {
|
|
4479
4493
|
let t;
|
|
4480
4494
|
return {
|
|
4481
4495
|
c() {
|
|
4482
|
-
t =
|
|
4496
|
+
t = y("div"), t.innerHTML = "", p(t, "class", "Loading Skeleton");
|
|
4483
4497
|
},
|
|
4484
4498
|
m(r, n) {
|
|
4485
4499
|
F(r, t, n);
|
|
@@ -4490,11 +4504,11 @@ function qo(e) {
|
|
|
4490
4504
|
}
|
|
4491
4505
|
};
|
|
4492
4506
|
}
|
|
4493
|
-
function
|
|
4507
|
+
function hr(e) {
|
|
4494
4508
|
let t, r;
|
|
4495
4509
|
return {
|
|
4496
4510
|
c() {
|
|
4497
|
-
t =
|
|
4511
|
+
t = y("img"), ee(t.src, r = /*mainItem*/
|
|
4498
4512
|
e[63].img) || p(t, "src", r), p(t, "alt", "menu icon");
|
|
4499
4513
|
},
|
|
4500
4514
|
m(n, i) {
|
|
@@ -4510,14 +4524,14 @@ function ur(e) {
|
|
|
4510
4524
|
}
|
|
4511
4525
|
};
|
|
4512
4526
|
}
|
|
4513
|
-
function
|
|
4527
|
+
function cr(e) {
|
|
4514
4528
|
var m;
|
|
4515
4529
|
let t, r, n, i, o = (
|
|
4516
4530
|
/*mainItem*/
|
|
4517
4531
|
e[63].label + ""
|
|
4518
|
-
), a, s,
|
|
4532
|
+
), a, s, l, u, h, c = (
|
|
4519
4533
|
/*mainItem*/
|
|
4520
|
-
((m = e[63]) == null ? void 0 : m.img) &&
|
|
4534
|
+
((m = e[63]) == null ? void 0 : m.img) && hr(e)
|
|
4521
4535
|
);
|
|
4522
4536
|
function f() {
|
|
4523
4537
|
return (
|
|
@@ -4530,33 +4544,33 @@ function lr(e) {
|
|
|
4530
4544
|
}
|
|
4531
4545
|
return {
|
|
4532
4546
|
c() {
|
|
4533
|
-
t =
|
|
4547
|
+
t = y("li"), r = y("div"), c && c.c(), n = U(), i = y("p"), a = te(o), s = U(), p(r, "class", "HamburgerItemContainer"), p(t, "class", l = /*activeMenuItemId*/
|
|
4534
4548
|
e[5] === /*mainItem*/
|
|
4535
4549
|
e[63].id ? "ActiveItem" : "");
|
|
4536
4550
|
},
|
|
4537
4551
|
m(g, b) {
|
|
4538
|
-
F(g, t, b),
|
|
4552
|
+
F(g, t, b), v(t, r), c && c.m(r, null), v(r, n), v(r, i), v(i, a), v(t, s), u || (h = re(t, "click", f), u = !0);
|
|
4539
4553
|
},
|
|
4540
4554
|
p(g, b) {
|
|
4541
4555
|
var w;
|
|
4542
4556
|
e = g, /*mainItem*/
|
|
4543
|
-
(w = e[63]) != null && w.img ? c ? c.p(e, b) : (c =
|
|
4557
|
+
(w = e[63]) != null && w.img ? c ? c.p(e, b) : (c = hr(e), c.c(), c.m(r, n)) : c && (c.d(1), c = null), b[0] & /*HamburgerMenuItems*/
|
|
4544
4558
|
16 && o !== (o = /*mainItem*/
|
|
4545
4559
|
e[63].label + "") && ge(a, o), b[0] & /*activeMenuItemId, HamburgerMenuItems*/
|
|
4546
|
-
48 &&
|
|
4560
|
+
48 && l !== (l = /*activeMenuItemId*/
|
|
4547
4561
|
e[5] === /*mainItem*/
|
|
4548
|
-
e[63].id ? "ActiveItem" : "") && p(t, "class",
|
|
4562
|
+
e[63].id ? "ActiveItem" : "") && p(t, "class", l);
|
|
4549
4563
|
},
|
|
4550
4564
|
d(g) {
|
|
4551
|
-
g && I(t), c && c.d(),
|
|
4565
|
+
g && I(t), c && c.d(), u = !1, h();
|
|
4552
4566
|
}
|
|
4553
4567
|
};
|
|
4554
4568
|
}
|
|
4555
|
-
function
|
|
4569
|
+
function fr(e) {
|
|
4556
4570
|
let t, r;
|
|
4557
4571
|
return {
|
|
4558
4572
|
c() {
|
|
4559
|
-
t =
|
|
4573
|
+
t = y("img"), ee(t.src, r = /*secondaryItem*/
|
|
4560
4574
|
e[60].img) || p(t, "src", r), p(t, "alt", "menu icon");
|
|
4561
4575
|
},
|
|
4562
4576
|
m(n, i) {
|
|
@@ -4572,14 +4586,14 @@ function hr(e) {
|
|
|
4572
4586
|
}
|
|
4573
4587
|
};
|
|
4574
4588
|
}
|
|
4575
|
-
function
|
|
4589
|
+
function dr(e) {
|
|
4576
4590
|
var c;
|
|
4577
4591
|
let t, r, n, i = (
|
|
4578
4592
|
/*secondaryItem*/
|
|
4579
4593
|
e[60].label + ""
|
|
4580
|
-
), o, a, s,
|
|
4594
|
+
), o, a, s, l, u = (
|
|
4581
4595
|
/*secondaryItem*/
|
|
4582
|
-
((c = e[60]) == null ? void 0 : c.img) &&
|
|
4596
|
+
((c = e[60]) == null ? void 0 : c.img) && fr(e)
|
|
4583
4597
|
);
|
|
4584
4598
|
function h(...f) {
|
|
4585
4599
|
return (
|
|
@@ -4593,42 +4607,42 @@ function cr(e) {
|
|
|
4593
4607
|
}
|
|
4594
4608
|
return {
|
|
4595
4609
|
c() {
|
|
4596
|
-
t =
|
|
4610
|
+
t = y("li"), u && u.c(), r = U(), n = y("p"), o = te(i), a = U();
|
|
4597
4611
|
},
|
|
4598
4612
|
m(f, m) {
|
|
4599
|
-
F(f, t, m),
|
|
4613
|
+
F(f, t, m), u && u.m(t, null), v(t, r), v(t, n), v(n, o), v(t, a), s || (l = re(t, "click", h), s = !0);
|
|
4600
4614
|
},
|
|
4601
4615
|
p(f, m) {
|
|
4602
4616
|
var g;
|
|
4603
4617
|
e = f, /*secondaryItem*/
|
|
4604
|
-
(g = e[60]) != null && g.img ?
|
|
4618
|
+
(g = e[60]) != null && g.img ? u ? u.p(e, m) : (u = fr(e), u.c(), u.m(t, r)) : u && (u.d(1), u = null), m[0] & /*activeMenuItemChildren*/
|
|
4605
4619
|
64 && i !== (i = /*secondaryItem*/
|
|
4606
4620
|
e[60].label + "") && ge(o, i);
|
|
4607
4621
|
},
|
|
4608
4622
|
d(f) {
|
|
4609
|
-
f && I(t),
|
|
4623
|
+
f && I(t), u && u.d(), s = !1, l();
|
|
4610
4624
|
}
|
|
4611
4625
|
};
|
|
4612
4626
|
}
|
|
4613
|
-
function
|
|
4627
|
+
function mr(e) {
|
|
4614
4628
|
let t, r, n = (
|
|
4615
4629
|
/*$_*/
|
|
4616
4630
|
e[15]("language") + ""
|
|
4617
|
-
), i, o, a, s,
|
|
4618
|
-
function
|
|
4631
|
+
), i, o, a, s, l;
|
|
4632
|
+
function u(f, m) {
|
|
4619
4633
|
return (
|
|
4620
4634
|
/*countryflaghamburger*/
|
|
4621
|
-
f[0] !== "true" ?
|
|
4635
|
+
f[0] !== "true" ? ta : ea
|
|
4622
4636
|
);
|
|
4623
4637
|
}
|
|
4624
|
-
let h =
|
|
4638
|
+
let h = u(e), c = h(e);
|
|
4625
4639
|
return {
|
|
4626
4640
|
c() {
|
|
4627
|
-
t =
|
|
4641
|
+
t = y("div"), r = y("span"), i = te(n), o = U(), c.c(), p(r, "class", "LanguageSelectorTitle"), p(t, "class", a = "LanguageSelector " + /*isOptionsListVisible*/
|
|
4628
4642
|
(e[10] ? "Open" : ""));
|
|
4629
4643
|
},
|
|
4630
4644
|
m(f, m) {
|
|
4631
|
-
F(f, t, m),
|
|
4645
|
+
F(f, t, m), v(t, r), v(r, i), v(t, o), c.m(t, null), s || (l = re(
|
|
4632
4646
|
t,
|
|
4633
4647
|
"click",
|
|
4634
4648
|
/*toggleLanguageDropdown*/
|
|
@@ -4638,26 +4652,26 @@ function fr(e) {
|
|
|
4638
4652
|
p(f, m) {
|
|
4639
4653
|
m[0] & /*$_*/
|
|
4640
4654
|
32768 && n !== (n = /*$_*/
|
|
4641
|
-
f[15]("language") + "") && ge(i, n), h === (h =
|
|
4655
|
+
f[15]("language") + "") && ge(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*/
|
|
4642
4656
|
1024 && a !== (a = "LanguageSelector " + /*isOptionsListVisible*/
|
|
4643
4657
|
(f[10] ? "Open" : "")) && p(t, "class", a);
|
|
4644
4658
|
},
|
|
4645
4659
|
d(f) {
|
|
4646
|
-
f && I(t), c.d(), s = !1,
|
|
4660
|
+
f && I(t), c.d(), s = !1, l();
|
|
4647
4661
|
}
|
|
4648
4662
|
};
|
|
4649
4663
|
}
|
|
4650
|
-
function
|
|
4651
|
-
let t, r, n, i, o, a, s,
|
|
4664
|
+
function ea(e) {
|
|
4665
|
+
let t, r, n, i, o, a, s, l = (
|
|
4652
4666
|
/*selectedLanguage*/
|
|
4653
4667
|
e[14].slice(-2) + ""
|
|
4654
|
-
),
|
|
4668
|
+
), u, h, c, f, m, g, b, w = (
|
|
4655
4669
|
/*isOptionsListVisible*/
|
|
4656
|
-
e[10] &&
|
|
4670
|
+
e[10] && pr(e)
|
|
4657
4671
|
);
|
|
4658
4672
|
return {
|
|
4659
4673
|
c() {
|
|
4660
|
-
t =
|
|
4674
|
+
t = y("div"), r = y("div"), n = y("span"), i = y("img"), a = U(), s = y("span"), u = te(l), h = U(), c = y("span"), f = It("svg"), m = It("path"), b = U(), w && w.c(), ee(i.src, o = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4661
4675
|
e[22](
|
|
4662
4676
|
/*selectedLanguage*/
|
|
4663
4677
|
e[14]
|
|
@@ -4665,7 +4679,7 @@ function Jo(e) {
|
|
|
4665
4679
|
(e[10] ? "TriangleActive" : "")), p(r, "class", "SelectedOption Item ItemLanguage"), p(t, "class", "LanguageDropdown");
|
|
4666
4680
|
},
|
|
4667
4681
|
m(T, P) {
|
|
4668
|
-
F(T, t, P),
|
|
4682
|
+
F(T, t, P), v(t, r), v(r, n), v(n, i), v(r, a), v(r, s), v(s, u), v(r, h), v(r, c), v(c, f), v(f, m), v(t, b), w && w.m(t, null);
|
|
4669
4683
|
},
|
|
4670
4684
|
p(T, P) {
|
|
4671
4685
|
P[0] & /*selectedLanguage, languagesArray*/
|
|
@@ -4674,27 +4688,27 @@ function Jo(e) {
|
|
|
4674
4688
|
/*selectedLanguage*/
|
|
4675
4689
|
T[14]
|
|
4676
4690
|
)}.svg`) && p(i, "src", o), P[0] & /*selectedLanguage*/
|
|
4677
|
-
16384 &&
|
|
4678
|
-
T[14].slice(-2) + "") && ge(
|
|
4691
|
+
16384 && l !== (l = /*selectedLanguage*/
|
|
4692
|
+
T[14].slice(-2) + "") && ge(u, l), P[0] & /*isOptionsListVisible*/
|
|
4679
4693
|
1024 && g !== (g = "TriangleInactive " + /*isOptionsListVisible*/
|
|
4680
4694
|
(T[10] ? "TriangleActive" : "")) && p(c, "class", g), /*isOptionsListVisible*/
|
|
4681
|
-
T[10] ? w ? w.p(T, P) : (w =
|
|
4695
|
+
T[10] ? w ? w.p(T, P) : (w = pr(T), w.c(), w.m(t, null)) : w && (w.d(1), w = null);
|
|
4682
4696
|
},
|
|
4683
4697
|
d(T) {
|
|
4684
4698
|
T && I(t), w && w.d();
|
|
4685
4699
|
}
|
|
4686
4700
|
};
|
|
4687
4701
|
}
|
|
4688
|
-
function
|
|
4702
|
+
function ta(e) {
|
|
4689
4703
|
let t, r, n, i = Y(
|
|
4690
4704
|
/*languagesArray*/
|
|
4691
4705
|
e[9]
|
|
4692
4706
|
), o = [];
|
|
4693
4707
|
for (let a = 0; a < i.length; a += 1)
|
|
4694
|
-
o[a] =
|
|
4708
|
+
o[a] = br(ar(e, i, a));
|
|
4695
4709
|
return {
|
|
4696
4710
|
c() {
|
|
4697
|
-
t =
|
|
4711
|
+
t = y("select");
|
|
4698
4712
|
for (let a = 0; a < o.length; a += 1)
|
|
4699
4713
|
o[a].c();
|
|
4700
4714
|
p(t, "class", "Item ItemLanguage NoFlag"), /*selectedLanguage*/
|
|
@@ -4705,9 +4719,9 @@ function Ko(e) {
|
|
|
4705
4719
|
},
|
|
4706
4720
|
m(a, s) {
|
|
4707
4721
|
F(a, t, s);
|
|
4708
|
-
for (let
|
|
4709
|
-
o[
|
|
4710
|
-
|
|
4722
|
+
for (let l = 0; l < o.length; l += 1)
|
|
4723
|
+
o[l] && o[l].m(t, null);
|
|
4724
|
+
Nt(
|
|
4711
4725
|
t,
|
|
4712
4726
|
/*selectedLanguage*/
|
|
4713
4727
|
e[14],
|
|
@@ -4734,17 +4748,17 @@ function Ko(e) {
|
|
|
4734
4748
|
/*languagesArray*/
|
|
4735
4749
|
a[9]
|
|
4736
4750
|
);
|
|
4737
|
-
let
|
|
4738
|
-
for (
|
|
4739
|
-
const
|
|
4740
|
-
o[
|
|
4751
|
+
let l;
|
|
4752
|
+
for (l = 0; l < i.length; l += 1) {
|
|
4753
|
+
const u = ar(a, i, l);
|
|
4754
|
+
o[l] ? o[l].p(u, s) : (o[l] = br(u), o[l].c(), o[l].m(t, null));
|
|
4741
4755
|
}
|
|
4742
|
-
for (;
|
|
4743
|
-
o[
|
|
4756
|
+
for (; l < o.length; l += 1)
|
|
4757
|
+
o[l].d(1);
|
|
4744
4758
|
o.length = i.length;
|
|
4745
4759
|
}
|
|
4746
4760
|
s[0] & /*selectedLanguage, languagesArray*/
|
|
4747
|
-
16896 &&
|
|
4761
|
+
16896 && Nt(
|
|
4748
4762
|
t,
|
|
4749
4763
|
/*selectedLanguage*/
|
|
4750
4764
|
a[14]
|
|
@@ -4755,16 +4769,16 @@ function Ko(e) {
|
|
|
4755
4769
|
}
|
|
4756
4770
|
};
|
|
4757
4771
|
}
|
|
4758
|
-
function
|
|
4772
|
+
function pr(e) {
|
|
4759
4773
|
let t, r, n = Y(
|
|
4760
4774
|
/*languagesArray*/
|
|
4761
4775
|
e[9]
|
|
4762
4776
|
), i = [];
|
|
4763
4777
|
for (let o = 0; o < n.length; o += 1)
|
|
4764
|
-
i[o] =
|
|
4778
|
+
i[o] = gr(or(e, n, o));
|
|
4765
4779
|
return {
|
|
4766
4780
|
c() {
|
|
4767
|
-
t =
|
|
4781
|
+
t = y("div");
|
|
4768
4782
|
for (let o = 0; o < i.length; o += 1)
|
|
4769
4783
|
i[o].c();
|
|
4770
4784
|
p(t, "class", r = "OptionList " + /*languageListOpen*/
|
|
@@ -4784,8 +4798,8 @@ function dr(e) {
|
|
|
4784
4798
|
);
|
|
4785
4799
|
let s;
|
|
4786
4800
|
for (s = 0; s < n.length; s += 1) {
|
|
4787
|
-
const
|
|
4788
|
-
i[s] ? i[s].p(
|
|
4801
|
+
const l = or(o, n, s);
|
|
4802
|
+
i[s] ? i[s].p(l, a) : (i[s] = gr(l), i[s].c(), i[s].m(t, null));
|
|
4789
4803
|
}
|
|
4790
4804
|
for (; s < i.length; s += 1)
|
|
4791
4805
|
i[s].d(1);
|
|
@@ -4800,11 +4814,11 @@ function dr(e) {
|
|
|
4800
4814
|
}
|
|
4801
4815
|
};
|
|
4802
4816
|
}
|
|
4803
|
-
function
|
|
4817
|
+
function gr(e) {
|
|
4804
4818
|
let t, r, n, i, o, a, s = (
|
|
4805
4819
|
/*operatorLanguage*/
|
|
4806
4820
|
e[57] + ""
|
|
4807
|
-
),
|
|
4821
|
+
), l, u, h, c, f;
|
|
4808
4822
|
function m() {
|
|
4809
4823
|
return (
|
|
4810
4824
|
/*click_handler_2*/
|
|
@@ -4816,7 +4830,7 @@ function mr(e) {
|
|
|
4816
4830
|
}
|
|
4817
4831
|
return {
|
|
4818
4832
|
c() {
|
|
4819
|
-
t =
|
|
4833
|
+
t = y("div"), r = y("span"), n = y("img"), o = U(), a = y("span"), l = te(s), u = U(), ee(n.src, i = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4820
4834
|
e[22](
|
|
4821
4835
|
/*operatorLanguage*/
|
|
4822
4836
|
e[57]
|
|
@@ -4824,7 +4838,7 @@ function mr(e) {
|
|
|
4824
4838
|
(e[11] ? "Open" : ""));
|
|
4825
4839
|
},
|
|
4826
4840
|
m(g, b) {
|
|
4827
|
-
F(g, t, b),
|
|
4841
|
+
F(g, t, b), v(t, r), v(r, n), v(t, o), v(t, a), v(a, l), v(t, u), c || (f = re(t, "click", m), c = !0);
|
|
4828
4842
|
},
|
|
4829
4843
|
p(g, b) {
|
|
4830
4844
|
e = g, b[0] & /*languagesArray*/
|
|
@@ -4834,7 +4848,7 @@ function mr(e) {
|
|
|
4834
4848
|
e[57]
|
|
4835
4849
|
)}.svg`) && p(n, "src", i), b[0] & /*languagesArray*/
|
|
4836
4850
|
512 && s !== (s = /*operatorLanguage*/
|
|
4837
|
-
e[57] + "") && ge(
|
|
4851
|
+
e[57] + "") && ge(l, s), b[0] & /*languageListOpen*/
|
|
4838
4852
|
2048 && h !== (h = "LanguageOption " + /*languageListOpen*/
|
|
4839
4853
|
(e[11] ? "Open" : "")) && p(t, "class", h);
|
|
4840
4854
|
},
|
|
@@ -4843,46 +4857,46 @@ function mr(e) {
|
|
|
4843
4857
|
}
|
|
4844
4858
|
};
|
|
4845
4859
|
}
|
|
4846
|
-
function
|
|
4860
|
+
function br(e) {
|
|
4847
4861
|
let t, r = (
|
|
4848
4862
|
/*lang*/
|
|
4849
4863
|
e[1].slice(-2) + ""
|
|
4850
4864
|
), n, i;
|
|
4851
4865
|
return {
|
|
4852
4866
|
c() {
|
|
4853
|
-
t =
|
|
4854
|
-
e[1],
|
|
4867
|
+
t = y("option"), n = te(r), t.__value = i = /*lang*/
|
|
4868
|
+
e[1], Ct(t, t.__value), t.selected = !0;
|
|
4855
4869
|
},
|
|
4856
4870
|
m(o, a) {
|
|
4857
|
-
F(o, t, a),
|
|
4871
|
+
F(o, t, a), v(t, n);
|
|
4858
4872
|
},
|
|
4859
4873
|
p(o, a) {
|
|
4860
4874
|
a[0] & /*languagesArray*/
|
|
4861
4875
|
512 && r !== (r = /*lang*/
|
|
4862
4876
|
o[1].slice(-2) + "") && ge(n, r), a[0] & /*languagesArray*/
|
|
4863
4877
|
512 && i !== (i = /*lang*/
|
|
4864
|
-
o[1]) && (t.__value = i,
|
|
4878
|
+
o[1]) && (t.__value = i, Ct(t, t.__value));
|
|
4865
4879
|
},
|
|
4866
4880
|
d(o) {
|
|
4867
4881
|
o && I(t);
|
|
4868
4882
|
}
|
|
4869
4883
|
};
|
|
4870
4884
|
}
|
|
4871
|
-
function
|
|
4885
|
+
function ra(e) {
|
|
4872
4886
|
let t, r = (
|
|
4873
4887
|
/*show*/
|
|
4874
|
-
e[8] === !0 &&
|
|
4888
|
+
e[8] === !0 && ur(e)
|
|
4875
4889
|
);
|
|
4876
4890
|
return {
|
|
4877
4891
|
c() {
|
|
4878
|
-
t =
|
|
4892
|
+
t = y("div"), r && r.c();
|
|
4879
4893
|
},
|
|
4880
4894
|
m(n, i) {
|
|
4881
4895
|
F(n, t, i), r && r.m(t, null), e[41](t);
|
|
4882
4896
|
},
|
|
4883
4897
|
p(n, i) {
|
|
4884
4898
|
/*show*/
|
|
4885
|
-
n[8] === !0 ? r ? r.p(n, i) : (r =
|
|
4899
|
+
n[8] === !0 ? r ? r.p(n, i) : (r = ur(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4886
4900
|
},
|
|
4887
4901
|
i: $,
|
|
4888
4902
|
o: $,
|
|
@@ -4891,27 +4905,27 @@ function ea(e) {
|
|
|
4891
4905
|
}
|
|
4892
4906
|
};
|
|
4893
4907
|
}
|
|
4894
|
-
function
|
|
4908
|
+
function na(e, t, r) {
|
|
4895
4909
|
let n;
|
|
4896
|
-
|
|
4897
|
-
let { menuitemsurl: i = "" } = t, { cmsendpoint: o } = t, { cmsenv: a = "stage" } = t, { userroles: s } = t, { lang:
|
|
4898
|
-
const
|
|
4910
|
+
yn(e, $o, (d) => r(15, n = d));
|
|
4911
|
+
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: b = "" } = t, { countryflaghamburger: w = "" } = t, T, P = window.navigator.userAgent, B = [], G, C = "", X = [], z = !1, ie = !1, J = !0, N = [], j = !1, M = !1, L = !1, x = !1, R = !0, H, W = "", Z;
|
|
4912
|
+
const en = () => {
|
|
4899
4913
|
fetch(c).then((d) => d.json()).then((d) => {
|
|
4900
4914
|
Object.keys(d).forEach((A) => {
|
|
4901
|
-
|
|
4915
|
+
nr(A, d[A]);
|
|
4902
4916
|
});
|
|
4903
4917
|
}).catch((d) => {
|
|
4904
4918
|
console.log(d);
|
|
4905
4919
|
});
|
|
4906
4920
|
};
|
|
4907
|
-
Object.keys(
|
|
4908
|
-
|
|
4921
|
+
Object.keys(ir).forEach((d) => {
|
|
4922
|
+
nr(d, ir[d]);
|
|
4909
4923
|
});
|
|
4910
4924
|
const We = () => {
|
|
4911
4925
|
H = new URL(`${o}/${W.toLowerCase()}/hamburger-menu`);
|
|
4912
|
-
let d =
|
|
4926
|
+
let d = Wo(P);
|
|
4913
4927
|
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);
|
|
4914
|
-
},
|
|
4928
|
+
}, _t = () => {
|
|
4915
4929
|
r(12, x = !0), r(13, R = !0), r(10, M = !1), r(11, L = !1), setTimeout(
|
|
4916
4930
|
() => {
|
|
4917
4931
|
r(8, ie = !1), r(7, z = !1);
|
|
@@ -4924,40 +4938,40 @@ function ta(e, t, r) {
|
|
|
4924
4938
|
},
|
|
4925
4939
|
window.location.href
|
|
4926
4940
|
);
|
|
4927
|
-
},
|
|
4941
|
+
}, xt = (d) => {
|
|
4928
4942
|
d.data.type === "OpenHamburgerMenuModal" && (window.postMessage({ type: "DisableScroll" }, window.location.href), r(12, x = !1), setTimeout(
|
|
4929
4943
|
() => {
|
|
4930
4944
|
r(13, R = !1);
|
|
4931
4945
|
},
|
|
4932
4946
|
125
|
|
4933
|
-
), r(8, ie = !0), r(7, z = !0), We(),
|
|
4947
|
+
), r(8, ie = !0), r(7, z = !0), We(), wt(H)), d.data.type === "LanguageChanged" && (j = !0, We(), wt(H));
|
|
4934
4948
|
}, Oe = (d, A) => {
|
|
4935
4949
|
r(5, C = d), r(6, X = A || []), typeof gtag == "function" && gtag("event", "ChangeMenu", {
|
|
4936
4950
|
context: "HamburgerMenu",
|
|
4937
4951
|
menuItem: `${C}`
|
|
4938
4952
|
});
|
|
4939
|
-
},
|
|
4953
|
+
}, Et = () => {
|
|
4940
4954
|
let d = B.filter((A) => {
|
|
4941
|
-
var
|
|
4955
|
+
var Ot;
|
|
4942
4956
|
let oe = !1;
|
|
4943
|
-
return (
|
|
4944
|
-
|
|
4957
|
+
return (Ot = A.children) == null || Ot.forEach((fn) => {
|
|
4958
|
+
fn.path.includes(u) && (oe = !0);
|
|
4945
4959
|
}), oe;
|
|
4946
4960
|
});
|
|
4947
4961
|
d.length > 0 ? Oe(d[0].id, d[0].children) : Oe(B[0].id, B[0].children);
|
|
4948
|
-
},
|
|
4949
|
-
G && !j ||
|
|
4950
|
-
},
|
|
4962
|
+
}, wt = (d) => {
|
|
4963
|
+
G && !j || St(d);
|
|
4964
|
+
}, St = (d) => {
|
|
4951
4965
|
fetch(d).then((A) => A.json()).then(
|
|
4952
4966
|
(A) => {
|
|
4953
|
-
r(4, B = A.filter((oe) => (oe == null ? void 0 : oe.type) !== "banner")),
|
|
4967
|
+
r(4, B = A.filter((oe) => (oe == null ? void 0 : oe.type) !== "banner")), Et(), r(34, J = !1), G = A, j = !1;
|
|
4954
4968
|
},
|
|
4955
4969
|
(A) => {
|
|
4956
4970
|
console.error(A);
|
|
4957
4971
|
}
|
|
4958
4972
|
);
|
|
4959
4973
|
};
|
|
4960
|
-
let
|
|
4974
|
+
let Ht = (d) => {
|
|
4961
4975
|
window.postMessage(
|
|
4962
4976
|
{
|
|
4963
4977
|
type: "NavigateTo",
|
|
@@ -4966,7 +4980,7 @@ function ta(e, t, r) {
|
|
|
4966
4980
|
target: d.attrs.target || null
|
|
4967
4981
|
},
|
|
4968
4982
|
window.location.href
|
|
4969
|
-
),
|
|
4983
|
+
), _t();
|
|
4970
4984
|
};
|
|
4971
4985
|
const Ve = () => {
|
|
4972
4986
|
j = !0, window.postMessage(
|
|
@@ -4976,9 +4990,9 @@ function ta(e, t, r) {
|
|
|
4976
4990
|
},
|
|
4977
4991
|
window.location.href
|
|
4978
4992
|
);
|
|
4979
|
-
},
|
|
4980
|
-
|
|
4981
|
-
},
|
|
4993
|
+
}, tn = () => {
|
|
4994
|
+
Zo(l), We(), j && St(H), r(9, N = h.replace(/ /g, "").split(",")), r(9, N = N.map((d) => d.toUpperCase())), r(14, W = l.toUpperCase());
|
|
4995
|
+
}, Tt = (d) => {
|
|
4982
4996
|
r(14, W = d), setTimeout(
|
|
4983
4997
|
() => {
|
|
4984
4998
|
r(11, L = !1);
|
|
@@ -4990,7 +5004,7 @@ function ta(e, t, r) {
|
|
|
4990
5004
|
},
|
|
4991
5005
|
500
|
|
4992
5006
|
), Ve();
|
|
4993
|
-
},
|
|
5007
|
+
}, rn = () => {
|
|
4994
5008
|
M ? (setTimeout(
|
|
4995
5009
|
() => {
|
|
4996
5010
|
r(10, M = !1);
|
|
@@ -5002,46 +5016,46 @@ function ta(e, t, r) {
|
|
|
5002
5016
|
},
|
|
5003
5017
|
300
|
|
5004
5018
|
));
|
|
5005
|
-
},
|
|
5019
|
+
}, nn = (d) => {
|
|
5006
5020
|
let A = d ? d.slice(-2) : W.slice(-2);
|
|
5007
5021
|
return b && (A = b.includes(A.toLowerCase()) ? b.slice(-2) : A), A == "EN" ? "GB" : A.toUpperCase();
|
|
5008
5022
|
};
|
|
5009
|
-
|
|
5010
|
-
window.removeEventListener("message",
|
|
5023
|
+
On(() => (window.addEventListener("message", xt, !1), jo(P), () => {
|
|
5024
|
+
window.removeEventListener("message", xt);
|
|
5011
5025
|
}));
|
|
5012
|
-
const
|
|
5013
|
-
|
|
5026
|
+
const on = (d) => Oe(d.id, d.children), an = (d, A) => {
|
|
5027
|
+
Ht(d), A.preventDefault();
|
|
5014
5028
|
};
|
|
5015
|
-
function
|
|
5016
|
-
W =
|
|
5029
|
+
function sn() {
|
|
5030
|
+
W = Sn(this), r(14, W), r(9, N);
|
|
5017
5031
|
}
|
|
5018
|
-
const
|
|
5019
|
-
function
|
|
5032
|
+
const ln = () => Ve(), un = (d) => Tt(d);
|
|
5033
|
+
function hn(d) {
|
|
5020
5034
|
Ne[d ? "unshift" : "push"](() => {
|
|
5021
5035
|
T = d, r(3, T);
|
|
5022
5036
|
});
|
|
5023
5037
|
}
|
|
5024
|
-
function
|
|
5038
|
+
function cn(d) {
|
|
5025
5039
|
Ne[d ? "unshift" : "push"](() => {
|
|
5026
5040
|
Z = d, r(2, Z);
|
|
5027
5041
|
});
|
|
5028
5042
|
}
|
|
5029
5043
|
return e.$$set = (d) => {
|
|
5030
|
-
"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,
|
|
5044
|
+
"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, b = d.customlocaleidentifier), "countryflaghamburger" in d && r(0, w = d.countryflaghamburger);
|
|
5031
5045
|
}, e.$$.update = () => {
|
|
5032
5046
|
e.$$.dirty[0] & /*cmsendpoint, cmsenv, lang, languageslist*/
|
|
5033
|
-
318767106 && o && a &&
|
|
5047
|
+
318767106 && o && a && l && h && tn(), e.$$.dirty[0] & /*activecategory*/
|
|
5034
5048
|
134217728 | e.$$.dirty[1] & /*isLoading*/
|
|
5035
|
-
8 &&
|
|
5036
|
-
536870912 && c &&
|
|
5049
|
+
8 && u && !J && Et(), e.$$.dirty[0] & /*translationurl*/
|
|
5050
|
+
536870912 && c && en(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5037
5051
|
4 | e.$$.dirty[1] & /*clientstyling*/
|
|
5038
|
-
1 && m && Z &&
|
|
5052
|
+
1 && m && Z && Vo(Z, m), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5039
5053
|
4 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5040
|
-
2 && g && Z &&
|
|
5041
|
-
1073741828 && f && Z &&
|
|
5054
|
+
2 && g && Z && Xo(Z, g), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5055
|
+
1073741828 && f && Z && zo(Z, `${f}.Style`);
|
|
5042
5056
|
}, [
|
|
5043
5057
|
w,
|
|
5044
|
-
|
|
5058
|
+
l,
|
|
5045
5059
|
Z,
|
|
5046
5060
|
T,
|
|
5047
5061
|
B,
|
|
@@ -5056,18 +5070,18 @@ function ta(e, t, r) {
|
|
|
5056
5070
|
R,
|
|
5057
5071
|
W,
|
|
5058
5072
|
n,
|
|
5059
|
-
|
|
5073
|
+
_t,
|
|
5060
5074
|
Oe,
|
|
5061
|
-
|
|
5075
|
+
Ht,
|
|
5062
5076
|
Ve,
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5077
|
+
Tt,
|
|
5078
|
+
rn,
|
|
5079
|
+
nn,
|
|
5066
5080
|
i,
|
|
5067
5081
|
o,
|
|
5068
5082
|
a,
|
|
5069
5083
|
s,
|
|
5070
|
-
|
|
5084
|
+
u,
|
|
5071
5085
|
h,
|
|
5072
5086
|
c,
|
|
5073
5087
|
f,
|
|
@@ -5075,23 +5089,23 @@ function ta(e, t, r) {
|
|
|
5075
5089
|
g,
|
|
5076
5090
|
b,
|
|
5077
5091
|
J,
|
|
5078
|
-
tn,
|
|
5079
|
-
rn,
|
|
5080
|
-
nn,
|
|
5081
5092
|
on,
|
|
5082
5093
|
an,
|
|
5083
5094
|
sn,
|
|
5084
|
-
|
|
5095
|
+
ln,
|
|
5096
|
+
un,
|
|
5097
|
+
hn,
|
|
5098
|
+
cn
|
|
5085
5099
|
];
|
|
5086
5100
|
}
|
|
5087
|
-
class
|
|
5101
|
+
class ia extends Dn {
|
|
5088
5102
|
constructor(t) {
|
|
5089
|
-
super(),
|
|
5103
|
+
super(), Un(
|
|
5090
5104
|
this,
|
|
5091
5105
|
t,
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5106
|
+
na,
|
|
5107
|
+
ra,
|
|
5108
|
+
yr,
|
|
5095
5109
|
{
|
|
5096
5110
|
menuitemsurl: 23,
|
|
5097
5111
|
cmsendpoint: 24,
|
|
@@ -5107,7 +5121,7 @@ class ra extends Rn {
|
|
|
5107
5121
|
customlocaleidentifier: 33,
|
|
5108
5122
|
countryflaghamburger: 0
|
|
5109
5123
|
},
|
|
5110
|
-
|
|
5124
|
+
Qo,
|
|
5111
5125
|
[-1, -1, -1]
|
|
5112
5126
|
);
|
|
5113
5127
|
}
|
|
@@ -5190,7 +5204,7 @@ class ra extends Rn {
|
|
|
5190
5204
|
this.$$set({ countryflaghamburger: t }), D();
|
|
5191
5205
|
}
|
|
5192
5206
|
}
|
|
5193
|
-
|
|
5207
|
+
Fn(ia, { menuitemsurl: {}, cmsendpoint: {}, cmsenv: {}, userroles: {}, lang: {}, activecategory: {}, languageslist: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, customlocaleidentifier: {}, countryflaghamburger: {} }, [], [], !0);
|
|
5194
5208
|
export {
|
|
5195
|
-
|
|
5209
|
+
ia as default
|
|
5196
5210
|
};
|